1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68. 4# 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 8# Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137if test "x$CONFIG_SHELL" = x; then 138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 139 emulate sh 140 NULLCMD=: 141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 142 # is contrary to our usage. Disable this feature. 143 alias -g '\${1+\"\$@\"}'='\"\$@\"' 144 setopt NO_GLOB_SUBST 145else 146 case \`(set -o) 2>/dev/null\` in #( 147 *posix*) : 148 set -o posix ;; #( 149 *) : 150 ;; 151esac 152fi 153" 154 as_required="as_fn_return () { (exit \$1); } 155as_fn_success () { as_fn_return 0; } 156as_fn_failure () { as_fn_return 1; } 157as_fn_ret_success () { return 0; } 158as_fn_ret_failure () { return 1; } 159 160exitcode=0 161as_fn_success || { exitcode=1; echo as_fn_success failed.; } 162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 166 167else 168 exitcode=1; echo positional parameters were not saved. 169fi 170test x\$exitcode = x0 || exit 1" 171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 175test \$(( 1 + 1 )) = 2 || exit 1 176 177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 PATH=/empty FPATH=/empty; export PATH FPATH 182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 184 if (eval "$as_required") 2>/dev/null; then : 185 as_have_required=yes 186else 187 as_have_required=no 188fi 189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 190 191else 192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 193as_found=false 194for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 195do 196 IFS=$as_save_IFS 197 test -z "$as_dir" && as_dir=. 198 as_found=: 199 case $as_dir in #( 200 /*) 201 for as_base in sh bash ksh sh5; do 202 # Try only shells that exist, to save several forks. 203 as_shell=$as_dir/$as_base 204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 206 CONFIG_SHELL=$as_shell as_have_required=yes 207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 break 2 209fi 210fi 211 done;; 212 esac 213 as_found=false 214done 215$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 217 CONFIG_SHELL=$SHELL as_have_required=yes 218fi; } 219IFS=$as_save_IFS 220 221 222 if test "x$CONFIG_SHELL" != x; then : 223 # We cannot yet assume a decent shell, so we have to provide a 224 # neutralization value for shells without unset; and this also 225 # works around shells that cannot unset nonexistent variables. 226 # Preserve -v and -x to the replacement shell. 227 BASH_ENV=/dev/null 228 ENV=/dev/null 229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 230 export CONFIG_SHELL 231 case $- in # (((( 232 *v*x* | *x*v* ) as_opts=-vx ;; 233 *v* ) as_opts=-v ;; 234 *x* ) as_opts=-x ;; 235 * ) as_opts= ;; 236 esac 237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 238fi 239 240 if test x$as_have_required = xno; then : 241 $as_echo "$0: This script requires a shell more modern than all" 242 $as_echo "$0: the shells that I found on your system." 243 if test x${ZSH_VERSION+set} = xset ; then 244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 245 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 246 else 247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 248$0: including any error possibly output before this 249$0: message. Then install a modern shell, or manually run 250$0: the script under such a shell if you do have one." 251 fi 252 exit 1 253fi 254fi 255fi 256SHELL=${CONFIG_SHELL-/bin/sh} 257export SHELL 258# Unset more variables known to interfere with behavior of common tools. 259CLICOLOR_FORCE= GREP_OPTIONS= 260unset CLICOLOR_FORCE GREP_OPTIONS 261 262## --------------------- ## 263## M4sh Shell Functions. ## 264## --------------------- ## 265# as_fn_unset VAR 266# --------------- 267# Portably unset VAR. 268as_fn_unset () 269{ 270 { eval $1=; unset $1;} 271} 272as_unset=as_fn_unset 273 274# as_fn_set_status STATUS 275# ----------------------- 276# Set $? to STATUS, without forking. 277as_fn_set_status () 278{ 279 return $1 280} # as_fn_set_status 281 282# as_fn_exit STATUS 283# ----------------- 284# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 285as_fn_exit () 286{ 287 set +e 288 as_fn_set_status $1 289 exit $1 290} # as_fn_exit 291 292# as_fn_mkdir_p 293# ------------- 294# Create "$as_dir" as a directory, including parents if necessary. 295as_fn_mkdir_p () 296{ 297 298 case $as_dir in #( 299 -*) as_dir=./$as_dir;; 300 esac 301 test -d "$as_dir" || eval $as_mkdir_p || { 302 as_dirs= 303 while :; do 304 case $as_dir in #( 305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 306 *) as_qdir=$as_dir;; 307 esac 308 as_dirs="'$as_qdir' $as_dirs" 309 as_dir=`$as_dirname -- "$as_dir" || 310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 311 X"$as_dir" : 'X\(//\)[^/]' \| \ 312 X"$as_dir" : 'X\(//\)$' \| \ 313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 314$as_echo X"$as_dir" | 315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\/\)[^/].*/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)$/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\).*/{ 328 s//\1/ 329 q 330 } 331 s/.*/./; q'` 332 test -d "$as_dir" && break 333 done 334 test -z "$as_dirs" || eval "mkdir $as_dirs" 335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 336 337 338} # as_fn_mkdir_p 339# as_fn_append VAR VALUE 340# ---------------------- 341# Append the text in VALUE to the end of the definition contained in VAR. Take 342# advantage of any shell optimizations that allow amortized linear growth over 343# repeated appends, instead of the typical quadratic growth present in naive 344# implementations. 345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 346 eval 'as_fn_append () 347 { 348 eval $1+=\$2 349 }' 350else 351 as_fn_append () 352 { 353 eval $1=\$$1\$2 354 } 355fi # as_fn_append 356 357# as_fn_arith ARG... 358# ------------------ 359# Perform arithmetic evaluation on the ARGs, and store the result in the 360# global $as_val. Take advantage of shells that can avoid forks. The arguments 361# must be portable across $(()) and expr. 362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 363 eval 'as_fn_arith () 364 { 365 as_val=$(( $* )) 366 }' 367else 368 as_fn_arith () 369 { 370 as_val=`expr "$@" || test $? -eq 1` 371 } 372fi # as_fn_arith 373 374 375# as_fn_error STATUS ERROR [LINENO LOG_FD] 376# ---------------------------------------- 377# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 378# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 379# script with STATUS, using 1 if that was 0. 380as_fn_error () 381{ 382 as_status=$1; test $as_status -eq 0 && as_status=1 383 if test "$4"; then 384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 386 fi 387 $as_echo "$as_me: error: $2" >&2 388 as_fn_exit $as_status 389} # as_fn_error 390 391if expr a : '\(a\)' >/dev/null 2>&1 && 392 test "X`expr 00001 : '.*\(...\)'`" = X001; then 393 as_expr=expr 394else 395 as_expr=false 396fi 397 398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 399 as_basename=basename 400else 401 as_basename=false 402fi 403 404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 405 as_dirname=dirname 406else 407 as_dirname=false 408fi 409 410as_me=`$as_basename -- "$0" || 411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 412 X"$0" : 'X\(//\)$' \| \ 413 X"$0" : 'X\(/\)' \| . 2>/dev/null || 414$as_echo X/"$0" | 415 sed '/^.*\/\([^/][^/]*\)\/*$/{ 416 s//\1/ 417 q 418 } 419 /^X\/\(\/\/\)$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\).*/{ 424 s//\1/ 425 q 426 } 427 s/.*/./; q'` 428 429# Avoid depending upon Character Ranges. 430as_cr_letters='abcdefghijklmnopqrstuvwxyz' 431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 432as_cr_Letters=$as_cr_letters$as_cr_LETTERS 433as_cr_digits='0123456789' 434as_cr_alnum=$as_cr_Letters$as_cr_digits 435 436 437 as_lineno_1=$LINENO as_lineno_1a=$LINENO 438 as_lineno_2=$LINENO as_lineno_2a=$LINENO 439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 442 sed -n ' 443 p 444 /[$]LINENO/= 445 ' <$as_myself | 446 sed ' 447 s/[$]LINENO.*/&-/ 448 t lineno 449 b 450 :lineno 451 N 452 :loop 453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 454 t loop 455 s/-\n.*// 456 ' >$as_me.lineno && 457 chmod +x "$as_me.lineno" || 458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 459 460 # Don't try to exec as it changes $[0], causing all sort of problems 461 # (the dirname of $[0] is not the place where we might find the 462 # original and so on. Autoconf is especially sensitive to this). 463 . "./$as_me.lineno" 464 # Exit status is that of the last command. 465 exit 466} 467 468ECHO_C= ECHO_N= ECHO_T= 469case `echo -n x` in #((((( 470-n*) 471 case `echo 'xy\c'` in 472 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 473 xy) ECHO_C='\c';; 474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 475 ECHO_T=' ';; 476 esac;; 477*) 478 ECHO_N='-n';; 479esac 480 481rm -f conf$$ conf$$.exe conf$$.file 482if test -d conf$$.dir; then 483 rm -f conf$$.dir/conf$$.file 484else 485 rm -f conf$$.dir 486 mkdir conf$$.dir 2>/dev/null 487fi 488if (echo >conf$$.file) 2>/dev/null; then 489 if ln -s conf$$.file conf$$ 2>/dev/null; then 490 as_ln_s='ln -s' 491 # ... but there are two gotchas: 492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 494 # In both cases, we have to default to `cp -p'. 495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 496 as_ln_s='cp -p' 497 elif ln conf$$.file conf$$ 2>/dev/null; then 498 as_ln_s=ln 499 else 500 as_ln_s='cp -p' 501 fi 502else 503 as_ln_s='cp -p' 504fi 505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 506rmdir conf$$.dir 2>/dev/null 507 508if mkdir -p . 2>/dev/null; then 509 as_mkdir_p='mkdir -p "$as_dir"' 510else 511 test -d ./-p && rmdir ./-p 512 as_mkdir_p=false 513fi 514 515if test -x / >/dev/null 2>&1; then 516 as_test_x='test -x' 517else 518 if ls -dL / >/dev/null 2>&1; then 519 as_ls_L_option=L 520 else 521 as_ls_L_option= 522 fi 523 as_test_x=' 524 eval sh -c '\'' 525 if test -d "$1"; then 526 test -d "$1/."; 527 else 528 case $1 in #( 529 -*)set "./$1";; 530 esac; 531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 532 ???[sx]*):;;*)false;;esac;fi 533 '\'' sh 534 ' 535fi 536as_executable_p=$as_test_x 537 538# Sed expression to map a string onto a valid CPP name. 539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 540 541# Sed expression to map a string onto a valid variable name. 542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 543 544SHELL=${CONFIG_SHELL-/bin/sh} 545 546 547test -n "$DJDIR" || exec 7<&0 </dev/null 548exec 6>&1 549 550# Name of the host. 551# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 552# so uname gets run too. 553ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 554 555# 556# Initializations. 557# 558ac_default_prefix=/usr/local 559ac_clean_files= 560ac_config_libobj_dir=. 561LIBOBJS= 562cross_compiling=no 563subdirs= 564MFLAGS= 565MAKEFLAGS= 566 567# Identity of this package. 568PACKAGE_NAME= 569PACKAGE_TARNAME= 570PACKAGE_VERSION= 571PACKAGE_STRING= 572PACKAGE_BUGREPORT= 573PACKAGE_URL= 574 575ac_unique_file="configure.ac" 576# Factoring default headers for most tests. 577ac_includes_default="\ 578#include <stdio.h> 579#ifdef HAVE_SYS_TYPES_H 580# include <sys/types.h> 581#endif 582#ifdef HAVE_SYS_STAT_H 583# include <sys/stat.h> 584#endif 585#ifdef STDC_HEADERS 586# include <stdlib.h> 587# include <stddef.h> 588#else 589# ifdef HAVE_STDLIB_H 590# include <stdlib.h> 591# endif 592#endif 593#ifdef HAVE_STRING_H 594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 595# include <memory.h> 596# endif 597# include <string.h> 598#endif 599#ifdef HAVE_STRINGS_H 600# include <strings.h> 601#endif 602#ifdef HAVE_INTTYPES_H 603# include <inttypes.h> 604#endif 605#ifdef HAVE_STDINT_H 606# include <stdint.h> 607#endif 608#ifdef HAVE_UNISTD_H 609# include <unistd.h> 610#endif" 611 612ac_subst_vars='LTLIBOBJS 613PLUGLIB 614HAVE_VISIBILITY 615CFLAG_VISIBILITY 616OTOOL64 617OTOOL 618LIPO 619NMEDIT 620DSYMUTIL 621MANIFEST_TOOL 622AWK 623RANLIB 624STRIP 625ac_ct_AR 626AR 627NM 628ac_ct_DUMPBIN 629DUMPBIN 630LD 631FGREP 632SED 633LIBTOOL 634OBJDUMP 635DLLTOOL 636AS 637EGREP 638GREP 639LN_S 640LIBOBJS 641RELOCATABLE 642host_os 643host_vendor 644host_cpu 645host 646build_os 647build_vendor 648build_cpu 649build 650INSTALL_DATA 651INSTALL_SCRIPT 652INSTALL_PROGRAM 653CPP 654OBJEXT 655EXEEXT 656ac_ct_CC 657CPPFLAGS 658LDFLAGS 659CFLAGS 660CC 661VERSION 662PACKAGE 663SET_MAKE 664target_alias 665host_alias 666build_alias 667LIBS 668ECHO_T 669ECHO_N 670ECHO_C 671DEFS 672mandir 673localedir 674libdir 675psdir 676pdfdir 677dvidir 678htmldir 679infodir 680docdir 681oldincludedir 682includedir 683localstatedir 684sharedstatedir 685sysconfdir 686datadir 687datarootdir 688libexecdir 689sbindir 690bindir 691program_transform_name 692prefix 693exec_prefix 694PACKAGE_URL 695PACKAGE_BUGREPORT 696PACKAGE_STRING 697PACKAGE_VERSION 698PACKAGE_TARNAME 699PACKAGE_NAME 700PATH_SEPARATOR 701SHELL' 702ac_subst_files='' 703ac_user_opts=' 704enable_option_checking 705enable_relocatable 706enable_shared 707enable_static 708with_pic 709enable_fast_install 710with_gnu_ld 711with_sysroot 712enable_libtool_lock 713' 714 ac_precious_vars='build_alias 715host_alias 716target_alias 717CC 718CFLAGS 719LDFLAGS 720LIBS 721CPPFLAGS 722CPP 723CPPFLAGS' 724 725 726# Initialize some variables set by options. 727ac_init_help= 728ac_init_version=false 729ac_unrecognized_opts= 730ac_unrecognized_sep= 731# The variables have the same names as the options, with 732# dashes changed to underlines. 733cache_file=/dev/null 734exec_prefix=NONE 735no_create= 736no_recursion= 737prefix=NONE 738program_prefix=NONE 739program_suffix=NONE 740program_transform_name=s,x,x, 741silent= 742site= 743srcdir= 744verbose= 745x_includes=NONE 746x_libraries=NONE 747 748# Installation directory options. 749# These are left unexpanded so users can "make install exec_prefix=/foo" 750# and all the variables that are supposed to be based on exec_prefix 751# by default will actually change. 752# Use braces instead of parens because sh, perl, etc. also accept them. 753# (The list follows the same order as the GNU Coding Standards.) 754bindir='${exec_prefix}/bin' 755sbindir='${exec_prefix}/sbin' 756libexecdir='${exec_prefix}/libexec' 757datarootdir='${prefix}/share' 758datadir='${datarootdir}' 759sysconfdir='${prefix}/etc' 760sharedstatedir='${prefix}/com' 761localstatedir='${prefix}/var' 762includedir='${prefix}/include' 763oldincludedir='/usr/include' 764docdir='${datarootdir}/doc/${PACKAGE}' 765infodir='${datarootdir}/info' 766htmldir='${docdir}' 767dvidir='${docdir}' 768pdfdir='${docdir}' 769psdir='${docdir}' 770libdir='${exec_prefix}/lib' 771localedir='${datarootdir}/locale' 772mandir='${datarootdir}/man' 773 774ac_prev= 775ac_dashdash= 776for ac_option 777do 778 # If the previous option needs an argument, assign it. 779 if test -n "$ac_prev"; then 780 eval $ac_prev=\$ac_option 781 ac_prev= 782 continue 783 fi 784 785 case $ac_option in 786 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 787 *=) ac_optarg= ;; 788 *) ac_optarg=yes ;; 789 esac 790 791 # Accept the important Cygnus configure options, so we can diagnose typos. 792 793 case $ac_dashdash$ac_option in 794 --) 795 ac_dashdash=yes ;; 796 797 -bindir | --bindir | --bindi | --bind | --bin | --bi) 798 ac_prev=bindir ;; 799 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 800 bindir=$ac_optarg ;; 801 802 -build | --build | --buil | --bui | --bu) 803 ac_prev=build_alias ;; 804 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 805 build_alias=$ac_optarg ;; 806 807 -cache-file | --cache-file | --cache-fil | --cache-fi \ 808 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 809 ac_prev=cache_file ;; 810 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 811 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 812 cache_file=$ac_optarg ;; 813 814 --config-cache | -C) 815 cache_file=config.cache ;; 816 817 -datadir | --datadir | --datadi | --datad) 818 ac_prev=datadir ;; 819 -datadir=* | --datadir=* | --datadi=* | --datad=*) 820 datadir=$ac_optarg ;; 821 822 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 823 | --dataroo | --dataro | --datar) 824 ac_prev=datarootdir ;; 825 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 826 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 827 datarootdir=$ac_optarg ;; 828 829 -disable-* | --disable-*) 830 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 831 # Reject names that are not valid shell variable names. 832 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 833 as_fn_error $? "invalid feature name: $ac_useropt" 834 ac_useropt_orig=$ac_useropt 835 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 836 case $ac_user_opts in 837 *" 838"enable_$ac_useropt" 839"*) ;; 840 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 841 ac_unrecognized_sep=', ';; 842 esac 843 eval enable_$ac_useropt=no ;; 844 845 -docdir | --docdir | --docdi | --doc | --do) 846 ac_prev=docdir ;; 847 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 848 docdir=$ac_optarg ;; 849 850 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 851 ac_prev=dvidir ;; 852 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 853 dvidir=$ac_optarg ;; 854 855 -enable-* | --enable-*) 856 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 857 # Reject names that are not valid shell variable names. 858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 859 as_fn_error $? "invalid feature name: $ac_useropt" 860 ac_useropt_orig=$ac_useropt 861 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 862 case $ac_user_opts in 863 *" 864"enable_$ac_useropt" 865"*) ;; 866 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 867 ac_unrecognized_sep=', ';; 868 esac 869 eval enable_$ac_useropt=\$ac_optarg ;; 870 871 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 872 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 873 | --exec | --exe | --ex) 874 ac_prev=exec_prefix ;; 875 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 876 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 877 | --exec=* | --exe=* | --ex=*) 878 exec_prefix=$ac_optarg ;; 879 880 -gas | --gas | --ga | --g) 881 # Obsolete; use --with-gas. 882 with_gas=yes ;; 883 884 -help | --help | --hel | --he | -h) 885 ac_init_help=long ;; 886 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 887 ac_init_help=recursive ;; 888 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 889 ac_init_help=short ;; 890 891 -host | --host | --hos | --ho) 892 ac_prev=host_alias ;; 893 -host=* | --host=* | --hos=* | --ho=*) 894 host_alias=$ac_optarg ;; 895 896 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 897 ac_prev=htmldir ;; 898 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 899 | --ht=*) 900 htmldir=$ac_optarg ;; 901 902 -includedir | --includedir | --includedi | --included | --include \ 903 | --includ | --inclu | --incl | --inc) 904 ac_prev=includedir ;; 905 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 906 | --includ=* | --inclu=* | --incl=* | --inc=*) 907 includedir=$ac_optarg ;; 908 909 -infodir | --infodir | --infodi | --infod | --info | --inf) 910 ac_prev=infodir ;; 911 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 912 infodir=$ac_optarg ;; 913 914 -libdir | --libdir | --libdi | --libd) 915 ac_prev=libdir ;; 916 -libdir=* | --libdir=* | --libdi=* | --libd=*) 917 libdir=$ac_optarg ;; 918 919 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 920 | --libexe | --libex | --libe) 921 ac_prev=libexecdir ;; 922 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 923 | --libexe=* | --libex=* | --libe=*) 924 libexecdir=$ac_optarg ;; 925 926 -localedir | --localedir | --localedi | --localed | --locale) 927 ac_prev=localedir ;; 928 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 929 localedir=$ac_optarg ;; 930 931 -localstatedir | --localstatedir | --localstatedi | --localstated \ 932 | --localstate | --localstat | --localsta | --localst | --locals) 933 ac_prev=localstatedir ;; 934 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 935 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 936 localstatedir=$ac_optarg ;; 937 938 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 939 ac_prev=mandir ;; 940 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 941 mandir=$ac_optarg ;; 942 943 -nfp | --nfp | --nf) 944 # Obsolete; use --without-fp. 945 with_fp=no ;; 946 947 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 948 | --no-cr | --no-c | -n) 949 no_create=yes ;; 950 951 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 952 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 953 no_recursion=yes ;; 954 955 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 956 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 957 | --oldin | --oldi | --old | --ol | --o) 958 ac_prev=oldincludedir ;; 959 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 960 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 961 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 962 oldincludedir=$ac_optarg ;; 963 964 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 965 ac_prev=prefix ;; 966 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 967 prefix=$ac_optarg ;; 968 969 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 970 | --program-pre | --program-pr | --program-p) 971 ac_prev=program_prefix ;; 972 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 973 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 974 program_prefix=$ac_optarg ;; 975 976 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 977 | --program-suf | --program-su | --program-s) 978 ac_prev=program_suffix ;; 979 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 980 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 981 program_suffix=$ac_optarg ;; 982 983 -program-transform-name | --program-transform-name \ 984 | --program-transform-nam | --program-transform-na \ 985 | --program-transform-n | --program-transform- \ 986 | --program-transform | --program-transfor \ 987 | --program-transfo | --program-transf \ 988 | --program-trans | --program-tran \ 989 | --progr-tra | --program-tr | --program-t) 990 ac_prev=program_transform_name ;; 991 -program-transform-name=* | --program-transform-name=* \ 992 | --program-transform-nam=* | --program-transform-na=* \ 993 | --program-transform-n=* | --program-transform-=* \ 994 | --program-transform=* | --program-transfor=* \ 995 | --program-transfo=* | --program-transf=* \ 996 | --program-trans=* | --program-tran=* \ 997 | --progr-tra=* | --program-tr=* | --program-t=*) 998 program_transform_name=$ac_optarg ;; 999 1000 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1001 ac_prev=pdfdir ;; 1002 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1003 pdfdir=$ac_optarg ;; 1004 1005 -psdir | --psdir | --psdi | --psd | --ps) 1006 ac_prev=psdir ;; 1007 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1008 psdir=$ac_optarg ;; 1009 1010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1011 | -silent | --silent | --silen | --sile | --sil) 1012 silent=yes ;; 1013 1014 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1015 ac_prev=sbindir ;; 1016 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1017 | --sbi=* | --sb=*) 1018 sbindir=$ac_optarg ;; 1019 1020 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1021 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1022 | --sharedst | --shareds | --shared | --share | --shar \ 1023 | --sha | --sh) 1024 ac_prev=sharedstatedir ;; 1025 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1026 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1027 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1028 | --sha=* | --sh=*) 1029 sharedstatedir=$ac_optarg ;; 1030 1031 -site | --site | --sit) 1032 ac_prev=site ;; 1033 -site=* | --site=* | --sit=*) 1034 site=$ac_optarg ;; 1035 1036 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1037 ac_prev=srcdir ;; 1038 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1039 srcdir=$ac_optarg ;; 1040 1041 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1042 | --syscon | --sysco | --sysc | --sys | --sy) 1043 ac_prev=sysconfdir ;; 1044 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1045 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1046 sysconfdir=$ac_optarg ;; 1047 1048 -target | --target | --targe | --targ | --tar | --ta | --t) 1049 ac_prev=target_alias ;; 1050 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1051 target_alias=$ac_optarg ;; 1052 1053 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1054 verbose=yes ;; 1055 1056 -version | --version | --versio | --versi | --vers | -V) 1057 ac_init_version=: ;; 1058 1059 -with-* | --with-*) 1060 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1061 # Reject names that are not valid shell variable names. 1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1063 as_fn_error $? "invalid package name: $ac_useropt" 1064 ac_useropt_orig=$ac_useropt 1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1066 case $ac_user_opts in 1067 *" 1068"with_$ac_useropt" 1069"*) ;; 1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1071 ac_unrecognized_sep=', ';; 1072 esac 1073 eval with_$ac_useropt=\$ac_optarg ;; 1074 1075 -without-* | --without-*) 1076 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1077 # Reject names that are not valid shell variable names. 1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1079 as_fn_error $? "invalid package name: $ac_useropt" 1080 ac_useropt_orig=$ac_useropt 1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1082 case $ac_user_opts in 1083 *" 1084"with_$ac_useropt" 1085"*) ;; 1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1087 ac_unrecognized_sep=', ';; 1088 esac 1089 eval with_$ac_useropt=no ;; 1090 1091 --x) 1092 # Obsolete; use --with-x. 1093 with_x=yes ;; 1094 1095 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1096 | --x-incl | --x-inc | --x-in | --x-i) 1097 ac_prev=x_includes ;; 1098 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1099 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1100 x_includes=$ac_optarg ;; 1101 1102 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1103 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1104 ac_prev=x_libraries ;; 1105 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1106 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1107 x_libraries=$ac_optarg ;; 1108 1109 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1110Try \`$0 --help' for more information" 1111 ;; 1112 1113 *=*) 1114 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1115 # Reject names that are not valid shell variable names. 1116 case $ac_envvar in #( 1117 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1118 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1119 esac 1120 eval $ac_envvar=\$ac_optarg 1121 export $ac_envvar ;; 1122 1123 *) 1124 # FIXME: should be removed in autoconf 3.0. 1125 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1126 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1127 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1128 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1129 ;; 1130 1131 esac 1132done 1133 1134if test -n "$ac_prev"; then 1135 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1136 as_fn_error $? "missing argument to $ac_option" 1137fi 1138 1139if test -n "$ac_unrecognized_opts"; then 1140 case $enable_option_checking in 1141 no) ;; 1142 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1143 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1144 esac 1145fi 1146 1147# Check all directory arguments for consistency. 1148for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1149 datadir sysconfdir sharedstatedir localstatedir includedir \ 1150 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1151 libdir localedir mandir 1152do 1153 eval ac_val=\$$ac_var 1154 # Remove trailing slashes. 1155 case $ac_val in 1156 */ ) 1157 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1158 eval $ac_var=\$ac_val;; 1159 esac 1160 # Be sure to have absolute directory names. 1161 case $ac_val in 1162 [\\/$]* | ?:[\\/]* ) continue;; 1163 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1164 esac 1165 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1166done 1167 1168# There might be people who depend on the old broken behavior: `$host' 1169# used to hold the argument of --host etc. 1170# FIXME: To remove some day. 1171build=$build_alias 1172host=$host_alias 1173target=$target_alias 1174 1175# FIXME: To remove some day. 1176if test "x$host_alias" != x; then 1177 if test "x$build_alias" = x; then 1178 cross_compiling=maybe 1179 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1180 If a cross compiler is detected then cross compile mode will be used" >&2 1181 elif test "x$build_alias" != "x$host_alias"; then 1182 cross_compiling=yes 1183 fi 1184fi 1185 1186ac_tool_prefix= 1187test -n "$host_alias" && ac_tool_prefix=$host_alias- 1188 1189test "$silent" = yes && exec 6>/dev/null 1190 1191 1192ac_pwd=`pwd` && test -n "$ac_pwd" && 1193ac_ls_di=`ls -di .` && 1194ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1195 as_fn_error $? "working directory cannot be determined" 1196test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1197 as_fn_error $? "pwd does not report name of working directory" 1198 1199 1200# Find the source files, if location was not specified. 1201if test -z "$srcdir"; then 1202 ac_srcdir_defaulted=yes 1203 # Try the directory containing this script, then the parent directory. 1204 ac_confdir=`$as_dirname -- "$as_myself" || 1205$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1206 X"$as_myself" : 'X\(//\)[^/]' \| \ 1207 X"$as_myself" : 'X\(//\)$' \| \ 1208 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1209$as_echo X"$as_myself" | 1210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1211 s//\1/ 1212 q 1213 } 1214 /^X\(\/\/\)[^/].*/{ 1215 s//\1/ 1216 q 1217 } 1218 /^X\(\/\/\)$/{ 1219 s//\1/ 1220 q 1221 } 1222 /^X\(\/\).*/{ 1223 s//\1/ 1224 q 1225 } 1226 s/.*/./; q'` 1227 srcdir=$ac_confdir 1228 if test ! -r "$srcdir/$ac_unique_file"; then 1229 srcdir=.. 1230 fi 1231else 1232 ac_srcdir_defaulted=no 1233fi 1234if test ! -r "$srcdir/$ac_unique_file"; then 1235 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1236 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1237fi 1238ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1239ac_abs_confdir=`( 1240 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1241 pwd)` 1242# When building in place, set srcdir=. 1243if test "$ac_abs_confdir" = "$ac_pwd"; then 1244 srcdir=. 1245fi 1246# Remove unnecessary trailing slashes from srcdir. 1247# Double slashes in file names in object file debugging info 1248# mess up M-x gdb in Emacs. 1249case $srcdir in 1250*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1251esac 1252for ac_var in $ac_precious_vars; do 1253 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1254 eval ac_env_${ac_var}_value=\$${ac_var} 1255 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1256 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1257done 1258 1259# 1260# Report the --help message. 1261# 1262if test "$ac_init_help" = "long"; then 1263 # Omit some internal or obsolete options to make the list less imposing. 1264 # This message is too long to be a string in the A/UX 3.1 sh. 1265 cat <<_ACEOF 1266\`configure' configures this package to adapt to many kinds of systems. 1267 1268Usage: $0 [OPTION]... [VAR=VALUE]... 1269 1270To assign environment variables (e.g., CC, CFLAGS...), specify them as 1271VAR=VALUE. See below for descriptions of some of the useful variables. 1272 1273Defaults for the options are specified in brackets. 1274 1275Configuration: 1276 -h, --help display this help and exit 1277 --help=short display options specific to this package 1278 --help=recursive display the short help of all the included packages 1279 -V, --version display version information and exit 1280 -q, --quiet, --silent do not print \`checking ...' messages 1281 --cache-file=FILE cache test results in FILE [disabled] 1282 -C, --config-cache alias for \`--cache-file=config.cache' 1283 -n, --no-create do not create output files 1284 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1285 1286Installation directories: 1287 --prefix=PREFIX install architecture-independent files in PREFIX 1288 [$ac_default_prefix] 1289 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1290 [PREFIX] 1291 1292By default, \`make install' will install all the files in 1293\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1294an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1295for instance \`--prefix=\$HOME'. 1296 1297For better control, use the options below. 1298 1299Fine tuning of the installation directories: 1300 --bindir=DIR user executables [EPREFIX/bin] 1301 --sbindir=DIR system admin executables [EPREFIX/sbin] 1302 --libexecdir=DIR program executables [EPREFIX/libexec] 1303 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1304 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1305 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1306 --libdir=DIR object code libraries [EPREFIX/lib] 1307 --includedir=DIR C header files [PREFIX/include] 1308 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1309 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1310 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1311 --infodir=DIR info documentation [DATAROOTDIR/info] 1312 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1313 --mandir=DIR man documentation [DATAROOTDIR/man] 1314 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1315 --htmldir=DIR html documentation [DOCDIR] 1316 --dvidir=DIR dvi documentation [DOCDIR] 1317 --pdfdir=DIR pdf documentation [DOCDIR] 1318 --psdir=DIR ps documentation [DOCDIR] 1319_ACEOF 1320 1321 cat <<\_ACEOF 1322 1323System types: 1324 --build=BUILD configure for building on BUILD [guessed] 1325 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1326_ACEOF 1327fi 1328 1329if test -n "$ac_init_help"; then 1330 1331 cat <<\_ACEOF 1332 1333Optional Features: 1334 --disable-option-checking ignore unrecognized --enable/--with options 1335 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1336 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1337 --enable-relocatable install a package that can be moved in the file 1338 system 1339 --enable-shared[=PKGS] build shared libraries [default=yes] 1340 --enable-static[=PKGS] build static libraries [default=yes] 1341 --enable-fast-install[=PKGS] 1342 optimize for fast installation [default=yes] 1343 --disable-libtool-lock avoid locking (might break parallel builds) 1344 1345Optional Packages: 1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1348 --with-pic try to use only PIC/non-PIC objects [default=use 1349 both] 1350 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1351 --with-sysroot=DIR Search for dependent libraries within DIR 1352 (or the compiler's sysroot if not specified). 1353 1354Some influential environment variables: 1355 CC C compiler command 1356 CFLAGS C compiler flags 1357 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1358 nonstandard directory <lib dir> 1359 LIBS libraries to pass to the linker, e.g. -l<library> 1360 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1361 you have headers in a nonstandard directory <include dir> 1362 CPP C preprocessor 1363 1364Use these variables to override the choices made by `configure' or to help 1365it to find libraries and programs with nonstandard names/locations. 1366 1367Report bugs to the package provider. 1368_ACEOF 1369ac_status=$? 1370fi 1371 1372if test "$ac_init_help" = "recursive"; then 1373 # If there are subdirs, report their specific --help. 1374 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1375 test -d "$ac_dir" || 1376 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1377 continue 1378 ac_builddir=. 1379 1380case "$ac_dir" in 1381.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1382*) 1383 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1384 # A ".." for each directory in $ac_dir_suffix. 1385 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1386 case $ac_top_builddir_sub in 1387 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1388 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1389 esac ;; 1390esac 1391ac_abs_top_builddir=$ac_pwd 1392ac_abs_builddir=$ac_pwd$ac_dir_suffix 1393# for backward compatibility: 1394ac_top_builddir=$ac_top_build_prefix 1395 1396case $srcdir in 1397 .) # We are building in place. 1398 ac_srcdir=. 1399 ac_top_srcdir=$ac_top_builddir_sub 1400 ac_abs_top_srcdir=$ac_pwd ;; 1401 [\\/]* | ?:[\\/]* ) # Absolute name. 1402 ac_srcdir=$srcdir$ac_dir_suffix; 1403 ac_top_srcdir=$srcdir 1404 ac_abs_top_srcdir=$srcdir ;; 1405 *) # Relative name. 1406 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1407 ac_top_srcdir=$ac_top_build_prefix$srcdir 1408 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1409esac 1410ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1411 1412 cd "$ac_dir" || { ac_status=$?; continue; } 1413 # Check for guested configure. 1414 if test -f "$ac_srcdir/configure.gnu"; then 1415 echo && 1416 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1417 elif test -f "$ac_srcdir/configure"; then 1418 echo && 1419 $SHELL "$ac_srcdir/configure" --help=recursive 1420 else 1421 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1422 fi || ac_status=$? 1423 cd "$ac_pwd" || { ac_status=$?; break; } 1424 done 1425fi 1426 1427test -n "$ac_init_help" && exit $ac_status 1428if $ac_init_version; then 1429 cat <<\_ACEOF 1430configure 1431generated by GNU Autoconf 2.68 1432 1433Copyright (C) 2010 Free Software Foundation, Inc. 1434This configure script is free software; the Free Software Foundation 1435gives unlimited permission to copy, distribute and modify it. 1436_ACEOF 1437 exit 1438fi 1439 1440## ------------------------ ## 1441## Autoconf initialization. ## 1442## ------------------------ ## 1443 1444# ac_fn_c_try_compile LINENO 1445# -------------------------- 1446# Try to compile conftest.$ac_ext, and return whether this succeeded. 1447ac_fn_c_try_compile () 1448{ 1449 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1450 rm -f conftest.$ac_objext 1451 if { { ac_try="$ac_compile" 1452case "(($ac_try" in 1453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1454 *) ac_try_echo=$ac_try;; 1455esac 1456eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1457$as_echo "$ac_try_echo"; } >&5 1458 (eval "$ac_compile") 2>conftest.err 1459 ac_status=$? 1460 if test -s conftest.err; then 1461 grep -v '^ *+' conftest.err >conftest.er1 1462 cat conftest.er1 >&5 1463 mv -f conftest.er1 conftest.err 1464 fi 1465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1466 test $ac_status = 0; } && { 1467 test -z "$ac_c_werror_flag" || 1468 test ! -s conftest.err 1469 } && test -s conftest.$ac_objext; then : 1470 ac_retval=0 1471else 1472 $as_echo "$as_me: failed program was:" >&5 1473sed 's/^/| /' conftest.$ac_ext >&5 1474 1475 ac_retval=1 1476fi 1477 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1478 as_fn_set_status $ac_retval 1479 1480} # ac_fn_c_try_compile 1481 1482# ac_fn_c_try_cpp LINENO 1483# ---------------------- 1484# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1485ac_fn_c_try_cpp () 1486{ 1487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1488 if { { ac_try="$ac_cpp conftest.$ac_ext" 1489case "(($ac_try" in 1490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1491 *) ac_try_echo=$ac_try;; 1492esac 1493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1494$as_echo "$ac_try_echo"; } >&5 1495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1496 ac_status=$? 1497 if test -s conftest.err; then 1498 grep -v '^ *+' conftest.err >conftest.er1 1499 cat conftest.er1 >&5 1500 mv -f conftest.er1 conftest.err 1501 fi 1502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1503 test $ac_status = 0; } > conftest.i && { 1504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1505 test ! -s conftest.err 1506 }; then : 1507 ac_retval=0 1508else 1509 $as_echo "$as_me: failed program was:" >&5 1510sed 's/^/| /' conftest.$ac_ext >&5 1511 1512 ac_retval=1 1513fi 1514 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1515 as_fn_set_status $ac_retval 1516 1517} # ac_fn_c_try_cpp 1518 1519# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1520# ------------------------------------------------------- 1521# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1522# the include files in INCLUDES and setting the cache variable VAR 1523# accordingly. 1524ac_fn_c_check_header_mongrel () 1525{ 1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1527 if eval \${$3+:} false; then : 1528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1529$as_echo_n "checking for $2... " >&6; } 1530if eval \${$3+:} false; then : 1531 $as_echo_n "(cached) " >&6 1532fi 1533eval ac_res=\$$3 1534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1535$as_echo "$ac_res" >&6; } 1536else 1537 # Is the header compilable? 1538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1539$as_echo_n "checking $2 usability... " >&6; } 1540cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1541/* end confdefs.h. */ 1542$4 1543#include <$2> 1544_ACEOF 1545if ac_fn_c_try_compile "$LINENO"; then : 1546 ac_header_compiler=yes 1547else 1548 ac_header_compiler=no 1549fi 1550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1552$as_echo "$ac_header_compiler" >&6; } 1553 1554# Is the header present? 1555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1556$as_echo_n "checking $2 presence... " >&6; } 1557cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1558/* end confdefs.h. */ 1559#include <$2> 1560_ACEOF 1561if ac_fn_c_try_cpp "$LINENO"; then : 1562 ac_header_preproc=yes 1563else 1564 ac_header_preproc=no 1565fi 1566rm -f conftest.err conftest.i conftest.$ac_ext 1567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1568$as_echo "$ac_header_preproc" >&6; } 1569 1570# So? What about this header? 1571case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1572 yes:no: ) 1573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1574$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1576$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1577 ;; 1578 no:yes:* ) 1579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1580$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1582$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1584$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1586$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1588$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1589 ;; 1590esac 1591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1592$as_echo_n "checking for $2... " >&6; } 1593if eval \${$3+:} false; then : 1594 $as_echo_n "(cached) " >&6 1595else 1596 eval "$3=\$ac_header_compiler" 1597fi 1598eval ac_res=\$$3 1599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1600$as_echo "$ac_res" >&6; } 1601fi 1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1603 1604} # ac_fn_c_check_header_mongrel 1605 1606# ac_fn_c_try_run LINENO 1607# ---------------------- 1608# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1609# that executables *can* be run. 1610ac_fn_c_try_run () 1611{ 1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1613 if { { ac_try="$ac_link" 1614case "(($ac_try" in 1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1616 *) ac_try_echo=$ac_try;; 1617esac 1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1619$as_echo "$ac_try_echo"; } >&5 1620 (eval "$ac_link") 2>&5 1621 ac_status=$? 1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1623 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1624 { { case "(($ac_try" in 1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1626 *) ac_try_echo=$ac_try;; 1627esac 1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1629$as_echo "$ac_try_echo"; } >&5 1630 (eval "$ac_try") 2>&5 1631 ac_status=$? 1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1633 test $ac_status = 0; }; }; then : 1634 ac_retval=0 1635else 1636 $as_echo "$as_me: program exited with status $ac_status" >&5 1637 $as_echo "$as_me: failed program was:" >&5 1638sed 's/^/| /' conftest.$ac_ext >&5 1639 1640 ac_retval=$ac_status 1641fi 1642 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1644 as_fn_set_status $ac_retval 1645 1646} # ac_fn_c_try_run 1647 1648# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1649# ------------------------------------------------------- 1650# Tests whether HEADER exists and can be compiled using the include files in 1651# INCLUDES, setting the cache variable VAR accordingly. 1652ac_fn_c_check_header_compile () 1653{ 1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1656$as_echo_n "checking for $2... " >&6; } 1657if eval \${$3+:} false; then : 1658 $as_echo_n "(cached) " >&6 1659else 1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1661/* end confdefs.h. */ 1662$4 1663#include <$2> 1664_ACEOF 1665if ac_fn_c_try_compile "$LINENO"; then : 1666 eval "$3=yes" 1667else 1668 eval "$3=no" 1669fi 1670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1671fi 1672eval ac_res=\$$3 1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1674$as_echo "$ac_res" >&6; } 1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1676 1677} # ac_fn_c_check_header_compile 1678 1679# ac_fn_c_try_link LINENO 1680# ----------------------- 1681# Try to link conftest.$ac_ext, and return whether this succeeded. 1682ac_fn_c_try_link () 1683{ 1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1685 rm -f conftest.$ac_objext conftest$ac_exeext 1686 if { { ac_try="$ac_link" 1687case "(($ac_try" in 1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1689 *) ac_try_echo=$ac_try;; 1690esac 1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1692$as_echo "$ac_try_echo"; } >&5 1693 (eval "$ac_link") 2>conftest.err 1694 ac_status=$? 1695 if test -s conftest.err; then 1696 grep -v '^ *+' conftest.err >conftest.er1 1697 cat conftest.er1 >&5 1698 mv -f conftest.er1 conftest.err 1699 fi 1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1701 test $ac_status = 0; } && { 1702 test -z "$ac_c_werror_flag" || 1703 test ! -s conftest.err 1704 } && test -s conftest$ac_exeext && { 1705 test "$cross_compiling" = yes || 1706 $as_test_x conftest$ac_exeext 1707 }; then : 1708 ac_retval=0 1709else 1710 $as_echo "$as_me: failed program was:" >&5 1711sed 's/^/| /' conftest.$ac_ext >&5 1712 1713 ac_retval=1 1714fi 1715 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1716 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1717 # interfere with the next link command; also delete a directory that is 1718 # left behind by Apple's compiler. We do this before executing the actions. 1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1721 as_fn_set_status $ac_retval 1722 1723} # ac_fn_c_try_link 1724 1725# ac_fn_c_check_func LINENO FUNC VAR 1726# ---------------------------------- 1727# Tests whether FUNC exists, setting the cache variable VAR accordingly 1728ac_fn_c_check_func () 1729{ 1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1732$as_echo_n "checking for $2... " >&6; } 1733if eval \${$3+:} false; then : 1734 $as_echo_n "(cached) " >&6 1735else 1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1737/* end confdefs.h. */ 1738/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1739 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1740#define $2 innocuous_$2 1741 1742/* System header to define __stub macros and hopefully few prototypes, 1743 which can conflict with char $2 (); below. 1744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1745 <limits.h> exists even on freestanding compilers. */ 1746 1747#ifdef __STDC__ 1748# include <limits.h> 1749#else 1750# include <assert.h> 1751#endif 1752 1753#undef $2 1754 1755/* Override any GCC internal prototype to avoid an error. 1756 Use char because int might match the return type of a GCC 1757 builtin and then its argument prototype would still apply. */ 1758#ifdef __cplusplus 1759extern "C" 1760#endif 1761char $2 (); 1762/* The GNU C library defines this for functions which it implements 1763 to always fail with ENOSYS. Some functions are actually named 1764 something starting with __ and the normal name is an alias. */ 1765#if defined __stub_$2 || defined __stub___$2 1766choke me 1767#endif 1768 1769int 1770main () 1771{ 1772return $2 (); 1773 ; 1774 return 0; 1775} 1776_ACEOF 1777if ac_fn_c_try_link "$LINENO"; then : 1778 eval "$3=yes" 1779else 1780 eval "$3=no" 1781fi 1782rm -f core conftest.err conftest.$ac_objext \ 1783 conftest$ac_exeext conftest.$ac_ext 1784fi 1785eval ac_res=\$$3 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1787$as_echo "$ac_res" >&6; } 1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1789 1790} # ac_fn_c_check_func 1791cat >config.log <<_ACEOF 1792This file contains any messages produced by compilers while 1793running configure, to aid debugging if configure makes a mistake. 1794 1795It was created by $as_me, which was 1796generated by GNU Autoconf 2.68. Invocation command line was 1797 1798 $ $0 $@ 1799 1800_ACEOF 1801exec 5>>config.log 1802{ 1803cat <<_ASUNAME 1804## --------- ## 1805## Platform. ## 1806## --------- ## 1807 1808hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1809uname -m = `(uname -m) 2>/dev/null || echo unknown` 1810uname -r = `(uname -r) 2>/dev/null || echo unknown` 1811uname -s = `(uname -s) 2>/dev/null || echo unknown` 1812uname -v = `(uname -v) 2>/dev/null || echo unknown` 1813 1814/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1815/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1816 1817/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1818/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1819/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1820/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1821/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1822/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1823/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1824 1825_ASUNAME 1826 1827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1828for as_dir in $PATH 1829do 1830 IFS=$as_save_IFS 1831 test -z "$as_dir" && as_dir=. 1832 $as_echo "PATH: $as_dir" 1833 done 1834IFS=$as_save_IFS 1835 1836} >&5 1837 1838cat >&5 <<_ACEOF 1839 1840 1841## ----------- ## 1842## Core tests. ## 1843## ----------- ## 1844 1845_ACEOF 1846 1847 1848# Keep a trace of the command line. 1849# Strip out --no-create and --no-recursion so they do not pile up. 1850# Strip out --silent because we don't want to record it for future runs. 1851# Also quote any args containing shell meta-characters. 1852# Make two passes to allow for proper duplicate-argument suppression. 1853ac_configure_args= 1854ac_configure_args0= 1855ac_configure_args1= 1856ac_must_keep_next=false 1857for ac_pass in 1 2 1858do 1859 for ac_arg 1860 do 1861 case $ac_arg in 1862 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1863 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1864 | -silent | --silent | --silen | --sile | --sil) 1865 continue ;; 1866 *\'*) 1867 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1868 esac 1869 case $ac_pass in 1870 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1871 2) 1872 as_fn_append ac_configure_args1 " '$ac_arg'" 1873 if test $ac_must_keep_next = true; then 1874 ac_must_keep_next=false # Got value, back to normal. 1875 else 1876 case $ac_arg in 1877 *=* | --config-cache | -C | -disable-* | --disable-* \ 1878 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1879 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1880 | -with-* | --with-* | -without-* | --without-* | --x) 1881 case "$ac_configure_args0 " in 1882 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1883 esac 1884 ;; 1885 -* ) ac_must_keep_next=true ;; 1886 esac 1887 fi 1888 as_fn_append ac_configure_args " '$ac_arg'" 1889 ;; 1890 esac 1891 done 1892done 1893{ ac_configure_args0=; unset ac_configure_args0;} 1894{ ac_configure_args1=; unset ac_configure_args1;} 1895 1896# When interrupted or exit'd, cleanup temporary files, and complete 1897# config.log. We remove comments because anyway the quotes in there 1898# would cause problems or look ugly. 1899# WARNING: Use '\'' to represent an apostrophe within the trap. 1900# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1901trap 'exit_status=$? 1902 # Save into config.log some information that might help in debugging. 1903 { 1904 echo 1905 1906 $as_echo "## ---------------- ## 1907## Cache variables. ## 1908## ---------------- ##" 1909 echo 1910 # The following way of writing the cache mishandles newlines in values, 1911( 1912 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1913 eval ac_val=\$$ac_var 1914 case $ac_val in #( 1915 *${as_nl}*) 1916 case $ac_var in #( 1917 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1918$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1919 esac 1920 case $ac_var in #( 1921 _ | IFS | as_nl) ;; #( 1922 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1923 *) { eval $ac_var=; unset $ac_var;} ;; 1924 esac ;; 1925 esac 1926 done 1927 (set) 2>&1 | 1928 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1929 *${as_nl}ac_space=\ *) 1930 sed -n \ 1931 "s/'\''/'\''\\\\'\'''\''/g; 1932 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1933 ;; #( 1934 *) 1935 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1936 ;; 1937 esac | 1938 sort 1939) 1940 echo 1941 1942 $as_echo "## ----------------- ## 1943## Output variables. ## 1944## ----------------- ##" 1945 echo 1946 for ac_var in $ac_subst_vars 1947 do 1948 eval ac_val=\$$ac_var 1949 case $ac_val in 1950 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1951 esac 1952 $as_echo "$ac_var='\''$ac_val'\''" 1953 done | sort 1954 echo 1955 1956 if test -n "$ac_subst_files"; then 1957 $as_echo "## ------------------- ## 1958## File substitutions. ## 1959## ------------------- ##" 1960 echo 1961 for ac_var in $ac_subst_files 1962 do 1963 eval ac_val=\$$ac_var 1964 case $ac_val in 1965 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1966 esac 1967 $as_echo "$ac_var='\''$ac_val'\''" 1968 done | sort 1969 echo 1970 fi 1971 1972 if test -s confdefs.h; then 1973 $as_echo "## ----------- ## 1974## confdefs.h. ## 1975## ----------- ##" 1976 echo 1977 cat confdefs.h 1978 echo 1979 fi 1980 test "$ac_signal" != 0 && 1981 $as_echo "$as_me: caught signal $ac_signal" 1982 $as_echo "$as_me: exit $exit_status" 1983 } >&5 1984 rm -f core *.core core.conftest.* && 1985 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1986 exit $exit_status 1987' 0 1988for ac_signal in 1 2 13 15; do 1989 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1990done 1991ac_signal=0 1992 1993# confdefs.h avoids OS command line length limits that DEFS can exceed. 1994rm -f -r conftest* confdefs.h 1995 1996$as_echo "/* confdefs.h */" > confdefs.h 1997 1998# Predefined preprocessor variables. 1999 2000cat >>confdefs.h <<_ACEOF 2001#define PACKAGE_NAME "$PACKAGE_NAME" 2002_ACEOF 2003 2004cat >>confdefs.h <<_ACEOF 2005#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2006_ACEOF 2007 2008cat >>confdefs.h <<_ACEOF 2009#define PACKAGE_VERSION "$PACKAGE_VERSION" 2010_ACEOF 2011 2012cat >>confdefs.h <<_ACEOF 2013#define PACKAGE_STRING "$PACKAGE_STRING" 2014_ACEOF 2015 2016cat >>confdefs.h <<_ACEOF 2017#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2018_ACEOF 2019 2020cat >>confdefs.h <<_ACEOF 2021#define PACKAGE_URL "$PACKAGE_URL" 2022_ACEOF 2023 2024 2025# Let the site file select an alternate cache file if it wants to. 2026# Prefer an explicitly selected file to automatically selected ones. 2027ac_site_file1=NONE 2028ac_site_file2=NONE 2029if test -n "$CONFIG_SITE"; then 2030 # We do not want a PATH search for config.site. 2031 case $CONFIG_SITE in #(( 2032 -*) ac_site_file1=./$CONFIG_SITE;; 2033 */*) ac_site_file1=$CONFIG_SITE;; 2034 *) ac_site_file1=./$CONFIG_SITE;; 2035 esac 2036elif test "x$prefix" != xNONE; then 2037 ac_site_file1=$prefix/share/config.site 2038 ac_site_file2=$prefix/etc/config.site 2039else 2040 ac_site_file1=$ac_default_prefix/share/config.site 2041 ac_site_file2=$ac_default_prefix/etc/config.site 2042fi 2043for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2044do 2045 test "x$ac_site_file" = xNONE && continue 2046 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2047 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2048$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2049 sed 's/^/| /' "$ac_site_file" >&5 2050 . "$ac_site_file" \ 2051 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2053as_fn_error $? "failed to load site script $ac_site_file 2054See \`config.log' for more details" "$LINENO" 5; } 2055 fi 2056done 2057 2058if test -r "$cache_file"; then 2059 # Some versions of bash will fail to source /dev/null (special files 2060 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2061 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2062 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2063$as_echo "$as_me: loading cache $cache_file" >&6;} 2064 case $cache_file in 2065 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2066 *) . "./$cache_file";; 2067 esac 2068 fi 2069else 2070 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2071$as_echo "$as_me: creating cache $cache_file" >&6;} 2072 >$cache_file 2073fi 2074 2075# Check that the precious variables saved in the cache have kept the same 2076# value. 2077ac_cache_corrupted=false 2078for ac_var in $ac_precious_vars; do 2079 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2080 eval ac_new_set=\$ac_env_${ac_var}_set 2081 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2082 eval ac_new_val=\$ac_env_${ac_var}_value 2083 case $ac_old_set,$ac_new_set in 2084 set,) 2085 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2086$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2087 ac_cache_corrupted=: ;; 2088 ,set) 2089 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2090$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2091 ac_cache_corrupted=: ;; 2092 ,);; 2093 *) 2094 if test "x$ac_old_val" != "x$ac_new_val"; then 2095 # differences in whitespace do not lead to failure. 2096 ac_old_val_w=`echo x $ac_old_val` 2097 ac_new_val_w=`echo x $ac_new_val` 2098 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2100$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2101 ac_cache_corrupted=: 2102 else 2103 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2104$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2105 eval $ac_var=\$ac_old_val 2106 fi 2107 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2108$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2109 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2110$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2111 fi;; 2112 esac 2113 # Pass precious variables to config.status. 2114 if test "$ac_new_set" = set; then 2115 case $ac_new_val in 2116 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2117 *) ac_arg=$ac_var=$ac_new_val ;; 2118 esac 2119 case " $ac_configure_args " in 2120 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2121 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2122 esac 2123 fi 2124done 2125if $ac_cache_corrupted; then 2126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2129$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2130 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2131fi 2132## -------------------- ## 2133## Main body of script. ## 2134## -------------------- ## 2135 2136ac_ext=c 2137ac_cpp='$CPP $CPPFLAGS' 2138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2140ac_compiler_gnu=$ac_cv_c_compiler_gnu 2141 2142 2143ac_aux_dir= 2144for ac_dir in ../build-aux "$srcdir"/../build-aux; do 2145 if test -f "$ac_dir/install-sh"; then 2146 ac_aux_dir=$ac_dir 2147 ac_install_sh="$ac_aux_dir/install-sh -c" 2148 break 2149 elif test -f "$ac_dir/install.sh"; then 2150 ac_aux_dir=$ac_dir 2151 ac_install_sh="$ac_aux_dir/install.sh -c" 2152 break 2153 elif test -f "$ac_dir/shtool"; then 2154 ac_aux_dir=$ac_dir 2155 ac_install_sh="$ac_aux_dir/shtool install -c" 2156 break 2157 fi 2158done 2159if test -z "$ac_aux_dir"; then 2160 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../build-aux \"$srcdir\"/../build-aux" "$LINENO" 5 2161fi 2162 2163# These three variables are undocumented and unsupported, 2164# and are intended to be withdrawn in a future Autoconf release. 2165# They can cause serious problems if a builder's source tree is in a directory 2166# whose full name contains unusual characters. 2167ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2168ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2169ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2170 2171 2172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2173$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2174set x ${MAKE-make} 2175ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2176if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2177 $as_echo_n "(cached) " >&6 2178else 2179 cat >conftest.make <<\_ACEOF 2180SHELL = /bin/sh 2181all: 2182 @echo '@@@%%%=$(MAKE)=@@@%%%' 2183_ACEOF 2184# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2185case `${MAKE-make} -f conftest.make 2>/dev/null` in 2186 *@@@%%%=?*=@@@%%%*) 2187 eval ac_cv_prog_make_${ac_make}_set=yes;; 2188 *) 2189 eval ac_cv_prog_make_${ac_make}_set=no;; 2190esac 2191rm -f conftest.make 2192fi 2193if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2195$as_echo "yes" >&6; } 2196 SET_MAKE= 2197else 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2199$as_echo "no" >&6; } 2200 SET_MAKE="MAKE=${MAKE-make}" 2201fi 2202 2203 2204 2205 2206 2207ac_ext=c 2208ac_cpp='$CPP $CPPFLAGS' 2209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2211ac_compiler_gnu=$ac_cv_c_compiler_gnu 2212if test -n "$ac_tool_prefix"; then 2213 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2214set dummy ${ac_tool_prefix}gcc; ac_word=$2 2215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2216$as_echo_n "checking for $ac_word... " >&6; } 2217if ${ac_cv_prog_CC+:} false; then : 2218 $as_echo_n "(cached) " >&6 2219else 2220 if test -n "$CC"; then 2221 ac_cv_prog_CC="$CC" # Let the user override the test. 2222else 2223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2224for as_dir in $PATH 2225do 2226 IFS=$as_save_IFS 2227 test -z "$as_dir" && as_dir=. 2228 for ac_exec_ext in '' $ac_executable_extensions; do 2229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2230 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2232 break 2 2233 fi 2234done 2235 done 2236IFS=$as_save_IFS 2237 2238fi 2239fi 2240CC=$ac_cv_prog_CC 2241if test -n "$CC"; then 2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2243$as_echo "$CC" >&6; } 2244else 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2246$as_echo "no" >&6; } 2247fi 2248 2249 2250fi 2251if test -z "$ac_cv_prog_CC"; then 2252 ac_ct_CC=$CC 2253 # Extract the first word of "gcc", so it can be a program name with args. 2254set dummy gcc; ac_word=$2 2255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2256$as_echo_n "checking for $ac_word... " >&6; } 2257if ${ac_cv_prog_ac_ct_CC+:} false; then : 2258 $as_echo_n "(cached) " >&6 2259else 2260 if test -n "$ac_ct_CC"; then 2261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2262else 2263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2264for as_dir in $PATH 2265do 2266 IFS=$as_save_IFS 2267 test -z "$as_dir" && as_dir=. 2268 for ac_exec_ext in '' $ac_executable_extensions; do 2269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2270 ac_cv_prog_ac_ct_CC="gcc" 2271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2272 break 2 2273 fi 2274done 2275 done 2276IFS=$as_save_IFS 2277 2278fi 2279fi 2280ac_ct_CC=$ac_cv_prog_ac_ct_CC 2281if test -n "$ac_ct_CC"; then 2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2283$as_echo "$ac_ct_CC" >&6; } 2284else 2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2286$as_echo "no" >&6; } 2287fi 2288 2289 if test "x$ac_ct_CC" = x; then 2290 CC="" 2291 else 2292 case $cross_compiling:$ac_tool_warned in 2293yes:) 2294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2296ac_tool_warned=yes ;; 2297esac 2298 CC=$ac_ct_CC 2299 fi 2300else 2301 CC="$ac_cv_prog_CC" 2302fi 2303 2304if test -z "$CC"; then 2305 if test -n "$ac_tool_prefix"; then 2306 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2307set dummy ${ac_tool_prefix}cc; ac_word=$2 2308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2309$as_echo_n "checking for $ac_word... " >&6; } 2310if ${ac_cv_prog_CC+:} false; then : 2311 $as_echo_n "(cached) " >&6 2312else 2313 if test -n "$CC"; then 2314 ac_cv_prog_CC="$CC" # Let the user override the test. 2315else 2316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2317for as_dir in $PATH 2318do 2319 IFS=$as_save_IFS 2320 test -z "$as_dir" && as_dir=. 2321 for ac_exec_ext in '' $ac_executable_extensions; do 2322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2323 ac_cv_prog_CC="${ac_tool_prefix}cc" 2324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2325 break 2 2326 fi 2327done 2328 done 2329IFS=$as_save_IFS 2330 2331fi 2332fi 2333CC=$ac_cv_prog_CC 2334if test -n "$CC"; then 2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2336$as_echo "$CC" >&6; } 2337else 2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2339$as_echo "no" >&6; } 2340fi 2341 2342 2343 fi 2344fi 2345if test -z "$CC"; then 2346 # Extract the first word of "cc", so it can be a program name with args. 2347set dummy cc; ac_word=$2 2348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2349$as_echo_n "checking for $ac_word... " >&6; } 2350if ${ac_cv_prog_CC+:} false; then : 2351 $as_echo_n "(cached) " >&6 2352else 2353 if test -n "$CC"; then 2354 ac_cv_prog_CC="$CC" # Let the user override the test. 2355else 2356 ac_prog_rejected=no 2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2358for as_dir in $PATH 2359do 2360 IFS=$as_save_IFS 2361 test -z "$as_dir" && as_dir=. 2362 for ac_exec_ext in '' $ac_executable_extensions; do 2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2364 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2365 ac_prog_rejected=yes 2366 continue 2367 fi 2368 ac_cv_prog_CC="cc" 2369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2370 break 2 2371 fi 2372done 2373 done 2374IFS=$as_save_IFS 2375 2376if test $ac_prog_rejected = yes; then 2377 # We found a bogon in the path, so make sure we never use it. 2378 set dummy $ac_cv_prog_CC 2379 shift 2380 if test $# != 0; then 2381 # We chose a different compiler from the bogus one. 2382 # However, it has the same basename, so the bogon will be chosen 2383 # first if we set CC to just the basename; use the full file name. 2384 shift 2385 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2386 fi 2387fi 2388fi 2389fi 2390CC=$ac_cv_prog_CC 2391if test -n "$CC"; then 2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2393$as_echo "$CC" >&6; } 2394else 2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2396$as_echo "no" >&6; } 2397fi 2398 2399 2400fi 2401if test -z "$CC"; then 2402 if test -n "$ac_tool_prefix"; then 2403 for ac_prog in cl.exe 2404 do 2405 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2406set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2408$as_echo_n "checking for $ac_word... " >&6; } 2409if ${ac_cv_prog_CC+:} false; then : 2410 $as_echo_n "(cached) " >&6 2411else 2412 if test -n "$CC"; then 2413 ac_cv_prog_CC="$CC" # Let the user override the test. 2414else 2415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2416for as_dir in $PATH 2417do 2418 IFS=$as_save_IFS 2419 test -z "$as_dir" && as_dir=. 2420 for ac_exec_ext in '' $ac_executable_extensions; do 2421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2422 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2424 break 2 2425 fi 2426done 2427 done 2428IFS=$as_save_IFS 2429 2430fi 2431fi 2432CC=$ac_cv_prog_CC 2433if test -n "$CC"; then 2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2435$as_echo "$CC" >&6; } 2436else 2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2438$as_echo "no" >&6; } 2439fi 2440 2441 2442 test -n "$CC" && break 2443 done 2444fi 2445if test -z "$CC"; then 2446 ac_ct_CC=$CC 2447 for ac_prog in cl.exe 2448do 2449 # Extract the first word of "$ac_prog", so it can be a program name with args. 2450set dummy $ac_prog; ac_word=$2 2451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2452$as_echo_n "checking for $ac_word... " >&6; } 2453if ${ac_cv_prog_ac_ct_CC+:} false; then : 2454 $as_echo_n "(cached) " >&6 2455else 2456 if test -n "$ac_ct_CC"; then 2457 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2458else 2459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2460for as_dir in $PATH 2461do 2462 IFS=$as_save_IFS 2463 test -z "$as_dir" && as_dir=. 2464 for ac_exec_ext in '' $ac_executable_extensions; do 2465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2466 ac_cv_prog_ac_ct_CC="$ac_prog" 2467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2468 break 2 2469 fi 2470done 2471 done 2472IFS=$as_save_IFS 2473 2474fi 2475fi 2476ac_ct_CC=$ac_cv_prog_ac_ct_CC 2477if test -n "$ac_ct_CC"; then 2478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2479$as_echo "$ac_ct_CC" >&6; } 2480else 2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2482$as_echo "no" >&6; } 2483fi 2484 2485 2486 test -n "$ac_ct_CC" && break 2487done 2488 2489 if test "x$ac_ct_CC" = x; then 2490 CC="" 2491 else 2492 case $cross_compiling:$ac_tool_warned in 2493yes:) 2494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2496ac_tool_warned=yes ;; 2497esac 2498 CC=$ac_ct_CC 2499 fi 2500fi 2501 2502fi 2503 2504 2505test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2507as_fn_error $? "no acceptable C compiler found in \$PATH 2508See \`config.log' for more details" "$LINENO" 5; } 2509 2510# Provide some information about the compiler. 2511$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2512set X $ac_compile 2513ac_compiler=$2 2514for ac_option in --version -v -V -qversion; do 2515 { { ac_try="$ac_compiler $ac_option >&5" 2516case "(($ac_try" in 2517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2518 *) ac_try_echo=$ac_try;; 2519esac 2520eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2521$as_echo "$ac_try_echo"; } >&5 2522 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2523 ac_status=$? 2524 if test -s conftest.err; then 2525 sed '10a\ 2526... rest of stderr output deleted ... 2527 10q' conftest.err >conftest.er1 2528 cat conftest.er1 >&5 2529 fi 2530 rm -f conftest.er1 conftest.err 2531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2532 test $ac_status = 0; } 2533done 2534 2535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2536/* end confdefs.h. */ 2537 2538int 2539main () 2540{ 2541 2542 ; 2543 return 0; 2544} 2545_ACEOF 2546ac_clean_files_save=$ac_clean_files 2547ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2548# Try to create an executable without -o first, disregard a.out. 2549# It will help us diagnose broken compilers, and finding out an intuition 2550# of exeext. 2551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2552$as_echo_n "checking whether the C compiler works... " >&6; } 2553ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2554 2555# The possible output files: 2556ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2557 2558ac_rmfiles= 2559for ac_file in $ac_files 2560do 2561 case $ac_file in 2562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2563 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2564 esac 2565done 2566rm -f $ac_rmfiles 2567 2568if { { ac_try="$ac_link_default" 2569case "(($ac_try" in 2570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2571 *) ac_try_echo=$ac_try;; 2572esac 2573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2574$as_echo "$ac_try_echo"; } >&5 2575 (eval "$ac_link_default") 2>&5 2576 ac_status=$? 2577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2578 test $ac_status = 0; }; then : 2579 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2580# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2581# in a Makefile. We should not override ac_cv_exeext if it was cached, 2582# so that the user can short-circuit this test for compilers unknown to 2583# Autoconf. 2584for ac_file in $ac_files '' 2585do 2586 test -f "$ac_file" || continue 2587 case $ac_file in 2588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2589 ;; 2590 [ab].out ) 2591 # We found the default executable, but exeext='' is most 2592 # certainly right. 2593 break;; 2594 *.* ) 2595 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2596 then :; else 2597 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2598 fi 2599 # We set ac_cv_exeext here because the later test for it is not 2600 # safe: cross compilers may not add the suffix if given an `-o' 2601 # argument, so we may need to know it at that point already. 2602 # Even if this section looks crufty: it has the advantage of 2603 # actually working. 2604 break;; 2605 * ) 2606 break;; 2607 esac 2608done 2609test "$ac_cv_exeext" = no && ac_cv_exeext= 2610 2611else 2612 ac_file='' 2613fi 2614if test -z "$ac_file"; then : 2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2616$as_echo "no" >&6; } 2617$as_echo "$as_me: failed program was:" >&5 2618sed 's/^/| /' conftest.$ac_ext >&5 2619 2620{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2622as_fn_error 77 "C compiler cannot create executables 2623See \`config.log' for more details" "$LINENO" 5; } 2624else 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2626$as_echo "yes" >&6; } 2627fi 2628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2629$as_echo_n "checking for C compiler default output file name... " >&6; } 2630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2631$as_echo "$ac_file" >&6; } 2632ac_exeext=$ac_cv_exeext 2633 2634rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2635ac_clean_files=$ac_clean_files_save 2636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2637$as_echo_n "checking for suffix of executables... " >&6; } 2638if { { ac_try="$ac_link" 2639case "(($ac_try" in 2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2641 *) ac_try_echo=$ac_try;; 2642esac 2643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2644$as_echo "$ac_try_echo"; } >&5 2645 (eval "$ac_link") 2>&5 2646 ac_status=$? 2647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2648 test $ac_status = 0; }; then : 2649 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2650# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2651# work properly (i.e., refer to `conftest.exe'), while it won't with 2652# `rm'. 2653for ac_file in conftest.exe conftest conftest.*; do 2654 test -f "$ac_file" || continue 2655 case $ac_file in 2656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2657 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2658 break;; 2659 * ) break;; 2660 esac 2661done 2662else 2663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2665as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2666See \`config.log' for more details" "$LINENO" 5; } 2667fi 2668rm -f conftest conftest$ac_cv_exeext 2669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2670$as_echo "$ac_cv_exeext" >&6; } 2671 2672rm -f conftest.$ac_ext 2673EXEEXT=$ac_cv_exeext 2674ac_exeext=$EXEEXT 2675cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2676/* end confdefs.h. */ 2677#include <stdio.h> 2678int 2679main () 2680{ 2681FILE *f = fopen ("conftest.out", "w"); 2682 return ferror (f) || fclose (f) != 0; 2683 2684 ; 2685 return 0; 2686} 2687_ACEOF 2688ac_clean_files="$ac_clean_files conftest.out" 2689# Check that the compiler produces executables we can run. If not, either 2690# the compiler is broken, or we cross compile. 2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2692$as_echo_n "checking whether we are cross compiling... " >&6; } 2693if test "$cross_compiling" != yes; then 2694 { { ac_try="$ac_link" 2695case "(($ac_try" in 2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2697 *) ac_try_echo=$ac_try;; 2698esac 2699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2700$as_echo "$ac_try_echo"; } >&5 2701 (eval "$ac_link") 2>&5 2702 ac_status=$? 2703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2704 test $ac_status = 0; } 2705 if { ac_try='./conftest$ac_cv_exeext' 2706 { { case "(($ac_try" in 2707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2708 *) ac_try_echo=$ac_try;; 2709esac 2710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2711$as_echo "$ac_try_echo"; } >&5 2712 (eval "$ac_try") 2>&5 2713 ac_status=$? 2714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2715 test $ac_status = 0; }; }; then 2716 cross_compiling=no 2717 else 2718 if test "$cross_compiling" = maybe; then 2719 cross_compiling=yes 2720 else 2721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2723as_fn_error $? "cannot run C compiled programs. 2724If you meant to cross compile, use \`--host'. 2725See \`config.log' for more details" "$LINENO" 5; } 2726 fi 2727 fi 2728fi 2729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2730$as_echo "$cross_compiling" >&6; } 2731 2732rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2733ac_clean_files=$ac_clean_files_save 2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2735$as_echo_n "checking for suffix of object files... " >&6; } 2736if ${ac_cv_objext+:} false; then : 2737 $as_echo_n "(cached) " >&6 2738else 2739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2740/* end confdefs.h. */ 2741 2742int 2743main () 2744{ 2745 2746 ; 2747 return 0; 2748} 2749_ACEOF 2750rm -f conftest.o conftest.obj 2751if { { ac_try="$ac_compile" 2752case "(($ac_try" in 2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2754 *) ac_try_echo=$ac_try;; 2755esac 2756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2757$as_echo "$ac_try_echo"; } >&5 2758 (eval "$ac_compile") 2>&5 2759 ac_status=$? 2760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2761 test $ac_status = 0; }; then : 2762 for ac_file in conftest.o conftest.obj conftest.*; do 2763 test -f "$ac_file" || continue; 2764 case $ac_file in 2765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2766 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2767 break;; 2768 esac 2769done 2770else 2771 $as_echo "$as_me: failed program was:" >&5 2772sed 's/^/| /' conftest.$ac_ext >&5 2773 2774{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2775$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2776as_fn_error $? "cannot compute suffix of object files: cannot compile 2777See \`config.log' for more details" "$LINENO" 5; } 2778fi 2779rm -f conftest.$ac_cv_objext conftest.$ac_ext 2780fi 2781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2782$as_echo "$ac_cv_objext" >&6; } 2783OBJEXT=$ac_cv_objext 2784ac_objext=$OBJEXT 2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2786$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2787if ${ac_cv_c_compiler_gnu+:} false; then : 2788 $as_echo_n "(cached) " >&6 2789else 2790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2791/* end confdefs.h. */ 2792 2793int 2794main () 2795{ 2796#ifndef __GNUC__ 2797 choke me 2798#endif 2799 2800 ; 2801 return 0; 2802} 2803_ACEOF 2804if ac_fn_c_try_compile "$LINENO"; then : 2805 ac_compiler_gnu=yes 2806else 2807 ac_compiler_gnu=no 2808fi 2809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2810ac_cv_c_compiler_gnu=$ac_compiler_gnu 2811 2812fi 2813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2814$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2815if test $ac_compiler_gnu = yes; then 2816 GCC=yes 2817else 2818 GCC= 2819fi 2820ac_test_CFLAGS=${CFLAGS+set} 2821ac_save_CFLAGS=$CFLAGS 2822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2823$as_echo_n "checking whether $CC accepts -g... " >&6; } 2824if ${ac_cv_prog_cc_g+:} false; then : 2825 $as_echo_n "(cached) " >&6 2826else 2827 ac_save_c_werror_flag=$ac_c_werror_flag 2828 ac_c_werror_flag=yes 2829 ac_cv_prog_cc_g=no 2830 CFLAGS="-g" 2831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2832/* end confdefs.h. */ 2833 2834int 2835main () 2836{ 2837 2838 ; 2839 return 0; 2840} 2841_ACEOF 2842if ac_fn_c_try_compile "$LINENO"; then : 2843 ac_cv_prog_cc_g=yes 2844else 2845 CFLAGS="" 2846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2847/* end confdefs.h. */ 2848 2849int 2850main () 2851{ 2852 2853 ; 2854 return 0; 2855} 2856_ACEOF 2857if ac_fn_c_try_compile "$LINENO"; then : 2858 2859else 2860 ac_c_werror_flag=$ac_save_c_werror_flag 2861 CFLAGS="-g" 2862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2863/* end confdefs.h. */ 2864 2865int 2866main () 2867{ 2868 2869 ; 2870 return 0; 2871} 2872_ACEOF 2873if ac_fn_c_try_compile "$LINENO"; then : 2874 ac_cv_prog_cc_g=yes 2875fi 2876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2877fi 2878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2879fi 2880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2881 ac_c_werror_flag=$ac_save_c_werror_flag 2882fi 2883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2884$as_echo "$ac_cv_prog_cc_g" >&6; } 2885if test "$ac_test_CFLAGS" = set; then 2886 CFLAGS=$ac_save_CFLAGS 2887elif test $ac_cv_prog_cc_g = yes; then 2888 if test "$GCC" = yes; then 2889 CFLAGS="-g -O2" 2890 else 2891 CFLAGS="-g" 2892 fi 2893else 2894 if test "$GCC" = yes; then 2895 CFLAGS="-O2" 2896 else 2897 CFLAGS= 2898 fi 2899fi 2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2901$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2902if ${ac_cv_prog_cc_c89+:} false; then : 2903 $as_echo_n "(cached) " >&6 2904else 2905 ac_cv_prog_cc_c89=no 2906ac_save_CC=$CC 2907cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2908/* end confdefs.h. */ 2909#include <stdarg.h> 2910#include <stdio.h> 2911#include <sys/types.h> 2912#include <sys/stat.h> 2913/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2914struct buf { int x; }; 2915FILE * (*rcsopen) (struct buf *, struct stat *, int); 2916static char *e (p, i) 2917 char **p; 2918 int i; 2919{ 2920 return p[i]; 2921} 2922static char *f (char * (*g) (char **, int), char **p, ...) 2923{ 2924 char *s; 2925 va_list v; 2926 va_start (v,p); 2927 s = g (p, va_arg (v,int)); 2928 va_end (v); 2929 return s; 2930} 2931 2932/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2933 function prototypes and stuff, but not '\xHH' hex character constants. 2934 These don't provoke an error unfortunately, instead are silently treated 2935 as 'x'. The following induces an error, until -std is added to get 2936 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2937 array size at least. It's necessary to write '\x00'==0 to get something 2938 that's true only with -std. */ 2939int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2940 2941/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2942 inside strings and character constants. */ 2943#define FOO(x) 'x' 2944int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2945 2946int test (int i, double x); 2947struct s1 {int (*f) (int a);}; 2948struct s2 {int (*f) (double a);}; 2949int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2950int argc; 2951char **argv; 2952int 2953main () 2954{ 2955return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2956 ; 2957 return 0; 2958} 2959_ACEOF 2960for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2961 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2962do 2963 CC="$ac_save_CC $ac_arg" 2964 if ac_fn_c_try_compile "$LINENO"; then : 2965 ac_cv_prog_cc_c89=$ac_arg 2966fi 2967rm -f core conftest.err conftest.$ac_objext 2968 test "x$ac_cv_prog_cc_c89" != "xno" && break 2969done 2970rm -f conftest.$ac_ext 2971CC=$ac_save_CC 2972 2973fi 2974# AC_CACHE_VAL 2975case "x$ac_cv_prog_cc_c89" in 2976 x) 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 2978$as_echo "none needed" >&6; } ;; 2979 xno) 2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 2981$as_echo "unsupported" >&6; } ;; 2982 *) 2983 CC="$CC $ac_cv_prog_cc_c89" 2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 2985$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2986esac 2987if test "x$ac_cv_prog_cc_c89" != xno; then : 2988 2989fi 2990 2991ac_ext=c 2992ac_cpp='$CPP $CPPFLAGS' 2993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2995ac_compiler_gnu=$ac_cv_c_compiler_gnu 2996 2997ac_ext=c 2998ac_cpp='$CPP $CPPFLAGS' 2999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3001ac_compiler_gnu=$ac_cv_c_compiler_gnu 3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3003$as_echo_n "checking how to run the C preprocessor... " >&6; } 3004# On Suns, sometimes $CPP names a directory. 3005if test -n "$CPP" && test -d "$CPP"; then 3006 CPP= 3007fi 3008if test -z "$CPP"; then 3009 if ${ac_cv_prog_CPP+:} false; then : 3010 $as_echo_n "(cached) " >&6 3011else 3012 # Double quotes because CPP needs to be expanded 3013 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3014 do 3015 ac_preproc_ok=false 3016for ac_c_preproc_warn_flag in '' yes 3017do 3018 # Use a header file that comes with gcc, so configuring glibc 3019 # with a fresh cross-compiler works. 3020 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3021 # <limits.h> exists even on freestanding compilers. 3022 # On the NeXT, cc -E runs the code through the compiler's parser, 3023 # not just through cpp. "Syntax error" is here to catch this case. 3024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3025/* end confdefs.h. */ 3026#ifdef __STDC__ 3027# include <limits.h> 3028#else 3029# include <assert.h> 3030#endif 3031 Syntax error 3032_ACEOF 3033if ac_fn_c_try_cpp "$LINENO"; then : 3034 3035else 3036 # Broken: fails on valid input. 3037continue 3038fi 3039rm -f conftest.err conftest.i conftest.$ac_ext 3040 3041 # OK, works on sane cases. Now check whether nonexistent headers 3042 # can be detected and how. 3043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3044/* end confdefs.h. */ 3045#include <ac_nonexistent.h> 3046_ACEOF 3047if ac_fn_c_try_cpp "$LINENO"; then : 3048 # Broken: success on invalid input. 3049continue 3050else 3051 # Passes both tests. 3052ac_preproc_ok=: 3053break 3054fi 3055rm -f conftest.err conftest.i conftest.$ac_ext 3056 3057done 3058# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3059rm -f conftest.i conftest.err conftest.$ac_ext 3060if $ac_preproc_ok; then : 3061 break 3062fi 3063 3064 done 3065 ac_cv_prog_CPP=$CPP 3066 3067fi 3068 CPP=$ac_cv_prog_CPP 3069else 3070 ac_cv_prog_CPP=$CPP 3071fi 3072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3073$as_echo "$CPP" >&6; } 3074ac_preproc_ok=false 3075for ac_c_preproc_warn_flag in '' yes 3076do 3077 # Use a header file that comes with gcc, so configuring glibc 3078 # with a fresh cross-compiler works. 3079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3080 # <limits.h> exists even on freestanding compilers. 3081 # On the NeXT, cc -E runs the code through the compiler's parser, 3082 # not just through cpp. "Syntax error" is here to catch this case. 3083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3084/* end confdefs.h. */ 3085#ifdef __STDC__ 3086# include <limits.h> 3087#else 3088# include <assert.h> 3089#endif 3090 Syntax error 3091_ACEOF 3092if ac_fn_c_try_cpp "$LINENO"; then : 3093 3094else 3095 # Broken: fails on valid input. 3096continue 3097fi 3098rm -f conftest.err conftest.i conftest.$ac_ext 3099 3100 # OK, works on sane cases. Now check whether nonexistent headers 3101 # can be detected and how. 3102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3103/* end confdefs.h. */ 3104#include <ac_nonexistent.h> 3105_ACEOF 3106if ac_fn_c_try_cpp "$LINENO"; then : 3107 # Broken: success on invalid input. 3108continue 3109else 3110 # Passes both tests. 3111ac_preproc_ok=: 3112break 3113fi 3114rm -f conftest.err conftest.i conftest.$ac_ext 3115 3116done 3117# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3118rm -f conftest.i conftest.err conftest.$ac_ext 3119if $ac_preproc_ok; then : 3120 3121else 3122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3124as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3125See \`config.log' for more details" "$LINENO" 5; } 3126fi 3127 3128ac_ext=c 3129ac_cpp='$CPP $CPPFLAGS' 3130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3132ac_compiler_gnu=$ac_cv_c_compiler_gnu 3133 3134# Find a good install program. We prefer a C program (faster), 3135# so one script is as good as another. But avoid the broken or 3136# incompatible versions: 3137# SysV /etc/install, /usr/sbin/install 3138# SunOS /usr/etc/install 3139# IRIX /sbin/install 3140# AIX /bin/install 3141# AmigaOS /C/install, which installs bootblocks on floppy discs 3142# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3143# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3144# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3145# OS/2's system install, which has a completely different semantic 3146# ./install, which can be erroneously created by make from ./install.sh. 3147# Reject install programs that cannot install multiple files. 3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3149$as_echo_n "checking for a BSD-compatible install... " >&6; } 3150if test -z "$INSTALL"; then 3151if ${ac_cv_path_install+:} false; then : 3152 $as_echo_n "(cached) " >&6 3153else 3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3155for as_dir in $PATH 3156do 3157 IFS=$as_save_IFS 3158 test -z "$as_dir" && as_dir=. 3159 # Account for people who put trailing slashes in PATH elements. 3160case $as_dir/ in #(( 3161 ./ | .// | /[cC]/* | \ 3162 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3163 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3164 /usr/ucb/* ) ;; 3165 *) 3166 # OSF1 and SCO ODT 3.0 have their own names for install. 3167 # Don't use installbsd from OSF since it installs stuff as root 3168 # by default. 3169 for ac_prog in ginstall scoinst install; do 3170 for ac_exec_ext in '' $ac_executable_extensions; do 3171 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3172 if test $ac_prog = install && 3173 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3174 # AIX install. It has an incompatible calling convention. 3175 : 3176 elif test $ac_prog = install && 3177 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3178 # program-specific install script used by HP pwplus--don't use. 3179 : 3180 else 3181 rm -rf conftest.one conftest.two conftest.dir 3182 echo one > conftest.one 3183 echo two > conftest.two 3184 mkdir conftest.dir 3185 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3186 test -s conftest.one && test -s conftest.two && 3187 test -s conftest.dir/conftest.one && 3188 test -s conftest.dir/conftest.two 3189 then 3190 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3191 break 3 3192 fi 3193 fi 3194 fi 3195 done 3196 done 3197 ;; 3198esac 3199 3200 done 3201IFS=$as_save_IFS 3202 3203rm -rf conftest.one conftest.two conftest.dir 3204 3205fi 3206 if test "${ac_cv_path_install+set}" = set; then 3207 INSTALL=$ac_cv_path_install 3208 else 3209 # As a last resort, use the slow shell script. Don't cache a 3210 # value for INSTALL within a source directory, because that will 3211 # break other packages using the cache if that directory is 3212 # removed, or if the value is a relative name. 3213 INSTALL=$ac_install_sh 3214 fi 3215fi 3216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3217$as_echo "$INSTALL" >&6; } 3218 3219# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3220# It thinks the first close brace ends the variable substitution. 3221test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3222 3223test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3224 3225test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3226 3227 3228 3229# Make sure we can run config.sub. 3230$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3231 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3232 3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3234$as_echo_n "checking build system type... " >&6; } 3235if ${ac_cv_build+:} false; then : 3236 $as_echo_n "(cached) " >&6 3237else 3238 ac_build_alias=$build_alias 3239test "x$ac_build_alias" = x && 3240 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3241test "x$ac_build_alias" = x && 3242 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3243ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3244 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3245 3246fi 3247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3248$as_echo "$ac_cv_build" >&6; } 3249case $ac_cv_build in 3250*-*-*) ;; 3251*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3252esac 3253build=$ac_cv_build 3254ac_save_IFS=$IFS; IFS='-' 3255set x $ac_cv_build 3256shift 3257build_cpu=$1 3258build_vendor=$2 3259shift; shift 3260# Remember, the first character of IFS is used to create $*, 3261# except with old shells: 3262build_os=$* 3263IFS=$ac_save_IFS 3264case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3265 3266 3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3268$as_echo_n "checking host system type... " >&6; } 3269if ${ac_cv_host+:} false; then : 3270 $as_echo_n "(cached) " >&6 3271else 3272 if test "x$host_alias" = x; then 3273 ac_cv_host=$ac_cv_build 3274else 3275 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3276 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3277fi 3278 3279fi 3280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3281$as_echo "$ac_cv_host" >&6; } 3282case $ac_cv_host in 3283*-*-*) ;; 3284*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3285esac 3286host=$ac_cv_host 3287ac_save_IFS=$IFS; IFS='-' 3288set x $ac_cv_host 3289shift 3290host_cpu=$1 3291host_vendor=$2 3292shift; shift 3293# Remember, the first character of IFS is used to create $*, 3294# except with old shells: 3295host_os=$* 3296IFS=$ac_save_IFS 3297case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3298 3299 3300 3301 3302 3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5 3304$as_echo_n "checking whether to activate relocatable installation... " >&6; } 3305 # Check whether --enable-relocatable was given. 3306if test "${enable_relocatable+set}" = set; then : 3307 enableval=$enable_relocatable; if test "$enableval" != no; then 3308 RELOCATABLE=yes 3309 else 3310 RELOCATABLE=no 3311 fi 3312 3313else 3314 RELOCATABLE=no 3315fi 3316 3317 3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5 3319$as_echo "$RELOCATABLE" >&6; } 3320 3321 3322 3323 if test "X$prefix" = "XNONE"; then 3324 reloc_final_prefix="$ac_default_prefix" 3325 else 3326 reloc_final_prefix="$prefix" 3327 fi 3328 3329cat >>confdefs.h <<_ACEOF 3330#define INSTALLPREFIX "${reloc_final_prefix}" 3331_ACEOF 3332 3333 if test $RELOCATABLE = yes; then 3334 3335$as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h 3336 3337 fi 3338 3339 3340 3341 if test $RELOCATABLE = yes; then 3342 case " $LIBOBJS " in 3343 *" relocatable.$ac_objext "* ) ;; 3344 *) LIBOBJS="$LIBOBJS relocatable.$ac_objext" 3345 ;; 3346esac 3347 3348 fi 3349 3350 3351 3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3353$as_echo_n "checking whether ln -s works... " >&6; } 3354LN_S=$as_ln_s 3355if test "$LN_S" = "ln -s"; then 3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3357$as_echo "yes" >&6; } 3358else 3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3360$as_echo "no, using $LN_S" >&6; } 3361fi 3362 3363 3364 3365 3366 3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3368$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3369if ${ac_cv_path_GREP+:} false; then : 3370 $as_echo_n "(cached) " >&6 3371else 3372 if test -z "$GREP"; then 3373 ac_path_GREP_found=false 3374 # Loop through the user's path and test for each of PROGNAME-LIST 3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3376for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3377do 3378 IFS=$as_save_IFS 3379 test -z "$as_dir" && as_dir=. 3380 for ac_prog in grep ggrep; do 3381 for ac_exec_ext in '' $ac_executable_extensions; do 3382 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3383 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3384# Check for GNU ac_path_GREP and select it if it is found. 3385 # Check for GNU $ac_path_GREP 3386case `"$ac_path_GREP" --version 2>&1` in 3387*GNU*) 3388 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3389*) 3390 ac_count=0 3391 $as_echo_n 0123456789 >"conftest.in" 3392 while : 3393 do 3394 cat "conftest.in" "conftest.in" >"conftest.tmp" 3395 mv "conftest.tmp" "conftest.in" 3396 cp "conftest.in" "conftest.nl" 3397 $as_echo 'GREP' >> "conftest.nl" 3398 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3399 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3400 as_fn_arith $ac_count + 1 && ac_count=$as_val 3401 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3402 # Best one so far, save it but keep looking for a better one 3403 ac_cv_path_GREP="$ac_path_GREP" 3404 ac_path_GREP_max=$ac_count 3405 fi 3406 # 10*(2^10) chars as input seems more than enough 3407 test $ac_count -gt 10 && break 3408 done 3409 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3410esac 3411 3412 $ac_path_GREP_found && break 3 3413 done 3414 done 3415 done 3416IFS=$as_save_IFS 3417 if test -z "$ac_cv_path_GREP"; then 3418 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3419 fi 3420else 3421 ac_cv_path_GREP=$GREP 3422fi 3423 3424fi 3425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3426$as_echo "$ac_cv_path_GREP" >&6; } 3427 GREP="$ac_cv_path_GREP" 3428 3429 3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3431$as_echo_n "checking for egrep... " >&6; } 3432if ${ac_cv_path_EGREP+:} false; then : 3433 $as_echo_n "(cached) " >&6 3434else 3435 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3436 then ac_cv_path_EGREP="$GREP -E" 3437 else 3438 if test -z "$EGREP"; then 3439 ac_path_EGREP_found=false 3440 # Loop through the user's path and test for each of PROGNAME-LIST 3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3442for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3443do 3444 IFS=$as_save_IFS 3445 test -z "$as_dir" && as_dir=. 3446 for ac_prog in egrep; do 3447 for ac_exec_ext in '' $ac_executable_extensions; do 3448 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3449 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3450# Check for GNU ac_path_EGREP and select it if it is found. 3451 # Check for GNU $ac_path_EGREP 3452case `"$ac_path_EGREP" --version 2>&1` in 3453*GNU*) 3454 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3455*) 3456 ac_count=0 3457 $as_echo_n 0123456789 >"conftest.in" 3458 while : 3459 do 3460 cat "conftest.in" "conftest.in" >"conftest.tmp" 3461 mv "conftest.tmp" "conftest.in" 3462 cp "conftest.in" "conftest.nl" 3463 $as_echo 'EGREP' >> "conftest.nl" 3464 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3466 as_fn_arith $ac_count + 1 && ac_count=$as_val 3467 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3468 # Best one so far, save it but keep looking for a better one 3469 ac_cv_path_EGREP="$ac_path_EGREP" 3470 ac_path_EGREP_max=$ac_count 3471 fi 3472 # 10*(2^10) chars as input seems more than enough 3473 test $ac_count -gt 10 && break 3474 done 3475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3476esac 3477 3478 $ac_path_EGREP_found && break 3 3479 done 3480 done 3481 done 3482IFS=$as_save_IFS 3483 if test -z "$ac_cv_path_EGREP"; then 3484 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3485 fi 3486else 3487 ac_cv_path_EGREP=$EGREP 3488fi 3489 3490 fi 3491fi 3492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3493$as_echo "$ac_cv_path_EGREP" >&6; } 3494 EGREP="$ac_cv_path_EGREP" 3495 3496 3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3498$as_echo_n "checking for ANSI C header files... " >&6; } 3499if ${ac_cv_header_stdc+:} false; then : 3500 $as_echo_n "(cached) " >&6 3501else 3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3503/* end confdefs.h. */ 3504#include <stdlib.h> 3505#include <stdarg.h> 3506#include <string.h> 3507#include <float.h> 3508 3509int 3510main () 3511{ 3512 3513 ; 3514 return 0; 3515} 3516_ACEOF 3517if ac_fn_c_try_compile "$LINENO"; then : 3518 ac_cv_header_stdc=yes 3519else 3520 ac_cv_header_stdc=no 3521fi 3522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3523 3524if test $ac_cv_header_stdc = yes; then 3525 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3527/* end confdefs.h. */ 3528#include <string.h> 3529 3530_ACEOF 3531if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3532 $EGREP "memchr" >/dev/null 2>&1; then : 3533 3534else 3535 ac_cv_header_stdc=no 3536fi 3537rm -f conftest* 3538 3539fi 3540 3541if test $ac_cv_header_stdc = yes; then 3542 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3544/* end confdefs.h. */ 3545#include <stdlib.h> 3546 3547_ACEOF 3548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3549 $EGREP "free" >/dev/null 2>&1; then : 3550 3551else 3552 ac_cv_header_stdc=no 3553fi 3554rm -f conftest* 3555 3556fi 3557 3558if test $ac_cv_header_stdc = yes; then 3559 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3560 if test "$cross_compiling" = yes; then : 3561 : 3562else 3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3564/* end confdefs.h. */ 3565#include <ctype.h> 3566#include <stdlib.h> 3567#if ((' ' & 0x0FF) == 0x020) 3568# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3569# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3570#else 3571# define ISLOWER(c) \ 3572 (('a' <= (c) && (c) <= 'i') \ 3573 || ('j' <= (c) && (c) <= 'r') \ 3574 || ('s' <= (c) && (c) <= 'z')) 3575# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3576#endif 3577 3578#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3579int 3580main () 3581{ 3582 int i; 3583 for (i = 0; i < 256; i++) 3584 if (XOR (islower (i), ISLOWER (i)) 3585 || toupper (i) != TOUPPER (i)) 3586 return 2; 3587 return 0; 3588} 3589_ACEOF 3590if ac_fn_c_try_run "$LINENO"; then : 3591 3592else 3593 ac_cv_header_stdc=no 3594fi 3595rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3596 conftest.$ac_objext conftest.beam conftest.$ac_ext 3597fi 3598 3599fi 3600fi 3601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3602$as_echo "$ac_cv_header_stdc" >&6; } 3603if test $ac_cv_header_stdc = yes; then 3604 3605$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3606 3607fi 3608 3609# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3610for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3611 inttypes.h stdint.h unistd.h 3612do : 3613 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3614ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3615" 3616if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3617 cat >>confdefs.h <<_ACEOF 3618#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3619_ACEOF 3620 3621fi 3622 3623done 3624 3625 3626 3627 3628 3629 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3630if test "x$ac_cv_header_minix_config_h" = xyes; then : 3631 MINIX=yes 3632else 3633 MINIX= 3634fi 3635 3636 3637 if test "$MINIX" = yes; then 3638 3639$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3640 3641 3642$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3643 3644 3645$as_echo "#define _MINIX 1" >>confdefs.h 3646 3647 fi 3648 3649 case "$host_os" in 3650 hpux*) 3651 3652$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 3653 3654 ;; 3655 esac 3656 3657 3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3659$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3660if ${ac_cv_safe_to_define___extensions__+:} false; then : 3661 $as_echo_n "(cached) " >&6 3662else 3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3664/* end confdefs.h. */ 3665 3666# define __EXTENSIONS__ 1 3667 $ac_includes_default 3668int 3669main () 3670{ 3671 3672 ; 3673 return 0; 3674} 3675_ACEOF 3676if ac_fn_c_try_compile "$LINENO"; then : 3677 ac_cv_safe_to_define___extensions__=yes 3678else 3679 ac_cv_safe_to_define___extensions__=no 3680fi 3681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3682fi 3683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3684$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3685 test $ac_cv_safe_to_define___extensions__ = yes && 3686 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3687 3688 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3689 3690 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3691 3692 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3693 3694 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3695 3696 3697 3698 3699 3700 3701 3702 3703enable_shared=yes 3704enable_static=no 3705case `pwd` in 3706 *\ * | *\ *) 3707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3708$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3709esac 3710 3711 3712 3713macro_version='2.4' 3714macro_revision='1.3293' 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728ltmain="$ac_aux_dir/ltmain.sh" 3729 3730# Backslashify metacharacters that are still active within 3731# double-quoted strings. 3732sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3733 3734# Same as above, but do not quote variable references. 3735double_quote_subst='s/\(["`\\]\)/\\\1/g' 3736 3737# Sed substitution to delay expansion of an escaped shell variable in a 3738# double_quote_subst'ed string. 3739delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3740 3741# Sed substitution to delay expansion of an escaped single quote. 3742delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3743 3744# Sed substitution to avoid accidental globbing in evaled expressions 3745no_glob_subst='s/\*/\\\*/g' 3746 3747ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3748ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3749ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3750 3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3752$as_echo_n "checking how to print strings... " >&6; } 3753# Test print first, because it will be a builtin if present. 3754if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3755 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3756 ECHO='print -r --' 3757elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3758 ECHO='printf %s\n' 3759else 3760 # Use this function as a fallback that always works. 3761 func_fallback_echo () 3762 { 3763 eval 'cat <<_LTECHO_EOF 3764$1 3765_LTECHO_EOF' 3766 } 3767 ECHO='func_fallback_echo' 3768fi 3769 3770# func_echo_all arg... 3771# Invoke $ECHO with all args, space-separated. 3772func_echo_all () 3773{ 3774 $ECHO "" 3775} 3776 3777case "$ECHO" in 3778 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3779$as_echo "printf" >&6; } ;; 3780 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3781$as_echo "print -r" >&6; } ;; 3782 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3783$as_echo "cat" >&6; } ;; 3784esac 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3800$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3801if ${ac_cv_path_SED+:} false; then : 3802 $as_echo_n "(cached) " >&6 3803else 3804 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3805 for ac_i in 1 2 3 4 5 6 7; do 3806 ac_script="$ac_script$as_nl$ac_script" 3807 done 3808 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3809 { ac_script=; unset ac_script;} 3810 if test -z "$SED"; then 3811 ac_path_SED_found=false 3812 # Loop through the user's path and test for each of PROGNAME-LIST 3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3814for as_dir in $PATH 3815do 3816 IFS=$as_save_IFS 3817 test -z "$as_dir" && as_dir=. 3818 for ac_prog in sed gsed; do 3819 for ac_exec_ext in '' $ac_executable_extensions; do 3820 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3821 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3822# Check for GNU ac_path_SED and select it if it is found. 3823 # Check for GNU $ac_path_SED 3824case `"$ac_path_SED" --version 2>&1` in 3825*GNU*) 3826 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3827*) 3828 ac_count=0 3829 $as_echo_n 0123456789 >"conftest.in" 3830 while : 3831 do 3832 cat "conftest.in" "conftest.in" >"conftest.tmp" 3833 mv "conftest.tmp" "conftest.in" 3834 cp "conftest.in" "conftest.nl" 3835 $as_echo '' >> "conftest.nl" 3836 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3838 as_fn_arith $ac_count + 1 && ac_count=$as_val 3839 if test $ac_count -gt ${ac_path_SED_max-0}; then 3840 # Best one so far, save it but keep looking for a better one 3841 ac_cv_path_SED="$ac_path_SED" 3842 ac_path_SED_max=$ac_count 3843 fi 3844 # 10*(2^10) chars as input seems more than enough 3845 test $ac_count -gt 10 && break 3846 done 3847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3848esac 3849 3850 $ac_path_SED_found && break 3 3851 done 3852 done 3853 done 3854IFS=$as_save_IFS 3855 if test -z "$ac_cv_path_SED"; then 3856 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3857 fi 3858else 3859 ac_cv_path_SED=$SED 3860fi 3861 3862fi 3863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3864$as_echo "$ac_cv_path_SED" >&6; } 3865 SED="$ac_cv_path_SED" 3866 rm -f conftest.sed 3867 3868test -z "$SED" && SED=sed 3869Xsed="$SED -e 1s/^X//" 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3882$as_echo_n "checking for fgrep... " >&6; } 3883if ${ac_cv_path_FGREP+:} false; then : 3884 $as_echo_n "(cached) " >&6 3885else 3886 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3887 then ac_cv_path_FGREP="$GREP -F" 3888 else 3889 if test -z "$FGREP"; then 3890 ac_path_FGREP_found=false 3891 # Loop through the user's path and test for each of PROGNAME-LIST 3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3893for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3894do 3895 IFS=$as_save_IFS 3896 test -z "$as_dir" && as_dir=. 3897 for ac_prog in fgrep; do 3898 for ac_exec_ext in '' $ac_executable_extensions; do 3899 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3900 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 3901# Check for GNU ac_path_FGREP and select it if it is found. 3902 # Check for GNU $ac_path_FGREP 3903case `"$ac_path_FGREP" --version 2>&1` in 3904*GNU*) 3905 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3906*) 3907 ac_count=0 3908 $as_echo_n 0123456789 >"conftest.in" 3909 while : 3910 do 3911 cat "conftest.in" "conftest.in" >"conftest.tmp" 3912 mv "conftest.tmp" "conftest.in" 3913 cp "conftest.in" "conftest.nl" 3914 $as_echo 'FGREP' >> "conftest.nl" 3915 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3917 as_fn_arith $ac_count + 1 && ac_count=$as_val 3918 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3919 # Best one so far, save it but keep looking for a better one 3920 ac_cv_path_FGREP="$ac_path_FGREP" 3921 ac_path_FGREP_max=$ac_count 3922 fi 3923 # 10*(2^10) chars as input seems more than enough 3924 test $ac_count -gt 10 && break 3925 done 3926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3927esac 3928 3929 $ac_path_FGREP_found && break 3 3930 done 3931 done 3932 done 3933IFS=$as_save_IFS 3934 if test -z "$ac_cv_path_FGREP"; then 3935 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3936 fi 3937else 3938 ac_cv_path_FGREP=$FGREP 3939fi 3940 3941 fi 3942fi 3943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3944$as_echo "$ac_cv_path_FGREP" >&6; } 3945 FGREP="$ac_cv_path_FGREP" 3946 3947 3948test -z "$GREP" && GREP=grep 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968# Check whether --with-gnu-ld was given. 3969if test "${with_gnu_ld+set}" = set; then : 3970 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 3971else 3972 with_gnu_ld=no 3973fi 3974 3975ac_prog=ld 3976if test "$GCC" = yes; then 3977 # Check if gcc -print-prog-name=ld gives a path. 3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 3979$as_echo_n "checking for ld used by $CC... " >&6; } 3980 case $host in 3981 *-*-mingw*) 3982 # gcc leaves a trailing carriage return which upsets mingw 3983 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3984 *) 3985 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3986 esac 3987 case $ac_prog in 3988 # Accept absolute paths. 3989 [\\/]* | ?:[\\/]*) 3990 re_direlt='/[^/][^/]*/\.\./' 3991 # Canonicalize the pathname of ld 3992 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3993 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3994 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3995 done 3996 test -z "$LD" && LD="$ac_prog" 3997 ;; 3998 "") 3999 # If it fails, then pretend we aren't using GCC. 4000 ac_prog=ld 4001 ;; 4002 *) 4003 # If it is relative, then search for the first ld in PATH. 4004 with_gnu_ld=unknown 4005 ;; 4006 esac 4007elif test "$with_gnu_ld" = yes; then 4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4009$as_echo_n "checking for GNU ld... " >&6; } 4010else 4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4012$as_echo_n "checking for non-GNU ld... " >&6; } 4013fi 4014if ${lt_cv_path_LD+:} false; then : 4015 $as_echo_n "(cached) " >&6 4016else 4017 if test -z "$LD"; then 4018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4019 for ac_dir in $PATH; do 4020 IFS="$lt_save_ifs" 4021 test -z "$ac_dir" && ac_dir=. 4022 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4023 lt_cv_path_LD="$ac_dir/$ac_prog" 4024 # Check to see if the program is GNU ld. I'd rather use --version, 4025 # but apparently some variants of GNU ld only accept -v. 4026 # Break only if it was the GNU/non-GNU ld that we prefer. 4027 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4028 *GNU* | *'with BFD'*) 4029 test "$with_gnu_ld" != no && break 4030 ;; 4031 *) 4032 test "$with_gnu_ld" != yes && break 4033 ;; 4034 esac 4035 fi 4036 done 4037 IFS="$lt_save_ifs" 4038else 4039 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4040fi 4041fi 4042 4043LD="$lt_cv_path_LD" 4044if test -n "$LD"; then 4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4046$as_echo "$LD" >&6; } 4047else 4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4049$as_echo "no" >&6; } 4050fi 4051test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4053$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4054if ${lt_cv_prog_gnu_ld+:} false; then : 4055 $as_echo_n "(cached) " >&6 4056else 4057 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4058case `$LD -v 2>&1 </dev/null` in 4059*GNU* | *'with BFD'*) 4060 lt_cv_prog_gnu_ld=yes 4061 ;; 4062*) 4063 lt_cv_prog_gnu_ld=no 4064 ;; 4065esac 4066fi 4067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4068$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4069with_gnu_ld=$lt_cv_prog_gnu_ld 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4080$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4081if ${lt_cv_path_NM+:} false; then : 4082 $as_echo_n "(cached) " >&6 4083else 4084 if test -n "$NM"; then 4085 # Let the user override the test. 4086 lt_cv_path_NM="$NM" 4087else 4088 lt_nm_to_check="${ac_tool_prefix}nm" 4089 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4090 lt_nm_to_check="$lt_nm_to_check nm" 4091 fi 4092 for lt_tmp_nm in $lt_nm_to_check; do 4093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4094 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4095 IFS="$lt_save_ifs" 4096 test -z "$ac_dir" && ac_dir=. 4097 tmp_nm="$ac_dir/$lt_tmp_nm" 4098 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4099 # Check to see if the nm accepts a BSD-compat flag. 4100 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4101 # nm: unknown option "B" ignored 4102 # Tru64's nm complains that /dev/null is an invalid object file 4103 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4104 */dev/null* | *'Invalid file or object type'*) 4105 lt_cv_path_NM="$tmp_nm -B" 4106 break 4107 ;; 4108 *) 4109 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4110 */dev/null*) 4111 lt_cv_path_NM="$tmp_nm -p" 4112 break 4113 ;; 4114 *) 4115 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4116 continue # so that we can try to find one that supports BSD flags 4117 ;; 4118 esac 4119 ;; 4120 esac 4121 fi 4122 done 4123 IFS="$lt_save_ifs" 4124 done 4125 : ${lt_cv_path_NM=no} 4126fi 4127fi 4128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4129$as_echo "$lt_cv_path_NM" >&6; } 4130if test "$lt_cv_path_NM" != "no"; then 4131 NM="$lt_cv_path_NM" 4132else 4133 # Didn't find any BSD compatible name lister, look for dumpbin. 4134 if test -n "$DUMPBIN"; then : 4135 # Let the user override the test. 4136 else 4137 if test -n "$ac_tool_prefix"; then 4138 for ac_prog in dumpbin "link -dump" 4139 do 4140 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4141set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4143$as_echo_n "checking for $ac_word... " >&6; } 4144if ${ac_cv_prog_DUMPBIN+:} false; then : 4145 $as_echo_n "(cached) " >&6 4146else 4147 if test -n "$DUMPBIN"; then 4148 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4149else 4150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4151for as_dir in $PATH 4152do 4153 IFS=$as_save_IFS 4154 test -z "$as_dir" && as_dir=. 4155 for ac_exec_ext in '' $ac_executable_extensions; do 4156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4157 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4159 break 2 4160 fi 4161done 4162 done 4163IFS=$as_save_IFS 4164 4165fi 4166fi 4167DUMPBIN=$ac_cv_prog_DUMPBIN 4168if test -n "$DUMPBIN"; then 4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4170$as_echo "$DUMPBIN" >&6; } 4171else 4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4173$as_echo "no" >&6; } 4174fi 4175 4176 4177 test -n "$DUMPBIN" && break 4178 done 4179fi 4180if test -z "$DUMPBIN"; then 4181 ac_ct_DUMPBIN=$DUMPBIN 4182 for ac_prog in dumpbin "link -dump" 4183do 4184 # Extract the first word of "$ac_prog", so it can be a program name with args. 4185set dummy $ac_prog; ac_word=$2 4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4187$as_echo_n "checking for $ac_word... " >&6; } 4188if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4189 $as_echo_n "(cached) " >&6 4190else 4191 if test -n "$ac_ct_DUMPBIN"; then 4192 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4193else 4194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4195for as_dir in $PATH 4196do 4197 IFS=$as_save_IFS 4198 test -z "$as_dir" && as_dir=. 4199 for ac_exec_ext in '' $ac_executable_extensions; do 4200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4201 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4203 break 2 4204 fi 4205done 4206 done 4207IFS=$as_save_IFS 4208 4209fi 4210fi 4211ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4212if test -n "$ac_ct_DUMPBIN"; then 4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4214$as_echo "$ac_ct_DUMPBIN" >&6; } 4215else 4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4217$as_echo "no" >&6; } 4218fi 4219 4220 4221 test -n "$ac_ct_DUMPBIN" && break 4222done 4223 4224 if test "x$ac_ct_DUMPBIN" = x; then 4225 DUMPBIN=":" 4226 else 4227 case $cross_compiling:$ac_tool_warned in 4228yes:) 4229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4231ac_tool_warned=yes ;; 4232esac 4233 DUMPBIN=$ac_ct_DUMPBIN 4234 fi 4235fi 4236 4237 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4238 *COFF*) 4239 DUMPBIN="$DUMPBIN -symbols" 4240 ;; 4241 *) 4242 DUMPBIN=: 4243 ;; 4244 esac 4245 fi 4246 4247 if test "$DUMPBIN" != ":"; then 4248 NM="$DUMPBIN" 4249 fi 4250fi 4251test -z "$NM" && NM=nm 4252 4253 4254 4255 4256 4257 4258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4259$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4260if ${lt_cv_nm_interface+:} false; then : 4261 $as_echo_n "(cached) " >&6 4262else 4263 lt_cv_nm_interface="BSD nm" 4264 echo "int some_variable = 0;" > conftest.$ac_ext 4265 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4266 (eval "$ac_compile" 2>conftest.err) 4267 cat conftest.err >&5 4268 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4269 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4270 cat conftest.err >&5 4271 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4272 cat conftest.out >&5 4273 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4274 lt_cv_nm_interface="MS dumpbin" 4275 fi 4276 rm -f conftest* 4277fi 4278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4279$as_echo "$lt_cv_nm_interface" >&6; } 4280 4281# find the maximum length of command line arguments 4282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4283$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4284if ${lt_cv_sys_max_cmd_len+:} false; then : 4285 $as_echo_n "(cached) " >&6 4286else 4287 i=0 4288 teststring="ABCD" 4289 4290 case $build_os in 4291 msdosdjgpp*) 4292 # On DJGPP, this test can blow up pretty badly due to problems in libc 4293 # (any single argument exceeding 2000 bytes causes a buffer overrun 4294 # during glob expansion). Even if it were fixed, the result of this 4295 # check would be larger than it should be. 4296 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4297 ;; 4298 4299 gnu*) 4300 # Under GNU Hurd, this test is not required because there is 4301 # no limit to the length of command line arguments. 4302 # Libtool will interpret -1 as no limit whatsoever 4303 lt_cv_sys_max_cmd_len=-1; 4304 ;; 4305 4306 cygwin* | mingw* | cegcc*) 4307 # On Win9x/ME, this test blows up -- it succeeds, but takes 4308 # about 5 minutes as the teststring grows exponentially. 4309 # Worse, since 9x/ME are not pre-emptively multitasking, 4310 # you end up with a "frozen" computer, even though with patience 4311 # the test eventually succeeds (with a max line length of 256k). 4312 # Instead, let's just punt: use the minimum linelength reported by 4313 # all of the supported platforms: 8192 (on NT/2K/XP). 4314 lt_cv_sys_max_cmd_len=8192; 4315 ;; 4316 4317 mint*) 4318 # On MiNT this can take a long time and run out of memory. 4319 lt_cv_sys_max_cmd_len=8192; 4320 ;; 4321 4322 amigaos*) 4323 # On AmigaOS with pdksh, this test takes hours, literally. 4324 # So we just punt and use a minimum line length of 8192. 4325 lt_cv_sys_max_cmd_len=8192; 4326 ;; 4327 4328 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4329 # This has been around since 386BSD, at least. Likely further. 4330 if test -x /sbin/sysctl; then 4331 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4332 elif test -x /usr/sbin/sysctl; then 4333 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4334 else 4335 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4336 fi 4337 # And add a safety zone 4338 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4339 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4340 ;; 4341 4342 interix*) 4343 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4344 lt_cv_sys_max_cmd_len=196608 4345 ;; 4346 4347 osf*) 4348 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4349 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4350 # nice to cause kernel panics so lets avoid the loop below. 4351 # First set a reasonable default. 4352 lt_cv_sys_max_cmd_len=16384 4353 # 4354 if test -x /sbin/sysconfig; then 4355 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4356 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4357 esac 4358 fi 4359 ;; 4360 sco3.2v5*) 4361 lt_cv_sys_max_cmd_len=102400 4362 ;; 4363 sysv5* | sco5v6* | sysv4.2uw2*) 4364 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4365 if test -n "$kargmax"; then 4366 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4367 else 4368 lt_cv_sys_max_cmd_len=32768 4369 fi 4370 ;; 4371 *) 4372 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4373 if test -n "$lt_cv_sys_max_cmd_len"; then 4374 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4376 else 4377 # Make teststring a little bigger before we do anything with it. 4378 # a 1K string should be a reasonable start. 4379 for i in 1 2 3 4 5 6 7 8 ; do 4380 teststring=$teststring$teststring 4381 done 4382 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4383 # If test is not a shell built-in, we'll probably end up computing a 4384 # maximum length that is only half of the actual maximum length, but 4385 # we can't tell. 4386 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 4387 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4388 test $i != 17 # 1/2 MB should be enough 4389 do 4390 i=`expr $i + 1` 4391 teststring=$teststring$teststring 4392 done 4393 # Only check the string length outside the loop. 4394 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4395 teststring= 4396 # Add a significant safety factor because C++ compilers can tack on 4397 # massive amounts of additional arguments before passing them to the 4398 # linker. It appears as though 1/2 is a usable value. 4399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4400 fi 4401 ;; 4402 esac 4403 4404fi 4405 4406if test -n $lt_cv_sys_max_cmd_len ; then 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4408$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4409else 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4411$as_echo "none" >&6; } 4412fi 4413max_cmd_len=$lt_cv_sys_max_cmd_len 4414 4415 4416 4417 4418 4419 4420: ${CP="cp -f"} 4421: ${MV="mv -f"} 4422: ${RM="rm -f"} 4423 4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4425$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4426# Try some XSI features 4427xsi_shell=no 4428( _lt_dummy="a/b/c" 4429 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4430 = c,a/b,b/c, \ 4431 && eval 'test $(( 1 + 1 )) -eq 2 \ 4432 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4433 && xsi_shell=yes 4434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4435$as_echo "$xsi_shell" >&6; } 4436 4437 4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4439$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4440lt_shell_append=no 4441( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4442 >/dev/null 2>&1 \ 4443 && lt_shell_append=yes 4444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4445$as_echo "$lt_shell_append" >&6; } 4446 4447 4448if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4449 lt_unset=unset 4450else 4451 lt_unset=false 4452fi 4453 4454 4455 4456 4457 4458# test EBCDIC or ASCII 4459case `echo X|tr X '\101'` in 4460 A) # ASCII based system 4461 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4462 lt_SP2NL='tr \040 \012' 4463 lt_NL2SP='tr \015\012 \040\040' 4464 ;; 4465 *) # EBCDIC based system 4466 lt_SP2NL='tr \100 \n' 4467 lt_NL2SP='tr \r\n \100\100' 4468 ;; 4469esac 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4480$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4481if ${lt_cv_to_host_file_cmd+:} false; then : 4482 $as_echo_n "(cached) " >&6 4483else 4484 case $host in 4485 *-*-mingw* ) 4486 case $build in 4487 *-*-mingw* ) # actually msys 4488 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4489 ;; 4490 *-*-cygwin* ) 4491 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4492 ;; 4493 * ) # otherwise, assume *nix 4494 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4495 ;; 4496 esac 4497 ;; 4498 *-*-cygwin* ) 4499 case $build in 4500 *-*-mingw* ) # actually msys 4501 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4502 ;; 4503 *-*-cygwin* ) 4504 lt_cv_to_host_file_cmd=func_convert_file_noop 4505 ;; 4506 * ) # otherwise, assume *nix 4507 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4508 ;; 4509 esac 4510 ;; 4511 * ) # unhandled hosts (and "normal" native builds) 4512 lt_cv_to_host_file_cmd=func_convert_file_noop 4513 ;; 4514esac 4515 4516fi 4517 4518to_host_file_cmd=$lt_cv_to_host_file_cmd 4519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4520$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4521 4522 4523 4524 4525 4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4527$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4528if ${lt_cv_to_tool_file_cmd+:} false; then : 4529 $as_echo_n "(cached) " >&6 4530else 4531 #assume ordinary cross tools, or native build. 4532lt_cv_to_tool_file_cmd=func_convert_file_noop 4533case $host in 4534 *-*-mingw* ) 4535 case $build in 4536 *-*-mingw* ) # actually msys 4537 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4538 ;; 4539 esac 4540 ;; 4541esac 4542 4543fi 4544 4545to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4547$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4548 4549 4550 4551 4552 4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4554$as_echo_n "checking for $LD option to reload object files... " >&6; } 4555if ${lt_cv_ld_reload_flag+:} false; then : 4556 $as_echo_n "(cached) " >&6 4557else 4558 lt_cv_ld_reload_flag='-r' 4559fi 4560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4561$as_echo "$lt_cv_ld_reload_flag" >&6; } 4562reload_flag=$lt_cv_ld_reload_flag 4563case $reload_flag in 4564"" | " "*) ;; 4565*) reload_flag=" $reload_flag" ;; 4566esac 4567reload_cmds='$LD$reload_flag -o $output$reload_objs' 4568case $host_os in 4569 cygwin* | mingw* | pw32* | cegcc*) 4570 if test "$GCC" != yes; then 4571 reload_cmds=false 4572 fi 4573 ;; 4574 darwin*) 4575 if test "$GCC" = yes; then 4576 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4577 else 4578 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4579 fi 4580 ;; 4581esac 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591if test -n "$ac_tool_prefix"; then 4592 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4593set dummy ${ac_tool_prefix}objdump; ac_word=$2 4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4595$as_echo_n "checking for $ac_word... " >&6; } 4596if ${ac_cv_prog_OBJDUMP+:} false; then : 4597 $as_echo_n "(cached) " >&6 4598else 4599 if test -n "$OBJDUMP"; then 4600 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4601else 4602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4603for as_dir in $PATH 4604do 4605 IFS=$as_save_IFS 4606 test -z "$as_dir" && as_dir=. 4607 for ac_exec_ext in '' $ac_executable_extensions; do 4608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4609 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4611 break 2 4612 fi 4613done 4614 done 4615IFS=$as_save_IFS 4616 4617fi 4618fi 4619OBJDUMP=$ac_cv_prog_OBJDUMP 4620if test -n "$OBJDUMP"; then 4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4622$as_echo "$OBJDUMP" >&6; } 4623else 4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4625$as_echo "no" >&6; } 4626fi 4627 4628 4629fi 4630if test -z "$ac_cv_prog_OBJDUMP"; then 4631 ac_ct_OBJDUMP=$OBJDUMP 4632 # Extract the first word of "objdump", so it can be a program name with args. 4633set dummy objdump; ac_word=$2 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4635$as_echo_n "checking for $ac_word... " >&6; } 4636if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4637 $as_echo_n "(cached) " >&6 4638else 4639 if test -n "$ac_ct_OBJDUMP"; then 4640 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4641else 4642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4643for as_dir in $PATH 4644do 4645 IFS=$as_save_IFS 4646 test -z "$as_dir" && as_dir=. 4647 for ac_exec_ext in '' $ac_executable_extensions; do 4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4649 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4651 break 2 4652 fi 4653done 4654 done 4655IFS=$as_save_IFS 4656 4657fi 4658fi 4659ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4660if test -n "$ac_ct_OBJDUMP"; then 4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4662$as_echo "$ac_ct_OBJDUMP" >&6; } 4663else 4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4665$as_echo "no" >&6; } 4666fi 4667 4668 if test "x$ac_ct_OBJDUMP" = x; then 4669 OBJDUMP="false" 4670 else 4671 case $cross_compiling:$ac_tool_warned in 4672yes:) 4673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4675ac_tool_warned=yes ;; 4676esac 4677 OBJDUMP=$ac_ct_OBJDUMP 4678 fi 4679else 4680 OBJDUMP="$ac_cv_prog_OBJDUMP" 4681fi 4682 4683test -z "$OBJDUMP" && OBJDUMP=objdump 4684 4685 4686 4687 4688 4689 4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4691$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4692if ${lt_cv_deplibs_check_method+:} false; then : 4693 $as_echo_n "(cached) " >&6 4694else 4695 lt_cv_file_magic_cmd='$MAGIC_CMD' 4696lt_cv_file_magic_test_file= 4697lt_cv_deplibs_check_method='unknown' 4698# Need to set the preceding variable on all platforms that support 4699# interlibrary dependencies. 4700# 'none' -- dependencies not supported. 4701# `unknown' -- same as none, but documents that we really don't know. 4702# 'pass_all' -- all dependencies passed with no checks. 4703# 'test_compile' -- check by making test program. 4704# 'file_magic [[regex]]' -- check by looking for files in library path 4705# which responds to the $file_magic_cmd with a given extended regex. 4706# If you have `file' or equivalent on your system and you're not sure 4707# whether `pass_all' will *always* work, you probably want this one. 4708 4709case $host_os in 4710aix[4-9]*) 4711 lt_cv_deplibs_check_method=pass_all 4712 ;; 4713 4714beos*) 4715 lt_cv_deplibs_check_method=pass_all 4716 ;; 4717 4718bsdi[45]*) 4719 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4720 lt_cv_file_magic_cmd='/usr/bin/file -L' 4721 lt_cv_file_magic_test_file=/shlib/libc.so 4722 ;; 4723 4724cygwin*) 4725 # func_win32_libid is a shell function defined in ltmain.sh 4726 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4727 lt_cv_file_magic_cmd='func_win32_libid' 4728 ;; 4729 4730mingw* | pw32*) 4731 # Base MSYS/MinGW do not provide the 'file' command needed by 4732 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4733 # unless we find 'file', for example because we are cross-compiling. 4734 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 4735 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 4736 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4737 lt_cv_file_magic_cmd='func_win32_libid' 4738 else 4739 # Keep this pattern in sync with the one in func_win32_libid. 4740 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 4741 lt_cv_file_magic_cmd='$OBJDUMP -f' 4742 fi 4743 ;; 4744 4745cegcc*) 4746 # use the weaker test based on 'objdump'. See mingw*. 4747 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4748 lt_cv_file_magic_cmd='$OBJDUMP -f' 4749 ;; 4750 4751darwin* | rhapsody*) 4752 lt_cv_deplibs_check_method=pass_all 4753 ;; 4754 4755freebsd* | dragonfly*) 4756 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4757 case $host_cpu in 4758 i*86 ) 4759 # Not sure whether the presence of OpenBSD here was a mistake. 4760 # Let's accept both of them until this is cleared up. 4761 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4762 lt_cv_file_magic_cmd=/usr/bin/file 4763 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4764 ;; 4765 esac 4766 else 4767 lt_cv_deplibs_check_method=pass_all 4768 fi 4769 ;; 4770 4771gnu*) 4772 lt_cv_deplibs_check_method=pass_all 4773 ;; 4774 4775haiku*) 4776 lt_cv_deplibs_check_method=pass_all 4777 ;; 4778 4779hpux10.20* | hpux11*) 4780 lt_cv_file_magic_cmd=/usr/bin/file 4781 case $host_cpu in 4782 ia64*) 4783 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4784 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4785 ;; 4786 hppa*64*) 4787 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]' 4788 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4789 ;; 4790 *) 4791 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 4792 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4793 ;; 4794 esac 4795 ;; 4796 4797interix[3-9]*) 4798 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4800 ;; 4801 4802irix5* | irix6* | nonstopux*) 4803 case $LD in 4804 *-32|*"-32 ") libmagic=32-bit;; 4805 *-n32|*"-n32 ") libmagic=N32;; 4806 *-64|*"-64 ") libmagic=64-bit;; 4807 *) libmagic=never-match;; 4808 esac 4809 lt_cv_deplibs_check_method=pass_all 4810 ;; 4811 4812# This must be Linux ELF. 4813linux* | k*bsd*-gnu | kopensolaris*-gnu) 4814 lt_cv_deplibs_check_method=pass_all 4815 ;; 4816 4817netbsd*) 4818 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4819 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4820 else 4821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4822 fi 4823 ;; 4824 4825newos6*) 4826 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4827 lt_cv_file_magic_cmd=/usr/bin/file 4828 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4829 ;; 4830 4831*nto* | *qnx*) 4832 lt_cv_deplibs_check_method=pass_all 4833 ;; 4834 4835openbsd*) 4836 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4837 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4838 else 4839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4840 fi 4841 ;; 4842 4843osf3* | osf4* | osf5*) 4844 lt_cv_deplibs_check_method=pass_all 4845 ;; 4846 4847rdos*) 4848 lt_cv_deplibs_check_method=pass_all 4849 ;; 4850 4851solaris*) 4852 lt_cv_deplibs_check_method=pass_all 4853 ;; 4854 4855sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4856 lt_cv_deplibs_check_method=pass_all 4857 ;; 4858 4859sysv4 | sysv4.3*) 4860 case $host_vendor in 4861 motorola) 4862 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]' 4863 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4864 ;; 4865 ncr) 4866 lt_cv_deplibs_check_method=pass_all 4867 ;; 4868 sequent) 4869 lt_cv_file_magic_cmd='/bin/file' 4870 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4871 ;; 4872 sni) 4873 lt_cv_file_magic_cmd='/bin/file' 4874 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4875 lt_cv_file_magic_test_file=/lib/libc.so 4876 ;; 4877 siemens) 4878 lt_cv_deplibs_check_method=pass_all 4879 ;; 4880 pc) 4881 lt_cv_deplibs_check_method=pass_all 4882 ;; 4883 esac 4884 ;; 4885 4886tpf*) 4887 lt_cv_deplibs_check_method=pass_all 4888 ;; 4889esac 4890 4891fi 4892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 4893$as_echo "$lt_cv_deplibs_check_method" >&6; } 4894 4895file_magic_glob= 4896want_nocaseglob=no 4897if test "$build" = "$host"; then 4898 case $host_os in 4899 mingw* | pw32*) 4900 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 4901 want_nocaseglob=yes 4902 else 4903 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 4904 fi 4905 ;; 4906 esac 4907fi 4908 4909file_magic_cmd=$lt_cv_file_magic_cmd 4910deplibs_check_method=$lt_cv_deplibs_check_method 4911test -z "$deplibs_check_method" && deplibs_check_method=unknown 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934if test -n "$ac_tool_prefix"; then 4935 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4936set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4938$as_echo_n "checking for $ac_word... " >&6; } 4939if ${ac_cv_prog_DLLTOOL+:} false; then : 4940 $as_echo_n "(cached) " >&6 4941else 4942 if test -n "$DLLTOOL"; then 4943 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4944else 4945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4946for as_dir in $PATH 4947do 4948 IFS=$as_save_IFS 4949 test -z "$as_dir" && as_dir=. 4950 for ac_exec_ext in '' $ac_executable_extensions; do 4951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4952 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4954 break 2 4955 fi 4956done 4957 done 4958IFS=$as_save_IFS 4959 4960fi 4961fi 4962DLLTOOL=$ac_cv_prog_DLLTOOL 4963if test -n "$DLLTOOL"; then 4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4965$as_echo "$DLLTOOL" >&6; } 4966else 4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4968$as_echo "no" >&6; } 4969fi 4970 4971 4972fi 4973if test -z "$ac_cv_prog_DLLTOOL"; then 4974 ac_ct_DLLTOOL=$DLLTOOL 4975 # Extract the first word of "dlltool", so it can be a program name with args. 4976set dummy dlltool; ac_word=$2 4977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4978$as_echo_n "checking for $ac_word... " >&6; } 4979if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 4980 $as_echo_n "(cached) " >&6 4981else 4982 if test -n "$ac_ct_DLLTOOL"; then 4983 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4984else 4985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4986for as_dir in $PATH 4987do 4988 IFS=$as_save_IFS 4989 test -z "$as_dir" && as_dir=. 4990 for ac_exec_ext in '' $ac_executable_extensions; do 4991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4992 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4994 break 2 4995 fi 4996done 4997 done 4998IFS=$as_save_IFS 4999 5000fi 5001fi 5002ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5003if test -n "$ac_ct_DLLTOOL"; then 5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5005$as_echo "$ac_ct_DLLTOOL" >&6; } 5006else 5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5008$as_echo "no" >&6; } 5009fi 5010 5011 if test "x$ac_ct_DLLTOOL" = x; then 5012 DLLTOOL="false" 5013 else 5014 case $cross_compiling:$ac_tool_warned in 5015yes:) 5016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5018ac_tool_warned=yes ;; 5019esac 5020 DLLTOOL=$ac_ct_DLLTOOL 5021 fi 5022else 5023 DLLTOOL="$ac_cv_prog_DLLTOOL" 5024fi 5025 5026test -z "$DLLTOOL" && DLLTOOL=dlltool 5027 5028 5029 5030 5031 5032 5033 5034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5035$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5036if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5037 $as_echo_n "(cached) " >&6 5038else 5039 lt_cv_sharedlib_from_linklib_cmd='unknown' 5040 5041case $host_os in 5042cygwin* | mingw* | pw32* | cegcc*) 5043 # two different shell functions defined in ltmain.sh 5044 # decide which to use based on capabilities of $DLLTOOL 5045 case `$DLLTOOL --help 2>&1` in 5046 *--identify-strict*) 5047 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5048 ;; 5049 *) 5050 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5051 ;; 5052 esac 5053 ;; 5054*) 5055 # fallback: assume linklib IS sharedlib 5056 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5057 ;; 5058esac 5059 5060fi 5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5062$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5063sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5064test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5065 5066 5067 5068 5069 5070 5071 5072if test -n "$ac_tool_prefix"; then 5073 for ac_prog in ar 5074 do 5075 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5076set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5078$as_echo_n "checking for $ac_word... " >&6; } 5079if ${ac_cv_prog_AR+:} false; then : 5080 $as_echo_n "(cached) " >&6 5081else 5082 if test -n "$AR"; then 5083 ac_cv_prog_AR="$AR" # Let the user override the test. 5084else 5085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5086for as_dir in $PATH 5087do 5088 IFS=$as_save_IFS 5089 test -z "$as_dir" && as_dir=. 5090 for ac_exec_ext in '' $ac_executable_extensions; do 5091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5092 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5094 break 2 5095 fi 5096done 5097 done 5098IFS=$as_save_IFS 5099 5100fi 5101fi 5102AR=$ac_cv_prog_AR 5103if test -n "$AR"; then 5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5105$as_echo "$AR" >&6; } 5106else 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5108$as_echo "no" >&6; } 5109fi 5110 5111 5112 test -n "$AR" && break 5113 done 5114fi 5115if test -z "$AR"; then 5116 ac_ct_AR=$AR 5117 for ac_prog in ar 5118do 5119 # Extract the first word of "$ac_prog", so it can be a program name with args. 5120set dummy $ac_prog; ac_word=$2 5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5122$as_echo_n "checking for $ac_word... " >&6; } 5123if ${ac_cv_prog_ac_ct_AR+:} false; then : 5124 $as_echo_n "(cached) " >&6 5125else 5126 if test -n "$ac_ct_AR"; then 5127 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5128else 5129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5130for as_dir in $PATH 5131do 5132 IFS=$as_save_IFS 5133 test -z "$as_dir" && as_dir=. 5134 for ac_exec_ext in '' $ac_executable_extensions; do 5135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5136 ac_cv_prog_ac_ct_AR="$ac_prog" 5137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5138 break 2 5139 fi 5140done 5141 done 5142IFS=$as_save_IFS 5143 5144fi 5145fi 5146ac_ct_AR=$ac_cv_prog_ac_ct_AR 5147if test -n "$ac_ct_AR"; then 5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5149$as_echo "$ac_ct_AR" >&6; } 5150else 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5152$as_echo "no" >&6; } 5153fi 5154 5155 5156 test -n "$ac_ct_AR" && break 5157done 5158 5159 if test "x$ac_ct_AR" = x; then 5160 AR="false" 5161 else 5162 case $cross_compiling:$ac_tool_warned in 5163yes:) 5164{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5165$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5166ac_tool_warned=yes ;; 5167esac 5168 AR=$ac_ct_AR 5169 fi 5170fi 5171 5172: ${AR=ar} 5173: ${AR_FLAGS=cru} 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5186$as_echo_n "checking for archiver @FILE support... " >&6; } 5187if ${lt_cv_ar_at_file+:} false; then : 5188 $as_echo_n "(cached) " >&6 5189else 5190 lt_cv_ar_at_file=no 5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5192/* end confdefs.h. */ 5193 5194int 5195main () 5196{ 5197 5198 ; 5199 return 0; 5200} 5201_ACEOF 5202if ac_fn_c_try_compile "$LINENO"; then : 5203 echo conftest.$ac_objext > conftest.lst 5204 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5206 (eval $lt_ar_try) 2>&5 5207 ac_status=$? 5208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5209 test $ac_status = 0; } 5210 if test "$ac_status" -eq 0; then 5211 # Ensure the archiver fails upon bogus file names. 5212 rm -f conftest.$ac_objext libconftest.a 5213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5214 (eval $lt_ar_try) 2>&5 5215 ac_status=$? 5216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5217 test $ac_status = 0; } 5218 if test "$ac_status" -ne 0; then 5219 lt_cv_ar_at_file=@ 5220 fi 5221 fi 5222 rm -f conftest.* libconftest.a 5223 5224fi 5225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5226 5227fi 5228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5229$as_echo "$lt_cv_ar_at_file" >&6; } 5230 5231if test "x$lt_cv_ar_at_file" = xno; then 5232 archiver_list_spec= 5233else 5234 archiver_list_spec=$lt_cv_ar_at_file 5235fi 5236 5237 5238 5239 5240 5241 5242 5243if test -n "$ac_tool_prefix"; then 5244 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5245set dummy ${ac_tool_prefix}strip; ac_word=$2 5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5247$as_echo_n "checking for $ac_word... " >&6; } 5248if ${ac_cv_prog_STRIP+:} false; then : 5249 $as_echo_n "(cached) " >&6 5250else 5251 if test -n "$STRIP"; then 5252 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5253else 5254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5255for as_dir in $PATH 5256do 5257 IFS=$as_save_IFS 5258 test -z "$as_dir" && as_dir=. 5259 for ac_exec_ext in '' $ac_executable_extensions; do 5260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5261 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5263 break 2 5264 fi 5265done 5266 done 5267IFS=$as_save_IFS 5268 5269fi 5270fi 5271STRIP=$ac_cv_prog_STRIP 5272if test -n "$STRIP"; then 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5274$as_echo "$STRIP" >&6; } 5275else 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5277$as_echo "no" >&6; } 5278fi 5279 5280 5281fi 5282if test -z "$ac_cv_prog_STRIP"; then 5283 ac_ct_STRIP=$STRIP 5284 # Extract the first word of "strip", so it can be a program name with args. 5285set dummy strip; ac_word=$2 5286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5287$as_echo_n "checking for $ac_word... " >&6; } 5288if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5289 $as_echo_n "(cached) " >&6 5290else 5291 if test -n "$ac_ct_STRIP"; then 5292 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5293else 5294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5295for as_dir in $PATH 5296do 5297 IFS=$as_save_IFS 5298 test -z "$as_dir" && as_dir=. 5299 for ac_exec_ext in '' $ac_executable_extensions; do 5300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5301 ac_cv_prog_ac_ct_STRIP="strip" 5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5303 break 2 5304 fi 5305done 5306 done 5307IFS=$as_save_IFS 5308 5309fi 5310fi 5311ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5312if test -n "$ac_ct_STRIP"; then 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5314$as_echo "$ac_ct_STRIP" >&6; } 5315else 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5317$as_echo "no" >&6; } 5318fi 5319 5320 if test "x$ac_ct_STRIP" = x; then 5321 STRIP=":" 5322 else 5323 case $cross_compiling:$ac_tool_warned in 5324yes:) 5325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5327ac_tool_warned=yes ;; 5328esac 5329 STRIP=$ac_ct_STRIP 5330 fi 5331else 5332 STRIP="$ac_cv_prog_STRIP" 5333fi 5334 5335test -z "$STRIP" && STRIP=: 5336 5337 5338 5339 5340 5341 5342if test -n "$ac_tool_prefix"; then 5343 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5344set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5346$as_echo_n "checking for $ac_word... " >&6; } 5347if ${ac_cv_prog_RANLIB+:} false; then : 5348 $as_echo_n "(cached) " >&6 5349else 5350 if test -n "$RANLIB"; then 5351 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5352else 5353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5354for as_dir in $PATH 5355do 5356 IFS=$as_save_IFS 5357 test -z "$as_dir" && as_dir=. 5358 for ac_exec_ext in '' $ac_executable_extensions; do 5359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5360 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5362 break 2 5363 fi 5364done 5365 done 5366IFS=$as_save_IFS 5367 5368fi 5369fi 5370RANLIB=$ac_cv_prog_RANLIB 5371if test -n "$RANLIB"; then 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5373$as_echo "$RANLIB" >&6; } 5374else 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5376$as_echo "no" >&6; } 5377fi 5378 5379 5380fi 5381if test -z "$ac_cv_prog_RANLIB"; then 5382 ac_ct_RANLIB=$RANLIB 5383 # Extract the first word of "ranlib", so it can be a program name with args. 5384set dummy ranlib; ac_word=$2 5385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5386$as_echo_n "checking for $ac_word... " >&6; } 5387if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5388 $as_echo_n "(cached) " >&6 5389else 5390 if test -n "$ac_ct_RANLIB"; then 5391 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5392else 5393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5394for as_dir in $PATH 5395do 5396 IFS=$as_save_IFS 5397 test -z "$as_dir" && as_dir=. 5398 for ac_exec_ext in '' $ac_executable_extensions; do 5399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5400 ac_cv_prog_ac_ct_RANLIB="ranlib" 5401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5402 break 2 5403 fi 5404done 5405 done 5406IFS=$as_save_IFS 5407 5408fi 5409fi 5410ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5411if test -n "$ac_ct_RANLIB"; then 5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5413$as_echo "$ac_ct_RANLIB" >&6; } 5414else 5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5416$as_echo "no" >&6; } 5417fi 5418 5419 if test "x$ac_ct_RANLIB" = x; then 5420 RANLIB=":" 5421 else 5422 case $cross_compiling:$ac_tool_warned in 5423yes:) 5424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5426ac_tool_warned=yes ;; 5427esac 5428 RANLIB=$ac_ct_RANLIB 5429 fi 5430else 5431 RANLIB="$ac_cv_prog_RANLIB" 5432fi 5433 5434test -z "$RANLIB" && RANLIB=: 5435 5436 5437 5438 5439 5440 5441# Determine commands to create old-style static archives. 5442old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5443old_postinstall_cmds='chmod 644 $oldlib' 5444old_postuninstall_cmds= 5445 5446if test -n "$RANLIB"; then 5447 case $host_os in 5448 openbsd*) 5449 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5450 ;; 5451 *) 5452 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5453 ;; 5454 esac 5455 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5456fi 5457 5458case $host_os in 5459 darwin*) 5460 lock_old_archive_extraction=yes ;; 5461 *) 5462 lock_old_archive_extraction=no ;; 5463esac 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485for ac_prog in gawk mawk nawk awk 5486do 5487 # Extract the first word of "$ac_prog", so it can be a program name with args. 5488set dummy $ac_prog; ac_word=$2 5489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5490$as_echo_n "checking for $ac_word... " >&6; } 5491if ${ac_cv_prog_AWK+:} false; then : 5492 $as_echo_n "(cached) " >&6 5493else 5494 if test -n "$AWK"; then 5495 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5496else 5497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5498for as_dir in $PATH 5499do 5500 IFS=$as_save_IFS 5501 test -z "$as_dir" && as_dir=. 5502 for ac_exec_ext in '' $ac_executable_extensions; do 5503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5504 ac_cv_prog_AWK="$ac_prog" 5505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5506 break 2 5507 fi 5508done 5509 done 5510IFS=$as_save_IFS 5511 5512fi 5513fi 5514AWK=$ac_cv_prog_AWK 5515if test -n "$AWK"; then 5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5517$as_echo "$AWK" >&6; } 5518else 5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5520$as_echo "no" >&6; } 5521fi 5522 5523 5524 test -n "$AWK" && break 5525done 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545# If no C compiler was specified, use CC. 5546LTCC=${LTCC-"$CC"} 5547 5548# If no C compiler flags were specified, use CFLAGS. 5549LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5550 5551# Allow CC to be a program name with arguments. 5552compiler=$CC 5553 5554 5555# Check for command to grab the raw symbol name followed by C symbol from nm. 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5557$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5558if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5559 $as_echo_n "(cached) " >&6 5560else 5561 5562# These are sane defaults that work on at least a few old systems. 5563# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5564 5565# Character class describing NM global symbol codes. 5566symcode='[BCDEGRST]' 5567 5568# Regexp to match symbols that can be accessed directly from C. 5569sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5570 5571# Define system-specific variables. 5572case $host_os in 5573aix*) 5574 symcode='[BCDT]' 5575 ;; 5576cygwin* | mingw* | pw32* | cegcc*) 5577 symcode='[ABCDGISTW]' 5578 ;; 5579hpux*) 5580 if test "$host_cpu" = ia64; then 5581 symcode='[ABCDEGRST]' 5582 fi 5583 ;; 5584irix* | nonstopux*) 5585 symcode='[BCDEGRST]' 5586 ;; 5587osf*) 5588 symcode='[BCDEGQRST]' 5589 ;; 5590solaris*) 5591 symcode='[BDRT]' 5592 ;; 5593sco3.2v5*) 5594 symcode='[DT]' 5595 ;; 5596sysv4.2uw2*) 5597 symcode='[DT]' 5598 ;; 5599sysv5* | sco5v6* | unixware* | OpenUNIX*) 5600 symcode='[ABDT]' 5601 ;; 5602sysv4) 5603 symcode='[DFNSTU]' 5604 ;; 5605esac 5606 5607# If we're using GNU nm, then use its standard symbol codes. 5608case `$NM -V 2>&1` in 5609*GNU* | *'with BFD'*) 5610 symcode='[ABCDGIRSTW]' ;; 5611esac 5612 5613# Transform an extracted symbol line into a proper C declaration. 5614# Some systems (esp. on ia64) link data and code symbols differently, 5615# so use this general approach. 5616lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5617 5618# Transform an extracted symbol line into symbol name and symbol address 5619lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5620lt_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'" 5621 5622# Handle CRLF in mingw tool chain 5623opt_cr= 5624case $build_os in 5625mingw*) 5626 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5627 ;; 5628esac 5629 5630# Try without a prefix underscore, then with it. 5631for ac_symprfx in "" "_"; do 5632 5633 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5634 symxfrm="\\1 $ac_symprfx\\2 \\2" 5635 5636 # Write the raw and C identifiers. 5637 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5638 # Fake it for dumpbin and say T for any non-static function 5639 # and D for any global variable. 5640 # Also find C++ and __fastcall symbols from MSVC++, 5641 # which start with @ or ?. 5642 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5643" {last_section=section; section=\$ 3};"\ 5644" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5645" \$ 0!~/External *\|/{next};"\ 5646" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5647" {if(hide[section]) next};"\ 5648" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5649" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5650" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5651" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5652" ' prfx=^$ac_symprfx" 5653 else 5654 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5655 fi 5656 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5657 5658 # Check to see that the pipe works correctly. 5659 pipe_works=no 5660 5661 rm -f conftest* 5662 cat > conftest.$ac_ext <<_LT_EOF 5663#ifdef __cplusplus 5664extern "C" { 5665#endif 5666char nm_test_var; 5667void nm_test_func(void); 5668void nm_test_func(void){} 5669#ifdef __cplusplus 5670} 5671#endif 5672int main(){nm_test_var='a';nm_test_func();return(0);} 5673_LT_EOF 5674 5675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5676 (eval $ac_compile) 2>&5 5677 ac_status=$? 5678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5679 test $ac_status = 0; }; then 5680 # Now try to grab the symbols. 5681 nlist=conftest.nm 5682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5683 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5684 ac_status=$? 5685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5686 test $ac_status = 0; } && test -s "$nlist"; then 5687 # Try sorting and uniquifying the output. 5688 if sort "$nlist" | uniq > "$nlist"T; then 5689 mv -f "$nlist"T "$nlist" 5690 else 5691 rm -f "$nlist"T 5692 fi 5693 5694 # Make sure that we snagged all the symbols we need. 5695 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5696 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5697 cat <<_LT_EOF > conftest.$ac_ext 5698/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 5699#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 5700/* DATA imports from DLLs on WIN32 con't be const, because runtime 5701 relocations are performed -- see ld's documentation on pseudo-relocs. */ 5702# define LT_DLSYM_CONST 5703#elif defined(__osf__) 5704/* This system does not cope well with relocations in const data. */ 5705# define LT_DLSYM_CONST 5706#else 5707# define LT_DLSYM_CONST const 5708#endif 5709 5710#ifdef __cplusplus 5711extern "C" { 5712#endif 5713 5714_LT_EOF 5715 # Now generate the symbol file. 5716 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5717 5718 cat <<_LT_EOF >> conftest.$ac_ext 5719 5720/* The mapping between symbol names and symbols. */ 5721LT_DLSYM_CONST struct { 5722 const char *name; 5723 void *address; 5724} 5725lt__PROGRAM__LTX_preloaded_symbols[] = 5726{ 5727 { "@PROGRAM@", (void *) 0 }, 5728_LT_EOF 5729 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5730 cat <<\_LT_EOF >> conftest.$ac_ext 5731 {0, (void *) 0} 5732}; 5733 5734/* This works around a problem in FreeBSD linker */ 5735#ifdef FREEBSD_WORKAROUND 5736static const void *lt_preloaded_setup() { 5737 return lt__PROGRAM__LTX_preloaded_symbols; 5738} 5739#endif 5740 5741#ifdef __cplusplus 5742} 5743#endif 5744_LT_EOF 5745 # Now try linking the two files. 5746 mv conftest.$ac_objext conftstm.$ac_objext 5747 lt_globsym_save_LIBS=$LIBS 5748 lt_globsym_save_CFLAGS=$CFLAGS 5749 LIBS="conftstm.$ac_objext" 5750 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5752 (eval $ac_link) 2>&5 5753 ac_status=$? 5754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5755 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5756 pipe_works=yes 5757 fi 5758 LIBS=$lt_globsym_save_LIBS 5759 CFLAGS=$lt_globsym_save_CFLAGS 5760 else 5761 echo "cannot find nm_test_func in $nlist" >&5 5762 fi 5763 else 5764 echo "cannot find nm_test_var in $nlist" >&5 5765 fi 5766 else 5767 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5768 fi 5769 else 5770 echo "$progname: failed program was:" >&5 5771 cat conftest.$ac_ext >&5 5772 fi 5773 rm -rf conftest* conftst* 5774 5775 # Do not use the global_symbol_pipe unless it works. 5776 if test "$pipe_works" = yes; then 5777 break 5778 else 5779 lt_cv_sys_global_symbol_pipe= 5780 fi 5781done 5782 5783fi 5784 5785if test -z "$lt_cv_sys_global_symbol_pipe"; then 5786 lt_cv_sys_global_symbol_to_cdecl= 5787fi 5788if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5790$as_echo "failed" >&6; } 5791else 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5793$as_echo "ok" >&6; } 5794fi 5795 5796# Response file support. 5797if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5798 nm_file_list_spec='@' 5799elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 5800 nm_file_list_spec='@' 5801fi 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 5830$as_echo_n "checking for sysroot... " >&6; } 5831 5832# Check whether --with-sysroot was given. 5833if test "${with_sysroot+set}" = set; then : 5834 withval=$with_sysroot; 5835else 5836 with_sysroot=no 5837fi 5838 5839 5840lt_sysroot= 5841case ${with_sysroot} in #( 5842 yes) 5843 if test "$GCC" = yes; then 5844 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 5845 fi 5846 ;; #( 5847 /*) 5848 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 5849 ;; #( 5850 no|'') 5851 ;; #( 5852 *) 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 5854$as_echo "${with_sysroot}" >&6; } 5855 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 5856 ;; 5857esac 5858 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 5860$as_echo "${lt_sysroot:-no}" >&6; } 5861 5862 5863 5864 5865 5866# Check whether --enable-libtool-lock was given. 5867if test "${enable_libtool_lock+set}" = set; then : 5868 enableval=$enable_libtool_lock; 5869fi 5870 5871test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5872 5873# Some flags need to be propagated to the compiler or linker for good 5874# libtool support. 5875case $host in 5876ia64-*-hpux*) 5877 # Find out which ABI we are using. 5878 echo 'int i;' > conftest.$ac_ext 5879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5880 (eval $ac_compile) 2>&5 5881 ac_status=$? 5882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5883 test $ac_status = 0; }; then 5884 case `/usr/bin/file conftest.$ac_objext` in 5885 *ELF-32*) 5886 HPUX_IA64_MODE="32" 5887 ;; 5888 *ELF-64*) 5889 HPUX_IA64_MODE="64" 5890 ;; 5891 esac 5892 fi 5893 rm -rf conftest* 5894 ;; 5895*-*-irix6*) 5896 # Find out which ABI we are using. 5897 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 5898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5899 (eval $ac_compile) 2>&5 5900 ac_status=$? 5901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5902 test $ac_status = 0; }; then 5903 if test "$lt_cv_prog_gnu_ld" = yes; then 5904 case `/usr/bin/file conftest.$ac_objext` in 5905 *32-bit*) 5906 LD="${LD-ld} -melf32bsmip" 5907 ;; 5908 *N32*) 5909 LD="${LD-ld} -melf32bmipn32" 5910 ;; 5911 *64-bit*) 5912 LD="${LD-ld} -melf64bmip" 5913 ;; 5914 esac 5915 else 5916 case `/usr/bin/file conftest.$ac_objext` in 5917 *32-bit*) 5918 LD="${LD-ld} -32" 5919 ;; 5920 *N32*) 5921 LD="${LD-ld} -n32" 5922 ;; 5923 *64-bit*) 5924 LD="${LD-ld} -64" 5925 ;; 5926 esac 5927 fi 5928 fi 5929 rm -rf conftest* 5930 ;; 5931 5932x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5933s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5934 # Find out which ABI we are using. 5935 echo 'int i;' > conftest.$ac_ext 5936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5937 (eval $ac_compile) 2>&5 5938 ac_status=$? 5939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5940 test $ac_status = 0; }; then 5941 case `/usr/bin/file conftest.o` in 5942 *32-bit*) 5943 case $host in 5944 x86_64-*kfreebsd*-gnu) 5945 LD="${LD-ld} -m elf_i386_fbsd" 5946 ;; 5947 x86_64-*linux*) 5948 LD="${LD-ld} -m elf_i386" 5949 ;; 5950 ppc64-*linux*|powerpc64-*linux*) 5951 LD="${LD-ld} -m elf32ppclinux" 5952 ;; 5953 s390x-*linux*) 5954 LD="${LD-ld} -m elf_s390" 5955 ;; 5956 sparc64-*linux*) 5957 LD="${LD-ld} -m elf32_sparc" 5958 ;; 5959 esac 5960 ;; 5961 *64-bit*) 5962 case $host in 5963 x86_64-*kfreebsd*-gnu) 5964 LD="${LD-ld} -m elf_x86_64_fbsd" 5965 ;; 5966 x86_64-*linux*) 5967 LD="${LD-ld} -m elf_x86_64" 5968 ;; 5969 ppc*-*linux*|powerpc*-*linux*) 5970 LD="${LD-ld} -m elf64ppc" 5971 ;; 5972 s390*-*linux*|s390*-*tpf*) 5973 LD="${LD-ld} -m elf64_s390" 5974 ;; 5975 sparc*-*linux*) 5976 LD="${LD-ld} -m elf64_sparc" 5977 ;; 5978 esac 5979 ;; 5980 esac 5981 fi 5982 rm -rf conftest* 5983 ;; 5984 5985*-*-sco3.2v5*) 5986 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5987 SAVE_CFLAGS="$CFLAGS" 5988 CFLAGS="$CFLAGS -belf" 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 5990$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5991if ${lt_cv_cc_needs_belf+:} false; then : 5992 $as_echo_n "(cached) " >&6 5993else 5994 ac_ext=c 5995ac_cpp='$CPP $CPPFLAGS' 5996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5998ac_compiler_gnu=$ac_cv_c_compiler_gnu 5999 6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6001/* end confdefs.h. */ 6002 6003int 6004main () 6005{ 6006 6007 ; 6008 return 0; 6009} 6010_ACEOF 6011if ac_fn_c_try_link "$LINENO"; then : 6012 lt_cv_cc_needs_belf=yes 6013else 6014 lt_cv_cc_needs_belf=no 6015fi 6016rm -f core conftest.err conftest.$ac_objext \ 6017 conftest$ac_exeext conftest.$ac_ext 6018 ac_ext=c 6019ac_cpp='$CPP $CPPFLAGS' 6020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6022ac_compiler_gnu=$ac_cv_c_compiler_gnu 6023 6024fi 6025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6026$as_echo "$lt_cv_cc_needs_belf" >&6; } 6027 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6028 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6029 CFLAGS="$SAVE_CFLAGS" 6030 fi 6031 ;; 6032sparc*-*solaris*) 6033 # Find out which ABI we are using. 6034 echo 'int i;' > conftest.$ac_ext 6035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6036 (eval $ac_compile) 2>&5 6037 ac_status=$? 6038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6039 test $ac_status = 0; }; then 6040 case `/usr/bin/file conftest.o` in 6041 *64-bit*) 6042 case $lt_cv_prog_gnu_ld in 6043 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6044 *) 6045 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6046 LD="${LD-ld} -64" 6047 fi 6048 ;; 6049 esac 6050 ;; 6051 esac 6052 fi 6053 rm -rf conftest* 6054 ;; 6055esac 6056 6057need_locks="$enable_libtool_lock" 6058 6059if test -n "$ac_tool_prefix"; then 6060 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6061set dummy ${ac_tool_prefix}mt; ac_word=$2 6062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6063$as_echo_n "checking for $ac_word... " >&6; } 6064if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6065 $as_echo_n "(cached) " >&6 6066else 6067 if test -n "$MANIFEST_TOOL"; then 6068 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6069else 6070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6071for as_dir in $PATH 6072do 6073 IFS=$as_save_IFS 6074 test -z "$as_dir" && as_dir=. 6075 for ac_exec_ext in '' $ac_executable_extensions; do 6076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6077 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6079 break 2 6080 fi 6081done 6082 done 6083IFS=$as_save_IFS 6084 6085fi 6086fi 6087MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6088if test -n "$MANIFEST_TOOL"; then 6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6090$as_echo "$MANIFEST_TOOL" >&6; } 6091else 6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6093$as_echo "no" >&6; } 6094fi 6095 6096 6097fi 6098if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6099 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6100 # Extract the first word of "mt", so it can be a program name with args. 6101set dummy mt; ac_word=$2 6102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6103$as_echo_n "checking for $ac_word... " >&6; } 6104if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6105 $as_echo_n "(cached) " >&6 6106else 6107 if test -n "$ac_ct_MANIFEST_TOOL"; then 6108 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6109else 6110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6111for as_dir in $PATH 6112do 6113 IFS=$as_save_IFS 6114 test -z "$as_dir" && as_dir=. 6115 for ac_exec_ext in '' $ac_executable_extensions; do 6116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6117 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6119 break 2 6120 fi 6121done 6122 done 6123IFS=$as_save_IFS 6124 6125fi 6126fi 6127ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6128if test -n "$ac_ct_MANIFEST_TOOL"; then 6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6130$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6131else 6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6133$as_echo "no" >&6; } 6134fi 6135 6136 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6137 MANIFEST_TOOL=":" 6138 else 6139 case $cross_compiling:$ac_tool_warned in 6140yes:) 6141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6143ac_tool_warned=yes ;; 6144esac 6145 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6146 fi 6147else 6148 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6149fi 6150 6151test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6153$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6154if ${lt_cv_path_mainfest_tool+:} false; then : 6155 $as_echo_n "(cached) " >&6 6156else 6157 lt_cv_path_mainfest_tool=no 6158 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6159 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6160 cat conftest.err >&5 6161 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6162 lt_cv_path_mainfest_tool=yes 6163 fi 6164 rm -f conftest* 6165fi 6166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6167$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6168if test "x$lt_cv_path_mainfest_tool" != xyes; then 6169 MANIFEST_TOOL=: 6170fi 6171 6172 6173 6174 6175 6176 6177 case $host_os in 6178 rhapsody* | darwin*) 6179 if test -n "$ac_tool_prefix"; then 6180 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6181set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6183$as_echo_n "checking for $ac_word... " >&6; } 6184if ${ac_cv_prog_DSYMUTIL+:} false; then : 6185 $as_echo_n "(cached) " >&6 6186else 6187 if test -n "$DSYMUTIL"; then 6188 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6189else 6190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6191for as_dir in $PATH 6192do 6193 IFS=$as_save_IFS 6194 test -z "$as_dir" && as_dir=. 6195 for ac_exec_ext in '' $ac_executable_extensions; do 6196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6197 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6199 break 2 6200 fi 6201done 6202 done 6203IFS=$as_save_IFS 6204 6205fi 6206fi 6207DSYMUTIL=$ac_cv_prog_DSYMUTIL 6208if test -n "$DSYMUTIL"; then 6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6210$as_echo "$DSYMUTIL" >&6; } 6211else 6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6213$as_echo "no" >&6; } 6214fi 6215 6216 6217fi 6218if test -z "$ac_cv_prog_DSYMUTIL"; then 6219 ac_ct_DSYMUTIL=$DSYMUTIL 6220 # Extract the first word of "dsymutil", so it can be a program name with args. 6221set dummy dsymutil; ac_word=$2 6222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6223$as_echo_n "checking for $ac_word... " >&6; } 6224if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6225 $as_echo_n "(cached) " >&6 6226else 6227 if test -n "$ac_ct_DSYMUTIL"; then 6228 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6229else 6230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6231for as_dir in $PATH 6232do 6233 IFS=$as_save_IFS 6234 test -z "$as_dir" && as_dir=. 6235 for ac_exec_ext in '' $ac_executable_extensions; do 6236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6237 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6239 break 2 6240 fi 6241done 6242 done 6243IFS=$as_save_IFS 6244 6245fi 6246fi 6247ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6248if test -n "$ac_ct_DSYMUTIL"; then 6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6250$as_echo "$ac_ct_DSYMUTIL" >&6; } 6251else 6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6253$as_echo "no" >&6; } 6254fi 6255 6256 if test "x$ac_ct_DSYMUTIL" = x; then 6257 DSYMUTIL=":" 6258 else 6259 case $cross_compiling:$ac_tool_warned in 6260yes:) 6261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6263ac_tool_warned=yes ;; 6264esac 6265 DSYMUTIL=$ac_ct_DSYMUTIL 6266 fi 6267else 6268 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6269fi 6270 6271 if test -n "$ac_tool_prefix"; then 6272 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6273set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6275$as_echo_n "checking for $ac_word... " >&6; } 6276if ${ac_cv_prog_NMEDIT+:} false; then : 6277 $as_echo_n "(cached) " >&6 6278else 6279 if test -n "$NMEDIT"; then 6280 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6281else 6282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6283for as_dir in $PATH 6284do 6285 IFS=$as_save_IFS 6286 test -z "$as_dir" && as_dir=. 6287 for ac_exec_ext in '' $ac_executable_extensions; do 6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6289 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6291 break 2 6292 fi 6293done 6294 done 6295IFS=$as_save_IFS 6296 6297fi 6298fi 6299NMEDIT=$ac_cv_prog_NMEDIT 6300if test -n "$NMEDIT"; then 6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6302$as_echo "$NMEDIT" >&6; } 6303else 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6305$as_echo "no" >&6; } 6306fi 6307 6308 6309fi 6310if test -z "$ac_cv_prog_NMEDIT"; then 6311 ac_ct_NMEDIT=$NMEDIT 6312 # Extract the first word of "nmedit", so it can be a program name with args. 6313set dummy nmedit; ac_word=$2 6314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6315$as_echo_n "checking for $ac_word... " >&6; } 6316if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6317 $as_echo_n "(cached) " >&6 6318else 6319 if test -n "$ac_ct_NMEDIT"; then 6320 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6321else 6322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6323for as_dir in $PATH 6324do 6325 IFS=$as_save_IFS 6326 test -z "$as_dir" && as_dir=. 6327 for ac_exec_ext in '' $ac_executable_extensions; do 6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6329 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6331 break 2 6332 fi 6333done 6334 done 6335IFS=$as_save_IFS 6336 6337fi 6338fi 6339ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6340if test -n "$ac_ct_NMEDIT"; then 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6342$as_echo "$ac_ct_NMEDIT" >&6; } 6343else 6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6345$as_echo "no" >&6; } 6346fi 6347 6348 if test "x$ac_ct_NMEDIT" = x; then 6349 NMEDIT=":" 6350 else 6351 case $cross_compiling:$ac_tool_warned in 6352yes:) 6353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6355ac_tool_warned=yes ;; 6356esac 6357 NMEDIT=$ac_ct_NMEDIT 6358 fi 6359else 6360 NMEDIT="$ac_cv_prog_NMEDIT" 6361fi 6362 6363 if test -n "$ac_tool_prefix"; then 6364 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6365set dummy ${ac_tool_prefix}lipo; ac_word=$2 6366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6367$as_echo_n "checking for $ac_word... " >&6; } 6368if ${ac_cv_prog_LIPO+:} false; then : 6369 $as_echo_n "(cached) " >&6 6370else 6371 if test -n "$LIPO"; then 6372 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6373else 6374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6375for as_dir in $PATH 6376do 6377 IFS=$as_save_IFS 6378 test -z "$as_dir" && as_dir=. 6379 for ac_exec_ext in '' $ac_executable_extensions; do 6380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6381 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6383 break 2 6384 fi 6385done 6386 done 6387IFS=$as_save_IFS 6388 6389fi 6390fi 6391LIPO=$ac_cv_prog_LIPO 6392if test -n "$LIPO"; then 6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6394$as_echo "$LIPO" >&6; } 6395else 6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6397$as_echo "no" >&6; } 6398fi 6399 6400 6401fi 6402if test -z "$ac_cv_prog_LIPO"; then 6403 ac_ct_LIPO=$LIPO 6404 # Extract the first word of "lipo", so it can be a program name with args. 6405set dummy lipo; ac_word=$2 6406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6407$as_echo_n "checking for $ac_word... " >&6; } 6408if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6409 $as_echo_n "(cached) " >&6 6410else 6411 if test -n "$ac_ct_LIPO"; then 6412 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6413else 6414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6415for as_dir in $PATH 6416do 6417 IFS=$as_save_IFS 6418 test -z "$as_dir" && as_dir=. 6419 for ac_exec_ext in '' $ac_executable_extensions; do 6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6421 ac_cv_prog_ac_ct_LIPO="lipo" 6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6423 break 2 6424 fi 6425done 6426 done 6427IFS=$as_save_IFS 6428 6429fi 6430fi 6431ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6432if test -n "$ac_ct_LIPO"; then 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6434$as_echo "$ac_ct_LIPO" >&6; } 6435else 6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6437$as_echo "no" >&6; } 6438fi 6439 6440 if test "x$ac_ct_LIPO" = x; then 6441 LIPO=":" 6442 else 6443 case $cross_compiling:$ac_tool_warned in 6444yes:) 6445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6447ac_tool_warned=yes ;; 6448esac 6449 LIPO=$ac_ct_LIPO 6450 fi 6451else 6452 LIPO="$ac_cv_prog_LIPO" 6453fi 6454 6455 if test -n "$ac_tool_prefix"; then 6456 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6457set dummy ${ac_tool_prefix}otool; ac_word=$2 6458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6459$as_echo_n "checking for $ac_word... " >&6; } 6460if ${ac_cv_prog_OTOOL+:} false; then : 6461 $as_echo_n "(cached) " >&6 6462else 6463 if test -n "$OTOOL"; then 6464 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6465else 6466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6467for as_dir in $PATH 6468do 6469 IFS=$as_save_IFS 6470 test -z "$as_dir" && as_dir=. 6471 for ac_exec_ext in '' $ac_executable_extensions; do 6472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6473 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6475 break 2 6476 fi 6477done 6478 done 6479IFS=$as_save_IFS 6480 6481fi 6482fi 6483OTOOL=$ac_cv_prog_OTOOL 6484if test -n "$OTOOL"; then 6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6486$as_echo "$OTOOL" >&6; } 6487else 6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6489$as_echo "no" >&6; } 6490fi 6491 6492 6493fi 6494if test -z "$ac_cv_prog_OTOOL"; then 6495 ac_ct_OTOOL=$OTOOL 6496 # Extract the first word of "otool", so it can be a program name with args. 6497set dummy otool; ac_word=$2 6498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6499$as_echo_n "checking for $ac_word... " >&6; } 6500if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6501 $as_echo_n "(cached) " >&6 6502else 6503 if test -n "$ac_ct_OTOOL"; then 6504 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6505else 6506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6507for as_dir in $PATH 6508do 6509 IFS=$as_save_IFS 6510 test -z "$as_dir" && as_dir=. 6511 for ac_exec_ext in '' $ac_executable_extensions; do 6512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6513 ac_cv_prog_ac_ct_OTOOL="otool" 6514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6515 break 2 6516 fi 6517done 6518 done 6519IFS=$as_save_IFS 6520 6521fi 6522fi 6523ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6524if test -n "$ac_ct_OTOOL"; then 6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6526$as_echo "$ac_ct_OTOOL" >&6; } 6527else 6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6529$as_echo "no" >&6; } 6530fi 6531 6532 if test "x$ac_ct_OTOOL" = x; then 6533 OTOOL=":" 6534 else 6535 case $cross_compiling:$ac_tool_warned in 6536yes:) 6537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6539ac_tool_warned=yes ;; 6540esac 6541 OTOOL=$ac_ct_OTOOL 6542 fi 6543else 6544 OTOOL="$ac_cv_prog_OTOOL" 6545fi 6546 6547 if test -n "$ac_tool_prefix"; then 6548 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6549set dummy ${ac_tool_prefix}otool64; ac_word=$2 6550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6551$as_echo_n "checking for $ac_word... " >&6; } 6552if ${ac_cv_prog_OTOOL64+:} false; then : 6553 $as_echo_n "(cached) " >&6 6554else 6555 if test -n "$OTOOL64"; then 6556 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6557else 6558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6559for as_dir in $PATH 6560do 6561 IFS=$as_save_IFS 6562 test -z "$as_dir" && as_dir=. 6563 for ac_exec_ext in '' $ac_executable_extensions; do 6564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6565 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6567 break 2 6568 fi 6569done 6570 done 6571IFS=$as_save_IFS 6572 6573fi 6574fi 6575OTOOL64=$ac_cv_prog_OTOOL64 6576if test -n "$OTOOL64"; then 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6578$as_echo "$OTOOL64" >&6; } 6579else 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6581$as_echo "no" >&6; } 6582fi 6583 6584 6585fi 6586if test -z "$ac_cv_prog_OTOOL64"; then 6587 ac_ct_OTOOL64=$OTOOL64 6588 # Extract the first word of "otool64", so it can be a program name with args. 6589set dummy otool64; ac_word=$2 6590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6591$as_echo_n "checking for $ac_word... " >&6; } 6592if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6593 $as_echo_n "(cached) " >&6 6594else 6595 if test -n "$ac_ct_OTOOL64"; then 6596 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6597else 6598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6599for as_dir in $PATH 6600do 6601 IFS=$as_save_IFS 6602 test -z "$as_dir" && as_dir=. 6603 for ac_exec_ext in '' $ac_executable_extensions; do 6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6605 ac_cv_prog_ac_ct_OTOOL64="otool64" 6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6607 break 2 6608 fi 6609done 6610 done 6611IFS=$as_save_IFS 6612 6613fi 6614fi 6615ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6616if test -n "$ac_ct_OTOOL64"; then 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6618$as_echo "$ac_ct_OTOOL64" >&6; } 6619else 6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6621$as_echo "no" >&6; } 6622fi 6623 6624 if test "x$ac_ct_OTOOL64" = x; then 6625 OTOOL64=":" 6626 else 6627 case $cross_compiling:$ac_tool_warned in 6628yes:) 6629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6631ac_tool_warned=yes ;; 6632esac 6633 OTOOL64=$ac_ct_OTOOL64 6634 fi 6635else 6636 OTOOL64="$ac_cv_prog_OTOOL64" 6637fi 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6666$as_echo_n "checking for -single_module linker flag... " >&6; } 6667if ${lt_cv_apple_cc_single_mod+:} false; then : 6668 $as_echo_n "(cached) " >&6 6669else 6670 lt_cv_apple_cc_single_mod=no 6671 if test -z "${LT_MULTI_MODULE}"; then 6672 # By default we will add the -single_module flag. You can override 6673 # by either setting the environment variable LT_MULTI_MODULE 6674 # non-empty at configure time, or by adding -multi_module to the 6675 # link flags. 6676 rm -rf libconftest.dylib* 6677 echo "int foo(void){return 1;}" > conftest.c 6678 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6679-dynamiclib -Wl,-single_module conftest.c" >&5 6680 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6681 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6682 _lt_result=$? 6683 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6684 lt_cv_apple_cc_single_mod=yes 6685 else 6686 cat conftest.err >&5 6687 fi 6688 rm -rf libconftest.dylib* 6689 rm -f conftest.* 6690 fi 6691fi 6692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6693$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6695$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6696if ${lt_cv_ld_exported_symbols_list+:} false; then : 6697 $as_echo_n "(cached) " >&6 6698else 6699 lt_cv_ld_exported_symbols_list=no 6700 save_LDFLAGS=$LDFLAGS 6701 echo "_main" > conftest.sym 6702 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6704/* end confdefs.h. */ 6705 6706int 6707main () 6708{ 6709 6710 ; 6711 return 0; 6712} 6713_ACEOF 6714if ac_fn_c_try_link "$LINENO"; then : 6715 lt_cv_ld_exported_symbols_list=yes 6716else 6717 lt_cv_ld_exported_symbols_list=no 6718fi 6719rm -f core conftest.err conftest.$ac_objext \ 6720 conftest$ac_exeext conftest.$ac_ext 6721 LDFLAGS="$save_LDFLAGS" 6722 6723fi 6724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6725$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6727$as_echo_n "checking for -force_load linker flag... " >&6; } 6728if ${lt_cv_ld_force_load+:} false; then : 6729 $as_echo_n "(cached) " >&6 6730else 6731 lt_cv_ld_force_load=no 6732 cat > conftest.c << _LT_EOF 6733int forced_loaded() { return 2;} 6734_LT_EOF 6735 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6736 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6737 echo "$AR cru libconftest.a conftest.o" >&5 6738 $AR cru libconftest.a conftest.o 2>&5 6739 echo "$RANLIB libconftest.a" >&5 6740 $RANLIB libconftest.a 2>&5 6741 cat > conftest.c << _LT_EOF 6742int main() { return 0;} 6743_LT_EOF 6744 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6745 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6746 _lt_result=$? 6747 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 6748 lt_cv_ld_force_load=yes 6749 else 6750 cat conftest.err >&5 6751 fi 6752 rm -f conftest.err libconftest.a conftest conftest.c 6753 rm -rf conftest.dSYM 6754 6755fi 6756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6757$as_echo "$lt_cv_ld_force_load" >&6; } 6758 case $host_os in 6759 rhapsody* | darwin1.[012]) 6760 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6761 darwin1.*) 6762 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6763 darwin*) # darwin 5.x on 6764 # if running on 10.5 or later, the deployment target defaults 6765 # to the OS version, if on x86, and 10.4, the deployment 6766 # target defaults to 10.4. Don't you love it? 6767 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6768 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6769 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6770 10.[012]*) 6771 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6772 10.*) 6773 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6774 esac 6775 ;; 6776 esac 6777 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6778 _lt_dar_single_mod='$single_module' 6779 fi 6780 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6781 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6782 else 6783 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6784 fi 6785 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 6786 _lt_dsymutil='~$DSYMUTIL $lib || :' 6787 else 6788 _lt_dsymutil= 6789 fi 6790 ;; 6791 esac 6792 6793for ac_header in dlfcn.h 6794do : 6795 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 6796" 6797if test "x$ac_cv_header_dlfcn_h" = xyes; then : 6798 cat >>confdefs.h <<_ACEOF 6799#define HAVE_DLFCN_H 1 6800_ACEOF 6801 6802fi 6803 6804done 6805 6806 6807 6808 6809 6810# Set options 6811enable_win32_dll=yes 6812 6813case $host in 6814*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 6815 if test -n "$ac_tool_prefix"; then 6816 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 6817set dummy ${ac_tool_prefix}as; ac_word=$2 6818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6819$as_echo_n "checking for $ac_word... " >&6; } 6820if ${ac_cv_prog_AS+:} false; then : 6821 $as_echo_n "(cached) " >&6 6822else 6823 if test -n "$AS"; then 6824 ac_cv_prog_AS="$AS" # Let the user override the test. 6825else 6826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6827for as_dir in $PATH 6828do 6829 IFS=$as_save_IFS 6830 test -z "$as_dir" && as_dir=. 6831 for ac_exec_ext in '' $ac_executable_extensions; do 6832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6833 ac_cv_prog_AS="${ac_tool_prefix}as" 6834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6835 break 2 6836 fi 6837done 6838 done 6839IFS=$as_save_IFS 6840 6841fi 6842fi 6843AS=$ac_cv_prog_AS 6844if test -n "$AS"; then 6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 6846$as_echo "$AS" >&6; } 6847else 6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6849$as_echo "no" >&6; } 6850fi 6851 6852 6853fi 6854if test -z "$ac_cv_prog_AS"; then 6855 ac_ct_AS=$AS 6856 # Extract the first word of "as", so it can be a program name with args. 6857set dummy as; ac_word=$2 6858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6859$as_echo_n "checking for $ac_word... " >&6; } 6860if ${ac_cv_prog_ac_ct_AS+:} false; then : 6861 $as_echo_n "(cached) " >&6 6862else 6863 if test -n "$ac_ct_AS"; then 6864 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 6865else 6866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6867for as_dir in $PATH 6868do 6869 IFS=$as_save_IFS 6870 test -z "$as_dir" && as_dir=. 6871 for ac_exec_ext in '' $ac_executable_extensions; do 6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6873 ac_cv_prog_ac_ct_AS="as" 6874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6875 break 2 6876 fi 6877done 6878 done 6879IFS=$as_save_IFS 6880 6881fi 6882fi 6883ac_ct_AS=$ac_cv_prog_ac_ct_AS 6884if test -n "$ac_ct_AS"; then 6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 6886$as_echo "$ac_ct_AS" >&6; } 6887else 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6889$as_echo "no" >&6; } 6890fi 6891 6892 if test "x$ac_ct_AS" = x; then 6893 AS="false" 6894 else 6895 case $cross_compiling:$ac_tool_warned in 6896yes:) 6897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6899ac_tool_warned=yes ;; 6900esac 6901 AS=$ac_ct_AS 6902 fi 6903else 6904 AS="$ac_cv_prog_AS" 6905fi 6906 6907 if test -n "$ac_tool_prefix"; then 6908 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6909set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6911$as_echo_n "checking for $ac_word... " >&6; } 6912if ${ac_cv_prog_DLLTOOL+:} false; then : 6913 $as_echo_n "(cached) " >&6 6914else 6915 if test -n "$DLLTOOL"; then 6916 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6917else 6918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6919for as_dir in $PATH 6920do 6921 IFS=$as_save_IFS 6922 test -z "$as_dir" && as_dir=. 6923 for ac_exec_ext in '' $ac_executable_extensions; do 6924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6925 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6927 break 2 6928 fi 6929done 6930 done 6931IFS=$as_save_IFS 6932 6933fi 6934fi 6935DLLTOOL=$ac_cv_prog_DLLTOOL 6936if test -n "$DLLTOOL"; then 6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6938$as_echo "$DLLTOOL" >&6; } 6939else 6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6941$as_echo "no" >&6; } 6942fi 6943 6944 6945fi 6946if test -z "$ac_cv_prog_DLLTOOL"; then 6947 ac_ct_DLLTOOL=$DLLTOOL 6948 # Extract the first word of "dlltool", so it can be a program name with args. 6949set dummy dlltool; ac_word=$2 6950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6951$as_echo_n "checking for $ac_word... " >&6; } 6952if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6953 $as_echo_n "(cached) " >&6 6954else 6955 if test -n "$ac_ct_DLLTOOL"; then 6956 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6957else 6958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6959for as_dir in $PATH 6960do 6961 IFS=$as_save_IFS 6962 test -z "$as_dir" && as_dir=. 6963 for ac_exec_ext in '' $ac_executable_extensions; do 6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6965 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6967 break 2 6968 fi 6969done 6970 done 6971IFS=$as_save_IFS 6972 6973fi 6974fi 6975ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6976if test -n "$ac_ct_DLLTOOL"; then 6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6978$as_echo "$ac_ct_DLLTOOL" >&6; } 6979else 6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6981$as_echo "no" >&6; } 6982fi 6983 6984 if test "x$ac_ct_DLLTOOL" = x; then 6985 DLLTOOL="false" 6986 else 6987 case $cross_compiling:$ac_tool_warned in 6988yes:) 6989{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6991ac_tool_warned=yes ;; 6992esac 6993 DLLTOOL=$ac_ct_DLLTOOL 6994 fi 6995else 6996 DLLTOOL="$ac_cv_prog_DLLTOOL" 6997fi 6998 6999 if test -n "$ac_tool_prefix"; then 7000 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7001set dummy ${ac_tool_prefix}objdump; ac_word=$2 7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7003$as_echo_n "checking for $ac_word... " >&6; } 7004if ${ac_cv_prog_OBJDUMP+:} false; then : 7005 $as_echo_n "(cached) " >&6 7006else 7007 if test -n "$OBJDUMP"; then 7008 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7009else 7010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7011for as_dir in $PATH 7012do 7013 IFS=$as_save_IFS 7014 test -z "$as_dir" && as_dir=. 7015 for ac_exec_ext in '' $ac_executable_extensions; do 7016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7017 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7019 break 2 7020 fi 7021done 7022 done 7023IFS=$as_save_IFS 7024 7025fi 7026fi 7027OBJDUMP=$ac_cv_prog_OBJDUMP 7028if test -n "$OBJDUMP"; then 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7030$as_echo "$OBJDUMP" >&6; } 7031else 7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7033$as_echo "no" >&6; } 7034fi 7035 7036 7037fi 7038if test -z "$ac_cv_prog_OBJDUMP"; then 7039 ac_ct_OBJDUMP=$OBJDUMP 7040 # Extract the first word of "objdump", so it can be a program name with args. 7041set dummy objdump; ac_word=$2 7042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7043$as_echo_n "checking for $ac_word... " >&6; } 7044if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7045 $as_echo_n "(cached) " >&6 7046else 7047 if test -n "$ac_ct_OBJDUMP"; then 7048 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7049else 7050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7051for as_dir in $PATH 7052do 7053 IFS=$as_save_IFS 7054 test -z "$as_dir" && as_dir=. 7055 for ac_exec_ext in '' $ac_executable_extensions; do 7056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7057 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7059 break 2 7060 fi 7061done 7062 done 7063IFS=$as_save_IFS 7064 7065fi 7066fi 7067ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7068if test -n "$ac_ct_OBJDUMP"; then 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7070$as_echo "$ac_ct_OBJDUMP" >&6; } 7071else 7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7073$as_echo "no" >&6; } 7074fi 7075 7076 if test "x$ac_ct_OBJDUMP" = x; then 7077 OBJDUMP="false" 7078 else 7079 case $cross_compiling:$ac_tool_warned in 7080yes:) 7081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7083ac_tool_warned=yes ;; 7084esac 7085 OBJDUMP=$ac_ct_OBJDUMP 7086 fi 7087else 7088 OBJDUMP="$ac_cv_prog_OBJDUMP" 7089fi 7090 7091 ;; 7092esac 7093 7094test -z "$AS" && AS=as 7095 7096 7097 7098 7099 7100test -z "$DLLTOOL" && DLLTOOL=dlltool 7101 7102 7103 7104 7105 7106test -z "$OBJDUMP" && OBJDUMP=objdump 7107 7108 7109 7110 7111 7112 7113 7114 enable_dlopen=no 7115 7116 7117 7118 # Check whether --enable-shared was given. 7119if test "${enable_shared+set}" = set; then : 7120 enableval=$enable_shared; p=${PACKAGE-default} 7121 case $enableval in 7122 yes) enable_shared=yes ;; 7123 no) enable_shared=no ;; 7124 *) 7125 enable_shared=no 7126 # Look at the argument we got. We use all the common list separators. 7127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7128 for pkg in $enableval; do 7129 IFS="$lt_save_ifs" 7130 if test "X$pkg" = "X$p"; then 7131 enable_shared=yes 7132 fi 7133 done 7134 IFS="$lt_save_ifs" 7135 ;; 7136 esac 7137else 7138 enable_shared=yes 7139fi 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 # Check whether --enable-static was given. 7150if test "${enable_static+set}" = set; then : 7151 enableval=$enable_static; p=${PACKAGE-default} 7152 case $enableval in 7153 yes) enable_static=yes ;; 7154 no) enable_static=no ;; 7155 *) 7156 enable_static=no 7157 # Look at the argument we got. We use all the common list separators. 7158 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7159 for pkg in $enableval; do 7160 IFS="$lt_save_ifs" 7161 if test "X$pkg" = "X$p"; then 7162 enable_static=yes 7163 fi 7164 done 7165 IFS="$lt_save_ifs" 7166 ;; 7167 esac 7168else 7169 enable_static=yes 7170fi 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181# Check whether --with-pic was given. 7182if test "${with_pic+set}" = set; then : 7183 withval=$with_pic; pic_mode="$withval" 7184else 7185 pic_mode=default 7186fi 7187 7188 7189test -z "$pic_mode" && pic_mode=default 7190 7191 7192 7193 7194 7195 7196 7197 # Check whether --enable-fast-install was given. 7198if test "${enable_fast_install+set}" = set; then : 7199 enableval=$enable_fast_install; p=${PACKAGE-default} 7200 case $enableval in 7201 yes) enable_fast_install=yes ;; 7202 no) enable_fast_install=no ;; 7203 *) 7204 enable_fast_install=no 7205 # Look at the argument we got. We use all the common list separators. 7206 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7207 for pkg in $enableval; do 7208 IFS="$lt_save_ifs" 7209 if test "X$pkg" = "X$p"; then 7210 enable_fast_install=yes 7211 fi 7212 done 7213 IFS="$lt_save_ifs" 7214 ;; 7215 esac 7216else 7217 enable_fast_install=yes 7218fi 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230# This can be used to rebuild libtool when needed 7231LIBTOOL_DEPS="$ltmain" 7232 7233# Always use our own libtool. 7234LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool' 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261test -z "$LN_S" && LN_S="ln -s" 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276if test -n "${ZSH_VERSION+set}" ; then 7277 setopt NO_GLOB_SUBST 7278fi 7279 7280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7281$as_echo_n "checking for objdir... " >&6; } 7282if ${lt_cv_objdir+:} false; then : 7283 $as_echo_n "(cached) " >&6 7284else 7285 rm -f .libs 2>/dev/null 7286mkdir .libs 2>/dev/null 7287if test -d .libs; then 7288 lt_cv_objdir=.libs 7289else 7290 # MS-DOS does not allow filenames that begin with a dot. 7291 lt_cv_objdir=_libs 7292fi 7293rmdir .libs 2>/dev/null 7294fi 7295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7296$as_echo "$lt_cv_objdir" >&6; } 7297objdir=$lt_cv_objdir 7298 7299 7300 7301 7302 7303cat >>confdefs.h <<_ACEOF 7304#define LT_OBJDIR "$lt_cv_objdir/" 7305_ACEOF 7306 7307 7308 7309 7310case $host_os in 7311aix3*) 7312 # AIX sometimes has problems with the GCC collect2 program. For some 7313 # reason, if we set the COLLECT_NAMES environment variable, the problems 7314 # vanish in a puff of smoke. 7315 if test "X${COLLECT_NAMES+set}" != Xset; then 7316 COLLECT_NAMES= 7317 export COLLECT_NAMES 7318 fi 7319 ;; 7320esac 7321 7322# Global variables: 7323ofile=libtool 7324can_build_shared=yes 7325 7326# All known linkers require a `.a' archive for static linking (except MSVC, 7327# which needs '.lib'). 7328libext=a 7329 7330with_gnu_ld="$lt_cv_prog_gnu_ld" 7331 7332old_CC="$CC" 7333old_CFLAGS="$CFLAGS" 7334 7335# Set sane defaults for various variables 7336test -z "$CC" && CC=cc 7337test -z "$LTCC" && LTCC=$CC 7338test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7339test -z "$LD" && LD=ld 7340test -z "$ac_objext" && ac_objext=o 7341 7342for cc_temp in $compiler""; do 7343 case $cc_temp in 7344 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7345 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7346 \-*) ;; 7347 *) break;; 7348 esac 7349done 7350cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7351 7352 7353# Only perform the check for file, if the check method requires it 7354test -z "$MAGIC_CMD" && MAGIC_CMD=file 7355case $deplibs_check_method in 7356file_magic*) 7357 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7359$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7360if ${lt_cv_path_MAGIC_CMD+:} false; then : 7361 $as_echo_n "(cached) " >&6 7362else 7363 case $MAGIC_CMD in 7364[\\/*] | ?:[\\/]*) 7365 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7366 ;; 7367*) 7368 lt_save_MAGIC_CMD="$MAGIC_CMD" 7369 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7370 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7371 for ac_dir in $ac_dummy; do 7372 IFS="$lt_save_ifs" 7373 test -z "$ac_dir" && ac_dir=. 7374 if test -f $ac_dir/${ac_tool_prefix}file; then 7375 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7376 if test -n "$file_magic_test_file"; then 7377 case $deplibs_check_method in 7378 "file_magic "*) 7379 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7380 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7381 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7382 $EGREP "$file_magic_regex" > /dev/null; then 7383 : 7384 else 7385 cat <<_LT_EOF 1>&2 7386 7387*** Warning: the command libtool uses to detect shared libraries, 7388*** $file_magic_cmd, produces output that libtool cannot recognize. 7389*** The result is that libtool may fail to recognize shared libraries 7390*** as such. This will affect the creation of libtool libraries that 7391*** depend on shared libraries, but programs linked with such libtool 7392*** libraries will work regardless of this problem. Nevertheless, you 7393*** may want to report the problem to your system manager and/or to 7394*** bug-libtool@gnu.org 7395 7396_LT_EOF 7397 fi ;; 7398 esac 7399 fi 7400 break 7401 fi 7402 done 7403 IFS="$lt_save_ifs" 7404 MAGIC_CMD="$lt_save_MAGIC_CMD" 7405 ;; 7406esac 7407fi 7408 7409MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7410if test -n "$MAGIC_CMD"; then 7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7412$as_echo "$MAGIC_CMD" >&6; } 7413else 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7415$as_echo "no" >&6; } 7416fi 7417 7418 7419 7420 7421 7422if test -z "$lt_cv_path_MAGIC_CMD"; then 7423 if test -n "$ac_tool_prefix"; then 7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7425$as_echo_n "checking for file... " >&6; } 7426if ${lt_cv_path_MAGIC_CMD+:} false; then : 7427 $as_echo_n "(cached) " >&6 7428else 7429 case $MAGIC_CMD in 7430[\\/*] | ?:[\\/]*) 7431 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7432 ;; 7433*) 7434 lt_save_MAGIC_CMD="$MAGIC_CMD" 7435 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7436 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7437 for ac_dir in $ac_dummy; do 7438 IFS="$lt_save_ifs" 7439 test -z "$ac_dir" && ac_dir=. 7440 if test -f $ac_dir/file; then 7441 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7442 if test -n "$file_magic_test_file"; then 7443 case $deplibs_check_method in 7444 "file_magic "*) 7445 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7446 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7447 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7448 $EGREP "$file_magic_regex" > /dev/null; then 7449 : 7450 else 7451 cat <<_LT_EOF 1>&2 7452 7453*** Warning: the command libtool uses to detect shared libraries, 7454*** $file_magic_cmd, produces output that libtool cannot recognize. 7455*** The result is that libtool may fail to recognize shared libraries 7456*** as such. This will affect the creation of libtool libraries that 7457*** depend on shared libraries, but programs linked with such libtool 7458*** libraries will work regardless of this problem. Nevertheless, you 7459*** may want to report the problem to your system manager and/or to 7460*** bug-libtool@gnu.org 7461 7462_LT_EOF 7463 fi ;; 7464 esac 7465 fi 7466 break 7467 fi 7468 done 7469 IFS="$lt_save_ifs" 7470 MAGIC_CMD="$lt_save_MAGIC_CMD" 7471 ;; 7472esac 7473fi 7474 7475MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7476if test -n "$MAGIC_CMD"; then 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7478$as_echo "$MAGIC_CMD" >&6; } 7479else 7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7481$as_echo "no" >&6; } 7482fi 7483 7484 7485 else 7486 MAGIC_CMD=: 7487 fi 7488fi 7489 7490 fi 7491 ;; 7492esac 7493 7494# Use C for the default configuration in the libtool script 7495 7496lt_save_CC="$CC" 7497ac_ext=c 7498ac_cpp='$CPP $CPPFLAGS' 7499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7501ac_compiler_gnu=$ac_cv_c_compiler_gnu 7502 7503 7504# Source file extension for C test sources. 7505ac_ext=c 7506 7507# Object file extension for compiled C test sources. 7508objext=o 7509objext=$objext 7510 7511# Code to be used in simple compile tests 7512lt_simple_compile_test_code="int some_variable = 0;" 7513 7514# Code to be used in simple link tests 7515lt_simple_link_test_code='int main(){return(0);}' 7516 7517 7518 7519 7520 7521 7522 7523# If no C compiler was specified, use CC. 7524LTCC=${LTCC-"$CC"} 7525 7526# If no C compiler flags were specified, use CFLAGS. 7527LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7528 7529# Allow CC to be a program name with arguments. 7530compiler=$CC 7531 7532# Save the default compiler, since it gets overwritten when the other 7533# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7534compiler_DEFAULT=$CC 7535 7536# save warnings/boilerplate of simple test code 7537ac_outfile=conftest.$ac_objext 7538echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7539eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7540_lt_compiler_boilerplate=`cat conftest.err` 7541$RM conftest* 7542 7543ac_outfile=conftest.$ac_objext 7544echo "$lt_simple_link_test_code" >conftest.$ac_ext 7545eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7546_lt_linker_boilerplate=`cat conftest.err` 7547$RM -r conftest* 7548 7549 7550## CAVEAT EMPTOR: 7551## There is no encapsulation within the following macros, do not change 7552## the running order or otherwise move them around unless you know exactly 7553## what you are doing... 7554if test -n "$compiler"; then 7555 7556lt_prog_compiler_no_builtin_flag= 7557 7558if test "$GCC" = yes; then 7559 case $cc_basename in 7560 nvcc*) 7561 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7562 *) 7563 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7564 esac 7565 7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7567$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7568if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7569 $as_echo_n "(cached) " >&6 7570else 7571 lt_cv_prog_compiler_rtti_exceptions=no 7572 ac_outfile=conftest.$ac_objext 7573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7574 lt_compiler_flag="-fno-rtti -fno-exceptions" 7575 # Insert the option either (1) after the last *FLAGS variable, or 7576 # (2) before a word containing "conftest.", or (3) at the end. 7577 # Note that $ac_compile itself does not contain backslashes and begins 7578 # with a dollar sign (not a hyphen), so the echo should work correctly. 7579 # The option is referenced via a variable to avoid confusing sed. 7580 lt_compile=`echo "$ac_compile" | $SED \ 7581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7583 -e 's:$: $lt_compiler_flag:'` 7584 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7585 (eval "$lt_compile" 2>conftest.err) 7586 ac_status=$? 7587 cat conftest.err >&5 7588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7589 if (exit $ac_status) && test -s "$ac_outfile"; then 7590 # The compiler can only warn and ignore the option if not recognized 7591 # So say no if there are warnings other than the usual output. 7592 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7594 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7595 lt_cv_prog_compiler_rtti_exceptions=yes 7596 fi 7597 fi 7598 $RM conftest* 7599 7600fi 7601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7602$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7603 7604if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7605 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7606else 7607 : 7608fi 7609 7610fi 7611 7612 7613 7614 7615 7616 7617 lt_prog_compiler_wl= 7618lt_prog_compiler_pic= 7619lt_prog_compiler_static= 7620 7621 7622 if test "$GCC" = yes; then 7623 lt_prog_compiler_wl='-Wl,' 7624 lt_prog_compiler_static='-static' 7625 7626 case $host_os in 7627 aix*) 7628 # All AIX code is PIC. 7629 if test "$host_cpu" = ia64; then 7630 # AIX 5 now supports IA64 processor 7631 lt_prog_compiler_static='-Bstatic' 7632 fi 7633 ;; 7634 7635 amigaos*) 7636 case $host_cpu in 7637 powerpc) 7638 # see comment about AmigaOS4 .so support 7639 lt_prog_compiler_pic='-fPIC' 7640 ;; 7641 m68k) 7642 # FIXME: we need at least 68020 code to build shared libraries, but 7643 # adding the `-m68020' flag to GCC prevents building anything better, 7644 # like `-m68040'. 7645 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7646 ;; 7647 esac 7648 ;; 7649 7650 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7651 # PIC is the default for these OSes. 7652 ;; 7653 7654 mingw* | cygwin* | pw32* | os2* | cegcc*) 7655 # This hack is so that the source file can tell whether it is being 7656 # built for inclusion in a dll (and should export symbols for example). 7657 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7658 # (--disable-auto-import) libraries 7659 lt_prog_compiler_pic='-DDLL_EXPORT' 7660 ;; 7661 7662 darwin* | rhapsody*) 7663 # PIC is the default on this platform 7664 # Common symbols not allowed in MH_DYLIB files 7665 lt_prog_compiler_pic='-fno-common' 7666 ;; 7667 7668 haiku*) 7669 # PIC is the default for Haiku. 7670 # The "-static" flag exists, but is broken. 7671 lt_prog_compiler_static= 7672 ;; 7673 7674 hpux*) 7675 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7676 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7677 # sets the default TLS model and affects inlining. 7678 case $host_cpu in 7679 hppa*64*) 7680 # +Z the default 7681 ;; 7682 *) 7683 lt_prog_compiler_pic='-fPIC' 7684 ;; 7685 esac 7686 ;; 7687 7688 interix[3-9]*) 7689 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7690 # Instead, we relocate shared libraries at runtime. 7691 ;; 7692 7693 msdosdjgpp*) 7694 # Just because we use GCC doesn't mean we suddenly get shared libraries 7695 # on systems that don't support them. 7696 lt_prog_compiler_can_build_shared=no 7697 enable_shared=no 7698 ;; 7699 7700 *nto* | *qnx*) 7701 # QNX uses GNU C++, but need to define -shared option too, otherwise 7702 # it will coredump. 7703 lt_prog_compiler_pic='-fPIC -shared' 7704 ;; 7705 7706 sysv4*MP*) 7707 if test -d /usr/nec; then 7708 lt_prog_compiler_pic=-Kconform_pic 7709 fi 7710 ;; 7711 7712 *) 7713 lt_prog_compiler_pic='-fPIC' 7714 ;; 7715 esac 7716 7717 case $cc_basename in 7718 nvcc*) # Cuda Compiler Driver 2.2 7719 lt_prog_compiler_wl='-Xlinker ' 7720 lt_prog_compiler_pic='-Xcompiler -fPIC' 7721 ;; 7722 esac 7723 else 7724 # PORTME Check for flag to pass linker flags through the system compiler. 7725 case $host_os in 7726 aix*) 7727 lt_prog_compiler_wl='-Wl,' 7728 if test "$host_cpu" = ia64; then 7729 # AIX 5 now supports IA64 processor 7730 lt_prog_compiler_static='-Bstatic' 7731 else 7732 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7733 fi 7734 ;; 7735 7736 mingw* | cygwin* | pw32* | os2* | cegcc*) 7737 # This hack is so that the source file can tell whether it is being 7738 # built for inclusion in a dll (and should export symbols for example). 7739 lt_prog_compiler_pic='-DDLL_EXPORT' 7740 ;; 7741 7742 hpux9* | hpux10* | hpux11*) 7743 lt_prog_compiler_wl='-Wl,' 7744 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7745 # not for PA HP-UX. 7746 case $host_cpu in 7747 hppa*64*|ia64*) 7748 # +Z the default 7749 ;; 7750 *) 7751 lt_prog_compiler_pic='+Z' 7752 ;; 7753 esac 7754 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7755 lt_prog_compiler_static='${wl}-a ${wl}archive' 7756 ;; 7757 7758 irix5* | irix6* | nonstopux*) 7759 lt_prog_compiler_wl='-Wl,' 7760 # PIC (with -KPIC) is the default. 7761 lt_prog_compiler_static='-non_shared' 7762 ;; 7763 7764 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7765 case $cc_basename in 7766 # old Intel for x86_64 which still supported -KPIC. 7767 ecc*) 7768 lt_prog_compiler_wl='-Wl,' 7769 lt_prog_compiler_pic='-KPIC' 7770 lt_prog_compiler_static='-static' 7771 ;; 7772 # icc used to be incompatible with GCC. 7773 # ICC 10 doesn't accept -KPIC any more. 7774 icc* | ifort*) 7775 lt_prog_compiler_wl='-Wl,' 7776 lt_prog_compiler_pic='-fPIC' 7777 lt_prog_compiler_static='-static' 7778 ;; 7779 # Lahey Fortran 8.1. 7780 lf95*) 7781 lt_prog_compiler_wl='-Wl,' 7782 lt_prog_compiler_pic='--shared' 7783 lt_prog_compiler_static='--static' 7784 ;; 7785 nagfor*) 7786 # NAG Fortran compiler 7787 lt_prog_compiler_wl='-Wl,-Wl,,' 7788 lt_prog_compiler_pic='-PIC' 7789 lt_prog_compiler_static='-Bstatic' 7790 ;; 7791 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 7792 # Portland Group compilers (*not* the Pentium gcc compiler, 7793 # which looks to be a dead project) 7794 lt_prog_compiler_wl='-Wl,' 7795 lt_prog_compiler_pic='-fpic' 7796 lt_prog_compiler_static='-Bstatic' 7797 ;; 7798 ccc*) 7799 lt_prog_compiler_wl='-Wl,' 7800 # All Alpha code is PIC. 7801 lt_prog_compiler_static='-non_shared' 7802 ;; 7803 xl* | bgxl* | bgf* | mpixl*) 7804 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 7805 lt_prog_compiler_wl='-Wl,' 7806 lt_prog_compiler_pic='-qpic' 7807 lt_prog_compiler_static='-qstaticlink' 7808 ;; 7809 *) 7810 case `$CC -V 2>&1 | sed 5q` in 7811 *Sun\ F* | *Sun*Fortran*) 7812 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7813 lt_prog_compiler_pic='-KPIC' 7814 lt_prog_compiler_static='-Bstatic' 7815 lt_prog_compiler_wl='' 7816 ;; 7817 *Sun\ C*) 7818 # Sun C 5.9 7819 lt_prog_compiler_pic='-KPIC' 7820 lt_prog_compiler_static='-Bstatic' 7821 lt_prog_compiler_wl='-Wl,' 7822 ;; 7823 esac 7824 ;; 7825 esac 7826 ;; 7827 7828 newsos6) 7829 lt_prog_compiler_pic='-KPIC' 7830 lt_prog_compiler_static='-Bstatic' 7831 ;; 7832 7833 *nto* | *qnx*) 7834 # QNX uses GNU C++, but need to define -shared option too, otherwise 7835 # it will coredump. 7836 lt_prog_compiler_pic='-fPIC -shared' 7837 ;; 7838 7839 osf3* | osf4* | osf5*) 7840 lt_prog_compiler_wl='-Wl,' 7841 # All OSF/1 code is PIC. 7842 lt_prog_compiler_static='-non_shared' 7843 ;; 7844 7845 rdos*) 7846 lt_prog_compiler_static='-non_shared' 7847 ;; 7848 7849 solaris*) 7850 lt_prog_compiler_pic='-KPIC' 7851 lt_prog_compiler_static='-Bstatic' 7852 case $cc_basename in 7853 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 7854 lt_prog_compiler_wl='-Qoption ld ';; 7855 *) 7856 lt_prog_compiler_wl='-Wl,';; 7857 esac 7858 ;; 7859 7860 sunos4*) 7861 lt_prog_compiler_wl='-Qoption ld ' 7862 lt_prog_compiler_pic='-PIC' 7863 lt_prog_compiler_static='-Bstatic' 7864 ;; 7865 7866 sysv4 | sysv4.2uw2* | sysv4.3*) 7867 lt_prog_compiler_wl='-Wl,' 7868 lt_prog_compiler_pic='-KPIC' 7869 lt_prog_compiler_static='-Bstatic' 7870 ;; 7871 7872 sysv4*MP*) 7873 if test -d /usr/nec ;then 7874 lt_prog_compiler_pic='-Kconform_pic' 7875 lt_prog_compiler_static='-Bstatic' 7876 fi 7877 ;; 7878 7879 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7880 lt_prog_compiler_wl='-Wl,' 7881 lt_prog_compiler_pic='-KPIC' 7882 lt_prog_compiler_static='-Bstatic' 7883 ;; 7884 7885 unicos*) 7886 lt_prog_compiler_wl='-Wl,' 7887 lt_prog_compiler_can_build_shared=no 7888 ;; 7889 7890 uts4*) 7891 lt_prog_compiler_pic='-pic' 7892 lt_prog_compiler_static='-Bstatic' 7893 ;; 7894 7895 *) 7896 lt_prog_compiler_can_build_shared=no 7897 ;; 7898 esac 7899 fi 7900 7901case $host_os in 7902 # For platforms which do not support PIC, -DPIC is meaningless: 7903 *djgpp*) 7904 lt_prog_compiler_pic= 7905 ;; 7906 *) 7907 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7908 ;; 7909esac 7910 7911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7912$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7913if ${lt_cv_prog_compiler_pic+:} false; then : 7914 $as_echo_n "(cached) " >&6 7915else 7916 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 7917fi 7918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 7919$as_echo "$lt_cv_prog_compiler_pic" >&6; } 7920lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 7921 7922# 7923# Check to make sure the PIC flag actually works. 7924# 7925if test -n "$lt_prog_compiler_pic"; then 7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7927$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7928if ${lt_cv_prog_compiler_pic_works+:} false; then : 7929 $as_echo_n "(cached) " >&6 7930else 7931 lt_cv_prog_compiler_pic_works=no 7932 ac_outfile=conftest.$ac_objext 7933 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7934 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7935 # Insert the option either (1) after the last *FLAGS variable, or 7936 # (2) before a word containing "conftest.", or (3) at the end. 7937 # Note that $ac_compile itself does not contain backslashes and begins 7938 # with a dollar sign (not a hyphen), so the echo should work correctly. 7939 # The option is referenced via a variable to avoid confusing sed. 7940 lt_compile=`echo "$ac_compile" | $SED \ 7941 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7942 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7943 -e 's:$: $lt_compiler_flag:'` 7944 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7945 (eval "$lt_compile" 2>conftest.err) 7946 ac_status=$? 7947 cat conftest.err >&5 7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7949 if (exit $ac_status) && test -s "$ac_outfile"; then 7950 # The compiler can only warn and ignore the option if not recognized 7951 # So say no if there are warnings other than the usual output. 7952 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7953 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7954 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7955 lt_cv_prog_compiler_pic_works=yes 7956 fi 7957 fi 7958 $RM conftest* 7959 7960fi 7961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7962$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7963 7964if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7965 case $lt_prog_compiler_pic in 7966 "" | " "*) ;; 7967 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7968 esac 7969else 7970 lt_prog_compiler_pic= 7971 lt_prog_compiler_can_build_shared=no 7972fi 7973 7974fi 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986# 7987# Check to make sure the static flag actually works. 7988# 7989wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7991$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7992if ${lt_cv_prog_compiler_static_works+:} false; then : 7993 $as_echo_n "(cached) " >&6 7994else 7995 lt_cv_prog_compiler_static_works=no 7996 save_LDFLAGS="$LDFLAGS" 7997 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7998 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7999 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8000 # The linker can only warn and ignore the option if not recognized 8001 # So say no if there are warnings 8002 if test -s conftest.err; then 8003 # Append any errors to the config.log. 8004 cat conftest.err 1>&5 8005 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8007 if diff conftest.exp conftest.er2 >/dev/null; then 8008 lt_cv_prog_compiler_static_works=yes 8009 fi 8010 else 8011 lt_cv_prog_compiler_static_works=yes 8012 fi 8013 fi 8014 $RM -r conftest* 8015 LDFLAGS="$save_LDFLAGS" 8016 8017fi 8018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8019$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8020 8021if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8022 : 8023else 8024 lt_prog_compiler_static= 8025fi 8026 8027 8028 8029 8030 8031 8032 8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8034$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8035if ${lt_cv_prog_compiler_c_o+:} false; then : 8036 $as_echo_n "(cached) " >&6 8037else 8038 lt_cv_prog_compiler_c_o=no 8039 $RM -r conftest 2>/dev/null 8040 mkdir conftest 8041 cd conftest 8042 mkdir out 8043 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8044 8045 lt_compiler_flag="-o out/conftest2.$ac_objext" 8046 # Insert the option either (1) after the last *FLAGS variable, or 8047 # (2) before a word containing "conftest.", or (3) at the end. 8048 # Note that $ac_compile itself does not contain backslashes and begins 8049 # with a dollar sign (not a hyphen), so the echo should work correctly. 8050 lt_compile=`echo "$ac_compile" | $SED \ 8051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8053 -e 's:$: $lt_compiler_flag:'` 8054 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8055 (eval "$lt_compile" 2>out/conftest.err) 8056 ac_status=$? 8057 cat out/conftest.err >&5 8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8059 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8060 then 8061 # The compiler can only warn and ignore the option if not recognized 8062 # So say no if there are warnings 8063 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8064 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8065 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8066 lt_cv_prog_compiler_c_o=yes 8067 fi 8068 fi 8069 chmod u+w . 2>&5 8070 $RM conftest* 8071 # SGI C++ compiler will create directory out/ii_files/ for 8072 # template instantiation 8073 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8074 $RM out/* && rmdir out 8075 cd .. 8076 $RM -r conftest 8077 $RM conftest* 8078 8079fi 8080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8081$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8082 8083 8084 8085 8086 8087 8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8089$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8090if ${lt_cv_prog_compiler_c_o+:} false; then : 8091 $as_echo_n "(cached) " >&6 8092else 8093 lt_cv_prog_compiler_c_o=no 8094 $RM -r conftest 2>/dev/null 8095 mkdir conftest 8096 cd conftest 8097 mkdir out 8098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8099 8100 lt_compiler_flag="-o out/conftest2.$ac_objext" 8101 # Insert the option either (1) after the last *FLAGS variable, or 8102 # (2) before a word containing "conftest.", or (3) at the end. 8103 # Note that $ac_compile itself does not contain backslashes and begins 8104 # with a dollar sign (not a hyphen), so the echo should work correctly. 8105 lt_compile=`echo "$ac_compile" | $SED \ 8106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8108 -e 's:$: $lt_compiler_flag:'` 8109 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8110 (eval "$lt_compile" 2>out/conftest.err) 8111 ac_status=$? 8112 cat out/conftest.err >&5 8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8114 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8115 then 8116 # The compiler can only warn and ignore the option if not recognized 8117 # So say no if there are warnings 8118 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8119 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8120 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8121 lt_cv_prog_compiler_c_o=yes 8122 fi 8123 fi 8124 chmod u+w . 2>&5 8125 $RM conftest* 8126 # SGI C++ compiler will create directory out/ii_files/ for 8127 # template instantiation 8128 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8129 $RM out/* && rmdir out 8130 cd .. 8131 $RM -r conftest 8132 $RM conftest* 8133 8134fi 8135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8136$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8137 8138 8139 8140 8141hard_links="nottested" 8142if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8143 # do not overwrite the value of need_locks provided by the user 8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8145$as_echo_n "checking if we can lock with hard links... " >&6; } 8146 hard_links=yes 8147 $RM conftest* 8148 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8149 touch conftest.a 8150 ln conftest.a conftest.b 2>&5 || hard_links=no 8151 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8153$as_echo "$hard_links" >&6; } 8154 if test "$hard_links" = no; then 8155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8156$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8157 need_locks=warn 8158 fi 8159else 8160 need_locks=no 8161fi 8162 8163 8164 8165 8166 8167 8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8169$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8170 8171 runpath_var= 8172 allow_undefined_flag= 8173 always_export_symbols=no 8174 archive_cmds= 8175 archive_expsym_cmds= 8176 compiler_needs_object=no 8177 enable_shared_with_static_runtimes=no 8178 export_dynamic_flag_spec= 8179 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8180 hardcode_automatic=no 8181 hardcode_direct=no 8182 hardcode_direct_absolute=no 8183 hardcode_libdir_flag_spec= 8184 hardcode_libdir_flag_spec_ld= 8185 hardcode_libdir_separator= 8186 hardcode_minus_L=no 8187 hardcode_shlibpath_var=unsupported 8188 inherit_rpath=no 8189 link_all_deplibs=unknown 8190 module_cmds= 8191 module_expsym_cmds= 8192 old_archive_from_new_cmds= 8193 old_archive_from_expsyms_cmds= 8194 thread_safe_flag_spec= 8195 whole_archive_flag_spec= 8196 # include_expsyms should be a list of space-separated symbols to be *always* 8197 # included in the symbol list 8198 include_expsyms= 8199 # exclude_expsyms can be an extended regexp of symbols to exclude 8200 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8201 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8202 # as well as any symbol that contains `d'. 8203 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8204 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8205 # platforms (ab)use it in PIC code, but their linkers get confused if 8206 # the symbol is explicitly referenced. Since portable code cannot 8207 # rely on this symbol name, it's probably fine to never include it in 8208 # preloaded symbol tables. 8209 # Exclude shared library initialization/finalization symbols. 8210 extract_expsyms_cmds= 8211 8212 case $host_os in 8213 cygwin* | mingw* | pw32* | cegcc*) 8214 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8215 # When not using gcc, we currently assume that we are using 8216 # Microsoft Visual C++. 8217 if test "$GCC" != yes; then 8218 with_gnu_ld=no 8219 fi 8220 ;; 8221 interix*) 8222 # we just hope/assume this is gcc and not c89 (= MSVC++) 8223 with_gnu_ld=yes 8224 ;; 8225 openbsd*) 8226 with_gnu_ld=no 8227 ;; 8228 esac 8229 8230 ld_shlibs=yes 8231 8232 # On some targets, GNU ld is compatible enough with the native linker 8233 # that we're better off using the native interface for both. 8234 lt_use_gnu_ld_interface=no 8235 if test "$with_gnu_ld" = yes; then 8236 case $host_os in 8237 aix*) 8238 # The AIX port of GNU ld has always aspired to compatibility 8239 # with the native linker. However, as the warning in the GNU ld 8240 # block says, versions before 2.19.5* couldn't really create working 8241 # shared libraries, regardless of the interface used. 8242 case `$LD -v 2>&1` in 8243 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8244 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8245 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8246 *) 8247 lt_use_gnu_ld_interface=yes 8248 ;; 8249 esac 8250 ;; 8251 *) 8252 lt_use_gnu_ld_interface=yes 8253 ;; 8254 esac 8255 fi 8256 8257 if test "$lt_use_gnu_ld_interface" = yes; then 8258 # If archive_cmds runs LD, not CC, wlarc should be empty 8259 wlarc='${wl}' 8260 8261 # Set some defaults for GNU ld with shared library support. These 8262 # are reset later if shared libraries are not supported. Putting them 8263 # here allows them to be overridden if necessary. 8264 runpath_var=LD_RUN_PATH 8265 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8266 export_dynamic_flag_spec='${wl}--export-dynamic' 8267 # ancient GNU ld didn't support --whole-archive et. al. 8268 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8269 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8270 else 8271 whole_archive_flag_spec= 8272 fi 8273 supports_anon_versioning=no 8274 case `$LD -v 2>&1` in 8275 *GNU\ gold*) supports_anon_versioning=yes ;; 8276 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8277 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8278 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8279 *\ 2.11.*) ;; # other 2.11 versions 8280 *) supports_anon_versioning=yes ;; 8281 esac 8282 8283 # See if GNU ld supports shared libraries. 8284 case $host_os in 8285 aix[3-9]*) 8286 # On AIX/PPC, the GNU linker is very broken 8287 if test "$host_cpu" != ia64; then 8288 ld_shlibs=no 8289 cat <<_LT_EOF 1>&2 8290 8291*** Warning: the GNU linker, at least up to release 2.19, is reported 8292*** to be unable to reliably create shared libraries on AIX. 8293*** Therefore, libtool is disabling shared libraries support. If you 8294*** really care for shared libraries, you may want to install binutils 8295*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8296*** You will then need to restart the configuration process. 8297 8298_LT_EOF 8299 fi 8300 ;; 8301 8302 amigaos*) 8303 case $host_cpu in 8304 powerpc) 8305 # see comment about AmigaOS4 .so support 8306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8307 archive_expsym_cmds='' 8308 ;; 8309 m68k) 8310 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)' 8311 hardcode_libdir_flag_spec='-L$libdir' 8312 hardcode_minus_L=yes 8313 ;; 8314 esac 8315 ;; 8316 8317 beos*) 8318 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8319 allow_undefined_flag=unsupported 8320 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8321 # support --undefined. This deserves some investigation. FIXME 8322 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8323 else 8324 ld_shlibs=no 8325 fi 8326 ;; 8327 8328 cygwin* | mingw* | pw32* | cegcc*) 8329 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8330 # as there is no search path for DLLs. 8331 hardcode_libdir_flag_spec='-L$libdir' 8332 export_dynamic_flag_spec='${wl}--export-all-symbols' 8333 allow_undefined_flag=unsupported 8334 always_export_symbols=no 8335 enable_shared_with_static_runtimes=yes 8336 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 8337 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8338 8339 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8341 # If the export-symbols file already is a .def file (1st line 8342 # is EXPORTS), use it as is; otherwise, prepend... 8343 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8344 cp $export_symbols $output_objdir/$soname.def; 8345 else 8346 echo EXPORTS > $output_objdir/$soname.def; 8347 cat $export_symbols >> $output_objdir/$soname.def; 8348 fi~ 8349 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8350 else 8351 ld_shlibs=no 8352 fi 8353 ;; 8354 8355 haiku*) 8356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8357 link_all_deplibs=yes 8358 ;; 8359 8360 interix[3-9]*) 8361 hardcode_direct=no 8362 hardcode_shlibpath_var=no 8363 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8364 export_dynamic_flag_spec='${wl}-E' 8365 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8366 # Instead, shared libraries are loaded at an image base (0x10000000 by 8367 # default) and relocated if they conflict, which is a slow very memory 8368 # consuming and fragmenting process. To avoid this, we pick a random, 8369 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8370 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8371 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8372 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' 8373 ;; 8374 8375 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8376 tmp_diet=no 8377 if test "$host_os" = linux-dietlibc; then 8378 case $cc_basename in 8379 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8380 esac 8381 fi 8382 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8383 && test "$tmp_diet" = no 8384 then 8385 tmp_addflag=' $pic_flag' 8386 tmp_sharedflag='-shared' 8387 case $cc_basename,$host_cpu in 8388 pgcc*) # Portland Group C compiler 8389 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' 8390 tmp_addflag=' $pic_flag' 8391 ;; 8392 pgf77* | pgf90* | pgf95* | pgfortran*) 8393 # Portland Group f77 and f90 compilers 8394 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' 8395 tmp_addflag=' $pic_flag -Mnomain' ;; 8396 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8397 tmp_addflag=' -i_dynamic' ;; 8398 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8399 tmp_addflag=' -i_dynamic -nofor_main' ;; 8400 ifc* | ifort*) # Intel Fortran compiler 8401 tmp_addflag=' -nofor_main' ;; 8402 lf95*) # Lahey Fortran 8.1 8403 whole_archive_flag_spec= 8404 tmp_sharedflag='--shared' ;; 8405 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8406 tmp_sharedflag='-qmkshrobj' 8407 tmp_addflag= ;; 8408 nvcc*) # Cuda Compiler Driver 2.2 8409 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' 8410 compiler_needs_object=yes 8411 ;; 8412 esac 8413 case `$CC -V 2>&1 | sed 5q` in 8414 *Sun\ C*) # Sun C 5.9 8415 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' 8416 compiler_needs_object=yes 8417 tmp_sharedflag='-G' ;; 8418 *Sun\ F*) # Sun Fortran 8.3 8419 tmp_sharedflag='-G' ;; 8420 esac 8421 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8422 8423 if test "x$supports_anon_versioning" = xyes; then 8424 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8425 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8426 echo "local: *; };" >> $output_objdir/$libname.ver~ 8427 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8428 fi 8429 8430 case $cc_basename in 8431 xlf* | bgf* | bgxlf* | mpixlf*) 8432 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8433 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8434 hardcode_libdir_flag_spec= 8435 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8436 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8437 if test "x$supports_anon_versioning" = xyes; then 8438 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8439 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8440 echo "local: *; };" >> $output_objdir/$libname.ver~ 8441 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8442 fi 8443 ;; 8444 esac 8445 else 8446 ld_shlibs=no 8447 fi 8448 ;; 8449 8450 netbsd*) 8451 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8452 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8453 wlarc= 8454 else 8455 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8456 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8457 fi 8458 ;; 8459 8460 solaris*) 8461 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8462 ld_shlibs=no 8463 cat <<_LT_EOF 1>&2 8464 8465*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8466*** create shared libraries on Solaris systems. Therefore, libtool 8467*** is disabling shared libraries support. We urge you to upgrade GNU 8468*** binutils to release 2.9.1 or newer. Another option is to modify 8469*** your PATH or compiler configuration so that the native linker is 8470*** used, and then restart. 8471 8472_LT_EOF 8473 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8474 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8475 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8476 else 8477 ld_shlibs=no 8478 fi 8479 ;; 8480 8481 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8482 case `$LD -v 2>&1` in 8483 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8484 ld_shlibs=no 8485 cat <<_LT_EOF 1>&2 8486 8487*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8488*** reliably create shared libraries on SCO systems. Therefore, libtool 8489*** is disabling shared libraries support. We urge you to upgrade GNU 8490*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8491*** your PATH or compiler configuration so that the native linker is 8492*** used, and then restart. 8493 8494_LT_EOF 8495 ;; 8496 *) 8497 # For security reasons, it is highly recommended that you always 8498 # use absolute paths for naming shared libraries, and exclude the 8499 # DT_RUNPATH tag from executables and libraries. But doing so 8500 # requires that you compile everything twice, which is a pain. 8501 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8502 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8504 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8505 else 8506 ld_shlibs=no 8507 fi 8508 ;; 8509 esac 8510 ;; 8511 8512 sunos4*) 8513 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8514 wlarc= 8515 hardcode_direct=yes 8516 hardcode_shlibpath_var=no 8517 ;; 8518 8519 *) 8520 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8521 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8522 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8523 else 8524 ld_shlibs=no 8525 fi 8526 ;; 8527 esac 8528 8529 if test "$ld_shlibs" = no; then 8530 runpath_var= 8531 hardcode_libdir_flag_spec= 8532 export_dynamic_flag_spec= 8533 whole_archive_flag_spec= 8534 fi 8535 else 8536 # PORTME fill in a description of your system's linker (not GNU ld) 8537 case $host_os in 8538 aix3*) 8539 allow_undefined_flag=unsupported 8540 always_export_symbols=yes 8541 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' 8542 # Note: this linker hardcodes the directories in LIBPATH if there 8543 # are no directories specified by -L. 8544 hardcode_minus_L=yes 8545 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8546 # Neither direct hardcoding nor static linking is supported with a 8547 # broken collect2. 8548 hardcode_direct=unsupported 8549 fi 8550 ;; 8551 8552 aix[4-9]*) 8553 if test "$host_cpu" = ia64; then 8554 # On IA64, the linker does run time linking by default, so we don't 8555 # have to do anything special. 8556 aix_use_runtimelinking=no 8557 exp_sym_flag='-Bexport' 8558 no_entry_flag="" 8559 else 8560 # If we're using GNU nm, then we don't want the "-C" option. 8561 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8562 # Also, AIX nm treats weak defined symbols like other global 8563 # defined symbols, whereas GNU nm marks them as "W". 8564 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8565 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' 8566 else 8567 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8568 fi 8569 aix_use_runtimelinking=no 8570 8571 # Test if we are trying to use run time linking or normal 8572 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8573 # need to do runtime linking. 8574 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8575 for ld_flag in $LDFLAGS; do 8576 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8577 aix_use_runtimelinking=yes 8578 break 8579 fi 8580 done 8581 ;; 8582 esac 8583 8584 exp_sym_flag='-bexport' 8585 no_entry_flag='-bnoentry' 8586 fi 8587 8588 # When large executables or shared objects are built, AIX ld can 8589 # have problems creating the table of contents. If linking a library 8590 # or program results in "error TOC overflow" add -mminimal-toc to 8591 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8592 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8593 8594 archive_cmds='' 8595 hardcode_direct=yes 8596 hardcode_direct_absolute=yes 8597 hardcode_libdir_separator=':' 8598 link_all_deplibs=yes 8599 file_list_spec='${wl}-f,' 8600 8601 if test "$GCC" = yes; then 8602 case $host_os in aix4.[012]|aix4.[012].*) 8603 # We only want to do this on AIX 4.2 and lower, the check 8604 # below for broken collect2 doesn't work under 4.3+ 8605 collect2name=`${CC} -print-prog-name=collect2` 8606 if test -f "$collect2name" && 8607 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8608 then 8609 # We have reworked collect2 8610 : 8611 else 8612 # We have old collect2 8613 hardcode_direct=unsupported 8614 # It fails to find uninstalled libraries when the uninstalled 8615 # path is not listed in the libpath. Setting hardcode_minus_L 8616 # to unsupported forces relinking 8617 hardcode_minus_L=yes 8618 hardcode_libdir_flag_spec='-L$libdir' 8619 hardcode_libdir_separator= 8620 fi 8621 ;; 8622 esac 8623 shared_flag='-shared' 8624 if test "$aix_use_runtimelinking" = yes; then 8625 shared_flag="$shared_flag "'${wl}-G' 8626 fi 8627 else 8628 # not using gcc 8629 if test "$host_cpu" = ia64; then 8630 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8631 # chokes on -Wl,-G. The following line is correct: 8632 shared_flag='-G' 8633 else 8634 if test "$aix_use_runtimelinking" = yes; then 8635 shared_flag='${wl}-G' 8636 else 8637 shared_flag='${wl}-bM:SRE' 8638 fi 8639 fi 8640 fi 8641 8642 export_dynamic_flag_spec='${wl}-bexpall' 8643 # It seems that -bexpall does not export symbols beginning with 8644 # underscore (_), so it is better to generate a list of symbols to export. 8645 always_export_symbols=yes 8646 if test "$aix_use_runtimelinking" = yes; then 8647 # Warning - without using the other runtime loading flags (-brtl), 8648 # -berok will link without error, but may produce a broken library. 8649 allow_undefined_flag='-berok' 8650 # Determine the default libpath from the value encoded in an 8651 # empty executable. 8652 if test "${lt_cv_aix_libpath+set}" = set; then 8653 aix_libpath=$lt_cv_aix_libpath 8654else 8655 if ${lt_cv_aix_libpath_+:} false; then : 8656 $as_echo_n "(cached) " >&6 8657else 8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8659/* end confdefs.h. */ 8660 8661int 8662main () 8663{ 8664 8665 ; 8666 return 0; 8667} 8668_ACEOF 8669if ac_fn_c_try_link "$LINENO"; then : 8670 8671 lt_aix_libpath_sed=' 8672 /Import File Strings/,/^$/ { 8673 /^0/ { 8674 s/^0 *\([^ ]*\) *$/\1/ 8675 p 8676 } 8677 }' 8678 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8679 # Check for a 64-bit object if we didn't find anything. 8680 if test -z "$lt_cv_aix_libpath_"; then 8681 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8682 fi 8683fi 8684rm -f core conftest.err conftest.$ac_objext \ 8685 conftest$ac_exeext conftest.$ac_ext 8686 if test -z "$lt_cv_aix_libpath_"; then 8687 lt_cv_aix_libpath_="/usr/lib:/lib" 8688 fi 8689 8690fi 8691 8692 aix_libpath=$lt_cv_aix_libpath_ 8693fi 8694 8695 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8696 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" 8697 else 8698 if test "$host_cpu" = ia64; then 8699 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8700 allow_undefined_flag="-z nodefs" 8701 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" 8702 else 8703 # Determine the default libpath from the value encoded in an 8704 # empty executable. 8705 if test "${lt_cv_aix_libpath+set}" = set; then 8706 aix_libpath=$lt_cv_aix_libpath 8707else 8708 if ${lt_cv_aix_libpath_+:} false; then : 8709 $as_echo_n "(cached) " >&6 8710else 8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8712/* end confdefs.h. */ 8713 8714int 8715main () 8716{ 8717 8718 ; 8719 return 0; 8720} 8721_ACEOF 8722if ac_fn_c_try_link "$LINENO"; then : 8723 8724 lt_aix_libpath_sed=' 8725 /Import File Strings/,/^$/ { 8726 /^0/ { 8727 s/^0 *\([^ ]*\) *$/\1/ 8728 p 8729 } 8730 }' 8731 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8732 # Check for a 64-bit object if we didn't find anything. 8733 if test -z "$lt_cv_aix_libpath_"; then 8734 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8735 fi 8736fi 8737rm -f core conftest.err conftest.$ac_objext \ 8738 conftest$ac_exeext conftest.$ac_ext 8739 if test -z "$lt_cv_aix_libpath_"; then 8740 lt_cv_aix_libpath_="/usr/lib:/lib" 8741 fi 8742 8743fi 8744 8745 aix_libpath=$lt_cv_aix_libpath_ 8746fi 8747 8748 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8749 # Warning - without using the other run time loading flags, 8750 # -berok will link without error, but may produce a broken library. 8751 no_undefined_flag=' ${wl}-bernotok' 8752 allow_undefined_flag=' ${wl}-berok' 8753 if test "$with_gnu_ld" = yes; then 8754 # We only use this code for GNU lds that support --whole-archive. 8755 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8756 else 8757 # Exported symbols can be pulled into shared objects from archives 8758 whole_archive_flag_spec='$convenience' 8759 fi 8760 archive_cmds_need_lc=yes 8761 # This is similar to how AIX traditionally builds its shared libraries. 8762 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' 8763 fi 8764 fi 8765 ;; 8766 8767 amigaos*) 8768 case $host_cpu in 8769 powerpc) 8770 # see comment about AmigaOS4 .so support 8771 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8772 archive_expsym_cmds='' 8773 ;; 8774 m68k) 8775 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)' 8776 hardcode_libdir_flag_spec='-L$libdir' 8777 hardcode_minus_L=yes 8778 ;; 8779 esac 8780 ;; 8781 8782 bsdi[45]*) 8783 export_dynamic_flag_spec=-rdynamic 8784 ;; 8785 8786 cygwin* | mingw* | pw32* | cegcc*) 8787 # When not using gcc, we currently assume that we are using 8788 # Microsoft Visual C++. 8789 # hardcode_libdir_flag_spec is actually meaningless, as there is 8790 # no search path for DLLs. 8791 case $cc_basename in 8792 cl*) 8793 # Native MSVC 8794 hardcode_libdir_flag_spec=' ' 8795 allow_undefined_flag=unsupported 8796 always_export_symbols=yes 8797 file_list_spec='@' 8798 # Tell ltmain to make .lib files, not .a files. 8799 libext=lib 8800 # Tell ltmain to make .dll files, not .so files. 8801 shrext_cmds=".dll" 8802 # FIXME: Setting linknames here is a bad hack. 8803 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 8804 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8805 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 8806 else 8807 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 8808 fi~ 8809 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 8810 linknames=' 8811 # The linker will not automatically build a static lib if we build a DLL. 8812 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 8813 enable_shared_with_static_runtimes=yes 8814 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8815 # Don't use ranlib 8816 old_postinstall_cmds='chmod 644 $oldlib' 8817 postlink_cmds='lt_outputfile="@OUTPUT@"~ 8818 lt_tool_outputfile="@TOOL_OUTPUT@"~ 8819 case $lt_outputfile in 8820 *.exe|*.EXE) ;; 8821 *) 8822 lt_outputfile="$lt_outputfile.exe" 8823 lt_tool_outputfile="$lt_tool_outputfile.exe" 8824 ;; 8825 esac~ 8826 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 8827 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 8828 $RM "$lt_outputfile.manifest"; 8829 fi' 8830 ;; 8831 *) 8832 # Assume MSVC wrapper 8833 hardcode_libdir_flag_spec=' ' 8834 allow_undefined_flag=unsupported 8835 # Tell ltmain to make .lib files, not .a files. 8836 libext=lib 8837 # Tell ltmain to make .dll files, not .so files. 8838 shrext_cmds=".dll" 8839 # FIXME: Setting linknames here is a bad hack. 8840 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 8841 # The linker will automatically build a .lib file if we build a DLL. 8842 old_archive_from_new_cmds='true' 8843 # FIXME: Should let the user specify the lib program. 8844 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8845 enable_shared_with_static_runtimes=yes 8846 ;; 8847 esac 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 freebsd1*) 8888 ld_shlibs=no 8889 ;; 8890 8891 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8892 # support. Future versions do this automatically, but an explicit c++rt0.o 8893 # does not break anything, and helps significantly (at the cost of a little 8894 # extra space). 8895 freebsd2.2*) 8896 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8897 hardcode_libdir_flag_spec='-R$libdir' 8898 hardcode_direct=yes 8899 hardcode_shlibpath_var=no 8900 ;; 8901 8902 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8903 freebsd2*) 8904 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8905 hardcode_direct=yes 8906 hardcode_minus_L=yes 8907 hardcode_shlibpath_var=no 8908 ;; 8909 8910 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8911 freebsd* | dragonfly*) 8912 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8913 hardcode_libdir_flag_spec='-R$libdir' 8914 hardcode_direct=yes 8915 hardcode_shlibpath_var=no 8916 ;; 8917 8918 hpux9*) 8919 if test "$GCC" = yes; then 8920 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8921 else 8922 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' 8923 fi 8924 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8925 hardcode_libdir_separator=: 8926 hardcode_direct=yes 8927 8928 # hardcode_minus_L: Not really in the search PATH, 8929 # but as the default location of the library. 8930 hardcode_minus_L=yes 8931 export_dynamic_flag_spec='${wl}-E' 8932 ;; 8933 8934 hpux10*) 8935 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8936 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8937 else 8938 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8939 fi 8940 if test "$with_gnu_ld" = no; then 8941 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8942 hardcode_libdir_flag_spec_ld='+b $libdir' 8943 hardcode_libdir_separator=: 8944 hardcode_direct=yes 8945 hardcode_direct_absolute=yes 8946 export_dynamic_flag_spec='${wl}-E' 8947 # hardcode_minus_L: Not really in the search PATH, 8948 # but as the default location of the library. 8949 hardcode_minus_L=yes 8950 fi 8951 ;; 8952 8953 hpux11*) 8954 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8955 case $host_cpu in 8956 hppa*64*) 8957 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8958 ;; 8959 ia64*) 8960 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8961 ;; 8962 *) 8963 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8964 ;; 8965 esac 8966 else 8967 case $host_cpu in 8968 hppa*64*) 8969 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8970 ;; 8971 ia64*) 8972 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8973 ;; 8974 *) 8975 8976 # Older versions of the 11.00 compiler do not understand -b yet 8977 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 8979$as_echo_n "checking if $CC understands -b... " >&6; } 8980if ${lt_cv_prog_compiler__b+:} false; then : 8981 $as_echo_n "(cached) " >&6 8982else 8983 lt_cv_prog_compiler__b=no 8984 save_LDFLAGS="$LDFLAGS" 8985 LDFLAGS="$LDFLAGS -b" 8986 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8987 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8988 # The linker can only warn and ignore the option if not recognized 8989 # So say no if there are warnings 8990 if test -s conftest.err; then 8991 # Append any errors to the config.log. 8992 cat conftest.err 1>&5 8993 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8995 if diff conftest.exp conftest.er2 >/dev/null; then 8996 lt_cv_prog_compiler__b=yes 8997 fi 8998 else 8999 lt_cv_prog_compiler__b=yes 9000 fi 9001 fi 9002 $RM -r conftest* 9003 LDFLAGS="$save_LDFLAGS" 9004 9005fi 9006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9007$as_echo "$lt_cv_prog_compiler__b" >&6; } 9008 9009if test x"$lt_cv_prog_compiler__b" = xyes; then 9010 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9011else 9012 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9013fi 9014 9015 ;; 9016 esac 9017 fi 9018 if test "$with_gnu_ld" = no; then 9019 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9020 hardcode_libdir_separator=: 9021 9022 case $host_cpu in 9023 hppa*64*|ia64*) 9024 hardcode_direct=no 9025 hardcode_shlibpath_var=no 9026 ;; 9027 *) 9028 hardcode_direct=yes 9029 hardcode_direct_absolute=yes 9030 export_dynamic_flag_spec='${wl}-E' 9031 9032 # hardcode_minus_L: Not really in the search PATH, 9033 # but as the default location of the library. 9034 hardcode_minus_L=yes 9035 ;; 9036 esac 9037 fi 9038 ;; 9039 9040 irix5* | irix6* | nonstopux*) 9041 if test "$GCC" = yes; then 9042 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9043 # Try to use the -exported_symbol ld option, if it does not 9044 # work, assume that -exports_file does not work either and 9045 # implicitly export all symbols. 9046 # This should be the same for all languages, so no per-tag cache variable. 9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9048$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9049if ${lt_cv_irix_exported_symbol+:} false; then : 9050 $as_echo_n "(cached) " >&6 9051else 9052 save_LDFLAGS="$LDFLAGS" 9053 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9055/* end confdefs.h. */ 9056int foo (void) { return 0; } 9057_ACEOF 9058if ac_fn_c_try_link "$LINENO"; then : 9059 lt_cv_irix_exported_symbol=yes 9060else 9061 lt_cv_irix_exported_symbol=no 9062fi 9063rm -f core conftest.err conftest.$ac_objext \ 9064 conftest$ac_exeext conftest.$ac_ext 9065 LDFLAGS="$save_LDFLAGS" 9066fi 9067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9068$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9069 if test "$lt_cv_irix_exported_symbol" = yes; then 9070 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9071 fi 9072 else 9073 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' 9074 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' 9075 fi 9076 archive_cmds_need_lc='no' 9077 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9078 hardcode_libdir_separator=: 9079 inherit_rpath=yes 9080 link_all_deplibs=yes 9081 ;; 9082 9083 netbsd*) 9084 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9085 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9086 else 9087 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9088 fi 9089 hardcode_libdir_flag_spec='-R$libdir' 9090 hardcode_direct=yes 9091 hardcode_shlibpath_var=no 9092 ;; 9093 9094 newsos6) 9095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9096 hardcode_direct=yes 9097 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9098 hardcode_libdir_separator=: 9099 hardcode_shlibpath_var=no 9100 ;; 9101 9102 *nto* | *qnx*) 9103 ;; 9104 9105 openbsd*) 9106 if test -f /usr/libexec/ld.so; then 9107 hardcode_direct=yes 9108 hardcode_shlibpath_var=no 9109 hardcode_direct_absolute=yes 9110 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9111 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9112 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9113 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9114 export_dynamic_flag_spec='${wl}-E' 9115 else 9116 case $host_os in 9117 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9118 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9119 hardcode_libdir_flag_spec='-R$libdir' 9120 ;; 9121 *) 9122 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9123 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9124 ;; 9125 esac 9126 fi 9127 else 9128 ld_shlibs=no 9129 fi 9130 ;; 9131 9132 os2*) 9133 hardcode_libdir_flag_spec='-L$libdir' 9134 hardcode_minus_L=yes 9135 allow_undefined_flag=unsupported 9136 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' 9137 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9138 ;; 9139 9140 osf3*) 9141 if test "$GCC" = yes; then 9142 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9143 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' 9144 else 9145 allow_undefined_flag=' -expect_unresolved \*' 9146 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' 9147 fi 9148 archive_cmds_need_lc='no' 9149 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9150 hardcode_libdir_separator=: 9151 ;; 9152 9153 osf4* | osf5*) # as osf3* with the addition of -msym flag 9154 if test "$GCC" = yes; then 9155 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9156 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9157 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9158 else 9159 allow_undefined_flag=' -expect_unresolved \*' 9160 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' 9161 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~ 9162 $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' 9163 9164 # Both c and cxx compiler support -rpath directly 9165 hardcode_libdir_flag_spec='-rpath $libdir' 9166 fi 9167 archive_cmds_need_lc='no' 9168 hardcode_libdir_separator=: 9169 ;; 9170 9171 solaris*) 9172 no_undefined_flag=' -z defs' 9173 if test "$GCC" = yes; then 9174 wlarc='${wl}' 9175 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9176 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9177 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9178 else 9179 case `$CC -V 2>&1` in 9180 *"Compilers 5.0"*) 9181 wlarc='' 9182 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9183 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9184 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9185 ;; 9186 *) 9187 wlarc='${wl}' 9188 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9189 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9190 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9191 ;; 9192 esac 9193 fi 9194 hardcode_libdir_flag_spec='-R$libdir' 9195 hardcode_shlibpath_var=no 9196 case $host_os in 9197 solaris2.[0-5] | solaris2.[0-5].*) ;; 9198 *) 9199 # The compiler driver will combine and reorder linker options, 9200 # but understands `-z linker_flag'. GCC discards it without `$wl', 9201 # but is careful enough not to reorder. 9202 # Supported since Solaris 2.6 (maybe 2.5.1?) 9203 if test "$GCC" = yes; then 9204 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9205 else 9206 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9207 fi 9208 ;; 9209 esac 9210 link_all_deplibs=yes 9211 ;; 9212 9213 sunos4*) 9214 if test "x$host_vendor" = xsequent; then 9215 # Use $CC to link under sequent, because it throws in some extra .o 9216 # files that make .init and .fini sections work. 9217 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9218 else 9219 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9220 fi 9221 hardcode_libdir_flag_spec='-L$libdir' 9222 hardcode_direct=yes 9223 hardcode_minus_L=yes 9224 hardcode_shlibpath_var=no 9225 ;; 9226 9227 sysv4) 9228 case $host_vendor in 9229 sni) 9230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9231 hardcode_direct=yes # is this really true??? 9232 ;; 9233 siemens) 9234 ## LD is ld it makes a PLAMLIB 9235 ## CC just makes a GrossModule. 9236 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9237 reload_cmds='$CC -r -o $output$reload_objs' 9238 hardcode_direct=no 9239 ;; 9240 motorola) 9241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9242 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9243 ;; 9244 esac 9245 runpath_var='LD_RUN_PATH' 9246 hardcode_shlibpath_var=no 9247 ;; 9248 9249 sysv4.3*) 9250 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9251 hardcode_shlibpath_var=no 9252 export_dynamic_flag_spec='-Bexport' 9253 ;; 9254 9255 sysv4*MP*) 9256 if test -d /usr/nec; then 9257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9258 hardcode_shlibpath_var=no 9259 runpath_var=LD_RUN_PATH 9260 hardcode_runpath_var=yes 9261 ld_shlibs=yes 9262 fi 9263 ;; 9264 9265 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9266 no_undefined_flag='${wl}-z,text' 9267 archive_cmds_need_lc=no 9268 hardcode_shlibpath_var=no 9269 runpath_var='LD_RUN_PATH' 9270 9271 if test "$GCC" = yes; then 9272 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9273 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9274 else 9275 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9276 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9277 fi 9278 ;; 9279 9280 sysv5* | sco3.2v5* | sco5v6*) 9281 # Note: We can NOT use -z defs as we might desire, because we do not 9282 # link with -lc, and that would cause any symbols used from libc to 9283 # always be unresolved, which means just about no library would 9284 # ever link correctly. If we're not using GNU ld we use -z text 9285 # though, which does catch some bad symbols but isn't as heavy-handed 9286 # as -z defs. 9287 no_undefined_flag='${wl}-z,text' 9288 allow_undefined_flag='${wl}-z,nodefs' 9289 archive_cmds_need_lc=no 9290 hardcode_shlibpath_var=no 9291 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9292 hardcode_libdir_separator=':' 9293 link_all_deplibs=yes 9294 export_dynamic_flag_spec='${wl}-Bexport' 9295 runpath_var='LD_RUN_PATH' 9296 9297 if test "$GCC" = yes; then 9298 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9299 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9300 else 9301 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9302 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9303 fi 9304 ;; 9305 9306 uts4*) 9307 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9308 hardcode_libdir_flag_spec='-L$libdir' 9309 hardcode_shlibpath_var=no 9310 ;; 9311 9312 *) 9313 ld_shlibs=no 9314 ;; 9315 esac 9316 9317 if test x$host_vendor = xsni; then 9318 case $host in 9319 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9320 export_dynamic_flag_spec='${wl}-Blargedynsym' 9321 ;; 9322 esac 9323 fi 9324 fi 9325 9326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9327$as_echo "$ld_shlibs" >&6; } 9328test "$ld_shlibs" = no && can_build_shared=no 9329 9330with_gnu_ld=$with_gnu_ld 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346# 9347# Do we need to explicitly link libc? 9348# 9349case "x$archive_cmds_need_lc" in 9350x|xyes) 9351 # Assume -lc should be added 9352 archive_cmds_need_lc=yes 9353 9354 if test "$enable_shared" = yes && test "$GCC" = yes; then 9355 case $archive_cmds in 9356 *'~'*) 9357 # FIXME: we may have to deal with multi-command sequences. 9358 ;; 9359 '$CC '*) 9360 # Test whether the compiler implicitly links with -lc since on some 9361 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9362 # to ld, don't add -lc before -lgcc. 9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9364$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9365if ${lt_cv_archive_cmds_need_lc+:} false; then : 9366 $as_echo_n "(cached) " >&6 9367else 9368 $RM conftest* 9369 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9370 9371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9372 (eval $ac_compile) 2>&5 9373 ac_status=$? 9374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9375 test $ac_status = 0; } 2>conftest.err; then 9376 soname=conftest 9377 lib=conftest 9378 libobjs=conftest.$ac_objext 9379 deplibs= 9380 wl=$lt_prog_compiler_wl 9381 pic_flag=$lt_prog_compiler_pic 9382 compiler_flags=-v 9383 linker_flags=-v 9384 verstring= 9385 output_objdir=. 9386 libname=conftest 9387 lt_save_allow_undefined_flag=$allow_undefined_flag 9388 allow_undefined_flag= 9389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9390 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9391 ac_status=$? 9392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9393 test $ac_status = 0; } 9394 then 9395 lt_cv_archive_cmds_need_lc=no 9396 else 9397 lt_cv_archive_cmds_need_lc=yes 9398 fi 9399 allow_undefined_flag=$lt_save_allow_undefined_flag 9400 else 9401 cat conftest.err 1>&5 9402 fi 9403 $RM conftest* 9404 9405fi 9406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9407$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9408 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9409 ;; 9410 esac 9411 fi 9412 ;; 9413esac 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 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9572$as_echo_n "checking dynamic linker characteristics... " >&6; } 9573 9574if test "$GCC" = yes; then 9575 case $host_os in 9576 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9577 *) lt_awk_arg="/^libraries:/" ;; 9578 esac 9579 case $host_os in 9580 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9581 *) lt_sed_strip_eq="s,=/,/,g" ;; 9582 esac 9583 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9584 case $lt_search_path_spec in 9585 *\;*) 9586 # if the path contains ";" then we assume it to be the separator 9587 # otherwise default to the standard path separator (i.e. ":") - it is 9588 # assumed that no part of a normal pathname contains ";" but that should 9589 # okay in the real world where ";" in dirpaths is itself problematic. 9590 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9591 ;; 9592 *) 9593 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9594 ;; 9595 esac 9596 # Ok, now we have the path, separated by spaces, we can step through it 9597 # and add multilib dir if necessary. 9598 lt_tmp_lt_search_path_spec= 9599 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9600 for lt_sys_path in $lt_search_path_spec; do 9601 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9602 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9603 else 9604 test -d "$lt_sys_path" && \ 9605 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9606 fi 9607 done 9608 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9609BEGIN {RS=" "; FS="/|\n";} { 9610 lt_foo=""; 9611 lt_count=0; 9612 for (lt_i = NF; lt_i > 0; lt_i--) { 9613 if ($lt_i != "" && $lt_i != ".") { 9614 if ($lt_i == "..") { 9615 lt_count++; 9616 } else { 9617 if (lt_count == 0) { 9618 lt_foo="/" $lt_i lt_foo; 9619 } else { 9620 lt_count--; 9621 } 9622 } 9623 } 9624 } 9625 if (lt_foo != "") { lt_freq[lt_foo]++; } 9626 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9627}'` 9628 # AWK program above erroneously prepends '/' to C:/dos/paths 9629 # for these hosts. 9630 case $host_os in 9631 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9632 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9633 esac 9634 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9635else 9636 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9637fi 9638library_names_spec= 9639libname_spec='lib$name' 9640soname_spec= 9641shrext_cmds=".so" 9642postinstall_cmds= 9643postuninstall_cmds= 9644finish_cmds= 9645finish_eval= 9646shlibpath_var= 9647shlibpath_overrides_runpath=unknown 9648version_type=none 9649dynamic_linker="$host_os ld.so" 9650sys_lib_dlsearch_path_spec="/lib /usr/lib" 9651need_lib_prefix=unknown 9652hardcode_into_libs=no 9653 9654# when you set need_version to no, make sure it does not cause -set_version 9655# flags to be left without arguments 9656need_version=unknown 9657 9658case $host_os in 9659aix3*) 9660 version_type=linux 9661 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9662 shlibpath_var=LIBPATH 9663 9664 # AIX 3 has no versioning support, so we append a major version to the name. 9665 soname_spec='${libname}${release}${shared_ext}$major' 9666 ;; 9667 9668aix[4-9]*) 9669 version_type=linux 9670 need_lib_prefix=no 9671 need_version=no 9672 hardcode_into_libs=yes 9673 if test "$host_cpu" = ia64; then 9674 # AIX 5 supports IA64 9675 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9676 shlibpath_var=LD_LIBRARY_PATH 9677 else 9678 # With GCC up to 2.95.x, collect2 would create an import file 9679 # for dependence libraries. The import file would start with 9680 # the line `#! .'. This would cause the generated library to 9681 # depend on `.', always an invalid library. This was fixed in 9682 # development snapshots of GCC prior to 3.0. 9683 case $host_os in 9684 aix4 | aix4.[01] | aix4.[01].*) 9685 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9686 echo ' yes ' 9687 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9688 : 9689 else 9690 can_build_shared=no 9691 fi 9692 ;; 9693 esac 9694 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9695 # soname into executable. Probably we can add versioning support to 9696 # collect2, so additional links can be useful in future. 9697 if test "$aix_use_runtimelinking" = yes; then 9698 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9699 # instead of lib<name>.a to let people know that these are not 9700 # typical AIX shared libraries. 9701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9702 else 9703 # We preserve .a as extension for shared libraries through AIX4.2 9704 # and later when we are not doing run time linking. 9705 library_names_spec='${libname}${release}.a $libname.a' 9706 soname_spec='${libname}${release}${shared_ext}$major' 9707 fi 9708 shlibpath_var=LIBPATH 9709 fi 9710 ;; 9711 9712amigaos*) 9713 case $host_cpu in 9714 powerpc) 9715 # Since July 2007 AmigaOS4 officially supports .so libraries. 9716 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9718 ;; 9719 m68k) 9720 library_names_spec='$libname.ixlibrary $libname.a' 9721 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9722 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' 9723 ;; 9724 esac 9725 ;; 9726 9727beos*) 9728 library_names_spec='${libname}${shared_ext}' 9729 dynamic_linker="$host_os ld.so" 9730 shlibpath_var=LIBRARY_PATH 9731 ;; 9732 9733bsdi[45]*) 9734 version_type=linux 9735 need_version=no 9736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9737 soname_spec='${libname}${release}${shared_ext}$major' 9738 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9739 shlibpath_var=LD_LIBRARY_PATH 9740 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9741 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9742 # the default ld.so.conf also contains /usr/contrib/lib and 9743 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9744 # libtool to hard-code these into programs 9745 ;; 9746 9747cygwin* | mingw* | pw32* | cegcc*) 9748 version_type=windows 9749 shrext_cmds=".dll" 9750 need_version=no 9751 need_lib_prefix=no 9752 9753 case $GCC,$cc_basename in 9754 yes,*) 9755 # gcc 9756 library_names_spec='$libname.dll.a' 9757 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9758 postinstall_cmds='base_file=`basename \${file}`~ 9759 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9760 dldir=$destdir/`dirname \$dlpath`~ 9761 test -d \$dldir || mkdir -p \$dldir~ 9762 $install_prog $dir/$dlname \$dldir/$dlname~ 9763 chmod a+x \$dldir/$dlname~ 9764 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9765 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9766 fi' 9767 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9768 dlpath=$dir/\$dldll~ 9769 $RM \$dlpath' 9770 shlibpath_overrides_runpath=yes 9771 9772 case $host_os in 9773 cygwin*) 9774 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9775 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9776 9777 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 9778 ;; 9779 mingw* | cegcc*) 9780 # MinGW DLLs use traditional 'lib' prefix 9781 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9782 ;; 9783 pw32*) 9784 # pw32 DLLs use 'pw' prefix rather than 'lib' 9785 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9786 ;; 9787 esac 9788 dynamic_linker='Win32 ld.exe' 9789 ;; 9790 9791 *,cl*) 9792 # Native MSVC 9793 libname_spec='$name' 9794 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9795 library_names_spec='${libname}.dll.lib' 9796 9797 case $build_os in 9798 mingw*) 9799 sys_lib_search_path_spec= 9800 lt_save_ifs=$IFS 9801 IFS=';' 9802 for lt_path in $LIB 9803 do 9804 IFS=$lt_save_ifs 9805 # Let DOS variable expansion print the short 8.3 style file name. 9806 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 9807 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 9808 done 9809 IFS=$lt_save_ifs 9810 # Convert to MSYS style. 9811 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 9812 ;; 9813 cygwin*) 9814 # Convert to unix form, then to dos form, then back to unix form 9815 # but this time dos style (no spaces!) so that the unix form looks 9816 # like /cygdrive/c/PROGRA~1:/cygdr... 9817 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 9818 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 9819 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9820 ;; 9821 *) 9822 sys_lib_search_path_spec="$LIB" 9823 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9824 # It is most probably a Windows format PATH. 9825 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9826 else 9827 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9828 fi 9829 # FIXME: find the short name or the path components, as spaces are 9830 # common. (e.g. "Program Files" -> "PROGRA~1") 9831 ;; 9832 esac 9833 9834 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9835 postinstall_cmds='base_file=`basename \${file}`~ 9836 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9837 dldir=$destdir/`dirname \$dlpath`~ 9838 test -d \$dldir || mkdir -p \$dldir~ 9839 $install_prog $dir/$dlname \$dldir/$dlname' 9840 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9841 dlpath=$dir/\$dldll~ 9842 $RM \$dlpath' 9843 shlibpath_overrides_runpath=yes 9844 dynamic_linker='Win32 link.exe' 9845 ;; 9846 9847 *) 9848 # Assume MSVC wrapper 9849 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9850 dynamic_linker='Win32 ld.exe' 9851 ;; 9852 esac 9853 # FIXME: first we should search . and the directory the executable is in 9854 shlibpath_var=PATH 9855 ;; 9856 9857darwin* | rhapsody*) 9858 dynamic_linker="$host_os dyld" 9859 version_type=darwin 9860 need_lib_prefix=no 9861 need_version=no 9862 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9863 soname_spec='${libname}${release}${major}$shared_ext' 9864 shlibpath_overrides_runpath=yes 9865 shlibpath_var=DYLD_LIBRARY_PATH 9866 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9867 9868 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9869 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9870 ;; 9871 9872dgux*) 9873 version_type=linux 9874 need_lib_prefix=no 9875 need_version=no 9876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9877 soname_spec='${libname}${release}${shared_ext}$major' 9878 shlibpath_var=LD_LIBRARY_PATH 9879 ;; 9880 9881freebsd1*) 9882 dynamic_linker=no 9883 ;; 9884 9885freebsd* | dragonfly*) 9886 # DragonFly does not have aout. When/if they implement a new 9887 # versioning mechanism, adjust this. 9888 if test -x /usr/bin/objformat; then 9889 objformat=`/usr/bin/objformat` 9890 else 9891 case $host_os in 9892 freebsd[123]*) objformat=aout ;; 9893 *) objformat=elf ;; 9894 esac 9895 fi 9896 version_type=freebsd-$objformat 9897 case $version_type in 9898 freebsd-elf*) 9899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9900 need_version=no 9901 need_lib_prefix=no 9902 ;; 9903 freebsd-*) 9904 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9905 need_version=yes 9906 ;; 9907 esac 9908 shlibpath_var=LD_LIBRARY_PATH 9909 case $host_os in 9910 freebsd2*) 9911 shlibpath_overrides_runpath=yes 9912 ;; 9913 freebsd3.[01]* | freebsdelf3.[01]*) 9914 shlibpath_overrides_runpath=yes 9915 hardcode_into_libs=yes 9916 ;; 9917 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9918 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9919 shlibpath_overrides_runpath=no 9920 hardcode_into_libs=yes 9921 ;; 9922 *) # from 4.6 on, and DragonFly 9923 shlibpath_overrides_runpath=yes 9924 hardcode_into_libs=yes 9925 ;; 9926 esac 9927 ;; 9928 9929gnu*) 9930 version_type=linux 9931 need_lib_prefix=no 9932 need_version=no 9933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9934 soname_spec='${libname}${release}${shared_ext}$major' 9935 shlibpath_var=LD_LIBRARY_PATH 9936 hardcode_into_libs=yes 9937 ;; 9938 9939haiku*) 9940 version_type=linux 9941 need_lib_prefix=no 9942 need_version=no 9943 dynamic_linker="$host_os runtime_loader" 9944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9945 soname_spec='${libname}${release}${shared_ext}$major' 9946 shlibpath_var=LIBRARY_PATH 9947 shlibpath_overrides_runpath=yes 9948 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 9949 hardcode_into_libs=yes 9950 ;; 9951 9952hpux9* | hpux10* | hpux11*) 9953 # Give a soname corresponding to the major version so that dld.sl refuses to 9954 # link against other versions. 9955 version_type=sunos 9956 need_lib_prefix=no 9957 need_version=no 9958 case $host_cpu in 9959 ia64*) 9960 shrext_cmds='.so' 9961 hardcode_into_libs=yes 9962 dynamic_linker="$host_os dld.so" 9963 shlibpath_var=LD_LIBRARY_PATH 9964 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9966 soname_spec='${libname}${release}${shared_ext}$major' 9967 if test "X$HPUX_IA64_MODE" = X32; then 9968 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9969 else 9970 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9971 fi 9972 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9973 ;; 9974 hppa*64*) 9975 shrext_cmds='.sl' 9976 hardcode_into_libs=yes 9977 dynamic_linker="$host_os dld.sl" 9978 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9979 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9981 soname_spec='${libname}${release}${shared_ext}$major' 9982 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9983 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9984 ;; 9985 *) 9986 shrext_cmds='.sl' 9987 dynamic_linker="$host_os dld.sl" 9988 shlibpath_var=SHLIB_PATH 9989 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9991 soname_spec='${libname}${release}${shared_ext}$major' 9992 ;; 9993 esac 9994 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 9995 postinstall_cmds='chmod 555 $lib' 9996 # or fails outright, so override atomically: 9997 install_override_mode=555 9998 ;; 9999 10000interix[3-9]*) 10001 version_type=linux 10002 need_lib_prefix=no 10003 need_version=no 10004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10005 soname_spec='${libname}${release}${shared_ext}$major' 10006 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10007 shlibpath_var=LD_LIBRARY_PATH 10008 shlibpath_overrides_runpath=no 10009 hardcode_into_libs=yes 10010 ;; 10011 10012irix5* | irix6* | nonstopux*) 10013 case $host_os in 10014 nonstopux*) version_type=nonstopux ;; 10015 *) 10016 if test "$lt_cv_prog_gnu_ld" = yes; then 10017 version_type=linux 10018 else 10019 version_type=irix 10020 fi ;; 10021 esac 10022 need_lib_prefix=no 10023 need_version=no 10024 soname_spec='${libname}${release}${shared_ext}$major' 10025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10026 case $host_os in 10027 irix5* | nonstopux*) 10028 libsuff= shlibsuff= 10029 ;; 10030 *) 10031 case $LD in # libtool.m4 will add one of these switches to LD 10032 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10033 libsuff= shlibsuff= libmagic=32-bit;; 10034 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10035 libsuff=32 shlibsuff=N32 libmagic=N32;; 10036 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10037 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10038 *) libsuff= shlibsuff= libmagic=never-match;; 10039 esac 10040 ;; 10041 esac 10042 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10043 shlibpath_overrides_runpath=no 10044 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10045 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10046 hardcode_into_libs=yes 10047 ;; 10048 10049# No shared lib support for Linux oldld, aout, or coff. 10050linux*oldld* | linux*aout* | linux*coff*) 10051 dynamic_linker=no 10052 ;; 10053 10054# This must be Linux ELF. 10055linux* | k*bsd*-gnu | kopensolaris*-gnu) 10056 version_type=linux 10057 need_lib_prefix=no 10058 need_version=no 10059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10060 soname_spec='${libname}${release}${shared_ext}$major' 10061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10062 shlibpath_var=LD_LIBRARY_PATH 10063 shlibpath_overrides_runpath=no 10064 10065 # Some binutils ld are patched to set DT_RUNPATH 10066 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10067 $as_echo_n "(cached) " >&6 10068else 10069 lt_cv_shlibpath_overrides_runpath=no 10070 save_LDFLAGS=$LDFLAGS 10071 save_libdir=$libdir 10072 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10073 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10075/* end confdefs.h. */ 10076 10077int 10078main () 10079{ 10080 10081 ; 10082 return 0; 10083} 10084_ACEOF 10085if ac_fn_c_try_link "$LINENO"; then : 10086 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10087 lt_cv_shlibpath_overrides_runpath=yes 10088fi 10089fi 10090rm -f core conftest.err conftest.$ac_objext \ 10091 conftest$ac_exeext conftest.$ac_ext 10092 LDFLAGS=$save_LDFLAGS 10093 libdir=$save_libdir 10094 10095fi 10096 10097 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10098 10099 # This implies no fast_install, which is unacceptable. 10100 # Some rework will be needed to allow for fast_install 10101 # before this can be enabled. 10102 hardcode_into_libs=yes 10103 10104 # Append ld.so.conf contents to the search path 10105 if test -f /etc/ld.so.conf; then 10106 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' ' '` 10107 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10108 fi 10109 10110 # We used to test for /lib/ld.so.1 and disable shared libraries on 10111 # powerpc, because MkLinux only supported shared libraries with the 10112 # GNU dynamic linker. Since this was broken with cross compilers, 10113 # most powerpc-linux boxes support dynamic linking these days and 10114 # people can always --disable-shared, the test was removed, and we 10115 # assume the GNU/Linux dynamic linker is in use. 10116 dynamic_linker='GNU/Linux ld.so' 10117 ;; 10118 10119netbsd*) 10120 version_type=sunos 10121 need_lib_prefix=no 10122 need_version=no 10123 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10126 dynamic_linker='NetBSD (a.out) ld.so' 10127 else 10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10129 soname_spec='${libname}${release}${shared_ext}$major' 10130 dynamic_linker='NetBSD ld.elf_so' 10131 fi 10132 shlibpath_var=LD_LIBRARY_PATH 10133 shlibpath_overrides_runpath=yes 10134 hardcode_into_libs=yes 10135 ;; 10136 10137newsos6) 10138 version_type=linux 10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10140 shlibpath_var=LD_LIBRARY_PATH 10141 shlibpath_overrides_runpath=yes 10142 ;; 10143 10144*nto* | *qnx*) 10145 version_type=qnx 10146 need_lib_prefix=no 10147 need_version=no 10148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10149 soname_spec='${libname}${release}${shared_ext}$major' 10150 shlibpath_var=LD_LIBRARY_PATH 10151 shlibpath_overrides_runpath=no 10152 hardcode_into_libs=yes 10153 dynamic_linker='ldqnx.so' 10154 ;; 10155 10156openbsd*) 10157 version_type=sunos 10158 sys_lib_dlsearch_path_spec="/usr/lib" 10159 need_lib_prefix=no 10160 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10161 case $host_os in 10162 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10163 *) need_version=no ;; 10164 esac 10165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10167 shlibpath_var=LD_LIBRARY_PATH 10168 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10169 case $host_os in 10170 openbsd2.[89] | openbsd2.[89].*) 10171 shlibpath_overrides_runpath=no 10172 ;; 10173 *) 10174 shlibpath_overrides_runpath=yes 10175 ;; 10176 esac 10177 else 10178 shlibpath_overrides_runpath=yes 10179 fi 10180 ;; 10181 10182os2*) 10183 libname_spec='$name' 10184 shrext_cmds=".dll" 10185 need_lib_prefix=no 10186 library_names_spec='$libname${shared_ext} $libname.a' 10187 dynamic_linker='OS/2 ld.exe' 10188 shlibpath_var=LIBPATH 10189 ;; 10190 10191osf3* | osf4* | osf5*) 10192 version_type=osf 10193 need_lib_prefix=no 10194 need_version=no 10195 soname_spec='${libname}${release}${shared_ext}$major' 10196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10197 shlibpath_var=LD_LIBRARY_PATH 10198 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10199 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10200 ;; 10201 10202rdos*) 10203 dynamic_linker=no 10204 ;; 10205 10206solaris*) 10207 version_type=linux 10208 need_lib_prefix=no 10209 need_version=no 10210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10211 soname_spec='${libname}${release}${shared_ext}$major' 10212 shlibpath_var=LD_LIBRARY_PATH 10213 shlibpath_overrides_runpath=yes 10214 hardcode_into_libs=yes 10215 # ldd complains unless libraries are executable 10216 postinstall_cmds='chmod +x $lib' 10217 ;; 10218 10219sunos4*) 10220 version_type=sunos 10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10222 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10223 shlibpath_var=LD_LIBRARY_PATH 10224 shlibpath_overrides_runpath=yes 10225 if test "$with_gnu_ld" = yes; then 10226 need_lib_prefix=no 10227 fi 10228 need_version=yes 10229 ;; 10230 10231sysv4 | sysv4.3*) 10232 version_type=linux 10233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10234 soname_spec='${libname}${release}${shared_ext}$major' 10235 shlibpath_var=LD_LIBRARY_PATH 10236 case $host_vendor in 10237 sni) 10238 shlibpath_overrides_runpath=no 10239 need_lib_prefix=no 10240 runpath_var=LD_RUN_PATH 10241 ;; 10242 siemens) 10243 need_lib_prefix=no 10244 ;; 10245 motorola) 10246 need_lib_prefix=no 10247 need_version=no 10248 shlibpath_overrides_runpath=no 10249 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10250 ;; 10251 esac 10252 ;; 10253 10254sysv4*MP*) 10255 if test -d /usr/nec ;then 10256 version_type=linux 10257 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10258 soname_spec='$libname${shared_ext}.$major' 10259 shlibpath_var=LD_LIBRARY_PATH 10260 fi 10261 ;; 10262 10263sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10264 version_type=freebsd-elf 10265 need_lib_prefix=no 10266 need_version=no 10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10268 soname_spec='${libname}${release}${shared_ext}$major' 10269 shlibpath_var=LD_LIBRARY_PATH 10270 shlibpath_overrides_runpath=yes 10271 hardcode_into_libs=yes 10272 if test "$with_gnu_ld" = yes; then 10273 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10274 else 10275 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10276 case $host_os in 10277 sco3.2v5*) 10278 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10279 ;; 10280 esac 10281 fi 10282 sys_lib_dlsearch_path_spec='/usr/lib' 10283 ;; 10284 10285tpf*) 10286 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10287 version_type=linux 10288 need_lib_prefix=no 10289 need_version=no 10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10291 shlibpath_var=LD_LIBRARY_PATH 10292 shlibpath_overrides_runpath=no 10293 hardcode_into_libs=yes 10294 ;; 10295 10296uts4*) 10297 version_type=linux 10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10299 soname_spec='${libname}${release}${shared_ext}$major' 10300 shlibpath_var=LD_LIBRARY_PATH 10301 ;; 10302 10303*) 10304 dynamic_linker=no 10305 ;; 10306esac 10307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10308$as_echo "$dynamic_linker" >&6; } 10309test "$dynamic_linker" = no && can_build_shared=no 10310 10311variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10312if test "$GCC" = yes; then 10313 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10314fi 10315 10316if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10317 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10318fi 10319if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10320 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10321fi 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10415$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10416hardcode_action= 10417if test -n "$hardcode_libdir_flag_spec" || 10418 test -n "$runpath_var" || 10419 test "X$hardcode_automatic" = "Xyes" ; then 10420 10421 # We can hardcode non-existent directories. 10422 if test "$hardcode_direct" != no && 10423 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10424 # have to relink, otherwise we might link with an installed library 10425 # when we should be linking with a yet-to-be-installed one 10426 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10427 test "$hardcode_minus_L" != no; then 10428 # Linking always hardcodes the temporary library directory. 10429 hardcode_action=relink 10430 else 10431 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10432 hardcode_action=immediate 10433 fi 10434else 10435 # We cannot hardcode anything, or else we can only hardcode existing 10436 # directories. 10437 hardcode_action=unsupported 10438fi 10439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10440$as_echo "$hardcode_action" >&6; } 10441 10442if test "$hardcode_action" = relink || 10443 test "$inherit_rpath" = yes; then 10444 # Fast installation is not supported 10445 enable_fast_install=no 10446elif test "$shlibpath_overrides_runpath" = yes || 10447 test "$enable_shared" = no; then 10448 # Fast installation is not necessary 10449 enable_fast_install=needless 10450fi 10451 10452 10453 10454 10455 10456 10457 if test "x$enable_dlopen" != xyes; then 10458 enable_dlopen=unknown 10459 enable_dlopen_self=unknown 10460 enable_dlopen_self_static=unknown 10461else 10462 lt_cv_dlopen=no 10463 lt_cv_dlopen_libs= 10464 10465 case $host_os in 10466 beos*) 10467 lt_cv_dlopen="load_add_on" 10468 lt_cv_dlopen_libs= 10469 lt_cv_dlopen_self=yes 10470 ;; 10471 10472 mingw* | pw32* | cegcc*) 10473 lt_cv_dlopen="LoadLibrary" 10474 lt_cv_dlopen_libs= 10475 ;; 10476 10477 cygwin*) 10478 lt_cv_dlopen="dlopen" 10479 lt_cv_dlopen_libs= 10480 ;; 10481 10482 darwin*) 10483 # if libdl is installed we need to link against it 10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10485$as_echo_n "checking for dlopen in -ldl... " >&6; } 10486if ${ac_cv_lib_dl_dlopen+:} false; then : 10487 $as_echo_n "(cached) " >&6 10488else 10489 ac_check_lib_save_LIBS=$LIBS 10490LIBS="-ldl $LIBS" 10491cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10492/* end confdefs.h. */ 10493 10494/* Override any GCC internal prototype to avoid an error. 10495 Use char because int might match the return type of a GCC 10496 builtin and then its argument prototype would still apply. */ 10497#ifdef __cplusplus 10498extern "C" 10499#endif 10500char dlopen (); 10501int 10502main () 10503{ 10504return dlopen (); 10505 ; 10506 return 0; 10507} 10508_ACEOF 10509if ac_fn_c_try_link "$LINENO"; then : 10510 ac_cv_lib_dl_dlopen=yes 10511else 10512 ac_cv_lib_dl_dlopen=no 10513fi 10514rm -f core conftest.err conftest.$ac_objext \ 10515 conftest$ac_exeext conftest.$ac_ext 10516LIBS=$ac_check_lib_save_LIBS 10517fi 10518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10519$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10520if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10521 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10522else 10523 10524 lt_cv_dlopen="dyld" 10525 lt_cv_dlopen_libs= 10526 lt_cv_dlopen_self=yes 10527 10528fi 10529 10530 ;; 10531 10532 *) 10533 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10534if test "x$ac_cv_func_shl_load" = xyes; then : 10535 lt_cv_dlopen="shl_load" 10536else 10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10538$as_echo_n "checking for shl_load in -ldld... " >&6; } 10539if ${ac_cv_lib_dld_shl_load+:} false; then : 10540 $as_echo_n "(cached) " >&6 10541else 10542 ac_check_lib_save_LIBS=$LIBS 10543LIBS="-ldld $LIBS" 10544cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10545/* end confdefs.h. */ 10546 10547/* Override any GCC internal prototype to avoid an error. 10548 Use char because int might match the return type of a GCC 10549 builtin and then its argument prototype would still apply. */ 10550#ifdef __cplusplus 10551extern "C" 10552#endif 10553char shl_load (); 10554int 10555main () 10556{ 10557return shl_load (); 10558 ; 10559 return 0; 10560} 10561_ACEOF 10562if ac_fn_c_try_link "$LINENO"; then : 10563 ac_cv_lib_dld_shl_load=yes 10564else 10565 ac_cv_lib_dld_shl_load=no 10566fi 10567rm -f core conftest.err conftest.$ac_objext \ 10568 conftest$ac_exeext conftest.$ac_ext 10569LIBS=$ac_check_lib_save_LIBS 10570fi 10571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10572$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10573if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10574 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10575else 10576 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10577if test "x$ac_cv_func_dlopen" = xyes; then : 10578 lt_cv_dlopen="dlopen" 10579else 10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10581$as_echo_n "checking for dlopen in -ldl... " >&6; } 10582if ${ac_cv_lib_dl_dlopen+:} false; then : 10583 $as_echo_n "(cached) " >&6 10584else 10585 ac_check_lib_save_LIBS=$LIBS 10586LIBS="-ldl $LIBS" 10587cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10588/* end confdefs.h. */ 10589 10590/* Override any GCC internal prototype to avoid an error. 10591 Use char because int might match the return type of a GCC 10592 builtin and then its argument prototype would still apply. */ 10593#ifdef __cplusplus 10594extern "C" 10595#endif 10596char dlopen (); 10597int 10598main () 10599{ 10600return dlopen (); 10601 ; 10602 return 0; 10603} 10604_ACEOF 10605if ac_fn_c_try_link "$LINENO"; then : 10606 ac_cv_lib_dl_dlopen=yes 10607else 10608 ac_cv_lib_dl_dlopen=no 10609fi 10610rm -f core conftest.err conftest.$ac_objext \ 10611 conftest$ac_exeext conftest.$ac_ext 10612LIBS=$ac_check_lib_save_LIBS 10613fi 10614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10615$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10616if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10617 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10618else 10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10620$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10621if ${ac_cv_lib_svld_dlopen+:} false; then : 10622 $as_echo_n "(cached) " >&6 10623else 10624 ac_check_lib_save_LIBS=$LIBS 10625LIBS="-lsvld $LIBS" 10626cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10627/* end confdefs.h. */ 10628 10629/* Override any GCC internal prototype to avoid an error. 10630 Use char because int might match the return type of a GCC 10631 builtin and then its argument prototype would still apply. */ 10632#ifdef __cplusplus 10633extern "C" 10634#endif 10635char dlopen (); 10636int 10637main () 10638{ 10639return dlopen (); 10640 ; 10641 return 0; 10642} 10643_ACEOF 10644if ac_fn_c_try_link "$LINENO"; then : 10645 ac_cv_lib_svld_dlopen=yes 10646else 10647 ac_cv_lib_svld_dlopen=no 10648fi 10649rm -f core conftest.err conftest.$ac_objext \ 10650 conftest$ac_exeext conftest.$ac_ext 10651LIBS=$ac_check_lib_save_LIBS 10652fi 10653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10654$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10655if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10656 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10657else 10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10659$as_echo_n "checking for dld_link in -ldld... " >&6; } 10660if ${ac_cv_lib_dld_dld_link+:} false; then : 10661 $as_echo_n "(cached) " >&6 10662else 10663 ac_check_lib_save_LIBS=$LIBS 10664LIBS="-ldld $LIBS" 10665cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10666/* end confdefs.h. */ 10667 10668/* Override any GCC internal prototype to avoid an error. 10669 Use char because int might match the return type of a GCC 10670 builtin and then its argument prototype would still apply. */ 10671#ifdef __cplusplus 10672extern "C" 10673#endif 10674char dld_link (); 10675int 10676main () 10677{ 10678return dld_link (); 10679 ; 10680 return 0; 10681} 10682_ACEOF 10683if ac_fn_c_try_link "$LINENO"; then : 10684 ac_cv_lib_dld_dld_link=yes 10685else 10686 ac_cv_lib_dld_dld_link=no 10687fi 10688rm -f core conftest.err conftest.$ac_objext \ 10689 conftest$ac_exeext conftest.$ac_ext 10690LIBS=$ac_check_lib_save_LIBS 10691fi 10692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10693$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10694if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 10695 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10696fi 10697 10698 10699fi 10700 10701 10702fi 10703 10704 10705fi 10706 10707 10708fi 10709 10710 10711fi 10712 10713 ;; 10714 esac 10715 10716 if test "x$lt_cv_dlopen" != xno; then 10717 enable_dlopen=yes 10718 else 10719 enable_dlopen=no 10720 fi 10721 10722 case $lt_cv_dlopen in 10723 dlopen) 10724 save_CPPFLAGS="$CPPFLAGS" 10725 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10726 10727 save_LDFLAGS="$LDFLAGS" 10728 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10729 10730 save_LIBS="$LIBS" 10731 LIBS="$lt_cv_dlopen_libs $LIBS" 10732 10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10734$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10735if ${lt_cv_dlopen_self+:} false; then : 10736 $as_echo_n "(cached) " >&6 10737else 10738 if test "$cross_compiling" = yes; then : 10739 lt_cv_dlopen_self=cross 10740else 10741 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10742 lt_status=$lt_dlunknown 10743 cat > conftest.$ac_ext <<_LT_EOF 10744#line $LINENO "configure" 10745#include "confdefs.h" 10746 10747#if HAVE_DLFCN_H 10748#include <dlfcn.h> 10749#endif 10750 10751#include <stdio.h> 10752 10753#ifdef RTLD_GLOBAL 10754# define LT_DLGLOBAL RTLD_GLOBAL 10755#else 10756# ifdef DL_GLOBAL 10757# define LT_DLGLOBAL DL_GLOBAL 10758# else 10759# define LT_DLGLOBAL 0 10760# endif 10761#endif 10762 10763/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10764 find out it does not work in some platform. */ 10765#ifndef LT_DLLAZY_OR_NOW 10766# ifdef RTLD_LAZY 10767# define LT_DLLAZY_OR_NOW RTLD_LAZY 10768# else 10769# ifdef DL_LAZY 10770# define LT_DLLAZY_OR_NOW DL_LAZY 10771# else 10772# ifdef RTLD_NOW 10773# define LT_DLLAZY_OR_NOW RTLD_NOW 10774# else 10775# ifdef DL_NOW 10776# define LT_DLLAZY_OR_NOW DL_NOW 10777# else 10778# define LT_DLLAZY_OR_NOW 0 10779# endif 10780# endif 10781# endif 10782# endif 10783#endif 10784 10785/* When -fvisbility=hidden is used, assume the code has been annotated 10786 correspondingly for the symbols needed. */ 10787#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10788int fnord () __attribute__((visibility("default"))); 10789#endif 10790 10791int fnord () { return 42; } 10792int main () 10793{ 10794 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10795 int status = $lt_dlunknown; 10796 10797 if (self) 10798 { 10799 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10800 else 10801 { 10802 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10803 else puts (dlerror ()); 10804 } 10805 /* dlclose (self); */ 10806 } 10807 else 10808 puts (dlerror ()); 10809 10810 return status; 10811} 10812_LT_EOF 10813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10814 (eval $ac_link) 2>&5 10815 ac_status=$? 10816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10817 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10818 (./conftest; exit; ) >&5 2>/dev/null 10819 lt_status=$? 10820 case x$lt_status in 10821 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10822 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10823 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10824 esac 10825 else : 10826 # compilation failed 10827 lt_cv_dlopen_self=no 10828 fi 10829fi 10830rm -fr conftest* 10831 10832 10833fi 10834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10835$as_echo "$lt_cv_dlopen_self" >&6; } 10836 10837 if test "x$lt_cv_dlopen_self" = xyes; then 10838 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10840$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10841if ${lt_cv_dlopen_self_static+:} false; then : 10842 $as_echo_n "(cached) " >&6 10843else 10844 if test "$cross_compiling" = yes; then : 10845 lt_cv_dlopen_self_static=cross 10846else 10847 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10848 lt_status=$lt_dlunknown 10849 cat > conftest.$ac_ext <<_LT_EOF 10850#line $LINENO "configure" 10851#include "confdefs.h" 10852 10853#if HAVE_DLFCN_H 10854#include <dlfcn.h> 10855#endif 10856 10857#include <stdio.h> 10858 10859#ifdef RTLD_GLOBAL 10860# define LT_DLGLOBAL RTLD_GLOBAL 10861#else 10862# ifdef DL_GLOBAL 10863# define LT_DLGLOBAL DL_GLOBAL 10864# else 10865# define LT_DLGLOBAL 0 10866# endif 10867#endif 10868 10869/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10870 find out it does not work in some platform. */ 10871#ifndef LT_DLLAZY_OR_NOW 10872# ifdef RTLD_LAZY 10873# define LT_DLLAZY_OR_NOW RTLD_LAZY 10874# else 10875# ifdef DL_LAZY 10876# define LT_DLLAZY_OR_NOW DL_LAZY 10877# else 10878# ifdef RTLD_NOW 10879# define LT_DLLAZY_OR_NOW RTLD_NOW 10880# else 10881# ifdef DL_NOW 10882# define LT_DLLAZY_OR_NOW DL_NOW 10883# else 10884# define LT_DLLAZY_OR_NOW 0 10885# endif 10886# endif 10887# endif 10888# endif 10889#endif 10890 10891/* When -fvisbility=hidden is used, assume the code has been annotated 10892 correspondingly for the symbols needed. */ 10893#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10894int fnord () __attribute__((visibility("default"))); 10895#endif 10896 10897int fnord () { return 42; } 10898int main () 10899{ 10900 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10901 int status = $lt_dlunknown; 10902 10903 if (self) 10904 { 10905 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10906 else 10907 { 10908 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10909 else puts (dlerror ()); 10910 } 10911 /* dlclose (self); */ 10912 } 10913 else 10914 puts (dlerror ()); 10915 10916 return status; 10917} 10918_LT_EOF 10919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10920 (eval $ac_link) 2>&5 10921 ac_status=$? 10922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10923 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10924 (./conftest; exit; ) >&5 2>/dev/null 10925 lt_status=$? 10926 case x$lt_status in 10927 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10928 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10929 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10930 esac 10931 else : 10932 # compilation failed 10933 lt_cv_dlopen_self_static=no 10934 fi 10935fi 10936rm -fr conftest* 10937 10938 10939fi 10940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10941$as_echo "$lt_cv_dlopen_self_static" >&6; } 10942 fi 10943 10944 CPPFLAGS="$save_CPPFLAGS" 10945 LDFLAGS="$save_LDFLAGS" 10946 LIBS="$save_LIBS" 10947 ;; 10948 esac 10949 10950 case $lt_cv_dlopen_self in 10951 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10952 *) enable_dlopen_self=unknown ;; 10953 esac 10954 10955 case $lt_cv_dlopen_self_static in 10956 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10957 *) enable_dlopen_self_static=unknown ;; 10958 esac 10959fi 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977striplib= 10978old_striplib= 10979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10980$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10981if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10982 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10983 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10985$as_echo "yes" >&6; } 10986else 10987# FIXME - insert some real tests, host_os isn't really good enough 10988 case $host_os in 10989 darwin*) 10990 if test -n "$STRIP" ; then 10991 striplib="$STRIP -x" 10992 old_striplib="$STRIP -S" 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10994$as_echo "yes" >&6; } 10995 else 10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10997$as_echo "no" >&6; } 10998 fi 10999 ;; 11000 *) 11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11002$as_echo "no" >&6; } 11003 ;; 11004 esac 11005fi 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 # Report which library types will actually be built 11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11020$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11022$as_echo "$can_build_shared" >&6; } 11023 11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11025$as_echo_n "checking whether to build shared libraries... " >&6; } 11026 test "$can_build_shared" = "no" && enable_shared=no 11027 11028 # On AIX, shared libraries and static libraries use the same namespace, and 11029 # are all built from PIC. 11030 case $host_os in 11031 aix3*) 11032 test "$enable_shared" = yes && enable_static=no 11033 if test -n "$RANLIB"; then 11034 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11035 postinstall_cmds='$RANLIB $lib' 11036 fi 11037 ;; 11038 11039 aix[4-9]*) 11040 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11041 test "$enable_shared" = yes && enable_static=no 11042 fi 11043 ;; 11044 esac 11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11046$as_echo "$enable_shared" >&6; } 11047 11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11049$as_echo_n "checking whether to build static libraries... " >&6; } 11050 # Make sure either enable_shared or enable_static is yes. 11051 test "$enable_shared" = yes || enable_static=yes 11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11053$as_echo "$enable_static" >&6; } 11054 11055 11056 11057 11058fi 11059ac_ext=c 11060ac_cpp='$CPP $CPPFLAGS' 11061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11063ac_compiler_gnu=$ac_cv_c_compiler_gnu 11064 11065CC="$lt_save_CC" 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 ac_config_commands="$ac_config_commands libtool" 11080 11081 11082 11083 11084# Only expand once: 11085 11086 11087 11088 11089 CFLAG_VISIBILITY= 11090 HAVE_VISIBILITY=0 11091 if test -n "$GCC"; then 11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 11093$as_echo_n "checking whether the -Werror option is usable... " >&6; } 11094 if ${gl_cv_cc_vis_werror+:} false; then : 11095 $as_echo_n "(cached) " >&6 11096else 11097 11098 gl_save_CFLAGS="$CFLAGS" 11099 CFLAGS="$CFLAGS -Werror" 11100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11101/* end confdefs.h. */ 11102 11103int 11104main () 11105{ 11106 11107 ; 11108 return 0; 11109} 11110_ACEOF 11111if ac_fn_c_try_compile "$LINENO"; then : 11112 gl_cv_cc_vis_werror=yes 11113else 11114 gl_cv_cc_vis_werror=no 11115fi 11116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11117 CFLAGS="$gl_save_CFLAGS" 11118fi 11119 11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 11121$as_echo "$gl_cv_cc_vis_werror" >&6; } 11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 11123$as_echo_n "checking for simple visibility declarations... " >&6; } 11124 if ${gl_cv_cc_visibility+:} false; then : 11125 $as_echo_n "(cached) " >&6 11126else 11127 11128 gl_save_CFLAGS="$CFLAGS" 11129 CFLAGS="$CFLAGS -fvisibility=hidden" 11130 if test $gl_cv_cc_vis_werror = yes; then 11131 CFLAGS="$CFLAGS -Werror" 11132 fi 11133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11134/* end confdefs.h. */ 11135extern __attribute__((__visibility__("hidden"))) int hiddenvar; 11136 extern __attribute__((__visibility__("default"))) int exportedvar; 11137 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 11138 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 11139 void dummyfunc (void) {} 11140 11141int 11142main () 11143{ 11144 11145 ; 11146 return 0; 11147} 11148_ACEOF 11149if ac_fn_c_try_compile "$LINENO"; then : 11150 gl_cv_cc_visibility=yes 11151else 11152 gl_cv_cc_visibility=no 11153fi 11154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11155 CFLAGS="$gl_save_CFLAGS" 11156fi 11157 11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 11159$as_echo "$gl_cv_cc_visibility" >&6; } 11160 if test $gl_cv_cc_visibility = yes; then 11161 CFLAG_VISIBILITY="-fvisibility=hidden" 11162 HAVE_VISIBILITY=1 11163 fi 11164 fi 11165 11166 11167 11168cat >>confdefs.h <<_ACEOF 11169#define HAVE_VISIBILITY $HAVE_VISIBILITY 11170_ACEOF 11171 11172 11173 11174 11175case "$host_os" in 11176 linux* | solaris* | osf*) 11177 PLUGLIB="preloadable_libiconv.so" ;; 11178 *) 11179 PLUGLIB="" 11180esac 11181 11182 11183ac_config_files="$ac_config_files Makefile" 11184 11185cat >confcache <<\_ACEOF 11186# This file is a shell script that caches the results of configure 11187# tests run on this system so they can be shared between configure 11188# scripts and configure runs, see configure's option --config-cache. 11189# It is not useful on other systems. If it contains results you don't 11190# want to keep, you may remove or edit it. 11191# 11192# config.status only pays attention to the cache file if you give it 11193# the --recheck option to rerun configure. 11194# 11195# `ac_cv_env_foo' variables (set or unset) will be overridden when 11196# loading this file, other *unset* `ac_cv_foo' will be assigned the 11197# following values. 11198 11199_ACEOF 11200 11201# The following way of writing the cache mishandles newlines in values, 11202# but we know of no workaround that is simple, portable, and efficient. 11203# So, we kill variables containing newlines. 11204# Ultrix sh set writes to stderr and can't be redirected directly, 11205# and sets the high bit in the cache file unless we assign to the vars. 11206( 11207 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11208 eval ac_val=\$$ac_var 11209 case $ac_val in #( 11210 *${as_nl}*) 11211 case $ac_var in #( 11212 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11213$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11214 esac 11215 case $ac_var in #( 11216 _ | IFS | as_nl) ;; #( 11217 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11218 *) { eval $ac_var=; unset $ac_var;} ;; 11219 esac ;; 11220 esac 11221 done 11222 11223 (set) 2>&1 | 11224 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11225 *${as_nl}ac_space=\ *) 11226 # `set' does not quote correctly, so add quotes: double-quote 11227 # substitution turns \\\\ into \\, and sed turns \\ into \. 11228 sed -n \ 11229 "s/'/'\\\\''/g; 11230 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11231 ;; #( 11232 *) 11233 # `set' quotes correctly as required by POSIX, so do not add quotes. 11234 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11235 ;; 11236 esac | 11237 sort 11238) | 11239 sed ' 11240 /^ac_cv_env_/b end 11241 t clear 11242 :clear 11243 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11244 t end 11245 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11246 :end' >>confcache 11247if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11248 if test -w "$cache_file"; then 11249 if test "x$cache_file" != "x/dev/null"; then 11250 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11251$as_echo "$as_me: updating cache $cache_file" >&6;} 11252 if test ! -f "$cache_file" || test -h "$cache_file"; then 11253 cat confcache >"$cache_file" 11254 else 11255 case $cache_file in #( 11256 */* | ?:*) 11257 mv -f confcache "$cache_file"$$ && 11258 mv -f "$cache_file"$$ "$cache_file" ;; #( 11259 *) 11260 mv -f confcache "$cache_file" ;; 11261 esac 11262 fi 11263 fi 11264 else 11265 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11266$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11267 fi 11268fi 11269rm -f confcache 11270 11271test "x$prefix" = xNONE && prefix=$ac_default_prefix 11272# Let make expand exec_prefix. 11273test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11274 11275# Transform confdefs.h into DEFS. 11276# Protect against shell expansion while executing Makefile rules. 11277# Protect against Makefile macro expansion. 11278# 11279# If the first sed substitution is executed (which looks for macros that 11280# take arguments), then branch to the quote section. Otherwise, 11281# look for a macro that doesn't take arguments. 11282ac_script=' 11283:mline 11284/\\$/{ 11285 N 11286 s,\\\n,, 11287 b mline 11288} 11289t clear 11290:clear 11291s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 11292t quote 11293s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 11294t quote 11295b any 11296:quote 11297s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 11298s/\[/\\&/g 11299s/\]/\\&/g 11300s/\$/$$/g 11301H 11302:any 11303${ 11304 g 11305 s/^\n// 11306 s/\n/ /g 11307 p 11308} 11309' 11310DEFS=`sed -n "$ac_script" confdefs.h` 11311 11312 11313ac_libobjs= 11314ac_ltlibobjs= 11315U= 11316for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11317 # 1. Remove the extension, and $U if already installed. 11318 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11319 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11320 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11321 # will be set to the directory where LIBOBJS objects are built. 11322 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11323 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11324done 11325LIBOBJS=$ac_libobjs 11326 11327LTLIBOBJS=$ac_ltlibobjs 11328 11329 11330 11331: "${CONFIG_STATUS=./config.status}" 11332ac_write_fail=0 11333ac_clean_files_save=$ac_clean_files 11334ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11335{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11336$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11337as_write_fail=0 11338cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11339#! $SHELL 11340# Generated by $as_me. 11341# Run this file to recreate the current configuration. 11342# Compiler output produced by configure, useful for debugging 11343# configure, is in config.log if it exists. 11344 11345debug=false 11346ac_cs_recheck=false 11347ac_cs_silent=false 11348 11349SHELL=\${CONFIG_SHELL-$SHELL} 11350export SHELL 11351_ASEOF 11352cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11353## -------------------- ## 11354## M4sh Initialization. ## 11355## -------------------- ## 11356 11357# Be more Bourne compatible 11358DUALCASE=1; export DUALCASE # for MKS sh 11359if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11360 emulate sh 11361 NULLCMD=: 11362 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11363 # is contrary to our usage. Disable this feature. 11364 alias -g '${1+"$@"}'='"$@"' 11365 setopt NO_GLOB_SUBST 11366else 11367 case `(set -o) 2>/dev/null` in #( 11368 *posix*) : 11369 set -o posix ;; #( 11370 *) : 11371 ;; 11372esac 11373fi 11374 11375 11376as_nl=' 11377' 11378export as_nl 11379# Printing a long string crashes Solaris 7 /usr/bin/printf. 11380as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11381as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11382as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11383# Prefer a ksh shell builtin over an external printf program on Solaris, 11384# but without wasting forks for bash or zsh. 11385if test -z "$BASH_VERSION$ZSH_VERSION" \ 11386 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11387 as_echo='print -r --' 11388 as_echo_n='print -rn --' 11389elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11390 as_echo='printf %s\n' 11391 as_echo_n='printf %s' 11392else 11393 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11394 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11395 as_echo_n='/usr/ucb/echo -n' 11396 else 11397 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11398 as_echo_n_body='eval 11399 arg=$1; 11400 case $arg in #( 11401 *"$as_nl"*) 11402 expr "X$arg" : "X\\(.*\\)$as_nl"; 11403 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11404 esac; 11405 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11406 ' 11407 export as_echo_n_body 11408 as_echo_n='sh -c $as_echo_n_body as_echo' 11409 fi 11410 export as_echo_body 11411 as_echo='sh -c $as_echo_body as_echo' 11412fi 11413 11414# The user is always right. 11415if test "${PATH_SEPARATOR+set}" != set; then 11416 PATH_SEPARATOR=: 11417 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11418 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11419 PATH_SEPARATOR=';' 11420 } 11421fi 11422 11423 11424# IFS 11425# We need space, tab and new line, in precisely that order. Quoting is 11426# there to prevent editors from complaining about space-tab. 11427# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11428# splitting by setting IFS to empty value.) 11429IFS=" "" $as_nl" 11430 11431# Find who we are. Look in the path if we contain no directory separator. 11432as_myself= 11433case $0 in #(( 11434 *[\\/]* ) as_myself=$0 ;; 11435 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11436for as_dir in $PATH 11437do 11438 IFS=$as_save_IFS 11439 test -z "$as_dir" && as_dir=. 11440 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11441 done 11442IFS=$as_save_IFS 11443 11444 ;; 11445esac 11446# We did not find ourselves, most probably we were run as `sh COMMAND' 11447# in which case we are not to be found in the path. 11448if test "x$as_myself" = x; then 11449 as_myself=$0 11450fi 11451if test ! -f "$as_myself"; then 11452 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11453 exit 1 11454fi 11455 11456# Unset variables that we do not need and which cause bugs (e.g. in 11457# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11458# suppresses any "Segmentation fault" message there. '((' could 11459# trigger a bug in pdksh 5.2.14. 11460for as_var in BASH_ENV ENV MAIL MAILPATH 11461do eval test x\${$as_var+set} = xset \ 11462 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11463done 11464PS1='$ ' 11465PS2='> ' 11466PS4='+ ' 11467 11468# NLS nuisances. 11469LC_ALL=C 11470export LC_ALL 11471LANGUAGE=C 11472export LANGUAGE 11473 11474# CDPATH. 11475(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11476 11477 11478# as_fn_error STATUS ERROR [LINENO LOG_FD] 11479# ---------------------------------------- 11480# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11481# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11482# script with STATUS, using 1 if that was 0. 11483as_fn_error () 11484{ 11485 as_status=$1; test $as_status -eq 0 && as_status=1 11486 if test "$4"; then 11487 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11488 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11489 fi 11490 $as_echo "$as_me: error: $2" >&2 11491 as_fn_exit $as_status 11492} # as_fn_error 11493 11494 11495# as_fn_set_status STATUS 11496# ----------------------- 11497# Set $? to STATUS, without forking. 11498as_fn_set_status () 11499{ 11500 return $1 11501} # as_fn_set_status 11502 11503# as_fn_exit STATUS 11504# ----------------- 11505# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11506as_fn_exit () 11507{ 11508 set +e 11509 as_fn_set_status $1 11510 exit $1 11511} # as_fn_exit 11512 11513# as_fn_unset VAR 11514# --------------- 11515# Portably unset VAR. 11516as_fn_unset () 11517{ 11518 { eval $1=; unset $1;} 11519} 11520as_unset=as_fn_unset 11521# as_fn_append VAR VALUE 11522# ---------------------- 11523# Append the text in VALUE to the end of the definition contained in VAR. Take 11524# advantage of any shell optimizations that allow amortized linear growth over 11525# repeated appends, instead of the typical quadratic growth present in naive 11526# implementations. 11527if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11528 eval 'as_fn_append () 11529 { 11530 eval $1+=\$2 11531 }' 11532else 11533 as_fn_append () 11534 { 11535 eval $1=\$$1\$2 11536 } 11537fi # as_fn_append 11538 11539# as_fn_arith ARG... 11540# ------------------ 11541# Perform arithmetic evaluation on the ARGs, and store the result in the 11542# global $as_val. Take advantage of shells that can avoid forks. The arguments 11543# must be portable across $(()) and expr. 11544if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11545 eval 'as_fn_arith () 11546 { 11547 as_val=$(( $* )) 11548 }' 11549else 11550 as_fn_arith () 11551 { 11552 as_val=`expr "$@" || test $? -eq 1` 11553 } 11554fi # as_fn_arith 11555 11556 11557if expr a : '\(a\)' >/dev/null 2>&1 && 11558 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11559 as_expr=expr 11560else 11561 as_expr=false 11562fi 11563 11564if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11565 as_basename=basename 11566else 11567 as_basename=false 11568fi 11569 11570if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11571 as_dirname=dirname 11572else 11573 as_dirname=false 11574fi 11575 11576as_me=`$as_basename -- "$0" || 11577$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11578 X"$0" : 'X\(//\)$' \| \ 11579 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11580$as_echo X/"$0" | 11581 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11582 s//\1/ 11583 q 11584 } 11585 /^X\/\(\/\/\)$/{ 11586 s//\1/ 11587 q 11588 } 11589 /^X\/\(\/\).*/{ 11590 s//\1/ 11591 q 11592 } 11593 s/.*/./; q'` 11594 11595# Avoid depending upon Character Ranges. 11596as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11597as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11598as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11599as_cr_digits='0123456789' 11600as_cr_alnum=$as_cr_Letters$as_cr_digits 11601 11602ECHO_C= ECHO_N= ECHO_T= 11603case `echo -n x` in #((((( 11604-n*) 11605 case `echo 'xy\c'` in 11606 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11607 xy) ECHO_C='\c';; 11608 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11609 ECHO_T=' ';; 11610 esac;; 11611*) 11612 ECHO_N='-n';; 11613esac 11614 11615rm -f conf$$ conf$$.exe conf$$.file 11616if test -d conf$$.dir; then 11617 rm -f conf$$.dir/conf$$.file 11618else 11619 rm -f conf$$.dir 11620 mkdir conf$$.dir 2>/dev/null 11621fi 11622if (echo >conf$$.file) 2>/dev/null; then 11623 if ln -s conf$$.file conf$$ 2>/dev/null; then 11624 as_ln_s='ln -s' 11625 # ... but there are two gotchas: 11626 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11627 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11628 # In both cases, we have to default to `cp -p'. 11629 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11630 as_ln_s='cp -p' 11631 elif ln conf$$.file conf$$ 2>/dev/null; then 11632 as_ln_s=ln 11633 else 11634 as_ln_s='cp -p' 11635 fi 11636else 11637 as_ln_s='cp -p' 11638fi 11639rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11640rmdir conf$$.dir 2>/dev/null 11641 11642 11643# as_fn_mkdir_p 11644# ------------- 11645# Create "$as_dir" as a directory, including parents if necessary. 11646as_fn_mkdir_p () 11647{ 11648 11649 case $as_dir in #( 11650 -*) as_dir=./$as_dir;; 11651 esac 11652 test -d "$as_dir" || eval $as_mkdir_p || { 11653 as_dirs= 11654 while :; do 11655 case $as_dir in #( 11656 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11657 *) as_qdir=$as_dir;; 11658 esac 11659 as_dirs="'$as_qdir' $as_dirs" 11660 as_dir=`$as_dirname -- "$as_dir" || 11661$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11662 X"$as_dir" : 'X\(//\)[^/]' \| \ 11663 X"$as_dir" : 'X\(//\)$' \| \ 11664 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11665$as_echo X"$as_dir" | 11666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11667 s//\1/ 11668 q 11669 } 11670 /^X\(\/\/\)[^/].*/{ 11671 s//\1/ 11672 q 11673 } 11674 /^X\(\/\/\)$/{ 11675 s//\1/ 11676 q 11677 } 11678 /^X\(\/\).*/{ 11679 s//\1/ 11680 q 11681 } 11682 s/.*/./; q'` 11683 test -d "$as_dir" && break 11684 done 11685 test -z "$as_dirs" || eval "mkdir $as_dirs" 11686 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11687 11688 11689} # as_fn_mkdir_p 11690if mkdir -p . 2>/dev/null; then 11691 as_mkdir_p='mkdir -p "$as_dir"' 11692else 11693 test -d ./-p && rmdir ./-p 11694 as_mkdir_p=false 11695fi 11696 11697if test -x / >/dev/null 2>&1; then 11698 as_test_x='test -x' 11699else 11700 if ls -dL / >/dev/null 2>&1; then 11701 as_ls_L_option=L 11702 else 11703 as_ls_L_option= 11704 fi 11705 as_test_x=' 11706 eval sh -c '\'' 11707 if test -d "$1"; then 11708 test -d "$1/."; 11709 else 11710 case $1 in #( 11711 -*)set "./$1";; 11712 esac; 11713 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11714 ???[sx]*):;;*)false;;esac;fi 11715 '\'' sh 11716 ' 11717fi 11718as_executable_p=$as_test_x 11719 11720# Sed expression to map a string onto a valid CPP name. 11721as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11722 11723# Sed expression to map a string onto a valid variable name. 11724as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11725 11726 11727exec 6>&1 11728## ----------------------------------- ## 11729## Main body of $CONFIG_STATUS script. ## 11730## ----------------------------------- ## 11731_ASEOF 11732test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11733 11734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11735# Save the log message, to keep $0 and so on meaningful, and to 11736# report actual input values of CONFIG_FILES etc. instead of their 11737# values after options handling. 11738ac_log=" 11739This file was extended by $as_me, which was 11740generated by GNU Autoconf 2.68. Invocation command line was 11741 11742 CONFIG_FILES = $CONFIG_FILES 11743 CONFIG_HEADERS = $CONFIG_HEADERS 11744 CONFIG_LINKS = $CONFIG_LINKS 11745 CONFIG_COMMANDS = $CONFIG_COMMANDS 11746 $ $0 $@ 11747 11748on `(hostname || uname -n) 2>/dev/null | sed 1q` 11749" 11750 11751_ACEOF 11752 11753case $ac_config_files in *" 11754"*) set x $ac_config_files; shift; ac_config_files=$*;; 11755esac 11756 11757 11758 11759cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11760# Files that config.status was made for. 11761config_files="$ac_config_files" 11762config_commands="$ac_config_commands" 11763 11764_ACEOF 11765 11766cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11767ac_cs_usage="\ 11768\`$as_me' instantiates files and other configuration actions 11769from templates according to the current configuration. Unless the files 11770and actions are specified as TAGs, all are instantiated by default. 11771 11772Usage: $0 [OPTION]... [TAG]... 11773 11774 -h, --help print this help, then exit 11775 -V, --version print version number and configuration settings, then exit 11776 --config print configuration, then exit 11777 -q, --quiet, --silent 11778 do not print progress messages 11779 -d, --debug don't remove temporary files 11780 --recheck update $as_me by reconfiguring in the same conditions 11781 --file=FILE[:TEMPLATE] 11782 instantiate the configuration file FILE 11783 11784Configuration files: 11785$config_files 11786 11787Configuration commands: 11788$config_commands 11789 11790Report bugs to the package provider." 11791 11792_ACEOF 11793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11794ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11795ac_cs_version="\\ 11796config.status 11797configured by $0, generated by GNU Autoconf 2.68, 11798 with options \\"\$ac_cs_config\\" 11799 11800Copyright (C) 2010 Free Software Foundation, Inc. 11801This config.status script is free software; the Free Software Foundation 11802gives unlimited permission to copy, distribute and modify it." 11803 11804ac_pwd='$ac_pwd' 11805srcdir='$srcdir' 11806INSTALL='$INSTALL' 11807AWK='$AWK' 11808test -n "\$AWK" || AWK=awk 11809_ACEOF 11810 11811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11812# The default lists apply if the user does not specify any file. 11813ac_need_defaults=: 11814while test $# != 0 11815do 11816 case $1 in 11817 --*=?*) 11818 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11819 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11820 ac_shift=: 11821 ;; 11822 --*=) 11823 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11824 ac_optarg= 11825 ac_shift=: 11826 ;; 11827 *) 11828 ac_option=$1 11829 ac_optarg=$2 11830 ac_shift=shift 11831 ;; 11832 esac 11833 11834 case $ac_option in 11835 # Handling of the options. 11836 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11837 ac_cs_recheck=: ;; 11838 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11839 $as_echo "$ac_cs_version"; exit ;; 11840 --config | --confi | --conf | --con | --co | --c ) 11841 $as_echo "$ac_cs_config"; exit ;; 11842 --debug | --debu | --deb | --de | --d | -d ) 11843 debug=: ;; 11844 --file | --fil | --fi | --f ) 11845 $ac_shift 11846 case $ac_optarg in 11847 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11848 '') as_fn_error $? "missing file argument" ;; 11849 esac 11850 as_fn_append CONFIG_FILES " '$ac_optarg'" 11851 ac_need_defaults=false;; 11852 --he | --h | --help | --hel | -h ) 11853 $as_echo "$ac_cs_usage"; exit ;; 11854 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11855 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11856 ac_cs_silent=: ;; 11857 11858 # This is an error. 11859 -*) as_fn_error $? "unrecognized option: \`$1' 11860Try \`$0 --help' for more information." ;; 11861 11862 *) as_fn_append ac_config_targets " $1" 11863 ac_need_defaults=false ;; 11864 11865 esac 11866 shift 11867done 11868 11869ac_configure_extra_args= 11870 11871if $ac_cs_silent; then 11872 exec 6>/dev/null 11873 ac_configure_extra_args="$ac_configure_extra_args --silent" 11874fi 11875 11876_ACEOF 11877cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11878if \$ac_cs_recheck; then 11879 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11880 shift 11881 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11882 CONFIG_SHELL='$SHELL' 11883 export CONFIG_SHELL 11884 exec "\$@" 11885fi 11886 11887_ACEOF 11888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11889exec 5>>config.log 11890{ 11891 echo 11892 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11893## Running $as_me. ## 11894_ASBOX 11895 $as_echo "$ac_log" 11896} >&5 11897 11898_ACEOF 11899cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11900# 11901# INIT-COMMANDS 11902# 11903 11904 11905# The HP-UX ksh and POSIX shell print the target directory to stdout 11906# if CDPATH is set. 11907(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11908 11909sed_quote_subst='$sed_quote_subst' 11910double_quote_subst='$double_quote_subst' 11911delay_variable_subst='$delay_variable_subst' 11912macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 11913macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 11914AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 11915DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 11916OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 11917enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 11918enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 11919pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 11920enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 11921SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 11922ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 11923host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 11924host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 11925host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 11926build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 11927build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 11928build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 11929SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 11930Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 11931GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 11932EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 11933FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 11934LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 11935NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 11936LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 11937max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 11938ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 11939exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 11940lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 11941lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 11942lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 11943lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 11944lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 11945reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 11946reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 11947deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 11948file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 11949file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 11950want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 11951sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 11952AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 11953AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 11954archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 11955STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 11956RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 11957old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 11958old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 11959old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 11960lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 11961CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 11962CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 11963compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 11964GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 11965lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 11966lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 11967lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 11968lt_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"`' 11969nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 11970lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 11971objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 11972MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 11973lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 11974lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 11975lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 11976lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 11977lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 11978need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 11979MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 11980DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 11981NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 11982LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 11983OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 11984OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 11985libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 11986shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 11987extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 11988archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 11989enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 11990export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 11991whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 11992compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 11993old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 11994old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 11995archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 11996archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 11997module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 11998module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 11999with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 12000allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 12001no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 12002hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 12003hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 12004hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 12005hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 12006hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 12007hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 12008hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 12009hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 12010inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 12011link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 12012always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 12013export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 12014exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 12015include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 12016prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 12017postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 12018file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 12019variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 12020need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 12021need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 12022version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 12023runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 12024shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 12025shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 12026libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 12027library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 12028soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 12029install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 12030postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12031postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12032finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 12033finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 12034hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 12035sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 12036sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 12037hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 12038enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 12039enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 12040enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 12041old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 12042striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 12043 12044LTCC='$LTCC' 12045LTCFLAGS='$LTCFLAGS' 12046compiler='$compiler_DEFAULT' 12047 12048# A function that is used when there is no print builtin or printf. 12049func_fallback_echo () 12050{ 12051 eval 'cat <<_LTECHO_EOF 12052\$1 12053_LTECHO_EOF' 12054} 12055 12056# Quote evaled strings. 12057for var in AS \ 12058DLLTOOL \ 12059OBJDUMP \ 12060SHELL \ 12061ECHO \ 12062SED \ 12063GREP \ 12064EGREP \ 12065FGREP \ 12066LD \ 12067NM \ 12068LN_S \ 12069lt_SP2NL \ 12070lt_NL2SP \ 12071reload_flag \ 12072deplibs_check_method \ 12073file_magic_cmd \ 12074file_magic_glob \ 12075want_nocaseglob \ 12076sharedlib_from_linklib_cmd \ 12077AR \ 12078AR_FLAGS \ 12079archiver_list_spec \ 12080STRIP \ 12081RANLIB \ 12082CC \ 12083CFLAGS \ 12084compiler \ 12085lt_cv_sys_global_symbol_pipe \ 12086lt_cv_sys_global_symbol_to_cdecl \ 12087lt_cv_sys_global_symbol_to_c_name_address \ 12088lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12089nm_file_list_spec \ 12090lt_prog_compiler_no_builtin_flag \ 12091lt_prog_compiler_pic \ 12092lt_prog_compiler_wl \ 12093lt_prog_compiler_static \ 12094lt_cv_prog_compiler_c_o \ 12095need_locks \ 12096MANIFEST_TOOL \ 12097DSYMUTIL \ 12098NMEDIT \ 12099LIPO \ 12100OTOOL \ 12101OTOOL64 \ 12102shrext_cmds \ 12103export_dynamic_flag_spec \ 12104whole_archive_flag_spec \ 12105compiler_needs_object \ 12106with_gnu_ld \ 12107allow_undefined_flag \ 12108no_undefined_flag \ 12109hardcode_libdir_flag_spec \ 12110hardcode_libdir_flag_spec_ld \ 12111hardcode_libdir_separator \ 12112exclude_expsyms \ 12113include_expsyms \ 12114file_list_spec \ 12115variables_saved_for_relink \ 12116libname_spec \ 12117library_names_spec \ 12118soname_spec \ 12119install_override_mode \ 12120finish_eval \ 12121old_striplib \ 12122striplib; do 12123 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12124 *[\\\\\\\`\\"\\\$]*) 12125 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12126 ;; 12127 *) 12128 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12129 ;; 12130 esac 12131done 12132 12133# Double-quote double-evaled strings. 12134for var in reload_cmds \ 12135old_postinstall_cmds \ 12136old_postuninstall_cmds \ 12137old_archive_cmds \ 12138extract_expsyms_cmds \ 12139old_archive_from_new_cmds \ 12140old_archive_from_expsyms_cmds \ 12141archive_cmds \ 12142archive_expsym_cmds \ 12143module_cmds \ 12144module_expsym_cmds \ 12145export_symbols_cmds \ 12146prelink_cmds \ 12147postlink_cmds \ 12148postinstall_cmds \ 12149postuninstall_cmds \ 12150finish_cmds \ 12151sys_lib_search_path_spec \ 12152sys_lib_dlsearch_path_spec; do 12153 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12154 *[\\\\\\\`\\"\\\$]*) 12155 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12156 ;; 12157 *) 12158 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12159 ;; 12160 esac 12161done 12162 12163ac_aux_dir='$ac_aux_dir' 12164xsi_shell='$xsi_shell' 12165lt_shell_append='$lt_shell_append' 12166 12167# See if we are running on zsh, and set the options which allow our 12168# commands through without removal of \ escapes INIT. 12169if test -n "\${ZSH_VERSION+set}" ; then 12170 setopt NO_GLOB_SUBST 12171fi 12172 12173 12174 PACKAGE='$PACKAGE' 12175 VERSION='$VERSION' 12176 TIMESTAMP='$TIMESTAMP' 12177 RM='$RM' 12178 ofile='$ofile' 12179 12180 12181 12182 12183_ACEOF 12184 12185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12186 12187# Handling of arguments. 12188for ac_config_target in $ac_config_targets 12189do 12190 case $ac_config_target in 12191 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12192 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12193 12194 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12195 esac 12196done 12197 12198 12199# If the user did not use the arguments to specify the items to instantiate, 12200# then the envvar interface is used. Set only those that are not. 12201# We use the long form for the default assignment because of an extremely 12202# bizarre bug on SunOS 4.1.3. 12203if $ac_need_defaults; then 12204 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12205 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12206fi 12207 12208# Have a temporary directory for convenience. Make it in the build tree 12209# simply because there is no reason against having it here, and in addition, 12210# creating and moving files from /tmp can sometimes cause problems. 12211# Hook for its removal unless debugging. 12212# Note that there is a small window in which the directory will not be cleaned: 12213# after its creation but before its name has been assigned to `$tmp'. 12214$debug || 12215{ 12216 tmp= ac_tmp= 12217 trap 'exit_status=$? 12218 : "${ac_tmp:=$tmp}" 12219 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12220' 0 12221 trap 'as_fn_exit 1' 1 2 13 15 12222} 12223# Create a (secure) tmp directory for tmp files. 12224 12225{ 12226 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12227 test -d "$tmp" 12228} || 12229{ 12230 tmp=./conf$$-$RANDOM 12231 (umask 077 && mkdir "$tmp") 12232} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 12233ac_tmp=$tmp 12234 12235# Set up the scripts for CONFIG_FILES section. 12236# No need to generate them if there are no CONFIG_FILES. 12237# This happens for instance with `./config.status config.h'. 12238if test -n "$CONFIG_FILES"; then 12239 12240 12241ac_cr=`echo X | tr X '\015'` 12242# On cygwin, bash can eat \r inside `` if the user requested igncr. 12243# But we know of no other shell where ac_cr would be empty at this 12244# point, so we can use a bashism as a fallback. 12245if test "x$ac_cr" = x; then 12246 eval ac_cr=\$\'\\r\' 12247fi 12248ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12249if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12250 ac_cs_awk_cr='\\r' 12251else 12252 ac_cs_awk_cr=$ac_cr 12253fi 12254 12255echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 12256_ACEOF 12257 12258 12259{ 12260 echo "cat >conf$$subs.awk <<_ACEOF" && 12261 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12262 echo "_ACEOF" 12263} >conf$$subs.sh || 12264 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12265ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 12266ac_delim='%!_!# ' 12267for ac_last_try in false false false false false :; do 12268 . ./conf$$subs.sh || 12269 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12270 12271 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12272 if test $ac_delim_n = $ac_delim_num; then 12273 break 12274 elif $ac_last_try; then 12275 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12276 else 12277 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12278 fi 12279done 12280rm -f conf$$subs.sh 12281 12282cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12283cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12284_ACEOF 12285sed -n ' 12286h 12287s/^/S["/; s/!.*/"]=/ 12288p 12289g 12290s/^[^!]*!// 12291:repl 12292t repl 12293s/'"$ac_delim"'$// 12294t delim 12295:nl 12296h 12297s/\(.\{148\}\)..*/\1/ 12298t more1 12299s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12300p 12301n 12302b repl 12303:more1 12304s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12305p 12306g 12307s/.\{148\}// 12308t nl 12309:delim 12310h 12311s/\(.\{148\}\)..*/\1/ 12312t more2 12313s/["\\]/\\&/g; s/^/"/; s/$/"/ 12314p 12315b 12316:more2 12317s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12318p 12319g 12320s/.\{148\}// 12321t delim 12322' <conf$$subs.awk | sed ' 12323/^[^""]/{ 12324 N 12325 s/\n// 12326} 12327' >>$CONFIG_STATUS || ac_write_fail=1 12328rm -f conf$$subs.awk 12329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12330_ACAWK 12331cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12332 for (key in S) S_is_set[key] = 1 12333 FS = "" 12334 12335} 12336{ 12337 line = $ 0 12338 nfields = split(line, field, "@") 12339 substed = 0 12340 len = length(field[1]) 12341 for (i = 2; i < nfields; i++) { 12342 key = field[i] 12343 keylen = length(key) 12344 if (S_is_set[key]) { 12345 value = S[key] 12346 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12347 len += length(value) + length(field[++i]) 12348 substed = 1 12349 } else 12350 len += 1 + keylen 12351 } 12352 12353 print line 12354} 12355 12356_ACAWK 12357_ACEOF 12358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12359if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12360 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12361else 12362 cat 12363fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12364 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12365_ACEOF 12366 12367# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12368# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12369# trailing colons and then remove the whole line if VPATH becomes empty 12370# (actually we leave an empty line to preserve line numbers). 12371if test "x$srcdir" = x.; then 12372 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12373h 12374s/// 12375s/^/:/ 12376s/[ ]*$/:/ 12377s/:\$(srcdir):/:/g 12378s/:\${srcdir}:/:/g 12379s/:@srcdir@:/:/g 12380s/^:*// 12381s/:*$// 12382x 12383s/\(=[ ]*\).*/\1/ 12384G 12385s/\n// 12386s/^[^=]*=[ ]*$// 12387}' 12388fi 12389 12390cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12391fi # test -n "$CONFIG_FILES" 12392 12393 12394eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 12395shift 12396for ac_tag 12397do 12398 case $ac_tag in 12399 :[FHLC]) ac_mode=$ac_tag; continue;; 12400 esac 12401 case $ac_mode$ac_tag in 12402 :[FHL]*:*);; 12403 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12404 :[FH]-) ac_tag=-:-;; 12405 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12406 esac 12407 ac_save_IFS=$IFS 12408 IFS=: 12409 set x $ac_tag 12410 IFS=$ac_save_IFS 12411 shift 12412 ac_file=$1 12413 shift 12414 12415 case $ac_mode in 12416 :L) ac_source=$1;; 12417 :[FH]) 12418 ac_file_inputs= 12419 for ac_f 12420 do 12421 case $ac_f in 12422 -) ac_f="$ac_tmp/stdin";; 12423 *) # Look for the file first in the build tree, then in the source tree 12424 # (if the path is not absolute). The absolute path cannot be DOS-style, 12425 # because $ac_f cannot contain `:'. 12426 test -f "$ac_f" || 12427 case $ac_f in 12428 [\\/$]*) false;; 12429 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12430 esac || 12431 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12432 esac 12433 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12434 as_fn_append ac_file_inputs " '$ac_f'" 12435 done 12436 12437 # Let's still pretend it is `configure' which instantiates (i.e., don't 12438 # use $as_me), people would be surprised to read: 12439 # /* config.h. Generated by config.status. */ 12440 configure_input='Generated from '` 12441 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12442 `' by configure.' 12443 if test x"$ac_file" != x-; then 12444 configure_input="$ac_file. $configure_input" 12445 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12446$as_echo "$as_me: creating $ac_file" >&6;} 12447 fi 12448 # Neutralize special characters interpreted by sed in replacement strings. 12449 case $configure_input in #( 12450 *\&* | *\|* | *\\* ) 12451 ac_sed_conf_input=`$as_echo "$configure_input" | 12452 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12453 *) ac_sed_conf_input=$configure_input;; 12454 esac 12455 12456 case $ac_tag in 12457 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12458 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12459 esac 12460 ;; 12461 esac 12462 12463 ac_dir=`$as_dirname -- "$ac_file" || 12464$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12465 X"$ac_file" : 'X\(//\)[^/]' \| \ 12466 X"$ac_file" : 'X\(//\)$' \| \ 12467 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12468$as_echo X"$ac_file" | 12469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12470 s//\1/ 12471 q 12472 } 12473 /^X\(\/\/\)[^/].*/{ 12474 s//\1/ 12475 q 12476 } 12477 /^X\(\/\/\)$/{ 12478 s//\1/ 12479 q 12480 } 12481 /^X\(\/\).*/{ 12482 s//\1/ 12483 q 12484 } 12485 s/.*/./; q'` 12486 as_dir="$ac_dir"; as_fn_mkdir_p 12487 ac_builddir=. 12488 12489case "$ac_dir" in 12490.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12491*) 12492 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12493 # A ".." for each directory in $ac_dir_suffix. 12494 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12495 case $ac_top_builddir_sub in 12496 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12497 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12498 esac ;; 12499esac 12500ac_abs_top_builddir=$ac_pwd 12501ac_abs_builddir=$ac_pwd$ac_dir_suffix 12502# for backward compatibility: 12503ac_top_builddir=$ac_top_build_prefix 12504 12505case $srcdir in 12506 .) # We are building in place. 12507 ac_srcdir=. 12508 ac_top_srcdir=$ac_top_builddir_sub 12509 ac_abs_top_srcdir=$ac_pwd ;; 12510 [\\/]* | ?:[\\/]* ) # Absolute name. 12511 ac_srcdir=$srcdir$ac_dir_suffix; 12512 ac_top_srcdir=$srcdir 12513 ac_abs_top_srcdir=$srcdir ;; 12514 *) # Relative name. 12515 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12516 ac_top_srcdir=$ac_top_build_prefix$srcdir 12517 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12518esac 12519ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12520 12521 12522 case $ac_mode in 12523 :F) 12524 # 12525 # CONFIG_FILE 12526 # 12527 12528 case $INSTALL in 12529 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12530 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12531 esac 12532_ACEOF 12533 12534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12535# If the template does not know about datarootdir, expand it. 12536# FIXME: This hack should be removed a few years after 2.60. 12537ac_datarootdir_hack=; ac_datarootdir_seen= 12538ac_sed_dataroot=' 12539/datarootdir/ { 12540 p 12541 q 12542} 12543/@datadir@/p 12544/@docdir@/p 12545/@infodir@/p 12546/@localedir@/p 12547/@mandir@/p' 12548case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12549*datarootdir*) ac_datarootdir_seen=yes;; 12550*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12552$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12553_ACEOF 12554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12555 ac_datarootdir_hack=' 12556 s&@datadir@&$datadir&g 12557 s&@docdir@&$docdir&g 12558 s&@infodir@&$infodir&g 12559 s&@localedir@&$localedir&g 12560 s&@mandir@&$mandir&g 12561 s&\\\${datarootdir}&$datarootdir&g' ;; 12562esac 12563_ACEOF 12564 12565# Neutralize VPATH when `$srcdir' = `.'. 12566# Shell code in configure.ac might set extrasub. 12567# FIXME: do we really want to maintain this feature? 12568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12569ac_sed_extra="$ac_vpsub 12570$extrasub 12571_ACEOF 12572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12573:t 12574/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12575s|@configure_input@|$ac_sed_conf_input|;t t 12576s&@top_builddir@&$ac_top_builddir_sub&;t t 12577s&@top_build_prefix@&$ac_top_build_prefix&;t t 12578s&@srcdir@&$ac_srcdir&;t t 12579s&@abs_srcdir@&$ac_abs_srcdir&;t t 12580s&@top_srcdir@&$ac_top_srcdir&;t t 12581s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12582s&@builddir@&$ac_builddir&;t t 12583s&@abs_builddir@&$ac_abs_builddir&;t t 12584s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12585s&@INSTALL@&$ac_INSTALL&;t t 12586$ac_datarootdir_hack 12587" 12588eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12589 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12590 12591test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12592 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12593 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12594 "$ac_tmp/out"`; test -z "$ac_out"; } && 12595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12596which seems to be undefined. Please make sure it is defined" >&5 12597$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12598which seems to be undefined. Please make sure it is defined" >&2;} 12599 12600 rm -f "$ac_tmp/stdin" 12601 case $ac_file in 12602 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12603 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12604 esac \ 12605 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12606 ;; 12607 12608 12609 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12610$as_echo "$as_me: executing $ac_file commands" >&6;} 12611 ;; 12612 esac 12613 12614 12615 case $ac_file$ac_mode in 12616 "libtool":C) 12617 12618 # See if we are running on zsh, and set the options which allow our 12619 # commands through without removal of \ escapes. 12620 if test -n "${ZSH_VERSION+set}" ; then 12621 setopt NO_GLOB_SUBST 12622 fi 12623 12624 cfgfile="${ofile}T" 12625 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 12626 $RM "$cfgfile" 12627 12628 cat <<_LT_EOF >> "$cfgfile" 12629#! $SHELL 12630 12631# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 12632# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 12633# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12634# NOTE: Changes made to this file will be lost: look at ltmain.sh. 12635# 12636# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 12637# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 12638# Inc. 12639# Written by Gordon Matzigkeit, 1996 12640# 12641# This file is part of GNU Libtool. 12642# 12643# GNU Libtool is free software; you can redistribute it and/or 12644# modify it under the terms of the GNU General Public License as 12645# published by the Free Software Foundation; either version 2 of 12646# the License, or (at your option) any later version. 12647# 12648# As a special exception to the GNU General Public License, 12649# if you distribute this file as part of a program or library that 12650# is built using GNU Libtool, you may include this file under the 12651# same distribution terms that you use for the rest of that program. 12652# 12653# GNU Libtool is distributed in the hope that it will be useful, 12654# but WITHOUT ANY WARRANTY; without even the implied warranty of 12655# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12656# GNU General Public License for more details. 12657# 12658# You should have received a copy of the GNU General Public License 12659# along with GNU Libtool; see the file COPYING. If not, a copy 12660# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 12661# obtained by writing to the Free Software Foundation, Inc., 12662# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 12663 12664 12665# The names of the tagged configurations supported by this script. 12666available_tags="" 12667 12668# ### BEGIN LIBTOOL CONFIG 12669 12670# Which release of libtool.m4 was used? 12671macro_version=$macro_version 12672macro_revision=$macro_revision 12673 12674# Assembler program. 12675AS=$lt_AS 12676 12677# DLL creation program. 12678DLLTOOL=$lt_DLLTOOL 12679 12680# Object dumper program. 12681OBJDUMP=$lt_OBJDUMP 12682 12683# Whether or not to build shared libraries. 12684build_libtool_libs=$enable_shared 12685 12686# Whether or not to build static libraries. 12687build_old_libs=$enable_static 12688 12689# What type of objects to build. 12690pic_mode=$pic_mode 12691 12692# Whether or not to optimize for fast installation. 12693fast_install=$enable_fast_install 12694 12695# Shell to use when invoking shell scripts. 12696SHELL=$lt_SHELL 12697 12698# An echo program that protects backslashes. 12699ECHO=$lt_ECHO 12700 12701# The host system. 12702host_alias=$host_alias 12703host=$host 12704host_os=$host_os 12705 12706# The build system. 12707build_alias=$build_alias 12708build=$build 12709build_os=$build_os 12710 12711# A sed program that does not truncate output. 12712SED=$lt_SED 12713 12714# Sed that helps us avoid accidentally triggering echo(1) options like -n. 12715Xsed="\$SED -e 1s/^X//" 12716 12717# A grep program that handles long lines. 12718GREP=$lt_GREP 12719 12720# An ERE matcher. 12721EGREP=$lt_EGREP 12722 12723# A literal string matcher. 12724FGREP=$lt_FGREP 12725 12726# A BSD- or MS-compatible name lister. 12727NM=$lt_NM 12728 12729# Whether we need soft or hard links. 12730LN_S=$lt_LN_S 12731 12732# What is the maximum length of a command? 12733max_cmd_len=$max_cmd_len 12734 12735# Object file suffix (normally "o"). 12736objext=$ac_objext 12737 12738# Executable file suffix (normally ""). 12739exeext=$exeext 12740 12741# whether the shell understands "unset". 12742lt_unset=$lt_unset 12743 12744# turn spaces into newlines. 12745SP2NL=$lt_lt_SP2NL 12746 12747# turn newlines into spaces. 12748NL2SP=$lt_lt_NL2SP 12749 12750# convert \$build file names to \$host format. 12751to_host_file_cmd=$lt_cv_to_host_file_cmd 12752 12753# convert \$build files to toolchain format. 12754to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12755 12756# Method to check whether dependent libraries are shared objects. 12757deplibs_check_method=$lt_deplibs_check_method 12758 12759# Command to use when deplibs_check_method = "file_magic". 12760file_magic_cmd=$lt_file_magic_cmd 12761 12762# How to find potential files when deplibs_check_method = "file_magic". 12763file_magic_glob=$lt_file_magic_glob 12764 12765# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 12766want_nocaseglob=$lt_want_nocaseglob 12767 12768# Command to associate shared and link libraries. 12769sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 12770 12771# The archiver. 12772AR=$lt_AR 12773 12774# Flags to create an archive. 12775AR_FLAGS=$lt_AR_FLAGS 12776 12777# How to feed a file listing to the archiver. 12778archiver_list_spec=$lt_archiver_list_spec 12779 12780# A symbol stripping program. 12781STRIP=$lt_STRIP 12782 12783# Commands used to install an old-style archive. 12784RANLIB=$lt_RANLIB 12785old_postinstall_cmds=$lt_old_postinstall_cmds 12786old_postuninstall_cmds=$lt_old_postuninstall_cmds 12787 12788# Whether to use a lock for old archive extraction. 12789lock_old_archive_extraction=$lock_old_archive_extraction 12790 12791# A C compiler. 12792LTCC=$lt_CC 12793 12794# LTCC compiler flags. 12795LTCFLAGS=$lt_CFLAGS 12796 12797# Take the output of nm and produce a listing of raw symbols and C names. 12798global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12799 12800# Transform the output of nm in a proper C declaration. 12801global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12802 12803# Transform the output of nm in a C name address pair. 12804global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12805 12806# Transform the output of nm in a C name address pair when lib prefix is needed. 12807global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 12808 12809# Specify filename containing input files for \$NM. 12810nm_file_list_spec=$lt_nm_file_list_spec 12811 12812# The root where to search for dependent libraries,and in which our libraries should be installed. 12813lt_sysroot=$lt_sysroot 12814 12815# The name of the directory that contains temporary libtool files. 12816objdir=$objdir 12817 12818# Used to examine libraries when file_magic_cmd begins with "file". 12819MAGIC_CMD=$MAGIC_CMD 12820 12821# Must we lock files when doing compilation? 12822need_locks=$lt_need_locks 12823 12824# Manifest tool. 12825MANIFEST_TOOL=$lt_MANIFEST_TOOL 12826 12827# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 12828DSYMUTIL=$lt_DSYMUTIL 12829 12830# Tool to change global to local symbols on Mac OS X. 12831NMEDIT=$lt_NMEDIT 12832 12833# Tool to manipulate fat objects and archives on Mac OS X. 12834LIPO=$lt_LIPO 12835 12836# ldd/readelf like tool for Mach-O binaries on Mac OS X. 12837OTOOL=$lt_OTOOL 12838 12839# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 12840OTOOL64=$lt_OTOOL64 12841 12842# Old archive suffix (normally "a"). 12843libext=$libext 12844 12845# Shared library suffix (normally ".so"). 12846shrext_cmds=$lt_shrext_cmds 12847 12848# The commands to extract the exported symbol list from a shared archive. 12849extract_expsyms_cmds=$lt_extract_expsyms_cmds 12850 12851# Variables whose values should be saved in libtool wrapper scripts and 12852# restored at link time. 12853variables_saved_for_relink=$lt_variables_saved_for_relink 12854 12855# Do we need the "lib" prefix for modules? 12856need_lib_prefix=$need_lib_prefix 12857 12858# Do we need a version for libraries? 12859need_version=$need_version 12860 12861# Library versioning type. 12862version_type=$version_type 12863 12864# Shared library runtime path variable. 12865runpath_var=$runpath_var 12866 12867# Shared library path variable. 12868shlibpath_var=$shlibpath_var 12869 12870# Is shlibpath searched before the hard-coded library search path? 12871shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12872 12873# Format of library name prefix. 12874libname_spec=$lt_libname_spec 12875 12876# List of archive names. First name is the real one, the rest are links. 12877# The last name is the one that the linker finds with -lNAME 12878library_names_spec=$lt_library_names_spec 12879 12880# The coded name of the library, if different from the real name. 12881soname_spec=$lt_soname_spec 12882 12883# Permission mode override for installation of shared libraries. 12884install_override_mode=$lt_install_override_mode 12885 12886# Command to use after installation of a shared archive. 12887postinstall_cmds=$lt_postinstall_cmds 12888 12889# Command to use after uninstallation of a shared archive. 12890postuninstall_cmds=$lt_postuninstall_cmds 12891 12892# Commands used to finish a libtool library installation in a directory. 12893finish_cmds=$lt_finish_cmds 12894 12895# As "finish_cmds", except a single script fragment to be evaled but 12896# not shown. 12897finish_eval=$lt_finish_eval 12898 12899# Whether we should hardcode library paths into libraries. 12900hardcode_into_libs=$hardcode_into_libs 12901 12902# Compile-time system search path for libraries. 12903sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12904 12905# Run-time system search path for libraries. 12906sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12907 12908# Whether dlopen is supported. 12909dlopen_support=$enable_dlopen 12910 12911# Whether dlopen of programs is supported. 12912dlopen_self=$enable_dlopen_self 12913 12914# Whether dlopen of statically linked programs is supported. 12915dlopen_self_static=$enable_dlopen_self_static 12916 12917# Commands to strip libraries. 12918old_striplib=$lt_old_striplib 12919striplib=$lt_striplib 12920 12921 12922# The linker used to build libraries. 12923LD=$lt_LD 12924 12925# How to create reloadable object files. 12926reload_flag=$lt_reload_flag 12927reload_cmds=$lt_reload_cmds 12928 12929# Commands used to build an old-style archive. 12930old_archive_cmds=$lt_old_archive_cmds 12931 12932# A language specific compiler. 12933CC=$lt_compiler 12934 12935# Is the compiler the GNU compiler? 12936with_gcc=$GCC 12937 12938# Compiler flag to turn off builtin functions. 12939no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 12940 12941# Additional compiler flags for building library objects. 12942pic_flag=$lt_lt_prog_compiler_pic 12943 12944# How to pass a linker flag through the compiler. 12945wl=$lt_lt_prog_compiler_wl 12946 12947# Compiler flag to prevent dynamic linking. 12948link_static_flag=$lt_lt_prog_compiler_static 12949 12950# Does compiler simultaneously support -c and -o options? 12951compiler_c_o=$lt_lt_cv_prog_compiler_c_o 12952 12953# Whether or not to add -lc for building shared libraries. 12954build_libtool_need_lc=$archive_cmds_need_lc 12955 12956# Whether or not to disallow shared libs when runtime libs are static. 12957allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 12958 12959# Compiler flag to allow reflexive dlopens. 12960export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 12961 12962# Compiler flag to generate shared objects directly from archives. 12963whole_archive_flag_spec=$lt_whole_archive_flag_spec 12964 12965# Whether the compiler copes with passing no objects directly. 12966compiler_needs_object=$lt_compiler_needs_object 12967 12968# Create an old-style archive from a shared archive. 12969old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 12970 12971# Create a temporary old-style archive to link instead of a shared archive. 12972old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 12973 12974# Commands used to build a shared archive. 12975archive_cmds=$lt_archive_cmds 12976archive_expsym_cmds=$lt_archive_expsym_cmds 12977 12978# Commands used to build a loadable module if different from building 12979# a shared archive. 12980module_cmds=$lt_module_cmds 12981module_expsym_cmds=$lt_module_expsym_cmds 12982 12983# Whether we are building with GNU ld or not. 12984with_gnu_ld=$lt_with_gnu_ld 12985 12986# Flag that allows shared libraries with undefined symbols to be built. 12987allow_undefined_flag=$lt_allow_undefined_flag 12988 12989# Flag that enforces no undefined symbols. 12990no_undefined_flag=$lt_no_undefined_flag 12991 12992# Flag to hardcode \$libdir into a binary during linking. 12993# This must work even if \$libdir does not exist 12994hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 12995 12996# If ld is used when linking, flag to hardcode \$libdir into a binary 12997# during linking. This must work even if \$libdir does not exist. 12998hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 12999 13000# Whether we need a single "-rpath" flag with a separated argument. 13001hardcode_libdir_separator=$lt_hardcode_libdir_separator 13002 13003# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13004# DIR into the resulting binary. 13005hardcode_direct=$hardcode_direct 13006 13007# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13008# DIR into the resulting binary and the resulting library dependency is 13009# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13010# library is relocated. 13011hardcode_direct_absolute=$hardcode_direct_absolute 13012 13013# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13014# into the resulting binary. 13015hardcode_minus_L=$hardcode_minus_L 13016 13017# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13018# into the resulting binary. 13019hardcode_shlibpath_var=$hardcode_shlibpath_var 13020 13021# Set to "yes" if building a shared library automatically hardcodes DIR 13022# into the library and all subsequent libraries and executables linked 13023# against it. 13024hardcode_automatic=$hardcode_automatic 13025 13026# Set to yes if linker adds runtime paths of dependent libraries 13027# to runtime path list. 13028inherit_rpath=$inherit_rpath 13029 13030# Whether libtool must link a program against all its dependency libraries. 13031link_all_deplibs=$link_all_deplibs 13032 13033# Set to "yes" if exported symbols are required. 13034always_export_symbols=$always_export_symbols 13035 13036# The commands to list exported symbols. 13037export_symbols_cmds=$lt_export_symbols_cmds 13038 13039# Symbols that should not be listed in the preloaded symbols. 13040exclude_expsyms=$lt_exclude_expsyms 13041 13042# Symbols that must always be exported. 13043include_expsyms=$lt_include_expsyms 13044 13045# Commands necessary for linking programs (against libraries) with templates. 13046prelink_cmds=$lt_prelink_cmds 13047 13048# Commands necessary for finishing linking programs. 13049postlink_cmds=$lt_postlink_cmds 13050 13051# Specify filename containing input files. 13052file_list_spec=$lt_file_list_spec 13053 13054# How to hardcode a shared library path into an executable. 13055hardcode_action=$hardcode_action 13056 13057# ### END LIBTOOL CONFIG 13058 13059_LT_EOF 13060 13061 case $host_os in 13062 aix3*) 13063 cat <<\_LT_EOF >> "$cfgfile" 13064# AIX sometimes has problems with the GCC collect2 program. For some 13065# reason, if we set the COLLECT_NAMES environment variable, the problems 13066# vanish in a puff of smoke. 13067if test "X${COLLECT_NAMES+set}" != Xset; then 13068 COLLECT_NAMES= 13069 export COLLECT_NAMES 13070fi 13071_LT_EOF 13072 ;; 13073 esac 13074 13075 13076ltmain="$ac_aux_dir/ltmain.sh" 13077 13078 13079 # We use sed instead of cat because bash on DJGPP gets confused if 13080 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13081 # text mode, it properly converts lines to CR/LF. This bash problem 13082 # is reportedly fixed, but why not run on old versions too? 13083 sed '$q' "$ltmain" >> "$cfgfile" \ 13084 || (rm -f "$cfgfile"; exit 1) 13085 13086 if test x"$xsi_shell" = xyes; then 13087 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 13088func_dirname ()\ 13089{\ 13090\ case ${1} in\ 13091\ */*) func_dirname_result="${1%/*}${2}" ;;\ 13092\ * ) func_dirname_result="${3}" ;;\ 13093\ esac\ 13094} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 13095 && mv -f "$cfgfile.tmp" "$cfgfile" \ 13096 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 13097test 0 -eq $? || _lt_function_replace_fail=: 13098 13099 13100 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 13101func_basename ()\ 13102{\ 13103\ func_basename_result="${1##*/}"\ 13104} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 13105 && mv -f "$cfgfile.tmp" "$cfgfile" \ 13106 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 13107test 0 -eq $? || _lt_function_replace_fail=: 13108 13109 13110 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 13111func_dirname_and_basename ()\ 13112{\ 13113\ case ${1} in\ 13114\ */*) func_dirname_result="${1%/*}${2}" ;;\ 13115\ * ) func_dirname_result="${3}" ;;\ 13116\ esac\ 13117\ func_basename_result="${1##*/}"\ 13118} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 13119 && mv -f "$cfgfile.tmp" "$cfgfile" \ 13120 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 13121test 0 -eq $? || _lt_function_replace_fail=: 13122 13123 13124 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 13125func_stripname ()\ 13126{\ 13127\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 13128\ # positional parameters, so assign one to ordinary parameter first.\ 13129\ func_stripname_result=${3}\ 13130\ func_stripname_result=${func_stripname_result#"${1}"}\ 13131\ func_stripname_result=${func_stripname_result%"${2}"}\ 13132} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 13133 && mv -f "$cfgfile.tmp" "$cfgfile" \ 13134 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 13135test 0 -eq $? || _lt_function_replace_fail=: 13136 13137 13138 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 13139func_split_long_opt ()\ 13140{\ 13141\ func_split_long_opt_name=${1%%=*}\ 13142\ func_split_long_opt_arg=${1#*=}\ 13143} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 13144 && mv -f "$cfgfile.tmp" "$cfgfile" \ 13145 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 13146test 0 -eq $? || _lt_function_replace_fail=: 13147 13148 13149 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 13150func_split_short_opt ()\ 13151{\ 13152\ func_split_short_opt_arg=${1#??}\ 13153\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 13154} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 13155 && mv -f "$cfgfile.tmp" "$cfgfile" \ 13156 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 13157test 0 -eq $? || _lt_function_replace_fail=: 13158 13159 13160 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 13161func_lo2o ()\ 13162{\ 13163\ case ${1} in\ 13164\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 13165\ *) func_lo2o_result=${1} ;;\ 13166\ esac\ 13167} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 13168 && mv -f "$cfgfile.tmp" "$cfgfile" \ 13169 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 13170test 0 -eq $? || _lt_function_replace_fail=: 13171 13172 13173 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 13174func_xform ()\ 13175{\ 13176 func_xform_result=${1%.*}.lo\ 13177} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 13178 && mv -f "$cfgfile.tmp" "$cfgfile" \ 13179 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 13180test 0 -eq $? || _lt_function_replace_fail=: 13181 13182 13183 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 13184func_arith ()\ 13185{\ 13186 func_arith_result=$(( $* ))\ 13187} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 13188 && mv -f "$cfgfile.tmp" "$cfgfile" \ 13189 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 13190test 0 -eq $? || _lt_function_replace_fail=: 13191 13192 13193 sed -e '/^func_len ()$/,/^} # func_len /c\ 13194func_len ()\ 13195{\ 13196 func_len_result=${#1}\ 13197} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 13198 && mv -f "$cfgfile.tmp" "$cfgfile" \ 13199 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 13200test 0 -eq $? || _lt_function_replace_fail=: 13201 13202fi 13203 13204if test x"$lt_shell_append" = xyes; then 13205 sed -e '/^func_append ()$/,/^} # func_append /c\ 13206func_append ()\ 13207{\ 13208 eval "${1}+=\\${2}"\ 13209} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 13210 && mv -f "$cfgfile.tmp" "$cfgfile" \ 13211 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 13212test 0 -eq $? || _lt_function_replace_fail=: 13213 13214 13215 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 13216func_append_quoted ()\ 13217{\ 13218\ func_quote_for_eval "${2}"\ 13219\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 13220} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 13221 && mv -f "$cfgfile.tmp" "$cfgfile" \ 13222 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 13223test 0 -eq $? || _lt_function_replace_fail=: 13224 13225 13226 # Save a `func_append' function call where possible by direct use of '+=' 13227 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 13228 && mv -f "$cfgfile.tmp" "$cfgfile" \ 13229 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 13230 test 0 -eq $? || _lt_function_replace_fail=: 13231else 13232 # Save a `func_append' function call even when '+=' is not available 13233 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 13234 && mv -f "$cfgfile.tmp" "$cfgfile" \ 13235 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 13236 test 0 -eq $? || _lt_function_replace_fail=: 13237fi 13238 13239if test x"$_lt_function_replace_fail" = x":"; then 13240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 13241$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 13242fi 13243 13244 13245 mv -f "$cfgfile" "$ofile" || 13246 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 13247 chmod +x "$ofile" 13248 13249 ;; 13250 13251 esac 13252done # for ac_tag 13253 13254 13255as_fn_exit 0 13256_ACEOF 13257ac_clean_files=$ac_clean_files_save 13258 13259test $ac_write_fail = 0 || 13260 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 13261 13262 13263# configure is writing to config.log, and then calls config.status. 13264# config.status does its own redirection, appending to config.log. 13265# Unfortunately, on DOS this fails, as config.log is still kept open 13266# by configure, so config.status won't be able to write to it; its 13267# output is simply discarded. So we exec the FD to /dev/null, 13268# effectively closing config.log, so it can be properly (re)opened and 13269# appended to by config.status. When coming back to configure, we 13270# need to make the FD available again. 13271if test "$no_create" != yes; then 13272 ac_cs_success=: 13273 ac_config_status_args= 13274 test "$silent" = yes && 13275 ac_config_status_args="$ac_config_status_args --quiet" 13276 exec 5>/dev/null 13277 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13278 exec 5>>config.log 13279 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13280 # would make configure fail if this is the last instruction. 13281 $ac_cs_success || as_fn_exit 1 13282fi 13283if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13285$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13286fi 13287 13288