1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.64 for GCC Quad-precision Math Library 0.1. 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 172test \$(( 1 + 1 )) = 2 || exit 1 173 174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 178 PATH=/empty FPATH=/empty; export PATH FPATH 179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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='GCC Quad-precision Math Library' 558PACKAGE_TARNAME='libquadmath' 559PACKAGE_VERSION='0.1' 560PACKAGE_STRING='GCC Quad-precision Math Library 0.1' 561PACKAGE_BUGREPORT='' 562PACKAGE_URL='' 563 564# Factoring default headers for most tests. 565ac_includes_default="\ 566#include <stdio.h> 567#ifdef HAVE_SYS_TYPES_H 568# include <sys/types.h> 569#endif 570#ifdef HAVE_SYS_STAT_H 571# include <sys/stat.h> 572#endif 573#ifdef STDC_HEADERS 574# include <stdlib.h> 575# include <stddef.h> 576#else 577# ifdef HAVE_STDLIB_H 578# include <stdlib.h> 579# endif 580#endif 581#ifdef HAVE_STRING_H 582# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 583# include <memory.h> 584# endif 585# include <string.h> 586#endif 587#ifdef HAVE_STRINGS_H 588# include <strings.h> 589#endif 590#ifdef HAVE_INTTYPES_H 591# include <inttypes.h> 592#endif 593#ifdef HAVE_STDINT_H 594# include <stdint.h> 595#endif 596#ifdef HAVE_UNISTD_H 597# include <unistd.h> 598#endif" 599 600ac_subst_vars='am__EXEEXT_FALSE 601am__EXEEXT_TRUE 602LTLIBOBJS 603LIBOBJS 604get_gcc_base_ver 605GENINSRC_FALSE 606GENINSRC_TRUE 607XCFLAGS 608BUILD_LIBQUADMATH_FALSE 609BUILD_LIBQUADMATH_TRUE 610LIBQUAD_USE_SYMVER_SUN_FALSE 611LIBQUAD_USE_SYMVER_SUN_TRUE 612LIBQUAD_USE_SYMVER_GNU_FALSE 613LIBQUAD_USE_SYMVER_GNU_TRUE 614LIBQUAD_USE_SYMVER_FALSE 615LIBQUAD_USE_SYMVER_TRUE 616toolexeclibdir 617toolexecdir 618MAINT 619MAINTAINER_MODE_FALSE 620MAINTAINER_MODE_TRUE 621enable_static 622enable_shared 623lt_host_flags 624OTOOL64 625OTOOL 626LIPO 627NMEDIT 628DSYMUTIL 629RANLIB 630AR 631OBJDUMP 632LN_S 633NM 634ac_ct_DUMPBIN 635DUMPBIN 636LD 637FGREP 638SED 639LIBTOOL 640REPORT_BUGS_TEXI 641REPORT_BUGS_TO 642BUILD_INFO_FALSE 643BUILD_INFO_TRUE 644EGREP 645GREP 646CPP 647am__fastdepCC_FALSE 648am__fastdepCC_TRUE 649CCDEPMODE 650am__nodep 651AMDEPBACKSLASH 652AMDEP_FALSE 653AMDEP_TRUE 654am__quote 655am__include 656DEPDIR 657OBJEXT 658EXEEXT 659ac_ct_CC 660CPPFLAGS 661LDFLAGS 662CFLAGS 663CC 664am__untar 665am__tar 666AMTAR 667am__leading_dot 668SET_MAKE 669AWK 670mkdir_p 671MKDIR_P 672INSTALL_STRIP_PROGRAM 673STRIP 674install_sh 675MAKEINFO 676AUTOHEADER 677AUTOMAKE 678AUTOCONF 679ACLOCAL 680VERSION 681PACKAGE 682CYGPATH_W 683am__isrc 684INSTALL_DATA 685INSTALL_SCRIPT 686INSTALL_PROGRAM 687multi_basedir 688target_noncanonical 689target_os 690target_vendor 691target_cpu 692target 693host_os 694host_vendor 695host_cpu 696host 697build_os 698build_vendor 699build_cpu 700build 701target_alias 702host_alias 703build_alias 704LIBS 705ECHO_T 706ECHO_N 707ECHO_C 708DEFS 709mandir 710localedir 711libdir 712psdir 713pdfdir 714dvidir 715htmldir 716infodir 717docdir 718oldincludedir 719includedir 720localstatedir 721sharedstatedir 722sysconfdir 723datadir 724datarootdir 725libexecdir 726sbindir 727bindir 728program_transform_name 729prefix 730exec_prefix 731PACKAGE_URL 732PACKAGE_BUGREPORT 733PACKAGE_STRING 734PACKAGE_VERSION 735PACKAGE_TARNAME 736PACKAGE_NAME 737PATH_SEPARATOR 738SHELL' 739ac_subst_files='' 740ac_user_opts=' 741enable_option_checking 742enable_multilib 743enable_version_specific_runtime_libs 744enable_dependency_tracking 745with_bugurl 746enable_shared 747enable_static 748with_pic 749enable_fast_install 750with_gnu_ld 751enable_libtool_lock 752enable_maintainer_mode 753enable_symvers 754enable_cet 755enable_generated_files_in_srcdir 756with_gcc_major_version_only 757' 758 ac_precious_vars='build_alias 759host_alias 760target_alias 761CC 762CFLAGS 763LDFLAGS 764LIBS 765CPPFLAGS 766CPP' 767 768 769# Initialize some variables set by options. 770ac_init_help= 771ac_init_version=false 772ac_unrecognized_opts= 773ac_unrecognized_sep= 774# The variables have the same names as the options, with 775# dashes changed to underlines. 776cache_file=/dev/null 777exec_prefix=NONE 778no_create= 779no_recursion= 780prefix=NONE 781program_prefix=NONE 782program_suffix=NONE 783program_transform_name=s,x,x, 784silent= 785site= 786srcdir= 787verbose= 788x_includes=NONE 789x_libraries=NONE 790 791# Installation directory options. 792# These are left unexpanded so users can "make install exec_prefix=/foo" 793# and all the variables that are supposed to be based on exec_prefix 794# by default will actually change. 795# Use braces instead of parens because sh, perl, etc. also accept them. 796# (The list follows the same order as the GNU Coding Standards.) 797bindir='${exec_prefix}/bin' 798sbindir='${exec_prefix}/sbin' 799libexecdir='${exec_prefix}/libexec' 800datarootdir='${prefix}/share' 801datadir='${datarootdir}' 802sysconfdir='${prefix}/etc' 803sharedstatedir='${prefix}/com' 804localstatedir='${prefix}/var' 805includedir='${prefix}/include' 806oldincludedir='/usr/include' 807docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 808infodir='${datarootdir}/info' 809htmldir='${docdir}' 810dvidir='${docdir}' 811pdfdir='${docdir}' 812psdir='${docdir}' 813libdir='${exec_prefix}/lib' 814localedir='${datarootdir}/locale' 815mandir='${datarootdir}/man' 816 817ac_prev= 818ac_dashdash= 819for ac_option 820do 821 # If the previous option needs an argument, assign it. 822 if test -n "$ac_prev"; then 823 eval $ac_prev=\$ac_option 824 ac_prev= 825 continue 826 fi 827 828 case $ac_option in 829 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 830 *) ac_optarg=yes ;; 831 esac 832 833 # Accept the important Cygnus configure options, so we can diagnose typos. 834 835 case $ac_dashdash$ac_option in 836 --) 837 ac_dashdash=yes ;; 838 839 -bindir | --bindir | --bindi | --bind | --bin | --bi) 840 ac_prev=bindir ;; 841 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 842 bindir=$ac_optarg ;; 843 844 -build | --build | --buil | --bui | --bu) 845 ac_prev=build_alias ;; 846 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 847 build_alias=$ac_optarg ;; 848 849 -cache-file | --cache-file | --cache-fil | --cache-fi \ 850 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 851 ac_prev=cache_file ;; 852 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 853 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 854 cache_file=$ac_optarg ;; 855 856 --config-cache | -C) 857 cache_file=config.cache ;; 858 859 -datadir | --datadir | --datadi | --datad) 860 ac_prev=datadir ;; 861 -datadir=* | --datadir=* | --datadi=* | --datad=*) 862 datadir=$ac_optarg ;; 863 864 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 865 | --dataroo | --dataro | --datar) 866 ac_prev=datarootdir ;; 867 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 868 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 869 datarootdir=$ac_optarg ;; 870 871 -disable-* | --disable-*) 872 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 873 # Reject names that are not valid shell variable names. 874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 875 as_fn_error "invalid feature name: $ac_useropt" 876 ac_useropt_orig=$ac_useropt 877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 878 case $ac_user_opts in 879 *" 880"enable_$ac_useropt" 881"*) ;; 882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 883 ac_unrecognized_sep=', ';; 884 esac 885 eval enable_$ac_useropt=no ;; 886 887 -docdir | --docdir | --docdi | --doc | --do) 888 ac_prev=docdir ;; 889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 890 docdir=$ac_optarg ;; 891 892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 893 ac_prev=dvidir ;; 894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 895 dvidir=$ac_optarg ;; 896 897 -enable-* | --enable-*) 898 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 899 # Reject names that are not valid shell variable names. 900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 901 as_fn_error "invalid feature name: $ac_useropt" 902 ac_useropt_orig=$ac_useropt 903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 904 case $ac_user_opts in 905 *" 906"enable_$ac_useropt" 907"*) ;; 908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 909 ac_unrecognized_sep=', ';; 910 esac 911 eval enable_$ac_useropt=\$ac_optarg ;; 912 913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 915 | --exec | --exe | --ex) 916 ac_prev=exec_prefix ;; 917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 919 | --exec=* | --exe=* | --ex=*) 920 exec_prefix=$ac_optarg ;; 921 922 -gas | --gas | --ga | --g) 923 # Obsolete; use --with-gas. 924 with_gas=yes ;; 925 926 -help | --help | --hel | --he | -h) 927 ac_init_help=long ;; 928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 929 ac_init_help=recursive ;; 930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 931 ac_init_help=short ;; 932 933 -host | --host | --hos | --ho) 934 ac_prev=host_alias ;; 935 -host=* | --host=* | --hos=* | --ho=*) 936 host_alias=$ac_optarg ;; 937 938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 939 ac_prev=htmldir ;; 940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 941 | --ht=*) 942 htmldir=$ac_optarg ;; 943 944 -includedir | --includedir | --includedi | --included | --include \ 945 | --includ | --inclu | --incl | --inc) 946 ac_prev=includedir ;; 947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 948 | --includ=* | --inclu=* | --incl=* | --inc=*) 949 includedir=$ac_optarg ;; 950 951 -infodir | --infodir | --infodi | --infod | --info | --inf) 952 ac_prev=infodir ;; 953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 954 infodir=$ac_optarg ;; 955 956 -libdir | --libdir | --libdi | --libd) 957 ac_prev=libdir ;; 958 -libdir=* | --libdir=* | --libdi=* | --libd=*) 959 libdir=$ac_optarg ;; 960 961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 962 | --libexe | --libex | --libe) 963 ac_prev=libexecdir ;; 964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 965 | --libexe=* | --libex=* | --libe=*) 966 libexecdir=$ac_optarg ;; 967 968 -localedir | --localedir | --localedi | --localed | --locale) 969 ac_prev=localedir ;; 970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 971 localedir=$ac_optarg ;; 972 973 -localstatedir | --localstatedir | --localstatedi | --localstated \ 974 | --localstate | --localstat | --localsta | --localst | --locals) 975 ac_prev=localstatedir ;; 976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 978 localstatedir=$ac_optarg ;; 979 980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 981 ac_prev=mandir ;; 982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 983 mandir=$ac_optarg ;; 984 985 -nfp | --nfp | --nf) 986 # Obsolete; use --without-fp. 987 with_fp=no ;; 988 989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 990 | --no-cr | --no-c | -n) 991 no_create=yes ;; 992 993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 995 no_recursion=yes ;; 996 997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 999 | --oldin | --oldi | --old | --ol | --o) 1000 ac_prev=oldincludedir ;; 1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1004 oldincludedir=$ac_optarg ;; 1005 1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1007 ac_prev=prefix ;; 1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1009 prefix=$ac_optarg ;; 1010 1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1012 | --program-pre | --program-pr | --program-p) 1013 ac_prev=program_prefix ;; 1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1016 program_prefix=$ac_optarg ;; 1017 1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1019 | --program-suf | --program-su | --program-s) 1020 ac_prev=program_suffix ;; 1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1023 program_suffix=$ac_optarg ;; 1024 1025 -program-transform-name | --program-transform-name \ 1026 | --program-transform-nam | --program-transform-na \ 1027 | --program-transform-n | --program-transform- \ 1028 | --program-transform | --program-transfor \ 1029 | --program-transfo | --program-transf \ 1030 | --program-trans | --program-tran \ 1031 | --progr-tra | --program-tr | --program-t) 1032 ac_prev=program_transform_name ;; 1033 -program-transform-name=* | --program-transform-name=* \ 1034 | --program-transform-nam=* | --program-transform-na=* \ 1035 | --program-transform-n=* | --program-transform-=* \ 1036 | --program-transform=* | --program-transfor=* \ 1037 | --program-transfo=* | --program-transf=* \ 1038 | --program-trans=* | --program-tran=* \ 1039 | --progr-tra=* | --program-tr=* | --program-t=*) 1040 program_transform_name=$ac_optarg ;; 1041 1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1043 ac_prev=pdfdir ;; 1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1045 pdfdir=$ac_optarg ;; 1046 1047 -psdir | --psdir | --psdi | --psd | --ps) 1048 ac_prev=psdir ;; 1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1050 psdir=$ac_optarg ;; 1051 1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1053 | -silent | --silent | --silen | --sile | --sil) 1054 silent=yes ;; 1055 1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1057 ac_prev=sbindir ;; 1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1059 | --sbi=* | --sb=*) 1060 sbindir=$ac_optarg ;; 1061 1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1064 | --sharedst | --shareds | --shared | --share | --shar \ 1065 | --sha | --sh) 1066 ac_prev=sharedstatedir ;; 1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1070 | --sha=* | --sh=*) 1071 sharedstatedir=$ac_optarg ;; 1072 1073 -site | --site | --sit) 1074 ac_prev=site ;; 1075 -site=* | --site=* | --sit=*) 1076 site=$ac_optarg ;; 1077 1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1079 ac_prev=srcdir ;; 1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1081 srcdir=$ac_optarg ;; 1082 1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1084 | --syscon | --sysco | --sysc | --sys | --sy) 1085 ac_prev=sysconfdir ;; 1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1088 sysconfdir=$ac_optarg ;; 1089 1090 -target | --target | --targe | --targ | --tar | --ta | --t) 1091 ac_prev=target_alias ;; 1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1093 target_alias=$ac_optarg ;; 1094 1095 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1096 verbose=yes ;; 1097 1098 -version | --version | --versio | --versi | --vers | -V) 1099 ac_init_version=: ;; 1100 1101 -with-* | --with-*) 1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1103 # Reject names that are not valid shell variable names. 1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1105 as_fn_error "invalid package name: $ac_useropt" 1106 ac_useropt_orig=$ac_useropt 1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1108 case $ac_user_opts in 1109 *" 1110"with_$ac_useropt" 1111"*) ;; 1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1113 ac_unrecognized_sep=', ';; 1114 esac 1115 eval with_$ac_useropt=\$ac_optarg ;; 1116 1117 -without-* | --without-*) 1118 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1119 # Reject names that are not valid shell variable names. 1120 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1121 as_fn_error "invalid package name: $ac_useropt" 1122 ac_useropt_orig=$ac_useropt 1123 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1124 case $ac_user_opts in 1125 *" 1126"with_$ac_useropt" 1127"*) ;; 1128 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1129 ac_unrecognized_sep=', ';; 1130 esac 1131 eval with_$ac_useropt=no ;; 1132 1133 --x) 1134 # Obsolete; use --with-x. 1135 with_x=yes ;; 1136 1137 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1138 | --x-incl | --x-inc | --x-in | --x-i) 1139 ac_prev=x_includes ;; 1140 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1141 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1142 x_includes=$ac_optarg ;; 1143 1144 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1145 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1146 ac_prev=x_libraries ;; 1147 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1148 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1149 x_libraries=$ac_optarg ;; 1150 1151 -*) as_fn_error "unrecognized option: \`$ac_option' 1152Try \`$0 --help' for more information." 1153 ;; 1154 1155 *=*) 1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1157 # Reject names that are not valid shell variable names. 1158 case $ac_envvar in #( 1159 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1160 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1161 esac 1162 eval $ac_envvar=\$ac_optarg 1163 export $ac_envvar ;; 1164 1165 *) 1166 # FIXME: should be removed in autoconf 3.0. 1167 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1168 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1169 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1170 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1171 ;; 1172 1173 esac 1174done 1175 1176if test -n "$ac_prev"; then 1177 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1178 as_fn_error "missing argument to $ac_option" 1179fi 1180 1181if test -n "$ac_unrecognized_opts"; then 1182 case $enable_option_checking in 1183 no) ;; 1184 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1185 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1186 esac 1187fi 1188 1189# Check all directory arguments for consistency. 1190for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1191 datadir sysconfdir sharedstatedir localstatedir includedir \ 1192 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1193 libdir localedir mandir 1194do 1195 eval ac_val=\$$ac_var 1196 # Remove trailing slashes. 1197 case $ac_val in 1198 */ ) 1199 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1200 eval $ac_var=\$ac_val;; 1201 esac 1202 # Be sure to have absolute directory names. 1203 case $ac_val in 1204 [\\/$]* | ?:[\\/]* ) continue;; 1205 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1206 esac 1207 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1208done 1209 1210# There might be people who depend on the old broken behavior: `$host' 1211# used to hold the argument of --host etc. 1212# FIXME: To remove some day. 1213build=$build_alias 1214host=$host_alias 1215target=$target_alias 1216 1217# FIXME: To remove some day. 1218if test "x$host_alias" != x; then 1219 if test "x$build_alias" = x; then 1220 cross_compiling=maybe 1221 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1222 If a cross compiler is detected then cross compile mode will be used." >&2 1223 elif test "x$build_alias" != "x$host_alias"; then 1224 cross_compiling=yes 1225 fi 1226fi 1227 1228ac_tool_prefix= 1229test -n "$host_alias" && ac_tool_prefix=$host_alias- 1230 1231test "$silent" = yes && exec 6>/dev/null 1232 1233 1234ac_pwd=`pwd` && test -n "$ac_pwd" && 1235ac_ls_di=`ls -di .` && 1236ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1237 as_fn_error "working directory cannot be determined" 1238test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1239 as_fn_error "pwd does not report name of working directory" 1240 1241 1242# Find the source files, if location was not specified. 1243if test -z "$srcdir"; then 1244 ac_srcdir_defaulted=yes 1245 # Try the directory containing this script, then the parent directory. 1246 ac_confdir=`$as_dirname -- "$as_myself" || 1247$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1248 X"$as_myself" : 'X\(//\)[^/]' \| \ 1249 X"$as_myself" : 'X\(//\)$' \| \ 1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1251$as_echo X"$as_myself" | 1252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1253 s//\1/ 1254 q 1255 } 1256 /^X\(\/\/\)[^/].*/{ 1257 s//\1/ 1258 q 1259 } 1260 /^X\(\/\/\)$/{ 1261 s//\1/ 1262 q 1263 } 1264 /^X\(\/\).*/{ 1265 s//\1/ 1266 q 1267 } 1268 s/.*/./; q'` 1269 srcdir=$ac_confdir 1270 if test ! -r "$srcdir/$ac_unique_file"; then 1271 srcdir=.. 1272 fi 1273else 1274 ac_srcdir_defaulted=no 1275fi 1276if test ! -r "$srcdir/$ac_unique_file"; then 1277 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1278 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1279fi 1280ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1281ac_abs_confdir=`( 1282 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1283 pwd)` 1284# When building in place, set srcdir=. 1285if test "$ac_abs_confdir" = "$ac_pwd"; then 1286 srcdir=. 1287fi 1288# Remove unnecessary trailing slashes from srcdir. 1289# Double slashes in file names in object file debugging info 1290# mess up M-x gdb in Emacs. 1291case $srcdir in 1292*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1293esac 1294for ac_var in $ac_precious_vars; do 1295 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1296 eval ac_env_${ac_var}_value=\$${ac_var} 1297 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1298 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1299done 1300 1301# 1302# Report the --help message. 1303# 1304if test "$ac_init_help" = "long"; then 1305 # Omit some internal or obsolete options to make the list less imposing. 1306 # This message is too long to be a string in the A/UX 3.1 sh. 1307 cat <<_ACEOF 1308\`configure' configures GCC Quad-precision Math Library 0.1 to adapt to many kinds of systems. 1309 1310Usage: $0 [OPTION]... [VAR=VALUE]... 1311 1312To assign environment variables (e.g., CC, CFLAGS...), specify them as 1313VAR=VALUE. See below for descriptions of some of the useful variables. 1314 1315Defaults for the options are specified in brackets. 1316 1317Configuration: 1318 -h, --help display this help and exit 1319 --help=short display options specific to this package 1320 --help=recursive display the short help of all the included packages 1321 -V, --version display version information and exit 1322 -q, --quiet, --silent do not print \`checking...' messages 1323 --cache-file=FILE cache test results in FILE [disabled] 1324 -C, --config-cache alias for \`--cache-file=config.cache' 1325 -n, --no-create do not create output files 1326 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1327 1328Installation directories: 1329 --prefix=PREFIX install architecture-independent files in PREFIX 1330 [$ac_default_prefix] 1331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1332 [PREFIX] 1333 1334By default, \`make install' will install all the files in 1335\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1336an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1337for instance \`--prefix=\$HOME'. 1338 1339For better control, use the options below. 1340 1341Fine tuning of the installation directories: 1342 --bindir=DIR user executables [EPREFIX/bin] 1343 --sbindir=DIR system admin executables [EPREFIX/sbin] 1344 --libexecdir=DIR program executables [EPREFIX/libexec] 1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1348 --libdir=DIR object code libraries [EPREFIX/lib] 1349 --includedir=DIR C header files [PREFIX/include] 1350 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1351 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1352 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1353 --infodir=DIR info documentation [DATAROOTDIR/info] 1354 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1355 --mandir=DIR man documentation [DATAROOTDIR/man] 1356 --docdir=DIR documentation root [DATAROOTDIR/doc/libquadmath] 1357 --htmldir=DIR html documentation [DOCDIR] 1358 --dvidir=DIR dvi documentation [DOCDIR] 1359 --pdfdir=DIR pdf documentation [DOCDIR] 1360 --psdir=DIR ps documentation [DOCDIR] 1361_ACEOF 1362 1363 cat <<\_ACEOF 1364 1365Program names: 1366 --program-prefix=PREFIX prepend PREFIX to installed program names 1367 --program-suffix=SUFFIX append SUFFIX to installed program names 1368 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1369 1370System types: 1371 --build=BUILD configure for building on BUILD [guessed] 1372 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1373 --target=TARGET configure for building compilers for TARGET [HOST] 1374_ACEOF 1375fi 1376 1377if test -n "$ac_init_help"; then 1378 case $ac_init_help in 1379 short | recursive ) echo "Configuration of GCC Quad-precision Math Library 0.1:";; 1380 esac 1381 cat <<\_ACEOF 1382 1383Optional Features: 1384 --disable-option-checking ignore unrecognized --enable/--with options 1385 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1386 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1387 --enable-multilib build many library versions (default) 1388 --enable-version-specific-runtime-libs 1389 specify that runtime libraries should be installed 1390 in a compiler-specific directory 1391 --disable-dependency-tracking speeds up one-time build 1392 --enable-dependency-tracking do not reject slow dependency extractors 1393 --enable-shared[=PKGS] build shared libraries [default=yes] 1394 --enable-static[=PKGS] build static libraries [default=yes] 1395 --enable-fast-install[=PKGS] 1396 optimize for fast installation [default=yes] 1397 --disable-libtool-lock avoid locking (might break parallel builds) 1398 --enable-maintainer-mode enable make rules and dependencies not useful 1399 (and sometimes confusing) to the casual installer 1400 --disable-symvers disable symbol versioning for libquadmath 1401 --enable-cet enable Intel CET in target libraries [default=no] 1402 --enable-generated-files-in-srcdir 1403 put copies of generated files in source dir intended 1404 for creating source tarballs for users without 1405 texinfo bison or flex 1406 1407Optional Packages: 1408 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1409 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1410 --with-bugurl=URL Direct users to URL to report a bug 1411 --with-pic try to use only PIC/non-PIC objects [default=use 1412 both] 1413 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1414 --with-gcc-major-version-only 1415 use only GCC major number in filesystem paths 1416 1417Some influential environment variables: 1418 CC C compiler command 1419 CFLAGS C compiler flags 1420 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1421 nonstandard directory <lib dir> 1422 LIBS libraries to pass to the linker, e.g. -l<library> 1423 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1424 you have headers in a nonstandard directory <include dir> 1425 CPP C preprocessor 1426 1427Use these variables to override the choices made by `configure' or to help 1428it to find libraries and programs with nonstandard names/locations. 1429 1430Report bugs to the package provider. 1431_ACEOF 1432ac_status=$? 1433fi 1434 1435if test "$ac_init_help" = "recursive"; then 1436 # If there are subdirs, report their specific --help. 1437 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1438 test -d "$ac_dir" || 1439 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1440 continue 1441 ac_builddir=. 1442 1443case "$ac_dir" in 1444.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1445*) 1446 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1447 # A ".." for each directory in $ac_dir_suffix. 1448 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1449 case $ac_top_builddir_sub in 1450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1452 esac ;; 1453esac 1454ac_abs_top_builddir=$ac_pwd 1455ac_abs_builddir=$ac_pwd$ac_dir_suffix 1456# for backward compatibility: 1457ac_top_builddir=$ac_top_build_prefix 1458 1459case $srcdir in 1460 .) # We are building in place. 1461 ac_srcdir=. 1462 ac_top_srcdir=$ac_top_builddir_sub 1463 ac_abs_top_srcdir=$ac_pwd ;; 1464 [\\/]* | ?:[\\/]* ) # Absolute name. 1465 ac_srcdir=$srcdir$ac_dir_suffix; 1466 ac_top_srcdir=$srcdir 1467 ac_abs_top_srcdir=$srcdir ;; 1468 *) # Relative name. 1469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1470 ac_top_srcdir=$ac_top_build_prefix$srcdir 1471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1472esac 1473ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1474 1475 cd "$ac_dir" || { ac_status=$?; continue; } 1476 # Check for guested configure. 1477 if test -f "$ac_srcdir/configure.gnu"; then 1478 echo && 1479 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1480 elif test -f "$ac_srcdir/configure"; then 1481 echo && 1482 $SHELL "$ac_srcdir/configure" --help=recursive 1483 else 1484 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1485 fi || ac_status=$? 1486 cd "$ac_pwd" || { ac_status=$?; break; } 1487 done 1488fi 1489 1490test -n "$ac_init_help" && exit $ac_status 1491if $ac_init_version; then 1492 cat <<\_ACEOF 1493GCC Quad-precision Math Library configure 0.1 1494generated by GNU Autoconf 2.64 1495 1496Copyright (C) 2009 Free Software Foundation, Inc. 1497This configure script is free software; the Free Software Foundation 1498gives unlimited permission to copy, distribute and modify it. 1499_ACEOF 1500 exit 1501fi 1502 1503## ------------------------ ## 1504## Autoconf initialization. ## 1505## ------------------------ ## 1506 1507# ac_fn_c_try_compile LINENO 1508# -------------------------- 1509# Try to compile conftest.$ac_ext, and return whether this succeeded. 1510ac_fn_c_try_compile () 1511{ 1512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1513 rm -f conftest.$ac_objext 1514 if { { ac_try="$ac_compile" 1515case "(($ac_try" in 1516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1517 *) ac_try_echo=$ac_try;; 1518esac 1519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1520$as_echo "$ac_try_echo"; } >&5 1521 (eval "$ac_compile") 2>conftest.err 1522 ac_status=$? 1523 if test -s conftest.err; then 1524 grep -v '^ *+' conftest.err >conftest.er1 1525 cat conftest.er1 >&5 1526 mv -f conftest.er1 conftest.err 1527 fi 1528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1529 test $ac_status = 0; } && { 1530 test -z "$ac_c_werror_flag" || 1531 test ! -s conftest.err 1532 } && test -s conftest.$ac_objext; then : 1533 ac_retval=0 1534else 1535 $as_echo "$as_me: failed program was:" >&5 1536sed 's/^/| /' conftest.$ac_ext >&5 1537 1538 ac_retval=1 1539fi 1540 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1541 return $ac_retval 1542 1543} # ac_fn_c_try_compile 1544 1545# ac_fn_c_try_cpp LINENO 1546# ---------------------- 1547# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1548ac_fn_c_try_cpp () 1549{ 1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1551 if { { ac_try="$ac_cpp conftest.$ac_ext" 1552case "(($ac_try" in 1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1554 *) ac_try_echo=$ac_try;; 1555esac 1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1557$as_echo "$ac_try_echo"; } >&5 1558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1559 ac_status=$? 1560 if test -s conftest.err; then 1561 grep -v '^ *+' conftest.err >conftest.er1 1562 cat conftest.er1 >&5 1563 mv -f conftest.er1 conftest.err 1564 fi 1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1566 test $ac_status = 0; } >/dev/null && { 1567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1568 test ! -s conftest.err 1569 }; then : 1570 ac_retval=0 1571else 1572 $as_echo "$as_me: failed program was:" >&5 1573sed 's/^/| /' conftest.$ac_ext >&5 1574 1575 ac_retval=1 1576fi 1577 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1578 return $ac_retval 1579 1580} # ac_fn_c_try_cpp 1581 1582# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1583# ------------------------------------------------------- 1584# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1585# the include files in INCLUDES and setting the cache variable VAR 1586# accordingly. 1587ac_fn_c_check_header_mongrel () 1588{ 1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1590 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1592$as_echo_n "checking for $2... " >&6; } 1593if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1594 $as_echo_n "(cached) " >&6 1595fi 1596eval ac_res=\$$3 1597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1598$as_echo "$ac_res" >&6; } 1599else 1600 # Is the header compilable? 1601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1602$as_echo_n "checking $2 usability... " >&6; } 1603cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1604/* end confdefs.h. */ 1605$4 1606#include <$2> 1607_ACEOF 1608if ac_fn_c_try_compile "$LINENO"; then : 1609 ac_header_compiler=yes 1610else 1611 ac_header_compiler=no 1612fi 1613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1615$as_echo "$ac_header_compiler" >&6; } 1616 1617# Is the header present? 1618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1619$as_echo_n "checking $2 presence... " >&6; } 1620cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1621/* end confdefs.h. */ 1622#include <$2> 1623_ACEOF 1624if ac_fn_c_try_cpp "$LINENO"; then : 1625 ac_header_preproc=yes 1626else 1627 ac_header_preproc=no 1628fi 1629rm -f conftest.err conftest.$ac_ext 1630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1631$as_echo "$ac_header_preproc" >&6; } 1632 1633# So? What about this header? 1634case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1635 yes:no: ) 1636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1637$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1639$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1640 ;; 1641 no:yes:* ) 1642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1643$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1645$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1647$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1649$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1651$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1652 ;; 1653esac 1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1655$as_echo_n "checking for $2... " >&6; } 1656if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1657 $as_echo_n "(cached) " >&6 1658else 1659 eval "$3=\$ac_header_compiler" 1660fi 1661eval ac_res=\$$3 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1663$as_echo "$ac_res" >&6; } 1664fi 1665 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1666 1667} # ac_fn_c_check_header_mongrel 1668 1669# ac_fn_c_try_run LINENO 1670# ---------------------- 1671# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1672# that executables *can* be run. 1673ac_fn_c_try_run () 1674{ 1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1676 if { { ac_try="$ac_link" 1677case "(($ac_try" in 1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1679 *) ac_try_echo=$ac_try;; 1680esac 1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1682$as_echo "$ac_try_echo"; } >&5 1683 (eval "$ac_link") 2>&5 1684 ac_status=$? 1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1686 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1687 { { case "(($ac_try" in 1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1689 *) ac_try_echo=$ac_try;; 1690esac 1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1692$as_echo "$ac_try_echo"; } >&5 1693 (eval "$ac_try") 2>&5 1694 ac_status=$? 1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1696 test $ac_status = 0; }; }; then : 1697 ac_retval=0 1698else 1699 $as_echo "$as_me: program exited with status $ac_status" >&5 1700 $as_echo "$as_me: failed program was:" >&5 1701sed 's/^/| /' conftest.$ac_ext >&5 1702 1703 ac_retval=$ac_status 1704fi 1705 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1707 return $ac_retval 1708 1709} # ac_fn_c_try_run 1710 1711# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1712# ------------------------------------------------------- 1713# Tests whether HEADER exists and can be compiled using the include files in 1714# INCLUDES, setting the cache variable VAR accordingly. 1715ac_fn_c_check_header_compile () 1716{ 1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1719$as_echo_n "checking for $2... " >&6; } 1720if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1721 $as_echo_n "(cached) " >&6 1722else 1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1724/* end confdefs.h. */ 1725$4 1726#include <$2> 1727_ACEOF 1728if ac_fn_c_try_compile "$LINENO"; then : 1729 eval "$3=yes" 1730else 1731 eval "$3=no" 1732fi 1733rm -f core conftest.err conftest.$ac_objext 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_header_compile 1741 1742# ac_fn_c_try_link LINENO 1743# ----------------------- 1744# Try to link conftest.$ac_ext, and return whether this succeeded. 1745ac_fn_c_try_link () 1746{ 1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1748 rm -f conftest.$ac_objext conftest$ac_exeext 1749 if { { ac_try="$ac_link" 1750case "(($ac_try" in 1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1752 *) ac_try_echo=$ac_try;; 1753esac 1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1755$as_echo "$ac_try_echo"; } >&5 1756 (eval "$ac_link") 2>conftest.err 1757 ac_status=$? 1758 if test -s conftest.err; then 1759 grep -v '^ *+' conftest.err >conftest.er1 1760 cat conftest.er1 >&5 1761 mv -f conftest.er1 conftest.err 1762 fi 1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1764 test $ac_status = 0; } && { 1765 test -z "$ac_c_werror_flag" || 1766 test ! -s conftest.err 1767 } && test -s conftest$ac_exeext && { 1768 test "$cross_compiling" = yes || 1769 $as_test_x conftest$ac_exeext 1770 }; then : 1771 ac_retval=0 1772else 1773 $as_echo "$as_me: failed program was:" >&5 1774sed 's/^/| /' conftest.$ac_ext >&5 1775 1776 ac_retval=1 1777fi 1778 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1779 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1780 # interfere with the next link command; also delete a directory that is 1781 # left behind by Apple's compiler. We do this before executing the actions. 1782 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1783 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1784 return $ac_retval 1785 1786} # ac_fn_c_try_link 1787 1788# ac_fn_c_check_func LINENO FUNC VAR 1789# ---------------------------------- 1790# Tests whether FUNC exists, setting the cache variable VAR accordingly 1791ac_fn_c_check_func () 1792{ 1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1795$as_echo_n "checking for $2... " >&6; } 1796if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1797 $as_echo_n "(cached) " >&6 1798else 1799 if test x$gcc_no_link = xyes; then 1800 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 1801fi 1802cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1803/* end confdefs.h. */ 1804/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1805 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1806#define $2 innocuous_$2 1807 1808/* System header to define __stub macros and hopefully few prototypes, 1809 which can conflict with char $2 (); below. 1810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1811 <limits.h> exists even on freestanding compilers. */ 1812 1813#ifdef __STDC__ 1814# include <limits.h> 1815#else 1816# include <assert.h> 1817#endif 1818 1819#undef $2 1820 1821/* Override any GCC internal prototype to avoid an error. 1822 Use char because int might match the return type of a GCC 1823 builtin and then its argument prototype would still apply. */ 1824#ifdef __cplusplus 1825extern "C" 1826#endif 1827char $2 (); 1828/* The GNU C library defines this for functions which it implements 1829 to always fail with ENOSYS. Some functions are actually named 1830 something starting with __ and the normal name is an alias. */ 1831#if defined __stub_$2 || defined __stub___$2 1832choke me 1833#endif 1834 1835int 1836main () 1837{ 1838return $2 (); 1839 ; 1840 return 0; 1841} 1842_ACEOF 1843if ac_fn_c_try_link "$LINENO"; then : 1844 eval "$3=yes" 1845else 1846 eval "$3=no" 1847fi 1848rm -f core conftest.err conftest.$ac_objext \ 1849 conftest$ac_exeext conftest.$ac_ext 1850fi 1851eval ac_res=\$$3 1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1853$as_echo "$ac_res" >&6; } 1854 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1855 1856} # ac_fn_c_check_func 1857cat >config.log <<_ACEOF 1858This file contains any messages produced by compilers while 1859running configure, to aid debugging if configure makes a mistake. 1860 1861It was created by GCC Quad-precision Math Library $as_me 0.1, which was 1862generated by GNU Autoconf 2.64. Invocation command line was 1863 1864 $ $0 $@ 1865 1866_ACEOF 1867exec 5>>config.log 1868{ 1869cat <<_ASUNAME 1870## --------- ## 1871## Platform. ## 1872## --------- ## 1873 1874hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1875uname -m = `(uname -m) 2>/dev/null || echo unknown` 1876uname -r = `(uname -r) 2>/dev/null || echo unknown` 1877uname -s = `(uname -s) 2>/dev/null || echo unknown` 1878uname -v = `(uname -v) 2>/dev/null || echo unknown` 1879 1880/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1881/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1882 1883/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1884/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1885/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1886/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1887/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1888/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1889/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1890 1891_ASUNAME 1892 1893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1894for as_dir in $PATH 1895do 1896 IFS=$as_save_IFS 1897 test -z "$as_dir" && as_dir=. 1898 $as_echo "PATH: $as_dir" 1899 done 1900IFS=$as_save_IFS 1901 1902} >&5 1903 1904cat >&5 <<_ACEOF 1905 1906 1907## ----------- ## 1908## Core tests. ## 1909## ----------- ## 1910 1911_ACEOF 1912 1913 1914# Keep a trace of the command line. 1915# Strip out --no-create and --no-recursion so they do not pile up. 1916# Strip out --silent because we don't want to record it for future runs. 1917# Also quote any args containing shell meta-characters. 1918# Make two passes to allow for proper duplicate-argument suppression. 1919ac_configure_args= 1920ac_configure_args0= 1921ac_configure_args1= 1922ac_must_keep_next=false 1923for ac_pass in 1 2 1924do 1925 for ac_arg 1926 do 1927 case $ac_arg in 1928 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1929 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1930 | -silent | --silent | --silen | --sile | --sil) 1931 continue ;; 1932 *\'*) 1933 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1934 esac 1935 case $ac_pass in 1936 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1937 2) 1938 as_fn_append ac_configure_args1 " '$ac_arg'" 1939 if test $ac_must_keep_next = true; then 1940 ac_must_keep_next=false # Got value, back to normal. 1941 else 1942 case $ac_arg in 1943 *=* | --config-cache | -C | -disable-* | --disable-* \ 1944 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1945 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1946 | -with-* | --with-* | -without-* | --without-* | --x) 1947 case "$ac_configure_args0 " in 1948 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1949 esac 1950 ;; 1951 -* ) ac_must_keep_next=true ;; 1952 esac 1953 fi 1954 as_fn_append ac_configure_args " '$ac_arg'" 1955 ;; 1956 esac 1957 done 1958done 1959{ ac_configure_args0=; unset ac_configure_args0;} 1960{ ac_configure_args1=; unset ac_configure_args1;} 1961 1962# When interrupted or exit'd, cleanup temporary files, and complete 1963# config.log. We remove comments because anyway the quotes in there 1964# would cause problems or look ugly. 1965# WARNING: Use '\'' to represent an apostrophe within the trap. 1966# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1967trap 'exit_status=$? 1968 # Save into config.log some information that might help in debugging. 1969 { 1970 echo 1971 1972 cat <<\_ASBOX 1973## ---------------- ## 1974## Cache variables. ## 1975## ---------------- ## 1976_ASBOX 1977 echo 1978 # The following way of writing the cache mishandles newlines in values, 1979( 1980 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1981 eval ac_val=\$$ac_var 1982 case $ac_val in #( 1983 *${as_nl}*) 1984 case $ac_var in #( 1985 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1986$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1987 esac 1988 case $ac_var in #( 1989 _ | IFS | as_nl) ;; #( 1990 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1991 *) { eval $ac_var=; unset $ac_var;} ;; 1992 esac ;; 1993 esac 1994 done 1995 (set) 2>&1 | 1996 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1997 *${as_nl}ac_space=\ *) 1998 sed -n \ 1999 "s/'\''/'\''\\\\'\'''\''/g; 2000 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2001 ;; #( 2002 *) 2003 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2004 ;; 2005 esac | 2006 sort 2007) 2008 echo 2009 2010 cat <<\_ASBOX 2011## ----------------- ## 2012## Output variables. ## 2013## ----------------- ## 2014_ASBOX 2015 echo 2016 for ac_var in $ac_subst_vars 2017 do 2018 eval ac_val=\$$ac_var 2019 case $ac_val in 2020 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2021 esac 2022 $as_echo "$ac_var='\''$ac_val'\''" 2023 done | sort 2024 echo 2025 2026 if test -n "$ac_subst_files"; then 2027 cat <<\_ASBOX 2028## ------------------- ## 2029## File substitutions. ## 2030## ------------------- ## 2031_ASBOX 2032 echo 2033 for ac_var in $ac_subst_files 2034 do 2035 eval ac_val=\$$ac_var 2036 case $ac_val in 2037 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2038 esac 2039 $as_echo "$ac_var='\''$ac_val'\''" 2040 done | sort 2041 echo 2042 fi 2043 2044 if test -s confdefs.h; then 2045 cat <<\_ASBOX 2046## ----------- ## 2047## confdefs.h. ## 2048## ----------- ## 2049_ASBOX 2050 echo 2051 cat confdefs.h 2052 echo 2053 fi 2054 test "$ac_signal" != 0 && 2055 $as_echo "$as_me: caught signal $ac_signal" 2056 $as_echo "$as_me: exit $exit_status" 2057 } >&5 2058 rm -f core *.core core.conftest.* && 2059 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2060 exit $exit_status 2061' 0 2062for ac_signal in 1 2 13 15; do 2063 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2064done 2065ac_signal=0 2066 2067# confdefs.h avoids OS command line length limits that DEFS can exceed. 2068rm -f -r conftest* confdefs.h 2069 2070$as_echo "/* confdefs.h */" > confdefs.h 2071 2072# Predefined preprocessor variables. 2073 2074cat >>confdefs.h <<_ACEOF 2075#define PACKAGE_NAME "$PACKAGE_NAME" 2076_ACEOF 2077 2078cat >>confdefs.h <<_ACEOF 2079#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2080_ACEOF 2081 2082cat >>confdefs.h <<_ACEOF 2083#define PACKAGE_VERSION "$PACKAGE_VERSION" 2084_ACEOF 2085 2086cat >>confdefs.h <<_ACEOF 2087#define PACKAGE_STRING "$PACKAGE_STRING" 2088_ACEOF 2089 2090cat >>confdefs.h <<_ACEOF 2091#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2092_ACEOF 2093 2094cat >>confdefs.h <<_ACEOF 2095#define PACKAGE_URL "$PACKAGE_URL" 2096_ACEOF 2097 2098 2099# Let the site file select an alternate cache file if it wants to. 2100# Prefer an explicitly selected file to automatically selected ones. 2101ac_site_file1=NONE 2102ac_site_file2=NONE 2103if test -n "$CONFIG_SITE"; then 2104 ac_site_file1=$CONFIG_SITE 2105elif test "x$prefix" != xNONE; then 2106 ac_site_file1=$prefix/share/config.site 2107 ac_site_file2=$prefix/etc/config.site 2108else 2109 ac_site_file1=$ac_default_prefix/share/config.site 2110 ac_site_file2=$ac_default_prefix/etc/config.site 2111fi 2112for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2113do 2114 test "x$ac_site_file" = xNONE && continue 2115 if test -r "$ac_site_file"; then 2116 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2117$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2118 sed 's/^/| /' "$ac_site_file" >&5 2119 . "$ac_site_file" 2120 fi 2121done 2122 2123if test -r "$cache_file"; then 2124 # Some versions of bash will fail to source /dev/null (special 2125 # files actually), so we avoid doing that. 2126 if test -f "$cache_file"; then 2127 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2128$as_echo "$as_me: loading cache $cache_file" >&6;} 2129 case $cache_file in 2130 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2131 *) . "./$cache_file";; 2132 esac 2133 fi 2134else 2135 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2136$as_echo "$as_me: creating cache $cache_file" >&6;} 2137 >$cache_file 2138fi 2139 2140# Check that the precious variables saved in the cache have kept the same 2141# value. 2142ac_cache_corrupted=false 2143for ac_var in $ac_precious_vars; do 2144 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2145 eval ac_new_set=\$ac_env_${ac_var}_set 2146 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2147 eval ac_new_val=\$ac_env_${ac_var}_value 2148 case $ac_old_set,$ac_new_set in 2149 set,) 2150 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2151$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2152 ac_cache_corrupted=: ;; 2153 ,set) 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2155$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2156 ac_cache_corrupted=: ;; 2157 ,);; 2158 *) 2159 if test "x$ac_old_val" != "x$ac_new_val"; then 2160 # differences in whitespace do not lead to failure. 2161 ac_old_val_w=`echo x $ac_old_val` 2162 ac_new_val_w=`echo x $ac_new_val` 2163 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2165$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2166 ac_cache_corrupted=: 2167 else 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2169$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2170 eval $ac_var=\$ac_old_val 2171 fi 2172 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2173$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2174 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2175$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2176 fi;; 2177 esac 2178 # Pass precious variables to config.status. 2179 if test "$ac_new_set" = set; then 2180 case $ac_new_val in 2181 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2182 *) ac_arg=$ac_var=$ac_new_val ;; 2183 esac 2184 case " $ac_configure_args " in 2185 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2186 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2187 esac 2188 fi 2189done 2190if $ac_cache_corrupted; then 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2194$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2195 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2196fi 2197## -------------------- ## 2198## Main body of script. ## 2199## -------------------- ## 2200 2201ac_ext=c 2202ac_cpp='$CPP $CPPFLAGS' 2203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2205ac_compiler_gnu=$ac_cv_c_compiler_gnu 2206 2207 2208 2209 2210 2211ac_config_headers="$ac_config_headers config.h" 2212 2213 2214# Gets build, host, target, *_vendor, *_cpu, *_os, etc. 2215# 2216# You will slowly go insane if you do not grok the following fact: when 2217# building this library, the top-level /target/ becomes the library's /host/. 2218# 2219# configure then causes --target to default to --host, exactly like any 2220# other package using autoconf. Therefore, 'target' and 'host' will 2221# always be the same. This makes sense both for native and cross compilers 2222# just think about it for a little while. :-) 2223# 2224# Also, if this library is being configured as part of a cross compiler, the 2225# top-level configure script will pass the "real" host as $with_cross_host. 2226# 2227# Do not delete or change the following two lines. For why, see 2228# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html 2229ac_aux_dir= 2230for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2231 for ac_t in install-sh install.sh shtool; do 2232 if test -f "$ac_dir/$ac_t"; then 2233 ac_aux_dir=$ac_dir 2234 ac_install_sh="$ac_aux_dir/$ac_t -c" 2235 break 2 2236 fi 2237 done 2238done 2239if test -z "$ac_aux_dir"; then 2240 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2241fi 2242 2243# These three variables are undocumented and unsupported, 2244# and are intended to be withdrawn in a future Autoconf release. 2245# They can cause serious problems if a builder's source tree is in a directory 2246# whose full name contains unusual characters. 2247ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2248ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2249ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2250 2251 2252# Make sure we can run config.sub. 2253$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2254 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2255 2256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2257$as_echo_n "checking build system type... " >&6; } 2258if test "${ac_cv_build+set}" = set; then : 2259 $as_echo_n "(cached) " >&6 2260else 2261 ac_build_alias=$build_alias 2262test "x$ac_build_alias" = x && 2263 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2264test "x$ac_build_alias" = x && 2265 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2266ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2267 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2268 2269fi 2270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2271$as_echo "$ac_cv_build" >&6; } 2272case $ac_cv_build in 2273*-*-*) ;; 2274*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2275esac 2276build=$ac_cv_build 2277ac_save_IFS=$IFS; IFS='-' 2278set x $ac_cv_build 2279shift 2280build_cpu=$1 2281build_vendor=$2 2282shift; shift 2283# Remember, the first character of IFS is used to create $*, 2284# except with old shells: 2285build_os=$* 2286IFS=$ac_save_IFS 2287case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2288 2289 2290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2291$as_echo_n "checking host system type... " >&6; } 2292if test "${ac_cv_host+set}" = set; then : 2293 $as_echo_n "(cached) " >&6 2294else 2295 if test "x$host_alias" = x; then 2296 ac_cv_host=$ac_cv_build 2297else 2298 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2299 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2300fi 2301 2302fi 2303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2304$as_echo "$ac_cv_host" >&6; } 2305case $ac_cv_host in 2306*-*-*) ;; 2307*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2308esac 2309host=$ac_cv_host 2310ac_save_IFS=$IFS; IFS='-' 2311set x $ac_cv_host 2312shift 2313host_cpu=$1 2314host_vendor=$2 2315shift; shift 2316# Remember, the first character of IFS is used to create $*, 2317# except with old shells: 2318host_os=$* 2319IFS=$ac_save_IFS 2320case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2321 2322 2323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2324$as_echo_n "checking target system type... " >&6; } 2325if test "${ac_cv_target+set}" = set; then : 2326 $as_echo_n "(cached) " >&6 2327else 2328 if test "x$target_alias" = x; then 2329 ac_cv_target=$ac_cv_host 2330else 2331 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2332 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2333fi 2334 2335fi 2336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2337$as_echo "$ac_cv_target" >&6; } 2338case $ac_cv_target in 2339*-*-*) ;; 2340*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2341esac 2342target=$ac_cv_target 2343ac_save_IFS=$IFS; IFS='-' 2344set x $ac_cv_target 2345shift 2346target_cpu=$1 2347target_vendor=$2 2348shift; shift 2349# Remember, the first character of IFS is used to create $*, 2350# except with old shells: 2351target_os=$* 2352IFS=$ac_save_IFS 2353case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2354 2355 2356# The aliases save the names the user supplied, while $host etc. 2357# will get canonicalized. 2358test -n "$target_alias" && 2359 test "$program_prefix$program_suffix$program_transform_name" = \ 2360 NONENONEs,x,x, && 2361 program_prefix=${target_alias}- 2362 2363 case ${build_alias} in 2364 "") build_noncanonical=${build} ;; 2365 *) build_noncanonical=${build_alias} ;; 2366esac 2367 2368 case ${host_alias} in 2369 "") host_noncanonical=${build_noncanonical} ;; 2370 *) host_noncanonical=${host_alias} ;; 2371esac 2372 2373 case ${target_alias} in 2374 "") target_noncanonical=${host_noncanonical} ;; 2375 *) target_noncanonical=${target_alias} ;; 2376esac 2377 2378 2379 2380 2381# Default to --enable-multilib 2382# Check whether --enable-multilib was given. 2383if test "${enable_multilib+set}" = set; then : 2384 enableval=$enable_multilib; case "$enableval" in 2385 yes) multilib=yes ;; 2386 no) multilib=no ;; 2387 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;; 2388 esac 2389else 2390 multilib=yes 2391fi 2392 2393 2394# We may get other options which we leave undocumented: 2395# --with-target-subdir, --with-multisrctop, --with-multisubdir 2396# See config-ml.in if you want the gory details. 2397 2398if test "$srcdir" = "."; then 2399 if test "$with_target_subdir" != "."; then 2400 multi_basedir="$srcdir/$with_multisrctop../.." 2401 else 2402 multi_basedir="$srcdir/$with_multisrctop.." 2403 fi 2404else 2405 multi_basedir="$srcdir/.." 2406fi 2407 2408 2409# Even if the default multilib is not a cross compilation, 2410# it may be that some of the other multilibs are. 2411if test $cross_compiling = no && test $multilib = yes \ 2412 && test "x${with_multisubdir}" != x ; then 2413 cross_compiling=maybe 2414fi 2415 2416ac_config_commands="$ac_config_commands default-1" 2417 2418 2419target_alias=${target_alias-$host_alias} 2420 2421 2422am__api_version='1.11' 2423 2424# Find a good install program. We prefer a C program (faster), 2425# so one script is as good as another. But avoid the broken or 2426# incompatible versions: 2427# SysV /etc/install, /usr/sbin/install 2428# SunOS /usr/etc/install 2429# IRIX /sbin/install 2430# AIX /bin/install 2431# AmigaOS /C/install, which installs bootblocks on floppy discs 2432# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2433# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2434# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2435# OS/2's system install, which has a completely different semantic 2436# ./install, which can be erroneously created by make from ./install.sh. 2437# Reject install programs that cannot install multiple files. 2438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2439$as_echo_n "checking for a BSD-compatible install... " >&6; } 2440if test -z "$INSTALL"; then 2441if test "${ac_cv_path_install+set}" = set; then : 2442 $as_echo_n "(cached) " >&6 2443else 2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2445for as_dir in $PATH 2446do 2447 IFS=$as_save_IFS 2448 test -z "$as_dir" && as_dir=. 2449 # Account for people who put trailing slashes in PATH elements. 2450case $as_dir/ in #(( 2451 ./ | .// | /[cC]/* | \ 2452 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2453 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2454 /usr/ucb/* ) ;; 2455 *) 2456 # OSF1 and SCO ODT 3.0 have their own names for install. 2457 # Don't use installbsd from OSF since it installs stuff as root 2458 # by default. 2459 for ac_prog in ginstall scoinst install; do 2460 for ac_exec_ext in '' $ac_executable_extensions; do 2461 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2462 if test $ac_prog = install && 2463 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2464 # AIX install. It has an incompatible calling convention. 2465 : 2466 elif test $ac_prog = install && 2467 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2468 # program-specific install script used by HP pwplus--don't use. 2469 : 2470 else 2471 rm -rf conftest.one conftest.two conftest.dir 2472 echo one > conftest.one 2473 echo two > conftest.two 2474 mkdir conftest.dir 2475 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2476 test -s conftest.one && test -s conftest.two && 2477 test -s conftest.dir/conftest.one && 2478 test -s conftest.dir/conftest.two 2479 then 2480 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2481 break 3 2482 fi 2483 fi 2484 fi 2485 done 2486 done 2487 ;; 2488esac 2489 2490 done 2491IFS=$as_save_IFS 2492 2493rm -rf conftest.one conftest.two conftest.dir 2494 2495fi 2496 if test "${ac_cv_path_install+set}" = set; then 2497 INSTALL=$ac_cv_path_install 2498 else 2499 # As a last resort, use the slow shell script. Don't cache a 2500 # value for INSTALL within a source directory, because that will 2501 # break other packages using the cache if that directory is 2502 # removed, or if the value is a relative name. 2503 INSTALL=$ac_install_sh 2504 fi 2505fi 2506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2507$as_echo "$INSTALL" >&6; } 2508 2509# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2510# It thinks the first close brace ends the variable substitution. 2511test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2512 2513test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2514 2515test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2516 2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2518$as_echo_n "checking whether build environment is sane... " >&6; } 2519# Just in case 2520sleep 1 2521echo timestamp > conftest.file 2522# Reject unsafe characters in $srcdir or the absolute working directory 2523# name. Accept space and tab only in the latter. 2524am_lf=' 2525' 2526case `pwd` in 2527 *[\\\"\#\$\&\'\`$am_lf]*) 2528 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2529esac 2530case $srcdir in 2531 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2532 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2533esac 2534 2535# Do `set' in a subshell so we don't clobber the current shell's 2536# arguments. Must try -L first in case configure is actually a 2537# symlink; some systems play weird games with the mod time of symlinks 2538# (eg FreeBSD returns the mod time of the symlink's containing 2539# directory). 2540if ( 2541 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2542 if test "$*" = "X"; then 2543 # -L didn't work. 2544 set X `ls -t "$srcdir/configure" conftest.file` 2545 fi 2546 rm -f conftest.file 2547 if test "$*" != "X $srcdir/configure conftest.file" \ 2548 && test "$*" != "X conftest.file $srcdir/configure"; then 2549 2550 # If neither matched, then we have a broken ls. This can happen 2551 # if, for instance, CONFIG_SHELL is bash and it inherits a 2552 # broken ls alias from the environment. This has actually 2553 # happened. Such a system could not be considered "sane". 2554 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2555alias in your environment" "$LINENO" 5 2556 fi 2557 2558 test "$2" = conftest.file 2559 ) 2560then 2561 # Ok. 2562 : 2563else 2564 as_fn_error "newly created file is older than distributed files! 2565Check your system clock" "$LINENO" 5 2566fi 2567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2568$as_echo "yes" >&6; } 2569test "$program_prefix" != NONE && 2570 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2571# Use a double $ so make ignores it. 2572test "$program_suffix" != NONE && 2573 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2574# Double any \ or $. 2575# By default was `s,x,x', remove it if useless. 2576ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2577program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2578 2579# expand $ac_aux_dir to an absolute path 2580am_aux_dir=`cd $ac_aux_dir && pwd` 2581 2582if test x"${MISSING+set}" != xset; then 2583 case $am_aux_dir in 2584 *\ * | *\ *) 2585 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2586 *) 2587 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2588 esac 2589fi 2590# Use eval to expand $SHELL 2591if eval "$MISSING --run true"; then 2592 am_missing_run="$MISSING --run " 2593else 2594 am_missing_run= 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2596$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2597fi 2598 2599if test x"${install_sh}" != xset; then 2600 case $am_aux_dir in 2601 *\ * | *\ *) 2602 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2603 *) 2604 install_sh="\${SHELL} $am_aux_dir/install-sh" 2605 esac 2606fi 2607 2608# Installed binaries are usually stripped using `strip' when the user 2609# run `make install-strip'. However `strip' might not be the right 2610# tool to use in cross-compilation environments, therefore Automake 2611# will honor the `STRIP' environment variable to overrule this program. 2612if test "$cross_compiling" != no; then 2613 if test -n "$ac_tool_prefix"; then 2614 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2615set dummy ${ac_tool_prefix}strip; ac_word=$2 2616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2617$as_echo_n "checking for $ac_word... " >&6; } 2618if test "${ac_cv_prog_STRIP+set}" = set; then : 2619 $as_echo_n "(cached) " >&6 2620else 2621 if test -n "$STRIP"; then 2622 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2623else 2624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2625for as_dir in $PATH 2626do 2627 IFS=$as_save_IFS 2628 test -z "$as_dir" && as_dir=. 2629 for ac_exec_ext in '' $ac_executable_extensions; do 2630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2631 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2633 break 2 2634 fi 2635done 2636 done 2637IFS=$as_save_IFS 2638 2639fi 2640fi 2641STRIP=$ac_cv_prog_STRIP 2642if test -n "$STRIP"; then 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2644$as_echo "$STRIP" >&6; } 2645else 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2647$as_echo "no" >&6; } 2648fi 2649 2650 2651fi 2652if test -z "$ac_cv_prog_STRIP"; then 2653 ac_ct_STRIP=$STRIP 2654 # Extract the first word of "strip", so it can be a program name with args. 2655set dummy strip; ac_word=$2 2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2657$as_echo_n "checking for $ac_word... " >&6; } 2658if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2659 $as_echo_n "(cached) " >&6 2660else 2661 if test -n "$ac_ct_STRIP"; then 2662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2663else 2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2665for as_dir in $PATH 2666do 2667 IFS=$as_save_IFS 2668 test -z "$as_dir" && as_dir=. 2669 for ac_exec_ext in '' $ac_executable_extensions; do 2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2671 ac_cv_prog_ac_ct_STRIP="strip" 2672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2673 break 2 2674 fi 2675done 2676 done 2677IFS=$as_save_IFS 2678 2679fi 2680fi 2681ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2682if test -n "$ac_ct_STRIP"; then 2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2684$as_echo "$ac_ct_STRIP" >&6; } 2685else 2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2687$as_echo "no" >&6; } 2688fi 2689 2690 if test "x$ac_ct_STRIP" = x; then 2691 STRIP=":" 2692 else 2693 case $cross_compiling:$ac_tool_warned in 2694yes:) 2695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2697ac_tool_warned=yes ;; 2698esac 2699 STRIP=$ac_ct_STRIP 2700 fi 2701else 2702 STRIP="$ac_cv_prog_STRIP" 2703fi 2704 2705fi 2706INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2707 2708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2709$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2710if test -z "$MKDIR_P"; then 2711 if test "${ac_cv_path_mkdir+set}" = set; then : 2712 $as_echo_n "(cached) " >&6 2713else 2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2715for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2716do 2717 IFS=$as_save_IFS 2718 test -z "$as_dir" && as_dir=. 2719 for ac_prog in mkdir gmkdir; do 2720 for ac_exec_ext in '' $ac_executable_extensions; do 2721 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2722 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2723 'mkdir (GNU coreutils) '* | \ 2724 'mkdir (coreutils) '* | \ 2725 'mkdir (fileutils) '4.1*) 2726 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2727 break 3;; 2728 esac 2729 done 2730 done 2731 done 2732IFS=$as_save_IFS 2733 2734fi 2735 2736 if test "${ac_cv_path_mkdir+set}" = set; then 2737 MKDIR_P="$ac_cv_path_mkdir -p" 2738 else 2739 # As a last resort, use the slow shell script. Don't cache a 2740 # value for MKDIR_P within a source directory, because that will 2741 # break other packages using the cache if that directory is 2742 # removed, or if the value is a relative name. 2743 test -d ./--version && rmdir ./--version 2744 MKDIR_P="$ac_install_sh -d" 2745 fi 2746fi 2747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2748$as_echo "$MKDIR_P" >&6; } 2749 2750mkdir_p="$MKDIR_P" 2751case $mkdir_p in 2752 [\\/$]* | ?:[\\/]*) ;; 2753 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2754esac 2755 2756for ac_prog in gawk mawk nawk awk 2757do 2758 # Extract the first word of "$ac_prog", so it can be a program name with args. 2759set dummy $ac_prog; ac_word=$2 2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2761$as_echo_n "checking for $ac_word... " >&6; } 2762if test "${ac_cv_prog_AWK+set}" = set; then : 2763 $as_echo_n "(cached) " >&6 2764else 2765 if test -n "$AWK"; then 2766 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2767else 2768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2769for as_dir in $PATH 2770do 2771 IFS=$as_save_IFS 2772 test -z "$as_dir" && as_dir=. 2773 for ac_exec_ext in '' $ac_executable_extensions; do 2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2775 ac_cv_prog_AWK="$ac_prog" 2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2777 break 2 2778 fi 2779done 2780 done 2781IFS=$as_save_IFS 2782 2783fi 2784fi 2785AWK=$ac_cv_prog_AWK 2786if test -n "$AWK"; then 2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2788$as_echo "$AWK" >&6; } 2789else 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2791$as_echo "no" >&6; } 2792fi 2793 2794 2795 test -n "$AWK" && break 2796done 2797 2798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2799$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2800set x ${MAKE-make} 2801ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2802if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2803 $as_echo_n "(cached) " >&6 2804else 2805 cat >conftest.make <<\_ACEOF 2806SHELL = /bin/sh 2807all: 2808 @echo '@@@%%%=$(MAKE)=@@@%%%' 2809_ACEOF 2810# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2811case `${MAKE-make} -f conftest.make 2>/dev/null` in 2812 *@@@%%%=?*=@@@%%%*) 2813 eval ac_cv_prog_make_${ac_make}_set=yes;; 2814 *) 2815 eval ac_cv_prog_make_${ac_make}_set=no;; 2816esac 2817rm -f conftest.make 2818fi 2819if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2821$as_echo "yes" >&6; } 2822 SET_MAKE= 2823else 2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2825$as_echo "no" >&6; } 2826 SET_MAKE="MAKE=${MAKE-make}" 2827fi 2828 2829rm -rf .tst 2>/dev/null 2830mkdir .tst 2>/dev/null 2831if test -d .tst; then 2832 am__leading_dot=. 2833else 2834 am__leading_dot=_ 2835fi 2836rmdir .tst 2>/dev/null 2837 2838if test "`cd $srcdir && pwd`" != "`pwd`"; then 2839 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2840 # is not polluted with repeated "-I." 2841 am__isrc=' -I$(srcdir)' 2842 # test to see if srcdir already configured 2843 if test -f $srcdir/config.status; then 2844 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2845 fi 2846fi 2847 2848# test whether we have cygpath 2849if test -z "$CYGPATH_W"; then 2850 if (cygpath --version) >/dev/null 2>/dev/null; then 2851 CYGPATH_W='cygpath -w' 2852 else 2853 CYGPATH_W=echo 2854 fi 2855fi 2856 2857 2858# Define the identity of the package. 2859 PACKAGE='libquadmath' 2860 VERSION='0.1' 2861 2862 2863cat >>confdefs.h <<_ACEOF 2864#define PACKAGE "$PACKAGE" 2865_ACEOF 2866 2867 2868cat >>confdefs.h <<_ACEOF 2869#define VERSION "$VERSION" 2870_ACEOF 2871 2872# Some tools Automake needs. 2873 2874ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2875 2876 2877AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2878 2879 2880AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2881 2882 2883AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2884 2885 2886MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2887 2888# We need awk for the "check" target. The system "awk" is bad on 2889# some platforms. 2890# Always define AMTAR for backward compatibility. Yes, it's still used 2891# in the wild :-( We should find a proper way to deprecate it ... 2892AMTAR='$${TAR-tar}' 2893 2894am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2895 2896 2897 2898 2899 2900 2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 2902$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } 2903# Check whether --enable-version-specific-runtime-libs was given. 2904if test "${enable_version_specific_runtime_libs+set}" = set; then : 2905 enableval=$enable_version_specific_runtime_libs; case "$enableval" in 2906 yes) version_specific_libs=yes ;; 2907 no) version_specific_libs=no ;; 2908 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; 2909 esac 2910else 2911 version_specific_libs=no 2912fi 2913 2914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 2915$as_echo "$version_specific_libs" >&6; } 2916 2917 2918 2919DEPDIR="${am__leading_dot}deps" 2920 2921ac_config_commands="$ac_config_commands depfiles" 2922 2923 2924am_make=${MAKE-make} 2925cat > confinc << 'END' 2926am__doit: 2927 @echo this is the am__doit target 2928.PHONY: am__doit 2929END 2930# If we don't find an include directive, just comment out the code. 2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2932$as_echo_n "checking for style of include used by $am_make... " >&6; } 2933am__include="#" 2934am__quote= 2935_am_result=none 2936# First try GNU make style include. 2937echo "include confinc" > confmf 2938# Ignore all kinds of additional output from `make'. 2939case `$am_make -s -f confmf 2> /dev/null` in #( 2940*the\ am__doit\ target*) 2941 am__include=include 2942 am__quote= 2943 _am_result=GNU 2944 ;; 2945esac 2946# Now try BSD make style include. 2947if test "$am__include" = "#"; then 2948 echo '.include "confinc"' > confmf 2949 case `$am_make -s -f confmf 2> /dev/null` in #( 2950 *the\ am__doit\ target*) 2951 am__include=.include 2952 am__quote="\"" 2953 _am_result=BSD 2954 ;; 2955 esac 2956fi 2957 2958 2959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2960$as_echo "$_am_result" >&6; } 2961rm -f confinc confmf 2962 2963# Check whether --enable-dependency-tracking was given. 2964if test "${enable_dependency_tracking+set}" = set; then : 2965 enableval=$enable_dependency_tracking; 2966fi 2967 2968if test "x$enable_dependency_tracking" != xno; then 2969 am_depcomp="$ac_aux_dir/depcomp" 2970 AMDEPBACKSLASH='\' 2971 am__nodep='_no' 2972fi 2973 if test "x$enable_dependency_tracking" != xno; then 2974 AMDEP_TRUE= 2975 AMDEP_FALSE='#' 2976else 2977 AMDEP_TRUE='#' 2978 AMDEP_FALSE= 2979fi 2980 2981 2982ac_ext=c 2983ac_cpp='$CPP $CPPFLAGS' 2984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2986ac_compiler_gnu=$ac_cv_c_compiler_gnu 2987if test -n "$ac_tool_prefix"; then 2988 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2989set dummy ${ac_tool_prefix}gcc; ac_word=$2 2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2991$as_echo_n "checking for $ac_word... " >&6; } 2992if test "${ac_cv_prog_CC+set}" = set; then : 2993 $as_echo_n "(cached) " >&6 2994else 2995 if test -n "$CC"; then 2996 ac_cv_prog_CC="$CC" # Let the user override the test. 2997else 2998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2999for as_dir in $PATH 3000do 3001 IFS=$as_save_IFS 3002 test -z "$as_dir" && as_dir=. 3003 for ac_exec_ext in '' $ac_executable_extensions; do 3004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3005 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3007 break 2 3008 fi 3009done 3010 done 3011IFS=$as_save_IFS 3012 3013fi 3014fi 3015CC=$ac_cv_prog_CC 3016if test -n "$CC"; then 3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3018$as_echo "$CC" >&6; } 3019else 3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3021$as_echo "no" >&6; } 3022fi 3023 3024 3025fi 3026if test -z "$ac_cv_prog_CC"; then 3027 ac_ct_CC=$CC 3028 # Extract the first word of "gcc", so it can be a program name with args. 3029set dummy gcc; ac_word=$2 3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3031$as_echo_n "checking for $ac_word... " >&6; } 3032if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3033 $as_echo_n "(cached) " >&6 3034else 3035 if test -n "$ac_ct_CC"; then 3036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3037else 3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3039for as_dir in $PATH 3040do 3041 IFS=$as_save_IFS 3042 test -z "$as_dir" && as_dir=. 3043 for ac_exec_ext in '' $ac_executable_extensions; do 3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3045 ac_cv_prog_ac_ct_CC="gcc" 3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3047 break 2 3048 fi 3049done 3050 done 3051IFS=$as_save_IFS 3052 3053fi 3054fi 3055ac_ct_CC=$ac_cv_prog_ac_ct_CC 3056if test -n "$ac_ct_CC"; then 3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3058$as_echo "$ac_ct_CC" >&6; } 3059else 3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3061$as_echo "no" >&6; } 3062fi 3063 3064 if test "x$ac_ct_CC" = x; then 3065 CC="" 3066 else 3067 case $cross_compiling:$ac_tool_warned in 3068yes:) 3069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3071ac_tool_warned=yes ;; 3072esac 3073 CC=$ac_ct_CC 3074 fi 3075else 3076 CC="$ac_cv_prog_CC" 3077fi 3078 3079if test -z "$CC"; then 3080 if test -n "$ac_tool_prefix"; then 3081 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3082set dummy ${ac_tool_prefix}cc; ac_word=$2 3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3084$as_echo_n "checking for $ac_word... " >&6; } 3085if test "${ac_cv_prog_CC+set}" = set; then : 3086 $as_echo_n "(cached) " >&6 3087else 3088 if test -n "$CC"; then 3089 ac_cv_prog_CC="$CC" # Let the user override the test. 3090else 3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3092for as_dir in $PATH 3093do 3094 IFS=$as_save_IFS 3095 test -z "$as_dir" && as_dir=. 3096 for ac_exec_ext in '' $ac_executable_extensions; do 3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3098 ac_cv_prog_CC="${ac_tool_prefix}cc" 3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3100 break 2 3101 fi 3102done 3103 done 3104IFS=$as_save_IFS 3105 3106fi 3107fi 3108CC=$ac_cv_prog_CC 3109if test -n "$CC"; then 3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3111$as_echo "$CC" >&6; } 3112else 3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3114$as_echo "no" >&6; } 3115fi 3116 3117 3118 fi 3119fi 3120if test -z "$CC"; then 3121 # Extract the first word of "cc", so it can be a program name with args. 3122set dummy cc; ac_word=$2 3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3124$as_echo_n "checking for $ac_word... " >&6; } 3125if test "${ac_cv_prog_CC+set}" = set; then : 3126 $as_echo_n "(cached) " >&6 3127else 3128 if test -n "$CC"; then 3129 ac_cv_prog_CC="$CC" # Let the user override the test. 3130else 3131 ac_prog_rejected=no 3132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3133for as_dir in $PATH 3134do 3135 IFS=$as_save_IFS 3136 test -z "$as_dir" && as_dir=. 3137 for ac_exec_ext in '' $ac_executable_extensions; do 3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3139 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3140 ac_prog_rejected=yes 3141 continue 3142 fi 3143 ac_cv_prog_CC="cc" 3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3145 break 2 3146 fi 3147done 3148 done 3149IFS=$as_save_IFS 3150 3151if test $ac_prog_rejected = yes; then 3152 # We found a bogon in the path, so make sure we never use it. 3153 set dummy $ac_cv_prog_CC 3154 shift 3155 if test $# != 0; then 3156 # We chose a different compiler from the bogus one. 3157 # However, it has the same basename, so the bogon will be chosen 3158 # first if we set CC to just the basename; use the full file name. 3159 shift 3160 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3161 fi 3162fi 3163fi 3164fi 3165CC=$ac_cv_prog_CC 3166if test -n "$CC"; then 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3168$as_echo "$CC" >&6; } 3169else 3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3171$as_echo "no" >&6; } 3172fi 3173 3174 3175fi 3176if test -z "$CC"; then 3177 if test -n "$ac_tool_prefix"; then 3178 for ac_prog in cl.exe 3179 do 3180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3181set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3183$as_echo_n "checking for $ac_word... " >&6; } 3184if test "${ac_cv_prog_CC+set}" = set; then : 3185 $as_echo_n "(cached) " >&6 3186else 3187 if test -n "$CC"; then 3188 ac_cv_prog_CC="$CC" # Let the user override the test. 3189else 3190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3191for as_dir in $PATH 3192do 3193 IFS=$as_save_IFS 3194 test -z "$as_dir" && as_dir=. 3195 for ac_exec_ext in '' $ac_executable_extensions; do 3196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3197 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3199 break 2 3200 fi 3201done 3202 done 3203IFS=$as_save_IFS 3204 3205fi 3206fi 3207CC=$ac_cv_prog_CC 3208if test -n "$CC"; then 3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3210$as_echo "$CC" >&6; } 3211else 3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3213$as_echo "no" >&6; } 3214fi 3215 3216 3217 test -n "$CC" && break 3218 done 3219fi 3220if test -z "$CC"; then 3221 ac_ct_CC=$CC 3222 for ac_prog in cl.exe 3223do 3224 # Extract the first word of "$ac_prog", so it can be a program name with args. 3225set dummy $ac_prog; ac_word=$2 3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3227$as_echo_n "checking for $ac_word... " >&6; } 3228if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3229 $as_echo_n "(cached) " >&6 3230else 3231 if test -n "$ac_ct_CC"; then 3232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3233else 3234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3235for as_dir in $PATH 3236do 3237 IFS=$as_save_IFS 3238 test -z "$as_dir" && as_dir=. 3239 for ac_exec_ext in '' $ac_executable_extensions; do 3240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3241 ac_cv_prog_ac_ct_CC="$ac_prog" 3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3243 break 2 3244 fi 3245done 3246 done 3247IFS=$as_save_IFS 3248 3249fi 3250fi 3251ac_ct_CC=$ac_cv_prog_ac_ct_CC 3252if test -n "$ac_ct_CC"; then 3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3254$as_echo "$ac_ct_CC" >&6; } 3255else 3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3257$as_echo "no" >&6; } 3258fi 3259 3260 3261 test -n "$ac_ct_CC" && break 3262done 3263 3264 if test "x$ac_ct_CC" = x; then 3265 CC="" 3266 else 3267 case $cross_compiling:$ac_tool_warned in 3268yes:) 3269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3271ac_tool_warned=yes ;; 3272esac 3273 CC=$ac_ct_CC 3274 fi 3275fi 3276 3277fi 3278 3279 3280test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3282as_fn_error "no acceptable C compiler found in \$PATH 3283See \`config.log' for more details." "$LINENO" 5; } 3284 3285# Provide some information about the compiler. 3286$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3287set X $ac_compile 3288ac_compiler=$2 3289for ac_option in --version -v -V -qversion; do 3290 { { ac_try="$ac_compiler $ac_option >&5" 3291case "(($ac_try" in 3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3293 *) ac_try_echo=$ac_try;; 3294esac 3295eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3296$as_echo "$ac_try_echo"; } >&5 3297 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3298 ac_status=$? 3299 if test -s conftest.err; then 3300 sed '10a\ 3301... rest of stderr output deleted ... 3302 10q' conftest.err >conftest.er1 3303 cat conftest.er1 >&5 3304 rm -f conftest.er1 conftest.err 3305 fi 3306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3307 test $ac_status = 0; } 3308done 3309 3310cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3311/* end confdefs.h. */ 3312 3313int 3314main () 3315{ 3316 3317 ; 3318 return 0; 3319} 3320_ACEOF 3321# FIXME: Cleanup? 3322if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 3323 (eval $ac_link) 2>&5 3324 ac_status=$? 3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3326 test $ac_status = 0; }; then : 3327 gcc_no_link=no 3328else 3329 gcc_no_link=yes 3330fi 3331if test x$gcc_no_link = xyes; then 3332 # Setting cross_compile will disable run tests; it will 3333 # also disable AC_CHECK_FILE but that's generally 3334 # correct if we can't link. 3335 cross_compiling=yes 3336 EXEEXT= 3337else 3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3339/* end confdefs.h. */ 3340 3341int 3342main () 3343{ 3344 3345 ; 3346 return 0; 3347} 3348_ACEOF 3349ac_clean_files_save=$ac_clean_files 3350ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 3351# Try to create an executable without -o first, disregard a.out. 3352# It will help us diagnose broken compilers, and finding out an intuition 3353# of exeext. 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3355$as_echo_n "checking for C compiler default output file name... " >&6; } 3356ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3357 3358# The possible output files: 3359ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3360 3361ac_rmfiles= 3362for ac_file in $ac_files 3363do 3364 case $ac_file in 3365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3366 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3367 esac 3368done 3369rm -f $ac_rmfiles 3370 3371if { { ac_try="$ac_link_default" 3372case "(($ac_try" in 3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3374 *) ac_try_echo=$ac_try;; 3375esac 3376eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3377$as_echo "$ac_try_echo"; } >&5 3378 (eval "$ac_link_default") 2>&5 3379 ac_status=$? 3380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3381 test $ac_status = 0; }; then : 3382 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3383# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3384# in a Makefile. We should not override ac_cv_exeext if it was cached, 3385# so that the user can short-circuit this test for compilers unknown to 3386# Autoconf. 3387for ac_file in $ac_files '' 3388do 3389 test -f "$ac_file" || continue 3390 case $ac_file in 3391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3392 ;; 3393 [ab].out ) 3394 # We found the default executable, but exeext='' is most 3395 # certainly right. 3396 break;; 3397 *.* ) 3398 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3399 then :; else 3400 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3401 fi 3402 # We set ac_cv_exeext here because the later test for it is not 3403 # safe: cross compilers may not add the suffix if given an `-o' 3404 # argument, so we may need to know it at that point already. 3405 # Even if this section looks crufty: it has the advantage of 3406 # actually working. 3407 break;; 3408 * ) 3409 break;; 3410 esac 3411done 3412test "$ac_cv_exeext" = no && ac_cv_exeext= 3413 3414else 3415 ac_file='' 3416fi 3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3418$as_echo "$ac_file" >&6; } 3419if test -z "$ac_file"; then : 3420 $as_echo "$as_me: failed program was:" >&5 3421sed 's/^/| /' conftest.$ac_ext >&5 3422 3423{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3425{ as_fn_set_status 77 3426as_fn_error "C compiler cannot create executables 3427See \`config.log' for more details." "$LINENO" 5; }; } 3428fi 3429ac_exeext=$ac_cv_exeext 3430 3431# Check that the compiler produces executables we can run. If not, either 3432# the compiler is broken, or we cross compile. 3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3434$as_echo_n "checking whether the C compiler works... " >&6; } 3435# If not cross compiling, check that we can run a simple program. 3436if test "$cross_compiling" != yes; then 3437 if { ac_try='./$ac_file' 3438 { { case "(($ac_try" in 3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3440 *) ac_try_echo=$ac_try;; 3441esac 3442eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3443$as_echo "$ac_try_echo"; } >&5 3444 (eval "$ac_try") 2>&5 3445 ac_status=$? 3446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3447 test $ac_status = 0; }; }; then 3448 cross_compiling=no 3449 else 3450 if test "$cross_compiling" = maybe; then 3451 cross_compiling=yes 3452 else 3453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3455as_fn_error "cannot run C compiled programs. 3456If you meant to cross compile, use \`--host'. 3457See \`config.log' for more details." "$LINENO" 5; } 3458 fi 3459 fi 3460fi 3461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3462$as_echo "yes" >&6; } 3463 3464rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3465ac_clean_files=$ac_clean_files_save 3466# Check that the compiler produces executables we can run. If not, either 3467# the compiler is broken, or we cross compile. 3468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3469$as_echo_n "checking whether we are cross compiling... " >&6; } 3470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3471$as_echo "$cross_compiling" >&6; } 3472 3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3474$as_echo_n "checking for suffix of executables... " >&6; } 3475if { { ac_try="$ac_link" 3476case "(($ac_try" in 3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3478 *) ac_try_echo=$ac_try;; 3479esac 3480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3481$as_echo "$ac_try_echo"; } >&5 3482 (eval "$ac_link") 2>&5 3483 ac_status=$? 3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3485 test $ac_status = 0; }; then : 3486 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3487# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3488# work properly (i.e., refer to `conftest.exe'), while it won't with 3489# `rm'. 3490for ac_file in conftest.exe conftest conftest.*; do 3491 test -f "$ac_file" || continue 3492 case $ac_file in 3493 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3494 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3495 break;; 3496 * ) break;; 3497 esac 3498done 3499else 3500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3502as_fn_error "cannot compute suffix of executables: cannot compile and link 3503See \`config.log' for more details." "$LINENO" 5; } 3504fi 3505rm -f conftest$ac_cv_exeext 3506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3507$as_echo "$ac_cv_exeext" >&6; } 3508 3509rm -f conftest.$ac_ext 3510EXEEXT=$ac_cv_exeext 3511ac_exeext=$EXEEXT 3512fi 3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3514$as_echo_n "checking for suffix of object files... " >&6; } 3515if test "${ac_cv_objext+set}" = set; then : 3516 $as_echo_n "(cached) " >&6 3517else 3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3519/* end confdefs.h. */ 3520 3521int 3522main () 3523{ 3524 3525 ; 3526 return 0; 3527} 3528_ACEOF 3529rm -f conftest.o conftest.obj 3530if { { ac_try="$ac_compile" 3531case "(($ac_try" in 3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3533 *) ac_try_echo=$ac_try;; 3534esac 3535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3536$as_echo "$ac_try_echo"; } >&5 3537 (eval "$ac_compile") 2>&5 3538 ac_status=$? 3539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3540 test $ac_status = 0; }; then : 3541 for ac_file in conftest.o conftest.obj conftest.*; do 3542 test -f "$ac_file" || continue; 3543 case $ac_file in 3544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3545 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3546 break;; 3547 esac 3548done 3549else 3550 $as_echo "$as_me: failed program was:" >&5 3551sed 's/^/| /' conftest.$ac_ext >&5 3552 3553{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3555as_fn_error "cannot compute suffix of object files: cannot compile 3556See \`config.log' for more details." "$LINENO" 5; } 3557fi 3558rm -f conftest.$ac_cv_objext conftest.$ac_ext 3559fi 3560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3561$as_echo "$ac_cv_objext" >&6; } 3562OBJEXT=$ac_cv_objext 3563ac_objext=$OBJEXT 3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3565$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3566if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3567 $as_echo_n "(cached) " >&6 3568else 3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3570/* end confdefs.h. */ 3571 3572int 3573main () 3574{ 3575#ifndef __GNUC__ 3576 choke me 3577#endif 3578 3579 ; 3580 return 0; 3581} 3582_ACEOF 3583if ac_fn_c_try_compile "$LINENO"; then : 3584 ac_compiler_gnu=yes 3585else 3586 ac_compiler_gnu=no 3587fi 3588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3589ac_cv_c_compiler_gnu=$ac_compiler_gnu 3590 3591fi 3592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3593$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3594if test $ac_compiler_gnu = yes; then 3595 GCC=yes 3596else 3597 GCC= 3598fi 3599ac_test_CFLAGS=${CFLAGS+set} 3600ac_save_CFLAGS=$CFLAGS 3601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3602$as_echo_n "checking whether $CC accepts -g... " >&6; } 3603if test "${ac_cv_prog_cc_g+set}" = set; then : 3604 $as_echo_n "(cached) " >&6 3605else 3606 ac_save_c_werror_flag=$ac_c_werror_flag 3607 ac_c_werror_flag=yes 3608 ac_cv_prog_cc_g=no 3609 CFLAGS="-g" 3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3611/* end confdefs.h. */ 3612 3613int 3614main () 3615{ 3616 3617 ; 3618 return 0; 3619} 3620_ACEOF 3621if ac_fn_c_try_compile "$LINENO"; then : 3622 ac_cv_prog_cc_g=yes 3623else 3624 CFLAGS="" 3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3626/* end confdefs.h. */ 3627 3628int 3629main () 3630{ 3631 3632 ; 3633 return 0; 3634} 3635_ACEOF 3636if ac_fn_c_try_compile "$LINENO"; then : 3637 3638else 3639 ac_c_werror_flag=$ac_save_c_werror_flag 3640 CFLAGS="-g" 3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3642/* end confdefs.h. */ 3643 3644int 3645main () 3646{ 3647 3648 ; 3649 return 0; 3650} 3651_ACEOF 3652if ac_fn_c_try_compile "$LINENO"; then : 3653 ac_cv_prog_cc_g=yes 3654fi 3655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3656fi 3657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3658fi 3659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3660 ac_c_werror_flag=$ac_save_c_werror_flag 3661fi 3662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3663$as_echo "$ac_cv_prog_cc_g" >&6; } 3664if test "$ac_test_CFLAGS" = set; then 3665 CFLAGS=$ac_save_CFLAGS 3666elif test $ac_cv_prog_cc_g = yes; then 3667 if test "$GCC" = yes; then 3668 CFLAGS="-g -O2" 3669 else 3670 CFLAGS="-g" 3671 fi 3672else 3673 if test "$GCC" = yes; then 3674 CFLAGS="-O2" 3675 else 3676 CFLAGS= 3677 fi 3678fi 3679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3680$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3681if test "${ac_cv_prog_cc_c89+set}" = set; then : 3682 $as_echo_n "(cached) " >&6 3683else 3684 ac_cv_prog_cc_c89=no 3685ac_save_CC=$CC 3686cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3687/* end confdefs.h. */ 3688#include <stdarg.h> 3689#include <stdio.h> 3690#include <sys/types.h> 3691#include <sys/stat.h> 3692/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3693struct buf { int x; }; 3694FILE * (*rcsopen) (struct buf *, struct stat *, int); 3695static char *e (p, i) 3696 char **p; 3697 int i; 3698{ 3699 return p[i]; 3700} 3701static char *f (char * (*g) (char **, int), char **p, ...) 3702{ 3703 char *s; 3704 va_list v; 3705 va_start (v,p); 3706 s = g (p, va_arg (v,int)); 3707 va_end (v); 3708 return s; 3709} 3710 3711/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3712 function prototypes and stuff, but not '\xHH' hex character constants. 3713 These don't provoke an error unfortunately, instead are silently treated 3714 as 'x'. The following induces an error, until -std is added to get 3715 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3716 array size at least. It's necessary to write '\x00'==0 to get something 3717 that's true only with -std. */ 3718int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3719 3720/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3721 inside strings and character constants. */ 3722#define FOO(x) 'x' 3723int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3724 3725int test (int i, double x); 3726struct s1 {int (*f) (int a);}; 3727struct s2 {int (*f) (double a);}; 3728int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3729int argc; 3730char **argv; 3731int 3732main () 3733{ 3734return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3735 ; 3736 return 0; 3737} 3738_ACEOF 3739for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3740 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3741do 3742 CC="$ac_save_CC $ac_arg" 3743 if ac_fn_c_try_compile "$LINENO"; then : 3744 ac_cv_prog_cc_c89=$ac_arg 3745fi 3746rm -f core conftest.err conftest.$ac_objext 3747 test "x$ac_cv_prog_cc_c89" != "xno" && break 3748done 3749rm -f conftest.$ac_ext 3750CC=$ac_save_CC 3751 3752fi 3753# AC_CACHE_VAL 3754case "x$ac_cv_prog_cc_c89" in 3755 x) 3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3757$as_echo "none needed" >&6; } ;; 3758 xno) 3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3760$as_echo "unsupported" >&6; } ;; 3761 *) 3762 CC="$CC $ac_cv_prog_cc_c89" 3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3764$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3765esac 3766if test "x$ac_cv_prog_cc_c89" != xno; then : 3767 3768fi 3769 3770ac_ext=c 3771ac_cpp='$CPP $CPPFLAGS' 3772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3774ac_compiler_gnu=$ac_cv_c_compiler_gnu 3775 3776depcc="$CC" am_compiler_list= 3777 3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3779$as_echo_n "checking dependency style of $depcc... " >&6; } 3780if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3781 $as_echo_n "(cached) " >&6 3782else 3783 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3784 # We make a subdir and do the tests there. Otherwise we can end up 3785 # making bogus files that we don't know about and never remove. For 3786 # instance it was reported that on HP-UX the gcc test will end up 3787 # making a dummy file named `D' -- because `-MD' means `put the output 3788 # in D'. 3789 rm -rf conftest.dir 3790 mkdir conftest.dir 3791 # Copy depcomp to subdir because otherwise we won't find it if we're 3792 # using a relative directory. 3793 cp "$am_depcomp" conftest.dir 3794 cd conftest.dir 3795 # We will build objects and dependencies in a subdirectory because 3796 # it helps to detect inapplicable dependency modes. For instance 3797 # both Tru64's cc and ICC support -MD to output dependencies as a 3798 # side effect of compilation, but ICC will put the dependencies in 3799 # the current directory while Tru64 will put them in the object 3800 # directory. 3801 mkdir sub 3802 3803 am_cv_CC_dependencies_compiler_type=none 3804 if test "$am_compiler_list" = ""; then 3805 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3806 fi 3807 am__universal=false 3808 case " $depcc " in #( 3809 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3810 esac 3811 3812 for depmode in $am_compiler_list; do 3813 # Setup a source with many dependencies, because some compilers 3814 # like to wrap large dependency lists on column 80 (with \), and 3815 # we should not choose a depcomp mode which is confused by this. 3816 # 3817 # We need to recreate these files for each test, as the compiler may 3818 # overwrite some of them when testing with obscure command lines. 3819 # This happens at least with the AIX C compiler. 3820 : > sub/conftest.c 3821 for i in 1 2 3 4 5 6; do 3822 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3823 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3824 # Solaris 8's {/usr,}/bin/sh. 3825 touch sub/conftst$i.h 3826 done 3827 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3828 3829 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3830 # mode. It turns out that the SunPro C++ compiler does not properly 3831 # handle `-M -o', and we need to detect this. Also, some Intel 3832 # versions had trouble with output in subdirs 3833 am__obj=sub/conftest.${OBJEXT-o} 3834 am__minus_obj="-o $am__obj" 3835 case $depmode in 3836 gcc) 3837 # This depmode causes a compiler race in universal mode. 3838 test "$am__universal" = false || continue 3839 ;; 3840 nosideeffect) 3841 # after this tag, mechanisms are not by side-effect, so they'll 3842 # only be used when explicitly requested 3843 if test "x$enable_dependency_tracking" = xyes; then 3844 continue 3845 else 3846 break 3847 fi 3848 ;; 3849 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3850 # This compiler won't grok `-c -o', but also, the minuso test has 3851 # not run yet. These depmodes are late enough in the game, and 3852 # so weak that their functioning should not be impacted. 3853 am__obj=conftest.${OBJEXT-o} 3854 am__minus_obj= 3855 ;; 3856 none) break ;; 3857 esac 3858 if depmode=$depmode \ 3859 source=sub/conftest.c object=$am__obj \ 3860 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3861 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3862 >/dev/null 2>conftest.err && 3863 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3864 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3865 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3866 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3867 # icc doesn't choke on unknown options, it will just issue warnings 3868 # or remarks (even with -Werror). So we grep stderr for any message 3869 # that says an option was ignored or not supported. 3870 # When given -MP, icc 7.0 and 7.1 complain thusly: 3871 # icc: Command line warning: ignoring option '-M'; no argument required 3872 # The diagnosis changed in icc 8.0: 3873 # icc: Command line remark: option '-MP' not supported 3874 if (grep 'ignoring option' conftest.err || 3875 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3876 am_cv_CC_dependencies_compiler_type=$depmode 3877 break 3878 fi 3879 fi 3880 done 3881 3882 cd .. 3883 rm -rf conftest.dir 3884else 3885 am_cv_CC_dependencies_compiler_type=none 3886fi 3887 3888fi 3889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3890$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3891CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3892 3893 if 3894 test "x$enable_dependency_tracking" != xno \ 3895 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3896 am__fastdepCC_TRUE= 3897 am__fastdepCC_FALSE='#' 3898else 3899 am__fastdepCC_TRUE='#' 3900 am__fastdepCC_FALSE= 3901fi 3902 3903 3904 3905ac_ext=c 3906ac_cpp='$CPP $CPPFLAGS' 3907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3909ac_compiler_gnu=$ac_cv_c_compiler_gnu 3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3911$as_echo_n "checking how to run the C preprocessor... " >&6; } 3912# On Suns, sometimes $CPP names a directory. 3913if test -n "$CPP" && test -d "$CPP"; then 3914 CPP= 3915fi 3916if test -z "$CPP"; then 3917 if test "${ac_cv_prog_CPP+set}" = set; then : 3918 $as_echo_n "(cached) " >&6 3919else 3920 # Double quotes because CPP needs to be expanded 3921 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3922 do 3923 ac_preproc_ok=false 3924for ac_c_preproc_warn_flag in '' yes 3925do 3926 # Use a header file that comes with gcc, so configuring glibc 3927 # with a fresh cross-compiler works. 3928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3929 # <limits.h> exists even on freestanding compilers. 3930 # On the NeXT, cc -E runs the code through the compiler's parser, 3931 # not just through cpp. "Syntax error" is here to catch this case. 3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3933/* end confdefs.h. */ 3934#ifdef __STDC__ 3935# include <limits.h> 3936#else 3937# include <assert.h> 3938#endif 3939 Syntax error 3940_ACEOF 3941if ac_fn_c_try_cpp "$LINENO"; then : 3942 3943else 3944 # Broken: fails on valid input. 3945continue 3946fi 3947rm -f conftest.err conftest.$ac_ext 3948 3949 # OK, works on sane cases. Now check whether nonexistent headers 3950 # can be detected and how. 3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3952/* end confdefs.h. */ 3953#include <ac_nonexistent.h> 3954_ACEOF 3955if ac_fn_c_try_cpp "$LINENO"; then : 3956 # Broken: success on invalid input. 3957continue 3958else 3959 # Passes both tests. 3960ac_preproc_ok=: 3961break 3962fi 3963rm -f conftest.err conftest.$ac_ext 3964 3965done 3966# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3967rm -f conftest.err conftest.$ac_ext 3968if $ac_preproc_ok; then : 3969 break 3970fi 3971 3972 done 3973 ac_cv_prog_CPP=$CPP 3974 3975fi 3976 CPP=$ac_cv_prog_CPP 3977else 3978 ac_cv_prog_CPP=$CPP 3979fi 3980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3981$as_echo "$CPP" >&6; } 3982ac_preproc_ok=false 3983for ac_c_preproc_warn_flag in '' yes 3984do 3985 # Use a header file that comes with gcc, so configuring glibc 3986 # with a fresh cross-compiler works. 3987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3988 # <limits.h> exists even on freestanding compilers. 3989 # On the NeXT, cc -E runs the code through the compiler's parser, 3990 # not just through cpp. "Syntax error" is here to catch this case. 3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3992/* end confdefs.h. */ 3993#ifdef __STDC__ 3994# include <limits.h> 3995#else 3996# include <assert.h> 3997#endif 3998 Syntax error 3999_ACEOF 4000if ac_fn_c_try_cpp "$LINENO"; then : 4001 4002else 4003 # Broken: fails on valid input. 4004continue 4005fi 4006rm -f conftest.err conftest.$ac_ext 4007 4008 # OK, works on sane cases. Now check whether nonexistent headers 4009 # can be detected and how. 4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4011/* end confdefs.h. */ 4012#include <ac_nonexistent.h> 4013_ACEOF 4014if ac_fn_c_try_cpp "$LINENO"; then : 4015 # Broken: success on invalid input. 4016continue 4017else 4018 # Passes both tests. 4019ac_preproc_ok=: 4020break 4021fi 4022rm -f conftest.err conftest.$ac_ext 4023 4024done 4025# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4026rm -f conftest.err conftest.$ac_ext 4027if $ac_preproc_ok; then : 4028 4029else 4030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4032as_fn_error "C preprocessor \"$CPP\" fails sanity check 4033See \`config.log' for more details." "$LINENO" 5; } 4034fi 4035 4036ac_ext=c 4037ac_cpp='$CPP $CPPFLAGS' 4038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4040ac_compiler_gnu=$ac_cv_c_compiler_gnu 4041 4042 4043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4044$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4045if test "${ac_cv_path_GREP+set}" = set; then : 4046 $as_echo_n "(cached) " >&6 4047else 4048 if test -z "$GREP"; then 4049 ac_path_GREP_found=false 4050 # Loop through the user's path and test for each of PROGNAME-LIST 4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4052for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4053do 4054 IFS=$as_save_IFS 4055 test -z "$as_dir" && as_dir=. 4056 for ac_prog in grep ggrep; do 4057 for ac_exec_ext in '' $ac_executable_extensions; do 4058 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4059 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4060# Check for GNU ac_path_GREP and select it if it is found. 4061 # Check for GNU $ac_path_GREP 4062case `"$ac_path_GREP" --version 2>&1` in 4063*GNU*) 4064 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4065*) 4066 ac_count=0 4067 $as_echo_n 0123456789 >"conftest.in" 4068 while : 4069 do 4070 cat "conftest.in" "conftest.in" >"conftest.tmp" 4071 mv "conftest.tmp" "conftest.in" 4072 cp "conftest.in" "conftest.nl" 4073 $as_echo 'GREP' >> "conftest.nl" 4074 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4075 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4076 as_fn_arith $ac_count + 1 && ac_count=$as_val 4077 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4078 # Best one so far, save it but keep looking for a better one 4079 ac_cv_path_GREP="$ac_path_GREP" 4080 ac_path_GREP_max=$ac_count 4081 fi 4082 # 10*(2^10) chars as input seems more than enough 4083 test $ac_count -gt 10 && break 4084 done 4085 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4086esac 4087 4088 $ac_path_GREP_found && break 3 4089 done 4090 done 4091 done 4092IFS=$as_save_IFS 4093 if test -z "$ac_cv_path_GREP"; then 4094 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4095 fi 4096else 4097 ac_cv_path_GREP=$GREP 4098fi 4099 4100fi 4101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4102$as_echo "$ac_cv_path_GREP" >&6; } 4103 GREP="$ac_cv_path_GREP" 4104 4105 4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4107$as_echo_n "checking for egrep... " >&6; } 4108if test "${ac_cv_path_EGREP+set}" = set; then : 4109 $as_echo_n "(cached) " >&6 4110else 4111 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4112 then ac_cv_path_EGREP="$GREP -E" 4113 else 4114 if test -z "$EGREP"; then 4115 ac_path_EGREP_found=false 4116 # Loop through the user's path and test for each of PROGNAME-LIST 4117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4118for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4119do 4120 IFS=$as_save_IFS 4121 test -z "$as_dir" && as_dir=. 4122 for ac_prog in egrep; do 4123 for ac_exec_ext in '' $ac_executable_extensions; do 4124 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4125 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4126# Check for GNU ac_path_EGREP and select it if it is found. 4127 # Check for GNU $ac_path_EGREP 4128case `"$ac_path_EGREP" --version 2>&1` in 4129*GNU*) 4130 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4131*) 4132 ac_count=0 4133 $as_echo_n 0123456789 >"conftest.in" 4134 while : 4135 do 4136 cat "conftest.in" "conftest.in" >"conftest.tmp" 4137 mv "conftest.tmp" "conftest.in" 4138 cp "conftest.in" "conftest.nl" 4139 $as_echo 'EGREP' >> "conftest.nl" 4140 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4141 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4142 as_fn_arith $ac_count + 1 && ac_count=$as_val 4143 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4144 # Best one so far, save it but keep looking for a better one 4145 ac_cv_path_EGREP="$ac_path_EGREP" 4146 ac_path_EGREP_max=$ac_count 4147 fi 4148 # 10*(2^10) chars as input seems more than enough 4149 test $ac_count -gt 10 && break 4150 done 4151 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4152esac 4153 4154 $ac_path_EGREP_found && break 3 4155 done 4156 done 4157 done 4158IFS=$as_save_IFS 4159 if test -z "$ac_cv_path_EGREP"; then 4160 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4161 fi 4162else 4163 ac_cv_path_EGREP=$EGREP 4164fi 4165 4166 fi 4167fi 4168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4169$as_echo "$ac_cv_path_EGREP" >&6; } 4170 EGREP="$ac_cv_path_EGREP" 4171 4172 4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4174$as_echo_n "checking for ANSI C header files... " >&6; } 4175if test "${ac_cv_header_stdc+set}" = set; then : 4176 $as_echo_n "(cached) " >&6 4177else 4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4179/* end confdefs.h. */ 4180#include <stdlib.h> 4181#include <stdarg.h> 4182#include <string.h> 4183#include <float.h> 4184 4185int 4186main () 4187{ 4188 4189 ; 4190 return 0; 4191} 4192_ACEOF 4193if ac_fn_c_try_compile "$LINENO"; then : 4194 ac_cv_header_stdc=yes 4195else 4196 ac_cv_header_stdc=no 4197fi 4198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4199 4200if test $ac_cv_header_stdc = yes; then 4201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4203/* end confdefs.h. */ 4204#include <string.h> 4205 4206_ACEOF 4207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4208 $EGREP "memchr" >/dev/null 2>&1; then : 4209 4210else 4211 ac_cv_header_stdc=no 4212fi 4213rm -f conftest* 4214 4215fi 4216 4217if test $ac_cv_header_stdc = yes; then 4218 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4220/* end confdefs.h. */ 4221#include <stdlib.h> 4222 4223_ACEOF 4224if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4225 $EGREP "free" >/dev/null 2>&1; then : 4226 4227else 4228 ac_cv_header_stdc=no 4229fi 4230rm -f conftest* 4231 4232fi 4233 4234if test $ac_cv_header_stdc = yes; then 4235 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4236 if test "$cross_compiling" = yes; then : 4237 : 4238else 4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4240/* end confdefs.h. */ 4241#include <ctype.h> 4242#include <stdlib.h> 4243#if ((' ' & 0x0FF) == 0x020) 4244# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4245# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4246#else 4247# define ISLOWER(c) \ 4248 (('a' <= (c) && (c) <= 'i') \ 4249 || ('j' <= (c) && (c) <= 'r') \ 4250 || ('s' <= (c) && (c) <= 'z')) 4251# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4252#endif 4253 4254#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4255int 4256main () 4257{ 4258 int i; 4259 for (i = 0; i < 256; i++) 4260 if (XOR (islower (i), ISLOWER (i)) 4261 || toupper (i) != TOUPPER (i)) 4262 return 2; 4263 return 0; 4264} 4265_ACEOF 4266if ac_fn_c_try_run "$LINENO"; then : 4267 4268else 4269 ac_cv_header_stdc=no 4270fi 4271rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4272 conftest.$ac_objext conftest.beam conftest.$ac_ext 4273fi 4274 4275fi 4276fi 4277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4278$as_echo "$ac_cv_header_stdc" >&6; } 4279if test $ac_cv_header_stdc = yes; then 4280 4281$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4282 4283fi 4284 4285# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4286for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4287 inttypes.h stdint.h unistd.h 4288do : 4289 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4290ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4291" 4292eval as_val=\$$as_ac_Header 4293 if test "x$as_val" = x""yes; then : 4294 cat >>confdefs.h <<_ACEOF 4295#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4296_ACEOF 4297 4298fi 4299 4300done 4301 4302 4303 4304 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4305if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4306 MINIX=yes 4307else 4308 MINIX= 4309fi 4310 4311 4312 if test "$MINIX" = yes; then 4313 4314$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4315 4316 4317$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4318 4319 4320$as_echo "#define _MINIX 1" >>confdefs.h 4321 4322 fi 4323 4324 4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4326$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4327if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4328 $as_echo_n "(cached) " >&6 4329else 4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4331/* end confdefs.h. */ 4332 4333# define __EXTENSIONS__ 1 4334 $ac_includes_default 4335int 4336main () 4337{ 4338 4339 ; 4340 return 0; 4341} 4342_ACEOF 4343if ac_fn_c_try_compile "$LINENO"; then : 4344 ac_cv_safe_to_define___extensions__=yes 4345else 4346 ac_cv_safe_to_define___extensions__=no 4347fi 4348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4349fi 4350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4351$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4352 test $ac_cv_safe_to_define___extensions__ = yes && 4353 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4354 4355 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4356 4357 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4358 4359 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4360 4361 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4362 4363 4364 4365# See if makeinfo has been installed and is modern enough 4366# that we can use it. 4367 4368 # Extract the first word of "makeinfo", so it can be a program name with args. 4369set dummy makeinfo; ac_word=$2 4370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4371$as_echo_n "checking for $ac_word... " >&6; } 4372if test "${ac_cv_prog_MAKEINFO+set}" = set; then : 4373 $as_echo_n "(cached) " >&6 4374else 4375 if test -n "$MAKEINFO"; then 4376 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 4377else 4378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4379for as_dir in $PATH 4380do 4381 IFS=$as_save_IFS 4382 test -z "$as_dir" && as_dir=. 4383 for ac_exec_ext in '' $ac_executable_extensions; do 4384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4385 ac_cv_prog_MAKEINFO="makeinfo" 4386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4387 break 2 4388 fi 4389done 4390 done 4391IFS=$as_save_IFS 4392 4393fi 4394fi 4395MAKEINFO=$ac_cv_prog_MAKEINFO 4396if test -n "$MAKEINFO"; then 4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 4398$as_echo "$MAKEINFO" >&6; } 4399else 4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4401$as_echo "no" >&6; } 4402fi 4403 4404 4405 if test -n "$MAKEINFO"; then 4406 # Found it, now check the version. 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5 4408$as_echo_n "checking for modern makeinfo... " >&6; } 4409if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then : 4410 $as_echo_n "(cached) " >&6 4411else 4412 ac_prog_version=`eval $MAKEINFO --version 2>&1 | 4413 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` 4414 4415 case $ac_prog_version in 4416 '') gcc_cv_prog_makeinfo_modern=no;; 4417 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;; 4418 *) gcc_cv_prog_makeinfo_modern=no;; 4419 esac 4420 4421fi 4422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5 4423$as_echo "$gcc_cv_prog_makeinfo_modern" >&6; } 4424 else 4425 gcc_cv_prog_makeinfo_modern=no 4426 fi 4427 if test $gcc_cv_prog_makeinfo_modern = no; then 4428 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo" 4429 fi 4430 4431 if test $gcc_cv_prog_makeinfo_modern = "yes"; then 4432 BUILD_INFO_TRUE= 4433 BUILD_INFO_FALSE='#' 4434else 4435 BUILD_INFO_TRUE='#' 4436 BUILD_INFO_FALSE= 4437fi 4438 4439 4440 4441 4442# Check whether --with-bugurl was given. 4443if test "${with_bugurl+set}" = set; then : 4444 withval=$with_bugurl; case "$withval" in 4445 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;; 4446 no) BUGURL= 4447 ;; 4448 *) BUGURL="$withval" 4449 ;; 4450 esac 4451else 4452 BUGURL="https://gcc.gnu.org/bugs/" 4453 4454fi 4455 4456 case ${BUGURL} in 4457 "") 4458 REPORT_BUGS_TO= 4459 REPORT_BUGS_TEXI= 4460 ;; 4461 *) 4462 REPORT_BUGS_TO="<$BUGURL>" 4463 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} 4464 ;; 4465 esac; 4466 4467 4468 4469 4470# Configure libtool 4471case `pwd` in 4472 *\ * | *\ *) 4473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4474$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4475esac 4476 4477 4478 4479macro_version='2.2.7a' 4480macro_revision='1.3134' 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494ltmain="$ac_aux_dir/ltmain.sh" 4495 4496# Backslashify metacharacters that are still active within 4497# double-quoted strings. 4498sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4499 4500# Same as above, but do not quote variable references. 4501double_quote_subst='s/\(["`\\]\)/\\\1/g' 4502 4503# Sed substitution to delay expansion of an escaped shell variable in a 4504# double_quote_subst'ed string. 4505delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4506 4507# Sed substitution to delay expansion of an escaped single quote. 4508delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4509 4510# Sed substitution to avoid accidental globbing in evaled expressions 4511no_glob_subst='s/\*/\\\*/g' 4512 4513ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4514ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4515ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4516 4517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4518$as_echo_n "checking how to print strings... " >&6; } 4519# Test print first, because it will be a builtin if present. 4520if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4521 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4522 ECHO='print -r --' 4523elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4524 ECHO='printf %s\n' 4525else 4526 # Use this function as a fallback that always works. 4527 func_fallback_echo () 4528 { 4529 eval 'cat <<_LTECHO_EOF 4530$1 4531_LTECHO_EOF' 4532 } 4533 ECHO='func_fallback_echo' 4534fi 4535 4536# func_echo_all arg... 4537# Invoke $ECHO with all args, space-separated. 4538func_echo_all () 4539{ 4540 $ECHO "" 4541} 4542 4543case "$ECHO" in 4544 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4545$as_echo "printf" >&6; } ;; 4546 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4547$as_echo "print -r" >&6; } ;; 4548 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4549$as_echo "cat" >&6; } ;; 4550esac 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4566$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4567if test "${ac_cv_path_SED+set}" = set; then : 4568 $as_echo_n "(cached) " >&6 4569else 4570 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4571 for ac_i in 1 2 3 4 5 6 7; do 4572 ac_script="$ac_script$as_nl$ac_script" 4573 done 4574 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4575 { ac_script=; unset ac_script;} 4576 if test -z "$SED"; then 4577 ac_path_SED_found=false 4578 # Loop through the user's path and test for each of PROGNAME-LIST 4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4580for as_dir in $PATH 4581do 4582 IFS=$as_save_IFS 4583 test -z "$as_dir" && as_dir=. 4584 for ac_prog in sed gsed; do 4585 for ac_exec_ext in '' $ac_executable_extensions; do 4586 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4587 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4588# Check for GNU ac_path_SED and select it if it is found. 4589 # Check for GNU $ac_path_SED 4590case `"$ac_path_SED" --version 2>&1` in 4591*GNU*) 4592 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4593*) 4594 ac_count=0 4595 $as_echo_n 0123456789 >"conftest.in" 4596 while : 4597 do 4598 cat "conftest.in" "conftest.in" >"conftest.tmp" 4599 mv "conftest.tmp" "conftest.in" 4600 cp "conftest.in" "conftest.nl" 4601 $as_echo '' >> "conftest.nl" 4602 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4603 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4604 as_fn_arith $ac_count + 1 && ac_count=$as_val 4605 if test $ac_count -gt ${ac_path_SED_max-0}; then 4606 # Best one so far, save it but keep looking for a better one 4607 ac_cv_path_SED="$ac_path_SED" 4608 ac_path_SED_max=$ac_count 4609 fi 4610 # 10*(2^10) chars as input seems more than enough 4611 test $ac_count -gt 10 && break 4612 done 4613 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4614esac 4615 4616 $ac_path_SED_found && break 3 4617 done 4618 done 4619 done 4620IFS=$as_save_IFS 4621 if test -z "$ac_cv_path_SED"; then 4622 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4623 fi 4624else 4625 ac_cv_path_SED=$SED 4626fi 4627 4628fi 4629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4630$as_echo "$ac_cv_path_SED" >&6; } 4631 SED="$ac_cv_path_SED" 4632 rm -f conftest.sed 4633 4634test -z "$SED" && SED=sed 4635Xsed="$SED -e 1s/^X//" 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4648$as_echo_n "checking for fgrep... " >&6; } 4649if test "${ac_cv_path_FGREP+set}" = set; then : 4650 $as_echo_n "(cached) " >&6 4651else 4652 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4653 then ac_cv_path_FGREP="$GREP -F" 4654 else 4655 if test -z "$FGREP"; then 4656 ac_path_FGREP_found=false 4657 # Loop through the user's path and test for each of PROGNAME-LIST 4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4659for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4660do 4661 IFS=$as_save_IFS 4662 test -z "$as_dir" && as_dir=. 4663 for ac_prog in fgrep; do 4664 for ac_exec_ext in '' $ac_executable_extensions; do 4665 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4666 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4667# Check for GNU ac_path_FGREP and select it if it is found. 4668 # Check for GNU $ac_path_FGREP 4669case `"$ac_path_FGREP" --version 2>&1` in 4670*GNU*) 4671 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4672*) 4673 ac_count=0 4674 $as_echo_n 0123456789 >"conftest.in" 4675 while : 4676 do 4677 cat "conftest.in" "conftest.in" >"conftest.tmp" 4678 mv "conftest.tmp" "conftest.in" 4679 cp "conftest.in" "conftest.nl" 4680 $as_echo 'FGREP' >> "conftest.nl" 4681 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4682 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4683 as_fn_arith $ac_count + 1 && ac_count=$as_val 4684 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4685 # Best one so far, save it but keep looking for a better one 4686 ac_cv_path_FGREP="$ac_path_FGREP" 4687 ac_path_FGREP_max=$ac_count 4688 fi 4689 # 10*(2^10) chars as input seems more than enough 4690 test $ac_count -gt 10 && break 4691 done 4692 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4693esac 4694 4695 $ac_path_FGREP_found && break 3 4696 done 4697 done 4698 done 4699IFS=$as_save_IFS 4700 if test -z "$ac_cv_path_FGREP"; then 4701 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4702 fi 4703else 4704 ac_cv_path_FGREP=$FGREP 4705fi 4706 4707 fi 4708fi 4709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4710$as_echo "$ac_cv_path_FGREP" >&6; } 4711 FGREP="$ac_cv_path_FGREP" 4712 4713 4714test -z "$GREP" && GREP=grep 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734# Check whether --with-gnu-ld was given. 4735if test "${with_gnu_ld+set}" = set; then : 4736 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4737else 4738 with_gnu_ld=no 4739fi 4740 4741ac_prog=ld 4742if test "$GCC" = yes; then 4743 # Check if gcc -print-prog-name=ld gives a path. 4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4745$as_echo_n "checking for ld used by $CC... " >&6; } 4746 case $host in 4747 *-*-mingw*) 4748 # gcc leaves a trailing carriage return which upsets mingw 4749 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4750 *) 4751 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4752 esac 4753 case $ac_prog in 4754 # Accept absolute paths. 4755 [\\/]* | ?:[\\/]*) 4756 re_direlt='/[^/][^/]*/\.\./' 4757 # Canonicalize the pathname of ld 4758 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4759 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4760 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4761 done 4762 test -z "$LD" && LD="$ac_prog" 4763 ;; 4764 "") 4765 # If it fails, then pretend we aren't using GCC. 4766 ac_prog=ld 4767 ;; 4768 *) 4769 # If it is relative, then search for the first ld in PATH. 4770 with_gnu_ld=unknown 4771 ;; 4772 esac 4773elif test "$with_gnu_ld" = yes; then 4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4775$as_echo_n "checking for GNU ld... " >&6; } 4776else 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4778$as_echo_n "checking for non-GNU ld... " >&6; } 4779fi 4780if test "${lt_cv_path_LD+set}" = set; then : 4781 $as_echo_n "(cached) " >&6 4782else 4783 if test -z "$LD"; then 4784 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4785 for ac_dir in $PATH; do 4786 IFS="$lt_save_ifs" 4787 test -z "$ac_dir" && ac_dir=. 4788 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4789 lt_cv_path_LD="$ac_dir/$ac_prog" 4790 # Check to see if the program is GNU ld. I'd rather use --version, 4791 # but apparently some variants of GNU ld only accept -v. 4792 # Break only if it was the GNU/non-GNU ld that we prefer. 4793 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4794 *GNU* | *'with BFD'*) 4795 test "$with_gnu_ld" != no && break 4796 ;; 4797 *) 4798 test "$with_gnu_ld" != yes && break 4799 ;; 4800 esac 4801 fi 4802 done 4803 IFS="$lt_save_ifs" 4804else 4805 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4806fi 4807fi 4808 4809LD="$lt_cv_path_LD" 4810if test -n "$LD"; then 4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4812$as_echo "$LD" >&6; } 4813else 4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4815$as_echo "no" >&6; } 4816fi 4817test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 4818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4819$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4820if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4821 $as_echo_n "(cached) " >&6 4822else 4823 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4824case `$LD -v 2>&1 </dev/null` in 4825*GNU* | *'with BFD'*) 4826 lt_cv_prog_gnu_ld=yes 4827 ;; 4828*) 4829 lt_cv_prog_gnu_ld=no 4830 ;; 4831esac 4832fi 4833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4834$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4835with_gnu_ld=$lt_cv_prog_gnu_ld 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4846$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4847if test "${lt_cv_path_NM+set}" = set; then : 4848 $as_echo_n "(cached) " >&6 4849else 4850 if test -n "$NM"; then 4851 # Let the user override the test. 4852 lt_cv_path_NM="$NM" 4853else 4854 lt_nm_to_check="${ac_tool_prefix}nm" 4855 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4856 lt_nm_to_check="$lt_nm_to_check nm" 4857 fi 4858 for lt_tmp_nm in $lt_nm_to_check; do 4859 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4860 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4861 IFS="$lt_save_ifs" 4862 test -z "$ac_dir" && ac_dir=. 4863 tmp_nm="$ac_dir/$lt_tmp_nm" 4864 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4865 # Check to see if the nm accepts a BSD-compat flag. 4866 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4867 # nm: unknown option "B" ignored 4868 # Tru64's nm complains that /dev/null is an invalid object file 4869 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4870 */dev/null* | *'Invalid file or object type'*) 4871 lt_cv_path_NM="$tmp_nm -B" 4872 break 4873 ;; 4874 *) 4875 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4876 */dev/null*) 4877 lt_cv_path_NM="$tmp_nm -p" 4878 break 4879 ;; 4880 *) 4881 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4882 continue # so that we can try to find one that supports BSD flags 4883 ;; 4884 esac 4885 ;; 4886 esac 4887 fi 4888 done 4889 IFS="$lt_save_ifs" 4890 done 4891 : ${lt_cv_path_NM=no} 4892fi 4893fi 4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4895$as_echo "$lt_cv_path_NM" >&6; } 4896if test "$lt_cv_path_NM" != "no"; then 4897 NM="$lt_cv_path_NM" 4898else 4899 # Didn't find any BSD compatible name lister, look for dumpbin. 4900 if test -n "$DUMPBIN"; then : 4901 # Let the user override the test. 4902 else 4903 if test -n "$ac_tool_prefix"; then 4904 for ac_prog in dumpbin "link -dump" 4905 do 4906 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4907set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4909$as_echo_n "checking for $ac_word... " >&6; } 4910if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 4911 $as_echo_n "(cached) " >&6 4912else 4913 if test -n "$DUMPBIN"; then 4914 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4915else 4916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4917for as_dir in $PATH 4918do 4919 IFS=$as_save_IFS 4920 test -z "$as_dir" && as_dir=. 4921 for ac_exec_ext in '' $ac_executable_extensions; do 4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4923 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4925 break 2 4926 fi 4927done 4928 done 4929IFS=$as_save_IFS 4930 4931fi 4932fi 4933DUMPBIN=$ac_cv_prog_DUMPBIN 4934if test -n "$DUMPBIN"; then 4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4936$as_echo "$DUMPBIN" >&6; } 4937else 4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4939$as_echo "no" >&6; } 4940fi 4941 4942 4943 test -n "$DUMPBIN" && break 4944 done 4945fi 4946if test -z "$DUMPBIN"; then 4947 ac_ct_DUMPBIN=$DUMPBIN 4948 for ac_prog in dumpbin "link -dump" 4949do 4950 # Extract the first word of "$ac_prog", so it can be a program name with args. 4951set dummy $ac_prog; ac_word=$2 4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4953$as_echo_n "checking for $ac_word... " >&6; } 4954if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 4955 $as_echo_n "(cached) " >&6 4956else 4957 if test -n "$ac_ct_DUMPBIN"; then 4958 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4959else 4960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4961for as_dir in $PATH 4962do 4963 IFS=$as_save_IFS 4964 test -z "$as_dir" && as_dir=. 4965 for ac_exec_ext in '' $ac_executable_extensions; do 4966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4967 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4969 break 2 4970 fi 4971done 4972 done 4973IFS=$as_save_IFS 4974 4975fi 4976fi 4977ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4978if test -n "$ac_ct_DUMPBIN"; then 4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4980$as_echo "$ac_ct_DUMPBIN" >&6; } 4981else 4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4983$as_echo "no" >&6; } 4984fi 4985 4986 4987 test -n "$ac_ct_DUMPBIN" && break 4988done 4989 4990 if test "x$ac_ct_DUMPBIN" = x; then 4991 DUMPBIN=":" 4992 else 4993 case $cross_compiling:$ac_tool_warned in 4994yes:) 4995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4997ac_tool_warned=yes ;; 4998esac 4999 DUMPBIN=$ac_ct_DUMPBIN 5000 fi 5001fi 5002 5003 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5004 *COFF*) 5005 DUMPBIN="$DUMPBIN -symbols" 5006 ;; 5007 *) 5008 DUMPBIN=: 5009 ;; 5010 esac 5011 fi 5012 5013 if test "$DUMPBIN" != ":"; then 5014 NM="$DUMPBIN" 5015 fi 5016fi 5017test -z "$NM" && NM=nm 5018 5019 5020 5021 5022 5023 5024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5025$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5026if test "${lt_cv_nm_interface+set}" = set; then : 5027 $as_echo_n "(cached) " >&6 5028else 5029 lt_cv_nm_interface="BSD nm" 5030 echo "int some_variable = 0;" > conftest.$ac_ext 5031 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5032 (eval "$ac_compile" 2>conftest.err) 5033 cat conftest.err >&5 5034 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5035 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5036 cat conftest.err >&5 5037 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5038 cat conftest.out >&5 5039 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5040 lt_cv_nm_interface="MS dumpbin" 5041 fi 5042 rm -f conftest* 5043fi 5044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5045$as_echo "$lt_cv_nm_interface" >&6; } 5046 5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5048$as_echo_n "checking whether ln -s works... " >&6; } 5049LN_S=$as_ln_s 5050if test "$LN_S" = "ln -s"; then 5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5052$as_echo "yes" >&6; } 5053else 5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5055$as_echo "no, using $LN_S" >&6; } 5056fi 5057 5058# find the maximum length of command line arguments 5059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5060$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5061if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5062 $as_echo_n "(cached) " >&6 5063else 5064 i=0 5065 teststring="ABCD" 5066 5067 case $build_os in 5068 msdosdjgpp*) 5069 # On DJGPP, this test can blow up pretty badly due to problems in libc 5070 # (any single argument exceeding 2000 bytes causes a buffer overrun 5071 # during glob expansion). Even if it were fixed, the result of this 5072 # check would be larger than it should be. 5073 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5074 ;; 5075 5076 gnu*) 5077 # Under GNU Hurd, this test is not required because there is 5078 # no limit to the length of command line arguments. 5079 # Libtool will interpret -1 as no limit whatsoever 5080 lt_cv_sys_max_cmd_len=-1; 5081 ;; 5082 5083 cygwin* | mingw* | cegcc*) 5084 # On Win9x/ME, this test blows up -- it succeeds, but takes 5085 # about 5 minutes as the teststring grows exponentially. 5086 # Worse, since 9x/ME are not pre-emptively multitasking, 5087 # you end up with a "frozen" computer, even though with patience 5088 # the test eventually succeeds (with a max line length of 256k). 5089 # Instead, let's just punt: use the minimum linelength reported by 5090 # all of the supported platforms: 8192 (on NT/2K/XP). 5091 lt_cv_sys_max_cmd_len=8192; 5092 ;; 5093 5094 mint*) 5095 # On MiNT this can take a long time and run out of memory. 5096 lt_cv_sys_max_cmd_len=8192; 5097 ;; 5098 5099 amigaos*) 5100 # On AmigaOS with pdksh, this test takes hours, literally. 5101 # So we just punt and use a minimum line length of 8192. 5102 lt_cv_sys_max_cmd_len=8192; 5103 ;; 5104 5105 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5106 # This has been around since 386BSD, at least. Likely further. 5107 if test -x /sbin/sysctl; then 5108 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5109 elif test -x /usr/sbin/sysctl; then 5110 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5111 else 5112 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5113 fi 5114 # And add a safety zone 5115 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5116 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5117 ;; 5118 5119 interix*) 5120 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5121 lt_cv_sys_max_cmd_len=196608 5122 ;; 5123 5124 osf*) 5125 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5126 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5127 # nice to cause kernel panics so lets avoid the loop below. 5128 # First set a reasonable default. 5129 lt_cv_sys_max_cmd_len=16384 5130 # 5131 if test -x /sbin/sysconfig; then 5132 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5133 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5134 esac 5135 fi 5136 ;; 5137 sco3.2v5*) 5138 lt_cv_sys_max_cmd_len=102400 5139 ;; 5140 sysv5* | sco5v6* | sysv4.2uw2*) 5141 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5142 if test -n "$kargmax"; then 5143 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5144 else 5145 lt_cv_sys_max_cmd_len=32768 5146 fi 5147 ;; 5148 *) 5149 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5150 if test -n "$lt_cv_sys_max_cmd_len"; then 5151 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5152 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5153 else 5154 # Make teststring a little bigger before we do anything with it. 5155 # a 1K string should be a reasonable start. 5156 for i in 1 2 3 4 5 6 7 8 ; do 5157 teststring=$teststring$teststring 5158 done 5159 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5160 # If test is not a shell built-in, we'll probably end up computing a 5161 # maximum length that is only half of the actual maximum length, but 5162 # we can't tell. 5163 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5164 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5165 test $i != 17 # 1/2 MB should be enough 5166 do 5167 i=`expr $i + 1` 5168 teststring=$teststring$teststring 5169 done 5170 # Only check the string length outside the loop. 5171 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5172 teststring= 5173 # Add a significant safety factor because C++ compilers can tack on 5174 # massive amounts of additional arguments before passing them to the 5175 # linker. It appears as though 1/2 is a usable value. 5176 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5177 fi 5178 ;; 5179 esac 5180 5181fi 5182 5183if test -n $lt_cv_sys_max_cmd_len ; then 5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5185$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5186else 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5188$as_echo "none" >&6; } 5189fi 5190max_cmd_len=$lt_cv_sys_max_cmd_len 5191 5192 5193 5194 5195 5196 5197: ${CP="cp -f"} 5198: ${MV="mv -f"} 5199: ${RM="rm -f"} 5200 5201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5202$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5203# Try some XSI features 5204xsi_shell=no 5205( _lt_dummy="a/b/c" 5206 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5207 = c,a/b,, \ 5208 && eval 'test $(( 1 + 1 )) -eq 2 \ 5209 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5210 && xsi_shell=yes 5211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5212$as_echo "$xsi_shell" >&6; } 5213 5214 5215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5216$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5217lt_shell_append=no 5218( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5219 >/dev/null 2>&1 \ 5220 && lt_shell_append=yes 5221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5222$as_echo "$lt_shell_append" >&6; } 5223 5224 5225if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5226 lt_unset=unset 5227else 5228 lt_unset=false 5229fi 5230 5231 5232 5233 5234 5235# test EBCDIC or ASCII 5236case `echo X|tr X '\101'` in 5237 A) # ASCII based system 5238 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5239 lt_SP2NL='tr \040 \012' 5240 lt_NL2SP='tr \015\012 \040\040' 5241 ;; 5242 *) # EBCDIC based system 5243 lt_SP2NL='tr \100 \n' 5244 lt_NL2SP='tr \r\n \100\100' 5245 ;; 5246esac 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5257$as_echo_n "checking for $LD option to reload object files... " >&6; } 5258if test "${lt_cv_ld_reload_flag+set}" = set; then : 5259 $as_echo_n "(cached) " >&6 5260else 5261 lt_cv_ld_reload_flag='-r' 5262fi 5263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5264$as_echo "$lt_cv_ld_reload_flag" >&6; } 5265reload_flag=$lt_cv_ld_reload_flag 5266case $reload_flag in 5267"" | " "*) ;; 5268*) reload_flag=" $reload_flag" ;; 5269esac 5270reload_cmds='$LD$reload_flag -o $output$reload_objs' 5271case $host_os in 5272 darwin*) 5273 if test "$GCC" = yes; then 5274 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5275 else 5276 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5277 fi 5278 ;; 5279esac 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289if test -n "$ac_tool_prefix"; then 5290 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5291set dummy ${ac_tool_prefix}objdump; ac_word=$2 5292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5293$as_echo_n "checking for $ac_word... " >&6; } 5294if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5295 $as_echo_n "(cached) " >&6 5296else 5297 if test -n "$OBJDUMP"; then 5298 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5299else 5300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5301for as_dir in $PATH 5302do 5303 IFS=$as_save_IFS 5304 test -z "$as_dir" && as_dir=. 5305 for ac_exec_ext in '' $ac_executable_extensions; do 5306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5307 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5309 break 2 5310 fi 5311done 5312 done 5313IFS=$as_save_IFS 5314 5315fi 5316fi 5317OBJDUMP=$ac_cv_prog_OBJDUMP 5318if test -n "$OBJDUMP"; then 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5320$as_echo "$OBJDUMP" >&6; } 5321else 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5323$as_echo "no" >&6; } 5324fi 5325 5326 5327fi 5328if test -z "$ac_cv_prog_OBJDUMP"; then 5329 ac_ct_OBJDUMP=$OBJDUMP 5330 # Extract the first word of "objdump", so it can be a program name with args. 5331set dummy objdump; ac_word=$2 5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5333$as_echo_n "checking for $ac_word... " >&6; } 5334if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5335 $as_echo_n "(cached) " >&6 5336else 5337 if test -n "$ac_ct_OBJDUMP"; then 5338 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5339else 5340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5341for as_dir in $PATH 5342do 5343 IFS=$as_save_IFS 5344 test -z "$as_dir" && as_dir=. 5345 for ac_exec_ext in '' $ac_executable_extensions; do 5346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5347 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5349 break 2 5350 fi 5351done 5352 done 5353IFS=$as_save_IFS 5354 5355fi 5356fi 5357ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5358if test -n "$ac_ct_OBJDUMP"; then 5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5360$as_echo "$ac_ct_OBJDUMP" >&6; } 5361else 5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5363$as_echo "no" >&6; } 5364fi 5365 5366 if test "x$ac_ct_OBJDUMP" = x; then 5367 OBJDUMP="false" 5368 else 5369 case $cross_compiling:$ac_tool_warned in 5370yes:) 5371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5373ac_tool_warned=yes ;; 5374esac 5375 OBJDUMP=$ac_ct_OBJDUMP 5376 fi 5377else 5378 OBJDUMP="$ac_cv_prog_OBJDUMP" 5379fi 5380 5381test -z "$OBJDUMP" && OBJDUMP=objdump 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5392$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5393if test "${lt_cv_deplibs_check_method+set}" = set; then : 5394 $as_echo_n "(cached) " >&6 5395else 5396 lt_cv_file_magic_cmd='$MAGIC_CMD' 5397lt_cv_file_magic_test_file= 5398lt_cv_deplibs_check_method='unknown' 5399# Need to set the preceding variable on all platforms that support 5400# interlibrary dependencies. 5401# 'none' -- dependencies not supported. 5402# `unknown' -- same as none, but documents that we really don't know. 5403# 'pass_all' -- all dependencies passed with no checks. 5404# 'test_compile' -- check by making test program. 5405# 'file_magic [[regex]]' -- check by looking for files in library path 5406# which responds to the $file_magic_cmd with a given extended regex. 5407# If you have `file' or equivalent on your system and you're not sure 5408# whether `pass_all' will *always* work, you probably want this one. 5409 5410case $host_os in 5411aix[4-9]*) 5412 lt_cv_deplibs_check_method=pass_all 5413 ;; 5414 5415beos*) 5416 lt_cv_deplibs_check_method=pass_all 5417 ;; 5418 5419bsdi[45]*) 5420 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5421 lt_cv_file_magic_cmd='/usr/bin/file -L' 5422 lt_cv_file_magic_test_file=/shlib/libc.so 5423 ;; 5424 5425cygwin*) 5426 # func_win32_libid is a shell function defined in ltmain.sh 5427 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5428 lt_cv_file_magic_cmd='func_win32_libid' 5429 ;; 5430 5431mingw* | pw32*) 5432 # Base MSYS/MinGW do not provide the 'file' command needed by 5433 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5434 # unless we find 'file', for example because we are cross-compiling. 5435 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5436 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5437 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5438 lt_cv_file_magic_cmd='func_win32_libid' 5439 else 5440 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5441 lt_cv_file_magic_cmd='$OBJDUMP -f' 5442 fi 5443 ;; 5444 5445cegcc*) 5446 # use the weaker test based on 'objdump'. See mingw*. 5447 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5448 lt_cv_file_magic_cmd='$OBJDUMP -f' 5449 ;; 5450 5451darwin* | rhapsody*) 5452 lt_cv_deplibs_check_method=pass_all 5453 ;; 5454 5455freebsd* | dragonfly*) 5456 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5457 case $host_cpu in 5458 i*86 ) 5459 # Not sure whether the presence of OpenBSD here was a mistake. 5460 # Let's accept both of them until this is cleared up. 5461 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5462 lt_cv_file_magic_cmd=/usr/bin/file 5463 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5464 ;; 5465 esac 5466 else 5467 lt_cv_deplibs_check_method=pass_all 5468 fi 5469 ;; 5470 5471gnu*) 5472 lt_cv_deplibs_check_method=pass_all 5473 ;; 5474 5475haiku*) 5476 lt_cv_deplibs_check_method=pass_all 5477 ;; 5478 5479hpux10.20* | hpux11*) 5480 lt_cv_file_magic_cmd=/usr/bin/file 5481 case $host_cpu in 5482 ia64*) 5483 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5484 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5485 ;; 5486 hppa*64*) 5487 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]' 5488 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5489 ;; 5490 *) 5491 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5492 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5493 ;; 5494 esac 5495 ;; 5496 5497interix[3-9]*) 5498 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5499 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5500 ;; 5501 5502irix5* | irix6* | nonstopux*) 5503 case $LD in 5504 *-32|*"-32 ") libmagic=32-bit;; 5505 *-n32|*"-n32 ") libmagic=N32;; 5506 *-64|*"-64 ") libmagic=64-bit;; 5507 *) libmagic=never-match;; 5508 esac 5509 lt_cv_deplibs_check_method=pass_all 5510 ;; 5511 5512# This must be Linux ELF. 5513linux* | k*bsd*-gnu | kopensolaris*-gnu) 5514 lt_cv_deplibs_check_method=pass_all 5515 ;; 5516 5517netbsd*) 5518 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5519 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5520 else 5521 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5522 fi 5523 ;; 5524 5525newos6*) 5526 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5527 lt_cv_file_magic_cmd=/usr/bin/file 5528 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5529 ;; 5530 5531*nto* | *qnx*) 5532 lt_cv_deplibs_check_method=pass_all 5533 ;; 5534 5535openbsd*) 5536 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5537 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5538 else 5539 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5540 fi 5541 ;; 5542 5543osf3* | osf4* | osf5*) 5544 lt_cv_deplibs_check_method=pass_all 5545 ;; 5546 5547rdos*) 5548 lt_cv_deplibs_check_method=pass_all 5549 ;; 5550 5551solaris*) 5552 lt_cv_deplibs_check_method=pass_all 5553 ;; 5554 5555sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5556 lt_cv_deplibs_check_method=pass_all 5557 ;; 5558 5559sysv4 | sysv4.3*) 5560 case $host_vendor in 5561 motorola) 5562 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]' 5563 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5564 ;; 5565 ncr) 5566 lt_cv_deplibs_check_method=pass_all 5567 ;; 5568 sequent) 5569 lt_cv_file_magic_cmd='/bin/file' 5570 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5571 ;; 5572 sni) 5573 lt_cv_file_magic_cmd='/bin/file' 5574 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5575 lt_cv_file_magic_test_file=/lib/libc.so 5576 ;; 5577 siemens) 5578 lt_cv_deplibs_check_method=pass_all 5579 ;; 5580 pc) 5581 lt_cv_deplibs_check_method=pass_all 5582 ;; 5583 esac 5584 ;; 5585 5586tpf*) 5587 lt_cv_deplibs_check_method=pass_all 5588 ;; 5589esac 5590 5591fi 5592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5593$as_echo "$lt_cv_deplibs_check_method" >&6; } 5594file_magic_cmd=$lt_cv_file_magic_cmd 5595deplibs_check_method=$lt_cv_deplibs_check_method 5596test -z "$deplibs_check_method" && deplibs_check_method=unknown 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609if test -n "$ac_tool_prefix"; then 5610 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5611set dummy ${ac_tool_prefix}ar; ac_word=$2 5612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5613$as_echo_n "checking for $ac_word... " >&6; } 5614if test "${ac_cv_prog_AR+set}" = set; then : 5615 $as_echo_n "(cached) " >&6 5616else 5617 if test -n "$AR"; then 5618 ac_cv_prog_AR="$AR" # Let the user override the test. 5619else 5620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5621for as_dir in $PATH 5622do 5623 IFS=$as_save_IFS 5624 test -z "$as_dir" && as_dir=. 5625 for ac_exec_ext in '' $ac_executable_extensions; do 5626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5627 ac_cv_prog_AR="${ac_tool_prefix}ar" 5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5629 break 2 5630 fi 5631done 5632 done 5633IFS=$as_save_IFS 5634 5635fi 5636fi 5637AR=$ac_cv_prog_AR 5638if test -n "$AR"; then 5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5640$as_echo "$AR" >&6; } 5641else 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5643$as_echo "no" >&6; } 5644fi 5645 5646 5647fi 5648if test -z "$ac_cv_prog_AR"; then 5649 ac_ct_AR=$AR 5650 # Extract the first word of "ar", so it can be a program name with args. 5651set dummy ar; ac_word=$2 5652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5653$as_echo_n "checking for $ac_word... " >&6; } 5654if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5655 $as_echo_n "(cached) " >&6 5656else 5657 if test -n "$ac_ct_AR"; then 5658 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5659else 5660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5661for as_dir in $PATH 5662do 5663 IFS=$as_save_IFS 5664 test -z "$as_dir" && as_dir=. 5665 for ac_exec_ext in '' $ac_executable_extensions; do 5666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5667 ac_cv_prog_ac_ct_AR="ar" 5668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5669 break 2 5670 fi 5671done 5672 done 5673IFS=$as_save_IFS 5674 5675fi 5676fi 5677ac_ct_AR=$ac_cv_prog_ac_ct_AR 5678if test -n "$ac_ct_AR"; then 5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5680$as_echo "$ac_ct_AR" >&6; } 5681else 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5683$as_echo "no" >&6; } 5684fi 5685 5686 if test "x$ac_ct_AR" = x; then 5687 AR="false" 5688 else 5689 case $cross_compiling:$ac_tool_warned in 5690yes:) 5691{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5692$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5693ac_tool_warned=yes ;; 5694esac 5695 AR=$ac_ct_AR 5696 fi 5697else 5698 AR="$ac_cv_prog_AR" 5699fi 5700 5701test -z "$AR" && AR=ar 5702test -z "$AR_FLAGS" && AR_FLAGS=cru 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714if test -n "$ac_tool_prefix"; then 5715 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5716set dummy ${ac_tool_prefix}strip; ac_word=$2 5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5718$as_echo_n "checking for $ac_word... " >&6; } 5719if test "${ac_cv_prog_STRIP+set}" = set; then : 5720 $as_echo_n "(cached) " >&6 5721else 5722 if test -n "$STRIP"; then 5723 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5724else 5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5726for as_dir in $PATH 5727do 5728 IFS=$as_save_IFS 5729 test -z "$as_dir" && as_dir=. 5730 for ac_exec_ext in '' $ac_executable_extensions; do 5731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5732 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5734 break 2 5735 fi 5736done 5737 done 5738IFS=$as_save_IFS 5739 5740fi 5741fi 5742STRIP=$ac_cv_prog_STRIP 5743if test -n "$STRIP"; then 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5745$as_echo "$STRIP" >&6; } 5746else 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5748$as_echo "no" >&6; } 5749fi 5750 5751 5752fi 5753if test -z "$ac_cv_prog_STRIP"; then 5754 ac_ct_STRIP=$STRIP 5755 # Extract the first word of "strip", so it can be a program name with args. 5756set dummy strip; ac_word=$2 5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5758$as_echo_n "checking for $ac_word... " >&6; } 5759if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5760 $as_echo_n "(cached) " >&6 5761else 5762 if test -n "$ac_ct_STRIP"; then 5763 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5764else 5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5766for as_dir in $PATH 5767do 5768 IFS=$as_save_IFS 5769 test -z "$as_dir" && as_dir=. 5770 for ac_exec_ext in '' $ac_executable_extensions; do 5771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5772 ac_cv_prog_ac_ct_STRIP="strip" 5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5774 break 2 5775 fi 5776done 5777 done 5778IFS=$as_save_IFS 5779 5780fi 5781fi 5782ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5783if test -n "$ac_ct_STRIP"; then 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5785$as_echo "$ac_ct_STRIP" >&6; } 5786else 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5788$as_echo "no" >&6; } 5789fi 5790 5791 if test "x$ac_ct_STRIP" = x; then 5792 STRIP=":" 5793 else 5794 case $cross_compiling:$ac_tool_warned in 5795yes:) 5796{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5797$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5798ac_tool_warned=yes ;; 5799esac 5800 STRIP=$ac_ct_STRIP 5801 fi 5802else 5803 STRIP="$ac_cv_prog_STRIP" 5804fi 5805 5806test -z "$STRIP" && STRIP=: 5807 5808 5809 5810 5811 5812 5813if test -n "$ac_tool_prefix"; then 5814 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5815set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5817$as_echo_n "checking for $ac_word... " >&6; } 5818if test "${ac_cv_prog_RANLIB+set}" = set; then : 5819 $as_echo_n "(cached) " >&6 5820else 5821 if test -n "$RANLIB"; then 5822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5823else 5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5825for as_dir in $PATH 5826do 5827 IFS=$as_save_IFS 5828 test -z "$as_dir" && as_dir=. 5829 for ac_exec_ext in '' $ac_executable_extensions; do 5830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5831 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5833 break 2 5834 fi 5835done 5836 done 5837IFS=$as_save_IFS 5838 5839fi 5840fi 5841RANLIB=$ac_cv_prog_RANLIB 5842if test -n "$RANLIB"; then 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5844$as_echo "$RANLIB" >&6; } 5845else 5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5847$as_echo "no" >&6; } 5848fi 5849 5850 5851fi 5852if test -z "$ac_cv_prog_RANLIB"; then 5853 ac_ct_RANLIB=$RANLIB 5854 # Extract the first word of "ranlib", so it can be a program name with args. 5855set dummy ranlib; ac_word=$2 5856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5857$as_echo_n "checking for $ac_word... " >&6; } 5858if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5859 $as_echo_n "(cached) " >&6 5860else 5861 if test -n "$ac_ct_RANLIB"; then 5862 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5863else 5864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5865for as_dir in $PATH 5866do 5867 IFS=$as_save_IFS 5868 test -z "$as_dir" && as_dir=. 5869 for ac_exec_ext in '' $ac_executable_extensions; do 5870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5871 ac_cv_prog_ac_ct_RANLIB="ranlib" 5872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5873 break 2 5874 fi 5875done 5876 done 5877IFS=$as_save_IFS 5878 5879fi 5880fi 5881ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5882if test -n "$ac_ct_RANLIB"; then 5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5884$as_echo "$ac_ct_RANLIB" >&6; } 5885else 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5887$as_echo "no" >&6; } 5888fi 5889 5890 if test "x$ac_ct_RANLIB" = x; then 5891 RANLIB=":" 5892 else 5893 case $cross_compiling:$ac_tool_warned in 5894yes:) 5895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5897ac_tool_warned=yes ;; 5898esac 5899 RANLIB=$ac_ct_RANLIB 5900 fi 5901else 5902 RANLIB="$ac_cv_prog_RANLIB" 5903fi 5904 5905test -z "$RANLIB" && RANLIB=: 5906 5907 5908 5909 5910 5911 5912# Determine commands to create old-style static archives. 5913old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5914old_postinstall_cmds='chmod 644 $oldlib' 5915old_postuninstall_cmds= 5916 5917if test -n "$RANLIB"; then 5918 case $host_os in 5919 openbsd*) 5920 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5921 ;; 5922 *) 5923 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5924 ;; 5925 esac 5926 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5927fi 5928 5929case $host_os in 5930 darwin*) 5931 lock_old_archive_extraction=yes ;; 5932 *) 5933 lock_old_archive_extraction=no ;; 5934esac 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974# If no C compiler was specified, use CC. 5975LTCC=${LTCC-"$CC"} 5976 5977# If no C compiler flags were specified, use CFLAGS. 5978LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5979 5980# Allow CC to be a program name with arguments. 5981compiler=$CC 5982 5983 5984# Check for command to grab the raw symbol name followed by C symbol from nm. 5985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5986$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5987if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 5988 $as_echo_n "(cached) " >&6 5989else 5990 5991# These are sane defaults that work on at least a few old systems. 5992# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5993 5994# Character class describing NM global symbol codes. 5995symcode='[BCDEGRST]' 5996 5997# Regexp to match symbols that can be accessed directly from C. 5998sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5999 6000# Define system-specific variables. 6001case $host_os in 6002aix*) 6003 symcode='[BCDT]' 6004 ;; 6005cygwin* | mingw* | pw32* | cegcc*) 6006 symcode='[ABCDGISTW]' 6007 ;; 6008hpux*) 6009 if test "$host_cpu" = ia64; then 6010 symcode='[ABCDEGRST]' 6011 fi 6012 ;; 6013irix* | nonstopux*) 6014 symcode='[BCDEGRST]' 6015 ;; 6016osf*) 6017 symcode='[BCDEGQRST]' 6018 ;; 6019solaris*) 6020 symcode='[BDRT]' 6021 ;; 6022sco3.2v5*) 6023 symcode='[DT]' 6024 ;; 6025sysv4.2uw2*) 6026 symcode='[DT]' 6027 ;; 6028sysv5* | sco5v6* | unixware* | OpenUNIX*) 6029 symcode='[ABDT]' 6030 ;; 6031sysv4) 6032 symcode='[DFNSTU]' 6033 ;; 6034esac 6035 6036# If we're using GNU nm, then use its standard symbol codes. 6037case `$NM -V 2>&1` in 6038*GNU* | *'with BFD'*) 6039 symcode='[ABCDGIRSTW]' ;; 6040esac 6041 6042# Transform an extracted symbol line into a proper C declaration. 6043# Some systems (esp. on ia64) link data and code symbols differently, 6044# so use this general approach. 6045lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6046 6047# Transform an extracted symbol line into symbol name and symbol address 6048lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6049lt_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'" 6050 6051# Handle CRLF in mingw tool chain 6052opt_cr= 6053case $build_os in 6054mingw*) 6055 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6056 ;; 6057esac 6058 6059# Try without a prefix underscore, then with it. 6060for ac_symprfx in "" "_"; do 6061 6062 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6063 symxfrm="\\1 $ac_symprfx\\2 \\2" 6064 6065 # Write the raw and C identifiers. 6066 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6067 # Fake it for dumpbin and say T for any non-static function 6068 # and D for any global variable. 6069 # Also find C++ and __fastcall symbols from MSVC++, 6070 # which start with @ or ?. 6071 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6072" {last_section=section; section=\$ 3};"\ 6073" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6074" \$ 0!~/External *\|/{next};"\ 6075" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6076" {if(hide[section]) next};"\ 6077" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6078" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6079" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6080" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6081" ' prfx=^$ac_symprfx" 6082 else 6083 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6084 fi 6085 6086 # Check to see that the pipe works correctly. 6087 pipe_works=no 6088 6089 rm -f conftest* 6090 cat > conftest.$ac_ext <<_LT_EOF 6091#ifdef __cplusplus 6092extern "C" { 6093#endif 6094char nm_test_var; 6095void nm_test_func(void); 6096void nm_test_func(void){} 6097#ifdef __cplusplus 6098} 6099#endif 6100int main(){nm_test_var='a';nm_test_func();return(0);} 6101_LT_EOF 6102 6103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6104 (eval $ac_compile) 2>&5 6105 ac_status=$? 6106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6107 test $ac_status = 0; }; then 6108 # Now try to grab the symbols. 6109 nlist=conftest.nm 6110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6111 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6112 ac_status=$? 6113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6114 test $ac_status = 0; } && test -s "$nlist"; then 6115 # Try sorting and uniquifying the output. 6116 if sort "$nlist" | uniq > "$nlist"T; then 6117 mv -f "$nlist"T "$nlist" 6118 else 6119 rm -f "$nlist"T 6120 fi 6121 6122 # Make sure that we snagged all the symbols we need. 6123 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6124 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6125 cat <<_LT_EOF > conftest.$ac_ext 6126#ifdef __cplusplus 6127extern "C" { 6128#endif 6129 6130_LT_EOF 6131 # Now generate the symbol file. 6132 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6133 6134 cat <<_LT_EOF >> conftest.$ac_ext 6135 6136/* The mapping between symbol names and symbols. */ 6137const struct { 6138 const char *name; 6139 void *address; 6140} 6141lt__PROGRAM__LTX_preloaded_symbols[] = 6142{ 6143 { "@PROGRAM@", (void *) 0 }, 6144_LT_EOF 6145 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6146 cat <<\_LT_EOF >> conftest.$ac_ext 6147 {0, (void *) 0} 6148}; 6149 6150/* This works around a problem in FreeBSD linker */ 6151#ifdef FREEBSD_WORKAROUND 6152static const void *lt_preloaded_setup() { 6153 return lt__PROGRAM__LTX_preloaded_symbols; 6154} 6155#endif 6156 6157#ifdef __cplusplus 6158} 6159#endif 6160_LT_EOF 6161 # Now try linking the two files. 6162 mv conftest.$ac_objext conftstm.$ac_objext 6163 lt_save_LIBS="$LIBS" 6164 lt_save_CFLAGS="$CFLAGS" 6165 LIBS="conftstm.$ac_objext" 6166 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6167 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6168 (eval $ac_link) 2>&5 6169 ac_status=$? 6170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6171 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6172 pipe_works=yes 6173 fi 6174 LIBS="$lt_save_LIBS" 6175 CFLAGS="$lt_save_CFLAGS" 6176 else 6177 echo "cannot find nm_test_func in $nlist" >&5 6178 fi 6179 else 6180 echo "cannot find nm_test_var in $nlist" >&5 6181 fi 6182 else 6183 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6184 fi 6185 else 6186 echo "$progname: failed program was:" >&5 6187 cat conftest.$ac_ext >&5 6188 fi 6189 rm -rf conftest* conftst* 6190 6191 # Do not use the global_symbol_pipe unless it works. 6192 if test "$pipe_works" = yes; then 6193 break 6194 else 6195 lt_cv_sys_global_symbol_pipe= 6196 fi 6197done 6198 6199fi 6200 6201if test -z "$lt_cv_sys_global_symbol_pipe"; then 6202 lt_cv_sys_global_symbol_to_cdecl= 6203fi 6204if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6206$as_echo "failed" >&6; } 6207else 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6209$as_echo "ok" >&6; } 6210fi 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233# Check whether --enable-libtool-lock was given. 6234if test "${enable_libtool_lock+set}" = set; then : 6235 enableval=$enable_libtool_lock; 6236fi 6237 6238test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6239 6240# Some flags need to be propagated to the compiler or linker for good 6241# libtool support. 6242case $host in 6243ia64-*-hpux*) 6244 # Find out which ABI we are using. 6245 echo 'int i;' > conftest.$ac_ext 6246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6247 (eval $ac_compile) 2>&5 6248 ac_status=$? 6249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6250 test $ac_status = 0; }; then 6251 case `/usr/bin/file conftest.$ac_objext` in 6252 *ELF-32*) 6253 HPUX_IA64_MODE="32" 6254 ;; 6255 *ELF-64*) 6256 HPUX_IA64_MODE="64" 6257 ;; 6258 esac 6259 fi 6260 rm -rf conftest* 6261 ;; 6262*-*-irix6*) 6263 # Find out which ABI we are using. 6264 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6266 (eval $ac_compile) 2>&5 6267 ac_status=$? 6268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6269 test $ac_status = 0; }; then 6270 if test "$lt_cv_prog_gnu_ld" = yes; then 6271 case `/usr/bin/file conftest.$ac_objext` in 6272 *32-bit*) 6273 LD="${LD-ld} -melf32bsmip" 6274 ;; 6275 *N32*) 6276 LD="${LD-ld} -melf32bmipn32" 6277 ;; 6278 *64-bit*) 6279 LD="${LD-ld} -melf64bmip" 6280 ;; 6281 esac 6282 else 6283 case `/usr/bin/file conftest.$ac_objext` in 6284 *32-bit*) 6285 LD="${LD-ld} -32" 6286 ;; 6287 *N32*) 6288 LD="${LD-ld} -n32" 6289 ;; 6290 *64-bit*) 6291 LD="${LD-ld} -64" 6292 ;; 6293 esac 6294 fi 6295 fi 6296 rm -rf conftest* 6297 ;; 6298 6299x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6300s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6301 # Find out which ABI we are using. 6302 echo 'int i;' > conftest.$ac_ext 6303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6304 (eval $ac_compile) 2>&5 6305 ac_status=$? 6306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6307 test $ac_status = 0; }; then 6308 case `/usr/bin/file conftest.o` in 6309 *32-bit*) 6310 case $host in 6311 x86_64-*kfreebsd*-gnu) 6312 LD="${LD-ld} -m elf_i386_fbsd" 6313 ;; 6314 x86_64-*linux*) 6315 case `/usr/bin/file conftest.o` in 6316 *x86-64*) 6317 LD="${LD-ld} -m elf32_x86_64" 6318 ;; 6319 *) 6320 LD="${LD-ld} -m elf_i386" 6321 ;; 6322 esac 6323 ;; 6324 powerpc64le-*linux*) 6325 LD="${LD-ld} -m elf32lppclinux" 6326 ;; 6327 powerpc64-*linux*) 6328 LD="${LD-ld} -m elf32ppclinux" 6329 ;; 6330 s390x-*linux*) 6331 LD="${LD-ld} -m elf_s390" 6332 ;; 6333 sparc64-*linux*) 6334 LD="${LD-ld} -m elf32_sparc" 6335 ;; 6336 esac 6337 ;; 6338 *64-bit*) 6339 case $host in 6340 x86_64-*kfreebsd*-gnu) 6341 LD="${LD-ld} -m elf_x86_64_fbsd" 6342 ;; 6343 x86_64-*linux*) 6344 LD="${LD-ld} -m elf_x86_64" 6345 ;; 6346 powerpcle-*linux*) 6347 LD="${LD-ld} -m elf64lppc" 6348 ;; 6349 powerpc-*linux*) 6350 LD="${LD-ld} -m elf64ppc" 6351 ;; 6352 s390*-*linux*|s390*-*tpf*) 6353 LD="${LD-ld} -m elf64_s390" 6354 ;; 6355 sparc*-*linux*) 6356 LD="${LD-ld} -m elf64_sparc" 6357 ;; 6358 esac 6359 ;; 6360 esac 6361 fi 6362 rm -rf conftest* 6363 ;; 6364 6365*-*-sco3.2v5*) 6366 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6367 SAVE_CFLAGS="$CFLAGS" 6368 CFLAGS="$CFLAGS -belf" 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6370$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6371if test "${lt_cv_cc_needs_belf+set}" = set; then : 6372 $as_echo_n "(cached) " >&6 6373else 6374 ac_ext=c 6375ac_cpp='$CPP $CPPFLAGS' 6376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6378ac_compiler_gnu=$ac_cv_c_compiler_gnu 6379 6380 if test x$gcc_no_link = xyes; then 6381 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 6382fi 6383cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6384/* end confdefs.h. */ 6385 6386int 6387main () 6388{ 6389 6390 ; 6391 return 0; 6392} 6393_ACEOF 6394if ac_fn_c_try_link "$LINENO"; then : 6395 lt_cv_cc_needs_belf=yes 6396else 6397 lt_cv_cc_needs_belf=no 6398fi 6399rm -f core conftest.err conftest.$ac_objext \ 6400 conftest$ac_exeext conftest.$ac_ext 6401 ac_ext=c 6402ac_cpp='$CPP $CPPFLAGS' 6403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6405ac_compiler_gnu=$ac_cv_c_compiler_gnu 6406 6407fi 6408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6409$as_echo "$lt_cv_cc_needs_belf" >&6; } 6410 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6411 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6412 CFLAGS="$SAVE_CFLAGS" 6413 fi 6414 ;; 6415sparc*-*solaris*) 6416 # Find out which ABI we are using. 6417 echo 'int i;' > conftest.$ac_ext 6418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6419 (eval $ac_compile) 2>&5 6420 ac_status=$? 6421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6422 test $ac_status = 0; }; then 6423 case `/usr/bin/file conftest.o` in 6424 *64-bit*) 6425 case $lt_cv_prog_gnu_ld in 6426 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6427 *) 6428 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6429 LD="${LD-ld} -64" 6430 fi 6431 ;; 6432 esac 6433 ;; 6434 esac 6435 fi 6436 rm -rf conftest* 6437 ;; 6438esac 6439 6440need_locks="$enable_libtool_lock" 6441 6442 6443 case $host_os in 6444 rhapsody* | darwin*) 6445 if test -n "$ac_tool_prefix"; then 6446 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6447set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6449$as_echo_n "checking for $ac_word... " >&6; } 6450if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6451 $as_echo_n "(cached) " >&6 6452else 6453 if test -n "$DSYMUTIL"; then 6454 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6455else 6456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6457for as_dir in $PATH 6458do 6459 IFS=$as_save_IFS 6460 test -z "$as_dir" && as_dir=. 6461 for ac_exec_ext in '' $ac_executable_extensions; do 6462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6463 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6465 break 2 6466 fi 6467done 6468 done 6469IFS=$as_save_IFS 6470 6471fi 6472fi 6473DSYMUTIL=$ac_cv_prog_DSYMUTIL 6474if test -n "$DSYMUTIL"; then 6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6476$as_echo "$DSYMUTIL" >&6; } 6477else 6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6479$as_echo "no" >&6; } 6480fi 6481 6482 6483fi 6484if test -z "$ac_cv_prog_DSYMUTIL"; then 6485 ac_ct_DSYMUTIL=$DSYMUTIL 6486 # Extract the first word of "dsymutil", so it can be a program name with args. 6487set dummy dsymutil; ac_word=$2 6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6489$as_echo_n "checking for $ac_word... " >&6; } 6490if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6491 $as_echo_n "(cached) " >&6 6492else 6493 if test -n "$ac_ct_DSYMUTIL"; then 6494 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6495else 6496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6497for as_dir in $PATH 6498do 6499 IFS=$as_save_IFS 6500 test -z "$as_dir" && as_dir=. 6501 for ac_exec_ext in '' $ac_executable_extensions; do 6502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6503 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6505 break 2 6506 fi 6507done 6508 done 6509IFS=$as_save_IFS 6510 6511fi 6512fi 6513ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6514if test -n "$ac_ct_DSYMUTIL"; then 6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6516$as_echo "$ac_ct_DSYMUTIL" >&6; } 6517else 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6519$as_echo "no" >&6; } 6520fi 6521 6522 if test "x$ac_ct_DSYMUTIL" = x; then 6523 DSYMUTIL=":" 6524 else 6525 case $cross_compiling:$ac_tool_warned in 6526yes:) 6527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6529ac_tool_warned=yes ;; 6530esac 6531 DSYMUTIL=$ac_ct_DSYMUTIL 6532 fi 6533else 6534 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6535fi 6536 6537 if test -n "$ac_tool_prefix"; then 6538 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6539set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6541$as_echo_n "checking for $ac_word... " >&6; } 6542if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6543 $as_echo_n "(cached) " >&6 6544else 6545 if test -n "$NMEDIT"; then 6546 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6547else 6548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6549for as_dir in $PATH 6550do 6551 IFS=$as_save_IFS 6552 test -z "$as_dir" && as_dir=. 6553 for ac_exec_ext in '' $ac_executable_extensions; do 6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6555 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6557 break 2 6558 fi 6559done 6560 done 6561IFS=$as_save_IFS 6562 6563fi 6564fi 6565NMEDIT=$ac_cv_prog_NMEDIT 6566if test -n "$NMEDIT"; then 6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6568$as_echo "$NMEDIT" >&6; } 6569else 6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6571$as_echo "no" >&6; } 6572fi 6573 6574 6575fi 6576if test -z "$ac_cv_prog_NMEDIT"; then 6577 ac_ct_NMEDIT=$NMEDIT 6578 # Extract the first word of "nmedit", so it can be a program name with args. 6579set dummy nmedit; ac_word=$2 6580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6581$as_echo_n "checking for $ac_word... " >&6; } 6582if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6583 $as_echo_n "(cached) " >&6 6584else 6585 if test -n "$ac_ct_NMEDIT"; then 6586 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6587else 6588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6589for as_dir in $PATH 6590do 6591 IFS=$as_save_IFS 6592 test -z "$as_dir" && as_dir=. 6593 for ac_exec_ext in '' $ac_executable_extensions; do 6594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6595 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6597 break 2 6598 fi 6599done 6600 done 6601IFS=$as_save_IFS 6602 6603fi 6604fi 6605ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6606if test -n "$ac_ct_NMEDIT"; then 6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6608$as_echo "$ac_ct_NMEDIT" >&6; } 6609else 6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6611$as_echo "no" >&6; } 6612fi 6613 6614 if test "x$ac_ct_NMEDIT" = x; then 6615 NMEDIT=":" 6616 else 6617 case $cross_compiling:$ac_tool_warned in 6618yes:) 6619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6621ac_tool_warned=yes ;; 6622esac 6623 NMEDIT=$ac_ct_NMEDIT 6624 fi 6625else 6626 NMEDIT="$ac_cv_prog_NMEDIT" 6627fi 6628 6629 if test -n "$ac_tool_prefix"; then 6630 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6631set dummy ${ac_tool_prefix}lipo; ac_word=$2 6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6633$as_echo_n "checking for $ac_word... " >&6; } 6634if test "${ac_cv_prog_LIPO+set}" = set; then : 6635 $as_echo_n "(cached) " >&6 6636else 6637 if test -n "$LIPO"; then 6638 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6639else 6640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6641for as_dir in $PATH 6642do 6643 IFS=$as_save_IFS 6644 test -z "$as_dir" && as_dir=. 6645 for ac_exec_ext in '' $ac_executable_extensions; do 6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6647 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6649 break 2 6650 fi 6651done 6652 done 6653IFS=$as_save_IFS 6654 6655fi 6656fi 6657LIPO=$ac_cv_prog_LIPO 6658if test -n "$LIPO"; then 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6660$as_echo "$LIPO" >&6; } 6661else 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6663$as_echo "no" >&6; } 6664fi 6665 6666 6667fi 6668if test -z "$ac_cv_prog_LIPO"; then 6669 ac_ct_LIPO=$LIPO 6670 # Extract the first word of "lipo", so it can be a program name with args. 6671set dummy lipo; ac_word=$2 6672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6673$as_echo_n "checking for $ac_word... " >&6; } 6674if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6675 $as_echo_n "(cached) " >&6 6676else 6677 if test -n "$ac_ct_LIPO"; then 6678 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6679else 6680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6681for as_dir in $PATH 6682do 6683 IFS=$as_save_IFS 6684 test -z "$as_dir" && as_dir=. 6685 for ac_exec_ext in '' $ac_executable_extensions; do 6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6687 ac_cv_prog_ac_ct_LIPO="lipo" 6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6689 break 2 6690 fi 6691done 6692 done 6693IFS=$as_save_IFS 6694 6695fi 6696fi 6697ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6698if test -n "$ac_ct_LIPO"; then 6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6700$as_echo "$ac_ct_LIPO" >&6; } 6701else 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6703$as_echo "no" >&6; } 6704fi 6705 6706 if test "x$ac_ct_LIPO" = x; then 6707 LIPO=":" 6708 else 6709 case $cross_compiling:$ac_tool_warned in 6710yes:) 6711{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6712$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6713ac_tool_warned=yes ;; 6714esac 6715 LIPO=$ac_ct_LIPO 6716 fi 6717else 6718 LIPO="$ac_cv_prog_LIPO" 6719fi 6720 6721 if test -n "$ac_tool_prefix"; then 6722 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6723set dummy ${ac_tool_prefix}otool; ac_word=$2 6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6725$as_echo_n "checking for $ac_word... " >&6; } 6726if test "${ac_cv_prog_OTOOL+set}" = set; then : 6727 $as_echo_n "(cached) " >&6 6728else 6729 if test -n "$OTOOL"; then 6730 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6731else 6732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6733for as_dir in $PATH 6734do 6735 IFS=$as_save_IFS 6736 test -z "$as_dir" && as_dir=. 6737 for ac_exec_ext in '' $ac_executable_extensions; do 6738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6739 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6741 break 2 6742 fi 6743done 6744 done 6745IFS=$as_save_IFS 6746 6747fi 6748fi 6749OTOOL=$ac_cv_prog_OTOOL 6750if test -n "$OTOOL"; then 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6752$as_echo "$OTOOL" >&6; } 6753else 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6755$as_echo "no" >&6; } 6756fi 6757 6758 6759fi 6760if test -z "$ac_cv_prog_OTOOL"; then 6761 ac_ct_OTOOL=$OTOOL 6762 # Extract the first word of "otool", so it can be a program name with args. 6763set dummy otool; ac_word=$2 6764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6765$as_echo_n "checking for $ac_word... " >&6; } 6766if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 6767 $as_echo_n "(cached) " >&6 6768else 6769 if test -n "$ac_ct_OTOOL"; then 6770 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6771else 6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6773for as_dir in $PATH 6774do 6775 IFS=$as_save_IFS 6776 test -z "$as_dir" && as_dir=. 6777 for ac_exec_ext in '' $ac_executable_extensions; do 6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6779 ac_cv_prog_ac_ct_OTOOL="otool" 6780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6781 break 2 6782 fi 6783done 6784 done 6785IFS=$as_save_IFS 6786 6787fi 6788fi 6789ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6790if test -n "$ac_ct_OTOOL"; then 6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6792$as_echo "$ac_ct_OTOOL" >&6; } 6793else 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6795$as_echo "no" >&6; } 6796fi 6797 6798 if test "x$ac_ct_OTOOL" = x; then 6799 OTOOL=":" 6800 else 6801 case $cross_compiling:$ac_tool_warned in 6802yes:) 6803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6805ac_tool_warned=yes ;; 6806esac 6807 OTOOL=$ac_ct_OTOOL 6808 fi 6809else 6810 OTOOL="$ac_cv_prog_OTOOL" 6811fi 6812 6813 if test -n "$ac_tool_prefix"; then 6814 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6815set dummy ${ac_tool_prefix}otool64; ac_word=$2 6816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6817$as_echo_n "checking for $ac_word... " >&6; } 6818if test "${ac_cv_prog_OTOOL64+set}" = set; then : 6819 $as_echo_n "(cached) " >&6 6820else 6821 if test -n "$OTOOL64"; then 6822 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6823else 6824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6825for as_dir in $PATH 6826do 6827 IFS=$as_save_IFS 6828 test -z "$as_dir" && as_dir=. 6829 for ac_exec_ext in '' $ac_executable_extensions; do 6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6831 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6833 break 2 6834 fi 6835done 6836 done 6837IFS=$as_save_IFS 6838 6839fi 6840fi 6841OTOOL64=$ac_cv_prog_OTOOL64 6842if test -n "$OTOOL64"; then 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6844$as_echo "$OTOOL64" >&6; } 6845else 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6847$as_echo "no" >&6; } 6848fi 6849 6850 6851fi 6852if test -z "$ac_cv_prog_OTOOL64"; then 6853 ac_ct_OTOOL64=$OTOOL64 6854 # Extract the first word of "otool64", so it can be a program name with args. 6855set dummy otool64; ac_word=$2 6856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6857$as_echo_n "checking for $ac_word... " >&6; } 6858if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 6859 $as_echo_n "(cached) " >&6 6860else 6861 if test -n "$ac_ct_OTOOL64"; then 6862 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6863else 6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6865for as_dir in $PATH 6866do 6867 IFS=$as_save_IFS 6868 test -z "$as_dir" && as_dir=. 6869 for ac_exec_ext in '' $ac_executable_extensions; do 6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6871 ac_cv_prog_ac_ct_OTOOL64="otool64" 6872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6873 break 2 6874 fi 6875done 6876 done 6877IFS=$as_save_IFS 6878 6879fi 6880fi 6881ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6882if test -n "$ac_ct_OTOOL64"; then 6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6884$as_echo "$ac_ct_OTOOL64" >&6; } 6885else 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6887$as_echo "no" >&6; } 6888fi 6889 6890 if test "x$ac_ct_OTOOL64" = x; then 6891 OTOOL64=":" 6892 else 6893 case $cross_compiling:$ac_tool_warned in 6894yes:) 6895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6897ac_tool_warned=yes ;; 6898esac 6899 OTOOL64=$ac_ct_OTOOL64 6900 fi 6901else 6902 OTOOL64="$ac_cv_prog_OTOOL64" 6903fi 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6932$as_echo_n "checking for -single_module linker flag... " >&6; } 6933if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 6934 $as_echo_n "(cached) " >&6 6935else 6936 lt_cv_apple_cc_single_mod=no 6937 if test -z "${LT_MULTI_MODULE}"; then 6938 # By default we will add the -single_module flag. You can override 6939 # by either setting the environment variable LT_MULTI_MODULE 6940 # non-empty at configure time, or by adding -multi_module to the 6941 # link flags. 6942 rm -rf libconftest.dylib* 6943 echo "int foo(void){return 1;}" > conftest.c 6944 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6945-dynamiclib -Wl,-single_module conftest.c" >&5 6946 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6947 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6948 _lt_result=$? 6949 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6950 lt_cv_apple_cc_single_mod=yes 6951 else 6952 cat conftest.err >&5 6953 fi 6954 rm -rf libconftest.dylib* 6955 rm -f conftest.* 6956 fi 6957fi 6958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6959$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6961$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6962if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 6963 $as_echo_n "(cached) " >&6 6964else 6965 lt_cv_ld_exported_symbols_list=no 6966 save_LDFLAGS=$LDFLAGS 6967 echo "_main" > conftest.sym 6968 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6969 if test x$gcc_no_link = xyes; then 6970 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 6971fi 6972cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6973/* end confdefs.h. */ 6974 6975int 6976main () 6977{ 6978 6979 ; 6980 return 0; 6981} 6982_ACEOF 6983if ac_fn_c_try_link "$LINENO"; then : 6984 lt_cv_ld_exported_symbols_list=yes 6985else 6986 lt_cv_ld_exported_symbols_list=no 6987fi 6988rm -f core conftest.err conftest.$ac_objext \ 6989 conftest$ac_exeext conftest.$ac_ext 6990 LDFLAGS="$save_LDFLAGS" 6991 6992fi 6993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6994$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6996$as_echo_n "checking for -force_load linker flag... " >&6; } 6997if test "${lt_cv_ld_force_load+set}" = set; then : 6998 $as_echo_n "(cached) " >&6 6999else 7000 lt_cv_ld_force_load=no 7001 cat > conftest.c << _LT_EOF 7002int forced_loaded() { return 2;} 7003_LT_EOF 7004 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7005 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7006 echo "$AR cru libconftest.a conftest.o" >&5 7007 $AR cru libconftest.a conftest.o 2>&5 7008 cat > conftest.c << _LT_EOF 7009int main() { return 0;} 7010_LT_EOF 7011 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7012 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7013 _lt_result=$? 7014 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7015 lt_cv_ld_force_load=yes 7016 else 7017 cat conftest.err >&5 7018 fi 7019 rm -f conftest.err libconftest.a conftest conftest.c 7020 rm -rf conftest.dSYM 7021 7022fi 7023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7024$as_echo "$lt_cv_ld_force_load" >&6; } 7025 case $host_os in 7026 rhapsody* | darwin1.[012]) 7027 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7028 darwin1.*) 7029 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7030 darwin*) # darwin 5.x on 7031 # if running on 10.5 or later, the deployment target defaults 7032 # to the OS version, if on x86, and 10.4, the deployment 7033 # target defaults to 10.4. Don't you love it? 7034 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7035 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7036 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7037 10.[012][,.]*) 7038 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7039 10.*) 7040 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7041 esac 7042 ;; 7043 esac 7044 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7045 _lt_dar_single_mod='$single_module' 7046 fi 7047 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7048 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7049 else 7050 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7051 fi 7052 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7053 _lt_dsymutil='~$DSYMUTIL $lib || :' 7054 else 7055 _lt_dsymutil= 7056 fi 7057 ;; 7058 esac 7059 7060for ac_header in dlfcn.h 7061do : 7062 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7063" 7064if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7065 cat >>confdefs.h <<_ACEOF 7066#define HAVE_DLFCN_H 1 7067_ACEOF 7068 7069fi 7070 7071done 7072 7073 7074 7075 7076 7077# Set options 7078 7079 7080 7081 enable_dlopen=no 7082 7083 7084 enable_win32_dll=no 7085 7086 7087 # Check whether --enable-shared was given. 7088if test "${enable_shared+set}" = set; then : 7089 enableval=$enable_shared; p=${PACKAGE-default} 7090 case $enableval in 7091 yes) enable_shared=yes ;; 7092 no) enable_shared=no ;; 7093 *) 7094 enable_shared=no 7095 # Look at the argument we got. We use all the common list separators. 7096 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7097 for pkg in $enableval; do 7098 IFS="$lt_save_ifs" 7099 if test "X$pkg" = "X$p"; then 7100 enable_shared=yes 7101 fi 7102 done 7103 IFS="$lt_save_ifs" 7104 ;; 7105 esac 7106else 7107 enable_shared=yes 7108fi 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 # Check whether --enable-static was given. 7119if test "${enable_static+set}" = set; then : 7120 enableval=$enable_static; p=${PACKAGE-default} 7121 case $enableval in 7122 yes) enable_static=yes ;; 7123 no) enable_static=no ;; 7124 *) 7125 enable_static=no 7126 # Look at the argument we got. We use all the common list separators. 7127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7128 for pkg in $enableval; do 7129 IFS="$lt_save_ifs" 7130 if test "X$pkg" = "X$p"; then 7131 enable_static=yes 7132 fi 7133 done 7134 IFS="$lt_save_ifs" 7135 ;; 7136 esac 7137else 7138 enable_static=yes 7139fi 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150# Check whether --with-pic was given. 7151if test "${with_pic+set}" = set; then : 7152 withval=$with_pic; pic_mode="$withval" 7153else 7154 pic_mode=default 7155fi 7156 7157 7158test -z "$pic_mode" && pic_mode=default 7159 7160 7161 7162 7163 7164 7165 7166 # Check whether --enable-fast-install was given. 7167if test "${enable_fast_install+set}" = set; then : 7168 enableval=$enable_fast_install; p=${PACKAGE-default} 7169 case $enableval in 7170 yes) enable_fast_install=yes ;; 7171 no) enable_fast_install=no ;; 7172 *) 7173 enable_fast_install=no 7174 # Look at the argument we got. We use all the common list separators. 7175 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7176 for pkg in $enableval; do 7177 IFS="$lt_save_ifs" 7178 if test "X$pkg" = "X$p"; then 7179 enable_fast_install=yes 7180 fi 7181 done 7182 IFS="$lt_save_ifs" 7183 ;; 7184 esac 7185else 7186 enable_fast_install=yes 7187fi 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199# This can be used to rebuild libtool when needed 7200LIBTOOL_DEPS="$ltmain" 7201 7202# Always use our own libtool. 7203LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230test -z "$LN_S" && LN_S="ln -s" 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245if test -n "${ZSH_VERSION+set}" ; then 7246 setopt NO_GLOB_SUBST 7247fi 7248 7249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7250$as_echo_n "checking for objdir... " >&6; } 7251if test "${lt_cv_objdir+set}" = set; then : 7252 $as_echo_n "(cached) " >&6 7253else 7254 rm -f .libs 2>/dev/null 7255mkdir .libs 2>/dev/null 7256if test -d .libs; then 7257 lt_cv_objdir=.libs 7258else 7259 # MS-DOS does not allow filenames that begin with a dot. 7260 lt_cv_objdir=_libs 7261fi 7262rmdir .libs 2>/dev/null 7263fi 7264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7265$as_echo "$lt_cv_objdir" >&6; } 7266objdir=$lt_cv_objdir 7267 7268 7269 7270 7271 7272cat >>confdefs.h <<_ACEOF 7273#define LT_OBJDIR "$lt_cv_objdir/" 7274_ACEOF 7275 7276 7277 7278 7279case $host_os in 7280aix3*) 7281 # AIX sometimes has problems with the GCC collect2 program. For some 7282 # reason, if we set the COLLECT_NAMES environment variable, the problems 7283 # vanish in a puff of smoke. 7284 if test "X${COLLECT_NAMES+set}" != Xset; then 7285 COLLECT_NAMES= 7286 export COLLECT_NAMES 7287 fi 7288 ;; 7289esac 7290 7291# Global variables: 7292ofile=libtool 7293can_build_shared=yes 7294 7295# All known linkers require a `.a' archive for static linking (except MSVC, 7296# which needs '.lib'). 7297libext=a 7298 7299with_gnu_ld="$lt_cv_prog_gnu_ld" 7300 7301old_CC="$CC" 7302old_CFLAGS="$CFLAGS" 7303 7304# Set sane defaults for various variables 7305test -z "$CC" && CC=cc 7306test -z "$LTCC" && LTCC=$CC 7307test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7308test -z "$LD" && LD=ld 7309test -z "$ac_objext" && ac_objext=o 7310 7311for cc_temp in $compiler""; do 7312 case $cc_temp in 7313 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7314 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7315 \-*) ;; 7316 *) break;; 7317 esac 7318done 7319cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7320 7321 7322# Only perform the check for file, if the check method requires it 7323test -z "$MAGIC_CMD" && MAGIC_CMD=file 7324case $deplibs_check_method in 7325file_magic*) 7326 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7328$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7329if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7330 $as_echo_n "(cached) " >&6 7331else 7332 case $MAGIC_CMD in 7333[\\/*] | ?:[\\/]*) 7334 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7335 ;; 7336*) 7337 lt_save_MAGIC_CMD="$MAGIC_CMD" 7338 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7339 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7340 for ac_dir in $ac_dummy; do 7341 IFS="$lt_save_ifs" 7342 test -z "$ac_dir" && ac_dir=. 7343 if test -f $ac_dir/${ac_tool_prefix}file; then 7344 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7345 if test -n "$file_magic_test_file"; then 7346 case $deplibs_check_method in 7347 "file_magic "*) 7348 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7349 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7350 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7351 $EGREP "$file_magic_regex" > /dev/null; then 7352 : 7353 else 7354 cat <<_LT_EOF 1>&2 7355 7356*** Warning: the command libtool uses to detect shared libraries, 7357*** $file_magic_cmd, produces output that libtool cannot recognize. 7358*** The result is that libtool may fail to recognize shared libraries 7359*** as such. This will affect the creation of libtool libraries that 7360*** depend on shared libraries, but programs linked with such libtool 7361*** libraries will work regardless of this problem. Nevertheless, you 7362*** may want to report the problem to your system manager and/or to 7363*** bug-libtool@gnu.org 7364 7365_LT_EOF 7366 fi ;; 7367 esac 7368 fi 7369 break 7370 fi 7371 done 7372 IFS="$lt_save_ifs" 7373 MAGIC_CMD="$lt_save_MAGIC_CMD" 7374 ;; 7375esac 7376fi 7377 7378MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7379if test -n "$MAGIC_CMD"; then 7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7381$as_echo "$MAGIC_CMD" >&6; } 7382else 7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7384$as_echo "no" >&6; } 7385fi 7386 7387 7388 7389 7390 7391if test -z "$lt_cv_path_MAGIC_CMD"; then 7392 if test -n "$ac_tool_prefix"; then 7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7394$as_echo_n "checking for file... " >&6; } 7395if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7396 $as_echo_n "(cached) " >&6 7397else 7398 case $MAGIC_CMD in 7399[\\/*] | ?:[\\/]*) 7400 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7401 ;; 7402*) 7403 lt_save_MAGIC_CMD="$MAGIC_CMD" 7404 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7405 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7406 for ac_dir in $ac_dummy; do 7407 IFS="$lt_save_ifs" 7408 test -z "$ac_dir" && ac_dir=. 7409 if test -f $ac_dir/file; then 7410 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7411 if test -n "$file_magic_test_file"; then 7412 case $deplibs_check_method in 7413 "file_magic "*) 7414 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7415 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7416 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7417 $EGREP "$file_magic_regex" > /dev/null; then 7418 : 7419 else 7420 cat <<_LT_EOF 1>&2 7421 7422*** Warning: the command libtool uses to detect shared libraries, 7423*** $file_magic_cmd, produces output that libtool cannot recognize. 7424*** The result is that libtool may fail to recognize shared libraries 7425*** as such. This will affect the creation of libtool libraries that 7426*** depend on shared libraries, but programs linked with such libtool 7427*** libraries will work regardless of this problem. Nevertheless, you 7428*** may want to report the problem to your system manager and/or to 7429*** bug-libtool@gnu.org 7430 7431_LT_EOF 7432 fi ;; 7433 esac 7434 fi 7435 break 7436 fi 7437 done 7438 IFS="$lt_save_ifs" 7439 MAGIC_CMD="$lt_save_MAGIC_CMD" 7440 ;; 7441esac 7442fi 7443 7444MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7445if test -n "$MAGIC_CMD"; then 7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7447$as_echo "$MAGIC_CMD" >&6; } 7448else 7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7450$as_echo "no" >&6; } 7451fi 7452 7453 7454 else 7455 MAGIC_CMD=: 7456 fi 7457fi 7458 7459 fi 7460 ;; 7461esac 7462 7463# Use C for the default configuration in the libtool script 7464 7465lt_save_CC="$CC" 7466ac_ext=c 7467ac_cpp='$CPP $CPPFLAGS' 7468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7470ac_compiler_gnu=$ac_cv_c_compiler_gnu 7471 7472 7473# Source file extension for C test sources. 7474ac_ext=c 7475 7476# Object file extension for compiled C test sources. 7477objext=o 7478objext=$objext 7479 7480# Code to be used in simple compile tests 7481lt_simple_compile_test_code="int some_variable = 0;" 7482 7483# Code to be used in simple link tests 7484lt_simple_link_test_code='int main(){return(0);}' 7485 7486 7487 7488 7489 7490 7491 7492# If no C compiler was specified, use CC. 7493LTCC=${LTCC-"$CC"} 7494 7495# If no C compiler flags were specified, use CFLAGS. 7496LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7497 7498# Allow CC to be a program name with arguments. 7499compiler=$CC 7500 7501# Save the default compiler, since it gets overwritten when the other 7502# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7503compiler_DEFAULT=$CC 7504 7505# save warnings/boilerplate of simple test code 7506ac_outfile=conftest.$ac_objext 7507echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7508eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7509_lt_compiler_boilerplate=`cat conftest.err` 7510$RM conftest* 7511 7512ac_outfile=conftest.$ac_objext 7513echo "$lt_simple_link_test_code" >conftest.$ac_ext 7514eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7515_lt_linker_boilerplate=`cat conftest.err` 7516$RM -r conftest* 7517 7518 7519## CAVEAT EMPTOR: 7520## There is no encapsulation within the following macros, do not change 7521## the running order or otherwise move them around unless you know exactly 7522## what you are doing... 7523if test -n "$compiler"; then 7524 7525lt_prog_compiler_no_builtin_flag= 7526 7527if test "$GCC" = yes; then 7528 case $cc_basename in 7529 nvcc*) 7530 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7531 *) 7532 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7533 esac 7534 7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7536$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7537if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7538 $as_echo_n "(cached) " >&6 7539else 7540 lt_cv_prog_compiler_rtti_exceptions=no 7541 ac_outfile=conftest.$ac_objext 7542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7543 lt_compiler_flag="-fno-rtti -fno-exceptions" 7544 # Insert the option either (1) after the last *FLAGS variable, or 7545 # (2) before a word containing "conftest.", or (3) at the end. 7546 # Note that $ac_compile itself does not contain backslashes and begins 7547 # with a dollar sign (not a hyphen), so the echo should work correctly. 7548 # The option is referenced via a variable to avoid confusing sed. 7549 lt_compile=`echo "$ac_compile" | $SED \ 7550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7552 -e 's:$: $lt_compiler_flag:'` 7553 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7554 (eval "$lt_compile" 2>conftest.err) 7555 ac_status=$? 7556 cat conftest.err >&5 7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7558 if (exit $ac_status) && test -s "$ac_outfile"; then 7559 # The compiler can only warn and ignore the option if not recognized 7560 # So say no if there are warnings other than the usual output. 7561 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7563 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7564 lt_cv_prog_compiler_rtti_exceptions=yes 7565 fi 7566 fi 7567 $RM conftest* 7568 7569fi 7570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7571$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7572 7573if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7574 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7575else 7576 : 7577fi 7578 7579fi 7580 7581 7582 7583 7584 7585 7586 lt_prog_compiler_wl= 7587lt_prog_compiler_pic= 7588lt_prog_compiler_static= 7589 7590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7591$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7592 7593 if test "$GCC" = yes; then 7594 lt_prog_compiler_wl='-Wl,' 7595 lt_prog_compiler_static='-static' 7596 7597 case $host_os in 7598 aix*) 7599 # All AIX code is PIC. 7600 if test "$host_cpu" = ia64; then 7601 # AIX 5 now supports IA64 processor 7602 lt_prog_compiler_static='-Bstatic' 7603 fi 7604 lt_prog_compiler_pic='-fPIC' 7605 ;; 7606 7607 amigaos*) 7608 case $host_cpu in 7609 powerpc) 7610 # see comment about AmigaOS4 .so support 7611 lt_prog_compiler_pic='-fPIC' 7612 ;; 7613 m68k) 7614 # FIXME: we need at least 68020 code to build shared libraries, but 7615 # adding the `-m68020' flag to GCC prevents building anything better, 7616 # like `-m68040'. 7617 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7618 ;; 7619 esac 7620 ;; 7621 7622 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7623 # PIC is the default for these OSes. 7624 ;; 7625 7626 mingw* | cygwin* | pw32* | os2* | cegcc*) 7627 # This hack is so that the source file can tell whether it is being 7628 # built for inclusion in a dll (and should export symbols for example). 7629 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7630 # (--disable-auto-import) libraries 7631 lt_prog_compiler_pic='-DDLL_EXPORT' 7632 ;; 7633 7634 darwin* | rhapsody*) 7635 # PIC is the default on this platform 7636 # Common symbols not allowed in MH_DYLIB files 7637 lt_prog_compiler_pic='-fno-common' 7638 ;; 7639 7640 haiku*) 7641 # PIC is the default for Haiku. 7642 # The "-static" flag exists, but is broken. 7643 lt_prog_compiler_static= 7644 ;; 7645 7646 hpux*) 7647 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7648 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7649 # sets the default TLS model and affects inlining. 7650 case $host_cpu in 7651 hppa*64*) 7652 # +Z the default 7653 ;; 7654 *) 7655 lt_prog_compiler_pic='-fPIC' 7656 ;; 7657 esac 7658 ;; 7659 7660 interix[3-9]*) 7661 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7662 # Instead, we relocate shared libraries at runtime. 7663 ;; 7664 7665 msdosdjgpp*) 7666 # Just because we use GCC doesn't mean we suddenly get shared libraries 7667 # on systems that don't support them. 7668 lt_prog_compiler_can_build_shared=no 7669 enable_shared=no 7670 ;; 7671 7672 *nto* | *qnx*) 7673 # QNX uses GNU C++, but need to define -shared option too, otherwise 7674 # it will coredump. 7675 lt_prog_compiler_pic='-fPIC -shared' 7676 ;; 7677 7678 sysv4*MP*) 7679 if test -d /usr/nec; then 7680 lt_prog_compiler_pic=-Kconform_pic 7681 fi 7682 ;; 7683 7684 *) 7685 lt_prog_compiler_pic='-fPIC' 7686 ;; 7687 esac 7688 7689 case $cc_basename in 7690 nvcc*) # Cuda Compiler Driver 2.2 7691 lt_prog_compiler_wl='-Xlinker ' 7692 lt_prog_compiler_pic='-Xcompiler -fPIC' 7693 ;; 7694 esac 7695 else 7696 # PORTME Check for flag to pass linker flags through the system compiler. 7697 case $host_os in 7698 aix*) 7699 lt_prog_compiler_wl='-Wl,' 7700 if test "$host_cpu" = ia64; then 7701 # AIX 5 now supports IA64 processor 7702 lt_prog_compiler_static='-Bstatic' 7703 else 7704 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7705 fi 7706 ;; 7707 7708 mingw* | cygwin* | pw32* | os2* | cegcc*) 7709 # This hack is so that the source file can tell whether it is being 7710 # built for inclusion in a dll (and should export symbols for example). 7711 lt_prog_compiler_pic='-DDLL_EXPORT' 7712 ;; 7713 7714 hpux9* | hpux10* | hpux11*) 7715 lt_prog_compiler_wl='-Wl,' 7716 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7717 # not for PA HP-UX. 7718 case $host_cpu in 7719 hppa*64*|ia64*) 7720 # +Z the default 7721 ;; 7722 *) 7723 lt_prog_compiler_pic='+Z' 7724 ;; 7725 esac 7726 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7727 lt_prog_compiler_static='${wl}-a ${wl}archive' 7728 ;; 7729 7730 irix5* | irix6* | nonstopux*) 7731 lt_prog_compiler_wl='-Wl,' 7732 # PIC (with -KPIC) is the default. 7733 lt_prog_compiler_static='-non_shared' 7734 ;; 7735 7736 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7737 case $cc_basename in 7738 # old Intel for x86_64 which still supported -KPIC. 7739 ecc*) 7740 lt_prog_compiler_wl='-Wl,' 7741 lt_prog_compiler_pic='-KPIC' 7742 lt_prog_compiler_static='-static' 7743 ;; 7744 # icc used to be incompatible with GCC. 7745 # ICC 10 doesn't accept -KPIC any more. 7746 icc* | ifort*) 7747 lt_prog_compiler_wl='-Wl,' 7748 lt_prog_compiler_pic='-fPIC' 7749 lt_prog_compiler_static='-static' 7750 ;; 7751 # Lahey Fortran 8.1. 7752 lf95*) 7753 lt_prog_compiler_wl='-Wl,' 7754 lt_prog_compiler_pic='--shared' 7755 lt_prog_compiler_static='--static' 7756 ;; 7757 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 7758 # Portland Group compilers (*not* the Pentium gcc compiler, 7759 # which looks to be a dead project) 7760 lt_prog_compiler_wl='-Wl,' 7761 lt_prog_compiler_pic='-fpic' 7762 lt_prog_compiler_static='-Bstatic' 7763 ;; 7764 ccc*) 7765 lt_prog_compiler_wl='-Wl,' 7766 # All Alpha code is PIC. 7767 lt_prog_compiler_static='-non_shared' 7768 ;; 7769 xl* | bgxl* | bgf* | mpixl*) 7770 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 7771 lt_prog_compiler_wl='-Wl,' 7772 lt_prog_compiler_pic='-qpic' 7773 lt_prog_compiler_static='-qstaticlink' 7774 ;; 7775 *) 7776 case `$CC -V 2>&1 | sed 5q` in 7777 *Sun\ F* | *Sun*Fortran*) 7778 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7779 lt_prog_compiler_pic='-KPIC' 7780 lt_prog_compiler_static='-Bstatic' 7781 lt_prog_compiler_wl='' 7782 ;; 7783 *Sun\ C*) 7784 # Sun C 5.9 7785 lt_prog_compiler_pic='-KPIC' 7786 lt_prog_compiler_static='-Bstatic' 7787 lt_prog_compiler_wl='-Wl,' 7788 ;; 7789 esac 7790 ;; 7791 esac 7792 ;; 7793 7794 newsos6) 7795 lt_prog_compiler_pic='-KPIC' 7796 lt_prog_compiler_static='-Bstatic' 7797 ;; 7798 7799 *nto* | *qnx*) 7800 # QNX uses GNU C++, but need to define -shared option too, otherwise 7801 # it will coredump. 7802 lt_prog_compiler_pic='-fPIC -shared' 7803 ;; 7804 7805 osf3* | osf4* | osf5*) 7806 lt_prog_compiler_wl='-Wl,' 7807 # All OSF/1 code is PIC. 7808 lt_prog_compiler_static='-non_shared' 7809 ;; 7810 7811 rdos*) 7812 lt_prog_compiler_static='-non_shared' 7813 ;; 7814 7815 solaris*) 7816 lt_prog_compiler_pic='-KPIC' 7817 lt_prog_compiler_static='-Bstatic' 7818 case $cc_basename in 7819 f77* | f90* | f95*) 7820 lt_prog_compiler_wl='-Qoption ld ';; 7821 *) 7822 lt_prog_compiler_wl='-Wl,';; 7823 esac 7824 ;; 7825 7826 sunos4*) 7827 lt_prog_compiler_wl='-Qoption ld ' 7828 lt_prog_compiler_pic='-PIC' 7829 lt_prog_compiler_static='-Bstatic' 7830 ;; 7831 7832 sysv4 | sysv4.2uw2* | sysv4.3*) 7833 lt_prog_compiler_wl='-Wl,' 7834 lt_prog_compiler_pic='-KPIC' 7835 lt_prog_compiler_static='-Bstatic' 7836 ;; 7837 7838 sysv4*MP*) 7839 if test -d /usr/nec ;then 7840 lt_prog_compiler_pic='-Kconform_pic' 7841 lt_prog_compiler_static='-Bstatic' 7842 fi 7843 ;; 7844 7845 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7846 lt_prog_compiler_wl='-Wl,' 7847 lt_prog_compiler_pic='-KPIC' 7848 lt_prog_compiler_static='-Bstatic' 7849 ;; 7850 7851 unicos*) 7852 lt_prog_compiler_wl='-Wl,' 7853 lt_prog_compiler_can_build_shared=no 7854 ;; 7855 7856 uts4*) 7857 lt_prog_compiler_pic='-pic' 7858 lt_prog_compiler_static='-Bstatic' 7859 ;; 7860 7861 *) 7862 lt_prog_compiler_can_build_shared=no 7863 ;; 7864 esac 7865 fi 7866 7867case $host_os in 7868 # For platforms which do not support PIC, -DPIC is meaningless: 7869 *djgpp*) 7870 lt_prog_compiler_pic= 7871 ;; 7872 *) 7873 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7874 ;; 7875esac 7876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7877$as_echo "$lt_prog_compiler_pic" >&6; } 7878 7879 7880 7881 7882 7883 7884# 7885# Check to make sure the PIC flag actually works. 7886# 7887if test -n "$lt_prog_compiler_pic"; then 7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7889$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7890if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 7891 $as_echo_n "(cached) " >&6 7892else 7893 lt_cv_prog_compiler_pic_works=no 7894 ac_outfile=conftest.$ac_objext 7895 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7896 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7897 # Insert the option either (1) after the last *FLAGS variable, or 7898 # (2) before a word containing "conftest.", or (3) at the end. 7899 # Note that $ac_compile itself does not contain backslashes and begins 7900 # with a dollar sign (not a hyphen), so the echo should work correctly. 7901 # The option is referenced via a variable to avoid confusing sed. 7902 lt_compile=`echo "$ac_compile" | $SED \ 7903 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7904 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7905 -e 's:$: $lt_compiler_flag:'` 7906 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7907 (eval "$lt_compile" 2>conftest.err) 7908 ac_status=$? 7909 cat conftest.err >&5 7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7911 if (exit $ac_status) && test -s "$ac_outfile"; then 7912 # The compiler can only warn and ignore the option if not recognized 7913 # So say no if there are warnings other than the usual output. 7914 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7915 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7916 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7917 lt_cv_prog_compiler_pic_works=yes 7918 fi 7919 fi 7920 $RM conftest* 7921 7922fi 7923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7924$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7925 7926if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7927 case $lt_prog_compiler_pic in 7928 "" | " "*) ;; 7929 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7930 esac 7931else 7932 lt_prog_compiler_pic= 7933 lt_prog_compiler_can_build_shared=no 7934fi 7935 7936fi 7937 7938 7939 7940 7941 7942 7943# 7944# Check to make sure the static flag actually works. 7945# 7946wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7948$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7949if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 7950 $as_echo_n "(cached) " >&6 7951else 7952 lt_cv_prog_compiler_static_works=no 7953 save_LDFLAGS="$LDFLAGS" 7954 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7955 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7956 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7957 # The linker can only warn and ignore the option if not recognized 7958 # So say no if there are warnings 7959 if test -s conftest.err; then 7960 # Append any errors to the config.log. 7961 cat conftest.err 1>&5 7962 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 7963 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7964 if diff conftest.exp conftest.er2 >/dev/null; then 7965 lt_cv_prog_compiler_static_works=yes 7966 fi 7967 else 7968 lt_cv_prog_compiler_static_works=yes 7969 fi 7970 fi 7971 $RM -r conftest* 7972 LDFLAGS="$save_LDFLAGS" 7973 7974fi 7975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7976$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7977 7978if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7979 : 7980else 7981 lt_prog_compiler_static= 7982fi 7983 7984 7985 7986 7987 7988 7989 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7991$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7992if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7993 $as_echo_n "(cached) " >&6 7994else 7995 lt_cv_prog_compiler_c_o=no 7996 $RM -r conftest 2>/dev/null 7997 mkdir conftest 7998 cd conftest 7999 mkdir out 8000 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8001 8002 lt_compiler_flag="-o out/conftest2.$ac_objext" 8003 # Insert the option either (1) after the last *FLAGS variable, or 8004 # (2) before a word containing "conftest.", or (3) at the end. 8005 # Note that $ac_compile itself does not contain backslashes and begins 8006 # with a dollar sign (not a hyphen), so the echo should work correctly. 8007 lt_compile=`echo "$ac_compile" | $SED \ 8008 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8010 -e 's:$: $lt_compiler_flag:'` 8011 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8012 (eval "$lt_compile" 2>out/conftest.err) 8013 ac_status=$? 8014 cat out/conftest.err >&5 8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8016 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8017 then 8018 # The compiler can only warn and ignore the option if not recognized 8019 # So say no if there are warnings 8020 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8021 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8022 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8023 lt_cv_prog_compiler_c_o=yes 8024 fi 8025 fi 8026 chmod u+w . 2>&5 8027 $RM conftest* 8028 # SGI C++ compiler will create directory out/ii_files/ for 8029 # template instantiation 8030 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8031 $RM out/* && rmdir out 8032 cd .. 8033 $RM -r conftest 8034 $RM conftest* 8035 8036fi 8037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8038$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8039 8040 8041 8042 8043 8044 8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8046$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8047if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8048 $as_echo_n "(cached) " >&6 8049else 8050 lt_cv_prog_compiler_c_o=no 8051 $RM -r conftest 2>/dev/null 8052 mkdir conftest 8053 cd conftest 8054 mkdir out 8055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8056 8057 lt_compiler_flag="-o out/conftest2.$ac_objext" 8058 # Insert the option either (1) after the last *FLAGS variable, or 8059 # (2) before a word containing "conftest.", or (3) at the end. 8060 # Note that $ac_compile itself does not contain backslashes and begins 8061 # with a dollar sign (not a hyphen), so the echo should work correctly. 8062 lt_compile=`echo "$ac_compile" | $SED \ 8063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8065 -e 's:$: $lt_compiler_flag:'` 8066 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8067 (eval "$lt_compile" 2>out/conftest.err) 8068 ac_status=$? 8069 cat out/conftest.err >&5 8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8071 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8072 then 8073 # The compiler can only warn and ignore the option if not recognized 8074 # So say no if there are warnings 8075 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8076 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8077 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8078 lt_cv_prog_compiler_c_o=yes 8079 fi 8080 fi 8081 chmod u+w . 2>&5 8082 $RM conftest* 8083 # SGI C++ compiler will create directory out/ii_files/ for 8084 # template instantiation 8085 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8086 $RM out/* && rmdir out 8087 cd .. 8088 $RM -r conftest 8089 $RM conftest* 8090 8091fi 8092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8093$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8094 8095 8096 8097 8098hard_links="nottested" 8099if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8100 # do not overwrite the value of need_locks provided by the user 8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8102$as_echo_n "checking if we can lock with hard links... " >&6; } 8103 hard_links=yes 8104 $RM conftest* 8105 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8106 touch conftest.a 8107 ln conftest.a conftest.b 2>&5 || hard_links=no 8108 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8110$as_echo "$hard_links" >&6; } 8111 if test "$hard_links" = no; then 8112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8113$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8114 need_locks=warn 8115 fi 8116else 8117 need_locks=no 8118fi 8119 8120 8121 8122 8123 8124 8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8126$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8127 8128 runpath_var= 8129 allow_undefined_flag= 8130 always_export_symbols=no 8131 archive_cmds= 8132 archive_expsym_cmds= 8133 compiler_needs_object=no 8134 enable_shared_with_static_runtimes=no 8135 export_dynamic_flag_spec= 8136 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8137 hardcode_automatic=no 8138 hardcode_direct=no 8139 hardcode_direct_absolute=no 8140 hardcode_libdir_flag_spec= 8141 hardcode_libdir_flag_spec_ld= 8142 hardcode_libdir_separator= 8143 hardcode_minus_L=no 8144 hardcode_shlibpath_var=unsupported 8145 inherit_rpath=no 8146 link_all_deplibs=unknown 8147 module_cmds= 8148 module_expsym_cmds= 8149 old_archive_from_new_cmds= 8150 old_archive_from_expsyms_cmds= 8151 thread_safe_flag_spec= 8152 whole_archive_flag_spec= 8153 # include_expsyms should be a list of space-separated symbols to be *always* 8154 # included in the symbol list 8155 include_expsyms= 8156 # exclude_expsyms can be an extended regexp of symbols to exclude 8157 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8158 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8159 # as well as any symbol that contains `d'. 8160 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8161 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8162 # platforms (ab)use it in PIC code, but their linkers get confused if 8163 # the symbol is explicitly referenced. Since portable code cannot 8164 # rely on this symbol name, it's probably fine to never include it in 8165 # preloaded symbol tables. 8166 # Exclude shared library initialization/finalization symbols. 8167 extract_expsyms_cmds= 8168 8169 case $host_os in 8170 cygwin* | mingw* | pw32* | cegcc*) 8171 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8172 # When not using gcc, we currently assume that we are using 8173 # Microsoft Visual C++. 8174 if test "$GCC" != yes; then 8175 with_gnu_ld=no 8176 fi 8177 ;; 8178 interix*) 8179 # we just hope/assume this is gcc and not c89 (= MSVC++) 8180 with_gnu_ld=yes 8181 ;; 8182 openbsd*) 8183 with_gnu_ld=no 8184 ;; 8185 esac 8186 8187 ld_shlibs=yes 8188 8189 # On some targets, GNU ld is compatible enough with the native linker 8190 # that we're better off using the native interface for both. 8191 lt_use_gnu_ld_interface=no 8192 if test "$with_gnu_ld" = yes; then 8193 case $host_os in 8194 aix*) 8195 # The AIX port of GNU ld has always aspired to compatibility 8196 # with the native linker. However, as the warning in the GNU ld 8197 # block says, versions before 2.19.5* couldn't really create working 8198 # shared libraries, regardless of the interface used. 8199 case `$LD -v 2>&1` in 8200 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8201 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8202 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8203 *) 8204 lt_use_gnu_ld_interface=yes 8205 ;; 8206 esac 8207 ;; 8208 *) 8209 lt_use_gnu_ld_interface=yes 8210 ;; 8211 esac 8212 fi 8213 8214 if test "$lt_use_gnu_ld_interface" = yes; then 8215 # If archive_cmds runs LD, not CC, wlarc should be empty 8216 wlarc='${wl}' 8217 8218 # Set some defaults for GNU ld with shared library support. These 8219 # are reset later if shared libraries are not supported. Putting them 8220 # here allows them to be overridden if necessary. 8221 runpath_var=LD_RUN_PATH 8222 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8223 export_dynamic_flag_spec='${wl}--export-dynamic' 8224 # ancient GNU ld didn't support --whole-archive et. al. 8225 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8226 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8227 else 8228 whole_archive_flag_spec= 8229 fi 8230 supports_anon_versioning=no 8231 case `$LD -v 2>&1` in 8232 *GNU\ gold*) supports_anon_versioning=yes ;; 8233 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8234 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8235 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8236 *\ 2.11.*) ;; # other 2.11 versions 8237 *) supports_anon_versioning=yes ;; 8238 esac 8239 8240 # See if GNU ld supports shared libraries. 8241 case $host_os in 8242 aix[3-9]*) 8243 # On AIX/PPC, the GNU linker is very broken 8244 if test "$host_cpu" != ia64; then 8245 ld_shlibs=no 8246 cat <<_LT_EOF 1>&2 8247 8248*** Warning: the GNU linker, at least up to release 2.19, is reported 8249*** to be unable to reliably create shared libraries on AIX. 8250*** Therefore, libtool is disabling shared libraries support. If you 8251*** really care for shared libraries, you may want to install binutils 8252*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8253*** You will then need to restart the configuration process. 8254 8255_LT_EOF 8256 fi 8257 ;; 8258 8259 amigaos*) 8260 case $host_cpu in 8261 powerpc) 8262 # see comment about AmigaOS4 .so support 8263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8264 archive_expsym_cmds='' 8265 ;; 8266 m68k) 8267 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)' 8268 hardcode_libdir_flag_spec='-L$libdir' 8269 hardcode_minus_L=yes 8270 ;; 8271 esac 8272 ;; 8273 8274 beos*) 8275 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8276 allow_undefined_flag=unsupported 8277 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8278 # support --undefined. This deserves some investigation. FIXME 8279 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8280 else 8281 ld_shlibs=no 8282 fi 8283 ;; 8284 8285 cygwin* | mingw* | pw32* | cegcc*) 8286 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8287 # as there is no search path for DLLs. 8288 hardcode_libdir_flag_spec='-L$libdir' 8289 export_dynamic_flag_spec='${wl}--export-all-symbols' 8290 allow_undefined_flag=unsupported 8291 always_export_symbols=no 8292 enable_shared_with_static_runtimes=yes 8293 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8294 8295 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8296 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8297 # If the export-symbols file already is a .def file (1st line 8298 # is EXPORTS), use it as is; otherwise, prepend... 8299 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8300 cp $export_symbols $output_objdir/$soname.def; 8301 else 8302 echo EXPORTS > $output_objdir/$soname.def; 8303 cat $export_symbols >> $output_objdir/$soname.def; 8304 fi~ 8305 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8306 else 8307 ld_shlibs=no 8308 fi 8309 ;; 8310 8311 haiku*) 8312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8313 link_all_deplibs=yes 8314 ;; 8315 8316 interix[3-9]*) 8317 hardcode_direct=no 8318 hardcode_shlibpath_var=no 8319 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8320 export_dynamic_flag_spec='${wl}-E' 8321 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8322 # Instead, shared libraries are loaded at an image base (0x10000000 by 8323 # default) and relocated if they conflict, which is a slow very memory 8324 # consuming and fragmenting process. To avoid this, we pick a random, 8325 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8326 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8327 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8328 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' 8329 ;; 8330 8331 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8332 tmp_diet=no 8333 if test "$host_os" = linux-dietlibc; then 8334 case $cc_basename in 8335 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8336 esac 8337 fi 8338 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8339 && test "$tmp_diet" = no 8340 then 8341 tmp_addflag=' $pic_flag' 8342 tmp_sharedflag='-shared' 8343 case $cc_basename,$host_cpu in 8344 pgcc*) # Portland Group C compiler 8345 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' 8346 tmp_addflag=' $pic_flag' 8347 ;; 8348 pgf77* | pgf90* | pgf95* | pgfortran*) 8349 # Portland Group f77 and f90 compilers 8350 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' 8351 tmp_addflag=' $pic_flag -Mnomain' ;; 8352 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8353 tmp_addflag=' -i_dynamic' ;; 8354 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8355 tmp_addflag=' -i_dynamic -nofor_main' ;; 8356 ifc* | ifort*) # Intel Fortran compiler 8357 tmp_addflag=' -nofor_main' ;; 8358 lf95*) # Lahey Fortran 8.1 8359 whole_archive_flag_spec= 8360 tmp_sharedflag='--shared' ;; 8361 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8362 tmp_sharedflag='-qmkshrobj' 8363 tmp_addflag= ;; 8364 nvcc*) # Cuda Compiler Driver 2.2 8365 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' 8366 compiler_needs_object=yes 8367 ;; 8368 esac 8369 case `$CC -V 2>&1 | sed 5q` in 8370 *Sun\ C*) # Sun C 5.9 8371 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' 8372 compiler_needs_object=yes 8373 tmp_sharedflag='-G' ;; 8374 *Sun\ F*) # Sun Fortran 8.3 8375 tmp_sharedflag='-G' ;; 8376 esac 8377 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8378 8379 if test "x$supports_anon_versioning" = xyes; then 8380 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8381 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8382 echo "local: *; };" >> $output_objdir/$libname.ver~ 8383 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8384 fi 8385 8386 case $cc_basename in 8387 xlf* | bgf* | bgxlf* | mpixlf*) 8388 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8389 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8390 hardcode_libdir_flag_spec= 8391 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8392 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8393 if test "x$supports_anon_versioning" = xyes; then 8394 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8395 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8396 echo "local: *; };" >> $output_objdir/$libname.ver~ 8397 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8398 fi 8399 ;; 8400 esac 8401 else 8402 ld_shlibs=no 8403 fi 8404 ;; 8405 8406 netbsd*) 8407 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8408 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8409 wlarc= 8410 else 8411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8412 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8413 fi 8414 ;; 8415 8416 solaris*) 8417 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8418 ld_shlibs=no 8419 cat <<_LT_EOF 1>&2 8420 8421*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8422*** create shared libraries on Solaris systems. Therefore, libtool 8423*** is disabling shared libraries support. We urge you to upgrade GNU 8424*** binutils to release 2.9.1 or newer. Another option is to modify 8425*** your PATH or compiler configuration so that the native linker is 8426*** used, and then restart. 8427 8428_LT_EOF 8429 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8430 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8431 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8432 else 8433 ld_shlibs=no 8434 fi 8435 ;; 8436 8437 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8438 case `$LD -v 2>&1` in 8439 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8440 ld_shlibs=no 8441 cat <<_LT_EOF 1>&2 8442 8443*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8444*** reliably create shared libraries on SCO systems. Therefore, libtool 8445*** is disabling shared libraries support. We urge you to upgrade GNU 8446*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8447*** your PATH or compiler configuration so that the native linker is 8448*** used, and then restart. 8449 8450_LT_EOF 8451 ;; 8452 *) 8453 # For security reasons, it is highly recommended that you always 8454 # use absolute paths for naming shared libraries, and exclude the 8455 # DT_RUNPATH tag from executables and libraries. But doing so 8456 # requires that you compile everything twice, which is a pain. 8457 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8459 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8460 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8461 else 8462 ld_shlibs=no 8463 fi 8464 ;; 8465 esac 8466 ;; 8467 8468 sunos4*) 8469 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8470 wlarc= 8471 hardcode_direct=yes 8472 hardcode_shlibpath_var=no 8473 ;; 8474 8475 *) 8476 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8478 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8479 else 8480 ld_shlibs=no 8481 fi 8482 ;; 8483 esac 8484 8485 if test "$ld_shlibs" = no; then 8486 runpath_var= 8487 hardcode_libdir_flag_spec= 8488 export_dynamic_flag_spec= 8489 whole_archive_flag_spec= 8490 fi 8491 else 8492 # PORTME fill in a description of your system's linker (not GNU ld) 8493 case $host_os in 8494 aix3*) 8495 allow_undefined_flag=unsupported 8496 always_export_symbols=yes 8497 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' 8498 # Note: this linker hardcodes the directories in LIBPATH if there 8499 # are no directories specified by -L. 8500 hardcode_minus_L=yes 8501 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8502 # Neither direct hardcoding nor static linking is supported with a 8503 # broken collect2. 8504 hardcode_direct=unsupported 8505 fi 8506 ;; 8507 8508 aix[4-9]*) 8509 if test "$host_cpu" = ia64; then 8510 # On IA64, the linker does run time linking by default, so we don't 8511 # have to do anything special. 8512 aix_use_runtimelinking=no 8513 exp_sym_flag='-Bexport' 8514 no_entry_flag="" 8515 else 8516 # If we're using GNU nm, then we don't want the "-C" option. 8517 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8518 # Also, AIX nm treats weak defined symbols like other global 8519 # defined symbols, whereas GNU nm marks them as "W". 8520 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8521 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' 8522 else 8523 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8524 fi 8525 aix_use_runtimelinking=no 8526 8527 # Test if we are trying to use run time linking or normal 8528 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8529 # need to do runtime linking. 8530 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8531 for ld_flag in $LDFLAGS; do 8532 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8533 aix_use_runtimelinking=yes 8534 break 8535 fi 8536 done 8537 ;; 8538 esac 8539 8540 exp_sym_flag='-bexport' 8541 no_entry_flag='-bnoentry' 8542 fi 8543 8544 # When large executables or shared objects are built, AIX ld can 8545 # have problems creating the table of contents. If linking a library 8546 # or program results in "error TOC overflow" add -mminimal-toc to 8547 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8548 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8549 8550 archive_cmds='' 8551 hardcode_direct=yes 8552 hardcode_direct_absolute=yes 8553 hardcode_libdir_separator=':' 8554 link_all_deplibs=yes 8555 file_list_spec='${wl}-f,' 8556 8557 if test "$GCC" = yes; then 8558 case $host_os in aix4.[012]|aix4.[012].*) 8559 # We only want to do this on AIX 4.2 and lower, the check 8560 # below for broken collect2 doesn't work under 4.3+ 8561 collect2name=`${CC} -print-prog-name=collect2` 8562 if test -f "$collect2name" && 8563 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8564 then 8565 # We have reworked collect2 8566 : 8567 else 8568 # We have old collect2 8569 hardcode_direct=unsupported 8570 # It fails to find uninstalled libraries when the uninstalled 8571 # path is not listed in the libpath. Setting hardcode_minus_L 8572 # to unsupported forces relinking 8573 hardcode_minus_L=yes 8574 hardcode_libdir_flag_spec='-L$libdir' 8575 hardcode_libdir_separator= 8576 fi 8577 ;; 8578 esac 8579 shared_flag='-shared' 8580 if test "$aix_use_runtimelinking" = yes; then 8581 shared_flag="$shared_flag "'${wl}-G' 8582 fi 8583 else 8584 # not using gcc 8585 if test "$host_cpu" = ia64; then 8586 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8587 # chokes on -Wl,-G. The following line is correct: 8588 shared_flag='-G' 8589 else 8590 if test "$aix_use_runtimelinking" = yes; then 8591 shared_flag='${wl}-G' 8592 else 8593 shared_flag='${wl}-bM:SRE' 8594 fi 8595 fi 8596 fi 8597 8598 export_dynamic_flag_spec='${wl}-bexpall' 8599 # It seems that -bexpall does not export symbols beginning with 8600 # underscore (_), so it is better to generate a list of symbols to export. 8601 always_export_symbols=yes 8602 if test "$aix_use_runtimelinking" = yes; then 8603 # Warning - without using the other runtime loading flags (-brtl), 8604 # -berok will link without error, but may produce a broken library. 8605 allow_undefined_flag='-berok' 8606 # Determine the default libpath from the value encoded in an 8607 # empty executable. 8608 if test x$gcc_no_link = xyes; then 8609 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 8610fi 8611cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8612/* end confdefs.h. */ 8613 8614int 8615main () 8616{ 8617 8618 ; 8619 return 0; 8620} 8621_ACEOF 8622if ac_fn_c_try_link "$LINENO"; then : 8623 8624lt_aix_libpath_sed=' 8625 /Import File Strings/,/^$/ { 8626 /^0/ { 8627 s/^0 *\(.*\)$/\1/ 8628 p 8629 } 8630 }' 8631aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8632# Check for a 64-bit object if we didn't find anything. 8633if test -z "$aix_libpath"; then 8634 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8635fi 8636fi 8637rm -f core conftest.err conftest.$ac_objext \ 8638 conftest$ac_exeext conftest.$ac_ext 8639if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8640 8641 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8642 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" 8643 else 8644 if test "$host_cpu" = ia64; then 8645 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8646 allow_undefined_flag="-z nodefs" 8647 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" 8648 else 8649 # Determine the default libpath from the value encoded in an 8650 # empty executable. 8651 if test x$gcc_no_link = xyes; then 8652 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 8653fi 8654cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8655/* end confdefs.h. */ 8656 8657int 8658main () 8659{ 8660 8661 ; 8662 return 0; 8663} 8664_ACEOF 8665if ac_fn_c_try_link "$LINENO"; then : 8666 8667lt_aix_libpath_sed=' 8668 /Import File Strings/,/^$/ { 8669 /^0/ { 8670 s/^0 *\(.*\)$/\1/ 8671 p 8672 } 8673 }' 8674aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8675# Check for a 64-bit object if we didn't find anything. 8676if test -z "$aix_libpath"; then 8677 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8678fi 8679fi 8680rm -f core conftest.err conftest.$ac_objext \ 8681 conftest$ac_exeext conftest.$ac_ext 8682if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8683 8684 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8685 # Warning - without using the other run time loading flags, 8686 # -berok will link without error, but may produce a broken library. 8687 no_undefined_flag=' ${wl}-bernotok' 8688 allow_undefined_flag=' ${wl}-berok' 8689 if test "$with_gnu_ld" = yes; then 8690 # We only use this code for GNU lds that support --whole-archive. 8691 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8692 else 8693 # Exported symbols can be pulled into shared objects from archives 8694 whole_archive_flag_spec='$convenience' 8695 fi 8696 archive_cmds_need_lc=yes 8697 # This is similar to how AIX traditionally builds its shared libraries. 8698 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' 8699 fi 8700 fi 8701 ;; 8702 8703 amigaos*) 8704 case $host_cpu in 8705 powerpc) 8706 # see comment about AmigaOS4 .so support 8707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8708 archive_expsym_cmds='' 8709 ;; 8710 m68k) 8711 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)' 8712 hardcode_libdir_flag_spec='-L$libdir' 8713 hardcode_minus_L=yes 8714 ;; 8715 esac 8716 ;; 8717 8718 bsdi[45]*) 8719 export_dynamic_flag_spec=-rdynamic 8720 ;; 8721 8722 cygwin* | mingw* | pw32* | cegcc*) 8723 # When not using gcc, we currently assume that we are using 8724 # Microsoft Visual C++. 8725 # hardcode_libdir_flag_spec is actually meaningless, as there is 8726 # no search path for DLLs. 8727 hardcode_libdir_flag_spec=' ' 8728 allow_undefined_flag=unsupported 8729 # Tell ltmain to make .lib files, not .a files. 8730 libext=lib 8731 # Tell ltmain to make .dll files, not .so files. 8732 shrext_cmds=".dll" 8733 # FIXME: Setting linknames here is a bad hack. 8734 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 8735 # The linker will automatically build a .lib file if we build a DLL. 8736 old_archive_from_new_cmds='true' 8737 # FIXME: Should let the user specify the lib program. 8738 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8739 fix_srcfile_path='`cygpath -w "$srcfile"`' 8740 enable_shared_with_static_runtimes=yes 8741 ;; 8742 8743 darwin* | rhapsody*) 8744 8745 8746 archive_cmds_need_lc=no 8747 hardcode_direct=no 8748 hardcode_automatic=yes 8749 hardcode_shlibpath_var=unsupported 8750 if test "$lt_cv_ld_force_load" = "yes"; then 8751 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\"`' 8752 else 8753 whole_archive_flag_spec='' 8754 fi 8755 link_all_deplibs=yes 8756 allow_undefined_flag="$_lt_dar_allow_undefined" 8757 case $cc_basename in 8758 ifort*) _lt_dar_can_shared=yes ;; 8759 *) _lt_dar_can_shared=$GCC ;; 8760 esac 8761 if test "$_lt_dar_can_shared" = "yes"; then 8762 output_verbose_link_cmd=func_echo_all 8763 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8764 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8765 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}" 8766 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}" 8767 8768 else 8769 ld_shlibs=no 8770 fi 8771 8772 ;; 8773 8774 dgux*) 8775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8776 hardcode_libdir_flag_spec='-L$libdir' 8777 hardcode_shlibpath_var=no 8778 ;; 8779 8780 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8781 # support. Future versions do this automatically, but an explicit c++rt0.o 8782 # does not break anything, and helps significantly (at the cost of a little 8783 # extra space). 8784 freebsd2.2*) 8785 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8786 hardcode_libdir_flag_spec='-R$libdir' 8787 hardcode_direct=yes 8788 hardcode_shlibpath_var=no 8789 ;; 8790 8791 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8792 freebsd2.*) 8793 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8794 hardcode_direct=yes 8795 hardcode_minus_L=yes 8796 hardcode_shlibpath_var=no 8797 ;; 8798 8799 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8800 freebsd* | dragonfly*) 8801 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8802 hardcode_libdir_flag_spec='-R$libdir' 8803 hardcode_direct=yes 8804 hardcode_shlibpath_var=no 8805 ;; 8806 8807 hpux9*) 8808 if test "$GCC" = yes; then 8809 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' 8810 else 8811 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' 8812 fi 8813 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8814 hardcode_libdir_separator=: 8815 hardcode_direct=yes 8816 8817 # hardcode_minus_L: Not really in the search PATH, 8818 # but as the default location of the library. 8819 hardcode_minus_L=yes 8820 export_dynamic_flag_spec='${wl}-E' 8821 ;; 8822 8823 hpux10*) 8824 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8825 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8826 else 8827 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8828 fi 8829 if test "$with_gnu_ld" = no; then 8830 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8831 hardcode_libdir_flag_spec_ld='+b $libdir' 8832 hardcode_libdir_separator=: 8833 hardcode_direct=yes 8834 hardcode_direct_absolute=yes 8835 export_dynamic_flag_spec='${wl}-E' 8836 # hardcode_minus_L: Not really in the search PATH, 8837 # but as the default location of the library. 8838 hardcode_minus_L=yes 8839 fi 8840 ;; 8841 8842 hpux11*) 8843 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8844 case $host_cpu in 8845 hppa*64*) 8846 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8847 ;; 8848 ia64*) 8849 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8850 ;; 8851 *) 8852 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8853 ;; 8854 esac 8855 else 8856 case $host_cpu in 8857 hppa*64*) 8858 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8859 ;; 8860 ia64*) 8861 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8862 ;; 8863 *) 8864 8865 # Older versions of the 11.00 compiler do not understand -b yet 8866 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 8868$as_echo_n "checking if $CC understands -b... " >&6; } 8869if test "${lt_cv_prog_compiler__b+set}" = set; then : 8870 $as_echo_n "(cached) " >&6 8871else 8872 lt_cv_prog_compiler__b=no 8873 save_LDFLAGS="$LDFLAGS" 8874 LDFLAGS="$LDFLAGS -b" 8875 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8876 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8877 # The linker can only warn and ignore the option if not recognized 8878 # So say no if there are warnings 8879 if test -s conftest.err; then 8880 # Append any errors to the config.log. 8881 cat conftest.err 1>&5 8882 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8883 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8884 if diff conftest.exp conftest.er2 >/dev/null; then 8885 lt_cv_prog_compiler__b=yes 8886 fi 8887 else 8888 lt_cv_prog_compiler__b=yes 8889 fi 8890 fi 8891 $RM -r conftest* 8892 LDFLAGS="$save_LDFLAGS" 8893 8894fi 8895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 8896$as_echo "$lt_cv_prog_compiler__b" >&6; } 8897 8898if test x"$lt_cv_prog_compiler__b" = xyes; then 8899 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8900else 8901 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8902fi 8903 8904 ;; 8905 esac 8906 fi 8907 if test "$with_gnu_ld" = no; then 8908 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8909 hardcode_libdir_separator=: 8910 8911 case $host_cpu in 8912 hppa*64*|ia64*) 8913 hardcode_direct=no 8914 hardcode_shlibpath_var=no 8915 ;; 8916 *) 8917 hardcode_direct=yes 8918 hardcode_direct_absolute=yes 8919 export_dynamic_flag_spec='${wl}-E' 8920 8921 # hardcode_minus_L: Not really in the search PATH, 8922 # but as the default location of the library. 8923 hardcode_minus_L=yes 8924 ;; 8925 esac 8926 fi 8927 ;; 8928 8929 irix5* | irix6* | nonstopux*) 8930 if test "$GCC" = yes; then 8931 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' 8932 # Try to use the -exported_symbol ld option, if it does not 8933 # work, assume that -exports_file does not work either and 8934 # implicitly export all symbols. 8935 save_LDFLAGS="$LDFLAGS" 8936 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8937 if test x$gcc_no_link = xyes; then 8938 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 8939fi 8940cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8941/* end confdefs.h. */ 8942int foo(void) {} 8943_ACEOF 8944if ac_fn_c_try_link "$LINENO"; then : 8945 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' 8946 8947fi 8948rm -f core conftest.err conftest.$ac_objext \ 8949 conftest$ac_exeext conftest.$ac_ext 8950 LDFLAGS="$save_LDFLAGS" 8951 else 8952 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' 8953 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' 8954 fi 8955 archive_cmds_need_lc='no' 8956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8957 hardcode_libdir_separator=: 8958 inherit_rpath=yes 8959 link_all_deplibs=yes 8960 ;; 8961 8962 netbsd*) 8963 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8964 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8965 else 8966 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8967 fi 8968 hardcode_libdir_flag_spec='-R$libdir' 8969 hardcode_direct=yes 8970 hardcode_shlibpath_var=no 8971 ;; 8972 8973 newsos6) 8974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8975 hardcode_direct=yes 8976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8977 hardcode_libdir_separator=: 8978 hardcode_shlibpath_var=no 8979 ;; 8980 8981 *nto* | *qnx*) 8982 ;; 8983 8984 openbsd*) 8985 if test -f /usr/libexec/ld.so; then 8986 hardcode_direct=yes 8987 hardcode_shlibpath_var=no 8988 hardcode_direct_absolute=yes 8989 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8990 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8991 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8992 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8993 export_dynamic_flag_spec='${wl}-E' 8994 else 8995 case $host_os in 8996 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8997 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8998 hardcode_libdir_flag_spec='-R$libdir' 8999 ;; 9000 *) 9001 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9002 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9003 ;; 9004 esac 9005 fi 9006 else 9007 ld_shlibs=no 9008 fi 9009 ;; 9010 9011 os2*) 9012 hardcode_libdir_flag_spec='-L$libdir' 9013 hardcode_minus_L=yes 9014 allow_undefined_flag=unsupported 9015 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' 9016 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9017 ;; 9018 9019 osf3*) 9020 if test "$GCC" = yes; then 9021 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9022 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' 9023 else 9024 allow_undefined_flag=' -expect_unresolved \*' 9025 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' 9026 fi 9027 archive_cmds_need_lc='no' 9028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9029 hardcode_libdir_separator=: 9030 ;; 9031 9032 osf4* | osf5*) # as osf3* with the addition of -msym flag 9033 if test "$GCC" = yes; then 9034 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9035 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' 9036 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9037 else 9038 allow_undefined_flag=' -expect_unresolved \*' 9039 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' 9040 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~ 9041 $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' 9042 9043 # Both c and cxx compiler support -rpath directly 9044 hardcode_libdir_flag_spec='-rpath $libdir' 9045 fi 9046 archive_cmds_need_lc='no' 9047 hardcode_libdir_separator=: 9048 ;; 9049 9050 solaris*) 9051 no_undefined_flag=' -z defs' 9052 if test "$GCC" = yes; then 9053 wlarc='${wl}' 9054 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9055 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9056 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9057 else 9058 case `$CC -V 2>&1` in 9059 *"Compilers 5.0"*) 9060 wlarc='' 9061 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9062 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9063 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9064 ;; 9065 *) 9066 wlarc='${wl}' 9067 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9068 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9069 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9070 ;; 9071 esac 9072 fi 9073 hardcode_libdir_flag_spec='-R$libdir' 9074 hardcode_shlibpath_var=no 9075 case $host_os in 9076 solaris2.[0-5] | solaris2.[0-5].*) ;; 9077 *) 9078 # The compiler driver will combine and reorder linker options, 9079 # but understands `-z linker_flag'. GCC discards it without `$wl', 9080 # but is careful enough not to reorder. 9081 # Supported since Solaris 2.6 (maybe 2.5.1?) 9082 if test "$GCC" = yes; then 9083 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9084 else 9085 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9086 fi 9087 ;; 9088 esac 9089 link_all_deplibs=yes 9090 ;; 9091 9092 sunos4*) 9093 if test "x$host_vendor" = xsequent; then 9094 # Use $CC to link under sequent, because it throws in some extra .o 9095 # files that make .init and .fini sections work. 9096 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9097 else 9098 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9099 fi 9100 hardcode_libdir_flag_spec='-L$libdir' 9101 hardcode_direct=yes 9102 hardcode_minus_L=yes 9103 hardcode_shlibpath_var=no 9104 ;; 9105 9106 sysv4) 9107 case $host_vendor in 9108 sni) 9109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9110 hardcode_direct=yes # is this really true??? 9111 ;; 9112 siemens) 9113 ## LD is ld it makes a PLAMLIB 9114 ## CC just makes a GrossModule. 9115 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9116 reload_cmds='$CC -r -o $output$reload_objs' 9117 hardcode_direct=no 9118 ;; 9119 motorola) 9120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9121 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9122 ;; 9123 esac 9124 runpath_var='LD_RUN_PATH' 9125 hardcode_shlibpath_var=no 9126 ;; 9127 9128 sysv4.3*) 9129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9130 hardcode_shlibpath_var=no 9131 export_dynamic_flag_spec='-Bexport' 9132 ;; 9133 9134 sysv4*MP*) 9135 if test -d /usr/nec; then 9136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9137 hardcode_shlibpath_var=no 9138 runpath_var=LD_RUN_PATH 9139 hardcode_runpath_var=yes 9140 ld_shlibs=yes 9141 fi 9142 ;; 9143 9144 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9145 no_undefined_flag='${wl}-z,text' 9146 archive_cmds_need_lc=no 9147 hardcode_shlibpath_var=no 9148 runpath_var='LD_RUN_PATH' 9149 9150 if test "$GCC" = yes; then 9151 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9152 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9153 else 9154 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9155 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9156 fi 9157 ;; 9158 9159 sysv5* | sco3.2v5* | sco5v6*) 9160 # Note: We can NOT use -z defs as we might desire, because we do not 9161 # link with -lc, and that would cause any symbols used from libc to 9162 # always be unresolved, which means just about no library would 9163 # ever link correctly. If we're not using GNU ld we use -z text 9164 # though, which does catch some bad symbols but isn't as heavy-handed 9165 # as -z defs. 9166 no_undefined_flag='${wl}-z,text' 9167 allow_undefined_flag='${wl}-z,nodefs' 9168 archive_cmds_need_lc=no 9169 hardcode_shlibpath_var=no 9170 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9171 hardcode_libdir_separator=':' 9172 link_all_deplibs=yes 9173 export_dynamic_flag_spec='${wl}-Bexport' 9174 runpath_var='LD_RUN_PATH' 9175 9176 if test "$GCC" = yes; then 9177 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9178 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9179 else 9180 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9181 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9182 fi 9183 ;; 9184 9185 uts4*) 9186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9187 hardcode_libdir_flag_spec='-L$libdir' 9188 hardcode_shlibpath_var=no 9189 ;; 9190 9191 *) 9192 ld_shlibs=no 9193 ;; 9194 esac 9195 9196 if test x$host_vendor = xsni; then 9197 case $host in 9198 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9199 export_dynamic_flag_spec='${wl}-Blargedynsym' 9200 ;; 9201 esac 9202 fi 9203 fi 9204 9205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9206$as_echo "$ld_shlibs" >&6; } 9207test "$ld_shlibs" = no && can_build_shared=no 9208 9209with_gnu_ld=$with_gnu_ld 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225# 9226# Do we need to explicitly link libc? 9227# 9228case "x$archive_cmds_need_lc" in 9229x|xyes) 9230 # Assume -lc should be added 9231 archive_cmds_need_lc=yes 9232 9233 if test "$enable_shared" = yes && test "$GCC" = yes; then 9234 case $archive_cmds in 9235 *'~'*) 9236 # FIXME: we may have to deal with multi-command sequences. 9237 ;; 9238 '$CC '*) 9239 # Test whether the compiler implicitly links with -lc since on some 9240 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9241 # to ld, don't add -lc before -lgcc. 9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9243$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9244if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 9245 $as_echo_n "(cached) " >&6 9246else 9247 $RM conftest* 9248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9249 9250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9251 (eval $ac_compile) 2>&5 9252 ac_status=$? 9253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9254 test $ac_status = 0; } 2>conftest.err; then 9255 soname=conftest 9256 lib=conftest 9257 libobjs=conftest.$ac_objext 9258 deplibs= 9259 wl=$lt_prog_compiler_wl 9260 pic_flag=$lt_prog_compiler_pic 9261 compiler_flags=-v 9262 linker_flags=-v 9263 verstring= 9264 output_objdir=. 9265 libname=conftest 9266 lt_save_allow_undefined_flag=$allow_undefined_flag 9267 allow_undefined_flag= 9268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9269 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9270 ac_status=$? 9271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9272 test $ac_status = 0; } 9273 then 9274 lt_cv_archive_cmds_need_lc=no 9275 else 9276 lt_cv_archive_cmds_need_lc=yes 9277 fi 9278 allow_undefined_flag=$lt_save_allow_undefined_flag 9279 else 9280 cat conftest.err 1>&5 9281 fi 9282 $RM conftest* 9283 9284fi 9285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9286$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9287 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9288 ;; 9289 esac 9290 fi 9291 ;; 9292esac 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9451$as_echo_n "checking dynamic linker characteristics... " >&6; } 9452 9453if test "$GCC" = yes; then 9454 case $host_os in 9455 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9456 *) lt_awk_arg="/^libraries:/" ;; 9457 esac 9458 case $host_os in 9459 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9460 *) lt_sed_strip_eq="s,=/,/,g" ;; 9461 esac 9462 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9463 case $lt_search_path_spec in 9464 *\;*) 9465 # if the path contains ";" then we assume it to be the separator 9466 # otherwise default to the standard path separator (i.e. ":") - it is 9467 # assumed that no part of a normal pathname contains ";" but that should 9468 # okay in the real world where ";" in dirpaths is itself problematic. 9469 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9470 ;; 9471 *) 9472 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9473 ;; 9474 esac 9475 # Ok, now we have the path, separated by spaces, we can step through it 9476 # and add multilib dir if necessary. 9477 lt_tmp_lt_search_path_spec= 9478 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9479 for lt_sys_path in $lt_search_path_spec; do 9480 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9481 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9482 else 9483 test -d "$lt_sys_path" && \ 9484 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9485 fi 9486 done 9487 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9488BEGIN {RS=" "; FS="/|\n";} { 9489 lt_foo=""; 9490 lt_count=0; 9491 for (lt_i = NF; lt_i > 0; lt_i--) { 9492 if ($lt_i != "" && $lt_i != ".") { 9493 if ($lt_i == "..") { 9494 lt_count++; 9495 } else { 9496 if (lt_count == 0) { 9497 lt_foo="/" $lt_i lt_foo; 9498 } else { 9499 lt_count--; 9500 } 9501 } 9502 } 9503 } 9504 if (lt_foo != "") { lt_freq[lt_foo]++; } 9505 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9506}'` 9507 # AWK program above erroneously prepends '/' to C:/dos/paths 9508 # for these hosts. 9509 case $host_os in 9510 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9511 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9512 esac 9513 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9514else 9515 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9516fi 9517library_names_spec= 9518libname_spec='lib$name' 9519soname_spec= 9520shrext_cmds=".so" 9521postinstall_cmds= 9522postuninstall_cmds= 9523finish_cmds= 9524finish_eval= 9525shlibpath_var= 9526shlibpath_overrides_runpath=unknown 9527version_type=none 9528dynamic_linker="$host_os ld.so" 9529sys_lib_dlsearch_path_spec="/lib /usr/lib" 9530need_lib_prefix=unknown 9531hardcode_into_libs=no 9532 9533# when you set need_version to no, make sure it does not cause -set_version 9534# flags to be left without arguments 9535need_version=unknown 9536 9537case $host_os in 9538aix3*) 9539 version_type=linux 9540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9541 shlibpath_var=LIBPATH 9542 9543 # AIX 3 has no versioning support, so we append a major version to the name. 9544 soname_spec='${libname}${release}${shared_ext}$major' 9545 ;; 9546 9547aix[4-9]*) 9548 version_type=linux 9549 need_lib_prefix=no 9550 need_version=no 9551 hardcode_into_libs=yes 9552 if test "$host_cpu" = ia64; then 9553 # AIX 5 supports IA64 9554 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9555 shlibpath_var=LD_LIBRARY_PATH 9556 else 9557 # With GCC up to 2.95.x, collect2 would create an import file 9558 # for dependence libraries. The import file would start with 9559 # the line `#! .'. This would cause the generated library to 9560 # depend on `.', always an invalid library. This was fixed in 9561 # development snapshots of GCC prior to 3.0. 9562 case $host_os in 9563 aix4 | aix4.[01] | aix4.[01].*) 9564 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9565 echo ' yes ' 9566 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9567 : 9568 else 9569 can_build_shared=no 9570 fi 9571 ;; 9572 esac 9573 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9574 # soname into executable. Probably we can add versioning support to 9575 # collect2, so additional links can be useful in future. 9576 if test "$aix_use_runtimelinking" = yes; then 9577 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9578 # instead of lib<name>.a to let people know that these are not 9579 # typical AIX shared libraries. 9580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9581 else 9582 # We preserve .a as extension for shared libraries through AIX4.2 9583 # and later when we are not doing run time linking. 9584 library_names_spec='${libname}${release}.a $libname.a' 9585 soname_spec='${libname}${release}${shared_ext}$major' 9586 fi 9587 shlibpath_var=LIBPATH 9588 fi 9589 ;; 9590 9591amigaos*) 9592 case $host_cpu in 9593 powerpc) 9594 # Since July 2007 AmigaOS4 officially supports .so libraries. 9595 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9597 ;; 9598 m68k) 9599 library_names_spec='$libname.ixlibrary $libname.a' 9600 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9601 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' 9602 ;; 9603 esac 9604 ;; 9605 9606beos*) 9607 library_names_spec='${libname}${shared_ext}' 9608 dynamic_linker="$host_os ld.so" 9609 shlibpath_var=LIBRARY_PATH 9610 ;; 9611 9612bsdi[45]*) 9613 version_type=linux 9614 need_version=no 9615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9616 soname_spec='${libname}${release}${shared_ext}$major' 9617 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9618 shlibpath_var=LD_LIBRARY_PATH 9619 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9620 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9621 # the default ld.so.conf also contains /usr/contrib/lib and 9622 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9623 # libtool to hard-code these into programs 9624 ;; 9625 9626cygwin* | mingw* | pw32* | cegcc*) 9627 version_type=windows 9628 shrext_cmds=".dll" 9629 need_version=no 9630 need_lib_prefix=no 9631 9632 case $GCC,$host_os in 9633 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9634 library_names_spec='$libname.dll.a' 9635 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9636 postinstall_cmds='base_file=`basename \${file}`~ 9637 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9638 dldir=$destdir/`dirname \$dlpath`~ 9639 test -d \$dldir || mkdir -p \$dldir~ 9640 $install_prog $dir/$dlname \$dldir/$dlname~ 9641 chmod a+x \$dldir/$dlname~ 9642 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9643 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9644 fi' 9645 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9646 dlpath=$dir/\$dldll~ 9647 $RM \$dlpath' 9648 shlibpath_overrides_runpath=yes 9649 9650 case $host_os in 9651 cygwin*) 9652 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9653 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9654 9655 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 9656 ;; 9657 mingw* | cegcc*) 9658 # MinGW DLLs use traditional 'lib' prefix 9659 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9660 ;; 9661 pw32*) 9662 # pw32 DLLs use 'pw' prefix rather than 'lib' 9663 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9664 ;; 9665 esac 9666 ;; 9667 9668 *) 9669 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9670 ;; 9671 esac 9672 dynamic_linker='Win32 ld.exe' 9673 # FIXME: first we should search . and the directory the executable is in 9674 shlibpath_var=PATH 9675 ;; 9676 9677darwin* | rhapsody*) 9678 dynamic_linker="$host_os dyld" 9679 version_type=darwin 9680 need_lib_prefix=no 9681 need_version=no 9682 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9683 soname_spec='${libname}${release}${major}$shared_ext' 9684 shlibpath_overrides_runpath=yes 9685 shlibpath_var=DYLD_LIBRARY_PATH 9686 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9687 9688 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9689 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9690 ;; 9691 9692dgux*) 9693 version_type=linux 9694 need_lib_prefix=no 9695 need_version=no 9696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9697 soname_spec='${libname}${release}${shared_ext}$major' 9698 shlibpath_var=LD_LIBRARY_PATH 9699 ;; 9700 9701freebsd* | dragonfly*) 9702 # DragonFly does not have aout. When/if they implement a new 9703 # versioning mechanism, adjust this. 9704 if test -x /usr/bin/objformat; then 9705 objformat=`/usr/bin/objformat` 9706 else 9707 case $host_os in 9708 freebsd[23].*) objformat=aout ;; 9709 *) objformat=elf ;; 9710 esac 9711 fi 9712 version_type=freebsd-$objformat 9713 case $version_type in 9714 freebsd-elf*) 9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9716 need_version=no 9717 need_lib_prefix=no 9718 ;; 9719 freebsd-*) 9720 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9721 need_version=yes 9722 ;; 9723 esac 9724 shlibpath_var=LD_LIBRARY_PATH 9725 case $host_os in 9726 freebsd2.*) 9727 shlibpath_overrides_runpath=yes 9728 ;; 9729 freebsd3.[01]* | freebsdelf3.[01]*) 9730 shlibpath_overrides_runpath=yes 9731 hardcode_into_libs=yes 9732 ;; 9733 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9734 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9735 shlibpath_overrides_runpath=no 9736 hardcode_into_libs=yes 9737 ;; 9738 *) # from 4.6 on, and DragonFly 9739 shlibpath_overrides_runpath=yes 9740 hardcode_into_libs=yes 9741 ;; 9742 esac 9743 ;; 9744 9745gnu*) 9746 version_type=linux 9747 need_lib_prefix=no 9748 need_version=no 9749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9750 soname_spec='${libname}${release}${shared_ext}$major' 9751 shlibpath_var=LD_LIBRARY_PATH 9752 hardcode_into_libs=yes 9753 ;; 9754 9755haiku*) 9756 version_type=linux 9757 need_lib_prefix=no 9758 need_version=no 9759 dynamic_linker="$host_os runtime_loader" 9760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9761 soname_spec='${libname}${release}${shared_ext}$major' 9762 shlibpath_var=LIBRARY_PATH 9763 shlibpath_overrides_runpath=yes 9764 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 9765 hardcode_into_libs=yes 9766 ;; 9767 9768hpux9* | hpux10* | hpux11*) 9769 # Give a soname corresponding to the major version so that dld.sl refuses to 9770 # link against other versions. 9771 version_type=sunos 9772 need_lib_prefix=no 9773 need_version=no 9774 case $host_cpu in 9775 ia64*) 9776 shrext_cmds='.so' 9777 hardcode_into_libs=yes 9778 dynamic_linker="$host_os dld.so" 9779 shlibpath_var=LD_LIBRARY_PATH 9780 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9782 soname_spec='${libname}${release}${shared_ext}$major' 9783 if test "X$HPUX_IA64_MODE" = X32; then 9784 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9785 else 9786 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9787 fi 9788 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9789 ;; 9790 hppa*64*) 9791 shrext_cmds='.sl' 9792 hardcode_into_libs=yes 9793 dynamic_linker="$host_os dld.sl" 9794 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9797 soname_spec='${libname}${release}${shared_ext}$major' 9798 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9799 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9800 ;; 9801 *) 9802 shrext_cmds='.sl' 9803 dynamic_linker="$host_os dld.sl" 9804 shlibpath_var=SHLIB_PATH 9805 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9807 soname_spec='${libname}${release}${shared_ext}$major' 9808 ;; 9809 esac 9810 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 9811 postinstall_cmds='chmod 555 $lib' 9812 # or fails outright, so override atomically: 9813 install_override_mode=555 9814 ;; 9815 9816interix[3-9]*) 9817 version_type=linux 9818 need_lib_prefix=no 9819 need_version=no 9820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9821 soname_spec='${libname}${release}${shared_ext}$major' 9822 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9823 shlibpath_var=LD_LIBRARY_PATH 9824 shlibpath_overrides_runpath=no 9825 hardcode_into_libs=yes 9826 ;; 9827 9828irix5* | irix6* | nonstopux*) 9829 case $host_os in 9830 nonstopux*) version_type=nonstopux ;; 9831 *) 9832 if test "$lt_cv_prog_gnu_ld" = yes; then 9833 version_type=linux 9834 else 9835 version_type=irix 9836 fi ;; 9837 esac 9838 need_lib_prefix=no 9839 need_version=no 9840 soname_spec='${libname}${release}${shared_ext}$major' 9841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9842 case $host_os in 9843 irix5* | nonstopux*) 9844 libsuff= shlibsuff= 9845 ;; 9846 *) 9847 case $LD in # libtool.m4 will add one of these switches to LD 9848 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9849 libsuff= shlibsuff= libmagic=32-bit;; 9850 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9851 libsuff=32 shlibsuff=N32 libmagic=N32;; 9852 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9853 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9854 *) libsuff= shlibsuff= libmagic=never-match;; 9855 esac 9856 ;; 9857 esac 9858 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9859 shlibpath_overrides_runpath=no 9860 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9861 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9862 hardcode_into_libs=yes 9863 ;; 9864 9865# No shared lib support for Linux oldld, aout, or coff. 9866linux*oldld* | linux*aout* | linux*coff*) 9867 dynamic_linker=no 9868 ;; 9869 9870# This must be Linux ELF. 9871linux* | k*bsd*-gnu | kopensolaris*-gnu) 9872 version_type=linux 9873 need_lib_prefix=no 9874 need_version=no 9875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9876 soname_spec='${libname}${release}${shared_ext}$major' 9877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9878 shlibpath_var=LD_LIBRARY_PATH 9879 shlibpath_overrides_runpath=no 9880 9881 # Some binutils ld are patched to set DT_RUNPATH 9882 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 9883 $as_echo_n "(cached) " >&6 9884else 9885 lt_cv_shlibpath_overrides_runpath=no 9886 save_LDFLAGS=$LDFLAGS 9887 save_libdir=$libdir 9888 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9889 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9890 if test x$gcc_no_link = xyes; then 9891 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 9892fi 9893cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9894/* end confdefs.h. */ 9895 9896int 9897main () 9898{ 9899 9900 ; 9901 return 0; 9902} 9903_ACEOF 9904if ac_fn_c_try_link "$LINENO"; then : 9905 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 9906 lt_cv_shlibpath_overrides_runpath=yes 9907fi 9908fi 9909rm -f core conftest.err conftest.$ac_objext \ 9910 conftest$ac_exeext conftest.$ac_ext 9911 LDFLAGS=$save_LDFLAGS 9912 libdir=$save_libdir 9913 9914fi 9915 9916 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 9917 9918 # This implies no fast_install, which is unacceptable. 9919 # Some rework will be needed to allow for fast_install 9920 # before this can be enabled. 9921 hardcode_into_libs=yes 9922 9923 # Append ld.so.conf contents to the search path 9924 if test -f /etc/ld.so.conf; then 9925 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' ' '` 9926 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 9927 fi 9928 9929 # We used to test for /lib/ld.so.1 and disable shared libraries on 9930 # powerpc, because MkLinux only supported shared libraries with the 9931 # GNU dynamic linker. Since this was broken with cross compilers, 9932 # most powerpc-linux boxes support dynamic linking these days and 9933 # people can always --disable-shared, the test was removed, and we 9934 # assume the GNU/Linux dynamic linker is in use. 9935 dynamic_linker='GNU/Linux ld.so' 9936 ;; 9937 9938netbsd*) 9939 version_type=sunos 9940 need_lib_prefix=no 9941 need_version=no 9942 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9945 dynamic_linker='NetBSD (a.out) ld.so' 9946 else 9947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9948 soname_spec='${libname}${release}${shared_ext}$major' 9949 dynamic_linker='NetBSD ld.elf_so' 9950 fi 9951 shlibpath_var=LD_LIBRARY_PATH 9952 shlibpath_overrides_runpath=yes 9953 hardcode_into_libs=yes 9954 ;; 9955 9956newsos6) 9957 version_type=linux 9958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9959 shlibpath_var=LD_LIBRARY_PATH 9960 shlibpath_overrides_runpath=yes 9961 ;; 9962 9963*nto* | *qnx*) 9964 version_type=qnx 9965 need_lib_prefix=no 9966 need_version=no 9967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9968 soname_spec='${libname}${release}${shared_ext}$major' 9969 shlibpath_var=LD_LIBRARY_PATH 9970 shlibpath_overrides_runpath=no 9971 hardcode_into_libs=yes 9972 dynamic_linker='ldqnx.so' 9973 ;; 9974 9975openbsd*) 9976 version_type=sunos 9977 sys_lib_dlsearch_path_spec="/usr/lib" 9978 need_lib_prefix=no 9979 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9980 case $host_os in 9981 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9982 *) need_version=no ;; 9983 esac 9984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9986 shlibpath_var=LD_LIBRARY_PATH 9987 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9988 case $host_os in 9989 openbsd2.[89] | openbsd2.[89].*) 9990 shlibpath_overrides_runpath=no 9991 ;; 9992 *) 9993 shlibpath_overrides_runpath=yes 9994 ;; 9995 esac 9996 else 9997 shlibpath_overrides_runpath=yes 9998 fi 9999 ;; 10000 10001os2*) 10002 libname_spec='$name' 10003 shrext_cmds=".dll" 10004 need_lib_prefix=no 10005 library_names_spec='$libname${shared_ext} $libname.a' 10006 dynamic_linker='OS/2 ld.exe' 10007 shlibpath_var=LIBPATH 10008 ;; 10009 10010osf3* | osf4* | osf5*) 10011 version_type=osf 10012 need_lib_prefix=no 10013 need_version=no 10014 soname_spec='${libname}${release}${shared_ext}$major' 10015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10016 shlibpath_var=LD_LIBRARY_PATH 10017 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10018 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10019 ;; 10020 10021rdos*) 10022 dynamic_linker=no 10023 ;; 10024 10025solaris*) 10026 version_type=linux 10027 need_lib_prefix=no 10028 need_version=no 10029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10030 soname_spec='${libname}${release}${shared_ext}$major' 10031 shlibpath_var=LD_LIBRARY_PATH 10032 shlibpath_overrides_runpath=yes 10033 hardcode_into_libs=yes 10034 # ldd complains unless libraries are executable 10035 postinstall_cmds='chmod +x $lib' 10036 ;; 10037 10038sunos4*) 10039 version_type=sunos 10040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10041 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10042 shlibpath_var=LD_LIBRARY_PATH 10043 shlibpath_overrides_runpath=yes 10044 if test "$with_gnu_ld" = yes; then 10045 need_lib_prefix=no 10046 fi 10047 need_version=yes 10048 ;; 10049 10050sysv4 | sysv4.3*) 10051 version_type=linux 10052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10053 soname_spec='${libname}${release}${shared_ext}$major' 10054 shlibpath_var=LD_LIBRARY_PATH 10055 case $host_vendor in 10056 sni) 10057 shlibpath_overrides_runpath=no 10058 need_lib_prefix=no 10059 runpath_var=LD_RUN_PATH 10060 ;; 10061 siemens) 10062 need_lib_prefix=no 10063 ;; 10064 motorola) 10065 need_lib_prefix=no 10066 need_version=no 10067 shlibpath_overrides_runpath=no 10068 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10069 ;; 10070 esac 10071 ;; 10072 10073sysv4*MP*) 10074 if test -d /usr/nec ;then 10075 version_type=linux 10076 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10077 soname_spec='$libname${shared_ext}.$major' 10078 shlibpath_var=LD_LIBRARY_PATH 10079 fi 10080 ;; 10081 10082sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10083 version_type=freebsd-elf 10084 need_lib_prefix=no 10085 need_version=no 10086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10087 soname_spec='${libname}${release}${shared_ext}$major' 10088 shlibpath_var=LD_LIBRARY_PATH 10089 shlibpath_overrides_runpath=yes 10090 hardcode_into_libs=yes 10091 if test "$with_gnu_ld" = yes; then 10092 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10093 else 10094 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10095 case $host_os in 10096 sco3.2v5*) 10097 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10098 ;; 10099 esac 10100 fi 10101 sys_lib_dlsearch_path_spec='/usr/lib' 10102 ;; 10103 10104tpf*) 10105 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10106 version_type=linux 10107 need_lib_prefix=no 10108 need_version=no 10109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10110 shlibpath_var=LD_LIBRARY_PATH 10111 shlibpath_overrides_runpath=no 10112 hardcode_into_libs=yes 10113 ;; 10114 10115uts4*) 10116 version_type=linux 10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10118 soname_spec='${libname}${release}${shared_ext}$major' 10119 shlibpath_var=LD_LIBRARY_PATH 10120 ;; 10121 10122*) 10123 dynamic_linker=no 10124 ;; 10125esac 10126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10127$as_echo "$dynamic_linker" >&6; } 10128test "$dynamic_linker" = no && can_build_shared=no 10129 10130variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10131if test "$GCC" = yes; then 10132 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10133fi 10134 10135if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10136 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10137fi 10138if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10139 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10140fi 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10234$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10235hardcode_action= 10236if test -n "$hardcode_libdir_flag_spec" || 10237 test -n "$runpath_var" || 10238 test "X$hardcode_automatic" = "Xyes" ; then 10239 10240 # We can hardcode non-existent directories. 10241 if test "$hardcode_direct" != no && 10242 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10243 # have to relink, otherwise we might link with an installed library 10244 # when we should be linking with a yet-to-be-installed one 10245 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10246 test "$hardcode_minus_L" != no; then 10247 # Linking always hardcodes the temporary library directory. 10248 hardcode_action=relink 10249 else 10250 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10251 hardcode_action=immediate 10252 fi 10253else 10254 # We cannot hardcode anything, or else we can only hardcode existing 10255 # directories. 10256 hardcode_action=unsupported 10257fi 10258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10259$as_echo "$hardcode_action" >&6; } 10260 10261if test "$hardcode_action" = relink || 10262 test "$inherit_rpath" = yes; then 10263 # Fast installation is not supported 10264 enable_fast_install=no 10265elif test "$shlibpath_overrides_runpath" = yes || 10266 test "$enable_shared" = no; then 10267 # Fast installation is not necessary 10268 enable_fast_install=needless 10269fi 10270 10271 10272 10273 10274 10275 10276 if test "x$enable_dlopen" != xyes; then 10277 enable_dlopen=unknown 10278 enable_dlopen_self=unknown 10279 enable_dlopen_self_static=unknown 10280else 10281 lt_cv_dlopen=no 10282 lt_cv_dlopen_libs= 10283 10284 case $host_os in 10285 beos*) 10286 lt_cv_dlopen="load_add_on" 10287 lt_cv_dlopen_libs= 10288 lt_cv_dlopen_self=yes 10289 ;; 10290 10291 mingw* | pw32* | cegcc*) 10292 lt_cv_dlopen="LoadLibrary" 10293 lt_cv_dlopen_libs= 10294 ;; 10295 10296 cygwin*) 10297 lt_cv_dlopen="dlopen" 10298 lt_cv_dlopen_libs= 10299 ;; 10300 10301 darwin*) 10302 # if libdl is installed we need to link against it 10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10304$as_echo_n "checking for dlopen in -ldl... " >&6; } 10305if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10306 $as_echo_n "(cached) " >&6 10307else 10308 ac_check_lib_save_LIBS=$LIBS 10309LIBS="-ldl $LIBS" 10310if test x$gcc_no_link = xyes; then 10311 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10312fi 10313cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10314/* end confdefs.h. */ 10315 10316/* Override any GCC internal prototype to avoid an error. 10317 Use char because int might match the return type of a GCC 10318 builtin and then its argument prototype would still apply. */ 10319#ifdef __cplusplus 10320extern "C" 10321#endif 10322char dlopen (); 10323int 10324main () 10325{ 10326return dlopen (); 10327 ; 10328 return 0; 10329} 10330_ACEOF 10331if ac_fn_c_try_link "$LINENO"; then : 10332 ac_cv_lib_dl_dlopen=yes 10333else 10334 ac_cv_lib_dl_dlopen=no 10335fi 10336rm -f core conftest.err conftest.$ac_objext \ 10337 conftest$ac_exeext conftest.$ac_ext 10338LIBS=$ac_check_lib_save_LIBS 10339fi 10340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10341$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10342if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10343 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10344else 10345 10346 lt_cv_dlopen="dyld" 10347 lt_cv_dlopen_libs= 10348 lt_cv_dlopen_self=yes 10349 10350fi 10351 10352 ;; 10353 10354 *) 10355 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10356if test "x$ac_cv_func_shl_load" = x""yes; then : 10357 lt_cv_dlopen="shl_load" 10358else 10359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10360$as_echo_n "checking for shl_load in -ldld... " >&6; } 10361if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10362 $as_echo_n "(cached) " >&6 10363else 10364 ac_check_lib_save_LIBS=$LIBS 10365LIBS="-ldld $LIBS" 10366if test x$gcc_no_link = xyes; then 10367 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10368fi 10369cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10370/* end confdefs.h. */ 10371 10372/* Override any GCC internal prototype to avoid an error. 10373 Use char because int might match the return type of a GCC 10374 builtin and then its argument prototype would still apply. */ 10375#ifdef __cplusplus 10376extern "C" 10377#endif 10378char shl_load (); 10379int 10380main () 10381{ 10382return shl_load (); 10383 ; 10384 return 0; 10385} 10386_ACEOF 10387if ac_fn_c_try_link "$LINENO"; then : 10388 ac_cv_lib_dld_shl_load=yes 10389else 10390 ac_cv_lib_dld_shl_load=no 10391fi 10392rm -f core conftest.err conftest.$ac_objext \ 10393 conftest$ac_exeext conftest.$ac_ext 10394LIBS=$ac_check_lib_save_LIBS 10395fi 10396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10397$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10398if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10399 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10400else 10401 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10402if test "x$ac_cv_func_dlopen" = x""yes; then : 10403 lt_cv_dlopen="dlopen" 10404else 10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10406$as_echo_n "checking for dlopen in -ldl... " >&6; } 10407if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10408 $as_echo_n "(cached) " >&6 10409else 10410 ac_check_lib_save_LIBS=$LIBS 10411LIBS="-ldl $LIBS" 10412if test x$gcc_no_link = xyes; then 10413 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10414fi 10415cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10416/* end confdefs.h. */ 10417 10418/* Override any GCC internal prototype to avoid an error. 10419 Use char because int might match the return type of a GCC 10420 builtin and then its argument prototype would still apply. */ 10421#ifdef __cplusplus 10422extern "C" 10423#endif 10424char dlopen (); 10425int 10426main () 10427{ 10428return dlopen (); 10429 ; 10430 return 0; 10431} 10432_ACEOF 10433if ac_fn_c_try_link "$LINENO"; then : 10434 ac_cv_lib_dl_dlopen=yes 10435else 10436 ac_cv_lib_dl_dlopen=no 10437fi 10438rm -f core conftest.err conftest.$ac_objext \ 10439 conftest$ac_exeext conftest.$ac_ext 10440LIBS=$ac_check_lib_save_LIBS 10441fi 10442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10443$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10444if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10445 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10446else 10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10448$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10449if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10450 $as_echo_n "(cached) " >&6 10451else 10452 ac_check_lib_save_LIBS=$LIBS 10453LIBS="-lsvld $LIBS" 10454if test x$gcc_no_link = xyes; then 10455 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10456fi 10457cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10458/* end confdefs.h. */ 10459 10460/* Override any GCC internal prototype to avoid an error. 10461 Use char because int might match the return type of a GCC 10462 builtin and then its argument prototype would still apply. */ 10463#ifdef __cplusplus 10464extern "C" 10465#endif 10466char dlopen (); 10467int 10468main () 10469{ 10470return dlopen (); 10471 ; 10472 return 0; 10473} 10474_ACEOF 10475if ac_fn_c_try_link "$LINENO"; then : 10476 ac_cv_lib_svld_dlopen=yes 10477else 10478 ac_cv_lib_svld_dlopen=no 10479fi 10480rm -f core conftest.err conftest.$ac_objext \ 10481 conftest$ac_exeext conftest.$ac_ext 10482LIBS=$ac_check_lib_save_LIBS 10483fi 10484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10485$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10486if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10487 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10488else 10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10490$as_echo_n "checking for dld_link in -ldld... " >&6; } 10491if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10492 $as_echo_n "(cached) " >&6 10493else 10494 ac_check_lib_save_LIBS=$LIBS 10495LIBS="-ldld $LIBS" 10496if test x$gcc_no_link = xyes; then 10497 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 10498fi 10499cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10500/* end confdefs.h. */ 10501 10502/* Override any GCC internal prototype to avoid an error. 10503 Use char because int might match the return type of a GCC 10504 builtin and then its argument prototype would still apply. */ 10505#ifdef __cplusplus 10506extern "C" 10507#endif 10508char dld_link (); 10509int 10510main () 10511{ 10512return dld_link (); 10513 ; 10514 return 0; 10515} 10516_ACEOF 10517if ac_fn_c_try_link "$LINENO"; then : 10518 ac_cv_lib_dld_dld_link=yes 10519else 10520 ac_cv_lib_dld_dld_link=no 10521fi 10522rm -f core conftest.err conftest.$ac_objext \ 10523 conftest$ac_exeext conftest.$ac_ext 10524LIBS=$ac_check_lib_save_LIBS 10525fi 10526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10527$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10528if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10529 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10530fi 10531 10532 10533fi 10534 10535 10536fi 10537 10538 10539fi 10540 10541 10542fi 10543 10544 10545fi 10546 10547 ;; 10548 esac 10549 10550 if test "x$lt_cv_dlopen" != xno; then 10551 enable_dlopen=yes 10552 else 10553 enable_dlopen=no 10554 fi 10555 10556 case $lt_cv_dlopen in 10557 dlopen) 10558 save_CPPFLAGS="$CPPFLAGS" 10559 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10560 10561 save_LDFLAGS="$LDFLAGS" 10562 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10563 10564 save_LIBS="$LIBS" 10565 LIBS="$lt_cv_dlopen_libs $LIBS" 10566 10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10568$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10569if test "${lt_cv_dlopen_self+set}" = set; then : 10570 $as_echo_n "(cached) " >&6 10571else 10572 if test "$cross_compiling" = yes; then : 10573 lt_cv_dlopen_self=cross 10574else 10575 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10576 lt_status=$lt_dlunknown 10577 cat > conftest.$ac_ext <<_LT_EOF 10578#line 10578 "configure" 10579#include "confdefs.h" 10580 10581#if HAVE_DLFCN_H 10582#include <dlfcn.h> 10583#endif 10584 10585#include <stdio.h> 10586 10587#ifdef RTLD_GLOBAL 10588# define LT_DLGLOBAL RTLD_GLOBAL 10589#else 10590# ifdef DL_GLOBAL 10591# define LT_DLGLOBAL DL_GLOBAL 10592# else 10593# define LT_DLGLOBAL 0 10594# endif 10595#endif 10596 10597/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10598 find out it does not work in some platform. */ 10599#ifndef LT_DLLAZY_OR_NOW 10600# ifdef RTLD_LAZY 10601# define LT_DLLAZY_OR_NOW RTLD_LAZY 10602# else 10603# ifdef DL_LAZY 10604# define LT_DLLAZY_OR_NOW DL_LAZY 10605# else 10606# ifdef RTLD_NOW 10607# define LT_DLLAZY_OR_NOW RTLD_NOW 10608# else 10609# ifdef DL_NOW 10610# define LT_DLLAZY_OR_NOW DL_NOW 10611# else 10612# define LT_DLLAZY_OR_NOW 0 10613# endif 10614# endif 10615# endif 10616# endif 10617#endif 10618 10619/* When -fvisbility=hidden is used, assume the code has been annotated 10620 correspondingly for the symbols needed. */ 10621#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10622void fnord () __attribute__((visibility("default"))); 10623#endif 10624 10625void fnord () { int i=42; } 10626int main () 10627{ 10628 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10629 int status = $lt_dlunknown; 10630 10631 if (self) 10632 { 10633 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10634 else 10635 { 10636 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10637 else puts (dlerror ()); 10638 } 10639 /* dlclose (self); */ 10640 } 10641 else 10642 puts (dlerror ()); 10643 10644 return status; 10645} 10646_LT_EOF 10647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10648 (eval $ac_link) 2>&5 10649 ac_status=$? 10650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10651 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10652 (./conftest; exit; ) >&5 2>/dev/null 10653 lt_status=$? 10654 case x$lt_status in 10655 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10656 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10657 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10658 esac 10659 else : 10660 # compilation failed 10661 lt_cv_dlopen_self=no 10662 fi 10663fi 10664rm -fr conftest* 10665 10666 10667fi 10668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10669$as_echo "$lt_cv_dlopen_self" >&6; } 10670 10671 if test "x$lt_cv_dlopen_self" = xyes; then 10672 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10674$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10675if test "${lt_cv_dlopen_self_static+set}" = set; then : 10676 $as_echo_n "(cached) " >&6 10677else 10678 if test "$cross_compiling" = yes; then : 10679 lt_cv_dlopen_self_static=cross 10680else 10681 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10682 lt_status=$lt_dlunknown 10683 cat > conftest.$ac_ext <<_LT_EOF 10684#line 10684 "configure" 10685#include "confdefs.h" 10686 10687#if HAVE_DLFCN_H 10688#include <dlfcn.h> 10689#endif 10690 10691#include <stdio.h> 10692 10693#ifdef RTLD_GLOBAL 10694# define LT_DLGLOBAL RTLD_GLOBAL 10695#else 10696# ifdef DL_GLOBAL 10697# define LT_DLGLOBAL DL_GLOBAL 10698# else 10699# define LT_DLGLOBAL 0 10700# endif 10701#endif 10702 10703/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10704 find out it does not work in some platform. */ 10705#ifndef LT_DLLAZY_OR_NOW 10706# ifdef RTLD_LAZY 10707# define LT_DLLAZY_OR_NOW RTLD_LAZY 10708# else 10709# ifdef DL_LAZY 10710# define LT_DLLAZY_OR_NOW DL_LAZY 10711# else 10712# ifdef RTLD_NOW 10713# define LT_DLLAZY_OR_NOW RTLD_NOW 10714# else 10715# ifdef DL_NOW 10716# define LT_DLLAZY_OR_NOW DL_NOW 10717# else 10718# define LT_DLLAZY_OR_NOW 0 10719# endif 10720# endif 10721# endif 10722# endif 10723#endif 10724 10725/* When -fvisbility=hidden is used, assume the code has been annotated 10726 correspondingly for the symbols needed. */ 10727#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10728void fnord () __attribute__((visibility("default"))); 10729#endif 10730 10731void fnord () { int i=42; } 10732int main () 10733{ 10734 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10735 int status = $lt_dlunknown; 10736 10737 if (self) 10738 { 10739 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10740 else 10741 { 10742 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10743 else puts (dlerror ()); 10744 } 10745 /* dlclose (self); */ 10746 } 10747 else 10748 puts (dlerror ()); 10749 10750 return status; 10751} 10752_LT_EOF 10753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10754 (eval $ac_link) 2>&5 10755 ac_status=$? 10756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10757 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10758 (./conftest; exit; ) >&5 2>/dev/null 10759 lt_status=$? 10760 case x$lt_status in 10761 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10762 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10763 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10764 esac 10765 else : 10766 # compilation failed 10767 lt_cv_dlopen_self_static=no 10768 fi 10769fi 10770rm -fr conftest* 10771 10772 10773fi 10774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10775$as_echo "$lt_cv_dlopen_self_static" >&6; } 10776 fi 10777 10778 CPPFLAGS="$save_CPPFLAGS" 10779 LDFLAGS="$save_LDFLAGS" 10780 LIBS="$save_LIBS" 10781 ;; 10782 esac 10783 10784 case $lt_cv_dlopen_self in 10785 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10786 *) enable_dlopen_self=unknown ;; 10787 esac 10788 10789 case $lt_cv_dlopen_self_static in 10790 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10791 *) enable_dlopen_self_static=unknown ;; 10792 esac 10793fi 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811striplib= 10812old_striplib= 10813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10814$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10815if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10816 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10817 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10819$as_echo "yes" >&6; } 10820else 10821# FIXME - insert some real tests, host_os isn't really good enough 10822 case $host_os in 10823 darwin*) 10824 if test -n "$STRIP" ; then 10825 striplib="$STRIP -x" 10826 old_striplib="$STRIP -S" 10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10828$as_echo "yes" >&6; } 10829 else 10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10831$as_echo "no" >&6; } 10832 fi 10833 ;; 10834 *) 10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10836$as_echo "no" >&6; } 10837 ;; 10838 esac 10839fi 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 # Report which library types will actually be built 10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10854$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10856$as_echo "$can_build_shared" >&6; } 10857 10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10859$as_echo_n "checking whether to build shared libraries... " >&6; } 10860 test "$can_build_shared" = "no" && enable_shared=no 10861 10862 # On AIX, shared libraries and static libraries use the same namespace, and 10863 # are all built from PIC. 10864 case $host_os in 10865 aix3*) 10866 test "$enable_shared" = yes && enable_static=no 10867 if test -n "$RANLIB"; then 10868 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10869 postinstall_cmds='$RANLIB $lib' 10870 fi 10871 ;; 10872 10873 aix[4-9]*) 10874 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10875 test "$enable_shared" = yes && enable_static=no 10876 fi 10877 ;; 10878 esac 10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10880$as_echo "$enable_shared" >&6; } 10881 10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10883$as_echo_n "checking whether to build static libraries... " >&6; } 10884 # Make sure either enable_shared or enable_static is yes. 10885 test "$enable_shared" = yes || enable_static=yes 10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10887$as_echo "$enable_static" >&6; } 10888 10889 10890 10891 10892fi 10893ac_ext=c 10894ac_cpp='$CPP $CPPFLAGS' 10895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10897ac_compiler_gnu=$ac_cv_c_compiler_gnu 10898 10899CC="$lt_save_CC" 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 ac_config_commands="$ac_config_commands libtool" 10914 10915 10916 10917 10918# Only expand once: 10919 10920 10921 10922 10923 10924case $host in 10925 *-cygwin* | *-mingw*) 10926 # 'host' will be top-level target in the case of a target lib, 10927 # we must compare to with_cross_host to decide if this is a native 10928 # or cross-compiler and select where to install dlls appropriately. 10929 if test -n "$with_cross_host" && 10930 test x"$with_cross_host" != x"no"; then 10931 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; 10932 else 10933 lt_host_flags='-no-undefined -bindir "$(bindir)"'; 10934 fi 10935 ;; 10936 *) 10937 lt_host_flags= 10938 ;; 10939esac 10940 10941 10942 10943 10944 10945 10946 10947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 10948$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 10949 # Check whether --enable-maintainer-mode was given. 10950if test "${enable_maintainer_mode+set}" = set; then : 10951 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 10952else 10953 USE_MAINTAINER_MODE=no 10954fi 10955 10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 10957$as_echo "$USE_MAINTAINER_MODE" >&6; } 10958 if test $USE_MAINTAINER_MODE = yes; then 10959 MAINTAINER_MODE_TRUE= 10960 MAINTAINER_MODE_FALSE='#' 10961else 10962 MAINTAINER_MODE_TRUE='#' 10963 MAINTAINER_MODE_FALSE= 10964fi 10965 10966 MAINT=$MAINTAINER_MODE_TRUE 10967 10968 10969 10970ac_ext=c 10971ac_cpp='$CPP $CPPFLAGS' 10972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10974ac_compiler_gnu=$ac_cv_c_compiler_gnu 10975 10976# The same as in boehm-gc and libstdc++. Have to borrow it from there. 10977# We must force CC to /not/ be precious variables; otherwise 10978# the wrong, non-multilib-adjusted value will be used in multilibs. 10979# As a side effect, we have to subst CFLAGS ourselves. 10980 10981 10982 10983ac_ext=c 10984ac_cpp='$CPP $CPPFLAGS' 10985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10987ac_compiler_gnu=$ac_cv_c_compiler_gnu 10988if test -n "$ac_tool_prefix"; then 10989 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 10990set dummy ${ac_tool_prefix}gcc; ac_word=$2 10991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10992$as_echo_n "checking for $ac_word... " >&6; } 10993if test "${ac_cv_prog_CC+set}" = set; then : 10994 $as_echo_n "(cached) " >&6 10995else 10996 if test -n "$CC"; then 10997 ac_cv_prog_CC="$CC" # Let the user override the test. 10998else 10999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11000for as_dir in $PATH 11001do 11002 IFS=$as_save_IFS 11003 test -z "$as_dir" && as_dir=. 11004 for ac_exec_ext in '' $ac_executable_extensions; do 11005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11006 ac_cv_prog_CC="${ac_tool_prefix}gcc" 11007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11008 break 2 11009 fi 11010done 11011 done 11012IFS=$as_save_IFS 11013 11014fi 11015fi 11016CC=$ac_cv_prog_CC 11017if test -n "$CC"; then 11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11019$as_echo "$CC" >&6; } 11020else 11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11022$as_echo "no" >&6; } 11023fi 11024 11025 11026fi 11027if test -z "$ac_cv_prog_CC"; then 11028 ac_ct_CC=$CC 11029 # Extract the first word of "gcc", so it can be a program name with args. 11030set dummy gcc; ac_word=$2 11031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11032$as_echo_n "checking for $ac_word... " >&6; } 11033if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 11034 $as_echo_n "(cached) " >&6 11035else 11036 if test -n "$ac_ct_CC"; then 11037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11038else 11039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11040for as_dir in $PATH 11041do 11042 IFS=$as_save_IFS 11043 test -z "$as_dir" && as_dir=. 11044 for ac_exec_ext in '' $ac_executable_extensions; do 11045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11046 ac_cv_prog_ac_ct_CC="gcc" 11047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11048 break 2 11049 fi 11050done 11051 done 11052IFS=$as_save_IFS 11053 11054fi 11055fi 11056ac_ct_CC=$ac_cv_prog_ac_ct_CC 11057if test -n "$ac_ct_CC"; then 11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11059$as_echo "$ac_ct_CC" >&6; } 11060else 11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11062$as_echo "no" >&6; } 11063fi 11064 11065 if test "x$ac_ct_CC" = x; then 11066 CC="" 11067 else 11068 case $cross_compiling:$ac_tool_warned in 11069yes:) 11070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11072ac_tool_warned=yes ;; 11073esac 11074 CC=$ac_ct_CC 11075 fi 11076else 11077 CC="$ac_cv_prog_CC" 11078fi 11079 11080if test -z "$CC"; then 11081 if test -n "$ac_tool_prefix"; then 11082 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 11083set dummy ${ac_tool_prefix}cc; ac_word=$2 11084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11085$as_echo_n "checking for $ac_word... " >&6; } 11086if test "${ac_cv_prog_CC+set}" = set; then : 11087 $as_echo_n "(cached) " >&6 11088else 11089 if test -n "$CC"; then 11090 ac_cv_prog_CC="$CC" # Let the user override the test. 11091else 11092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11093for as_dir in $PATH 11094do 11095 IFS=$as_save_IFS 11096 test -z "$as_dir" && as_dir=. 11097 for ac_exec_ext in '' $ac_executable_extensions; do 11098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11099 ac_cv_prog_CC="${ac_tool_prefix}cc" 11100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11101 break 2 11102 fi 11103done 11104 done 11105IFS=$as_save_IFS 11106 11107fi 11108fi 11109CC=$ac_cv_prog_CC 11110if test -n "$CC"; then 11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11112$as_echo "$CC" >&6; } 11113else 11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11115$as_echo "no" >&6; } 11116fi 11117 11118 11119 fi 11120fi 11121if test -z "$CC"; then 11122 # Extract the first word of "cc", so it can be a program name with args. 11123set dummy cc; ac_word=$2 11124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11125$as_echo_n "checking for $ac_word... " >&6; } 11126if test "${ac_cv_prog_CC+set}" = set; then : 11127 $as_echo_n "(cached) " >&6 11128else 11129 if test -n "$CC"; then 11130 ac_cv_prog_CC="$CC" # Let the user override the test. 11131else 11132 ac_prog_rejected=no 11133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11134for as_dir in $PATH 11135do 11136 IFS=$as_save_IFS 11137 test -z "$as_dir" && as_dir=. 11138 for ac_exec_ext in '' $ac_executable_extensions; do 11139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11140 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 11141 ac_prog_rejected=yes 11142 continue 11143 fi 11144 ac_cv_prog_CC="cc" 11145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11146 break 2 11147 fi 11148done 11149 done 11150IFS=$as_save_IFS 11151 11152if test $ac_prog_rejected = yes; then 11153 # We found a bogon in the path, so make sure we never use it. 11154 set dummy $ac_cv_prog_CC 11155 shift 11156 if test $# != 0; then 11157 # We chose a different compiler from the bogus one. 11158 # However, it has the same basename, so the bogon will be chosen 11159 # first if we set CC to just the basename; use the full file name. 11160 shift 11161 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 11162 fi 11163fi 11164fi 11165fi 11166CC=$ac_cv_prog_CC 11167if test -n "$CC"; then 11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11169$as_echo "$CC" >&6; } 11170else 11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11172$as_echo "no" >&6; } 11173fi 11174 11175 11176fi 11177if test -z "$CC"; then 11178 if test -n "$ac_tool_prefix"; then 11179 for ac_prog in cl.exe 11180 do 11181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11182set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11184$as_echo_n "checking for $ac_word... " >&6; } 11185if test "${ac_cv_prog_CC+set}" = set; then : 11186 $as_echo_n "(cached) " >&6 11187else 11188 if test -n "$CC"; then 11189 ac_cv_prog_CC="$CC" # Let the user override the test. 11190else 11191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11192for as_dir in $PATH 11193do 11194 IFS=$as_save_IFS 11195 test -z "$as_dir" && as_dir=. 11196 for ac_exec_ext in '' $ac_executable_extensions; do 11197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11198 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 11199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11200 break 2 11201 fi 11202done 11203 done 11204IFS=$as_save_IFS 11205 11206fi 11207fi 11208CC=$ac_cv_prog_CC 11209if test -n "$CC"; then 11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 11211$as_echo "$CC" >&6; } 11212else 11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11214$as_echo "no" >&6; } 11215fi 11216 11217 11218 test -n "$CC" && break 11219 done 11220fi 11221if test -z "$CC"; then 11222 ac_ct_CC=$CC 11223 for ac_prog in cl.exe 11224do 11225 # Extract the first word of "$ac_prog", so it can be a program name with args. 11226set dummy $ac_prog; ac_word=$2 11227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11228$as_echo_n "checking for $ac_word... " >&6; } 11229if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 11230 $as_echo_n "(cached) " >&6 11231else 11232 if test -n "$ac_ct_CC"; then 11233 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 11234else 11235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11236for as_dir in $PATH 11237do 11238 IFS=$as_save_IFS 11239 test -z "$as_dir" && as_dir=. 11240 for ac_exec_ext in '' $ac_executable_extensions; do 11241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11242 ac_cv_prog_ac_ct_CC="$ac_prog" 11243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11244 break 2 11245 fi 11246done 11247 done 11248IFS=$as_save_IFS 11249 11250fi 11251fi 11252ac_ct_CC=$ac_cv_prog_ac_ct_CC 11253if test -n "$ac_ct_CC"; then 11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 11255$as_echo "$ac_ct_CC" >&6; } 11256else 11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11258$as_echo "no" >&6; } 11259fi 11260 11261 11262 test -n "$ac_ct_CC" && break 11263done 11264 11265 if test "x$ac_ct_CC" = x; then 11266 CC="" 11267 else 11268 case $cross_compiling:$ac_tool_warned in 11269yes:) 11270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11272ac_tool_warned=yes ;; 11273esac 11274 CC=$ac_ct_CC 11275 fi 11276fi 11277 11278fi 11279 11280 11281test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11283as_fn_error "no acceptable C compiler found in \$PATH 11284See \`config.log' for more details." "$LINENO" 5; } 11285 11286# Provide some information about the compiler. 11287$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 11288set X $ac_compile 11289ac_compiler=$2 11290for ac_option in --version -v -V -qversion; do 11291 { { ac_try="$ac_compiler $ac_option >&5" 11292case "(($ac_try" in 11293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11294 *) ac_try_echo=$ac_try;; 11295esac 11296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11297$as_echo "$ac_try_echo"; } >&5 11298 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11299 ac_status=$? 11300 if test -s conftest.err; then 11301 sed '10a\ 11302... rest of stderr output deleted ... 11303 10q' conftest.err >conftest.er1 11304 cat conftest.er1 >&5 11305 rm -f conftest.er1 conftest.err 11306 fi 11307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11308 test $ac_status = 0; } 11309done 11310 11311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 11312$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 11313if test "${ac_cv_c_compiler_gnu+set}" = set; then : 11314 $as_echo_n "(cached) " >&6 11315else 11316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11317/* end confdefs.h. */ 11318 11319int 11320main () 11321{ 11322#ifndef __GNUC__ 11323 choke me 11324#endif 11325 11326 ; 11327 return 0; 11328} 11329_ACEOF 11330if ac_fn_c_try_compile "$LINENO"; then : 11331 ac_compiler_gnu=yes 11332else 11333 ac_compiler_gnu=no 11334fi 11335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11336ac_cv_c_compiler_gnu=$ac_compiler_gnu 11337 11338fi 11339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 11340$as_echo "$ac_cv_c_compiler_gnu" >&6; } 11341if test $ac_compiler_gnu = yes; then 11342 GCC=yes 11343else 11344 GCC= 11345fi 11346ac_test_CFLAGS=${CFLAGS+set} 11347ac_save_CFLAGS=$CFLAGS 11348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 11349$as_echo_n "checking whether $CC accepts -g... " >&6; } 11350if test "${ac_cv_prog_cc_g+set}" = set; then : 11351 $as_echo_n "(cached) " >&6 11352else 11353 ac_save_c_werror_flag=$ac_c_werror_flag 11354 ac_c_werror_flag=yes 11355 ac_cv_prog_cc_g=no 11356 CFLAGS="-g" 11357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11358/* end confdefs.h. */ 11359 11360int 11361main () 11362{ 11363 11364 ; 11365 return 0; 11366} 11367_ACEOF 11368if ac_fn_c_try_compile "$LINENO"; then : 11369 ac_cv_prog_cc_g=yes 11370else 11371 CFLAGS="" 11372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11373/* end confdefs.h. */ 11374 11375int 11376main () 11377{ 11378 11379 ; 11380 return 0; 11381} 11382_ACEOF 11383if ac_fn_c_try_compile "$LINENO"; then : 11384 11385else 11386 ac_c_werror_flag=$ac_save_c_werror_flag 11387 CFLAGS="-g" 11388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11389/* end confdefs.h. */ 11390 11391int 11392main () 11393{ 11394 11395 ; 11396 return 0; 11397} 11398_ACEOF 11399if ac_fn_c_try_compile "$LINENO"; then : 11400 ac_cv_prog_cc_g=yes 11401fi 11402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11403fi 11404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11405fi 11406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11407 ac_c_werror_flag=$ac_save_c_werror_flag 11408fi 11409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 11410$as_echo "$ac_cv_prog_cc_g" >&6; } 11411if test "$ac_test_CFLAGS" = set; then 11412 CFLAGS=$ac_save_CFLAGS 11413elif test $ac_cv_prog_cc_g = yes; then 11414 if test "$GCC" = yes; then 11415 CFLAGS="-g -O2" 11416 else 11417 CFLAGS="-g" 11418 fi 11419else 11420 if test "$GCC" = yes; then 11421 CFLAGS="-O2" 11422 else 11423 CFLAGS= 11424 fi 11425fi 11426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 11427$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 11428if test "${ac_cv_prog_cc_c89+set}" = set; then : 11429 $as_echo_n "(cached) " >&6 11430else 11431 ac_cv_prog_cc_c89=no 11432ac_save_CC=$CC 11433cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11434/* end confdefs.h. */ 11435#include <stdarg.h> 11436#include <stdio.h> 11437#include <sys/types.h> 11438#include <sys/stat.h> 11439/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 11440struct buf { int x; }; 11441FILE * (*rcsopen) (struct buf *, struct stat *, int); 11442static char *e (p, i) 11443 char **p; 11444 int i; 11445{ 11446 return p[i]; 11447} 11448static char *f (char * (*g) (char **, int), char **p, ...) 11449{ 11450 char *s; 11451 va_list v; 11452 va_start (v,p); 11453 s = g (p, va_arg (v,int)); 11454 va_end (v); 11455 return s; 11456} 11457 11458/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 11459 function prototypes and stuff, but not '\xHH' hex character constants. 11460 These don't provoke an error unfortunately, instead are silently treated 11461 as 'x'. The following induces an error, until -std is added to get 11462 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 11463 array size at least. It's necessary to write '\x00'==0 to get something 11464 that's true only with -std. */ 11465int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 11466 11467/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 11468 inside strings and character constants. */ 11469#define FOO(x) 'x' 11470int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 11471 11472int test (int i, double x); 11473struct s1 {int (*f) (int a);}; 11474struct s2 {int (*f) (double a);}; 11475int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 11476int argc; 11477char **argv; 11478int 11479main () 11480{ 11481return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 11482 ; 11483 return 0; 11484} 11485_ACEOF 11486for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 11487 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 11488do 11489 CC="$ac_save_CC $ac_arg" 11490 if ac_fn_c_try_compile "$LINENO"; then : 11491 ac_cv_prog_cc_c89=$ac_arg 11492fi 11493rm -f core conftest.err conftest.$ac_objext 11494 test "x$ac_cv_prog_cc_c89" != "xno" && break 11495done 11496rm -f conftest.$ac_ext 11497CC=$ac_save_CC 11498 11499fi 11500# AC_CACHE_VAL 11501case "x$ac_cv_prog_cc_c89" in 11502 x) 11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11504$as_echo "none needed" >&6; } ;; 11505 xno) 11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11507$as_echo "unsupported" >&6; } ;; 11508 *) 11509 CC="$CC $ac_cv_prog_cc_c89" 11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 11511$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 11512esac 11513if test "x$ac_cv_prog_cc_c89" != xno; then : 11514 11515fi 11516 11517ac_ext=c 11518ac_cpp='$CPP $CPPFLAGS' 11519ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11520ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11521ac_compiler_gnu=$ac_cv_c_compiler_gnu 11522 11523depcc="$CC" am_compiler_list= 11524 11525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 11526$as_echo_n "checking dependency style of $depcc... " >&6; } 11527if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 11528 $as_echo_n "(cached) " >&6 11529else 11530 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11531 # We make a subdir and do the tests there. Otherwise we can end up 11532 # making bogus files that we don't know about and never remove. For 11533 # instance it was reported that on HP-UX the gcc test will end up 11534 # making a dummy file named `D' -- because `-MD' means `put the output 11535 # in D'. 11536 rm -rf conftest.dir 11537 mkdir conftest.dir 11538 # Copy depcomp to subdir because otherwise we won't find it if we're 11539 # using a relative directory. 11540 cp "$am_depcomp" conftest.dir 11541 cd conftest.dir 11542 # We will build objects and dependencies in a subdirectory because 11543 # it helps to detect inapplicable dependency modes. For instance 11544 # both Tru64's cc and ICC support -MD to output dependencies as a 11545 # side effect of compilation, but ICC will put the dependencies in 11546 # the current directory while Tru64 will put them in the object 11547 # directory. 11548 mkdir sub 11549 11550 am_cv_CC_dependencies_compiler_type=none 11551 if test "$am_compiler_list" = ""; then 11552 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11553 fi 11554 am__universal=false 11555 case " $depcc " in #( 11556 *\ -arch\ *\ -arch\ *) am__universal=true ;; 11557 esac 11558 11559 for depmode in $am_compiler_list; do 11560 # Setup a source with many dependencies, because some compilers 11561 # like to wrap large dependency lists on column 80 (with \), and 11562 # we should not choose a depcomp mode which is confused by this. 11563 # 11564 # We need to recreate these files for each test, as the compiler may 11565 # overwrite some of them when testing with obscure command lines. 11566 # This happens at least with the AIX C compiler. 11567 : > sub/conftest.c 11568 for i in 1 2 3 4 5 6; do 11569 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11570 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 11571 # Solaris 8's {/usr,}/bin/sh. 11572 touch sub/conftst$i.h 11573 done 11574 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11575 11576 # We check with `-c' and `-o' for the sake of the "dashmstdout" 11577 # mode. It turns out that the SunPro C++ compiler does not properly 11578 # handle `-M -o', and we need to detect this. Also, some Intel 11579 # versions had trouble with output in subdirs 11580 am__obj=sub/conftest.${OBJEXT-o} 11581 am__minus_obj="-o $am__obj" 11582 case $depmode in 11583 gcc) 11584 # This depmode causes a compiler race in universal mode. 11585 test "$am__universal" = false || continue 11586 ;; 11587 nosideeffect) 11588 # after this tag, mechanisms are not by side-effect, so they'll 11589 # only be used when explicitly requested 11590 if test "x$enable_dependency_tracking" = xyes; then 11591 continue 11592 else 11593 break 11594 fi 11595 ;; 11596 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 11597 # This compiler won't grok `-c -o', but also, the minuso test has 11598 # not run yet. These depmodes are late enough in the game, and 11599 # so weak that their functioning should not be impacted. 11600 am__obj=conftest.${OBJEXT-o} 11601 am__minus_obj= 11602 ;; 11603 none) break ;; 11604 esac 11605 if depmode=$depmode \ 11606 source=sub/conftest.c object=$am__obj \ 11607 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11608 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 11609 >/dev/null 2>conftest.err && 11610 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11611 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11612 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 11613 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11614 # icc doesn't choke on unknown options, it will just issue warnings 11615 # or remarks (even with -Werror). So we grep stderr for any message 11616 # that says an option was ignored or not supported. 11617 # When given -MP, icc 7.0 and 7.1 complain thusly: 11618 # icc: Command line warning: ignoring option '-M'; no argument required 11619 # The diagnosis changed in icc 8.0: 11620 # icc: Command line remark: option '-MP' not supported 11621 if (grep 'ignoring option' conftest.err || 11622 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11623 am_cv_CC_dependencies_compiler_type=$depmode 11624 break 11625 fi 11626 fi 11627 done 11628 11629 cd .. 11630 rm -rf conftest.dir 11631else 11632 am_cv_CC_dependencies_compiler_type=none 11633fi 11634 11635fi 11636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 11637$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 11638CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 11639 11640 if 11641 test "x$enable_dependency_tracking" != xno \ 11642 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 11643 am__fastdepCC_TRUE= 11644 am__fastdepCC_FALSE='#' 11645else 11646 am__fastdepCC_TRUE='#' 11647 am__fastdepCC_FALSE= 11648fi 11649 11650 11651 11652 11653 11654 11655if test "x$CC" != xcc; then 11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 11657$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 11658else 11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 11660$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 11661fi 11662set dummy $CC; ac_cc=`$as_echo "$2" | 11663 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 11664if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : 11665 $as_echo_n "(cached) " >&6 11666else 11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11668/* end confdefs.h. */ 11669 11670int 11671main () 11672{ 11673 11674 ; 11675 return 0; 11676} 11677_ACEOF 11678# Make sure it works both with $CC and with simple cc. 11679# We do the test twice because some compilers refuse to overwrite an 11680# existing .o file with -o, though they will create one. 11681ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 11682rm -f conftest2.* 11683if { { case "(($ac_try" in 11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11685 *) ac_try_echo=$ac_try;; 11686esac 11687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11688$as_echo "$ac_try_echo"; } >&5 11689 (eval "$ac_try") 2>&5 11690 ac_status=$? 11691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11692 test $ac_status = 0; } && 11693 test -f conftest2.$ac_objext && { { case "(($ac_try" in 11694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11695 *) ac_try_echo=$ac_try;; 11696esac 11697eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11698$as_echo "$ac_try_echo"; } >&5 11699 (eval "$ac_try") 2>&5 11700 ac_status=$? 11701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11702 test $ac_status = 0; }; 11703then 11704 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 11705 if test "x$CC" != xcc; then 11706 # Test first that cc exists at all. 11707 if { ac_try='cc -c conftest.$ac_ext >&5' 11708 { { case "(($ac_try" in 11709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11710 *) ac_try_echo=$ac_try;; 11711esac 11712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11713$as_echo "$ac_try_echo"; } >&5 11714 (eval "$ac_try") 2>&5 11715 ac_status=$? 11716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11717 test $ac_status = 0; }; }; then 11718 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 11719 rm -f conftest2.* 11720 if { { case "(($ac_try" in 11721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11722 *) ac_try_echo=$ac_try;; 11723esac 11724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11725$as_echo "$ac_try_echo"; } >&5 11726 (eval "$ac_try") 2>&5 11727 ac_status=$? 11728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11729 test $ac_status = 0; } && 11730 test -f conftest2.$ac_objext && { { case "(($ac_try" in 11731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11732 *) ac_try_echo=$ac_try;; 11733esac 11734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11735$as_echo "$ac_try_echo"; } >&5 11736 (eval "$ac_try") 2>&5 11737 ac_status=$? 11738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11739 test $ac_status = 0; }; 11740 then 11741 # cc works too. 11742 : 11743 else 11744 # cc exists but doesn't like -o. 11745 eval ac_cv_prog_cc_${ac_cc}_c_o=no 11746 fi 11747 fi 11748 fi 11749else 11750 eval ac_cv_prog_cc_${ac_cc}_c_o=no 11751fi 11752rm -f core conftest* 11753 11754fi 11755if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11757$as_echo "yes" >&6; } 11758else 11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11760$as_echo "no" >&6; } 11761 11762$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 11763 11764fi 11765 11766# FIXME: we rely on the cache variable name because 11767# there is no other way. 11768set dummy $CC 11769am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 11770eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 11771if test "$am_t" != yes; then 11772 # Losing compiler, so override with the script. 11773 # FIXME: It is wrong to rewrite CC. 11774 # But if we don't then we get into trouble of one sort or another. 11775 # A longer-term fix would be to have automake use am__CC in this case, 11776 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 11777 CC="$am_aux_dir/compile $CC" 11778fi 11779 11780 11781 11782if test "x$GCC" != "xyes"; then 11783 as_fn_error "libquadmath must be built with GCC" "$LINENO" 5 11784fi 11785ac_ext=c 11786ac_cpp='$CPP $CPPFLAGS' 11787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11789ac_compiler_gnu=$ac_cv_c_compiler_gnu 11790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 11791$as_echo_n "checking how to run the C preprocessor... " >&6; } 11792# On Suns, sometimes $CPP names a directory. 11793if test -n "$CPP" && test -d "$CPP"; then 11794 CPP= 11795fi 11796if test -z "$CPP"; then 11797 if test "${ac_cv_prog_CPP+set}" = set; then : 11798 $as_echo_n "(cached) " >&6 11799else 11800 # Double quotes because CPP needs to be expanded 11801 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 11802 do 11803 ac_preproc_ok=false 11804for ac_c_preproc_warn_flag in '' yes 11805do 11806 # Use a header file that comes with gcc, so configuring glibc 11807 # with a fresh cross-compiler works. 11808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11809 # <limits.h> exists even on freestanding compilers. 11810 # On the NeXT, cc -E runs the code through the compiler's parser, 11811 # not just through cpp. "Syntax error" is here to catch this case. 11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11813/* end confdefs.h. */ 11814#ifdef __STDC__ 11815# include <limits.h> 11816#else 11817# include <assert.h> 11818#endif 11819 Syntax error 11820_ACEOF 11821if ac_fn_c_try_cpp "$LINENO"; then : 11822 11823else 11824 # Broken: fails on valid input. 11825continue 11826fi 11827rm -f conftest.err conftest.$ac_ext 11828 11829 # OK, works on sane cases. Now check whether nonexistent headers 11830 # can be detected and how. 11831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11832/* end confdefs.h. */ 11833#include <ac_nonexistent.h> 11834_ACEOF 11835if ac_fn_c_try_cpp "$LINENO"; then : 11836 # Broken: success on invalid input. 11837continue 11838else 11839 # Passes both tests. 11840ac_preproc_ok=: 11841break 11842fi 11843rm -f conftest.err conftest.$ac_ext 11844 11845done 11846# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11847rm -f conftest.err conftest.$ac_ext 11848if $ac_preproc_ok; then : 11849 break 11850fi 11851 11852 done 11853 ac_cv_prog_CPP=$CPP 11854 11855fi 11856 CPP=$ac_cv_prog_CPP 11857else 11858 ac_cv_prog_CPP=$CPP 11859fi 11860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 11861$as_echo "$CPP" >&6; } 11862ac_preproc_ok=false 11863for ac_c_preproc_warn_flag in '' yes 11864do 11865 # Use a header file that comes with gcc, so configuring glibc 11866 # with a fresh cross-compiler works. 11867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11868 # <limits.h> exists even on freestanding compilers. 11869 # On the NeXT, cc -E runs the code through the compiler's parser, 11870 # not just through cpp. "Syntax error" is here to catch this case. 11871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11872/* end confdefs.h. */ 11873#ifdef __STDC__ 11874# include <limits.h> 11875#else 11876# include <assert.h> 11877#endif 11878 Syntax error 11879_ACEOF 11880if ac_fn_c_try_cpp "$LINENO"; then : 11881 11882else 11883 # Broken: fails on valid input. 11884continue 11885fi 11886rm -f conftest.err conftest.$ac_ext 11887 11888 # OK, works on sane cases. Now check whether nonexistent headers 11889 # can be detected and how. 11890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11891/* end confdefs.h. */ 11892#include <ac_nonexistent.h> 11893_ACEOF 11894if ac_fn_c_try_cpp "$LINENO"; then : 11895 # Broken: success on invalid input. 11896continue 11897else 11898 # Passes both tests. 11899ac_preproc_ok=: 11900break 11901fi 11902rm -f conftest.err conftest.$ac_ext 11903 11904done 11905# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11906rm -f conftest.err conftest.$ac_ext 11907if $ac_preproc_ok; then : 11908 11909else 11910 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11912as_fn_error "C preprocessor \"$CPP\" fails sanity check 11913See \`config.log' for more details." "$LINENO" 5; } 11914fi 11915 11916ac_ext=c 11917ac_cpp='$CPP $CPPFLAGS' 11918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11920ac_compiler_gnu=$ac_cv_c_compiler_gnu 11921 11922 11923# Calculate toolexeclibdir 11924# Also toolexecdir, though it's only used in toolexeclibdir 11925case ${version_specific_libs} in 11926 yes) 11927 # Need the gcc compiler version to know where to install libraries 11928 # and header files if --enable-version-specific-runtime-libs option 11929 # is selected. 11930 toolexecdir='$(libdir)/gcc/$(target_alias)' 11931 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' 11932 ;; 11933 no) 11934 if test -n "$with_cross_host" && 11935 test x"$with_cross_host" != x"no"; then 11936 # Install a library built with a cross compiler in tooldir, not libdir. 11937 toolexecdir='$(exec_prefix)/$(target_alias)' 11938 toolexeclibdir='$(toolexecdir)/lib' 11939 else 11940 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 11941 toolexeclibdir='$(libdir)' 11942 fi 11943 multi_os_directory=`$CC -print-multi-os-directory` 11944 case $multi_os_directory in 11945 .) ;; # Avoid trailing /. 11946 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; 11947 esac 11948 ;; 11949esac 11950 11951 11952 11953for ac_header in fenv.h langinfo.h locale.h wchar.h wctype.h limits.h ctype.h printf.h errno.h 11954do : 11955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11956ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11957eval as_val=\$$as_ac_Header 11958 if test "x$as_val" = x""yes; then : 11959 cat >>confdefs.h <<_ACEOF 11960#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11961_ACEOF 11962 11963fi 11964 11965done 11966 11967 11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the math.h includes POSIX's signgam" >&5 11969$as_echo_n "checking whether the math.h includes POSIX's signgam... " >&6; } 11970if test "${libgfor_cv_have_math_h_signgam+set}" = set; then : 11971 $as_echo_n "(cached) " >&6 11972else 11973 11974 save_CFLAGS="$CFLAGS" 11975 CFLAGS="$CFLAGS -Werror" 11976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11977/* end confdefs.h. */ 11978 11979#include <math.h> 11980void foo(void) { signgam = 1; } 11981int 11982main () 11983{ 11984 11985 ; 11986 return 0; 11987} 11988_ACEOF 11989if ac_fn_c_try_compile "$LINENO"; then : 11990 libgfor_cv_have_math_h_signgam=yes 11991else 11992 libgfor_cv_have_math_h_signgam=no 11993fi 11994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11995 CFLAGS="$save_CFLAGS" 11996fi 11997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_math_h_signgam" >&5 11998$as_echo "$libgfor_cv_have_math_h_signgam" >&6; } 11999 if test $libgfor_cv_have_math_h_signgam = yes; then 12000 12001$as_echo "#define HAVE_MATH_H_SIGNGAM 1" >>confdefs.h 12002 12003 fi 12004 12005# If available, sqrtl and cbrtl speed up the calculation - 12006# but they are not required 12007if test x$gcc_no_link != xyes; then 12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5 12009$as_echo_n "checking for sqrtl in -lm... " >&6; } 12010if test "${ac_cv_lib_m_sqrtl+set}" = set; then : 12011 $as_echo_n "(cached) " >&6 12012else 12013 ac_check_lib_save_LIBS=$LIBS 12014LIBS="-lm $LIBS" 12015if test x$gcc_no_link = xyes; then 12016 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12017fi 12018cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12019/* end confdefs.h. */ 12020 12021/* Override any GCC internal prototype to avoid an error. 12022 Use char because int might match the return type of a GCC 12023 builtin and then its argument prototype would still apply. */ 12024#ifdef __cplusplus 12025extern "C" 12026#endif 12027char sqrtl (); 12028int 12029main () 12030{ 12031return sqrtl (); 12032 ; 12033 return 0; 12034} 12035_ACEOF 12036if ac_fn_c_try_link "$LINENO"; then : 12037 ac_cv_lib_m_sqrtl=yes 12038else 12039 ac_cv_lib_m_sqrtl=no 12040fi 12041rm -f core conftest.err conftest.$ac_objext \ 12042 conftest$ac_exeext conftest.$ac_ext 12043LIBS=$ac_check_lib_save_LIBS 12044fi 12045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5 12046$as_echo "$ac_cv_lib_m_sqrtl" >&6; } 12047if test "x$ac_cv_lib_m_sqrtl" = x""yes; then : 12048 12049$as_echo "#define HAVE_SQRTL 1" >>confdefs.h 12050 12051fi 12052 12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cbrtl in -lm" >&5 12054$as_echo_n "checking for cbrtl in -lm... " >&6; } 12055if test "${ac_cv_lib_m_cbrtl+set}" = set; then : 12056 $as_echo_n "(cached) " >&6 12057else 12058 ac_check_lib_save_LIBS=$LIBS 12059LIBS="-lm $LIBS" 12060if test x$gcc_no_link = xyes; then 12061 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12062fi 12063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12064/* end confdefs.h. */ 12065 12066/* Override any GCC internal prototype to avoid an error. 12067 Use char because int might match the return type of a GCC 12068 builtin and then its argument prototype would still apply. */ 12069#ifdef __cplusplus 12070extern "C" 12071#endif 12072char cbrtl (); 12073int 12074main () 12075{ 12076return cbrtl (); 12077 ; 12078 return 0; 12079} 12080_ACEOF 12081if ac_fn_c_try_link "$LINENO"; then : 12082 ac_cv_lib_m_cbrtl=yes 12083else 12084 ac_cv_lib_m_cbrtl=no 12085fi 12086rm -f core conftest.err conftest.$ac_objext \ 12087 conftest$ac_exeext conftest.$ac_ext 12088LIBS=$ac_check_lib_save_LIBS 12089fi 12090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cbrtl" >&5 12091$as_echo "$ac_cv_lib_m_cbrtl" >&6; } 12092if test "x$ac_cv_lib_m_cbrtl" = x""yes; then : 12093 12094$as_echo "#define HAVE_CBRTL 1" >>confdefs.h 12095 12096fi 12097 12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feholdexcept in -lm" >&5 12099$as_echo_n "checking for feholdexcept in -lm... " >&6; } 12100if test "${ac_cv_lib_m_feholdexcept+set}" = set; then : 12101 $as_echo_n "(cached) " >&6 12102else 12103 ac_check_lib_save_LIBS=$LIBS 12104LIBS="-lm $LIBS" 12105if test x$gcc_no_link = xyes; then 12106 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12107fi 12108cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12109/* end confdefs.h. */ 12110 12111/* Override any GCC internal prototype to avoid an error. 12112 Use char because int might match the return type of a GCC 12113 builtin and then its argument prototype would still apply. */ 12114#ifdef __cplusplus 12115extern "C" 12116#endif 12117char feholdexcept (); 12118int 12119main () 12120{ 12121return feholdexcept (); 12122 ; 12123 return 0; 12124} 12125_ACEOF 12126if ac_fn_c_try_link "$LINENO"; then : 12127 ac_cv_lib_m_feholdexcept=yes 12128else 12129 ac_cv_lib_m_feholdexcept=no 12130fi 12131rm -f core conftest.err conftest.$ac_objext \ 12132 conftest$ac_exeext conftest.$ac_ext 12133LIBS=$ac_check_lib_save_LIBS 12134fi 12135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feholdexcept" >&5 12136$as_echo "$ac_cv_lib_m_feholdexcept" >&6; } 12137if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then : 12138 12139$as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h 12140 12141fi 12142 12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround in -lm" >&5 12144$as_echo_n "checking for fesetround in -lm... " >&6; } 12145if test "${ac_cv_lib_m_fesetround+set}" = set; then : 12146 $as_echo_n "(cached) " >&6 12147else 12148 ac_check_lib_save_LIBS=$LIBS 12149LIBS="-lm $LIBS" 12150if test x$gcc_no_link = xyes; then 12151 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12152fi 12153cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12154/* end confdefs.h. */ 12155 12156/* Override any GCC internal prototype to avoid an error. 12157 Use char because int might match the return type of a GCC 12158 builtin and then its argument prototype would still apply. */ 12159#ifdef __cplusplus 12160extern "C" 12161#endif 12162char fesetround (); 12163int 12164main () 12165{ 12166return fesetround (); 12167 ; 12168 return 0; 12169} 12170_ACEOF 12171if ac_fn_c_try_link "$LINENO"; then : 12172 ac_cv_lib_m_fesetround=yes 12173else 12174 ac_cv_lib_m_fesetround=no 12175fi 12176rm -f core conftest.err conftest.$ac_objext \ 12177 conftest$ac_exeext conftest.$ac_ext 12178LIBS=$ac_check_lib_save_LIBS 12179fi 12180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetround" >&5 12181$as_echo "$ac_cv_lib_m_fesetround" >&6; } 12182if test "x$ac_cv_lib_m_fesetround" = x""yes; then : 12183 12184$as_echo "#define HAVE_FESETROUND 1" >>confdefs.h 12185 12186fi 12187 12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feupdateenv in -lm" >&5 12189$as_echo_n "checking for feupdateenv in -lm... " >&6; } 12190if test "${ac_cv_lib_m_feupdateenv+set}" = set; then : 12191 $as_echo_n "(cached) " >&6 12192else 12193 ac_check_lib_save_LIBS=$LIBS 12194LIBS="-lm $LIBS" 12195if test x$gcc_no_link = xyes; then 12196 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12197fi 12198cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12199/* end confdefs.h. */ 12200 12201/* Override any GCC internal prototype to avoid an error. 12202 Use char because int might match the return type of a GCC 12203 builtin and then its argument prototype would still apply. */ 12204#ifdef __cplusplus 12205extern "C" 12206#endif 12207char feupdateenv (); 12208int 12209main () 12210{ 12211return feupdateenv (); 12212 ; 12213 return 0; 12214} 12215_ACEOF 12216if ac_fn_c_try_link "$LINENO"; then : 12217 ac_cv_lib_m_feupdateenv=yes 12218else 12219 ac_cv_lib_m_feupdateenv=no 12220fi 12221rm -f core conftest.err conftest.$ac_objext \ 12222 conftest$ac_exeext conftest.$ac_ext 12223LIBS=$ac_check_lib_save_LIBS 12224fi 12225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feupdateenv" >&5 12226$as_echo "$ac_cv_lib_m_feupdateenv" >&6; } 12227if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then : 12228 12229$as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h 12230 12231fi 12232 12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetenv in -lm" >&5 12234$as_echo_n "checking for fesetenv in -lm... " >&6; } 12235if test "${ac_cv_lib_m_fesetenv+set}" = set; then : 12236 $as_echo_n "(cached) " >&6 12237else 12238 ac_check_lib_save_LIBS=$LIBS 12239LIBS="-lm $LIBS" 12240if test x$gcc_no_link = xyes; then 12241 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12242fi 12243cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12244/* end confdefs.h. */ 12245 12246/* Override any GCC internal prototype to avoid an error. 12247 Use char because int might match the return type of a GCC 12248 builtin and then its argument prototype would still apply. */ 12249#ifdef __cplusplus 12250extern "C" 12251#endif 12252char fesetenv (); 12253int 12254main () 12255{ 12256return fesetenv (); 12257 ; 12258 return 0; 12259} 12260_ACEOF 12261if ac_fn_c_try_link "$LINENO"; then : 12262 ac_cv_lib_m_fesetenv=yes 12263else 12264 ac_cv_lib_m_fesetenv=no 12265fi 12266rm -f core conftest.err conftest.$ac_objext \ 12267 conftest$ac_exeext conftest.$ac_ext 12268LIBS=$ac_check_lib_save_LIBS 12269fi 12270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fesetenv" >&5 12271$as_echo "$ac_cv_lib_m_fesetenv" >&6; } 12272if test "x$ac_cv_lib_m_fesetenv" = x""yes; then : 12273 12274$as_echo "#define HAVE_FESETENV 1" >>confdefs.h 12275 12276fi 12277 12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fetestexcept in -lm" >&5 12279$as_echo_n "checking for fetestexcept in -lm... " >&6; } 12280if test "${ac_cv_lib_m_fetestexcept+set}" = set; then : 12281 $as_echo_n "(cached) " >&6 12282else 12283 ac_check_lib_save_LIBS=$LIBS 12284LIBS="-lm $LIBS" 12285if test x$gcc_no_link = xyes; then 12286 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12287fi 12288cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12289/* end confdefs.h. */ 12290 12291/* Override any GCC internal prototype to avoid an error. 12292 Use char because int might match the return type of a GCC 12293 builtin and then its argument prototype would still apply. */ 12294#ifdef __cplusplus 12295extern "C" 12296#endif 12297char fetestexcept (); 12298int 12299main () 12300{ 12301return fetestexcept (); 12302 ; 12303 return 0; 12304} 12305_ACEOF 12306if ac_fn_c_try_link "$LINENO"; then : 12307 ac_cv_lib_m_fetestexcept=yes 12308else 12309 ac_cv_lib_m_fetestexcept=no 12310fi 12311rm -f core conftest.err conftest.$ac_objext \ 12312 conftest$ac_exeext conftest.$ac_ext 12313LIBS=$ac_check_lib_save_LIBS 12314fi 12315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fetestexcept" >&5 12316$as_echo "$ac_cv_lib_m_fetestexcept" >&6; } 12317if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then : 12318 12319$as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h 12320 12321fi 12322 12323 for ac_func in strtoull 12324do : 12325 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" 12326if test "x$ac_cv_func_strtoull" = x""yes; then : 12327 cat >>confdefs.h <<_ACEOF 12328#define HAVE_STRTOULL 1 12329_ACEOF 12330 12331fi 12332done 12333 12334else 12335 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then 12336 12337$as_echo "#define HAVE_SQRTL 1" >>confdefs.h 12338 12339 fi 12340 if test "x$ac_cv_lib_m_cbrtl" = x""yes; then 12341 12342$as_echo "#define HAVE_CBRTL 1" >>confdefs.h 12343 12344 fi 12345 if test "x$ac_cv_lib_m_feholdexcept" = x""yes; then 12346 12347$as_echo "#define HAVE_FEHOLDEXCEPT 1" >>confdefs.h 12348 12349 fi 12350 if test "x$ac_cv_lib_m_fesetround" = x""yes; then 12351 12352$as_echo "#define HAVE_FESETROUND 1" >>confdefs.h 12353 12354 fi 12355 if test "x$ac_cv_lib_m_feupdateenv" = x""yes; then 12356 12357$as_echo "#define HAVE_FEUPDATEENV 1" >>confdefs.h 12358 12359 fi 12360 if test "x$ac_cv_lib_m_fesetenv" = x""yes; then 12361 12362$as_echo "#define HAVE_FESETENV 1" >>confdefs.h 12363 12364 fi 12365 if test "x$ac_cv_lib_m_fetestexcept" = x""yes; then 12366 12367$as_echo "#define HAVE_FETESTEXCEPT 1" >>confdefs.h 12368 12369 fi 12370fi 12371 12372# Check for hidden visibility (copied from libssp). 12373saved_CFLAGS="$CFLAGS" 12374CFLAGS="$CFLAGS -Werror" 12375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5 12376$as_echo_n "checking whether hidden visibility is supported... " >&6; } 12377cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12378/* end confdefs.h. */ 12379 12380void __attribute__((visibility ("hidden"))) bar (void) {} 12381int 12382main () 12383{ 12384 12385 ; 12386 return 0; 12387} 12388_ACEOF 12389if ac_fn_c_try_compile "$LINENO"; then : 12390 quadmath_hidden=yes 12391else 12392 quadmath_hidden=no 12393fi 12394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_hidden" >&5 12396$as_echo "$quadmath_hidden" >&6; } 12397if test x$quadmath_hidden = xyes; then 12398 12399$as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h 12400 12401fi 12402CFLAGS="$saved_CFLAGS" 12403 12404# Check for symbol versioning (copied from libssp). 12405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5 12406$as_echo_n "checking whether symbol versioning is supported... " >&6; } 12407# Check whether --enable-symvers was given. 12408if test "${enable_symvers+set}" = set; then : 12409 enableval=$enable_symvers; quadmath_use_symver=$enableval 12410else 12411 quadmath_use_symver=yes 12412fi 12413 12414if test "x$quadmath_use_symver" != xno; then 12415 if test x$gcc_no_link = xyes; then 12416 # If we cannot link, we cannot build shared libraries, so do not use 12417 # symbol versioning. 12418 quadmath_use_symver=no 12419 else 12420 save_LDFLAGS="$LDFLAGS" 12421 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map" 12422 cat > conftest.map <<EOF 12423FOO_1.0 { 12424 global: *foo*; bar; local: *; 12425}; 12426EOF 12427 if test x$gcc_no_link = xyes; then 12428 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12429fi 12430cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12431/* end confdefs.h. */ 12432int foo; 12433int 12434main () 12435{ 12436 12437 ; 12438 return 0; 12439} 12440_ACEOF 12441if ac_fn_c_try_link "$LINENO"; then : 12442 quadmath_use_symver=gnu 12443else 12444 quadmath_use_symver=no 12445fi 12446rm -f core conftest.err conftest.$ac_objext \ 12447 conftest$ac_exeext conftest.$ac_ext 12448 if test x$quadmath_use_symver = xno; then 12449 case "$target_os" in 12450 solaris2*) 12451 LDFLAGS="$save_LDFLAGS" 12452 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map" 12453 # Sun ld cannot handle wildcards and treats all entries as undefined. 12454 cat > conftest.map <<EOF 12455FOO_1.0 { 12456 global: foo; local: *; 12457}; 12458EOF 12459 if test x$gcc_no_link = xyes; then 12460 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12461fi 12462cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12463/* end confdefs.h. */ 12464int foo; 12465int 12466main () 12467{ 12468 12469 ; 12470 return 0; 12471} 12472_ACEOF 12473if ac_fn_c_try_link "$LINENO"; then : 12474 quadmath_use_symver=sun 12475else 12476 quadmath_use_symver=no 12477fi 12478rm -f core conftest.err conftest.$ac_objext \ 12479 conftest$ac_exeext conftest.$ac_ext 12480 ;; 12481 esac 12482 fi 12483 LDFLAGS="$save_LDFLAGS" 12484 fi 12485fi 12486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_symver" >&5 12487$as_echo "$quadmath_use_symver" >&6; } 12488 if test "x$quadmath_use_symver" != xno; then 12489 LIBQUAD_USE_SYMVER_TRUE= 12490 LIBQUAD_USE_SYMVER_FALSE='#' 12491else 12492 LIBQUAD_USE_SYMVER_TRUE='#' 12493 LIBQUAD_USE_SYMVER_FALSE= 12494fi 12495 12496 if test "x$quadmath_use_symver" = xgnu; then 12497 LIBQUAD_USE_SYMVER_GNU_TRUE= 12498 LIBQUAD_USE_SYMVER_GNU_FALSE='#' 12499else 12500 LIBQUAD_USE_SYMVER_GNU_TRUE='#' 12501 LIBQUAD_USE_SYMVER_GNU_FALSE= 12502fi 12503 12504 if test "x$quadmath_use_symver" = xsun; then 12505 LIBQUAD_USE_SYMVER_SUN_TRUE= 12506 LIBQUAD_USE_SYMVER_SUN_FALSE='#' 12507else 12508 LIBQUAD_USE_SYMVER_SUN_TRUE='#' 12509 LIBQUAD_USE_SYMVER_SUN_FALSE= 12510fi 12511 12512 12513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __float128 is supported" >&5 12514$as_echo_n "checking whether __float128 is supported... " >&6; } 12515if test "${libquad_cv_have_float128+set}" = set; then : 12516 $as_echo_n "(cached) " >&6 12517else 12518 if test x$gcc_no_link = xyes; then 12519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12520/* end confdefs.h. */ 12521 12522 #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__) 12523 typedef _Complex float __attribute__((mode(TC))) __complex128; 12524 #else 12525 typedef _Complex float __attribute__((mode(KC))) __complex128; 12526 #endif 12527 12528 __float128 foo (__float128 x) 12529 { 12530 12531 __complex128 z1, z2; 12532 12533 z1 = x; 12534 z2 = x / 7.Q; 12535 z2 /= z1; 12536 12537 return (__float128) z2; 12538 } 12539 12540 __float128 bar (__float128 x) 12541 { 12542 return x * __builtin_huge_valq (); 12543 } 12544 12545int 12546main () 12547{ 12548 12549 foo (1.2Q); 12550 bar (1.2Q); 12551 12552 ; 12553 return 0; 12554} 12555_ACEOF 12556if ac_fn_c_try_compile "$LINENO"; then : 12557 12558 libquad_cv_have_float128=yes 12559 12560else 12561 12562 libquad_cv_have_float128=no 12563 12564fi 12565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12566else 12567 if test x$gcc_no_link = xyes; then 12568 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5 12569fi 12570cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12571/* end confdefs.h. */ 12572 12573 #if (!defined(_ARCH_PPC)) || defined(__LONG_DOUBLE_IEEE128__) 12574 typedef _Complex float __attribute__((mode(TC))) __complex128; 12575 #else 12576 typedef _Complex float __attribute__((mode(KC))) __complex128; 12577 #endif 12578 12579 __float128 foo (__float128 x) 12580 { 12581 12582 __complex128 z1, z2; 12583 12584 z1 = x; 12585 z2 = x / 7.Q; 12586 z2 /= z1; 12587 12588 return (__float128) z2; 12589 } 12590 12591 __float128 bar (__float128 x) 12592 { 12593 return x * __builtin_huge_valq (); 12594 } 12595 12596int 12597main () 12598{ 12599 12600 foo (1.2Q); 12601 bar (1.2Q); 12602 12603 ; 12604 return 0; 12605} 12606_ACEOF 12607if ac_fn_c_try_link "$LINENO"; then : 12608 12609 libquad_cv_have_float128=yes 12610 12611else 12612 12613 libquad_cv_have_float128=no 12614 12615fi 12616rm -f core conftest.err conftest.$ac_objext \ 12617 conftest$ac_exeext conftest.$ac_ext 12618fi 12619fi 12620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libquad_cv_have_float128" >&5 12621$as_echo "$libquad_cv_have_float128" >&6; } 12622 if test "x$libquad_cv_have_float128" = xyes; then 12623 BUILD_LIBQUADMATH_TRUE= 12624 BUILD_LIBQUADMATH_FALSE='#' 12625else 12626 BUILD_LIBQUADMATH_TRUE='#' 12627 BUILD_LIBQUADMATH_FALSE= 12628fi 12629 12630 12631# Check for printf hook support. 12632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf hooks are supported" >&5 12633$as_echo_n "checking whether printf hooks are supported... " >&6; } 12634cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12635/* end confdefs.h. */ 12636 12637#include <printf.h> 12638#include <stdarg.h> 12639#include <stdlib.h> 12640extern void flt128_va (void *, va_list *); 12641extern int flt128_ais (const struct printf_info *, size_t, int *, int *); 12642extern int flt128_printf_fp (FILE *, const struct printf_info *, const void *const *); 12643 12644int 12645main () 12646{ 12647 12648int pa_flt128 = register_printf_type (flt128_va); 12649int mod_Q = register_printf_modifier (L"Q"); 12650int res = register_printf_specifier ('f', flt128_printf_fp, flt128_ais); 12651struct printf_info info = { .user = -1 }; 12652 12653 ; 12654 return 0; 12655} 12656_ACEOF 12657if ac_fn_c_try_compile "$LINENO"; then : 12658 quadmath_printf_hooks=yes 12659else 12660 quadmath_printf_hooks=no 12661fi 12662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_printf_hooks" >&5 12664$as_echo "$quadmath_printf_hooks" >&6; } 12665if test x$quadmath_printf_hooks = xyes; then 12666 12667$as_echo "#define HAVE_PRINTF_HOOKS 1" >>confdefs.h 12668 12669fi 12670 12671# Check for whether locale support for quadmath_snprintf or Q printf hooks 12672# should be provided. 12673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used" >&5 12674$as_echo_n "checking whether nl_langinfo should be used... " >&6; } 12675cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12676/* end confdefs.h. */ 12677#include <langinfo.h> 12678int 12679main () 12680{ 12681 12682const char *s; 12683s = nl_langinfo (DECIMAL_POINT); 12684s = nl_langinfo (MON_DECIMAL_POINT); 12685s = nl_langinfo (GROUPING); 12686s = nl_langinfo (MON_GROUPING); 12687s = nl_langinfo (THOUSANDS_SEP); 12688s = nl_langinfo (MON_THOUSANDS_SEP); 12689(void) s; 12690 12691 ; 12692 return 0; 12693} 12694_ACEOF 12695if ac_fn_c_try_compile "$LINENO"; then : 12696 quadmath_use_nl_langinfo=yes 12697else 12698 quadmath_use_nl_langinfo=no 12699fi 12700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo" >&5 12702$as_echo "$quadmath_use_nl_langinfo" >&6; } 12703if test x$quadmath_use_nl_langinfo = xyes; then 12704 12705$as_echo "#define USE_NL_LANGINFO 1" >>confdefs.h 12706 12707fi 12708 12709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether nl_langinfo should be used for wide char locale info" >&5 12710$as_echo_n "checking whether nl_langinfo should be used for wide char locale info... " >&6; } 12711cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12712/* end confdefs.h. */ 12713#include <langinfo.h> 12714int 12715main () 12716{ 12717 12718const char *s; 12719s = nl_langinfo (_NL_NUMERIC_DECIMAL_POINT_WC); 12720s = nl_langinfo (_NL_MONETARY_DECIMAL_POINT_WC); 12721s = nl_langinfo (_NL_NUMERIC_THOUSANDS_SEP_WC); 12722s = nl_langinfo (_NL_MONETARY_THOUSANDS_SEP_WC); 12723(void) s; 12724 12725 ; 12726 return 0; 12727} 12728_ACEOF 12729if ac_fn_c_try_compile "$LINENO"; then : 12730 quadmath_use_nl_langinfo_wc=yes 12731else 12732 quadmath_use_nl_langinfo_wc=no 12733fi 12734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_nl_langinfo_wc" >&5 12736$as_echo "$quadmath_use_nl_langinfo_wc" >&6; } 12737if test x$quadmath_use_nl_langinfo_wc = xyes; then 12738 12739$as_echo "#define USE_NL_LANGINFO_WC 1" >>confdefs.h 12740 12741fi 12742 12743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localeconv should be used" >&5 12744$as_echo_n "checking whether localeconv should be used... " >&6; } 12745cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12746/* end confdefs.h. */ 12747#include <locale.h> 12748int 12749main () 12750{ 12751 12752const struct lconv *l = localeconv (); 12753const char *s; 12754s = l->decimal_point; 12755s = l->mon_decimal_point; 12756s = l->grouping; 12757s = l->mon_grouping; 12758s = l->thousands_sep; 12759s = l->mon_thousands_sep; 12760(void) s; 12761 12762 ; 12763 return 0; 12764} 12765_ACEOF 12766if ac_fn_c_try_compile "$LINENO"; then : 12767 quadmath_use_localeconv=yes 12768else 12769 quadmath_use_localeconv=no 12770fi 12771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_localeconv" >&5 12773$as_echo "$quadmath_use_localeconv" >&6; } 12774if test x$quadmath_use_localeconv = xyes; then 12775 12776$as_echo "#define USE_LOCALECONV 1" >>confdefs.h 12777 12778fi 12779 12780# Check for whether i18n number rewriting support for quadmath_snprintf 12781# or Q printf hooks should be provided. 12782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i18n number rewriting support for quadmath_snprintf should be added" >&5 12783$as_echo_n "checking whether i18n number rewriting support for quadmath_snprintf should be added... " >&6; } 12784cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12785/* end confdefs.h. */ 12786#include <langinfo.h> 12787#include <limits.h> 12788#include <string.h> 12789#include <wchar.h> 12790#include <wctype.h> 12791int 12792main () 12793{ 12794 12795const char *s; 12796char decimal[MB_LEN_MAX]; 12797wctrans_t map = wctrans ("to_outpunct"); 12798wint_t wdecimal = towctrans (L'.', map); 12799mbstate_t state; 12800memset (&state, '\0', sizeof (state)); 12801wcrtomb (decimal, wdecimal, &state); 12802s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB); 12803s = nl_langinfo (_NL_CTYPE_OUTDIGIT0_WC); 12804s = nl_langinfo (_NL_CTYPE_MB_CUR_MAX); 12805(void) s; 12806 12807 ; 12808 return 0; 12809} 12810_ACEOF 12811if ac_fn_c_try_compile "$LINENO"; then : 12812 quadmath_use_i18n_number_h=yes 12813else 12814 quadmath_use_i18n_number_h=no 12815fi 12816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $quadmath_use_i18n_number_h" >&5 12818$as_echo "$quadmath_use_i18n_number_h" >&6; } 12819if test x$quadmath_use_i18n_number_h = xyes; then 12820 12821$as_echo "#define USE_I18N_NUMBER_H 1" >>confdefs.h 12822 12823fi 12824 12825# Add CET specific flags if CET is enabled 12826 # Check whether --enable-cet was given. 12827if test "${enable_cet+set}" = set; then : 12828 enableval=$enable_cet; 12829 case "$enableval" in 12830 yes|no|auto) ;; 12831 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;; 12832 esac 12833 12834else 12835 enable_cet=no 12836fi 12837 12838 12839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 12840$as_echo_n "checking for CET support... " >&6; } 12841 12842case "$host" in 12843 i[34567]86-*-linux* | x86_64-*-linux*) 12844 case "$enable_cet" in 12845 auto) 12846 # Check if target supports multi-byte NOPs 12847 # and if assembler supports CET insn. 12848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12849/* end confdefs.h. */ 12850 12851int 12852main () 12853{ 12854 12855#if !defined(__SSE2__) 12856#error target does not support multi-byte NOPs 12857#else 12858asm ("setssbsy"); 12859#endif 12860 12861 ; 12862 return 0; 12863} 12864_ACEOF 12865if ac_fn_c_try_compile "$LINENO"; then : 12866 enable_cet=yes 12867else 12868 enable_cet=no 12869fi 12870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12871 ;; 12872 yes) 12873 # Check if assembler supports CET. 12874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12875/* end confdefs.h. */ 12876 12877int 12878main () 12879{ 12880asm ("setssbsy"); 12881 ; 12882 return 0; 12883} 12884_ACEOF 12885if ac_fn_c_try_compile "$LINENO"; then : 12886 12887else 12888 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5 12889fi 12890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12891 ;; 12892 esac 12893 ;; 12894 *) 12895 enable_cet=no 12896 ;; 12897esac 12898if test x$enable_cet = xyes; then 12899 CET_FLAGS="-fcf-protection -mshstk" 12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12901$as_echo "yes" >&6; } 12902else 12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12904$as_echo "no" >&6; } 12905fi 12906 12907XCFLAGS="$XCFLAGS $CET_FLAGS" 12908 12909 12910cat >confcache <<\_ACEOF 12911# This file is a shell script that caches the results of configure 12912# tests run on this system so they can be shared between configure 12913# scripts and configure runs, see configure's option --config-cache. 12914# It is not useful on other systems. If it contains results you don't 12915# want to keep, you may remove or edit it. 12916# 12917# config.status only pays attention to the cache file if you give it 12918# the --recheck option to rerun configure. 12919# 12920# `ac_cv_env_foo' variables (set or unset) will be overridden when 12921# loading this file, other *unset* `ac_cv_foo' will be assigned the 12922# following values. 12923 12924_ACEOF 12925 12926# The following way of writing the cache mishandles newlines in values, 12927# but we know of no workaround that is simple, portable, and efficient. 12928# So, we kill variables containing newlines. 12929# Ultrix sh set writes to stderr and can't be redirected directly, 12930# and sets the high bit in the cache file unless we assign to the vars. 12931( 12932 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12933 eval ac_val=\$$ac_var 12934 case $ac_val in #( 12935 *${as_nl}*) 12936 case $ac_var in #( 12937 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12938$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12939 esac 12940 case $ac_var in #( 12941 _ | IFS | as_nl) ;; #( 12942 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12943 *) { eval $ac_var=; unset $ac_var;} ;; 12944 esac ;; 12945 esac 12946 done 12947 12948 (set) 2>&1 | 12949 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12950 *${as_nl}ac_space=\ *) 12951 # `set' does not quote correctly, so add quotes: double-quote 12952 # substitution turns \\\\ into \\, and sed turns \\ into \. 12953 sed -n \ 12954 "s/'/'\\\\''/g; 12955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12956 ;; #( 12957 *) 12958 # `set' quotes correctly as required by POSIX, so do not add quotes. 12959 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12960 ;; 12961 esac | 12962 sort 12963) | 12964 sed ' 12965 /^ac_cv_env_/b end 12966 t clear 12967 :clear 12968 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12969 t end 12970 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12971 :end' >>confcache 12972if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12973 if test -w "$cache_file"; then 12974 test "x$cache_file" != "x/dev/null" && 12975 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12976$as_echo "$as_me: updating cache $cache_file" >&6;} 12977 cat confcache >$cache_file 12978 else 12979 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12980$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12981 fi 12982fi 12983rm -f confcache 12984 12985if test ${multilib} = yes; then 12986 multilib_arg="--enable-multilib" 12987else 12988 multilib_arg= 12989fi 12990 12991 12992# We would like our source tree to be readonly. However when releases or 12993# pre-releases are generated, the flex/bison generated files as well as the 12994# various formats of manuals need to be included along with the rest of the 12995# sources. Therefore we have --enable-generated-files-in-srcdir to do 12996# just that. 12997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5 12998$as_echo_n "checking generated-files-in-srcdir... " >&6; } 12999# Check whether --enable-generated-files-in-srcdir was given. 13000if test "${enable_generated_files_in_srcdir+set}" = set; then : 13001 enableval=$enable_generated_files_in_srcdir; case "$enableval" in 13002 yes) enable_generated_files_in_srcdir=yes ;; 13003 no) enable_generated_files_in_srcdir=no ;; 13004 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; 13005 esac 13006else 13007 enable_generated_files_in_srcdir=no 13008fi 13009 13010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5 13011$as_echo "$enable_generated_files_in_srcdir" >&6; } 13012 if test "$enable_generated_files_in_srcdir" = yes; then 13013 GENINSRC_TRUE= 13014 GENINSRC_FALSE='#' 13015else 13016 GENINSRC_TRUE='#' 13017 GENINSRC_FALSE= 13018fi 13019 13020 13021# Determine what GCC version number to use in filesystem paths. 13022 13023 get_gcc_base_ver="cat" 13024 13025# Check whether --with-gcc-major-version-only was given. 13026if test "${with_gcc_major_version_only+set}" = set; then : 13027 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then 13028 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'" 13029 fi 13030 13031fi 13032 13033 13034 13035 13036ac_config_files="$ac_config_files Makefile" 13037 13038cat >confcache <<\_ACEOF 13039# This file is a shell script that caches the results of configure 13040# tests run on this system so they can be shared between configure 13041# scripts and configure runs, see configure's option --config-cache. 13042# It is not useful on other systems. If it contains results you don't 13043# want to keep, you may remove or edit it. 13044# 13045# config.status only pays attention to the cache file if you give it 13046# the --recheck option to rerun configure. 13047# 13048# `ac_cv_env_foo' variables (set or unset) will be overridden when 13049# loading this file, other *unset* `ac_cv_foo' will be assigned the 13050# following values. 13051 13052_ACEOF 13053 13054# The following way of writing the cache mishandles newlines in values, 13055# but we know of no workaround that is simple, portable, and efficient. 13056# So, we kill variables containing newlines. 13057# Ultrix sh set writes to stderr and can't be redirected directly, 13058# and sets the high bit in the cache file unless we assign to the vars. 13059( 13060 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13061 eval ac_val=\$$ac_var 13062 case $ac_val in #( 13063 *${as_nl}*) 13064 case $ac_var in #( 13065 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13066$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13067 esac 13068 case $ac_var in #( 13069 _ | IFS | as_nl) ;; #( 13070 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13071 *) { eval $ac_var=; unset $ac_var;} ;; 13072 esac ;; 13073 esac 13074 done 13075 13076 (set) 2>&1 | 13077 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13078 *${as_nl}ac_space=\ *) 13079 # `set' does not quote correctly, so add quotes: double-quote 13080 # substitution turns \\\\ into \\, and sed turns \\ into \. 13081 sed -n \ 13082 "s/'/'\\\\''/g; 13083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13084 ;; #( 13085 *) 13086 # `set' quotes correctly as required by POSIX, so do not add quotes. 13087 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13088 ;; 13089 esac | 13090 sort 13091) | 13092 sed ' 13093 /^ac_cv_env_/b end 13094 t clear 13095 :clear 13096 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13097 t end 13098 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13099 :end' >>confcache 13100if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13101 if test -w "$cache_file"; then 13102 test "x$cache_file" != "x/dev/null" && 13103 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13104$as_echo "$as_me: updating cache $cache_file" >&6;} 13105 cat confcache >$cache_file 13106 else 13107 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13108$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13109 fi 13110fi 13111rm -f confcache 13112 13113test "x$prefix" = xNONE && prefix=$ac_default_prefix 13114# Let make expand exec_prefix. 13115test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13116 13117DEFS=-DHAVE_CONFIG_H 13118 13119ac_libobjs= 13120ac_ltlibobjs= 13121for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13122 # 1. Remove the extension, and $U if already installed. 13123 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13124 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13125 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13126 # will be set to the directory where LIBOBJS objects are built. 13127 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13128 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13129done 13130LIBOBJS=$ac_libobjs 13131 13132LTLIBOBJS=$ac_ltlibobjs 13133 13134 13135 if test -n "$EXEEXT"; then 13136 am__EXEEXT_TRUE= 13137 am__EXEEXT_FALSE='#' 13138else 13139 am__EXEEXT_TRUE='#' 13140 am__EXEEXT_FALSE= 13141fi 13142 13143if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13144 as_fn_error "conditional \"AMDEP\" was never defined. 13145Usually this means the macro was only invoked conditionally." "$LINENO" 5 13146fi 13147if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13148 as_fn_error "conditional \"am__fastdepCC\" was never defined. 13149Usually this means the macro was only invoked conditionally." "$LINENO" 5 13150fi 13151if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then 13152 as_fn_error "conditional \"BUILD_INFO\" was never defined. 13153Usually this means the macro was only invoked conditionally." "$LINENO" 5 13154fi 13155if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13156 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 13157Usually this means the macro was only invoked conditionally." "$LINENO" 5 13158fi 13159if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13160 as_fn_error "conditional \"am__fastdepCC\" was never defined. 13161Usually this means the macro was only invoked conditionally." "$LINENO" 5 13162fi 13163if test -z "${LIBQUAD_USE_SYMVER_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_FALSE}"; then 13164 as_fn_error "conditional \"LIBQUAD_USE_SYMVER\" was never defined. 13165Usually this means the macro was only invoked conditionally." "$LINENO" 5 13166fi 13167if test -z "${LIBQUAD_USE_SYMVER_GNU_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_GNU_FALSE}"; then 13168 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_GNU\" was never defined. 13169Usually this means the macro was only invoked conditionally." "$LINENO" 5 13170fi 13171if test -z "${LIBQUAD_USE_SYMVER_SUN_TRUE}" && test -z "${LIBQUAD_USE_SYMVER_SUN_FALSE}"; then 13172 as_fn_error "conditional \"LIBQUAD_USE_SYMVER_SUN\" was never defined. 13173Usually this means the macro was only invoked conditionally." "$LINENO" 5 13174fi 13175if test -z "${BUILD_LIBQUADMATH_TRUE}" && test -z "${BUILD_LIBQUADMATH_FALSE}"; then 13176 as_fn_error "conditional \"BUILD_LIBQUADMATH\" was never defined. 13177Usually this means the macro was only invoked conditionally." "$LINENO" 5 13178fi 13179if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then 13180 as_fn_error "conditional \"GENINSRC\" was never defined. 13181Usually this means the macro was only invoked conditionally." "$LINENO" 5 13182fi 13183 13184: ${CONFIG_STATUS=./config.status} 13185ac_write_fail=0 13186ac_clean_files_save=$ac_clean_files 13187ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13188{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13189$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13190as_write_fail=0 13191cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13192#! $SHELL 13193# Generated by $as_me. 13194# Run this file to recreate the current configuration. 13195# Compiler output produced by configure, useful for debugging 13196# configure, is in config.log if it exists. 13197 13198debug=false 13199ac_cs_recheck=false 13200ac_cs_silent=false 13201 13202SHELL=\${CONFIG_SHELL-$SHELL} 13203export SHELL 13204_ASEOF 13205cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13206## -------------------- ## 13207## M4sh Initialization. ## 13208## -------------------- ## 13209 13210# Be more Bourne compatible 13211DUALCASE=1; export DUALCASE # for MKS sh 13212if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13213 emulate sh 13214 NULLCMD=: 13215 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13216 # is contrary to our usage. Disable this feature. 13217 alias -g '${1+"$@"}'='"$@"' 13218 setopt NO_GLOB_SUBST 13219else 13220 case `(set -o) 2>/dev/null` in #( 13221 *posix*) : 13222 set -o posix ;; #( 13223 *) : 13224 ;; 13225esac 13226fi 13227 13228 13229as_nl=' 13230' 13231export as_nl 13232# Printing a long string crashes Solaris 7 /usr/bin/printf. 13233as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13234as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13235as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13236# Prefer a ksh shell builtin over an external printf program on Solaris, 13237# but without wasting forks for bash or zsh. 13238if test -z "$BASH_VERSION$ZSH_VERSION" \ 13239 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13240 as_echo='print -r --' 13241 as_echo_n='print -rn --' 13242elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13243 as_echo='printf %s\n' 13244 as_echo_n='printf %s' 13245else 13246 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13247 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13248 as_echo_n='/usr/ucb/echo -n' 13249 else 13250 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13251 as_echo_n_body='eval 13252 arg=$1; 13253 case $arg in #( 13254 *"$as_nl"*) 13255 expr "X$arg" : "X\\(.*\\)$as_nl"; 13256 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13257 esac; 13258 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13259 ' 13260 export as_echo_n_body 13261 as_echo_n='sh -c $as_echo_n_body as_echo' 13262 fi 13263 export as_echo_body 13264 as_echo='sh -c $as_echo_body as_echo' 13265fi 13266 13267# The user is always right. 13268if test "${PATH_SEPARATOR+set}" != set; then 13269 PATH_SEPARATOR=: 13270 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13271 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13272 PATH_SEPARATOR=';' 13273 } 13274fi 13275 13276 13277# IFS 13278# We need space, tab and new line, in precisely that order. Quoting is 13279# there to prevent editors from complaining about space-tab. 13280# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13281# splitting by setting IFS to empty value.) 13282IFS=" "" $as_nl" 13283 13284# Find who we are. Look in the path if we contain no directory separator. 13285case $0 in #(( 13286 *[\\/]* ) as_myself=$0 ;; 13287 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13288for as_dir in $PATH 13289do 13290 IFS=$as_save_IFS 13291 test -z "$as_dir" && as_dir=. 13292 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13293 done 13294IFS=$as_save_IFS 13295 13296 ;; 13297esac 13298# We did not find ourselves, most probably we were run as `sh COMMAND' 13299# in which case we are not to be found in the path. 13300if test "x$as_myself" = x; then 13301 as_myself=$0 13302fi 13303if test ! -f "$as_myself"; then 13304 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13305 exit 1 13306fi 13307 13308# Unset variables that we do not need and which cause bugs (e.g. in 13309# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13310# suppresses any "Segmentation fault" message there. '((' could 13311# trigger a bug in pdksh 5.2.14. 13312for as_var in BASH_ENV ENV MAIL MAILPATH 13313do eval test x\${$as_var+set} = xset \ 13314 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13315done 13316PS1='$ ' 13317PS2='> ' 13318PS4='+ ' 13319 13320# NLS nuisances. 13321LC_ALL=C 13322export LC_ALL 13323LANGUAGE=C 13324export LANGUAGE 13325 13326# CDPATH. 13327(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13328 13329 13330# as_fn_error ERROR [LINENO LOG_FD] 13331# --------------------------------- 13332# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13333# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13334# script with status $?, using 1 if that was 0. 13335as_fn_error () 13336{ 13337 as_status=$?; test $as_status -eq 0 && as_status=1 13338 if test "$3"; then 13339 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13340 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 13341 fi 13342 $as_echo "$as_me: error: $1" >&2 13343 as_fn_exit $as_status 13344} # as_fn_error 13345 13346 13347# as_fn_set_status STATUS 13348# ----------------------- 13349# Set $? to STATUS, without forking. 13350as_fn_set_status () 13351{ 13352 return $1 13353} # as_fn_set_status 13354 13355# as_fn_exit STATUS 13356# ----------------- 13357# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13358as_fn_exit () 13359{ 13360 set +e 13361 as_fn_set_status $1 13362 exit $1 13363} # as_fn_exit 13364 13365# as_fn_unset VAR 13366# --------------- 13367# Portably unset VAR. 13368as_fn_unset () 13369{ 13370 { eval $1=; unset $1;} 13371} 13372as_unset=as_fn_unset 13373# as_fn_append VAR VALUE 13374# ---------------------- 13375# Append the text in VALUE to the end of the definition contained in VAR. Take 13376# advantage of any shell optimizations that allow amortized linear growth over 13377# repeated appends, instead of the typical quadratic growth present in naive 13378# implementations. 13379if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13380 eval 'as_fn_append () 13381 { 13382 eval $1+=\$2 13383 }' 13384else 13385 as_fn_append () 13386 { 13387 eval $1=\$$1\$2 13388 } 13389fi # as_fn_append 13390 13391# as_fn_arith ARG... 13392# ------------------ 13393# Perform arithmetic evaluation on the ARGs, and store the result in the 13394# global $as_val. Take advantage of shells that can avoid forks. The arguments 13395# must be portable across $(()) and expr. 13396if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13397 eval 'as_fn_arith () 13398 { 13399 as_val=$(( $* )) 13400 }' 13401else 13402 as_fn_arith () 13403 { 13404 as_val=`expr "$@" || test $? -eq 1` 13405 } 13406fi # as_fn_arith 13407 13408 13409if expr a : '\(a\)' >/dev/null 2>&1 && 13410 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13411 as_expr=expr 13412else 13413 as_expr=false 13414fi 13415 13416if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13417 as_basename=basename 13418else 13419 as_basename=false 13420fi 13421 13422if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13423 as_dirname=dirname 13424else 13425 as_dirname=false 13426fi 13427 13428as_me=`$as_basename -- "$0" || 13429$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13430 X"$0" : 'X\(//\)$' \| \ 13431 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13432$as_echo X/"$0" | 13433 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13434 s//\1/ 13435 q 13436 } 13437 /^X\/\(\/\/\)$/{ 13438 s//\1/ 13439 q 13440 } 13441 /^X\/\(\/\).*/{ 13442 s//\1/ 13443 q 13444 } 13445 s/.*/./; q'` 13446 13447# Avoid depending upon Character Ranges. 13448as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13449as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13450as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13451as_cr_digits='0123456789' 13452as_cr_alnum=$as_cr_Letters$as_cr_digits 13453 13454ECHO_C= ECHO_N= ECHO_T= 13455case `echo -n x` in #((((( 13456-n*) 13457 case `echo 'xy\c'` in 13458 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13459 xy) ECHO_C='\c';; 13460 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13461 ECHO_T=' ';; 13462 esac;; 13463*) 13464 ECHO_N='-n';; 13465esac 13466 13467rm -f conf$$ conf$$.exe conf$$.file 13468if test -d conf$$.dir; then 13469 rm -f conf$$.dir/conf$$.file 13470else 13471 rm -f conf$$.dir 13472 mkdir conf$$.dir 2>/dev/null 13473fi 13474if (echo >conf$$.file) 2>/dev/null; then 13475 if ln -s conf$$.file conf$$ 2>/dev/null; then 13476 as_ln_s='ln -s' 13477 # ... but there are two gotchas: 13478 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13479 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13480 # In both cases, we have to default to `cp -p'. 13481 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13482 as_ln_s='cp -p' 13483 elif ln conf$$.file conf$$ 2>/dev/null; then 13484 as_ln_s=ln 13485 else 13486 as_ln_s='cp -p' 13487 fi 13488else 13489 as_ln_s='cp -p' 13490fi 13491rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13492rmdir conf$$.dir 2>/dev/null 13493 13494 13495# as_fn_mkdir_p 13496# ------------- 13497# Create "$as_dir" as a directory, including parents if necessary. 13498as_fn_mkdir_p () 13499{ 13500 13501 case $as_dir in #( 13502 -*) as_dir=./$as_dir;; 13503 esac 13504 test -d "$as_dir" || eval $as_mkdir_p || { 13505 as_dirs= 13506 while :; do 13507 case $as_dir in #( 13508 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13509 *) as_qdir=$as_dir;; 13510 esac 13511 as_dirs="'$as_qdir' $as_dirs" 13512 as_dir=`$as_dirname -- "$as_dir" || 13513$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13514 X"$as_dir" : 'X\(//\)[^/]' \| \ 13515 X"$as_dir" : 'X\(//\)$' \| \ 13516 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13517$as_echo X"$as_dir" | 13518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13519 s//\1/ 13520 q 13521 } 13522 /^X\(\/\/\)[^/].*/{ 13523 s//\1/ 13524 q 13525 } 13526 /^X\(\/\/\)$/{ 13527 s//\1/ 13528 q 13529 } 13530 /^X\(\/\).*/{ 13531 s//\1/ 13532 q 13533 } 13534 s/.*/./; q'` 13535 test -d "$as_dir" && break 13536 done 13537 test -z "$as_dirs" || eval "mkdir $as_dirs" 13538 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 13539 13540 13541} # as_fn_mkdir_p 13542if mkdir -p . 2>/dev/null; then 13543 as_mkdir_p='mkdir -p "$as_dir"' 13544else 13545 test -d ./-p && rmdir ./-p 13546 as_mkdir_p=false 13547fi 13548 13549if test -x / >/dev/null 2>&1; then 13550 as_test_x='test -x' 13551else 13552 if ls -dL / >/dev/null 2>&1; then 13553 as_ls_L_option=L 13554 else 13555 as_ls_L_option= 13556 fi 13557 as_test_x=' 13558 eval sh -c '\'' 13559 if test -d "$1"; then 13560 test -d "$1/."; 13561 else 13562 case $1 in #( 13563 -*)set "./$1";; 13564 esac; 13565 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 13566 ???[sx]*):;;*)false;;esac;fi 13567 '\'' sh 13568 ' 13569fi 13570as_executable_p=$as_test_x 13571 13572# Sed expression to map a string onto a valid CPP name. 13573as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13574 13575# Sed expression to map a string onto a valid variable name. 13576as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13577 13578 13579exec 6>&1 13580## ----------------------------------- ## 13581## Main body of $CONFIG_STATUS script. ## 13582## ----------------------------------- ## 13583_ASEOF 13584test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13585 13586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13587# Save the log message, to keep $0 and so on meaningful, and to 13588# report actual input values of CONFIG_FILES etc. instead of their 13589# values after options handling. 13590ac_log=" 13591This file was extended by GCC Quad-precision Math Library $as_me 0.1, which was 13592generated by GNU Autoconf 2.64. Invocation command line was 13593 13594 CONFIG_FILES = $CONFIG_FILES 13595 CONFIG_HEADERS = $CONFIG_HEADERS 13596 CONFIG_LINKS = $CONFIG_LINKS 13597 CONFIG_COMMANDS = $CONFIG_COMMANDS 13598 $ $0 $@ 13599 13600on `(hostname || uname -n) 2>/dev/null | sed 1q` 13601" 13602 13603_ACEOF 13604 13605case $ac_config_files in *" 13606"*) set x $ac_config_files; shift; ac_config_files=$*;; 13607esac 13608 13609case $ac_config_headers in *" 13610"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13611esac 13612 13613 13614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13615# Files that config.status was made for. 13616config_files="$ac_config_files" 13617config_headers="$ac_config_headers" 13618config_commands="$ac_config_commands" 13619 13620_ACEOF 13621 13622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13623ac_cs_usage="\ 13624\`$as_me' instantiates files and other configuration actions 13625from templates according to the current configuration. Unless the files 13626and actions are specified as TAGs, all are instantiated by default. 13627 13628Usage: $0 [OPTION]... [TAG]... 13629 13630 -h, --help print this help, then exit 13631 -V, --version print version number and configuration settings, then exit 13632 -q, --quiet, --silent 13633 do not print progress messages 13634 -d, --debug don't remove temporary files 13635 --recheck update $as_me by reconfiguring in the same conditions 13636 --file=FILE[:TEMPLATE] 13637 instantiate the configuration file FILE 13638 --header=FILE[:TEMPLATE] 13639 instantiate the configuration header FILE 13640 13641Configuration files: 13642$config_files 13643 13644Configuration headers: 13645$config_headers 13646 13647Configuration commands: 13648$config_commands 13649 13650Report bugs to the package provider." 13651 13652_ACEOF 13653cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13654ac_cs_version="\\ 13655GCC Quad-precision Math Library config.status 0.1 13656configured by $0, generated by GNU Autoconf 2.64, 13657 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 13658 13659Copyright (C) 2009 Free Software Foundation, Inc. 13660This config.status script is free software; the Free Software Foundation 13661gives unlimited permission to copy, distribute and modify it." 13662 13663ac_pwd='$ac_pwd' 13664srcdir='$srcdir' 13665INSTALL='$INSTALL' 13666MKDIR_P='$MKDIR_P' 13667AWK='$AWK' 13668test -n "\$AWK" || AWK=awk 13669_ACEOF 13670 13671cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13672# The default lists apply if the user does not specify any file. 13673ac_need_defaults=: 13674while test $# != 0 13675do 13676 case $1 in 13677 --*=*) 13678 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13679 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13680 ac_shift=: 13681 ;; 13682 *) 13683 ac_option=$1 13684 ac_optarg=$2 13685 ac_shift=shift 13686 ;; 13687 esac 13688 13689 case $ac_option in 13690 # Handling of the options. 13691 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13692 ac_cs_recheck=: ;; 13693 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13694 $as_echo "$ac_cs_version"; exit ;; 13695 --debug | --debu | --deb | --de | --d | -d ) 13696 debug=: ;; 13697 --file | --fil | --fi | --f ) 13698 $ac_shift 13699 case $ac_optarg in 13700 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13701 esac 13702 as_fn_append CONFIG_FILES " '$ac_optarg'" 13703 ac_need_defaults=false;; 13704 --header | --heade | --head | --hea ) 13705 $ac_shift 13706 case $ac_optarg in 13707 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13708 esac 13709 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13710 ac_need_defaults=false;; 13711 --he | --h) 13712 # Conflict between --help and --header 13713 as_fn_error "ambiguous option: \`$1' 13714Try \`$0 --help' for more information.";; 13715 --help | --hel | -h ) 13716 $as_echo "$ac_cs_usage"; exit ;; 13717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13718 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13719 ac_cs_silent=: ;; 13720 13721 # This is an error. 13722 -*) as_fn_error "unrecognized option: \`$1' 13723Try \`$0 --help' for more information." ;; 13724 13725 *) as_fn_append ac_config_targets " $1" 13726 ac_need_defaults=false ;; 13727 13728 esac 13729 shift 13730done 13731 13732ac_configure_extra_args= 13733 13734if $ac_cs_silent; then 13735 exec 6>/dev/null 13736 ac_configure_extra_args="$ac_configure_extra_args --silent" 13737fi 13738 13739_ACEOF 13740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13741if \$ac_cs_recheck; then 13742 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13743 shift 13744 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13745 CONFIG_SHELL='$SHELL' 13746 export CONFIG_SHELL 13747 exec "\$@" 13748fi 13749 13750_ACEOF 13751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13752exec 5>>config.log 13753{ 13754 echo 13755 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13756## Running $as_me. ## 13757_ASBOX 13758 $as_echo "$ac_log" 13759} >&5 13760 13761_ACEOF 13762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13763# 13764# INIT-COMMANDS 13765# 13766 13767srcdir="$srcdir" 13768host="$host" 13769target="$target" 13770with_multisubdir="$with_multisubdir" 13771with_multisrctop="$with_multisrctop" 13772with_target_subdir="$with_target_subdir" 13773ac_configure_args="${multilib_arg} ${ac_configure_args}" 13774multi_basedir="$multi_basedir" 13775CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 13776CC="$CC" 13777CXX="$CXX" 13778GFORTRAN="$GFORTRAN" 13779AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13780 13781 13782# The HP-UX ksh and POSIX shell print the target directory to stdout 13783# if CDPATH is set. 13784(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13785 13786sed_quote_subst='$sed_quote_subst' 13787double_quote_subst='$double_quote_subst' 13788delay_variable_subst='$delay_variable_subst' 13789macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13790macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13791enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13792enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13793pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13794enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13795SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13796ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13797host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13798host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13799host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13800build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13801build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13802build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13803SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13804Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13805GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13806EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13807FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13808LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13809NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13810LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13811max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13812ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13813exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13814lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13815lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13816lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13817reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13818reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13819OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13820deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13821file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13822AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13823AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13824STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13825RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13826old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13827old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13828old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13829lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13830CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13831CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13832compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13833GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13834lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13835lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13836lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13837lt_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"`' 13838objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13839MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13840lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13841lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13842lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13843lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13844lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13845need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13846DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13847NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13848LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13849OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13850OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13851libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13852shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13853extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13854archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13855enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13856export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13857whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13858compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13859old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13860old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13861archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13862archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13863module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13864module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13865with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13866allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13867no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13868hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13869hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 13870hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13871hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13872hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13873hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13874hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13875hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13876inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13877link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13878fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 13879always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13880export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13881exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13882include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13883prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13884file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13885variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13886need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13887need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13888version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13889runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13890shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13891shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13892libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13893library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13894soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13895install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13896postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13897postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13898finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13899finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13900hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13901sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13902sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 13903hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13904enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13905enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13906enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13907old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13908striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13909 13910LTCC='$LTCC' 13911LTCFLAGS='$LTCFLAGS' 13912compiler='$compiler_DEFAULT' 13913 13914# A function that is used when there is no print builtin or printf. 13915func_fallback_echo () 13916{ 13917 eval 'cat <<_LTECHO_EOF 13918\$1 13919_LTECHO_EOF' 13920} 13921 13922# Quote evaled strings. 13923for var in SHELL \ 13924ECHO \ 13925SED \ 13926GREP \ 13927EGREP \ 13928FGREP \ 13929LD \ 13930NM \ 13931LN_S \ 13932lt_SP2NL \ 13933lt_NL2SP \ 13934reload_flag \ 13935OBJDUMP \ 13936deplibs_check_method \ 13937file_magic_cmd \ 13938AR \ 13939AR_FLAGS \ 13940STRIP \ 13941RANLIB \ 13942CC \ 13943CFLAGS \ 13944compiler \ 13945lt_cv_sys_global_symbol_pipe \ 13946lt_cv_sys_global_symbol_to_cdecl \ 13947lt_cv_sys_global_symbol_to_c_name_address \ 13948lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13949lt_prog_compiler_no_builtin_flag \ 13950lt_prog_compiler_wl \ 13951lt_prog_compiler_pic \ 13952lt_prog_compiler_static \ 13953lt_cv_prog_compiler_c_o \ 13954need_locks \ 13955DSYMUTIL \ 13956NMEDIT \ 13957LIPO \ 13958OTOOL \ 13959OTOOL64 \ 13960shrext_cmds \ 13961export_dynamic_flag_spec \ 13962whole_archive_flag_spec \ 13963compiler_needs_object \ 13964with_gnu_ld \ 13965allow_undefined_flag \ 13966no_undefined_flag \ 13967hardcode_libdir_flag_spec \ 13968hardcode_libdir_flag_spec_ld \ 13969hardcode_libdir_separator \ 13970fix_srcfile_path \ 13971exclude_expsyms \ 13972include_expsyms \ 13973file_list_spec \ 13974variables_saved_for_relink \ 13975libname_spec \ 13976library_names_spec \ 13977soname_spec \ 13978install_override_mode \ 13979finish_eval \ 13980old_striplib \ 13981striplib; do 13982 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13983 *[\\\\\\\`\\"\\\$]*) 13984 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13985 ;; 13986 *) 13987 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13988 ;; 13989 esac 13990done 13991 13992# Double-quote double-evaled strings. 13993for var in reload_cmds \ 13994old_postinstall_cmds \ 13995old_postuninstall_cmds \ 13996old_archive_cmds \ 13997extract_expsyms_cmds \ 13998old_archive_from_new_cmds \ 13999old_archive_from_expsyms_cmds \ 14000archive_cmds \ 14001archive_expsym_cmds \ 14002module_cmds \ 14003module_expsym_cmds \ 14004export_symbols_cmds \ 14005prelink_cmds \ 14006postinstall_cmds \ 14007postuninstall_cmds \ 14008finish_cmds \ 14009sys_lib_search_path_spec \ 14010sys_lib_dlsearch_path_spec; do 14011 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14012 *[\\\\\\\`\\"\\\$]*) 14013 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14014 ;; 14015 *) 14016 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14017 ;; 14018 esac 14019done 14020 14021ac_aux_dir='$ac_aux_dir' 14022xsi_shell='$xsi_shell' 14023lt_shell_append='$lt_shell_append' 14024 14025# See if we are running on zsh, and set the options which allow our 14026# commands through without removal of \ escapes INIT. 14027if test -n "\${ZSH_VERSION+set}" ; then 14028 setopt NO_GLOB_SUBST 14029fi 14030 14031 14032 PACKAGE='$PACKAGE' 14033 VERSION='$VERSION' 14034 TIMESTAMP='$TIMESTAMP' 14035 RM='$RM' 14036 ofile='$ofile' 14037 14038 14039 14040 14041_ACEOF 14042 14043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14044 14045# Handling of arguments. 14046for ac_config_target in $ac_config_targets 14047do 14048 case $ac_config_target in 14049 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14050 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 14051 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14052 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14053 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14054 14055 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14056 esac 14057done 14058 14059 14060# If the user did not use the arguments to specify the items to instantiate, 14061# then the envvar interface is used. Set only those that are not. 14062# We use the long form for the default assignment because of an extremely 14063# bizarre bug on SunOS 4.1.3. 14064if $ac_need_defaults; then 14065 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14066 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14067 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14068fi 14069 14070# Have a temporary directory for convenience. Make it in the build tree 14071# simply because there is no reason against having it here, and in addition, 14072# creating and moving files from /tmp can sometimes cause problems. 14073# Hook for its removal unless debugging. 14074# Note that there is a small window in which the directory will not be cleaned: 14075# after its creation but before its name has been assigned to `$tmp'. 14076$debug || 14077{ 14078 tmp= 14079 trap 'exit_status=$? 14080 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14081' 0 14082 trap 'as_fn_exit 1' 1 2 13 15 14083} 14084# Create a (secure) tmp directory for tmp files. 14085 14086{ 14087 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14088 test -n "$tmp" && test -d "$tmp" 14089} || 14090{ 14091 tmp=./conf$$-$RANDOM 14092 (umask 077 && mkdir "$tmp") 14093} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 14094 14095# Set up the scripts for CONFIG_FILES section. 14096# No need to generate them if there are no CONFIG_FILES. 14097# This happens for instance with `./config.status config.h'. 14098if test -n "$CONFIG_FILES"; then 14099 14100 14101ac_cr=`echo X | tr X '\015'` 14102# On cygwin, bash can eat \r inside `` if the user requested igncr. 14103# But we know of no other shell where ac_cr would be empty at this 14104# point, so we can use a bashism as a fallback. 14105if test "x$ac_cr" = x; then 14106 eval ac_cr=\$\'\\r\' 14107fi 14108ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14109if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14110 ac_cs_awk_cr='\r' 14111else 14112 ac_cs_awk_cr=$ac_cr 14113fi 14114 14115echo 'BEGIN {' >"$tmp/subs1.awk" && 14116_ACEOF 14117 14118 14119{ 14120 echo "cat >conf$$subs.awk <<_ACEOF" && 14121 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14122 echo "_ACEOF" 14123} >conf$$subs.sh || 14124 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 14125ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 14126ac_delim='%!_!# ' 14127for ac_last_try in false false false false false :; do 14128 . ./conf$$subs.sh || 14129 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 14130 14131 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14132 if test $ac_delim_n = $ac_delim_num; then 14133 break 14134 elif $ac_last_try; then 14135 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 14136 else 14137 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14138 fi 14139done 14140rm -f conf$$subs.sh 14141 14142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14143cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 14144_ACEOF 14145sed -n ' 14146h 14147s/^/S["/; s/!.*/"]=/ 14148p 14149g 14150s/^[^!]*!// 14151:repl 14152t repl 14153s/'"$ac_delim"'$// 14154t delim 14155:nl 14156h 14157s/\(.\{148\}\).*/\1/ 14158t more1 14159s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14160p 14161n 14162b repl 14163:more1 14164s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14165p 14166g 14167s/.\{148\}// 14168t nl 14169:delim 14170h 14171s/\(.\{148\}\).*/\1/ 14172t more2 14173s/["\\]/\\&/g; s/^/"/; s/$/"/ 14174p 14175b 14176:more2 14177s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14178p 14179g 14180s/.\{148\}// 14181t delim 14182' <conf$$subs.awk | sed ' 14183/^[^""]/{ 14184 N 14185 s/\n// 14186} 14187' >>$CONFIG_STATUS || ac_write_fail=1 14188rm -f conf$$subs.awk 14189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14190_ACAWK 14191cat >>"\$tmp/subs1.awk" <<_ACAWK && 14192 for (key in S) S_is_set[key] = 1 14193 FS = "" 14194 14195} 14196{ 14197 line = $ 0 14198 nfields = split(line, field, "@") 14199 substed = 0 14200 len = length(field[1]) 14201 for (i = 2; i < nfields; i++) { 14202 key = field[i] 14203 keylen = length(key) 14204 if (S_is_set[key]) { 14205 value = S[key] 14206 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14207 len += length(value) + length(field[++i]) 14208 substed = 1 14209 } else 14210 len += 1 + keylen 14211 } 14212 14213 print line 14214} 14215 14216_ACAWK 14217_ACEOF 14218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14219if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14220 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14221else 14222 cat 14223fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14224 || as_fn_error "could not setup config files machinery" "$LINENO" 5 14225_ACEOF 14226 14227# VPATH may cause trouble with some makes, so we remove $(srcdir), 14228# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14229# trailing colons and then remove the whole line if VPATH becomes empty 14230# (actually we leave an empty line to preserve line numbers). 14231if test "x$srcdir" = x.; then 14232 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 14233s/:*\$(srcdir):*/:/ 14234s/:*\${srcdir}:*/:/ 14235s/:*@srcdir@:*/:/ 14236s/^\([^=]*=[ ]*\):*/\1/ 14237s/:*$// 14238s/^[^=]*=[ ]*$// 14239}' 14240fi 14241 14242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14243fi # test -n "$CONFIG_FILES" 14244 14245# Set up the scripts for CONFIG_HEADERS section. 14246# No need to generate them if there are no CONFIG_HEADERS. 14247# This happens for instance with `./config.status Makefile'. 14248if test -n "$CONFIG_HEADERS"; then 14249cat >"$tmp/defines.awk" <<\_ACAWK || 14250BEGIN { 14251_ACEOF 14252 14253# Transform confdefs.h into an awk script `defines.awk', embedded as 14254# here-document in config.status, that substitutes the proper values into 14255# config.h.in to produce config.h. 14256 14257# Create a delimiter string that does not exist in confdefs.h, to ease 14258# handling of long lines. 14259ac_delim='%!_!# ' 14260for ac_last_try in false false :; do 14261 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14262 if test -z "$ac_t"; then 14263 break 14264 elif $ac_last_try; then 14265 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 14266 else 14267 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14268 fi 14269done 14270 14271# For the awk script, D is an array of macro values keyed by name, 14272# likewise P contains macro parameters if any. Preserve backslash 14273# newline sequences. 14274 14275ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14276sed -n ' 14277s/.\{148\}/&'"$ac_delim"'/g 14278t rset 14279:rset 14280s/^[ ]*#[ ]*define[ ][ ]*/ / 14281t def 14282d 14283:def 14284s/\\$// 14285t bsnl 14286s/["\\]/\\&/g 14287s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14288D["\1"]=" \3"/p 14289s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14290d 14291:bsnl 14292s/["\\]/\\&/g 14293s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14294D["\1"]=" \3\\\\\\n"\\/p 14295t cont 14296s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14297t cont 14298d 14299:cont 14300n 14301s/.\{148\}/&'"$ac_delim"'/g 14302t clear 14303:clear 14304s/\\$// 14305t bsnlc 14306s/["\\]/\\&/g; s/^/"/; s/$/"/p 14307d 14308:bsnlc 14309s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14310b cont 14311' <confdefs.h | sed ' 14312s/'"$ac_delim"'/"\\\ 14313"/g' >>$CONFIG_STATUS || ac_write_fail=1 14314 14315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14316 for (key in D) D_is_set[key] = 1 14317 FS = "" 14318} 14319/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14320 line = \$ 0 14321 split(line, arg, " ") 14322 if (arg[1] == "#") { 14323 defundef = arg[2] 14324 mac1 = arg[3] 14325 } else { 14326 defundef = substr(arg[1], 2) 14327 mac1 = arg[2] 14328 } 14329 split(mac1, mac2, "(") #) 14330 macro = mac2[1] 14331 prefix = substr(line, 1, index(line, defundef) - 1) 14332 if (D_is_set[macro]) { 14333 # Preserve the white space surrounding the "#". 14334 print prefix "define", macro P[macro] D[macro] 14335 next 14336 } else { 14337 # Replace #undef with comments. This is necessary, for example, 14338 # in the case of _POSIX_SOURCE, which is predefined and required 14339 # on some systems where configure will not decide to define it. 14340 if (defundef == "undef") { 14341 print "/*", prefix defundef, macro, "*/" 14342 next 14343 } 14344 } 14345} 14346{ print } 14347_ACAWK 14348_ACEOF 14349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14350 as_fn_error "could not setup config headers machinery" "$LINENO" 5 14351fi # test -n "$CONFIG_HEADERS" 14352 14353 14354eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14355shift 14356for ac_tag 14357do 14358 case $ac_tag in 14359 :[FHLC]) ac_mode=$ac_tag; continue;; 14360 esac 14361 case $ac_mode$ac_tag in 14362 :[FHL]*:*);; 14363 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 14364 :[FH]-) ac_tag=-:-;; 14365 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14366 esac 14367 ac_save_IFS=$IFS 14368 IFS=: 14369 set x $ac_tag 14370 IFS=$ac_save_IFS 14371 shift 14372 ac_file=$1 14373 shift 14374 14375 case $ac_mode in 14376 :L) ac_source=$1;; 14377 :[FH]) 14378 ac_file_inputs= 14379 for ac_f 14380 do 14381 case $ac_f in 14382 -) ac_f="$tmp/stdin";; 14383 *) # Look for the file first in the build tree, then in the source tree 14384 # (if the path is not absolute). The absolute path cannot be DOS-style, 14385 # because $ac_f cannot contain `:'. 14386 test -f "$ac_f" || 14387 case $ac_f in 14388 [\\/$]*) false;; 14389 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14390 esac || 14391 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14392 esac 14393 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14394 as_fn_append ac_file_inputs " '$ac_f'" 14395 done 14396 14397 # Let's still pretend it is `configure' which instantiates (i.e., don't 14398 # use $as_me), people would be surprised to read: 14399 # /* config.h. Generated by config.status. */ 14400 configure_input='Generated from '` 14401 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14402 `' by configure.' 14403 if test x"$ac_file" != x-; then 14404 configure_input="$ac_file. $configure_input" 14405 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14406$as_echo "$as_me: creating $ac_file" >&6;} 14407 fi 14408 # Neutralize special characters interpreted by sed in replacement strings. 14409 case $configure_input in #( 14410 *\&* | *\|* | *\\* ) 14411 ac_sed_conf_input=`$as_echo "$configure_input" | 14412 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14413 *) ac_sed_conf_input=$configure_input;; 14414 esac 14415 14416 case $ac_tag in 14417 *:-:* | *:-) cat >"$tmp/stdin" \ 14418 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 14419 esac 14420 ;; 14421 esac 14422 14423 ac_dir=`$as_dirname -- "$ac_file" || 14424$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14425 X"$ac_file" : 'X\(//\)[^/]' \| \ 14426 X"$ac_file" : 'X\(//\)$' \| \ 14427 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14428$as_echo X"$ac_file" | 14429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14430 s//\1/ 14431 q 14432 } 14433 /^X\(\/\/\)[^/].*/{ 14434 s//\1/ 14435 q 14436 } 14437 /^X\(\/\/\)$/{ 14438 s//\1/ 14439 q 14440 } 14441 /^X\(\/\).*/{ 14442 s//\1/ 14443 q 14444 } 14445 s/.*/./; q'` 14446 as_dir="$ac_dir"; as_fn_mkdir_p 14447 ac_builddir=. 14448 14449case "$ac_dir" in 14450.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14451*) 14452 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14453 # A ".." for each directory in $ac_dir_suffix. 14454 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14455 case $ac_top_builddir_sub in 14456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14458 esac ;; 14459esac 14460ac_abs_top_builddir=$ac_pwd 14461ac_abs_builddir=$ac_pwd$ac_dir_suffix 14462# for backward compatibility: 14463ac_top_builddir=$ac_top_build_prefix 14464 14465case $srcdir in 14466 .) # We are building in place. 14467 ac_srcdir=. 14468 ac_top_srcdir=$ac_top_builddir_sub 14469 ac_abs_top_srcdir=$ac_pwd ;; 14470 [\\/]* | ?:[\\/]* ) # Absolute name. 14471 ac_srcdir=$srcdir$ac_dir_suffix; 14472 ac_top_srcdir=$srcdir 14473 ac_abs_top_srcdir=$srcdir ;; 14474 *) # Relative name. 14475 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14476 ac_top_srcdir=$ac_top_build_prefix$srcdir 14477 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14478esac 14479ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14480 14481 14482 case $ac_mode in 14483 :F) 14484 # 14485 # CONFIG_FILE 14486 # 14487 14488 case $INSTALL in 14489 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14490 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14491 esac 14492 ac_MKDIR_P=$MKDIR_P 14493 case $MKDIR_P in 14494 [\\/$]* | ?:[\\/]* ) ;; 14495 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14496 esac 14497_ACEOF 14498 14499cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14500# If the template does not know about datarootdir, expand it. 14501# FIXME: This hack should be removed a few years after 2.60. 14502ac_datarootdir_hack=; ac_datarootdir_seen= 14503ac_sed_dataroot=' 14504/datarootdir/ { 14505 p 14506 q 14507} 14508/@datadir@/p 14509/@docdir@/p 14510/@infodir@/p 14511/@localedir@/p 14512/@mandir@/p' 14513case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14514*datarootdir*) ac_datarootdir_seen=yes;; 14515*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14517$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14518_ACEOF 14519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14520 ac_datarootdir_hack=' 14521 s&@datadir@&$datadir&g 14522 s&@docdir@&$docdir&g 14523 s&@infodir@&$infodir&g 14524 s&@localedir@&$localedir&g 14525 s&@mandir@&$mandir&g 14526 s&\\\${datarootdir}&$datarootdir&g' ;; 14527esac 14528_ACEOF 14529 14530# Neutralize VPATH when `$srcdir' = `.'. 14531# Shell code in configure.ac might set extrasub. 14532# FIXME: do we really want to maintain this feature? 14533cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14534ac_sed_extra="$ac_vpsub 14535$extrasub 14536_ACEOF 14537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14538:t 14539/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14540s|@configure_input@|$ac_sed_conf_input|;t t 14541s&@top_builddir@&$ac_top_builddir_sub&;t t 14542s&@top_build_prefix@&$ac_top_build_prefix&;t t 14543s&@srcdir@&$ac_srcdir&;t t 14544s&@abs_srcdir@&$ac_abs_srcdir&;t t 14545s&@top_srcdir@&$ac_top_srcdir&;t t 14546s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14547s&@builddir@&$ac_builddir&;t t 14548s&@abs_builddir@&$ac_abs_builddir&;t t 14549s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14550s&@INSTALL@&$ac_INSTALL&;t t 14551s&@MKDIR_P@&$ac_MKDIR_P&;t t 14552$ac_datarootdir_hack 14553" 14554eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14555 || as_fn_error "could not create $ac_file" "$LINENO" 5 14556 14557test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14558 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14559 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14561which seems to be undefined. Please make sure it is defined." >&5 14562$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14563which seems to be undefined. Please make sure it is defined." >&2;} 14564 14565 rm -f "$tmp/stdin" 14566 case $ac_file in 14567 -) cat "$tmp/out" && rm -f "$tmp/out";; 14568 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14569 esac \ 14570 || as_fn_error "could not create $ac_file" "$LINENO" 5 14571 ;; 14572 :H) 14573 # 14574 # CONFIG_HEADER 14575 # 14576 if test x"$ac_file" != x-; then 14577 { 14578 $as_echo "/* $configure_input */" \ 14579 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14580 } >"$tmp/config.h" \ 14581 || as_fn_error "could not create $ac_file" "$LINENO" 5 14582 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14583 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14584$as_echo "$as_me: $ac_file is unchanged" >&6;} 14585 else 14586 rm -f "$ac_file" 14587 mv "$tmp/config.h" "$ac_file" \ 14588 || as_fn_error "could not create $ac_file" "$LINENO" 5 14589 fi 14590 else 14591 $as_echo "/* $configure_input */" \ 14592 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14593 || as_fn_error "could not create -" "$LINENO" 5 14594 fi 14595# Compute "$ac_file"'s index in $config_headers. 14596_am_arg="$ac_file" 14597_am_stamp_count=1 14598for _am_header in $config_headers :; do 14599 case $_am_header in 14600 $_am_arg | $_am_arg:* ) 14601 break ;; 14602 * ) 14603 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14604 esac 14605done 14606echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14607$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14608 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14609 X"$_am_arg" : 'X\(//\)$' \| \ 14610 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14611$as_echo X"$_am_arg" | 14612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14613 s//\1/ 14614 q 14615 } 14616 /^X\(\/\/\)[^/].*/{ 14617 s//\1/ 14618 q 14619 } 14620 /^X\(\/\/\)$/{ 14621 s//\1/ 14622 q 14623 } 14624 /^X\(\/\).*/{ 14625 s//\1/ 14626 q 14627 } 14628 s/.*/./; q'`/stamp-h$_am_stamp_count 14629 ;; 14630 14631 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14632$as_echo "$as_me: executing $ac_file commands" >&6;} 14633 ;; 14634 esac 14635 14636 14637 case $ac_file$ac_mode in 14638 "default-1":C) 14639# Only add multilib support code if we just rebuilt the top-level 14640# Makefile. 14641case " $CONFIG_FILES " in 14642 *" Makefile "*) 14643 ac_file=Makefile . ${multi_basedir}/config-ml.in 14644 ;; 14645esac ;; 14646 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14647 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14648 # are listed without --file. Let's play safe and only enable the eval 14649 # if we detect the quoting. 14650 case $CONFIG_FILES in 14651 *\'*) eval set x "$CONFIG_FILES" ;; 14652 *) set x $CONFIG_FILES ;; 14653 esac 14654 shift 14655 for mf 14656 do 14657 # Strip MF so we end up with the name of the file. 14658 mf=`echo "$mf" | sed -e 's/:.*$//'` 14659 # Check whether this is an Automake generated Makefile or not. 14660 # We used to match only the files named `Makefile.in', but 14661 # some people rename them; so instead we look at the file content. 14662 # Grep'ing the first line is not enough: some people post-process 14663 # each Makefile.in and add a new line on top of each file to say so. 14664 # Grep'ing the whole file is not good either: AIX grep has a line 14665 # limit of 2048, but all sed's we know have understand at least 4000. 14666 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14667 dirpart=`$as_dirname -- "$mf" || 14668$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14669 X"$mf" : 'X\(//\)[^/]' \| \ 14670 X"$mf" : 'X\(//\)$' \| \ 14671 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14672$as_echo X"$mf" | 14673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14674 s//\1/ 14675 q 14676 } 14677 /^X\(\/\/\)[^/].*/{ 14678 s//\1/ 14679 q 14680 } 14681 /^X\(\/\/\)$/{ 14682 s//\1/ 14683 q 14684 } 14685 /^X\(\/\).*/{ 14686 s//\1/ 14687 q 14688 } 14689 s/.*/./; q'` 14690 else 14691 continue 14692 fi 14693 # Extract the definition of DEPDIR, am__include, and am__quote 14694 # from the Makefile without running `make'. 14695 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14696 test -z "$DEPDIR" && continue 14697 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14698 test -z "am__include" && continue 14699 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14700 # When using ansi2knr, U may be empty or an underscore; expand it 14701 U=`sed -n 's/^U = //p' < "$mf"` 14702 # Find all dependency output files, they are included files with 14703 # $(DEPDIR) in their names. We invoke sed twice because it is the 14704 # simplest approach to changing $(DEPDIR) to its actual value in the 14705 # expansion. 14706 for file in `sed -n " 14707 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14708 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14709 # Make sure the directory exists. 14710 test -f "$dirpart/$file" && continue 14711 fdir=`$as_dirname -- "$file" || 14712$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14713 X"$file" : 'X\(//\)[^/]' \| \ 14714 X"$file" : 'X\(//\)$' \| \ 14715 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14716$as_echo X"$file" | 14717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14718 s//\1/ 14719 q 14720 } 14721 /^X\(\/\/\)[^/].*/{ 14722 s//\1/ 14723 q 14724 } 14725 /^X\(\/\/\)$/{ 14726 s//\1/ 14727 q 14728 } 14729 /^X\(\/\).*/{ 14730 s//\1/ 14731 q 14732 } 14733 s/.*/./; q'` 14734 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14735 # echo "creating $dirpart/$file" 14736 echo '# dummy' > "$dirpart/$file" 14737 done 14738 done 14739} 14740 ;; 14741 "libtool":C) 14742 14743 # See if we are running on zsh, and set the options which allow our 14744 # commands through without removal of \ escapes. 14745 if test -n "${ZSH_VERSION+set}" ; then 14746 setopt NO_GLOB_SUBST 14747 fi 14748 14749 cfgfile="${ofile}T" 14750 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14751 $RM "$cfgfile" 14752 14753 cat <<_LT_EOF >> "$cfgfile" 14754#! $SHELL 14755 14756# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14757# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14758# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14759# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14760# 14761# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14762# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 14763# Written by Gordon Matzigkeit, 1996 14764# 14765# This file is part of GNU Libtool. 14766# 14767# GNU Libtool is free software; you can redistribute it and/or 14768# modify it under the terms of the GNU General Public License as 14769# published by the Free Software Foundation; either version 2 of 14770# the License, or (at your option) any later version. 14771# 14772# As a special exception to the GNU General Public License, 14773# if you distribute this file as part of a program or library that 14774# is built using GNU Libtool, you may include this file under the 14775# same distribution terms that you use for the rest of that program. 14776# 14777# GNU Libtool is distributed in the hope that it will be useful, 14778# but WITHOUT ANY WARRANTY; without even the implied warranty of 14779# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14780# GNU General Public License for more details. 14781# 14782# You should have received a copy of the GNU General Public License 14783# along with GNU Libtool; see the file COPYING. If not, a copy 14784# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14785# obtained by writing to the Free Software Foundation, Inc., 14786# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14787 14788 14789# The names of the tagged configurations supported by this script. 14790available_tags="" 14791 14792# ### BEGIN LIBTOOL CONFIG 14793 14794# Which release of libtool.m4 was used? 14795macro_version=$macro_version 14796macro_revision=$macro_revision 14797 14798# Whether or not to build shared libraries. 14799build_libtool_libs=$enable_shared 14800 14801# Whether or not to build static libraries. 14802build_old_libs=$enable_static 14803 14804# What type of objects to build. 14805pic_mode=$pic_mode 14806 14807# Whether or not to optimize for fast installation. 14808fast_install=$enable_fast_install 14809 14810# Shell to use when invoking shell scripts. 14811SHELL=$lt_SHELL 14812 14813# An echo program that protects backslashes. 14814ECHO=$lt_ECHO 14815 14816# The host system. 14817host_alias=$host_alias 14818host=$host 14819host_os=$host_os 14820 14821# The build system. 14822build_alias=$build_alias 14823build=$build 14824build_os=$build_os 14825 14826# A sed program that does not truncate output. 14827SED=$lt_SED 14828 14829# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14830Xsed="\$SED -e 1s/^X//" 14831 14832# A grep program that handles long lines. 14833GREP=$lt_GREP 14834 14835# An ERE matcher. 14836EGREP=$lt_EGREP 14837 14838# A literal string matcher. 14839FGREP=$lt_FGREP 14840 14841# A BSD- or MS-compatible name lister. 14842NM=$lt_NM 14843 14844# Whether we need soft or hard links. 14845LN_S=$lt_LN_S 14846 14847# What is the maximum length of a command? 14848max_cmd_len=$max_cmd_len 14849 14850# Object file suffix (normally "o"). 14851objext=$ac_objext 14852 14853# Executable file suffix (normally ""). 14854exeext=$exeext 14855 14856# whether the shell understands "unset". 14857lt_unset=$lt_unset 14858 14859# turn spaces into newlines. 14860SP2NL=$lt_lt_SP2NL 14861 14862# turn newlines into spaces. 14863NL2SP=$lt_lt_NL2SP 14864 14865# An object symbol dumper. 14866OBJDUMP=$lt_OBJDUMP 14867 14868# Method to check whether dependent libraries are shared objects. 14869deplibs_check_method=$lt_deplibs_check_method 14870 14871# Command to use when deplibs_check_method == "file_magic". 14872file_magic_cmd=$lt_file_magic_cmd 14873 14874# The archiver. 14875AR=$lt_AR 14876AR_FLAGS=$lt_AR_FLAGS 14877 14878# A symbol stripping program. 14879STRIP=$lt_STRIP 14880 14881# Commands used to install an old-style archive. 14882RANLIB=$lt_RANLIB 14883old_postinstall_cmds=$lt_old_postinstall_cmds 14884old_postuninstall_cmds=$lt_old_postuninstall_cmds 14885 14886# Whether to use a lock for old archive extraction. 14887lock_old_archive_extraction=$lock_old_archive_extraction 14888 14889# A C compiler. 14890LTCC=$lt_CC 14891 14892# LTCC compiler flags. 14893LTCFLAGS=$lt_CFLAGS 14894 14895# Take the output of nm and produce a listing of raw symbols and C names. 14896global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14897 14898# Transform the output of nm in a proper C declaration. 14899global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14900 14901# Transform the output of nm in a C name address pair. 14902global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14903 14904# Transform the output of nm in a C name address pair when lib prefix is needed. 14905global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14906 14907# The name of the directory that contains temporary libtool files. 14908objdir=$objdir 14909 14910# Used to examine libraries when file_magic_cmd begins with "file". 14911MAGIC_CMD=$MAGIC_CMD 14912 14913# Must we lock files when doing compilation? 14914need_locks=$lt_need_locks 14915 14916# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14917DSYMUTIL=$lt_DSYMUTIL 14918 14919# Tool to change global to local symbols on Mac OS X. 14920NMEDIT=$lt_NMEDIT 14921 14922# Tool to manipulate fat objects and archives on Mac OS X. 14923LIPO=$lt_LIPO 14924 14925# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14926OTOOL=$lt_OTOOL 14927 14928# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14929OTOOL64=$lt_OTOOL64 14930 14931# Old archive suffix (normally "a"). 14932libext=$libext 14933 14934# Shared library suffix (normally ".so"). 14935shrext_cmds=$lt_shrext_cmds 14936 14937# The commands to extract the exported symbol list from a shared archive. 14938extract_expsyms_cmds=$lt_extract_expsyms_cmds 14939 14940# Variables whose values should be saved in libtool wrapper scripts and 14941# restored at link time. 14942variables_saved_for_relink=$lt_variables_saved_for_relink 14943 14944# Do we need the "lib" prefix for modules? 14945need_lib_prefix=$need_lib_prefix 14946 14947# Do we need a version for libraries? 14948need_version=$need_version 14949 14950# Library versioning type. 14951version_type=$version_type 14952 14953# Shared library runtime path variable. 14954runpath_var=$runpath_var 14955 14956# Shared library path variable. 14957shlibpath_var=$shlibpath_var 14958 14959# Is shlibpath searched before the hard-coded library search path? 14960shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14961 14962# Format of library name prefix. 14963libname_spec=$lt_libname_spec 14964 14965# List of archive names. First name is the real one, the rest are links. 14966# The last name is the one that the linker finds with -lNAME 14967library_names_spec=$lt_library_names_spec 14968 14969# The coded name of the library, if different from the real name. 14970soname_spec=$lt_soname_spec 14971 14972# Permission mode override for installation of shared libraries. 14973install_override_mode=$lt_install_override_mode 14974 14975# Command to use after installation of a shared archive. 14976postinstall_cmds=$lt_postinstall_cmds 14977 14978# Command to use after uninstallation of a shared archive. 14979postuninstall_cmds=$lt_postuninstall_cmds 14980 14981# Commands used to finish a libtool library installation in a directory. 14982finish_cmds=$lt_finish_cmds 14983 14984# As "finish_cmds", except a single script fragment to be evaled but 14985# not shown. 14986finish_eval=$lt_finish_eval 14987 14988# Whether we should hardcode library paths into libraries. 14989hardcode_into_libs=$hardcode_into_libs 14990 14991# Compile-time system search path for libraries. 14992sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14993 14994# Run-time system search path for libraries. 14995sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14996 14997# Whether dlopen is supported. 14998dlopen_support=$enable_dlopen 14999 15000# Whether dlopen of programs is supported. 15001dlopen_self=$enable_dlopen_self 15002 15003# Whether dlopen of statically linked programs is supported. 15004dlopen_self_static=$enable_dlopen_self_static 15005 15006# Commands to strip libraries. 15007old_striplib=$lt_old_striplib 15008striplib=$lt_striplib 15009 15010 15011# The linker used to build libraries. 15012LD=$lt_LD 15013 15014# How to create reloadable object files. 15015reload_flag=$lt_reload_flag 15016reload_cmds=$lt_reload_cmds 15017 15018# Commands used to build an old-style archive. 15019old_archive_cmds=$lt_old_archive_cmds 15020 15021# A language specific compiler. 15022CC=$lt_compiler 15023 15024# Is the compiler the GNU compiler? 15025with_gcc=$GCC 15026 15027# Compiler flag to turn off builtin functions. 15028no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15029 15030# How to pass a linker flag through the compiler. 15031wl=$lt_lt_prog_compiler_wl 15032 15033# Additional compiler flags for building library objects. 15034pic_flag=$lt_lt_prog_compiler_pic 15035 15036# Compiler flag to prevent dynamic linking. 15037link_static_flag=$lt_lt_prog_compiler_static 15038 15039# Does compiler simultaneously support -c and -o options? 15040compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15041 15042# Whether or not to add -lc for building shared libraries. 15043build_libtool_need_lc=$archive_cmds_need_lc 15044 15045# Whether or not to disallow shared libs when runtime libs are static. 15046allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15047 15048# Compiler flag to allow reflexive dlopens. 15049export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15050 15051# Compiler flag to generate shared objects directly from archives. 15052whole_archive_flag_spec=$lt_whole_archive_flag_spec 15053 15054# Whether the compiler copes with passing no objects directly. 15055compiler_needs_object=$lt_compiler_needs_object 15056 15057# Create an old-style archive from a shared archive. 15058old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15059 15060# Create a temporary old-style archive to link instead of a shared archive. 15061old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15062 15063# Commands used to build a shared archive. 15064archive_cmds=$lt_archive_cmds 15065archive_expsym_cmds=$lt_archive_expsym_cmds 15066 15067# Commands used to build a loadable module if different from building 15068# a shared archive. 15069module_cmds=$lt_module_cmds 15070module_expsym_cmds=$lt_module_expsym_cmds 15071 15072# Whether we are building with GNU ld or not. 15073with_gnu_ld=$lt_with_gnu_ld 15074 15075# Flag that allows shared libraries with undefined symbols to be built. 15076allow_undefined_flag=$lt_allow_undefined_flag 15077 15078# Flag that enforces no undefined symbols. 15079no_undefined_flag=$lt_no_undefined_flag 15080 15081# Flag to hardcode \$libdir into a binary during linking. 15082# This must work even if \$libdir does not exist 15083hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15084 15085# If ld is used when linking, flag to hardcode \$libdir into a binary 15086# during linking. This must work even if \$libdir does not exist. 15087hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 15088 15089# Whether we need a single "-rpath" flag with a separated argument. 15090hardcode_libdir_separator=$lt_hardcode_libdir_separator 15091 15092# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15093# DIR into the resulting binary. 15094hardcode_direct=$hardcode_direct 15095 15096# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15097# DIR into the resulting binary and the resulting library dependency is 15098# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15099# library is relocated. 15100hardcode_direct_absolute=$hardcode_direct_absolute 15101 15102# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15103# into the resulting binary. 15104hardcode_minus_L=$hardcode_minus_L 15105 15106# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15107# into the resulting binary. 15108hardcode_shlibpath_var=$hardcode_shlibpath_var 15109 15110# Set to "yes" if building a shared library automatically hardcodes DIR 15111# into the library and all subsequent libraries and executables linked 15112# against it. 15113hardcode_automatic=$hardcode_automatic 15114 15115# Set to yes if linker adds runtime paths of dependent libraries 15116# to runtime path list. 15117inherit_rpath=$inherit_rpath 15118 15119# Whether libtool must link a program against all its dependency libraries. 15120link_all_deplibs=$link_all_deplibs 15121 15122# Fix the shell variable \$srcfile for the compiler. 15123fix_srcfile_path=$lt_fix_srcfile_path 15124 15125# Set to "yes" if exported symbols are required. 15126always_export_symbols=$always_export_symbols 15127 15128# The commands to list exported symbols. 15129export_symbols_cmds=$lt_export_symbols_cmds 15130 15131# Symbols that should not be listed in the preloaded symbols. 15132exclude_expsyms=$lt_exclude_expsyms 15133 15134# Symbols that must always be exported. 15135include_expsyms=$lt_include_expsyms 15136 15137# Commands necessary for linking programs (against libraries) with templates. 15138prelink_cmds=$lt_prelink_cmds 15139 15140# Specify filename containing input files. 15141file_list_spec=$lt_file_list_spec 15142 15143# How to hardcode a shared library path into an executable. 15144hardcode_action=$hardcode_action 15145 15146# ### END LIBTOOL CONFIG 15147 15148_LT_EOF 15149 15150 case $host_os in 15151 aix3*) 15152 cat <<\_LT_EOF >> "$cfgfile" 15153# AIX sometimes has problems with the GCC collect2 program. For some 15154# reason, if we set the COLLECT_NAMES environment variable, the problems 15155# vanish in a puff of smoke. 15156if test "X${COLLECT_NAMES+set}" != Xset; then 15157 COLLECT_NAMES= 15158 export COLLECT_NAMES 15159fi 15160_LT_EOF 15161 ;; 15162 esac 15163 15164 15165ltmain="$ac_aux_dir/ltmain.sh" 15166 15167 15168 # We use sed instead of cat because bash on DJGPP gets confused if 15169 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15170 # text mode, it properly converts lines to CR/LF. This bash problem 15171 # is reportedly fixed, but why not run on old versions too? 15172 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 15173 || (rm -f "$cfgfile"; exit 1) 15174 15175 case $xsi_shell in 15176 yes) 15177 cat << \_LT_EOF >> "$cfgfile" 15178 15179# func_dirname file append nondir_replacement 15180# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15181# otherwise set result to NONDIR_REPLACEMENT. 15182func_dirname () 15183{ 15184 case ${1} in 15185 */*) func_dirname_result="${1%/*}${2}" ;; 15186 * ) func_dirname_result="${3}" ;; 15187 esac 15188} 15189 15190# func_basename file 15191func_basename () 15192{ 15193 func_basename_result="${1##*/}" 15194} 15195 15196# func_dirname_and_basename file append nondir_replacement 15197# perform func_basename and func_dirname in a single function 15198# call: 15199# dirname: Compute the dirname of FILE. If nonempty, 15200# add APPEND to the result, otherwise set result 15201# to NONDIR_REPLACEMENT. 15202# value returned in "$func_dirname_result" 15203# basename: Compute filename of FILE. 15204# value retuned in "$func_basename_result" 15205# Implementation must be kept synchronized with func_dirname 15206# and func_basename. For efficiency, we do not delegate to 15207# those functions but instead duplicate the functionality here. 15208func_dirname_and_basename () 15209{ 15210 case ${1} in 15211 */*) func_dirname_result="${1%/*}${2}" ;; 15212 * ) func_dirname_result="${3}" ;; 15213 esac 15214 func_basename_result="${1##*/}" 15215} 15216 15217# func_stripname prefix suffix name 15218# strip PREFIX and SUFFIX off of NAME. 15219# PREFIX and SUFFIX must not contain globbing or regex special 15220# characters, hashes, percent signs, but SUFFIX may contain a leading 15221# dot (in which case that matches only a dot). 15222func_stripname () 15223{ 15224 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 15225 # positional parameters, so assign one to ordinary parameter first. 15226 func_stripname_result=${3} 15227 func_stripname_result=${func_stripname_result#"${1}"} 15228 func_stripname_result=${func_stripname_result%"${2}"} 15229} 15230 15231# func_opt_split 15232func_opt_split () 15233{ 15234 func_opt_split_opt=${1%%=*} 15235 func_opt_split_arg=${1#*=} 15236} 15237 15238# func_lo2o object 15239func_lo2o () 15240{ 15241 case ${1} in 15242 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 15243 *) func_lo2o_result=${1} ;; 15244 esac 15245} 15246 15247# func_xform libobj-or-source 15248func_xform () 15249{ 15250 func_xform_result=${1%.*}.lo 15251} 15252 15253# func_arith arithmetic-term... 15254func_arith () 15255{ 15256 func_arith_result=$(( $* )) 15257} 15258 15259# func_len string 15260# STRING may not start with a hyphen. 15261func_len () 15262{ 15263 func_len_result=${#1} 15264} 15265 15266_LT_EOF 15267 ;; 15268 *) # Bourne compatible functions. 15269 cat << \_LT_EOF >> "$cfgfile" 15270 15271# func_dirname file append nondir_replacement 15272# Compute the dirname of FILE. If nonempty, add APPEND to the result, 15273# otherwise set result to NONDIR_REPLACEMENT. 15274func_dirname () 15275{ 15276 # Extract subdirectory from the argument. 15277 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 15278 if test "X$func_dirname_result" = "X${1}"; then 15279 func_dirname_result="${3}" 15280 else 15281 func_dirname_result="$func_dirname_result${2}" 15282 fi 15283} 15284 15285# func_basename file 15286func_basename () 15287{ 15288 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 15289} 15290 15291 15292# func_stripname prefix suffix name 15293# strip PREFIX and SUFFIX off of NAME. 15294# PREFIX and SUFFIX must not contain globbing or regex special 15295# characters, hashes, percent signs, but SUFFIX may contain a leading 15296# dot (in which case that matches only a dot). 15297# func_strip_suffix prefix name 15298func_stripname () 15299{ 15300 case ${2} in 15301 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 15302 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 15303 esac 15304} 15305 15306# sed scripts: 15307my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 15308my_sed_long_arg='1s/^-[^=]*=//' 15309 15310# func_opt_split 15311func_opt_split () 15312{ 15313 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 15314 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 15315} 15316 15317# func_lo2o object 15318func_lo2o () 15319{ 15320 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 15321} 15322 15323# func_xform libobj-or-source 15324func_xform () 15325{ 15326 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 15327} 15328 15329# func_arith arithmetic-term... 15330func_arith () 15331{ 15332 func_arith_result=`expr "$@"` 15333} 15334 15335# func_len string 15336# STRING may not start with a hyphen. 15337func_len () 15338{ 15339 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 15340} 15341 15342_LT_EOF 15343esac 15344 15345case $lt_shell_append in 15346 yes) 15347 cat << \_LT_EOF >> "$cfgfile" 15348 15349# func_append var value 15350# Append VALUE to the end of shell variable VAR. 15351func_append () 15352{ 15353 eval "$1+=\$2" 15354} 15355_LT_EOF 15356 ;; 15357 *) 15358 cat << \_LT_EOF >> "$cfgfile" 15359 15360# func_append var value 15361# Append VALUE to the end of shell variable VAR. 15362func_append () 15363{ 15364 eval "$1=\$$1\$2" 15365} 15366 15367_LT_EOF 15368 ;; 15369 esac 15370 15371 15372 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 15373 || (rm -f "$cfgfile"; exit 1) 15374 15375 mv -f "$cfgfile" "$ofile" || 15376 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 15377 chmod +x "$ofile" 15378 15379 ;; 15380 15381 esac 15382done # for ac_tag 15383 15384 15385as_fn_exit 0 15386_ACEOF 15387ac_clean_files=$ac_clean_files_save 15388 15389test $ac_write_fail = 0 || 15390 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 15391 15392 15393# configure is writing to config.log, and then calls config.status. 15394# config.status does its own redirection, appending to config.log. 15395# Unfortunately, on DOS this fails, as config.log is still kept open 15396# by configure, so config.status won't be able to write to it; its 15397# output is simply discarded. So we exec the FD to /dev/null, 15398# effectively closing config.log, so it can be properly (re)opened and 15399# appended to by config.status. When coming back to configure, we 15400# need to make the FD available again. 15401if test "$no_create" != yes; then 15402 ac_cs_success=: 15403 ac_config_status_args= 15404 test "$silent" = yes && 15405 ac_config_status_args="$ac_config_status_args --quiet" 15406 exec 5>/dev/null 15407 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15408 exec 5>>config.log 15409 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15410 # would make configure fail if this is the last instruction. 15411 $ac_cs_success || as_fn_exit $? 15412fi 15413if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15415$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15416fi 15417 15418