1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.64. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 7# Foundation, Inc. 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90case $0 in #(( 91 *[\\/]* ) as_myself=$0 ;; 92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 93for as_dir in $PATH 94do 95 IFS=$as_save_IFS 96 test -z "$as_dir" && as_dir=. 97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 98 done 99IFS=$as_save_IFS 100 101 ;; 102esac 103# We did not find ourselves, most probably we were run as `sh COMMAND' 104# in which case we are not to be found in the path. 105if test "x$as_myself" = x; then 106 as_myself=$0 107fi 108if test ! -f "$as_myself"; then 109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 110 exit 1 111fi 112 113# Unset variables that we do not need and which cause bugs (e.g. in 114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 115# suppresses any "Segmentation fault" message there. '((' could 116# trigger a bug in pdksh 5.2.14. 117for as_var in BASH_ENV ENV MAIL MAILPATH 118do eval test x\${$as_var+set} = xset \ 119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 120done 121PS1='$ ' 122PS2='> ' 123PS4='+ ' 124 125# NLS nuisances. 126LC_ALL=C 127export LC_ALL 128LANGUAGE=C 129export LANGUAGE 130 131# CDPATH. 132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 133 134if test "x$CONFIG_SHELL" = x; then 135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 136 emulate sh 137 NULLCMD=: 138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 139 # is contrary to our usage. Disable this feature. 140 alias -g '\${1+\"\$@\"}'='\"\$@\"' 141 setopt NO_GLOB_SUBST 142else 143 case \`(set -o) 2>/dev/null\` in #( 144 *posix*) : 145 set -o posix ;; #( 146 *) : 147 ;; 148esac 149fi 150" 151 as_required="as_fn_return () { (exit \$1); } 152as_fn_success () { as_fn_return 0; } 153as_fn_failure () { as_fn_return 1; } 154as_fn_ret_success () { return 0; } 155as_fn_ret_failure () { return 1; } 156 157exitcode=0 158as_fn_success || { exitcode=1; echo as_fn_success failed.; } 159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 163 164else 165 exitcode=1; echo positional parameters were not saved. 166fi 167test x\$exitcode = x0 || exit 1" 168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 172 173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 177 PATH=/empty FPATH=/empty; export PATH FPATH 178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 180test \$(( 1 + 1 )) = 2 || exit 1" 181 if (eval "$as_required") 2>/dev/null; then : 182 as_have_required=yes 183else 184 as_have_required=no 185fi 186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 187 188else 189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 190as_found=false 191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 192do 193 IFS=$as_save_IFS 194 test -z "$as_dir" && as_dir=. 195 as_found=: 196 case $as_dir in #( 197 /*) 198 for as_base in sh bash ksh sh5; do 199 # Try only shells that exist, to save several forks. 200 as_shell=$as_dir/$as_base 201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 203 CONFIG_SHELL=$as_shell as_have_required=yes 204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 205 break 2 206fi 207fi 208 done;; 209 esac 210 as_found=false 211done 212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 214 CONFIG_SHELL=$SHELL as_have_required=yes 215fi; } 216IFS=$as_save_IFS 217 218 219 if test "x$CONFIG_SHELL" != x; then : 220 # We cannot yet assume a decent shell, so we have to provide a 221 # neutralization value for shells without unset; and this also 222 # works around shells that cannot unset nonexistent variables. 223 BASH_ENV=/dev/null 224 ENV=/dev/null 225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 226 export CONFIG_SHELL 227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 228fi 229 230 if test x$as_have_required = xno; then : 231 $as_echo "$0: This script requires a shell more modern than all" 232 $as_echo "$0: the shells that I found on your system." 233 if test x${ZSH_VERSION+set} = xset ; then 234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 235 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 236 else 237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 238$0: including any error possibly output before this 239$0: message. Then install a modern shell, or manually run 240$0: the script under such a shell if you do have one." 241 fi 242 exit 1 243fi 244fi 245fi 246SHELL=${CONFIG_SHELL-/bin/sh} 247export SHELL 248# Unset more variables known to interfere with behavior of common tools. 249CLICOLOR_FORCE= GREP_OPTIONS= 250unset CLICOLOR_FORCE GREP_OPTIONS 251 252## --------------------- ## 253## M4sh Shell Functions. ## 254## --------------------- ## 255# as_fn_unset VAR 256# --------------- 257# Portably unset VAR. 258as_fn_unset () 259{ 260 { eval $1=; unset $1;} 261} 262as_unset=as_fn_unset 263 264# as_fn_set_status STATUS 265# ----------------------- 266# Set $? to STATUS, without forking. 267as_fn_set_status () 268{ 269 return $1 270} # as_fn_set_status 271 272# as_fn_exit STATUS 273# ----------------- 274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 275as_fn_exit () 276{ 277 set +e 278 as_fn_set_status $1 279 exit $1 280} # as_fn_exit 281 282# as_fn_mkdir_p 283# ------------- 284# Create "$as_dir" as a directory, including parents if necessary. 285as_fn_mkdir_p () 286{ 287 288 case $as_dir in #( 289 -*) as_dir=./$as_dir;; 290 esac 291 test -d "$as_dir" || eval $as_mkdir_p || { 292 as_dirs= 293 while :; do 294 case $as_dir in #( 295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 296 *) as_qdir=$as_dir;; 297 esac 298 as_dirs="'$as_qdir' $as_dirs" 299 as_dir=`$as_dirname -- "$as_dir" || 300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 301 X"$as_dir" : 'X\(//\)[^/]' \| \ 302 X"$as_dir" : 'X\(//\)$' \| \ 303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 304$as_echo X"$as_dir" | 305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 306 s//\1/ 307 q 308 } 309 /^X\(\/\/\)[^/].*/{ 310 s//\1/ 311 q 312 } 313 /^X\(\/\/\)$/{ 314 s//\1/ 315 q 316 } 317 /^X\(\/\).*/{ 318 s//\1/ 319 q 320 } 321 s/.*/./; q'` 322 test -d "$as_dir" && break 323 done 324 test -z "$as_dirs" || eval "mkdir $as_dirs" 325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 326 327 328} # as_fn_mkdir_p 329# as_fn_append VAR VALUE 330# ---------------------- 331# Append the text in VALUE to the end of the definition contained in VAR. Take 332# advantage of any shell optimizations that allow amortized linear growth over 333# repeated appends, instead of the typical quadratic growth present in naive 334# implementations. 335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 336 eval 'as_fn_append () 337 { 338 eval $1+=\$2 339 }' 340else 341 as_fn_append () 342 { 343 eval $1=\$$1\$2 344 } 345fi # as_fn_append 346 347# as_fn_arith ARG... 348# ------------------ 349# Perform arithmetic evaluation on the ARGs, and store the result in the 350# global $as_val. Take advantage of shells that can avoid forks. The arguments 351# must be portable across $(()) and expr. 352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 353 eval 'as_fn_arith () 354 { 355 as_val=$(( $* )) 356 }' 357else 358 as_fn_arith () 359 { 360 as_val=`expr "$@" || test $? -eq 1` 361 } 362fi # as_fn_arith 363 364 365# as_fn_error ERROR [LINENO LOG_FD] 366# --------------------------------- 367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 369# script with status $?, using 1 if that was 0. 370as_fn_error () 371{ 372 as_status=$?; test $as_status -eq 0 && as_status=1 373 if test "$3"; then 374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 376 fi 377 $as_echo "$as_me: error: $1" >&2 378 as_fn_exit $as_status 379} # as_fn_error 380 381if expr a : '\(a\)' >/dev/null 2>&1 && 382 test "X`expr 00001 : '.*\(...\)'`" = X001; then 383 as_expr=expr 384else 385 as_expr=false 386fi 387 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 389 as_basename=basename 390else 391 as_basename=false 392fi 393 394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 395 as_dirname=dirname 396else 397 as_dirname=false 398fi 399 400as_me=`$as_basename -- "$0" || 401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 402 X"$0" : 'X\(//\)$' \| \ 403 X"$0" : 'X\(/\)' \| . 2>/dev/null || 404$as_echo X/"$0" | 405 sed '/^.*\/\([^/][^/]*\)\/*$/{ 406 s//\1/ 407 q 408 } 409 /^X\/\(\/\/\)$/{ 410 s//\1/ 411 q 412 } 413 /^X\/\(\/\).*/{ 414 s//\1/ 415 q 416 } 417 s/.*/./; q'` 418 419# Avoid depending upon Character Ranges. 420as_cr_letters='abcdefghijklmnopqrstuvwxyz' 421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 422as_cr_Letters=$as_cr_letters$as_cr_LETTERS 423as_cr_digits='0123456789' 424as_cr_alnum=$as_cr_Letters$as_cr_digits 425 426 427 as_lineno_1=$LINENO as_lineno_1a=$LINENO 428 as_lineno_2=$LINENO as_lineno_2a=$LINENO 429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 432 sed -n ' 433 p 434 /[$]LINENO/= 435 ' <$as_myself | 436 sed ' 437 s/[$]LINENO.*/&-/ 438 t lineno 439 b 440 :lineno 441 N 442 :loop 443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 444 t loop 445 s/-\n.*// 446 ' >$as_me.lineno && 447 chmod +x "$as_me.lineno" || 448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 449 450 # Don't try to exec as it changes $[0], causing all sort of problems 451 # (the dirname of $[0] is not the place where we might find the 452 # original and so on. Autoconf is especially sensitive to this). 453 . "./$as_me.lineno" 454 # Exit status is that of the last command. 455 exit 456} 457 458ECHO_C= ECHO_N= ECHO_T= 459case `echo -n x` in #((((( 460-n*) 461 case `echo 'xy\c'` in 462 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 463 xy) ECHO_C='\c';; 464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 465 ECHO_T=' ';; 466 esac;; 467*) 468 ECHO_N='-n';; 469esac 470 471rm -f conf$$ conf$$.exe conf$$.file 472if test -d conf$$.dir; then 473 rm -f conf$$.dir/conf$$.file 474else 475 rm -f conf$$.dir 476 mkdir conf$$.dir 2>/dev/null 477fi 478if (echo >conf$$.file) 2>/dev/null; then 479 if ln -s conf$$.file conf$$ 2>/dev/null; then 480 as_ln_s='ln -s' 481 # ... but there are two gotchas: 482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 484 # In both cases, we have to default to `cp -p'. 485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 486 as_ln_s='cp -p' 487 elif ln conf$$.file conf$$ 2>/dev/null; then 488 as_ln_s=ln 489 else 490 as_ln_s='cp -p' 491 fi 492else 493 as_ln_s='cp -p' 494fi 495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 496rmdir conf$$.dir 2>/dev/null 497 498if mkdir -p . 2>/dev/null; then 499 as_mkdir_p='mkdir -p "$as_dir"' 500else 501 test -d ./-p && rmdir ./-p 502 as_mkdir_p=false 503fi 504 505if test -x / >/dev/null 2>&1; then 506 as_test_x='test -x' 507else 508 if ls -dL / >/dev/null 2>&1; then 509 as_ls_L_option=L 510 else 511 as_ls_L_option= 512 fi 513 as_test_x=' 514 eval sh -c '\'' 515 if test -d "$1"; then 516 test -d "$1/."; 517 else 518 case $1 in #( 519 -*)set "./$1";; 520 esac; 521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 522 ???[sx]*):;;*)false;;esac;fi 523 '\'' sh 524 ' 525fi 526as_executable_p=$as_test_x 527 528# Sed expression to map a string onto a valid CPP name. 529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 530 531# Sed expression to map a string onto a valid variable name. 532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 533 534SHELL=${CONFIG_SHELL-/bin/sh} 535 536 537exec 7<&0 </dev/null 6>&1 538 539# Name of the host. 540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 541# so uname gets run too. 542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 543 544# 545# Initializations. 546# 547ac_default_prefix=/usr/local 548ac_clean_files= 549ac_config_libobj_dir=. 550LIBOBJS= 551cross_compiling=no 552subdirs= 553MFLAGS= 554MAKEFLAGS= 555 556# Identity of this package. 557PACKAGE_NAME= 558PACKAGE_TARNAME= 559PACKAGE_VERSION= 560PACKAGE_STRING= 561PACKAGE_BUGREPORT= 562PACKAGE_URL= 563 564ac_unique_file="zlib.h" 565# Factoring default headers for most tests. 566ac_includes_default="\ 567#include <stdio.h> 568#ifdef HAVE_SYS_TYPES_H 569# include <sys/types.h> 570#endif 571#ifdef HAVE_SYS_STAT_H 572# include <sys/stat.h> 573#endif 574#ifdef STDC_HEADERS 575# include <stdlib.h> 576# include <stddef.h> 577#else 578# ifdef HAVE_STDLIB_H 579# include <stdlib.h> 580# endif 581#endif 582#ifdef HAVE_STRING_H 583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 584# include <memory.h> 585# endif 586# include <string.h> 587#endif 588#ifdef HAVE_STRINGS_H 589# include <strings.h> 590#endif 591#ifdef HAVE_INTTYPES_H 592# include <inttypes.h> 593#endif 594#ifdef HAVE_STDINT_H 595# include <stdint.h> 596#endif 597#ifdef HAVE_UNISTD_H 598# include <unistd.h> 599#endif" 600 601ac_subst_vars='am__EXEEXT_FALSE 602am__EXEEXT_TRUE 603LTLIBOBJS 604LIBOBJS 605PICFLAG 606TARGET_LIBRARY_FALSE 607TARGET_LIBRARY_TRUE 608toolexeclibdir 609toolexecdir 610target_all 611CPP 612OTOOL64 613OTOOL 614LIPO 615NMEDIT 616DSYMUTIL 617RANLIB 618AR 619OBJDUMP 620LN_S 621NM 622ac_ct_DUMPBIN 623DUMPBIN 624LD 625FGREP 626EGREP 627GREP 628SED 629LIBTOOL 630am__fastdepCC_FALSE 631am__fastdepCC_TRUE 632CCDEPMODE 633AMDEPBACKSLASH 634AMDEP_FALSE 635AMDEP_TRUE 636am__quote 637am__include 638DEPDIR 639OBJEXT 640EXEEXT 641ac_ct_CC 642CPPFLAGS 643LDFLAGS 644CFLAGS 645CC 646COMPPATH 647MAINT 648MAINTAINER_MODE_FALSE 649MAINTAINER_MODE_TRUE 650am__untar 651am__tar 652AMTAR 653am__leading_dot 654SET_MAKE 655AWK 656mkdir_p 657MKDIR_P 658INSTALL_STRIP_PROGRAM 659STRIP 660install_sh 661MAKEINFO 662AUTOHEADER 663AUTOMAKE 664AUTOCONF 665ACLOCAL 666VERSION 667PACKAGE 668CYGPATH_W 669am__isrc 670INSTALL_DATA 671INSTALL_SCRIPT 672INSTALL_PROGRAM 673mkinstalldirs 674target_os 675target_vendor 676target_cpu 677target 678host_os 679host_vendor 680host_cpu 681host 682build_os 683build_vendor 684build_cpu 685build 686multi_basedir 687target_alias 688host_alias 689build_alias 690LIBS 691ECHO_T 692ECHO_N 693ECHO_C 694DEFS 695mandir 696localedir 697libdir 698psdir 699pdfdir 700dvidir 701htmldir 702infodir 703docdir 704oldincludedir 705includedir 706localstatedir 707sharedstatedir 708sysconfdir 709datadir 710datarootdir 711libexecdir 712sbindir 713bindir 714program_transform_name 715prefix 716exec_prefix 717PACKAGE_URL 718PACKAGE_BUGREPORT 719PACKAGE_STRING 720PACKAGE_VERSION 721PACKAGE_TARNAME 722PACKAGE_NAME 723PATH_SEPARATOR 724SHELL' 725ac_subst_files='' 726ac_user_opts=' 727enable_option_checking 728enable_multilib 729enable_maintainer_mode 730with_target_subdir 731with_cross_host 732with_system_zlib 733enable_dependency_tracking 734enable_shared 735enable_static 736with_pic 737enable_fast_install 738with_gnu_ld 739enable_libtool_lock 740enable_host_shared 741' 742 ac_precious_vars='build_alias 743host_alias 744target_alias 745CPP 746CPPFLAGS' 747 748 749# Initialize some variables set by options. 750ac_init_help= 751ac_init_version=false 752ac_unrecognized_opts= 753ac_unrecognized_sep= 754# The variables have the same names as the options, with 755# dashes changed to underlines. 756cache_file=/dev/null 757exec_prefix=NONE 758no_create= 759no_recursion= 760prefix=NONE 761program_prefix=NONE 762program_suffix=NONE 763program_transform_name=s,x,x, 764silent= 765site= 766srcdir= 767verbose= 768x_includes=NONE 769x_libraries=NONE 770 771# Installation directory options. 772# These are left unexpanded so users can "make install exec_prefix=/foo" 773# and all the variables that are supposed to be based on exec_prefix 774# by default will actually change. 775# Use braces instead of parens because sh, perl, etc. also accept them. 776# (The list follows the same order as the GNU Coding Standards.) 777bindir='${exec_prefix}/bin' 778sbindir='${exec_prefix}/sbin' 779libexecdir='${exec_prefix}/libexec' 780datarootdir='${prefix}/share' 781datadir='${datarootdir}' 782sysconfdir='${prefix}/etc' 783sharedstatedir='${prefix}/com' 784localstatedir='${prefix}/var' 785includedir='${prefix}/include' 786oldincludedir='/usr/include' 787docdir='${datarootdir}/doc/${PACKAGE}' 788infodir='${datarootdir}/info' 789htmldir='${docdir}' 790dvidir='${docdir}' 791pdfdir='${docdir}' 792psdir='${docdir}' 793libdir='${exec_prefix}/lib' 794localedir='${datarootdir}/locale' 795mandir='${datarootdir}/man' 796 797ac_prev= 798ac_dashdash= 799for ac_option 800do 801 # If the previous option needs an argument, assign it. 802 if test -n "$ac_prev"; then 803 eval $ac_prev=\$ac_option 804 ac_prev= 805 continue 806 fi 807 808 case $ac_option in 809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 810 *) ac_optarg=yes ;; 811 esac 812 813 # Accept the important Cygnus configure options, so we can diagnose typos. 814 815 case $ac_dashdash$ac_option in 816 --) 817 ac_dashdash=yes ;; 818 819 -bindir | --bindir | --bindi | --bind | --bin | --bi) 820 ac_prev=bindir ;; 821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 822 bindir=$ac_optarg ;; 823 824 -build | --build | --buil | --bui | --bu) 825 ac_prev=build_alias ;; 826 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 827 build_alias=$ac_optarg ;; 828 829 -cache-file | --cache-file | --cache-fil | --cache-fi \ 830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 831 ac_prev=cache_file ;; 832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 834 cache_file=$ac_optarg ;; 835 836 --config-cache | -C) 837 cache_file=config.cache ;; 838 839 -datadir | --datadir | --datadi | --datad) 840 ac_prev=datadir ;; 841 -datadir=* | --datadir=* | --datadi=* | --datad=*) 842 datadir=$ac_optarg ;; 843 844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 845 | --dataroo | --dataro | --datar) 846 ac_prev=datarootdir ;; 847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 849 datarootdir=$ac_optarg ;; 850 851 -disable-* | --disable-*) 852 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 853 # Reject names that are not valid shell variable names. 854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 855 as_fn_error "invalid feature name: $ac_useropt" 856 ac_useropt_orig=$ac_useropt 857 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 858 case $ac_user_opts in 859 *" 860"enable_$ac_useropt" 861"*) ;; 862 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 863 ac_unrecognized_sep=', ';; 864 esac 865 eval enable_$ac_useropt=no ;; 866 867 -docdir | --docdir | --docdi | --doc | --do) 868 ac_prev=docdir ;; 869 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 870 docdir=$ac_optarg ;; 871 872 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 873 ac_prev=dvidir ;; 874 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 875 dvidir=$ac_optarg ;; 876 877 -enable-* | --enable-*) 878 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 879 # Reject names that are not valid shell variable names. 880 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 881 as_fn_error "invalid feature name: $ac_useropt" 882 ac_useropt_orig=$ac_useropt 883 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 884 case $ac_user_opts in 885 *" 886"enable_$ac_useropt" 887"*) ;; 888 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 889 ac_unrecognized_sep=', ';; 890 esac 891 eval enable_$ac_useropt=\$ac_optarg ;; 892 893 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 894 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 895 | --exec | --exe | --ex) 896 ac_prev=exec_prefix ;; 897 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 898 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 899 | --exec=* | --exe=* | --ex=*) 900 exec_prefix=$ac_optarg ;; 901 902 -gas | --gas | --ga | --g) 903 # Obsolete; use --with-gas. 904 with_gas=yes ;; 905 906 -help | --help | --hel | --he | -h) 907 ac_init_help=long ;; 908 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 909 ac_init_help=recursive ;; 910 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 911 ac_init_help=short ;; 912 913 -host | --host | --hos | --ho) 914 ac_prev=host_alias ;; 915 -host=* | --host=* | --hos=* | --ho=*) 916 host_alias=$ac_optarg ;; 917 918 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 919 ac_prev=htmldir ;; 920 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 921 | --ht=*) 922 htmldir=$ac_optarg ;; 923 924 -includedir | --includedir | --includedi | --included | --include \ 925 | --includ | --inclu | --incl | --inc) 926 ac_prev=includedir ;; 927 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 928 | --includ=* | --inclu=* | --incl=* | --inc=*) 929 includedir=$ac_optarg ;; 930 931 -infodir | --infodir | --infodi | --infod | --info | --inf) 932 ac_prev=infodir ;; 933 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 934 infodir=$ac_optarg ;; 935 936 -libdir | --libdir | --libdi | --libd) 937 ac_prev=libdir ;; 938 -libdir=* | --libdir=* | --libdi=* | --libd=*) 939 libdir=$ac_optarg ;; 940 941 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 942 | --libexe | --libex | --libe) 943 ac_prev=libexecdir ;; 944 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 945 | --libexe=* | --libex=* | --libe=*) 946 libexecdir=$ac_optarg ;; 947 948 -localedir | --localedir | --localedi | --localed | --locale) 949 ac_prev=localedir ;; 950 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 951 localedir=$ac_optarg ;; 952 953 -localstatedir | --localstatedir | --localstatedi | --localstated \ 954 | --localstate | --localstat | --localsta | --localst | --locals) 955 ac_prev=localstatedir ;; 956 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 957 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 958 localstatedir=$ac_optarg ;; 959 960 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 961 ac_prev=mandir ;; 962 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 963 mandir=$ac_optarg ;; 964 965 -nfp | --nfp | --nf) 966 # Obsolete; use --without-fp. 967 with_fp=no ;; 968 969 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 970 | --no-cr | --no-c | -n) 971 no_create=yes ;; 972 973 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 974 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 975 no_recursion=yes ;; 976 977 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 978 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 979 | --oldin | --oldi | --old | --ol | --o) 980 ac_prev=oldincludedir ;; 981 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 982 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 983 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 984 oldincludedir=$ac_optarg ;; 985 986 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 987 ac_prev=prefix ;; 988 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 989 prefix=$ac_optarg ;; 990 991 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 992 | --program-pre | --program-pr | --program-p) 993 ac_prev=program_prefix ;; 994 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 995 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 996 program_prefix=$ac_optarg ;; 997 998 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 999 | --program-suf | --program-su | --program-s) 1000 ac_prev=program_suffix ;; 1001 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1002 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1003 program_suffix=$ac_optarg ;; 1004 1005 -program-transform-name | --program-transform-name \ 1006 | --program-transform-nam | --program-transform-na \ 1007 | --program-transform-n | --program-transform- \ 1008 | --program-transform | --program-transfor \ 1009 | --program-transfo | --program-transf \ 1010 | --program-trans | --program-tran \ 1011 | --progr-tra | --program-tr | --program-t) 1012 ac_prev=program_transform_name ;; 1013 -program-transform-name=* | --program-transform-name=* \ 1014 | --program-transform-nam=* | --program-transform-na=* \ 1015 | --program-transform-n=* | --program-transform-=* \ 1016 | --program-transform=* | --program-transfor=* \ 1017 | --program-transfo=* | --program-transf=* \ 1018 | --program-trans=* | --program-tran=* \ 1019 | --progr-tra=* | --program-tr=* | --program-t=*) 1020 program_transform_name=$ac_optarg ;; 1021 1022 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1023 ac_prev=pdfdir ;; 1024 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1025 pdfdir=$ac_optarg ;; 1026 1027 -psdir | --psdir | --psdi | --psd | --ps) 1028 ac_prev=psdir ;; 1029 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1030 psdir=$ac_optarg ;; 1031 1032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1033 | -silent | --silent | --silen | --sile | --sil) 1034 silent=yes ;; 1035 1036 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1037 ac_prev=sbindir ;; 1038 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1039 | --sbi=* | --sb=*) 1040 sbindir=$ac_optarg ;; 1041 1042 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1043 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1044 | --sharedst | --shareds | --shared | --share | --shar \ 1045 | --sha | --sh) 1046 ac_prev=sharedstatedir ;; 1047 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1048 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1049 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1050 | --sha=* | --sh=*) 1051 sharedstatedir=$ac_optarg ;; 1052 1053 -site | --site | --sit) 1054 ac_prev=site ;; 1055 -site=* | --site=* | --sit=*) 1056 site=$ac_optarg ;; 1057 1058 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1059 ac_prev=srcdir ;; 1060 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1061 srcdir=$ac_optarg ;; 1062 1063 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1064 | --syscon | --sysco | --sysc | --sys | --sy) 1065 ac_prev=sysconfdir ;; 1066 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1067 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1068 sysconfdir=$ac_optarg ;; 1069 1070 -target | --target | --targe | --targ | --tar | --ta | --t) 1071 ac_prev=target_alias ;; 1072 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1073 target_alias=$ac_optarg ;; 1074 1075 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1076 verbose=yes ;; 1077 1078 -version | --version | --versio | --versi | --vers | -V) 1079 ac_init_version=: ;; 1080 1081 -with-* | --with-*) 1082 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1083 # Reject names that are not valid shell variable names. 1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1085 as_fn_error "invalid package name: $ac_useropt" 1086 ac_useropt_orig=$ac_useropt 1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1088 case $ac_user_opts in 1089 *" 1090"with_$ac_useropt" 1091"*) ;; 1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1093 ac_unrecognized_sep=', ';; 1094 esac 1095 eval with_$ac_useropt=\$ac_optarg ;; 1096 1097 -without-* | --without-*) 1098 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1099 # Reject names that are not valid shell variable names. 1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1101 as_fn_error "invalid package name: $ac_useropt" 1102 ac_useropt_orig=$ac_useropt 1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1104 case $ac_user_opts in 1105 *" 1106"with_$ac_useropt" 1107"*) ;; 1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1109 ac_unrecognized_sep=', ';; 1110 esac 1111 eval with_$ac_useropt=no ;; 1112 1113 --x) 1114 # Obsolete; use --with-x. 1115 with_x=yes ;; 1116 1117 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1118 | --x-incl | --x-inc | --x-in | --x-i) 1119 ac_prev=x_includes ;; 1120 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1121 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1122 x_includes=$ac_optarg ;; 1123 1124 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1125 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1126 ac_prev=x_libraries ;; 1127 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1128 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1129 x_libraries=$ac_optarg ;; 1130 1131 -*) as_fn_error "unrecognized option: \`$ac_option' 1132Try \`$0 --help' for more information." 1133 ;; 1134 1135 *=*) 1136 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1137 # Reject names that are not valid shell variable names. 1138 case $ac_envvar in #( 1139 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1140 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1141 esac 1142 eval $ac_envvar=\$ac_optarg 1143 export $ac_envvar ;; 1144 1145 *) 1146 # FIXME: should be removed in autoconf 3.0. 1147 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1148 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1149 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1150 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1151 ;; 1152 1153 esac 1154done 1155 1156if test -n "$ac_prev"; then 1157 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1158 as_fn_error "missing argument to $ac_option" 1159fi 1160 1161if test -n "$ac_unrecognized_opts"; then 1162 case $enable_option_checking in 1163 no) ;; 1164 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1165 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1166 esac 1167fi 1168 1169# Check all directory arguments for consistency. 1170for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1171 datadir sysconfdir sharedstatedir localstatedir includedir \ 1172 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1173 libdir localedir mandir 1174do 1175 eval ac_val=\$$ac_var 1176 # Remove trailing slashes. 1177 case $ac_val in 1178 */ ) 1179 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1180 eval $ac_var=\$ac_val;; 1181 esac 1182 # Be sure to have absolute directory names. 1183 case $ac_val in 1184 [\\/$]* | ?:[\\/]* ) continue;; 1185 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1186 esac 1187 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1188done 1189 1190# There might be people who depend on the old broken behavior: `$host' 1191# used to hold the argument of --host etc. 1192# FIXME: To remove some day. 1193build=$build_alias 1194host=$host_alias 1195target=$target_alias 1196 1197# FIXME: To remove some day. 1198if test "x$host_alias" != x; then 1199 if test "x$build_alias" = x; then 1200 cross_compiling=maybe 1201 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1202 If a cross compiler is detected then cross compile mode will be used." >&2 1203 elif test "x$build_alias" != "x$host_alias"; then 1204 cross_compiling=yes 1205 fi 1206fi 1207 1208ac_tool_prefix= 1209test -n "$host_alias" && ac_tool_prefix=$host_alias- 1210 1211test "$silent" = yes && exec 6>/dev/null 1212 1213 1214ac_pwd=`pwd` && test -n "$ac_pwd" && 1215ac_ls_di=`ls -di .` && 1216ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1217 as_fn_error "working directory cannot be determined" 1218test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1219 as_fn_error "pwd does not report name of working directory" 1220 1221 1222# Find the source files, if location was not specified. 1223if test -z "$srcdir"; then 1224 ac_srcdir_defaulted=yes 1225 # Try the directory containing this script, then the parent directory. 1226 ac_confdir=`$as_dirname -- "$as_myself" || 1227$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1228 X"$as_myself" : 'X\(//\)[^/]' \| \ 1229 X"$as_myself" : 'X\(//\)$' \| \ 1230 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1231$as_echo X"$as_myself" | 1232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1233 s//\1/ 1234 q 1235 } 1236 /^X\(\/\/\)[^/].*/{ 1237 s//\1/ 1238 q 1239 } 1240 /^X\(\/\/\)$/{ 1241 s//\1/ 1242 q 1243 } 1244 /^X\(\/\).*/{ 1245 s//\1/ 1246 q 1247 } 1248 s/.*/./; q'` 1249 srcdir=$ac_confdir 1250 if test ! -r "$srcdir/$ac_unique_file"; then 1251 srcdir=.. 1252 fi 1253else 1254 ac_srcdir_defaulted=no 1255fi 1256if test ! -r "$srcdir/$ac_unique_file"; then 1257 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1258 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1259fi 1260ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1261ac_abs_confdir=`( 1262 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1263 pwd)` 1264# When building in place, set srcdir=. 1265if test "$ac_abs_confdir" = "$ac_pwd"; then 1266 srcdir=. 1267fi 1268# Remove unnecessary trailing slashes from srcdir. 1269# Double slashes in file names in object file debugging info 1270# mess up M-x gdb in Emacs. 1271case $srcdir in 1272*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1273esac 1274for ac_var in $ac_precious_vars; do 1275 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1276 eval ac_env_${ac_var}_value=\$${ac_var} 1277 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1278 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1279done 1280 1281# 1282# Report the --help message. 1283# 1284if test "$ac_init_help" = "long"; then 1285 # Omit some internal or obsolete options to make the list less imposing. 1286 # This message is too long to be a string in the A/UX 3.1 sh. 1287 cat <<_ACEOF 1288\`configure' configures this package to adapt to many kinds of systems. 1289 1290Usage: $0 [OPTION]... [VAR=VALUE]... 1291 1292To assign environment variables (e.g., CC, CFLAGS...), specify them as 1293VAR=VALUE. See below for descriptions of some of the useful variables. 1294 1295Defaults for the options are specified in brackets. 1296 1297Configuration: 1298 -h, --help display this help and exit 1299 --help=short display options specific to this package 1300 --help=recursive display the short help of all the included packages 1301 -V, --version display version information and exit 1302 -q, --quiet, --silent do not print \`checking...' messages 1303 --cache-file=FILE cache test results in FILE [disabled] 1304 -C, --config-cache alias for \`--cache-file=config.cache' 1305 -n, --no-create do not create output files 1306 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1307 1308Installation directories: 1309 --prefix=PREFIX install architecture-independent files in PREFIX 1310 [$ac_default_prefix] 1311 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1312 [PREFIX] 1313 1314By default, \`make install' will install all the files in 1315\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1316an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1317for instance \`--prefix=\$HOME'. 1318 1319For better control, use the options below. 1320 1321Fine tuning of the installation directories: 1322 --bindir=DIR user executables [EPREFIX/bin] 1323 --sbindir=DIR system admin executables [EPREFIX/sbin] 1324 --libexecdir=DIR program executables [EPREFIX/libexec] 1325 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1326 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1327 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1328 --libdir=DIR object code libraries [EPREFIX/lib] 1329 --includedir=DIR C header files [PREFIX/include] 1330 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1331 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1332 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1333 --infodir=DIR info documentation [DATAROOTDIR/info] 1334 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1335 --mandir=DIR man documentation [DATAROOTDIR/man] 1336 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1337 --htmldir=DIR html documentation [DOCDIR] 1338 --dvidir=DIR dvi documentation [DOCDIR] 1339 --pdfdir=DIR pdf documentation [DOCDIR] 1340 --psdir=DIR ps documentation [DOCDIR] 1341_ACEOF 1342 1343 cat <<\_ACEOF 1344 1345Program names: 1346 --program-prefix=PREFIX prepend PREFIX to installed program names 1347 --program-suffix=SUFFIX append SUFFIX to installed program names 1348 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1349 1350System types: 1351 --build=BUILD configure for building on BUILD [guessed] 1352 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1353 --target=TARGET configure for building compilers for TARGET [HOST] 1354_ACEOF 1355fi 1356 1357if test -n "$ac_init_help"; then 1358 1359 cat <<\_ACEOF 1360 1361Optional Features: 1362 --disable-option-checking ignore unrecognized --enable/--with options 1363 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1364 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1365 --enable-multilib build many library versions (default) 1366 --enable-maintainer-mode enable make rules and dependencies not useful 1367 (and sometimes confusing) to the casual installer 1368 --disable-dependency-tracking speeds up one-time build 1369 --enable-dependency-tracking do not reject slow dependency extractors 1370 --enable-shared[=PKGS] build shared libraries [default=yes] 1371 --enable-static[=PKGS] build static libraries [default=yes] 1372 --enable-fast-install[=PKGS] 1373 optimize for fast installation [default=yes] 1374 --disable-libtool-lock avoid locking (might break parallel builds) 1375 --enable-host-shared build host code as shared libraries 1376 1377Optional Packages: 1378 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1379 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1380 --with-target-subdir=SUBDIR 1381 configuring in a subdirectory 1382 --with-cross-host=HOST configuring with a cross compiler 1383 --with-system-zlib use installed libz 1384 --with-pic try to use only PIC/non-PIC objects [default=use 1385 both] 1386 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1387 1388Some influential environment variables: 1389 CC C compiler command 1390 CFLAGS C compiler flags 1391 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1392 nonstandard directory <lib dir> 1393 LIBS libraries to pass to the linker, e.g. -l<library> 1394 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1395 you have headers in a nonstandard directory <include dir> 1396 CPP C preprocessor 1397 1398Use these variables to override the choices made by `configure' or to help 1399it to find libraries and programs with nonstandard names/locations. 1400 1401Report bugs to the package provider. 1402_ACEOF 1403ac_status=$? 1404fi 1405 1406if test "$ac_init_help" = "recursive"; then 1407 # If there are subdirs, report their specific --help. 1408 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1409 test -d "$ac_dir" || 1410 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1411 continue 1412 ac_builddir=. 1413 1414case "$ac_dir" in 1415.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1416*) 1417 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1418 # A ".." for each directory in $ac_dir_suffix. 1419 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1420 case $ac_top_builddir_sub in 1421 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1422 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1423 esac ;; 1424esac 1425ac_abs_top_builddir=$ac_pwd 1426ac_abs_builddir=$ac_pwd$ac_dir_suffix 1427# for backward compatibility: 1428ac_top_builddir=$ac_top_build_prefix 1429 1430case $srcdir in 1431 .) # We are building in place. 1432 ac_srcdir=. 1433 ac_top_srcdir=$ac_top_builddir_sub 1434 ac_abs_top_srcdir=$ac_pwd ;; 1435 [\\/]* | ?:[\\/]* ) # Absolute name. 1436 ac_srcdir=$srcdir$ac_dir_suffix; 1437 ac_top_srcdir=$srcdir 1438 ac_abs_top_srcdir=$srcdir ;; 1439 *) # Relative name. 1440 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1441 ac_top_srcdir=$ac_top_build_prefix$srcdir 1442 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1443esac 1444ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1445 1446 cd "$ac_dir" || { ac_status=$?; continue; } 1447 # Check for guested configure. 1448 if test -f "$ac_srcdir/configure.gnu"; then 1449 echo && 1450 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1451 elif test -f "$ac_srcdir/configure"; then 1452 echo && 1453 $SHELL "$ac_srcdir/configure" --help=recursive 1454 else 1455 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1456 fi || ac_status=$? 1457 cd "$ac_pwd" || { ac_status=$?; break; } 1458 done 1459fi 1460 1461test -n "$ac_init_help" && exit $ac_status 1462if $ac_init_version; then 1463 cat <<\_ACEOF 1464configure 1465generated by GNU Autoconf 2.64 1466 1467Copyright (C) 2009 Free Software Foundation, Inc. 1468This configure script is free software; the Free Software Foundation 1469gives unlimited permission to copy, distribute and modify it. 1470_ACEOF 1471 exit 1472fi 1473 1474## ------------------------ ## 1475## Autoconf initialization. ## 1476## ------------------------ ## 1477 1478# ac_fn_c_try_compile LINENO 1479# -------------------------- 1480# Try to compile conftest.$ac_ext, and return whether this succeeded. 1481ac_fn_c_try_compile () 1482{ 1483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1484 rm -f conftest.$ac_objext 1485 if { { ac_try="$ac_compile" 1486case "(($ac_try" in 1487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1488 *) ac_try_echo=$ac_try;; 1489esac 1490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1491$as_echo "$ac_try_echo"; } >&5 1492 (eval "$ac_compile") 2>conftest.err 1493 ac_status=$? 1494 if test -s conftest.err; then 1495 grep -v '^ *+' conftest.err >conftest.er1 1496 cat conftest.er1 >&5 1497 mv -f conftest.er1 conftest.err 1498 fi 1499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1500 test $ac_status = 0; } && { 1501 test -z "$ac_c_werror_flag" || 1502 test ! -s conftest.err 1503 } && test -s conftest.$ac_objext; then : 1504 ac_retval=0 1505else 1506 $as_echo "$as_me: failed program was:" >&5 1507sed 's/^/| /' conftest.$ac_ext >&5 1508 1509 ac_retval=1 1510fi 1511 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1512 return $ac_retval 1513 1514} # ac_fn_c_try_compile 1515 1516# ac_fn_c_try_link LINENO 1517# ----------------------- 1518# Try to link conftest.$ac_ext, and return whether this succeeded. 1519ac_fn_c_try_link () 1520{ 1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1522 rm -f conftest.$ac_objext conftest$ac_exeext 1523 if { { ac_try="$ac_link" 1524case "(($ac_try" in 1525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1526 *) ac_try_echo=$ac_try;; 1527esac 1528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1529$as_echo "$ac_try_echo"; } >&5 1530 (eval "$ac_link") 2>conftest.err 1531 ac_status=$? 1532 if test -s conftest.err; then 1533 grep -v '^ *+' conftest.err >conftest.er1 1534 cat conftest.er1 >&5 1535 mv -f conftest.er1 conftest.err 1536 fi 1537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1538 test $ac_status = 0; } && { 1539 test -z "$ac_c_werror_flag" || 1540 test ! -s conftest.err 1541 } && test -s conftest$ac_exeext && { 1542 test "$cross_compiling" = yes || 1543 $as_test_x conftest$ac_exeext 1544 }; then : 1545 ac_retval=0 1546else 1547 $as_echo "$as_me: failed program was:" >&5 1548sed 's/^/| /' conftest.$ac_ext >&5 1549 1550 ac_retval=1 1551fi 1552 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1553 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1554 # interfere with the next link command; also delete a directory that is 1555 # left behind by Apple's compiler. We do this before executing the actions. 1556 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1557 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1558 return $ac_retval 1559 1560} # ac_fn_c_try_link 1561 1562# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1563# ------------------------------------------------------- 1564# Tests whether HEADER exists and can be compiled using the include files in 1565# INCLUDES, setting the cache variable VAR accordingly. 1566ac_fn_c_check_header_compile () 1567{ 1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1570$as_echo_n "checking for $2... " >&6; } 1571if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1572 $as_echo_n "(cached) " >&6 1573else 1574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1575/* end confdefs.h. */ 1576$4 1577#include <$2> 1578_ACEOF 1579if ac_fn_c_try_compile "$LINENO"; then : 1580 eval "$3=yes" 1581else 1582 eval "$3=no" 1583fi 1584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1585fi 1586eval ac_res=\$$3 1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1588$as_echo "$ac_res" >&6; } 1589 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1590 1591} # ac_fn_c_check_header_compile 1592 1593# ac_fn_c_try_cpp LINENO 1594# ---------------------- 1595# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1596ac_fn_c_try_cpp () 1597{ 1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1599 if { { ac_try="$ac_cpp conftest.$ac_ext" 1600case "(($ac_try" in 1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1602 *) ac_try_echo=$ac_try;; 1603esac 1604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1605$as_echo "$ac_try_echo"; } >&5 1606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1607 ac_status=$? 1608 if test -s conftest.err; then 1609 grep -v '^ *+' conftest.err >conftest.er1 1610 cat conftest.er1 >&5 1611 mv -f conftest.er1 conftest.err 1612 fi 1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1614 test $ac_status = 0; } >/dev/null && { 1615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1616 test ! -s conftest.err 1617 }; then : 1618 ac_retval=0 1619else 1620 $as_echo "$as_me: failed program was:" >&5 1621sed 's/^/| /' conftest.$ac_ext >&5 1622 1623 ac_retval=1 1624fi 1625 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1626 return $ac_retval 1627 1628} # ac_fn_c_try_cpp 1629 1630# ac_fn_c_try_run LINENO 1631# ---------------------- 1632# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1633# that executables *can* be run. 1634ac_fn_c_try_run () 1635{ 1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1637 if { { ac_try="$ac_link" 1638case "(($ac_try" in 1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1640 *) ac_try_echo=$ac_try;; 1641esac 1642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1643$as_echo "$ac_try_echo"; } >&5 1644 (eval "$ac_link") 2>&5 1645 ac_status=$? 1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1647 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1648 { { case "(($ac_try" in 1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1650 *) ac_try_echo=$ac_try;; 1651esac 1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1653$as_echo "$ac_try_echo"; } >&5 1654 (eval "$ac_try") 2>&5 1655 ac_status=$? 1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1657 test $ac_status = 0; }; }; then : 1658 ac_retval=0 1659else 1660 $as_echo "$as_me: program exited with status $ac_status" >&5 1661 $as_echo "$as_me: failed program was:" >&5 1662sed 's/^/| /' conftest.$ac_ext >&5 1663 1664 ac_retval=$ac_status 1665fi 1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1667 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1668 return $ac_retval 1669 1670} # ac_fn_c_try_run 1671 1672# ac_fn_c_check_func LINENO FUNC VAR 1673# ---------------------------------- 1674# Tests whether FUNC exists, setting the cache variable VAR accordingly 1675ac_fn_c_check_func () 1676{ 1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1679$as_echo_n "checking for $2... " >&6; } 1680if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1681 $as_echo_n "(cached) " >&6 1682else 1683 if test x$gcc_no_link = xyes; then 1684 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 1685fi 1686cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1687/* end confdefs.h. */ 1688/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1689 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1690#define $2 innocuous_$2 1691 1692/* System header to define __stub macros and hopefully few prototypes, 1693 which can conflict with char $2 (); below. 1694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1695 <limits.h> exists even on freestanding compilers. */ 1696 1697#ifdef __STDC__ 1698# include <limits.h> 1699#else 1700# include <assert.h> 1701#endif 1702 1703#undef $2 1704 1705/* Override any GCC internal prototype to avoid an error. 1706 Use char because int might match the return type of a GCC 1707 builtin and then its argument prototype would still apply. */ 1708#ifdef __cplusplus 1709extern "C" 1710#endif 1711char $2 (); 1712/* The GNU C library defines this for functions which it implements 1713 to always fail with ENOSYS. Some functions are actually named 1714 something starting with __ and the normal name is an alias. */ 1715#if defined __stub_$2 || defined __stub___$2 1716choke me 1717#endif 1718 1719int 1720main () 1721{ 1722return $2 (); 1723 ; 1724 return 0; 1725} 1726_ACEOF 1727if ac_fn_c_try_link "$LINENO"; then : 1728 eval "$3=yes" 1729else 1730 eval "$3=no" 1731fi 1732rm -f core conftest.err conftest.$ac_objext \ 1733 conftest$ac_exeext conftest.$ac_ext 1734fi 1735eval ac_res=\$$3 1736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1737$as_echo "$ac_res" >&6; } 1738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1739 1740} # ac_fn_c_check_func 1741 1742# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1743# ------------------------------------------------------- 1744# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1745# the include files in INCLUDES and setting the cache variable VAR 1746# accordingly. 1747ac_fn_c_check_header_mongrel () 1748{ 1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1750 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1752$as_echo_n "checking for $2... " >&6; } 1753if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1754 $as_echo_n "(cached) " >&6 1755fi 1756eval ac_res=\$$3 1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1758$as_echo "$ac_res" >&6; } 1759else 1760 # Is the header compilable? 1761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1762$as_echo_n "checking $2 usability... " >&6; } 1763cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1764/* end confdefs.h. */ 1765$4 1766#include <$2> 1767_ACEOF 1768if ac_fn_c_try_compile "$LINENO"; then : 1769 ac_header_compiler=yes 1770else 1771 ac_header_compiler=no 1772fi 1773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1775$as_echo "$ac_header_compiler" >&6; } 1776 1777# Is the header present? 1778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1779$as_echo_n "checking $2 presence... " >&6; } 1780cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1781/* end confdefs.h. */ 1782#include <$2> 1783_ACEOF 1784if ac_fn_c_try_cpp "$LINENO"; then : 1785 ac_header_preproc=yes 1786else 1787 ac_header_preproc=no 1788fi 1789rm -f conftest.err conftest.$ac_ext 1790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1791$as_echo "$ac_header_preproc" >&6; } 1792 1793# So? What about this header? 1794case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1795 yes:no: ) 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1797$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1799$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1800 ;; 1801 no:yes:* ) 1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1803$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1805$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1807$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1809$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1811$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1812 ;; 1813esac 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1815$as_echo_n "checking for $2... " >&6; } 1816if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1817 $as_echo_n "(cached) " >&6 1818else 1819 eval "$3=\$ac_header_compiler" 1820fi 1821eval ac_res=\$$3 1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1823$as_echo "$ac_res" >&6; } 1824fi 1825 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1826 1827} # ac_fn_c_check_header_mongrel 1828cat >config.log <<_ACEOF 1829This file contains any messages produced by compilers while 1830running configure, to aid debugging if configure makes a mistake. 1831 1832It was created by $as_me, which was 1833generated by GNU Autoconf 2.64. Invocation command line was 1834 1835 $ $0 $@ 1836 1837_ACEOF 1838exec 5>>config.log 1839{ 1840cat <<_ASUNAME 1841## --------- ## 1842## Platform. ## 1843## --------- ## 1844 1845hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1846uname -m = `(uname -m) 2>/dev/null || echo unknown` 1847uname -r = `(uname -r) 2>/dev/null || echo unknown` 1848uname -s = `(uname -s) 2>/dev/null || echo unknown` 1849uname -v = `(uname -v) 2>/dev/null || echo unknown` 1850 1851/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1852/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1853 1854/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1855/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1856/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1857/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1858/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1859/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1860/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1861 1862_ASUNAME 1863 1864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1865for as_dir in $PATH 1866do 1867 IFS=$as_save_IFS 1868 test -z "$as_dir" && as_dir=. 1869 $as_echo "PATH: $as_dir" 1870 done 1871IFS=$as_save_IFS 1872 1873} >&5 1874 1875cat >&5 <<_ACEOF 1876 1877 1878## ----------- ## 1879## Core tests. ## 1880## ----------- ## 1881 1882_ACEOF 1883 1884 1885# Keep a trace of the command line. 1886# Strip out --no-create and --no-recursion so they do not pile up. 1887# Strip out --silent because we don't want to record it for future runs. 1888# Also quote any args containing shell meta-characters. 1889# Make two passes to allow for proper duplicate-argument suppression. 1890ac_configure_args= 1891ac_configure_args0= 1892ac_configure_args1= 1893ac_must_keep_next=false 1894for ac_pass in 1 2 1895do 1896 for ac_arg 1897 do 1898 case $ac_arg in 1899 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1900 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1901 | -silent | --silent | --silen | --sile | --sil) 1902 continue ;; 1903 *\'*) 1904 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1905 esac 1906 case $ac_pass in 1907 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1908 2) 1909 as_fn_append ac_configure_args1 " '$ac_arg'" 1910 if test $ac_must_keep_next = true; then 1911 ac_must_keep_next=false # Got value, back to normal. 1912 else 1913 case $ac_arg in 1914 *=* | --config-cache | -C | -disable-* | --disable-* \ 1915 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1916 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1917 | -with-* | --with-* | -without-* | --without-* | --x) 1918 case "$ac_configure_args0 " in 1919 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1920 esac 1921 ;; 1922 -* ) ac_must_keep_next=true ;; 1923 esac 1924 fi 1925 as_fn_append ac_configure_args " '$ac_arg'" 1926 ;; 1927 esac 1928 done 1929done 1930{ ac_configure_args0=; unset ac_configure_args0;} 1931{ ac_configure_args1=; unset ac_configure_args1;} 1932 1933# When interrupted or exit'd, cleanup temporary files, and complete 1934# config.log. We remove comments because anyway the quotes in there 1935# would cause problems or look ugly. 1936# WARNING: Use '\'' to represent an apostrophe within the trap. 1937# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1938trap 'exit_status=$? 1939 # Save into config.log some information that might help in debugging. 1940 { 1941 echo 1942 1943 cat <<\_ASBOX 1944## ---------------- ## 1945## Cache variables. ## 1946## ---------------- ## 1947_ASBOX 1948 echo 1949 # The following way of writing the cache mishandles newlines in values, 1950( 1951 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1952 eval ac_val=\$$ac_var 1953 case $ac_val in #( 1954 *${as_nl}*) 1955 case $ac_var in #( 1956 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1957$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1958 esac 1959 case $ac_var in #( 1960 _ | IFS | as_nl) ;; #( 1961 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1962 *) { eval $ac_var=; unset $ac_var;} ;; 1963 esac ;; 1964 esac 1965 done 1966 (set) 2>&1 | 1967 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1968 *${as_nl}ac_space=\ *) 1969 sed -n \ 1970 "s/'\''/'\''\\\\'\'''\''/g; 1971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1972 ;; #( 1973 *) 1974 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1975 ;; 1976 esac | 1977 sort 1978) 1979 echo 1980 1981 cat <<\_ASBOX 1982## ----------------- ## 1983## Output variables. ## 1984## ----------------- ## 1985_ASBOX 1986 echo 1987 for ac_var in $ac_subst_vars 1988 do 1989 eval ac_val=\$$ac_var 1990 case $ac_val in 1991 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1992 esac 1993 $as_echo "$ac_var='\''$ac_val'\''" 1994 done | sort 1995 echo 1996 1997 if test -n "$ac_subst_files"; then 1998 cat <<\_ASBOX 1999## ------------------- ## 2000## File substitutions. ## 2001## ------------------- ## 2002_ASBOX 2003 echo 2004 for ac_var in $ac_subst_files 2005 do 2006 eval ac_val=\$$ac_var 2007 case $ac_val in 2008 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2009 esac 2010 $as_echo "$ac_var='\''$ac_val'\''" 2011 done | sort 2012 echo 2013 fi 2014 2015 if test -s confdefs.h; then 2016 cat <<\_ASBOX 2017## ----------- ## 2018## confdefs.h. ## 2019## ----------- ## 2020_ASBOX 2021 echo 2022 cat confdefs.h 2023 echo 2024 fi 2025 test "$ac_signal" != 0 && 2026 $as_echo "$as_me: caught signal $ac_signal" 2027 $as_echo "$as_me: exit $exit_status" 2028 } >&5 2029 rm -f core *.core core.conftest.* && 2030 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2031 exit $exit_status 2032' 0 2033for ac_signal in 1 2 13 15; do 2034 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2035done 2036ac_signal=0 2037 2038# confdefs.h avoids OS command line length limits that DEFS can exceed. 2039rm -f -r conftest* confdefs.h 2040 2041$as_echo "/* confdefs.h */" > confdefs.h 2042 2043# Predefined preprocessor variables. 2044 2045cat >>confdefs.h <<_ACEOF 2046#define PACKAGE_NAME "$PACKAGE_NAME" 2047_ACEOF 2048 2049cat >>confdefs.h <<_ACEOF 2050#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2051_ACEOF 2052 2053cat >>confdefs.h <<_ACEOF 2054#define PACKAGE_VERSION "$PACKAGE_VERSION" 2055_ACEOF 2056 2057cat >>confdefs.h <<_ACEOF 2058#define PACKAGE_STRING "$PACKAGE_STRING" 2059_ACEOF 2060 2061cat >>confdefs.h <<_ACEOF 2062#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2063_ACEOF 2064 2065cat >>confdefs.h <<_ACEOF 2066#define PACKAGE_URL "$PACKAGE_URL" 2067_ACEOF 2068 2069 2070# Let the site file select an alternate cache file if it wants to. 2071# Prefer an explicitly selected file to automatically selected ones. 2072ac_site_file1=NONE 2073ac_site_file2=NONE 2074if test -n "$CONFIG_SITE"; then 2075 ac_site_file1=$CONFIG_SITE 2076elif test "x$prefix" != xNONE; then 2077 ac_site_file1=$prefix/share/config.site 2078 ac_site_file2=$prefix/etc/config.site 2079else 2080 ac_site_file1=$ac_default_prefix/share/config.site 2081 ac_site_file2=$ac_default_prefix/etc/config.site 2082fi 2083for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2084do 2085 test "x$ac_site_file" = xNONE && continue 2086 if test -r "$ac_site_file"; then 2087 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2088$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2089 sed 's/^/| /' "$ac_site_file" >&5 2090 . "$ac_site_file" 2091 fi 2092done 2093 2094if test -r "$cache_file"; then 2095 # Some versions of bash will fail to source /dev/null (special 2096 # files actually), so we avoid doing that. 2097 if test -f "$cache_file"; then 2098 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2099$as_echo "$as_me: loading cache $cache_file" >&6;} 2100 case $cache_file in 2101 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2102 *) . "./$cache_file";; 2103 esac 2104 fi 2105else 2106 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2107$as_echo "$as_me: creating cache $cache_file" >&6;} 2108 >$cache_file 2109fi 2110 2111# Check that the precious variables saved in the cache have kept the same 2112# value. 2113ac_cache_corrupted=false 2114for ac_var in $ac_precious_vars; do 2115 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2116 eval ac_new_set=\$ac_env_${ac_var}_set 2117 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2118 eval ac_new_val=\$ac_env_${ac_var}_value 2119 case $ac_old_set,$ac_new_set in 2120 set,) 2121 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2122$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2123 ac_cache_corrupted=: ;; 2124 ,set) 2125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2126$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2127 ac_cache_corrupted=: ;; 2128 ,);; 2129 *) 2130 if test "x$ac_old_val" != "x$ac_new_val"; then 2131 # differences in whitespace do not lead to failure. 2132 ac_old_val_w=`echo x $ac_old_val` 2133 ac_new_val_w=`echo x $ac_new_val` 2134 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2135 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2136$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2137 ac_cache_corrupted=: 2138 else 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2140$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2141 eval $ac_var=\$ac_old_val 2142 fi 2143 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2144$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2145 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2146$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2147 fi;; 2148 esac 2149 # Pass precious variables to config.status. 2150 if test "$ac_new_set" = set; then 2151 case $ac_new_val in 2152 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2153 *) ac_arg=$ac_var=$ac_new_val ;; 2154 esac 2155 case " $ac_configure_args " in 2156 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2157 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2158 esac 2159 fi 2160done 2161if $ac_cache_corrupted; then 2162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2165$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2166 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2167fi 2168## -------------------- ## 2169## Main body of script. ## 2170## -------------------- ## 2171 2172ac_ext=c 2173ac_cpp='$CPP $CPPFLAGS' 2174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2176ac_compiler_gnu=$ac_cv_c_compiler_gnu 2177 2178 2179 2180 2181 2182 2183 2184# Default to --enable-multilib 2185# Check whether --enable-multilib was given. 2186if test "${enable_multilib+set}" = set; then : 2187 enableval=$enable_multilib; case "$enableval" in 2188 yes) multilib=yes ;; 2189 no) multilib=no ;; 2190 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;; 2191 esac 2192else 2193 multilib=yes 2194fi 2195 2196 2197# We may get other options which we leave undocumented: 2198# --with-target-subdir, --with-multisrctop, --with-multisubdir 2199# See config-ml.in if you want the gory details. 2200 2201if test "$srcdir" = "."; then 2202 if test "$with_target_subdir" != "."; then 2203 multi_basedir="$srcdir/$with_multisrctop../.." 2204 else 2205 multi_basedir="$srcdir/$with_multisrctop.." 2206 fi 2207else 2208 multi_basedir="$srcdir/.." 2209fi 2210 2211 2212# Even if the default multilib is not a cross compilation, 2213# it may be that some of the other multilibs are. 2214if test $cross_compiling = no && test $multilib = yes \ 2215 && test "x${with_multisubdir}" != x ; then 2216 cross_compiling=maybe 2217fi 2218 2219ac_config_commands="$ac_config_commands default-1" 2220 2221 2222ac_aux_dir= 2223for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2224 for ac_t in install-sh install.sh shtool; do 2225 if test -f "$ac_dir/$ac_t"; then 2226 ac_aux_dir=$ac_dir 2227 ac_install_sh="$ac_aux_dir/$ac_t -c" 2228 break 2 2229 fi 2230 done 2231done 2232if test -z "$ac_aux_dir"; then 2233 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2234fi 2235 2236# These three variables are undocumented and unsupported, 2237# and are intended to be withdrawn in a future Autoconf release. 2238# They can cause serious problems if a builder's source tree is in a directory 2239# whose full name contains unusual characters. 2240ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2241ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2242ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2243 2244 2245# Make sure we can run config.sub. 2246$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2247 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2248 2249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2250$as_echo_n "checking build system type... " >&6; } 2251if test "${ac_cv_build+set}" = set; then : 2252 $as_echo_n "(cached) " >&6 2253else 2254 ac_build_alias=$build_alias 2255test "x$ac_build_alias" = x && 2256 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2257test "x$ac_build_alias" = x && 2258 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2259ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2260 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2261 2262fi 2263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2264$as_echo "$ac_cv_build" >&6; } 2265case $ac_cv_build in 2266*-*-*) ;; 2267*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2268esac 2269build=$ac_cv_build 2270ac_save_IFS=$IFS; IFS='-' 2271set x $ac_cv_build 2272shift 2273build_cpu=$1 2274build_vendor=$2 2275shift; shift 2276# Remember, the first character of IFS is used to create $*, 2277# except with old shells: 2278build_os=$* 2279IFS=$ac_save_IFS 2280case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2281 2282 2283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2284$as_echo_n "checking host system type... " >&6; } 2285if test "${ac_cv_host+set}" = set; then : 2286 $as_echo_n "(cached) " >&6 2287else 2288 if test "x$host_alias" = x; then 2289 ac_cv_host=$ac_cv_build 2290else 2291 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2292 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2293fi 2294 2295fi 2296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2297$as_echo "$ac_cv_host" >&6; } 2298case $ac_cv_host in 2299*-*-*) ;; 2300*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2301esac 2302host=$ac_cv_host 2303ac_save_IFS=$IFS; IFS='-' 2304set x $ac_cv_host 2305shift 2306host_cpu=$1 2307host_vendor=$2 2308shift; shift 2309# Remember, the first character of IFS is used to create $*, 2310# except with old shells: 2311host_os=$* 2312IFS=$ac_save_IFS 2313case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2314 2315 2316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2317$as_echo_n "checking target system type... " >&6; } 2318if test "${ac_cv_target+set}" = set; then : 2319 $as_echo_n "(cached) " >&6 2320else 2321 if test "x$target_alias" = x; then 2322 ac_cv_target=$ac_cv_host 2323else 2324 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2325 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2326fi 2327 2328fi 2329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2330$as_echo "$ac_cv_target" >&6; } 2331case $ac_cv_target in 2332*-*-*) ;; 2333*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2334esac 2335target=$ac_cv_target 2336ac_save_IFS=$IFS; IFS='-' 2337set x $ac_cv_target 2338shift 2339target_cpu=$1 2340target_vendor=$2 2341shift; shift 2342# Remember, the first character of IFS is used to create $*, 2343# except with old shells: 2344target_os=$* 2345IFS=$ac_save_IFS 2346case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2347 2348 2349# The aliases save the names the user supplied, while $host etc. 2350# will get canonicalized. 2351test -n "$target_alias" && 2352 test "$program_prefix$program_suffix$program_transform_name" = \ 2353 NONENONEs,x,x, && 2354 program_prefix=${target_alias}- 2355 2356 2357# This works around an automake problem. 2358mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs" 2359 2360 2361am__api_version='1.11' 2362 2363# Find a good install program. We prefer a C program (faster), 2364# so one script is as good as another. But avoid the broken or 2365# incompatible versions: 2366# SysV /etc/install, /usr/sbin/install 2367# SunOS /usr/etc/install 2368# IRIX /sbin/install 2369# AIX /bin/install 2370# AmigaOS /C/install, which installs bootblocks on floppy discs 2371# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2372# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2373# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2374# OS/2's system install, which has a completely different semantic 2375# ./install, which can be erroneously created by make from ./install.sh. 2376# Reject install programs that cannot install multiple files. 2377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2378$as_echo_n "checking for a BSD-compatible install... " >&6; } 2379if test -z "$INSTALL"; then 2380if test "${ac_cv_path_install+set}" = set; then : 2381 $as_echo_n "(cached) " >&6 2382else 2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2384for as_dir in $PATH 2385do 2386 IFS=$as_save_IFS 2387 test -z "$as_dir" && as_dir=. 2388 # Account for people who put trailing slashes in PATH elements. 2389case $as_dir/ in #(( 2390 ./ | .// | /[cC]/* | \ 2391 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2392 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2393 /usr/ucb/* ) ;; 2394 *) 2395 # OSF1 and SCO ODT 3.0 have their own names for install. 2396 # Don't use installbsd from OSF since it installs stuff as root 2397 # by default. 2398 for ac_prog in ginstall scoinst install; do 2399 for ac_exec_ext in '' $ac_executable_extensions; do 2400 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2401 if test $ac_prog = install && 2402 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2403 # AIX install. It has an incompatible calling convention. 2404 : 2405 elif test $ac_prog = install && 2406 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2407 # program-specific install script used by HP pwplus--don't use. 2408 : 2409 else 2410 rm -rf conftest.one conftest.two conftest.dir 2411 echo one > conftest.one 2412 echo two > conftest.two 2413 mkdir conftest.dir 2414 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2415 test -s conftest.one && test -s conftest.two && 2416 test -s conftest.dir/conftest.one && 2417 test -s conftest.dir/conftest.two 2418 then 2419 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2420 break 3 2421 fi 2422 fi 2423 fi 2424 done 2425 done 2426 ;; 2427esac 2428 2429 done 2430IFS=$as_save_IFS 2431 2432rm -rf conftest.one conftest.two conftest.dir 2433 2434fi 2435 if test "${ac_cv_path_install+set}" = set; then 2436 INSTALL=$ac_cv_path_install 2437 else 2438 # As a last resort, use the slow shell script. Don't cache a 2439 # value for INSTALL within a source directory, because that will 2440 # break other packages using the cache if that directory is 2441 # removed, or if the value is a relative name. 2442 INSTALL=$ac_install_sh 2443 fi 2444fi 2445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2446$as_echo "$INSTALL" >&6; } 2447 2448# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2449# It thinks the first close brace ends the variable substitution. 2450test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2451 2452test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2453 2454test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2455 2456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2457$as_echo_n "checking whether build environment is sane... " >&6; } 2458# Just in case 2459sleep 1 2460echo timestamp > conftest.file 2461# Reject unsafe characters in $srcdir or the absolute working directory 2462# name. Accept space and tab only in the latter. 2463am_lf=' 2464' 2465case `pwd` in 2466 *[\\\"\#\$\&\'\`$am_lf]*) 2467 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2468esac 2469case $srcdir in 2470 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2471 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2472esac 2473 2474# Do `set' in a subshell so we don't clobber the current shell's 2475# arguments. Must try -L first in case configure is actually a 2476# symlink; some systems play weird games with the mod time of symlinks 2477# (eg FreeBSD returns the mod time of the symlink's containing 2478# directory). 2479if ( 2480 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2481 if test "$*" = "X"; then 2482 # -L didn't work. 2483 set X `ls -t "$srcdir/configure" conftest.file` 2484 fi 2485 rm -f conftest.file 2486 if test "$*" != "X $srcdir/configure conftest.file" \ 2487 && test "$*" != "X conftest.file $srcdir/configure"; then 2488 2489 # If neither matched, then we have a broken ls. This can happen 2490 # if, for instance, CONFIG_SHELL is bash and it inherits a 2491 # broken ls alias from the environment. This has actually 2492 # happened. Such a system could not be considered "sane". 2493 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2494alias in your environment" "$LINENO" 5 2495 fi 2496 2497 test "$2" = conftest.file 2498 ) 2499then 2500 # Ok. 2501 : 2502else 2503 as_fn_error "newly created file is older than distributed files! 2504Check your system clock" "$LINENO" 5 2505fi 2506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2507$as_echo "yes" >&6; } 2508test "$program_prefix" != NONE && 2509 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2510# Use a double $ so make ignores it. 2511test "$program_suffix" != NONE && 2512 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2513# Double any \ or $. 2514# By default was `s,x,x', remove it if useless. 2515ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2516program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2517 2518# expand $ac_aux_dir to an absolute path 2519am_aux_dir=`cd $ac_aux_dir && pwd` 2520 2521if test x"${MISSING+set}" != xset; then 2522 case $am_aux_dir in 2523 *\ * | *\ *) 2524 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2525 *) 2526 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2527 esac 2528fi 2529# Use eval to expand $SHELL 2530if eval "$MISSING --run true"; then 2531 am_missing_run="$MISSING --run " 2532else 2533 am_missing_run= 2534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2535$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2536fi 2537 2538if test x"${install_sh}" != xset; then 2539 case $am_aux_dir in 2540 *\ * | *\ *) 2541 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2542 *) 2543 install_sh="\${SHELL} $am_aux_dir/install-sh" 2544 esac 2545fi 2546 2547# Installed binaries are usually stripped using `strip' when the user 2548# run `make install-strip'. However `strip' might not be the right 2549# tool to use in cross-compilation environments, therefore Automake 2550# will honor the `STRIP' environment variable to overrule this program. 2551if test "$cross_compiling" != no; then 2552 if test -n "$ac_tool_prefix"; then 2553 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2554set dummy ${ac_tool_prefix}strip; ac_word=$2 2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2556$as_echo_n "checking for $ac_word... " >&6; } 2557if test "${ac_cv_prog_STRIP+set}" = set; then : 2558 $as_echo_n "(cached) " >&6 2559else 2560 if test -n "$STRIP"; then 2561 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2562else 2563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2564for as_dir in $PATH 2565do 2566 IFS=$as_save_IFS 2567 test -z "$as_dir" && as_dir=. 2568 for ac_exec_ext in '' $ac_executable_extensions; do 2569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2570 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2572 break 2 2573 fi 2574done 2575 done 2576IFS=$as_save_IFS 2577 2578fi 2579fi 2580STRIP=$ac_cv_prog_STRIP 2581if test -n "$STRIP"; then 2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2583$as_echo "$STRIP" >&6; } 2584else 2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2586$as_echo "no" >&6; } 2587fi 2588 2589 2590fi 2591if test -z "$ac_cv_prog_STRIP"; then 2592 ac_ct_STRIP=$STRIP 2593 # Extract the first word of "strip", so it can be a program name with args. 2594set dummy strip; ac_word=$2 2595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2596$as_echo_n "checking for $ac_word... " >&6; } 2597if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2598 $as_echo_n "(cached) " >&6 2599else 2600 if test -n "$ac_ct_STRIP"; then 2601 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2602else 2603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2604for as_dir in $PATH 2605do 2606 IFS=$as_save_IFS 2607 test -z "$as_dir" && as_dir=. 2608 for ac_exec_ext in '' $ac_executable_extensions; do 2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2610 ac_cv_prog_ac_ct_STRIP="strip" 2611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2612 break 2 2613 fi 2614done 2615 done 2616IFS=$as_save_IFS 2617 2618fi 2619fi 2620ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2621if test -n "$ac_ct_STRIP"; then 2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2623$as_echo "$ac_ct_STRIP" >&6; } 2624else 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2626$as_echo "no" >&6; } 2627fi 2628 2629 if test "x$ac_ct_STRIP" = x; then 2630 STRIP=":" 2631 else 2632 case $cross_compiling:$ac_tool_warned in 2633yes:) 2634{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2636ac_tool_warned=yes ;; 2637esac 2638 STRIP=$ac_ct_STRIP 2639 fi 2640else 2641 STRIP="$ac_cv_prog_STRIP" 2642fi 2643 2644fi 2645INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2646 2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2648$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2649if test -z "$MKDIR_P"; then 2650 if test "${ac_cv_path_mkdir+set}" = set; then : 2651 $as_echo_n "(cached) " >&6 2652else 2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2654for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2655do 2656 IFS=$as_save_IFS 2657 test -z "$as_dir" && as_dir=. 2658 for ac_prog in mkdir gmkdir; do 2659 for ac_exec_ext in '' $ac_executable_extensions; do 2660 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2661 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2662 'mkdir (GNU coreutils) '* | \ 2663 'mkdir (coreutils) '* | \ 2664 'mkdir (fileutils) '4.1*) 2665 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2666 break 3;; 2667 esac 2668 done 2669 done 2670 done 2671IFS=$as_save_IFS 2672 2673fi 2674 2675 if test "${ac_cv_path_mkdir+set}" = set; then 2676 MKDIR_P="$ac_cv_path_mkdir -p" 2677 else 2678 # As a last resort, use the slow shell script. Don't cache a 2679 # value for MKDIR_P within a source directory, because that will 2680 # break other packages using the cache if that directory is 2681 # removed, or if the value is a relative name. 2682 test -d ./--version && rmdir ./--version 2683 MKDIR_P="$ac_install_sh -d" 2684 fi 2685fi 2686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2687$as_echo "$MKDIR_P" >&6; } 2688 2689mkdir_p="$MKDIR_P" 2690case $mkdir_p in 2691 [\\/$]* | ?:[\\/]*) ;; 2692 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2693esac 2694 2695for ac_prog in gawk mawk nawk awk 2696do 2697 # Extract the first word of "$ac_prog", so it can be a program name with args. 2698set dummy $ac_prog; ac_word=$2 2699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2700$as_echo_n "checking for $ac_word... " >&6; } 2701if test "${ac_cv_prog_AWK+set}" = set; then : 2702 $as_echo_n "(cached) " >&6 2703else 2704 if test -n "$AWK"; then 2705 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2706else 2707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2708for as_dir in $PATH 2709do 2710 IFS=$as_save_IFS 2711 test -z "$as_dir" && as_dir=. 2712 for ac_exec_ext in '' $ac_executable_extensions; do 2713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2714 ac_cv_prog_AWK="$ac_prog" 2715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2716 break 2 2717 fi 2718done 2719 done 2720IFS=$as_save_IFS 2721 2722fi 2723fi 2724AWK=$ac_cv_prog_AWK 2725if test -n "$AWK"; then 2726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2727$as_echo "$AWK" >&6; } 2728else 2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2730$as_echo "no" >&6; } 2731fi 2732 2733 2734 test -n "$AWK" && break 2735done 2736 2737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2738$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2739set x ${MAKE-make} 2740ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2741if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2742 $as_echo_n "(cached) " >&6 2743else 2744 cat >conftest.make <<\_ACEOF 2745SHELL = /bin/sh 2746all: 2747 @echo '@@@%%%=$(MAKE)=@@@%%%' 2748_ACEOF 2749# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2750case `${MAKE-make} -f conftest.make 2>/dev/null` in 2751 *@@@%%%=?*=@@@%%%*) 2752 eval ac_cv_prog_make_${ac_make}_set=yes;; 2753 *) 2754 eval ac_cv_prog_make_${ac_make}_set=no;; 2755esac 2756rm -f conftest.make 2757fi 2758if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2760$as_echo "yes" >&6; } 2761 SET_MAKE= 2762else 2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2764$as_echo "no" >&6; } 2765 SET_MAKE="MAKE=${MAKE-make}" 2766fi 2767 2768rm -rf .tst 2>/dev/null 2769mkdir .tst 2>/dev/null 2770if test -d .tst; then 2771 am__leading_dot=. 2772else 2773 am__leading_dot=_ 2774fi 2775rmdir .tst 2>/dev/null 2776 2777if test "`cd $srcdir && pwd`" != "`pwd`"; then 2778 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2779 # is not polluted with repeated "-I." 2780 am__isrc=' -I$(srcdir)' 2781 # test to see if srcdir already configured 2782 if test -f $srcdir/config.status; then 2783 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2784 fi 2785fi 2786 2787# test whether we have cygpath 2788if test -z "$CYGPATH_W"; then 2789 if (cygpath --version) >/dev/null 2>/dev/null; then 2790 CYGPATH_W='cygpath -w' 2791 else 2792 CYGPATH_W=echo 2793 fi 2794fi 2795 2796 2797# Define the identity of the package. 2798 PACKAGE=zlib 2799 VERSION=1.1.4 2800 2801 2802cat >>confdefs.h <<_ACEOF 2803#define PACKAGE "$PACKAGE" 2804_ACEOF 2805 2806 2807cat >>confdefs.h <<_ACEOF 2808#define VERSION "$VERSION" 2809_ACEOF 2810 2811# Some tools Automake needs. 2812 2813ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2814 2815 2816AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2817 2818 2819AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2820 2821 2822AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2823 2824 2825MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2826 2827# We need awk for the "check" target. The system "awk" is bad on 2828# some platforms. 2829# Always define AMTAR for backward compatibility. 2830 2831AMTAR=${AMTAR-"${am_missing_run}tar"} 2832 2833am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2834 2835 2836 2837 2838 2839 2840 2841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2842$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2843 # Check whether --enable-maintainer-mode was given. 2844if test "${enable_maintainer_mode+set}" = set; then : 2845 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2846else 2847 USE_MAINTAINER_MODE=no 2848fi 2849 2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2851$as_echo "$USE_MAINTAINER_MODE" >&6; } 2852 if test $USE_MAINTAINER_MODE = yes; then 2853 MAINTAINER_MODE_TRUE= 2854 MAINTAINER_MODE_FALSE='#' 2855else 2856 MAINTAINER_MODE_TRUE='#' 2857 MAINTAINER_MODE_FALSE= 2858fi 2859 2860 MAINT=$MAINTAINER_MODE_TRUE 2861 2862 2863 2864 2865# Check whether --with-target-subdir was given. 2866if test "${with_target_subdir+set}" = set; then : 2867 withval=$with_target_subdir; 2868fi 2869 2870 2871if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then 2872 COMPPATH=. 2873else 2874 COMPPATH=.. 2875fi 2876 2877 2878 2879# Check whether --with-cross-host was given. 2880if test "${with_cross_host+set}" = set; then : 2881 withval=$with_cross_host; 2882fi 2883 2884 2885# Check whether --enable-multilib was given. 2886if test "${enable_multilib+set}" = set; then : 2887 enableval=$enable_multilib; case "${enableval}" in 2888 yes) multilib=yes ;; 2889 no) multilib=no ;; 2890 *) as_fn_error "bad value ${enableval} for multilib option" "$LINENO" 5 ;; 2891 esac 2892else 2893 test -z "$with_target_subdir" && multilib=no || multilib=yes 2894fi 2895 2896 2897# Check whether --with-system-zlib was given. 2898if test "${with_system_zlib+set}" = set; then : 2899 withval=$with_system_zlib; 2900fi 2901 2902 2903# Make sure we don't test executables when making cross-tools. 2904 2905 2906# The same as in boehm-gc and libstdc++. Have to borrow it from there. 2907# We must force CC to /not/ be precious variables; otherwise 2908# the wrong, non-multilib-adjusted value will be used in multilibs. 2909# As a side effect, we have to subst CFLAGS ourselves. 2910 2911 2912 2913ac_ext=c 2914ac_cpp='$CPP $CPPFLAGS' 2915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2917ac_compiler_gnu=$ac_cv_c_compiler_gnu 2918if test -n "$ac_tool_prefix"; then 2919 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2920set dummy ${ac_tool_prefix}gcc; ac_word=$2 2921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2922$as_echo_n "checking for $ac_word... " >&6; } 2923if test "${ac_cv_prog_CC+set}" = set; then : 2924 $as_echo_n "(cached) " >&6 2925else 2926 if test -n "$CC"; then 2927 ac_cv_prog_CC="$CC" # Let the user override the test. 2928else 2929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2930for as_dir in $PATH 2931do 2932 IFS=$as_save_IFS 2933 test -z "$as_dir" && as_dir=. 2934 for ac_exec_ext in '' $ac_executable_extensions; do 2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2936 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2938 break 2 2939 fi 2940done 2941 done 2942IFS=$as_save_IFS 2943 2944fi 2945fi 2946CC=$ac_cv_prog_CC 2947if test -n "$CC"; then 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2949$as_echo "$CC" >&6; } 2950else 2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2952$as_echo "no" >&6; } 2953fi 2954 2955 2956fi 2957if test -z "$ac_cv_prog_CC"; then 2958 ac_ct_CC=$CC 2959 # Extract the first word of "gcc", so it can be a program name with args. 2960set dummy gcc; ac_word=$2 2961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2962$as_echo_n "checking for $ac_word... " >&6; } 2963if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2964 $as_echo_n "(cached) " >&6 2965else 2966 if test -n "$ac_ct_CC"; then 2967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2968else 2969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2970for as_dir in $PATH 2971do 2972 IFS=$as_save_IFS 2973 test -z "$as_dir" && as_dir=. 2974 for ac_exec_ext in '' $ac_executable_extensions; do 2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2976 ac_cv_prog_ac_ct_CC="gcc" 2977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2978 break 2 2979 fi 2980done 2981 done 2982IFS=$as_save_IFS 2983 2984fi 2985fi 2986ac_ct_CC=$ac_cv_prog_ac_ct_CC 2987if test -n "$ac_ct_CC"; then 2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2989$as_echo "$ac_ct_CC" >&6; } 2990else 2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2992$as_echo "no" >&6; } 2993fi 2994 2995 if test "x$ac_ct_CC" = x; then 2996 CC="" 2997 else 2998 case $cross_compiling:$ac_tool_warned in 2999yes:) 3000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3002ac_tool_warned=yes ;; 3003esac 3004 CC=$ac_ct_CC 3005 fi 3006else 3007 CC="$ac_cv_prog_CC" 3008fi 3009 3010if test -z "$CC"; then 3011 if test -n "$ac_tool_prefix"; then 3012 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3013set dummy ${ac_tool_prefix}cc; ac_word=$2 3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3015$as_echo_n "checking for $ac_word... " >&6; } 3016if test "${ac_cv_prog_CC+set}" = set; then : 3017 $as_echo_n "(cached) " >&6 3018else 3019 if test -n "$CC"; then 3020 ac_cv_prog_CC="$CC" # Let the user override the test. 3021else 3022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3023for as_dir in $PATH 3024do 3025 IFS=$as_save_IFS 3026 test -z "$as_dir" && as_dir=. 3027 for ac_exec_ext in '' $ac_executable_extensions; do 3028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3029 ac_cv_prog_CC="${ac_tool_prefix}cc" 3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3031 break 2 3032 fi 3033done 3034 done 3035IFS=$as_save_IFS 3036 3037fi 3038fi 3039CC=$ac_cv_prog_CC 3040if test -n "$CC"; then 3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3042$as_echo "$CC" >&6; } 3043else 3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3045$as_echo "no" >&6; } 3046fi 3047 3048 3049 fi 3050fi 3051if test -z "$CC"; then 3052 # Extract the first word of "cc", so it can be a program name with args. 3053set dummy cc; ac_word=$2 3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3055$as_echo_n "checking for $ac_word... " >&6; } 3056if test "${ac_cv_prog_CC+set}" = set; then : 3057 $as_echo_n "(cached) " >&6 3058else 3059 if test -n "$CC"; then 3060 ac_cv_prog_CC="$CC" # Let the user override the test. 3061else 3062 ac_prog_rejected=no 3063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3064for as_dir in $PATH 3065do 3066 IFS=$as_save_IFS 3067 test -z "$as_dir" && as_dir=. 3068 for ac_exec_ext in '' $ac_executable_extensions; do 3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3070 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3071 ac_prog_rejected=yes 3072 continue 3073 fi 3074 ac_cv_prog_CC="cc" 3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3076 break 2 3077 fi 3078done 3079 done 3080IFS=$as_save_IFS 3081 3082if test $ac_prog_rejected = yes; then 3083 # We found a bogon in the path, so make sure we never use it. 3084 set dummy $ac_cv_prog_CC 3085 shift 3086 if test $# != 0; then 3087 # We chose a different compiler from the bogus one. 3088 # However, it has the same basename, so the bogon will be chosen 3089 # first if we set CC to just the basename; use the full file name. 3090 shift 3091 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3092 fi 3093fi 3094fi 3095fi 3096CC=$ac_cv_prog_CC 3097if test -n "$CC"; then 3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3099$as_echo "$CC" >&6; } 3100else 3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3102$as_echo "no" >&6; } 3103fi 3104 3105 3106fi 3107if test -z "$CC"; then 3108 if test -n "$ac_tool_prefix"; then 3109 for ac_prog in cl.exe 3110 do 3111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3112set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3114$as_echo_n "checking for $ac_word... " >&6; } 3115if test "${ac_cv_prog_CC+set}" = set; then : 3116 $as_echo_n "(cached) " >&6 3117else 3118 if test -n "$CC"; then 3119 ac_cv_prog_CC="$CC" # Let the user override the test. 3120else 3121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3122for as_dir in $PATH 3123do 3124 IFS=$as_save_IFS 3125 test -z "$as_dir" && as_dir=. 3126 for ac_exec_ext in '' $ac_executable_extensions; do 3127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3128 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3130 break 2 3131 fi 3132done 3133 done 3134IFS=$as_save_IFS 3135 3136fi 3137fi 3138CC=$ac_cv_prog_CC 3139if test -n "$CC"; then 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3141$as_echo "$CC" >&6; } 3142else 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3144$as_echo "no" >&6; } 3145fi 3146 3147 3148 test -n "$CC" && break 3149 done 3150fi 3151if test -z "$CC"; then 3152 ac_ct_CC=$CC 3153 for ac_prog in cl.exe 3154do 3155 # Extract the first word of "$ac_prog", so it can be a program name with args. 3156set dummy $ac_prog; ac_word=$2 3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3158$as_echo_n "checking for $ac_word... " >&6; } 3159if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3160 $as_echo_n "(cached) " >&6 3161else 3162 if test -n "$ac_ct_CC"; then 3163 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3164else 3165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3166for as_dir in $PATH 3167do 3168 IFS=$as_save_IFS 3169 test -z "$as_dir" && as_dir=. 3170 for ac_exec_ext in '' $ac_executable_extensions; do 3171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3172 ac_cv_prog_ac_ct_CC="$ac_prog" 3173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3174 break 2 3175 fi 3176done 3177 done 3178IFS=$as_save_IFS 3179 3180fi 3181fi 3182ac_ct_CC=$ac_cv_prog_ac_ct_CC 3183if test -n "$ac_ct_CC"; then 3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3185$as_echo "$ac_ct_CC" >&6; } 3186else 3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3188$as_echo "no" >&6; } 3189fi 3190 3191 3192 test -n "$ac_ct_CC" && break 3193done 3194 3195 if test "x$ac_ct_CC" = x; then 3196 CC="" 3197 else 3198 case $cross_compiling:$ac_tool_warned in 3199yes:) 3200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3202ac_tool_warned=yes ;; 3203esac 3204 CC=$ac_ct_CC 3205 fi 3206fi 3207 3208fi 3209 3210 3211test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3213as_fn_error "no acceptable C compiler found in \$PATH 3214See \`config.log' for more details." "$LINENO" 5; } 3215 3216# Provide some information about the compiler. 3217$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3218set X $ac_compile 3219ac_compiler=$2 3220for ac_option in --version -v -V -qversion; do 3221 { { ac_try="$ac_compiler $ac_option >&5" 3222case "(($ac_try" in 3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3224 *) ac_try_echo=$ac_try;; 3225esac 3226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3227$as_echo "$ac_try_echo"; } >&5 3228 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3229 ac_status=$? 3230 if test -s conftest.err; then 3231 sed '10a\ 3232... rest of stderr output deleted ... 3233 10q' conftest.err >conftest.er1 3234 cat conftest.er1 >&5 3235 rm -f conftest.er1 conftest.err 3236 fi 3237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3238 test $ac_status = 0; } 3239done 3240 3241cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3242/* end confdefs.h. */ 3243 3244int 3245main () 3246{ 3247 3248 ; 3249 return 0; 3250} 3251_ACEOF 3252# FIXME: Cleanup? 3253if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 3254 (eval $ac_link) 2>&5 3255 ac_status=$? 3256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3257 test $ac_status = 0; }; then : 3258 gcc_no_link=no 3259else 3260 gcc_no_link=yes 3261fi 3262if test x$gcc_no_link = xyes; then 3263 # Setting cross_compile will disable run tests; it will 3264 # also disable AC_CHECK_FILE but that's generally 3265 # correct if we can't link. 3266 cross_compiling=yes 3267 EXEEXT= 3268else 3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3270/* end confdefs.h. */ 3271 3272int 3273main () 3274{ 3275 3276 ; 3277 return 0; 3278} 3279_ACEOF 3280ac_clean_files_save=$ac_clean_files 3281ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 3282# Try to create an executable without -o first, disregard a.out. 3283# It will help us diagnose broken compilers, and finding out an intuition 3284# of exeext. 3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3286$as_echo_n "checking for C compiler default output file name... " >&6; } 3287ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3288 3289# The possible output files: 3290ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3291 3292ac_rmfiles= 3293for ac_file in $ac_files 3294do 3295 case $ac_file in 3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3297 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3298 esac 3299done 3300rm -f $ac_rmfiles 3301 3302if { { ac_try="$ac_link_default" 3303case "(($ac_try" in 3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3305 *) ac_try_echo=$ac_try;; 3306esac 3307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3308$as_echo "$ac_try_echo"; } >&5 3309 (eval "$ac_link_default") 2>&5 3310 ac_status=$? 3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3312 test $ac_status = 0; }; then : 3313 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3314# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3315# in a Makefile. We should not override ac_cv_exeext if it was cached, 3316# so that the user can short-circuit this test for compilers unknown to 3317# Autoconf. 3318for ac_file in $ac_files '' 3319do 3320 test -f "$ac_file" || continue 3321 case $ac_file in 3322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3323 ;; 3324 [ab].out ) 3325 # We found the default executable, but exeext='' is most 3326 # certainly right. 3327 break;; 3328 *.* ) 3329 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3330 then :; else 3331 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3332 fi 3333 # We set ac_cv_exeext here because the later test for it is not 3334 # safe: cross compilers may not add the suffix if given an `-o' 3335 # argument, so we may need to know it at that point already. 3336 # Even if this section looks crufty: it has the advantage of 3337 # actually working. 3338 break;; 3339 * ) 3340 break;; 3341 esac 3342done 3343test "$ac_cv_exeext" = no && ac_cv_exeext= 3344 3345else 3346 ac_file='' 3347fi 3348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3349$as_echo "$ac_file" >&6; } 3350if test -z "$ac_file"; then : 3351 $as_echo "$as_me: failed program was:" >&5 3352sed 's/^/| /' conftest.$ac_ext >&5 3353 3354{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3356{ as_fn_set_status 77 3357as_fn_error "C compiler cannot create executables 3358See \`config.log' for more details." "$LINENO" 5; }; } 3359fi 3360ac_exeext=$ac_cv_exeext 3361 3362# Check that the compiler produces executables we can run. If not, either 3363# the compiler is broken, or we cross compile. 3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3365$as_echo_n "checking whether the C compiler works... " >&6; } 3366# If not cross compiling, check that we can run a simple program. 3367if test "$cross_compiling" != yes; then 3368 if { ac_try='./$ac_file' 3369 { { case "(($ac_try" in 3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3371 *) ac_try_echo=$ac_try;; 3372esac 3373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3374$as_echo "$ac_try_echo"; } >&5 3375 (eval "$ac_try") 2>&5 3376 ac_status=$? 3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3378 test $ac_status = 0; }; }; then 3379 cross_compiling=no 3380 else 3381 if test "$cross_compiling" = maybe; then 3382 cross_compiling=yes 3383 else 3384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3386as_fn_error "cannot run C compiled programs. 3387If you meant to cross compile, use \`--host'. 3388See \`config.log' for more details." "$LINENO" 5; } 3389 fi 3390 fi 3391fi 3392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3393$as_echo "yes" >&6; } 3394 3395rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3396ac_clean_files=$ac_clean_files_save 3397# Check that the compiler produces executables we can run. If not, either 3398# the compiler is broken, or we cross compile. 3399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3400$as_echo_n "checking whether we are cross compiling... " >&6; } 3401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3402$as_echo "$cross_compiling" >&6; } 3403 3404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3405$as_echo_n "checking for suffix of executables... " >&6; } 3406if { { ac_try="$ac_link" 3407case "(($ac_try" in 3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3409 *) ac_try_echo=$ac_try;; 3410esac 3411eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3412$as_echo "$ac_try_echo"; } >&5 3413 (eval "$ac_link") 2>&5 3414 ac_status=$? 3415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3416 test $ac_status = 0; }; then : 3417 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3418# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3419# work properly (i.e., refer to `conftest.exe'), while it won't with 3420# `rm'. 3421for ac_file in conftest.exe conftest conftest.*; do 3422 test -f "$ac_file" || continue 3423 case $ac_file in 3424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3425 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3426 break;; 3427 * ) break;; 3428 esac 3429done 3430else 3431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3433as_fn_error "cannot compute suffix of executables: cannot compile and link 3434See \`config.log' for more details." "$LINENO" 5; } 3435fi 3436rm -f conftest$ac_cv_exeext 3437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3438$as_echo "$ac_cv_exeext" >&6; } 3439 3440rm -f conftest.$ac_ext 3441EXEEXT=$ac_cv_exeext 3442ac_exeext=$EXEEXT 3443fi 3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3445$as_echo_n "checking for suffix of object files... " >&6; } 3446if test "${ac_cv_objext+set}" = set; then : 3447 $as_echo_n "(cached) " >&6 3448else 3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3450/* end confdefs.h. */ 3451 3452int 3453main () 3454{ 3455 3456 ; 3457 return 0; 3458} 3459_ACEOF 3460rm -f conftest.o conftest.obj 3461if { { ac_try="$ac_compile" 3462case "(($ac_try" in 3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3464 *) ac_try_echo=$ac_try;; 3465esac 3466eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3467$as_echo "$ac_try_echo"; } >&5 3468 (eval "$ac_compile") 2>&5 3469 ac_status=$? 3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3471 test $ac_status = 0; }; then : 3472 for ac_file in conftest.o conftest.obj conftest.*; do 3473 test -f "$ac_file" || continue; 3474 case $ac_file in 3475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3476 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3477 break;; 3478 esac 3479done 3480else 3481 $as_echo "$as_me: failed program was:" >&5 3482sed 's/^/| /' conftest.$ac_ext >&5 3483 3484{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3486as_fn_error "cannot compute suffix of object files: cannot compile 3487See \`config.log' for more details." "$LINENO" 5; } 3488fi 3489rm -f conftest.$ac_cv_objext conftest.$ac_ext 3490fi 3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3492$as_echo "$ac_cv_objext" >&6; } 3493OBJEXT=$ac_cv_objext 3494ac_objext=$OBJEXT 3495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3496$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3497if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3498 $as_echo_n "(cached) " >&6 3499else 3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3501/* end confdefs.h. */ 3502 3503int 3504main () 3505{ 3506#ifndef __GNUC__ 3507 choke me 3508#endif 3509 3510 ; 3511 return 0; 3512} 3513_ACEOF 3514if ac_fn_c_try_compile "$LINENO"; then : 3515 ac_compiler_gnu=yes 3516else 3517 ac_compiler_gnu=no 3518fi 3519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3520ac_cv_c_compiler_gnu=$ac_compiler_gnu 3521 3522fi 3523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3524$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3525if test $ac_compiler_gnu = yes; then 3526 GCC=yes 3527else 3528 GCC= 3529fi 3530ac_test_CFLAGS=${CFLAGS+set} 3531ac_save_CFLAGS=$CFLAGS 3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3533$as_echo_n "checking whether $CC accepts -g... " >&6; } 3534if test "${ac_cv_prog_cc_g+set}" = set; then : 3535 $as_echo_n "(cached) " >&6 3536else 3537 ac_save_c_werror_flag=$ac_c_werror_flag 3538 ac_c_werror_flag=yes 3539 ac_cv_prog_cc_g=no 3540 CFLAGS="-g" 3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3542/* end confdefs.h. */ 3543 3544int 3545main () 3546{ 3547 3548 ; 3549 return 0; 3550} 3551_ACEOF 3552if ac_fn_c_try_compile "$LINENO"; then : 3553 ac_cv_prog_cc_g=yes 3554else 3555 CFLAGS="" 3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3557/* end confdefs.h. */ 3558 3559int 3560main () 3561{ 3562 3563 ; 3564 return 0; 3565} 3566_ACEOF 3567if ac_fn_c_try_compile "$LINENO"; then : 3568 3569else 3570 ac_c_werror_flag=$ac_save_c_werror_flag 3571 CFLAGS="-g" 3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3573/* end confdefs.h. */ 3574 3575int 3576main () 3577{ 3578 3579 ; 3580 return 0; 3581} 3582_ACEOF 3583if ac_fn_c_try_compile "$LINENO"; then : 3584 ac_cv_prog_cc_g=yes 3585fi 3586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3587fi 3588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3589fi 3590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3591 ac_c_werror_flag=$ac_save_c_werror_flag 3592fi 3593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3594$as_echo "$ac_cv_prog_cc_g" >&6; } 3595if test "$ac_test_CFLAGS" = set; then 3596 CFLAGS=$ac_save_CFLAGS 3597elif test $ac_cv_prog_cc_g = yes; then 3598 if test "$GCC" = yes; then 3599 CFLAGS="-g -O2" 3600 else 3601 CFLAGS="-g" 3602 fi 3603else 3604 if test "$GCC" = yes; then 3605 CFLAGS="-O2" 3606 else 3607 CFLAGS= 3608 fi 3609fi 3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3611$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3612if test "${ac_cv_prog_cc_c89+set}" = set; then : 3613 $as_echo_n "(cached) " >&6 3614else 3615 ac_cv_prog_cc_c89=no 3616ac_save_CC=$CC 3617cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3618/* end confdefs.h. */ 3619#include <stdarg.h> 3620#include <stdio.h> 3621#include <sys/types.h> 3622#include <sys/stat.h> 3623/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3624struct buf { int x; }; 3625FILE * (*rcsopen) (struct buf *, struct stat *, int); 3626static char *e (p, i) 3627 char **p; 3628 int i; 3629{ 3630 return p[i]; 3631} 3632static char *f (char * (*g) (char **, int), char **p, ...) 3633{ 3634 char *s; 3635 va_list v; 3636 va_start (v,p); 3637 s = g (p, va_arg (v,int)); 3638 va_end (v); 3639 return s; 3640} 3641 3642/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3643 function prototypes and stuff, but not '\xHH' hex character constants. 3644 These don't provoke an error unfortunately, instead are silently treated 3645 as 'x'. The following induces an error, until -std is added to get 3646 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3647 array size at least. It's necessary to write '\x00'==0 to get something 3648 that's true only with -std. */ 3649int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3650 3651/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3652 inside strings and character constants. */ 3653#define FOO(x) 'x' 3654int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3655 3656int test (int i, double x); 3657struct s1 {int (*f) (int a);}; 3658struct s2 {int (*f) (double a);}; 3659int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3660int argc; 3661char **argv; 3662int 3663main () 3664{ 3665return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3666 ; 3667 return 0; 3668} 3669_ACEOF 3670for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3671 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3672do 3673 CC="$ac_save_CC $ac_arg" 3674 if ac_fn_c_try_compile "$LINENO"; then : 3675 ac_cv_prog_cc_c89=$ac_arg 3676fi 3677rm -f core conftest.err conftest.$ac_objext 3678 test "x$ac_cv_prog_cc_c89" != "xno" && break 3679done 3680rm -f conftest.$ac_ext 3681CC=$ac_save_CC 3682 3683fi 3684# AC_CACHE_VAL 3685case "x$ac_cv_prog_cc_c89" in 3686 x) 3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3688$as_echo "none needed" >&6; } ;; 3689 xno) 3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3691$as_echo "unsupported" >&6; } ;; 3692 *) 3693 CC="$CC $ac_cv_prog_cc_c89" 3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3695$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3696esac 3697if test "x$ac_cv_prog_cc_c89" != xno; then : 3698 3699fi 3700 3701ac_ext=c 3702ac_cpp='$CPP $CPPFLAGS' 3703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3705ac_compiler_gnu=$ac_cv_c_compiler_gnu 3706DEPDIR="${am__leading_dot}deps" 3707 3708ac_config_commands="$ac_config_commands depfiles" 3709 3710 3711am_make=${MAKE-make} 3712cat > confinc << 'END' 3713am__doit: 3714 @echo this is the am__doit target 3715.PHONY: am__doit 3716END 3717# If we don't find an include directive, just comment out the code. 3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3719$as_echo_n "checking for style of include used by $am_make... " >&6; } 3720am__include="#" 3721am__quote= 3722_am_result=none 3723# First try GNU make style include. 3724echo "include confinc" > confmf 3725# Ignore all kinds of additional output from `make'. 3726case `$am_make -s -f confmf 2> /dev/null` in #( 3727*the\ am__doit\ target*) 3728 am__include=include 3729 am__quote= 3730 _am_result=GNU 3731 ;; 3732esac 3733# Now try BSD make style include. 3734if test "$am__include" = "#"; then 3735 echo '.include "confinc"' > confmf 3736 case `$am_make -s -f confmf 2> /dev/null` in #( 3737 *the\ am__doit\ target*) 3738 am__include=.include 3739 am__quote="\"" 3740 _am_result=BSD 3741 ;; 3742 esac 3743fi 3744 3745 3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3747$as_echo "$_am_result" >&6; } 3748rm -f confinc confmf 3749 3750# Check whether --enable-dependency-tracking was given. 3751if test "${enable_dependency_tracking+set}" = set; then : 3752 enableval=$enable_dependency_tracking; 3753fi 3754 3755if test "x$enable_dependency_tracking" != xno; then 3756 am_depcomp="$ac_aux_dir/depcomp" 3757 AMDEPBACKSLASH='\' 3758fi 3759 if test "x$enable_dependency_tracking" != xno; then 3760 AMDEP_TRUE= 3761 AMDEP_FALSE='#' 3762else 3763 AMDEP_TRUE='#' 3764 AMDEP_FALSE= 3765fi 3766 3767 3768 3769depcc="$CC" am_compiler_list= 3770 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3772$as_echo_n "checking dependency style of $depcc... " >&6; } 3773if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3774 $as_echo_n "(cached) " >&6 3775else 3776 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3777 # We make a subdir and do the tests there. Otherwise we can end up 3778 # making bogus files that we don't know about and never remove. For 3779 # instance it was reported that on HP-UX the gcc test will end up 3780 # making a dummy file named `D' -- because `-MD' means `put the output 3781 # in D'. 3782 mkdir conftest.dir 3783 # Copy depcomp to subdir because otherwise we won't find it if we're 3784 # using a relative directory. 3785 cp "$am_depcomp" conftest.dir 3786 cd conftest.dir 3787 # We will build objects and dependencies in a subdirectory because 3788 # it helps to detect inapplicable dependency modes. For instance 3789 # both Tru64's cc and ICC support -MD to output dependencies as a 3790 # side effect of compilation, but ICC will put the dependencies in 3791 # the current directory while Tru64 will put them in the object 3792 # directory. 3793 mkdir sub 3794 3795 am_cv_CC_dependencies_compiler_type=none 3796 if test "$am_compiler_list" = ""; then 3797 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3798 fi 3799 am__universal=false 3800 case " $depcc " in #( 3801 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3802 esac 3803 3804 for depmode in $am_compiler_list; do 3805 # Setup a source with many dependencies, because some compilers 3806 # like to wrap large dependency lists on column 80 (with \), and 3807 # we should not choose a depcomp mode which is confused by this. 3808 # 3809 # We need to recreate these files for each test, as the compiler may 3810 # overwrite some of them when testing with obscure command lines. 3811 # This happens at least with the AIX C compiler. 3812 : > sub/conftest.c 3813 for i in 1 2 3 4 5 6; do 3814 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3815 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3816 # Solaris 8's {/usr,}/bin/sh. 3817 touch sub/conftst$i.h 3818 done 3819 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3820 3821 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3822 # mode. It turns out that the SunPro C++ compiler does not properly 3823 # handle `-M -o', and we need to detect this. Also, some Intel 3824 # versions had trouble with output in subdirs 3825 am__obj=sub/conftest.${OBJEXT-o} 3826 am__minus_obj="-o $am__obj" 3827 case $depmode in 3828 gcc) 3829 # This depmode causes a compiler race in universal mode. 3830 test "$am__universal" = false || continue 3831 ;; 3832 nosideeffect) 3833 # after this tag, mechanisms are not by side-effect, so they'll 3834 # only be used when explicitly requested 3835 if test "x$enable_dependency_tracking" = xyes; then 3836 continue 3837 else 3838 break 3839 fi 3840 ;; 3841 msvisualcpp | msvcmsys) 3842 # This compiler won't grok `-c -o', but also, the minuso test has 3843 # not run yet. These depmodes are late enough in the game, and 3844 # so weak that their functioning should not be impacted. 3845 am__obj=conftest.${OBJEXT-o} 3846 am__minus_obj= 3847 ;; 3848 none) break ;; 3849 esac 3850 if depmode=$depmode \ 3851 source=sub/conftest.c object=$am__obj \ 3852 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3853 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3854 >/dev/null 2>conftest.err && 3855 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3856 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3857 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3858 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3859 # icc doesn't choke on unknown options, it will just issue warnings 3860 # or remarks (even with -Werror). So we grep stderr for any message 3861 # that says an option was ignored or not supported. 3862 # When given -MP, icc 7.0 and 7.1 complain thusly: 3863 # icc: Command line warning: ignoring option '-M'; no argument required 3864 # The diagnosis changed in icc 8.0: 3865 # icc: Command line remark: option '-MP' not supported 3866 if (grep 'ignoring option' conftest.err || 3867 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3868 am_cv_CC_dependencies_compiler_type=$depmode 3869 break 3870 fi 3871 fi 3872 done 3873 3874 cd .. 3875 rm -rf conftest.dir 3876else 3877 am_cv_CC_dependencies_compiler_type=none 3878fi 3879 3880fi 3881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3882$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3883CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3884 3885 if 3886 test "x$enable_dependency_tracking" != xno \ 3887 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3888 am__fastdepCC_TRUE= 3889 am__fastdepCC_FALSE='#' 3890else 3891 am__fastdepCC_TRUE='#' 3892 am__fastdepCC_FALSE= 3893fi 3894 3895 3896 3897 3898 3899 3900case `pwd` in 3901 *\ * | *\ *) 3902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3903$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3904esac 3905 3906 3907 3908macro_version='2.2.7a' 3909macro_revision='1.3134' 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923ltmain="$ac_aux_dir/ltmain.sh" 3924 3925# Backslashify metacharacters that are still active within 3926# double-quoted strings. 3927sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3928 3929# Same as above, but do not quote variable references. 3930double_quote_subst='s/\(["`\\]\)/\\\1/g' 3931 3932# Sed substitution to delay expansion of an escaped shell variable in a 3933# double_quote_subst'ed string. 3934delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3935 3936# Sed substitution to delay expansion of an escaped single quote. 3937delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3938 3939# Sed substitution to avoid accidental globbing in evaled expressions 3940no_glob_subst='s/\*/\\\*/g' 3941 3942ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3943ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3944ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3945 3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3947$as_echo_n "checking how to print strings... " >&6; } 3948# Test print first, because it will be a builtin if present. 3949if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 3950 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3951 ECHO='print -r --' 3952elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3953 ECHO='printf %s\n' 3954else 3955 # Use this function as a fallback that always works. 3956 func_fallback_echo () 3957 { 3958 eval 'cat <<_LTECHO_EOF 3959$1 3960_LTECHO_EOF' 3961 } 3962 ECHO='func_fallback_echo' 3963fi 3964 3965# func_echo_all arg... 3966# Invoke $ECHO with all args, space-separated. 3967func_echo_all () 3968{ 3969 $ECHO "" 3970} 3971 3972case "$ECHO" in 3973 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3974$as_echo "printf" >&6; } ;; 3975 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3976$as_echo "print -r" >&6; } ;; 3977 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3978$as_echo "cat" >&6; } ;; 3979esac 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3995$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3996if test "${ac_cv_path_SED+set}" = set; then : 3997 $as_echo_n "(cached) " >&6 3998else 3999 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4000 for ac_i in 1 2 3 4 5 6 7; do 4001 ac_script="$ac_script$as_nl$ac_script" 4002 done 4003 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4004 { ac_script=; unset ac_script;} 4005 if test -z "$SED"; then 4006 ac_path_SED_found=false 4007 # Loop through the user's path and test for each of PROGNAME-LIST 4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4009for as_dir in $PATH 4010do 4011 IFS=$as_save_IFS 4012 test -z "$as_dir" && as_dir=. 4013 for ac_prog in sed gsed; do 4014 for ac_exec_ext in '' $ac_executable_extensions; do 4015 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4016 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4017# Check for GNU ac_path_SED and select it if it is found. 4018 # Check for GNU $ac_path_SED 4019case `"$ac_path_SED" --version 2>&1` in 4020*GNU*) 4021 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4022*) 4023 ac_count=0 4024 $as_echo_n 0123456789 >"conftest.in" 4025 while : 4026 do 4027 cat "conftest.in" "conftest.in" >"conftest.tmp" 4028 mv "conftest.tmp" "conftest.in" 4029 cp "conftest.in" "conftest.nl" 4030 $as_echo '' >> "conftest.nl" 4031 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4032 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4033 as_fn_arith $ac_count + 1 && ac_count=$as_val 4034 if test $ac_count -gt ${ac_path_SED_max-0}; then 4035 # Best one so far, save it but keep looking for a better one 4036 ac_cv_path_SED="$ac_path_SED" 4037 ac_path_SED_max=$ac_count 4038 fi 4039 # 10*(2^10) chars as input seems more than enough 4040 test $ac_count -gt 10 && break 4041 done 4042 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4043esac 4044 4045 $ac_path_SED_found && break 3 4046 done 4047 done 4048 done 4049IFS=$as_save_IFS 4050 if test -z "$ac_cv_path_SED"; then 4051 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4052 fi 4053else 4054 ac_cv_path_SED=$SED 4055fi 4056 4057fi 4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4059$as_echo "$ac_cv_path_SED" >&6; } 4060 SED="$ac_cv_path_SED" 4061 rm -f conftest.sed 4062 4063test -z "$SED" && SED=sed 4064Xsed="$SED -e 1s/^X//" 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4077$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4078if test "${ac_cv_path_GREP+set}" = set; then : 4079 $as_echo_n "(cached) " >&6 4080else 4081 if test -z "$GREP"; then 4082 ac_path_GREP_found=false 4083 # Loop through the user's path and test for each of PROGNAME-LIST 4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4085for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4086do 4087 IFS=$as_save_IFS 4088 test -z "$as_dir" && as_dir=. 4089 for ac_prog in grep ggrep; do 4090 for ac_exec_ext in '' $ac_executable_extensions; do 4091 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4092 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4093# Check for GNU ac_path_GREP and select it if it is found. 4094 # Check for GNU $ac_path_GREP 4095case `"$ac_path_GREP" --version 2>&1` in 4096*GNU*) 4097 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4098*) 4099 ac_count=0 4100 $as_echo_n 0123456789 >"conftest.in" 4101 while : 4102 do 4103 cat "conftest.in" "conftest.in" >"conftest.tmp" 4104 mv "conftest.tmp" "conftest.in" 4105 cp "conftest.in" "conftest.nl" 4106 $as_echo 'GREP' >> "conftest.nl" 4107 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4108 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4109 as_fn_arith $ac_count + 1 && ac_count=$as_val 4110 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4111 # Best one so far, save it but keep looking for a better one 4112 ac_cv_path_GREP="$ac_path_GREP" 4113 ac_path_GREP_max=$ac_count 4114 fi 4115 # 10*(2^10) chars as input seems more than enough 4116 test $ac_count -gt 10 && break 4117 done 4118 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4119esac 4120 4121 $ac_path_GREP_found && break 3 4122 done 4123 done 4124 done 4125IFS=$as_save_IFS 4126 if test -z "$ac_cv_path_GREP"; then 4127 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4128 fi 4129else 4130 ac_cv_path_GREP=$GREP 4131fi 4132 4133fi 4134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4135$as_echo "$ac_cv_path_GREP" >&6; } 4136 GREP="$ac_cv_path_GREP" 4137 4138 4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4140$as_echo_n "checking for egrep... " >&6; } 4141if test "${ac_cv_path_EGREP+set}" = set; then : 4142 $as_echo_n "(cached) " >&6 4143else 4144 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4145 then ac_cv_path_EGREP="$GREP -E" 4146 else 4147 if test -z "$EGREP"; then 4148 ac_path_EGREP_found=false 4149 # Loop through the user's path and test for each of PROGNAME-LIST 4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4151for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4152do 4153 IFS=$as_save_IFS 4154 test -z "$as_dir" && as_dir=. 4155 for ac_prog in egrep; do 4156 for ac_exec_ext in '' $ac_executable_extensions; do 4157 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4158 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4159# Check for GNU ac_path_EGREP and select it if it is found. 4160 # Check for GNU $ac_path_EGREP 4161case `"$ac_path_EGREP" --version 2>&1` in 4162*GNU*) 4163 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4164*) 4165 ac_count=0 4166 $as_echo_n 0123456789 >"conftest.in" 4167 while : 4168 do 4169 cat "conftest.in" "conftest.in" >"conftest.tmp" 4170 mv "conftest.tmp" "conftest.in" 4171 cp "conftest.in" "conftest.nl" 4172 $as_echo 'EGREP' >> "conftest.nl" 4173 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4175 as_fn_arith $ac_count + 1 && ac_count=$as_val 4176 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4177 # Best one so far, save it but keep looking for a better one 4178 ac_cv_path_EGREP="$ac_path_EGREP" 4179 ac_path_EGREP_max=$ac_count 4180 fi 4181 # 10*(2^10) chars as input seems more than enough 4182 test $ac_count -gt 10 && break 4183 done 4184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4185esac 4186 4187 $ac_path_EGREP_found && break 3 4188 done 4189 done 4190 done 4191IFS=$as_save_IFS 4192 if test -z "$ac_cv_path_EGREP"; then 4193 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4194 fi 4195else 4196 ac_cv_path_EGREP=$EGREP 4197fi 4198 4199 fi 4200fi 4201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4202$as_echo "$ac_cv_path_EGREP" >&6; } 4203 EGREP="$ac_cv_path_EGREP" 4204 4205 4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4207$as_echo_n "checking for fgrep... " >&6; } 4208if test "${ac_cv_path_FGREP+set}" = set; then : 4209 $as_echo_n "(cached) " >&6 4210else 4211 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4212 then ac_cv_path_FGREP="$GREP -F" 4213 else 4214 if test -z "$FGREP"; then 4215 ac_path_FGREP_found=false 4216 # Loop through the user's path and test for each of PROGNAME-LIST 4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4218for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4219do 4220 IFS=$as_save_IFS 4221 test -z "$as_dir" && as_dir=. 4222 for ac_prog in fgrep; do 4223 for ac_exec_ext in '' $ac_executable_extensions; do 4224 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4225 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4226# Check for GNU ac_path_FGREP and select it if it is found. 4227 # Check for GNU $ac_path_FGREP 4228case `"$ac_path_FGREP" --version 2>&1` in 4229*GNU*) 4230 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4231*) 4232 ac_count=0 4233 $as_echo_n 0123456789 >"conftest.in" 4234 while : 4235 do 4236 cat "conftest.in" "conftest.in" >"conftest.tmp" 4237 mv "conftest.tmp" "conftest.in" 4238 cp "conftest.in" "conftest.nl" 4239 $as_echo 'FGREP' >> "conftest.nl" 4240 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4242 as_fn_arith $ac_count + 1 && ac_count=$as_val 4243 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4244 # Best one so far, save it but keep looking for a better one 4245 ac_cv_path_FGREP="$ac_path_FGREP" 4246 ac_path_FGREP_max=$ac_count 4247 fi 4248 # 10*(2^10) chars as input seems more than enough 4249 test $ac_count -gt 10 && break 4250 done 4251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4252esac 4253 4254 $ac_path_FGREP_found && break 3 4255 done 4256 done 4257 done 4258IFS=$as_save_IFS 4259 if test -z "$ac_cv_path_FGREP"; then 4260 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4261 fi 4262else 4263 ac_cv_path_FGREP=$FGREP 4264fi 4265 4266 fi 4267fi 4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4269$as_echo "$ac_cv_path_FGREP" >&6; } 4270 FGREP="$ac_cv_path_FGREP" 4271 4272 4273test -z "$GREP" && GREP=grep 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293# Check whether --with-gnu-ld was given. 4294if test "${with_gnu_ld+set}" = set; then : 4295 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4296else 4297 with_gnu_ld=no 4298fi 4299 4300ac_prog=ld 4301if test "$GCC" = yes; then 4302 # Check if gcc -print-prog-name=ld gives a path. 4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4304$as_echo_n "checking for ld used by $CC... " >&6; } 4305 case $host in 4306 *-*-mingw*) 4307 # gcc leaves a trailing carriage return which upsets mingw 4308 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4309 *) 4310 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4311 esac 4312 case $ac_prog in 4313 # Accept absolute paths. 4314 [\\/]* | ?:[\\/]*) 4315 re_direlt='/[^/][^/]*/\.\./' 4316 # Canonicalize the pathname of ld 4317 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4318 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4319 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4320 done 4321 test -z "$LD" && LD="$ac_prog" 4322 ;; 4323 "") 4324 # If it fails, then pretend we aren't using GCC. 4325 ac_prog=ld 4326 ;; 4327 *) 4328 # If it is relative, then search for the first ld in PATH. 4329 with_gnu_ld=unknown 4330 ;; 4331 esac 4332elif test "$with_gnu_ld" = yes; then 4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4334$as_echo_n "checking for GNU ld... " >&6; } 4335else 4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4337$as_echo_n "checking for non-GNU ld... " >&6; } 4338fi 4339if test "${lt_cv_path_LD+set}" = set; then : 4340 $as_echo_n "(cached) " >&6 4341else 4342 if test -z "$LD"; then 4343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4344 for ac_dir in $PATH; do 4345 IFS="$lt_save_ifs" 4346 test -z "$ac_dir" && ac_dir=. 4347 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4348 lt_cv_path_LD="$ac_dir/$ac_prog" 4349 # Check to see if the program is GNU ld. I'd rather use --version, 4350 # but apparently some variants of GNU ld only accept -v. 4351 # Break only if it was the GNU/non-GNU ld that we prefer. 4352 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4353 *GNU* | *'with BFD'*) 4354 test "$with_gnu_ld" != no && break 4355 ;; 4356 *) 4357 test "$with_gnu_ld" != yes && break 4358 ;; 4359 esac 4360 fi 4361 done 4362 IFS="$lt_save_ifs" 4363else 4364 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4365fi 4366fi 4367 4368LD="$lt_cv_path_LD" 4369if test -n "$LD"; then 4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4371$as_echo "$LD" >&6; } 4372else 4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4374$as_echo "no" >&6; } 4375fi 4376test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4378$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4379if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4380 $as_echo_n "(cached) " >&6 4381else 4382 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4383case `$LD -v 2>&1 </dev/null` in 4384*GNU* | *'with BFD'*) 4385 lt_cv_prog_gnu_ld=yes 4386 ;; 4387*) 4388 lt_cv_prog_gnu_ld=no 4389 ;; 4390esac 4391fi 4392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4393$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4394with_gnu_ld=$lt_cv_prog_gnu_ld 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4405$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4406if test "${lt_cv_path_NM+set}" = set; then : 4407 $as_echo_n "(cached) " >&6 4408else 4409 if test -n "$NM"; then 4410 # Let the user override the test. 4411 lt_cv_path_NM="$NM" 4412else 4413 lt_nm_to_check="${ac_tool_prefix}nm" 4414 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4415 lt_nm_to_check="$lt_nm_to_check nm" 4416 fi 4417 for lt_tmp_nm in $lt_nm_to_check; do 4418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4419 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4420 IFS="$lt_save_ifs" 4421 test -z "$ac_dir" && ac_dir=. 4422 tmp_nm="$ac_dir/$lt_tmp_nm" 4423 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4424 # Check to see if the nm accepts a BSD-compat flag. 4425 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4426 # nm: unknown option "B" ignored 4427 # Tru64's nm complains that /dev/null is an invalid object file 4428 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4429 */dev/null* | *'Invalid file or object type'*) 4430 lt_cv_path_NM="$tmp_nm -B" 4431 break 4432 ;; 4433 *) 4434 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4435 */dev/null*) 4436 lt_cv_path_NM="$tmp_nm -p" 4437 break 4438 ;; 4439 *) 4440 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4441 continue # so that we can try to find one that supports BSD flags 4442 ;; 4443 esac 4444 ;; 4445 esac 4446 fi 4447 done 4448 IFS="$lt_save_ifs" 4449 done 4450 : ${lt_cv_path_NM=no} 4451fi 4452fi 4453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4454$as_echo "$lt_cv_path_NM" >&6; } 4455if test "$lt_cv_path_NM" != "no"; then 4456 NM="$lt_cv_path_NM" 4457else 4458 # Didn't find any BSD compatible name lister, look for dumpbin. 4459 if test -n "$DUMPBIN"; then : 4460 # Let the user override the test. 4461 else 4462 if test -n "$ac_tool_prefix"; then 4463 for ac_prog in dumpbin "link -dump" 4464 do 4465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4466set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4468$as_echo_n "checking for $ac_word... " >&6; } 4469if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 4470 $as_echo_n "(cached) " >&6 4471else 4472 if test -n "$DUMPBIN"; then 4473 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4474else 4475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4476for as_dir in $PATH 4477do 4478 IFS=$as_save_IFS 4479 test -z "$as_dir" && as_dir=. 4480 for ac_exec_ext in '' $ac_executable_extensions; do 4481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4482 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4484 break 2 4485 fi 4486done 4487 done 4488IFS=$as_save_IFS 4489 4490fi 4491fi 4492DUMPBIN=$ac_cv_prog_DUMPBIN 4493if test -n "$DUMPBIN"; then 4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4495$as_echo "$DUMPBIN" >&6; } 4496else 4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4498$as_echo "no" >&6; } 4499fi 4500 4501 4502 test -n "$DUMPBIN" && break 4503 done 4504fi 4505if test -z "$DUMPBIN"; then 4506 ac_ct_DUMPBIN=$DUMPBIN 4507 for ac_prog in dumpbin "link -dump" 4508do 4509 # Extract the first word of "$ac_prog", so it can be a program name with args. 4510set dummy $ac_prog; ac_word=$2 4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4512$as_echo_n "checking for $ac_word... " >&6; } 4513if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 4514 $as_echo_n "(cached) " >&6 4515else 4516 if test -n "$ac_ct_DUMPBIN"; then 4517 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4518else 4519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4520for as_dir in $PATH 4521do 4522 IFS=$as_save_IFS 4523 test -z "$as_dir" && as_dir=. 4524 for ac_exec_ext in '' $ac_executable_extensions; do 4525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4526 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4528 break 2 4529 fi 4530done 4531 done 4532IFS=$as_save_IFS 4533 4534fi 4535fi 4536ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4537if test -n "$ac_ct_DUMPBIN"; then 4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4539$as_echo "$ac_ct_DUMPBIN" >&6; } 4540else 4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4542$as_echo "no" >&6; } 4543fi 4544 4545 4546 test -n "$ac_ct_DUMPBIN" && break 4547done 4548 4549 if test "x$ac_ct_DUMPBIN" = x; then 4550 DUMPBIN=":" 4551 else 4552 case $cross_compiling:$ac_tool_warned in 4553yes:) 4554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4556ac_tool_warned=yes ;; 4557esac 4558 DUMPBIN=$ac_ct_DUMPBIN 4559 fi 4560fi 4561 4562 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4563 *COFF*) 4564 DUMPBIN="$DUMPBIN -symbols" 4565 ;; 4566 *) 4567 DUMPBIN=: 4568 ;; 4569 esac 4570 fi 4571 4572 if test "$DUMPBIN" != ":"; then 4573 NM="$DUMPBIN" 4574 fi 4575fi 4576test -z "$NM" && NM=nm 4577 4578 4579 4580 4581 4582 4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4584$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4585if test "${lt_cv_nm_interface+set}" = set; then : 4586 $as_echo_n "(cached) " >&6 4587else 4588 lt_cv_nm_interface="BSD nm" 4589 echo "int some_variable = 0;" > conftest.$ac_ext 4590 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4591 (eval "$ac_compile" 2>conftest.err) 4592 cat conftest.err >&5 4593 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4594 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4595 cat conftest.err >&5 4596 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4597 cat conftest.out >&5 4598 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4599 lt_cv_nm_interface="MS dumpbin" 4600 fi 4601 rm -f conftest* 4602fi 4603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4604$as_echo "$lt_cv_nm_interface" >&6; } 4605 4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4607$as_echo_n "checking whether ln -s works... " >&6; } 4608LN_S=$as_ln_s 4609if test "$LN_S" = "ln -s"; then 4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4611$as_echo "yes" >&6; } 4612else 4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4614$as_echo "no, using $LN_S" >&6; } 4615fi 4616 4617# find the maximum length of command line arguments 4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4619$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4620if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 4621 $as_echo_n "(cached) " >&6 4622else 4623 i=0 4624 teststring="ABCD" 4625 4626 case $build_os in 4627 msdosdjgpp*) 4628 # On DJGPP, this test can blow up pretty badly due to problems in libc 4629 # (any single argument exceeding 2000 bytes causes a buffer overrun 4630 # during glob expansion). Even if it were fixed, the result of this 4631 # check would be larger than it should be. 4632 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4633 ;; 4634 4635 gnu*) 4636 # Under GNU Hurd, this test is not required because there is 4637 # no limit to the length of command line arguments. 4638 # Libtool will interpret -1 as no limit whatsoever 4639 lt_cv_sys_max_cmd_len=-1; 4640 ;; 4641 4642 cygwin* | mingw* | cegcc*) 4643 # On Win9x/ME, this test blows up -- it succeeds, but takes 4644 # about 5 minutes as the teststring grows exponentially. 4645 # Worse, since 9x/ME are not pre-emptively multitasking, 4646 # you end up with a "frozen" computer, even though with patience 4647 # the test eventually succeeds (with a max line length of 256k). 4648 # Instead, let's just punt: use the minimum linelength reported by 4649 # all of the supported platforms: 8192 (on NT/2K/XP). 4650 lt_cv_sys_max_cmd_len=8192; 4651 ;; 4652 4653 mint*) 4654 # On MiNT this can take a long time and run out of memory. 4655 lt_cv_sys_max_cmd_len=8192; 4656 ;; 4657 4658 amigaos*) 4659 # On AmigaOS with pdksh, this test takes hours, literally. 4660 # So we just punt and use a minimum line length of 8192. 4661 lt_cv_sys_max_cmd_len=8192; 4662 ;; 4663 4664 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4665 # This has been around since 386BSD, at least. Likely further. 4666 if test -x /sbin/sysctl; then 4667 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4668 elif test -x /usr/sbin/sysctl; then 4669 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4670 else 4671 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4672 fi 4673 # And add a safety zone 4674 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4675 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4676 ;; 4677 4678 interix*) 4679 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4680 lt_cv_sys_max_cmd_len=196608 4681 ;; 4682 4683 osf*) 4684 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4685 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4686 # nice to cause kernel panics so lets avoid the loop below. 4687 # First set a reasonable default. 4688 lt_cv_sys_max_cmd_len=16384 4689 # 4690 if test -x /sbin/sysconfig; then 4691 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4692 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4693 esac 4694 fi 4695 ;; 4696 sco3.2v5*) 4697 lt_cv_sys_max_cmd_len=102400 4698 ;; 4699 sysv5* | sco5v6* | sysv4.2uw2*) 4700 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4701 if test -n "$kargmax"; then 4702 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4703 else 4704 lt_cv_sys_max_cmd_len=32768 4705 fi 4706 ;; 4707 *) 4708 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4709 if test -n "$lt_cv_sys_max_cmd_len"; then 4710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4712 else 4713 # Make teststring a little bigger before we do anything with it. 4714 # a 1K string should be a reasonable start. 4715 for i in 1 2 3 4 5 6 7 8 ; do 4716 teststring=$teststring$teststring 4717 done 4718 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4719 # If test is not a shell built-in, we'll probably end up computing a 4720 # maximum length that is only half of the actual maximum length, but 4721 # we can't tell. 4722 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 4723 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4724 test $i != 17 # 1/2 MB should be enough 4725 do 4726 i=`expr $i + 1` 4727 teststring=$teststring$teststring 4728 done 4729 # Only check the string length outside the loop. 4730 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4731 teststring= 4732 # Add a significant safety factor because C++ compilers can tack on 4733 # massive amounts of additional arguments before passing them to the 4734 # linker. It appears as though 1/2 is a usable value. 4735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4736 fi 4737 ;; 4738 esac 4739 4740fi 4741 4742if test -n $lt_cv_sys_max_cmd_len ; then 4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4744$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4745else 4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4747$as_echo "none" >&6; } 4748fi 4749max_cmd_len=$lt_cv_sys_max_cmd_len 4750 4751 4752 4753 4754 4755 4756: ${CP="cp -f"} 4757: ${MV="mv -f"} 4758: ${RM="rm -f"} 4759 4760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4761$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4762# Try some XSI features 4763xsi_shell=no 4764( _lt_dummy="a/b/c" 4765 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4766 = c,a/b,, \ 4767 && eval 'test $(( 1 + 1 )) -eq 2 \ 4768 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4769 && xsi_shell=yes 4770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4771$as_echo "$xsi_shell" >&6; } 4772 4773 4774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4775$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4776lt_shell_append=no 4777( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4778 >/dev/null 2>&1 \ 4779 && lt_shell_append=yes 4780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4781$as_echo "$lt_shell_append" >&6; } 4782 4783 4784if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4785 lt_unset=unset 4786else 4787 lt_unset=false 4788fi 4789 4790 4791 4792 4793 4794# test EBCDIC or ASCII 4795case `echo X|tr X '\101'` in 4796 A) # ASCII based system 4797 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4798 lt_SP2NL='tr \040 \012' 4799 lt_NL2SP='tr \015\012 \040\040' 4800 ;; 4801 *) # EBCDIC based system 4802 lt_SP2NL='tr \100 \n' 4803 lt_NL2SP='tr \r\n \100\100' 4804 ;; 4805esac 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4816$as_echo_n "checking for $LD option to reload object files... " >&6; } 4817if test "${lt_cv_ld_reload_flag+set}" = set; then : 4818 $as_echo_n "(cached) " >&6 4819else 4820 lt_cv_ld_reload_flag='-r' 4821fi 4822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4823$as_echo "$lt_cv_ld_reload_flag" >&6; } 4824reload_flag=$lt_cv_ld_reload_flag 4825case $reload_flag in 4826"" | " "*) ;; 4827*) reload_flag=" $reload_flag" ;; 4828esac 4829reload_cmds='$LD$reload_flag -o $output$reload_objs' 4830case $host_os in 4831 darwin*) 4832 if test "$GCC" = yes; then 4833 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4834 else 4835 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4836 fi 4837 ;; 4838esac 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848if test -n "$ac_tool_prefix"; then 4849 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4850set dummy ${ac_tool_prefix}objdump; ac_word=$2 4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4852$as_echo_n "checking for $ac_word... " >&6; } 4853if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 4854 $as_echo_n "(cached) " >&6 4855else 4856 if test -n "$OBJDUMP"; then 4857 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4858else 4859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4860for as_dir in $PATH 4861do 4862 IFS=$as_save_IFS 4863 test -z "$as_dir" && as_dir=. 4864 for ac_exec_ext in '' $ac_executable_extensions; do 4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4866 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4868 break 2 4869 fi 4870done 4871 done 4872IFS=$as_save_IFS 4873 4874fi 4875fi 4876OBJDUMP=$ac_cv_prog_OBJDUMP 4877if test -n "$OBJDUMP"; then 4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4879$as_echo "$OBJDUMP" >&6; } 4880else 4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4882$as_echo "no" >&6; } 4883fi 4884 4885 4886fi 4887if test -z "$ac_cv_prog_OBJDUMP"; then 4888 ac_ct_OBJDUMP=$OBJDUMP 4889 # Extract the first word of "objdump", so it can be a program name with args. 4890set dummy objdump; ac_word=$2 4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4892$as_echo_n "checking for $ac_word... " >&6; } 4893if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 4894 $as_echo_n "(cached) " >&6 4895else 4896 if test -n "$ac_ct_OBJDUMP"; then 4897 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4898else 4899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4900for as_dir in $PATH 4901do 4902 IFS=$as_save_IFS 4903 test -z "$as_dir" && as_dir=. 4904 for ac_exec_ext in '' $ac_executable_extensions; do 4905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4906 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4908 break 2 4909 fi 4910done 4911 done 4912IFS=$as_save_IFS 4913 4914fi 4915fi 4916ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4917if test -n "$ac_ct_OBJDUMP"; then 4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4919$as_echo "$ac_ct_OBJDUMP" >&6; } 4920else 4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4922$as_echo "no" >&6; } 4923fi 4924 4925 if test "x$ac_ct_OBJDUMP" = x; then 4926 OBJDUMP="false" 4927 else 4928 case $cross_compiling:$ac_tool_warned in 4929yes:) 4930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4932ac_tool_warned=yes ;; 4933esac 4934 OBJDUMP=$ac_ct_OBJDUMP 4935 fi 4936else 4937 OBJDUMP="$ac_cv_prog_OBJDUMP" 4938fi 4939 4940test -z "$OBJDUMP" && OBJDUMP=objdump 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4951$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4952if test "${lt_cv_deplibs_check_method+set}" = set; then : 4953 $as_echo_n "(cached) " >&6 4954else 4955 lt_cv_file_magic_cmd='$MAGIC_CMD' 4956lt_cv_file_magic_test_file= 4957lt_cv_deplibs_check_method='unknown' 4958# Need to set the preceding variable on all platforms that support 4959# interlibrary dependencies. 4960# 'none' -- dependencies not supported. 4961# `unknown' -- same as none, but documents that we really don't know. 4962# 'pass_all' -- all dependencies passed with no checks. 4963# 'test_compile' -- check by making test program. 4964# 'file_magic [[regex]]' -- check by looking for files in library path 4965# which responds to the $file_magic_cmd with a given extended regex. 4966# If you have `file' or equivalent on your system and you're not sure 4967# whether `pass_all' will *always* work, you probably want this one. 4968 4969case $host_os in 4970aix[4-9]*) 4971 lt_cv_deplibs_check_method=pass_all 4972 ;; 4973 4974beos*) 4975 lt_cv_deplibs_check_method=pass_all 4976 ;; 4977 4978bsdi[45]*) 4979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4980 lt_cv_file_magic_cmd='/usr/bin/file -L' 4981 lt_cv_file_magic_test_file=/shlib/libc.so 4982 ;; 4983 4984cygwin*) 4985 # func_win32_libid is a shell function defined in ltmain.sh 4986 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4987 lt_cv_file_magic_cmd='func_win32_libid' 4988 ;; 4989 4990mingw* | pw32*) 4991 # Base MSYS/MinGW do not provide the 'file' command needed by 4992 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4993 # unless we find 'file', for example because we are cross-compiling. 4994 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 4995 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 4996 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4997 lt_cv_file_magic_cmd='func_win32_libid' 4998 else 4999 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5000 lt_cv_file_magic_cmd='$OBJDUMP -f' 5001 fi 5002 ;; 5003 5004cegcc*) 5005 # use the weaker test based on 'objdump'. See mingw*. 5006 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5007 lt_cv_file_magic_cmd='$OBJDUMP -f' 5008 ;; 5009 5010darwin* | rhapsody*) 5011 lt_cv_deplibs_check_method=pass_all 5012 ;; 5013 5014freebsd* | dragonfly*) 5015 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5016 case $host_cpu in 5017 i*86 ) 5018 # Not sure whether the presence of OpenBSD here was a mistake. 5019 # Let's accept both of them until this is cleared up. 5020 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5021 lt_cv_file_magic_cmd=/usr/bin/file 5022 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5023 ;; 5024 esac 5025 else 5026 lt_cv_deplibs_check_method=pass_all 5027 fi 5028 ;; 5029 5030gnu*) 5031 lt_cv_deplibs_check_method=pass_all 5032 ;; 5033 5034haiku*) 5035 lt_cv_deplibs_check_method=pass_all 5036 ;; 5037 5038hpux10.20* | hpux11*) 5039 lt_cv_file_magic_cmd=/usr/bin/file 5040 case $host_cpu in 5041 ia64*) 5042 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5043 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5044 ;; 5045 hppa*64*) 5046 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]' 5047 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5048 ;; 5049 *) 5050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5051 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5052 ;; 5053 esac 5054 ;; 5055 5056interix[3-9]*) 5057 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5059 ;; 5060 5061irix5* | irix6* | nonstopux*) 5062 case $LD in 5063 *-32|*"-32 ") libmagic=32-bit;; 5064 *-n32|*"-n32 ") libmagic=N32;; 5065 *-64|*"-64 ") libmagic=64-bit;; 5066 *) libmagic=never-match;; 5067 esac 5068 lt_cv_deplibs_check_method=pass_all 5069 ;; 5070 5071# This must be Linux ELF. 5072linux* | k*bsd*-gnu | kopensolaris*-gnu) 5073 lt_cv_deplibs_check_method=pass_all 5074 ;; 5075 5076netbsd*) 5077 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5079 else 5080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5081 fi 5082 ;; 5083 5084newos6*) 5085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5086 lt_cv_file_magic_cmd=/usr/bin/file 5087 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5088 ;; 5089 5090*nto* | *qnx*) 5091 lt_cv_deplibs_check_method=pass_all 5092 ;; 5093 5094openbsd*) 5095 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5097 else 5098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5099 fi 5100 ;; 5101 5102osf3* | osf4* | osf5*) 5103 lt_cv_deplibs_check_method=pass_all 5104 ;; 5105 5106rdos*) 5107 lt_cv_deplibs_check_method=pass_all 5108 ;; 5109 5110solaris*) 5111 lt_cv_deplibs_check_method=pass_all 5112 ;; 5113 5114sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5115 lt_cv_deplibs_check_method=pass_all 5116 ;; 5117 5118sysv4 | sysv4.3*) 5119 case $host_vendor in 5120 motorola) 5121 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]' 5122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5123 ;; 5124 ncr) 5125 lt_cv_deplibs_check_method=pass_all 5126 ;; 5127 sequent) 5128 lt_cv_file_magic_cmd='/bin/file' 5129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5130 ;; 5131 sni) 5132 lt_cv_file_magic_cmd='/bin/file' 5133 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5134 lt_cv_file_magic_test_file=/lib/libc.so 5135 ;; 5136 siemens) 5137 lt_cv_deplibs_check_method=pass_all 5138 ;; 5139 pc) 5140 lt_cv_deplibs_check_method=pass_all 5141 ;; 5142 esac 5143 ;; 5144 5145tpf*) 5146 lt_cv_deplibs_check_method=pass_all 5147 ;; 5148esac 5149 5150fi 5151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5152$as_echo "$lt_cv_deplibs_check_method" >&6; } 5153file_magic_cmd=$lt_cv_file_magic_cmd 5154deplibs_check_method=$lt_cv_deplibs_check_method 5155test -z "$deplibs_check_method" && deplibs_check_method=unknown 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168if test -n "$ac_tool_prefix"; then 5169 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5170set dummy ${ac_tool_prefix}ar; ac_word=$2 5171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5172$as_echo_n "checking for $ac_word... " >&6; } 5173if test "${ac_cv_prog_AR+set}" = set; then : 5174 $as_echo_n "(cached) " >&6 5175else 5176 if test -n "$AR"; then 5177 ac_cv_prog_AR="$AR" # Let the user override the test. 5178else 5179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5180for as_dir in $PATH 5181do 5182 IFS=$as_save_IFS 5183 test -z "$as_dir" && as_dir=. 5184 for ac_exec_ext in '' $ac_executable_extensions; do 5185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5186 ac_cv_prog_AR="${ac_tool_prefix}ar" 5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5188 break 2 5189 fi 5190done 5191 done 5192IFS=$as_save_IFS 5193 5194fi 5195fi 5196AR=$ac_cv_prog_AR 5197if test -n "$AR"; then 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5199$as_echo "$AR" >&6; } 5200else 5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5202$as_echo "no" >&6; } 5203fi 5204 5205 5206fi 5207if test -z "$ac_cv_prog_AR"; then 5208 ac_ct_AR=$AR 5209 # Extract the first word of "ar", so it can be a program name with args. 5210set dummy ar; ac_word=$2 5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5212$as_echo_n "checking for $ac_word... " >&6; } 5213if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5214 $as_echo_n "(cached) " >&6 5215else 5216 if test -n "$ac_ct_AR"; then 5217 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5218else 5219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5220for as_dir in $PATH 5221do 5222 IFS=$as_save_IFS 5223 test -z "$as_dir" && as_dir=. 5224 for ac_exec_ext in '' $ac_executable_extensions; do 5225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5226 ac_cv_prog_ac_ct_AR="ar" 5227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5228 break 2 5229 fi 5230done 5231 done 5232IFS=$as_save_IFS 5233 5234fi 5235fi 5236ac_ct_AR=$ac_cv_prog_ac_ct_AR 5237if test -n "$ac_ct_AR"; then 5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5239$as_echo "$ac_ct_AR" >&6; } 5240else 5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5242$as_echo "no" >&6; } 5243fi 5244 5245 if test "x$ac_ct_AR" = x; then 5246 AR="false" 5247 else 5248 case $cross_compiling:$ac_tool_warned in 5249yes:) 5250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5252ac_tool_warned=yes ;; 5253esac 5254 AR=$ac_ct_AR 5255 fi 5256else 5257 AR="$ac_cv_prog_AR" 5258fi 5259 5260test -z "$AR" && AR=ar 5261test -z "$AR_FLAGS" && AR_FLAGS=cru 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273if test -n "$ac_tool_prefix"; then 5274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5275set dummy ${ac_tool_prefix}strip; ac_word=$2 5276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5277$as_echo_n "checking for $ac_word... " >&6; } 5278if test "${ac_cv_prog_STRIP+set}" = set; then : 5279 $as_echo_n "(cached) " >&6 5280else 5281 if test -n "$STRIP"; then 5282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5283else 5284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5285for as_dir in $PATH 5286do 5287 IFS=$as_save_IFS 5288 test -z "$as_dir" && as_dir=. 5289 for ac_exec_ext in '' $ac_executable_extensions; do 5290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5291 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5293 break 2 5294 fi 5295done 5296 done 5297IFS=$as_save_IFS 5298 5299fi 5300fi 5301STRIP=$ac_cv_prog_STRIP 5302if test -n "$STRIP"; then 5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5304$as_echo "$STRIP" >&6; } 5305else 5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5307$as_echo "no" >&6; } 5308fi 5309 5310 5311fi 5312if test -z "$ac_cv_prog_STRIP"; then 5313 ac_ct_STRIP=$STRIP 5314 # Extract the first word of "strip", so it can be a program name with args. 5315set dummy strip; ac_word=$2 5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5317$as_echo_n "checking for $ac_word... " >&6; } 5318if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5319 $as_echo_n "(cached) " >&6 5320else 5321 if test -n "$ac_ct_STRIP"; then 5322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5323else 5324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5325for as_dir in $PATH 5326do 5327 IFS=$as_save_IFS 5328 test -z "$as_dir" && as_dir=. 5329 for ac_exec_ext in '' $ac_executable_extensions; do 5330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5331 ac_cv_prog_ac_ct_STRIP="strip" 5332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5333 break 2 5334 fi 5335done 5336 done 5337IFS=$as_save_IFS 5338 5339fi 5340fi 5341ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5342if test -n "$ac_ct_STRIP"; then 5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5344$as_echo "$ac_ct_STRIP" >&6; } 5345else 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5347$as_echo "no" >&6; } 5348fi 5349 5350 if test "x$ac_ct_STRIP" = x; then 5351 STRIP=":" 5352 else 5353 case $cross_compiling:$ac_tool_warned in 5354yes:) 5355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5357ac_tool_warned=yes ;; 5358esac 5359 STRIP=$ac_ct_STRIP 5360 fi 5361else 5362 STRIP="$ac_cv_prog_STRIP" 5363fi 5364 5365test -z "$STRIP" && STRIP=: 5366 5367 5368 5369 5370 5371 5372if test -n "$ac_tool_prefix"; then 5373 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5374set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5376$as_echo_n "checking for $ac_word... " >&6; } 5377if test "${ac_cv_prog_RANLIB+set}" = set; then : 5378 $as_echo_n "(cached) " >&6 5379else 5380 if test -n "$RANLIB"; then 5381 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5382else 5383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5384for as_dir in $PATH 5385do 5386 IFS=$as_save_IFS 5387 test -z "$as_dir" && as_dir=. 5388 for ac_exec_ext in '' $ac_executable_extensions; do 5389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5390 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5392 break 2 5393 fi 5394done 5395 done 5396IFS=$as_save_IFS 5397 5398fi 5399fi 5400RANLIB=$ac_cv_prog_RANLIB 5401if test -n "$RANLIB"; then 5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5403$as_echo "$RANLIB" >&6; } 5404else 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5406$as_echo "no" >&6; } 5407fi 5408 5409 5410fi 5411if test -z "$ac_cv_prog_RANLIB"; then 5412 ac_ct_RANLIB=$RANLIB 5413 # Extract the first word of "ranlib", so it can be a program name with args. 5414set dummy ranlib; ac_word=$2 5415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5416$as_echo_n "checking for $ac_word... " >&6; } 5417if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5418 $as_echo_n "(cached) " >&6 5419else 5420 if test -n "$ac_ct_RANLIB"; then 5421 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5422else 5423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5424for as_dir in $PATH 5425do 5426 IFS=$as_save_IFS 5427 test -z "$as_dir" && as_dir=. 5428 for ac_exec_ext in '' $ac_executable_extensions; do 5429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5430 ac_cv_prog_ac_ct_RANLIB="ranlib" 5431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5432 break 2 5433 fi 5434done 5435 done 5436IFS=$as_save_IFS 5437 5438fi 5439fi 5440ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5441if test -n "$ac_ct_RANLIB"; then 5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5443$as_echo "$ac_ct_RANLIB" >&6; } 5444else 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5446$as_echo "no" >&6; } 5447fi 5448 5449 if test "x$ac_ct_RANLIB" = x; then 5450 RANLIB=":" 5451 else 5452 case $cross_compiling:$ac_tool_warned in 5453yes:) 5454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5456ac_tool_warned=yes ;; 5457esac 5458 RANLIB=$ac_ct_RANLIB 5459 fi 5460else 5461 RANLIB="$ac_cv_prog_RANLIB" 5462fi 5463 5464test -z "$RANLIB" && RANLIB=: 5465 5466 5467 5468 5469 5470 5471# Determine commands to create old-style static archives. 5472old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5473old_postinstall_cmds='chmod 644 $oldlib' 5474old_postuninstall_cmds= 5475 5476if test -n "$RANLIB"; then 5477 case $host_os in 5478 openbsd*) 5479 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5480 ;; 5481 *) 5482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5483 ;; 5484 esac 5485 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5486fi 5487 5488case $host_os in 5489 darwin*) 5490 lock_old_archive_extraction=yes ;; 5491 *) 5492 lock_old_archive_extraction=no ;; 5493esac 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533# If no C compiler was specified, use CC. 5534LTCC=${LTCC-"$CC"} 5535 5536# If no C compiler flags were specified, use CFLAGS. 5537LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5538 5539# Allow CC to be a program name with arguments. 5540compiler=$CC 5541 5542 5543# Check for command to grab the raw symbol name followed by C symbol from nm. 5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5545$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5546if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 5547 $as_echo_n "(cached) " >&6 5548else 5549 5550# These are sane defaults that work on at least a few old systems. 5551# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5552 5553# Character class describing NM global symbol codes. 5554symcode='[BCDEGRST]' 5555 5556# Regexp to match symbols that can be accessed directly from C. 5557sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5558 5559# Define system-specific variables. 5560case $host_os in 5561aix*) 5562 symcode='[BCDT]' 5563 ;; 5564cygwin* | mingw* | pw32* | cegcc*) 5565 symcode='[ABCDGISTW]' 5566 ;; 5567hpux*) 5568 if test "$host_cpu" = ia64; then 5569 symcode='[ABCDEGRST]' 5570 fi 5571 ;; 5572irix* | nonstopux*) 5573 symcode='[BCDEGRST]' 5574 ;; 5575osf*) 5576 symcode='[BCDEGQRST]' 5577 ;; 5578solaris*) 5579 symcode='[BDRT]' 5580 ;; 5581sco3.2v5*) 5582 symcode='[DT]' 5583 ;; 5584sysv4.2uw2*) 5585 symcode='[DT]' 5586 ;; 5587sysv5* | sco5v6* | unixware* | OpenUNIX*) 5588 symcode='[ABDT]' 5589 ;; 5590sysv4) 5591 symcode='[DFNSTU]' 5592 ;; 5593esac 5594 5595# If we're using GNU nm, then use its standard symbol codes. 5596case `$NM -V 2>&1` in 5597*GNU* | *'with BFD'*) 5598 symcode='[ABCDGIRSTW]' ;; 5599esac 5600 5601# Transform an extracted symbol line into a proper C declaration. 5602# Some systems (esp. on ia64) link data and code symbols differently, 5603# so use this general approach. 5604lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5605 5606# Transform an extracted symbol line into symbol name and symbol address 5607lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5608lt_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'" 5609 5610# Handle CRLF in mingw tool chain 5611opt_cr= 5612case $build_os in 5613mingw*) 5614 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5615 ;; 5616esac 5617 5618# Try without a prefix underscore, then with it. 5619for ac_symprfx in "" "_"; do 5620 5621 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5622 symxfrm="\\1 $ac_symprfx\\2 \\2" 5623 5624 # Write the raw and C identifiers. 5625 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5626 # Fake it for dumpbin and say T for any non-static function 5627 # and D for any global variable. 5628 # Also find C++ and __fastcall symbols from MSVC++, 5629 # which start with @ or ?. 5630 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5631" {last_section=section; section=\$ 3};"\ 5632" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5633" \$ 0!~/External *\|/{next};"\ 5634" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5635" {if(hide[section]) next};"\ 5636" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5637" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5638" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5639" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5640" ' prfx=^$ac_symprfx" 5641 else 5642 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5643 fi 5644 5645 # Check to see that the pipe works correctly. 5646 pipe_works=no 5647 5648 rm -f conftest* 5649 cat > conftest.$ac_ext <<_LT_EOF 5650#ifdef __cplusplus 5651extern "C" { 5652#endif 5653char nm_test_var; 5654void nm_test_func(void); 5655void nm_test_func(void){} 5656#ifdef __cplusplus 5657} 5658#endif 5659int main(){nm_test_var='a';nm_test_func();return(0);} 5660_LT_EOF 5661 5662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5663 (eval $ac_compile) 2>&5 5664 ac_status=$? 5665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5666 test $ac_status = 0; }; then 5667 # Now try to grab the symbols. 5668 nlist=conftest.nm 5669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5670 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5671 ac_status=$? 5672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5673 test $ac_status = 0; } && test -s "$nlist"; then 5674 # Try sorting and uniquifying the output. 5675 if sort "$nlist" | uniq > "$nlist"T; then 5676 mv -f "$nlist"T "$nlist" 5677 else 5678 rm -f "$nlist"T 5679 fi 5680 5681 # Make sure that we snagged all the symbols we need. 5682 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5683 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5684 cat <<_LT_EOF > conftest.$ac_ext 5685#ifdef __cplusplus 5686extern "C" { 5687#endif 5688 5689_LT_EOF 5690 # Now generate the symbol file. 5691 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5692 5693 cat <<_LT_EOF >> conftest.$ac_ext 5694 5695/* The mapping between symbol names and symbols. */ 5696const struct { 5697 const char *name; 5698 void *address; 5699} 5700lt__PROGRAM__LTX_preloaded_symbols[] = 5701{ 5702 { "@PROGRAM@", (void *) 0 }, 5703_LT_EOF 5704 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5705 cat <<\_LT_EOF >> conftest.$ac_ext 5706 {0, (void *) 0} 5707}; 5708 5709/* This works around a problem in FreeBSD linker */ 5710#ifdef FREEBSD_WORKAROUND 5711static const void *lt_preloaded_setup() { 5712 return lt__PROGRAM__LTX_preloaded_symbols; 5713} 5714#endif 5715 5716#ifdef __cplusplus 5717} 5718#endif 5719_LT_EOF 5720 # Now try linking the two files. 5721 mv conftest.$ac_objext conftstm.$ac_objext 5722 lt_save_LIBS="$LIBS" 5723 lt_save_CFLAGS="$CFLAGS" 5724 LIBS="conftstm.$ac_objext" 5725 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5727 (eval $ac_link) 2>&5 5728 ac_status=$? 5729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5730 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5731 pipe_works=yes 5732 fi 5733 LIBS="$lt_save_LIBS" 5734 CFLAGS="$lt_save_CFLAGS" 5735 else 5736 echo "cannot find nm_test_func in $nlist" >&5 5737 fi 5738 else 5739 echo "cannot find nm_test_var in $nlist" >&5 5740 fi 5741 else 5742 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5743 fi 5744 else 5745 echo "$progname: failed program was:" >&5 5746 cat conftest.$ac_ext >&5 5747 fi 5748 rm -rf conftest* conftst* 5749 5750 # Do not use the global_symbol_pipe unless it works. 5751 if test "$pipe_works" = yes; then 5752 break 5753 else 5754 lt_cv_sys_global_symbol_pipe= 5755 fi 5756done 5757 5758fi 5759 5760if test -z "$lt_cv_sys_global_symbol_pipe"; then 5761 lt_cv_sys_global_symbol_to_cdecl= 5762fi 5763if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5765$as_echo "failed" >&6; } 5766else 5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5768$as_echo "ok" >&6; } 5769fi 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793# Check whether --enable-libtool-lock was given. 5794if test "${enable_libtool_lock+set}" = set; then : 5795 enableval=$enable_libtool_lock; 5796fi 5797 5798test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5799 5800# Some flags need to be propagated to the compiler or linker for good 5801# libtool support. 5802case $host in 5803ia64-*-hpux*) 5804 # Find out which ABI we are using. 5805 echo 'int i;' > conftest.$ac_ext 5806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5807 (eval $ac_compile) 2>&5 5808 ac_status=$? 5809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5810 test $ac_status = 0; }; then 5811 case `/usr/bin/file conftest.$ac_objext` in 5812 *ELF-32*) 5813 HPUX_IA64_MODE="32" 5814 ;; 5815 *ELF-64*) 5816 HPUX_IA64_MODE="64" 5817 ;; 5818 esac 5819 fi 5820 rm -rf conftest* 5821 ;; 5822*-*-irix6*) 5823 # Find out which ABI we are using. 5824 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 5825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5826 (eval $ac_compile) 2>&5 5827 ac_status=$? 5828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5829 test $ac_status = 0; }; then 5830 if test "$lt_cv_prog_gnu_ld" = yes; then 5831 case `/usr/bin/file conftest.$ac_objext` in 5832 *32-bit*) 5833 LD="${LD-ld} -melf32bsmip" 5834 ;; 5835 *N32*) 5836 LD="${LD-ld} -melf32bmipn32" 5837 ;; 5838 *64-bit*) 5839 LD="${LD-ld} -melf64bmip" 5840 ;; 5841 esac 5842 else 5843 case `/usr/bin/file conftest.$ac_objext` in 5844 *32-bit*) 5845 LD="${LD-ld} -32" 5846 ;; 5847 *N32*) 5848 LD="${LD-ld} -n32" 5849 ;; 5850 *64-bit*) 5851 LD="${LD-ld} -64" 5852 ;; 5853 esac 5854 fi 5855 fi 5856 rm -rf conftest* 5857 ;; 5858 5859x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 5860s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5861 # Find out which ABI we are using. 5862 echo 'int i;' > conftest.$ac_ext 5863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5864 (eval $ac_compile) 2>&5 5865 ac_status=$? 5866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5867 test $ac_status = 0; }; then 5868 case `/usr/bin/file conftest.o` in 5869 *32-bit*) 5870 case $host in 5871 x86_64-*kfreebsd*-gnu) 5872 LD="${LD-ld} -m elf_i386_fbsd" 5873 ;; 5874 x86_64-*linux*) 5875 case `/usr/bin/file conftest.o` in 5876 *x86-64*) 5877 LD="${LD-ld} -m elf32_x86_64" 5878 ;; 5879 *) 5880 LD="${LD-ld} -m elf_i386" 5881 ;; 5882 esac 5883 ;; 5884 powerpc64le-*linux*) 5885 LD="${LD-ld} -m elf32lppclinux" 5886 ;; 5887 powerpc64-*linux*) 5888 LD="${LD-ld} -m elf32ppclinux" 5889 ;; 5890 s390x-*linux*) 5891 LD="${LD-ld} -m elf_s390" 5892 ;; 5893 sparc64-*linux*) 5894 LD="${LD-ld} -m elf32_sparc" 5895 ;; 5896 esac 5897 ;; 5898 *64-bit*) 5899 case $host in 5900 x86_64-*kfreebsd*-gnu) 5901 LD="${LD-ld} -m elf_x86_64_fbsd" 5902 ;; 5903 x86_64-*linux*) 5904 LD="${LD-ld} -m elf_x86_64" 5905 ;; 5906 powerpcle-*linux*) 5907 LD="${LD-ld} -m elf64lppc" 5908 ;; 5909 powerpc-*linux*) 5910 LD="${LD-ld} -m elf64ppc" 5911 ;; 5912 s390*-*linux*|s390*-*tpf*) 5913 LD="${LD-ld} -m elf64_s390" 5914 ;; 5915 sparc*-*linux*) 5916 LD="${LD-ld} -m elf64_sparc" 5917 ;; 5918 esac 5919 ;; 5920 esac 5921 fi 5922 rm -rf conftest* 5923 ;; 5924 5925*-*-sco3.2v5*) 5926 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5927 SAVE_CFLAGS="$CFLAGS" 5928 CFLAGS="$CFLAGS -belf" 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 5930$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5931if test "${lt_cv_cc_needs_belf+set}" = set; then : 5932 $as_echo_n "(cached) " >&6 5933else 5934 ac_ext=c 5935ac_cpp='$CPP $CPPFLAGS' 5936ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5937ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5938ac_compiler_gnu=$ac_cv_c_compiler_gnu 5939 5940 if test x$gcc_no_link = xyes; then 5941 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 5942fi 5943cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5944/* end confdefs.h. */ 5945 5946int 5947main () 5948{ 5949 5950 ; 5951 return 0; 5952} 5953_ACEOF 5954if ac_fn_c_try_link "$LINENO"; then : 5955 lt_cv_cc_needs_belf=yes 5956else 5957 lt_cv_cc_needs_belf=no 5958fi 5959rm -f core conftest.err conftest.$ac_objext \ 5960 conftest$ac_exeext conftest.$ac_ext 5961 ac_ext=c 5962ac_cpp='$CPP $CPPFLAGS' 5963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5965ac_compiler_gnu=$ac_cv_c_compiler_gnu 5966 5967fi 5968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 5969$as_echo "$lt_cv_cc_needs_belf" >&6; } 5970 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5971 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5972 CFLAGS="$SAVE_CFLAGS" 5973 fi 5974 ;; 5975sparc*-*solaris*) 5976 # Find out which ABI we are using. 5977 echo 'int i;' > conftest.$ac_ext 5978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5979 (eval $ac_compile) 2>&5 5980 ac_status=$? 5981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5982 test $ac_status = 0; }; then 5983 case `/usr/bin/file conftest.o` in 5984 *64-bit*) 5985 case $lt_cv_prog_gnu_ld in 5986 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5987 *) 5988 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5989 LD="${LD-ld} -64" 5990 fi 5991 ;; 5992 esac 5993 ;; 5994 esac 5995 fi 5996 rm -rf conftest* 5997 ;; 5998esac 5999 6000need_locks="$enable_libtool_lock" 6001 6002 6003 case $host_os in 6004 rhapsody* | darwin*) 6005 if test -n "$ac_tool_prefix"; then 6006 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6007set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6009$as_echo_n "checking for $ac_word... " >&6; } 6010if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6011 $as_echo_n "(cached) " >&6 6012else 6013 if test -n "$DSYMUTIL"; then 6014 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6015else 6016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6017for as_dir in $PATH 6018do 6019 IFS=$as_save_IFS 6020 test -z "$as_dir" && as_dir=. 6021 for ac_exec_ext in '' $ac_executable_extensions; do 6022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6023 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6025 break 2 6026 fi 6027done 6028 done 6029IFS=$as_save_IFS 6030 6031fi 6032fi 6033DSYMUTIL=$ac_cv_prog_DSYMUTIL 6034if test -n "$DSYMUTIL"; then 6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6036$as_echo "$DSYMUTIL" >&6; } 6037else 6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6039$as_echo "no" >&6; } 6040fi 6041 6042 6043fi 6044if test -z "$ac_cv_prog_DSYMUTIL"; then 6045 ac_ct_DSYMUTIL=$DSYMUTIL 6046 # Extract the first word of "dsymutil", so it can be a program name with args. 6047set dummy dsymutil; ac_word=$2 6048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6049$as_echo_n "checking for $ac_word... " >&6; } 6050if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6051 $as_echo_n "(cached) " >&6 6052else 6053 if test -n "$ac_ct_DSYMUTIL"; then 6054 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6055else 6056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6057for as_dir in $PATH 6058do 6059 IFS=$as_save_IFS 6060 test -z "$as_dir" && as_dir=. 6061 for ac_exec_ext in '' $ac_executable_extensions; do 6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6063 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6065 break 2 6066 fi 6067done 6068 done 6069IFS=$as_save_IFS 6070 6071fi 6072fi 6073ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6074if test -n "$ac_ct_DSYMUTIL"; then 6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6076$as_echo "$ac_ct_DSYMUTIL" >&6; } 6077else 6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6079$as_echo "no" >&6; } 6080fi 6081 6082 if test "x$ac_ct_DSYMUTIL" = x; then 6083 DSYMUTIL=":" 6084 else 6085 case $cross_compiling:$ac_tool_warned in 6086yes:) 6087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6089ac_tool_warned=yes ;; 6090esac 6091 DSYMUTIL=$ac_ct_DSYMUTIL 6092 fi 6093else 6094 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6095fi 6096 6097 if test -n "$ac_tool_prefix"; then 6098 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6099set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6101$as_echo_n "checking for $ac_word... " >&6; } 6102if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6103 $as_echo_n "(cached) " >&6 6104else 6105 if test -n "$NMEDIT"; then 6106 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6107else 6108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6109for as_dir in $PATH 6110do 6111 IFS=$as_save_IFS 6112 test -z "$as_dir" && as_dir=. 6113 for ac_exec_ext in '' $ac_executable_extensions; do 6114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6115 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6117 break 2 6118 fi 6119done 6120 done 6121IFS=$as_save_IFS 6122 6123fi 6124fi 6125NMEDIT=$ac_cv_prog_NMEDIT 6126if test -n "$NMEDIT"; then 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6128$as_echo "$NMEDIT" >&6; } 6129else 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6131$as_echo "no" >&6; } 6132fi 6133 6134 6135fi 6136if test -z "$ac_cv_prog_NMEDIT"; then 6137 ac_ct_NMEDIT=$NMEDIT 6138 # Extract the first word of "nmedit", so it can be a program name with args. 6139set dummy nmedit; ac_word=$2 6140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6141$as_echo_n "checking for $ac_word... " >&6; } 6142if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6143 $as_echo_n "(cached) " >&6 6144else 6145 if test -n "$ac_ct_NMEDIT"; then 6146 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6147else 6148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6149for as_dir in $PATH 6150do 6151 IFS=$as_save_IFS 6152 test -z "$as_dir" && as_dir=. 6153 for ac_exec_ext in '' $ac_executable_extensions; do 6154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6155 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6157 break 2 6158 fi 6159done 6160 done 6161IFS=$as_save_IFS 6162 6163fi 6164fi 6165ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6166if test -n "$ac_ct_NMEDIT"; then 6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6168$as_echo "$ac_ct_NMEDIT" >&6; } 6169else 6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6171$as_echo "no" >&6; } 6172fi 6173 6174 if test "x$ac_ct_NMEDIT" = x; then 6175 NMEDIT=":" 6176 else 6177 case $cross_compiling:$ac_tool_warned in 6178yes:) 6179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6181ac_tool_warned=yes ;; 6182esac 6183 NMEDIT=$ac_ct_NMEDIT 6184 fi 6185else 6186 NMEDIT="$ac_cv_prog_NMEDIT" 6187fi 6188 6189 if test -n "$ac_tool_prefix"; then 6190 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6191set dummy ${ac_tool_prefix}lipo; ac_word=$2 6192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6193$as_echo_n "checking for $ac_word... " >&6; } 6194if test "${ac_cv_prog_LIPO+set}" = set; then : 6195 $as_echo_n "(cached) " >&6 6196else 6197 if test -n "$LIPO"; then 6198 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6199else 6200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6201for as_dir in $PATH 6202do 6203 IFS=$as_save_IFS 6204 test -z "$as_dir" && as_dir=. 6205 for ac_exec_ext in '' $ac_executable_extensions; do 6206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6207 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6209 break 2 6210 fi 6211done 6212 done 6213IFS=$as_save_IFS 6214 6215fi 6216fi 6217LIPO=$ac_cv_prog_LIPO 6218if test -n "$LIPO"; then 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6220$as_echo "$LIPO" >&6; } 6221else 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6223$as_echo "no" >&6; } 6224fi 6225 6226 6227fi 6228if test -z "$ac_cv_prog_LIPO"; then 6229 ac_ct_LIPO=$LIPO 6230 # Extract the first word of "lipo", so it can be a program name with args. 6231set dummy lipo; ac_word=$2 6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6233$as_echo_n "checking for $ac_word... " >&6; } 6234if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6235 $as_echo_n "(cached) " >&6 6236else 6237 if test -n "$ac_ct_LIPO"; then 6238 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6239else 6240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6241for as_dir in $PATH 6242do 6243 IFS=$as_save_IFS 6244 test -z "$as_dir" && as_dir=. 6245 for ac_exec_ext in '' $ac_executable_extensions; do 6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6247 ac_cv_prog_ac_ct_LIPO="lipo" 6248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6249 break 2 6250 fi 6251done 6252 done 6253IFS=$as_save_IFS 6254 6255fi 6256fi 6257ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6258if test -n "$ac_ct_LIPO"; then 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6260$as_echo "$ac_ct_LIPO" >&6; } 6261else 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6263$as_echo "no" >&6; } 6264fi 6265 6266 if test "x$ac_ct_LIPO" = x; then 6267 LIPO=":" 6268 else 6269 case $cross_compiling:$ac_tool_warned in 6270yes:) 6271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6273ac_tool_warned=yes ;; 6274esac 6275 LIPO=$ac_ct_LIPO 6276 fi 6277else 6278 LIPO="$ac_cv_prog_LIPO" 6279fi 6280 6281 if test -n "$ac_tool_prefix"; then 6282 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6283set dummy ${ac_tool_prefix}otool; ac_word=$2 6284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6285$as_echo_n "checking for $ac_word... " >&6; } 6286if test "${ac_cv_prog_OTOOL+set}" = set; then : 6287 $as_echo_n "(cached) " >&6 6288else 6289 if test -n "$OTOOL"; then 6290 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6291else 6292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6293for as_dir in $PATH 6294do 6295 IFS=$as_save_IFS 6296 test -z "$as_dir" && as_dir=. 6297 for ac_exec_ext in '' $ac_executable_extensions; do 6298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6299 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6301 break 2 6302 fi 6303done 6304 done 6305IFS=$as_save_IFS 6306 6307fi 6308fi 6309OTOOL=$ac_cv_prog_OTOOL 6310if test -n "$OTOOL"; then 6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6312$as_echo "$OTOOL" >&6; } 6313else 6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6315$as_echo "no" >&6; } 6316fi 6317 6318 6319fi 6320if test -z "$ac_cv_prog_OTOOL"; then 6321 ac_ct_OTOOL=$OTOOL 6322 # Extract the first word of "otool", so it can be a program name with args. 6323set dummy otool; ac_word=$2 6324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6325$as_echo_n "checking for $ac_word... " >&6; } 6326if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 6327 $as_echo_n "(cached) " >&6 6328else 6329 if test -n "$ac_ct_OTOOL"; then 6330 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6331else 6332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6333for as_dir in $PATH 6334do 6335 IFS=$as_save_IFS 6336 test -z "$as_dir" && as_dir=. 6337 for ac_exec_ext in '' $ac_executable_extensions; do 6338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6339 ac_cv_prog_ac_ct_OTOOL="otool" 6340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6341 break 2 6342 fi 6343done 6344 done 6345IFS=$as_save_IFS 6346 6347fi 6348fi 6349ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6350if test -n "$ac_ct_OTOOL"; then 6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6352$as_echo "$ac_ct_OTOOL" >&6; } 6353else 6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6355$as_echo "no" >&6; } 6356fi 6357 6358 if test "x$ac_ct_OTOOL" = x; then 6359 OTOOL=":" 6360 else 6361 case $cross_compiling:$ac_tool_warned in 6362yes:) 6363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6365ac_tool_warned=yes ;; 6366esac 6367 OTOOL=$ac_ct_OTOOL 6368 fi 6369else 6370 OTOOL="$ac_cv_prog_OTOOL" 6371fi 6372 6373 if test -n "$ac_tool_prefix"; then 6374 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6375set dummy ${ac_tool_prefix}otool64; ac_word=$2 6376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6377$as_echo_n "checking for $ac_word... " >&6; } 6378if test "${ac_cv_prog_OTOOL64+set}" = set; then : 6379 $as_echo_n "(cached) " >&6 6380else 6381 if test -n "$OTOOL64"; then 6382 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6383else 6384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6385for as_dir in $PATH 6386do 6387 IFS=$as_save_IFS 6388 test -z "$as_dir" && as_dir=. 6389 for ac_exec_ext in '' $ac_executable_extensions; do 6390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6391 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6393 break 2 6394 fi 6395done 6396 done 6397IFS=$as_save_IFS 6398 6399fi 6400fi 6401OTOOL64=$ac_cv_prog_OTOOL64 6402if test -n "$OTOOL64"; then 6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6404$as_echo "$OTOOL64" >&6; } 6405else 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6407$as_echo "no" >&6; } 6408fi 6409 6410 6411fi 6412if test -z "$ac_cv_prog_OTOOL64"; then 6413 ac_ct_OTOOL64=$OTOOL64 6414 # Extract the first word of "otool64", so it can be a program name with args. 6415set dummy otool64; ac_word=$2 6416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6417$as_echo_n "checking for $ac_word... " >&6; } 6418if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 6419 $as_echo_n "(cached) " >&6 6420else 6421 if test -n "$ac_ct_OTOOL64"; then 6422 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6423else 6424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6425for as_dir in $PATH 6426do 6427 IFS=$as_save_IFS 6428 test -z "$as_dir" && as_dir=. 6429 for ac_exec_ext in '' $ac_executable_extensions; do 6430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6431 ac_cv_prog_ac_ct_OTOOL64="otool64" 6432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6433 break 2 6434 fi 6435done 6436 done 6437IFS=$as_save_IFS 6438 6439fi 6440fi 6441ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6442if test -n "$ac_ct_OTOOL64"; then 6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6444$as_echo "$ac_ct_OTOOL64" >&6; } 6445else 6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6447$as_echo "no" >&6; } 6448fi 6449 6450 if test "x$ac_ct_OTOOL64" = x; then 6451 OTOOL64=":" 6452 else 6453 case $cross_compiling:$ac_tool_warned in 6454yes:) 6455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6457ac_tool_warned=yes ;; 6458esac 6459 OTOOL64=$ac_ct_OTOOL64 6460 fi 6461else 6462 OTOOL64="$ac_cv_prog_OTOOL64" 6463fi 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6492$as_echo_n "checking for -single_module linker flag... " >&6; } 6493if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 6494 $as_echo_n "(cached) " >&6 6495else 6496 lt_cv_apple_cc_single_mod=no 6497 if test -z "${LT_MULTI_MODULE}"; then 6498 # By default we will add the -single_module flag. You can override 6499 # by either setting the environment variable LT_MULTI_MODULE 6500 # non-empty at configure time, or by adding -multi_module to the 6501 # link flags. 6502 rm -rf libconftest.dylib* 6503 echo "int foo(void){return 1;}" > conftest.c 6504 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6505-dynamiclib -Wl,-single_module conftest.c" >&5 6506 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6507 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6508 _lt_result=$? 6509 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6510 lt_cv_apple_cc_single_mod=yes 6511 else 6512 cat conftest.err >&5 6513 fi 6514 rm -rf libconftest.dylib* 6515 rm -f conftest.* 6516 fi 6517fi 6518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6519$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6521$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6522if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 6523 $as_echo_n "(cached) " >&6 6524else 6525 lt_cv_ld_exported_symbols_list=no 6526 save_LDFLAGS=$LDFLAGS 6527 echo "_main" > conftest.sym 6528 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6529 if test x$gcc_no_link = xyes; then 6530 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 6531fi 6532cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6533/* end confdefs.h. */ 6534 6535int 6536main () 6537{ 6538 6539 ; 6540 return 0; 6541} 6542_ACEOF 6543if ac_fn_c_try_link "$LINENO"; then : 6544 lt_cv_ld_exported_symbols_list=yes 6545else 6546 lt_cv_ld_exported_symbols_list=no 6547fi 6548rm -f core conftest.err conftest.$ac_objext \ 6549 conftest$ac_exeext conftest.$ac_ext 6550 LDFLAGS="$save_LDFLAGS" 6551 6552fi 6553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6554$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6556$as_echo_n "checking for -force_load linker flag... " >&6; } 6557if test "${lt_cv_ld_force_load+set}" = set; then : 6558 $as_echo_n "(cached) " >&6 6559else 6560 lt_cv_ld_force_load=no 6561 cat > conftest.c << _LT_EOF 6562int forced_loaded() { return 2;} 6563_LT_EOF 6564 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6565 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6566 echo "$AR cru libconftest.a conftest.o" >&5 6567 $AR cru libconftest.a conftest.o 2>&5 6568 cat > conftest.c << _LT_EOF 6569int main() { return 0;} 6570_LT_EOF 6571 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6572 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6573 _lt_result=$? 6574 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 6575 lt_cv_ld_force_load=yes 6576 else 6577 cat conftest.err >&5 6578 fi 6579 rm -f conftest.err libconftest.a conftest conftest.c 6580 rm -rf conftest.dSYM 6581 6582fi 6583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6584$as_echo "$lt_cv_ld_force_load" >&6; } 6585 case $host_os in 6586 rhapsody* | darwin1.[012]) 6587 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6588 darwin1.*) 6589 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6590 darwin*) # darwin 5.x on 6591 # if running on 10.5 or later, the deployment target defaults 6592 # to the OS version, if on x86, and 10.4, the deployment 6593 # target defaults to 10.4. Don't you love it? 6594 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6595 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6596 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6597 10.[012][,.]*) 6598 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6599 10.*) 6600 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6601 esac 6602 ;; 6603 esac 6604 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6605 _lt_dar_single_mod='$single_module' 6606 fi 6607 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6608 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6609 else 6610 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6611 fi 6612 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 6613 _lt_dsymutil='~$DSYMUTIL $lib || :' 6614 else 6615 _lt_dsymutil= 6616 fi 6617 ;; 6618 esac 6619 6620ac_ext=c 6621ac_cpp='$CPP $CPPFLAGS' 6622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6624ac_compiler_gnu=$ac_cv_c_compiler_gnu 6625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6626$as_echo_n "checking how to run the C preprocessor... " >&6; } 6627# On Suns, sometimes $CPP names a directory. 6628if test -n "$CPP" && test -d "$CPP"; then 6629 CPP= 6630fi 6631if test -z "$CPP"; then 6632 if test "${ac_cv_prog_CPP+set}" = set; then : 6633 $as_echo_n "(cached) " >&6 6634else 6635 # Double quotes because CPP needs to be expanded 6636 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6637 do 6638 ac_preproc_ok=false 6639for ac_c_preproc_warn_flag in '' yes 6640do 6641 # Use a header file that comes with gcc, so configuring glibc 6642 # with a fresh cross-compiler works. 6643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6644 # <limits.h> exists even on freestanding compilers. 6645 # On the NeXT, cc -E runs the code through the compiler's parser, 6646 # not just through cpp. "Syntax error" is here to catch this case. 6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6648/* end confdefs.h. */ 6649#ifdef __STDC__ 6650# include <limits.h> 6651#else 6652# include <assert.h> 6653#endif 6654 Syntax error 6655_ACEOF 6656if ac_fn_c_try_cpp "$LINENO"; then : 6657 6658else 6659 # Broken: fails on valid input. 6660continue 6661fi 6662rm -f conftest.err conftest.$ac_ext 6663 6664 # OK, works on sane cases. Now check whether nonexistent headers 6665 # can be detected and how. 6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6667/* end confdefs.h. */ 6668#include <ac_nonexistent.h> 6669_ACEOF 6670if ac_fn_c_try_cpp "$LINENO"; then : 6671 # Broken: success on invalid input. 6672continue 6673else 6674 # Passes both tests. 6675ac_preproc_ok=: 6676break 6677fi 6678rm -f conftest.err conftest.$ac_ext 6679 6680done 6681# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6682rm -f conftest.err conftest.$ac_ext 6683if $ac_preproc_ok; then : 6684 break 6685fi 6686 6687 done 6688 ac_cv_prog_CPP=$CPP 6689 6690fi 6691 CPP=$ac_cv_prog_CPP 6692else 6693 ac_cv_prog_CPP=$CPP 6694fi 6695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6696$as_echo "$CPP" >&6; } 6697ac_preproc_ok=false 6698for ac_c_preproc_warn_flag in '' yes 6699do 6700 # Use a header file that comes with gcc, so configuring glibc 6701 # with a fresh cross-compiler works. 6702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6703 # <limits.h> exists even on freestanding compilers. 6704 # On the NeXT, cc -E runs the code through the compiler's parser, 6705 # not just through cpp. "Syntax error" is here to catch this case. 6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6707/* end confdefs.h. */ 6708#ifdef __STDC__ 6709# include <limits.h> 6710#else 6711# include <assert.h> 6712#endif 6713 Syntax error 6714_ACEOF 6715if ac_fn_c_try_cpp "$LINENO"; then : 6716 6717else 6718 # Broken: fails on valid input. 6719continue 6720fi 6721rm -f conftest.err conftest.$ac_ext 6722 6723 # OK, works on sane cases. Now check whether nonexistent headers 6724 # can be detected and how. 6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6726/* end confdefs.h. */ 6727#include <ac_nonexistent.h> 6728_ACEOF 6729if ac_fn_c_try_cpp "$LINENO"; then : 6730 # Broken: success on invalid input. 6731continue 6732else 6733 # Passes both tests. 6734ac_preproc_ok=: 6735break 6736fi 6737rm -f conftest.err conftest.$ac_ext 6738 6739done 6740# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6741rm -f conftest.err conftest.$ac_ext 6742if $ac_preproc_ok; then : 6743 6744else 6745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6747as_fn_error "C preprocessor \"$CPP\" fails sanity check 6748See \`config.log' for more details." "$LINENO" 5; } 6749fi 6750 6751ac_ext=c 6752ac_cpp='$CPP $CPPFLAGS' 6753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6755ac_compiler_gnu=$ac_cv_c_compiler_gnu 6756 6757 6758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6759$as_echo_n "checking for ANSI C header files... " >&6; } 6760if test "${ac_cv_header_stdc+set}" = set; then : 6761 $as_echo_n "(cached) " >&6 6762else 6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6764/* end confdefs.h. */ 6765#include <stdlib.h> 6766#include <stdarg.h> 6767#include <string.h> 6768#include <float.h> 6769 6770int 6771main () 6772{ 6773 6774 ; 6775 return 0; 6776} 6777_ACEOF 6778if ac_fn_c_try_compile "$LINENO"; then : 6779 ac_cv_header_stdc=yes 6780else 6781 ac_cv_header_stdc=no 6782fi 6783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6784 6785if test $ac_cv_header_stdc = yes; then 6786 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6788/* end confdefs.h. */ 6789#include <string.h> 6790 6791_ACEOF 6792if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6793 $EGREP "memchr" >/dev/null 2>&1; then : 6794 6795else 6796 ac_cv_header_stdc=no 6797fi 6798rm -f conftest* 6799 6800fi 6801 6802if test $ac_cv_header_stdc = yes; then 6803 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6805/* end confdefs.h. */ 6806#include <stdlib.h> 6807 6808_ACEOF 6809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6810 $EGREP "free" >/dev/null 2>&1; then : 6811 6812else 6813 ac_cv_header_stdc=no 6814fi 6815rm -f conftest* 6816 6817fi 6818 6819if test $ac_cv_header_stdc = yes; then 6820 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6821 if test "$cross_compiling" = yes; then : 6822 : 6823else 6824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6825/* end confdefs.h. */ 6826#include <ctype.h> 6827#include <stdlib.h> 6828#if ((' ' & 0x0FF) == 0x020) 6829# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6830# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6831#else 6832# define ISLOWER(c) \ 6833 (('a' <= (c) && (c) <= 'i') \ 6834 || ('j' <= (c) && (c) <= 'r') \ 6835 || ('s' <= (c) && (c) <= 'z')) 6836# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6837#endif 6838 6839#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6840int 6841main () 6842{ 6843 int i; 6844 for (i = 0; i < 256; i++) 6845 if (XOR (islower (i), ISLOWER (i)) 6846 || toupper (i) != TOUPPER (i)) 6847 return 2; 6848 return 0; 6849} 6850_ACEOF 6851if ac_fn_c_try_run "$LINENO"; then : 6852 6853else 6854 ac_cv_header_stdc=no 6855fi 6856rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6857 conftest.$ac_objext conftest.beam conftest.$ac_ext 6858fi 6859 6860fi 6861fi 6862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6863$as_echo "$ac_cv_header_stdc" >&6; } 6864if test $ac_cv_header_stdc = yes; then 6865 6866$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6867 6868fi 6869 6870# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6871for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6872 inttypes.h stdint.h unistd.h 6873do : 6874 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6875ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6876" 6877eval as_val=\$$as_ac_Header 6878 if test "x$as_val" = x""yes; then : 6879 cat >>confdefs.h <<_ACEOF 6880#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6881_ACEOF 6882 6883fi 6884 6885done 6886 6887 6888for ac_header in dlfcn.h 6889do : 6890 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 6891" 6892if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 6893 cat >>confdefs.h <<_ACEOF 6894#define HAVE_DLFCN_H 1 6895_ACEOF 6896 6897fi 6898 6899done 6900 6901 6902 6903 6904 6905# Set options 6906 6907 6908 6909 enable_dlopen=no 6910 6911 6912 enable_win32_dll=no 6913 6914 6915 # Check whether --enable-shared was given. 6916if test "${enable_shared+set}" = set; then : 6917 enableval=$enable_shared; p=${PACKAGE-default} 6918 case $enableval in 6919 yes) enable_shared=yes ;; 6920 no) enable_shared=no ;; 6921 *) 6922 enable_shared=no 6923 # Look at the argument we got. We use all the common list separators. 6924 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6925 for pkg in $enableval; do 6926 IFS="$lt_save_ifs" 6927 if test "X$pkg" = "X$p"; then 6928 enable_shared=yes 6929 fi 6930 done 6931 IFS="$lt_save_ifs" 6932 ;; 6933 esac 6934else 6935 enable_shared=yes 6936fi 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 # Check whether --enable-static was given. 6947if test "${enable_static+set}" = set; then : 6948 enableval=$enable_static; p=${PACKAGE-default} 6949 case $enableval in 6950 yes) enable_static=yes ;; 6951 no) enable_static=no ;; 6952 *) 6953 enable_static=no 6954 # Look at the argument we got. We use all the common list separators. 6955 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6956 for pkg in $enableval; do 6957 IFS="$lt_save_ifs" 6958 if test "X$pkg" = "X$p"; then 6959 enable_static=yes 6960 fi 6961 done 6962 IFS="$lt_save_ifs" 6963 ;; 6964 esac 6965else 6966 enable_static=yes 6967fi 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978# Check whether --with-pic was given. 6979if test "${with_pic+set}" = set; then : 6980 withval=$with_pic; pic_mode="$withval" 6981else 6982 pic_mode=default 6983fi 6984 6985 6986test -z "$pic_mode" && pic_mode=default 6987 6988 6989 6990 6991 6992 6993 6994 # Check whether --enable-fast-install was given. 6995if test "${enable_fast_install+set}" = set; then : 6996 enableval=$enable_fast_install; p=${PACKAGE-default} 6997 case $enableval in 6998 yes) enable_fast_install=yes ;; 6999 no) enable_fast_install=no ;; 7000 *) 7001 enable_fast_install=no 7002 # Look at the argument we got. We use all the common list separators. 7003 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7004 for pkg in $enableval; do 7005 IFS="$lt_save_ifs" 7006 if test "X$pkg" = "X$p"; then 7007 enable_fast_install=yes 7008 fi 7009 done 7010 IFS="$lt_save_ifs" 7011 ;; 7012 esac 7013else 7014 enable_fast_install=yes 7015fi 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027# This can be used to rebuild libtool when needed 7028LIBTOOL_DEPS="$ltmain" 7029 7030# Always use our own libtool. 7031LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058test -z "$LN_S" && LN_S="ln -s" 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073if test -n "${ZSH_VERSION+set}" ; then 7074 setopt NO_GLOB_SUBST 7075fi 7076 7077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7078$as_echo_n "checking for objdir... " >&6; } 7079if test "${lt_cv_objdir+set}" = set; then : 7080 $as_echo_n "(cached) " >&6 7081else 7082 rm -f .libs 2>/dev/null 7083mkdir .libs 2>/dev/null 7084if test -d .libs; then 7085 lt_cv_objdir=.libs 7086else 7087 # MS-DOS does not allow filenames that begin with a dot. 7088 lt_cv_objdir=_libs 7089fi 7090rmdir .libs 2>/dev/null 7091fi 7092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7093$as_echo "$lt_cv_objdir" >&6; } 7094objdir=$lt_cv_objdir 7095 7096 7097 7098 7099 7100cat >>confdefs.h <<_ACEOF 7101#define LT_OBJDIR "$lt_cv_objdir/" 7102_ACEOF 7103 7104 7105 7106 7107case $host_os in 7108aix3*) 7109 # AIX sometimes has problems with the GCC collect2 program. For some 7110 # reason, if we set the COLLECT_NAMES environment variable, the problems 7111 # vanish in a puff of smoke. 7112 if test "X${COLLECT_NAMES+set}" != Xset; then 7113 COLLECT_NAMES= 7114 export COLLECT_NAMES 7115 fi 7116 ;; 7117esac 7118 7119# Global variables: 7120ofile=libtool 7121can_build_shared=yes 7122 7123# All known linkers require a `.a' archive for static linking (except MSVC, 7124# which needs '.lib'). 7125libext=a 7126 7127with_gnu_ld="$lt_cv_prog_gnu_ld" 7128 7129old_CC="$CC" 7130old_CFLAGS="$CFLAGS" 7131 7132# Set sane defaults for various variables 7133test -z "$CC" && CC=cc 7134test -z "$LTCC" && LTCC=$CC 7135test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7136test -z "$LD" && LD=ld 7137test -z "$ac_objext" && ac_objext=o 7138 7139for cc_temp in $compiler""; do 7140 case $cc_temp in 7141 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7142 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7143 \-*) ;; 7144 *) break;; 7145 esac 7146done 7147cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7148 7149 7150# Only perform the check for file, if the check method requires it 7151test -z "$MAGIC_CMD" && MAGIC_CMD=file 7152case $deplibs_check_method in 7153file_magic*) 7154 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7156$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7157if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7158 $as_echo_n "(cached) " >&6 7159else 7160 case $MAGIC_CMD in 7161[\\/*] | ?:[\\/]*) 7162 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7163 ;; 7164*) 7165 lt_save_MAGIC_CMD="$MAGIC_CMD" 7166 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7167 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7168 for ac_dir in $ac_dummy; do 7169 IFS="$lt_save_ifs" 7170 test -z "$ac_dir" && ac_dir=. 7171 if test -f $ac_dir/${ac_tool_prefix}file; then 7172 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7173 if test -n "$file_magic_test_file"; then 7174 case $deplibs_check_method in 7175 "file_magic "*) 7176 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7177 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7178 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7179 $EGREP "$file_magic_regex" > /dev/null; then 7180 : 7181 else 7182 cat <<_LT_EOF 1>&2 7183 7184*** Warning: the command libtool uses to detect shared libraries, 7185*** $file_magic_cmd, produces output that libtool cannot recognize. 7186*** The result is that libtool may fail to recognize shared libraries 7187*** as such. This will affect the creation of libtool libraries that 7188*** depend on shared libraries, but programs linked with such libtool 7189*** libraries will work regardless of this problem. Nevertheless, you 7190*** may want to report the problem to your system manager and/or to 7191*** bug-libtool@gnu.org 7192 7193_LT_EOF 7194 fi ;; 7195 esac 7196 fi 7197 break 7198 fi 7199 done 7200 IFS="$lt_save_ifs" 7201 MAGIC_CMD="$lt_save_MAGIC_CMD" 7202 ;; 7203esac 7204fi 7205 7206MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7207if test -n "$MAGIC_CMD"; then 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7209$as_echo "$MAGIC_CMD" >&6; } 7210else 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7212$as_echo "no" >&6; } 7213fi 7214 7215 7216 7217 7218 7219if test -z "$lt_cv_path_MAGIC_CMD"; then 7220 if test -n "$ac_tool_prefix"; then 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7222$as_echo_n "checking for file... " >&6; } 7223if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7224 $as_echo_n "(cached) " >&6 7225else 7226 case $MAGIC_CMD in 7227[\\/*] | ?:[\\/]*) 7228 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7229 ;; 7230*) 7231 lt_save_MAGIC_CMD="$MAGIC_CMD" 7232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7233 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7234 for ac_dir in $ac_dummy; do 7235 IFS="$lt_save_ifs" 7236 test -z "$ac_dir" && ac_dir=. 7237 if test -f $ac_dir/file; then 7238 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7239 if test -n "$file_magic_test_file"; then 7240 case $deplibs_check_method in 7241 "file_magic "*) 7242 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7243 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7244 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7245 $EGREP "$file_magic_regex" > /dev/null; then 7246 : 7247 else 7248 cat <<_LT_EOF 1>&2 7249 7250*** Warning: the command libtool uses to detect shared libraries, 7251*** $file_magic_cmd, produces output that libtool cannot recognize. 7252*** The result is that libtool may fail to recognize shared libraries 7253*** as such. This will affect the creation of libtool libraries that 7254*** depend on shared libraries, but programs linked with such libtool 7255*** libraries will work regardless of this problem. Nevertheless, you 7256*** may want to report the problem to your system manager and/or to 7257*** bug-libtool@gnu.org 7258 7259_LT_EOF 7260 fi ;; 7261 esac 7262 fi 7263 break 7264 fi 7265 done 7266 IFS="$lt_save_ifs" 7267 MAGIC_CMD="$lt_save_MAGIC_CMD" 7268 ;; 7269esac 7270fi 7271 7272MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7273if test -n "$MAGIC_CMD"; then 7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7275$as_echo "$MAGIC_CMD" >&6; } 7276else 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7278$as_echo "no" >&6; } 7279fi 7280 7281 7282 else 7283 MAGIC_CMD=: 7284 fi 7285fi 7286 7287 fi 7288 ;; 7289esac 7290 7291# Use C for the default configuration in the libtool script 7292 7293lt_save_CC="$CC" 7294ac_ext=c 7295ac_cpp='$CPP $CPPFLAGS' 7296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7298ac_compiler_gnu=$ac_cv_c_compiler_gnu 7299 7300 7301# Source file extension for C test sources. 7302ac_ext=c 7303 7304# Object file extension for compiled C test sources. 7305objext=o 7306objext=$objext 7307 7308# Code to be used in simple compile tests 7309lt_simple_compile_test_code="int some_variable = 0;" 7310 7311# Code to be used in simple link tests 7312lt_simple_link_test_code='int main(){return(0);}' 7313 7314 7315 7316 7317 7318 7319 7320# If no C compiler was specified, use CC. 7321LTCC=${LTCC-"$CC"} 7322 7323# If no C compiler flags were specified, use CFLAGS. 7324LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7325 7326# Allow CC to be a program name with arguments. 7327compiler=$CC 7328 7329# Save the default compiler, since it gets overwritten when the other 7330# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7331compiler_DEFAULT=$CC 7332 7333# save warnings/boilerplate of simple test code 7334ac_outfile=conftest.$ac_objext 7335echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7336eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7337_lt_compiler_boilerplate=`cat conftest.err` 7338$RM conftest* 7339 7340ac_outfile=conftest.$ac_objext 7341echo "$lt_simple_link_test_code" >conftest.$ac_ext 7342eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7343_lt_linker_boilerplate=`cat conftest.err` 7344$RM -r conftest* 7345 7346 7347## CAVEAT EMPTOR: 7348## There is no encapsulation within the following macros, do not change 7349## the running order or otherwise move them around unless you know exactly 7350## what you are doing... 7351if test -n "$compiler"; then 7352 7353lt_prog_compiler_no_builtin_flag= 7354 7355if test "$GCC" = yes; then 7356 case $cc_basename in 7357 nvcc*) 7358 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7359 *) 7360 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7361 esac 7362 7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7364$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7365if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7366 $as_echo_n "(cached) " >&6 7367else 7368 lt_cv_prog_compiler_rtti_exceptions=no 7369 ac_outfile=conftest.$ac_objext 7370 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7371 lt_compiler_flag="-fno-rtti -fno-exceptions" 7372 # Insert the option either (1) after the last *FLAGS variable, or 7373 # (2) before a word containing "conftest.", or (3) at the end. 7374 # Note that $ac_compile itself does not contain backslashes and begins 7375 # with a dollar sign (not a hyphen), so the echo should work correctly. 7376 # The option is referenced via a variable to avoid confusing sed. 7377 lt_compile=`echo "$ac_compile" | $SED \ 7378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7379 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7380 -e 's:$: $lt_compiler_flag:'` 7381 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7382 (eval "$lt_compile" 2>conftest.err) 7383 ac_status=$? 7384 cat conftest.err >&5 7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7386 if (exit $ac_status) && test -s "$ac_outfile"; then 7387 # The compiler can only warn and ignore the option if not recognized 7388 # So say no if there are warnings other than the usual output. 7389 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7390 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7391 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7392 lt_cv_prog_compiler_rtti_exceptions=yes 7393 fi 7394 fi 7395 $RM conftest* 7396 7397fi 7398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7399$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7400 7401if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7402 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7403else 7404 : 7405fi 7406 7407fi 7408 7409 7410 7411 7412 7413 7414 lt_prog_compiler_wl= 7415lt_prog_compiler_pic= 7416lt_prog_compiler_static= 7417 7418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7419$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7420 7421 if test "$GCC" = yes; then 7422 lt_prog_compiler_wl='-Wl,' 7423 lt_prog_compiler_static='-static' 7424 7425 case $host_os in 7426 aix*) 7427 # All AIX code is PIC. 7428 if test "$host_cpu" = ia64; then 7429 # AIX 5 now supports IA64 processor 7430 lt_prog_compiler_static='-Bstatic' 7431 fi 7432 lt_prog_compiler_pic='-fPIC' 7433 ;; 7434 7435 amigaos*) 7436 case $host_cpu in 7437 powerpc) 7438 # see comment about AmigaOS4 .so support 7439 lt_prog_compiler_pic='-fPIC' 7440 ;; 7441 m68k) 7442 # FIXME: we need at least 68020 code to build shared libraries, but 7443 # adding the `-m68020' flag to GCC prevents building anything better, 7444 # like `-m68040'. 7445 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7446 ;; 7447 esac 7448 ;; 7449 7450 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7451 # PIC is the default for these OSes. 7452 ;; 7453 7454 mingw* | cygwin* | pw32* | os2* | cegcc*) 7455 # This hack is so that the source file can tell whether it is being 7456 # built for inclusion in a dll (and should export symbols for example). 7457 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7458 # (--disable-auto-import) libraries 7459 lt_prog_compiler_pic='-DDLL_EXPORT' 7460 ;; 7461 7462 darwin* | rhapsody*) 7463 # PIC is the default on this platform 7464 # Common symbols not allowed in MH_DYLIB files 7465 lt_prog_compiler_pic='-fno-common' 7466 ;; 7467 7468 haiku*) 7469 # PIC is the default for Haiku. 7470 # The "-static" flag exists, but is broken. 7471 lt_prog_compiler_static= 7472 ;; 7473 7474 hpux*) 7475 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7476 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7477 # sets the default TLS model and affects inlining. 7478 case $host_cpu in 7479 hppa*64*) 7480 # +Z the default 7481 ;; 7482 *) 7483 lt_prog_compiler_pic='-fPIC' 7484 ;; 7485 esac 7486 ;; 7487 7488 interix[3-9]*) 7489 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7490 # Instead, we relocate shared libraries at runtime. 7491 ;; 7492 7493 msdosdjgpp*) 7494 # Just because we use GCC doesn't mean we suddenly get shared libraries 7495 # on systems that don't support them. 7496 lt_prog_compiler_can_build_shared=no 7497 enable_shared=no 7498 ;; 7499 7500 *nto* | *qnx*) 7501 # QNX uses GNU C++, but need to define -shared option too, otherwise 7502 # it will coredump. 7503 lt_prog_compiler_pic='-fPIC -shared' 7504 ;; 7505 7506 sysv4*MP*) 7507 if test -d /usr/nec; then 7508 lt_prog_compiler_pic=-Kconform_pic 7509 fi 7510 ;; 7511 7512 *) 7513 lt_prog_compiler_pic='-fPIC' 7514 ;; 7515 esac 7516 7517 case $cc_basename in 7518 nvcc*) # Cuda Compiler Driver 2.2 7519 lt_prog_compiler_wl='-Xlinker ' 7520 lt_prog_compiler_pic='-Xcompiler -fPIC' 7521 ;; 7522 esac 7523 else 7524 # PORTME Check for flag to pass linker flags through the system compiler. 7525 case $host_os in 7526 aix*) 7527 lt_prog_compiler_wl='-Wl,' 7528 if test "$host_cpu" = ia64; then 7529 # AIX 5 now supports IA64 processor 7530 lt_prog_compiler_static='-Bstatic' 7531 else 7532 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7533 fi 7534 ;; 7535 7536 mingw* | cygwin* | pw32* | os2* | cegcc*) 7537 # This hack is so that the source file can tell whether it is being 7538 # built for inclusion in a dll (and should export symbols for example). 7539 lt_prog_compiler_pic='-DDLL_EXPORT' 7540 ;; 7541 7542 hpux9* | hpux10* | hpux11*) 7543 lt_prog_compiler_wl='-Wl,' 7544 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7545 # not for PA HP-UX. 7546 case $host_cpu in 7547 hppa*64*|ia64*) 7548 # +Z the default 7549 ;; 7550 *) 7551 lt_prog_compiler_pic='+Z' 7552 ;; 7553 esac 7554 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7555 lt_prog_compiler_static='${wl}-a ${wl}archive' 7556 ;; 7557 7558 irix5* | irix6* | nonstopux*) 7559 lt_prog_compiler_wl='-Wl,' 7560 # PIC (with -KPIC) is the default. 7561 lt_prog_compiler_static='-non_shared' 7562 ;; 7563 7564 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7565 case $cc_basename in 7566 # old Intel for x86_64 which still supported -KPIC. 7567 ecc*) 7568 lt_prog_compiler_wl='-Wl,' 7569 lt_prog_compiler_pic='-KPIC' 7570 lt_prog_compiler_static='-static' 7571 ;; 7572 # icc used to be incompatible with GCC. 7573 # ICC 10 doesn't accept -KPIC any more. 7574 icc* | ifort*) 7575 lt_prog_compiler_wl='-Wl,' 7576 lt_prog_compiler_pic='-fPIC' 7577 lt_prog_compiler_static='-static' 7578 ;; 7579 # Lahey Fortran 8.1. 7580 lf95*) 7581 lt_prog_compiler_wl='-Wl,' 7582 lt_prog_compiler_pic='--shared' 7583 lt_prog_compiler_static='--static' 7584 ;; 7585 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 7586 # Portland Group compilers (*not* the Pentium gcc compiler, 7587 # which looks to be a dead project) 7588 lt_prog_compiler_wl='-Wl,' 7589 lt_prog_compiler_pic='-fpic' 7590 lt_prog_compiler_static='-Bstatic' 7591 ;; 7592 ccc*) 7593 lt_prog_compiler_wl='-Wl,' 7594 # All Alpha code is PIC. 7595 lt_prog_compiler_static='-non_shared' 7596 ;; 7597 xl* | bgxl* | bgf* | mpixl*) 7598 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 7599 lt_prog_compiler_wl='-Wl,' 7600 lt_prog_compiler_pic='-qpic' 7601 lt_prog_compiler_static='-qstaticlink' 7602 ;; 7603 *) 7604 case `$CC -V 2>&1 | sed 5q` in 7605 *Sun\ F* | *Sun*Fortran*) 7606 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7607 lt_prog_compiler_pic='-KPIC' 7608 lt_prog_compiler_static='-Bstatic' 7609 lt_prog_compiler_wl='' 7610 ;; 7611 *Sun\ C*) 7612 # Sun C 5.9 7613 lt_prog_compiler_pic='-KPIC' 7614 lt_prog_compiler_static='-Bstatic' 7615 lt_prog_compiler_wl='-Wl,' 7616 ;; 7617 esac 7618 ;; 7619 esac 7620 ;; 7621 7622 newsos6) 7623 lt_prog_compiler_pic='-KPIC' 7624 lt_prog_compiler_static='-Bstatic' 7625 ;; 7626 7627 *nto* | *qnx*) 7628 # QNX uses GNU C++, but need to define -shared option too, otherwise 7629 # it will coredump. 7630 lt_prog_compiler_pic='-fPIC -shared' 7631 ;; 7632 7633 osf3* | osf4* | osf5*) 7634 lt_prog_compiler_wl='-Wl,' 7635 # All OSF/1 code is PIC. 7636 lt_prog_compiler_static='-non_shared' 7637 ;; 7638 7639 rdos*) 7640 lt_prog_compiler_static='-non_shared' 7641 ;; 7642 7643 solaris*) 7644 lt_prog_compiler_pic='-KPIC' 7645 lt_prog_compiler_static='-Bstatic' 7646 case $cc_basename in 7647 f77* | f90* | f95*) 7648 lt_prog_compiler_wl='-Qoption ld ';; 7649 *) 7650 lt_prog_compiler_wl='-Wl,';; 7651 esac 7652 ;; 7653 7654 sunos4*) 7655 lt_prog_compiler_wl='-Qoption ld ' 7656 lt_prog_compiler_pic='-PIC' 7657 lt_prog_compiler_static='-Bstatic' 7658 ;; 7659 7660 sysv4 | sysv4.2uw2* | sysv4.3*) 7661 lt_prog_compiler_wl='-Wl,' 7662 lt_prog_compiler_pic='-KPIC' 7663 lt_prog_compiler_static='-Bstatic' 7664 ;; 7665 7666 sysv4*MP*) 7667 if test -d /usr/nec ;then 7668 lt_prog_compiler_pic='-Kconform_pic' 7669 lt_prog_compiler_static='-Bstatic' 7670 fi 7671 ;; 7672 7673 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7674 lt_prog_compiler_wl='-Wl,' 7675 lt_prog_compiler_pic='-KPIC' 7676 lt_prog_compiler_static='-Bstatic' 7677 ;; 7678 7679 unicos*) 7680 lt_prog_compiler_wl='-Wl,' 7681 lt_prog_compiler_can_build_shared=no 7682 ;; 7683 7684 uts4*) 7685 lt_prog_compiler_pic='-pic' 7686 lt_prog_compiler_static='-Bstatic' 7687 ;; 7688 7689 *) 7690 lt_prog_compiler_can_build_shared=no 7691 ;; 7692 esac 7693 fi 7694 7695case $host_os in 7696 # For platforms which do not support PIC, -DPIC is meaningless: 7697 *djgpp*) 7698 lt_prog_compiler_pic= 7699 ;; 7700 *) 7701 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7702 ;; 7703esac 7704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7705$as_echo "$lt_prog_compiler_pic" >&6; } 7706 7707 7708 7709 7710 7711 7712# 7713# Check to make sure the PIC flag actually works. 7714# 7715if test -n "$lt_prog_compiler_pic"; then 7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7717$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7718if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 7719 $as_echo_n "(cached) " >&6 7720else 7721 lt_cv_prog_compiler_pic_works=no 7722 ac_outfile=conftest.$ac_objext 7723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7724 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7725 # Insert the option either (1) after the last *FLAGS variable, or 7726 # (2) before a word containing "conftest.", or (3) at the end. 7727 # Note that $ac_compile itself does not contain backslashes and begins 7728 # with a dollar sign (not a hyphen), so the echo should work correctly. 7729 # The option is referenced via a variable to avoid confusing sed. 7730 lt_compile=`echo "$ac_compile" | $SED \ 7731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7733 -e 's:$: $lt_compiler_flag:'` 7734 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7735 (eval "$lt_compile" 2>conftest.err) 7736 ac_status=$? 7737 cat conftest.err >&5 7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7739 if (exit $ac_status) && test -s "$ac_outfile"; then 7740 # The compiler can only warn and ignore the option if not recognized 7741 # So say no if there are warnings other than the usual output. 7742 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7743 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7744 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7745 lt_cv_prog_compiler_pic_works=yes 7746 fi 7747 fi 7748 $RM conftest* 7749 7750fi 7751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7752$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7753 7754if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7755 case $lt_prog_compiler_pic in 7756 "" | " "*) ;; 7757 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7758 esac 7759else 7760 lt_prog_compiler_pic= 7761 lt_prog_compiler_can_build_shared=no 7762fi 7763 7764fi 7765 7766 7767 7768 7769 7770 7771# 7772# Check to make sure the static flag actually works. 7773# 7774wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7776$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7777if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 7778 $as_echo_n "(cached) " >&6 7779else 7780 lt_cv_prog_compiler_static_works=no 7781 save_LDFLAGS="$LDFLAGS" 7782 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7783 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7784 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7785 # The linker can only warn and ignore the option if not recognized 7786 # So say no if there are warnings 7787 if test -s conftest.err; then 7788 # Append any errors to the config.log. 7789 cat conftest.err 1>&5 7790 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 7791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7792 if diff conftest.exp conftest.er2 >/dev/null; then 7793 lt_cv_prog_compiler_static_works=yes 7794 fi 7795 else 7796 lt_cv_prog_compiler_static_works=yes 7797 fi 7798 fi 7799 $RM -r conftest* 7800 LDFLAGS="$save_LDFLAGS" 7801 7802fi 7803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7804$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7805 7806if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7807 : 7808else 7809 lt_prog_compiler_static= 7810fi 7811 7812 7813 7814 7815 7816 7817 7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7819$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7820if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7821 $as_echo_n "(cached) " >&6 7822else 7823 lt_cv_prog_compiler_c_o=no 7824 $RM -r conftest 2>/dev/null 7825 mkdir conftest 7826 cd conftest 7827 mkdir out 7828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7829 7830 lt_compiler_flag="-o out/conftest2.$ac_objext" 7831 # Insert the option either (1) after the last *FLAGS variable, or 7832 # (2) before a word containing "conftest.", or (3) at the end. 7833 # Note that $ac_compile itself does not contain backslashes and begins 7834 # with a dollar sign (not a hyphen), so the echo should work correctly. 7835 lt_compile=`echo "$ac_compile" | $SED \ 7836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7838 -e 's:$: $lt_compiler_flag:'` 7839 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7840 (eval "$lt_compile" 2>out/conftest.err) 7841 ac_status=$? 7842 cat out/conftest.err >&5 7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7844 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7845 then 7846 # The compiler can only warn and ignore the option if not recognized 7847 # So say no if there are warnings 7848 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 7849 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7850 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7851 lt_cv_prog_compiler_c_o=yes 7852 fi 7853 fi 7854 chmod u+w . 2>&5 7855 $RM conftest* 7856 # SGI C++ compiler will create directory out/ii_files/ for 7857 # template instantiation 7858 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7859 $RM out/* && rmdir out 7860 cd .. 7861 $RM -r conftest 7862 $RM conftest* 7863 7864fi 7865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7866$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7867 7868 7869 7870 7871 7872 7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7874$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7875if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7876 $as_echo_n "(cached) " >&6 7877else 7878 lt_cv_prog_compiler_c_o=no 7879 $RM -r conftest 2>/dev/null 7880 mkdir conftest 7881 cd conftest 7882 mkdir out 7883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7884 7885 lt_compiler_flag="-o out/conftest2.$ac_objext" 7886 # Insert the option either (1) after the last *FLAGS variable, or 7887 # (2) before a word containing "conftest.", or (3) at the end. 7888 # Note that $ac_compile itself does not contain backslashes and begins 7889 # with a dollar sign (not a hyphen), so the echo should work correctly. 7890 lt_compile=`echo "$ac_compile" | $SED \ 7891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7893 -e 's:$: $lt_compiler_flag:'` 7894 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7895 (eval "$lt_compile" 2>out/conftest.err) 7896 ac_status=$? 7897 cat out/conftest.err >&5 7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7899 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7900 then 7901 # The compiler can only warn and ignore the option if not recognized 7902 # So say no if there are warnings 7903 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 7904 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7905 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7906 lt_cv_prog_compiler_c_o=yes 7907 fi 7908 fi 7909 chmod u+w . 2>&5 7910 $RM conftest* 7911 # SGI C++ compiler will create directory out/ii_files/ for 7912 # template instantiation 7913 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7914 $RM out/* && rmdir out 7915 cd .. 7916 $RM -r conftest 7917 $RM conftest* 7918 7919fi 7920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7921$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7922 7923 7924 7925 7926hard_links="nottested" 7927if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7928 # do not overwrite the value of need_locks provided by the user 7929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 7930$as_echo_n "checking if we can lock with hard links... " >&6; } 7931 hard_links=yes 7932 $RM conftest* 7933 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7934 touch conftest.a 7935 ln conftest.a conftest.b 2>&5 || hard_links=no 7936 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 7938$as_echo "$hard_links" >&6; } 7939 if test "$hard_links" = no; then 7940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7941$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7942 need_locks=warn 7943 fi 7944else 7945 need_locks=no 7946fi 7947 7948 7949 7950 7951 7952 7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7954$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7955 7956 runpath_var= 7957 allow_undefined_flag= 7958 always_export_symbols=no 7959 archive_cmds= 7960 archive_expsym_cmds= 7961 compiler_needs_object=no 7962 enable_shared_with_static_runtimes=no 7963 export_dynamic_flag_spec= 7964 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7965 hardcode_automatic=no 7966 hardcode_direct=no 7967 hardcode_direct_absolute=no 7968 hardcode_libdir_flag_spec= 7969 hardcode_libdir_flag_spec_ld= 7970 hardcode_libdir_separator= 7971 hardcode_minus_L=no 7972 hardcode_shlibpath_var=unsupported 7973 inherit_rpath=no 7974 link_all_deplibs=unknown 7975 module_cmds= 7976 module_expsym_cmds= 7977 old_archive_from_new_cmds= 7978 old_archive_from_expsyms_cmds= 7979 thread_safe_flag_spec= 7980 whole_archive_flag_spec= 7981 # include_expsyms should be a list of space-separated symbols to be *always* 7982 # included in the symbol list 7983 include_expsyms= 7984 # exclude_expsyms can be an extended regexp of symbols to exclude 7985 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7986 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7987 # as well as any symbol that contains `d'. 7988 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7989 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7990 # platforms (ab)use it in PIC code, but their linkers get confused if 7991 # the symbol is explicitly referenced. Since portable code cannot 7992 # rely on this symbol name, it's probably fine to never include it in 7993 # preloaded symbol tables. 7994 # Exclude shared library initialization/finalization symbols. 7995 extract_expsyms_cmds= 7996 7997 case $host_os in 7998 cygwin* | mingw* | pw32* | cegcc*) 7999 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8000 # When not using gcc, we currently assume that we are using 8001 # Microsoft Visual C++. 8002 if test "$GCC" != yes; then 8003 with_gnu_ld=no 8004 fi 8005 ;; 8006 interix*) 8007 # we just hope/assume this is gcc and not c89 (= MSVC++) 8008 with_gnu_ld=yes 8009 ;; 8010 openbsd*) 8011 with_gnu_ld=no 8012 ;; 8013 esac 8014 8015 ld_shlibs=yes 8016 8017 # On some targets, GNU ld is compatible enough with the native linker 8018 # that we're better off using the native interface for both. 8019 lt_use_gnu_ld_interface=no 8020 if test "$with_gnu_ld" = yes; then 8021 case $host_os in 8022 aix*) 8023 # The AIX port of GNU ld has always aspired to compatibility 8024 # with the native linker. However, as the warning in the GNU ld 8025 # block says, versions before 2.19.5* couldn't really create working 8026 # shared libraries, regardless of the interface used. 8027 case `$LD -v 2>&1` in 8028 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8029 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8030 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8031 *) 8032 lt_use_gnu_ld_interface=yes 8033 ;; 8034 esac 8035 ;; 8036 *) 8037 lt_use_gnu_ld_interface=yes 8038 ;; 8039 esac 8040 fi 8041 8042 if test "$lt_use_gnu_ld_interface" = yes; then 8043 # If archive_cmds runs LD, not CC, wlarc should be empty 8044 wlarc='${wl}' 8045 8046 # Set some defaults for GNU ld with shared library support. These 8047 # are reset later if shared libraries are not supported. Putting them 8048 # here allows them to be overridden if necessary. 8049 runpath_var=LD_RUN_PATH 8050 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8051 export_dynamic_flag_spec='${wl}--export-dynamic' 8052 # ancient GNU ld didn't support --whole-archive et. al. 8053 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8054 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8055 else 8056 whole_archive_flag_spec= 8057 fi 8058 supports_anon_versioning=no 8059 case `$LD -v 2>&1` in 8060 *GNU\ gold*) supports_anon_versioning=yes ;; 8061 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8062 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8063 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8064 *\ 2.11.*) ;; # other 2.11 versions 8065 *) supports_anon_versioning=yes ;; 8066 esac 8067 8068 # See if GNU ld supports shared libraries. 8069 case $host_os in 8070 aix[3-9]*) 8071 # On AIX/PPC, the GNU linker is very broken 8072 if test "$host_cpu" != ia64; then 8073 ld_shlibs=no 8074 cat <<_LT_EOF 1>&2 8075 8076*** Warning: the GNU linker, at least up to release 2.19, is reported 8077*** to be unable to reliably create shared libraries on AIX. 8078*** Therefore, libtool is disabling shared libraries support. If you 8079*** really care for shared libraries, you may want to install binutils 8080*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8081*** You will then need to restart the configuration process. 8082 8083_LT_EOF 8084 fi 8085 ;; 8086 8087 amigaos*) 8088 case $host_cpu in 8089 powerpc) 8090 # see comment about AmigaOS4 .so support 8091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8092 archive_expsym_cmds='' 8093 ;; 8094 m68k) 8095 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)' 8096 hardcode_libdir_flag_spec='-L$libdir' 8097 hardcode_minus_L=yes 8098 ;; 8099 esac 8100 ;; 8101 8102 beos*) 8103 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8104 allow_undefined_flag=unsupported 8105 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8106 # support --undefined. This deserves some investigation. FIXME 8107 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8108 else 8109 ld_shlibs=no 8110 fi 8111 ;; 8112 8113 cygwin* | mingw* | pw32* | cegcc*) 8114 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8115 # as there is no search path for DLLs. 8116 hardcode_libdir_flag_spec='-L$libdir' 8117 export_dynamic_flag_spec='${wl}--export-all-symbols' 8118 allow_undefined_flag=unsupported 8119 always_export_symbols=no 8120 enable_shared_with_static_runtimes=yes 8121 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8122 8123 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8125 # If the export-symbols file already is a .def file (1st line 8126 # is EXPORTS), use it as is; otherwise, prepend... 8127 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8128 cp $export_symbols $output_objdir/$soname.def; 8129 else 8130 echo EXPORTS > $output_objdir/$soname.def; 8131 cat $export_symbols >> $output_objdir/$soname.def; 8132 fi~ 8133 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8134 else 8135 ld_shlibs=no 8136 fi 8137 ;; 8138 8139 haiku*) 8140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8141 link_all_deplibs=yes 8142 ;; 8143 8144 interix[3-9]*) 8145 hardcode_direct=no 8146 hardcode_shlibpath_var=no 8147 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8148 export_dynamic_flag_spec='${wl}-E' 8149 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8150 # Instead, shared libraries are loaded at an image base (0x10000000 by 8151 # default) and relocated if they conflict, which is a slow very memory 8152 # consuming and fragmenting process. To avoid this, we pick a random, 8153 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8154 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8155 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8156 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' 8157 ;; 8158 8159 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8160 tmp_diet=no 8161 if test "$host_os" = linux-dietlibc; then 8162 case $cc_basename in 8163 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8164 esac 8165 fi 8166 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8167 && test "$tmp_diet" = no 8168 then 8169 tmp_addflag=' $pic_flag' 8170 tmp_sharedflag='-shared' 8171 case $cc_basename,$host_cpu in 8172 pgcc*) # Portland Group C compiler 8173 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' 8174 tmp_addflag=' $pic_flag' 8175 ;; 8176 pgf77* | pgf90* | pgf95* | pgfortran*) 8177 # Portland Group f77 and f90 compilers 8178 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' 8179 tmp_addflag=' $pic_flag -Mnomain' ;; 8180 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8181 tmp_addflag=' -i_dynamic' ;; 8182 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8183 tmp_addflag=' -i_dynamic -nofor_main' ;; 8184 ifc* | ifort*) # Intel Fortran compiler 8185 tmp_addflag=' -nofor_main' ;; 8186 lf95*) # Lahey Fortran 8.1 8187 whole_archive_flag_spec= 8188 tmp_sharedflag='--shared' ;; 8189 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8190 tmp_sharedflag='-qmkshrobj' 8191 tmp_addflag= ;; 8192 nvcc*) # Cuda Compiler Driver 2.2 8193 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' 8194 compiler_needs_object=yes 8195 ;; 8196 esac 8197 case `$CC -V 2>&1 | sed 5q` in 8198 *Sun\ C*) # Sun C 5.9 8199 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' 8200 compiler_needs_object=yes 8201 tmp_sharedflag='-G' ;; 8202 *Sun\ F*) # Sun Fortran 8.3 8203 tmp_sharedflag='-G' ;; 8204 esac 8205 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8206 8207 if test "x$supports_anon_versioning" = xyes; then 8208 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8209 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8210 echo "local: *; };" >> $output_objdir/$libname.ver~ 8211 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8212 fi 8213 8214 case $cc_basename in 8215 xlf* | bgf* | bgxlf* | mpixlf*) 8216 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8217 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8218 hardcode_libdir_flag_spec= 8219 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8220 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8221 if test "x$supports_anon_versioning" = xyes; then 8222 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8223 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8224 echo "local: *; };" >> $output_objdir/$libname.ver~ 8225 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8226 fi 8227 ;; 8228 esac 8229 else 8230 ld_shlibs=no 8231 fi 8232 ;; 8233 8234 netbsd*) 8235 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8236 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8237 wlarc= 8238 else 8239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8240 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8241 fi 8242 ;; 8243 8244 solaris*) 8245 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8246 ld_shlibs=no 8247 cat <<_LT_EOF 1>&2 8248 8249*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8250*** create shared libraries on Solaris systems. Therefore, libtool 8251*** is disabling shared libraries support. We urge you to upgrade GNU 8252*** binutils to release 2.9.1 or newer. Another option is to modify 8253*** your PATH or compiler configuration so that the native linker is 8254*** used, and then restart. 8255 8256_LT_EOF 8257 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8259 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8260 else 8261 ld_shlibs=no 8262 fi 8263 ;; 8264 8265 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8266 case `$LD -v 2>&1` in 8267 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8268 ld_shlibs=no 8269 cat <<_LT_EOF 1>&2 8270 8271*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8272*** reliably create shared libraries on SCO systems. Therefore, libtool 8273*** is disabling shared libraries support. We urge you to upgrade GNU 8274*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8275*** your PATH or compiler configuration so that the native linker is 8276*** used, and then restart. 8277 8278_LT_EOF 8279 ;; 8280 *) 8281 # For security reasons, it is highly recommended that you always 8282 # use absolute paths for naming shared libraries, and exclude the 8283 # DT_RUNPATH tag from executables and libraries. But doing so 8284 # requires that you compile everything twice, which is a pain. 8285 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8286 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8289 else 8290 ld_shlibs=no 8291 fi 8292 ;; 8293 esac 8294 ;; 8295 8296 sunos4*) 8297 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8298 wlarc= 8299 hardcode_direct=yes 8300 hardcode_shlibpath_var=no 8301 ;; 8302 8303 *) 8304 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8307 else 8308 ld_shlibs=no 8309 fi 8310 ;; 8311 esac 8312 8313 if test "$ld_shlibs" = no; then 8314 runpath_var= 8315 hardcode_libdir_flag_spec= 8316 export_dynamic_flag_spec= 8317 whole_archive_flag_spec= 8318 fi 8319 else 8320 # PORTME fill in a description of your system's linker (not GNU ld) 8321 case $host_os in 8322 aix3*) 8323 allow_undefined_flag=unsupported 8324 always_export_symbols=yes 8325 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' 8326 # Note: this linker hardcodes the directories in LIBPATH if there 8327 # are no directories specified by -L. 8328 hardcode_minus_L=yes 8329 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8330 # Neither direct hardcoding nor static linking is supported with a 8331 # broken collect2. 8332 hardcode_direct=unsupported 8333 fi 8334 ;; 8335 8336 aix[4-9]*) 8337 if test "$host_cpu" = ia64; then 8338 # On IA64, the linker does run time linking by default, so we don't 8339 # have to do anything special. 8340 aix_use_runtimelinking=no 8341 exp_sym_flag='-Bexport' 8342 no_entry_flag="" 8343 else 8344 # If we're using GNU nm, then we don't want the "-C" option. 8345 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8346 # Also, AIX nm treats weak defined symbols like other global 8347 # defined symbols, whereas GNU nm marks them as "W". 8348 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8349 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' 8350 else 8351 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' 8352 fi 8353 aix_use_runtimelinking=no 8354 8355 # Test if we are trying to use run time linking or normal 8356 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8357 # need to do runtime linking. 8358 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8359 for ld_flag in $LDFLAGS; do 8360 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8361 aix_use_runtimelinking=yes 8362 break 8363 fi 8364 done 8365 ;; 8366 esac 8367 8368 exp_sym_flag='-bexport' 8369 no_entry_flag='-bnoentry' 8370 fi 8371 8372 # When large executables or shared objects are built, AIX ld can 8373 # have problems creating the table of contents. If linking a library 8374 # or program results in "error TOC overflow" add -mminimal-toc to 8375 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8376 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8377 8378 archive_cmds='' 8379 hardcode_direct=yes 8380 hardcode_direct_absolute=yes 8381 hardcode_libdir_separator=':' 8382 link_all_deplibs=yes 8383 file_list_spec='${wl}-f,' 8384 8385 if test "$GCC" = yes; then 8386 case $host_os in aix4.[012]|aix4.[012].*) 8387 # We only want to do this on AIX 4.2 and lower, the check 8388 # below for broken collect2 doesn't work under 4.3+ 8389 collect2name=`${CC} -print-prog-name=collect2` 8390 if test -f "$collect2name" && 8391 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8392 then 8393 # We have reworked collect2 8394 : 8395 else 8396 # We have old collect2 8397 hardcode_direct=unsupported 8398 # It fails to find uninstalled libraries when the uninstalled 8399 # path is not listed in the libpath. Setting hardcode_minus_L 8400 # to unsupported forces relinking 8401 hardcode_minus_L=yes 8402 hardcode_libdir_flag_spec='-L$libdir' 8403 hardcode_libdir_separator= 8404 fi 8405 ;; 8406 esac 8407 shared_flag='-shared' 8408 if test "$aix_use_runtimelinking" = yes; then 8409 shared_flag="$shared_flag "'${wl}-G' 8410 fi 8411 else 8412 # not using gcc 8413 if test "$host_cpu" = ia64; then 8414 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8415 # chokes on -Wl,-G. The following line is correct: 8416 shared_flag='-G' 8417 else 8418 if test "$aix_use_runtimelinking" = yes; then 8419 shared_flag='${wl}-G' 8420 else 8421 shared_flag='${wl}-bM:SRE' 8422 fi 8423 fi 8424 fi 8425 8426 export_dynamic_flag_spec='${wl}-bexpall' 8427 # It seems that -bexpall does not export symbols beginning with 8428 # underscore (_), so it is better to generate a list of symbols to export. 8429 always_export_symbols=yes 8430 if test "$aix_use_runtimelinking" = yes; then 8431 # Warning - without using the other runtime loading flags (-brtl), 8432 # -berok will link without error, but may produce a broken library. 8433 allow_undefined_flag='-berok' 8434 # Determine the default libpath from the value encoded in an 8435 # empty executable. 8436 if test x$gcc_no_link = xyes; then 8437 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 8438fi 8439cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8440/* end confdefs.h. */ 8441 8442int 8443main () 8444{ 8445 8446 ; 8447 return 0; 8448} 8449_ACEOF 8450if ac_fn_c_try_link "$LINENO"; then : 8451 8452lt_aix_libpath_sed=' 8453 /Import File Strings/,/^$/ { 8454 /^0/ { 8455 s/^0 *\(.*\)$/\1/ 8456 p 8457 } 8458 }' 8459aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8460# Check for a 64-bit object if we didn't find anything. 8461if test -z "$aix_libpath"; then 8462 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8463fi 8464fi 8465rm -f core conftest.err conftest.$ac_objext \ 8466 conftest$ac_exeext conftest.$ac_ext 8467if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8468 8469 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8470 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" 8471 else 8472 if test "$host_cpu" = ia64; then 8473 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8474 allow_undefined_flag="-z nodefs" 8475 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" 8476 else 8477 # Determine the default libpath from the value encoded in an 8478 # empty executable. 8479 if test x$gcc_no_link = xyes; then 8480 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 8481fi 8482cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8483/* end confdefs.h. */ 8484 8485int 8486main () 8487{ 8488 8489 ; 8490 return 0; 8491} 8492_ACEOF 8493if ac_fn_c_try_link "$LINENO"; then : 8494 8495lt_aix_libpath_sed=' 8496 /Import File Strings/,/^$/ { 8497 /^0/ { 8498 s/^0 *\(.*\)$/\1/ 8499 p 8500 } 8501 }' 8502aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8503# Check for a 64-bit object if we didn't find anything. 8504if test -z "$aix_libpath"; then 8505 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8506fi 8507fi 8508rm -f core conftest.err conftest.$ac_objext \ 8509 conftest$ac_exeext conftest.$ac_ext 8510if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8511 8512 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8513 # Warning - without using the other run time loading flags, 8514 # -berok will link without error, but may produce a broken library. 8515 no_undefined_flag=' ${wl}-bernotok' 8516 allow_undefined_flag=' ${wl}-berok' 8517 if test "$with_gnu_ld" = yes; then 8518 # We only use this code for GNU lds that support --whole-archive. 8519 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8520 else 8521 # Exported symbols can be pulled into shared objects from archives 8522 whole_archive_flag_spec='$convenience' 8523 fi 8524 archive_cmds_need_lc=yes 8525 # This is similar to how AIX traditionally builds its shared libraries. 8526 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' 8527 fi 8528 fi 8529 ;; 8530 8531 amigaos*) 8532 case $host_cpu in 8533 powerpc) 8534 # see comment about AmigaOS4 .so support 8535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8536 archive_expsym_cmds='' 8537 ;; 8538 m68k) 8539 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)' 8540 hardcode_libdir_flag_spec='-L$libdir' 8541 hardcode_minus_L=yes 8542 ;; 8543 esac 8544 ;; 8545 8546 bsdi[45]*) 8547 export_dynamic_flag_spec=-rdynamic 8548 ;; 8549 8550 cygwin* | mingw* | pw32* | cegcc*) 8551 # When not using gcc, we currently assume that we are using 8552 # Microsoft Visual C++. 8553 # hardcode_libdir_flag_spec is actually meaningless, as there is 8554 # no search path for DLLs. 8555 hardcode_libdir_flag_spec=' ' 8556 allow_undefined_flag=unsupported 8557 # Tell ltmain to make .lib files, not .a files. 8558 libext=lib 8559 # Tell ltmain to make .dll files, not .so files. 8560 shrext_cmds=".dll" 8561 # FIXME: Setting linknames here is a bad hack. 8562 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 8563 # The linker will automatically build a .lib file if we build a DLL. 8564 old_archive_from_new_cmds='true' 8565 # FIXME: Should let the user specify the lib program. 8566 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8567 fix_srcfile_path='`cygpath -w "$srcfile"`' 8568 enable_shared_with_static_runtimes=yes 8569 ;; 8570 8571 darwin* | rhapsody*) 8572 8573 8574 archive_cmds_need_lc=no 8575 hardcode_direct=no 8576 hardcode_automatic=yes 8577 hardcode_shlibpath_var=unsupported 8578 if test "$lt_cv_ld_force_load" = "yes"; then 8579 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\"`' 8580 else 8581 whole_archive_flag_spec='' 8582 fi 8583 link_all_deplibs=yes 8584 allow_undefined_flag="$_lt_dar_allow_undefined" 8585 case $cc_basename in 8586 ifort*) _lt_dar_can_shared=yes ;; 8587 *) _lt_dar_can_shared=$GCC ;; 8588 esac 8589 if test "$_lt_dar_can_shared" = "yes"; then 8590 output_verbose_link_cmd=func_echo_all 8591 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8592 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8593 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}" 8594 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}" 8595 8596 else 8597 ld_shlibs=no 8598 fi 8599 8600 ;; 8601 8602 dgux*) 8603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8604 hardcode_libdir_flag_spec='-L$libdir' 8605 hardcode_shlibpath_var=no 8606 ;; 8607 8608 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8609 # support. Future versions do this automatically, but an explicit c++rt0.o 8610 # does not break anything, and helps significantly (at the cost of a little 8611 # extra space). 8612 freebsd2.2*) 8613 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8614 hardcode_libdir_flag_spec='-R$libdir' 8615 hardcode_direct=yes 8616 hardcode_shlibpath_var=no 8617 ;; 8618 8619 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8620 freebsd2.*) 8621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8622 hardcode_direct=yes 8623 hardcode_minus_L=yes 8624 hardcode_shlibpath_var=no 8625 ;; 8626 8627 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8628 freebsd* | dragonfly*) 8629 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8630 hardcode_libdir_flag_spec='-R$libdir' 8631 hardcode_direct=yes 8632 hardcode_shlibpath_var=no 8633 ;; 8634 8635 hpux9*) 8636 if test "$GCC" = yes; then 8637 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8638 else 8639 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' 8640 fi 8641 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8642 hardcode_libdir_separator=: 8643 hardcode_direct=yes 8644 8645 # hardcode_minus_L: Not really in the search PATH, 8646 # but as the default location of the library. 8647 hardcode_minus_L=yes 8648 export_dynamic_flag_spec='${wl}-E' 8649 ;; 8650 8651 hpux10*) 8652 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8653 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8654 else 8655 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8656 fi 8657 if test "$with_gnu_ld" = no; then 8658 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8659 hardcode_libdir_flag_spec_ld='+b $libdir' 8660 hardcode_libdir_separator=: 8661 hardcode_direct=yes 8662 hardcode_direct_absolute=yes 8663 export_dynamic_flag_spec='${wl}-E' 8664 # hardcode_minus_L: Not really in the search PATH, 8665 # but as the default location of the library. 8666 hardcode_minus_L=yes 8667 fi 8668 ;; 8669 8670 hpux11*) 8671 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8672 case $host_cpu in 8673 hppa*64*) 8674 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8675 ;; 8676 ia64*) 8677 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8678 ;; 8679 *) 8680 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8681 ;; 8682 esac 8683 else 8684 case $host_cpu in 8685 hppa*64*) 8686 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8687 ;; 8688 ia64*) 8689 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8690 ;; 8691 *) 8692 8693 # Older versions of the 11.00 compiler do not understand -b yet 8694 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 8696$as_echo_n "checking if $CC understands -b... " >&6; } 8697if test "${lt_cv_prog_compiler__b+set}" = set; then : 8698 $as_echo_n "(cached) " >&6 8699else 8700 lt_cv_prog_compiler__b=no 8701 save_LDFLAGS="$LDFLAGS" 8702 LDFLAGS="$LDFLAGS -b" 8703 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8704 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8705 # The linker can only warn and ignore the option if not recognized 8706 # So say no if there are warnings 8707 if test -s conftest.err; then 8708 # Append any errors to the config.log. 8709 cat conftest.err 1>&5 8710 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8712 if diff conftest.exp conftest.er2 >/dev/null; then 8713 lt_cv_prog_compiler__b=yes 8714 fi 8715 else 8716 lt_cv_prog_compiler__b=yes 8717 fi 8718 fi 8719 $RM -r conftest* 8720 LDFLAGS="$save_LDFLAGS" 8721 8722fi 8723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 8724$as_echo "$lt_cv_prog_compiler__b" >&6; } 8725 8726if test x"$lt_cv_prog_compiler__b" = xyes; then 8727 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8728else 8729 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8730fi 8731 8732 ;; 8733 esac 8734 fi 8735 if test "$with_gnu_ld" = no; then 8736 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8737 hardcode_libdir_separator=: 8738 8739 case $host_cpu in 8740 hppa*64*|ia64*) 8741 hardcode_direct=no 8742 hardcode_shlibpath_var=no 8743 ;; 8744 *) 8745 hardcode_direct=yes 8746 hardcode_direct_absolute=yes 8747 export_dynamic_flag_spec='${wl}-E' 8748 8749 # hardcode_minus_L: Not really in the search PATH, 8750 # but as the default location of the library. 8751 hardcode_minus_L=yes 8752 ;; 8753 esac 8754 fi 8755 ;; 8756 8757 irix5* | irix6* | nonstopux*) 8758 if test "$GCC" = yes; then 8759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8760 # Try to use the -exported_symbol ld option, if it does not 8761 # work, assume that -exports_file does not work either and 8762 # implicitly export all symbols. 8763 save_LDFLAGS="$LDFLAGS" 8764 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8765 if test x$gcc_no_link = xyes; then 8766 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 8767fi 8768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8769/* end confdefs.h. */ 8770int foo(void) {} 8771_ACEOF 8772if ac_fn_c_try_link "$LINENO"; then : 8773 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 8774 8775fi 8776rm -f core conftest.err conftest.$ac_objext \ 8777 conftest$ac_exeext conftest.$ac_ext 8778 LDFLAGS="$save_LDFLAGS" 8779 else 8780 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' 8781 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' 8782 fi 8783 archive_cmds_need_lc='no' 8784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8785 hardcode_libdir_separator=: 8786 inherit_rpath=yes 8787 link_all_deplibs=yes 8788 ;; 8789 8790 netbsd*) 8791 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8792 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8793 else 8794 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8795 fi 8796 hardcode_libdir_flag_spec='-R$libdir' 8797 hardcode_direct=yes 8798 hardcode_shlibpath_var=no 8799 ;; 8800 8801 newsos6) 8802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8803 hardcode_direct=yes 8804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8805 hardcode_libdir_separator=: 8806 hardcode_shlibpath_var=no 8807 ;; 8808 8809 *nto* | *qnx*) 8810 ;; 8811 8812 openbsd*) 8813 if test -f /usr/libexec/ld.so; then 8814 hardcode_direct=yes 8815 hardcode_shlibpath_var=no 8816 hardcode_direct_absolute=yes 8817 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8818 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8819 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8821 export_dynamic_flag_spec='${wl}-E' 8822 else 8823 case $host_os in 8824 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8826 hardcode_libdir_flag_spec='-R$libdir' 8827 ;; 8828 *) 8829 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8830 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8831 ;; 8832 esac 8833 fi 8834 else 8835 ld_shlibs=no 8836 fi 8837 ;; 8838 8839 os2*) 8840 hardcode_libdir_flag_spec='-L$libdir' 8841 hardcode_minus_L=yes 8842 allow_undefined_flag=unsupported 8843 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' 8844 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8845 ;; 8846 8847 osf3*) 8848 if test "$GCC" = yes; then 8849 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8850 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' 8851 else 8852 allow_undefined_flag=' -expect_unresolved \*' 8853 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' 8854 fi 8855 archive_cmds_need_lc='no' 8856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8857 hardcode_libdir_separator=: 8858 ;; 8859 8860 osf4* | osf5*) # as osf3* with the addition of -msym flag 8861 if test "$GCC" = yes; then 8862 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8863 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 8864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8865 else 8866 allow_undefined_flag=' -expect_unresolved \*' 8867 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' 8868 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~ 8869 $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' 8870 8871 # Both c and cxx compiler support -rpath directly 8872 hardcode_libdir_flag_spec='-rpath $libdir' 8873 fi 8874 archive_cmds_need_lc='no' 8875 hardcode_libdir_separator=: 8876 ;; 8877 8878 solaris*) 8879 no_undefined_flag=' -z defs' 8880 if test "$GCC" = yes; then 8881 wlarc='${wl}' 8882 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8883 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8884 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8885 else 8886 case `$CC -V 2>&1` in 8887 *"Compilers 5.0"*) 8888 wlarc='' 8889 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8890 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8891 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8892 ;; 8893 *) 8894 wlarc='${wl}' 8895 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8896 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8897 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8898 ;; 8899 esac 8900 fi 8901 hardcode_libdir_flag_spec='-R$libdir' 8902 hardcode_shlibpath_var=no 8903 case $host_os in 8904 solaris2.[0-5] | solaris2.[0-5].*) ;; 8905 *) 8906 # The compiler driver will combine and reorder linker options, 8907 # but understands `-z linker_flag'. GCC discards it without `$wl', 8908 # but is careful enough not to reorder. 8909 # Supported since Solaris 2.6 (maybe 2.5.1?) 8910 if test "$GCC" = yes; then 8911 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8912 else 8913 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8914 fi 8915 ;; 8916 esac 8917 link_all_deplibs=yes 8918 ;; 8919 8920 sunos4*) 8921 if test "x$host_vendor" = xsequent; then 8922 # Use $CC to link under sequent, because it throws in some extra .o 8923 # files that make .init and .fini sections work. 8924 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8925 else 8926 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8927 fi 8928 hardcode_libdir_flag_spec='-L$libdir' 8929 hardcode_direct=yes 8930 hardcode_minus_L=yes 8931 hardcode_shlibpath_var=no 8932 ;; 8933 8934 sysv4) 8935 case $host_vendor in 8936 sni) 8937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8938 hardcode_direct=yes # is this really true??? 8939 ;; 8940 siemens) 8941 ## LD is ld it makes a PLAMLIB 8942 ## CC just makes a GrossModule. 8943 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8944 reload_cmds='$CC -r -o $output$reload_objs' 8945 hardcode_direct=no 8946 ;; 8947 motorola) 8948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8949 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8950 ;; 8951 esac 8952 runpath_var='LD_RUN_PATH' 8953 hardcode_shlibpath_var=no 8954 ;; 8955 8956 sysv4.3*) 8957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8958 hardcode_shlibpath_var=no 8959 export_dynamic_flag_spec='-Bexport' 8960 ;; 8961 8962 sysv4*MP*) 8963 if test -d /usr/nec; then 8964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8965 hardcode_shlibpath_var=no 8966 runpath_var=LD_RUN_PATH 8967 hardcode_runpath_var=yes 8968 ld_shlibs=yes 8969 fi 8970 ;; 8971 8972 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8973 no_undefined_flag='${wl}-z,text' 8974 archive_cmds_need_lc=no 8975 hardcode_shlibpath_var=no 8976 runpath_var='LD_RUN_PATH' 8977 8978 if test "$GCC" = yes; then 8979 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8980 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8981 else 8982 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8983 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8984 fi 8985 ;; 8986 8987 sysv5* | sco3.2v5* | sco5v6*) 8988 # Note: We can NOT use -z defs as we might desire, because we do not 8989 # link with -lc, and that would cause any symbols used from libc to 8990 # always be unresolved, which means just about no library would 8991 # ever link correctly. If we're not using GNU ld we use -z text 8992 # though, which does catch some bad symbols but isn't as heavy-handed 8993 # as -z defs. 8994 no_undefined_flag='${wl}-z,text' 8995 allow_undefined_flag='${wl}-z,nodefs' 8996 archive_cmds_need_lc=no 8997 hardcode_shlibpath_var=no 8998 hardcode_libdir_flag_spec='${wl}-R,$libdir' 8999 hardcode_libdir_separator=':' 9000 link_all_deplibs=yes 9001 export_dynamic_flag_spec='${wl}-Bexport' 9002 runpath_var='LD_RUN_PATH' 9003 9004 if test "$GCC" = yes; then 9005 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9006 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9007 else 9008 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9009 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9010 fi 9011 ;; 9012 9013 uts4*) 9014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9015 hardcode_libdir_flag_spec='-L$libdir' 9016 hardcode_shlibpath_var=no 9017 ;; 9018 9019 *) 9020 ld_shlibs=no 9021 ;; 9022 esac 9023 9024 if test x$host_vendor = xsni; then 9025 case $host in 9026 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9027 export_dynamic_flag_spec='${wl}-Blargedynsym' 9028 ;; 9029 esac 9030 fi 9031 fi 9032 9033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9034$as_echo "$ld_shlibs" >&6; } 9035test "$ld_shlibs" = no && can_build_shared=no 9036 9037with_gnu_ld=$with_gnu_ld 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053# 9054# Do we need to explicitly link libc? 9055# 9056case "x$archive_cmds_need_lc" in 9057x|xyes) 9058 # Assume -lc should be added 9059 archive_cmds_need_lc=yes 9060 9061 if test "$enable_shared" = yes && test "$GCC" = yes; then 9062 case $archive_cmds in 9063 *'~'*) 9064 # FIXME: we may have to deal with multi-command sequences. 9065 ;; 9066 '$CC '*) 9067 # Test whether the compiler implicitly links with -lc since on some 9068 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9069 # to ld, don't add -lc before -lgcc. 9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9071$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9072if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 9073 $as_echo_n "(cached) " >&6 9074else 9075 $RM conftest* 9076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9077 9078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9079 (eval $ac_compile) 2>&5 9080 ac_status=$? 9081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9082 test $ac_status = 0; } 2>conftest.err; then 9083 soname=conftest 9084 lib=conftest 9085 libobjs=conftest.$ac_objext 9086 deplibs= 9087 wl=$lt_prog_compiler_wl 9088 pic_flag=$lt_prog_compiler_pic 9089 compiler_flags=-v 9090 linker_flags=-v 9091 verstring= 9092 output_objdir=. 9093 libname=conftest 9094 lt_save_allow_undefined_flag=$allow_undefined_flag 9095 allow_undefined_flag= 9096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9097 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9098 ac_status=$? 9099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9100 test $ac_status = 0; } 9101 then 9102 lt_cv_archive_cmds_need_lc=no 9103 else 9104 lt_cv_archive_cmds_need_lc=yes 9105 fi 9106 allow_undefined_flag=$lt_save_allow_undefined_flag 9107 else 9108 cat conftest.err 1>&5 9109 fi 9110 $RM conftest* 9111 9112fi 9113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9114$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9115 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9116 ;; 9117 esac 9118 fi 9119 ;; 9120esac 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9279$as_echo_n "checking dynamic linker characteristics... " >&6; } 9280 9281if test "$GCC" = yes; then 9282 case $host_os in 9283 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9284 *) lt_awk_arg="/^libraries:/" ;; 9285 esac 9286 case $host_os in 9287 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9288 *) lt_sed_strip_eq="s,=/,/,g" ;; 9289 esac 9290 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9291 case $lt_search_path_spec in 9292 *\;*) 9293 # if the path contains ";" then we assume it to be the separator 9294 # otherwise default to the standard path separator (i.e. ":") - it is 9295 # assumed that no part of a normal pathname contains ";" but that should 9296 # okay in the real world where ";" in dirpaths is itself problematic. 9297 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9298 ;; 9299 *) 9300 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9301 ;; 9302 esac 9303 # Ok, now we have the path, separated by spaces, we can step through it 9304 # and add multilib dir if necessary. 9305 lt_tmp_lt_search_path_spec= 9306 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9307 for lt_sys_path in $lt_search_path_spec; do 9308 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9309 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9310 else 9311 test -d "$lt_sys_path" && \ 9312 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9313 fi 9314 done 9315 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9316BEGIN {RS=" "; FS="/|\n";} { 9317 lt_foo=""; 9318 lt_count=0; 9319 for (lt_i = NF; lt_i > 0; lt_i--) { 9320 if ($lt_i != "" && $lt_i != ".") { 9321 if ($lt_i == "..") { 9322 lt_count++; 9323 } else { 9324 if (lt_count == 0) { 9325 lt_foo="/" $lt_i lt_foo; 9326 } else { 9327 lt_count--; 9328 } 9329 } 9330 } 9331 } 9332 if (lt_foo != "") { lt_freq[lt_foo]++; } 9333 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9334}'` 9335 # AWK program above erroneously prepends '/' to C:/dos/paths 9336 # for these hosts. 9337 case $host_os in 9338 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9339 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9340 esac 9341 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9342else 9343 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9344fi 9345library_names_spec= 9346libname_spec='lib$name' 9347soname_spec= 9348shrext_cmds=".so" 9349postinstall_cmds= 9350postuninstall_cmds= 9351finish_cmds= 9352finish_eval= 9353shlibpath_var= 9354shlibpath_overrides_runpath=unknown 9355version_type=none 9356dynamic_linker="$host_os ld.so" 9357sys_lib_dlsearch_path_spec="/lib /usr/lib" 9358need_lib_prefix=unknown 9359hardcode_into_libs=no 9360 9361# when you set need_version to no, make sure it does not cause -set_version 9362# flags to be left without arguments 9363need_version=unknown 9364 9365case $host_os in 9366aix3*) 9367 version_type=linux 9368 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9369 shlibpath_var=LIBPATH 9370 9371 # AIX 3 has no versioning support, so we append a major version to the name. 9372 soname_spec='${libname}${release}${shared_ext}$major' 9373 ;; 9374 9375aix[4-9]*) 9376 version_type=linux 9377 need_lib_prefix=no 9378 need_version=no 9379 hardcode_into_libs=yes 9380 if test "$host_cpu" = ia64; then 9381 # AIX 5 supports IA64 9382 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9383 shlibpath_var=LD_LIBRARY_PATH 9384 else 9385 # With GCC up to 2.95.x, collect2 would create an import file 9386 # for dependence libraries. The import file would start with 9387 # the line `#! .'. This would cause the generated library to 9388 # depend on `.', always an invalid library. This was fixed in 9389 # development snapshots of GCC prior to 3.0. 9390 case $host_os in 9391 aix4 | aix4.[01] | aix4.[01].*) 9392 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9393 echo ' yes ' 9394 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9395 : 9396 else 9397 can_build_shared=no 9398 fi 9399 ;; 9400 esac 9401 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9402 # soname into executable. Probably we can add versioning support to 9403 # collect2, so additional links can be useful in future. 9404 if test "$aix_use_runtimelinking" = yes; then 9405 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9406 # instead of lib<name>.a to let people know that these are not 9407 # typical AIX shared libraries. 9408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9409 else 9410 # We preserve .a as extension for shared libraries through AIX4.2 9411 # and later when we are not doing run time linking. 9412 library_names_spec='${libname}${release}.a $libname.a' 9413 soname_spec='${libname}${release}${shared_ext}$major' 9414 fi 9415 shlibpath_var=LIBPATH 9416 fi 9417 ;; 9418 9419amigaos*) 9420 case $host_cpu in 9421 powerpc) 9422 # Since July 2007 AmigaOS4 officially supports .so libraries. 9423 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9425 ;; 9426 m68k) 9427 library_names_spec='$libname.ixlibrary $libname.a' 9428 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9429 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' 9430 ;; 9431 esac 9432 ;; 9433 9434beos*) 9435 library_names_spec='${libname}${shared_ext}' 9436 dynamic_linker="$host_os ld.so" 9437 shlibpath_var=LIBRARY_PATH 9438 ;; 9439 9440bsdi[45]*) 9441 version_type=linux 9442 need_version=no 9443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9444 soname_spec='${libname}${release}${shared_ext}$major' 9445 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9446 shlibpath_var=LD_LIBRARY_PATH 9447 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9448 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9449 # the default ld.so.conf also contains /usr/contrib/lib and 9450 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9451 # libtool to hard-code these into programs 9452 ;; 9453 9454cygwin* | mingw* | pw32* | cegcc*) 9455 version_type=windows 9456 shrext_cmds=".dll" 9457 need_version=no 9458 need_lib_prefix=no 9459 9460 case $GCC,$host_os in 9461 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9462 library_names_spec='$libname.dll.a' 9463 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9464 postinstall_cmds='base_file=`basename \${file}`~ 9465 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9466 dldir=$destdir/`dirname \$dlpath`~ 9467 test -d \$dldir || mkdir -p \$dldir~ 9468 $install_prog $dir/$dlname \$dldir/$dlname~ 9469 chmod a+x \$dldir/$dlname~ 9470 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9471 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9472 fi' 9473 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9474 dlpath=$dir/\$dldll~ 9475 $RM \$dlpath' 9476 shlibpath_overrides_runpath=yes 9477 9478 case $host_os in 9479 cygwin*) 9480 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9481 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9482 9483 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 9484 ;; 9485 mingw* | cegcc*) 9486 # MinGW DLLs use traditional 'lib' prefix 9487 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9488 ;; 9489 pw32*) 9490 # pw32 DLLs use 'pw' prefix rather than 'lib' 9491 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9492 ;; 9493 esac 9494 ;; 9495 9496 *) 9497 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9498 ;; 9499 esac 9500 dynamic_linker='Win32 ld.exe' 9501 # FIXME: first we should search . and the directory the executable is in 9502 shlibpath_var=PATH 9503 ;; 9504 9505darwin* | rhapsody*) 9506 dynamic_linker="$host_os dyld" 9507 version_type=darwin 9508 need_lib_prefix=no 9509 need_version=no 9510 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9511 soname_spec='${libname}${release}${major}$shared_ext' 9512 shlibpath_overrides_runpath=yes 9513 shlibpath_var=DYLD_LIBRARY_PATH 9514 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9515 9516 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9517 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9518 ;; 9519 9520dgux*) 9521 version_type=linux 9522 need_lib_prefix=no 9523 need_version=no 9524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9525 soname_spec='${libname}${release}${shared_ext}$major' 9526 shlibpath_var=LD_LIBRARY_PATH 9527 ;; 9528 9529freebsd* | dragonfly*) 9530 # DragonFly does not have aout. When/if they implement a new 9531 # versioning mechanism, adjust this. 9532 if test -x /usr/bin/objformat; then 9533 objformat=`/usr/bin/objformat` 9534 else 9535 case $host_os in 9536 freebsd[23].*) objformat=aout ;; 9537 *) objformat=elf ;; 9538 esac 9539 fi 9540 version_type=freebsd-$objformat 9541 case $version_type in 9542 freebsd-elf*) 9543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9544 need_version=no 9545 need_lib_prefix=no 9546 ;; 9547 freebsd-*) 9548 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9549 need_version=yes 9550 ;; 9551 esac 9552 shlibpath_var=LD_LIBRARY_PATH 9553 case $host_os in 9554 freebsd2.*) 9555 shlibpath_overrides_runpath=yes 9556 ;; 9557 freebsd3.[01]* | freebsdelf3.[01]*) 9558 shlibpath_overrides_runpath=yes 9559 hardcode_into_libs=yes 9560 ;; 9561 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9562 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9563 shlibpath_overrides_runpath=no 9564 hardcode_into_libs=yes 9565 ;; 9566 *) # from 4.6 on, and DragonFly 9567 shlibpath_overrides_runpath=yes 9568 hardcode_into_libs=yes 9569 ;; 9570 esac 9571 ;; 9572 9573gnu*) 9574 version_type=linux 9575 need_lib_prefix=no 9576 need_version=no 9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9578 soname_spec='${libname}${release}${shared_ext}$major' 9579 shlibpath_var=LD_LIBRARY_PATH 9580 hardcode_into_libs=yes 9581 ;; 9582 9583haiku*) 9584 version_type=linux 9585 need_lib_prefix=no 9586 need_version=no 9587 dynamic_linker="$host_os runtime_loader" 9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9589 soname_spec='${libname}${release}${shared_ext}$major' 9590 shlibpath_var=LIBRARY_PATH 9591 shlibpath_overrides_runpath=yes 9592 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 9593 hardcode_into_libs=yes 9594 ;; 9595 9596hpux9* | hpux10* | hpux11*) 9597 # Give a soname corresponding to the major version so that dld.sl refuses to 9598 # link against other versions. 9599 version_type=sunos 9600 need_lib_prefix=no 9601 need_version=no 9602 case $host_cpu in 9603 ia64*) 9604 shrext_cmds='.so' 9605 hardcode_into_libs=yes 9606 dynamic_linker="$host_os dld.so" 9607 shlibpath_var=LD_LIBRARY_PATH 9608 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9610 soname_spec='${libname}${release}${shared_ext}$major' 9611 if test "X$HPUX_IA64_MODE" = X32; then 9612 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9613 else 9614 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9615 fi 9616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9617 ;; 9618 hppa*64*) 9619 shrext_cmds='.sl' 9620 hardcode_into_libs=yes 9621 dynamic_linker="$host_os dld.sl" 9622 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9623 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9625 soname_spec='${libname}${release}${shared_ext}$major' 9626 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9627 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9628 ;; 9629 *) 9630 shrext_cmds='.sl' 9631 dynamic_linker="$host_os dld.sl" 9632 shlibpath_var=SHLIB_PATH 9633 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9635 soname_spec='${libname}${release}${shared_ext}$major' 9636 ;; 9637 esac 9638 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 9639 postinstall_cmds='chmod 555 $lib' 9640 # or fails outright, so override atomically: 9641 install_override_mode=555 9642 ;; 9643 9644interix[3-9]*) 9645 version_type=linux 9646 need_lib_prefix=no 9647 need_version=no 9648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9649 soname_spec='${libname}${release}${shared_ext}$major' 9650 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9651 shlibpath_var=LD_LIBRARY_PATH 9652 shlibpath_overrides_runpath=no 9653 hardcode_into_libs=yes 9654 ;; 9655 9656irix5* | irix6* | nonstopux*) 9657 case $host_os in 9658 nonstopux*) version_type=nonstopux ;; 9659 *) 9660 if test "$lt_cv_prog_gnu_ld" = yes; then 9661 version_type=linux 9662 else 9663 version_type=irix 9664 fi ;; 9665 esac 9666 need_lib_prefix=no 9667 need_version=no 9668 soname_spec='${libname}${release}${shared_ext}$major' 9669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9670 case $host_os in 9671 irix5* | nonstopux*) 9672 libsuff= shlibsuff= 9673 ;; 9674 *) 9675 case $LD in # libtool.m4 will add one of these switches to LD 9676 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9677 libsuff= shlibsuff= libmagic=32-bit;; 9678 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9679 libsuff=32 shlibsuff=N32 libmagic=N32;; 9680 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9681 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9682 *) libsuff= shlibsuff= libmagic=never-match;; 9683 esac 9684 ;; 9685 esac 9686 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9687 shlibpath_overrides_runpath=no 9688 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9689 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9690 hardcode_into_libs=yes 9691 ;; 9692 9693# No shared lib support for Linux oldld, aout, or coff. 9694linux*oldld* | linux*aout* | linux*coff*) 9695 dynamic_linker=no 9696 ;; 9697 9698# This must be Linux ELF. 9699linux* | k*bsd*-gnu | kopensolaris*-gnu) 9700 version_type=linux 9701 need_lib_prefix=no 9702 need_version=no 9703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9704 soname_spec='${libname}${release}${shared_ext}$major' 9705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9706 shlibpath_var=LD_LIBRARY_PATH 9707 shlibpath_overrides_runpath=no 9708 9709 # Some binutils ld are patched to set DT_RUNPATH 9710 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 9711 $as_echo_n "(cached) " >&6 9712else 9713 lt_cv_shlibpath_overrides_runpath=no 9714 save_LDFLAGS=$LDFLAGS 9715 save_libdir=$libdir 9716 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9717 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9718 if test x$gcc_no_link = xyes; then 9719 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 9720fi 9721cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9722/* end confdefs.h. */ 9723 9724int 9725main () 9726{ 9727 9728 ; 9729 return 0; 9730} 9731_ACEOF 9732if ac_fn_c_try_link "$LINENO"; then : 9733 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 9734 lt_cv_shlibpath_overrides_runpath=yes 9735fi 9736fi 9737rm -f core conftest.err conftest.$ac_objext \ 9738 conftest$ac_exeext conftest.$ac_ext 9739 LDFLAGS=$save_LDFLAGS 9740 libdir=$save_libdir 9741 9742fi 9743 9744 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 9745 9746 # This implies no fast_install, which is unacceptable. 9747 # Some rework will be needed to allow for fast_install 9748 # before this can be enabled. 9749 hardcode_into_libs=yes 9750 9751 # Append ld.so.conf contents to the search path 9752 if test -f /etc/ld.so.conf; then 9753 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' ' '` 9754 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9755 fi 9756 9757 # We used to test for /lib/ld.so.1 and disable shared libraries on 9758 # powerpc, because MkLinux only supported shared libraries with the 9759 # GNU dynamic linker. Since this was broken with cross compilers, 9760 # most powerpc-linux boxes support dynamic linking these days and 9761 # people can always --disable-shared, the test was removed, and we 9762 # assume the GNU/Linux dynamic linker is in use. 9763 dynamic_linker='GNU/Linux ld.so' 9764 ;; 9765 9766netbsd*) 9767 version_type=sunos 9768 need_lib_prefix=no 9769 need_version=no 9770 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9773 dynamic_linker='NetBSD (a.out) ld.so' 9774 else 9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9776 soname_spec='${libname}${release}${shared_ext}$major' 9777 dynamic_linker='NetBSD ld.elf_so' 9778 fi 9779 shlibpath_var=LD_LIBRARY_PATH 9780 shlibpath_overrides_runpath=yes 9781 hardcode_into_libs=yes 9782 ;; 9783 9784newsos6) 9785 version_type=linux 9786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9787 shlibpath_var=LD_LIBRARY_PATH 9788 shlibpath_overrides_runpath=yes 9789 ;; 9790 9791*nto* | *qnx*) 9792 version_type=qnx 9793 need_lib_prefix=no 9794 need_version=no 9795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9796 soname_spec='${libname}${release}${shared_ext}$major' 9797 shlibpath_var=LD_LIBRARY_PATH 9798 shlibpath_overrides_runpath=no 9799 hardcode_into_libs=yes 9800 dynamic_linker='ldqnx.so' 9801 ;; 9802 9803openbsd*) 9804 version_type=sunos 9805 sys_lib_dlsearch_path_spec="/usr/lib" 9806 need_lib_prefix=no 9807 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9808 case $host_os in 9809 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9810 *) need_version=no ;; 9811 esac 9812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9814 shlibpath_var=LD_LIBRARY_PATH 9815 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9816 case $host_os in 9817 openbsd2.[89] | openbsd2.[89].*) 9818 shlibpath_overrides_runpath=no 9819 ;; 9820 *) 9821 shlibpath_overrides_runpath=yes 9822 ;; 9823 esac 9824 else 9825 shlibpath_overrides_runpath=yes 9826 fi 9827 ;; 9828 9829os2*) 9830 libname_spec='$name' 9831 shrext_cmds=".dll" 9832 need_lib_prefix=no 9833 library_names_spec='$libname${shared_ext} $libname.a' 9834 dynamic_linker='OS/2 ld.exe' 9835 shlibpath_var=LIBPATH 9836 ;; 9837 9838osf3* | osf4* | osf5*) 9839 version_type=osf 9840 need_lib_prefix=no 9841 need_version=no 9842 soname_spec='${libname}${release}${shared_ext}$major' 9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9844 shlibpath_var=LD_LIBRARY_PATH 9845 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9846 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9847 ;; 9848 9849rdos*) 9850 dynamic_linker=no 9851 ;; 9852 9853solaris*) 9854 version_type=linux 9855 need_lib_prefix=no 9856 need_version=no 9857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9858 soname_spec='${libname}${release}${shared_ext}$major' 9859 shlibpath_var=LD_LIBRARY_PATH 9860 shlibpath_overrides_runpath=yes 9861 hardcode_into_libs=yes 9862 # ldd complains unless libraries are executable 9863 postinstall_cmds='chmod +x $lib' 9864 ;; 9865 9866sunos4*) 9867 version_type=sunos 9868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9869 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9870 shlibpath_var=LD_LIBRARY_PATH 9871 shlibpath_overrides_runpath=yes 9872 if test "$with_gnu_ld" = yes; then 9873 need_lib_prefix=no 9874 fi 9875 need_version=yes 9876 ;; 9877 9878sysv4 | sysv4.3*) 9879 version_type=linux 9880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9881 soname_spec='${libname}${release}${shared_ext}$major' 9882 shlibpath_var=LD_LIBRARY_PATH 9883 case $host_vendor in 9884 sni) 9885 shlibpath_overrides_runpath=no 9886 need_lib_prefix=no 9887 runpath_var=LD_RUN_PATH 9888 ;; 9889 siemens) 9890 need_lib_prefix=no 9891 ;; 9892 motorola) 9893 need_lib_prefix=no 9894 need_version=no 9895 shlibpath_overrides_runpath=no 9896 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9897 ;; 9898 esac 9899 ;; 9900 9901sysv4*MP*) 9902 if test -d /usr/nec ;then 9903 version_type=linux 9904 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9905 soname_spec='$libname${shared_ext}.$major' 9906 shlibpath_var=LD_LIBRARY_PATH 9907 fi 9908 ;; 9909 9910sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9911 version_type=freebsd-elf 9912 need_lib_prefix=no 9913 need_version=no 9914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9915 soname_spec='${libname}${release}${shared_ext}$major' 9916 shlibpath_var=LD_LIBRARY_PATH 9917 shlibpath_overrides_runpath=yes 9918 hardcode_into_libs=yes 9919 if test "$with_gnu_ld" = yes; then 9920 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9921 else 9922 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9923 case $host_os in 9924 sco3.2v5*) 9925 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9926 ;; 9927 esac 9928 fi 9929 sys_lib_dlsearch_path_spec='/usr/lib' 9930 ;; 9931 9932tpf*) 9933 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9934 version_type=linux 9935 need_lib_prefix=no 9936 need_version=no 9937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9938 shlibpath_var=LD_LIBRARY_PATH 9939 shlibpath_overrides_runpath=no 9940 hardcode_into_libs=yes 9941 ;; 9942 9943uts4*) 9944 version_type=linux 9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9946 soname_spec='${libname}${release}${shared_ext}$major' 9947 shlibpath_var=LD_LIBRARY_PATH 9948 ;; 9949 9950*) 9951 dynamic_linker=no 9952 ;; 9953esac 9954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 9955$as_echo "$dynamic_linker" >&6; } 9956test "$dynamic_linker" = no && can_build_shared=no 9957 9958variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9959if test "$GCC" = yes; then 9960 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9961fi 9962 9963if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9964 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9965fi 9966if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9967 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9968fi 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10062$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10063hardcode_action= 10064if test -n "$hardcode_libdir_flag_spec" || 10065 test -n "$runpath_var" || 10066 test "X$hardcode_automatic" = "Xyes" ; then 10067 10068 # We can hardcode non-existent directories. 10069 if test "$hardcode_direct" != no && 10070 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10071 # have to relink, otherwise we might link with an installed library 10072 # when we should be linking with a yet-to-be-installed one 10073 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10074 test "$hardcode_minus_L" != no; then 10075 # Linking always hardcodes the temporary library directory. 10076 hardcode_action=relink 10077 else 10078 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10079 hardcode_action=immediate 10080 fi 10081else 10082 # We cannot hardcode anything, or else we can only hardcode existing 10083 # directories. 10084 hardcode_action=unsupported 10085fi 10086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10087$as_echo "$hardcode_action" >&6; } 10088 10089if test "$hardcode_action" = relink || 10090 test "$inherit_rpath" = yes; then 10091 # Fast installation is not supported 10092 enable_fast_install=no 10093elif test "$shlibpath_overrides_runpath" = yes || 10094 test "$enable_shared" = no; then 10095 # Fast installation is not necessary 10096 enable_fast_install=needless 10097fi 10098 10099 10100 10101 10102 10103 10104 if test "x$enable_dlopen" != xyes; then 10105 enable_dlopen=unknown 10106 enable_dlopen_self=unknown 10107 enable_dlopen_self_static=unknown 10108else 10109 lt_cv_dlopen=no 10110 lt_cv_dlopen_libs= 10111 10112 case $host_os in 10113 beos*) 10114 lt_cv_dlopen="load_add_on" 10115 lt_cv_dlopen_libs= 10116 lt_cv_dlopen_self=yes 10117 ;; 10118 10119 mingw* | pw32* | cegcc*) 10120 lt_cv_dlopen="LoadLibrary" 10121 lt_cv_dlopen_libs= 10122 ;; 10123 10124 cygwin*) 10125 lt_cv_dlopen="dlopen" 10126 lt_cv_dlopen_libs= 10127 ;; 10128 10129 darwin*) 10130 # if libdl is installed we need to link against it 10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10132$as_echo_n "checking for dlopen in -ldl... " >&6; } 10133if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10134 $as_echo_n "(cached) " >&6 10135else 10136 ac_check_lib_save_LIBS=$LIBS 10137LIBS="-ldl $LIBS" 10138if test x$gcc_no_link = xyes; then 10139 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10140fi 10141cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10142/* end confdefs.h. */ 10143 10144/* Override any GCC internal prototype to avoid an error. 10145 Use char because int might match the return type of a GCC 10146 builtin and then its argument prototype would still apply. */ 10147#ifdef __cplusplus 10148extern "C" 10149#endif 10150char dlopen (); 10151int 10152main () 10153{ 10154return dlopen (); 10155 ; 10156 return 0; 10157} 10158_ACEOF 10159if ac_fn_c_try_link "$LINENO"; then : 10160 ac_cv_lib_dl_dlopen=yes 10161else 10162 ac_cv_lib_dl_dlopen=no 10163fi 10164rm -f core conftest.err conftest.$ac_objext \ 10165 conftest$ac_exeext conftest.$ac_ext 10166LIBS=$ac_check_lib_save_LIBS 10167fi 10168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10169$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10170if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10171 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10172else 10173 10174 lt_cv_dlopen="dyld" 10175 lt_cv_dlopen_libs= 10176 lt_cv_dlopen_self=yes 10177 10178fi 10179 10180 ;; 10181 10182 *) 10183 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10184if test "x$ac_cv_func_shl_load" = x""yes; then : 10185 lt_cv_dlopen="shl_load" 10186else 10187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10188$as_echo_n "checking for shl_load in -ldld... " >&6; } 10189if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10190 $as_echo_n "(cached) " >&6 10191else 10192 ac_check_lib_save_LIBS=$LIBS 10193LIBS="-ldld $LIBS" 10194if test x$gcc_no_link = xyes; then 10195 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10196fi 10197cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10198/* end confdefs.h. */ 10199 10200/* Override any GCC internal prototype to avoid an error. 10201 Use char because int might match the return type of a GCC 10202 builtin and then its argument prototype would still apply. */ 10203#ifdef __cplusplus 10204extern "C" 10205#endif 10206char shl_load (); 10207int 10208main () 10209{ 10210return shl_load (); 10211 ; 10212 return 0; 10213} 10214_ACEOF 10215if ac_fn_c_try_link "$LINENO"; then : 10216 ac_cv_lib_dld_shl_load=yes 10217else 10218 ac_cv_lib_dld_shl_load=no 10219fi 10220rm -f core conftest.err conftest.$ac_objext \ 10221 conftest$ac_exeext conftest.$ac_ext 10222LIBS=$ac_check_lib_save_LIBS 10223fi 10224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10225$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10226if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10227 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10228else 10229 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10230if test "x$ac_cv_func_dlopen" = x""yes; then : 10231 lt_cv_dlopen="dlopen" 10232else 10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10234$as_echo_n "checking for dlopen in -ldl... " >&6; } 10235if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10236 $as_echo_n "(cached) " >&6 10237else 10238 ac_check_lib_save_LIBS=$LIBS 10239LIBS="-ldl $LIBS" 10240if test x$gcc_no_link = xyes; then 10241 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10242fi 10243cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10244/* end confdefs.h. */ 10245 10246/* Override any GCC internal prototype to avoid an error. 10247 Use char because int might match the return type of a GCC 10248 builtin and then its argument prototype would still apply. */ 10249#ifdef __cplusplus 10250extern "C" 10251#endif 10252char dlopen (); 10253int 10254main () 10255{ 10256return dlopen (); 10257 ; 10258 return 0; 10259} 10260_ACEOF 10261if ac_fn_c_try_link "$LINENO"; then : 10262 ac_cv_lib_dl_dlopen=yes 10263else 10264 ac_cv_lib_dl_dlopen=no 10265fi 10266rm -f core conftest.err conftest.$ac_objext \ 10267 conftest$ac_exeext conftest.$ac_ext 10268LIBS=$ac_check_lib_save_LIBS 10269fi 10270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10271$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10272if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10273 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10274else 10275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10276$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10277if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10278 $as_echo_n "(cached) " >&6 10279else 10280 ac_check_lib_save_LIBS=$LIBS 10281LIBS="-lsvld $LIBS" 10282if test x$gcc_no_link = xyes; then 10283 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10284fi 10285cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10286/* end confdefs.h. */ 10287 10288/* Override any GCC internal prototype to avoid an error. 10289 Use char because int might match the return type of a GCC 10290 builtin and then its argument prototype would still apply. */ 10291#ifdef __cplusplus 10292extern "C" 10293#endif 10294char dlopen (); 10295int 10296main () 10297{ 10298return dlopen (); 10299 ; 10300 return 0; 10301} 10302_ACEOF 10303if ac_fn_c_try_link "$LINENO"; then : 10304 ac_cv_lib_svld_dlopen=yes 10305else 10306 ac_cv_lib_svld_dlopen=no 10307fi 10308rm -f core conftest.err conftest.$ac_objext \ 10309 conftest$ac_exeext conftest.$ac_ext 10310LIBS=$ac_check_lib_save_LIBS 10311fi 10312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10313$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10314if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10315 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10316else 10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10318$as_echo_n "checking for dld_link in -ldld... " >&6; } 10319if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10320 $as_echo_n "(cached) " >&6 10321else 10322 ac_check_lib_save_LIBS=$LIBS 10323LIBS="-ldld $LIBS" 10324if test x$gcc_no_link = xyes; then 10325 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10326fi 10327cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10328/* end confdefs.h. */ 10329 10330/* Override any GCC internal prototype to avoid an error. 10331 Use char because int might match the return type of a GCC 10332 builtin and then its argument prototype would still apply. */ 10333#ifdef __cplusplus 10334extern "C" 10335#endif 10336char dld_link (); 10337int 10338main () 10339{ 10340return dld_link (); 10341 ; 10342 return 0; 10343} 10344_ACEOF 10345if ac_fn_c_try_link "$LINENO"; then : 10346 ac_cv_lib_dld_dld_link=yes 10347else 10348 ac_cv_lib_dld_dld_link=no 10349fi 10350rm -f core conftest.err conftest.$ac_objext \ 10351 conftest$ac_exeext conftest.$ac_ext 10352LIBS=$ac_check_lib_save_LIBS 10353fi 10354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10355$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10356if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10357 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10358fi 10359 10360 10361fi 10362 10363 10364fi 10365 10366 10367fi 10368 10369 10370fi 10371 10372 10373fi 10374 10375 ;; 10376 esac 10377 10378 if test "x$lt_cv_dlopen" != xno; then 10379 enable_dlopen=yes 10380 else 10381 enable_dlopen=no 10382 fi 10383 10384 case $lt_cv_dlopen in 10385 dlopen) 10386 save_CPPFLAGS="$CPPFLAGS" 10387 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10388 10389 save_LDFLAGS="$LDFLAGS" 10390 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10391 10392 save_LIBS="$LIBS" 10393 LIBS="$lt_cv_dlopen_libs $LIBS" 10394 10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10396$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10397if test "${lt_cv_dlopen_self+set}" = set; then : 10398 $as_echo_n "(cached) " >&6 10399else 10400 if test "$cross_compiling" = yes; then : 10401 lt_cv_dlopen_self=cross 10402else 10403 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10404 lt_status=$lt_dlunknown 10405 cat > conftest.$ac_ext <<_LT_EOF 10406#line 10406 "configure" 10407#include "confdefs.h" 10408 10409#if HAVE_DLFCN_H 10410#include <dlfcn.h> 10411#endif 10412 10413#include <stdio.h> 10414 10415#ifdef RTLD_GLOBAL 10416# define LT_DLGLOBAL RTLD_GLOBAL 10417#else 10418# ifdef DL_GLOBAL 10419# define LT_DLGLOBAL DL_GLOBAL 10420# else 10421# define LT_DLGLOBAL 0 10422# endif 10423#endif 10424 10425/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10426 find out it does not work in some platform. */ 10427#ifndef LT_DLLAZY_OR_NOW 10428# ifdef RTLD_LAZY 10429# define LT_DLLAZY_OR_NOW RTLD_LAZY 10430# else 10431# ifdef DL_LAZY 10432# define LT_DLLAZY_OR_NOW DL_LAZY 10433# else 10434# ifdef RTLD_NOW 10435# define LT_DLLAZY_OR_NOW RTLD_NOW 10436# else 10437# ifdef DL_NOW 10438# define LT_DLLAZY_OR_NOW DL_NOW 10439# else 10440# define LT_DLLAZY_OR_NOW 0 10441# endif 10442# endif 10443# endif 10444# endif 10445#endif 10446 10447/* When -fvisbility=hidden is used, assume the code has been annotated 10448 correspondingly for the symbols needed. */ 10449#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10450void fnord () __attribute__((visibility("default"))); 10451#endif 10452 10453void fnord () { int i=42; } 10454int main () 10455{ 10456 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10457 int status = $lt_dlunknown; 10458 10459 if (self) 10460 { 10461 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10462 else 10463 { 10464 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10465 else puts (dlerror ()); 10466 } 10467 /* dlclose (self); */ 10468 } 10469 else 10470 puts (dlerror ()); 10471 10472 return status; 10473} 10474_LT_EOF 10475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10476 (eval $ac_link) 2>&5 10477 ac_status=$? 10478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10479 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10480 (./conftest; exit; ) >&5 2>/dev/null 10481 lt_status=$? 10482 case x$lt_status in 10483 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10484 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10485 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10486 esac 10487 else : 10488 # compilation failed 10489 lt_cv_dlopen_self=no 10490 fi 10491fi 10492rm -fr conftest* 10493 10494 10495fi 10496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10497$as_echo "$lt_cv_dlopen_self" >&6; } 10498 10499 if test "x$lt_cv_dlopen_self" = xyes; then 10500 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10502$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10503if test "${lt_cv_dlopen_self_static+set}" = set; then : 10504 $as_echo_n "(cached) " >&6 10505else 10506 if test "$cross_compiling" = yes; then : 10507 lt_cv_dlopen_self_static=cross 10508else 10509 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10510 lt_status=$lt_dlunknown 10511 cat > conftest.$ac_ext <<_LT_EOF 10512#line 10512 "configure" 10513#include "confdefs.h" 10514 10515#if HAVE_DLFCN_H 10516#include <dlfcn.h> 10517#endif 10518 10519#include <stdio.h> 10520 10521#ifdef RTLD_GLOBAL 10522# define LT_DLGLOBAL RTLD_GLOBAL 10523#else 10524# ifdef DL_GLOBAL 10525# define LT_DLGLOBAL DL_GLOBAL 10526# else 10527# define LT_DLGLOBAL 0 10528# endif 10529#endif 10530 10531/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10532 find out it does not work in some platform. */ 10533#ifndef LT_DLLAZY_OR_NOW 10534# ifdef RTLD_LAZY 10535# define LT_DLLAZY_OR_NOW RTLD_LAZY 10536# else 10537# ifdef DL_LAZY 10538# define LT_DLLAZY_OR_NOW DL_LAZY 10539# else 10540# ifdef RTLD_NOW 10541# define LT_DLLAZY_OR_NOW RTLD_NOW 10542# else 10543# ifdef DL_NOW 10544# define LT_DLLAZY_OR_NOW DL_NOW 10545# else 10546# define LT_DLLAZY_OR_NOW 0 10547# endif 10548# endif 10549# endif 10550# endif 10551#endif 10552 10553/* When -fvisbility=hidden is used, assume the code has been annotated 10554 correspondingly for the symbols needed. */ 10555#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10556void fnord () __attribute__((visibility("default"))); 10557#endif 10558 10559void fnord () { int i=42; } 10560int main () 10561{ 10562 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10563 int status = $lt_dlunknown; 10564 10565 if (self) 10566 { 10567 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10568 else 10569 { 10570 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10571 else puts (dlerror ()); 10572 } 10573 /* dlclose (self); */ 10574 } 10575 else 10576 puts (dlerror ()); 10577 10578 return status; 10579} 10580_LT_EOF 10581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10582 (eval $ac_link) 2>&5 10583 ac_status=$? 10584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10585 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10586 (./conftest; exit; ) >&5 2>/dev/null 10587 lt_status=$? 10588 case x$lt_status in 10589 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10590 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10591 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10592 esac 10593 else : 10594 # compilation failed 10595 lt_cv_dlopen_self_static=no 10596 fi 10597fi 10598rm -fr conftest* 10599 10600 10601fi 10602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10603$as_echo "$lt_cv_dlopen_self_static" >&6; } 10604 fi 10605 10606 CPPFLAGS="$save_CPPFLAGS" 10607 LDFLAGS="$save_LDFLAGS" 10608 LIBS="$save_LIBS" 10609 ;; 10610 esac 10611 10612 case $lt_cv_dlopen_self in 10613 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10614 *) enable_dlopen_self=unknown ;; 10615 esac 10616 10617 case $lt_cv_dlopen_self_static in 10618 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10619 *) enable_dlopen_self_static=unknown ;; 10620 esac 10621fi 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639striplib= 10640old_striplib= 10641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10642$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10643if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10644 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10645 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10647$as_echo "yes" >&6; } 10648else 10649# FIXME - insert some real tests, host_os isn't really good enough 10650 case $host_os in 10651 darwin*) 10652 if test -n "$STRIP" ; then 10653 striplib="$STRIP -x" 10654 old_striplib="$STRIP -S" 10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10656$as_echo "yes" >&6; } 10657 else 10658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10659$as_echo "no" >&6; } 10660 fi 10661 ;; 10662 *) 10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10664$as_echo "no" >&6; } 10665 ;; 10666 esac 10667fi 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 # Report which library types will actually be built 10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10682$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10684$as_echo "$can_build_shared" >&6; } 10685 10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10687$as_echo_n "checking whether to build shared libraries... " >&6; } 10688 test "$can_build_shared" = "no" && enable_shared=no 10689 10690 # On AIX, shared libraries and static libraries use the same namespace, and 10691 # are all built from PIC. 10692 case $host_os in 10693 aix3*) 10694 test "$enable_shared" = yes && enable_static=no 10695 if test -n "$RANLIB"; then 10696 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10697 postinstall_cmds='$RANLIB $lib' 10698 fi 10699 ;; 10700 10701 aix[4-9]*) 10702 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10703 test "$enable_shared" = yes && enable_static=no 10704 fi 10705 ;; 10706 esac 10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10708$as_echo "$enable_shared" >&6; } 10709 10710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10711$as_echo_n "checking whether to build static libraries... " >&6; } 10712 # Make sure either enable_shared or enable_static is yes. 10713 test "$enable_shared" = yes || enable_static=yes 10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10715$as_echo "$enable_static" >&6; } 10716 10717 10718 10719 10720fi 10721ac_ext=c 10722ac_cpp='$CPP $CPPFLAGS' 10723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10725ac_compiler_gnu=$ac_cv_c_compiler_gnu 10726 10727CC="$lt_save_CC" 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 ac_config_commands="$ac_config_commands libtool" 10742 10743 10744 10745 10746# Only expand once: 10747 10748 10749 10750# Find CPP now so that any conditional tests below won't do it and 10751# thereby make the resulting definitions conditional. 10752ac_ext=c 10753ac_cpp='$CPP $CPPFLAGS' 10754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10756ac_compiler_gnu=$ac_cv_c_compiler_gnu 10757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 10758$as_echo_n "checking how to run the C preprocessor... " >&6; } 10759# On Suns, sometimes $CPP names a directory. 10760if test -n "$CPP" && test -d "$CPP"; then 10761 CPP= 10762fi 10763if test -z "$CPP"; then 10764 if test "${ac_cv_prog_CPP+set}" = set; then : 10765 $as_echo_n "(cached) " >&6 10766else 10767 # Double quotes because CPP needs to be expanded 10768 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 10769 do 10770 ac_preproc_ok=false 10771for ac_c_preproc_warn_flag in '' yes 10772do 10773 # Use a header file that comes with gcc, so configuring glibc 10774 # with a fresh cross-compiler works. 10775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10776 # <limits.h> exists even on freestanding compilers. 10777 # On the NeXT, cc -E runs the code through the compiler's parser, 10778 # not just through cpp. "Syntax error" is here to catch this case. 10779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10780/* end confdefs.h. */ 10781#ifdef __STDC__ 10782# include <limits.h> 10783#else 10784# include <assert.h> 10785#endif 10786 Syntax error 10787_ACEOF 10788if ac_fn_c_try_cpp "$LINENO"; then : 10789 10790else 10791 # Broken: fails on valid input. 10792continue 10793fi 10794rm -f conftest.err conftest.$ac_ext 10795 10796 # OK, works on sane cases. Now check whether nonexistent headers 10797 # can be detected and how. 10798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10799/* end confdefs.h. */ 10800#include <ac_nonexistent.h> 10801_ACEOF 10802if ac_fn_c_try_cpp "$LINENO"; then : 10803 # Broken: success on invalid input. 10804continue 10805else 10806 # Passes both tests. 10807ac_preproc_ok=: 10808break 10809fi 10810rm -f conftest.err conftest.$ac_ext 10811 10812done 10813# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 10814rm -f conftest.err conftest.$ac_ext 10815if $ac_preproc_ok; then : 10816 break 10817fi 10818 10819 done 10820 ac_cv_prog_CPP=$CPP 10821 10822fi 10823 CPP=$ac_cv_prog_CPP 10824else 10825 ac_cv_prog_CPP=$CPP 10826fi 10827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 10828$as_echo "$CPP" >&6; } 10829ac_preproc_ok=false 10830for ac_c_preproc_warn_flag in '' yes 10831do 10832 # Use a header file that comes with gcc, so configuring glibc 10833 # with a fresh cross-compiler works. 10834 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10835 # <limits.h> exists even on freestanding compilers. 10836 # On the NeXT, cc -E runs the code through the compiler's parser, 10837 # not just through cpp. "Syntax error" is here to catch this case. 10838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10839/* end confdefs.h. */ 10840#ifdef __STDC__ 10841# include <limits.h> 10842#else 10843# include <assert.h> 10844#endif 10845 Syntax error 10846_ACEOF 10847if ac_fn_c_try_cpp "$LINENO"; then : 10848 10849else 10850 # Broken: fails on valid input. 10851continue 10852fi 10853rm -f conftest.err conftest.$ac_ext 10854 10855 # OK, works on sane cases. Now check whether nonexistent headers 10856 # can be detected and how. 10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10858/* end confdefs.h. */ 10859#include <ac_nonexistent.h> 10860_ACEOF 10861if ac_fn_c_try_cpp "$LINENO"; then : 10862 # Broken: success on invalid input. 10863continue 10864else 10865 # Passes both tests. 10866ac_preproc_ok=: 10867break 10868fi 10869rm -f conftest.err conftest.$ac_ext 10870 10871done 10872# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 10873rm -f conftest.err conftest.$ac_ext 10874if $ac_preproc_ok; then : 10875 10876else 10877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10879as_fn_error "C preprocessor \"$CPP\" fails sanity check 10880See \`config.log' for more details." "$LINENO" 5; } 10881fi 10882 10883ac_ext=c 10884ac_cpp='$CPP $CPPFLAGS' 10885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10887ac_compiler_gnu=$ac_cv_c_compiler_gnu 10888 10889 10890if test -n "$with_cross_host"; then 10891 # We are being configured with a cross compiler. AC_REPLACE_FUNCS 10892 # may not work correctly, because the compiler may not be able to 10893 # link executables. 10894 10895 # We assume newlib. This lets us hard-code the functions we know 10896 # we'll have. 10897 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h 10898 10899 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h 10900 10901 10902 # We ignore --with-system-zlib in this case. 10903 target_all=libzgcj.la 10904else 10905 if test x$gcc_no_link = xyes; then 10906 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then 10907 ac_cv_func_mmap_fixed_mapped=no 10908 fi 10909fi 10910if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then 10911 for ac_header in stdlib.h unistd.h 10912do : 10913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10914ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10915eval as_val=\$$as_ac_Header 10916 if test "x$as_val" = x""yes; then : 10917 cat >>confdefs.h <<_ACEOF 10918#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10919_ACEOF 10920 10921fi 10922 10923done 10924 10925for ac_func in getpagesize 10926do : 10927 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 10928if test "x$ac_cv_func_getpagesize" = x""yes; then : 10929 cat >>confdefs.h <<_ACEOF 10930#define HAVE_GETPAGESIZE 1 10931_ACEOF 10932 10933fi 10934done 10935 10936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 10937$as_echo_n "checking for working mmap... " >&6; } 10938if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 10939 $as_echo_n "(cached) " >&6 10940else 10941 if test "$cross_compiling" = yes; then : 10942 ac_cv_func_mmap_fixed_mapped=no 10943else 10944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10945/* end confdefs.h. */ 10946$ac_includes_default 10947/* malloc might have been renamed as rpl_malloc. */ 10948#undef malloc 10949 10950/* Thanks to Mike Haertel and Jim Avera for this test. 10951 Here is a matrix of mmap possibilities: 10952 mmap private not fixed 10953 mmap private fixed at somewhere currently unmapped 10954 mmap private fixed at somewhere already mapped 10955 mmap shared not fixed 10956 mmap shared fixed at somewhere currently unmapped 10957 mmap shared fixed at somewhere already mapped 10958 For private mappings, we should verify that changes cannot be read() 10959 back from the file, nor mmap's back from the file at a different 10960 address. (There have been systems where private was not correctly 10961 implemented like the infamous i386 svr4.0, and systems where the 10962 VM page cache was not coherent with the file system buffer cache 10963 like early versions of FreeBSD and possibly contemporary NetBSD.) 10964 For shared mappings, we should conversely verify that changes get 10965 propagated back to all the places they're supposed to be. 10966 10967 Grep wants private fixed already mapped. 10968 The main things grep needs to know about mmap are: 10969 * does it exist and is it safe to write into the mmap'd area 10970 * how to use it (BSD variants) */ 10971 10972#include <fcntl.h> 10973#include <sys/mman.h> 10974 10975#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 10976char *malloc (); 10977#endif 10978 10979/* This mess was copied from the GNU getpagesize.h. */ 10980#ifndef HAVE_GETPAGESIZE 10981/* Assume that all systems that can run configure have sys/param.h. */ 10982# ifndef HAVE_SYS_PARAM_H 10983# define HAVE_SYS_PARAM_H 1 10984# endif 10985 10986# ifdef _SC_PAGESIZE 10987# define getpagesize() sysconf(_SC_PAGESIZE) 10988# else /* no _SC_PAGESIZE */ 10989# ifdef HAVE_SYS_PARAM_H 10990# include <sys/param.h> 10991# ifdef EXEC_PAGESIZE 10992# define getpagesize() EXEC_PAGESIZE 10993# else /* no EXEC_PAGESIZE */ 10994# ifdef NBPG 10995# define getpagesize() NBPG * CLSIZE 10996# ifndef CLSIZE 10997# define CLSIZE 1 10998# endif /* no CLSIZE */ 10999# else /* no NBPG */ 11000# ifdef NBPC 11001# define getpagesize() NBPC 11002# else /* no NBPC */ 11003# ifdef PAGESIZE 11004# define getpagesize() PAGESIZE 11005# endif /* PAGESIZE */ 11006# endif /* no NBPC */ 11007# endif /* no NBPG */ 11008# endif /* no EXEC_PAGESIZE */ 11009# else /* no HAVE_SYS_PARAM_H */ 11010# define getpagesize() 8192 /* punt totally */ 11011# endif /* no HAVE_SYS_PARAM_H */ 11012# endif /* no _SC_PAGESIZE */ 11013 11014#endif /* no HAVE_GETPAGESIZE */ 11015 11016int 11017main () 11018{ 11019 char *data, *data2, *data3; 11020 int i, pagesize; 11021 int fd; 11022 11023 pagesize = getpagesize (); 11024 11025 /* First, make a file with some known garbage in it. */ 11026 data = (char *) malloc (pagesize); 11027 if (!data) 11028 return 1; 11029 for (i = 0; i < pagesize; ++i) 11030 *(data + i) = rand (); 11031 umask (0); 11032 fd = creat ("conftest.mmap", 0600); 11033 if (fd < 0) 11034 return 1; 11035 if (write (fd, data, pagesize) != pagesize) 11036 return 1; 11037 close (fd); 11038 11039 /* Next, try to mmap the file at a fixed address which already has 11040 something else allocated at it. If we can, also make sure that 11041 we see the same garbage. */ 11042 fd = open ("conftest.mmap", O_RDWR); 11043 if (fd < 0) 11044 return 1; 11045 data2 = (char *) malloc (2 * pagesize); 11046 if (!data2) 11047 return 1; 11048 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1); 11049 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 11050 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 11051 return 1; 11052 for (i = 0; i < pagesize; ++i) 11053 if (*(data + i) != *(data2 + i)) 11054 return 1; 11055 11056 /* Finally, make sure that changes to the mapped area do not 11057 percolate back to the file as seen by read(). (This is a bug on 11058 some variants of i386 svr4.0.) */ 11059 for (i = 0; i < pagesize; ++i) 11060 *(data2 + i) = *(data2 + i) + 1; 11061 data3 = (char *) malloc (pagesize); 11062 if (!data3) 11063 return 1; 11064 if (read (fd, data3, pagesize) != pagesize) 11065 return 1; 11066 for (i = 0; i < pagesize; ++i) 11067 if (*(data + i) != *(data3 + i)) 11068 return 1; 11069 close (fd); 11070 return 0; 11071} 11072_ACEOF 11073if ac_fn_c_try_run "$LINENO"; then : 11074 ac_cv_func_mmap_fixed_mapped=yes 11075else 11076 ac_cv_func_mmap_fixed_mapped=no 11077fi 11078rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11079 conftest.$ac_objext conftest.beam conftest.$ac_ext 11080fi 11081 11082fi 11083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 11084$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 11085if test $ac_cv_func_mmap_fixed_mapped = yes; then 11086 11087$as_echo "#define HAVE_MMAP 1" >>confdefs.h 11088 11089fi 11090rm -f conftest.mmap 11091 11092fi 11093 for ac_func in memcpy strerror 11094do : 11095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11096ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11097eval as_val=\$$as_ac_var 11098 if test "x$as_val" = x""yes; then : 11099 cat >>confdefs.h <<_ACEOF 11100#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11101_ACEOF 11102 11103fi 11104done 11105 11106 11107 if test "$with_system_zlib" = yes; then 11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 11109$as_echo_n "checking for deflate in -lz... " >&6; } 11110if test "${ac_cv_lib_z_deflate+set}" = set; then : 11111 $as_echo_n "(cached) " >&6 11112else 11113 ac_check_lib_save_LIBS=$LIBS 11114LIBS="-lz $LIBS" 11115if test x$gcc_no_link = xyes; then 11116 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 11117fi 11118cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11119/* end confdefs.h. */ 11120 11121/* Override any GCC internal prototype to avoid an error. 11122 Use char because int might match the return type of a GCC 11123 builtin and then its argument prototype would still apply. */ 11124#ifdef __cplusplus 11125extern "C" 11126#endif 11127char deflate (); 11128int 11129main () 11130{ 11131return deflate (); 11132 ; 11133 return 0; 11134} 11135_ACEOF 11136if ac_fn_c_try_link "$LINENO"; then : 11137 ac_cv_lib_z_deflate=yes 11138else 11139 ac_cv_lib_z_deflate=no 11140fi 11141rm -f core conftest.err conftest.$ac_objext \ 11142 conftest$ac_exeext conftest.$ac_ext 11143LIBS=$ac_check_lib_save_LIBS 11144fi 11145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 11146$as_echo "$ac_cv_lib_z_deflate" >&6; } 11147if test "x$ac_cv_lib_z_deflate" = x""yes; then : 11148 target_all= 11149else 11150 target_all=libzgcj.la 11151fi 11152 11153 else 11154 target_all=libzgcj.la 11155 fi 11156fi 11157 11158 11159 11160for ac_header in unistd.h 11161do : 11162 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 11163if test "x$ac_cv_header_unistd_h" = x""yes; then : 11164 cat >>confdefs.h <<_ACEOF 11165#define HAVE_UNISTD_H 1 11166_ACEOF 11167 11168fi 11169 11170done 11171 11172 11173if test -n "$with_cross_host" && 11174 test x"$with_cross_host" != x"no"; then 11175 toolexecdir='$(exec_prefix)/$(target_alias)' 11176 toolexeclibdir='$(toolexecdir)/lib' 11177else 11178 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 11179 toolexeclibdir='$(libdir)' 11180fi 11181if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then 11182 multiosdir=/`$CC -print-multi-os-directory` 11183 case $multiosdir in 11184 /.) multiosdir= ;; # Avoid trailing /. 11185 esac 11186else 11187 multiosdir= 11188fi 11189toolexeclibdir=${toolexeclibdir}${multiosdir} 11190 11191 11192 11193 if test -n "$with_target_subdir"; then 11194 TARGET_LIBRARY_TRUE= 11195 TARGET_LIBRARY_FALSE='#' 11196else 11197 TARGET_LIBRARY_TRUE='#' 11198 TARGET_LIBRARY_FALSE= 11199fi 11200 11201 11202if test "${multilib}" = "yes"; then 11203 multilib_arg="--enable-multilib" 11204else 11205 multilib_arg= 11206fi 11207 11208# Check whether --enable-host-shared was given. 11209if test "${enable_host_shared+set}" = set; then : 11210 enableval=$enable_host_shared; PICFLAG=-fPIC 11211else 11212 PICFLAG= 11213fi 11214 11215 11216 11217ac_config_files="$ac_config_files Makefile" 11218 11219cat >confcache <<\_ACEOF 11220# This file is a shell script that caches the results of configure 11221# tests run on this system so they can be shared between configure 11222# scripts and configure runs, see configure's option --config-cache. 11223# It is not useful on other systems. If it contains results you don't 11224# want to keep, you may remove or edit it. 11225# 11226# config.status only pays attention to the cache file if you give it 11227# the --recheck option to rerun configure. 11228# 11229# `ac_cv_env_foo' variables (set or unset) will be overridden when 11230# loading this file, other *unset* `ac_cv_foo' will be assigned the 11231# following values. 11232 11233_ACEOF 11234 11235# The following way of writing the cache mishandles newlines in values, 11236# but we know of no workaround that is simple, portable, and efficient. 11237# So, we kill variables containing newlines. 11238# Ultrix sh set writes to stderr and can't be redirected directly, 11239# and sets the high bit in the cache file unless we assign to the vars. 11240( 11241 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11242 eval ac_val=\$$ac_var 11243 case $ac_val in #( 11244 *${as_nl}*) 11245 case $ac_var in #( 11246 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11247$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11248 esac 11249 case $ac_var in #( 11250 _ | IFS | as_nl) ;; #( 11251 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11252 *) { eval $ac_var=; unset $ac_var;} ;; 11253 esac ;; 11254 esac 11255 done 11256 11257 (set) 2>&1 | 11258 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11259 *${as_nl}ac_space=\ *) 11260 # `set' does not quote correctly, so add quotes: double-quote 11261 # substitution turns \\\\ into \\, and sed turns \\ into \. 11262 sed -n \ 11263 "s/'/'\\\\''/g; 11264 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11265 ;; #( 11266 *) 11267 # `set' quotes correctly as required by POSIX, so do not add quotes. 11268 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11269 ;; 11270 esac | 11271 sort 11272) | 11273 sed ' 11274 /^ac_cv_env_/b end 11275 t clear 11276 :clear 11277 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11278 t end 11279 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11280 :end' >>confcache 11281if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11282 if test -w "$cache_file"; then 11283 test "x$cache_file" != "x/dev/null" && 11284 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11285$as_echo "$as_me: updating cache $cache_file" >&6;} 11286 cat confcache >$cache_file 11287 else 11288 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11289$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11290 fi 11291fi 11292rm -f confcache 11293 11294test "x$prefix" = xNONE && prefix=$ac_default_prefix 11295# Let make expand exec_prefix. 11296test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11297 11298# Transform confdefs.h into DEFS. 11299# Protect against shell expansion while executing Makefile rules. 11300# Protect against Makefile macro expansion. 11301# 11302# If the first sed substitution is executed (which looks for macros that 11303# take arguments), then branch to the quote section. Otherwise, 11304# look for a macro that doesn't take arguments. 11305ac_script=' 11306:mline 11307/\\$/{ 11308 N 11309 s,\\\n,, 11310 b mline 11311} 11312t clear 11313:clear 11314s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 11315t quote 11316s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 11317t quote 11318b any 11319:quote 11320s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 11321s/\[/\\&/g 11322s/\]/\\&/g 11323s/\$/$$/g 11324H 11325:any 11326${ 11327 g 11328 s/^\n// 11329 s/\n/ /g 11330 p 11331} 11332' 11333DEFS=`sed -n "$ac_script" confdefs.h` 11334 11335 11336ac_libobjs= 11337ac_ltlibobjs= 11338for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11339 # 1. Remove the extension, and $U if already installed. 11340 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11341 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11342 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11343 # will be set to the directory where LIBOBJS objects are built. 11344 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11345 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11346done 11347LIBOBJS=$ac_libobjs 11348 11349LTLIBOBJS=$ac_ltlibobjs 11350 11351 11352 if test -n "$EXEEXT"; then 11353 am__EXEEXT_TRUE= 11354 am__EXEEXT_FALSE='#' 11355else 11356 am__EXEEXT_TRUE='#' 11357 am__EXEEXT_FALSE= 11358fi 11359 11360if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11361 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 11362Usually this means the macro was only invoked conditionally." "$LINENO" 5 11363fi 11364if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11365 as_fn_error "conditional \"AMDEP\" was never defined. 11366Usually this means the macro was only invoked conditionally." "$LINENO" 5 11367fi 11368if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11369 as_fn_error "conditional \"am__fastdepCC\" was never defined. 11370Usually this means the macro was only invoked conditionally." "$LINENO" 5 11371fi 11372if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then 11373 as_fn_error "conditional \"TARGET_LIBRARY\" was never defined. 11374Usually this means the macro was only invoked conditionally." "$LINENO" 5 11375fi 11376 11377: ${CONFIG_STATUS=./config.status} 11378ac_write_fail=0 11379ac_clean_files_save=$ac_clean_files 11380ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11381{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11382$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11383as_write_fail=0 11384cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11385#! $SHELL 11386# Generated by $as_me. 11387# Run this file to recreate the current configuration. 11388# Compiler output produced by configure, useful for debugging 11389# configure, is in config.log if it exists. 11390 11391debug=false 11392ac_cs_recheck=false 11393ac_cs_silent=false 11394 11395SHELL=\${CONFIG_SHELL-$SHELL} 11396export SHELL 11397_ASEOF 11398cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11399## -------------------- ## 11400## M4sh Initialization. ## 11401## -------------------- ## 11402 11403# Be more Bourne compatible 11404DUALCASE=1; export DUALCASE # for MKS sh 11405if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11406 emulate sh 11407 NULLCMD=: 11408 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11409 # is contrary to our usage. Disable this feature. 11410 alias -g '${1+"$@"}'='"$@"' 11411 setopt NO_GLOB_SUBST 11412else 11413 case `(set -o) 2>/dev/null` in #( 11414 *posix*) : 11415 set -o posix ;; #( 11416 *) : 11417 ;; 11418esac 11419fi 11420 11421 11422as_nl=' 11423' 11424export as_nl 11425# Printing a long string crashes Solaris 7 /usr/bin/printf. 11426as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11427as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11428as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11429# Prefer a ksh shell builtin over an external printf program on Solaris, 11430# but without wasting forks for bash or zsh. 11431if test -z "$BASH_VERSION$ZSH_VERSION" \ 11432 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11433 as_echo='print -r --' 11434 as_echo_n='print -rn --' 11435elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11436 as_echo='printf %s\n' 11437 as_echo_n='printf %s' 11438else 11439 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11440 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11441 as_echo_n='/usr/ucb/echo -n' 11442 else 11443 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11444 as_echo_n_body='eval 11445 arg=$1; 11446 case $arg in #( 11447 *"$as_nl"*) 11448 expr "X$arg" : "X\\(.*\\)$as_nl"; 11449 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11450 esac; 11451 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11452 ' 11453 export as_echo_n_body 11454 as_echo_n='sh -c $as_echo_n_body as_echo' 11455 fi 11456 export as_echo_body 11457 as_echo='sh -c $as_echo_body as_echo' 11458fi 11459 11460# The user is always right. 11461if test "${PATH_SEPARATOR+set}" != set; then 11462 PATH_SEPARATOR=: 11463 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11464 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11465 PATH_SEPARATOR=';' 11466 } 11467fi 11468 11469 11470# IFS 11471# We need space, tab and new line, in precisely that order. Quoting is 11472# there to prevent editors from complaining about space-tab. 11473# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11474# splitting by setting IFS to empty value.) 11475IFS=" "" $as_nl" 11476 11477# Find who we are. Look in the path if we contain no directory separator. 11478case $0 in #(( 11479 *[\\/]* ) as_myself=$0 ;; 11480 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11481for as_dir in $PATH 11482do 11483 IFS=$as_save_IFS 11484 test -z "$as_dir" && as_dir=. 11485 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11486 done 11487IFS=$as_save_IFS 11488 11489 ;; 11490esac 11491# We did not find ourselves, most probably we were run as `sh COMMAND' 11492# in which case we are not to be found in the path. 11493if test "x$as_myself" = x; then 11494 as_myself=$0 11495fi 11496if test ! -f "$as_myself"; then 11497 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11498 exit 1 11499fi 11500 11501# Unset variables that we do not need and which cause bugs (e.g. in 11502# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11503# suppresses any "Segmentation fault" message there. '((' could 11504# trigger a bug in pdksh 5.2.14. 11505for as_var in BASH_ENV ENV MAIL MAILPATH 11506do eval test x\${$as_var+set} = xset \ 11507 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11508done 11509PS1='$ ' 11510PS2='> ' 11511PS4='+ ' 11512 11513# NLS nuisances. 11514LC_ALL=C 11515export LC_ALL 11516LANGUAGE=C 11517export LANGUAGE 11518 11519# CDPATH. 11520(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11521 11522 11523# as_fn_error ERROR [LINENO LOG_FD] 11524# --------------------------------- 11525# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11526# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11527# script with status $?, using 1 if that was 0. 11528as_fn_error () 11529{ 11530 as_status=$?; test $as_status -eq 0 && as_status=1 11531 if test "$3"; then 11532 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11533 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 11534 fi 11535 $as_echo "$as_me: error: $1" >&2 11536 as_fn_exit $as_status 11537} # as_fn_error 11538 11539 11540# as_fn_set_status STATUS 11541# ----------------------- 11542# Set $? to STATUS, without forking. 11543as_fn_set_status () 11544{ 11545 return $1 11546} # as_fn_set_status 11547 11548# as_fn_exit STATUS 11549# ----------------- 11550# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11551as_fn_exit () 11552{ 11553 set +e 11554 as_fn_set_status $1 11555 exit $1 11556} # as_fn_exit 11557 11558# as_fn_unset VAR 11559# --------------- 11560# Portably unset VAR. 11561as_fn_unset () 11562{ 11563 { eval $1=; unset $1;} 11564} 11565as_unset=as_fn_unset 11566# as_fn_append VAR VALUE 11567# ---------------------- 11568# Append the text in VALUE to the end of the definition contained in VAR. Take 11569# advantage of any shell optimizations that allow amortized linear growth over 11570# repeated appends, instead of the typical quadratic growth present in naive 11571# implementations. 11572if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11573 eval 'as_fn_append () 11574 { 11575 eval $1+=\$2 11576 }' 11577else 11578 as_fn_append () 11579 { 11580 eval $1=\$$1\$2 11581 } 11582fi # as_fn_append 11583 11584# as_fn_arith ARG... 11585# ------------------ 11586# Perform arithmetic evaluation on the ARGs, and store the result in the 11587# global $as_val. Take advantage of shells that can avoid forks. The arguments 11588# must be portable across $(()) and expr. 11589if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11590 eval 'as_fn_arith () 11591 { 11592 as_val=$(( $* )) 11593 }' 11594else 11595 as_fn_arith () 11596 { 11597 as_val=`expr "$@" || test $? -eq 1` 11598 } 11599fi # as_fn_arith 11600 11601 11602if expr a : '\(a\)' >/dev/null 2>&1 && 11603 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11604 as_expr=expr 11605else 11606 as_expr=false 11607fi 11608 11609if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11610 as_basename=basename 11611else 11612 as_basename=false 11613fi 11614 11615if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11616 as_dirname=dirname 11617else 11618 as_dirname=false 11619fi 11620 11621as_me=`$as_basename -- "$0" || 11622$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11623 X"$0" : 'X\(//\)$' \| \ 11624 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11625$as_echo X/"$0" | 11626 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11627 s//\1/ 11628 q 11629 } 11630 /^X\/\(\/\/\)$/{ 11631 s//\1/ 11632 q 11633 } 11634 /^X\/\(\/\).*/{ 11635 s//\1/ 11636 q 11637 } 11638 s/.*/./; q'` 11639 11640# Avoid depending upon Character Ranges. 11641as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11642as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11643as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11644as_cr_digits='0123456789' 11645as_cr_alnum=$as_cr_Letters$as_cr_digits 11646 11647ECHO_C= ECHO_N= ECHO_T= 11648case `echo -n x` in #((((( 11649-n*) 11650 case `echo 'xy\c'` in 11651 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11652 xy) ECHO_C='\c';; 11653 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11654 ECHO_T=' ';; 11655 esac;; 11656*) 11657 ECHO_N='-n';; 11658esac 11659 11660rm -f conf$$ conf$$.exe conf$$.file 11661if test -d conf$$.dir; then 11662 rm -f conf$$.dir/conf$$.file 11663else 11664 rm -f conf$$.dir 11665 mkdir conf$$.dir 2>/dev/null 11666fi 11667if (echo >conf$$.file) 2>/dev/null; then 11668 if ln -s conf$$.file conf$$ 2>/dev/null; then 11669 as_ln_s='ln -s' 11670 # ... but there are two gotchas: 11671 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11672 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11673 # In both cases, we have to default to `cp -p'. 11674 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11675 as_ln_s='cp -p' 11676 elif ln conf$$.file conf$$ 2>/dev/null; then 11677 as_ln_s=ln 11678 else 11679 as_ln_s='cp -p' 11680 fi 11681else 11682 as_ln_s='cp -p' 11683fi 11684rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11685rmdir conf$$.dir 2>/dev/null 11686 11687 11688# as_fn_mkdir_p 11689# ------------- 11690# Create "$as_dir" as a directory, including parents if necessary. 11691as_fn_mkdir_p () 11692{ 11693 11694 case $as_dir in #( 11695 -*) as_dir=./$as_dir;; 11696 esac 11697 test -d "$as_dir" || eval $as_mkdir_p || { 11698 as_dirs= 11699 while :; do 11700 case $as_dir in #( 11701 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11702 *) as_qdir=$as_dir;; 11703 esac 11704 as_dirs="'$as_qdir' $as_dirs" 11705 as_dir=`$as_dirname -- "$as_dir" || 11706$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11707 X"$as_dir" : 'X\(//\)[^/]' \| \ 11708 X"$as_dir" : 'X\(//\)$' \| \ 11709 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11710$as_echo X"$as_dir" | 11711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11712 s//\1/ 11713 q 11714 } 11715 /^X\(\/\/\)[^/].*/{ 11716 s//\1/ 11717 q 11718 } 11719 /^X\(\/\/\)$/{ 11720 s//\1/ 11721 q 11722 } 11723 /^X\(\/\).*/{ 11724 s//\1/ 11725 q 11726 } 11727 s/.*/./; q'` 11728 test -d "$as_dir" && break 11729 done 11730 test -z "$as_dirs" || eval "mkdir $as_dirs" 11731 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 11732 11733 11734} # as_fn_mkdir_p 11735if mkdir -p . 2>/dev/null; then 11736 as_mkdir_p='mkdir -p "$as_dir"' 11737else 11738 test -d ./-p && rmdir ./-p 11739 as_mkdir_p=false 11740fi 11741 11742if test -x / >/dev/null 2>&1; then 11743 as_test_x='test -x' 11744else 11745 if ls -dL / >/dev/null 2>&1; then 11746 as_ls_L_option=L 11747 else 11748 as_ls_L_option= 11749 fi 11750 as_test_x=' 11751 eval sh -c '\'' 11752 if test -d "$1"; then 11753 test -d "$1/."; 11754 else 11755 case $1 in #( 11756 -*)set "./$1";; 11757 esac; 11758 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11759 ???[sx]*):;;*)false;;esac;fi 11760 '\'' sh 11761 ' 11762fi 11763as_executable_p=$as_test_x 11764 11765# Sed expression to map a string onto a valid CPP name. 11766as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11767 11768# Sed expression to map a string onto a valid variable name. 11769as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11770 11771 11772exec 6>&1 11773## ----------------------------------- ## 11774## Main body of $CONFIG_STATUS script. ## 11775## ----------------------------------- ## 11776_ASEOF 11777test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11778 11779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11780# Save the log message, to keep $0 and so on meaningful, and to 11781# report actual input values of CONFIG_FILES etc. instead of their 11782# values after options handling. 11783ac_log=" 11784This file was extended by $as_me, which was 11785generated by GNU Autoconf 2.64. Invocation command line was 11786 11787 CONFIG_FILES = $CONFIG_FILES 11788 CONFIG_HEADERS = $CONFIG_HEADERS 11789 CONFIG_LINKS = $CONFIG_LINKS 11790 CONFIG_COMMANDS = $CONFIG_COMMANDS 11791 $ $0 $@ 11792 11793on `(hostname || uname -n) 2>/dev/null | sed 1q` 11794" 11795 11796_ACEOF 11797 11798case $ac_config_files in *" 11799"*) set x $ac_config_files; shift; ac_config_files=$*;; 11800esac 11801 11802 11803 11804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11805# Files that config.status was made for. 11806config_files="$ac_config_files" 11807config_commands="$ac_config_commands" 11808 11809_ACEOF 11810 11811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11812ac_cs_usage="\ 11813\`$as_me' instantiates files and other configuration actions 11814from templates according to the current configuration. Unless the files 11815and actions are specified as TAGs, all are instantiated by default. 11816 11817Usage: $0 [OPTION]... [TAG]... 11818 11819 -h, --help print this help, then exit 11820 -V, --version print version number and configuration settings, then exit 11821 -q, --quiet, --silent 11822 do not print progress messages 11823 -d, --debug don't remove temporary files 11824 --recheck update $as_me by reconfiguring in the same conditions 11825 --file=FILE[:TEMPLATE] 11826 instantiate the configuration file FILE 11827 11828Configuration files: 11829$config_files 11830 11831Configuration commands: 11832$config_commands 11833 11834Report bugs to the package provider." 11835 11836_ACEOF 11837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11838ac_cs_version="\\ 11839config.status 11840configured by $0, generated by GNU Autoconf 2.64, 11841 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 11842 11843Copyright (C) 2009 Free Software Foundation, Inc. 11844This config.status script is free software; the Free Software Foundation 11845gives unlimited permission to copy, distribute and modify it." 11846 11847ac_pwd='$ac_pwd' 11848srcdir='$srcdir' 11849INSTALL='$INSTALL' 11850MKDIR_P='$MKDIR_P' 11851AWK='$AWK' 11852test -n "\$AWK" || AWK=awk 11853_ACEOF 11854 11855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11856# The default lists apply if the user does not specify any file. 11857ac_need_defaults=: 11858while test $# != 0 11859do 11860 case $1 in 11861 --*=*) 11862 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11863 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11864 ac_shift=: 11865 ;; 11866 *) 11867 ac_option=$1 11868 ac_optarg=$2 11869 ac_shift=shift 11870 ;; 11871 esac 11872 11873 case $ac_option in 11874 # Handling of the options. 11875 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11876 ac_cs_recheck=: ;; 11877 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11878 $as_echo "$ac_cs_version"; exit ;; 11879 --debug | --debu | --deb | --de | --d | -d ) 11880 debug=: ;; 11881 --file | --fil | --fi | --f ) 11882 $ac_shift 11883 case $ac_optarg in 11884 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11885 esac 11886 as_fn_append CONFIG_FILES " '$ac_optarg'" 11887 ac_need_defaults=false;; 11888 --he | --h | --help | --hel | -h ) 11889 $as_echo "$ac_cs_usage"; exit ;; 11890 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11891 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11892 ac_cs_silent=: ;; 11893 11894 # This is an error. 11895 -*) as_fn_error "unrecognized option: \`$1' 11896Try \`$0 --help' for more information." ;; 11897 11898 *) as_fn_append ac_config_targets " $1" 11899 ac_need_defaults=false ;; 11900 11901 esac 11902 shift 11903done 11904 11905ac_configure_extra_args= 11906 11907if $ac_cs_silent; then 11908 exec 6>/dev/null 11909 ac_configure_extra_args="$ac_configure_extra_args --silent" 11910fi 11911 11912_ACEOF 11913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11914if \$ac_cs_recheck; then 11915 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11916 shift 11917 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11918 CONFIG_SHELL='$SHELL' 11919 export CONFIG_SHELL 11920 exec "\$@" 11921fi 11922 11923_ACEOF 11924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11925exec 5>>config.log 11926{ 11927 echo 11928 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11929## Running $as_me. ## 11930_ASBOX 11931 $as_echo "$ac_log" 11932} >&5 11933 11934_ACEOF 11935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11936# 11937# INIT-COMMANDS 11938# 11939 11940srcdir="$srcdir" 11941host="$host" 11942target="$target" 11943with_multisubdir="$with_multisubdir" 11944with_multisrctop="$with_multisrctop" 11945with_target_subdir="$with_target_subdir" 11946ac_configure_args="${multilib_arg} ${ac_configure_args}" 11947multi_basedir="$multi_basedir" 11948CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 11949CC="$CC" 11950CXX="$CXX" 11951GFORTRAN="$GFORTRAN" 11952GCJ="$GCJ" 11953AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11954 11955 11956# The HP-UX ksh and POSIX shell print the target directory to stdout 11957# if CDPATH is set. 11958(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11959 11960sed_quote_subst='$sed_quote_subst' 11961double_quote_subst='$double_quote_subst' 11962delay_variable_subst='$delay_variable_subst' 11963macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 11964macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 11965enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 11966enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 11967pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 11968enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 11969SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 11970ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 11971host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 11972host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 11973host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 11974build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 11975build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 11976build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 11977SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 11978Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 11979GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 11980EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 11981FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 11982LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 11983NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 11984LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 11985max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 11986ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 11987exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 11988lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 11989lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 11990lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 11991reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 11992reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 11993OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 11994deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 11995file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 11996AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 11997AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 11998STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 11999RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 12000old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12001old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12002old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 12003lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 12004CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 12005CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 12006compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 12007GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 12008lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 12009lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 12010lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 12011lt_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"`' 12012objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 12013MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 12014lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 12015lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 12016lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 12017lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 12018lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 12019need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 12020DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 12021NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 12022LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 12023OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 12024OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 12025libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 12026shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 12027extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12028archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 12029enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 12030export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 12031whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 12032compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 12033old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 12034old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12035archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 12036archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12037module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 12038module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12039with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 12040allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 12041no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 12042hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 12043hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 12044hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 12045hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 12046hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 12047hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 12048hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 12049hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 12050inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 12051link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 12052fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 12053always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 12054export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 12055exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 12056include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 12057prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 12058file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 12059variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 12060need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 12061need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 12062version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 12063runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 12064shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 12065shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 12066libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 12067library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 12068soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 12069install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 12070postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12071postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12072finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 12073finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 12074hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 12075sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 12076sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 12077hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 12078enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 12079enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 12080enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 12081old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 12082striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 12083 12084LTCC='$LTCC' 12085LTCFLAGS='$LTCFLAGS' 12086compiler='$compiler_DEFAULT' 12087 12088# A function that is used when there is no print builtin or printf. 12089func_fallback_echo () 12090{ 12091 eval 'cat <<_LTECHO_EOF 12092\$1 12093_LTECHO_EOF' 12094} 12095 12096# Quote evaled strings. 12097for var in SHELL \ 12098ECHO \ 12099SED \ 12100GREP \ 12101EGREP \ 12102FGREP \ 12103LD \ 12104NM \ 12105LN_S \ 12106lt_SP2NL \ 12107lt_NL2SP \ 12108reload_flag \ 12109OBJDUMP \ 12110deplibs_check_method \ 12111file_magic_cmd \ 12112AR \ 12113AR_FLAGS \ 12114STRIP \ 12115RANLIB \ 12116CC \ 12117CFLAGS \ 12118compiler \ 12119lt_cv_sys_global_symbol_pipe \ 12120lt_cv_sys_global_symbol_to_cdecl \ 12121lt_cv_sys_global_symbol_to_c_name_address \ 12122lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12123lt_prog_compiler_no_builtin_flag \ 12124lt_prog_compiler_wl \ 12125lt_prog_compiler_pic \ 12126lt_prog_compiler_static \ 12127lt_cv_prog_compiler_c_o \ 12128need_locks \ 12129DSYMUTIL \ 12130NMEDIT \ 12131LIPO \ 12132OTOOL \ 12133OTOOL64 \ 12134shrext_cmds \ 12135export_dynamic_flag_spec \ 12136whole_archive_flag_spec \ 12137compiler_needs_object \ 12138with_gnu_ld \ 12139allow_undefined_flag \ 12140no_undefined_flag \ 12141hardcode_libdir_flag_spec \ 12142hardcode_libdir_flag_spec_ld \ 12143hardcode_libdir_separator \ 12144fix_srcfile_path \ 12145exclude_expsyms \ 12146include_expsyms \ 12147file_list_spec \ 12148variables_saved_for_relink \ 12149libname_spec \ 12150library_names_spec \ 12151soname_spec \ 12152install_override_mode \ 12153finish_eval \ 12154old_striplib \ 12155striplib; do 12156 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12157 *[\\\\\\\`\\"\\\$]*) 12158 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12159 ;; 12160 *) 12161 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12162 ;; 12163 esac 12164done 12165 12166# Double-quote double-evaled strings. 12167for var in reload_cmds \ 12168old_postinstall_cmds \ 12169old_postuninstall_cmds \ 12170old_archive_cmds \ 12171extract_expsyms_cmds \ 12172old_archive_from_new_cmds \ 12173old_archive_from_expsyms_cmds \ 12174archive_cmds \ 12175archive_expsym_cmds \ 12176module_cmds \ 12177module_expsym_cmds \ 12178export_symbols_cmds \ 12179prelink_cmds \ 12180postinstall_cmds \ 12181postuninstall_cmds \ 12182finish_cmds \ 12183sys_lib_search_path_spec \ 12184sys_lib_dlsearch_path_spec; do 12185 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12186 *[\\\\\\\`\\"\\\$]*) 12187 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12188 ;; 12189 *) 12190 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12191 ;; 12192 esac 12193done 12194 12195ac_aux_dir='$ac_aux_dir' 12196xsi_shell='$xsi_shell' 12197lt_shell_append='$lt_shell_append' 12198 12199# See if we are running on zsh, and set the options which allow our 12200# commands through without removal of \ escapes INIT. 12201if test -n "\${ZSH_VERSION+set}" ; then 12202 setopt NO_GLOB_SUBST 12203fi 12204 12205 12206 PACKAGE='$PACKAGE' 12207 VERSION='$VERSION' 12208 TIMESTAMP='$TIMESTAMP' 12209 RM='$RM' 12210 ofile='$ofile' 12211 12212 12213 12214 12215_ACEOF 12216 12217cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12218 12219# Handling of arguments. 12220for ac_config_target in $ac_config_targets 12221do 12222 case $ac_config_target in 12223 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 12224 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12225 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12226 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12227 12228 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12229 esac 12230done 12231 12232 12233# If the user did not use the arguments to specify the items to instantiate, 12234# then the envvar interface is used. Set only those that are not. 12235# We use the long form for the default assignment because of an extremely 12236# bizarre bug on SunOS 4.1.3. 12237if $ac_need_defaults; then 12238 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12239 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12240fi 12241 12242# Have a temporary directory for convenience. Make it in the build tree 12243# simply because there is no reason against having it here, and in addition, 12244# creating and moving files from /tmp can sometimes cause problems. 12245# Hook for its removal unless debugging. 12246# Note that there is a small window in which the directory will not be cleaned: 12247# after its creation but before its name has been assigned to `$tmp'. 12248$debug || 12249{ 12250 tmp= 12251 trap 'exit_status=$? 12252 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12253' 0 12254 trap 'as_fn_exit 1' 1 2 13 15 12255} 12256# Create a (secure) tmp directory for tmp files. 12257 12258{ 12259 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12260 test -n "$tmp" && test -d "$tmp" 12261} || 12262{ 12263 tmp=./conf$$-$RANDOM 12264 (umask 077 && mkdir "$tmp") 12265} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 12266 12267# Set up the scripts for CONFIG_FILES section. 12268# No need to generate them if there are no CONFIG_FILES. 12269# This happens for instance with `./config.status config.h'. 12270if test -n "$CONFIG_FILES"; then 12271 12272 12273ac_cr=`echo X | tr X '\015'` 12274# On cygwin, bash can eat \r inside `` if the user requested igncr. 12275# But we know of no other shell where ac_cr would be empty at this 12276# point, so we can use a bashism as a fallback. 12277if test "x$ac_cr" = x; then 12278 eval ac_cr=\$\'\\r\' 12279fi 12280ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12281if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12282 ac_cs_awk_cr='\r' 12283else 12284 ac_cs_awk_cr=$ac_cr 12285fi 12286 12287echo 'BEGIN {' >"$tmp/subs1.awk" && 12288_ACEOF 12289 12290 12291{ 12292 echo "cat >conf$$subs.awk <<_ACEOF" && 12293 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12294 echo "_ACEOF" 12295} >conf$$subs.sh || 12296 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12297ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 12298ac_delim='%!_!# ' 12299for ac_last_try in false false false false false :; do 12300 . ./conf$$subs.sh || 12301 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12302 12303 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12304 if test $ac_delim_n = $ac_delim_num; then 12305 break 12306 elif $ac_last_try; then 12307 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12308 else 12309 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12310 fi 12311done 12312rm -f conf$$subs.sh 12313 12314cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12315cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 12316_ACEOF 12317sed -n ' 12318h 12319s/^/S["/; s/!.*/"]=/ 12320p 12321g 12322s/^[^!]*!// 12323:repl 12324t repl 12325s/'"$ac_delim"'$// 12326t delim 12327:nl 12328h 12329s/\(.\{148\}\).*/\1/ 12330t more1 12331s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12332p 12333n 12334b repl 12335:more1 12336s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12337p 12338g 12339s/.\{148\}// 12340t nl 12341:delim 12342h 12343s/\(.\{148\}\).*/\1/ 12344t more2 12345s/["\\]/\\&/g; s/^/"/; s/$/"/ 12346p 12347b 12348:more2 12349s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12350p 12351g 12352s/.\{148\}// 12353t delim 12354' <conf$$subs.awk | sed ' 12355/^[^""]/{ 12356 N 12357 s/\n// 12358} 12359' >>$CONFIG_STATUS || ac_write_fail=1 12360rm -f conf$$subs.awk 12361cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12362_ACAWK 12363cat >>"\$tmp/subs1.awk" <<_ACAWK && 12364 for (key in S) S_is_set[key] = 1 12365 FS = "" 12366 12367} 12368{ 12369 line = $ 0 12370 nfields = split(line, field, "@") 12371 substed = 0 12372 len = length(field[1]) 12373 for (i = 2; i < nfields; i++) { 12374 key = field[i] 12375 keylen = length(key) 12376 if (S_is_set[key]) { 12377 value = S[key] 12378 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12379 len += length(value) + length(field[++i]) 12380 substed = 1 12381 } else 12382 len += 1 + keylen 12383 } 12384 12385 print line 12386} 12387 12388_ACAWK 12389_ACEOF 12390cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12391if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12392 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12393else 12394 cat 12395fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 12396 || as_fn_error "could not setup config files machinery" "$LINENO" 5 12397_ACEOF 12398 12399# VPATH may cause trouble with some makes, so we remove $(srcdir), 12400# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12401# trailing colons and then remove the whole line if VPATH becomes empty 12402# (actually we leave an empty line to preserve line numbers). 12403if test "x$srcdir" = x.; then 12404 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12405s/:*\$(srcdir):*/:/ 12406s/:*\${srcdir}:*/:/ 12407s/:*@srcdir@:*/:/ 12408s/^\([^=]*=[ ]*\):*/\1/ 12409s/:*$// 12410s/^[^=]*=[ ]*$// 12411}' 12412fi 12413 12414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12415fi # test -n "$CONFIG_FILES" 12416 12417 12418eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 12419shift 12420for ac_tag 12421do 12422 case $ac_tag in 12423 :[FHLC]) ac_mode=$ac_tag; continue;; 12424 esac 12425 case $ac_mode$ac_tag in 12426 :[FHL]*:*);; 12427 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 12428 :[FH]-) ac_tag=-:-;; 12429 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12430 esac 12431 ac_save_IFS=$IFS 12432 IFS=: 12433 set x $ac_tag 12434 IFS=$ac_save_IFS 12435 shift 12436 ac_file=$1 12437 shift 12438 12439 case $ac_mode in 12440 :L) ac_source=$1;; 12441 :[FH]) 12442 ac_file_inputs= 12443 for ac_f 12444 do 12445 case $ac_f in 12446 -) ac_f="$tmp/stdin";; 12447 *) # Look for the file first in the build tree, then in the source tree 12448 # (if the path is not absolute). The absolute path cannot be DOS-style, 12449 # because $ac_f cannot contain `:'. 12450 test -f "$ac_f" || 12451 case $ac_f in 12452 [\\/$]*) false;; 12453 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12454 esac || 12455 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12456 esac 12457 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12458 as_fn_append ac_file_inputs " '$ac_f'" 12459 done 12460 12461 # Let's still pretend it is `configure' which instantiates (i.e., don't 12462 # use $as_me), people would be surprised to read: 12463 # /* config.h. Generated by config.status. */ 12464 configure_input='Generated from '` 12465 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12466 `' by configure.' 12467 if test x"$ac_file" != x-; then 12468 configure_input="$ac_file. $configure_input" 12469 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12470$as_echo "$as_me: creating $ac_file" >&6;} 12471 fi 12472 # Neutralize special characters interpreted by sed in replacement strings. 12473 case $configure_input in #( 12474 *\&* | *\|* | *\\* ) 12475 ac_sed_conf_input=`$as_echo "$configure_input" | 12476 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12477 *) ac_sed_conf_input=$configure_input;; 12478 esac 12479 12480 case $ac_tag in 12481 *:-:* | *:-) cat >"$tmp/stdin" \ 12482 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 12483 esac 12484 ;; 12485 esac 12486 12487 ac_dir=`$as_dirname -- "$ac_file" || 12488$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12489 X"$ac_file" : 'X\(//\)[^/]' \| \ 12490 X"$ac_file" : 'X\(//\)$' \| \ 12491 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12492$as_echo X"$ac_file" | 12493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12494 s//\1/ 12495 q 12496 } 12497 /^X\(\/\/\)[^/].*/{ 12498 s//\1/ 12499 q 12500 } 12501 /^X\(\/\/\)$/{ 12502 s//\1/ 12503 q 12504 } 12505 /^X\(\/\).*/{ 12506 s//\1/ 12507 q 12508 } 12509 s/.*/./; q'` 12510 as_dir="$ac_dir"; as_fn_mkdir_p 12511 ac_builddir=. 12512 12513case "$ac_dir" in 12514.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12515*) 12516 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12517 # A ".." for each directory in $ac_dir_suffix. 12518 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12519 case $ac_top_builddir_sub in 12520 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12521 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12522 esac ;; 12523esac 12524ac_abs_top_builddir=$ac_pwd 12525ac_abs_builddir=$ac_pwd$ac_dir_suffix 12526# for backward compatibility: 12527ac_top_builddir=$ac_top_build_prefix 12528 12529case $srcdir in 12530 .) # We are building in place. 12531 ac_srcdir=. 12532 ac_top_srcdir=$ac_top_builddir_sub 12533 ac_abs_top_srcdir=$ac_pwd ;; 12534 [\\/]* | ?:[\\/]* ) # Absolute name. 12535 ac_srcdir=$srcdir$ac_dir_suffix; 12536 ac_top_srcdir=$srcdir 12537 ac_abs_top_srcdir=$srcdir ;; 12538 *) # Relative name. 12539 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12540 ac_top_srcdir=$ac_top_build_prefix$srcdir 12541 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12542esac 12543ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12544 12545 12546 case $ac_mode in 12547 :F) 12548 # 12549 # CONFIG_FILE 12550 # 12551 12552 case $INSTALL in 12553 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12554 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12555 esac 12556 ac_MKDIR_P=$MKDIR_P 12557 case $MKDIR_P in 12558 [\\/$]* | ?:[\\/]* ) ;; 12559 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12560 esac 12561_ACEOF 12562 12563cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12564# If the template does not know about datarootdir, expand it. 12565# FIXME: This hack should be removed a few years after 2.60. 12566ac_datarootdir_hack=; ac_datarootdir_seen= 12567ac_sed_dataroot=' 12568/datarootdir/ { 12569 p 12570 q 12571} 12572/@datadir@/p 12573/@docdir@/p 12574/@infodir@/p 12575/@localedir@/p 12576/@mandir@/p' 12577case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12578*datarootdir*) ac_datarootdir_seen=yes;; 12579*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12581$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12582_ACEOF 12583cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12584 ac_datarootdir_hack=' 12585 s&@datadir@&$datadir&g 12586 s&@docdir@&$docdir&g 12587 s&@infodir@&$infodir&g 12588 s&@localedir@&$localedir&g 12589 s&@mandir@&$mandir&g 12590 s&\\\${datarootdir}&$datarootdir&g' ;; 12591esac 12592_ACEOF 12593 12594# Neutralize VPATH when `$srcdir' = `.'. 12595# Shell code in configure.ac might set extrasub. 12596# FIXME: do we really want to maintain this feature? 12597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12598ac_sed_extra="$ac_vpsub 12599$extrasub 12600_ACEOF 12601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12602:t 12603/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12604s|@configure_input@|$ac_sed_conf_input|;t t 12605s&@top_builddir@&$ac_top_builddir_sub&;t t 12606s&@top_build_prefix@&$ac_top_build_prefix&;t t 12607s&@srcdir@&$ac_srcdir&;t t 12608s&@abs_srcdir@&$ac_abs_srcdir&;t t 12609s&@top_srcdir@&$ac_top_srcdir&;t t 12610s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12611s&@builddir@&$ac_builddir&;t t 12612s&@abs_builddir@&$ac_abs_builddir&;t t 12613s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12614s&@INSTALL@&$ac_INSTALL&;t t 12615s&@MKDIR_P@&$ac_MKDIR_P&;t t 12616$ac_datarootdir_hack 12617" 12618eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 12619 || as_fn_error "could not create $ac_file" "$LINENO" 5 12620 12621test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12622 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12623 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12625which seems to be undefined. Please make sure it is defined." >&5 12626$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12627which seems to be undefined. Please make sure it is defined." >&2;} 12628 12629 rm -f "$tmp/stdin" 12630 case $ac_file in 12631 -) cat "$tmp/out" && rm -f "$tmp/out";; 12632 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 12633 esac \ 12634 || as_fn_error "could not create $ac_file" "$LINENO" 5 12635 ;; 12636 12637 12638 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12639$as_echo "$as_me: executing $ac_file commands" >&6;} 12640 ;; 12641 esac 12642 12643 12644 case $ac_file$ac_mode in 12645 "default-1":C) 12646# Only add multilib support code if we just rebuilt the top-level 12647# Makefile. 12648case " $CONFIG_FILES " in 12649 *" Makefile "*) 12650 ac_file=Makefile . ${multi_basedir}/config-ml.in 12651 ;; 12652esac ;; 12653 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12654 # Autoconf 2.62 quotes --file arguments for eval, but not when files 12655 # are listed without --file. Let's play safe and only enable the eval 12656 # if we detect the quoting. 12657 case $CONFIG_FILES in 12658 *\'*) eval set x "$CONFIG_FILES" ;; 12659 *) set x $CONFIG_FILES ;; 12660 esac 12661 shift 12662 for mf 12663 do 12664 # Strip MF so we end up with the name of the file. 12665 mf=`echo "$mf" | sed -e 's/:.*$//'` 12666 # Check whether this is an Automake generated Makefile or not. 12667 # We used to match only the files named `Makefile.in', but 12668 # some people rename them; so instead we look at the file content. 12669 # Grep'ing the first line is not enough: some people post-process 12670 # each Makefile.in and add a new line on top of each file to say so. 12671 # Grep'ing the whole file is not good either: AIX grep has a line 12672 # limit of 2048, but all sed's we know have understand at least 4000. 12673 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12674 dirpart=`$as_dirname -- "$mf" || 12675$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12676 X"$mf" : 'X\(//\)[^/]' \| \ 12677 X"$mf" : 'X\(//\)$' \| \ 12678 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12679$as_echo X"$mf" | 12680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12681 s//\1/ 12682 q 12683 } 12684 /^X\(\/\/\)[^/].*/{ 12685 s//\1/ 12686 q 12687 } 12688 /^X\(\/\/\)$/{ 12689 s//\1/ 12690 q 12691 } 12692 /^X\(\/\).*/{ 12693 s//\1/ 12694 q 12695 } 12696 s/.*/./; q'` 12697 else 12698 continue 12699 fi 12700 # Extract the definition of DEPDIR, am__include, and am__quote 12701 # from the Makefile without running `make'. 12702 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12703 test -z "$DEPDIR" && continue 12704 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12705 test -z "am__include" && continue 12706 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12707 # When using ansi2knr, U may be empty or an underscore; expand it 12708 U=`sed -n 's/^U = //p' < "$mf"` 12709 # Find all dependency output files, they are included files with 12710 # $(DEPDIR) in their names. We invoke sed twice because it is the 12711 # simplest approach to changing $(DEPDIR) to its actual value in the 12712 # expansion. 12713 for file in `sed -n " 12714 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12715 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 12716 # Make sure the directory exists. 12717 test -f "$dirpart/$file" && continue 12718 fdir=`$as_dirname -- "$file" || 12719$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12720 X"$file" : 'X\(//\)[^/]' \| \ 12721 X"$file" : 'X\(//\)$' \| \ 12722 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12723$as_echo X"$file" | 12724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12725 s//\1/ 12726 q 12727 } 12728 /^X\(\/\/\)[^/].*/{ 12729 s//\1/ 12730 q 12731 } 12732 /^X\(\/\/\)$/{ 12733 s//\1/ 12734 q 12735 } 12736 /^X\(\/\).*/{ 12737 s//\1/ 12738 q 12739 } 12740 s/.*/./; q'` 12741 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12742 # echo "creating $dirpart/$file" 12743 echo '# dummy' > "$dirpart/$file" 12744 done 12745 done 12746} 12747 ;; 12748 "libtool":C) 12749 12750 # See if we are running on zsh, and set the options which allow our 12751 # commands through without removal of \ escapes. 12752 if test -n "${ZSH_VERSION+set}" ; then 12753 setopt NO_GLOB_SUBST 12754 fi 12755 12756 cfgfile="${ofile}T" 12757 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 12758 $RM "$cfgfile" 12759 12760 cat <<_LT_EOF >> "$cfgfile" 12761#! $SHELL 12762 12763# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 12764# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 12765# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12766# NOTE: Changes made to this file will be lost: look at ltmain.sh. 12767# 12768# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 12769# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 12770# Written by Gordon Matzigkeit, 1996 12771# 12772# This file is part of GNU Libtool. 12773# 12774# GNU Libtool is free software; you can redistribute it and/or 12775# modify it under the terms of the GNU General Public License as 12776# published by the Free Software Foundation; either version 2 of 12777# the License, or (at your option) any later version. 12778# 12779# As a special exception to the GNU General Public License, 12780# if you distribute this file as part of a program or library that 12781# is built using GNU Libtool, you may include this file under the 12782# same distribution terms that you use for the rest of that program. 12783# 12784# GNU Libtool is distributed in the hope that it will be useful, 12785# but WITHOUT ANY WARRANTY; without even the implied warranty of 12786# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12787# GNU General Public License for more details. 12788# 12789# You should have received a copy of the GNU General Public License 12790# along with GNU Libtool; see the file COPYING. If not, a copy 12791# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 12792# obtained by writing to the Free Software Foundation, Inc., 12793# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 12794 12795 12796# The names of the tagged configurations supported by this script. 12797available_tags="" 12798 12799# ### BEGIN LIBTOOL CONFIG 12800 12801# Which release of libtool.m4 was used? 12802macro_version=$macro_version 12803macro_revision=$macro_revision 12804 12805# Whether or not to build shared libraries. 12806build_libtool_libs=$enable_shared 12807 12808# Whether or not to build static libraries. 12809build_old_libs=$enable_static 12810 12811# What type of objects to build. 12812pic_mode=$pic_mode 12813 12814# Whether or not to optimize for fast installation. 12815fast_install=$enable_fast_install 12816 12817# Shell to use when invoking shell scripts. 12818SHELL=$lt_SHELL 12819 12820# An echo program that protects backslashes. 12821ECHO=$lt_ECHO 12822 12823# The host system. 12824host_alias=$host_alias 12825host=$host 12826host_os=$host_os 12827 12828# The build system. 12829build_alias=$build_alias 12830build=$build 12831build_os=$build_os 12832 12833# A sed program that does not truncate output. 12834SED=$lt_SED 12835 12836# Sed that helps us avoid accidentally triggering echo(1) options like -n. 12837Xsed="\$SED -e 1s/^X//" 12838 12839# A grep program that handles long lines. 12840GREP=$lt_GREP 12841 12842# An ERE matcher. 12843EGREP=$lt_EGREP 12844 12845# A literal string matcher. 12846FGREP=$lt_FGREP 12847 12848# A BSD- or MS-compatible name lister. 12849NM=$lt_NM 12850 12851# Whether we need soft or hard links. 12852LN_S=$lt_LN_S 12853 12854# What is the maximum length of a command? 12855max_cmd_len=$max_cmd_len 12856 12857# Object file suffix (normally "o"). 12858objext=$ac_objext 12859 12860# Executable file suffix (normally ""). 12861exeext=$exeext 12862 12863# whether the shell understands "unset". 12864lt_unset=$lt_unset 12865 12866# turn spaces into newlines. 12867SP2NL=$lt_lt_SP2NL 12868 12869# turn newlines into spaces. 12870NL2SP=$lt_lt_NL2SP 12871 12872# An object symbol dumper. 12873OBJDUMP=$lt_OBJDUMP 12874 12875# Method to check whether dependent libraries are shared objects. 12876deplibs_check_method=$lt_deplibs_check_method 12877 12878# Command to use when deplibs_check_method == "file_magic". 12879file_magic_cmd=$lt_file_magic_cmd 12880 12881# The archiver. 12882AR=$lt_AR 12883AR_FLAGS=$lt_AR_FLAGS 12884 12885# A symbol stripping program. 12886STRIP=$lt_STRIP 12887 12888# Commands used to install an old-style archive. 12889RANLIB=$lt_RANLIB 12890old_postinstall_cmds=$lt_old_postinstall_cmds 12891old_postuninstall_cmds=$lt_old_postuninstall_cmds 12892 12893# Whether to use a lock for old archive extraction. 12894lock_old_archive_extraction=$lock_old_archive_extraction 12895 12896# A C compiler. 12897LTCC=$lt_CC 12898 12899# LTCC compiler flags. 12900LTCFLAGS=$lt_CFLAGS 12901 12902# Take the output of nm and produce a listing of raw symbols and C names. 12903global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12904 12905# Transform the output of nm in a proper C declaration. 12906global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12907 12908# Transform the output of nm in a C name address pair. 12909global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12910 12911# Transform the output of nm in a C name address pair when lib prefix is needed. 12912global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 12913 12914# The name of the directory that contains temporary libtool files. 12915objdir=$objdir 12916 12917# Used to examine libraries when file_magic_cmd begins with "file". 12918MAGIC_CMD=$MAGIC_CMD 12919 12920# Must we lock files when doing compilation? 12921need_locks=$lt_need_locks 12922 12923# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 12924DSYMUTIL=$lt_DSYMUTIL 12925 12926# Tool to change global to local symbols on Mac OS X. 12927NMEDIT=$lt_NMEDIT 12928 12929# Tool to manipulate fat objects and archives on Mac OS X. 12930LIPO=$lt_LIPO 12931 12932# ldd/readelf like tool for Mach-O binaries on Mac OS X. 12933OTOOL=$lt_OTOOL 12934 12935# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 12936OTOOL64=$lt_OTOOL64 12937 12938# Old archive suffix (normally "a"). 12939libext=$libext 12940 12941# Shared library suffix (normally ".so"). 12942shrext_cmds=$lt_shrext_cmds 12943 12944# The commands to extract the exported symbol list from a shared archive. 12945extract_expsyms_cmds=$lt_extract_expsyms_cmds 12946 12947# Variables whose values should be saved in libtool wrapper scripts and 12948# restored at link time. 12949variables_saved_for_relink=$lt_variables_saved_for_relink 12950 12951# Do we need the "lib" prefix for modules? 12952need_lib_prefix=$need_lib_prefix 12953 12954# Do we need a version for libraries? 12955need_version=$need_version 12956 12957# Library versioning type. 12958version_type=$version_type 12959 12960# Shared library runtime path variable. 12961runpath_var=$runpath_var 12962 12963# Shared library path variable. 12964shlibpath_var=$shlibpath_var 12965 12966# Is shlibpath searched before the hard-coded library search path? 12967shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12968 12969# Format of library name prefix. 12970libname_spec=$lt_libname_spec 12971 12972# List of archive names. First name is the real one, the rest are links. 12973# The last name is the one that the linker finds with -lNAME 12974library_names_spec=$lt_library_names_spec 12975 12976# The coded name of the library, if different from the real name. 12977soname_spec=$lt_soname_spec 12978 12979# Permission mode override for installation of shared libraries. 12980install_override_mode=$lt_install_override_mode 12981 12982# Command to use after installation of a shared archive. 12983postinstall_cmds=$lt_postinstall_cmds 12984 12985# Command to use after uninstallation of a shared archive. 12986postuninstall_cmds=$lt_postuninstall_cmds 12987 12988# Commands used to finish a libtool library installation in a directory. 12989finish_cmds=$lt_finish_cmds 12990 12991# As "finish_cmds", except a single script fragment to be evaled but 12992# not shown. 12993finish_eval=$lt_finish_eval 12994 12995# Whether we should hardcode library paths into libraries. 12996hardcode_into_libs=$hardcode_into_libs 12997 12998# Compile-time system search path for libraries. 12999sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13000 13001# Run-time system search path for libraries. 13002sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13003 13004# Whether dlopen is supported. 13005dlopen_support=$enable_dlopen 13006 13007# Whether dlopen of programs is supported. 13008dlopen_self=$enable_dlopen_self 13009 13010# Whether dlopen of statically linked programs is supported. 13011dlopen_self_static=$enable_dlopen_self_static 13012 13013# Commands to strip libraries. 13014old_striplib=$lt_old_striplib 13015striplib=$lt_striplib 13016 13017 13018# The linker used to build libraries. 13019LD=$lt_LD 13020 13021# How to create reloadable object files. 13022reload_flag=$lt_reload_flag 13023reload_cmds=$lt_reload_cmds 13024 13025# Commands used to build an old-style archive. 13026old_archive_cmds=$lt_old_archive_cmds 13027 13028# A language specific compiler. 13029CC=$lt_compiler 13030 13031# Is the compiler the GNU compiler? 13032with_gcc=$GCC 13033 13034# Compiler flag to turn off builtin functions. 13035no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13036 13037# How to pass a linker flag through the compiler. 13038wl=$lt_lt_prog_compiler_wl 13039 13040# Additional compiler flags for building library objects. 13041pic_flag=$lt_lt_prog_compiler_pic 13042 13043# Compiler flag to prevent dynamic linking. 13044link_static_flag=$lt_lt_prog_compiler_static 13045 13046# Does compiler simultaneously support -c and -o options? 13047compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13048 13049# Whether or not to add -lc for building shared libraries. 13050build_libtool_need_lc=$archive_cmds_need_lc 13051 13052# Whether or not to disallow shared libs when runtime libs are static. 13053allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13054 13055# Compiler flag to allow reflexive dlopens. 13056export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13057 13058# Compiler flag to generate shared objects directly from archives. 13059whole_archive_flag_spec=$lt_whole_archive_flag_spec 13060 13061# Whether the compiler copes with passing no objects directly. 13062compiler_needs_object=$lt_compiler_needs_object 13063 13064# Create an old-style archive from a shared archive. 13065old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13066 13067# Create a temporary old-style archive to link instead of a shared archive. 13068old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13069 13070# Commands used to build a shared archive. 13071archive_cmds=$lt_archive_cmds 13072archive_expsym_cmds=$lt_archive_expsym_cmds 13073 13074# Commands used to build a loadable module if different from building 13075# a shared archive. 13076module_cmds=$lt_module_cmds 13077module_expsym_cmds=$lt_module_expsym_cmds 13078 13079# Whether we are building with GNU ld or not. 13080with_gnu_ld=$lt_with_gnu_ld 13081 13082# Flag that allows shared libraries with undefined symbols to be built. 13083allow_undefined_flag=$lt_allow_undefined_flag 13084 13085# Flag that enforces no undefined symbols. 13086no_undefined_flag=$lt_no_undefined_flag 13087 13088# Flag to hardcode \$libdir into a binary during linking. 13089# This must work even if \$libdir does not exist 13090hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13091 13092# If ld is used when linking, flag to hardcode \$libdir into a binary 13093# during linking. This must work even if \$libdir does not exist. 13094hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13095 13096# Whether we need a single "-rpath" flag with a separated argument. 13097hardcode_libdir_separator=$lt_hardcode_libdir_separator 13098 13099# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13100# DIR into the resulting binary. 13101hardcode_direct=$hardcode_direct 13102 13103# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13104# DIR into the resulting binary and the resulting library dependency is 13105# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13106# library is relocated. 13107hardcode_direct_absolute=$hardcode_direct_absolute 13108 13109# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13110# into the resulting binary. 13111hardcode_minus_L=$hardcode_minus_L 13112 13113# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13114# into the resulting binary. 13115hardcode_shlibpath_var=$hardcode_shlibpath_var 13116 13117# Set to "yes" if building a shared library automatically hardcodes DIR 13118# into the library and all subsequent libraries and executables linked 13119# against it. 13120hardcode_automatic=$hardcode_automatic 13121 13122# Set to yes if linker adds runtime paths of dependent libraries 13123# to runtime path list. 13124inherit_rpath=$inherit_rpath 13125 13126# Whether libtool must link a program against all its dependency libraries. 13127link_all_deplibs=$link_all_deplibs 13128 13129# Fix the shell variable \$srcfile for the compiler. 13130fix_srcfile_path=$lt_fix_srcfile_path 13131 13132# Set to "yes" if exported symbols are required. 13133always_export_symbols=$always_export_symbols 13134 13135# The commands to list exported symbols. 13136export_symbols_cmds=$lt_export_symbols_cmds 13137 13138# Symbols that should not be listed in the preloaded symbols. 13139exclude_expsyms=$lt_exclude_expsyms 13140 13141# Symbols that must always be exported. 13142include_expsyms=$lt_include_expsyms 13143 13144# Commands necessary for linking programs (against libraries) with templates. 13145prelink_cmds=$lt_prelink_cmds 13146 13147# Specify filename containing input files. 13148file_list_spec=$lt_file_list_spec 13149 13150# How to hardcode a shared library path into an executable. 13151hardcode_action=$hardcode_action 13152 13153# ### END LIBTOOL CONFIG 13154 13155_LT_EOF 13156 13157 case $host_os in 13158 aix3*) 13159 cat <<\_LT_EOF >> "$cfgfile" 13160# AIX sometimes has problems with the GCC collect2 program. For some 13161# reason, if we set the COLLECT_NAMES environment variable, the problems 13162# vanish in a puff of smoke. 13163if test "X${COLLECT_NAMES+set}" != Xset; then 13164 COLLECT_NAMES= 13165 export COLLECT_NAMES 13166fi 13167_LT_EOF 13168 ;; 13169 esac 13170 13171 13172ltmain="$ac_aux_dir/ltmain.sh" 13173 13174 13175 # We use sed instead of cat because bash on DJGPP gets confused if 13176 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13177 # text mode, it properly converts lines to CR/LF. This bash problem 13178 # is reportedly fixed, but why not run on old versions too? 13179 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 13180 || (rm -f "$cfgfile"; exit 1) 13181 13182 case $xsi_shell in 13183 yes) 13184 cat << \_LT_EOF >> "$cfgfile" 13185 13186# func_dirname file append nondir_replacement 13187# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13188# otherwise set result to NONDIR_REPLACEMENT. 13189func_dirname () 13190{ 13191 case ${1} in 13192 */*) func_dirname_result="${1%/*}${2}" ;; 13193 * ) func_dirname_result="${3}" ;; 13194 esac 13195} 13196 13197# func_basename file 13198func_basename () 13199{ 13200 func_basename_result="${1##*/}" 13201} 13202 13203# func_dirname_and_basename file append nondir_replacement 13204# perform func_basename and func_dirname in a single function 13205# call: 13206# dirname: Compute the dirname of FILE. If nonempty, 13207# add APPEND to the result, otherwise set result 13208# to NONDIR_REPLACEMENT. 13209# value returned in "$func_dirname_result" 13210# basename: Compute filename of FILE. 13211# value retuned in "$func_basename_result" 13212# Implementation must be kept synchronized with func_dirname 13213# and func_basename. For efficiency, we do not delegate to 13214# those functions but instead duplicate the functionality here. 13215func_dirname_and_basename () 13216{ 13217 case ${1} in 13218 */*) func_dirname_result="${1%/*}${2}" ;; 13219 * ) func_dirname_result="${3}" ;; 13220 esac 13221 func_basename_result="${1##*/}" 13222} 13223 13224# func_stripname prefix suffix name 13225# strip PREFIX and SUFFIX off of NAME. 13226# PREFIX and SUFFIX must not contain globbing or regex special 13227# characters, hashes, percent signs, but SUFFIX may contain a leading 13228# dot (in which case that matches only a dot). 13229func_stripname () 13230{ 13231 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 13232 # positional parameters, so assign one to ordinary parameter first. 13233 func_stripname_result=${3} 13234 func_stripname_result=${func_stripname_result#"${1}"} 13235 func_stripname_result=${func_stripname_result%"${2}"} 13236} 13237 13238# func_opt_split 13239func_opt_split () 13240{ 13241 func_opt_split_opt=${1%%=*} 13242 func_opt_split_arg=${1#*=} 13243} 13244 13245# func_lo2o object 13246func_lo2o () 13247{ 13248 case ${1} in 13249 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 13250 *) func_lo2o_result=${1} ;; 13251 esac 13252} 13253 13254# func_xform libobj-or-source 13255func_xform () 13256{ 13257 func_xform_result=${1%.*}.lo 13258} 13259 13260# func_arith arithmetic-term... 13261func_arith () 13262{ 13263 func_arith_result=$(( $* )) 13264} 13265 13266# func_len string 13267# STRING may not start with a hyphen. 13268func_len () 13269{ 13270 func_len_result=${#1} 13271} 13272 13273_LT_EOF 13274 ;; 13275 *) # Bourne compatible functions. 13276 cat << \_LT_EOF >> "$cfgfile" 13277 13278# func_dirname file append nondir_replacement 13279# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13280# otherwise set result to NONDIR_REPLACEMENT. 13281func_dirname () 13282{ 13283 # Extract subdirectory from the argument. 13284 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 13285 if test "X$func_dirname_result" = "X${1}"; then 13286 func_dirname_result="${3}" 13287 else 13288 func_dirname_result="$func_dirname_result${2}" 13289 fi 13290} 13291 13292# func_basename file 13293func_basename () 13294{ 13295 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 13296} 13297 13298 13299# func_stripname prefix suffix name 13300# strip PREFIX and SUFFIX off of NAME. 13301# PREFIX and SUFFIX must not contain globbing or regex special 13302# characters, hashes, percent signs, but SUFFIX may contain a leading 13303# dot (in which case that matches only a dot). 13304# func_strip_suffix prefix name 13305func_stripname () 13306{ 13307 case ${2} in 13308 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 13309 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 13310 esac 13311} 13312 13313# sed scripts: 13314my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 13315my_sed_long_arg='1s/^-[^=]*=//' 13316 13317# func_opt_split 13318func_opt_split () 13319{ 13320 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 13321 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 13322} 13323 13324# func_lo2o object 13325func_lo2o () 13326{ 13327 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 13328} 13329 13330# func_xform libobj-or-source 13331func_xform () 13332{ 13333 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 13334} 13335 13336# func_arith arithmetic-term... 13337func_arith () 13338{ 13339 func_arith_result=`expr "$@"` 13340} 13341 13342# func_len string 13343# STRING may not start with a hyphen. 13344func_len () 13345{ 13346 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 13347} 13348 13349_LT_EOF 13350esac 13351 13352case $lt_shell_append in 13353 yes) 13354 cat << \_LT_EOF >> "$cfgfile" 13355 13356# func_append var value 13357# Append VALUE to the end of shell variable VAR. 13358func_append () 13359{ 13360 eval "$1+=\$2" 13361} 13362_LT_EOF 13363 ;; 13364 *) 13365 cat << \_LT_EOF >> "$cfgfile" 13366 13367# func_append var value 13368# Append VALUE to the end of shell variable VAR. 13369func_append () 13370{ 13371 eval "$1=\$$1\$2" 13372} 13373 13374_LT_EOF 13375 ;; 13376 esac 13377 13378 13379 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 13380 || (rm -f "$cfgfile"; exit 1) 13381 13382 mv -f "$cfgfile" "$ofile" || 13383 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 13384 chmod +x "$ofile" 13385 13386 ;; 13387 13388 esac 13389done # for ac_tag 13390 13391 13392as_fn_exit 0 13393_ACEOF 13394ac_clean_files=$ac_clean_files_save 13395 13396test $ac_write_fail = 0 || 13397 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 13398 13399 13400# configure is writing to config.log, and then calls config.status. 13401# config.status does its own redirection, appending to config.log. 13402# Unfortunately, on DOS this fails, as config.log is still kept open 13403# by configure, so config.status won't be able to write to it; its 13404# output is simply discarded. So we exec the FD to /dev/null, 13405# effectively closing config.log, so it can be properly (re)opened and 13406# appended to by config.status. When coming back to configure, we 13407# need to make the FD available again. 13408if test "$no_create" != yes; then 13409 ac_cs_success=: 13410 ac_config_status_args= 13411 test "$silent" = yes && 13412 ac_config_status_args="$ac_config_status_args --quiet" 13413 exec 5>/dev/null 13414 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13415 exec 5>>config.log 13416 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13417 # would make configure fail if this is the last instruction. 13418 $ac_cs_success || as_fn_exit $? 13419fi 13420if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13422$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13423fi 13424 13425