1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.64 for GNU Atomic Library 1.0. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 7# Foundation, Inc. 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90case $0 in #(( 91 *[\\/]* ) as_myself=$0 ;; 92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 93for as_dir in $PATH 94do 95 IFS=$as_save_IFS 96 test -z "$as_dir" && as_dir=. 97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 98 done 99IFS=$as_save_IFS 100 101 ;; 102esac 103# We did not find ourselves, most probably we were run as `sh COMMAND' 104# in which case we are not to be found in the path. 105if test "x$as_myself" = x; then 106 as_myself=$0 107fi 108if test ! -f "$as_myself"; then 109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 110 exit 1 111fi 112 113# Unset variables that we do not need and which cause bugs (e.g. in 114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 115# suppresses any "Segmentation fault" message there. '((' could 116# trigger a bug in pdksh 5.2.14. 117for as_var in BASH_ENV ENV MAIL MAILPATH 118do eval test x\${$as_var+set} = xset \ 119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 120done 121PS1='$ ' 122PS2='> ' 123PS4='+ ' 124 125# NLS nuisances. 126LC_ALL=C 127export LC_ALL 128LANGUAGE=C 129export LANGUAGE 130 131# CDPATH. 132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 133 134if test "x$CONFIG_SHELL" = x; then 135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 136 emulate sh 137 NULLCMD=: 138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 139 # is contrary to our usage. Disable this feature. 140 alias -g '\${1+\"\$@\"}'='\"\$@\"' 141 setopt NO_GLOB_SUBST 142else 143 case \`(set -o) 2>/dev/null\` in #( 144 *posix*) : 145 set -o posix ;; #( 146 *) : 147 ;; 148esac 149fi 150" 151 as_required="as_fn_return () { (exit \$1); } 152as_fn_success () { as_fn_return 0; } 153as_fn_failure () { as_fn_return 1; } 154as_fn_ret_success () { return 0; } 155as_fn_ret_failure () { return 1; } 156 157exitcode=0 158as_fn_success || { exitcode=1; echo as_fn_success failed.; } 159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 163 164else 165 exitcode=1; echo positional parameters were not saved. 166fi 167test x\$exitcode = x0 || exit 1" 168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 172 173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 177 PATH=/empty FPATH=/empty; export PATH FPATH 178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 180test \$(( 1 + 1 )) = 2 || exit 1" 181 if (eval "$as_required") 2>/dev/null; then : 182 as_have_required=yes 183else 184 as_have_required=no 185fi 186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 187 188else 189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 190as_found=false 191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 192do 193 IFS=$as_save_IFS 194 test -z "$as_dir" && as_dir=. 195 as_found=: 196 case $as_dir in #( 197 /*) 198 for as_base in sh bash ksh sh5; do 199 # Try only shells that exist, to save several forks. 200 as_shell=$as_dir/$as_base 201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 203 CONFIG_SHELL=$as_shell as_have_required=yes 204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 205 break 2 206fi 207fi 208 done;; 209 esac 210 as_found=false 211done 212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 214 CONFIG_SHELL=$SHELL as_have_required=yes 215fi; } 216IFS=$as_save_IFS 217 218 219 if test "x$CONFIG_SHELL" != x; then : 220 # We cannot yet assume a decent shell, so we have to provide a 221 # neutralization value for shells without unset; and this also 222 # works around shells that cannot unset nonexistent variables. 223 BASH_ENV=/dev/null 224 ENV=/dev/null 225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 226 export CONFIG_SHELL 227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 228fi 229 230 if test x$as_have_required = xno; then : 231 $as_echo "$0: This script requires a shell more modern than all" 232 $as_echo "$0: the shells that I found on your system." 233 if test x${ZSH_VERSION+set} = xset ; then 234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 235 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 236 else 237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 238$0: including any error possibly output before this 239$0: message. Then install a modern shell, or manually run 240$0: the script under such a shell if you do have one." 241 fi 242 exit 1 243fi 244fi 245fi 246SHELL=${CONFIG_SHELL-/bin/sh} 247export SHELL 248# Unset more variables known to interfere with behavior of common tools. 249CLICOLOR_FORCE= GREP_OPTIONS= 250unset CLICOLOR_FORCE GREP_OPTIONS 251 252## --------------------- ## 253## M4sh Shell Functions. ## 254## --------------------- ## 255# as_fn_unset VAR 256# --------------- 257# Portably unset VAR. 258as_fn_unset () 259{ 260 { eval $1=; unset $1;} 261} 262as_unset=as_fn_unset 263 264# as_fn_set_status STATUS 265# ----------------------- 266# Set $? to STATUS, without forking. 267as_fn_set_status () 268{ 269 return $1 270} # as_fn_set_status 271 272# as_fn_exit STATUS 273# ----------------- 274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 275as_fn_exit () 276{ 277 set +e 278 as_fn_set_status $1 279 exit $1 280} # as_fn_exit 281 282# as_fn_mkdir_p 283# ------------- 284# Create "$as_dir" as a directory, including parents if necessary. 285as_fn_mkdir_p () 286{ 287 288 case $as_dir in #( 289 -*) as_dir=./$as_dir;; 290 esac 291 test -d "$as_dir" || eval $as_mkdir_p || { 292 as_dirs= 293 while :; do 294 case $as_dir in #( 295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 296 *) as_qdir=$as_dir;; 297 esac 298 as_dirs="'$as_qdir' $as_dirs" 299 as_dir=`$as_dirname -- "$as_dir" || 300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 301 X"$as_dir" : 'X\(//\)[^/]' \| \ 302 X"$as_dir" : 'X\(//\)$' \| \ 303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 304$as_echo X"$as_dir" | 305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 306 s//\1/ 307 q 308 } 309 /^X\(\/\/\)[^/].*/{ 310 s//\1/ 311 q 312 } 313 /^X\(\/\/\)$/{ 314 s//\1/ 315 q 316 } 317 /^X\(\/\).*/{ 318 s//\1/ 319 q 320 } 321 s/.*/./; q'` 322 test -d "$as_dir" && break 323 done 324 test -z "$as_dirs" || eval "mkdir $as_dirs" 325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 326 327 328} # as_fn_mkdir_p 329# as_fn_append VAR VALUE 330# ---------------------- 331# Append the text in VALUE to the end of the definition contained in VAR. Take 332# advantage of any shell optimizations that allow amortized linear growth over 333# repeated appends, instead of the typical quadratic growth present in naive 334# implementations. 335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 336 eval 'as_fn_append () 337 { 338 eval $1+=\$2 339 }' 340else 341 as_fn_append () 342 { 343 eval $1=\$$1\$2 344 } 345fi # as_fn_append 346 347# as_fn_arith ARG... 348# ------------------ 349# Perform arithmetic evaluation on the ARGs, and store the result in the 350# global $as_val. Take advantage of shells that can avoid forks. The arguments 351# must be portable across $(()) and expr. 352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 353 eval 'as_fn_arith () 354 { 355 as_val=$(( $* )) 356 }' 357else 358 as_fn_arith () 359 { 360 as_val=`expr "$@" || test $? -eq 1` 361 } 362fi # as_fn_arith 363 364 365# as_fn_error ERROR [LINENO LOG_FD] 366# --------------------------------- 367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 369# script with status $?, using 1 if that was 0. 370as_fn_error () 371{ 372 as_status=$?; test $as_status -eq 0 && as_status=1 373 if test "$3"; then 374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 376 fi 377 $as_echo "$as_me: error: $1" >&2 378 as_fn_exit $as_status 379} # as_fn_error 380 381if expr a : '\(a\)' >/dev/null 2>&1 && 382 test "X`expr 00001 : '.*\(...\)'`" = X001; then 383 as_expr=expr 384else 385 as_expr=false 386fi 387 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 389 as_basename=basename 390else 391 as_basename=false 392fi 393 394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 395 as_dirname=dirname 396else 397 as_dirname=false 398fi 399 400as_me=`$as_basename -- "$0" || 401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 402 X"$0" : 'X\(//\)$' \| \ 403 X"$0" : 'X\(/\)' \| . 2>/dev/null || 404$as_echo X/"$0" | 405 sed '/^.*\/\([^/][^/]*\)\/*$/{ 406 s//\1/ 407 q 408 } 409 /^X\/\(\/\/\)$/{ 410 s//\1/ 411 q 412 } 413 /^X\/\(\/\).*/{ 414 s//\1/ 415 q 416 } 417 s/.*/./; q'` 418 419# Avoid depending upon Character Ranges. 420as_cr_letters='abcdefghijklmnopqrstuvwxyz' 421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 422as_cr_Letters=$as_cr_letters$as_cr_LETTERS 423as_cr_digits='0123456789' 424as_cr_alnum=$as_cr_Letters$as_cr_digits 425 426 427 as_lineno_1=$LINENO as_lineno_1a=$LINENO 428 as_lineno_2=$LINENO as_lineno_2a=$LINENO 429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 432 sed -n ' 433 p 434 /[$]LINENO/= 435 ' <$as_myself | 436 sed ' 437 s/[$]LINENO.*/&-/ 438 t lineno 439 b 440 :lineno 441 N 442 :loop 443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 444 t loop 445 s/-\n.*// 446 ' >$as_me.lineno && 447 chmod +x "$as_me.lineno" || 448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 449 450 # Don't try to exec as it changes $[0], causing all sort of problems 451 # (the dirname of $[0] is not the place where we might find the 452 # original and so on. Autoconf is especially sensitive to this). 453 . "./$as_me.lineno" 454 # Exit status is that of the last command. 455 exit 456} 457 458ECHO_C= ECHO_N= ECHO_T= 459case `echo -n x` in #((((( 460-n*) 461 case `echo 'xy\c'` in 462 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 463 xy) ECHO_C='\c';; 464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 465 ECHO_T=' ';; 466 esac;; 467*) 468 ECHO_N='-n';; 469esac 470 471rm -f conf$$ conf$$.exe conf$$.file 472if test -d conf$$.dir; then 473 rm -f conf$$.dir/conf$$.file 474else 475 rm -f conf$$.dir 476 mkdir conf$$.dir 2>/dev/null 477fi 478if (echo >conf$$.file) 2>/dev/null; then 479 if ln -s conf$$.file conf$$ 2>/dev/null; then 480 as_ln_s='ln -s' 481 # ... but there are two gotchas: 482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 484 # In both cases, we have to default to `cp -p'. 485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 486 as_ln_s='cp -p' 487 elif ln conf$$.file conf$$ 2>/dev/null; then 488 as_ln_s=ln 489 else 490 as_ln_s='cp -p' 491 fi 492else 493 as_ln_s='cp -p' 494fi 495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 496rmdir conf$$.dir 2>/dev/null 497 498if mkdir -p . 2>/dev/null; then 499 as_mkdir_p='mkdir -p "$as_dir"' 500else 501 test -d ./-p && rmdir ./-p 502 as_mkdir_p=false 503fi 504 505if test -x / >/dev/null 2>&1; then 506 as_test_x='test -x' 507else 508 if ls -dL / >/dev/null 2>&1; then 509 as_ls_L_option=L 510 else 511 as_ls_L_option= 512 fi 513 as_test_x=' 514 eval sh -c '\'' 515 if test -d "$1"; then 516 test -d "$1/."; 517 else 518 case $1 in #( 519 -*)set "./$1";; 520 esac; 521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 522 ???[sx]*):;;*)false;;esac;fi 523 '\'' sh 524 ' 525fi 526as_executable_p=$as_test_x 527 528# Sed expression to map a string onto a valid CPP name. 529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 530 531# Sed expression to map a string onto a valid variable name. 532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 533 534SHELL=${CONFIG_SHELL-/bin/sh} 535 536 537exec 7<&0 </dev/null 6>&1 538 539# Name of the host. 540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 541# so uname gets run too. 542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 543 544# 545# Initializations. 546# 547ac_default_prefix=/usr/local 548ac_clean_files= 549ac_config_libobj_dir=. 550LIBOBJS= 551cross_compiling=no 552subdirs= 553MFLAGS= 554MAKEFLAGS= 555 556# Identity of this package. 557PACKAGE_NAME='GNU Atomic Library' 558PACKAGE_TARNAME='libatomic' 559PACKAGE_VERSION='1.0' 560PACKAGE_STRING='GNU Atomic Library 1.0' 561PACKAGE_BUGREPORT='' 562PACKAGE_URL='http://www.gnu.org/software/libatomic/' 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 604ARCH_X86_64_FALSE 605ARCH_X86_64_TRUE 606ARCH_I386_FALSE 607ARCH_I386_TRUE 608ARCH_ARM_LINUX_FALSE 609ARCH_ARM_LINUX_TRUE 610HAVE_IFUNC_FALSE 611HAVE_IFUNC_TRUE 612SIZES 613XLDFLAGS 614XCFLAGS 615config_path 616LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE 617LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE 618LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE 619LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE 620LIBAT_BUILD_VERSIONED_SHLIB_FALSE 621LIBAT_BUILD_VERSIONED_SHLIB_TRUE 622OPT_LDFLAGS 623SECTION_LDFLAGS 624libtool_VERSION 625MAINT 626MAINTAINER_MODE_FALSE 627MAINTAINER_MODE_TRUE 628enable_static 629enable_shared 630lt_host_flags 631CPP 632OTOOL64 633OTOOL 634LIPO 635NMEDIT 636DSYMUTIL 637OBJDUMP 638LN_S 639ac_ct_DUMPBIN 640DUMPBIN 641LD 642FGREP 643EGREP 644GREP 645SED 646LIBTOOL 647PERL 648RANLIB 649NM 650AR 651am__fastdepCCAS_FALSE 652am__fastdepCCAS_TRUE 653CCASDEPMODE 654CCASFLAGS 655CCAS 656am__fastdepCC_FALSE 657am__fastdepCC_TRUE 658CCDEPMODE 659am__nodep 660AMDEPBACKSLASH 661AMDEP_FALSE 662AMDEP_TRUE 663am__quote 664am__include 665DEPDIR 666OBJEXT 667EXEEXT 668ac_ct_CC 669CPPFLAGS 670LDFLAGS 671CFLAGS 672CC 673toolexeclibdir 674toolexecdir 675multi_basedir 676am__untar 677am__tar 678AMTAR 679am__leading_dot 680SET_MAKE 681AWK 682mkdir_p 683MKDIR_P 684INSTALL_STRIP_PROGRAM 685STRIP 686install_sh 687MAKEINFO 688AUTOHEADER 689AUTOMAKE 690AUTOCONF 691ACLOCAL 692VERSION 693PACKAGE 694CYGPATH_W 695am__isrc 696INSTALL_DATA 697INSTALL_SCRIPT 698INSTALL_PROGRAM 699target_os 700target_vendor 701target_cpu 702target 703host_os 704host_vendor 705host_cpu 706host 707build_os 708build_vendor 709build_cpu 710build 711GENINSRC_FALSE 712GENINSRC_TRUE 713target_alias 714host_alias 715build_alias 716LIBS 717ECHO_T 718ECHO_N 719ECHO_C 720DEFS 721mandir 722localedir 723libdir 724psdir 725pdfdir 726dvidir 727htmldir 728infodir 729docdir 730oldincludedir 731includedir 732localstatedir 733sharedstatedir 734sysconfdir 735datadir 736datarootdir 737libexecdir 738sbindir 739bindir 740program_transform_name 741prefix 742exec_prefix 743PACKAGE_URL 744PACKAGE_BUGREPORT 745PACKAGE_STRING 746PACKAGE_VERSION 747PACKAGE_TARNAME 748PACKAGE_NAME 749PATH_SEPARATOR 750SHELL' 751ac_subst_files='' 752ac_user_opts=' 753enable_option_checking 754enable_version_specific_runtime_libs 755enable_generated_files_in_srcdir 756enable_multilib 757enable_dependency_tracking 758enable_shared 759enable_static 760with_pic 761enable_fast_install 762with_gnu_ld 763enable_libtool_lock 764enable_maintainer_mode 765enable_symvers 766' 767 ac_precious_vars='build_alias 768host_alias 769target_alias 770CPP 771CPPFLAGS' 772 773 774# Initialize some variables set by options. 775ac_init_help= 776ac_init_version=false 777ac_unrecognized_opts= 778ac_unrecognized_sep= 779# The variables have the same names as the options, with 780# dashes changed to underlines. 781cache_file=/dev/null 782exec_prefix=NONE 783no_create= 784no_recursion= 785prefix=NONE 786program_prefix=NONE 787program_suffix=NONE 788program_transform_name=s,x,x, 789silent= 790site= 791srcdir= 792verbose= 793x_includes=NONE 794x_libraries=NONE 795 796# Installation directory options. 797# These are left unexpanded so users can "make install exec_prefix=/foo" 798# and all the variables that are supposed to be based on exec_prefix 799# by default will actually change. 800# Use braces instead of parens because sh, perl, etc. also accept them. 801# (The list follows the same order as the GNU Coding Standards.) 802bindir='${exec_prefix}/bin' 803sbindir='${exec_prefix}/sbin' 804libexecdir='${exec_prefix}/libexec' 805datarootdir='${prefix}/share' 806datadir='${datarootdir}' 807sysconfdir='${prefix}/etc' 808sharedstatedir='${prefix}/com' 809localstatedir='${prefix}/var' 810includedir='${prefix}/include' 811oldincludedir='/usr/include' 812docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 813infodir='${datarootdir}/info' 814htmldir='${docdir}' 815dvidir='${docdir}' 816pdfdir='${docdir}' 817psdir='${docdir}' 818libdir='${exec_prefix}/lib' 819localedir='${datarootdir}/locale' 820mandir='${datarootdir}/man' 821 822ac_prev= 823ac_dashdash= 824for ac_option 825do 826 # If the previous option needs an argument, assign it. 827 if test -n "$ac_prev"; then 828 eval $ac_prev=\$ac_option 829 ac_prev= 830 continue 831 fi 832 833 case $ac_option in 834 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 835 *) ac_optarg=yes ;; 836 esac 837 838 # Accept the important Cygnus configure options, so we can diagnose typos. 839 840 case $ac_dashdash$ac_option in 841 --) 842 ac_dashdash=yes ;; 843 844 -bindir | --bindir | --bindi | --bind | --bin | --bi) 845 ac_prev=bindir ;; 846 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 847 bindir=$ac_optarg ;; 848 849 -build | --build | --buil | --bui | --bu) 850 ac_prev=build_alias ;; 851 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 852 build_alias=$ac_optarg ;; 853 854 -cache-file | --cache-file | --cache-fil | --cache-fi \ 855 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 856 ac_prev=cache_file ;; 857 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 858 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 859 cache_file=$ac_optarg ;; 860 861 --config-cache | -C) 862 cache_file=config.cache ;; 863 864 -datadir | --datadir | --datadi | --datad) 865 ac_prev=datadir ;; 866 -datadir=* | --datadir=* | --datadi=* | --datad=*) 867 datadir=$ac_optarg ;; 868 869 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 870 | --dataroo | --dataro | --datar) 871 ac_prev=datarootdir ;; 872 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 873 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 874 datarootdir=$ac_optarg ;; 875 876 -disable-* | --disable-*) 877 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 878 # Reject names that are not valid shell variable names. 879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 880 as_fn_error "invalid feature name: $ac_useropt" 881 ac_useropt_orig=$ac_useropt 882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 883 case $ac_user_opts in 884 *" 885"enable_$ac_useropt" 886"*) ;; 887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 888 ac_unrecognized_sep=', ';; 889 esac 890 eval enable_$ac_useropt=no ;; 891 892 -docdir | --docdir | --docdi | --doc | --do) 893 ac_prev=docdir ;; 894 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 895 docdir=$ac_optarg ;; 896 897 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 898 ac_prev=dvidir ;; 899 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 900 dvidir=$ac_optarg ;; 901 902 -enable-* | --enable-*) 903 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 904 # Reject names that are not valid shell variable names. 905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 906 as_fn_error "invalid feature name: $ac_useropt" 907 ac_useropt_orig=$ac_useropt 908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 909 case $ac_user_opts in 910 *" 911"enable_$ac_useropt" 912"*) ;; 913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 914 ac_unrecognized_sep=', ';; 915 esac 916 eval enable_$ac_useropt=\$ac_optarg ;; 917 918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 920 | --exec | --exe | --ex) 921 ac_prev=exec_prefix ;; 922 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 923 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 924 | --exec=* | --exe=* | --ex=*) 925 exec_prefix=$ac_optarg ;; 926 927 -gas | --gas | --ga | --g) 928 # Obsolete; use --with-gas. 929 with_gas=yes ;; 930 931 -help | --help | --hel | --he | -h) 932 ac_init_help=long ;; 933 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 934 ac_init_help=recursive ;; 935 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 936 ac_init_help=short ;; 937 938 -host | --host | --hos | --ho) 939 ac_prev=host_alias ;; 940 -host=* | --host=* | --hos=* | --ho=*) 941 host_alias=$ac_optarg ;; 942 943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 944 ac_prev=htmldir ;; 945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 946 | --ht=*) 947 htmldir=$ac_optarg ;; 948 949 -includedir | --includedir | --includedi | --included | --include \ 950 | --includ | --inclu | --incl | --inc) 951 ac_prev=includedir ;; 952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 953 | --includ=* | --inclu=* | --incl=* | --inc=*) 954 includedir=$ac_optarg ;; 955 956 -infodir | --infodir | --infodi | --infod | --info | --inf) 957 ac_prev=infodir ;; 958 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 959 infodir=$ac_optarg ;; 960 961 -libdir | --libdir | --libdi | --libd) 962 ac_prev=libdir ;; 963 -libdir=* | --libdir=* | --libdi=* | --libd=*) 964 libdir=$ac_optarg ;; 965 966 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 967 | --libexe | --libex | --libe) 968 ac_prev=libexecdir ;; 969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 970 | --libexe=* | --libex=* | --libe=*) 971 libexecdir=$ac_optarg ;; 972 973 -localedir | --localedir | --localedi | --localed | --locale) 974 ac_prev=localedir ;; 975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 976 localedir=$ac_optarg ;; 977 978 -localstatedir | --localstatedir | --localstatedi | --localstated \ 979 | --localstate | --localstat | --localsta | --localst | --locals) 980 ac_prev=localstatedir ;; 981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 983 localstatedir=$ac_optarg ;; 984 985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 986 ac_prev=mandir ;; 987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 988 mandir=$ac_optarg ;; 989 990 -nfp | --nfp | --nf) 991 # Obsolete; use --without-fp. 992 with_fp=no ;; 993 994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 995 | --no-cr | --no-c | -n) 996 no_create=yes ;; 997 998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1000 no_recursion=yes ;; 1001 1002 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1003 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1004 | --oldin | --oldi | --old | --ol | --o) 1005 ac_prev=oldincludedir ;; 1006 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1007 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1008 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1009 oldincludedir=$ac_optarg ;; 1010 1011 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1012 ac_prev=prefix ;; 1013 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1014 prefix=$ac_optarg ;; 1015 1016 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1017 | --program-pre | --program-pr | --program-p) 1018 ac_prev=program_prefix ;; 1019 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1020 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1021 program_prefix=$ac_optarg ;; 1022 1023 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1024 | --program-suf | --program-su | --program-s) 1025 ac_prev=program_suffix ;; 1026 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1027 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1028 program_suffix=$ac_optarg ;; 1029 1030 -program-transform-name | --program-transform-name \ 1031 | --program-transform-nam | --program-transform-na \ 1032 | --program-transform-n | --program-transform- \ 1033 | --program-transform | --program-transfor \ 1034 | --program-transfo | --program-transf \ 1035 | --program-trans | --program-tran \ 1036 | --progr-tra | --program-tr | --program-t) 1037 ac_prev=program_transform_name ;; 1038 -program-transform-name=* | --program-transform-name=* \ 1039 | --program-transform-nam=* | --program-transform-na=* \ 1040 | --program-transform-n=* | --program-transform-=* \ 1041 | --program-transform=* | --program-transfor=* \ 1042 | --program-transfo=* | --program-transf=* \ 1043 | --program-trans=* | --program-tran=* \ 1044 | --progr-tra=* | --program-tr=* | --program-t=*) 1045 program_transform_name=$ac_optarg ;; 1046 1047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1048 ac_prev=pdfdir ;; 1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1050 pdfdir=$ac_optarg ;; 1051 1052 -psdir | --psdir | --psdi | --psd | --ps) 1053 ac_prev=psdir ;; 1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1055 psdir=$ac_optarg ;; 1056 1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1058 | -silent | --silent | --silen | --sile | --sil) 1059 silent=yes ;; 1060 1061 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1062 ac_prev=sbindir ;; 1063 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1064 | --sbi=* | --sb=*) 1065 sbindir=$ac_optarg ;; 1066 1067 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1068 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1069 | --sharedst | --shareds | --shared | --share | --shar \ 1070 | --sha | --sh) 1071 ac_prev=sharedstatedir ;; 1072 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1073 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1074 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1075 | --sha=* | --sh=*) 1076 sharedstatedir=$ac_optarg ;; 1077 1078 -site | --site | --sit) 1079 ac_prev=site ;; 1080 -site=* | --site=* | --sit=*) 1081 site=$ac_optarg ;; 1082 1083 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1084 ac_prev=srcdir ;; 1085 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1086 srcdir=$ac_optarg ;; 1087 1088 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1089 | --syscon | --sysco | --sysc | --sys | --sy) 1090 ac_prev=sysconfdir ;; 1091 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1092 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1093 sysconfdir=$ac_optarg ;; 1094 1095 -target | --target | --targe | --targ | --tar | --ta | --t) 1096 ac_prev=target_alias ;; 1097 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1098 target_alias=$ac_optarg ;; 1099 1100 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1101 verbose=yes ;; 1102 1103 -version | --version | --versio | --versi | --vers | -V) 1104 ac_init_version=: ;; 1105 1106 -with-* | --with-*) 1107 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1108 # Reject names that are not valid shell variable names. 1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1110 as_fn_error "invalid package name: $ac_useropt" 1111 ac_useropt_orig=$ac_useropt 1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1113 case $ac_user_opts in 1114 *" 1115"with_$ac_useropt" 1116"*) ;; 1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1118 ac_unrecognized_sep=', ';; 1119 esac 1120 eval with_$ac_useropt=\$ac_optarg ;; 1121 1122 -without-* | --without-*) 1123 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1124 # Reject names that are not valid shell variable names. 1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1126 as_fn_error "invalid package name: $ac_useropt" 1127 ac_useropt_orig=$ac_useropt 1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1129 case $ac_user_opts in 1130 *" 1131"with_$ac_useropt" 1132"*) ;; 1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1134 ac_unrecognized_sep=', ';; 1135 esac 1136 eval with_$ac_useropt=no ;; 1137 1138 --x) 1139 # Obsolete; use --with-x. 1140 with_x=yes ;; 1141 1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1143 | --x-incl | --x-inc | --x-in | --x-i) 1144 ac_prev=x_includes ;; 1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1147 x_includes=$ac_optarg ;; 1148 1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1151 ac_prev=x_libraries ;; 1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1154 x_libraries=$ac_optarg ;; 1155 1156 -*) as_fn_error "unrecognized option: \`$ac_option' 1157Try \`$0 --help' for more information." 1158 ;; 1159 1160 *=*) 1161 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1162 # Reject names that are not valid shell variable names. 1163 case $ac_envvar in #( 1164 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1165 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1166 esac 1167 eval $ac_envvar=\$ac_optarg 1168 export $ac_envvar ;; 1169 1170 *) 1171 # FIXME: should be removed in autoconf 3.0. 1172 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1174 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1175 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1176 ;; 1177 1178 esac 1179done 1180 1181if test -n "$ac_prev"; then 1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1183 as_fn_error "missing argument to $ac_option" 1184fi 1185 1186if test -n "$ac_unrecognized_opts"; then 1187 case $enable_option_checking in 1188 no) ;; 1189 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1190 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1191 esac 1192fi 1193 1194# Check all directory arguments for consistency. 1195for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1196 datadir sysconfdir sharedstatedir localstatedir includedir \ 1197 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1198 libdir localedir mandir 1199do 1200 eval ac_val=\$$ac_var 1201 # Remove trailing slashes. 1202 case $ac_val in 1203 */ ) 1204 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1205 eval $ac_var=\$ac_val;; 1206 esac 1207 # Be sure to have absolute directory names. 1208 case $ac_val in 1209 [\\/$]* | ?:[\\/]* ) continue;; 1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1211 esac 1212 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1213done 1214 1215# There might be people who depend on the old broken behavior: `$host' 1216# used to hold the argument of --host etc. 1217# FIXME: To remove some day. 1218build=$build_alias 1219host=$host_alias 1220target=$target_alias 1221 1222# FIXME: To remove some day. 1223if test "x$host_alias" != x; then 1224 if test "x$build_alias" = x; then 1225 cross_compiling=maybe 1226 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1227 If a cross compiler is detected then cross compile mode will be used." >&2 1228 elif test "x$build_alias" != "x$host_alias"; then 1229 cross_compiling=yes 1230 fi 1231fi 1232 1233ac_tool_prefix= 1234test -n "$host_alias" && ac_tool_prefix=$host_alias- 1235 1236test "$silent" = yes && exec 6>/dev/null 1237 1238 1239ac_pwd=`pwd` && test -n "$ac_pwd" && 1240ac_ls_di=`ls -di .` && 1241ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1242 as_fn_error "working directory cannot be determined" 1243test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1244 as_fn_error "pwd does not report name of working directory" 1245 1246 1247# Find the source files, if location was not specified. 1248if test -z "$srcdir"; then 1249 ac_srcdir_defaulted=yes 1250 # Try the directory containing this script, then the parent directory. 1251 ac_confdir=`$as_dirname -- "$as_myself" || 1252$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1253 X"$as_myself" : 'X\(//\)[^/]' \| \ 1254 X"$as_myself" : 'X\(//\)$' \| \ 1255 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1256$as_echo X"$as_myself" | 1257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1258 s//\1/ 1259 q 1260 } 1261 /^X\(\/\/\)[^/].*/{ 1262 s//\1/ 1263 q 1264 } 1265 /^X\(\/\/\)$/{ 1266 s//\1/ 1267 q 1268 } 1269 /^X\(\/\).*/{ 1270 s//\1/ 1271 q 1272 } 1273 s/.*/./; q'` 1274 srcdir=$ac_confdir 1275 if test ! -r "$srcdir/$ac_unique_file"; then 1276 srcdir=.. 1277 fi 1278else 1279 ac_srcdir_defaulted=no 1280fi 1281if test ! -r "$srcdir/$ac_unique_file"; then 1282 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1283 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1284fi 1285ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1286ac_abs_confdir=`( 1287 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1288 pwd)` 1289# When building in place, set srcdir=. 1290if test "$ac_abs_confdir" = "$ac_pwd"; then 1291 srcdir=. 1292fi 1293# Remove unnecessary trailing slashes from srcdir. 1294# Double slashes in file names in object file debugging info 1295# mess up M-x gdb in Emacs. 1296case $srcdir in 1297*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1298esac 1299for ac_var in $ac_precious_vars; do 1300 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1301 eval ac_env_${ac_var}_value=\$${ac_var} 1302 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1303 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1304done 1305 1306# 1307# Report the --help message. 1308# 1309if test "$ac_init_help" = "long"; then 1310 # Omit some internal or obsolete options to make the list less imposing. 1311 # This message is too long to be a string in the A/UX 3.1 sh. 1312 cat <<_ACEOF 1313\`configure' configures GNU Atomic Library 1.0 to adapt to many kinds of systems. 1314 1315Usage: $0 [OPTION]... [VAR=VALUE]... 1316 1317To assign environment variables (e.g., CC, CFLAGS...), specify them as 1318VAR=VALUE. See below for descriptions of some of the useful variables. 1319 1320Defaults for the options are specified in brackets. 1321 1322Configuration: 1323 -h, --help display this help and exit 1324 --help=short display options specific to this package 1325 --help=recursive display the short help of all the included packages 1326 -V, --version display version information and exit 1327 -q, --quiet, --silent do not print \`checking...' messages 1328 --cache-file=FILE cache test results in FILE [disabled] 1329 -C, --config-cache alias for \`--cache-file=config.cache' 1330 -n, --no-create do not create output files 1331 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1332 1333Installation directories: 1334 --prefix=PREFIX install architecture-independent files in PREFIX 1335 [$ac_default_prefix] 1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1337 [PREFIX] 1338 1339By default, \`make install' will install all the files in 1340\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1341an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1342for instance \`--prefix=\$HOME'. 1343 1344For better control, use the options below. 1345 1346Fine tuning of the installation directories: 1347 --bindir=DIR user executables [EPREFIX/bin] 1348 --sbindir=DIR system admin executables [EPREFIX/sbin] 1349 --libexecdir=DIR program executables [EPREFIX/libexec] 1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1353 --libdir=DIR object code libraries [EPREFIX/lib] 1354 --includedir=DIR C header files [PREFIX/include] 1355 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1358 --infodir=DIR info documentation [DATAROOTDIR/info] 1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1360 --mandir=DIR man documentation [DATAROOTDIR/man] 1361 --docdir=DIR documentation root [DATAROOTDIR/doc/libatomic] 1362 --htmldir=DIR html documentation [DOCDIR] 1363 --dvidir=DIR dvi documentation [DOCDIR] 1364 --pdfdir=DIR pdf documentation [DOCDIR] 1365 --psdir=DIR ps documentation [DOCDIR] 1366_ACEOF 1367 1368 cat <<\_ACEOF 1369 1370Program names: 1371 --program-prefix=PREFIX prepend PREFIX to installed program names 1372 --program-suffix=SUFFIX append SUFFIX to installed program names 1373 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1374 1375System types: 1376 --build=BUILD configure for building on BUILD [guessed] 1377 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1378 --target=TARGET configure for building compilers for TARGET [HOST] 1379_ACEOF 1380fi 1381 1382if test -n "$ac_init_help"; then 1383 case $ac_init_help in 1384 short | recursive ) echo "Configuration of GNU Atomic Library 1.0:";; 1385 esac 1386 cat <<\_ACEOF 1387 1388Optional Features: 1389 --disable-option-checking ignore unrecognized --enable/--with options 1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1392 --enable-version-specific-runtime-libs 1393 Specify that runtime libraries should be installed 1394 in a compiler-specific directory [default=no] 1395 --enable-generated-files-in-srcdir 1396 put copies of generated files in source dir intended 1397 for creating source tarballs for users without 1398 texinfo bison or flex. [default=no] 1399 --enable-multilib build many library versions (default) 1400 --disable-dependency-tracking speeds up one-time build 1401 --enable-dependency-tracking do not reject slow dependency extractors 1402 --enable-shared[=PKGS] build shared libraries [default=yes] 1403 --enable-static[=PKGS] build static libraries [default=yes] 1404 --enable-fast-install[=PKGS] 1405 optimize for fast installation [default=yes] 1406 --disable-libtool-lock avoid locking (might break parallel builds) 1407 --enable-maintainer-mode enable make rules and dependencies not useful 1408 (and sometimes confusing) to the casual installer 1409 --enable-symvers=STYLE enables symbol versioning of the shared library 1410 [default=yes] 1411 1412Optional Packages: 1413 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1414 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1415 --with-pic try to use only PIC/non-PIC objects [default=use 1416 both] 1417 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1418 1419Some influential environment variables: 1420 CC C compiler command 1421 CFLAGS C compiler flags 1422 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1423 nonstandard directory <lib dir> 1424 LIBS libraries to pass to the linker, e.g. -l<library> 1425 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1426 you have headers in a nonstandard directory <include dir> 1427 CCAS assembler compiler command (defaults to CC) 1428 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 1429 CPP C preprocessor 1430 1431Use these variables to override the choices made by `configure' or to help 1432it to find libraries and programs with nonstandard names/locations. 1433 1434Report bugs to the package provider. 1435GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>. 1436General help using GNU software: <http://www.gnu.org/gethelp/>. 1437_ACEOF 1438ac_status=$? 1439fi 1440 1441if test "$ac_init_help" = "recursive"; then 1442 # If there are subdirs, report their specific --help. 1443 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1444 test -d "$ac_dir" || 1445 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1446 continue 1447 ac_builddir=. 1448 1449case "$ac_dir" in 1450.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1451*) 1452 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1453 # A ".." for each directory in $ac_dir_suffix. 1454 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1455 case $ac_top_builddir_sub in 1456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1458 esac ;; 1459esac 1460ac_abs_top_builddir=$ac_pwd 1461ac_abs_builddir=$ac_pwd$ac_dir_suffix 1462# for backward compatibility: 1463ac_top_builddir=$ac_top_build_prefix 1464 1465case $srcdir in 1466 .) # We are building in place. 1467 ac_srcdir=. 1468 ac_top_srcdir=$ac_top_builddir_sub 1469 ac_abs_top_srcdir=$ac_pwd ;; 1470 [\\/]* | ?:[\\/]* ) # Absolute name. 1471 ac_srcdir=$srcdir$ac_dir_suffix; 1472 ac_top_srcdir=$srcdir 1473 ac_abs_top_srcdir=$srcdir ;; 1474 *) # Relative name. 1475 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1476 ac_top_srcdir=$ac_top_build_prefix$srcdir 1477 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1478esac 1479ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1480 1481 cd "$ac_dir" || { ac_status=$?; continue; } 1482 # Check for guested configure. 1483 if test -f "$ac_srcdir/configure.gnu"; then 1484 echo && 1485 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1486 elif test -f "$ac_srcdir/configure"; then 1487 echo && 1488 $SHELL "$ac_srcdir/configure" --help=recursive 1489 else 1490 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1491 fi || ac_status=$? 1492 cd "$ac_pwd" || { ac_status=$?; break; } 1493 done 1494fi 1495 1496test -n "$ac_init_help" && exit $ac_status 1497if $ac_init_version; then 1498 cat <<\_ACEOF 1499GNU Atomic Library configure 1.0 1500generated by GNU Autoconf 2.64 1501 1502Copyright (C) 2009 Free Software Foundation, Inc. 1503This configure script is free software; the Free Software Foundation 1504gives unlimited permission to copy, distribute and modify it. 1505_ACEOF 1506 exit 1507fi 1508 1509## ------------------------ ## 1510## Autoconf initialization. ## 1511## ------------------------ ## 1512 1513# ac_fn_c_try_compile LINENO 1514# -------------------------- 1515# Try to compile conftest.$ac_ext, and return whether this succeeded. 1516ac_fn_c_try_compile () 1517{ 1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1519 rm -f conftest.$ac_objext 1520 if { { ac_try="$ac_compile" 1521case "(($ac_try" in 1522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1523 *) ac_try_echo=$ac_try;; 1524esac 1525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1526$as_echo "$ac_try_echo"; } >&5 1527 (eval "$ac_compile") 2>conftest.err 1528 ac_status=$? 1529 if test -s conftest.err; then 1530 grep -v '^ *+' conftest.err >conftest.er1 1531 cat conftest.er1 >&5 1532 mv -f conftest.er1 conftest.err 1533 fi 1534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1535 test $ac_status = 0; } && { 1536 test -z "$ac_c_werror_flag" || 1537 test ! -s conftest.err 1538 } && test -s conftest.$ac_objext; then : 1539 ac_retval=0 1540else 1541 $as_echo "$as_me: failed program was:" >&5 1542sed 's/^/| /' conftest.$ac_ext >&5 1543 1544 ac_retval=1 1545fi 1546 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1547 return $ac_retval 1548 1549} # ac_fn_c_try_compile 1550 1551# ac_fn_c_try_link LINENO 1552# ----------------------- 1553# Try to link conftest.$ac_ext, and return whether this succeeded. 1554ac_fn_c_try_link () 1555{ 1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1557 rm -f conftest.$ac_objext conftest$ac_exeext 1558 if { { ac_try="$ac_link" 1559case "(($ac_try" in 1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1561 *) ac_try_echo=$ac_try;; 1562esac 1563eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1564$as_echo "$ac_try_echo"; } >&5 1565 (eval "$ac_link") 2>conftest.err 1566 ac_status=$? 1567 if test -s conftest.err; then 1568 grep -v '^ *+' conftest.err >conftest.er1 1569 cat conftest.er1 >&5 1570 mv -f conftest.er1 conftest.err 1571 fi 1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1573 test $ac_status = 0; } && { 1574 test -z "$ac_c_werror_flag" || 1575 test ! -s conftest.err 1576 } && test -s conftest$ac_exeext && { 1577 test "$cross_compiling" = yes || 1578 $as_test_x conftest$ac_exeext 1579 }; then : 1580 ac_retval=0 1581else 1582 $as_echo "$as_me: failed program was:" >&5 1583sed 's/^/| /' conftest.$ac_ext >&5 1584 1585 ac_retval=1 1586fi 1587 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1588 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1589 # interfere with the next link command; also delete a directory that is 1590 # left behind by Apple's compiler. We do this before executing the actions. 1591 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1593 return $ac_retval 1594 1595} # ac_fn_c_try_link 1596 1597# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1598# ------------------------------------------------------- 1599# Tests whether HEADER exists and can be compiled using the include files in 1600# INCLUDES, setting the cache variable VAR accordingly. 1601ac_fn_c_check_header_compile () 1602{ 1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1605$as_echo_n "checking for $2... " >&6; } 1606if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1607 $as_echo_n "(cached) " >&6 1608else 1609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1610/* end confdefs.h. */ 1611$4 1612#include <$2> 1613_ACEOF 1614if ac_fn_c_try_compile "$LINENO"; then : 1615 eval "$3=yes" 1616else 1617 eval "$3=no" 1618fi 1619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1620fi 1621eval ac_res=\$$3 1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1623$as_echo "$ac_res" >&6; } 1624 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1625 1626} # ac_fn_c_check_header_compile 1627 1628# ac_fn_c_try_cpp LINENO 1629# ---------------------- 1630# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1631ac_fn_c_try_cpp () 1632{ 1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1634 if { { ac_try="$ac_cpp conftest.$ac_ext" 1635case "(($ac_try" in 1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1637 *) ac_try_echo=$ac_try;; 1638esac 1639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1640$as_echo "$ac_try_echo"; } >&5 1641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1642 ac_status=$? 1643 if test -s conftest.err; then 1644 grep -v '^ *+' conftest.err >conftest.er1 1645 cat conftest.er1 >&5 1646 mv -f conftest.er1 conftest.err 1647 fi 1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1649 test $ac_status = 0; } >/dev/null && { 1650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1651 test ! -s conftest.err 1652 }; then : 1653 ac_retval=0 1654else 1655 $as_echo "$as_me: failed program was:" >&5 1656sed 's/^/| /' conftest.$ac_ext >&5 1657 1658 ac_retval=1 1659fi 1660 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1661 return $ac_retval 1662 1663} # ac_fn_c_try_cpp 1664 1665# ac_fn_c_try_run LINENO 1666# ---------------------- 1667# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1668# that executables *can* be run. 1669ac_fn_c_try_run () 1670{ 1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1672 if { { ac_try="$ac_link" 1673case "(($ac_try" in 1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1675 *) ac_try_echo=$ac_try;; 1676esac 1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1678$as_echo "$ac_try_echo"; } >&5 1679 (eval "$ac_link") 2>&5 1680 ac_status=$? 1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1683 { { case "(($ac_try" in 1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1685 *) ac_try_echo=$ac_try;; 1686esac 1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1688$as_echo "$ac_try_echo"; } >&5 1689 (eval "$ac_try") 2>&5 1690 ac_status=$? 1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1692 test $ac_status = 0; }; }; then : 1693 ac_retval=0 1694else 1695 $as_echo "$as_me: program exited with status $ac_status" >&5 1696 $as_echo "$as_me: failed program was:" >&5 1697sed 's/^/| /' conftest.$ac_ext >&5 1698 1699 ac_retval=$ac_status 1700fi 1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1703 return $ac_retval 1704 1705} # ac_fn_c_try_run 1706 1707# ac_fn_c_check_func LINENO FUNC VAR 1708# ---------------------------------- 1709# Tests whether FUNC exists, setting the cache variable VAR accordingly 1710ac_fn_c_check_func () 1711{ 1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1714$as_echo_n "checking for $2... " >&6; } 1715if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1716 $as_echo_n "(cached) " >&6 1717else 1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1719/* end confdefs.h. */ 1720/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1721 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1722#define $2 innocuous_$2 1723 1724/* System header to define __stub macros and hopefully few prototypes, 1725 which can conflict with char $2 (); below. 1726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1727 <limits.h> exists even on freestanding compilers. */ 1728 1729#ifdef __STDC__ 1730# include <limits.h> 1731#else 1732# include <assert.h> 1733#endif 1734 1735#undef $2 1736 1737/* Override any GCC internal prototype to avoid an error. 1738 Use char because int might match the return type of a GCC 1739 builtin and then its argument prototype would still apply. */ 1740#ifdef __cplusplus 1741extern "C" 1742#endif 1743char $2 (); 1744/* The GNU C library defines this for functions which it implements 1745 to always fail with ENOSYS. Some functions are actually named 1746 something starting with __ and the normal name is an alias. */ 1747#if defined __stub_$2 || defined __stub___$2 1748choke me 1749#endif 1750 1751int 1752main () 1753{ 1754return $2 (); 1755 ; 1756 return 0; 1757} 1758_ACEOF 1759if ac_fn_c_try_link "$LINENO"; then : 1760 eval "$3=yes" 1761else 1762 eval "$3=no" 1763fi 1764rm -f core conftest.err conftest.$ac_objext \ 1765 conftest$ac_exeext conftest.$ac_ext 1766fi 1767eval ac_res=\$$3 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1769$as_echo "$ac_res" >&6; } 1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1771 1772} # ac_fn_c_check_func 1773 1774# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1775# ------------------------------------------- 1776# Tests whether TYPE exists after having included INCLUDES, setting cache 1777# variable VAR accordingly. 1778ac_fn_c_check_type () 1779{ 1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1782$as_echo_n "checking for $2... " >&6; } 1783if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1784 $as_echo_n "(cached) " >&6 1785else 1786 eval "$3=no" 1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1788/* end confdefs.h. */ 1789$4 1790int 1791main () 1792{ 1793if (sizeof ($2)) 1794 return 0; 1795 ; 1796 return 0; 1797} 1798_ACEOF 1799if ac_fn_c_try_compile "$LINENO"; then : 1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1801/* end confdefs.h. */ 1802$4 1803int 1804main () 1805{ 1806if (sizeof (($2))) 1807 return 0; 1808 ; 1809 return 0; 1810} 1811_ACEOF 1812if ac_fn_c_try_compile "$LINENO"; then : 1813 1814else 1815 eval "$3=yes" 1816fi 1817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1818fi 1819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1820fi 1821eval ac_res=\$$3 1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1823$as_echo "$ac_res" >&6; } 1824 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1825 1826} # ac_fn_c_check_type 1827 1828# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1829# -------------------------------------------- 1830# Tries to find the compile-time value of EXPR in a program that includes 1831# INCLUDES, setting VAR accordingly. Returns whether the value could be 1832# computed 1833ac_fn_c_compute_int () 1834{ 1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1836 if test "$cross_compiling" = yes; then 1837 # Depending upon the size, compute the lo and hi bounds. 1838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1839/* end confdefs.h. */ 1840$4 1841int 1842main () 1843{ 1844static int test_array [1 - 2 * !(($2) >= 0)]; 1845test_array [0] = 0 1846 1847 ; 1848 return 0; 1849} 1850_ACEOF 1851if ac_fn_c_try_compile "$LINENO"; then : 1852 ac_lo=0 ac_mid=0 1853 while :; do 1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1855/* end confdefs.h. */ 1856$4 1857int 1858main () 1859{ 1860static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1861test_array [0] = 0 1862 1863 ; 1864 return 0; 1865} 1866_ACEOF 1867if ac_fn_c_try_compile "$LINENO"; then : 1868 ac_hi=$ac_mid; break 1869else 1870 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1871 if test $ac_lo -le $ac_mid; then 1872 ac_lo= ac_hi= 1873 break 1874 fi 1875 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1876fi 1877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1878 done 1879else 1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1881/* end confdefs.h. */ 1882$4 1883int 1884main () 1885{ 1886static int test_array [1 - 2 * !(($2) < 0)]; 1887test_array [0] = 0 1888 1889 ; 1890 return 0; 1891} 1892_ACEOF 1893if ac_fn_c_try_compile "$LINENO"; then : 1894 ac_hi=-1 ac_mid=-1 1895 while :; do 1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1897/* end confdefs.h. */ 1898$4 1899int 1900main () 1901{ 1902static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1903test_array [0] = 0 1904 1905 ; 1906 return 0; 1907} 1908_ACEOF 1909if ac_fn_c_try_compile "$LINENO"; then : 1910 ac_lo=$ac_mid; break 1911else 1912 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1913 if test $ac_mid -le $ac_hi; then 1914 ac_lo= ac_hi= 1915 break 1916 fi 1917 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1918fi 1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1920 done 1921else 1922 ac_lo= ac_hi= 1923fi 1924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1925fi 1926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1927# Binary search between lo and hi bounds. 1928while test "x$ac_lo" != "x$ac_hi"; do 1929 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1931/* end confdefs.h. */ 1932$4 1933int 1934main () 1935{ 1936static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1937test_array [0] = 0 1938 1939 ; 1940 return 0; 1941} 1942_ACEOF 1943if ac_fn_c_try_compile "$LINENO"; then : 1944 ac_hi=$ac_mid 1945else 1946 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1947fi 1948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1949done 1950case $ac_lo in #(( 1951?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1952'') ac_retval=1 ;; 1953esac 1954 else 1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1956/* end confdefs.h. */ 1957$4 1958static long int longval () { return $2; } 1959static unsigned long int ulongval () { return $2; } 1960#include <stdio.h> 1961#include <stdlib.h> 1962int 1963main () 1964{ 1965 1966 FILE *f = fopen ("conftest.val", "w"); 1967 if (! f) 1968 return 1; 1969 if (($2) < 0) 1970 { 1971 long int i = longval (); 1972 if (i != ($2)) 1973 return 1; 1974 fprintf (f, "%ld", i); 1975 } 1976 else 1977 { 1978 unsigned long int i = ulongval (); 1979 if (i != ($2)) 1980 return 1; 1981 fprintf (f, "%lu", i); 1982 } 1983 /* Do not output a trailing newline, as this causes \r\n confusion 1984 on some platforms. */ 1985 return ferror (f) || fclose (f) != 0; 1986 1987 ; 1988 return 0; 1989} 1990_ACEOF 1991if ac_fn_c_try_run "$LINENO"; then : 1992 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 1993else 1994 ac_retval=1 1995fi 1996rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 1997 conftest.$ac_objext conftest.beam conftest.$ac_ext 1998rm -f conftest.val 1999 2000 fi 2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2002 return $ac_retval 2003 2004} # ac_fn_c_compute_int 2005 2006# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2007# ------------------------------------------------------- 2008# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2009# the include files in INCLUDES and setting the cache variable VAR 2010# accordingly. 2011ac_fn_c_check_header_mongrel () 2012{ 2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2014 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2016$as_echo_n "checking for $2... " >&6; } 2017if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2018 $as_echo_n "(cached) " >&6 2019fi 2020eval ac_res=\$$3 2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2022$as_echo "$ac_res" >&6; } 2023else 2024 # Is the header compilable? 2025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2026$as_echo_n "checking $2 usability... " >&6; } 2027cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2028/* end confdefs.h. */ 2029$4 2030#include <$2> 2031_ACEOF 2032if ac_fn_c_try_compile "$LINENO"; then : 2033 ac_header_compiler=yes 2034else 2035 ac_header_compiler=no 2036fi 2037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2039$as_echo "$ac_header_compiler" >&6; } 2040 2041# Is the header present? 2042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2043$as_echo_n "checking $2 presence... " >&6; } 2044cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2045/* end confdefs.h. */ 2046#include <$2> 2047_ACEOF 2048if ac_fn_c_try_cpp "$LINENO"; then : 2049 ac_header_preproc=yes 2050else 2051 ac_header_preproc=no 2052fi 2053rm -f conftest.err conftest.$ac_ext 2054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2055$as_echo "$ac_header_preproc" >&6; } 2056 2057# So? What about this header? 2058case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2059 yes:no: ) 2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2061$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2063$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2064 ;; 2065 no:yes:* ) 2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2067$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2069$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2071$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2073$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2075$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2076 ;; 2077esac 2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2079$as_echo_n "checking for $2... " >&6; } 2080if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2081 $as_echo_n "(cached) " >&6 2082else 2083 eval "$3=\$ac_header_compiler" 2084fi 2085eval ac_res=\$$3 2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2087$as_echo "$ac_res" >&6; } 2088fi 2089 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2090 2091} # ac_fn_c_check_header_mongrel 2092cat >config.log <<_ACEOF 2093This file contains any messages produced by compilers while 2094running configure, to aid debugging if configure makes a mistake. 2095 2096It was created by GNU Atomic Library $as_me 1.0, which was 2097generated by GNU Autoconf 2.64. Invocation command line was 2098 2099 $ $0 $@ 2100 2101_ACEOF 2102exec 5>>config.log 2103{ 2104cat <<_ASUNAME 2105## --------- ## 2106## Platform. ## 2107## --------- ## 2108 2109hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2110uname -m = `(uname -m) 2>/dev/null || echo unknown` 2111uname -r = `(uname -r) 2>/dev/null || echo unknown` 2112uname -s = `(uname -s) 2>/dev/null || echo unknown` 2113uname -v = `(uname -v) 2>/dev/null || echo unknown` 2114 2115/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2116/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2117 2118/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2119/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2120/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2121/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2122/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2123/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2124/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2125 2126_ASUNAME 2127 2128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2129for as_dir in $PATH 2130do 2131 IFS=$as_save_IFS 2132 test -z "$as_dir" && as_dir=. 2133 $as_echo "PATH: $as_dir" 2134 done 2135IFS=$as_save_IFS 2136 2137} >&5 2138 2139cat >&5 <<_ACEOF 2140 2141 2142## ----------- ## 2143## Core tests. ## 2144## ----------- ## 2145 2146_ACEOF 2147 2148 2149# Keep a trace of the command line. 2150# Strip out --no-create and --no-recursion so they do not pile up. 2151# Strip out --silent because we don't want to record it for future runs. 2152# Also quote any args containing shell meta-characters. 2153# Make two passes to allow for proper duplicate-argument suppression. 2154ac_configure_args= 2155ac_configure_args0= 2156ac_configure_args1= 2157ac_must_keep_next=false 2158for ac_pass in 1 2 2159do 2160 for ac_arg 2161 do 2162 case $ac_arg in 2163 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2165 | -silent | --silent | --silen | --sile | --sil) 2166 continue ;; 2167 *\'*) 2168 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2169 esac 2170 case $ac_pass in 2171 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2172 2) 2173 as_fn_append ac_configure_args1 " '$ac_arg'" 2174 if test $ac_must_keep_next = true; then 2175 ac_must_keep_next=false # Got value, back to normal. 2176 else 2177 case $ac_arg in 2178 *=* | --config-cache | -C | -disable-* | --disable-* \ 2179 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2180 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2181 | -with-* | --with-* | -without-* | --without-* | --x) 2182 case "$ac_configure_args0 " in 2183 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2184 esac 2185 ;; 2186 -* ) ac_must_keep_next=true ;; 2187 esac 2188 fi 2189 as_fn_append ac_configure_args " '$ac_arg'" 2190 ;; 2191 esac 2192 done 2193done 2194{ ac_configure_args0=; unset ac_configure_args0;} 2195{ ac_configure_args1=; unset ac_configure_args1;} 2196 2197# When interrupted or exit'd, cleanup temporary files, and complete 2198# config.log. We remove comments because anyway the quotes in there 2199# would cause problems or look ugly. 2200# WARNING: Use '\'' to represent an apostrophe within the trap. 2201# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2202trap 'exit_status=$? 2203 # Save into config.log some information that might help in debugging. 2204 { 2205 echo 2206 2207 cat <<\_ASBOX 2208## ---------------- ## 2209## Cache variables. ## 2210## ---------------- ## 2211_ASBOX 2212 echo 2213 # The following way of writing the cache mishandles newlines in values, 2214( 2215 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2216 eval ac_val=\$$ac_var 2217 case $ac_val in #( 2218 *${as_nl}*) 2219 case $ac_var in #( 2220 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2221$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2222 esac 2223 case $ac_var in #( 2224 _ | IFS | as_nl) ;; #( 2225 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2226 *) { eval $ac_var=; unset $ac_var;} ;; 2227 esac ;; 2228 esac 2229 done 2230 (set) 2>&1 | 2231 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2232 *${as_nl}ac_space=\ *) 2233 sed -n \ 2234 "s/'\''/'\''\\\\'\'''\''/g; 2235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2236 ;; #( 2237 *) 2238 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2239 ;; 2240 esac | 2241 sort 2242) 2243 echo 2244 2245 cat <<\_ASBOX 2246## ----------------- ## 2247## Output variables. ## 2248## ----------------- ## 2249_ASBOX 2250 echo 2251 for ac_var in $ac_subst_vars 2252 do 2253 eval ac_val=\$$ac_var 2254 case $ac_val in 2255 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2256 esac 2257 $as_echo "$ac_var='\''$ac_val'\''" 2258 done | sort 2259 echo 2260 2261 if test -n "$ac_subst_files"; then 2262 cat <<\_ASBOX 2263## ------------------- ## 2264## File substitutions. ## 2265## ------------------- ## 2266_ASBOX 2267 echo 2268 for ac_var in $ac_subst_files 2269 do 2270 eval ac_val=\$$ac_var 2271 case $ac_val in 2272 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2273 esac 2274 $as_echo "$ac_var='\''$ac_val'\''" 2275 done | sort 2276 echo 2277 fi 2278 2279 if test -s confdefs.h; then 2280 cat <<\_ASBOX 2281## ----------- ## 2282## confdefs.h. ## 2283## ----------- ## 2284_ASBOX 2285 echo 2286 cat confdefs.h 2287 echo 2288 fi 2289 test "$ac_signal" != 0 && 2290 $as_echo "$as_me: caught signal $ac_signal" 2291 $as_echo "$as_me: exit $exit_status" 2292 } >&5 2293 rm -f core *.core core.conftest.* && 2294 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2295 exit $exit_status 2296' 0 2297for ac_signal in 1 2 13 15; do 2298 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2299done 2300ac_signal=0 2301 2302# confdefs.h avoids OS command line length limits that DEFS can exceed. 2303rm -f -r conftest* confdefs.h 2304 2305$as_echo "/* confdefs.h */" > confdefs.h 2306 2307# Predefined preprocessor variables. 2308 2309cat >>confdefs.h <<_ACEOF 2310#define PACKAGE_NAME "$PACKAGE_NAME" 2311_ACEOF 2312 2313cat >>confdefs.h <<_ACEOF 2314#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2315_ACEOF 2316 2317cat >>confdefs.h <<_ACEOF 2318#define PACKAGE_VERSION "$PACKAGE_VERSION" 2319_ACEOF 2320 2321cat >>confdefs.h <<_ACEOF 2322#define PACKAGE_STRING "$PACKAGE_STRING" 2323_ACEOF 2324 2325cat >>confdefs.h <<_ACEOF 2326#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2327_ACEOF 2328 2329cat >>confdefs.h <<_ACEOF 2330#define PACKAGE_URL "$PACKAGE_URL" 2331_ACEOF 2332 2333 2334# Let the site file select an alternate cache file if it wants to. 2335# Prefer an explicitly selected file to automatically selected ones. 2336ac_site_file1=NONE 2337ac_site_file2=NONE 2338if test -n "$CONFIG_SITE"; then 2339 ac_site_file1=$CONFIG_SITE 2340elif test "x$prefix" != xNONE; then 2341 ac_site_file1=$prefix/share/config.site 2342 ac_site_file2=$prefix/etc/config.site 2343else 2344 ac_site_file1=$ac_default_prefix/share/config.site 2345 ac_site_file2=$ac_default_prefix/etc/config.site 2346fi 2347for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2348do 2349 test "x$ac_site_file" = xNONE && continue 2350 if test -r "$ac_site_file"; then 2351 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2352$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2353 sed 's/^/| /' "$ac_site_file" >&5 2354 . "$ac_site_file" 2355 fi 2356done 2357 2358if test -r "$cache_file"; then 2359 # Some versions of bash will fail to source /dev/null (special 2360 # files actually), so we avoid doing that. 2361 if test -f "$cache_file"; then 2362 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2363$as_echo "$as_me: loading cache $cache_file" >&6;} 2364 case $cache_file in 2365 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2366 *) . "./$cache_file";; 2367 esac 2368 fi 2369else 2370 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2371$as_echo "$as_me: creating cache $cache_file" >&6;} 2372 >$cache_file 2373fi 2374 2375# Check that the precious variables saved in the cache have kept the same 2376# value. 2377ac_cache_corrupted=false 2378for ac_var in $ac_precious_vars; do 2379 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2380 eval ac_new_set=\$ac_env_${ac_var}_set 2381 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2382 eval ac_new_val=\$ac_env_${ac_var}_value 2383 case $ac_old_set,$ac_new_set in 2384 set,) 2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2386$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2387 ac_cache_corrupted=: ;; 2388 ,set) 2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2390$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2391 ac_cache_corrupted=: ;; 2392 ,);; 2393 *) 2394 if test "x$ac_old_val" != "x$ac_new_val"; then 2395 # differences in whitespace do not lead to failure. 2396 ac_old_val_w=`echo x $ac_old_val` 2397 ac_new_val_w=`echo x $ac_new_val` 2398 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2400$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2401 ac_cache_corrupted=: 2402 else 2403 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2404$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2405 eval $ac_var=\$ac_old_val 2406 fi 2407 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2408$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2409 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2410$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2411 fi;; 2412 esac 2413 # Pass precious variables to config.status. 2414 if test "$ac_new_set" = set; then 2415 case $ac_new_val in 2416 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2417 *) ac_arg=$ac_var=$ac_new_val ;; 2418 esac 2419 case " $ac_configure_args " in 2420 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2421 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2422 esac 2423 fi 2424done 2425if $ac_cache_corrupted; then 2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2427$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2429$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2430 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2431fi 2432## -------------------- ## 2433## Main body of script. ## 2434## -------------------- ## 2435 2436ac_ext=c 2437ac_cpp='$CPP $CPPFLAGS' 2438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2440ac_compiler_gnu=$ac_cv_c_compiler_gnu 2441 2442 2443 2444 2445 2446ac_config_headers="$ac_config_headers auto-config.h" 2447 2448 2449# ------- 2450# Options 2451# ------- 2452 2453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 2454$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } 2455 # Check whether --enable-version-specific-runtime-libs was given. 2456if test "${enable_version_specific_runtime_libs+set}" = set; then : 2457 enableval=$enable_version_specific_runtime_libs; 2458 case "$enableval" in 2459 yes|no) ;; 2460 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;; 2461 esac 2462 2463else 2464 enable_version_specific_runtime_libs=no 2465fi 2466 2467 2468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5 2469$as_echo "$enable_version_specific_runtime_libs" >&6; } 2470 2471# We would like our source tree to be readonly. However when releases or 2472# pre-releases are generated, the flex/bison generated files as well as the 2473# various formats of manuals need to be included along with the rest of the 2474# sources. Therefore we have --enable-generated-files-in-srcdir to do 2475# just that. 2476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5 2477$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; } 2478 # Check whether --enable-generated-files-in-srcdir was given. 2479if test "${enable_generated_files_in_srcdir+set}" = set; then : 2480 enableval=$enable_generated_files_in_srcdir; 2481 case "$enableval" in 2482 yes|no) ;; 2483 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;; 2484 esac 2485 2486else 2487 enable_generated_files_in_srcdir=no 2488fi 2489 2490 2491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5 2492$as_echo "$enable_generated_files_in_srcdir" >&6; } 2493 if test "$enable_generated_files_in_srcdir" = yes; then 2494 GENINSRC_TRUE= 2495 GENINSRC_FALSE='#' 2496else 2497 GENINSRC_TRUE='#' 2498 GENINSRC_FALSE= 2499fi 2500 2501 2502 2503# ------- 2504 2505# Gets build, host, target, *_vendor, *_cpu, *_os, etc. 2506# 2507# You will slowly go insane if you do not grok the following fact: when 2508# building this library, the top-level /target/ becomes the library's /host/. 2509# 2510# configure then causes --target to default to --host, exactly like any 2511# other package using autoconf. Therefore, 'target' and 'host' will 2512# always be the same. This makes sense both for native and cross compilers 2513# just think about it for a little while. :-) 2514# 2515# Also, if this library is being configured as part of a cross compiler, the 2516# top-level configure script will pass the "real" host as $with_cross_host. 2517# 2518# Do not delete or change the following two lines. For why, see 2519# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html 2520ac_aux_dir= 2521for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2522 for ac_t in install-sh install.sh shtool; do 2523 if test -f "$ac_dir/$ac_t"; then 2524 ac_aux_dir=$ac_dir 2525 ac_install_sh="$ac_aux_dir/$ac_t -c" 2526 break 2 2527 fi 2528 done 2529done 2530if test -z "$ac_aux_dir"; then 2531 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2532fi 2533 2534# These three variables are undocumented and unsupported, 2535# and are intended to be withdrawn in a future Autoconf release. 2536# They can cause serious problems if a builder's source tree is in a directory 2537# whose full name contains unusual characters. 2538ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2539ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2540ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2541 2542 2543# Make sure we can run config.sub. 2544$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2545 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2546 2547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2548$as_echo_n "checking build system type... " >&6; } 2549if test "${ac_cv_build+set}" = set; then : 2550 $as_echo_n "(cached) " >&6 2551else 2552 ac_build_alias=$build_alias 2553test "x$ac_build_alias" = x && 2554 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2555test "x$ac_build_alias" = x && 2556 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2557ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2558 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2559 2560fi 2561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2562$as_echo "$ac_cv_build" >&6; } 2563case $ac_cv_build in 2564*-*-*) ;; 2565*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2566esac 2567build=$ac_cv_build 2568ac_save_IFS=$IFS; IFS='-' 2569set x $ac_cv_build 2570shift 2571build_cpu=$1 2572build_vendor=$2 2573shift; shift 2574# Remember, the first character of IFS is used to create $*, 2575# except with old shells: 2576build_os=$* 2577IFS=$ac_save_IFS 2578case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2579 2580 2581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2582$as_echo_n "checking host system type... " >&6; } 2583if test "${ac_cv_host+set}" = set; then : 2584 $as_echo_n "(cached) " >&6 2585else 2586 if test "x$host_alias" = x; then 2587 ac_cv_host=$ac_cv_build 2588else 2589 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2590 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2591fi 2592 2593fi 2594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2595$as_echo "$ac_cv_host" >&6; } 2596case $ac_cv_host in 2597*-*-*) ;; 2598*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2599esac 2600host=$ac_cv_host 2601ac_save_IFS=$IFS; IFS='-' 2602set x $ac_cv_host 2603shift 2604host_cpu=$1 2605host_vendor=$2 2606shift; shift 2607# Remember, the first character of IFS is used to create $*, 2608# except with old shells: 2609host_os=$* 2610IFS=$ac_save_IFS 2611case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2612 2613 2614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2615$as_echo_n "checking target system type... " >&6; } 2616if test "${ac_cv_target+set}" = set; then : 2617 $as_echo_n "(cached) " >&6 2618else 2619 if test "x$target_alias" = x; then 2620 ac_cv_target=$ac_cv_host 2621else 2622 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2623 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2624fi 2625 2626fi 2627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2628$as_echo "$ac_cv_target" >&6; } 2629case $ac_cv_target in 2630*-*-*) ;; 2631*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2632esac 2633target=$ac_cv_target 2634ac_save_IFS=$IFS; IFS='-' 2635set x $ac_cv_target 2636shift 2637target_cpu=$1 2638target_vendor=$2 2639shift; shift 2640# Remember, the first character of IFS is used to create $*, 2641# except with old shells: 2642target_os=$* 2643IFS=$ac_save_IFS 2644case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2645 2646 2647# The aliases save the names the user supplied, while $host etc. 2648# will get canonicalized. 2649test -n "$target_alias" && 2650 test "$program_prefix$program_suffix$program_transform_name" = \ 2651 NONENONEs,x,x, && 2652 program_prefix=${target_alias}- 2653 2654target_alias=${target_alias-$host_alias} 2655 2656# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the 2657# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. 2658# 1.9.0: minimum required version 2659# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch 2660# of other PACKAGE_* variables will, however, and there's nothing 2661# we can do about that; they come from AC_INIT). 2662# no-dist: we don't want 'dist' and related rules. 2663# foreign: we don't follow the normal rules for GNU packages (no COPYING 2664# file in the top srcdir, etc, etc), so stop complaining. 2665# -Wall: turns on all automake warnings... 2666# -Wno-portability: ...except this one, since GNU make is required. 2667# -Wno-override: ... and this one, since we do want this in testsuite. 2668am__api_version='1.11' 2669 2670# Find a good install program. We prefer a C program (faster), 2671# so one script is as good as another. But avoid the broken or 2672# incompatible versions: 2673# SysV /etc/install, /usr/sbin/install 2674# SunOS /usr/etc/install 2675# IRIX /sbin/install 2676# AIX /bin/install 2677# AmigaOS /C/install, which installs bootblocks on floppy discs 2678# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2679# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2680# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2681# OS/2's system install, which has a completely different semantic 2682# ./install, which can be erroneously created by make from ./install.sh. 2683# Reject install programs that cannot install multiple files. 2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2685$as_echo_n "checking for a BSD-compatible install... " >&6; } 2686if test -z "$INSTALL"; then 2687if test "${ac_cv_path_install+set}" = set; then : 2688 $as_echo_n "(cached) " >&6 2689else 2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2691for as_dir in $PATH 2692do 2693 IFS=$as_save_IFS 2694 test -z "$as_dir" && as_dir=. 2695 # Account for people who put trailing slashes in PATH elements. 2696case $as_dir/ in #(( 2697 ./ | .// | /[cC]/* | \ 2698 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2699 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2700 /usr/ucb/* ) ;; 2701 *) 2702 # OSF1 and SCO ODT 3.0 have their own names for install. 2703 # Don't use installbsd from OSF since it installs stuff as root 2704 # by default. 2705 for ac_prog in ginstall scoinst install; do 2706 for ac_exec_ext in '' $ac_executable_extensions; do 2707 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2708 if test $ac_prog = install && 2709 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2710 # AIX install. It has an incompatible calling convention. 2711 : 2712 elif test $ac_prog = install && 2713 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2714 # program-specific install script used by HP pwplus--don't use. 2715 : 2716 else 2717 rm -rf conftest.one conftest.two conftest.dir 2718 echo one > conftest.one 2719 echo two > conftest.two 2720 mkdir conftest.dir 2721 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2722 test -s conftest.one && test -s conftest.two && 2723 test -s conftest.dir/conftest.one && 2724 test -s conftest.dir/conftest.two 2725 then 2726 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2727 break 3 2728 fi 2729 fi 2730 fi 2731 done 2732 done 2733 ;; 2734esac 2735 2736 done 2737IFS=$as_save_IFS 2738 2739rm -rf conftest.one conftest.two conftest.dir 2740 2741fi 2742 if test "${ac_cv_path_install+set}" = set; then 2743 INSTALL=$ac_cv_path_install 2744 else 2745 # As a last resort, use the slow shell script. Don't cache a 2746 # value for INSTALL within a source directory, because that will 2747 # break other packages using the cache if that directory is 2748 # removed, or if the value is a relative name. 2749 INSTALL=$ac_install_sh 2750 fi 2751fi 2752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2753$as_echo "$INSTALL" >&6; } 2754 2755# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2756# It thinks the first close brace ends the variable substitution. 2757test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2758 2759test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2760 2761test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2762 2763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2764$as_echo_n "checking whether build environment is sane... " >&6; } 2765# Just in case 2766sleep 1 2767echo timestamp > conftest.file 2768# Reject unsafe characters in $srcdir or the absolute working directory 2769# name. Accept space and tab only in the latter. 2770am_lf=' 2771' 2772case `pwd` in 2773 *[\\\"\#\$\&\'\`$am_lf]*) 2774 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2775esac 2776case $srcdir in 2777 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2778 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2779esac 2780 2781# Do `set' in a subshell so we don't clobber the current shell's 2782# arguments. Must try -L first in case configure is actually a 2783# symlink; some systems play weird games with the mod time of symlinks 2784# (eg FreeBSD returns the mod time of the symlink's containing 2785# directory). 2786if ( 2787 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2788 if test "$*" = "X"; then 2789 # -L didn't work. 2790 set X `ls -t "$srcdir/configure" conftest.file` 2791 fi 2792 rm -f conftest.file 2793 if test "$*" != "X $srcdir/configure conftest.file" \ 2794 && test "$*" != "X conftest.file $srcdir/configure"; then 2795 2796 # If neither matched, then we have a broken ls. This can happen 2797 # if, for instance, CONFIG_SHELL is bash and it inherits a 2798 # broken ls alias from the environment. This has actually 2799 # happened. Such a system could not be considered "sane". 2800 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2801alias in your environment" "$LINENO" 5 2802 fi 2803 2804 test "$2" = conftest.file 2805 ) 2806then 2807 # Ok. 2808 : 2809else 2810 as_fn_error "newly created file is older than distributed files! 2811Check your system clock" "$LINENO" 5 2812fi 2813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2814$as_echo "yes" >&6; } 2815test "$program_prefix" != NONE && 2816 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2817# Use a double $ so make ignores it. 2818test "$program_suffix" != NONE && 2819 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2820# Double any \ or $. 2821# By default was `s,x,x', remove it if useless. 2822ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2823program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2824 2825# expand $ac_aux_dir to an absolute path 2826am_aux_dir=`cd $ac_aux_dir && pwd` 2827 2828if test x"${MISSING+set}" != xset; then 2829 case $am_aux_dir in 2830 *\ * | *\ *) 2831 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2832 *) 2833 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2834 esac 2835fi 2836# Use eval to expand $SHELL 2837if eval "$MISSING --run true"; then 2838 am_missing_run="$MISSING --run " 2839else 2840 am_missing_run= 2841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2842$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2843fi 2844 2845if test x"${install_sh}" != xset; then 2846 case $am_aux_dir in 2847 *\ * | *\ *) 2848 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2849 *) 2850 install_sh="\${SHELL} $am_aux_dir/install-sh" 2851 esac 2852fi 2853 2854# Installed binaries are usually stripped using `strip' when the user 2855# run `make install-strip'. However `strip' might not be the right 2856# tool to use in cross-compilation environments, therefore Automake 2857# will honor the `STRIP' environment variable to overrule this program. 2858if test "$cross_compiling" != no; then 2859 if test -n "$ac_tool_prefix"; then 2860 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2861set dummy ${ac_tool_prefix}strip; ac_word=$2 2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2863$as_echo_n "checking for $ac_word... " >&6; } 2864if test "${ac_cv_prog_STRIP+set}" = set; then : 2865 $as_echo_n "(cached) " >&6 2866else 2867 if test -n "$STRIP"; then 2868 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2869else 2870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2871for as_dir in $PATH 2872do 2873 IFS=$as_save_IFS 2874 test -z "$as_dir" && as_dir=. 2875 for ac_exec_ext in '' $ac_executable_extensions; do 2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2877 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2879 break 2 2880 fi 2881done 2882 done 2883IFS=$as_save_IFS 2884 2885fi 2886fi 2887STRIP=$ac_cv_prog_STRIP 2888if test -n "$STRIP"; then 2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2890$as_echo "$STRIP" >&6; } 2891else 2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2893$as_echo "no" >&6; } 2894fi 2895 2896 2897fi 2898if test -z "$ac_cv_prog_STRIP"; then 2899 ac_ct_STRIP=$STRIP 2900 # Extract the first word of "strip", so it can be a program name with args. 2901set dummy strip; ac_word=$2 2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2903$as_echo_n "checking for $ac_word... " >&6; } 2904if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2905 $as_echo_n "(cached) " >&6 2906else 2907 if test -n "$ac_ct_STRIP"; then 2908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2909else 2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2911for as_dir in $PATH 2912do 2913 IFS=$as_save_IFS 2914 test -z "$as_dir" && as_dir=. 2915 for ac_exec_ext in '' $ac_executable_extensions; do 2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2917 ac_cv_prog_ac_ct_STRIP="strip" 2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2919 break 2 2920 fi 2921done 2922 done 2923IFS=$as_save_IFS 2924 2925fi 2926fi 2927ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2928if test -n "$ac_ct_STRIP"; then 2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2930$as_echo "$ac_ct_STRIP" >&6; } 2931else 2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2933$as_echo "no" >&6; } 2934fi 2935 2936 if test "x$ac_ct_STRIP" = x; then 2937 STRIP=":" 2938 else 2939 case $cross_compiling:$ac_tool_warned in 2940yes:) 2941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2943ac_tool_warned=yes ;; 2944esac 2945 STRIP=$ac_ct_STRIP 2946 fi 2947else 2948 STRIP="$ac_cv_prog_STRIP" 2949fi 2950 2951fi 2952INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2953 2954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2955$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2956if test -z "$MKDIR_P"; then 2957 if test "${ac_cv_path_mkdir+set}" = set; then : 2958 $as_echo_n "(cached) " >&6 2959else 2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2961for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2962do 2963 IFS=$as_save_IFS 2964 test -z "$as_dir" && as_dir=. 2965 for ac_prog in mkdir gmkdir; do 2966 for ac_exec_ext in '' $ac_executable_extensions; do 2967 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2968 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2969 'mkdir (GNU coreutils) '* | \ 2970 'mkdir (coreutils) '* | \ 2971 'mkdir (fileutils) '4.1*) 2972 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2973 break 3;; 2974 esac 2975 done 2976 done 2977 done 2978IFS=$as_save_IFS 2979 2980fi 2981 2982 if test "${ac_cv_path_mkdir+set}" = set; then 2983 MKDIR_P="$ac_cv_path_mkdir -p" 2984 else 2985 # As a last resort, use the slow shell script. Don't cache a 2986 # value for MKDIR_P within a source directory, because that will 2987 # break other packages using the cache if that directory is 2988 # removed, or if the value is a relative name. 2989 test -d ./--version && rmdir ./--version 2990 MKDIR_P="$ac_install_sh -d" 2991 fi 2992fi 2993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2994$as_echo "$MKDIR_P" >&6; } 2995 2996mkdir_p="$MKDIR_P" 2997case $mkdir_p in 2998 [\\/$]* | ?:[\\/]*) ;; 2999 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3000esac 3001 3002for ac_prog in gawk mawk nawk awk 3003do 3004 # Extract the first word of "$ac_prog", so it can be a program name with args. 3005set dummy $ac_prog; ac_word=$2 3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3007$as_echo_n "checking for $ac_word... " >&6; } 3008if test "${ac_cv_prog_AWK+set}" = set; then : 3009 $as_echo_n "(cached) " >&6 3010else 3011 if test -n "$AWK"; then 3012 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3013else 3014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3015for as_dir in $PATH 3016do 3017 IFS=$as_save_IFS 3018 test -z "$as_dir" && as_dir=. 3019 for ac_exec_ext in '' $ac_executable_extensions; do 3020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3021 ac_cv_prog_AWK="$ac_prog" 3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3023 break 2 3024 fi 3025done 3026 done 3027IFS=$as_save_IFS 3028 3029fi 3030fi 3031AWK=$ac_cv_prog_AWK 3032if test -n "$AWK"; then 3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3034$as_echo "$AWK" >&6; } 3035else 3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3037$as_echo "no" >&6; } 3038fi 3039 3040 3041 test -n "$AWK" && break 3042done 3043 3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3045$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3046set x ${MAKE-make} 3047ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3048if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3049 $as_echo_n "(cached) " >&6 3050else 3051 cat >conftest.make <<\_ACEOF 3052SHELL = /bin/sh 3053all: 3054 @echo '@@@%%%=$(MAKE)=@@@%%%' 3055_ACEOF 3056# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3057case `${MAKE-make} -f conftest.make 2>/dev/null` in 3058 *@@@%%%=?*=@@@%%%*) 3059 eval ac_cv_prog_make_${ac_make}_set=yes;; 3060 *) 3061 eval ac_cv_prog_make_${ac_make}_set=no;; 3062esac 3063rm -f conftest.make 3064fi 3065if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3067$as_echo "yes" >&6; } 3068 SET_MAKE= 3069else 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3071$as_echo "no" >&6; } 3072 SET_MAKE="MAKE=${MAKE-make}" 3073fi 3074 3075rm -rf .tst 2>/dev/null 3076mkdir .tst 2>/dev/null 3077if test -d .tst; then 3078 am__leading_dot=. 3079else 3080 am__leading_dot=_ 3081fi 3082rmdir .tst 2>/dev/null 3083 3084if test "`cd $srcdir && pwd`" != "`pwd`"; then 3085 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3086 # is not polluted with repeated "-I." 3087 am__isrc=' -I$(srcdir)' 3088 # test to see if srcdir already configured 3089 if test -f $srcdir/config.status; then 3090 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3091 fi 3092fi 3093 3094# test whether we have cygpath 3095if test -z "$CYGPATH_W"; then 3096 if (cygpath --version) >/dev/null 2>/dev/null; then 3097 CYGPATH_W='cygpath -w' 3098 else 3099 CYGPATH_W=echo 3100 fi 3101fi 3102 3103 3104# Define the identity of the package. 3105 PACKAGE='libatomic' 3106 VERSION='1.0' 3107 3108 3109cat >>confdefs.h <<_ACEOF 3110#define PACKAGE "$PACKAGE" 3111_ACEOF 3112 3113 3114cat >>confdefs.h <<_ACEOF 3115#define VERSION "$VERSION" 3116_ACEOF 3117 3118# Some tools Automake needs. 3119 3120ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3121 3122 3123AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3124 3125 3126AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3127 3128 3129AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3130 3131 3132MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3133 3134# We need awk for the "check" target. The system "awk" is bad on 3135# some platforms. 3136# Always define AMTAR for backward compatibility. Yes, it's still used 3137# in the wild :-( We should find a proper way to deprecate it ... 3138AMTAR='$${TAR-tar}' 3139 3140am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3141 3142 3143 3144 3145 3146# Default to --enable-multilib 3147# Check whether --enable-multilib was given. 3148if test "${enable_multilib+set}" = set; then : 3149 enableval=$enable_multilib; case "$enableval" in 3150 yes) multilib=yes ;; 3151 no) multilib=no ;; 3152 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;; 3153 esac 3154else 3155 multilib=yes 3156fi 3157 3158 3159# We may get other options which we leave undocumented: 3160# --with-target-subdir, --with-multisrctop, --with-multisubdir 3161# See config-ml.in if you want the gory details. 3162 3163if test "$srcdir" = "."; then 3164 if test "$with_target_subdir" != "."; then 3165 multi_basedir="$srcdir/$with_multisrctop../.." 3166 else 3167 multi_basedir="$srcdir/$with_multisrctop.." 3168 fi 3169else 3170 multi_basedir="$srcdir/.." 3171fi 3172 3173 3174# Even if the default multilib is not a cross compilation, 3175# it may be that some of the other multilibs are. 3176if test $cross_compiling = no && test $multilib = yes \ 3177 && test "x${with_multisubdir}" != x ; then 3178 cross_compiling=maybe 3179fi 3180 3181ac_config_commands="$ac_config_commands default-1" 3182 3183 3184# Calculate toolexeclibdir 3185# Also toolexecdir, though it's only used in toolexeclibdir 3186case ${enable_version_specific_runtime_libs} in 3187 yes) 3188 # Need the gcc compiler version to know where to install libraries 3189 # and header files if --enable-version-specific-runtime-libs option 3190 # is selected. 3191 toolexecdir='$(libdir)/gcc/$(target_alias)' 3192 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' 3193 ;; 3194 no) 3195 if test -n "$with_cross_host" && 3196 test x"$with_cross_host" != x"no"; then 3197 # Install a library built with a cross compiler in tooldir, not libdir. 3198 toolexecdir='$(exec_prefix)/$(target_alias)' 3199 toolexeclibdir='$(toolexecdir)/lib' 3200 else 3201 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 3202 toolexeclibdir='$(libdir)' 3203 fi 3204 multi_os_directory=`$CC -print-multi-os-directory` 3205 case $multi_os_directory in 3206 .) ;; # Avoid trailing /. 3207 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; 3208 esac 3209 ;; 3210esac 3211 3212 3213 3214# Check the compiler. 3215# The same as in boehm-gc and libstdc++. Have to borrow it from there. 3216# We must force CC to /not/ be precious variables; otherwise 3217# the wrong, non-multilib-adjusted value will be used in multilibs. 3218# As a side effect, we have to subst CFLAGS ourselves. 3219 3220 3221 3222ac_ext=c 3223ac_cpp='$CPP $CPPFLAGS' 3224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3226ac_compiler_gnu=$ac_cv_c_compiler_gnu 3227if test -n "$ac_tool_prefix"; then 3228 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3229set dummy ${ac_tool_prefix}gcc; ac_word=$2 3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3231$as_echo_n "checking for $ac_word... " >&6; } 3232if test "${ac_cv_prog_CC+set}" = set; then : 3233 $as_echo_n "(cached) " >&6 3234else 3235 if test -n "$CC"; then 3236 ac_cv_prog_CC="$CC" # Let the user override the test. 3237else 3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3239for as_dir in $PATH 3240do 3241 IFS=$as_save_IFS 3242 test -z "$as_dir" && as_dir=. 3243 for ac_exec_ext in '' $ac_executable_extensions; do 3244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3245 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3247 break 2 3248 fi 3249done 3250 done 3251IFS=$as_save_IFS 3252 3253fi 3254fi 3255CC=$ac_cv_prog_CC 3256if test -n "$CC"; then 3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3258$as_echo "$CC" >&6; } 3259else 3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3261$as_echo "no" >&6; } 3262fi 3263 3264 3265fi 3266if test -z "$ac_cv_prog_CC"; then 3267 ac_ct_CC=$CC 3268 # Extract the first word of "gcc", so it can be a program name with args. 3269set dummy gcc; ac_word=$2 3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3271$as_echo_n "checking for $ac_word... " >&6; } 3272if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3273 $as_echo_n "(cached) " >&6 3274else 3275 if test -n "$ac_ct_CC"; then 3276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3277else 3278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3279for as_dir in $PATH 3280do 3281 IFS=$as_save_IFS 3282 test -z "$as_dir" && as_dir=. 3283 for ac_exec_ext in '' $ac_executable_extensions; do 3284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3285 ac_cv_prog_ac_ct_CC="gcc" 3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3287 break 2 3288 fi 3289done 3290 done 3291IFS=$as_save_IFS 3292 3293fi 3294fi 3295ac_ct_CC=$ac_cv_prog_ac_ct_CC 3296if test -n "$ac_ct_CC"; then 3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3298$as_echo "$ac_ct_CC" >&6; } 3299else 3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3301$as_echo "no" >&6; } 3302fi 3303 3304 if test "x$ac_ct_CC" = x; then 3305 CC="" 3306 else 3307 case $cross_compiling:$ac_tool_warned in 3308yes:) 3309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3311ac_tool_warned=yes ;; 3312esac 3313 CC=$ac_ct_CC 3314 fi 3315else 3316 CC="$ac_cv_prog_CC" 3317fi 3318 3319if test -z "$CC"; then 3320 if test -n "$ac_tool_prefix"; then 3321 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3322set dummy ${ac_tool_prefix}cc; ac_word=$2 3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3324$as_echo_n "checking for $ac_word... " >&6; } 3325if test "${ac_cv_prog_CC+set}" = set; then : 3326 $as_echo_n "(cached) " >&6 3327else 3328 if test -n "$CC"; then 3329 ac_cv_prog_CC="$CC" # Let the user override the test. 3330else 3331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3332for as_dir in $PATH 3333do 3334 IFS=$as_save_IFS 3335 test -z "$as_dir" && as_dir=. 3336 for ac_exec_ext in '' $ac_executable_extensions; do 3337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3338 ac_cv_prog_CC="${ac_tool_prefix}cc" 3339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3340 break 2 3341 fi 3342done 3343 done 3344IFS=$as_save_IFS 3345 3346fi 3347fi 3348CC=$ac_cv_prog_CC 3349if test -n "$CC"; then 3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3351$as_echo "$CC" >&6; } 3352else 3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3354$as_echo "no" >&6; } 3355fi 3356 3357 3358 fi 3359fi 3360if test -z "$CC"; then 3361 # Extract the first word of "cc", so it can be a program name with args. 3362set dummy cc; ac_word=$2 3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3364$as_echo_n "checking for $ac_word... " >&6; } 3365if test "${ac_cv_prog_CC+set}" = set; then : 3366 $as_echo_n "(cached) " >&6 3367else 3368 if test -n "$CC"; then 3369 ac_cv_prog_CC="$CC" # Let the user override the test. 3370else 3371 ac_prog_rejected=no 3372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3373for as_dir in $PATH 3374do 3375 IFS=$as_save_IFS 3376 test -z "$as_dir" && as_dir=. 3377 for ac_exec_ext in '' $ac_executable_extensions; do 3378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3379 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3380 ac_prog_rejected=yes 3381 continue 3382 fi 3383 ac_cv_prog_CC="cc" 3384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3385 break 2 3386 fi 3387done 3388 done 3389IFS=$as_save_IFS 3390 3391if test $ac_prog_rejected = yes; then 3392 # We found a bogon in the path, so make sure we never use it. 3393 set dummy $ac_cv_prog_CC 3394 shift 3395 if test $# != 0; then 3396 # We chose a different compiler from the bogus one. 3397 # However, it has the same basename, so the bogon will be chosen 3398 # first if we set CC to just the basename; use the full file name. 3399 shift 3400 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3401 fi 3402fi 3403fi 3404fi 3405CC=$ac_cv_prog_CC 3406if test -n "$CC"; then 3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3408$as_echo "$CC" >&6; } 3409else 3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3411$as_echo "no" >&6; } 3412fi 3413 3414 3415fi 3416if test -z "$CC"; then 3417 if test -n "$ac_tool_prefix"; then 3418 for ac_prog in cl.exe 3419 do 3420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3421set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3423$as_echo_n "checking for $ac_word... " >&6; } 3424if test "${ac_cv_prog_CC+set}" = set; then : 3425 $as_echo_n "(cached) " >&6 3426else 3427 if test -n "$CC"; then 3428 ac_cv_prog_CC="$CC" # Let the user override the test. 3429else 3430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3431for as_dir in $PATH 3432do 3433 IFS=$as_save_IFS 3434 test -z "$as_dir" && as_dir=. 3435 for ac_exec_ext in '' $ac_executable_extensions; do 3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3437 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3439 break 2 3440 fi 3441done 3442 done 3443IFS=$as_save_IFS 3444 3445fi 3446fi 3447CC=$ac_cv_prog_CC 3448if test -n "$CC"; then 3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3450$as_echo "$CC" >&6; } 3451else 3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3453$as_echo "no" >&6; } 3454fi 3455 3456 3457 test -n "$CC" && break 3458 done 3459fi 3460if test -z "$CC"; then 3461 ac_ct_CC=$CC 3462 for ac_prog in cl.exe 3463do 3464 # Extract the first word of "$ac_prog", so it can be a program name with args. 3465set dummy $ac_prog; ac_word=$2 3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3467$as_echo_n "checking for $ac_word... " >&6; } 3468if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3469 $as_echo_n "(cached) " >&6 3470else 3471 if test -n "$ac_ct_CC"; then 3472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3473else 3474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3475for as_dir in $PATH 3476do 3477 IFS=$as_save_IFS 3478 test -z "$as_dir" && as_dir=. 3479 for ac_exec_ext in '' $ac_executable_extensions; do 3480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3481 ac_cv_prog_ac_ct_CC="$ac_prog" 3482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3483 break 2 3484 fi 3485done 3486 done 3487IFS=$as_save_IFS 3488 3489fi 3490fi 3491ac_ct_CC=$ac_cv_prog_ac_ct_CC 3492if test -n "$ac_ct_CC"; then 3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3494$as_echo "$ac_ct_CC" >&6; } 3495else 3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3497$as_echo "no" >&6; } 3498fi 3499 3500 3501 test -n "$ac_ct_CC" && break 3502done 3503 3504 if test "x$ac_ct_CC" = x; then 3505 CC="" 3506 else 3507 case $cross_compiling:$ac_tool_warned in 3508yes:) 3509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3511ac_tool_warned=yes ;; 3512esac 3513 CC=$ac_ct_CC 3514 fi 3515fi 3516 3517fi 3518 3519 3520test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3522as_fn_error "no acceptable C compiler found in \$PATH 3523See \`config.log' for more details." "$LINENO" 5; } 3524 3525# Provide some information about the compiler. 3526$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3527set X $ac_compile 3528ac_compiler=$2 3529for ac_option in --version -v -V -qversion; do 3530 { { ac_try="$ac_compiler $ac_option >&5" 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_compiler $ac_option >&5") 2>conftest.err 3538 ac_status=$? 3539 if test -s conftest.err; then 3540 sed '10a\ 3541... rest of stderr output deleted ... 3542 10q' conftest.err >conftest.er1 3543 cat conftest.er1 >&5 3544 rm -f conftest.er1 conftest.err 3545 fi 3546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3547 test $ac_status = 0; } 3548done 3549 3550cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3551/* end confdefs.h. */ 3552 3553int 3554main () 3555{ 3556 3557 ; 3558 return 0; 3559} 3560_ACEOF 3561ac_clean_files_save=$ac_clean_files 3562ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 3563# Try to create an executable without -o first, disregard a.out. 3564# It will help us diagnose broken compilers, and finding out an intuition 3565# of exeext. 3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3567$as_echo_n "checking for C compiler default output file name... " >&6; } 3568ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3569 3570# The possible output files: 3571ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3572 3573ac_rmfiles= 3574for ac_file in $ac_files 3575do 3576 case $ac_file in 3577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3578 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3579 esac 3580done 3581rm -f $ac_rmfiles 3582 3583if { { ac_try="$ac_link_default" 3584case "(($ac_try" in 3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3586 *) ac_try_echo=$ac_try;; 3587esac 3588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3589$as_echo "$ac_try_echo"; } >&5 3590 (eval "$ac_link_default") 2>&5 3591 ac_status=$? 3592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3593 test $ac_status = 0; }; then : 3594 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3595# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3596# in a Makefile. We should not override ac_cv_exeext if it was cached, 3597# so that the user can short-circuit this test for compilers unknown to 3598# Autoconf. 3599for ac_file in $ac_files '' 3600do 3601 test -f "$ac_file" || continue 3602 case $ac_file in 3603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3604 ;; 3605 [ab].out ) 3606 # We found the default executable, but exeext='' is most 3607 # certainly right. 3608 break;; 3609 *.* ) 3610 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3611 then :; else 3612 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3613 fi 3614 # We set ac_cv_exeext here because the later test for it is not 3615 # safe: cross compilers may not add the suffix if given an `-o' 3616 # argument, so we may need to know it at that point already. 3617 # Even if this section looks crufty: it has the advantage of 3618 # actually working. 3619 break;; 3620 * ) 3621 break;; 3622 esac 3623done 3624test "$ac_cv_exeext" = no && ac_cv_exeext= 3625 3626else 3627 ac_file='' 3628fi 3629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3630$as_echo "$ac_file" >&6; } 3631if test -z "$ac_file"; then : 3632 $as_echo "$as_me: failed program was:" >&5 3633sed 's/^/| /' conftest.$ac_ext >&5 3634 3635{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3637{ as_fn_set_status 77 3638as_fn_error "C compiler cannot create executables 3639See \`config.log' for more details." "$LINENO" 5; }; } 3640fi 3641ac_exeext=$ac_cv_exeext 3642 3643# Check that the compiler produces executables we can run. If not, either 3644# the compiler is broken, or we cross compile. 3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3646$as_echo_n "checking whether the C compiler works... " >&6; } 3647# If not cross compiling, check that we can run a simple program. 3648if test "$cross_compiling" != yes; then 3649 if { ac_try='./$ac_file' 3650 { { case "(($ac_try" in 3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3652 *) ac_try_echo=$ac_try;; 3653esac 3654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3655$as_echo "$ac_try_echo"; } >&5 3656 (eval "$ac_try") 2>&5 3657 ac_status=$? 3658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3659 test $ac_status = 0; }; }; then 3660 cross_compiling=no 3661 else 3662 if test "$cross_compiling" = maybe; then 3663 cross_compiling=yes 3664 else 3665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3666$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3667as_fn_error "cannot run C compiled programs. 3668If you meant to cross compile, use \`--host'. 3669See \`config.log' for more details." "$LINENO" 5; } 3670 fi 3671 fi 3672fi 3673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3674$as_echo "yes" >&6; } 3675 3676rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3677ac_clean_files=$ac_clean_files_save 3678# Check that the compiler produces executables we can run. If not, either 3679# the compiler is broken, or we cross compile. 3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3681$as_echo_n "checking whether we are cross compiling... " >&6; } 3682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3683$as_echo "$cross_compiling" >&6; } 3684 3685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3686$as_echo_n "checking for suffix of executables... " >&6; } 3687if { { ac_try="$ac_link" 3688case "(($ac_try" in 3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3690 *) ac_try_echo=$ac_try;; 3691esac 3692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3693$as_echo "$ac_try_echo"; } >&5 3694 (eval "$ac_link") 2>&5 3695 ac_status=$? 3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3697 test $ac_status = 0; }; then : 3698 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3699# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3700# work properly (i.e., refer to `conftest.exe'), while it won't with 3701# `rm'. 3702for ac_file in conftest.exe conftest conftest.*; do 3703 test -f "$ac_file" || continue 3704 case $ac_file in 3705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3706 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3707 break;; 3708 * ) break;; 3709 esac 3710done 3711else 3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3713$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3714as_fn_error "cannot compute suffix of executables: cannot compile and link 3715See \`config.log' for more details." "$LINENO" 5; } 3716fi 3717rm -f conftest$ac_cv_exeext 3718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3719$as_echo "$ac_cv_exeext" >&6; } 3720 3721rm -f conftest.$ac_ext 3722EXEEXT=$ac_cv_exeext 3723ac_exeext=$EXEEXT 3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3725$as_echo_n "checking for suffix of object files... " >&6; } 3726if test "${ac_cv_objext+set}" = set; then : 3727 $as_echo_n "(cached) " >&6 3728else 3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3730/* end confdefs.h. */ 3731 3732int 3733main () 3734{ 3735 3736 ; 3737 return 0; 3738} 3739_ACEOF 3740rm -f conftest.o conftest.obj 3741if { { ac_try="$ac_compile" 3742case "(($ac_try" in 3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3744 *) ac_try_echo=$ac_try;; 3745esac 3746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3747$as_echo "$ac_try_echo"; } >&5 3748 (eval "$ac_compile") 2>&5 3749 ac_status=$? 3750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3751 test $ac_status = 0; }; then : 3752 for ac_file in conftest.o conftest.obj conftest.*; do 3753 test -f "$ac_file" || continue; 3754 case $ac_file in 3755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3756 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3757 break;; 3758 esac 3759done 3760else 3761 $as_echo "$as_me: failed program was:" >&5 3762sed 's/^/| /' conftest.$ac_ext >&5 3763 3764{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3766as_fn_error "cannot compute suffix of object files: cannot compile 3767See \`config.log' for more details." "$LINENO" 5; } 3768fi 3769rm -f conftest.$ac_cv_objext conftest.$ac_ext 3770fi 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3772$as_echo "$ac_cv_objext" >&6; } 3773OBJEXT=$ac_cv_objext 3774ac_objext=$OBJEXT 3775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3776$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3777if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3778 $as_echo_n "(cached) " >&6 3779else 3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3781/* end confdefs.h. */ 3782 3783int 3784main () 3785{ 3786#ifndef __GNUC__ 3787 choke me 3788#endif 3789 3790 ; 3791 return 0; 3792} 3793_ACEOF 3794if ac_fn_c_try_compile "$LINENO"; then : 3795 ac_compiler_gnu=yes 3796else 3797 ac_compiler_gnu=no 3798fi 3799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3800ac_cv_c_compiler_gnu=$ac_compiler_gnu 3801 3802fi 3803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3804$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3805if test $ac_compiler_gnu = yes; then 3806 GCC=yes 3807else 3808 GCC= 3809fi 3810ac_test_CFLAGS=${CFLAGS+set} 3811ac_save_CFLAGS=$CFLAGS 3812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3813$as_echo_n "checking whether $CC accepts -g... " >&6; } 3814if test "${ac_cv_prog_cc_g+set}" = set; then : 3815 $as_echo_n "(cached) " >&6 3816else 3817 ac_save_c_werror_flag=$ac_c_werror_flag 3818 ac_c_werror_flag=yes 3819 ac_cv_prog_cc_g=no 3820 CFLAGS="-g" 3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3822/* end confdefs.h. */ 3823 3824int 3825main () 3826{ 3827 3828 ; 3829 return 0; 3830} 3831_ACEOF 3832if ac_fn_c_try_compile "$LINENO"; then : 3833 ac_cv_prog_cc_g=yes 3834else 3835 CFLAGS="" 3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3837/* end confdefs.h. */ 3838 3839int 3840main () 3841{ 3842 3843 ; 3844 return 0; 3845} 3846_ACEOF 3847if ac_fn_c_try_compile "$LINENO"; then : 3848 3849else 3850 ac_c_werror_flag=$ac_save_c_werror_flag 3851 CFLAGS="-g" 3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3853/* end confdefs.h. */ 3854 3855int 3856main () 3857{ 3858 3859 ; 3860 return 0; 3861} 3862_ACEOF 3863if ac_fn_c_try_compile "$LINENO"; then : 3864 ac_cv_prog_cc_g=yes 3865fi 3866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3867fi 3868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3869fi 3870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3871 ac_c_werror_flag=$ac_save_c_werror_flag 3872fi 3873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3874$as_echo "$ac_cv_prog_cc_g" >&6; } 3875if test "$ac_test_CFLAGS" = set; then 3876 CFLAGS=$ac_save_CFLAGS 3877elif test $ac_cv_prog_cc_g = yes; then 3878 if test "$GCC" = yes; then 3879 CFLAGS="-g -O2" 3880 else 3881 CFLAGS="-g" 3882 fi 3883else 3884 if test "$GCC" = yes; then 3885 CFLAGS="-O2" 3886 else 3887 CFLAGS= 3888 fi 3889fi 3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3891$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3892if test "${ac_cv_prog_cc_c89+set}" = set; then : 3893 $as_echo_n "(cached) " >&6 3894else 3895 ac_cv_prog_cc_c89=no 3896ac_save_CC=$CC 3897cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3898/* end confdefs.h. */ 3899#include <stdarg.h> 3900#include <stdio.h> 3901#include <sys/types.h> 3902#include <sys/stat.h> 3903/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3904struct buf { int x; }; 3905FILE * (*rcsopen) (struct buf *, struct stat *, int); 3906static char *e (p, i) 3907 char **p; 3908 int i; 3909{ 3910 return p[i]; 3911} 3912static char *f (char * (*g) (char **, int), char **p, ...) 3913{ 3914 char *s; 3915 va_list v; 3916 va_start (v,p); 3917 s = g (p, va_arg (v,int)); 3918 va_end (v); 3919 return s; 3920} 3921 3922/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3923 function prototypes and stuff, but not '\xHH' hex character constants. 3924 These don't provoke an error unfortunately, instead are silently treated 3925 as 'x'. The following induces an error, until -std is added to get 3926 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3927 array size at least. It's necessary to write '\x00'==0 to get something 3928 that's true only with -std. */ 3929int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3930 3931/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3932 inside strings and character constants. */ 3933#define FOO(x) 'x' 3934int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3935 3936int test (int i, double x); 3937struct s1 {int (*f) (int a);}; 3938struct s2 {int (*f) (double a);}; 3939int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3940int argc; 3941char **argv; 3942int 3943main () 3944{ 3945return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3946 ; 3947 return 0; 3948} 3949_ACEOF 3950for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3951 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3952do 3953 CC="$ac_save_CC $ac_arg" 3954 if ac_fn_c_try_compile "$LINENO"; then : 3955 ac_cv_prog_cc_c89=$ac_arg 3956fi 3957rm -f core conftest.err conftest.$ac_objext 3958 test "x$ac_cv_prog_cc_c89" != "xno" && break 3959done 3960rm -f conftest.$ac_ext 3961CC=$ac_save_CC 3962 3963fi 3964# AC_CACHE_VAL 3965case "x$ac_cv_prog_cc_c89" in 3966 x) 3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3968$as_echo "none needed" >&6; } ;; 3969 xno) 3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3971$as_echo "unsupported" >&6; } ;; 3972 *) 3973 CC="$CC $ac_cv_prog_cc_c89" 3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3975$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3976esac 3977if test "x$ac_cv_prog_cc_c89" != xno; then : 3978 3979fi 3980 3981ac_ext=c 3982ac_cpp='$CPP $CPPFLAGS' 3983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3985ac_compiler_gnu=$ac_cv_c_compiler_gnu 3986DEPDIR="${am__leading_dot}deps" 3987 3988ac_config_commands="$ac_config_commands depfiles" 3989 3990 3991am_make=${MAKE-make} 3992cat > confinc << 'END' 3993am__doit: 3994 @echo this is the am__doit target 3995.PHONY: am__doit 3996END 3997# If we don't find an include directive, just comment out the code. 3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3999$as_echo_n "checking for style of include used by $am_make... " >&6; } 4000am__include="#" 4001am__quote= 4002_am_result=none 4003# First try GNU make style include. 4004echo "include confinc" > confmf 4005# Ignore all kinds of additional output from `make'. 4006case `$am_make -s -f confmf 2> /dev/null` in #( 4007*the\ am__doit\ target*) 4008 am__include=include 4009 am__quote= 4010 _am_result=GNU 4011 ;; 4012esac 4013# Now try BSD make style include. 4014if test "$am__include" = "#"; then 4015 echo '.include "confinc"' > confmf 4016 case `$am_make -s -f confmf 2> /dev/null` in #( 4017 *the\ am__doit\ target*) 4018 am__include=.include 4019 am__quote="\"" 4020 _am_result=BSD 4021 ;; 4022 esac 4023fi 4024 4025 4026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4027$as_echo "$_am_result" >&6; } 4028rm -f confinc confmf 4029 4030# Check whether --enable-dependency-tracking was given. 4031if test "${enable_dependency_tracking+set}" = set; then : 4032 enableval=$enable_dependency_tracking; 4033fi 4034 4035if test "x$enable_dependency_tracking" != xno; then 4036 am_depcomp="$ac_aux_dir/depcomp" 4037 AMDEPBACKSLASH='\' 4038 am__nodep='_no' 4039fi 4040 if test "x$enable_dependency_tracking" != xno; then 4041 AMDEP_TRUE= 4042 AMDEP_FALSE='#' 4043else 4044 AMDEP_TRUE='#' 4045 AMDEP_FALSE= 4046fi 4047 4048 4049 4050depcc="$CC" am_compiler_list= 4051 4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4053$as_echo_n "checking dependency style of $depcc... " >&6; } 4054if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4055 $as_echo_n "(cached) " >&6 4056else 4057 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4058 # We make a subdir and do the tests there. Otherwise we can end up 4059 # making bogus files that we don't know about and never remove. For 4060 # instance it was reported that on HP-UX the gcc test will end up 4061 # making a dummy file named `D' -- because `-MD' means `put the output 4062 # in D'. 4063 rm -rf conftest.dir 4064 mkdir conftest.dir 4065 # Copy depcomp to subdir because otherwise we won't find it if we're 4066 # using a relative directory. 4067 cp "$am_depcomp" conftest.dir 4068 cd conftest.dir 4069 # We will build objects and dependencies in a subdirectory because 4070 # it helps to detect inapplicable dependency modes. For instance 4071 # both Tru64's cc and ICC support -MD to output dependencies as a 4072 # side effect of compilation, but ICC will put the dependencies in 4073 # the current directory while Tru64 will put them in the object 4074 # directory. 4075 mkdir sub 4076 4077 am_cv_CC_dependencies_compiler_type=none 4078 if test "$am_compiler_list" = ""; then 4079 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4080 fi 4081 am__universal=false 4082 case " $depcc " in #( 4083 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4084 esac 4085 4086 for depmode in $am_compiler_list; do 4087 # Setup a source with many dependencies, because some compilers 4088 # like to wrap large dependency lists on column 80 (with \), and 4089 # we should not choose a depcomp mode which is confused by this. 4090 # 4091 # We need to recreate these files for each test, as the compiler may 4092 # overwrite some of them when testing with obscure command lines. 4093 # This happens at least with the AIX C compiler. 4094 : > sub/conftest.c 4095 for i in 1 2 3 4 5 6; do 4096 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4097 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4098 # Solaris 8's {/usr,}/bin/sh. 4099 touch sub/conftst$i.h 4100 done 4101 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4102 4103 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4104 # mode. It turns out that the SunPro C++ compiler does not properly 4105 # handle `-M -o', and we need to detect this. Also, some Intel 4106 # versions had trouble with output in subdirs 4107 am__obj=sub/conftest.${OBJEXT-o} 4108 am__minus_obj="-o $am__obj" 4109 case $depmode in 4110 gcc) 4111 # This depmode causes a compiler race in universal mode. 4112 test "$am__universal" = false || continue 4113 ;; 4114 nosideeffect) 4115 # after this tag, mechanisms are not by side-effect, so they'll 4116 # only be used when explicitly requested 4117 if test "x$enable_dependency_tracking" = xyes; then 4118 continue 4119 else 4120 break 4121 fi 4122 ;; 4123 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4124 # This compiler won't grok `-c -o', but also, the minuso test has 4125 # not run yet. These depmodes are late enough in the game, and 4126 # so weak that their functioning should not be impacted. 4127 am__obj=conftest.${OBJEXT-o} 4128 am__minus_obj= 4129 ;; 4130 none) break ;; 4131 esac 4132 if depmode=$depmode \ 4133 source=sub/conftest.c object=$am__obj \ 4134 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4135 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4136 >/dev/null 2>conftest.err && 4137 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4138 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4139 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4140 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4141 # icc doesn't choke on unknown options, it will just issue warnings 4142 # or remarks (even with -Werror). So we grep stderr for any message 4143 # that says an option was ignored or not supported. 4144 # When given -MP, icc 7.0 and 7.1 complain thusly: 4145 # icc: Command line warning: ignoring option '-M'; no argument required 4146 # The diagnosis changed in icc 8.0: 4147 # icc: Command line remark: option '-MP' not supported 4148 if (grep 'ignoring option' conftest.err || 4149 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4150 am_cv_CC_dependencies_compiler_type=$depmode 4151 break 4152 fi 4153 fi 4154 done 4155 4156 cd .. 4157 rm -rf conftest.dir 4158else 4159 am_cv_CC_dependencies_compiler_type=none 4160fi 4161 4162fi 4163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4164$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4165CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4166 4167 if 4168 test "x$enable_dependency_tracking" != xno \ 4169 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4170 am__fastdepCC_TRUE= 4171 am__fastdepCC_FALSE='#' 4172else 4173 am__fastdepCC_TRUE='#' 4174 am__fastdepCC_FALSE= 4175fi 4176 4177 4178# By default we simply use the C compiler to build assembly code. 4179 4180test "${CCAS+set}" = set || CCAS=$CC 4181test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 4182 4183 4184 4185depcc="$CCAS" am_compiler_list= 4186 4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4188$as_echo_n "checking dependency style of $depcc... " >&6; } 4189if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then : 4190 $as_echo_n "(cached) " >&6 4191else 4192 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4193 # We make a subdir and do the tests there. Otherwise we can end up 4194 # making bogus files that we don't know about and never remove. For 4195 # instance it was reported that on HP-UX the gcc test will end up 4196 # making a dummy file named `D' -- because `-MD' means `put the output 4197 # in D'. 4198 rm -rf conftest.dir 4199 mkdir conftest.dir 4200 # Copy depcomp to subdir because otherwise we won't find it if we're 4201 # using a relative directory. 4202 cp "$am_depcomp" conftest.dir 4203 cd conftest.dir 4204 # We will build objects and dependencies in a subdirectory because 4205 # it helps to detect inapplicable dependency modes. For instance 4206 # both Tru64's cc and ICC support -MD to output dependencies as a 4207 # side effect of compilation, but ICC will put the dependencies in 4208 # the current directory while Tru64 will put them in the object 4209 # directory. 4210 mkdir sub 4211 4212 am_cv_CCAS_dependencies_compiler_type=none 4213 if test "$am_compiler_list" = ""; then 4214 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4215 fi 4216 am__universal=false 4217 4218 4219 for depmode in $am_compiler_list; do 4220 # Setup a source with many dependencies, because some compilers 4221 # like to wrap large dependency lists on column 80 (with \), and 4222 # we should not choose a depcomp mode which is confused by this. 4223 # 4224 # We need to recreate these files for each test, as the compiler may 4225 # overwrite some of them when testing with obscure command lines. 4226 # This happens at least with the AIX C compiler. 4227 : > sub/conftest.c 4228 for i in 1 2 3 4 5 6; do 4229 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4230 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4231 # Solaris 8's {/usr,}/bin/sh. 4232 touch sub/conftst$i.h 4233 done 4234 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4235 4236 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4237 # mode. It turns out that the SunPro C++ compiler does not properly 4238 # handle `-M -o', and we need to detect this. Also, some Intel 4239 # versions had trouble with output in subdirs 4240 am__obj=sub/conftest.${OBJEXT-o} 4241 am__minus_obj="-o $am__obj" 4242 case $depmode in 4243 gcc) 4244 # This depmode causes a compiler race in universal mode. 4245 test "$am__universal" = false || continue 4246 ;; 4247 nosideeffect) 4248 # after this tag, mechanisms are not by side-effect, so they'll 4249 # only be used when explicitly requested 4250 if test "x$enable_dependency_tracking" = xyes; then 4251 continue 4252 else 4253 break 4254 fi 4255 ;; 4256 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4257 # This compiler won't grok `-c -o', but also, the minuso test has 4258 # not run yet. These depmodes are late enough in the game, and 4259 # so weak that their functioning should not be impacted. 4260 am__obj=conftest.${OBJEXT-o} 4261 am__minus_obj= 4262 ;; 4263 none) break ;; 4264 esac 4265 if depmode=$depmode \ 4266 source=sub/conftest.c object=$am__obj \ 4267 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4268 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4269 >/dev/null 2>conftest.err && 4270 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4271 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4272 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4273 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4274 # icc doesn't choke on unknown options, it will just issue warnings 4275 # or remarks (even with -Werror). So we grep stderr for any message 4276 # that says an option was ignored or not supported. 4277 # When given -MP, icc 7.0 and 7.1 complain thusly: 4278 # icc: Command line warning: ignoring option '-M'; no argument required 4279 # The diagnosis changed in icc 8.0: 4280 # icc: Command line remark: option '-MP' not supported 4281 if (grep 'ignoring option' conftest.err || 4282 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4283 am_cv_CCAS_dependencies_compiler_type=$depmode 4284 break 4285 fi 4286 fi 4287 done 4288 4289 cd .. 4290 rm -rf conftest.dir 4291else 4292 am_cv_CCAS_dependencies_compiler_type=none 4293fi 4294 4295fi 4296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 4297$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } 4298CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 4299 4300 if 4301 test "x$enable_dependency_tracking" != xno \ 4302 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 4303 am__fastdepCCAS_TRUE= 4304 am__fastdepCCAS_FALSE='#' 4305else 4306 am__fastdepCCAS_TRUE='#' 4307 am__fastdepCCAS_FALSE= 4308fi 4309 4310 4311 4312 4313 4314 4315# In order to override CFLAGS_FOR_TARGET, all of our special flags go 4316# in XCFLAGS. But we need them in CFLAGS during configury. So put them 4317# in both places for now and restore CFLAGS at the end of config. 4318save_CFLAGS="$CFLAGS" 4319 4320# Find other programs we need. 4321if test -n "$ac_tool_prefix"; then 4322 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4323set dummy ${ac_tool_prefix}ar; ac_word=$2 4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4325$as_echo_n "checking for $ac_word... " >&6; } 4326if test "${ac_cv_prog_AR+set}" = set; then : 4327 $as_echo_n "(cached) " >&6 4328else 4329 if test -n "$AR"; then 4330 ac_cv_prog_AR="$AR" # Let the user override the test. 4331else 4332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4333for as_dir in $PATH 4334do 4335 IFS=$as_save_IFS 4336 test -z "$as_dir" && as_dir=. 4337 for ac_exec_ext in '' $ac_executable_extensions; do 4338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4339 ac_cv_prog_AR="${ac_tool_prefix}ar" 4340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4341 break 2 4342 fi 4343done 4344 done 4345IFS=$as_save_IFS 4346 4347fi 4348fi 4349AR=$ac_cv_prog_AR 4350if test -n "$AR"; then 4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4352$as_echo "$AR" >&6; } 4353else 4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4355$as_echo "no" >&6; } 4356fi 4357 4358 4359fi 4360if test -z "$ac_cv_prog_AR"; then 4361 ac_ct_AR=$AR 4362 # Extract the first word of "ar", so it can be a program name with args. 4363set dummy ar; ac_word=$2 4364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4365$as_echo_n "checking for $ac_word... " >&6; } 4366if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 4367 $as_echo_n "(cached) " >&6 4368else 4369 if test -n "$ac_ct_AR"; then 4370 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4371else 4372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4373for as_dir in $PATH 4374do 4375 IFS=$as_save_IFS 4376 test -z "$as_dir" && as_dir=. 4377 for ac_exec_ext in '' $ac_executable_extensions; do 4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4379 ac_cv_prog_ac_ct_AR="ar" 4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4381 break 2 4382 fi 4383done 4384 done 4385IFS=$as_save_IFS 4386 4387fi 4388fi 4389ac_ct_AR=$ac_cv_prog_ac_ct_AR 4390if test -n "$ac_ct_AR"; then 4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4392$as_echo "$ac_ct_AR" >&6; } 4393else 4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4395$as_echo "no" >&6; } 4396fi 4397 4398 if test "x$ac_ct_AR" = x; then 4399 AR="" 4400 else 4401 case $cross_compiling:$ac_tool_warned in 4402yes:) 4403{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4405ac_tool_warned=yes ;; 4406esac 4407 AR=$ac_ct_AR 4408 fi 4409else 4410 AR="$ac_cv_prog_AR" 4411fi 4412 4413if test -n "$ac_tool_prefix"; then 4414 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. 4415set dummy ${ac_tool_prefix}nm; ac_word=$2 4416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4417$as_echo_n "checking for $ac_word... " >&6; } 4418if test "${ac_cv_prog_NM+set}" = set; then : 4419 $as_echo_n "(cached) " >&6 4420else 4421 if test -n "$NM"; then 4422 ac_cv_prog_NM="$NM" # Let the user override the test. 4423else 4424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4425for as_dir in $PATH 4426do 4427 IFS=$as_save_IFS 4428 test -z "$as_dir" && as_dir=. 4429 for ac_exec_ext in '' $ac_executable_extensions; do 4430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4431 ac_cv_prog_NM="${ac_tool_prefix}nm" 4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4433 break 2 4434 fi 4435done 4436 done 4437IFS=$as_save_IFS 4438 4439fi 4440fi 4441NM=$ac_cv_prog_NM 4442if test -n "$NM"; then 4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 4444$as_echo "$NM" >&6; } 4445else 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4447$as_echo "no" >&6; } 4448fi 4449 4450 4451fi 4452if test -z "$ac_cv_prog_NM"; then 4453 ac_ct_NM=$NM 4454 # Extract the first word of "nm", so it can be a program name with args. 4455set dummy nm; ac_word=$2 4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4457$as_echo_n "checking for $ac_word... " >&6; } 4458if test "${ac_cv_prog_ac_ct_NM+set}" = set; then : 4459 $as_echo_n "(cached) " >&6 4460else 4461 if test -n "$ac_ct_NM"; then 4462 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 4463else 4464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4465for as_dir in $PATH 4466do 4467 IFS=$as_save_IFS 4468 test -z "$as_dir" && as_dir=. 4469 for ac_exec_ext in '' $ac_executable_extensions; do 4470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4471 ac_cv_prog_ac_ct_NM="nm" 4472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4473 break 2 4474 fi 4475done 4476 done 4477IFS=$as_save_IFS 4478 4479fi 4480fi 4481ac_ct_NM=$ac_cv_prog_ac_ct_NM 4482if test -n "$ac_ct_NM"; then 4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 4484$as_echo "$ac_ct_NM" >&6; } 4485else 4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4487$as_echo "no" >&6; } 4488fi 4489 4490 if test "x$ac_ct_NM" = x; then 4491 NM="" 4492 else 4493 case $cross_compiling:$ac_tool_warned in 4494yes:) 4495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4497ac_tool_warned=yes ;; 4498esac 4499 NM=$ac_ct_NM 4500 fi 4501else 4502 NM="$ac_cv_prog_NM" 4503fi 4504 4505if test -n "$ac_tool_prefix"; then 4506 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4507set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4509$as_echo_n "checking for $ac_word... " >&6; } 4510if test "${ac_cv_prog_RANLIB+set}" = set; then : 4511 $as_echo_n "(cached) " >&6 4512else 4513 if test -n "$RANLIB"; then 4514 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4515else 4516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4517for as_dir in $PATH 4518do 4519 IFS=$as_save_IFS 4520 test -z "$as_dir" && as_dir=. 4521 for ac_exec_ext in '' $ac_executable_extensions; do 4522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4523 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4525 break 2 4526 fi 4527done 4528 done 4529IFS=$as_save_IFS 4530 4531fi 4532fi 4533RANLIB=$ac_cv_prog_RANLIB 4534if test -n "$RANLIB"; then 4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4536$as_echo "$RANLIB" >&6; } 4537else 4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4539$as_echo "no" >&6; } 4540fi 4541 4542 4543fi 4544if test -z "$ac_cv_prog_RANLIB"; then 4545 ac_ct_RANLIB=$RANLIB 4546 # Extract the first word of "ranlib", so it can be a program name with args. 4547set dummy ranlib; ac_word=$2 4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4549$as_echo_n "checking for $ac_word... " >&6; } 4550if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 4551 $as_echo_n "(cached) " >&6 4552else 4553 if test -n "$ac_ct_RANLIB"; then 4554 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4555else 4556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4557for as_dir in $PATH 4558do 4559 IFS=$as_save_IFS 4560 test -z "$as_dir" && as_dir=. 4561 for ac_exec_ext in '' $ac_executable_extensions; do 4562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4563 ac_cv_prog_ac_ct_RANLIB="ranlib" 4564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4565 break 2 4566 fi 4567done 4568 done 4569IFS=$as_save_IFS 4570 4571fi 4572fi 4573ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4574if test -n "$ac_ct_RANLIB"; then 4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4576$as_echo "$ac_ct_RANLIB" >&6; } 4577else 4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4579$as_echo "no" >&6; } 4580fi 4581 4582 if test "x$ac_ct_RANLIB" = x; then 4583 RANLIB="ranlib-not-found-in-path-error" 4584 else 4585 case $cross_compiling:$ac_tool_warned in 4586yes:) 4587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4589ac_tool_warned=yes ;; 4590esac 4591 RANLIB=$ac_ct_RANLIB 4592 fi 4593else 4594 RANLIB="$ac_cv_prog_RANLIB" 4595fi 4596 4597# Extract the first word of "perl", so it can be a program name with args. 4598set dummy perl; ac_word=$2 4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4600$as_echo_n "checking for $ac_word... " >&6; } 4601if test "${ac_cv_path_PERL+set}" = set; then : 4602 $as_echo_n "(cached) " >&6 4603else 4604 case $PERL in 4605 [\\/]* | ?:[\\/]*) 4606 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 4607 ;; 4608 *) 4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4610for as_dir in $PATH 4611do 4612 IFS=$as_save_IFS 4613 test -z "$as_dir" && as_dir=. 4614 for ac_exec_ext in '' $ac_executable_extensions; do 4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4616 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4618 break 2 4619 fi 4620done 4621 done 4622IFS=$as_save_IFS 4623 4624 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error" 4625 ;; 4626esac 4627fi 4628PERL=$ac_cv_path_PERL 4629if test -n "$PERL"; then 4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 4631$as_echo "$PERL" >&6; } 4632else 4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4634$as_echo "no" >&6; } 4635fi 4636 4637 4638 4639 4640# Configure libtool 4641case `pwd` in 4642 *\ * | *\ *) 4643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4644$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4645esac 4646 4647 4648 4649macro_version='2.2.7a' 4650macro_revision='1.3134' 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664ltmain="$ac_aux_dir/ltmain.sh" 4665 4666# Backslashify metacharacters that are still active within 4667# double-quoted strings. 4668sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4669 4670# Same as above, but do not quote variable references. 4671double_quote_subst='s/\(["`\\]\)/\\\1/g' 4672 4673# Sed substitution to delay expansion of an escaped shell variable in a 4674# double_quote_subst'ed string. 4675delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4676 4677# Sed substitution to delay expansion of an escaped single quote. 4678delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4679 4680# Sed substitution to avoid accidental globbing in evaled expressions 4681no_glob_subst='s/\*/\\\*/g' 4682 4683ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4684ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4685ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4686 4687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4688$as_echo_n "checking how to print strings... " >&6; } 4689# Test print first, because it will be a builtin if present. 4690if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 4691 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4692 ECHO='print -r --' 4693elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4694 ECHO='printf %s\n' 4695else 4696 # Use this function as a fallback that always works. 4697 func_fallback_echo () 4698 { 4699 eval 'cat <<_LTECHO_EOF 4700$1 4701_LTECHO_EOF' 4702 } 4703 ECHO='func_fallback_echo' 4704fi 4705 4706# func_echo_all arg... 4707# Invoke $ECHO with all args, space-separated. 4708func_echo_all () 4709{ 4710 $ECHO "" 4711} 4712 4713case "$ECHO" in 4714 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4715$as_echo "printf" >&6; } ;; 4716 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4717$as_echo "print -r" >&6; } ;; 4718 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4719$as_echo "cat" >&6; } ;; 4720esac 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4736$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4737if test "${ac_cv_path_SED+set}" = set; then : 4738 $as_echo_n "(cached) " >&6 4739else 4740 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4741 for ac_i in 1 2 3 4 5 6 7; do 4742 ac_script="$ac_script$as_nl$ac_script" 4743 done 4744 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4745 { ac_script=; unset ac_script;} 4746 if test -z "$SED"; then 4747 ac_path_SED_found=false 4748 # Loop through the user's path and test for each of PROGNAME-LIST 4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4750for as_dir in $PATH 4751do 4752 IFS=$as_save_IFS 4753 test -z "$as_dir" && as_dir=. 4754 for ac_prog in sed gsed; do 4755 for ac_exec_ext in '' $ac_executable_extensions; do 4756 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4757 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4758# Check for GNU ac_path_SED and select it if it is found. 4759 # Check for GNU $ac_path_SED 4760case `"$ac_path_SED" --version 2>&1` in 4761*GNU*) 4762 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4763*) 4764 ac_count=0 4765 $as_echo_n 0123456789 >"conftest.in" 4766 while : 4767 do 4768 cat "conftest.in" "conftest.in" >"conftest.tmp" 4769 mv "conftest.tmp" "conftest.in" 4770 cp "conftest.in" "conftest.nl" 4771 $as_echo '' >> "conftest.nl" 4772 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4773 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4774 as_fn_arith $ac_count + 1 && ac_count=$as_val 4775 if test $ac_count -gt ${ac_path_SED_max-0}; then 4776 # Best one so far, save it but keep looking for a better one 4777 ac_cv_path_SED="$ac_path_SED" 4778 ac_path_SED_max=$ac_count 4779 fi 4780 # 10*(2^10) chars as input seems more than enough 4781 test $ac_count -gt 10 && break 4782 done 4783 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4784esac 4785 4786 $ac_path_SED_found && break 3 4787 done 4788 done 4789 done 4790IFS=$as_save_IFS 4791 if test -z "$ac_cv_path_SED"; then 4792 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 4793 fi 4794else 4795 ac_cv_path_SED=$SED 4796fi 4797 4798fi 4799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4800$as_echo "$ac_cv_path_SED" >&6; } 4801 SED="$ac_cv_path_SED" 4802 rm -f conftest.sed 4803 4804test -z "$SED" && SED=sed 4805Xsed="$SED -e 1s/^X//" 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4818$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4819if test "${ac_cv_path_GREP+set}" = set; then : 4820 $as_echo_n "(cached) " >&6 4821else 4822 if test -z "$GREP"; then 4823 ac_path_GREP_found=false 4824 # Loop through the user's path and test for each of PROGNAME-LIST 4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4826for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4827do 4828 IFS=$as_save_IFS 4829 test -z "$as_dir" && as_dir=. 4830 for ac_prog in grep ggrep; do 4831 for ac_exec_ext in '' $ac_executable_extensions; do 4832 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4833 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4834# Check for GNU ac_path_GREP and select it if it is found. 4835 # Check for GNU $ac_path_GREP 4836case `"$ac_path_GREP" --version 2>&1` in 4837*GNU*) 4838 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4839*) 4840 ac_count=0 4841 $as_echo_n 0123456789 >"conftest.in" 4842 while : 4843 do 4844 cat "conftest.in" "conftest.in" >"conftest.tmp" 4845 mv "conftest.tmp" "conftest.in" 4846 cp "conftest.in" "conftest.nl" 4847 $as_echo 'GREP' >> "conftest.nl" 4848 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4849 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4850 as_fn_arith $ac_count + 1 && ac_count=$as_val 4851 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4852 # Best one so far, save it but keep looking for a better one 4853 ac_cv_path_GREP="$ac_path_GREP" 4854 ac_path_GREP_max=$ac_count 4855 fi 4856 # 10*(2^10) chars as input seems more than enough 4857 test $ac_count -gt 10 && break 4858 done 4859 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4860esac 4861 4862 $ac_path_GREP_found && break 3 4863 done 4864 done 4865 done 4866IFS=$as_save_IFS 4867 if test -z "$ac_cv_path_GREP"; then 4868 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4869 fi 4870else 4871 ac_cv_path_GREP=$GREP 4872fi 4873 4874fi 4875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4876$as_echo "$ac_cv_path_GREP" >&6; } 4877 GREP="$ac_cv_path_GREP" 4878 4879 4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4881$as_echo_n "checking for egrep... " >&6; } 4882if test "${ac_cv_path_EGREP+set}" = set; then : 4883 $as_echo_n "(cached) " >&6 4884else 4885 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4886 then ac_cv_path_EGREP="$GREP -E" 4887 else 4888 if test -z "$EGREP"; then 4889 ac_path_EGREP_found=false 4890 # Loop through the user's path and test for each of PROGNAME-LIST 4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4892for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4893do 4894 IFS=$as_save_IFS 4895 test -z "$as_dir" && as_dir=. 4896 for ac_prog in egrep; do 4897 for ac_exec_ext in '' $ac_executable_extensions; do 4898 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4899 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4900# Check for GNU ac_path_EGREP and select it if it is found. 4901 # Check for GNU $ac_path_EGREP 4902case `"$ac_path_EGREP" --version 2>&1` in 4903*GNU*) 4904 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4905*) 4906 ac_count=0 4907 $as_echo_n 0123456789 >"conftest.in" 4908 while : 4909 do 4910 cat "conftest.in" "conftest.in" >"conftest.tmp" 4911 mv "conftest.tmp" "conftest.in" 4912 cp "conftest.in" "conftest.nl" 4913 $as_echo 'EGREP' >> "conftest.nl" 4914 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4916 as_fn_arith $ac_count + 1 && ac_count=$as_val 4917 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4918 # Best one so far, save it but keep looking for a better one 4919 ac_cv_path_EGREP="$ac_path_EGREP" 4920 ac_path_EGREP_max=$ac_count 4921 fi 4922 # 10*(2^10) chars as input seems more than enough 4923 test $ac_count -gt 10 && break 4924 done 4925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4926esac 4927 4928 $ac_path_EGREP_found && break 3 4929 done 4930 done 4931 done 4932IFS=$as_save_IFS 4933 if test -z "$ac_cv_path_EGREP"; then 4934 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4935 fi 4936else 4937 ac_cv_path_EGREP=$EGREP 4938fi 4939 4940 fi 4941fi 4942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4943$as_echo "$ac_cv_path_EGREP" >&6; } 4944 EGREP="$ac_cv_path_EGREP" 4945 4946 4947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4948$as_echo_n "checking for fgrep... " >&6; } 4949if test "${ac_cv_path_FGREP+set}" = set; then : 4950 $as_echo_n "(cached) " >&6 4951else 4952 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4953 then ac_cv_path_FGREP="$GREP -F" 4954 else 4955 if test -z "$FGREP"; then 4956 ac_path_FGREP_found=false 4957 # Loop through the user's path and test for each of PROGNAME-LIST 4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4959for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4960do 4961 IFS=$as_save_IFS 4962 test -z "$as_dir" && as_dir=. 4963 for ac_prog in fgrep; do 4964 for ac_exec_ext in '' $ac_executable_extensions; do 4965 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4966 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4967# Check for GNU ac_path_FGREP and select it if it is found. 4968 # Check for GNU $ac_path_FGREP 4969case `"$ac_path_FGREP" --version 2>&1` in 4970*GNU*) 4971 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4972*) 4973 ac_count=0 4974 $as_echo_n 0123456789 >"conftest.in" 4975 while : 4976 do 4977 cat "conftest.in" "conftest.in" >"conftest.tmp" 4978 mv "conftest.tmp" "conftest.in" 4979 cp "conftest.in" "conftest.nl" 4980 $as_echo 'FGREP' >> "conftest.nl" 4981 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4983 as_fn_arith $ac_count + 1 && ac_count=$as_val 4984 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4985 # Best one so far, save it but keep looking for a better one 4986 ac_cv_path_FGREP="$ac_path_FGREP" 4987 ac_path_FGREP_max=$ac_count 4988 fi 4989 # 10*(2^10) chars as input seems more than enough 4990 test $ac_count -gt 10 && break 4991 done 4992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4993esac 4994 4995 $ac_path_FGREP_found && break 3 4996 done 4997 done 4998 done 4999IFS=$as_save_IFS 5000 if test -z "$ac_cv_path_FGREP"; then 5001 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5002 fi 5003else 5004 ac_cv_path_FGREP=$FGREP 5005fi 5006 5007 fi 5008fi 5009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5010$as_echo "$ac_cv_path_FGREP" >&6; } 5011 FGREP="$ac_cv_path_FGREP" 5012 5013 5014test -z "$GREP" && GREP=grep 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034# Check whether --with-gnu-ld was given. 5035if test "${with_gnu_ld+set}" = set; then : 5036 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5037else 5038 with_gnu_ld=no 5039fi 5040 5041ac_prog=ld 5042if test "$GCC" = yes; then 5043 # Check if gcc -print-prog-name=ld gives a path. 5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5045$as_echo_n "checking for ld used by $CC... " >&6; } 5046 case $host in 5047 *-*-mingw*) 5048 # gcc leaves a trailing carriage return which upsets mingw 5049 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5050 *) 5051 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5052 esac 5053 case $ac_prog in 5054 # Accept absolute paths. 5055 [\\/]* | ?:[\\/]*) 5056 re_direlt='/[^/][^/]*/\.\./' 5057 # Canonicalize the pathname of ld 5058 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5059 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5060 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5061 done 5062 test -z "$LD" && LD="$ac_prog" 5063 ;; 5064 "") 5065 # If it fails, then pretend we aren't using GCC. 5066 ac_prog=ld 5067 ;; 5068 *) 5069 # If it is relative, then search for the first ld in PATH. 5070 with_gnu_ld=unknown 5071 ;; 5072 esac 5073elif test "$with_gnu_ld" = yes; then 5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5075$as_echo_n "checking for GNU ld... " >&6; } 5076else 5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5078$as_echo_n "checking for non-GNU ld... " >&6; } 5079fi 5080if test "${lt_cv_path_LD+set}" = set; then : 5081 $as_echo_n "(cached) " >&6 5082else 5083 if test -z "$LD"; then 5084 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5085 for ac_dir in $PATH; do 5086 IFS="$lt_save_ifs" 5087 test -z "$ac_dir" && ac_dir=. 5088 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5089 lt_cv_path_LD="$ac_dir/$ac_prog" 5090 # Check to see if the program is GNU ld. I'd rather use --version, 5091 # but apparently some variants of GNU ld only accept -v. 5092 # Break only if it was the GNU/non-GNU ld that we prefer. 5093 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5094 *GNU* | *'with BFD'*) 5095 test "$with_gnu_ld" != no && break 5096 ;; 5097 *) 5098 test "$with_gnu_ld" != yes && break 5099 ;; 5100 esac 5101 fi 5102 done 5103 IFS="$lt_save_ifs" 5104else 5105 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5106fi 5107fi 5108 5109LD="$lt_cv_path_LD" 5110if test -n "$LD"; then 5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5112$as_echo "$LD" >&6; } 5113else 5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5115$as_echo "no" >&6; } 5116fi 5117test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5119$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5120if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5121 $as_echo_n "(cached) " >&6 5122else 5123 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5124case `$LD -v 2>&1 </dev/null` in 5125*GNU* | *'with BFD'*) 5126 lt_cv_prog_gnu_ld=yes 5127 ;; 5128*) 5129 lt_cv_prog_gnu_ld=no 5130 ;; 5131esac 5132fi 5133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5134$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5135with_gnu_ld=$lt_cv_prog_gnu_ld 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5146$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5147if test "${lt_cv_path_NM+set}" = set; then : 5148 $as_echo_n "(cached) " >&6 5149else 5150 if test -n "$NM"; then 5151 # Let the user override the test. 5152 lt_cv_path_NM="$NM" 5153else 5154 lt_nm_to_check="${ac_tool_prefix}nm" 5155 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5156 lt_nm_to_check="$lt_nm_to_check nm" 5157 fi 5158 for lt_tmp_nm in $lt_nm_to_check; do 5159 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5160 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5161 IFS="$lt_save_ifs" 5162 test -z "$ac_dir" && ac_dir=. 5163 tmp_nm="$ac_dir/$lt_tmp_nm" 5164 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5165 # Check to see if the nm accepts a BSD-compat flag. 5166 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5167 # nm: unknown option "B" ignored 5168 # Tru64's nm complains that /dev/null is an invalid object file 5169 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5170 */dev/null* | *'Invalid file or object type'*) 5171 lt_cv_path_NM="$tmp_nm -B" 5172 break 5173 ;; 5174 *) 5175 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5176 */dev/null*) 5177 lt_cv_path_NM="$tmp_nm -p" 5178 break 5179 ;; 5180 *) 5181 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5182 continue # so that we can try to find one that supports BSD flags 5183 ;; 5184 esac 5185 ;; 5186 esac 5187 fi 5188 done 5189 IFS="$lt_save_ifs" 5190 done 5191 : ${lt_cv_path_NM=no} 5192fi 5193fi 5194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5195$as_echo "$lt_cv_path_NM" >&6; } 5196if test "$lt_cv_path_NM" != "no"; then 5197 NM="$lt_cv_path_NM" 5198else 5199 # Didn't find any BSD compatible name lister, look for dumpbin. 5200 if test -n "$DUMPBIN"; then : 5201 # Let the user override the test. 5202 else 5203 if test -n "$ac_tool_prefix"; then 5204 for ac_prog in dumpbin "link -dump" 5205 do 5206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5207set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5209$as_echo_n "checking for $ac_word... " >&6; } 5210if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5211 $as_echo_n "(cached) " >&6 5212else 5213 if test -n "$DUMPBIN"; then 5214 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5215else 5216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5217for as_dir in $PATH 5218do 5219 IFS=$as_save_IFS 5220 test -z "$as_dir" && as_dir=. 5221 for ac_exec_ext in '' $ac_executable_extensions; do 5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5223 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5225 break 2 5226 fi 5227done 5228 done 5229IFS=$as_save_IFS 5230 5231fi 5232fi 5233DUMPBIN=$ac_cv_prog_DUMPBIN 5234if test -n "$DUMPBIN"; then 5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5236$as_echo "$DUMPBIN" >&6; } 5237else 5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5239$as_echo "no" >&6; } 5240fi 5241 5242 5243 test -n "$DUMPBIN" && break 5244 done 5245fi 5246if test -z "$DUMPBIN"; then 5247 ac_ct_DUMPBIN=$DUMPBIN 5248 for ac_prog in dumpbin "link -dump" 5249do 5250 # Extract the first word of "$ac_prog", so it can be a program name with args. 5251set dummy $ac_prog; ac_word=$2 5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5253$as_echo_n "checking for $ac_word... " >&6; } 5254if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 5255 $as_echo_n "(cached) " >&6 5256else 5257 if test -n "$ac_ct_DUMPBIN"; then 5258 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5259else 5260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5261for as_dir in $PATH 5262do 5263 IFS=$as_save_IFS 5264 test -z "$as_dir" && as_dir=. 5265 for ac_exec_ext in '' $ac_executable_extensions; do 5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5267 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5269 break 2 5270 fi 5271done 5272 done 5273IFS=$as_save_IFS 5274 5275fi 5276fi 5277ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5278if test -n "$ac_ct_DUMPBIN"; then 5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5280$as_echo "$ac_ct_DUMPBIN" >&6; } 5281else 5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5283$as_echo "no" >&6; } 5284fi 5285 5286 5287 test -n "$ac_ct_DUMPBIN" && break 5288done 5289 5290 if test "x$ac_ct_DUMPBIN" = x; then 5291 DUMPBIN=":" 5292 else 5293 case $cross_compiling:$ac_tool_warned in 5294yes:) 5295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5297ac_tool_warned=yes ;; 5298esac 5299 DUMPBIN=$ac_ct_DUMPBIN 5300 fi 5301fi 5302 5303 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5304 *COFF*) 5305 DUMPBIN="$DUMPBIN -symbols" 5306 ;; 5307 *) 5308 DUMPBIN=: 5309 ;; 5310 esac 5311 fi 5312 5313 if test "$DUMPBIN" != ":"; then 5314 NM="$DUMPBIN" 5315 fi 5316fi 5317test -z "$NM" && NM=nm 5318 5319 5320 5321 5322 5323 5324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5325$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5326if test "${lt_cv_nm_interface+set}" = set; then : 5327 $as_echo_n "(cached) " >&6 5328else 5329 lt_cv_nm_interface="BSD nm" 5330 echo "int some_variable = 0;" > conftest.$ac_ext 5331 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5332 (eval "$ac_compile" 2>conftest.err) 5333 cat conftest.err >&5 5334 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5335 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5336 cat conftest.err >&5 5337 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5338 cat conftest.out >&5 5339 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5340 lt_cv_nm_interface="MS dumpbin" 5341 fi 5342 rm -f conftest* 5343fi 5344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5345$as_echo "$lt_cv_nm_interface" >&6; } 5346 5347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5348$as_echo_n "checking whether ln -s works... " >&6; } 5349LN_S=$as_ln_s 5350if test "$LN_S" = "ln -s"; then 5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5352$as_echo "yes" >&6; } 5353else 5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5355$as_echo "no, using $LN_S" >&6; } 5356fi 5357 5358# find the maximum length of command line arguments 5359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5360$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5361if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5362 $as_echo_n "(cached) " >&6 5363else 5364 i=0 5365 teststring="ABCD" 5366 5367 case $build_os in 5368 msdosdjgpp*) 5369 # On DJGPP, this test can blow up pretty badly due to problems in libc 5370 # (any single argument exceeding 2000 bytes causes a buffer overrun 5371 # during glob expansion). Even if it were fixed, the result of this 5372 # check would be larger than it should be. 5373 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5374 ;; 5375 5376 gnu*) 5377 # Under GNU Hurd, this test is not required because there is 5378 # no limit to the length of command line arguments. 5379 # Libtool will interpret -1 as no limit whatsoever 5380 lt_cv_sys_max_cmd_len=-1; 5381 ;; 5382 5383 cygwin* | mingw* | cegcc*) 5384 # On Win9x/ME, this test blows up -- it succeeds, but takes 5385 # about 5 minutes as the teststring grows exponentially. 5386 # Worse, since 9x/ME are not pre-emptively multitasking, 5387 # you end up with a "frozen" computer, even though with patience 5388 # the test eventually succeeds (with a max line length of 256k). 5389 # Instead, let's just punt: use the minimum linelength reported by 5390 # all of the supported platforms: 8192 (on NT/2K/XP). 5391 lt_cv_sys_max_cmd_len=8192; 5392 ;; 5393 5394 mint*) 5395 # On MiNT this can take a long time and run out of memory. 5396 lt_cv_sys_max_cmd_len=8192; 5397 ;; 5398 5399 amigaos*) 5400 # On AmigaOS with pdksh, this test takes hours, literally. 5401 # So we just punt and use a minimum line length of 8192. 5402 lt_cv_sys_max_cmd_len=8192; 5403 ;; 5404 5405 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5406 # This has been around since 386BSD, at least. Likely further. 5407 if test -x /sbin/sysctl; then 5408 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5409 elif test -x /usr/sbin/sysctl; then 5410 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5411 else 5412 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5413 fi 5414 # And add a safety zone 5415 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5416 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5417 ;; 5418 5419 interix*) 5420 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5421 lt_cv_sys_max_cmd_len=196608 5422 ;; 5423 5424 osf*) 5425 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5426 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5427 # nice to cause kernel panics so lets avoid the loop below. 5428 # First set a reasonable default. 5429 lt_cv_sys_max_cmd_len=16384 5430 # 5431 if test -x /sbin/sysconfig; then 5432 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5433 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5434 esac 5435 fi 5436 ;; 5437 sco3.2v5*) 5438 lt_cv_sys_max_cmd_len=102400 5439 ;; 5440 sysv5* | sco5v6* | sysv4.2uw2*) 5441 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5442 if test -n "$kargmax"; then 5443 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5444 else 5445 lt_cv_sys_max_cmd_len=32768 5446 fi 5447 ;; 5448 *) 5449 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5450 if test -n "$lt_cv_sys_max_cmd_len"; then 5451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5453 else 5454 # Make teststring a little bigger before we do anything with it. 5455 # a 1K string should be a reasonable start. 5456 for i in 1 2 3 4 5 6 7 8 ; do 5457 teststring=$teststring$teststring 5458 done 5459 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5460 # If test is not a shell built-in, we'll probably end up computing a 5461 # maximum length that is only half of the actual maximum length, but 5462 # we can't tell. 5463 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5464 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5465 test $i != 17 # 1/2 MB should be enough 5466 do 5467 i=`expr $i + 1` 5468 teststring=$teststring$teststring 5469 done 5470 # Only check the string length outside the loop. 5471 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5472 teststring= 5473 # Add a significant safety factor because C++ compilers can tack on 5474 # massive amounts of additional arguments before passing them to the 5475 # linker. It appears as though 1/2 is a usable value. 5476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5477 fi 5478 ;; 5479 esac 5480 5481fi 5482 5483if test -n $lt_cv_sys_max_cmd_len ; then 5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5485$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5486else 5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5488$as_echo "none" >&6; } 5489fi 5490max_cmd_len=$lt_cv_sys_max_cmd_len 5491 5492 5493 5494 5495 5496 5497: ${CP="cp -f"} 5498: ${MV="mv -f"} 5499: ${RM="rm -f"} 5500 5501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5502$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5503# Try some XSI features 5504xsi_shell=no 5505( _lt_dummy="a/b/c" 5506 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5507 = c,a/b,, \ 5508 && eval 'test $(( 1 + 1 )) -eq 2 \ 5509 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5510 && xsi_shell=yes 5511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5512$as_echo "$xsi_shell" >&6; } 5513 5514 5515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5516$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5517lt_shell_append=no 5518( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5519 >/dev/null 2>&1 \ 5520 && lt_shell_append=yes 5521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5522$as_echo "$lt_shell_append" >&6; } 5523 5524 5525if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5526 lt_unset=unset 5527else 5528 lt_unset=false 5529fi 5530 5531 5532 5533 5534 5535# test EBCDIC or ASCII 5536case `echo X|tr X '\101'` in 5537 A) # ASCII based system 5538 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5539 lt_SP2NL='tr \040 \012' 5540 lt_NL2SP='tr \015\012 \040\040' 5541 ;; 5542 *) # EBCDIC based system 5543 lt_SP2NL='tr \100 \n' 5544 lt_NL2SP='tr \r\n \100\100' 5545 ;; 5546esac 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5557$as_echo_n "checking for $LD option to reload object files... " >&6; } 5558if test "${lt_cv_ld_reload_flag+set}" = set; then : 5559 $as_echo_n "(cached) " >&6 5560else 5561 lt_cv_ld_reload_flag='-r' 5562fi 5563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5564$as_echo "$lt_cv_ld_reload_flag" >&6; } 5565reload_flag=$lt_cv_ld_reload_flag 5566case $reload_flag in 5567"" | " "*) ;; 5568*) reload_flag=" $reload_flag" ;; 5569esac 5570reload_cmds='$LD$reload_flag -o $output$reload_objs' 5571case $host_os in 5572 darwin*) 5573 if test "$GCC" = yes; then 5574 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5575 else 5576 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5577 fi 5578 ;; 5579esac 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589if test -n "$ac_tool_prefix"; then 5590 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5591set dummy ${ac_tool_prefix}objdump; ac_word=$2 5592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5593$as_echo_n "checking for $ac_word... " >&6; } 5594if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5595 $as_echo_n "(cached) " >&6 5596else 5597 if test -n "$OBJDUMP"; then 5598 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5599else 5600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5601for as_dir in $PATH 5602do 5603 IFS=$as_save_IFS 5604 test -z "$as_dir" && as_dir=. 5605 for ac_exec_ext in '' $ac_executable_extensions; do 5606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5607 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5609 break 2 5610 fi 5611done 5612 done 5613IFS=$as_save_IFS 5614 5615fi 5616fi 5617OBJDUMP=$ac_cv_prog_OBJDUMP 5618if test -n "$OBJDUMP"; then 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5620$as_echo "$OBJDUMP" >&6; } 5621else 5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5623$as_echo "no" >&6; } 5624fi 5625 5626 5627fi 5628if test -z "$ac_cv_prog_OBJDUMP"; then 5629 ac_ct_OBJDUMP=$OBJDUMP 5630 # Extract the first word of "objdump", so it can be a program name with args. 5631set dummy objdump; ac_word=$2 5632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5633$as_echo_n "checking for $ac_word... " >&6; } 5634if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5635 $as_echo_n "(cached) " >&6 5636else 5637 if test -n "$ac_ct_OBJDUMP"; then 5638 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5639else 5640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5641for as_dir in $PATH 5642do 5643 IFS=$as_save_IFS 5644 test -z "$as_dir" && as_dir=. 5645 for ac_exec_ext in '' $ac_executable_extensions; do 5646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5647 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5649 break 2 5650 fi 5651done 5652 done 5653IFS=$as_save_IFS 5654 5655fi 5656fi 5657ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5658if test -n "$ac_ct_OBJDUMP"; then 5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5660$as_echo "$ac_ct_OBJDUMP" >&6; } 5661else 5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5663$as_echo "no" >&6; } 5664fi 5665 5666 if test "x$ac_ct_OBJDUMP" = x; then 5667 OBJDUMP="false" 5668 else 5669 case $cross_compiling:$ac_tool_warned in 5670yes:) 5671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5673ac_tool_warned=yes ;; 5674esac 5675 OBJDUMP=$ac_ct_OBJDUMP 5676 fi 5677else 5678 OBJDUMP="$ac_cv_prog_OBJDUMP" 5679fi 5680 5681test -z "$OBJDUMP" && OBJDUMP=objdump 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5692$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5693if test "${lt_cv_deplibs_check_method+set}" = set; then : 5694 $as_echo_n "(cached) " >&6 5695else 5696 lt_cv_file_magic_cmd='$MAGIC_CMD' 5697lt_cv_file_magic_test_file= 5698lt_cv_deplibs_check_method='unknown' 5699# Need to set the preceding variable on all platforms that support 5700# interlibrary dependencies. 5701# 'none' -- dependencies not supported. 5702# `unknown' -- same as none, but documents that we really don't know. 5703# 'pass_all' -- all dependencies passed with no checks. 5704# 'test_compile' -- check by making test program. 5705# 'file_magic [[regex]]' -- check by looking for files in library path 5706# which responds to the $file_magic_cmd with a given extended regex. 5707# If you have `file' or equivalent on your system and you're not sure 5708# whether `pass_all' will *always* work, you probably want this one. 5709 5710case $host_os in 5711aix[4-9]*) 5712 lt_cv_deplibs_check_method=pass_all 5713 ;; 5714 5715beos*) 5716 lt_cv_deplibs_check_method=pass_all 5717 ;; 5718 5719bsdi[45]*) 5720 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5721 lt_cv_file_magic_cmd='/usr/bin/file -L' 5722 lt_cv_file_magic_test_file=/shlib/libc.so 5723 ;; 5724 5725cygwin*) 5726 # func_win32_libid is a shell function defined in ltmain.sh 5727 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5728 lt_cv_file_magic_cmd='func_win32_libid' 5729 ;; 5730 5731mingw* | pw32*) 5732 # Base MSYS/MinGW do not provide the 'file' command needed by 5733 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5734 # unless we find 'file', for example because we are cross-compiling. 5735 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5736 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5737 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5738 lt_cv_file_magic_cmd='func_win32_libid' 5739 else 5740 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5741 lt_cv_file_magic_cmd='$OBJDUMP -f' 5742 fi 5743 ;; 5744 5745cegcc*) 5746 # use the weaker test based on 'objdump'. See mingw*. 5747 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5748 lt_cv_file_magic_cmd='$OBJDUMP -f' 5749 ;; 5750 5751darwin* | rhapsody*) 5752 lt_cv_deplibs_check_method=pass_all 5753 ;; 5754 5755freebsd* | dragonfly*) 5756 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5757 case $host_cpu in 5758 i*86 ) 5759 # Not sure whether the presence of OpenBSD here was a mistake. 5760 # Let's accept both of them until this is cleared up. 5761 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5762 lt_cv_file_magic_cmd=/usr/bin/file 5763 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5764 ;; 5765 esac 5766 else 5767 lt_cv_deplibs_check_method=pass_all 5768 fi 5769 ;; 5770 5771gnu*) 5772 lt_cv_deplibs_check_method=pass_all 5773 ;; 5774 5775haiku*) 5776 lt_cv_deplibs_check_method=pass_all 5777 ;; 5778 5779hpux10.20* | hpux11*) 5780 lt_cv_file_magic_cmd=/usr/bin/file 5781 case $host_cpu in 5782 ia64*) 5783 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5784 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5785 ;; 5786 hppa*64*) 5787 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]' 5788 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5789 ;; 5790 *) 5791 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5792 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5793 ;; 5794 esac 5795 ;; 5796 5797interix[3-9]*) 5798 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5800 ;; 5801 5802irix5* | irix6* | nonstopux*) 5803 case $LD in 5804 *-32|*"-32 ") libmagic=32-bit;; 5805 *-n32|*"-n32 ") libmagic=N32;; 5806 *-64|*"-64 ") libmagic=64-bit;; 5807 *) libmagic=never-match;; 5808 esac 5809 lt_cv_deplibs_check_method=pass_all 5810 ;; 5811 5812# This must be Linux ELF. 5813linux* | k*bsd*-gnu | kopensolaris*-gnu) 5814 lt_cv_deplibs_check_method=pass_all 5815 ;; 5816 5817netbsd*) 5818 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5819 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5820 else 5821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5822 fi 5823 ;; 5824 5825newos6*) 5826 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5827 lt_cv_file_magic_cmd=/usr/bin/file 5828 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5829 ;; 5830 5831*nto* | *qnx*) 5832 lt_cv_deplibs_check_method=pass_all 5833 ;; 5834 5835openbsd*) 5836 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5837 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5838 else 5839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5840 fi 5841 ;; 5842 5843osf3* | osf4* | osf5*) 5844 lt_cv_deplibs_check_method=pass_all 5845 ;; 5846 5847rdos*) 5848 lt_cv_deplibs_check_method=pass_all 5849 ;; 5850 5851solaris*) 5852 lt_cv_deplibs_check_method=pass_all 5853 ;; 5854 5855sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5856 lt_cv_deplibs_check_method=pass_all 5857 ;; 5858 5859sysv4 | sysv4.3*) 5860 case $host_vendor in 5861 motorola) 5862 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]' 5863 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5864 ;; 5865 ncr) 5866 lt_cv_deplibs_check_method=pass_all 5867 ;; 5868 sequent) 5869 lt_cv_file_magic_cmd='/bin/file' 5870 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5871 ;; 5872 sni) 5873 lt_cv_file_magic_cmd='/bin/file' 5874 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5875 lt_cv_file_magic_test_file=/lib/libc.so 5876 ;; 5877 siemens) 5878 lt_cv_deplibs_check_method=pass_all 5879 ;; 5880 pc) 5881 lt_cv_deplibs_check_method=pass_all 5882 ;; 5883 esac 5884 ;; 5885 5886tpf*) 5887 lt_cv_deplibs_check_method=pass_all 5888 ;; 5889esac 5890 5891fi 5892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5893$as_echo "$lt_cv_deplibs_check_method" >&6; } 5894file_magic_cmd=$lt_cv_file_magic_cmd 5895deplibs_check_method=$lt_cv_deplibs_check_method 5896test -z "$deplibs_check_method" && deplibs_check_method=unknown 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909if test -n "$ac_tool_prefix"; then 5910 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5911set dummy ${ac_tool_prefix}ar; ac_word=$2 5912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5913$as_echo_n "checking for $ac_word... " >&6; } 5914if test "${ac_cv_prog_AR+set}" = set; then : 5915 $as_echo_n "(cached) " >&6 5916else 5917 if test -n "$AR"; then 5918 ac_cv_prog_AR="$AR" # Let the user override the test. 5919else 5920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5921for as_dir in $PATH 5922do 5923 IFS=$as_save_IFS 5924 test -z "$as_dir" && as_dir=. 5925 for ac_exec_ext in '' $ac_executable_extensions; do 5926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5927 ac_cv_prog_AR="${ac_tool_prefix}ar" 5928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5929 break 2 5930 fi 5931done 5932 done 5933IFS=$as_save_IFS 5934 5935fi 5936fi 5937AR=$ac_cv_prog_AR 5938if test -n "$AR"; then 5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5940$as_echo "$AR" >&6; } 5941else 5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5943$as_echo "no" >&6; } 5944fi 5945 5946 5947fi 5948if test -z "$ac_cv_prog_AR"; then 5949 ac_ct_AR=$AR 5950 # Extract the first word of "ar", so it can be a program name with args. 5951set dummy ar; ac_word=$2 5952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5953$as_echo_n "checking for $ac_word... " >&6; } 5954if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5955 $as_echo_n "(cached) " >&6 5956else 5957 if test -n "$ac_ct_AR"; then 5958 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5959else 5960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5961for as_dir in $PATH 5962do 5963 IFS=$as_save_IFS 5964 test -z "$as_dir" && as_dir=. 5965 for ac_exec_ext in '' $ac_executable_extensions; do 5966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5967 ac_cv_prog_ac_ct_AR="ar" 5968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5969 break 2 5970 fi 5971done 5972 done 5973IFS=$as_save_IFS 5974 5975fi 5976fi 5977ac_ct_AR=$ac_cv_prog_ac_ct_AR 5978if test -n "$ac_ct_AR"; then 5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5980$as_echo "$ac_ct_AR" >&6; } 5981else 5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5983$as_echo "no" >&6; } 5984fi 5985 5986 if test "x$ac_ct_AR" = x; then 5987 AR="false" 5988 else 5989 case $cross_compiling:$ac_tool_warned in 5990yes:) 5991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5993ac_tool_warned=yes ;; 5994esac 5995 AR=$ac_ct_AR 5996 fi 5997else 5998 AR="$ac_cv_prog_AR" 5999fi 6000 6001test -z "$AR" && AR=ar 6002test -z "$AR_FLAGS" && AR_FLAGS=cru 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014if test -n "$ac_tool_prefix"; then 6015 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6016set dummy ${ac_tool_prefix}strip; ac_word=$2 6017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6018$as_echo_n "checking for $ac_word... " >&6; } 6019if test "${ac_cv_prog_STRIP+set}" = set; then : 6020 $as_echo_n "(cached) " >&6 6021else 6022 if test -n "$STRIP"; then 6023 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6024else 6025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6026for as_dir in $PATH 6027do 6028 IFS=$as_save_IFS 6029 test -z "$as_dir" && as_dir=. 6030 for ac_exec_ext in '' $ac_executable_extensions; do 6031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6032 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6034 break 2 6035 fi 6036done 6037 done 6038IFS=$as_save_IFS 6039 6040fi 6041fi 6042STRIP=$ac_cv_prog_STRIP 6043if test -n "$STRIP"; then 6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6045$as_echo "$STRIP" >&6; } 6046else 6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6048$as_echo "no" >&6; } 6049fi 6050 6051 6052fi 6053if test -z "$ac_cv_prog_STRIP"; then 6054 ac_ct_STRIP=$STRIP 6055 # Extract the first word of "strip", so it can be a program name with args. 6056set dummy strip; ac_word=$2 6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6058$as_echo_n "checking for $ac_word... " >&6; } 6059if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6060 $as_echo_n "(cached) " >&6 6061else 6062 if test -n "$ac_ct_STRIP"; then 6063 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6064else 6065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6066for as_dir in $PATH 6067do 6068 IFS=$as_save_IFS 6069 test -z "$as_dir" && as_dir=. 6070 for ac_exec_ext in '' $ac_executable_extensions; do 6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6072 ac_cv_prog_ac_ct_STRIP="strip" 6073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6074 break 2 6075 fi 6076done 6077 done 6078IFS=$as_save_IFS 6079 6080fi 6081fi 6082ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6083if test -n "$ac_ct_STRIP"; then 6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6085$as_echo "$ac_ct_STRIP" >&6; } 6086else 6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6088$as_echo "no" >&6; } 6089fi 6090 6091 if test "x$ac_ct_STRIP" = x; then 6092 STRIP=":" 6093 else 6094 case $cross_compiling:$ac_tool_warned in 6095yes:) 6096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6098ac_tool_warned=yes ;; 6099esac 6100 STRIP=$ac_ct_STRIP 6101 fi 6102else 6103 STRIP="$ac_cv_prog_STRIP" 6104fi 6105 6106test -z "$STRIP" && STRIP=: 6107 6108 6109 6110 6111 6112 6113if test -n "$ac_tool_prefix"; then 6114 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6115set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6117$as_echo_n "checking for $ac_word... " >&6; } 6118if test "${ac_cv_prog_RANLIB+set}" = set; then : 6119 $as_echo_n "(cached) " >&6 6120else 6121 if test -n "$RANLIB"; then 6122 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6123else 6124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6125for as_dir in $PATH 6126do 6127 IFS=$as_save_IFS 6128 test -z "$as_dir" && as_dir=. 6129 for ac_exec_ext in '' $ac_executable_extensions; do 6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6131 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6133 break 2 6134 fi 6135done 6136 done 6137IFS=$as_save_IFS 6138 6139fi 6140fi 6141RANLIB=$ac_cv_prog_RANLIB 6142if test -n "$RANLIB"; then 6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6144$as_echo "$RANLIB" >&6; } 6145else 6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6147$as_echo "no" >&6; } 6148fi 6149 6150 6151fi 6152if test -z "$ac_cv_prog_RANLIB"; then 6153 ac_ct_RANLIB=$RANLIB 6154 # Extract the first word of "ranlib", so it can be a program name with args. 6155set dummy ranlib; ac_word=$2 6156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6157$as_echo_n "checking for $ac_word... " >&6; } 6158if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6159 $as_echo_n "(cached) " >&6 6160else 6161 if test -n "$ac_ct_RANLIB"; then 6162 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6163else 6164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6165for as_dir in $PATH 6166do 6167 IFS=$as_save_IFS 6168 test -z "$as_dir" && as_dir=. 6169 for ac_exec_ext in '' $ac_executable_extensions; do 6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6171 ac_cv_prog_ac_ct_RANLIB="ranlib" 6172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6173 break 2 6174 fi 6175done 6176 done 6177IFS=$as_save_IFS 6178 6179fi 6180fi 6181ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6182if test -n "$ac_ct_RANLIB"; then 6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6184$as_echo "$ac_ct_RANLIB" >&6; } 6185else 6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6187$as_echo "no" >&6; } 6188fi 6189 6190 if test "x$ac_ct_RANLIB" = x; then 6191 RANLIB=":" 6192 else 6193 case $cross_compiling:$ac_tool_warned in 6194yes:) 6195{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6197ac_tool_warned=yes ;; 6198esac 6199 RANLIB=$ac_ct_RANLIB 6200 fi 6201else 6202 RANLIB="$ac_cv_prog_RANLIB" 6203fi 6204 6205test -z "$RANLIB" && RANLIB=: 6206 6207 6208 6209 6210 6211 6212# Determine commands to create old-style static archives. 6213old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6214old_postinstall_cmds='chmod 644 $oldlib' 6215old_postuninstall_cmds= 6216 6217if test -n "$RANLIB"; then 6218 case $host_os in 6219 openbsd*) 6220 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6221 ;; 6222 *) 6223 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6224 ;; 6225 esac 6226 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6227fi 6228 6229case $host_os in 6230 darwin*) 6231 lock_old_archive_extraction=yes ;; 6232 *) 6233 lock_old_archive_extraction=no ;; 6234esac 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274# If no C compiler was specified, use CC. 6275LTCC=${LTCC-"$CC"} 6276 6277# If no C compiler flags were specified, use CFLAGS. 6278LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6279 6280# Allow CC to be a program name with arguments. 6281compiler=$CC 6282 6283 6284# Check for command to grab the raw symbol name followed by C symbol from nm. 6285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6286$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6287if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6288 $as_echo_n "(cached) " >&6 6289else 6290 6291# These are sane defaults that work on at least a few old systems. 6292# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6293 6294# Character class describing NM global symbol codes. 6295symcode='[BCDEGRST]' 6296 6297# Regexp to match symbols that can be accessed directly from C. 6298sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6299 6300# Define system-specific variables. 6301case $host_os in 6302aix*) 6303 symcode='[BCDT]' 6304 ;; 6305cygwin* | mingw* | pw32* | cegcc*) 6306 symcode='[ABCDGISTW]' 6307 ;; 6308hpux*) 6309 if test "$host_cpu" = ia64; then 6310 symcode='[ABCDEGRST]' 6311 fi 6312 ;; 6313irix* | nonstopux*) 6314 symcode='[BCDEGRST]' 6315 ;; 6316osf*) 6317 symcode='[BCDEGQRST]' 6318 ;; 6319solaris*) 6320 symcode='[BDRT]' 6321 ;; 6322sco3.2v5*) 6323 symcode='[DT]' 6324 ;; 6325sysv4.2uw2*) 6326 symcode='[DT]' 6327 ;; 6328sysv5* | sco5v6* | unixware* | OpenUNIX*) 6329 symcode='[ABDT]' 6330 ;; 6331sysv4) 6332 symcode='[DFNSTU]' 6333 ;; 6334esac 6335 6336# If we're using GNU nm, then use its standard symbol codes. 6337case `$NM -V 2>&1` in 6338*GNU* | *'with BFD'*) 6339 symcode='[ABCDGIRSTW]' ;; 6340esac 6341 6342# Transform an extracted symbol line into a proper C declaration. 6343# Some systems (esp. on ia64) link data and code symbols differently, 6344# so use this general approach. 6345lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6346 6347# Transform an extracted symbol line into symbol name and symbol address 6348lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6349lt_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'" 6350 6351# Handle CRLF in mingw tool chain 6352opt_cr= 6353case $build_os in 6354mingw*) 6355 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6356 ;; 6357esac 6358 6359# Try without a prefix underscore, then with it. 6360for ac_symprfx in "" "_"; do 6361 6362 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6363 symxfrm="\\1 $ac_symprfx\\2 \\2" 6364 6365 # Write the raw and C identifiers. 6366 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6367 # Fake it for dumpbin and say T for any non-static function 6368 # and D for any global variable. 6369 # Also find C++ and __fastcall symbols from MSVC++, 6370 # which start with @ or ?. 6371 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6372" {last_section=section; section=\$ 3};"\ 6373" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6374" \$ 0!~/External *\|/{next};"\ 6375" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6376" {if(hide[section]) next};"\ 6377" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6378" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6379" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6380" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6381" ' prfx=^$ac_symprfx" 6382 else 6383 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6384 fi 6385 6386 # Check to see that the pipe works correctly. 6387 pipe_works=no 6388 6389 rm -f conftest* 6390 cat > conftest.$ac_ext <<_LT_EOF 6391#ifdef __cplusplus 6392extern "C" { 6393#endif 6394char nm_test_var; 6395void nm_test_func(void); 6396void nm_test_func(void){} 6397#ifdef __cplusplus 6398} 6399#endif 6400int main(){nm_test_var='a';nm_test_func();return(0);} 6401_LT_EOF 6402 6403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6404 (eval $ac_compile) 2>&5 6405 ac_status=$? 6406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6407 test $ac_status = 0; }; then 6408 # Now try to grab the symbols. 6409 nlist=conftest.nm 6410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6411 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6412 ac_status=$? 6413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6414 test $ac_status = 0; } && test -s "$nlist"; then 6415 # Try sorting and uniquifying the output. 6416 if sort "$nlist" | uniq > "$nlist"T; then 6417 mv -f "$nlist"T "$nlist" 6418 else 6419 rm -f "$nlist"T 6420 fi 6421 6422 # Make sure that we snagged all the symbols we need. 6423 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6424 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6425 cat <<_LT_EOF > conftest.$ac_ext 6426#ifdef __cplusplus 6427extern "C" { 6428#endif 6429 6430_LT_EOF 6431 # Now generate the symbol file. 6432 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6433 6434 cat <<_LT_EOF >> conftest.$ac_ext 6435 6436/* The mapping between symbol names and symbols. */ 6437const struct { 6438 const char *name; 6439 void *address; 6440} 6441lt__PROGRAM__LTX_preloaded_symbols[] = 6442{ 6443 { "@PROGRAM@", (void *) 0 }, 6444_LT_EOF 6445 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6446 cat <<\_LT_EOF >> conftest.$ac_ext 6447 {0, (void *) 0} 6448}; 6449 6450/* This works around a problem in FreeBSD linker */ 6451#ifdef FREEBSD_WORKAROUND 6452static const void *lt_preloaded_setup() { 6453 return lt__PROGRAM__LTX_preloaded_symbols; 6454} 6455#endif 6456 6457#ifdef __cplusplus 6458} 6459#endif 6460_LT_EOF 6461 # Now try linking the two files. 6462 mv conftest.$ac_objext conftstm.$ac_objext 6463 lt_save_LIBS="$LIBS" 6464 lt_save_CFLAGS="$CFLAGS" 6465 LIBS="conftstm.$ac_objext" 6466 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6468 (eval $ac_link) 2>&5 6469 ac_status=$? 6470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6471 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6472 pipe_works=yes 6473 fi 6474 LIBS="$lt_save_LIBS" 6475 CFLAGS="$lt_save_CFLAGS" 6476 else 6477 echo "cannot find nm_test_func in $nlist" >&5 6478 fi 6479 else 6480 echo "cannot find nm_test_var in $nlist" >&5 6481 fi 6482 else 6483 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6484 fi 6485 else 6486 echo "$progname: failed program was:" >&5 6487 cat conftest.$ac_ext >&5 6488 fi 6489 rm -rf conftest* conftst* 6490 6491 # Do not use the global_symbol_pipe unless it works. 6492 if test "$pipe_works" = yes; then 6493 break 6494 else 6495 lt_cv_sys_global_symbol_pipe= 6496 fi 6497done 6498 6499fi 6500 6501if test -z "$lt_cv_sys_global_symbol_pipe"; then 6502 lt_cv_sys_global_symbol_to_cdecl= 6503fi 6504if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6506$as_echo "failed" >&6; } 6507else 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6509$as_echo "ok" >&6; } 6510fi 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534# Check whether --enable-libtool-lock was given. 6535if test "${enable_libtool_lock+set}" = set; then : 6536 enableval=$enable_libtool_lock; 6537fi 6538 6539test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6540 6541# Some flags need to be propagated to the compiler or linker for good 6542# libtool support. 6543case $host in 6544ia64-*-hpux*) 6545 # Find out which ABI we are using. 6546 echo 'int i;' > conftest.$ac_ext 6547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6548 (eval $ac_compile) 2>&5 6549 ac_status=$? 6550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6551 test $ac_status = 0; }; then 6552 case `/usr/bin/file conftest.$ac_objext` in 6553 *ELF-32*) 6554 HPUX_IA64_MODE="32" 6555 ;; 6556 *ELF-64*) 6557 HPUX_IA64_MODE="64" 6558 ;; 6559 esac 6560 fi 6561 rm -rf conftest* 6562 ;; 6563*-*-irix6*) 6564 # Find out which ABI we are using. 6565 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6567 (eval $ac_compile) 2>&5 6568 ac_status=$? 6569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6570 test $ac_status = 0; }; then 6571 if test "$lt_cv_prog_gnu_ld" = yes; then 6572 case `/usr/bin/file conftest.$ac_objext` in 6573 *32-bit*) 6574 LD="${LD-ld} -melf32bsmip" 6575 ;; 6576 *N32*) 6577 LD="${LD-ld} -melf32bmipn32" 6578 ;; 6579 *64-bit*) 6580 LD="${LD-ld} -melf64bmip" 6581 ;; 6582 esac 6583 else 6584 case `/usr/bin/file conftest.$ac_objext` in 6585 *32-bit*) 6586 LD="${LD-ld} -32" 6587 ;; 6588 *N32*) 6589 LD="${LD-ld} -n32" 6590 ;; 6591 *64-bit*) 6592 LD="${LD-ld} -64" 6593 ;; 6594 esac 6595 fi 6596 fi 6597 rm -rf conftest* 6598 ;; 6599 6600x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6601s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6602 # Find out which ABI we are using. 6603 echo 'int i;' > conftest.$ac_ext 6604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6605 (eval $ac_compile) 2>&5 6606 ac_status=$? 6607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6608 test $ac_status = 0; }; then 6609 case `/usr/bin/file conftest.o` in 6610 *32-bit*) 6611 case $host in 6612 x86_64-*kfreebsd*-gnu) 6613 LD="${LD-ld} -m elf_i386_fbsd" 6614 ;; 6615 x86_64-*linux*) 6616 case `/usr/bin/file conftest.o` in 6617 *x86-64*) 6618 LD="${LD-ld} -m elf32_x86_64" 6619 ;; 6620 *) 6621 LD="${LD-ld} -m elf_i386" 6622 ;; 6623 esac 6624 ;; 6625 powerpc64le-*linux*) 6626 LD="${LD-ld} -m elf32lppclinux" 6627 ;; 6628 powerpc64-*linux*) 6629 LD="${LD-ld} -m elf32ppclinux" 6630 ;; 6631 s390x-*linux*) 6632 LD="${LD-ld} -m elf_s390" 6633 ;; 6634 sparc64-*linux*) 6635 LD="${LD-ld} -m elf32_sparc" 6636 ;; 6637 esac 6638 ;; 6639 *64-bit*) 6640 case $host in 6641 x86_64-*kfreebsd*-gnu) 6642 LD="${LD-ld} -m elf_x86_64_fbsd" 6643 ;; 6644 x86_64-*linux*) 6645 LD="${LD-ld} -m elf_x86_64" 6646 ;; 6647 powerpcle-*linux*) 6648 LD="${LD-ld} -m elf64lppc" 6649 ;; 6650 powerpc-*linux*) 6651 LD="${LD-ld} -m elf64ppc" 6652 ;; 6653 s390*-*linux*|s390*-*tpf*) 6654 LD="${LD-ld} -m elf64_s390" 6655 ;; 6656 sparc*-*linux*) 6657 LD="${LD-ld} -m elf64_sparc" 6658 ;; 6659 esac 6660 ;; 6661 esac 6662 fi 6663 rm -rf conftest* 6664 ;; 6665 6666*-*-sco3.2v5*) 6667 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6668 SAVE_CFLAGS="$CFLAGS" 6669 CFLAGS="$CFLAGS -belf" 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6671$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6672if test "${lt_cv_cc_needs_belf+set}" = set; then : 6673 $as_echo_n "(cached) " >&6 6674else 6675 ac_ext=c 6676ac_cpp='$CPP $CPPFLAGS' 6677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6679ac_compiler_gnu=$ac_cv_c_compiler_gnu 6680 6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6682/* end confdefs.h. */ 6683 6684int 6685main () 6686{ 6687 6688 ; 6689 return 0; 6690} 6691_ACEOF 6692if ac_fn_c_try_link "$LINENO"; then : 6693 lt_cv_cc_needs_belf=yes 6694else 6695 lt_cv_cc_needs_belf=no 6696fi 6697rm -f core conftest.err conftest.$ac_objext \ 6698 conftest$ac_exeext conftest.$ac_ext 6699 ac_ext=c 6700ac_cpp='$CPP $CPPFLAGS' 6701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6703ac_compiler_gnu=$ac_cv_c_compiler_gnu 6704 6705fi 6706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6707$as_echo "$lt_cv_cc_needs_belf" >&6; } 6708 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6709 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6710 CFLAGS="$SAVE_CFLAGS" 6711 fi 6712 ;; 6713sparc*-*solaris*) 6714 # Find out which ABI we are using. 6715 echo 'int i;' > conftest.$ac_ext 6716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6717 (eval $ac_compile) 2>&5 6718 ac_status=$? 6719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6720 test $ac_status = 0; }; then 6721 case `/usr/bin/file conftest.o` in 6722 *64-bit*) 6723 case $lt_cv_prog_gnu_ld in 6724 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6725 *) 6726 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6727 LD="${LD-ld} -64" 6728 fi 6729 ;; 6730 esac 6731 ;; 6732 esac 6733 fi 6734 rm -rf conftest* 6735 ;; 6736esac 6737 6738need_locks="$enable_libtool_lock" 6739 6740 6741 case $host_os in 6742 rhapsody* | darwin*) 6743 if test -n "$ac_tool_prefix"; then 6744 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6745set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6747$as_echo_n "checking for $ac_word... " >&6; } 6748if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6749 $as_echo_n "(cached) " >&6 6750else 6751 if test -n "$DSYMUTIL"; then 6752 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6753else 6754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6755for as_dir in $PATH 6756do 6757 IFS=$as_save_IFS 6758 test -z "$as_dir" && as_dir=. 6759 for ac_exec_ext in '' $ac_executable_extensions; do 6760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6761 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6763 break 2 6764 fi 6765done 6766 done 6767IFS=$as_save_IFS 6768 6769fi 6770fi 6771DSYMUTIL=$ac_cv_prog_DSYMUTIL 6772if test -n "$DSYMUTIL"; then 6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6774$as_echo "$DSYMUTIL" >&6; } 6775else 6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6777$as_echo "no" >&6; } 6778fi 6779 6780 6781fi 6782if test -z "$ac_cv_prog_DSYMUTIL"; then 6783 ac_ct_DSYMUTIL=$DSYMUTIL 6784 # Extract the first word of "dsymutil", so it can be a program name with args. 6785set dummy dsymutil; ac_word=$2 6786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6787$as_echo_n "checking for $ac_word... " >&6; } 6788if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6789 $as_echo_n "(cached) " >&6 6790else 6791 if test -n "$ac_ct_DSYMUTIL"; then 6792 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6793else 6794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6795for as_dir in $PATH 6796do 6797 IFS=$as_save_IFS 6798 test -z "$as_dir" && as_dir=. 6799 for ac_exec_ext in '' $ac_executable_extensions; do 6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6801 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6803 break 2 6804 fi 6805done 6806 done 6807IFS=$as_save_IFS 6808 6809fi 6810fi 6811ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6812if test -n "$ac_ct_DSYMUTIL"; then 6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6814$as_echo "$ac_ct_DSYMUTIL" >&6; } 6815else 6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6817$as_echo "no" >&6; } 6818fi 6819 6820 if test "x$ac_ct_DSYMUTIL" = x; then 6821 DSYMUTIL=":" 6822 else 6823 case $cross_compiling:$ac_tool_warned in 6824yes:) 6825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6827ac_tool_warned=yes ;; 6828esac 6829 DSYMUTIL=$ac_ct_DSYMUTIL 6830 fi 6831else 6832 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6833fi 6834 6835 if test -n "$ac_tool_prefix"; then 6836 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6837set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6839$as_echo_n "checking for $ac_word... " >&6; } 6840if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6841 $as_echo_n "(cached) " >&6 6842else 6843 if test -n "$NMEDIT"; then 6844 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6845else 6846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6847for as_dir in $PATH 6848do 6849 IFS=$as_save_IFS 6850 test -z "$as_dir" && as_dir=. 6851 for ac_exec_ext in '' $ac_executable_extensions; do 6852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6853 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6855 break 2 6856 fi 6857done 6858 done 6859IFS=$as_save_IFS 6860 6861fi 6862fi 6863NMEDIT=$ac_cv_prog_NMEDIT 6864if test -n "$NMEDIT"; then 6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6866$as_echo "$NMEDIT" >&6; } 6867else 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6869$as_echo "no" >&6; } 6870fi 6871 6872 6873fi 6874if test -z "$ac_cv_prog_NMEDIT"; then 6875 ac_ct_NMEDIT=$NMEDIT 6876 # Extract the first word of "nmedit", so it can be a program name with args. 6877set dummy nmedit; ac_word=$2 6878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6879$as_echo_n "checking for $ac_word... " >&6; } 6880if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6881 $as_echo_n "(cached) " >&6 6882else 6883 if test -n "$ac_ct_NMEDIT"; then 6884 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6885else 6886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6887for as_dir in $PATH 6888do 6889 IFS=$as_save_IFS 6890 test -z "$as_dir" && as_dir=. 6891 for ac_exec_ext in '' $ac_executable_extensions; do 6892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6893 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6895 break 2 6896 fi 6897done 6898 done 6899IFS=$as_save_IFS 6900 6901fi 6902fi 6903ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6904if test -n "$ac_ct_NMEDIT"; then 6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6906$as_echo "$ac_ct_NMEDIT" >&6; } 6907else 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6909$as_echo "no" >&6; } 6910fi 6911 6912 if test "x$ac_ct_NMEDIT" = x; then 6913 NMEDIT=":" 6914 else 6915 case $cross_compiling:$ac_tool_warned in 6916yes:) 6917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6919ac_tool_warned=yes ;; 6920esac 6921 NMEDIT=$ac_ct_NMEDIT 6922 fi 6923else 6924 NMEDIT="$ac_cv_prog_NMEDIT" 6925fi 6926 6927 if test -n "$ac_tool_prefix"; then 6928 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6929set dummy ${ac_tool_prefix}lipo; ac_word=$2 6930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6931$as_echo_n "checking for $ac_word... " >&6; } 6932if test "${ac_cv_prog_LIPO+set}" = set; then : 6933 $as_echo_n "(cached) " >&6 6934else 6935 if test -n "$LIPO"; then 6936 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6937else 6938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6939for as_dir in $PATH 6940do 6941 IFS=$as_save_IFS 6942 test -z "$as_dir" && as_dir=. 6943 for ac_exec_ext in '' $ac_executable_extensions; do 6944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6945 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6947 break 2 6948 fi 6949done 6950 done 6951IFS=$as_save_IFS 6952 6953fi 6954fi 6955LIPO=$ac_cv_prog_LIPO 6956if test -n "$LIPO"; then 6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6958$as_echo "$LIPO" >&6; } 6959else 6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6961$as_echo "no" >&6; } 6962fi 6963 6964 6965fi 6966if test -z "$ac_cv_prog_LIPO"; then 6967 ac_ct_LIPO=$LIPO 6968 # Extract the first word of "lipo", so it can be a program name with args. 6969set dummy lipo; ac_word=$2 6970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6971$as_echo_n "checking for $ac_word... " >&6; } 6972if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6973 $as_echo_n "(cached) " >&6 6974else 6975 if test -n "$ac_ct_LIPO"; then 6976 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6977else 6978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6979for as_dir in $PATH 6980do 6981 IFS=$as_save_IFS 6982 test -z "$as_dir" && as_dir=. 6983 for ac_exec_ext in '' $ac_executable_extensions; do 6984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6985 ac_cv_prog_ac_ct_LIPO="lipo" 6986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6987 break 2 6988 fi 6989done 6990 done 6991IFS=$as_save_IFS 6992 6993fi 6994fi 6995ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6996if test -n "$ac_ct_LIPO"; then 6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6998$as_echo "$ac_ct_LIPO" >&6; } 6999else 7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7001$as_echo "no" >&6; } 7002fi 7003 7004 if test "x$ac_ct_LIPO" = x; then 7005 LIPO=":" 7006 else 7007 case $cross_compiling:$ac_tool_warned in 7008yes:) 7009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7011ac_tool_warned=yes ;; 7012esac 7013 LIPO=$ac_ct_LIPO 7014 fi 7015else 7016 LIPO="$ac_cv_prog_LIPO" 7017fi 7018 7019 if test -n "$ac_tool_prefix"; then 7020 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7021set dummy ${ac_tool_prefix}otool; ac_word=$2 7022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7023$as_echo_n "checking for $ac_word... " >&6; } 7024if test "${ac_cv_prog_OTOOL+set}" = set; then : 7025 $as_echo_n "(cached) " >&6 7026else 7027 if test -n "$OTOOL"; then 7028 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7029else 7030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7031for as_dir in $PATH 7032do 7033 IFS=$as_save_IFS 7034 test -z "$as_dir" && as_dir=. 7035 for ac_exec_ext in '' $ac_executable_extensions; do 7036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7037 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7039 break 2 7040 fi 7041done 7042 done 7043IFS=$as_save_IFS 7044 7045fi 7046fi 7047OTOOL=$ac_cv_prog_OTOOL 7048if test -n "$OTOOL"; then 7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7050$as_echo "$OTOOL" >&6; } 7051else 7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7053$as_echo "no" >&6; } 7054fi 7055 7056 7057fi 7058if test -z "$ac_cv_prog_OTOOL"; then 7059 ac_ct_OTOOL=$OTOOL 7060 # Extract the first word of "otool", so it can be a program name with args. 7061set dummy otool; ac_word=$2 7062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7063$as_echo_n "checking for $ac_word... " >&6; } 7064if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7065 $as_echo_n "(cached) " >&6 7066else 7067 if test -n "$ac_ct_OTOOL"; then 7068 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7069else 7070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7071for as_dir in $PATH 7072do 7073 IFS=$as_save_IFS 7074 test -z "$as_dir" && as_dir=. 7075 for ac_exec_ext in '' $ac_executable_extensions; do 7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7077 ac_cv_prog_ac_ct_OTOOL="otool" 7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7079 break 2 7080 fi 7081done 7082 done 7083IFS=$as_save_IFS 7084 7085fi 7086fi 7087ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7088if test -n "$ac_ct_OTOOL"; then 7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7090$as_echo "$ac_ct_OTOOL" >&6; } 7091else 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7093$as_echo "no" >&6; } 7094fi 7095 7096 if test "x$ac_ct_OTOOL" = x; then 7097 OTOOL=":" 7098 else 7099 case $cross_compiling:$ac_tool_warned in 7100yes:) 7101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7103ac_tool_warned=yes ;; 7104esac 7105 OTOOL=$ac_ct_OTOOL 7106 fi 7107else 7108 OTOOL="$ac_cv_prog_OTOOL" 7109fi 7110 7111 if test -n "$ac_tool_prefix"; then 7112 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7113set dummy ${ac_tool_prefix}otool64; ac_word=$2 7114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7115$as_echo_n "checking for $ac_word... " >&6; } 7116if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7117 $as_echo_n "(cached) " >&6 7118else 7119 if test -n "$OTOOL64"; then 7120 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7121else 7122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7123for as_dir in $PATH 7124do 7125 IFS=$as_save_IFS 7126 test -z "$as_dir" && as_dir=. 7127 for ac_exec_ext in '' $ac_executable_extensions; do 7128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7129 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7131 break 2 7132 fi 7133done 7134 done 7135IFS=$as_save_IFS 7136 7137fi 7138fi 7139OTOOL64=$ac_cv_prog_OTOOL64 7140if test -n "$OTOOL64"; then 7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7142$as_echo "$OTOOL64" >&6; } 7143else 7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7145$as_echo "no" >&6; } 7146fi 7147 7148 7149fi 7150if test -z "$ac_cv_prog_OTOOL64"; then 7151 ac_ct_OTOOL64=$OTOOL64 7152 # Extract the first word of "otool64", so it can be a program name with args. 7153set dummy otool64; ac_word=$2 7154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7155$as_echo_n "checking for $ac_word... " >&6; } 7156if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7157 $as_echo_n "(cached) " >&6 7158else 7159 if test -n "$ac_ct_OTOOL64"; then 7160 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7161else 7162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7163for as_dir in $PATH 7164do 7165 IFS=$as_save_IFS 7166 test -z "$as_dir" && as_dir=. 7167 for ac_exec_ext in '' $ac_executable_extensions; do 7168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7169 ac_cv_prog_ac_ct_OTOOL64="otool64" 7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7171 break 2 7172 fi 7173done 7174 done 7175IFS=$as_save_IFS 7176 7177fi 7178fi 7179ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7180if test -n "$ac_ct_OTOOL64"; then 7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7182$as_echo "$ac_ct_OTOOL64" >&6; } 7183else 7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7185$as_echo "no" >&6; } 7186fi 7187 7188 if test "x$ac_ct_OTOOL64" = x; then 7189 OTOOL64=":" 7190 else 7191 case $cross_compiling:$ac_tool_warned in 7192yes:) 7193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7195ac_tool_warned=yes ;; 7196esac 7197 OTOOL64=$ac_ct_OTOOL64 7198 fi 7199else 7200 OTOOL64="$ac_cv_prog_OTOOL64" 7201fi 7202 7203 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7230$as_echo_n "checking for -single_module linker flag... " >&6; } 7231if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7232 $as_echo_n "(cached) " >&6 7233else 7234 lt_cv_apple_cc_single_mod=no 7235 if test -z "${LT_MULTI_MODULE}"; then 7236 # By default we will add the -single_module flag. You can override 7237 # by either setting the environment variable LT_MULTI_MODULE 7238 # non-empty at configure time, or by adding -multi_module to the 7239 # link flags. 7240 rm -rf libconftest.dylib* 7241 echo "int foo(void){return 1;}" > conftest.c 7242 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7243-dynamiclib -Wl,-single_module conftest.c" >&5 7244 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7245 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7246 _lt_result=$? 7247 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7248 lt_cv_apple_cc_single_mod=yes 7249 else 7250 cat conftest.err >&5 7251 fi 7252 rm -rf libconftest.dylib* 7253 rm -f conftest.* 7254 fi 7255fi 7256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7257$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7259$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7260if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7261 $as_echo_n "(cached) " >&6 7262else 7263 lt_cv_ld_exported_symbols_list=no 7264 save_LDFLAGS=$LDFLAGS 7265 echo "_main" > conftest.sym 7266 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7268/* end confdefs.h. */ 7269 7270int 7271main () 7272{ 7273 7274 ; 7275 return 0; 7276} 7277_ACEOF 7278if ac_fn_c_try_link "$LINENO"; then : 7279 lt_cv_ld_exported_symbols_list=yes 7280else 7281 lt_cv_ld_exported_symbols_list=no 7282fi 7283rm -f core conftest.err conftest.$ac_objext \ 7284 conftest$ac_exeext conftest.$ac_ext 7285 LDFLAGS="$save_LDFLAGS" 7286 7287fi 7288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7289$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7291$as_echo_n "checking for -force_load linker flag... " >&6; } 7292if test "${lt_cv_ld_force_load+set}" = set; then : 7293 $as_echo_n "(cached) " >&6 7294else 7295 lt_cv_ld_force_load=no 7296 cat > conftest.c << _LT_EOF 7297int forced_loaded() { return 2;} 7298_LT_EOF 7299 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7300 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7301 echo "$AR cru libconftest.a conftest.o" >&5 7302 $AR cru libconftest.a conftest.o 2>&5 7303 cat > conftest.c << _LT_EOF 7304int main() { return 0;} 7305_LT_EOF 7306 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7307 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7308 _lt_result=$? 7309 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7310 lt_cv_ld_force_load=yes 7311 else 7312 cat conftest.err >&5 7313 fi 7314 rm -f conftest.err libconftest.a conftest conftest.c 7315 rm -rf conftest.dSYM 7316 7317fi 7318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7319$as_echo "$lt_cv_ld_force_load" >&6; } 7320 case $host_os in 7321 rhapsody* | darwin1.[012]) 7322 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7323 darwin1.*) 7324 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7325 darwin*) # darwin 5.x on 7326 # if running on 10.5 or later, the deployment target defaults 7327 # to the OS version, if on x86, and 10.4, the deployment 7328 # target defaults to 10.4. Don't you love it? 7329 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7330 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7331 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7332 10.[012][,.]*) 7333 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7334 10.*) 7335 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7336 esac 7337 ;; 7338 esac 7339 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7340 _lt_dar_single_mod='$single_module' 7341 fi 7342 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7343 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7344 else 7345 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7346 fi 7347 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7348 _lt_dsymutil='~$DSYMUTIL $lib || :' 7349 else 7350 _lt_dsymutil= 7351 fi 7352 ;; 7353 esac 7354 7355ac_ext=c 7356ac_cpp='$CPP $CPPFLAGS' 7357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7359ac_compiler_gnu=$ac_cv_c_compiler_gnu 7360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7361$as_echo_n "checking how to run the C preprocessor... " >&6; } 7362# On Suns, sometimes $CPP names a directory. 7363if test -n "$CPP" && test -d "$CPP"; then 7364 CPP= 7365fi 7366if test -z "$CPP"; then 7367 if test "${ac_cv_prog_CPP+set}" = set; then : 7368 $as_echo_n "(cached) " >&6 7369else 7370 # Double quotes because CPP needs to be expanded 7371 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7372 do 7373 ac_preproc_ok=false 7374for ac_c_preproc_warn_flag in '' yes 7375do 7376 # Use a header file that comes with gcc, so configuring glibc 7377 # with a fresh cross-compiler works. 7378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7379 # <limits.h> exists even on freestanding compilers. 7380 # On the NeXT, cc -E runs the code through the compiler's parser, 7381 # not just through cpp. "Syntax error" is here to catch this case. 7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7383/* end confdefs.h. */ 7384#ifdef __STDC__ 7385# include <limits.h> 7386#else 7387# include <assert.h> 7388#endif 7389 Syntax error 7390_ACEOF 7391if ac_fn_c_try_cpp "$LINENO"; then : 7392 7393else 7394 # Broken: fails on valid input. 7395continue 7396fi 7397rm -f conftest.err conftest.$ac_ext 7398 7399 # OK, works on sane cases. Now check whether nonexistent headers 7400 # can be detected and how. 7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7402/* end confdefs.h. */ 7403#include <ac_nonexistent.h> 7404_ACEOF 7405if ac_fn_c_try_cpp "$LINENO"; then : 7406 # Broken: success on invalid input. 7407continue 7408else 7409 # Passes both tests. 7410ac_preproc_ok=: 7411break 7412fi 7413rm -f conftest.err conftest.$ac_ext 7414 7415done 7416# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7417rm -f conftest.err conftest.$ac_ext 7418if $ac_preproc_ok; then : 7419 break 7420fi 7421 7422 done 7423 ac_cv_prog_CPP=$CPP 7424 7425fi 7426 CPP=$ac_cv_prog_CPP 7427else 7428 ac_cv_prog_CPP=$CPP 7429fi 7430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7431$as_echo "$CPP" >&6; } 7432ac_preproc_ok=false 7433for ac_c_preproc_warn_flag in '' yes 7434do 7435 # Use a header file that comes with gcc, so configuring glibc 7436 # with a fresh cross-compiler works. 7437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7438 # <limits.h> exists even on freestanding compilers. 7439 # On the NeXT, cc -E runs the code through the compiler's parser, 7440 # not just through cpp. "Syntax error" is here to catch this case. 7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7442/* end confdefs.h. */ 7443#ifdef __STDC__ 7444# include <limits.h> 7445#else 7446# include <assert.h> 7447#endif 7448 Syntax error 7449_ACEOF 7450if ac_fn_c_try_cpp "$LINENO"; then : 7451 7452else 7453 # Broken: fails on valid input. 7454continue 7455fi 7456rm -f conftest.err conftest.$ac_ext 7457 7458 # OK, works on sane cases. Now check whether nonexistent headers 7459 # can be detected and how. 7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7461/* end confdefs.h. */ 7462#include <ac_nonexistent.h> 7463_ACEOF 7464if ac_fn_c_try_cpp "$LINENO"; then : 7465 # Broken: success on invalid input. 7466continue 7467else 7468 # Passes both tests. 7469ac_preproc_ok=: 7470break 7471fi 7472rm -f conftest.err conftest.$ac_ext 7473 7474done 7475# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7476rm -f conftest.err conftest.$ac_ext 7477if $ac_preproc_ok; then : 7478 7479else 7480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7482as_fn_error "C preprocessor \"$CPP\" fails sanity check 7483See \`config.log' for more details." "$LINENO" 5; } 7484fi 7485 7486ac_ext=c 7487ac_cpp='$CPP $CPPFLAGS' 7488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7490ac_compiler_gnu=$ac_cv_c_compiler_gnu 7491 7492 7493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7494$as_echo_n "checking for ANSI C header files... " >&6; } 7495if test "${ac_cv_header_stdc+set}" = set; then : 7496 $as_echo_n "(cached) " >&6 7497else 7498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7499/* end confdefs.h. */ 7500#include <stdlib.h> 7501#include <stdarg.h> 7502#include <string.h> 7503#include <float.h> 7504 7505int 7506main () 7507{ 7508 7509 ; 7510 return 0; 7511} 7512_ACEOF 7513if ac_fn_c_try_compile "$LINENO"; then : 7514 ac_cv_header_stdc=yes 7515else 7516 ac_cv_header_stdc=no 7517fi 7518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7519 7520if test $ac_cv_header_stdc = yes; then 7521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7523/* end confdefs.h. */ 7524#include <string.h> 7525 7526_ACEOF 7527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7528 $EGREP "memchr" >/dev/null 2>&1; then : 7529 7530else 7531 ac_cv_header_stdc=no 7532fi 7533rm -f conftest* 7534 7535fi 7536 7537if test $ac_cv_header_stdc = yes; then 7538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7540/* end confdefs.h. */ 7541#include <stdlib.h> 7542 7543_ACEOF 7544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7545 $EGREP "free" >/dev/null 2>&1; then : 7546 7547else 7548 ac_cv_header_stdc=no 7549fi 7550rm -f conftest* 7551 7552fi 7553 7554if test $ac_cv_header_stdc = yes; then 7555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7556 if test "$cross_compiling" = yes; then : 7557 : 7558else 7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7560/* end confdefs.h. */ 7561#include <ctype.h> 7562#include <stdlib.h> 7563#if ((' ' & 0x0FF) == 0x020) 7564# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7565# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7566#else 7567# define ISLOWER(c) \ 7568 (('a' <= (c) && (c) <= 'i') \ 7569 || ('j' <= (c) && (c) <= 'r') \ 7570 || ('s' <= (c) && (c) <= 'z')) 7571# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7572#endif 7573 7574#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7575int 7576main () 7577{ 7578 int i; 7579 for (i = 0; i < 256; i++) 7580 if (XOR (islower (i), ISLOWER (i)) 7581 || toupper (i) != TOUPPER (i)) 7582 return 2; 7583 return 0; 7584} 7585_ACEOF 7586if ac_fn_c_try_run "$LINENO"; then : 7587 7588else 7589 ac_cv_header_stdc=no 7590fi 7591rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7592 conftest.$ac_objext conftest.beam conftest.$ac_ext 7593fi 7594 7595fi 7596fi 7597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7598$as_echo "$ac_cv_header_stdc" >&6; } 7599if test $ac_cv_header_stdc = yes; then 7600 7601$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7602 7603fi 7604 7605# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7606for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7607 inttypes.h stdint.h unistd.h 7608do : 7609 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7610ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7611" 7612eval as_val=\$$as_ac_Header 7613 if test "x$as_val" = x""yes; then : 7614 cat >>confdefs.h <<_ACEOF 7615#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7616_ACEOF 7617 7618fi 7619 7620done 7621 7622 7623for ac_header in dlfcn.h 7624do : 7625 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7626" 7627if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7628 cat >>confdefs.h <<_ACEOF 7629#define HAVE_DLFCN_H 1 7630_ACEOF 7631 7632fi 7633 7634done 7635 7636 7637 7638 7639 7640# Set options 7641 7642 7643 7644 enable_dlopen=no 7645 7646 7647 enable_win32_dll=no 7648 7649 7650 # Check whether --enable-shared was given. 7651if test "${enable_shared+set}" = set; then : 7652 enableval=$enable_shared; p=${PACKAGE-default} 7653 case $enableval in 7654 yes) enable_shared=yes ;; 7655 no) enable_shared=no ;; 7656 *) 7657 enable_shared=no 7658 # Look at the argument we got. We use all the common list separators. 7659 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7660 for pkg in $enableval; do 7661 IFS="$lt_save_ifs" 7662 if test "X$pkg" = "X$p"; then 7663 enable_shared=yes 7664 fi 7665 done 7666 IFS="$lt_save_ifs" 7667 ;; 7668 esac 7669else 7670 enable_shared=yes 7671fi 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 # Check whether --enable-static was given. 7682if test "${enable_static+set}" = set; then : 7683 enableval=$enable_static; p=${PACKAGE-default} 7684 case $enableval in 7685 yes) enable_static=yes ;; 7686 no) enable_static=no ;; 7687 *) 7688 enable_static=no 7689 # Look at the argument we got. We use all the common list separators. 7690 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7691 for pkg in $enableval; do 7692 IFS="$lt_save_ifs" 7693 if test "X$pkg" = "X$p"; then 7694 enable_static=yes 7695 fi 7696 done 7697 IFS="$lt_save_ifs" 7698 ;; 7699 esac 7700else 7701 enable_static=yes 7702fi 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713# Check whether --with-pic was given. 7714if test "${with_pic+set}" = set; then : 7715 withval=$with_pic; pic_mode="$withval" 7716else 7717 pic_mode=default 7718fi 7719 7720 7721test -z "$pic_mode" && pic_mode=default 7722 7723 7724 7725 7726 7727 7728 7729 # Check whether --enable-fast-install was given. 7730if test "${enable_fast_install+set}" = set; then : 7731 enableval=$enable_fast_install; p=${PACKAGE-default} 7732 case $enableval in 7733 yes) enable_fast_install=yes ;; 7734 no) enable_fast_install=no ;; 7735 *) 7736 enable_fast_install=no 7737 # Look at the argument we got. We use all the common list separators. 7738 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7739 for pkg in $enableval; do 7740 IFS="$lt_save_ifs" 7741 if test "X$pkg" = "X$p"; then 7742 enable_fast_install=yes 7743 fi 7744 done 7745 IFS="$lt_save_ifs" 7746 ;; 7747 esac 7748else 7749 enable_fast_install=yes 7750fi 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762# This can be used to rebuild libtool when needed 7763LIBTOOL_DEPS="$ltmain" 7764 7765# Always use our own libtool. 7766LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793test -z "$LN_S" && LN_S="ln -s" 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808if test -n "${ZSH_VERSION+set}" ; then 7809 setopt NO_GLOB_SUBST 7810fi 7811 7812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7813$as_echo_n "checking for objdir... " >&6; } 7814if test "${lt_cv_objdir+set}" = set; then : 7815 $as_echo_n "(cached) " >&6 7816else 7817 rm -f .libs 2>/dev/null 7818mkdir .libs 2>/dev/null 7819if test -d .libs; then 7820 lt_cv_objdir=.libs 7821else 7822 # MS-DOS does not allow filenames that begin with a dot. 7823 lt_cv_objdir=_libs 7824fi 7825rmdir .libs 2>/dev/null 7826fi 7827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7828$as_echo "$lt_cv_objdir" >&6; } 7829objdir=$lt_cv_objdir 7830 7831 7832 7833 7834 7835cat >>confdefs.h <<_ACEOF 7836#define LT_OBJDIR "$lt_cv_objdir/" 7837_ACEOF 7838 7839 7840 7841 7842case $host_os in 7843aix3*) 7844 # AIX sometimes has problems with the GCC collect2 program. For some 7845 # reason, if we set the COLLECT_NAMES environment variable, the problems 7846 # vanish in a puff of smoke. 7847 if test "X${COLLECT_NAMES+set}" != Xset; then 7848 COLLECT_NAMES= 7849 export COLLECT_NAMES 7850 fi 7851 ;; 7852esac 7853 7854# Global variables: 7855ofile=libtool 7856can_build_shared=yes 7857 7858# All known linkers require a `.a' archive for static linking (except MSVC, 7859# which needs '.lib'). 7860libext=a 7861 7862with_gnu_ld="$lt_cv_prog_gnu_ld" 7863 7864old_CC="$CC" 7865old_CFLAGS="$CFLAGS" 7866 7867# Set sane defaults for various variables 7868test -z "$CC" && CC=cc 7869test -z "$LTCC" && LTCC=$CC 7870test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7871test -z "$LD" && LD=ld 7872test -z "$ac_objext" && ac_objext=o 7873 7874for cc_temp in $compiler""; do 7875 case $cc_temp in 7876 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7877 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7878 \-*) ;; 7879 *) break;; 7880 esac 7881done 7882cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7883 7884 7885# Only perform the check for file, if the check method requires it 7886test -z "$MAGIC_CMD" && MAGIC_CMD=file 7887case $deplibs_check_method in 7888file_magic*) 7889 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7891$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7892if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7893 $as_echo_n "(cached) " >&6 7894else 7895 case $MAGIC_CMD in 7896[\\/*] | ?:[\\/]*) 7897 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7898 ;; 7899*) 7900 lt_save_MAGIC_CMD="$MAGIC_CMD" 7901 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7902 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7903 for ac_dir in $ac_dummy; do 7904 IFS="$lt_save_ifs" 7905 test -z "$ac_dir" && ac_dir=. 7906 if test -f $ac_dir/${ac_tool_prefix}file; then 7907 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7908 if test -n "$file_magic_test_file"; then 7909 case $deplibs_check_method in 7910 "file_magic "*) 7911 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7912 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7913 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7914 $EGREP "$file_magic_regex" > /dev/null; then 7915 : 7916 else 7917 cat <<_LT_EOF 1>&2 7918 7919*** Warning: the command libtool uses to detect shared libraries, 7920*** $file_magic_cmd, produces output that libtool cannot recognize. 7921*** The result is that libtool may fail to recognize shared libraries 7922*** as such. This will affect the creation of libtool libraries that 7923*** depend on shared libraries, but programs linked with such libtool 7924*** libraries will work regardless of this problem. Nevertheless, you 7925*** may want to report the problem to your system manager and/or to 7926*** bug-libtool@gnu.org 7927 7928_LT_EOF 7929 fi ;; 7930 esac 7931 fi 7932 break 7933 fi 7934 done 7935 IFS="$lt_save_ifs" 7936 MAGIC_CMD="$lt_save_MAGIC_CMD" 7937 ;; 7938esac 7939fi 7940 7941MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7942if test -n "$MAGIC_CMD"; then 7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7944$as_echo "$MAGIC_CMD" >&6; } 7945else 7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7947$as_echo "no" >&6; } 7948fi 7949 7950 7951 7952 7953 7954if test -z "$lt_cv_path_MAGIC_CMD"; then 7955 if test -n "$ac_tool_prefix"; then 7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7957$as_echo_n "checking for file... " >&6; } 7958if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7959 $as_echo_n "(cached) " >&6 7960else 7961 case $MAGIC_CMD in 7962[\\/*] | ?:[\\/]*) 7963 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7964 ;; 7965*) 7966 lt_save_MAGIC_CMD="$MAGIC_CMD" 7967 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7968 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7969 for ac_dir in $ac_dummy; do 7970 IFS="$lt_save_ifs" 7971 test -z "$ac_dir" && ac_dir=. 7972 if test -f $ac_dir/file; then 7973 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7974 if test -n "$file_magic_test_file"; then 7975 case $deplibs_check_method in 7976 "file_magic "*) 7977 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7978 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7979 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7980 $EGREP "$file_magic_regex" > /dev/null; then 7981 : 7982 else 7983 cat <<_LT_EOF 1>&2 7984 7985*** Warning: the command libtool uses to detect shared libraries, 7986*** $file_magic_cmd, produces output that libtool cannot recognize. 7987*** The result is that libtool may fail to recognize shared libraries 7988*** as such. This will affect the creation of libtool libraries that 7989*** depend on shared libraries, but programs linked with such libtool 7990*** libraries will work regardless of this problem. Nevertheless, you 7991*** may want to report the problem to your system manager and/or to 7992*** bug-libtool@gnu.org 7993 7994_LT_EOF 7995 fi ;; 7996 esac 7997 fi 7998 break 7999 fi 8000 done 8001 IFS="$lt_save_ifs" 8002 MAGIC_CMD="$lt_save_MAGIC_CMD" 8003 ;; 8004esac 8005fi 8006 8007MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8008if test -n "$MAGIC_CMD"; then 8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8010$as_echo "$MAGIC_CMD" >&6; } 8011else 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8013$as_echo "no" >&6; } 8014fi 8015 8016 8017 else 8018 MAGIC_CMD=: 8019 fi 8020fi 8021 8022 fi 8023 ;; 8024esac 8025 8026# Use C for the default configuration in the libtool script 8027 8028lt_save_CC="$CC" 8029ac_ext=c 8030ac_cpp='$CPP $CPPFLAGS' 8031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8033ac_compiler_gnu=$ac_cv_c_compiler_gnu 8034 8035 8036# Source file extension for C test sources. 8037ac_ext=c 8038 8039# Object file extension for compiled C test sources. 8040objext=o 8041objext=$objext 8042 8043# Code to be used in simple compile tests 8044lt_simple_compile_test_code="int some_variable = 0;" 8045 8046# Code to be used in simple link tests 8047lt_simple_link_test_code='int main(){return(0);}' 8048 8049 8050 8051 8052 8053 8054 8055# If no C compiler was specified, use CC. 8056LTCC=${LTCC-"$CC"} 8057 8058# If no C compiler flags were specified, use CFLAGS. 8059LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8060 8061# Allow CC to be a program name with arguments. 8062compiler=$CC 8063 8064# Save the default compiler, since it gets overwritten when the other 8065# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8066compiler_DEFAULT=$CC 8067 8068# save warnings/boilerplate of simple test code 8069ac_outfile=conftest.$ac_objext 8070echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8071eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8072_lt_compiler_boilerplate=`cat conftest.err` 8073$RM conftest* 8074 8075ac_outfile=conftest.$ac_objext 8076echo "$lt_simple_link_test_code" >conftest.$ac_ext 8077eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8078_lt_linker_boilerplate=`cat conftest.err` 8079$RM -r conftest* 8080 8081 8082## CAVEAT EMPTOR: 8083## There is no encapsulation within the following macros, do not change 8084## the running order or otherwise move them around unless you know exactly 8085## what you are doing... 8086if test -n "$compiler"; then 8087 8088lt_prog_compiler_no_builtin_flag= 8089 8090if test "$GCC" = yes; then 8091 case $cc_basename in 8092 nvcc*) 8093 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8094 *) 8095 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8096 esac 8097 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8099$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8100if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8101 $as_echo_n "(cached) " >&6 8102else 8103 lt_cv_prog_compiler_rtti_exceptions=no 8104 ac_outfile=conftest.$ac_objext 8105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8106 lt_compiler_flag="-fno-rtti -fno-exceptions" 8107 # Insert the option either (1) after the last *FLAGS variable, or 8108 # (2) before a word containing "conftest.", or (3) at the end. 8109 # Note that $ac_compile itself does not contain backslashes and begins 8110 # with a dollar sign (not a hyphen), so the echo should work correctly. 8111 # The option is referenced via a variable to avoid confusing sed. 8112 lt_compile=`echo "$ac_compile" | $SED \ 8113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8115 -e 's:$: $lt_compiler_flag:'` 8116 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8117 (eval "$lt_compile" 2>conftest.err) 8118 ac_status=$? 8119 cat conftest.err >&5 8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8121 if (exit $ac_status) && test -s "$ac_outfile"; then 8122 # The compiler can only warn and ignore the option if not recognized 8123 # So say no if there are warnings other than the usual output. 8124 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8126 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8127 lt_cv_prog_compiler_rtti_exceptions=yes 8128 fi 8129 fi 8130 $RM conftest* 8131 8132fi 8133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8134$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8135 8136if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8137 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8138else 8139 : 8140fi 8141 8142fi 8143 8144 8145 8146 8147 8148 8149 lt_prog_compiler_wl= 8150lt_prog_compiler_pic= 8151lt_prog_compiler_static= 8152 8153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8154$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8155 8156 if test "$GCC" = yes; then 8157 lt_prog_compiler_wl='-Wl,' 8158 lt_prog_compiler_static='-static' 8159 8160 case $host_os in 8161 aix*) 8162 # All AIX code is PIC. 8163 if test "$host_cpu" = ia64; then 8164 # AIX 5 now supports IA64 processor 8165 lt_prog_compiler_static='-Bstatic' 8166 fi 8167 lt_prog_compiler_pic='-fPIC' 8168 ;; 8169 8170 amigaos*) 8171 case $host_cpu in 8172 powerpc) 8173 # see comment about AmigaOS4 .so support 8174 lt_prog_compiler_pic='-fPIC' 8175 ;; 8176 m68k) 8177 # FIXME: we need at least 68020 code to build shared libraries, but 8178 # adding the `-m68020' flag to GCC prevents building anything better, 8179 # like `-m68040'. 8180 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8181 ;; 8182 esac 8183 ;; 8184 8185 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8186 # PIC is the default for these OSes. 8187 ;; 8188 8189 mingw* | cygwin* | pw32* | os2* | cegcc*) 8190 # This hack is so that the source file can tell whether it is being 8191 # built for inclusion in a dll (and should export symbols for example). 8192 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8193 # (--disable-auto-import) libraries 8194 lt_prog_compiler_pic='-DDLL_EXPORT' 8195 ;; 8196 8197 darwin* | rhapsody*) 8198 # PIC is the default on this platform 8199 # Common symbols not allowed in MH_DYLIB files 8200 lt_prog_compiler_pic='-fno-common' 8201 ;; 8202 8203 haiku*) 8204 # PIC is the default for Haiku. 8205 # The "-static" flag exists, but is broken. 8206 lt_prog_compiler_static= 8207 ;; 8208 8209 hpux*) 8210 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8211 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8212 # sets the default TLS model and affects inlining. 8213 case $host_cpu in 8214 hppa*64*) 8215 # +Z the default 8216 ;; 8217 *) 8218 lt_prog_compiler_pic='-fPIC' 8219 ;; 8220 esac 8221 ;; 8222 8223 interix[3-9]*) 8224 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8225 # Instead, we relocate shared libraries at runtime. 8226 ;; 8227 8228 msdosdjgpp*) 8229 # Just because we use GCC doesn't mean we suddenly get shared libraries 8230 # on systems that don't support them. 8231 lt_prog_compiler_can_build_shared=no 8232 enable_shared=no 8233 ;; 8234 8235 *nto* | *qnx*) 8236 # QNX uses GNU C++, but need to define -shared option too, otherwise 8237 # it will coredump. 8238 lt_prog_compiler_pic='-fPIC -shared' 8239 ;; 8240 8241 sysv4*MP*) 8242 if test -d /usr/nec; then 8243 lt_prog_compiler_pic=-Kconform_pic 8244 fi 8245 ;; 8246 8247 *) 8248 lt_prog_compiler_pic='-fPIC' 8249 ;; 8250 esac 8251 8252 case $cc_basename in 8253 nvcc*) # Cuda Compiler Driver 2.2 8254 lt_prog_compiler_wl='-Xlinker ' 8255 lt_prog_compiler_pic='-Xcompiler -fPIC' 8256 ;; 8257 esac 8258 else 8259 # PORTME Check for flag to pass linker flags through the system compiler. 8260 case $host_os in 8261 aix*) 8262 lt_prog_compiler_wl='-Wl,' 8263 if test "$host_cpu" = ia64; then 8264 # AIX 5 now supports IA64 processor 8265 lt_prog_compiler_static='-Bstatic' 8266 else 8267 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8268 fi 8269 ;; 8270 8271 mingw* | cygwin* | pw32* | os2* | cegcc*) 8272 # This hack is so that the source file can tell whether it is being 8273 # built for inclusion in a dll (and should export symbols for example). 8274 lt_prog_compiler_pic='-DDLL_EXPORT' 8275 ;; 8276 8277 hpux9* | hpux10* | hpux11*) 8278 lt_prog_compiler_wl='-Wl,' 8279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8280 # not for PA HP-UX. 8281 case $host_cpu in 8282 hppa*64*|ia64*) 8283 # +Z the default 8284 ;; 8285 *) 8286 lt_prog_compiler_pic='+Z' 8287 ;; 8288 esac 8289 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8290 lt_prog_compiler_static='${wl}-a ${wl}archive' 8291 ;; 8292 8293 irix5* | irix6* | nonstopux*) 8294 lt_prog_compiler_wl='-Wl,' 8295 # PIC (with -KPIC) is the default. 8296 lt_prog_compiler_static='-non_shared' 8297 ;; 8298 8299 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8300 case $cc_basename in 8301 # old Intel for x86_64 which still supported -KPIC. 8302 ecc*) 8303 lt_prog_compiler_wl='-Wl,' 8304 lt_prog_compiler_pic='-KPIC' 8305 lt_prog_compiler_static='-static' 8306 ;; 8307 # icc used to be incompatible with GCC. 8308 # ICC 10 doesn't accept -KPIC any more. 8309 icc* | ifort*) 8310 lt_prog_compiler_wl='-Wl,' 8311 lt_prog_compiler_pic='-fPIC' 8312 lt_prog_compiler_static='-static' 8313 ;; 8314 # Lahey Fortran 8.1. 8315 lf95*) 8316 lt_prog_compiler_wl='-Wl,' 8317 lt_prog_compiler_pic='--shared' 8318 lt_prog_compiler_static='--static' 8319 ;; 8320 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8321 # Portland Group compilers (*not* the Pentium gcc compiler, 8322 # which looks to be a dead project) 8323 lt_prog_compiler_wl='-Wl,' 8324 lt_prog_compiler_pic='-fpic' 8325 lt_prog_compiler_static='-Bstatic' 8326 ;; 8327 ccc*) 8328 lt_prog_compiler_wl='-Wl,' 8329 # All Alpha code is PIC. 8330 lt_prog_compiler_static='-non_shared' 8331 ;; 8332 xl* | bgxl* | bgf* | mpixl*) 8333 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8334 lt_prog_compiler_wl='-Wl,' 8335 lt_prog_compiler_pic='-qpic' 8336 lt_prog_compiler_static='-qstaticlink' 8337 ;; 8338 *) 8339 case `$CC -V 2>&1 | sed 5q` in 8340 *Sun\ F* | *Sun*Fortran*) 8341 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8342 lt_prog_compiler_pic='-KPIC' 8343 lt_prog_compiler_static='-Bstatic' 8344 lt_prog_compiler_wl='' 8345 ;; 8346 *Sun\ C*) 8347 # Sun C 5.9 8348 lt_prog_compiler_pic='-KPIC' 8349 lt_prog_compiler_static='-Bstatic' 8350 lt_prog_compiler_wl='-Wl,' 8351 ;; 8352 esac 8353 ;; 8354 esac 8355 ;; 8356 8357 newsos6) 8358 lt_prog_compiler_pic='-KPIC' 8359 lt_prog_compiler_static='-Bstatic' 8360 ;; 8361 8362 *nto* | *qnx*) 8363 # QNX uses GNU C++, but need to define -shared option too, otherwise 8364 # it will coredump. 8365 lt_prog_compiler_pic='-fPIC -shared' 8366 ;; 8367 8368 osf3* | osf4* | osf5*) 8369 lt_prog_compiler_wl='-Wl,' 8370 # All OSF/1 code is PIC. 8371 lt_prog_compiler_static='-non_shared' 8372 ;; 8373 8374 rdos*) 8375 lt_prog_compiler_static='-non_shared' 8376 ;; 8377 8378 solaris*) 8379 lt_prog_compiler_pic='-KPIC' 8380 lt_prog_compiler_static='-Bstatic' 8381 case $cc_basename in 8382 f77* | f90* | f95*) 8383 lt_prog_compiler_wl='-Qoption ld ';; 8384 *) 8385 lt_prog_compiler_wl='-Wl,';; 8386 esac 8387 ;; 8388 8389 sunos4*) 8390 lt_prog_compiler_wl='-Qoption ld ' 8391 lt_prog_compiler_pic='-PIC' 8392 lt_prog_compiler_static='-Bstatic' 8393 ;; 8394 8395 sysv4 | sysv4.2uw2* | sysv4.3*) 8396 lt_prog_compiler_wl='-Wl,' 8397 lt_prog_compiler_pic='-KPIC' 8398 lt_prog_compiler_static='-Bstatic' 8399 ;; 8400 8401 sysv4*MP*) 8402 if test -d /usr/nec ;then 8403 lt_prog_compiler_pic='-Kconform_pic' 8404 lt_prog_compiler_static='-Bstatic' 8405 fi 8406 ;; 8407 8408 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8409 lt_prog_compiler_wl='-Wl,' 8410 lt_prog_compiler_pic='-KPIC' 8411 lt_prog_compiler_static='-Bstatic' 8412 ;; 8413 8414 unicos*) 8415 lt_prog_compiler_wl='-Wl,' 8416 lt_prog_compiler_can_build_shared=no 8417 ;; 8418 8419 uts4*) 8420 lt_prog_compiler_pic='-pic' 8421 lt_prog_compiler_static='-Bstatic' 8422 ;; 8423 8424 *) 8425 lt_prog_compiler_can_build_shared=no 8426 ;; 8427 esac 8428 fi 8429 8430case $host_os in 8431 # For platforms which do not support PIC, -DPIC is meaningless: 8432 *djgpp*) 8433 lt_prog_compiler_pic= 8434 ;; 8435 *) 8436 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8437 ;; 8438esac 8439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8440$as_echo "$lt_prog_compiler_pic" >&6; } 8441 8442 8443 8444 8445 8446 8447# 8448# Check to make sure the PIC flag actually works. 8449# 8450if test -n "$lt_prog_compiler_pic"; then 8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8452$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8453if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8454 $as_echo_n "(cached) " >&6 8455else 8456 lt_cv_prog_compiler_pic_works=no 8457 ac_outfile=conftest.$ac_objext 8458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8459 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8460 # Insert the option either (1) after the last *FLAGS variable, or 8461 # (2) before a word containing "conftest.", or (3) at the end. 8462 # Note that $ac_compile itself does not contain backslashes and begins 8463 # with a dollar sign (not a hyphen), so the echo should work correctly. 8464 # The option is referenced via a variable to avoid confusing sed. 8465 lt_compile=`echo "$ac_compile" | $SED \ 8466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8468 -e 's:$: $lt_compiler_flag:'` 8469 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8470 (eval "$lt_compile" 2>conftest.err) 8471 ac_status=$? 8472 cat conftest.err >&5 8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8474 if (exit $ac_status) && test -s "$ac_outfile"; then 8475 # The compiler can only warn and ignore the option if not recognized 8476 # So say no if there are warnings other than the usual output. 8477 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8479 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8480 lt_cv_prog_compiler_pic_works=yes 8481 fi 8482 fi 8483 $RM conftest* 8484 8485fi 8486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8487$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8488 8489if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8490 case $lt_prog_compiler_pic in 8491 "" | " "*) ;; 8492 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8493 esac 8494else 8495 lt_prog_compiler_pic= 8496 lt_prog_compiler_can_build_shared=no 8497fi 8498 8499fi 8500 8501 8502 8503 8504 8505 8506# 8507# Check to make sure the static flag actually works. 8508# 8509wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8511$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8512if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8513 $as_echo_n "(cached) " >&6 8514else 8515 lt_cv_prog_compiler_static_works=no 8516 save_LDFLAGS="$LDFLAGS" 8517 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8518 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8519 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8520 # The linker can only warn and ignore the option if not recognized 8521 # So say no if there are warnings 8522 if test -s conftest.err; then 8523 # Append any errors to the config.log. 8524 cat conftest.err 1>&5 8525 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8526 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8527 if diff conftest.exp conftest.er2 >/dev/null; then 8528 lt_cv_prog_compiler_static_works=yes 8529 fi 8530 else 8531 lt_cv_prog_compiler_static_works=yes 8532 fi 8533 fi 8534 $RM -r conftest* 8535 LDFLAGS="$save_LDFLAGS" 8536 8537fi 8538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8539$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8540 8541if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8542 : 8543else 8544 lt_prog_compiler_static= 8545fi 8546 8547 8548 8549 8550 8551 8552 8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8554$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8555if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8556 $as_echo_n "(cached) " >&6 8557else 8558 lt_cv_prog_compiler_c_o=no 8559 $RM -r conftest 2>/dev/null 8560 mkdir conftest 8561 cd conftest 8562 mkdir out 8563 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8564 8565 lt_compiler_flag="-o out/conftest2.$ac_objext" 8566 # Insert the option either (1) after the last *FLAGS variable, or 8567 # (2) before a word containing "conftest.", or (3) at the end. 8568 # Note that $ac_compile itself does not contain backslashes and begins 8569 # with a dollar sign (not a hyphen), so the echo should work correctly. 8570 lt_compile=`echo "$ac_compile" | $SED \ 8571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8573 -e 's:$: $lt_compiler_flag:'` 8574 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8575 (eval "$lt_compile" 2>out/conftest.err) 8576 ac_status=$? 8577 cat out/conftest.err >&5 8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8579 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8580 then 8581 # The compiler can only warn and ignore the option if not recognized 8582 # So say no if there are warnings 8583 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8584 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8585 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8586 lt_cv_prog_compiler_c_o=yes 8587 fi 8588 fi 8589 chmod u+w . 2>&5 8590 $RM conftest* 8591 # SGI C++ compiler will create directory out/ii_files/ for 8592 # template instantiation 8593 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8594 $RM out/* && rmdir out 8595 cd .. 8596 $RM -r conftest 8597 $RM conftest* 8598 8599fi 8600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8601$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8602 8603 8604 8605 8606 8607 8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8609$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8610if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8611 $as_echo_n "(cached) " >&6 8612else 8613 lt_cv_prog_compiler_c_o=no 8614 $RM -r conftest 2>/dev/null 8615 mkdir conftest 8616 cd conftest 8617 mkdir out 8618 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8619 8620 lt_compiler_flag="-o out/conftest2.$ac_objext" 8621 # Insert the option either (1) after the last *FLAGS variable, or 8622 # (2) before a word containing "conftest.", or (3) at the end. 8623 # Note that $ac_compile itself does not contain backslashes and begins 8624 # with a dollar sign (not a hyphen), so the echo should work correctly. 8625 lt_compile=`echo "$ac_compile" | $SED \ 8626 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8628 -e 's:$: $lt_compiler_flag:'` 8629 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8630 (eval "$lt_compile" 2>out/conftest.err) 8631 ac_status=$? 8632 cat out/conftest.err >&5 8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8634 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8635 then 8636 # The compiler can only warn and ignore the option if not recognized 8637 # So say no if there are warnings 8638 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8639 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8640 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8641 lt_cv_prog_compiler_c_o=yes 8642 fi 8643 fi 8644 chmod u+w . 2>&5 8645 $RM conftest* 8646 # SGI C++ compiler will create directory out/ii_files/ for 8647 # template instantiation 8648 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8649 $RM out/* && rmdir out 8650 cd .. 8651 $RM -r conftest 8652 $RM conftest* 8653 8654fi 8655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8656$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8657 8658 8659 8660 8661hard_links="nottested" 8662if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8663 # do not overwrite the value of need_locks provided by the user 8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8665$as_echo_n "checking if we can lock with hard links... " >&6; } 8666 hard_links=yes 8667 $RM conftest* 8668 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8669 touch conftest.a 8670 ln conftest.a conftest.b 2>&5 || hard_links=no 8671 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8673$as_echo "$hard_links" >&6; } 8674 if test "$hard_links" = no; then 8675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8676$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8677 need_locks=warn 8678 fi 8679else 8680 need_locks=no 8681fi 8682 8683 8684 8685 8686 8687 8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8689$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8690 8691 runpath_var= 8692 allow_undefined_flag= 8693 always_export_symbols=no 8694 archive_cmds= 8695 archive_expsym_cmds= 8696 compiler_needs_object=no 8697 enable_shared_with_static_runtimes=no 8698 export_dynamic_flag_spec= 8699 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8700 hardcode_automatic=no 8701 hardcode_direct=no 8702 hardcode_direct_absolute=no 8703 hardcode_libdir_flag_spec= 8704 hardcode_libdir_flag_spec_ld= 8705 hardcode_libdir_separator= 8706 hardcode_minus_L=no 8707 hardcode_shlibpath_var=unsupported 8708 inherit_rpath=no 8709 link_all_deplibs=unknown 8710 module_cmds= 8711 module_expsym_cmds= 8712 old_archive_from_new_cmds= 8713 old_archive_from_expsyms_cmds= 8714 thread_safe_flag_spec= 8715 whole_archive_flag_spec= 8716 # include_expsyms should be a list of space-separated symbols to be *always* 8717 # included in the symbol list 8718 include_expsyms= 8719 # exclude_expsyms can be an extended regexp of symbols to exclude 8720 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8721 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8722 # as well as any symbol that contains `d'. 8723 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8724 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8725 # platforms (ab)use it in PIC code, but their linkers get confused if 8726 # the symbol is explicitly referenced. Since portable code cannot 8727 # rely on this symbol name, it's probably fine to never include it in 8728 # preloaded symbol tables. 8729 # Exclude shared library initialization/finalization symbols. 8730 extract_expsyms_cmds= 8731 8732 case $host_os in 8733 cygwin* | mingw* | pw32* | cegcc*) 8734 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8735 # When not using gcc, we currently assume that we are using 8736 # Microsoft Visual C++. 8737 if test "$GCC" != yes; then 8738 with_gnu_ld=no 8739 fi 8740 ;; 8741 interix*) 8742 # we just hope/assume this is gcc and not c89 (= MSVC++) 8743 with_gnu_ld=yes 8744 ;; 8745 openbsd*) 8746 with_gnu_ld=no 8747 ;; 8748 esac 8749 8750 ld_shlibs=yes 8751 8752 # On some targets, GNU ld is compatible enough with the native linker 8753 # that we're better off using the native interface for both. 8754 lt_use_gnu_ld_interface=no 8755 if test "$with_gnu_ld" = yes; then 8756 case $host_os in 8757 aix*) 8758 # The AIX port of GNU ld has always aspired to compatibility 8759 # with the native linker. However, as the warning in the GNU ld 8760 # block says, versions before 2.19.5* couldn't really create working 8761 # shared libraries, regardless of the interface used. 8762 case `$LD -v 2>&1` in 8763 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8764 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8765 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8766 *) 8767 lt_use_gnu_ld_interface=yes 8768 ;; 8769 esac 8770 ;; 8771 *) 8772 lt_use_gnu_ld_interface=yes 8773 ;; 8774 esac 8775 fi 8776 8777 if test "$lt_use_gnu_ld_interface" = yes; then 8778 # If archive_cmds runs LD, not CC, wlarc should be empty 8779 wlarc='${wl}' 8780 8781 # Set some defaults for GNU ld with shared library support. These 8782 # are reset later if shared libraries are not supported. Putting them 8783 # here allows them to be overridden if necessary. 8784 runpath_var=LD_RUN_PATH 8785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8786 export_dynamic_flag_spec='${wl}--export-dynamic' 8787 # ancient GNU ld didn't support --whole-archive et. al. 8788 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8789 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8790 else 8791 whole_archive_flag_spec= 8792 fi 8793 supports_anon_versioning=no 8794 case `$LD -v 2>&1` in 8795 *GNU\ gold*) supports_anon_versioning=yes ;; 8796 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8797 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8798 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8799 *\ 2.11.*) ;; # other 2.11 versions 8800 *) supports_anon_versioning=yes ;; 8801 esac 8802 8803 # See if GNU ld supports shared libraries. 8804 case $host_os in 8805 aix[3-9]*) 8806 # On AIX/PPC, the GNU linker is very broken 8807 if test "$host_cpu" != ia64; then 8808 ld_shlibs=no 8809 cat <<_LT_EOF 1>&2 8810 8811*** Warning: the GNU linker, at least up to release 2.19, is reported 8812*** to be unable to reliably create shared libraries on AIX. 8813*** Therefore, libtool is disabling shared libraries support. If you 8814*** really care for shared libraries, you may want to install binutils 8815*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8816*** You will then need to restart the configuration process. 8817 8818_LT_EOF 8819 fi 8820 ;; 8821 8822 amigaos*) 8823 case $host_cpu in 8824 powerpc) 8825 # see comment about AmigaOS4 .so support 8826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8827 archive_expsym_cmds='' 8828 ;; 8829 m68k) 8830 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)' 8831 hardcode_libdir_flag_spec='-L$libdir' 8832 hardcode_minus_L=yes 8833 ;; 8834 esac 8835 ;; 8836 8837 beos*) 8838 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8839 allow_undefined_flag=unsupported 8840 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8841 # support --undefined. This deserves some investigation. FIXME 8842 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8843 else 8844 ld_shlibs=no 8845 fi 8846 ;; 8847 8848 cygwin* | mingw* | pw32* | cegcc*) 8849 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8850 # as there is no search path for DLLs. 8851 hardcode_libdir_flag_spec='-L$libdir' 8852 export_dynamic_flag_spec='${wl}--export-all-symbols' 8853 allow_undefined_flag=unsupported 8854 always_export_symbols=no 8855 enable_shared_with_static_runtimes=yes 8856 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8857 8858 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8859 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8860 # If the export-symbols file already is a .def file (1st line 8861 # is EXPORTS), use it as is; otherwise, prepend... 8862 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8863 cp $export_symbols $output_objdir/$soname.def; 8864 else 8865 echo EXPORTS > $output_objdir/$soname.def; 8866 cat $export_symbols >> $output_objdir/$soname.def; 8867 fi~ 8868 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8869 else 8870 ld_shlibs=no 8871 fi 8872 ;; 8873 8874 haiku*) 8875 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8876 link_all_deplibs=yes 8877 ;; 8878 8879 interix[3-9]*) 8880 hardcode_direct=no 8881 hardcode_shlibpath_var=no 8882 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8883 export_dynamic_flag_spec='${wl}-E' 8884 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8885 # Instead, shared libraries are loaded at an image base (0x10000000 by 8886 # default) and relocated if they conflict, which is a slow very memory 8887 # consuming and fragmenting process. To avoid this, we pick a random, 8888 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8889 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8890 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8891 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' 8892 ;; 8893 8894 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8895 tmp_diet=no 8896 if test "$host_os" = linux-dietlibc; then 8897 case $cc_basename in 8898 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8899 esac 8900 fi 8901 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8902 && test "$tmp_diet" = no 8903 then 8904 tmp_addflag=' $pic_flag' 8905 tmp_sharedflag='-shared' 8906 case $cc_basename,$host_cpu in 8907 pgcc*) # Portland Group C compiler 8908 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' 8909 tmp_addflag=' $pic_flag' 8910 ;; 8911 pgf77* | pgf90* | pgf95* | pgfortran*) 8912 # Portland Group f77 and f90 compilers 8913 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' 8914 tmp_addflag=' $pic_flag -Mnomain' ;; 8915 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8916 tmp_addflag=' -i_dynamic' ;; 8917 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8918 tmp_addflag=' -i_dynamic -nofor_main' ;; 8919 ifc* | ifort*) # Intel Fortran compiler 8920 tmp_addflag=' -nofor_main' ;; 8921 lf95*) # Lahey Fortran 8.1 8922 whole_archive_flag_spec= 8923 tmp_sharedflag='--shared' ;; 8924 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8925 tmp_sharedflag='-qmkshrobj' 8926 tmp_addflag= ;; 8927 nvcc*) # Cuda Compiler Driver 2.2 8928 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' 8929 compiler_needs_object=yes 8930 ;; 8931 esac 8932 case `$CC -V 2>&1 | sed 5q` in 8933 *Sun\ C*) # Sun C 5.9 8934 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' 8935 compiler_needs_object=yes 8936 tmp_sharedflag='-G' ;; 8937 *Sun\ F*) # Sun Fortran 8.3 8938 tmp_sharedflag='-G' ;; 8939 esac 8940 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8941 8942 if test "x$supports_anon_versioning" = xyes; then 8943 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8944 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8945 echo "local: *; };" >> $output_objdir/$libname.ver~ 8946 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8947 fi 8948 8949 case $cc_basename in 8950 xlf* | bgf* | bgxlf* | mpixlf*) 8951 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8952 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8953 hardcode_libdir_flag_spec= 8954 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8955 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8956 if test "x$supports_anon_versioning" = xyes; then 8957 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8958 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8959 echo "local: *; };" >> $output_objdir/$libname.ver~ 8960 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8961 fi 8962 ;; 8963 esac 8964 else 8965 ld_shlibs=no 8966 fi 8967 ;; 8968 8969 netbsd*) 8970 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8971 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8972 wlarc= 8973 else 8974 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8975 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8976 fi 8977 ;; 8978 8979 solaris*) 8980 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8981 ld_shlibs=no 8982 cat <<_LT_EOF 1>&2 8983 8984*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8985*** create shared libraries on Solaris systems. Therefore, libtool 8986*** is disabling shared libraries support. We urge you to upgrade GNU 8987*** binutils to release 2.9.1 or newer. Another option is to modify 8988*** your PATH or compiler configuration so that the native linker is 8989*** used, and then restart. 8990 8991_LT_EOF 8992 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8994 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8995 else 8996 ld_shlibs=no 8997 fi 8998 ;; 8999 9000 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9001 case `$LD -v 2>&1` in 9002 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9003 ld_shlibs=no 9004 cat <<_LT_EOF 1>&2 9005 9006*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9007*** reliably create shared libraries on SCO systems. Therefore, libtool 9008*** is disabling shared libraries support. We urge you to upgrade GNU 9009*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9010*** your PATH or compiler configuration so that the native linker is 9011*** used, and then restart. 9012 9013_LT_EOF 9014 ;; 9015 *) 9016 # For security reasons, it is highly recommended that you always 9017 # use absolute paths for naming shared libraries, and exclude the 9018 # DT_RUNPATH tag from executables and libraries. But doing so 9019 # requires that you compile everything twice, which is a pain. 9020 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9021 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9023 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9024 else 9025 ld_shlibs=no 9026 fi 9027 ;; 9028 esac 9029 ;; 9030 9031 sunos4*) 9032 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9033 wlarc= 9034 hardcode_direct=yes 9035 hardcode_shlibpath_var=no 9036 ;; 9037 9038 *) 9039 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9041 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9042 else 9043 ld_shlibs=no 9044 fi 9045 ;; 9046 esac 9047 9048 if test "$ld_shlibs" = no; then 9049 runpath_var= 9050 hardcode_libdir_flag_spec= 9051 export_dynamic_flag_spec= 9052 whole_archive_flag_spec= 9053 fi 9054 else 9055 # PORTME fill in a description of your system's linker (not GNU ld) 9056 case $host_os in 9057 aix3*) 9058 allow_undefined_flag=unsupported 9059 always_export_symbols=yes 9060 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' 9061 # Note: this linker hardcodes the directories in LIBPATH if there 9062 # are no directories specified by -L. 9063 hardcode_minus_L=yes 9064 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9065 # Neither direct hardcoding nor static linking is supported with a 9066 # broken collect2. 9067 hardcode_direct=unsupported 9068 fi 9069 ;; 9070 9071 aix[4-9]*) 9072 if test "$host_cpu" = ia64; then 9073 # On IA64, the linker does run time linking by default, so we don't 9074 # have to do anything special. 9075 aix_use_runtimelinking=no 9076 exp_sym_flag='-Bexport' 9077 no_entry_flag="" 9078 else 9079 # If we're using GNU nm, then we don't want the "-C" option. 9080 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9081 # Also, AIX nm treats weak defined symbols like other global 9082 # defined symbols, whereas GNU nm marks them as "W". 9083 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9084 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' 9085 else 9086 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9087 fi 9088 aix_use_runtimelinking=no 9089 9090 # Test if we are trying to use run time linking or normal 9091 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9092 # need to do runtime linking. 9093 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9094 for ld_flag in $LDFLAGS; do 9095 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9096 aix_use_runtimelinking=yes 9097 break 9098 fi 9099 done 9100 ;; 9101 esac 9102 9103 exp_sym_flag='-bexport' 9104 no_entry_flag='-bnoentry' 9105 fi 9106 9107 # When large executables or shared objects are built, AIX ld can 9108 # have problems creating the table of contents. If linking a library 9109 # or program results in "error TOC overflow" add -mminimal-toc to 9110 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9111 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9112 9113 archive_cmds='' 9114 hardcode_direct=yes 9115 hardcode_direct_absolute=yes 9116 hardcode_libdir_separator=':' 9117 link_all_deplibs=yes 9118 file_list_spec='${wl}-f,' 9119 9120 if test "$GCC" = yes; then 9121 case $host_os in aix4.[012]|aix4.[012].*) 9122 # We only want to do this on AIX 4.2 and lower, the check 9123 # below for broken collect2 doesn't work under 4.3+ 9124 collect2name=`${CC} -print-prog-name=collect2` 9125 if test -f "$collect2name" && 9126 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9127 then 9128 # We have reworked collect2 9129 : 9130 else 9131 # We have old collect2 9132 hardcode_direct=unsupported 9133 # It fails to find uninstalled libraries when the uninstalled 9134 # path is not listed in the libpath. Setting hardcode_minus_L 9135 # to unsupported forces relinking 9136 hardcode_minus_L=yes 9137 hardcode_libdir_flag_spec='-L$libdir' 9138 hardcode_libdir_separator= 9139 fi 9140 ;; 9141 esac 9142 shared_flag='-shared' 9143 if test "$aix_use_runtimelinking" = yes; then 9144 shared_flag="$shared_flag "'${wl}-G' 9145 fi 9146 else 9147 # not using gcc 9148 if test "$host_cpu" = ia64; then 9149 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9150 # chokes on -Wl,-G. The following line is correct: 9151 shared_flag='-G' 9152 else 9153 if test "$aix_use_runtimelinking" = yes; then 9154 shared_flag='${wl}-G' 9155 else 9156 shared_flag='${wl}-bM:SRE' 9157 fi 9158 fi 9159 fi 9160 9161 export_dynamic_flag_spec='${wl}-bexpall' 9162 # It seems that -bexpall does not export symbols beginning with 9163 # underscore (_), so it is better to generate a list of symbols to export. 9164 always_export_symbols=yes 9165 if test "$aix_use_runtimelinking" = yes; then 9166 # Warning - without using the other runtime loading flags (-brtl), 9167 # -berok will link without error, but may produce a broken library. 9168 allow_undefined_flag='-berok' 9169 # Determine the default libpath from the value encoded in an 9170 # empty executable. 9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9172/* end confdefs.h. */ 9173 9174int 9175main () 9176{ 9177 9178 ; 9179 return 0; 9180} 9181_ACEOF 9182if ac_fn_c_try_link "$LINENO"; then : 9183 9184lt_aix_libpath_sed=' 9185 /Import File Strings/,/^$/ { 9186 /^0/ { 9187 s/^0 *\(.*\)$/\1/ 9188 p 9189 } 9190 }' 9191aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9192# Check for a 64-bit object if we didn't find anything. 9193if test -z "$aix_libpath"; then 9194 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9195fi 9196fi 9197rm -f core conftest.err conftest.$ac_objext \ 9198 conftest$ac_exeext conftest.$ac_ext 9199if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9200 9201 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9202 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" 9203 else 9204 if test "$host_cpu" = ia64; then 9205 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9206 allow_undefined_flag="-z nodefs" 9207 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" 9208 else 9209 # Determine the default libpath from the value encoded in an 9210 # empty executable. 9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9212/* end confdefs.h. */ 9213 9214int 9215main () 9216{ 9217 9218 ; 9219 return 0; 9220} 9221_ACEOF 9222if ac_fn_c_try_link "$LINENO"; then : 9223 9224lt_aix_libpath_sed=' 9225 /Import File Strings/,/^$/ { 9226 /^0/ { 9227 s/^0 *\(.*\)$/\1/ 9228 p 9229 } 9230 }' 9231aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9232# Check for a 64-bit object if we didn't find anything. 9233if test -z "$aix_libpath"; then 9234 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9235fi 9236fi 9237rm -f core conftest.err conftest.$ac_objext \ 9238 conftest$ac_exeext conftest.$ac_ext 9239if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9240 9241 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9242 # Warning - without using the other run time loading flags, 9243 # -berok will link without error, but may produce a broken library. 9244 no_undefined_flag=' ${wl}-bernotok' 9245 allow_undefined_flag=' ${wl}-berok' 9246 if test "$with_gnu_ld" = yes; then 9247 # We only use this code for GNU lds that support --whole-archive. 9248 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9249 else 9250 # Exported symbols can be pulled into shared objects from archives 9251 whole_archive_flag_spec='$convenience' 9252 fi 9253 archive_cmds_need_lc=yes 9254 # This is similar to how AIX traditionally builds its shared libraries. 9255 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' 9256 fi 9257 fi 9258 ;; 9259 9260 amigaos*) 9261 case $host_cpu in 9262 powerpc) 9263 # see comment about AmigaOS4 .so support 9264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9265 archive_expsym_cmds='' 9266 ;; 9267 m68k) 9268 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)' 9269 hardcode_libdir_flag_spec='-L$libdir' 9270 hardcode_minus_L=yes 9271 ;; 9272 esac 9273 ;; 9274 9275 bsdi[45]*) 9276 export_dynamic_flag_spec=-rdynamic 9277 ;; 9278 9279 cygwin* | mingw* | pw32* | cegcc*) 9280 # When not using gcc, we currently assume that we are using 9281 # Microsoft Visual C++. 9282 # hardcode_libdir_flag_spec is actually meaningless, as there is 9283 # no search path for DLLs. 9284 hardcode_libdir_flag_spec=' ' 9285 allow_undefined_flag=unsupported 9286 # Tell ltmain to make .lib files, not .a files. 9287 libext=lib 9288 # Tell ltmain to make .dll files, not .so files. 9289 shrext_cmds=".dll" 9290 # FIXME: Setting linknames here is a bad hack. 9291 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9292 # The linker will automatically build a .lib file if we build a DLL. 9293 old_archive_from_new_cmds='true' 9294 # FIXME: Should let the user specify the lib program. 9295 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9296 fix_srcfile_path='`cygpath -w "$srcfile"`' 9297 enable_shared_with_static_runtimes=yes 9298 ;; 9299 9300 darwin* | rhapsody*) 9301 9302 9303 archive_cmds_need_lc=no 9304 hardcode_direct=no 9305 hardcode_automatic=yes 9306 hardcode_shlibpath_var=unsupported 9307 if test "$lt_cv_ld_force_load" = "yes"; then 9308 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\"`' 9309 else 9310 whole_archive_flag_spec='' 9311 fi 9312 link_all_deplibs=yes 9313 allow_undefined_flag="$_lt_dar_allow_undefined" 9314 case $cc_basename in 9315 ifort*) _lt_dar_can_shared=yes ;; 9316 *) _lt_dar_can_shared=$GCC ;; 9317 esac 9318 if test "$_lt_dar_can_shared" = "yes"; then 9319 output_verbose_link_cmd=func_echo_all 9320 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9321 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9322 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}" 9323 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}" 9324 9325 else 9326 ld_shlibs=no 9327 fi 9328 9329 ;; 9330 9331 dgux*) 9332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9333 hardcode_libdir_flag_spec='-L$libdir' 9334 hardcode_shlibpath_var=no 9335 ;; 9336 9337 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9338 # support. Future versions do this automatically, but an explicit c++rt0.o 9339 # does not break anything, and helps significantly (at the cost of a little 9340 # extra space). 9341 freebsd2.2*) 9342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9343 hardcode_libdir_flag_spec='-R$libdir' 9344 hardcode_direct=yes 9345 hardcode_shlibpath_var=no 9346 ;; 9347 9348 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9349 freebsd2.*) 9350 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9351 hardcode_direct=yes 9352 hardcode_minus_L=yes 9353 hardcode_shlibpath_var=no 9354 ;; 9355 9356 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9357 freebsd* | dragonfly*) 9358 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9359 hardcode_libdir_flag_spec='-R$libdir' 9360 hardcode_direct=yes 9361 hardcode_shlibpath_var=no 9362 ;; 9363 9364 hpux9*) 9365 if test "$GCC" = yes; then 9366 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' 9367 else 9368 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' 9369 fi 9370 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9371 hardcode_libdir_separator=: 9372 hardcode_direct=yes 9373 9374 # hardcode_minus_L: Not really in the search PATH, 9375 # but as the default location of the library. 9376 hardcode_minus_L=yes 9377 export_dynamic_flag_spec='${wl}-E' 9378 ;; 9379 9380 hpux10*) 9381 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9382 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9383 else 9384 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9385 fi 9386 if test "$with_gnu_ld" = no; then 9387 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9388 hardcode_libdir_flag_spec_ld='+b $libdir' 9389 hardcode_libdir_separator=: 9390 hardcode_direct=yes 9391 hardcode_direct_absolute=yes 9392 export_dynamic_flag_spec='${wl}-E' 9393 # hardcode_minus_L: Not really in the search PATH, 9394 # but as the default location of the library. 9395 hardcode_minus_L=yes 9396 fi 9397 ;; 9398 9399 hpux11*) 9400 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9401 case $host_cpu in 9402 hppa*64*) 9403 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9404 ;; 9405 ia64*) 9406 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9407 ;; 9408 *) 9409 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9410 ;; 9411 esac 9412 else 9413 case $host_cpu in 9414 hppa*64*) 9415 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9416 ;; 9417 ia64*) 9418 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9419 ;; 9420 *) 9421 9422 # Older versions of the 11.00 compiler do not understand -b yet 9423 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9425$as_echo_n "checking if $CC understands -b... " >&6; } 9426if test "${lt_cv_prog_compiler__b+set}" = set; then : 9427 $as_echo_n "(cached) " >&6 9428else 9429 lt_cv_prog_compiler__b=no 9430 save_LDFLAGS="$LDFLAGS" 9431 LDFLAGS="$LDFLAGS -b" 9432 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9433 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9434 # The linker can only warn and ignore the option if not recognized 9435 # So say no if there are warnings 9436 if test -s conftest.err; then 9437 # Append any errors to the config.log. 9438 cat conftest.err 1>&5 9439 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9441 if diff conftest.exp conftest.er2 >/dev/null; then 9442 lt_cv_prog_compiler__b=yes 9443 fi 9444 else 9445 lt_cv_prog_compiler__b=yes 9446 fi 9447 fi 9448 $RM -r conftest* 9449 LDFLAGS="$save_LDFLAGS" 9450 9451fi 9452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9453$as_echo "$lt_cv_prog_compiler__b" >&6; } 9454 9455if test x"$lt_cv_prog_compiler__b" = xyes; then 9456 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9457else 9458 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9459fi 9460 9461 ;; 9462 esac 9463 fi 9464 if test "$with_gnu_ld" = no; then 9465 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9466 hardcode_libdir_separator=: 9467 9468 case $host_cpu in 9469 hppa*64*|ia64*) 9470 hardcode_direct=no 9471 hardcode_shlibpath_var=no 9472 ;; 9473 *) 9474 hardcode_direct=yes 9475 hardcode_direct_absolute=yes 9476 export_dynamic_flag_spec='${wl}-E' 9477 9478 # hardcode_minus_L: Not really in the search PATH, 9479 # but as the default location of the library. 9480 hardcode_minus_L=yes 9481 ;; 9482 esac 9483 fi 9484 ;; 9485 9486 irix5* | irix6* | nonstopux*) 9487 if test "$GCC" = yes; then 9488 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' 9489 # Try to use the -exported_symbol ld option, if it does not 9490 # work, assume that -exports_file does not work either and 9491 # implicitly export all symbols. 9492 save_LDFLAGS="$LDFLAGS" 9493 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9495/* end confdefs.h. */ 9496int foo(void) {} 9497_ACEOF 9498if ac_fn_c_try_link "$LINENO"; then : 9499 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' 9500 9501fi 9502rm -f core conftest.err conftest.$ac_objext \ 9503 conftest$ac_exeext conftest.$ac_ext 9504 LDFLAGS="$save_LDFLAGS" 9505 else 9506 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' 9507 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' 9508 fi 9509 archive_cmds_need_lc='no' 9510 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9511 hardcode_libdir_separator=: 9512 inherit_rpath=yes 9513 link_all_deplibs=yes 9514 ;; 9515 9516 netbsd*) 9517 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9519 else 9520 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9521 fi 9522 hardcode_libdir_flag_spec='-R$libdir' 9523 hardcode_direct=yes 9524 hardcode_shlibpath_var=no 9525 ;; 9526 9527 newsos6) 9528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9529 hardcode_direct=yes 9530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9531 hardcode_libdir_separator=: 9532 hardcode_shlibpath_var=no 9533 ;; 9534 9535 *nto* | *qnx*) 9536 ;; 9537 9538 openbsd*) 9539 if test -f /usr/libexec/ld.so; then 9540 hardcode_direct=yes 9541 hardcode_shlibpath_var=no 9542 hardcode_direct_absolute=yes 9543 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9544 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9545 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9546 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9547 export_dynamic_flag_spec='${wl}-E' 9548 else 9549 case $host_os in 9550 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9552 hardcode_libdir_flag_spec='-R$libdir' 9553 ;; 9554 *) 9555 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9556 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9557 ;; 9558 esac 9559 fi 9560 else 9561 ld_shlibs=no 9562 fi 9563 ;; 9564 9565 os2*) 9566 hardcode_libdir_flag_spec='-L$libdir' 9567 hardcode_minus_L=yes 9568 allow_undefined_flag=unsupported 9569 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' 9570 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9571 ;; 9572 9573 osf3*) 9574 if test "$GCC" = yes; then 9575 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9576 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' 9577 else 9578 allow_undefined_flag=' -expect_unresolved \*' 9579 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' 9580 fi 9581 archive_cmds_need_lc='no' 9582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9583 hardcode_libdir_separator=: 9584 ;; 9585 9586 osf4* | osf5*) # as osf3* with the addition of -msym flag 9587 if test "$GCC" = yes; then 9588 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9589 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' 9590 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9591 else 9592 allow_undefined_flag=' -expect_unresolved \*' 9593 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' 9594 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~ 9595 $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' 9596 9597 # Both c and cxx compiler support -rpath directly 9598 hardcode_libdir_flag_spec='-rpath $libdir' 9599 fi 9600 archive_cmds_need_lc='no' 9601 hardcode_libdir_separator=: 9602 ;; 9603 9604 solaris*) 9605 no_undefined_flag=' -z defs' 9606 if test "$GCC" = yes; then 9607 wlarc='${wl}' 9608 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9609 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9610 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9611 else 9612 case `$CC -V 2>&1` in 9613 *"Compilers 5.0"*) 9614 wlarc='' 9615 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9616 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9617 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9618 ;; 9619 *) 9620 wlarc='${wl}' 9621 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9622 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9623 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9624 ;; 9625 esac 9626 fi 9627 hardcode_libdir_flag_spec='-R$libdir' 9628 hardcode_shlibpath_var=no 9629 case $host_os in 9630 solaris2.[0-5] | solaris2.[0-5].*) ;; 9631 *) 9632 # The compiler driver will combine and reorder linker options, 9633 # but understands `-z linker_flag'. GCC discards it without `$wl', 9634 # but is careful enough not to reorder. 9635 # Supported since Solaris 2.6 (maybe 2.5.1?) 9636 if test "$GCC" = yes; then 9637 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9638 else 9639 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9640 fi 9641 ;; 9642 esac 9643 link_all_deplibs=yes 9644 ;; 9645 9646 sunos4*) 9647 if test "x$host_vendor" = xsequent; then 9648 # Use $CC to link under sequent, because it throws in some extra .o 9649 # files that make .init and .fini sections work. 9650 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9651 else 9652 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9653 fi 9654 hardcode_libdir_flag_spec='-L$libdir' 9655 hardcode_direct=yes 9656 hardcode_minus_L=yes 9657 hardcode_shlibpath_var=no 9658 ;; 9659 9660 sysv4) 9661 case $host_vendor in 9662 sni) 9663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9664 hardcode_direct=yes # is this really true??? 9665 ;; 9666 siemens) 9667 ## LD is ld it makes a PLAMLIB 9668 ## CC just makes a GrossModule. 9669 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9670 reload_cmds='$CC -r -o $output$reload_objs' 9671 hardcode_direct=no 9672 ;; 9673 motorola) 9674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9675 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9676 ;; 9677 esac 9678 runpath_var='LD_RUN_PATH' 9679 hardcode_shlibpath_var=no 9680 ;; 9681 9682 sysv4.3*) 9683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9684 hardcode_shlibpath_var=no 9685 export_dynamic_flag_spec='-Bexport' 9686 ;; 9687 9688 sysv4*MP*) 9689 if test -d /usr/nec; then 9690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9691 hardcode_shlibpath_var=no 9692 runpath_var=LD_RUN_PATH 9693 hardcode_runpath_var=yes 9694 ld_shlibs=yes 9695 fi 9696 ;; 9697 9698 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9699 no_undefined_flag='${wl}-z,text' 9700 archive_cmds_need_lc=no 9701 hardcode_shlibpath_var=no 9702 runpath_var='LD_RUN_PATH' 9703 9704 if test "$GCC" = yes; then 9705 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9706 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9707 else 9708 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9709 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9710 fi 9711 ;; 9712 9713 sysv5* | sco3.2v5* | sco5v6*) 9714 # Note: We can NOT use -z defs as we might desire, because we do not 9715 # link with -lc, and that would cause any symbols used from libc to 9716 # always be unresolved, which means just about no library would 9717 # ever link correctly. If we're not using GNU ld we use -z text 9718 # though, which does catch some bad symbols but isn't as heavy-handed 9719 # as -z defs. 9720 no_undefined_flag='${wl}-z,text' 9721 allow_undefined_flag='${wl}-z,nodefs' 9722 archive_cmds_need_lc=no 9723 hardcode_shlibpath_var=no 9724 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9725 hardcode_libdir_separator=':' 9726 link_all_deplibs=yes 9727 export_dynamic_flag_spec='${wl}-Bexport' 9728 runpath_var='LD_RUN_PATH' 9729 9730 if test "$GCC" = yes; then 9731 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9732 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9733 else 9734 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9735 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9736 fi 9737 ;; 9738 9739 uts4*) 9740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9741 hardcode_libdir_flag_spec='-L$libdir' 9742 hardcode_shlibpath_var=no 9743 ;; 9744 9745 *) 9746 ld_shlibs=no 9747 ;; 9748 esac 9749 9750 if test x$host_vendor = xsni; then 9751 case $host in 9752 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9753 export_dynamic_flag_spec='${wl}-Blargedynsym' 9754 ;; 9755 esac 9756 fi 9757 fi 9758 9759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9760$as_echo "$ld_shlibs" >&6; } 9761test "$ld_shlibs" = no && can_build_shared=no 9762 9763with_gnu_ld=$with_gnu_ld 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779# 9780# Do we need to explicitly link libc? 9781# 9782case "x$archive_cmds_need_lc" in 9783x|xyes) 9784 # Assume -lc should be added 9785 archive_cmds_need_lc=yes 9786 9787 if test "$enable_shared" = yes && test "$GCC" = yes; then 9788 case $archive_cmds in 9789 *'~'*) 9790 # FIXME: we may have to deal with multi-command sequences. 9791 ;; 9792 '$CC '*) 9793 # Test whether the compiler implicitly links with -lc since on some 9794 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9795 # to ld, don't add -lc before -lgcc. 9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9797$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9798if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 9799 $as_echo_n "(cached) " >&6 9800else 9801 $RM conftest* 9802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9803 9804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9805 (eval $ac_compile) 2>&5 9806 ac_status=$? 9807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9808 test $ac_status = 0; } 2>conftest.err; then 9809 soname=conftest 9810 lib=conftest 9811 libobjs=conftest.$ac_objext 9812 deplibs= 9813 wl=$lt_prog_compiler_wl 9814 pic_flag=$lt_prog_compiler_pic 9815 compiler_flags=-v 9816 linker_flags=-v 9817 verstring= 9818 output_objdir=. 9819 libname=conftest 9820 lt_save_allow_undefined_flag=$allow_undefined_flag 9821 allow_undefined_flag= 9822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9823 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9824 ac_status=$? 9825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9826 test $ac_status = 0; } 9827 then 9828 lt_cv_archive_cmds_need_lc=no 9829 else 9830 lt_cv_archive_cmds_need_lc=yes 9831 fi 9832 allow_undefined_flag=$lt_save_allow_undefined_flag 9833 else 9834 cat conftest.err 1>&5 9835 fi 9836 $RM conftest* 9837 9838fi 9839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9840$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9841 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9842 ;; 9843 esac 9844 fi 9845 ;; 9846esac 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10005$as_echo_n "checking dynamic linker characteristics... " >&6; } 10006 10007if test "$GCC" = yes; then 10008 case $host_os in 10009 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10010 *) lt_awk_arg="/^libraries:/" ;; 10011 esac 10012 case $host_os in 10013 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10014 *) lt_sed_strip_eq="s,=/,/,g" ;; 10015 esac 10016 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10017 case $lt_search_path_spec in 10018 *\;*) 10019 # if the path contains ";" then we assume it to be the separator 10020 # otherwise default to the standard path separator (i.e. ":") - it is 10021 # assumed that no part of a normal pathname contains ";" but that should 10022 # okay in the real world where ";" in dirpaths is itself problematic. 10023 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10024 ;; 10025 *) 10026 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10027 ;; 10028 esac 10029 # Ok, now we have the path, separated by spaces, we can step through it 10030 # and add multilib dir if necessary. 10031 lt_tmp_lt_search_path_spec= 10032 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10033 for lt_sys_path in $lt_search_path_spec; do 10034 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10035 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10036 else 10037 test -d "$lt_sys_path" && \ 10038 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10039 fi 10040 done 10041 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10042BEGIN {RS=" "; FS="/|\n";} { 10043 lt_foo=""; 10044 lt_count=0; 10045 for (lt_i = NF; lt_i > 0; lt_i--) { 10046 if ($lt_i != "" && $lt_i != ".") { 10047 if ($lt_i == "..") { 10048 lt_count++; 10049 } else { 10050 if (lt_count == 0) { 10051 lt_foo="/" $lt_i lt_foo; 10052 } else { 10053 lt_count--; 10054 } 10055 } 10056 } 10057 } 10058 if (lt_foo != "") { lt_freq[lt_foo]++; } 10059 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10060}'` 10061 # AWK program above erroneously prepends '/' to C:/dos/paths 10062 # for these hosts. 10063 case $host_os in 10064 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10065 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10066 esac 10067 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10068else 10069 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10070fi 10071library_names_spec= 10072libname_spec='lib$name' 10073soname_spec= 10074shrext_cmds=".so" 10075postinstall_cmds= 10076postuninstall_cmds= 10077finish_cmds= 10078finish_eval= 10079shlibpath_var= 10080shlibpath_overrides_runpath=unknown 10081version_type=none 10082dynamic_linker="$host_os ld.so" 10083sys_lib_dlsearch_path_spec="/lib /usr/lib" 10084need_lib_prefix=unknown 10085hardcode_into_libs=no 10086 10087# when you set need_version to no, make sure it does not cause -set_version 10088# flags to be left without arguments 10089need_version=unknown 10090 10091case $host_os in 10092aix3*) 10093 version_type=linux 10094 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10095 shlibpath_var=LIBPATH 10096 10097 # AIX 3 has no versioning support, so we append a major version to the name. 10098 soname_spec='${libname}${release}${shared_ext}$major' 10099 ;; 10100 10101aix[4-9]*) 10102 version_type=linux 10103 need_lib_prefix=no 10104 need_version=no 10105 hardcode_into_libs=yes 10106 if test "$host_cpu" = ia64; then 10107 # AIX 5 supports IA64 10108 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10109 shlibpath_var=LD_LIBRARY_PATH 10110 else 10111 # With GCC up to 2.95.x, collect2 would create an import file 10112 # for dependence libraries. The import file would start with 10113 # the line `#! .'. This would cause the generated library to 10114 # depend on `.', always an invalid library. This was fixed in 10115 # development snapshots of GCC prior to 3.0. 10116 case $host_os in 10117 aix4 | aix4.[01] | aix4.[01].*) 10118 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10119 echo ' yes ' 10120 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10121 : 10122 else 10123 can_build_shared=no 10124 fi 10125 ;; 10126 esac 10127 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10128 # soname into executable. Probably we can add versioning support to 10129 # collect2, so additional links can be useful in future. 10130 if test "$aix_use_runtimelinking" = yes; then 10131 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10132 # instead of lib<name>.a to let people know that these are not 10133 # typical AIX shared libraries. 10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10135 else 10136 # We preserve .a as extension for shared libraries through AIX4.2 10137 # and later when we are not doing run time linking. 10138 library_names_spec='${libname}${release}.a $libname.a' 10139 soname_spec='${libname}${release}${shared_ext}$major' 10140 fi 10141 shlibpath_var=LIBPATH 10142 fi 10143 ;; 10144 10145amigaos*) 10146 case $host_cpu in 10147 powerpc) 10148 # Since July 2007 AmigaOS4 officially supports .so libraries. 10149 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10151 ;; 10152 m68k) 10153 library_names_spec='$libname.ixlibrary $libname.a' 10154 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10155 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' 10156 ;; 10157 esac 10158 ;; 10159 10160beos*) 10161 library_names_spec='${libname}${shared_ext}' 10162 dynamic_linker="$host_os ld.so" 10163 shlibpath_var=LIBRARY_PATH 10164 ;; 10165 10166bsdi[45]*) 10167 version_type=linux 10168 need_version=no 10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10170 soname_spec='${libname}${release}${shared_ext}$major' 10171 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10172 shlibpath_var=LD_LIBRARY_PATH 10173 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10174 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10175 # the default ld.so.conf also contains /usr/contrib/lib and 10176 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10177 # libtool to hard-code these into programs 10178 ;; 10179 10180cygwin* | mingw* | pw32* | cegcc*) 10181 version_type=windows 10182 shrext_cmds=".dll" 10183 need_version=no 10184 need_lib_prefix=no 10185 10186 case $GCC,$host_os in 10187 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10188 library_names_spec='$libname.dll.a' 10189 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10190 postinstall_cmds='base_file=`basename \${file}`~ 10191 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10192 dldir=$destdir/`dirname \$dlpath`~ 10193 test -d \$dldir || mkdir -p \$dldir~ 10194 $install_prog $dir/$dlname \$dldir/$dlname~ 10195 chmod a+x \$dldir/$dlname~ 10196 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10197 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10198 fi' 10199 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10200 dlpath=$dir/\$dldll~ 10201 $RM \$dlpath' 10202 shlibpath_overrides_runpath=yes 10203 10204 case $host_os in 10205 cygwin*) 10206 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10207 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10208 10209 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10210 ;; 10211 mingw* | cegcc*) 10212 # MinGW DLLs use traditional 'lib' prefix 10213 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10214 ;; 10215 pw32*) 10216 # pw32 DLLs use 'pw' prefix rather than 'lib' 10217 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10218 ;; 10219 esac 10220 ;; 10221 10222 *) 10223 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10224 ;; 10225 esac 10226 dynamic_linker='Win32 ld.exe' 10227 # FIXME: first we should search . and the directory the executable is in 10228 shlibpath_var=PATH 10229 ;; 10230 10231darwin* | rhapsody*) 10232 dynamic_linker="$host_os dyld" 10233 version_type=darwin 10234 need_lib_prefix=no 10235 need_version=no 10236 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10237 soname_spec='${libname}${release}${major}$shared_ext' 10238 shlibpath_overrides_runpath=yes 10239 shlibpath_var=DYLD_LIBRARY_PATH 10240 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10241 10242 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10243 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10244 ;; 10245 10246dgux*) 10247 version_type=linux 10248 need_lib_prefix=no 10249 need_version=no 10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10251 soname_spec='${libname}${release}${shared_ext}$major' 10252 shlibpath_var=LD_LIBRARY_PATH 10253 ;; 10254 10255freebsd* | dragonfly*) 10256 # DragonFly does not have aout. When/if they implement a new 10257 # versioning mechanism, adjust this. 10258 if test -x /usr/bin/objformat; then 10259 objformat=`/usr/bin/objformat` 10260 else 10261 case $host_os in 10262 freebsd[23].*) objformat=aout ;; 10263 *) objformat=elf ;; 10264 esac 10265 fi 10266 version_type=freebsd-$objformat 10267 case $version_type in 10268 freebsd-elf*) 10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10270 need_version=no 10271 need_lib_prefix=no 10272 ;; 10273 freebsd-*) 10274 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10275 need_version=yes 10276 ;; 10277 esac 10278 shlibpath_var=LD_LIBRARY_PATH 10279 case $host_os in 10280 freebsd2.*) 10281 shlibpath_overrides_runpath=yes 10282 ;; 10283 freebsd3.[01]* | freebsdelf3.[01]*) 10284 shlibpath_overrides_runpath=yes 10285 hardcode_into_libs=yes 10286 ;; 10287 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10288 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10289 shlibpath_overrides_runpath=no 10290 hardcode_into_libs=yes 10291 ;; 10292 *) # from 4.6 on, and DragonFly 10293 shlibpath_overrides_runpath=yes 10294 hardcode_into_libs=yes 10295 ;; 10296 esac 10297 ;; 10298 10299gnu*) 10300 version_type=linux 10301 need_lib_prefix=no 10302 need_version=no 10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10304 soname_spec='${libname}${release}${shared_ext}$major' 10305 shlibpath_var=LD_LIBRARY_PATH 10306 hardcode_into_libs=yes 10307 ;; 10308 10309haiku*) 10310 version_type=linux 10311 need_lib_prefix=no 10312 need_version=no 10313 dynamic_linker="$host_os runtime_loader" 10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10315 soname_spec='${libname}${release}${shared_ext}$major' 10316 shlibpath_var=LIBRARY_PATH 10317 shlibpath_overrides_runpath=yes 10318 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 10319 hardcode_into_libs=yes 10320 ;; 10321 10322hpux9* | hpux10* | hpux11*) 10323 # Give a soname corresponding to the major version so that dld.sl refuses to 10324 # link against other versions. 10325 version_type=sunos 10326 need_lib_prefix=no 10327 need_version=no 10328 case $host_cpu in 10329 ia64*) 10330 shrext_cmds='.so' 10331 hardcode_into_libs=yes 10332 dynamic_linker="$host_os dld.so" 10333 shlibpath_var=LD_LIBRARY_PATH 10334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10336 soname_spec='${libname}${release}${shared_ext}$major' 10337 if test "X$HPUX_IA64_MODE" = X32; then 10338 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10339 else 10340 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10341 fi 10342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10343 ;; 10344 hppa*64*) 10345 shrext_cmds='.sl' 10346 hardcode_into_libs=yes 10347 dynamic_linker="$host_os dld.sl" 10348 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10351 soname_spec='${libname}${release}${shared_ext}$major' 10352 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10354 ;; 10355 *) 10356 shrext_cmds='.sl' 10357 dynamic_linker="$host_os dld.sl" 10358 shlibpath_var=SHLIB_PATH 10359 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10361 soname_spec='${libname}${release}${shared_ext}$major' 10362 ;; 10363 esac 10364 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10365 postinstall_cmds='chmod 555 $lib' 10366 # or fails outright, so override atomically: 10367 install_override_mode=555 10368 ;; 10369 10370interix[3-9]*) 10371 version_type=linux 10372 need_lib_prefix=no 10373 need_version=no 10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10375 soname_spec='${libname}${release}${shared_ext}$major' 10376 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10377 shlibpath_var=LD_LIBRARY_PATH 10378 shlibpath_overrides_runpath=no 10379 hardcode_into_libs=yes 10380 ;; 10381 10382irix5* | irix6* | nonstopux*) 10383 case $host_os in 10384 nonstopux*) version_type=nonstopux ;; 10385 *) 10386 if test "$lt_cv_prog_gnu_ld" = yes; then 10387 version_type=linux 10388 else 10389 version_type=irix 10390 fi ;; 10391 esac 10392 need_lib_prefix=no 10393 need_version=no 10394 soname_spec='${libname}${release}${shared_ext}$major' 10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10396 case $host_os in 10397 irix5* | nonstopux*) 10398 libsuff= shlibsuff= 10399 ;; 10400 *) 10401 case $LD in # libtool.m4 will add one of these switches to LD 10402 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10403 libsuff= shlibsuff= libmagic=32-bit;; 10404 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10405 libsuff=32 shlibsuff=N32 libmagic=N32;; 10406 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10407 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10408 *) libsuff= shlibsuff= libmagic=never-match;; 10409 esac 10410 ;; 10411 esac 10412 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10413 shlibpath_overrides_runpath=no 10414 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10415 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10416 hardcode_into_libs=yes 10417 ;; 10418 10419# No shared lib support for Linux oldld, aout, or coff. 10420linux*oldld* | linux*aout* | linux*coff*) 10421 dynamic_linker=no 10422 ;; 10423 10424# This must be Linux ELF. 10425linux* | k*bsd*-gnu | kopensolaris*-gnu) 10426 version_type=linux 10427 need_lib_prefix=no 10428 need_version=no 10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10430 soname_spec='${libname}${release}${shared_ext}$major' 10431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10432 shlibpath_var=LD_LIBRARY_PATH 10433 shlibpath_overrides_runpath=no 10434 10435 # Some binutils ld are patched to set DT_RUNPATH 10436 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 10437 $as_echo_n "(cached) " >&6 10438else 10439 lt_cv_shlibpath_overrides_runpath=no 10440 save_LDFLAGS=$LDFLAGS 10441 save_libdir=$libdir 10442 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10443 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10445/* end confdefs.h. */ 10446 10447int 10448main () 10449{ 10450 10451 ; 10452 return 0; 10453} 10454_ACEOF 10455if ac_fn_c_try_link "$LINENO"; then : 10456 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10457 lt_cv_shlibpath_overrides_runpath=yes 10458fi 10459fi 10460rm -f core conftest.err conftest.$ac_objext \ 10461 conftest$ac_exeext conftest.$ac_ext 10462 LDFLAGS=$save_LDFLAGS 10463 libdir=$save_libdir 10464 10465fi 10466 10467 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10468 10469 # This implies no fast_install, which is unacceptable. 10470 # Some rework will be needed to allow for fast_install 10471 # before this can be enabled. 10472 hardcode_into_libs=yes 10473 10474 # Append ld.so.conf contents to the search path 10475 if test -f /etc/ld.so.conf; then 10476 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' ' '` 10477 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10478 fi 10479 10480 # We used to test for /lib/ld.so.1 and disable shared libraries on 10481 # powerpc, because MkLinux only supported shared libraries with the 10482 # GNU dynamic linker. Since this was broken with cross compilers, 10483 # most powerpc-linux boxes support dynamic linking these days and 10484 # people can always --disable-shared, the test was removed, and we 10485 # assume the GNU/Linux dynamic linker is in use. 10486 dynamic_linker='GNU/Linux ld.so' 10487 ;; 10488 10489netbsd*) 10490 version_type=sunos 10491 need_lib_prefix=no 10492 need_version=no 10493 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10496 dynamic_linker='NetBSD (a.out) ld.so' 10497 else 10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10499 soname_spec='${libname}${release}${shared_ext}$major' 10500 dynamic_linker='NetBSD ld.elf_so' 10501 fi 10502 shlibpath_var=LD_LIBRARY_PATH 10503 shlibpath_overrides_runpath=yes 10504 hardcode_into_libs=yes 10505 ;; 10506 10507newsos6) 10508 version_type=linux 10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10510 shlibpath_var=LD_LIBRARY_PATH 10511 shlibpath_overrides_runpath=yes 10512 ;; 10513 10514*nto* | *qnx*) 10515 version_type=qnx 10516 need_lib_prefix=no 10517 need_version=no 10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10519 soname_spec='${libname}${release}${shared_ext}$major' 10520 shlibpath_var=LD_LIBRARY_PATH 10521 shlibpath_overrides_runpath=no 10522 hardcode_into_libs=yes 10523 dynamic_linker='ldqnx.so' 10524 ;; 10525 10526openbsd*) 10527 version_type=sunos 10528 sys_lib_dlsearch_path_spec="/usr/lib" 10529 need_lib_prefix=no 10530 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10531 case $host_os in 10532 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10533 *) need_version=no ;; 10534 esac 10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10537 shlibpath_var=LD_LIBRARY_PATH 10538 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10539 case $host_os in 10540 openbsd2.[89] | openbsd2.[89].*) 10541 shlibpath_overrides_runpath=no 10542 ;; 10543 *) 10544 shlibpath_overrides_runpath=yes 10545 ;; 10546 esac 10547 else 10548 shlibpath_overrides_runpath=yes 10549 fi 10550 ;; 10551 10552os2*) 10553 libname_spec='$name' 10554 shrext_cmds=".dll" 10555 need_lib_prefix=no 10556 library_names_spec='$libname${shared_ext} $libname.a' 10557 dynamic_linker='OS/2 ld.exe' 10558 shlibpath_var=LIBPATH 10559 ;; 10560 10561osf3* | osf4* | osf5*) 10562 version_type=osf 10563 need_lib_prefix=no 10564 need_version=no 10565 soname_spec='${libname}${release}${shared_ext}$major' 10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10567 shlibpath_var=LD_LIBRARY_PATH 10568 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10569 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10570 ;; 10571 10572rdos*) 10573 dynamic_linker=no 10574 ;; 10575 10576solaris*) 10577 version_type=linux 10578 need_lib_prefix=no 10579 need_version=no 10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10581 soname_spec='${libname}${release}${shared_ext}$major' 10582 shlibpath_var=LD_LIBRARY_PATH 10583 shlibpath_overrides_runpath=yes 10584 hardcode_into_libs=yes 10585 # ldd complains unless libraries are executable 10586 postinstall_cmds='chmod +x $lib' 10587 ;; 10588 10589sunos4*) 10590 version_type=sunos 10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10592 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10593 shlibpath_var=LD_LIBRARY_PATH 10594 shlibpath_overrides_runpath=yes 10595 if test "$with_gnu_ld" = yes; then 10596 need_lib_prefix=no 10597 fi 10598 need_version=yes 10599 ;; 10600 10601sysv4 | sysv4.3*) 10602 version_type=linux 10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10604 soname_spec='${libname}${release}${shared_ext}$major' 10605 shlibpath_var=LD_LIBRARY_PATH 10606 case $host_vendor in 10607 sni) 10608 shlibpath_overrides_runpath=no 10609 need_lib_prefix=no 10610 runpath_var=LD_RUN_PATH 10611 ;; 10612 siemens) 10613 need_lib_prefix=no 10614 ;; 10615 motorola) 10616 need_lib_prefix=no 10617 need_version=no 10618 shlibpath_overrides_runpath=no 10619 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10620 ;; 10621 esac 10622 ;; 10623 10624sysv4*MP*) 10625 if test -d /usr/nec ;then 10626 version_type=linux 10627 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10628 soname_spec='$libname${shared_ext}.$major' 10629 shlibpath_var=LD_LIBRARY_PATH 10630 fi 10631 ;; 10632 10633sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10634 version_type=freebsd-elf 10635 need_lib_prefix=no 10636 need_version=no 10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10638 soname_spec='${libname}${release}${shared_ext}$major' 10639 shlibpath_var=LD_LIBRARY_PATH 10640 shlibpath_overrides_runpath=yes 10641 hardcode_into_libs=yes 10642 if test "$with_gnu_ld" = yes; then 10643 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10644 else 10645 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10646 case $host_os in 10647 sco3.2v5*) 10648 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10649 ;; 10650 esac 10651 fi 10652 sys_lib_dlsearch_path_spec='/usr/lib' 10653 ;; 10654 10655tpf*) 10656 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10657 version_type=linux 10658 need_lib_prefix=no 10659 need_version=no 10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10661 shlibpath_var=LD_LIBRARY_PATH 10662 shlibpath_overrides_runpath=no 10663 hardcode_into_libs=yes 10664 ;; 10665 10666uts4*) 10667 version_type=linux 10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10669 soname_spec='${libname}${release}${shared_ext}$major' 10670 shlibpath_var=LD_LIBRARY_PATH 10671 ;; 10672 10673*) 10674 dynamic_linker=no 10675 ;; 10676esac 10677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10678$as_echo "$dynamic_linker" >&6; } 10679test "$dynamic_linker" = no && can_build_shared=no 10680 10681variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10682if test "$GCC" = yes; then 10683 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10684fi 10685 10686if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10687 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10688fi 10689if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10690 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10691fi 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10785$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10786hardcode_action= 10787if test -n "$hardcode_libdir_flag_spec" || 10788 test -n "$runpath_var" || 10789 test "X$hardcode_automatic" = "Xyes" ; then 10790 10791 # We can hardcode non-existent directories. 10792 if test "$hardcode_direct" != no && 10793 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10794 # have to relink, otherwise we might link with an installed library 10795 # when we should be linking with a yet-to-be-installed one 10796 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10797 test "$hardcode_minus_L" != no; then 10798 # Linking always hardcodes the temporary library directory. 10799 hardcode_action=relink 10800 else 10801 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10802 hardcode_action=immediate 10803 fi 10804else 10805 # We cannot hardcode anything, or else we can only hardcode existing 10806 # directories. 10807 hardcode_action=unsupported 10808fi 10809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10810$as_echo "$hardcode_action" >&6; } 10811 10812if test "$hardcode_action" = relink || 10813 test "$inherit_rpath" = yes; then 10814 # Fast installation is not supported 10815 enable_fast_install=no 10816elif test "$shlibpath_overrides_runpath" = yes || 10817 test "$enable_shared" = no; then 10818 # Fast installation is not necessary 10819 enable_fast_install=needless 10820fi 10821 10822 10823 10824 10825 10826 10827 if test "x$enable_dlopen" != xyes; then 10828 enable_dlopen=unknown 10829 enable_dlopen_self=unknown 10830 enable_dlopen_self_static=unknown 10831else 10832 lt_cv_dlopen=no 10833 lt_cv_dlopen_libs= 10834 10835 case $host_os in 10836 beos*) 10837 lt_cv_dlopen="load_add_on" 10838 lt_cv_dlopen_libs= 10839 lt_cv_dlopen_self=yes 10840 ;; 10841 10842 mingw* | pw32* | cegcc*) 10843 lt_cv_dlopen="LoadLibrary" 10844 lt_cv_dlopen_libs= 10845 ;; 10846 10847 cygwin*) 10848 lt_cv_dlopen="dlopen" 10849 lt_cv_dlopen_libs= 10850 ;; 10851 10852 darwin*) 10853 # if libdl is installed we need to link against it 10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10855$as_echo_n "checking for dlopen in -ldl... " >&6; } 10856if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10857 $as_echo_n "(cached) " >&6 10858else 10859 ac_check_lib_save_LIBS=$LIBS 10860LIBS="-ldl $LIBS" 10861cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10862/* end confdefs.h. */ 10863 10864/* Override any GCC internal prototype to avoid an error. 10865 Use char because int might match the return type of a GCC 10866 builtin and then its argument prototype would still apply. */ 10867#ifdef __cplusplus 10868extern "C" 10869#endif 10870char dlopen (); 10871int 10872main () 10873{ 10874return dlopen (); 10875 ; 10876 return 0; 10877} 10878_ACEOF 10879if ac_fn_c_try_link "$LINENO"; then : 10880 ac_cv_lib_dl_dlopen=yes 10881else 10882 ac_cv_lib_dl_dlopen=no 10883fi 10884rm -f core conftest.err conftest.$ac_objext \ 10885 conftest$ac_exeext conftest.$ac_ext 10886LIBS=$ac_check_lib_save_LIBS 10887fi 10888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10889$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10890if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10891 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10892else 10893 10894 lt_cv_dlopen="dyld" 10895 lt_cv_dlopen_libs= 10896 lt_cv_dlopen_self=yes 10897 10898fi 10899 10900 ;; 10901 10902 *) 10903 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10904if test "x$ac_cv_func_shl_load" = x""yes; then : 10905 lt_cv_dlopen="shl_load" 10906else 10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10908$as_echo_n "checking for shl_load in -ldld... " >&6; } 10909if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10910 $as_echo_n "(cached) " >&6 10911else 10912 ac_check_lib_save_LIBS=$LIBS 10913LIBS="-ldld $LIBS" 10914cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10915/* end confdefs.h. */ 10916 10917/* Override any GCC internal prototype to avoid an error. 10918 Use char because int might match the return type of a GCC 10919 builtin and then its argument prototype would still apply. */ 10920#ifdef __cplusplus 10921extern "C" 10922#endif 10923char shl_load (); 10924int 10925main () 10926{ 10927return shl_load (); 10928 ; 10929 return 0; 10930} 10931_ACEOF 10932if ac_fn_c_try_link "$LINENO"; then : 10933 ac_cv_lib_dld_shl_load=yes 10934else 10935 ac_cv_lib_dld_shl_load=no 10936fi 10937rm -f core conftest.err conftest.$ac_objext \ 10938 conftest$ac_exeext conftest.$ac_ext 10939LIBS=$ac_check_lib_save_LIBS 10940fi 10941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10942$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10943if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10944 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10945else 10946 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10947if test "x$ac_cv_func_dlopen" = x""yes; then : 10948 lt_cv_dlopen="dlopen" 10949else 10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10951$as_echo_n "checking for dlopen in -ldl... " >&6; } 10952if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10953 $as_echo_n "(cached) " >&6 10954else 10955 ac_check_lib_save_LIBS=$LIBS 10956LIBS="-ldl $LIBS" 10957cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10958/* end confdefs.h. */ 10959 10960/* Override any GCC internal prototype to avoid an error. 10961 Use char because int might match the return type of a GCC 10962 builtin and then its argument prototype would still apply. */ 10963#ifdef __cplusplus 10964extern "C" 10965#endif 10966char dlopen (); 10967int 10968main () 10969{ 10970return dlopen (); 10971 ; 10972 return 0; 10973} 10974_ACEOF 10975if ac_fn_c_try_link "$LINENO"; then : 10976 ac_cv_lib_dl_dlopen=yes 10977else 10978 ac_cv_lib_dl_dlopen=no 10979fi 10980rm -f core conftest.err conftest.$ac_objext \ 10981 conftest$ac_exeext conftest.$ac_ext 10982LIBS=$ac_check_lib_save_LIBS 10983fi 10984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10985$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10986if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10987 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10988else 10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10990$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10991if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10992 $as_echo_n "(cached) " >&6 10993else 10994 ac_check_lib_save_LIBS=$LIBS 10995LIBS="-lsvld $LIBS" 10996cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10997/* end confdefs.h. */ 10998 10999/* Override any GCC internal prototype to avoid an error. 11000 Use char because int might match the return type of a GCC 11001 builtin and then its argument prototype would still apply. */ 11002#ifdef __cplusplus 11003extern "C" 11004#endif 11005char dlopen (); 11006int 11007main () 11008{ 11009return dlopen (); 11010 ; 11011 return 0; 11012} 11013_ACEOF 11014if ac_fn_c_try_link "$LINENO"; then : 11015 ac_cv_lib_svld_dlopen=yes 11016else 11017 ac_cv_lib_svld_dlopen=no 11018fi 11019rm -f core conftest.err conftest.$ac_objext \ 11020 conftest$ac_exeext conftest.$ac_ext 11021LIBS=$ac_check_lib_save_LIBS 11022fi 11023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11024$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11025if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11027else 11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11029$as_echo_n "checking for dld_link in -ldld... " >&6; } 11030if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11031 $as_echo_n "(cached) " >&6 11032else 11033 ac_check_lib_save_LIBS=$LIBS 11034LIBS="-ldld $LIBS" 11035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11036/* end confdefs.h. */ 11037 11038/* Override any GCC internal prototype to avoid an error. 11039 Use char because int might match the return type of a GCC 11040 builtin and then its argument prototype would still apply. */ 11041#ifdef __cplusplus 11042extern "C" 11043#endif 11044char dld_link (); 11045int 11046main () 11047{ 11048return dld_link (); 11049 ; 11050 return 0; 11051} 11052_ACEOF 11053if ac_fn_c_try_link "$LINENO"; then : 11054 ac_cv_lib_dld_dld_link=yes 11055else 11056 ac_cv_lib_dld_dld_link=no 11057fi 11058rm -f core conftest.err conftest.$ac_objext \ 11059 conftest$ac_exeext conftest.$ac_ext 11060LIBS=$ac_check_lib_save_LIBS 11061fi 11062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11063$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11064if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11065 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11066fi 11067 11068 11069fi 11070 11071 11072fi 11073 11074 11075fi 11076 11077 11078fi 11079 11080 11081fi 11082 11083 ;; 11084 esac 11085 11086 if test "x$lt_cv_dlopen" != xno; then 11087 enable_dlopen=yes 11088 else 11089 enable_dlopen=no 11090 fi 11091 11092 case $lt_cv_dlopen in 11093 dlopen) 11094 save_CPPFLAGS="$CPPFLAGS" 11095 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11096 11097 save_LDFLAGS="$LDFLAGS" 11098 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11099 11100 save_LIBS="$LIBS" 11101 LIBS="$lt_cv_dlopen_libs $LIBS" 11102 11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11104$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11105if test "${lt_cv_dlopen_self+set}" = set; then : 11106 $as_echo_n "(cached) " >&6 11107else 11108 if test "$cross_compiling" = yes; then : 11109 lt_cv_dlopen_self=cross 11110else 11111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11112 lt_status=$lt_dlunknown 11113 cat > conftest.$ac_ext <<_LT_EOF 11114#line 11114 "configure" 11115#include "confdefs.h" 11116 11117#if HAVE_DLFCN_H 11118#include <dlfcn.h> 11119#endif 11120 11121#include <stdio.h> 11122 11123#ifdef RTLD_GLOBAL 11124# define LT_DLGLOBAL RTLD_GLOBAL 11125#else 11126# ifdef DL_GLOBAL 11127# define LT_DLGLOBAL DL_GLOBAL 11128# else 11129# define LT_DLGLOBAL 0 11130# endif 11131#endif 11132 11133/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11134 find out it does not work in some platform. */ 11135#ifndef LT_DLLAZY_OR_NOW 11136# ifdef RTLD_LAZY 11137# define LT_DLLAZY_OR_NOW RTLD_LAZY 11138# else 11139# ifdef DL_LAZY 11140# define LT_DLLAZY_OR_NOW DL_LAZY 11141# else 11142# ifdef RTLD_NOW 11143# define LT_DLLAZY_OR_NOW RTLD_NOW 11144# else 11145# ifdef DL_NOW 11146# define LT_DLLAZY_OR_NOW DL_NOW 11147# else 11148# define LT_DLLAZY_OR_NOW 0 11149# endif 11150# endif 11151# endif 11152# endif 11153#endif 11154 11155/* When -fvisbility=hidden is used, assume the code has been annotated 11156 correspondingly for the symbols needed. */ 11157#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11158void fnord () __attribute__((visibility("default"))); 11159#endif 11160 11161void fnord () { int i=42; } 11162int main () 11163{ 11164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11165 int status = $lt_dlunknown; 11166 11167 if (self) 11168 { 11169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11170 else 11171 { 11172 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11173 else puts (dlerror ()); 11174 } 11175 /* dlclose (self); */ 11176 } 11177 else 11178 puts (dlerror ()); 11179 11180 return status; 11181} 11182_LT_EOF 11183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11184 (eval $ac_link) 2>&5 11185 ac_status=$? 11186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11187 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11188 (./conftest; exit; ) >&5 2>/dev/null 11189 lt_status=$? 11190 case x$lt_status in 11191 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11192 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11193 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11194 esac 11195 else : 11196 # compilation failed 11197 lt_cv_dlopen_self=no 11198 fi 11199fi 11200rm -fr conftest* 11201 11202 11203fi 11204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11205$as_echo "$lt_cv_dlopen_self" >&6; } 11206 11207 if test "x$lt_cv_dlopen_self" = xyes; then 11208 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11210$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11211if test "${lt_cv_dlopen_self_static+set}" = set; then : 11212 $as_echo_n "(cached) " >&6 11213else 11214 if test "$cross_compiling" = yes; then : 11215 lt_cv_dlopen_self_static=cross 11216else 11217 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11218 lt_status=$lt_dlunknown 11219 cat > conftest.$ac_ext <<_LT_EOF 11220#line 11220 "configure" 11221#include "confdefs.h" 11222 11223#if HAVE_DLFCN_H 11224#include <dlfcn.h> 11225#endif 11226 11227#include <stdio.h> 11228 11229#ifdef RTLD_GLOBAL 11230# define LT_DLGLOBAL RTLD_GLOBAL 11231#else 11232# ifdef DL_GLOBAL 11233# define LT_DLGLOBAL DL_GLOBAL 11234# else 11235# define LT_DLGLOBAL 0 11236# endif 11237#endif 11238 11239/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11240 find out it does not work in some platform. */ 11241#ifndef LT_DLLAZY_OR_NOW 11242# ifdef RTLD_LAZY 11243# define LT_DLLAZY_OR_NOW RTLD_LAZY 11244# else 11245# ifdef DL_LAZY 11246# define LT_DLLAZY_OR_NOW DL_LAZY 11247# else 11248# ifdef RTLD_NOW 11249# define LT_DLLAZY_OR_NOW RTLD_NOW 11250# else 11251# ifdef DL_NOW 11252# define LT_DLLAZY_OR_NOW DL_NOW 11253# else 11254# define LT_DLLAZY_OR_NOW 0 11255# endif 11256# endif 11257# endif 11258# endif 11259#endif 11260 11261/* When -fvisbility=hidden is used, assume the code has been annotated 11262 correspondingly for the symbols needed. */ 11263#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11264void fnord () __attribute__((visibility("default"))); 11265#endif 11266 11267void fnord () { int i=42; } 11268int main () 11269{ 11270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11271 int status = $lt_dlunknown; 11272 11273 if (self) 11274 { 11275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11276 else 11277 { 11278 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11279 else puts (dlerror ()); 11280 } 11281 /* dlclose (self); */ 11282 } 11283 else 11284 puts (dlerror ()); 11285 11286 return status; 11287} 11288_LT_EOF 11289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11290 (eval $ac_link) 2>&5 11291 ac_status=$? 11292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11293 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11294 (./conftest; exit; ) >&5 2>/dev/null 11295 lt_status=$? 11296 case x$lt_status in 11297 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11298 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11299 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11300 esac 11301 else : 11302 # compilation failed 11303 lt_cv_dlopen_self_static=no 11304 fi 11305fi 11306rm -fr conftest* 11307 11308 11309fi 11310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11311$as_echo "$lt_cv_dlopen_self_static" >&6; } 11312 fi 11313 11314 CPPFLAGS="$save_CPPFLAGS" 11315 LDFLAGS="$save_LDFLAGS" 11316 LIBS="$save_LIBS" 11317 ;; 11318 esac 11319 11320 case $lt_cv_dlopen_self in 11321 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11322 *) enable_dlopen_self=unknown ;; 11323 esac 11324 11325 case $lt_cv_dlopen_self_static in 11326 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11327 *) enable_dlopen_self_static=unknown ;; 11328 esac 11329fi 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347striplib= 11348old_striplib= 11349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11350$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11351if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11352 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11353 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11355$as_echo "yes" >&6; } 11356else 11357# FIXME - insert some real tests, host_os isn't really good enough 11358 case $host_os in 11359 darwin*) 11360 if test -n "$STRIP" ; then 11361 striplib="$STRIP -x" 11362 old_striplib="$STRIP -S" 11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11364$as_echo "yes" >&6; } 11365 else 11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11367$as_echo "no" >&6; } 11368 fi 11369 ;; 11370 *) 11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11372$as_echo "no" >&6; } 11373 ;; 11374 esac 11375fi 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 # Report which library types will actually be built 11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11390$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11392$as_echo "$can_build_shared" >&6; } 11393 11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11395$as_echo_n "checking whether to build shared libraries... " >&6; } 11396 test "$can_build_shared" = "no" && enable_shared=no 11397 11398 # On AIX, shared libraries and static libraries use the same namespace, and 11399 # are all built from PIC. 11400 case $host_os in 11401 aix3*) 11402 test "$enable_shared" = yes && enable_static=no 11403 if test -n "$RANLIB"; then 11404 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11405 postinstall_cmds='$RANLIB $lib' 11406 fi 11407 ;; 11408 11409 aix[4-9]*) 11410 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11411 test "$enable_shared" = yes && enable_static=no 11412 fi 11413 ;; 11414 esac 11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11416$as_echo "$enable_shared" >&6; } 11417 11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11419$as_echo_n "checking whether to build static libraries... " >&6; } 11420 # Make sure either enable_shared or enable_static is yes. 11421 test "$enable_shared" = yes || enable_static=yes 11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11423$as_echo "$enable_static" >&6; } 11424 11425 11426 11427 11428fi 11429ac_ext=c 11430ac_cpp='$CPP $CPPFLAGS' 11431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11433ac_compiler_gnu=$ac_cv_c_compiler_gnu 11434 11435CC="$lt_save_CC" 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 ac_config_commands="$ac_config_commands libtool" 11450 11451 11452 11453 11454# Only expand once: 11455 11456 11457 11458 11459 11460case $host in 11461 *-cygwin* | *-mingw*) 11462 # 'host' will be top-level target in the case of a target lib, 11463 # we must compare to with_cross_host to decide if this is a native 11464 # or cross-compiler and select where to install dlls appropriately. 11465 if test -n "$with_cross_host" && 11466 test x"$with_cross_host" != x"no"; then 11467 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"'; 11468 else 11469 lt_host_flags='-no-undefined -bindir "$(bindir)"'; 11470 fi 11471 ;; 11472 *) 11473 lt_host_flags= 11474 ;; 11475esac 11476 11477 11478 11479 11480 11481 11482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 11483$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 11484 # Check whether --enable-maintainer-mode was given. 11485if test "${enable_maintainer_mode+set}" = set; then : 11486 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 11487else 11488 USE_MAINTAINER_MODE=no 11489fi 11490 11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 11492$as_echo "$USE_MAINTAINER_MODE" >&6; } 11493 if test $USE_MAINTAINER_MODE = yes; then 11494 MAINTAINER_MODE_TRUE= 11495 MAINTAINER_MODE_FALSE='#' 11496else 11497 MAINTAINER_MODE_TRUE='#' 11498 MAINTAINER_MODE_FALSE= 11499fi 11500 11501 MAINT=$MAINTAINER_MODE_TRUE 11502 11503 11504 11505# For libtool versioning info, format is CURRENT:REVISION:AGE 11506libtool_VERSION=2:0:1 11507 11508 11509# Check for used threading-model 11510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5 11511$as_echo_n "checking for thread model used by GCC... " >&6; } 11512target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` 11513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5 11514$as_echo "$target_thread_file" >&6; } 11515 11516# Get target configury. 11517. ${srcdir}/configure.tgt 11518if test -n "$UNSUPPORTED"; then 11519 as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5 11520fi 11521 11522# Disable fallbacks to __sync routines from libgcc. Otherwise we'll 11523# make silly decisions about what the cpu can do. 11524CFLAGS="$save_CFLAGS -fno-sync-libcalls $XCFLAGS" 11525 11526# Check header files. 11527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 11528$as_echo_n "checking for ANSI C header files... " >&6; } 11529if test "${ac_cv_header_stdc+set}" = set; then : 11530 $as_echo_n "(cached) " >&6 11531else 11532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11533/* end confdefs.h. */ 11534#include <stdlib.h> 11535#include <stdarg.h> 11536#include <string.h> 11537#include <float.h> 11538 11539int 11540main () 11541{ 11542 11543 ; 11544 return 0; 11545} 11546_ACEOF 11547if ac_fn_c_try_compile "$LINENO"; then : 11548 ac_cv_header_stdc=yes 11549else 11550 ac_cv_header_stdc=no 11551fi 11552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11553 11554if test $ac_cv_header_stdc = yes; then 11555 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11557/* end confdefs.h. */ 11558#include <string.h> 11559 11560_ACEOF 11561if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11562 $EGREP "memchr" >/dev/null 2>&1; then : 11563 11564else 11565 ac_cv_header_stdc=no 11566fi 11567rm -f conftest* 11568 11569fi 11570 11571if test $ac_cv_header_stdc = yes; then 11572 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11574/* end confdefs.h. */ 11575#include <stdlib.h> 11576 11577_ACEOF 11578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11579 $EGREP "free" >/dev/null 2>&1; then : 11580 11581else 11582 ac_cv_header_stdc=no 11583fi 11584rm -f conftest* 11585 11586fi 11587 11588if test $ac_cv_header_stdc = yes; then 11589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11590 if test "$cross_compiling" = yes; then : 11591 : 11592else 11593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11594/* end confdefs.h. */ 11595#include <ctype.h> 11596#include <stdlib.h> 11597#if ((' ' & 0x0FF) == 0x020) 11598# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11599# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11600#else 11601# define ISLOWER(c) \ 11602 (('a' <= (c) && (c) <= 'i') \ 11603 || ('j' <= (c) && (c) <= 'r') \ 11604 || ('s' <= (c) && (c) <= 'z')) 11605# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11606#endif 11607 11608#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11609int 11610main () 11611{ 11612 int i; 11613 for (i = 0; i < 256; i++) 11614 if (XOR (islower (i), ISLOWER (i)) 11615 || toupper (i) != TOUPPER (i)) 11616 return 2; 11617 return 0; 11618} 11619_ACEOF 11620if ac_fn_c_try_run "$LINENO"; then : 11621 11622else 11623 ac_cv_header_stdc=no 11624fi 11625rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11626 conftest.$ac_objext conftest.beam conftest.$ac_ext 11627fi 11628 11629fi 11630fi 11631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 11632$as_echo "$ac_cv_header_stdc" >&6; } 11633if test $ac_cv_header_stdc = yes; then 11634 11635$as_echo "#define STDC_HEADERS 1" >>confdefs.h 11636 11637fi 11638 11639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 11640$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } 11641if test "${gcc_cv_header_string+set}" = set; then : 11642 $as_echo_n "(cached) " >&6 11643else 11644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11645/* end confdefs.h. */ 11646#include <string.h> 11647#include <strings.h> 11648int 11649main () 11650{ 11651 11652 ; 11653 return 0; 11654} 11655_ACEOF 11656if ac_fn_c_try_compile "$LINENO"; then : 11657 gcc_cv_header_string=yes 11658else 11659 gcc_cv_header_string=no 11660fi 11661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11662fi 11663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 11664$as_echo "$gcc_cv_header_string" >&6; } 11665if test $gcc_cv_header_string = yes; then 11666 11667$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h 11668 11669fi 11670 11671 11672 11673inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` 11674 11675acx_cv_header_stdint=stddef.h 11676acx_cv_header_stdint_kind="(already complete)" 11677for i in stdint.h $inttype_headers; do 11678 unset ac_cv_type_uintptr_t 11679 unset ac_cv_type_uintmax_t 11680 unset ac_cv_type_int_least32_t 11681 unset ac_cv_type_int_fast32_t 11682 unset ac_cv_type_uint64_t 11683 $as_echo_n "looking for a compliant stdint.h in $i, " >&6 11684 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> 11685#include <$i> 11686" 11687if test "x$ac_cv_type_uintmax_t" = x""yes; then : 11688 acx_cv_header_stdint=$i 11689else 11690 continue 11691fi 11692 11693 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> 11694#include <$i> 11695" 11696if test "x$ac_cv_type_uintptr_t" = x""yes; then : 11697 11698else 11699 acx_cv_header_stdint_kind="(mostly complete)" 11700fi 11701 11702 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> 11703#include <$i> 11704" 11705if test "x$ac_cv_type_int_least32_t" = x""yes; then : 11706 11707else 11708 acx_cv_header_stdint_kind="(mostly complete)" 11709fi 11710 11711 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> 11712#include <$i> 11713" 11714if test "x$ac_cv_type_int_fast32_t" = x""yes; then : 11715 11716else 11717 acx_cv_header_stdint_kind="(mostly complete)" 11718fi 11719 11720 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> 11721#include <$i> 11722" 11723if test "x$ac_cv_type_uint64_t" = x""yes; then : 11724 11725else 11726 acx_cv_header_stdint_kind="(lacks uint64_t)" 11727fi 11728 11729 break 11730done 11731if test "$acx_cv_header_stdint" = stddef.h; then 11732 acx_cv_header_stdint_kind="(lacks uintmax_t)" 11733 for i in stdint.h $inttype_headers; do 11734 unset ac_cv_type_uintptr_t 11735 unset ac_cv_type_uint32_t 11736 unset ac_cv_type_uint64_t 11737 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 11738 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> 11739#include <$i> 11740" 11741if test "x$ac_cv_type_uint32_t" = x""yes; then : 11742 acx_cv_header_stdint=$i 11743else 11744 continue 11745fi 11746 11747 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> 11748#include <$i> 11749" 11750if test "x$ac_cv_type_uint64_t" = x""yes; then : 11751 11752fi 11753 11754 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> 11755#include <$i> 11756" 11757if test "x$ac_cv_type_uintptr_t" = x""yes; then : 11758 11759fi 11760 11761 break 11762 done 11763fi 11764if test "$acx_cv_header_stdint" = stddef.h; then 11765 acx_cv_header_stdint_kind="(u_intXX_t style)" 11766 for i in sys/types.h $inttype_headers; do 11767 unset ac_cv_type_u_int32_t 11768 unset ac_cv_type_u_int64_t 11769 $as_echo_n "looking for u_intXX_t types in $i, " >&6 11770 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> 11771#include <$i> 11772" 11773if test "x$ac_cv_type_u_int32_t" = x""yes; then : 11774 acx_cv_header_stdint=$i 11775else 11776 continue 11777fi 11778 11779 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> 11780#include <$i> 11781" 11782if test "x$ac_cv_type_u_int64_t" = x""yes; then : 11783 11784fi 11785 11786 break 11787 done 11788fi 11789if test "$acx_cv_header_stdint" = stddef.h; then 11790 acx_cv_header_stdint_kind="(using manual detection)" 11791fi 11792 11793test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no 11794test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no 11795test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no 11796test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no 11797test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no 11798 11799# ----------------- Summarize what we found so far 11800 11801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 11802$as_echo_n "checking what to include in gstdint.h... " >&6; } 11803 11804case `$as_basename -- gstdint.h || 11805$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ 11806 Xgstdint.h : 'X\(//\)$' \| \ 11807 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || 11808$as_echo X/gstdint.h | 11809 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11810 s//\1/ 11811 q 11812 } 11813 /^X\/\(\/\/\)$/{ 11814 s//\1/ 11815 q 11816 } 11817 /^X\/\(\/\).*/{ 11818 s//\1/ 11819 q 11820 } 11821 s/.*/./; q'` in 11822 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 11823$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; 11824 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 11825$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; 11826 *) ;; 11827esac 11828 11829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 11830$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } 11831 11832# ----------------- done included file, check C basic types -------- 11833 11834# Lacking an uintptr_t? Test size of void * 11835case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in 11836 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler 11837# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11838# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11839# This bug is HP SR number 8606223364. 11840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 11841$as_echo_n "checking size of void *... " >&6; } 11842if test "${ac_cv_sizeof_void_p+set}" = set; then : 11843 $as_echo_n "(cached) " >&6 11844else 11845 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 11846 11847else 11848 if test "$ac_cv_type_void_p" = yes; then 11849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11851{ as_fn_set_status 77 11852as_fn_error "cannot compute sizeof (void *) 11853See \`config.log' for more details." "$LINENO" 5; }; } 11854 else 11855 ac_cv_sizeof_void_p=0 11856 fi 11857fi 11858 11859fi 11860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 11861$as_echo "$ac_cv_sizeof_void_p" >&6; } 11862 11863 11864 11865cat >>confdefs.h <<_ACEOF 11866#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 11867_ACEOF 11868 11869 ;; 11870esac 11871 11872# Lacking an uint64_t? Test size of long 11873case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in 11874 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler 11875# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11876# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11877# This bug is HP SR number 8606223364. 11878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 11879$as_echo_n "checking size of long... " >&6; } 11880if test "${ac_cv_sizeof_long+set}" = set; then : 11881 $as_echo_n "(cached) " >&6 11882else 11883 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 11884 11885else 11886 if test "$ac_cv_type_long" = yes; then 11887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11888$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11889{ as_fn_set_status 77 11890as_fn_error "cannot compute sizeof (long) 11891See \`config.log' for more details." "$LINENO" 5; }; } 11892 else 11893 ac_cv_sizeof_long=0 11894 fi 11895fi 11896 11897fi 11898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 11899$as_echo "$ac_cv_sizeof_long" >&6; } 11900 11901 11902 11903cat >>confdefs.h <<_ACEOF 11904#define SIZEOF_LONG $ac_cv_sizeof_long 11905_ACEOF 11906 11907 ;; 11908esac 11909 11910if test $acx_cv_header_stdint = stddef.h; then 11911 # Lacking a good header? Test size of everything and deduce all types. 11912 # The cast to long int works around a bug in the HP C Compiler 11913# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11914# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11915# This bug is HP SR number 8606223364. 11916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 11917$as_echo_n "checking size of int... " >&6; } 11918if test "${ac_cv_sizeof_int+set}" = set; then : 11919 $as_echo_n "(cached) " >&6 11920else 11921 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 11922 11923else 11924 if test "$ac_cv_type_int" = yes; then 11925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11926$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11927{ as_fn_set_status 77 11928as_fn_error "cannot compute sizeof (int) 11929See \`config.log' for more details." "$LINENO" 5; }; } 11930 else 11931 ac_cv_sizeof_int=0 11932 fi 11933fi 11934 11935fi 11936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 11937$as_echo "$ac_cv_sizeof_int" >&6; } 11938 11939 11940 11941cat >>confdefs.h <<_ACEOF 11942#define SIZEOF_INT $ac_cv_sizeof_int 11943_ACEOF 11944 11945 11946 # The cast to long int works around a bug in the HP C Compiler 11947# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11948# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11949# This bug is HP SR number 8606223364. 11950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 11951$as_echo_n "checking size of short... " >&6; } 11952if test "${ac_cv_sizeof_short+set}" = set; then : 11953 $as_echo_n "(cached) " >&6 11954else 11955 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 11956 11957else 11958 if test "$ac_cv_type_short" = yes; then 11959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11960$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11961{ as_fn_set_status 77 11962as_fn_error "cannot compute sizeof (short) 11963See \`config.log' for more details." "$LINENO" 5; }; } 11964 else 11965 ac_cv_sizeof_short=0 11966 fi 11967fi 11968 11969fi 11970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 11971$as_echo "$ac_cv_sizeof_short" >&6; } 11972 11973 11974 11975cat >>confdefs.h <<_ACEOF 11976#define SIZEOF_SHORT $ac_cv_sizeof_short 11977_ACEOF 11978 11979 11980 # The cast to long int works around a bug in the HP C Compiler 11981# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11982# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11983# This bug is HP SR number 8606223364. 11984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 11985$as_echo_n "checking size of char... " >&6; } 11986if test "${ac_cv_sizeof_char+set}" = set; then : 11987 $as_echo_n "(cached) " >&6 11988else 11989 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : 11990 11991else 11992 if test "$ac_cv_type_char" = yes; then 11993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11994$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11995{ as_fn_set_status 77 11996as_fn_error "cannot compute sizeof (char) 11997See \`config.log' for more details." "$LINENO" 5; }; } 11998 else 11999 ac_cv_sizeof_char=0 12000 fi 12001fi 12002 12003fi 12004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 12005$as_echo "$ac_cv_sizeof_char" >&6; } 12006 12007 12008 12009cat >>confdefs.h <<_ACEOF 12010#define SIZEOF_CHAR $ac_cv_sizeof_char 12011_ACEOF 12012 12013 12014 12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 12016$as_echo_n "checking for type equivalent to int8_t... " >&6; } 12017 case "$ac_cv_sizeof_char" in 12018 1) acx_cv_type_int8_t=char ;; 12019 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5 12020 esac 12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 12022$as_echo "$acx_cv_type_int8_t" >&6; } 12023 12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 12025$as_echo_n "checking for type equivalent to int16_t... " >&6; } 12026 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in 12027 2:*) acx_cv_type_int16_t=int ;; 12028 *:2) acx_cv_type_int16_t=short ;; 12029 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5 12030 esac 12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 12032$as_echo "$acx_cv_type_int16_t" >&6; } 12033 12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 12035$as_echo_n "checking for type equivalent to int32_t... " >&6; } 12036 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in 12037 4:*) acx_cv_type_int32_t=int ;; 12038 *:4) acx_cv_type_int32_t=long ;; 12039 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5 12040 esac 12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 12042$as_echo "$acx_cv_type_int32_t" >&6; } 12043fi 12044 12045# These tests are here to make the output prettier 12046 12047if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then 12048 case "$ac_cv_sizeof_long" in 12049 8) acx_cv_type_int64_t=long ;; 12050 esac 12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 12052$as_echo_n "checking for type equivalent to int64_t... " >&6; } 12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 12054$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } 12055fi 12056 12057# Now we can use the above types 12058 12059if test "$ac_cv_type_uintptr_t" != yes; then 12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 12061$as_echo_n "checking for type equivalent to intptr_t... " >&6; } 12062 case $ac_cv_sizeof_void_p in 12063 2) acx_cv_type_intptr_t=int16_t ;; 12064 4) acx_cv_type_intptr_t=int32_t ;; 12065 8) acx_cv_type_intptr_t=int64_t ;; 12066 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5 12067 esac 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 12069$as_echo "$acx_cv_type_intptr_t" >&6; } 12070fi 12071 12072# ----------------- done all checks, emit header ------------- 12073ac_config_commands="$ac_config_commands gstdint.h" 12074 12075 12076 12077for ac_header in fenv.h 12078do : 12079 ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default" 12080if test "x$ac_cv_header_fenv_h" = x""yes; then : 12081 cat >>confdefs.h <<_ACEOF 12082#define HAVE_FENV_H 1 12083_ACEOF 12084 12085fi 12086 12087done 12088 12089 12090# Check for common type sizes 12091 12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 1 byte integer" >&5 12093$as_echo_n "checking for 1 byte integer... " >&6; } 12094if test "${libat_cv_have_mode_QI+set}" = set; then : 12095 $as_echo_n "(cached) " >&6 12096else 12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12098/* end confdefs.h. */ 12099int x __attribute__((mode(QI))); 12100_ACEOF 12101if ac_fn_c_try_compile "$LINENO"; then : 12102 libat_cv_have_mode_QI=yes 12103else 12104 libat_cv_have_mode_QI=no 12105fi 12106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12107fi 12108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_QI" >&5 12109$as_echo "$libat_cv_have_mode_QI" >&6; } 12110 12111 yesno=`echo $libat_cv_have_mode_QI | tr 'yesno' '1 0 '` 12112 12113cat >>confdefs.h <<_ACEOF 12114#define HAVE_INT1 $yesno 12115_ACEOF 12116 12117 12118 if test x$libat_cv_have_mode_QI = xyes; then 12119 SIZES="$SIZES 1" 12120 fi 12121 12122 12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2 byte integer" >&5 12124$as_echo_n "checking for 2 byte integer... " >&6; } 12125if test "${libat_cv_have_mode_HI+set}" = set; then : 12126 $as_echo_n "(cached) " >&6 12127else 12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12129/* end confdefs.h. */ 12130int x __attribute__((mode(HI))); 12131_ACEOF 12132if ac_fn_c_try_compile "$LINENO"; then : 12133 libat_cv_have_mode_HI=yes 12134else 12135 libat_cv_have_mode_HI=no 12136fi 12137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12138fi 12139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_HI" >&5 12140$as_echo "$libat_cv_have_mode_HI" >&6; } 12141 12142 yesno=`echo $libat_cv_have_mode_HI | tr 'yesno' '1 0 '` 12143 12144cat >>confdefs.h <<_ACEOF 12145#define HAVE_INT2 $yesno 12146_ACEOF 12147 12148 12149 if test x$libat_cv_have_mode_HI = xyes; then 12150 SIZES="$SIZES 2" 12151 fi 12152 12153 12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4 byte integer" >&5 12155$as_echo_n "checking for 4 byte integer... " >&6; } 12156if test "${libat_cv_have_mode_SI+set}" = set; then : 12157 $as_echo_n "(cached) " >&6 12158else 12159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12160/* end confdefs.h. */ 12161int x __attribute__((mode(SI))); 12162_ACEOF 12163if ac_fn_c_try_compile "$LINENO"; then : 12164 libat_cv_have_mode_SI=yes 12165else 12166 libat_cv_have_mode_SI=no 12167fi 12168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12169fi 12170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_SI" >&5 12171$as_echo "$libat_cv_have_mode_SI" >&6; } 12172 12173 yesno=`echo $libat_cv_have_mode_SI | tr 'yesno' '1 0 '` 12174 12175cat >>confdefs.h <<_ACEOF 12176#define HAVE_INT4 $yesno 12177_ACEOF 12178 12179 12180 if test x$libat_cv_have_mode_SI = xyes; then 12181 SIZES="$SIZES 4" 12182 fi 12183 12184 12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 8 byte integer" >&5 12186$as_echo_n "checking for 8 byte integer... " >&6; } 12187if test "${libat_cv_have_mode_DI+set}" = set; then : 12188 $as_echo_n "(cached) " >&6 12189else 12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12191/* end confdefs.h. */ 12192int x __attribute__((mode(DI))); 12193_ACEOF 12194if ac_fn_c_try_compile "$LINENO"; then : 12195 libat_cv_have_mode_DI=yes 12196else 12197 libat_cv_have_mode_DI=no 12198fi 12199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12200fi 12201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_DI" >&5 12202$as_echo "$libat_cv_have_mode_DI" >&6; } 12203 12204 yesno=`echo $libat_cv_have_mode_DI | tr 'yesno' '1 0 '` 12205 12206cat >>confdefs.h <<_ACEOF 12207#define HAVE_INT8 $yesno 12208_ACEOF 12209 12210 12211 if test x$libat_cv_have_mode_DI = xyes; then 12212 SIZES="$SIZES 8" 12213 fi 12214 12215 12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16 byte integer" >&5 12217$as_echo_n "checking for 16 byte integer... " >&6; } 12218if test "${libat_cv_have_mode_TI+set}" = set; then : 12219 $as_echo_n "(cached) " >&6 12220else 12221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12222/* end confdefs.h. */ 12223int x __attribute__((mode(TI))); 12224_ACEOF 12225if ac_fn_c_try_compile "$LINENO"; then : 12226 libat_cv_have_mode_TI=yes 12227else 12228 libat_cv_have_mode_TI=no 12229fi 12230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12231fi 12232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_TI" >&5 12233$as_echo "$libat_cv_have_mode_TI" >&6; } 12234 12235 yesno=`echo $libat_cv_have_mode_TI | tr 'yesno' '1 0 '` 12236 12237cat >>confdefs.h <<_ACEOF 12238#define HAVE_INT16 $yesno 12239_ACEOF 12240 12241 12242 if test x$libat_cv_have_mode_TI = xyes; then 12243 SIZES="$SIZES 16" 12244 fi 12245 12246 12247 12248# Check for compiler builtins of atomic operations. 12249 12250 # Do link tests if possible, instead asm tests, limited to some platforms 12251 # see discussion in PR target/40134, PR libstdc++/40133 and the thread 12252 # starting at http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00322.html 12253 atomic_builtins_link_tests=no 12254 if test x$gcc_no_link != xyes; then 12255 # Can do link tests. Limit to some tested platforms 12256 case "$host" in 12257 *-*-linux* | *-*-uclinux* | *-*-kfreebsd*-gnu | *-*-gnu*) 12258 atomic_builtins_link_tests=yes 12259 ;; 12260 esac 12261 fi 12262 12263 12264 12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 1" >&5 12266$as_echo_n "checking for __atomic_load/store for size 1... " >&6; } 12267if test "${libat_cv_have_at_ldst_1+set}" = set; then : 12268 $as_echo_n "(cached) " >&6 12269else 12270 12271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12272/* end confdefs.h. */ 12273 12274int 12275main () 12276{ 12277typedef int T __attribute__((mode(QI))); 12278 T *x; volatile T sink; asm("" : "=g"(x)); 12279 sink = __atomic_load_n(x, 0); 12280 __atomic_store_n(x, sink, 0); 12281 ; 12282 return 0; 12283} 12284_ACEOF 12285 if test x$atomic_builtins_link_tests = xyes; then 12286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12287 (eval $ac_link) 2>&5 12288 ac_status=$? 12289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12290 test $ac_status = 0; }; then 12291 eval libat_cv_have_at_ldst_1=yes 12292 else 12293 eval libat_cv_have_at_ldst_1=no 12294 fi 12295 else 12296 old_CFLAGS="$CFLAGS" 12297 # Compile unoptimized. 12298 CFLAGS="$CFLAGS -O0 -S" 12299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12300 (eval $ac_compile) 2>&5 12301 ac_status=$? 12302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12303 test $ac_status = 0; }; then 12304 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 12305 eval libat_cv_have_at_ldst_1=no 12306 else 12307 eval libat_cv_have_at_ldst_1=yes 12308 fi 12309 else 12310 eval libat_cv_have_at_ldst_1=no 12311 fi 12312 CFLAGS="$old_CFLAGS" 12313 fi 12314 rm -f conftest* 12315 12316fi 12317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_1" >&5 12318$as_echo "$libat_cv_have_at_ldst_1" >&6; } 12319 12320 12321 yesno=`echo $libat_cv_have_at_ldst_1 | tr 'yesno' '1 0 '` 12322 12323cat >>confdefs.h <<_ACEOF 12324#define HAVE_ATOMIC_LDST_1 $yesno 12325_ACEOF 12326 12327 12328 12329 12330 12331 12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 2" >&5 12333$as_echo_n "checking for __atomic_load/store for size 2... " >&6; } 12334if test "${libat_cv_have_at_ldst_2+set}" = set; then : 12335 $as_echo_n "(cached) " >&6 12336else 12337 12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12339/* end confdefs.h. */ 12340 12341int 12342main () 12343{ 12344typedef int T __attribute__((mode(HI))); 12345 T *x; volatile T sink; asm("" : "=g"(x)); 12346 sink = __atomic_load_n(x, 0); 12347 __atomic_store_n(x, sink, 0); 12348 ; 12349 return 0; 12350} 12351_ACEOF 12352 if test x$atomic_builtins_link_tests = xyes; then 12353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12354 (eval $ac_link) 2>&5 12355 ac_status=$? 12356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12357 test $ac_status = 0; }; then 12358 eval libat_cv_have_at_ldst_2=yes 12359 else 12360 eval libat_cv_have_at_ldst_2=no 12361 fi 12362 else 12363 old_CFLAGS="$CFLAGS" 12364 # Compile unoptimized. 12365 CFLAGS="$CFLAGS -O0 -S" 12366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12367 (eval $ac_compile) 2>&5 12368 ac_status=$? 12369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12370 test $ac_status = 0; }; then 12371 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 12372 eval libat_cv_have_at_ldst_2=no 12373 else 12374 eval libat_cv_have_at_ldst_2=yes 12375 fi 12376 else 12377 eval libat_cv_have_at_ldst_2=no 12378 fi 12379 CFLAGS="$old_CFLAGS" 12380 fi 12381 rm -f conftest* 12382 12383fi 12384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_2" >&5 12385$as_echo "$libat_cv_have_at_ldst_2" >&6; } 12386 12387 12388 yesno=`echo $libat_cv_have_at_ldst_2 | tr 'yesno' '1 0 '` 12389 12390cat >>confdefs.h <<_ACEOF 12391#define HAVE_ATOMIC_LDST_2 $yesno 12392_ACEOF 12393 12394 12395 12396 12397 12398 12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 4" >&5 12400$as_echo_n "checking for __atomic_load/store for size 4... " >&6; } 12401if test "${libat_cv_have_at_ldst_4+set}" = set; then : 12402 $as_echo_n "(cached) " >&6 12403else 12404 12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12406/* end confdefs.h. */ 12407 12408int 12409main () 12410{ 12411typedef int T __attribute__((mode(SI))); 12412 T *x; volatile T sink; asm("" : "=g"(x)); 12413 sink = __atomic_load_n(x, 0); 12414 __atomic_store_n(x, sink, 0); 12415 ; 12416 return 0; 12417} 12418_ACEOF 12419 if test x$atomic_builtins_link_tests = xyes; then 12420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12421 (eval $ac_link) 2>&5 12422 ac_status=$? 12423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12424 test $ac_status = 0; }; then 12425 eval libat_cv_have_at_ldst_4=yes 12426 else 12427 eval libat_cv_have_at_ldst_4=no 12428 fi 12429 else 12430 old_CFLAGS="$CFLAGS" 12431 # Compile unoptimized. 12432 CFLAGS="$CFLAGS -O0 -S" 12433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12434 (eval $ac_compile) 2>&5 12435 ac_status=$? 12436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12437 test $ac_status = 0; }; then 12438 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 12439 eval libat_cv_have_at_ldst_4=no 12440 else 12441 eval libat_cv_have_at_ldst_4=yes 12442 fi 12443 else 12444 eval libat_cv_have_at_ldst_4=no 12445 fi 12446 CFLAGS="$old_CFLAGS" 12447 fi 12448 rm -f conftest* 12449 12450fi 12451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_4" >&5 12452$as_echo "$libat_cv_have_at_ldst_4" >&6; } 12453 12454 12455 yesno=`echo $libat_cv_have_at_ldst_4 | tr 'yesno' '1 0 '` 12456 12457cat >>confdefs.h <<_ACEOF 12458#define HAVE_ATOMIC_LDST_4 $yesno 12459_ACEOF 12460 12461 12462 12463 12464 12465 12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 8" >&5 12467$as_echo_n "checking for __atomic_load/store for size 8... " >&6; } 12468if test "${libat_cv_have_at_ldst_8+set}" = set; then : 12469 $as_echo_n "(cached) " >&6 12470else 12471 12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12473/* end confdefs.h. */ 12474 12475int 12476main () 12477{ 12478typedef int T __attribute__((mode(DI))); 12479 T *x; volatile T sink; asm("" : "=g"(x)); 12480 sink = __atomic_load_n(x, 0); 12481 __atomic_store_n(x, sink, 0); 12482 ; 12483 return 0; 12484} 12485_ACEOF 12486 if test x$atomic_builtins_link_tests = xyes; then 12487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12488 (eval $ac_link) 2>&5 12489 ac_status=$? 12490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12491 test $ac_status = 0; }; then 12492 eval libat_cv_have_at_ldst_8=yes 12493 else 12494 eval libat_cv_have_at_ldst_8=no 12495 fi 12496 else 12497 old_CFLAGS="$CFLAGS" 12498 # Compile unoptimized. 12499 CFLAGS="$CFLAGS -O0 -S" 12500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12501 (eval $ac_compile) 2>&5 12502 ac_status=$? 12503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12504 test $ac_status = 0; }; then 12505 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 12506 eval libat_cv_have_at_ldst_8=no 12507 else 12508 eval libat_cv_have_at_ldst_8=yes 12509 fi 12510 else 12511 eval libat_cv_have_at_ldst_8=no 12512 fi 12513 CFLAGS="$old_CFLAGS" 12514 fi 12515 rm -f conftest* 12516 12517fi 12518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_8" >&5 12519$as_echo "$libat_cv_have_at_ldst_8" >&6; } 12520 12521 12522 yesno=`echo $libat_cv_have_at_ldst_8 | tr 'yesno' '1 0 '` 12523 12524cat >>confdefs.h <<_ACEOF 12525#define HAVE_ATOMIC_LDST_8 $yesno 12526_ACEOF 12527 12528 12529 12530 12531 12532 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 16" >&5 12534$as_echo_n "checking for __atomic_load/store for size 16... " >&6; } 12535if test "${libat_cv_have_at_ldst_16+set}" = set; then : 12536 $as_echo_n "(cached) " >&6 12537else 12538 12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12540/* end confdefs.h. */ 12541 12542int 12543main () 12544{ 12545typedef int T __attribute__((mode(TI))); 12546 T *x; volatile T sink; asm("" : "=g"(x)); 12547 sink = __atomic_load_n(x, 0); 12548 __atomic_store_n(x, sink, 0); 12549 ; 12550 return 0; 12551} 12552_ACEOF 12553 if test x$atomic_builtins_link_tests = xyes; then 12554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12555 (eval $ac_link) 2>&5 12556 ac_status=$? 12557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12558 test $ac_status = 0; }; then 12559 eval libat_cv_have_at_ldst_16=yes 12560 else 12561 eval libat_cv_have_at_ldst_16=no 12562 fi 12563 else 12564 old_CFLAGS="$CFLAGS" 12565 # Compile unoptimized. 12566 CFLAGS="$CFLAGS -O0 -S" 12567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12568 (eval $ac_compile) 2>&5 12569 ac_status=$? 12570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12571 test $ac_status = 0; }; then 12572 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 12573 eval libat_cv_have_at_ldst_16=no 12574 else 12575 eval libat_cv_have_at_ldst_16=yes 12576 fi 12577 else 12578 eval libat_cv_have_at_ldst_16=no 12579 fi 12580 CFLAGS="$old_CFLAGS" 12581 fi 12582 rm -f conftest* 12583 12584fi 12585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_16" >&5 12586$as_echo "$libat_cv_have_at_ldst_16" >&6; } 12587 12588 12589 yesno=`echo $libat_cv_have_at_ldst_16 | tr 'yesno' '1 0 '` 12590 12591cat >>confdefs.h <<_ACEOF 12592#define HAVE_ATOMIC_LDST_16 $yesno 12593_ACEOF 12594 12595 12596 12597 12598 12599 12600 12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 1" >&5 12602$as_echo_n "checking for __atomic_test_and_set for size 1... " >&6; } 12603if test "${libat_cv_have_at_tas_1+set}" = set; then : 12604 $as_echo_n "(cached) " >&6 12605else 12606 12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12608/* end confdefs.h. */ 12609 12610int 12611main () 12612{ 12613typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x)); 12614 __atomic_test_and_set(x, 0); 12615 ; 12616 return 0; 12617} 12618_ACEOF 12619 if test x$atomic_builtins_link_tests = xyes; then 12620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12621 (eval $ac_link) 2>&5 12622 ac_status=$? 12623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12624 test $ac_status = 0; }; then 12625 eval libat_cv_have_at_tas_1=yes 12626 else 12627 eval libat_cv_have_at_tas_1=no 12628 fi 12629 else 12630 old_CFLAGS="$CFLAGS" 12631 # Compile unoptimized. 12632 CFLAGS="$CFLAGS -O0 -S" 12633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12634 (eval $ac_compile) 2>&5 12635 ac_status=$? 12636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12637 test $ac_status = 0; }; then 12638 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 12639 eval libat_cv_have_at_tas_1=no 12640 else 12641 eval libat_cv_have_at_tas_1=yes 12642 fi 12643 else 12644 eval libat_cv_have_at_tas_1=no 12645 fi 12646 CFLAGS="$old_CFLAGS" 12647 fi 12648 rm -f conftest* 12649 12650fi 12651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_1" >&5 12652$as_echo "$libat_cv_have_at_tas_1" >&6; } 12653 12654 12655 yesno=`echo $libat_cv_have_at_tas_1 | tr 'yesno' '1 0 '` 12656 12657cat >>confdefs.h <<_ACEOF 12658#define HAVE_ATOMIC_TAS_1 $yesno 12659_ACEOF 12660 12661 12662 12663 12664 12665 12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 2" >&5 12667$as_echo_n "checking for __atomic_test_and_set for size 2... " >&6; } 12668if test "${libat_cv_have_at_tas_2+set}" = set; then : 12669 $as_echo_n "(cached) " >&6 12670else 12671 12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12673/* end confdefs.h. */ 12674 12675int 12676main () 12677{ 12678typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x)); 12679 __atomic_test_and_set(x, 0); 12680 ; 12681 return 0; 12682} 12683_ACEOF 12684 if test x$atomic_builtins_link_tests = xyes; then 12685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12686 (eval $ac_link) 2>&5 12687 ac_status=$? 12688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12689 test $ac_status = 0; }; then 12690 eval libat_cv_have_at_tas_2=yes 12691 else 12692 eval libat_cv_have_at_tas_2=no 12693 fi 12694 else 12695 old_CFLAGS="$CFLAGS" 12696 # Compile unoptimized. 12697 CFLAGS="$CFLAGS -O0 -S" 12698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12699 (eval $ac_compile) 2>&5 12700 ac_status=$? 12701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12702 test $ac_status = 0; }; then 12703 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 12704 eval libat_cv_have_at_tas_2=no 12705 else 12706 eval libat_cv_have_at_tas_2=yes 12707 fi 12708 else 12709 eval libat_cv_have_at_tas_2=no 12710 fi 12711 CFLAGS="$old_CFLAGS" 12712 fi 12713 rm -f conftest* 12714 12715fi 12716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_2" >&5 12717$as_echo "$libat_cv_have_at_tas_2" >&6; } 12718 12719 12720 yesno=`echo $libat_cv_have_at_tas_2 | tr 'yesno' '1 0 '` 12721 12722cat >>confdefs.h <<_ACEOF 12723#define HAVE_ATOMIC_TAS_2 $yesno 12724_ACEOF 12725 12726 12727 12728 12729 12730 12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 4" >&5 12732$as_echo_n "checking for __atomic_test_and_set for size 4... " >&6; } 12733if test "${libat_cv_have_at_tas_4+set}" = set; then : 12734 $as_echo_n "(cached) " >&6 12735else 12736 12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12738/* end confdefs.h. */ 12739 12740int 12741main () 12742{ 12743typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x)); 12744 __atomic_test_and_set(x, 0); 12745 ; 12746 return 0; 12747} 12748_ACEOF 12749 if test x$atomic_builtins_link_tests = xyes; then 12750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12751 (eval $ac_link) 2>&5 12752 ac_status=$? 12753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12754 test $ac_status = 0; }; then 12755 eval libat_cv_have_at_tas_4=yes 12756 else 12757 eval libat_cv_have_at_tas_4=no 12758 fi 12759 else 12760 old_CFLAGS="$CFLAGS" 12761 # Compile unoptimized. 12762 CFLAGS="$CFLAGS -O0 -S" 12763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12764 (eval $ac_compile) 2>&5 12765 ac_status=$? 12766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12767 test $ac_status = 0; }; then 12768 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 12769 eval libat_cv_have_at_tas_4=no 12770 else 12771 eval libat_cv_have_at_tas_4=yes 12772 fi 12773 else 12774 eval libat_cv_have_at_tas_4=no 12775 fi 12776 CFLAGS="$old_CFLAGS" 12777 fi 12778 rm -f conftest* 12779 12780fi 12781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_4" >&5 12782$as_echo "$libat_cv_have_at_tas_4" >&6; } 12783 12784 12785 yesno=`echo $libat_cv_have_at_tas_4 | tr 'yesno' '1 0 '` 12786 12787cat >>confdefs.h <<_ACEOF 12788#define HAVE_ATOMIC_TAS_4 $yesno 12789_ACEOF 12790 12791 12792 12793 12794 12795 12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 8" >&5 12797$as_echo_n "checking for __atomic_test_and_set for size 8... " >&6; } 12798if test "${libat_cv_have_at_tas_8+set}" = set; then : 12799 $as_echo_n "(cached) " >&6 12800else 12801 12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12803/* end confdefs.h. */ 12804 12805int 12806main () 12807{ 12808typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x)); 12809 __atomic_test_and_set(x, 0); 12810 ; 12811 return 0; 12812} 12813_ACEOF 12814 if test x$atomic_builtins_link_tests = xyes; then 12815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12816 (eval $ac_link) 2>&5 12817 ac_status=$? 12818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12819 test $ac_status = 0; }; then 12820 eval libat_cv_have_at_tas_8=yes 12821 else 12822 eval libat_cv_have_at_tas_8=no 12823 fi 12824 else 12825 old_CFLAGS="$CFLAGS" 12826 # Compile unoptimized. 12827 CFLAGS="$CFLAGS -O0 -S" 12828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12829 (eval $ac_compile) 2>&5 12830 ac_status=$? 12831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12832 test $ac_status = 0; }; then 12833 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 12834 eval libat_cv_have_at_tas_8=no 12835 else 12836 eval libat_cv_have_at_tas_8=yes 12837 fi 12838 else 12839 eval libat_cv_have_at_tas_8=no 12840 fi 12841 CFLAGS="$old_CFLAGS" 12842 fi 12843 rm -f conftest* 12844 12845fi 12846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_8" >&5 12847$as_echo "$libat_cv_have_at_tas_8" >&6; } 12848 12849 12850 yesno=`echo $libat_cv_have_at_tas_8 | tr 'yesno' '1 0 '` 12851 12852cat >>confdefs.h <<_ACEOF 12853#define HAVE_ATOMIC_TAS_8 $yesno 12854_ACEOF 12855 12856 12857 12858 12859 12860 12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 16" >&5 12862$as_echo_n "checking for __atomic_test_and_set for size 16... " >&6; } 12863if test "${libat_cv_have_at_tas_16+set}" = set; then : 12864 $as_echo_n "(cached) " >&6 12865else 12866 12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12868/* end confdefs.h. */ 12869 12870int 12871main () 12872{ 12873typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x)); 12874 __atomic_test_and_set(x, 0); 12875 ; 12876 return 0; 12877} 12878_ACEOF 12879 if test x$atomic_builtins_link_tests = xyes; then 12880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12881 (eval $ac_link) 2>&5 12882 ac_status=$? 12883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12884 test $ac_status = 0; }; then 12885 eval libat_cv_have_at_tas_16=yes 12886 else 12887 eval libat_cv_have_at_tas_16=no 12888 fi 12889 else 12890 old_CFLAGS="$CFLAGS" 12891 # Compile unoptimized. 12892 CFLAGS="$CFLAGS -O0 -S" 12893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12894 (eval $ac_compile) 2>&5 12895 ac_status=$? 12896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12897 test $ac_status = 0; }; then 12898 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 12899 eval libat_cv_have_at_tas_16=no 12900 else 12901 eval libat_cv_have_at_tas_16=yes 12902 fi 12903 else 12904 eval libat_cv_have_at_tas_16=no 12905 fi 12906 CFLAGS="$old_CFLAGS" 12907 fi 12908 rm -f conftest* 12909 12910fi 12911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_16" >&5 12912$as_echo "$libat_cv_have_at_tas_16" >&6; } 12913 12914 12915 yesno=`echo $libat_cv_have_at_tas_16 | tr 'yesno' '1 0 '` 12916 12917cat >>confdefs.h <<_ACEOF 12918#define HAVE_ATOMIC_TAS_16 $yesno 12919_ACEOF 12920 12921 12922 12923 12924 12925 12926 12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 1" >&5 12928$as_echo_n "checking for __atomic_exchange for size 1... " >&6; } 12929if test "${libat_cv_have_at_exch_1+set}" = set; then : 12930 $as_echo_n "(cached) " >&6 12931else 12932 12933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12934/* end confdefs.h. */ 12935 12936int 12937main () 12938{ 12939typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x)); 12940 __atomic_exchange_n(x, 0, 0); 12941 ; 12942 return 0; 12943} 12944_ACEOF 12945 if test x$atomic_builtins_link_tests = xyes; then 12946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12947 (eval $ac_link) 2>&5 12948 ac_status=$? 12949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12950 test $ac_status = 0; }; then 12951 eval libat_cv_have_at_exch_1=yes 12952 else 12953 eval libat_cv_have_at_exch_1=no 12954 fi 12955 else 12956 old_CFLAGS="$CFLAGS" 12957 # Compile unoptimized. 12958 CFLAGS="$CFLAGS -O0 -S" 12959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12960 (eval $ac_compile) 2>&5 12961 ac_status=$? 12962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12963 test $ac_status = 0; }; then 12964 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 12965 eval libat_cv_have_at_exch_1=no 12966 else 12967 eval libat_cv_have_at_exch_1=yes 12968 fi 12969 else 12970 eval libat_cv_have_at_exch_1=no 12971 fi 12972 CFLAGS="$old_CFLAGS" 12973 fi 12974 rm -f conftest* 12975 12976fi 12977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_1" >&5 12978$as_echo "$libat_cv_have_at_exch_1" >&6; } 12979 12980 12981 yesno=`echo $libat_cv_have_at_exch_1 | tr 'yesno' '1 0 '` 12982 12983cat >>confdefs.h <<_ACEOF 12984#define HAVE_ATOMIC_EXCHANGE_1 $yesno 12985_ACEOF 12986 12987 12988 12989 12990 12991 12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 2" >&5 12993$as_echo_n "checking for __atomic_exchange for size 2... " >&6; } 12994if test "${libat_cv_have_at_exch_2+set}" = set; then : 12995 $as_echo_n "(cached) " >&6 12996else 12997 12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12999/* end confdefs.h. */ 13000 13001int 13002main () 13003{ 13004typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x)); 13005 __atomic_exchange_n(x, 0, 0); 13006 ; 13007 return 0; 13008} 13009_ACEOF 13010 if test x$atomic_builtins_link_tests = xyes; then 13011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13012 (eval $ac_link) 2>&5 13013 ac_status=$? 13014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13015 test $ac_status = 0; }; then 13016 eval libat_cv_have_at_exch_2=yes 13017 else 13018 eval libat_cv_have_at_exch_2=no 13019 fi 13020 else 13021 old_CFLAGS="$CFLAGS" 13022 # Compile unoptimized. 13023 CFLAGS="$CFLAGS -O0 -S" 13024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13025 (eval $ac_compile) 2>&5 13026 ac_status=$? 13027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13028 test $ac_status = 0; }; then 13029 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13030 eval libat_cv_have_at_exch_2=no 13031 else 13032 eval libat_cv_have_at_exch_2=yes 13033 fi 13034 else 13035 eval libat_cv_have_at_exch_2=no 13036 fi 13037 CFLAGS="$old_CFLAGS" 13038 fi 13039 rm -f conftest* 13040 13041fi 13042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_2" >&5 13043$as_echo "$libat_cv_have_at_exch_2" >&6; } 13044 13045 13046 yesno=`echo $libat_cv_have_at_exch_2 | tr 'yesno' '1 0 '` 13047 13048cat >>confdefs.h <<_ACEOF 13049#define HAVE_ATOMIC_EXCHANGE_2 $yesno 13050_ACEOF 13051 13052 13053 13054 13055 13056 13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 4" >&5 13058$as_echo_n "checking for __atomic_exchange for size 4... " >&6; } 13059if test "${libat_cv_have_at_exch_4+set}" = set; then : 13060 $as_echo_n "(cached) " >&6 13061else 13062 13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13064/* end confdefs.h. */ 13065 13066int 13067main () 13068{ 13069typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x)); 13070 __atomic_exchange_n(x, 0, 0); 13071 ; 13072 return 0; 13073} 13074_ACEOF 13075 if test x$atomic_builtins_link_tests = xyes; then 13076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13077 (eval $ac_link) 2>&5 13078 ac_status=$? 13079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13080 test $ac_status = 0; }; then 13081 eval libat_cv_have_at_exch_4=yes 13082 else 13083 eval libat_cv_have_at_exch_4=no 13084 fi 13085 else 13086 old_CFLAGS="$CFLAGS" 13087 # Compile unoptimized. 13088 CFLAGS="$CFLAGS -O0 -S" 13089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13090 (eval $ac_compile) 2>&5 13091 ac_status=$? 13092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13093 test $ac_status = 0; }; then 13094 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13095 eval libat_cv_have_at_exch_4=no 13096 else 13097 eval libat_cv_have_at_exch_4=yes 13098 fi 13099 else 13100 eval libat_cv_have_at_exch_4=no 13101 fi 13102 CFLAGS="$old_CFLAGS" 13103 fi 13104 rm -f conftest* 13105 13106fi 13107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_4" >&5 13108$as_echo "$libat_cv_have_at_exch_4" >&6; } 13109 13110 13111 yesno=`echo $libat_cv_have_at_exch_4 | tr 'yesno' '1 0 '` 13112 13113cat >>confdefs.h <<_ACEOF 13114#define HAVE_ATOMIC_EXCHANGE_4 $yesno 13115_ACEOF 13116 13117 13118 13119 13120 13121 13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 8" >&5 13123$as_echo_n "checking for __atomic_exchange for size 8... " >&6; } 13124if test "${libat_cv_have_at_exch_8+set}" = set; then : 13125 $as_echo_n "(cached) " >&6 13126else 13127 13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13129/* end confdefs.h. */ 13130 13131int 13132main () 13133{ 13134typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x)); 13135 __atomic_exchange_n(x, 0, 0); 13136 ; 13137 return 0; 13138} 13139_ACEOF 13140 if test x$atomic_builtins_link_tests = xyes; then 13141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13142 (eval $ac_link) 2>&5 13143 ac_status=$? 13144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13145 test $ac_status = 0; }; then 13146 eval libat_cv_have_at_exch_8=yes 13147 else 13148 eval libat_cv_have_at_exch_8=no 13149 fi 13150 else 13151 old_CFLAGS="$CFLAGS" 13152 # Compile unoptimized. 13153 CFLAGS="$CFLAGS -O0 -S" 13154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13155 (eval $ac_compile) 2>&5 13156 ac_status=$? 13157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13158 test $ac_status = 0; }; then 13159 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13160 eval libat_cv_have_at_exch_8=no 13161 else 13162 eval libat_cv_have_at_exch_8=yes 13163 fi 13164 else 13165 eval libat_cv_have_at_exch_8=no 13166 fi 13167 CFLAGS="$old_CFLAGS" 13168 fi 13169 rm -f conftest* 13170 13171fi 13172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_8" >&5 13173$as_echo "$libat_cv_have_at_exch_8" >&6; } 13174 13175 13176 yesno=`echo $libat_cv_have_at_exch_8 | tr 'yesno' '1 0 '` 13177 13178cat >>confdefs.h <<_ACEOF 13179#define HAVE_ATOMIC_EXCHANGE_8 $yesno 13180_ACEOF 13181 13182 13183 13184 13185 13186 13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 16" >&5 13188$as_echo_n "checking for __atomic_exchange for size 16... " >&6; } 13189if test "${libat_cv_have_at_exch_16+set}" = set; then : 13190 $as_echo_n "(cached) " >&6 13191else 13192 13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13194/* end confdefs.h. */ 13195 13196int 13197main () 13198{ 13199typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x)); 13200 __atomic_exchange_n(x, 0, 0); 13201 ; 13202 return 0; 13203} 13204_ACEOF 13205 if test x$atomic_builtins_link_tests = xyes; then 13206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13207 (eval $ac_link) 2>&5 13208 ac_status=$? 13209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13210 test $ac_status = 0; }; then 13211 eval libat_cv_have_at_exch_16=yes 13212 else 13213 eval libat_cv_have_at_exch_16=no 13214 fi 13215 else 13216 old_CFLAGS="$CFLAGS" 13217 # Compile unoptimized. 13218 CFLAGS="$CFLAGS -O0 -S" 13219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13220 (eval $ac_compile) 2>&5 13221 ac_status=$? 13222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13223 test $ac_status = 0; }; then 13224 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13225 eval libat_cv_have_at_exch_16=no 13226 else 13227 eval libat_cv_have_at_exch_16=yes 13228 fi 13229 else 13230 eval libat_cv_have_at_exch_16=no 13231 fi 13232 CFLAGS="$old_CFLAGS" 13233 fi 13234 rm -f conftest* 13235 13236fi 13237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_16" >&5 13238$as_echo "$libat_cv_have_at_exch_16" >&6; } 13239 13240 13241 yesno=`echo $libat_cv_have_at_exch_16 | tr 'yesno' '1 0 '` 13242 13243cat >>confdefs.h <<_ACEOF 13244#define HAVE_ATOMIC_EXCHANGE_16 $yesno 13245_ACEOF 13246 13247 13248 13249 13250 13251 13252 13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 1" >&5 13254$as_echo_n "checking for __atomic_compare_exchange for size 1... " >&6; } 13255if test "${libat_cv_have_at_cas_1+set}" = set; then : 13256 $as_echo_n "(cached) " >&6 13257else 13258 13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13260/* end confdefs.h. */ 13261 13262int 13263main () 13264{ 13265typedef int T __attribute__((mode(QI))); T *x, *y; 13266 asm("" : "=g"(x), "=g"(y)); 13267 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0); 13268 ; 13269 return 0; 13270} 13271_ACEOF 13272 if test x$atomic_builtins_link_tests = xyes; then 13273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13274 (eval $ac_link) 2>&5 13275 ac_status=$? 13276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13277 test $ac_status = 0; }; then 13278 eval libat_cv_have_at_cas_1=yes 13279 else 13280 eval libat_cv_have_at_cas_1=no 13281 fi 13282 else 13283 old_CFLAGS="$CFLAGS" 13284 # Compile unoptimized. 13285 CFLAGS="$CFLAGS -O0 -S" 13286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13287 (eval $ac_compile) 2>&5 13288 ac_status=$? 13289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13290 test $ac_status = 0; }; then 13291 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13292 eval libat_cv_have_at_cas_1=no 13293 else 13294 eval libat_cv_have_at_cas_1=yes 13295 fi 13296 else 13297 eval libat_cv_have_at_cas_1=no 13298 fi 13299 CFLAGS="$old_CFLAGS" 13300 fi 13301 rm -f conftest* 13302 13303fi 13304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_1" >&5 13305$as_echo "$libat_cv_have_at_cas_1" >&6; } 13306 13307 13308 yesno=`echo $libat_cv_have_at_cas_1 | tr 'yesno' '1 0 '` 13309 13310cat >>confdefs.h <<_ACEOF 13311#define HAVE_ATOMIC_CAS_1 $yesno 13312_ACEOF 13313 13314 13315 13316 13317 13318 13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 2" >&5 13320$as_echo_n "checking for __atomic_compare_exchange for size 2... " >&6; } 13321if test "${libat_cv_have_at_cas_2+set}" = set; then : 13322 $as_echo_n "(cached) " >&6 13323else 13324 13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13326/* end confdefs.h. */ 13327 13328int 13329main () 13330{ 13331typedef int T __attribute__((mode(HI))); T *x, *y; 13332 asm("" : "=g"(x), "=g"(y)); 13333 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0); 13334 ; 13335 return 0; 13336} 13337_ACEOF 13338 if test x$atomic_builtins_link_tests = xyes; then 13339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13340 (eval $ac_link) 2>&5 13341 ac_status=$? 13342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13343 test $ac_status = 0; }; then 13344 eval libat_cv_have_at_cas_2=yes 13345 else 13346 eval libat_cv_have_at_cas_2=no 13347 fi 13348 else 13349 old_CFLAGS="$CFLAGS" 13350 # Compile unoptimized. 13351 CFLAGS="$CFLAGS -O0 -S" 13352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13353 (eval $ac_compile) 2>&5 13354 ac_status=$? 13355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13356 test $ac_status = 0; }; then 13357 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13358 eval libat_cv_have_at_cas_2=no 13359 else 13360 eval libat_cv_have_at_cas_2=yes 13361 fi 13362 else 13363 eval libat_cv_have_at_cas_2=no 13364 fi 13365 CFLAGS="$old_CFLAGS" 13366 fi 13367 rm -f conftest* 13368 13369fi 13370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_2" >&5 13371$as_echo "$libat_cv_have_at_cas_2" >&6; } 13372 13373 13374 yesno=`echo $libat_cv_have_at_cas_2 | tr 'yesno' '1 0 '` 13375 13376cat >>confdefs.h <<_ACEOF 13377#define HAVE_ATOMIC_CAS_2 $yesno 13378_ACEOF 13379 13380 13381 13382 13383 13384 13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 4" >&5 13386$as_echo_n "checking for __atomic_compare_exchange for size 4... " >&6; } 13387if test "${libat_cv_have_at_cas_4+set}" = set; then : 13388 $as_echo_n "(cached) " >&6 13389else 13390 13391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13392/* end confdefs.h. */ 13393 13394int 13395main () 13396{ 13397typedef int T __attribute__((mode(SI))); T *x, *y; 13398 asm("" : "=g"(x), "=g"(y)); 13399 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0); 13400 ; 13401 return 0; 13402} 13403_ACEOF 13404 if test x$atomic_builtins_link_tests = xyes; then 13405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13406 (eval $ac_link) 2>&5 13407 ac_status=$? 13408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13409 test $ac_status = 0; }; then 13410 eval libat_cv_have_at_cas_4=yes 13411 else 13412 eval libat_cv_have_at_cas_4=no 13413 fi 13414 else 13415 old_CFLAGS="$CFLAGS" 13416 # Compile unoptimized. 13417 CFLAGS="$CFLAGS -O0 -S" 13418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13419 (eval $ac_compile) 2>&5 13420 ac_status=$? 13421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13422 test $ac_status = 0; }; then 13423 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13424 eval libat_cv_have_at_cas_4=no 13425 else 13426 eval libat_cv_have_at_cas_4=yes 13427 fi 13428 else 13429 eval libat_cv_have_at_cas_4=no 13430 fi 13431 CFLAGS="$old_CFLAGS" 13432 fi 13433 rm -f conftest* 13434 13435fi 13436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_4" >&5 13437$as_echo "$libat_cv_have_at_cas_4" >&6; } 13438 13439 13440 yesno=`echo $libat_cv_have_at_cas_4 | tr 'yesno' '1 0 '` 13441 13442cat >>confdefs.h <<_ACEOF 13443#define HAVE_ATOMIC_CAS_4 $yesno 13444_ACEOF 13445 13446 13447 13448 13449 13450 13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 8" >&5 13452$as_echo_n "checking for __atomic_compare_exchange for size 8... " >&6; } 13453if test "${libat_cv_have_at_cas_8+set}" = set; then : 13454 $as_echo_n "(cached) " >&6 13455else 13456 13457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13458/* end confdefs.h. */ 13459 13460int 13461main () 13462{ 13463typedef int T __attribute__((mode(DI))); T *x, *y; 13464 asm("" : "=g"(x), "=g"(y)); 13465 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0); 13466 ; 13467 return 0; 13468} 13469_ACEOF 13470 if test x$atomic_builtins_link_tests = xyes; then 13471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13472 (eval $ac_link) 2>&5 13473 ac_status=$? 13474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13475 test $ac_status = 0; }; then 13476 eval libat_cv_have_at_cas_8=yes 13477 else 13478 eval libat_cv_have_at_cas_8=no 13479 fi 13480 else 13481 old_CFLAGS="$CFLAGS" 13482 # Compile unoptimized. 13483 CFLAGS="$CFLAGS -O0 -S" 13484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13485 (eval $ac_compile) 2>&5 13486 ac_status=$? 13487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13488 test $ac_status = 0; }; then 13489 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13490 eval libat_cv_have_at_cas_8=no 13491 else 13492 eval libat_cv_have_at_cas_8=yes 13493 fi 13494 else 13495 eval libat_cv_have_at_cas_8=no 13496 fi 13497 CFLAGS="$old_CFLAGS" 13498 fi 13499 rm -f conftest* 13500 13501fi 13502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_8" >&5 13503$as_echo "$libat_cv_have_at_cas_8" >&6; } 13504 13505 13506 yesno=`echo $libat_cv_have_at_cas_8 | tr 'yesno' '1 0 '` 13507 13508cat >>confdefs.h <<_ACEOF 13509#define HAVE_ATOMIC_CAS_8 $yesno 13510_ACEOF 13511 13512 13513 13514 13515 13516 13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 16" >&5 13518$as_echo_n "checking for __atomic_compare_exchange for size 16... " >&6; } 13519if test "${libat_cv_have_at_cas_16+set}" = set; then : 13520 $as_echo_n "(cached) " >&6 13521else 13522 13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13524/* end confdefs.h. */ 13525 13526int 13527main () 13528{ 13529typedef int T __attribute__((mode(TI))); T *x, *y; 13530 asm("" : "=g"(x), "=g"(y)); 13531 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0); 13532 ; 13533 return 0; 13534} 13535_ACEOF 13536 if test x$atomic_builtins_link_tests = xyes; then 13537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13538 (eval $ac_link) 2>&5 13539 ac_status=$? 13540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13541 test $ac_status = 0; }; then 13542 eval libat_cv_have_at_cas_16=yes 13543 else 13544 eval libat_cv_have_at_cas_16=no 13545 fi 13546 else 13547 old_CFLAGS="$CFLAGS" 13548 # Compile unoptimized. 13549 CFLAGS="$CFLAGS -O0 -S" 13550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13551 (eval $ac_compile) 2>&5 13552 ac_status=$? 13553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13554 test $ac_status = 0; }; then 13555 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13556 eval libat_cv_have_at_cas_16=no 13557 else 13558 eval libat_cv_have_at_cas_16=yes 13559 fi 13560 else 13561 eval libat_cv_have_at_cas_16=no 13562 fi 13563 CFLAGS="$old_CFLAGS" 13564 fi 13565 rm -f conftest* 13566 13567fi 13568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_16" >&5 13569$as_echo "$libat_cv_have_at_cas_16" >&6; } 13570 13571 13572 yesno=`echo $libat_cv_have_at_cas_16 | tr 'yesno' '1 0 '` 13573 13574cat >>confdefs.h <<_ACEOF 13575#define HAVE_ATOMIC_CAS_16 $yesno 13576_ACEOF 13577 13578 13579 13580 13581 13582 13583 13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 1" >&5 13585$as_echo_n "checking for __atomic_fetch_add for size 1... " >&6; } 13586if test "${libat_cv_have_at_fadd_1+set}" = set; then : 13587 $as_echo_n "(cached) " >&6 13588else 13589 13590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13591/* end confdefs.h. */ 13592 13593int 13594main () 13595{ 13596typedef int T __attribute__((mode(QI))); T *x, y; 13597 asm("" : "=g"(x), "=g"(y)); 13598 __atomic_fetch_add (x, y, 0); 13599 __atomic_add_fetch (x, y, 0); 13600 ; 13601 return 0; 13602} 13603_ACEOF 13604 if test x$atomic_builtins_link_tests = xyes; then 13605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13606 (eval $ac_link) 2>&5 13607 ac_status=$? 13608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13609 test $ac_status = 0; }; then 13610 eval libat_cv_have_at_fadd_1=yes 13611 else 13612 eval libat_cv_have_at_fadd_1=no 13613 fi 13614 else 13615 old_CFLAGS="$CFLAGS" 13616 # Compile unoptimized. 13617 CFLAGS="$CFLAGS -O0 -S" 13618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13619 (eval $ac_compile) 2>&5 13620 ac_status=$? 13621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13622 test $ac_status = 0; }; then 13623 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13624 eval libat_cv_have_at_fadd_1=no 13625 else 13626 eval libat_cv_have_at_fadd_1=yes 13627 fi 13628 else 13629 eval libat_cv_have_at_fadd_1=no 13630 fi 13631 CFLAGS="$old_CFLAGS" 13632 fi 13633 rm -f conftest* 13634 13635fi 13636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_1" >&5 13637$as_echo "$libat_cv_have_at_fadd_1" >&6; } 13638 13639 13640 yesno=`echo $libat_cv_have_at_fadd_1 | tr 'yesno' '1 0 '` 13641 13642cat >>confdefs.h <<_ACEOF 13643#define HAVE_ATOMIC_FETCH_ADD_1 $yesno 13644_ACEOF 13645 13646 13647 13648 13649 13650 13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 2" >&5 13652$as_echo_n "checking for __atomic_fetch_add for size 2... " >&6; } 13653if test "${libat_cv_have_at_fadd_2+set}" = set; then : 13654 $as_echo_n "(cached) " >&6 13655else 13656 13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13658/* end confdefs.h. */ 13659 13660int 13661main () 13662{ 13663typedef int T __attribute__((mode(HI))); T *x, y; 13664 asm("" : "=g"(x), "=g"(y)); 13665 __atomic_fetch_add (x, y, 0); 13666 __atomic_add_fetch (x, y, 0); 13667 ; 13668 return 0; 13669} 13670_ACEOF 13671 if test x$atomic_builtins_link_tests = xyes; then 13672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13673 (eval $ac_link) 2>&5 13674 ac_status=$? 13675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13676 test $ac_status = 0; }; then 13677 eval libat_cv_have_at_fadd_2=yes 13678 else 13679 eval libat_cv_have_at_fadd_2=no 13680 fi 13681 else 13682 old_CFLAGS="$CFLAGS" 13683 # Compile unoptimized. 13684 CFLAGS="$CFLAGS -O0 -S" 13685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13686 (eval $ac_compile) 2>&5 13687 ac_status=$? 13688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13689 test $ac_status = 0; }; then 13690 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13691 eval libat_cv_have_at_fadd_2=no 13692 else 13693 eval libat_cv_have_at_fadd_2=yes 13694 fi 13695 else 13696 eval libat_cv_have_at_fadd_2=no 13697 fi 13698 CFLAGS="$old_CFLAGS" 13699 fi 13700 rm -f conftest* 13701 13702fi 13703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_2" >&5 13704$as_echo "$libat_cv_have_at_fadd_2" >&6; } 13705 13706 13707 yesno=`echo $libat_cv_have_at_fadd_2 | tr 'yesno' '1 0 '` 13708 13709cat >>confdefs.h <<_ACEOF 13710#define HAVE_ATOMIC_FETCH_ADD_2 $yesno 13711_ACEOF 13712 13713 13714 13715 13716 13717 13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 4" >&5 13719$as_echo_n "checking for __atomic_fetch_add for size 4... " >&6; } 13720if test "${libat_cv_have_at_fadd_4+set}" = set; then : 13721 $as_echo_n "(cached) " >&6 13722else 13723 13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13725/* end confdefs.h. */ 13726 13727int 13728main () 13729{ 13730typedef int T __attribute__((mode(SI))); T *x, y; 13731 asm("" : "=g"(x), "=g"(y)); 13732 __atomic_fetch_add (x, y, 0); 13733 __atomic_add_fetch (x, y, 0); 13734 ; 13735 return 0; 13736} 13737_ACEOF 13738 if test x$atomic_builtins_link_tests = xyes; then 13739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13740 (eval $ac_link) 2>&5 13741 ac_status=$? 13742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13743 test $ac_status = 0; }; then 13744 eval libat_cv_have_at_fadd_4=yes 13745 else 13746 eval libat_cv_have_at_fadd_4=no 13747 fi 13748 else 13749 old_CFLAGS="$CFLAGS" 13750 # Compile unoptimized. 13751 CFLAGS="$CFLAGS -O0 -S" 13752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13753 (eval $ac_compile) 2>&5 13754 ac_status=$? 13755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13756 test $ac_status = 0; }; then 13757 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13758 eval libat_cv_have_at_fadd_4=no 13759 else 13760 eval libat_cv_have_at_fadd_4=yes 13761 fi 13762 else 13763 eval libat_cv_have_at_fadd_4=no 13764 fi 13765 CFLAGS="$old_CFLAGS" 13766 fi 13767 rm -f conftest* 13768 13769fi 13770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_4" >&5 13771$as_echo "$libat_cv_have_at_fadd_4" >&6; } 13772 13773 13774 yesno=`echo $libat_cv_have_at_fadd_4 | tr 'yesno' '1 0 '` 13775 13776cat >>confdefs.h <<_ACEOF 13777#define HAVE_ATOMIC_FETCH_ADD_4 $yesno 13778_ACEOF 13779 13780 13781 13782 13783 13784 13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 8" >&5 13786$as_echo_n "checking for __atomic_fetch_add for size 8... " >&6; } 13787if test "${libat_cv_have_at_fadd_8+set}" = set; then : 13788 $as_echo_n "(cached) " >&6 13789else 13790 13791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13792/* end confdefs.h. */ 13793 13794int 13795main () 13796{ 13797typedef int T __attribute__((mode(DI))); T *x, y; 13798 asm("" : "=g"(x), "=g"(y)); 13799 __atomic_fetch_add (x, y, 0); 13800 __atomic_add_fetch (x, y, 0); 13801 ; 13802 return 0; 13803} 13804_ACEOF 13805 if test x$atomic_builtins_link_tests = xyes; then 13806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13807 (eval $ac_link) 2>&5 13808 ac_status=$? 13809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13810 test $ac_status = 0; }; then 13811 eval libat_cv_have_at_fadd_8=yes 13812 else 13813 eval libat_cv_have_at_fadd_8=no 13814 fi 13815 else 13816 old_CFLAGS="$CFLAGS" 13817 # Compile unoptimized. 13818 CFLAGS="$CFLAGS -O0 -S" 13819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13820 (eval $ac_compile) 2>&5 13821 ac_status=$? 13822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13823 test $ac_status = 0; }; then 13824 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13825 eval libat_cv_have_at_fadd_8=no 13826 else 13827 eval libat_cv_have_at_fadd_8=yes 13828 fi 13829 else 13830 eval libat_cv_have_at_fadd_8=no 13831 fi 13832 CFLAGS="$old_CFLAGS" 13833 fi 13834 rm -f conftest* 13835 13836fi 13837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_8" >&5 13838$as_echo "$libat_cv_have_at_fadd_8" >&6; } 13839 13840 13841 yesno=`echo $libat_cv_have_at_fadd_8 | tr 'yesno' '1 0 '` 13842 13843cat >>confdefs.h <<_ACEOF 13844#define HAVE_ATOMIC_FETCH_ADD_8 $yesno 13845_ACEOF 13846 13847 13848 13849 13850 13851 13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 16" >&5 13853$as_echo_n "checking for __atomic_fetch_add for size 16... " >&6; } 13854if test "${libat_cv_have_at_fadd_16+set}" = set; then : 13855 $as_echo_n "(cached) " >&6 13856else 13857 13858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13859/* end confdefs.h. */ 13860 13861int 13862main () 13863{ 13864typedef int T __attribute__((mode(TI))); T *x, y; 13865 asm("" : "=g"(x), "=g"(y)); 13866 __atomic_fetch_add (x, y, 0); 13867 __atomic_add_fetch (x, y, 0); 13868 ; 13869 return 0; 13870} 13871_ACEOF 13872 if test x$atomic_builtins_link_tests = xyes; then 13873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13874 (eval $ac_link) 2>&5 13875 ac_status=$? 13876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13877 test $ac_status = 0; }; then 13878 eval libat_cv_have_at_fadd_16=yes 13879 else 13880 eval libat_cv_have_at_fadd_16=no 13881 fi 13882 else 13883 old_CFLAGS="$CFLAGS" 13884 # Compile unoptimized. 13885 CFLAGS="$CFLAGS -O0 -S" 13886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13887 (eval $ac_compile) 2>&5 13888 ac_status=$? 13889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13890 test $ac_status = 0; }; then 13891 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13892 eval libat_cv_have_at_fadd_16=no 13893 else 13894 eval libat_cv_have_at_fadd_16=yes 13895 fi 13896 else 13897 eval libat_cv_have_at_fadd_16=no 13898 fi 13899 CFLAGS="$old_CFLAGS" 13900 fi 13901 rm -f conftest* 13902 13903fi 13904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_16" >&5 13905$as_echo "$libat_cv_have_at_fadd_16" >&6; } 13906 13907 13908 yesno=`echo $libat_cv_have_at_fadd_16 | tr 'yesno' '1 0 '` 13909 13910cat >>confdefs.h <<_ACEOF 13911#define HAVE_ATOMIC_FETCH_ADD_16 $yesno 13912_ACEOF 13913 13914 13915 13916 13917 13918 13919 13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 1" >&5 13921$as_echo_n "checking for __atomic_fetch_op for size 1... " >&6; } 13922if test "${libat_cv_have_at_fop_1+set}" = set; then : 13923 $as_echo_n "(cached) " >&6 13924else 13925 13926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13927/* end confdefs.h. */ 13928 13929int 13930main () 13931{ 13932typedef int T __attribute__((mode(QI))); T *x, y; 13933 asm("" : "=g"(x), "=g"(y)); 13934 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0); 13935 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0); 13936 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0); 13937 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0); 13938 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0); 13939 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0); 13940 ; 13941 return 0; 13942} 13943_ACEOF 13944 if test x$atomic_builtins_link_tests = xyes; then 13945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13946 (eval $ac_link) 2>&5 13947 ac_status=$? 13948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13949 test $ac_status = 0; }; then 13950 eval libat_cv_have_at_fop_1=yes 13951 else 13952 eval libat_cv_have_at_fop_1=no 13953 fi 13954 else 13955 old_CFLAGS="$CFLAGS" 13956 # Compile unoptimized. 13957 CFLAGS="$CFLAGS -O0 -S" 13958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13959 (eval $ac_compile) 2>&5 13960 ac_status=$? 13961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13962 test $ac_status = 0; }; then 13963 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 13964 eval libat_cv_have_at_fop_1=no 13965 else 13966 eval libat_cv_have_at_fop_1=yes 13967 fi 13968 else 13969 eval libat_cv_have_at_fop_1=no 13970 fi 13971 CFLAGS="$old_CFLAGS" 13972 fi 13973 rm -f conftest* 13974 13975fi 13976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_1" >&5 13977$as_echo "$libat_cv_have_at_fop_1" >&6; } 13978 13979 13980 yesno=`echo $libat_cv_have_at_fop_1 | tr 'yesno' '1 0 '` 13981 13982cat >>confdefs.h <<_ACEOF 13983#define HAVE_ATOMIC_FETCH_OP_1 $yesno 13984_ACEOF 13985 13986 13987 13988 13989 13990 13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 2" >&5 13992$as_echo_n "checking for __atomic_fetch_op for size 2... " >&6; } 13993if test "${libat_cv_have_at_fop_2+set}" = set; then : 13994 $as_echo_n "(cached) " >&6 13995else 13996 13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13998/* end confdefs.h. */ 13999 14000int 14001main () 14002{ 14003typedef int T __attribute__((mode(HI))); T *x, y; 14004 asm("" : "=g"(x), "=g"(y)); 14005 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0); 14006 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0); 14007 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0); 14008 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0); 14009 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0); 14010 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0); 14011 ; 14012 return 0; 14013} 14014_ACEOF 14015 if test x$atomic_builtins_link_tests = xyes; then 14016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14017 (eval $ac_link) 2>&5 14018 ac_status=$? 14019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14020 test $ac_status = 0; }; then 14021 eval libat_cv_have_at_fop_2=yes 14022 else 14023 eval libat_cv_have_at_fop_2=no 14024 fi 14025 else 14026 old_CFLAGS="$CFLAGS" 14027 # Compile unoptimized. 14028 CFLAGS="$CFLAGS -O0 -S" 14029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14030 (eval $ac_compile) 2>&5 14031 ac_status=$? 14032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14033 test $ac_status = 0; }; then 14034 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 14035 eval libat_cv_have_at_fop_2=no 14036 else 14037 eval libat_cv_have_at_fop_2=yes 14038 fi 14039 else 14040 eval libat_cv_have_at_fop_2=no 14041 fi 14042 CFLAGS="$old_CFLAGS" 14043 fi 14044 rm -f conftest* 14045 14046fi 14047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_2" >&5 14048$as_echo "$libat_cv_have_at_fop_2" >&6; } 14049 14050 14051 yesno=`echo $libat_cv_have_at_fop_2 | tr 'yesno' '1 0 '` 14052 14053cat >>confdefs.h <<_ACEOF 14054#define HAVE_ATOMIC_FETCH_OP_2 $yesno 14055_ACEOF 14056 14057 14058 14059 14060 14061 14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 4" >&5 14063$as_echo_n "checking for __atomic_fetch_op for size 4... " >&6; } 14064if test "${libat_cv_have_at_fop_4+set}" = set; then : 14065 $as_echo_n "(cached) " >&6 14066else 14067 14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14069/* end confdefs.h. */ 14070 14071int 14072main () 14073{ 14074typedef int T __attribute__((mode(SI))); T *x, y; 14075 asm("" : "=g"(x), "=g"(y)); 14076 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0); 14077 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0); 14078 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0); 14079 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0); 14080 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0); 14081 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0); 14082 ; 14083 return 0; 14084} 14085_ACEOF 14086 if test x$atomic_builtins_link_tests = xyes; then 14087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14088 (eval $ac_link) 2>&5 14089 ac_status=$? 14090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14091 test $ac_status = 0; }; then 14092 eval libat_cv_have_at_fop_4=yes 14093 else 14094 eval libat_cv_have_at_fop_4=no 14095 fi 14096 else 14097 old_CFLAGS="$CFLAGS" 14098 # Compile unoptimized. 14099 CFLAGS="$CFLAGS -O0 -S" 14100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14101 (eval $ac_compile) 2>&5 14102 ac_status=$? 14103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14104 test $ac_status = 0; }; then 14105 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 14106 eval libat_cv_have_at_fop_4=no 14107 else 14108 eval libat_cv_have_at_fop_4=yes 14109 fi 14110 else 14111 eval libat_cv_have_at_fop_4=no 14112 fi 14113 CFLAGS="$old_CFLAGS" 14114 fi 14115 rm -f conftest* 14116 14117fi 14118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_4" >&5 14119$as_echo "$libat_cv_have_at_fop_4" >&6; } 14120 14121 14122 yesno=`echo $libat_cv_have_at_fop_4 | tr 'yesno' '1 0 '` 14123 14124cat >>confdefs.h <<_ACEOF 14125#define HAVE_ATOMIC_FETCH_OP_4 $yesno 14126_ACEOF 14127 14128 14129 14130 14131 14132 14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 8" >&5 14134$as_echo_n "checking for __atomic_fetch_op for size 8... " >&6; } 14135if test "${libat_cv_have_at_fop_8+set}" = set; then : 14136 $as_echo_n "(cached) " >&6 14137else 14138 14139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14140/* end confdefs.h. */ 14141 14142int 14143main () 14144{ 14145typedef int T __attribute__((mode(DI))); T *x, y; 14146 asm("" : "=g"(x), "=g"(y)); 14147 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0); 14148 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0); 14149 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0); 14150 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0); 14151 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0); 14152 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0); 14153 ; 14154 return 0; 14155} 14156_ACEOF 14157 if test x$atomic_builtins_link_tests = xyes; then 14158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14159 (eval $ac_link) 2>&5 14160 ac_status=$? 14161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14162 test $ac_status = 0; }; then 14163 eval libat_cv_have_at_fop_8=yes 14164 else 14165 eval libat_cv_have_at_fop_8=no 14166 fi 14167 else 14168 old_CFLAGS="$CFLAGS" 14169 # Compile unoptimized. 14170 CFLAGS="$CFLAGS -O0 -S" 14171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14172 (eval $ac_compile) 2>&5 14173 ac_status=$? 14174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14175 test $ac_status = 0; }; then 14176 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 14177 eval libat_cv_have_at_fop_8=no 14178 else 14179 eval libat_cv_have_at_fop_8=yes 14180 fi 14181 else 14182 eval libat_cv_have_at_fop_8=no 14183 fi 14184 CFLAGS="$old_CFLAGS" 14185 fi 14186 rm -f conftest* 14187 14188fi 14189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_8" >&5 14190$as_echo "$libat_cv_have_at_fop_8" >&6; } 14191 14192 14193 yesno=`echo $libat_cv_have_at_fop_8 | tr 'yesno' '1 0 '` 14194 14195cat >>confdefs.h <<_ACEOF 14196#define HAVE_ATOMIC_FETCH_OP_8 $yesno 14197_ACEOF 14198 14199 14200 14201 14202 14203 14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 16" >&5 14205$as_echo_n "checking for __atomic_fetch_op for size 16... " >&6; } 14206if test "${libat_cv_have_at_fop_16+set}" = set; then : 14207 $as_echo_n "(cached) " >&6 14208else 14209 14210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14211/* end confdefs.h. */ 14212 14213int 14214main () 14215{ 14216typedef int T __attribute__((mode(TI))); T *x, y; 14217 asm("" : "=g"(x), "=g"(y)); 14218 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0); 14219 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0); 14220 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0); 14221 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0); 14222 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0); 14223 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0); 14224 ; 14225 return 0; 14226} 14227_ACEOF 14228 if test x$atomic_builtins_link_tests = xyes; then 14229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 14230 (eval $ac_link) 2>&5 14231 ac_status=$? 14232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14233 test $ac_status = 0; }; then 14234 eval libat_cv_have_at_fop_16=yes 14235 else 14236 eval libat_cv_have_at_fop_16=no 14237 fi 14238 else 14239 old_CFLAGS="$CFLAGS" 14240 # Compile unoptimized. 14241 CFLAGS="$CFLAGS -O0 -S" 14242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14243 (eval $ac_compile) 2>&5 14244 ac_status=$? 14245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14246 test $ac_status = 0; }; then 14247 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then 14248 eval libat_cv_have_at_fop_16=no 14249 else 14250 eval libat_cv_have_at_fop_16=yes 14251 fi 14252 else 14253 eval libat_cv_have_at_fop_16=no 14254 fi 14255 CFLAGS="$old_CFLAGS" 14256 fi 14257 rm -f conftest* 14258 14259fi 14260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_16" >&5 14261$as_echo "$libat_cv_have_at_fop_16" >&6; } 14262 14263 14264 yesno=`echo $libat_cv_have_at_fop_16 | tr 'yesno' '1 0 '` 14265 14266cat >>confdefs.h <<_ACEOF 14267#define HAVE_ATOMIC_FETCH_OP_16 $yesno 14268_ACEOF 14269 14270 14271 14272 14273 14274 14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 14276$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 14277if test "${ac_cv_c_bigendian+set}" = set; then : 14278 $as_echo_n "(cached) " >&6 14279else 14280 ac_cv_c_bigendian=unknown 14281 # See if we're dealing with a universal compiler. 14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14283/* end confdefs.h. */ 14284#ifndef __APPLE_CC__ 14285 not a universal capable compiler 14286 #endif 14287 typedef int dummy; 14288 14289_ACEOF 14290if ac_fn_c_try_compile "$LINENO"; then : 14291 14292 # Check for potential -arch flags. It is not universal unless 14293 # there are at least two -arch flags with different values. 14294 ac_arch= 14295 ac_prev= 14296 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 14297 if test -n "$ac_prev"; then 14298 case $ac_word in 14299 i?86 | x86_64 | ppc | ppc64) 14300 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 14301 ac_arch=$ac_word 14302 else 14303 ac_cv_c_bigendian=universal 14304 break 14305 fi 14306 ;; 14307 esac 14308 ac_prev= 14309 elif test "x$ac_word" = "x-arch"; then 14310 ac_prev=arch 14311 fi 14312 done 14313fi 14314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14315 if test $ac_cv_c_bigendian = unknown; then 14316 # See if sys/param.h defines the BYTE_ORDER macro. 14317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14318/* end confdefs.h. */ 14319#include <sys/types.h> 14320 #include <sys/param.h> 14321 14322int 14323main () 14324{ 14325#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 14326 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 14327 && LITTLE_ENDIAN) 14328 bogus endian macros 14329 #endif 14330 14331 ; 14332 return 0; 14333} 14334_ACEOF 14335if ac_fn_c_try_compile "$LINENO"; then : 14336 # It does; now see whether it defined to BIG_ENDIAN or not. 14337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14338/* end confdefs.h. */ 14339#include <sys/types.h> 14340 #include <sys/param.h> 14341 14342int 14343main () 14344{ 14345#if BYTE_ORDER != BIG_ENDIAN 14346 not big endian 14347 #endif 14348 14349 ; 14350 return 0; 14351} 14352_ACEOF 14353if ac_fn_c_try_compile "$LINENO"; then : 14354 ac_cv_c_bigendian=yes 14355else 14356 ac_cv_c_bigendian=no 14357fi 14358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14359fi 14360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14361 fi 14362 if test $ac_cv_c_bigendian = unknown; then 14363 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 14364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14365/* end confdefs.h. */ 14366#include <limits.h> 14367 14368int 14369main () 14370{ 14371#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 14372 bogus endian macros 14373 #endif 14374 14375 ; 14376 return 0; 14377} 14378_ACEOF 14379if ac_fn_c_try_compile "$LINENO"; then : 14380 # It does; now see whether it defined to _BIG_ENDIAN or not. 14381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14382/* end confdefs.h. */ 14383#include <limits.h> 14384 14385int 14386main () 14387{ 14388#ifndef _BIG_ENDIAN 14389 not big endian 14390 #endif 14391 14392 ; 14393 return 0; 14394} 14395_ACEOF 14396if ac_fn_c_try_compile "$LINENO"; then : 14397 ac_cv_c_bigendian=yes 14398else 14399 ac_cv_c_bigendian=no 14400fi 14401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14402fi 14403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14404 fi 14405 if test $ac_cv_c_bigendian = unknown; then 14406 # Compile a test program. 14407 if test "$cross_compiling" = yes; then : 14408 # Try to guess by grepping values from an object file. 14409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14410/* end confdefs.h. */ 14411short int ascii_mm[] = 14412 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 14413 short int ascii_ii[] = 14414 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 14415 int use_ascii (int i) { 14416 return ascii_mm[i] + ascii_ii[i]; 14417 } 14418 short int ebcdic_ii[] = 14419 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 14420 short int ebcdic_mm[] = 14421 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 14422 int use_ebcdic (int i) { 14423 return ebcdic_mm[i] + ebcdic_ii[i]; 14424 } 14425 extern int foo; 14426 14427int 14428main () 14429{ 14430return use_ascii (foo) == use_ebcdic (foo); 14431 ; 14432 return 0; 14433} 14434_ACEOF 14435if ac_fn_c_try_compile "$LINENO"; then : 14436 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 14437 ac_cv_c_bigendian=yes 14438 fi 14439 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 14440 if test "$ac_cv_c_bigendian" = unknown; then 14441 ac_cv_c_bigendian=no 14442 else 14443 # finding both strings is unlikely to happen, but who knows? 14444 ac_cv_c_bigendian=unknown 14445 fi 14446 fi 14447fi 14448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14449else 14450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14451/* end confdefs.h. */ 14452$ac_includes_default 14453int 14454main () 14455{ 14456 14457 /* Are we little or big endian? From Harbison&Steele. */ 14458 union 14459 { 14460 long int l; 14461 char c[sizeof (long int)]; 14462 } u; 14463 u.l = 1; 14464 return u.c[sizeof (long int) - 1] == 1; 14465 14466 ; 14467 return 0; 14468} 14469_ACEOF 14470if ac_fn_c_try_run "$LINENO"; then : 14471 ac_cv_c_bigendian=no 14472else 14473 ac_cv_c_bigendian=yes 14474fi 14475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14476 conftest.$ac_objext conftest.beam conftest.$ac_ext 14477fi 14478 14479 fi 14480fi 14481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 14482$as_echo "$ac_cv_c_bigendian" >&6; } 14483 case $ac_cv_c_bigendian in #( 14484 yes) 14485 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 14486;; #( 14487 no) 14488 ;; #( 14489 universal) 14490 14491$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 14492 14493 ;; #( 14494 *) 14495 as_fn_error "unknown endianness 14496 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 14497 esac 14498 14499# I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE. 14500 14501 14502 14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the word size" >&5 14504$as_echo_n "checking for the word size... " >&6; } 14505if test "${libat_cv_wordsize+set}" = set; then : 14506 $as_echo_n "(cached) " >&6 14507else 14508 if ac_fn_c_compute_int "$LINENO" "sizeof(word)" "libat_cv_wordsize" "typedef int word __attribute__((mode(word)));"; then : 14509 14510else 14511 as_fn_error "Could not determine word size." "$LINENO" 5 14512fi 14513 14514fi 14515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_wordsize" >&5 14516$as_echo "$libat_cv_wordsize" >&6; } 14517 14518cat >>confdefs.h <<_ACEOF 14519#define WORDSIZE $libat_cv_wordsize 14520_ACEOF 14521 14522 14523 14524# Check to see if -pthread or -lpthread is needed. Prefer the former. 14525# In case the pthread.h system header is not found, this test will fail. 14526case " $config_path " in 14527 *" posix "*) 14528 XPCFLAGS="" 14529 CFLAGS="$CFLAGS -pthread" 14530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14531/* end confdefs.h. */ 14532#include <pthread.h> 14533 void *g(void *d) { return NULL; } 14534int 14535main () 14536{ 14537pthread_t t; pthread_create(&t,NULL,g,NULL); 14538 ; 14539 return 0; 14540} 14541_ACEOF 14542if ac_fn_c_try_link "$LINENO"; then : 14543 XPCFLAGS=" -pthread" 14544else 14545 CFLAGS="$save_CFLAGS $XCFLAGS" LIBS="-lpthread $LIBS" 14546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14547/* end confdefs.h. */ 14548#include <pthread.h> 14549 void *g(void *d) { return NULL; } 14550int 14551main () 14552{ 14553pthread_t t; pthread_create(&t,NULL,g,NULL); 14554 ; 14555 return 0; 14556} 14557_ACEOF 14558if ac_fn_c_try_link "$LINENO"; then : 14559 14560else 14561 as_fn_error "Pthreads are required to build libatomic" "$LINENO" 5 14562fi 14563rm -f core conftest.err conftest.$ac_objext \ 14564 conftest$ac_exeext conftest.$ac_ext 14565fi 14566rm -f core conftest.err conftest.$ac_objext \ 14567 conftest$ac_exeext conftest.$ac_ext 14568 CFLAGS="$save_CFLAGS $XPCFLAGS" 14569 ;; 14570esac 14571 14572# See what sort of export controls are available. 14573 14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5 14575$as_echo_n "checking whether the target supports hidden visibility... " >&6; } 14576if test "${libat_cv_have_attribute_visibility+set}" = set; then : 14577 $as_echo_n "(cached) " >&6 14578else 14579 14580 save_CFLAGS="$CFLAGS" 14581 CFLAGS="$CFLAGS -Werror" 14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14583/* end confdefs.h. */ 14584void __attribute__((visibility("hidden"))) foo(void) { } 14585int 14586main () 14587{ 14588 14589 ; 14590 return 0; 14591} 14592_ACEOF 14593if ac_fn_c_try_compile "$LINENO"; then : 14594 libat_cv_have_attribute_visibility=yes 14595else 14596 libat_cv_have_attribute_visibility=no 14597fi 14598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14599 CFLAGS="$save_CFLAGS" 14600fi 14601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_visibility" >&5 14602$as_echo "$libat_cv_have_attribute_visibility" >&6; } 14603 if test $libat_cv_have_attribute_visibility = yes; then 14604 14605$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h 14606 14607 fi 14608 14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5 14610$as_echo_n "checking whether the target supports dllexport... " >&6; } 14611if test "${libat_cv_have_attribute_dllexport+set}" = set; then : 14612 $as_echo_n "(cached) " >&6 14613else 14614 14615 save_CFLAGS="$CFLAGS" 14616 CFLAGS="$CFLAGS -Werror" 14617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14618/* end confdefs.h. */ 14619void __attribute__((dllexport)) foo(void) { } 14620int 14621main () 14622{ 14623 14624 ; 14625 return 0; 14626} 14627_ACEOF 14628if ac_fn_c_try_compile "$LINENO"; then : 14629 libat_cv_have_attribute_dllexport=yes 14630else 14631 libat_cv_have_attribute_dllexport=no 14632fi 14633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14634 CFLAGS="$save_CFLAGS" 14635fi 14636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_dllexport" >&5 14637$as_echo "$libat_cv_have_attribute_dllexport" >&6; } 14638 if test $libat_cv_have_attribute_dllexport = yes; then 14639 14640$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h 14641 14642 fi 14643 14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5 14645$as_echo_n "checking whether the target supports symbol aliases... " >&6; } 14646if test "${libat_cv_have_attribute_alias+set}" = set; then : 14647 $as_echo_n "(cached) " >&6 14648else 14649 14650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14651/* end confdefs.h. */ 14652 14653void foo(void) { } 14654extern void bar(void) __attribute__((alias("foo"))); 14655int 14656main () 14657{ 14658bar(); 14659 ; 14660 return 0; 14661} 14662_ACEOF 14663if ac_fn_c_try_link "$LINENO"; then : 14664 libat_cv_have_attribute_alias=yes 14665else 14666 libat_cv_have_attribute_alias=no 14667fi 14668rm -f core conftest.err conftest.$ac_objext \ 14669 conftest$ac_exeext conftest.$ac_ext 14670fi 14671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_alias" >&5 14672$as_echo "$libat_cv_have_attribute_alias" >&6; } 14673 if test $libat_cv_have_attribute_alias = yes; then 14674 14675$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h 14676 14677 fi 14678if test x$try_ifunc = xyes; then 14679 14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports the ifunc attribute" >&5 14681$as_echo_n "checking whether the target supports the ifunc attribute... " >&6; } 14682if test "${libat_cv_have_ifunc+set}" = set; then : 14683 $as_echo_n "(cached) " >&6 14684else 14685 14686 save_CFLAGS="$CFLAGS" 14687 CFLAGS="$CFLAGS -Werror" 14688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14689/* end confdefs.h. */ 14690 14691 int foo_alt(void) { return 0; } 14692 void *foo_sel(void) { return foo_alt; } 14693 int foo(void) __attribute__((ifunc("foo_sel"))); 14694int 14695main () 14696{ 14697return foo(); 14698 ; 14699 return 0; 14700} 14701_ACEOF 14702if ac_fn_c_try_link "$LINENO"; then : 14703 libat_cv_have_ifunc=yes 14704else 14705 libat_cv_have_ifunc=no 14706fi 14707rm -f core conftest.err conftest.$ac_objext \ 14708 conftest$ac_exeext conftest.$ac_ext 14709fi 14710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_ifunc" >&5 14711$as_echo "$libat_cv_have_ifunc" >&6; } 14712 14713 yesno=`echo $libat_cv_have_ifunc | tr 'yesno' '1 0 '` 14714 14715cat >>confdefs.h <<_ACEOF 14716#define HAVE_IFUNC $yesno 14717_ACEOF 14718 14719 14720 14721fi 14722 14723# Check linker support. 14724 14725 14726# Check whether --with-gnu-ld was given. 14727if test "${with_gnu_ld+set}" = set; then : 14728 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 14729else 14730 with_gnu_ld=no 14731fi 14732 14733ac_prog=ld 14734if test "$GCC" = yes; then 14735 # Check if gcc -print-prog-name=ld gives a path. 14736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 14737$as_echo_n "checking for ld used by $CC... " >&6; } 14738 case $host in 14739 *-*-mingw*) 14740 # gcc leaves a trailing carriage return which upsets mingw 14741 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14742 *) 14743 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14744 esac 14745 case $ac_prog in 14746 # Accept absolute paths. 14747 [\\/]* | ?:[\\/]*) 14748 re_direlt='/[^/][^/]*/\.\./' 14749 # Canonicalize the pathname of ld 14750 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14751 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14752 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14753 done 14754 test -z "$LD" && LD="$ac_prog" 14755 ;; 14756 "") 14757 # If it fails, then pretend we aren't using GCC. 14758 ac_prog=ld 14759 ;; 14760 *) 14761 # If it is relative, then search for the first ld in PATH. 14762 with_gnu_ld=unknown 14763 ;; 14764 esac 14765elif test "$with_gnu_ld" = yes; then 14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14767$as_echo_n "checking for GNU ld... " >&6; } 14768else 14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14770$as_echo_n "checking for non-GNU ld... " >&6; } 14771fi 14772if test "${lt_cv_path_LD+set}" = set; then : 14773 $as_echo_n "(cached) " >&6 14774else 14775 if test -z "$LD"; then 14776 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14777 for ac_dir in $PATH; do 14778 IFS="$lt_save_ifs" 14779 test -z "$ac_dir" && ac_dir=. 14780 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14781 lt_cv_path_LD="$ac_dir/$ac_prog" 14782 # Check to see if the program is GNU ld. I'd rather use --version, 14783 # but apparently some variants of GNU ld only accept -v. 14784 # Break only if it was the GNU/non-GNU ld that we prefer. 14785 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14786 *GNU* | *'with BFD'*) 14787 test "$with_gnu_ld" != no && break 14788 ;; 14789 *) 14790 test "$with_gnu_ld" != yes && break 14791 ;; 14792 esac 14793 fi 14794 done 14795 IFS="$lt_save_ifs" 14796else 14797 lt_cv_path_LD="$LD" # Let the user override the test with a path. 14798fi 14799fi 14800 14801LD="$lt_cv_path_LD" 14802if test -n "$LD"; then 14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14804$as_echo "$LD" >&6; } 14805else 14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14807$as_echo "no" >&6; } 14808fi 14809test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 14810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14811$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 14812if test "${lt_cv_prog_gnu_ld+set}" = set; then : 14813 $as_echo_n "(cached) " >&6 14814else 14815 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14816case `$LD -v 2>&1 </dev/null` in 14817*GNU* | *'with BFD'*) 14818 lt_cv_prog_gnu_ld=yes 14819 ;; 14820*) 14821 lt_cv_prog_gnu_ld=no 14822 ;; 14823esac 14824fi 14825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14826$as_echo "$lt_cv_prog_gnu_ld" >&6; } 14827with_gnu_ld=$lt_cv_prog_gnu_ld 14828 14829 14830 14831 14832 14833 14834 14835 # If we're not using GNU ld, then there's no point in even trying these 14836 # tests. Check for that first. We should have already tested for gld 14837 # by now (in libtool), but require it now just to be safe... 14838 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' 14839 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' 14840 14841 14842 14843 # The name set by libtool depends on the version of libtool. Shame on us 14844 # for depending on an impl detail, but c'est la vie. Older versions used 14845 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on 14846 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually 14847 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't 14848 # set (hence we're using an older libtool), then set it. 14849 if test x${with_gnu_ld+set} != xset; then 14850 if test x${ac_cv_prog_gnu_ld+set} != xset; then 14851 # We got through "ac_require(ac_prog_ld)" and still not set? Huh? 14852 with_gnu_ld=no 14853 else 14854 with_gnu_ld=$ac_cv_prog_gnu_ld 14855 fi 14856 fi 14857 14858 # Start by getting the version number. I think the libtool test already 14859 # does some of this, but throws away the result. 14860 libat_ld_is_gold=no 14861 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then 14862 libat_ld_is_gold=yes 14863 fi 14864 14865 ldver=`$LD --version 2>/dev/null | 14866 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'` 14867 14868 libat_gnu_ld_version=`echo $ldver | \ 14869 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` 14870 14871 # Set --gc-sections. 14872 if test "$with_gnu_ld" = "notbroken"; then 14873 # GNU ld it is! Joy and bunny rabbits! 14874 14875 # All these tests are for C++; save the language and the compiler flags. 14876 # Need to do this so that g++ won't try to link in libstdc++ 14877 ac_test_CFLAGS="${CFLAGS+set}" 14878 ac_save_CFLAGS="$CFLAGS" 14879 CFLAGS='-x c++ -Wl,--gc-sections' 14880 14881 # Check for -Wl,--gc-sections 14882 # XXX This test is broken at the moment, as symbols required for linking 14883 # are now in libsupc++ (not built yet). In addition, this test has 14884 # cored on solaris in the past. In addition, --gc-sections doesn't 14885 # really work at the moment (keeps on discarding used sections, first 14886 # .eh_frame and now some of the glibc sections for iconv). 14887 # Bzzzzt. Thanks for playing, maybe next time. 14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5 14889$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; } 14890 if test "$cross_compiling" = yes; then : 14891 ac_sectionLDflags=yes 14892else 14893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14894/* end confdefs.h. */ 14895 14896 int main(void) 14897 { 14898 try { throw 1; } 14899 catch (...) { }; 14900 return 0; 14901 } 14902 14903_ACEOF 14904if ac_fn_c_try_run "$LINENO"; then : 14905 ac_sectionLDflags=yes 14906else 14907 ac_sectionLDflags=no 14908fi 14909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14910 conftest.$ac_objext conftest.beam conftest.$ac_ext 14911fi 14912 14913 if test "$ac_test_CFLAGS" = set; then 14914 CFLAGS="$ac_save_CFLAGS" 14915 else 14916 # this is the suspicious part 14917 CFLAGS='' 14918 fi 14919 if test "$ac_sectionLDflags" = "yes"; then 14920 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" 14921 fi 14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5 14923$as_echo "$ac_sectionLDflags" >&6; } 14924 fi 14925 14926 # Set linker optimization flags. 14927 if test x"$with_gnu_ld" = x"yes"; then 14928 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" 14929 fi 14930 14931 14932 14933 14934 14935 14936 # Check whether --enable-symvers was given. 14937if test "${enable_symvers+set}" = set; then : 14938 enableval=$enable_symvers; 14939 case "$enableval" in 14940 yes|no|gnu*|sun) ;; 14941 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;; 14942 esac 14943 14944else 14945 enable_symvers=yes 14946fi 14947 14948 14949 14950# If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we 14951# don't know enough about $LD to do tricks... 14952 14953 14954# Turn a 'yes' into a suitable default. 14955if test x$enable_symvers = xyes ; then 14956 # FIXME The following test is too strict, in theory. 14957 if test $enable_shared = no || test "x$LD" = x; then 14958 enable_symvers=no 14959 else 14960 if test $with_gnu_ld = yes ; then 14961 enable_symvers=gnu 14962 else 14963 case ${target_os} in 14964 # Sun symbol versioning exists since Solaris 2.5. 14965 solaris2.[5-9]* | solaris2.1[0-9]*) 14966 enable_symvers=sun ;; 14967 *) 14968 enable_symvers=no ;; 14969 esac 14970 fi 14971 fi 14972fi 14973 14974# Check if 'sun' was requested on non-Solaris 2 platforms. 14975if test x$enable_symvers = xsun ; then 14976 case ${target_os} in 14977 solaris2*) 14978 # All fine. 14979 ;; 14980 *) 14981 # Unlikely to work. 14982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5 14983$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;} 14984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5 14985$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;} 14986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 14987$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 14988 enable_symvers=no 14989 ;; 14990 esac 14991fi 14992 14993# Check to see if libgcc_s exists, indicating that shared libgcc is possible. 14994if test $enable_symvers != no; then 14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5 14996$as_echo_n "checking for shared libgcc... " >&6; } 14997 ac_save_CFLAGS="$CFLAGS" 14998 CFLAGS=' -lgcc_s' 14999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15000/* end confdefs.h. */ 15001 15002int 15003main () 15004{ 15005return 0; 15006 ; 15007 return 0; 15008} 15009_ACEOF 15010if ac_fn_c_try_link "$LINENO"; then : 15011 libat_shared_libgcc=yes 15012else 15013 libat_shared_libgcc=no 15014fi 15015rm -f core conftest.err conftest.$ac_objext \ 15016 conftest$ac_exeext conftest.$ac_ext 15017 CFLAGS="$ac_save_CFLAGS" 15018 if test $libat_shared_libgcc = no; then 15019 cat > conftest.c <<EOF 15020int main (void) { return 0; } 15021EOF 15022 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ 15023 -shared -shared-libgcc -o conftest.so \ 15024 conftest.c -v 2>&1 >/dev/null \ 15025 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'` 15026 rm -f conftest.c conftest.so 15027 if test x${libat_libgcc_s_suffix+set} = xset; then 15028 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix" 15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15030/* end confdefs.h. */ 15031 15032int 15033main () 15034{ 15035return 0; 15036 ; 15037 return 0; 15038} 15039_ACEOF 15040if ac_fn_c_try_link "$LINENO"; then : 15041 libat_shared_libgcc=yes 15042fi 15043rm -f core conftest.err conftest.$ac_objext \ 15044 conftest$ac_exeext conftest.$ac_ext 15045 CFLAGS="$ac_save_CFLAGS" 15046 fi 15047 fi 15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5 15049$as_echo "$libat_shared_libgcc" >&6; } 15050fi 15051 15052# For GNU ld, we need at least this version. The format is described in 15053# LIBAT_CHECK_LINKER_FEATURES above. 15054libat_min_gnu_ld_version=21400 15055# XXXXXXXXXXX libat_gnu_ld_version=21390 15056 15057# Check to see if unspecified "yes" value can win, given results above. 15058# Change "yes" into either "no" or a style name. 15059if test $enable_symvers != no && test $libat_shared_libgcc = yes; then 15060 if test $with_gnu_ld = yes; then 15061 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then 15062 enable_symvers=gnu 15063 elif test $libat_ld_is_gold = yes ; then 15064 enable_symvers=gnu 15065 else 15066 # The right tools, the right setup, but too old. Fallbacks? 15067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5 15068$as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;} 15069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5 15070$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;} 15071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5 15072$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;} 15073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5 15074$as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;} 15075 if test $libat_gnu_ld_version -ge 21200 ; then 15076 # Globbing fix is present, proper block support is not. 15077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 15078$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 15079 enable_symvers=no 15080 else 15081 # 2.11 or older. 15082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 15083$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 15084 enable_symvers=no 15085 fi 15086 fi 15087 elif test $enable_symvers = sun; then 15088 : All interesting versions of Sun ld support sun style symbol versioning. 15089 else 15090 # just fail for now 15091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5 15092$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;} 15093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5 15094$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;} 15095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5 15096$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;} 15097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5 15098$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 15099 enable_symvers=no 15100 fi 15101fi 15102if test $enable_symvers = gnu; then 15103 15104$as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h 15105 15106fi 15107 15108 if test $enable_symvers != no; then 15109 LIBAT_BUILD_VERSIONED_SHLIB_TRUE= 15110 LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#' 15111else 15112 LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#' 15113 LIBAT_BUILD_VERSIONED_SHLIB_FALSE= 15114fi 15115 15116 if test $enable_symvers = gnu; then 15117 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE= 15118 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#' 15119else 15120 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#' 15121 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE= 15122fi 15123 15124 if test $enable_symvers = sun; then 15125 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE= 15126 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#' 15127else 15128 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#' 15129 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE= 15130fi 15131 15132{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5 15133$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;} 15134 15135 15136# Cleanup and exit. 15137CFLAGS="$save_CFLAGS" 15138cat >confcache <<\_ACEOF 15139# This file is a shell script that caches the results of configure 15140# tests run on this system so they can be shared between configure 15141# scripts and configure runs, see configure's option --config-cache. 15142# It is not useful on other systems. If it contains results you don't 15143# want to keep, you may remove or edit it. 15144# 15145# config.status only pays attention to the cache file if you give it 15146# the --recheck option to rerun configure. 15147# 15148# `ac_cv_env_foo' variables (set or unset) will be overridden when 15149# loading this file, other *unset* `ac_cv_foo' will be assigned the 15150# following values. 15151 15152_ACEOF 15153 15154# The following way of writing the cache mishandles newlines in values, 15155# but we know of no workaround that is simple, portable, and efficient. 15156# So, we kill variables containing newlines. 15157# Ultrix sh set writes to stderr and can't be redirected directly, 15158# and sets the high bit in the cache file unless we assign to the vars. 15159( 15160 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15161 eval ac_val=\$$ac_var 15162 case $ac_val in #( 15163 *${as_nl}*) 15164 case $ac_var in #( 15165 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15166$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15167 esac 15168 case $ac_var in #( 15169 _ | IFS | as_nl) ;; #( 15170 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15171 *) { eval $ac_var=; unset $ac_var;} ;; 15172 esac ;; 15173 esac 15174 done 15175 15176 (set) 2>&1 | 15177 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15178 *${as_nl}ac_space=\ *) 15179 # `set' does not quote correctly, so add quotes: double-quote 15180 # substitution turns \\\\ into \\, and sed turns \\ into \. 15181 sed -n \ 15182 "s/'/'\\\\''/g; 15183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15184 ;; #( 15185 *) 15186 # `set' quotes correctly as required by POSIX, so do not add quotes. 15187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15188 ;; 15189 esac | 15190 sort 15191) | 15192 sed ' 15193 /^ac_cv_env_/b end 15194 t clear 15195 :clear 15196 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15197 t end 15198 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15199 :end' >>confcache 15200if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15201 if test -w "$cache_file"; then 15202 test "x$cache_file" != "x/dev/null" && 15203 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15204$as_echo "$as_me: updating cache $cache_file" >&6;} 15205 cat confcache >$cache_file 15206 else 15207 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15208$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15209 fi 15210fi 15211rm -f confcache 15212 15213# Add -Wall -Werror if we are using GCC. 15214if test "x$GCC" = "xyes"; then 15215 XCFLAGS="$XCFLAGS -Wall -Werror" 15216fi 15217 15218XCFLAGS="$XCFLAGS $XPCFLAGS" 15219 15220 15221 15222 15223 15224 15225 15226 if test x$libat_cv_have_ifunc = xyes; then 15227 HAVE_IFUNC_TRUE= 15228 HAVE_IFUNC_FALSE='#' 15229else 15230 HAVE_IFUNC_TRUE='#' 15231 HAVE_IFUNC_FALSE= 15232fi 15233 15234 if expr "$config_path" : ".* linux/arm .*" > /dev/null; then 15235 ARCH_ARM_LINUX_TRUE= 15236 ARCH_ARM_LINUX_FALSE='#' 15237else 15238 ARCH_ARM_LINUX_TRUE='#' 15239 ARCH_ARM_LINUX_FALSE= 15240fi 15241 15242 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x4; then 15243 ARCH_I386_TRUE= 15244 ARCH_I386_FALSE='#' 15245else 15246 ARCH_I386_TRUE='#' 15247 ARCH_I386_FALSE= 15248fi 15249 15250 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x8; then 15251 ARCH_X86_64_TRUE= 15252 ARCH_X86_64_FALSE='#' 15253else 15254 ARCH_X86_64_TRUE='#' 15255 ARCH_X86_64_FALSE= 15256fi 15257 15258 15259if test ${multilib} = yes; then 15260 multilib_arg="--enable-multilib" 15261else 15262 multilib_arg= 15263fi 15264 15265ac_config_files="$ac_config_files Makefile testsuite/Makefile" 15266 15267cat >confcache <<\_ACEOF 15268# This file is a shell script that caches the results of configure 15269# tests run on this system so they can be shared between configure 15270# scripts and configure runs, see configure's option --config-cache. 15271# It is not useful on other systems. If it contains results you don't 15272# want to keep, you may remove or edit it. 15273# 15274# config.status only pays attention to the cache file if you give it 15275# the --recheck option to rerun configure. 15276# 15277# `ac_cv_env_foo' variables (set or unset) will be overridden when 15278# loading this file, other *unset* `ac_cv_foo' will be assigned the 15279# following values. 15280 15281_ACEOF 15282 15283# The following way of writing the cache mishandles newlines in values, 15284# but we know of no workaround that is simple, portable, and efficient. 15285# So, we kill variables containing newlines. 15286# Ultrix sh set writes to stderr and can't be redirected directly, 15287# and sets the high bit in the cache file unless we assign to the vars. 15288( 15289 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15290 eval ac_val=\$$ac_var 15291 case $ac_val in #( 15292 *${as_nl}*) 15293 case $ac_var in #( 15294 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15295$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15296 esac 15297 case $ac_var in #( 15298 _ | IFS | as_nl) ;; #( 15299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15300 *) { eval $ac_var=; unset $ac_var;} ;; 15301 esac ;; 15302 esac 15303 done 15304 15305 (set) 2>&1 | 15306 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15307 *${as_nl}ac_space=\ *) 15308 # `set' does not quote correctly, so add quotes: double-quote 15309 # substitution turns \\\\ into \\, and sed turns \\ into \. 15310 sed -n \ 15311 "s/'/'\\\\''/g; 15312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15313 ;; #( 15314 *) 15315 # `set' quotes correctly as required by POSIX, so do not add quotes. 15316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15317 ;; 15318 esac | 15319 sort 15320) | 15321 sed ' 15322 /^ac_cv_env_/b end 15323 t clear 15324 :clear 15325 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15326 t end 15327 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15328 :end' >>confcache 15329if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15330 if test -w "$cache_file"; then 15331 test "x$cache_file" != "x/dev/null" && 15332 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15333$as_echo "$as_me: updating cache $cache_file" >&6;} 15334 cat confcache >$cache_file 15335 else 15336 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15337$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15338 fi 15339fi 15340rm -f confcache 15341 15342test "x$prefix" = xNONE && prefix=$ac_default_prefix 15343# Let make expand exec_prefix. 15344test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15345 15346DEFS=-DHAVE_CONFIG_H 15347 15348ac_libobjs= 15349ac_ltlibobjs= 15350for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15351 # 1. Remove the extension, and $U if already installed. 15352 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15353 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15354 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15355 # will be set to the directory where LIBOBJS objects are built. 15356 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15357 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15358done 15359LIBOBJS=$ac_libobjs 15360 15361LTLIBOBJS=$ac_ltlibobjs 15362 15363 15364if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then 15365 as_fn_error "conditional \"GENINSRC\" was never defined. 15366Usually this means the macro was only invoked conditionally." "$LINENO" 5 15367fi 15368 if test -n "$EXEEXT"; then 15369 am__EXEEXT_TRUE= 15370 am__EXEEXT_FALSE='#' 15371else 15372 am__EXEEXT_TRUE='#' 15373 am__EXEEXT_FALSE= 15374fi 15375 15376if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15377 as_fn_error "conditional \"AMDEP\" was never defined. 15378Usually this means the macro was only invoked conditionally." "$LINENO" 5 15379fi 15380if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15381 as_fn_error "conditional \"am__fastdepCC\" was never defined. 15382Usually this means the macro was only invoked conditionally." "$LINENO" 5 15383fi 15384if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 15385 as_fn_error "conditional \"am__fastdepCCAS\" was never defined. 15386Usually this means the macro was only invoked conditionally." "$LINENO" 5 15387fi 15388if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 15389 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 15390Usually this means the macro was only invoked conditionally." "$LINENO" 5 15391fi 15392 15393if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then 15394 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined. 15395Usually this means the macro was only invoked conditionally." "$LINENO" 5 15396fi 15397if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then 15398 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined. 15399Usually this means the macro was only invoked conditionally." "$LINENO" 5 15400fi 15401if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then 15402 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined. 15403Usually this means the macro was only invoked conditionally." "$LINENO" 5 15404fi 15405if test -z "${HAVE_IFUNC_TRUE}" && test -z "${HAVE_IFUNC_FALSE}"; then 15406 as_fn_error "conditional \"HAVE_IFUNC\" was never defined. 15407Usually this means the macro was only invoked conditionally." "$LINENO" 5 15408fi 15409if test -z "${ARCH_ARM_LINUX_TRUE}" && test -z "${ARCH_ARM_LINUX_FALSE}"; then 15410 as_fn_error "conditional \"ARCH_ARM_LINUX\" was never defined. 15411Usually this means the macro was only invoked conditionally." "$LINENO" 5 15412fi 15413if test -z "${ARCH_I386_TRUE}" && test -z "${ARCH_I386_FALSE}"; then 15414 as_fn_error "conditional \"ARCH_I386\" was never defined. 15415Usually this means the macro was only invoked conditionally." "$LINENO" 5 15416fi 15417if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then 15418 as_fn_error "conditional \"ARCH_X86_64\" was never defined. 15419Usually this means the macro was only invoked conditionally." "$LINENO" 5 15420fi 15421 15422: ${CONFIG_STATUS=./config.status} 15423ac_write_fail=0 15424ac_clean_files_save=$ac_clean_files 15425ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15426{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15427$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15428as_write_fail=0 15429cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15430#! $SHELL 15431# Generated by $as_me. 15432# Run this file to recreate the current configuration. 15433# Compiler output produced by configure, useful for debugging 15434# configure, is in config.log if it exists. 15435 15436debug=false 15437ac_cs_recheck=false 15438ac_cs_silent=false 15439 15440SHELL=\${CONFIG_SHELL-$SHELL} 15441export SHELL 15442_ASEOF 15443cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15444## -------------------- ## 15445## M4sh Initialization. ## 15446## -------------------- ## 15447 15448# Be more Bourne compatible 15449DUALCASE=1; export DUALCASE # for MKS sh 15450if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15451 emulate sh 15452 NULLCMD=: 15453 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15454 # is contrary to our usage. Disable this feature. 15455 alias -g '${1+"$@"}'='"$@"' 15456 setopt NO_GLOB_SUBST 15457else 15458 case `(set -o) 2>/dev/null` in #( 15459 *posix*) : 15460 set -o posix ;; #( 15461 *) : 15462 ;; 15463esac 15464fi 15465 15466 15467as_nl=' 15468' 15469export as_nl 15470# Printing a long string crashes Solaris 7 /usr/bin/printf. 15471as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15472as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15473as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15474# Prefer a ksh shell builtin over an external printf program on Solaris, 15475# but without wasting forks for bash or zsh. 15476if test -z "$BASH_VERSION$ZSH_VERSION" \ 15477 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15478 as_echo='print -r --' 15479 as_echo_n='print -rn --' 15480elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15481 as_echo='printf %s\n' 15482 as_echo_n='printf %s' 15483else 15484 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15485 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15486 as_echo_n='/usr/ucb/echo -n' 15487 else 15488 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15489 as_echo_n_body='eval 15490 arg=$1; 15491 case $arg in #( 15492 *"$as_nl"*) 15493 expr "X$arg" : "X\\(.*\\)$as_nl"; 15494 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15495 esac; 15496 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15497 ' 15498 export as_echo_n_body 15499 as_echo_n='sh -c $as_echo_n_body as_echo' 15500 fi 15501 export as_echo_body 15502 as_echo='sh -c $as_echo_body as_echo' 15503fi 15504 15505# The user is always right. 15506if test "${PATH_SEPARATOR+set}" != set; then 15507 PATH_SEPARATOR=: 15508 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15509 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15510 PATH_SEPARATOR=';' 15511 } 15512fi 15513 15514 15515# IFS 15516# We need space, tab and new line, in precisely that order. Quoting is 15517# there to prevent editors from complaining about space-tab. 15518# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15519# splitting by setting IFS to empty value.) 15520IFS=" "" $as_nl" 15521 15522# Find who we are. Look in the path if we contain no directory separator. 15523case $0 in #(( 15524 *[\\/]* ) as_myself=$0 ;; 15525 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15526for as_dir in $PATH 15527do 15528 IFS=$as_save_IFS 15529 test -z "$as_dir" && as_dir=. 15530 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15531 done 15532IFS=$as_save_IFS 15533 15534 ;; 15535esac 15536# We did not find ourselves, most probably we were run as `sh COMMAND' 15537# in which case we are not to be found in the path. 15538if test "x$as_myself" = x; then 15539 as_myself=$0 15540fi 15541if test ! -f "$as_myself"; then 15542 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15543 exit 1 15544fi 15545 15546# Unset variables that we do not need and which cause bugs (e.g. in 15547# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15548# suppresses any "Segmentation fault" message there. '((' could 15549# trigger a bug in pdksh 5.2.14. 15550for as_var in BASH_ENV ENV MAIL MAILPATH 15551do eval test x\${$as_var+set} = xset \ 15552 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15553done 15554PS1='$ ' 15555PS2='> ' 15556PS4='+ ' 15557 15558# NLS nuisances. 15559LC_ALL=C 15560export LC_ALL 15561LANGUAGE=C 15562export LANGUAGE 15563 15564# CDPATH. 15565(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15566 15567 15568# as_fn_error ERROR [LINENO LOG_FD] 15569# --------------------------------- 15570# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15571# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15572# script with status $?, using 1 if that was 0. 15573as_fn_error () 15574{ 15575 as_status=$?; test $as_status -eq 0 && as_status=1 15576 if test "$3"; then 15577 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15578 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 15579 fi 15580 $as_echo "$as_me: error: $1" >&2 15581 as_fn_exit $as_status 15582} # as_fn_error 15583 15584 15585# as_fn_set_status STATUS 15586# ----------------------- 15587# Set $? to STATUS, without forking. 15588as_fn_set_status () 15589{ 15590 return $1 15591} # as_fn_set_status 15592 15593# as_fn_exit STATUS 15594# ----------------- 15595# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15596as_fn_exit () 15597{ 15598 set +e 15599 as_fn_set_status $1 15600 exit $1 15601} # as_fn_exit 15602 15603# as_fn_unset VAR 15604# --------------- 15605# Portably unset VAR. 15606as_fn_unset () 15607{ 15608 { eval $1=; unset $1;} 15609} 15610as_unset=as_fn_unset 15611# as_fn_append VAR VALUE 15612# ---------------------- 15613# Append the text in VALUE to the end of the definition contained in VAR. Take 15614# advantage of any shell optimizations that allow amortized linear growth over 15615# repeated appends, instead of the typical quadratic growth present in naive 15616# implementations. 15617if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15618 eval 'as_fn_append () 15619 { 15620 eval $1+=\$2 15621 }' 15622else 15623 as_fn_append () 15624 { 15625 eval $1=\$$1\$2 15626 } 15627fi # as_fn_append 15628 15629# as_fn_arith ARG... 15630# ------------------ 15631# Perform arithmetic evaluation on the ARGs, and store the result in the 15632# global $as_val. Take advantage of shells that can avoid forks. The arguments 15633# must be portable across $(()) and expr. 15634if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15635 eval 'as_fn_arith () 15636 { 15637 as_val=$(( $* )) 15638 }' 15639else 15640 as_fn_arith () 15641 { 15642 as_val=`expr "$@" || test $? -eq 1` 15643 } 15644fi # as_fn_arith 15645 15646 15647if expr a : '\(a\)' >/dev/null 2>&1 && 15648 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15649 as_expr=expr 15650else 15651 as_expr=false 15652fi 15653 15654if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15655 as_basename=basename 15656else 15657 as_basename=false 15658fi 15659 15660if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15661 as_dirname=dirname 15662else 15663 as_dirname=false 15664fi 15665 15666as_me=`$as_basename -- "$0" || 15667$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15668 X"$0" : 'X\(//\)$' \| \ 15669 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15670$as_echo X/"$0" | 15671 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15672 s//\1/ 15673 q 15674 } 15675 /^X\/\(\/\/\)$/{ 15676 s//\1/ 15677 q 15678 } 15679 /^X\/\(\/\).*/{ 15680 s//\1/ 15681 q 15682 } 15683 s/.*/./; q'` 15684 15685# Avoid depending upon Character Ranges. 15686as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15687as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15688as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15689as_cr_digits='0123456789' 15690as_cr_alnum=$as_cr_Letters$as_cr_digits 15691 15692ECHO_C= ECHO_N= ECHO_T= 15693case `echo -n x` in #((((( 15694-n*) 15695 case `echo 'xy\c'` in 15696 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15697 xy) ECHO_C='\c';; 15698 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15699 ECHO_T=' ';; 15700 esac;; 15701*) 15702 ECHO_N='-n';; 15703esac 15704 15705rm -f conf$$ conf$$.exe conf$$.file 15706if test -d conf$$.dir; then 15707 rm -f conf$$.dir/conf$$.file 15708else 15709 rm -f conf$$.dir 15710 mkdir conf$$.dir 2>/dev/null 15711fi 15712if (echo >conf$$.file) 2>/dev/null; then 15713 if ln -s conf$$.file conf$$ 2>/dev/null; then 15714 as_ln_s='ln -s' 15715 # ... but there are two gotchas: 15716 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15717 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15718 # In both cases, we have to default to `cp -p'. 15719 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15720 as_ln_s='cp -p' 15721 elif ln conf$$.file conf$$ 2>/dev/null; then 15722 as_ln_s=ln 15723 else 15724 as_ln_s='cp -p' 15725 fi 15726else 15727 as_ln_s='cp -p' 15728fi 15729rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15730rmdir conf$$.dir 2>/dev/null 15731 15732 15733# as_fn_mkdir_p 15734# ------------- 15735# Create "$as_dir" as a directory, including parents if necessary. 15736as_fn_mkdir_p () 15737{ 15738 15739 case $as_dir in #( 15740 -*) as_dir=./$as_dir;; 15741 esac 15742 test -d "$as_dir" || eval $as_mkdir_p || { 15743 as_dirs= 15744 while :; do 15745 case $as_dir in #( 15746 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15747 *) as_qdir=$as_dir;; 15748 esac 15749 as_dirs="'$as_qdir' $as_dirs" 15750 as_dir=`$as_dirname -- "$as_dir" || 15751$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15752 X"$as_dir" : 'X\(//\)[^/]' \| \ 15753 X"$as_dir" : 'X\(//\)$' \| \ 15754 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15755$as_echo X"$as_dir" | 15756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15757 s//\1/ 15758 q 15759 } 15760 /^X\(\/\/\)[^/].*/{ 15761 s//\1/ 15762 q 15763 } 15764 /^X\(\/\/\)$/{ 15765 s//\1/ 15766 q 15767 } 15768 /^X\(\/\).*/{ 15769 s//\1/ 15770 q 15771 } 15772 s/.*/./; q'` 15773 test -d "$as_dir" && break 15774 done 15775 test -z "$as_dirs" || eval "mkdir $as_dirs" 15776 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 15777 15778 15779} # as_fn_mkdir_p 15780if mkdir -p . 2>/dev/null; then 15781 as_mkdir_p='mkdir -p "$as_dir"' 15782else 15783 test -d ./-p && rmdir ./-p 15784 as_mkdir_p=false 15785fi 15786 15787if test -x / >/dev/null 2>&1; then 15788 as_test_x='test -x' 15789else 15790 if ls -dL / >/dev/null 2>&1; then 15791 as_ls_L_option=L 15792 else 15793 as_ls_L_option= 15794 fi 15795 as_test_x=' 15796 eval sh -c '\'' 15797 if test -d "$1"; then 15798 test -d "$1/."; 15799 else 15800 case $1 in #( 15801 -*)set "./$1";; 15802 esac; 15803 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 15804 ???[sx]*):;;*)false;;esac;fi 15805 '\'' sh 15806 ' 15807fi 15808as_executable_p=$as_test_x 15809 15810# Sed expression to map a string onto a valid CPP name. 15811as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15812 15813# Sed expression to map a string onto a valid variable name. 15814as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15815 15816 15817exec 6>&1 15818## ----------------------------------- ## 15819## Main body of $CONFIG_STATUS script. ## 15820## ----------------------------------- ## 15821_ASEOF 15822test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15823 15824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15825# Save the log message, to keep $0 and so on meaningful, and to 15826# report actual input values of CONFIG_FILES etc. instead of their 15827# values after options handling. 15828ac_log=" 15829This file was extended by GNU Atomic Library $as_me 1.0, which was 15830generated by GNU Autoconf 2.64. Invocation command line was 15831 15832 CONFIG_FILES = $CONFIG_FILES 15833 CONFIG_HEADERS = $CONFIG_HEADERS 15834 CONFIG_LINKS = $CONFIG_LINKS 15835 CONFIG_COMMANDS = $CONFIG_COMMANDS 15836 $ $0 $@ 15837 15838on `(hostname || uname -n) 2>/dev/null | sed 1q` 15839" 15840 15841_ACEOF 15842 15843case $ac_config_files in *" 15844"*) set x $ac_config_files; shift; ac_config_files=$*;; 15845esac 15846 15847case $ac_config_headers in *" 15848"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15849esac 15850 15851 15852cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15853# Files that config.status was made for. 15854config_files="$ac_config_files" 15855config_headers="$ac_config_headers" 15856config_commands="$ac_config_commands" 15857 15858_ACEOF 15859 15860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15861ac_cs_usage="\ 15862\`$as_me' instantiates files and other configuration actions 15863from templates according to the current configuration. Unless the files 15864and actions are specified as TAGs, all are instantiated by default. 15865 15866Usage: $0 [OPTION]... [TAG]... 15867 15868 -h, --help print this help, then exit 15869 -V, --version print version number and configuration settings, then exit 15870 -q, --quiet, --silent 15871 do not print progress messages 15872 -d, --debug don't remove temporary files 15873 --recheck update $as_me by reconfiguring in the same conditions 15874 --file=FILE[:TEMPLATE] 15875 instantiate the configuration file FILE 15876 --header=FILE[:TEMPLATE] 15877 instantiate the configuration header FILE 15878 15879Configuration files: 15880$config_files 15881 15882Configuration headers: 15883$config_headers 15884 15885Configuration commands: 15886$config_commands 15887 15888Report bugs to the package provider. 15889GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>. 15890General help using GNU software: <http://www.gnu.org/gethelp/>." 15891 15892_ACEOF 15893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15894ac_cs_version="\\ 15895GNU Atomic Library config.status 1.0 15896configured by $0, generated by GNU Autoconf 2.64, 15897 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 15898 15899Copyright (C) 2009 Free Software Foundation, Inc. 15900This config.status script is free software; the Free Software Foundation 15901gives unlimited permission to copy, distribute and modify it." 15902 15903ac_pwd='$ac_pwd' 15904srcdir='$srcdir' 15905INSTALL='$INSTALL' 15906MKDIR_P='$MKDIR_P' 15907AWK='$AWK' 15908test -n "\$AWK" || AWK=awk 15909_ACEOF 15910 15911cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15912# The default lists apply if the user does not specify any file. 15913ac_need_defaults=: 15914while test $# != 0 15915do 15916 case $1 in 15917 --*=*) 15918 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15919 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15920 ac_shift=: 15921 ;; 15922 *) 15923 ac_option=$1 15924 ac_optarg=$2 15925 ac_shift=shift 15926 ;; 15927 esac 15928 15929 case $ac_option in 15930 # Handling of the options. 15931 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15932 ac_cs_recheck=: ;; 15933 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15934 $as_echo "$ac_cs_version"; exit ;; 15935 --debug | --debu | --deb | --de | --d | -d ) 15936 debug=: ;; 15937 --file | --fil | --fi | --f ) 15938 $ac_shift 15939 case $ac_optarg in 15940 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15941 esac 15942 as_fn_append CONFIG_FILES " '$ac_optarg'" 15943 ac_need_defaults=false;; 15944 --header | --heade | --head | --hea ) 15945 $ac_shift 15946 case $ac_optarg in 15947 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15948 esac 15949 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15950 ac_need_defaults=false;; 15951 --he | --h) 15952 # Conflict between --help and --header 15953 as_fn_error "ambiguous option: \`$1' 15954Try \`$0 --help' for more information.";; 15955 --help | --hel | -h ) 15956 $as_echo "$ac_cs_usage"; exit ;; 15957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15958 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15959 ac_cs_silent=: ;; 15960 15961 # This is an error. 15962 -*) as_fn_error "unrecognized option: \`$1' 15963Try \`$0 --help' for more information." ;; 15964 15965 *) as_fn_append ac_config_targets " $1" 15966 ac_need_defaults=false ;; 15967 15968 esac 15969 shift 15970done 15971 15972ac_configure_extra_args= 15973 15974if $ac_cs_silent; then 15975 exec 6>/dev/null 15976 ac_configure_extra_args="$ac_configure_extra_args --silent" 15977fi 15978 15979_ACEOF 15980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15981if \$ac_cs_recheck; then 15982 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15983 shift 15984 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15985 CONFIG_SHELL='$SHELL' 15986 export CONFIG_SHELL 15987 exec "\$@" 15988fi 15989 15990_ACEOF 15991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15992exec 5>>config.log 15993{ 15994 echo 15995 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15996## Running $as_me. ## 15997_ASBOX 15998 $as_echo "$ac_log" 15999} >&5 16000 16001_ACEOF 16002cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16003# 16004# INIT-COMMANDS 16005# 16006 16007srcdir="$srcdir" 16008host="$host" 16009target="$target" 16010with_multisubdir="$with_multisubdir" 16011with_multisrctop="$with_multisrctop" 16012with_target_subdir="$with_target_subdir" 16013ac_configure_args="${multilib_arg} ${ac_configure_args}" 16014multi_basedir="$multi_basedir" 16015CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 16016CC="$CC" 16017CXX="$CXX" 16018GFORTRAN="$GFORTRAN" 16019GCJ="$GCJ" 16020AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16021 16022 16023# The HP-UX ksh and POSIX shell print the target directory to stdout 16024# if CDPATH is set. 16025(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16026 16027sed_quote_subst='$sed_quote_subst' 16028double_quote_subst='$double_quote_subst' 16029delay_variable_subst='$delay_variable_subst' 16030macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16031macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16032enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16033enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16034pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16035enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16036SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16037ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16038host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16039host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16040host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16041build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16042build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16043build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16044SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16045Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16046GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16047EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16048FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16049LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16050NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16051LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16052max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16053ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16054exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16055lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16056lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16057lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16058reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16059reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16060OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16061deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16062file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16063AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16064AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16065STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16066RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16067old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16068old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16069old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16070lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16071CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16072CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16073compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16074GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16075lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16076lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16077lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16078lt_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"`' 16079objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16080MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16081lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16082lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16083lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16084lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16085lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16086need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16087DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16088NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16089LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16090OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16091OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16092libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16093shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16094extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16095archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16096enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16097export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16098whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16099compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16100old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16101old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16102archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16103archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16104module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16105module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16106with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16107allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16108no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16109hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16110hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 16111hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16112hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16113hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16114hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16115hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16116hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16117inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16118link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16119fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 16120always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16121export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16122exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16123include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16124prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16125file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16126variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16127need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16128need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16129version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16130runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16131shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16132shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16133libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16134library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16135soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16136install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16137postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16138postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16139finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16140finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16141hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16142sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16143sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16144hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16145enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16146enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16147enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16148old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16149striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16150 16151LTCC='$LTCC' 16152LTCFLAGS='$LTCFLAGS' 16153compiler='$compiler_DEFAULT' 16154 16155# A function that is used when there is no print builtin or printf. 16156func_fallback_echo () 16157{ 16158 eval 'cat <<_LTECHO_EOF 16159\$1 16160_LTECHO_EOF' 16161} 16162 16163# Quote evaled strings. 16164for var in SHELL \ 16165ECHO \ 16166SED \ 16167GREP \ 16168EGREP \ 16169FGREP \ 16170LD \ 16171NM \ 16172LN_S \ 16173lt_SP2NL \ 16174lt_NL2SP \ 16175reload_flag \ 16176OBJDUMP \ 16177deplibs_check_method \ 16178file_magic_cmd \ 16179AR \ 16180AR_FLAGS \ 16181STRIP \ 16182RANLIB \ 16183CC \ 16184CFLAGS \ 16185compiler \ 16186lt_cv_sys_global_symbol_pipe \ 16187lt_cv_sys_global_symbol_to_cdecl \ 16188lt_cv_sys_global_symbol_to_c_name_address \ 16189lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16190lt_prog_compiler_no_builtin_flag \ 16191lt_prog_compiler_wl \ 16192lt_prog_compiler_pic \ 16193lt_prog_compiler_static \ 16194lt_cv_prog_compiler_c_o \ 16195need_locks \ 16196DSYMUTIL \ 16197NMEDIT \ 16198LIPO \ 16199OTOOL \ 16200OTOOL64 \ 16201shrext_cmds \ 16202export_dynamic_flag_spec \ 16203whole_archive_flag_spec \ 16204compiler_needs_object \ 16205with_gnu_ld \ 16206allow_undefined_flag \ 16207no_undefined_flag \ 16208hardcode_libdir_flag_spec \ 16209hardcode_libdir_flag_spec_ld \ 16210hardcode_libdir_separator \ 16211fix_srcfile_path \ 16212exclude_expsyms \ 16213include_expsyms \ 16214file_list_spec \ 16215variables_saved_for_relink \ 16216libname_spec \ 16217library_names_spec \ 16218soname_spec \ 16219install_override_mode \ 16220finish_eval \ 16221old_striplib \ 16222striplib; do 16223 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16224 *[\\\\\\\`\\"\\\$]*) 16225 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16226 ;; 16227 *) 16228 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16229 ;; 16230 esac 16231done 16232 16233# Double-quote double-evaled strings. 16234for var in reload_cmds \ 16235old_postinstall_cmds \ 16236old_postuninstall_cmds \ 16237old_archive_cmds \ 16238extract_expsyms_cmds \ 16239old_archive_from_new_cmds \ 16240old_archive_from_expsyms_cmds \ 16241archive_cmds \ 16242archive_expsym_cmds \ 16243module_cmds \ 16244module_expsym_cmds \ 16245export_symbols_cmds \ 16246prelink_cmds \ 16247postinstall_cmds \ 16248postuninstall_cmds \ 16249finish_cmds \ 16250sys_lib_search_path_spec \ 16251sys_lib_dlsearch_path_spec; do 16252 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16253 *[\\\\\\\`\\"\\\$]*) 16254 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16255 ;; 16256 *) 16257 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16258 ;; 16259 esac 16260done 16261 16262ac_aux_dir='$ac_aux_dir' 16263xsi_shell='$xsi_shell' 16264lt_shell_append='$lt_shell_append' 16265 16266# See if we are running on zsh, and set the options which allow our 16267# commands through without removal of \ escapes INIT. 16268if test -n "\${ZSH_VERSION+set}" ; then 16269 setopt NO_GLOB_SUBST 16270fi 16271 16272 16273 PACKAGE='$PACKAGE' 16274 VERSION='$VERSION' 16275 TIMESTAMP='$TIMESTAMP' 16276 RM='$RM' 16277 ofile='$ofile' 16278 16279 16280 16281 16282GCC="$GCC" 16283CC="$CC" 16284acx_cv_header_stdint="$acx_cv_header_stdint" 16285acx_cv_type_int8_t="$acx_cv_type_int8_t" 16286acx_cv_type_int16_t="$acx_cv_type_int16_t" 16287acx_cv_type_int32_t="$acx_cv_type_int32_t" 16288acx_cv_type_int64_t="$acx_cv_type_int64_t" 16289acx_cv_type_intptr_t="$acx_cv_type_intptr_t" 16290ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" 16291ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" 16292ac_cv_type_uint64_t="$ac_cv_type_uint64_t" 16293ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" 16294ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" 16295ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" 16296ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" 16297ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" 16298 16299 16300_ACEOF 16301 16302cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16303 16304# Handling of arguments. 16305for ac_config_target in $ac_config_targets 16306do 16307 case $ac_config_target in 16308 "auto-config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-config.h" ;; 16309 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 16310 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16311 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16312 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; 16313 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16314 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; 16315 16316 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16317 esac 16318done 16319 16320 16321# If the user did not use the arguments to specify the items to instantiate, 16322# then the envvar interface is used. Set only those that are not. 16323# We use the long form for the default assignment because of an extremely 16324# bizarre bug on SunOS 4.1.3. 16325if $ac_need_defaults; then 16326 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16327 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16328 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16329fi 16330 16331# Have a temporary directory for convenience. Make it in the build tree 16332# simply because there is no reason against having it here, and in addition, 16333# creating and moving files from /tmp can sometimes cause problems. 16334# Hook for its removal unless debugging. 16335# Note that there is a small window in which the directory will not be cleaned: 16336# after its creation but before its name has been assigned to `$tmp'. 16337$debug || 16338{ 16339 tmp= 16340 trap 'exit_status=$? 16341 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 16342' 0 16343 trap 'as_fn_exit 1' 1 2 13 15 16344} 16345# Create a (secure) tmp directory for tmp files. 16346 16347{ 16348 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16349 test -n "$tmp" && test -d "$tmp" 16350} || 16351{ 16352 tmp=./conf$$-$RANDOM 16353 (umask 077 && mkdir "$tmp") 16354} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 16355 16356# Set up the scripts for CONFIG_FILES section. 16357# No need to generate them if there are no CONFIG_FILES. 16358# This happens for instance with `./config.status config.h'. 16359if test -n "$CONFIG_FILES"; then 16360 16361 16362ac_cr=`echo X | tr X '\015'` 16363# On cygwin, bash can eat \r inside `` if the user requested igncr. 16364# But we know of no other shell where ac_cr would be empty at this 16365# point, so we can use a bashism as a fallback. 16366if test "x$ac_cr" = x; then 16367 eval ac_cr=\$\'\\r\' 16368fi 16369ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16370if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16371 ac_cs_awk_cr='\r' 16372else 16373 ac_cs_awk_cr=$ac_cr 16374fi 16375 16376echo 'BEGIN {' >"$tmp/subs1.awk" && 16377_ACEOF 16378 16379 16380{ 16381 echo "cat >conf$$subs.awk <<_ACEOF" && 16382 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16383 echo "_ACEOF" 16384} >conf$$subs.sh || 16385 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16386ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 16387ac_delim='%!_!# ' 16388for ac_last_try in false false false false false :; do 16389 . ./conf$$subs.sh || 16390 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16391 16392 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16393 if test $ac_delim_n = $ac_delim_num; then 16394 break 16395 elif $ac_last_try; then 16396 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 16397 else 16398 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16399 fi 16400done 16401rm -f conf$$subs.sh 16402 16403cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16404cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 16405_ACEOF 16406sed -n ' 16407h 16408s/^/S["/; s/!.*/"]=/ 16409p 16410g 16411s/^[^!]*!// 16412:repl 16413t repl 16414s/'"$ac_delim"'$// 16415t delim 16416:nl 16417h 16418s/\(.\{148\}\).*/\1/ 16419t more1 16420s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16421p 16422n 16423b repl 16424:more1 16425s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16426p 16427g 16428s/.\{148\}// 16429t nl 16430:delim 16431h 16432s/\(.\{148\}\).*/\1/ 16433t more2 16434s/["\\]/\\&/g; s/^/"/; s/$/"/ 16435p 16436b 16437:more2 16438s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16439p 16440g 16441s/.\{148\}// 16442t delim 16443' <conf$$subs.awk | sed ' 16444/^[^""]/{ 16445 N 16446 s/\n// 16447} 16448' >>$CONFIG_STATUS || ac_write_fail=1 16449rm -f conf$$subs.awk 16450cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16451_ACAWK 16452cat >>"\$tmp/subs1.awk" <<_ACAWK && 16453 for (key in S) S_is_set[key] = 1 16454 FS = "" 16455 16456} 16457{ 16458 line = $ 0 16459 nfields = split(line, field, "@") 16460 substed = 0 16461 len = length(field[1]) 16462 for (i = 2; i < nfields; i++) { 16463 key = field[i] 16464 keylen = length(key) 16465 if (S_is_set[key]) { 16466 value = S[key] 16467 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16468 len += length(value) + length(field[++i]) 16469 substed = 1 16470 } else 16471 len += 1 + keylen 16472 } 16473 16474 print line 16475} 16476 16477_ACAWK 16478_ACEOF 16479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16480if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16481 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16482else 16483 cat 16484fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 16485 || as_fn_error "could not setup config files machinery" "$LINENO" 5 16486_ACEOF 16487 16488# VPATH may cause trouble with some makes, so we remove $(srcdir), 16489# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 16490# trailing colons and then remove the whole line if VPATH becomes empty 16491# (actually we leave an empty line to preserve line numbers). 16492if test "x$srcdir" = x.; then 16493 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 16494s/:*\$(srcdir):*/:/ 16495s/:*\${srcdir}:*/:/ 16496s/:*@srcdir@:*/:/ 16497s/^\([^=]*=[ ]*\):*/\1/ 16498s/:*$// 16499s/^[^=]*=[ ]*$// 16500}' 16501fi 16502 16503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16504fi # test -n "$CONFIG_FILES" 16505 16506# Set up the scripts for CONFIG_HEADERS section. 16507# No need to generate them if there are no CONFIG_HEADERS. 16508# This happens for instance with `./config.status Makefile'. 16509if test -n "$CONFIG_HEADERS"; then 16510cat >"$tmp/defines.awk" <<\_ACAWK || 16511BEGIN { 16512_ACEOF 16513 16514# Transform confdefs.h into an awk script `defines.awk', embedded as 16515# here-document in config.status, that substitutes the proper values into 16516# config.h.in to produce config.h. 16517 16518# Create a delimiter string that does not exist in confdefs.h, to ease 16519# handling of long lines. 16520ac_delim='%!_!# ' 16521for ac_last_try in false false :; do 16522 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 16523 if test -z "$ac_t"; then 16524 break 16525 elif $ac_last_try; then 16526 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 16527 else 16528 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16529 fi 16530done 16531 16532# For the awk script, D is an array of macro values keyed by name, 16533# likewise P contains macro parameters if any. Preserve backslash 16534# newline sequences. 16535 16536ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16537sed -n ' 16538s/.\{148\}/&'"$ac_delim"'/g 16539t rset 16540:rset 16541s/^[ ]*#[ ]*define[ ][ ]*/ / 16542t def 16543d 16544:def 16545s/\\$// 16546t bsnl 16547s/["\\]/\\&/g 16548s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16549D["\1"]=" \3"/p 16550s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16551d 16552:bsnl 16553s/["\\]/\\&/g 16554s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16555D["\1"]=" \3\\\\\\n"\\/p 16556t cont 16557s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16558t cont 16559d 16560:cont 16561n 16562s/.\{148\}/&'"$ac_delim"'/g 16563t clear 16564:clear 16565s/\\$// 16566t bsnlc 16567s/["\\]/\\&/g; s/^/"/; s/$/"/p 16568d 16569:bsnlc 16570s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16571b cont 16572' <confdefs.h | sed ' 16573s/'"$ac_delim"'/"\\\ 16574"/g' >>$CONFIG_STATUS || ac_write_fail=1 16575 16576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16577 for (key in D) D_is_set[key] = 1 16578 FS = "" 16579} 16580/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16581 line = \$ 0 16582 split(line, arg, " ") 16583 if (arg[1] == "#") { 16584 defundef = arg[2] 16585 mac1 = arg[3] 16586 } else { 16587 defundef = substr(arg[1], 2) 16588 mac1 = arg[2] 16589 } 16590 split(mac1, mac2, "(") #) 16591 macro = mac2[1] 16592 prefix = substr(line, 1, index(line, defundef) - 1) 16593 if (D_is_set[macro]) { 16594 # Preserve the white space surrounding the "#". 16595 print prefix "define", macro P[macro] D[macro] 16596 next 16597 } else { 16598 # Replace #undef with comments. This is necessary, for example, 16599 # in the case of _POSIX_SOURCE, which is predefined and required 16600 # on some systems where configure will not decide to define it. 16601 if (defundef == "undef") { 16602 print "/*", prefix defundef, macro, "*/" 16603 next 16604 } 16605 } 16606} 16607{ print } 16608_ACAWK 16609_ACEOF 16610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16611 as_fn_error "could not setup config headers machinery" "$LINENO" 5 16612fi # test -n "$CONFIG_HEADERS" 16613 16614 16615eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 16616shift 16617for ac_tag 16618do 16619 case $ac_tag in 16620 :[FHLC]) ac_mode=$ac_tag; continue;; 16621 esac 16622 case $ac_mode$ac_tag in 16623 :[FHL]*:*);; 16624 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 16625 :[FH]-) ac_tag=-:-;; 16626 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16627 esac 16628 ac_save_IFS=$IFS 16629 IFS=: 16630 set x $ac_tag 16631 IFS=$ac_save_IFS 16632 shift 16633 ac_file=$1 16634 shift 16635 16636 case $ac_mode in 16637 :L) ac_source=$1;; 16638 :[FH]) 16639 ac_file_inputs= 16640 for ac_f 16641 do 16642 case $ac_f in 16643 -) ac_f="$tmp/stdin";; 16644 *) # Look for the file first in the build tree, then in the source tree 16645 # (if the path is not absolute). The absolute path cannot be DOS-style, 16646 # because $ac_f cannot contain `:'. 16647 test -f "$ac_f" || 16648 case $ac_f in 16649 [\\/$]*) false;; 16650 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16651 esac || 16652 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16653 esac 16654 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16655 as_fn_append ac_file_inputs " '$ac_f'" 16656 done 16657 16658 # Let's still pretend it is `configure' which instantiates (i.e., don't 16659 # use $as_me), people would be surprised to read: 16660 # /* config.h. Generated by config.status. */ 16661 configure_input='Generated from '` 16662 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16663 `' by configure.' 16664 if test x"$ac_file" != x-; then 16665 configure_input="$ac_file. $configure_input" 16666 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16667$as_echo "$as_me: creating $ac_file" >&6;} 16668 fi 16669 # Neutralize special characters interpreted by sed in replacement strings. 16670 case $configure_input in #( 16671 *\&* | *\|* | *\\* ) 16672 ac_sed_conf_input=`$as_echo "$configure_input" | 16673 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16674 *) ac_sed_conf_input=$configure_input;; 16675 esac 16676 16677 case $ac_tag in 16678 *:-:* | *:-) cat >"$tmp/stdin" \ 16679 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 16680 esac 16681 ;; 16682 esac 16683 16684 ac_dir=`$as_dirname -- "$ac_file" || 16685$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16686 X"$ac_file" : 'X\(//\)[^/]' \| \ 16687 X"$ac_file" : 'X\(//\)$' \| \ 16688 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16689$as_echo X"$ac_file" | 16690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16691 s//\1/ 16692 q 16693 } 16694 /^X\(\/\/\)[^/].*/{ 16695 s//\1/ 16696 q 16697 } 16698 /^X\(\/\/\)$/{ 16699 s//\1/ 16700 q 16701 } 16702 /^X\(\/\).*/{ 16703 s//\1/ 16704 q 16705 } 16706 s/.*/./; q'` 16707 as_dir="$ac_dir"; as_fn_mkdir_p 16708 ac_builddir=. 16709 16710case "$ac_dir" in 16711.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16712*) 16713 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16714 # A ".." for each directory in $ac_dir_suffix. 16715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16716 case $ac_top_builddir_sub in 16717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16719 esac ;; 16720esac 16721ac_abs_top_builddir=$ac_pwd 16722ac_abs_builddir=$ac_pwd$ac_dir_suffix 16723# for backward compatibility: 16724ac_top_builddir=$ac_top_build_prefix 16725 16726case $srcdir in 16727 .) # We are building in place. 16728 ac_srcdir=. 16729 ac_top_srcdir=$ac_top_builddir_sub 16730 ac_abs_top_srcdir=$ac_pwd ;; 16731 [\\/]* | ?:[\\/]* ) # Absolute name. 16732 ac_srcdir=$srcdir$ac_dir_suffix; 16733 ac_top_srcdir=$srcdir 16734 ac_abs_top_srcdir=$srcdir ;; 16735 *) # Relative name. 16736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16737 ac_top_srcdir=$ac_top_build_prefix$srcdir 16738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16739esac 16740ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16741 16742 16743 case $ac_mode in 16744 :F) 16745 # 16746 # CONFIG_FILE 16747 # 16748 16749 case $INSTALL in 16750 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16751 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16752 esac 16753 ac_MKDIR_P=$MKDIR_P 16754 case $MKDIR_P in 16755 [\\/$]* | ?:[\\/]* ) ;; 16756 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16757 esac 16758_ACEOF 16759 16760cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16761# If the template does not know about datarootdir, expand it. 16762# FIXME: This hack should be removed a few years after 2.60. 16763ac_datarootdir_hack=; ac_datarootdir_seen= 16764ac_sed_dataroot=' 16765/datarootdir/ { 16766 p 16767 q 16768} 16769/@datadir@/p 16770/@docdir@/p 16771/@infodir@/p 16772/@localedir@/p 16773/@mandir@/p' 16774case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16775*datarootdir*) ac_datarootdir_seen=yes;; 16776*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16778$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16779_ACEOF 16780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16781 ac_datarootdir_hack=' 16782 s&@datadir@&$datadir&g 16783 s&@docdir@&$docdir&g 16784 s&@infodir@&$infodir&g 16785 s&@localedir@&$localedir&g 16786 s&@mandir@&$mandir&g 16787 s&\\\${datarootdir}&$datarootdir&g' ;; 16788esac 16789_ACEOF 16790 16791# Neutralize VPATH when `$srcdir' = `.'. 16792# Shell code in configure.ac might set extrasub. 16793# FIXME: do we really want to maintain this feature? 16794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16795ac_sed_extra="$ac_vpsub 16796$extrasub 16797_ACEOF 16798cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16799:t 16800/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16801s|@configure_input@|$ac_sed_conf_input|;t t 16802s&@top_builddir@&$ac_top_builddir_sub&;t t 16803s&@top_build_prefix@&$ac_top_build_prefix&;t t 16804s&@srcdir@&$ac_srcdir&;t t 16805s&@abs_srcdir@&$ac_abs_srcdir&;t t 16806s&@top_srcdir@&$ac_top_srcdir&;t t 16807s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16808s&@builddir@&$ac_builddir&;t t 16809s&@abs_builddir@&$ac_abs_builddir&;t t 16810s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16811s&@INSTALL@&$ac_INSTALL&;t t 16812s&@MKDIR_P@&$ac_MKDIR_P&;t t 16813$ac_datarootdir_hack 16814" 16815eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 16816 || as_fn_error "could not create $ac_file" "$LINENO" 5 16817 16818test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16819 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 16820 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 16821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16822which seems to be undefined. Please make sure it is defined." >&5 16823$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16824which seems to be undefined. Please make sure it is defined." >&2;} 16825 16826 rm -f "$tmp/stdin" 16827 case $ac_file in 16828 -) cat "$tmp/out" && rm -f "$tmp/out";; 16829 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 16830 esac \ 16831 || as_fn_error "could not create $ac_file" "$LINENO" 5 16832 ;; 16833 :H) 16834 # 16835 # CONFIG_HEADER 16836 # 16837 if test x"$ac_file" != x-; then 16838 { 16839 $as_echo "/* $configure_input */" \ 16840 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 16841 } >"$tmp/config.h" \ 16842 || as_fn_error "could not create $ac_file" "$LINENO" 5 16843 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 16844 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16845$as_echo "$as_me: $ac_file is unchanged" >&6;} 16846 else 16847 rm -f "$ac_file" 16848 mv "$tmp/config.h" "$ac_file" \ 16849 || as_fn_error "could not create $ac_file" "$LINENO" 5 16850 fi 16851 else 16852 $as_echo "/* $configure_input */" \ 16853 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 16854 || as_fn_error "could not create -" "$LINENO" 5 16855 fi 16856# Compute "$ac_file"'s index in $config_headers. 16857_am_arg="$ac_file" 16858_am_stamp_count=1 16859for _am_header in $config_headers :; do 16860 case $_am_header in 16861 $_am_arg | $_am_arg:* ) 16862 break ;; 16863 * ) 16864 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 16865 esac 16866done 16867echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 16868$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16869 X"$_am_arg" : 'X\(//\)[^/]' \| \ 16870 X"$_am_arg" : 'X\(//\)$' \| \ 16871 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 16872$as_echo X"$_am_arg" | 16873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16874 s//\1/ 16875 q 16876 } 16877 /^X\(\/\/\)[^/].*/{ 16878 s//\1/ 16879 q 16880 } 16881 /^X\(\/\/\)$/{ 16882 s//\1/ 16883 q 16884 } 16885 /^X\(\/\).*/{ 16886 s//\1/ 16887 q 16888 } 16889 s/.*/./; q'`/stamp-h$_am_stamp_count 16890 ;; 16891 16892 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16893$as_echo "$as_me: executing $ac_file commands" >&6;} 16894 ;; 16895 esac 16896 16897 16898 case $ac_file$ac_mode in 16899 "default-1":C) 16900# Only add multilib support code if we just rebuilt the top-level 16901# Makefile. 16902case " $CONFIG_FILES " in 16903 *" Makefile "*) 16904 ac_file=Makefile . ${multi_basedir}/config-ml.in 16905 ;; 16906esac ;; 16907 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16908 # Autoconf 2.62 quotes --file arguments for eval, but not when files 16909 # are listed without --file. Let's play safe and only enable the eval 16910 # if we detect the quoting. 16911 case $CONFIG_FILES in 16912 *\'*) eval set x "$CONFIG_FILES" ;; 16913 *) set x $CONFIG_FILES ;; 16914 esac 16915 shift 16916 for mf 16917 do 16918 # Strip MF so we end up with the name of the file. 16919 mf=`echo "$mf" | sed -e 's/:.*$//'` 16920 # Check whether this is an Automake generated Makefile or not. 16921 # We used to match only the files named `Makefile.in', but 16922 # some people rename them; so instead we look at the file content. 16923 # Grep'ing the first line is not enough: some people post-process 16924 # each Makefile.in and add a new line on top of each file to say so. 16925 # Grep'ing the whole file is not good either: AIX grep has a line 16926 # limit of 2048, but all sed's we know have understand at least 4000. 16927 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16928 dirpart=`$as_dirname -- "$mf" || 16929$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16930 X"$mf" : 'X\(//\)[^/]' \| \ 16931 X"$mf" : 'X\(//\)$' \| \ 16932 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16933$as_echo X"$mf" | 16934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16935 s//\1/ 16936 q 16937 } 16938 /^X\(\/\/\)[^/].*/{ 16939 s//\1/ 16940 q 16941 } 16942 /^X\(\/\/\)$/{ 16943 s//\1/ 16944 q 16945 } 16946 /^X\(\/\).*/{ 16947 s//\1/ 16948 q 16949 } 16950 s/.*/./; q'` 16951 else 16952 continue 16953 fi 16954 # Extract the definition of DEPDIR, am__include, and am__quote 16955 # from the Makefile without running `make'. 16956 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16957 test -z "$DEPDIR" && continue 16958 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16959 test -z "am__include" && continue 16960 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16961 # When using ansi2knr, U may be empty or an underscore; expand it 16962 U=`sed -n 's/^U = //p' < "$mf"` 16963 # Find all dependency output files, they are included files with 16964 # $(DEPDIR) in their names. We invoke sed twice because it is the 16965 # simplest approach to changing $(DEPDIR) to its actual value in the 16966 # expansion. 16967 for file in `sed -n " 16968 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16969 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 16970 # Make sure the directory exists. 16971 test -f "$dirpart/$file" && continue 16972 fdir=`$as_dirname -- "$file" || 16973$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16974 X"$file" : 'X\(//\)[^/]' \| \ 16975 X"$file" : 'X\(//\)$' \| \ 16976 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16977$as_echo X"$file" | 16978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16979 s//\1/ 16980 q 16981 } 16982 /^X\(\/\/\)[^/].*/{ 16983 s//\1/ 16984 q 16985 } 16986 /^X\(\/\/\)$/{ 16987 s//\1/ 16988 q 16989 } 16990 /^X\(\/\).*/{ 16991 s//\1/ 16992 q 16993 } 16994 s/.*/./; q'` 16995 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16996 # echo "creating $dirpart/$file" 16997 echo '# dummy' > "$dirpart/$file" 16998 done 16999 done 17000} 17001 ;; 17002 "libtool":C) 17003 17004 # See if we are running on zsh, and set the options which allow our 17005 # commands through without removal of \ escapes. 17006 if test -n "${ZSH_VERSION+set}" ; then 17007 setopt NO_GLOB_SUBST 17008 fi 17009 17010 cfgfile="${ofile}T" 17011 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17012 $RM "$cfgfile" 17013 17014 cat <<_LT_EOF >> "$cfgfile" 17015#! $SHELL 17016 17017# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17018# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17019# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17020# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17021# 17022# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17023# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 17024# Written by Gordon Matzigkeit, 1996 17025# 17026# This file is part of GNU Libtool. 17027# 17028# GNU Libtool is free software; you can redistribute it and/or 17029# modify it under the terms of the GNU General Public License as 17030# published by the Free Software Foundation; either version 2 of 17031# the License, or (at your option) any later version. 17032# 17033# As a special exception to the GNU General Public License, 17034# if you distribute this file as part of a program or library that 17035# is built using GNU Libtool, you may include this file under the 17036# same distribution terms that you use for the rest of that program. 17037# 17038# GNU Libtool is distributed in the hope that it will be useful, 17039# but WITHOUT ANY WARRANTY; without even the implied warranty of 17040# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17041# GNU General Public License for more details. 17042# 17043# You should have received a copy of the GNU General Public License 17044# along with GNU Libtool; see the file COPYING. If not, a copy 17045# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17046# obtained by writing to the Free Software Foundation, Inc., 17047# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17048 17049 17050# The names of the tagged configurations supported by this script. 17051available_tags="" 17052 17053# ### BEGIN LIBTOOL CONFIG 17054 17055# Which release of libtool.m4 was used? 17056macro_version=$macro_version 17057macro_revision=$macro_revision 17058 17059# Whether or not to build shared libraries. 17060build_libtool_libs=$enable_shared 17061 17062# Whether or not to build static libraries. 17063build_old_libs=$enable_static 17064 17065# What type of objects to build. 17066pic_mode=$pic_mode 17067 17068# Whether or not to optimize for fast installation. 17069fast_install=$enable_fast_install 17070 17071# Shell to use when invoking shell scripts. 17072SHELL=$lt_SHELL 17073 17074# An echo program that protects backslashes. 17075ECHO=$lt_ECHO 17076 17077# The host system. 17078host_alias=$host_alias 17079host=$host 17080host_os=$host_os 17081 17082# The build system. 17083build_alias=$build_alias 17084build=$build 17085build_os=$build_os 17086 17087# A sed program that does not truncate output. 17088SED=$lt_SED 17089 17090# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17091Xsed="\$SED -e 1s/^X//" 17092 17093# A grep program that handles long lines. 17094GREP=$lt_GREP 17095 17096# An ERE matcher. 17097EGREP=$lt_EGREP 17098 17099# A literal string matcher. 17100FGREP=$lt_FGREP 17101 17102# A BSD- or MS-compatible name lister. 17103NM=$lt_NM 17104 17105# Whether we need soft or hard links. 17106LN_S=$lt_LN_S 17107 17108# What is the maximum length of a command? 17109max_cmd_len=$max_cmd_len 17110 17111# Object file suffix (normally "o"). 17112objext=$ac_objext 17113 17114# Executable file suffix (normally ""). 17115exeext=$exeext 17116 17117# whether the shell understands "unset". 17118lt_unset=$lt_unset 17119 17120# turn spaces into newlines. 17121SP2NL=$lt_lt_SP2NL 17122 17123# turn newlines into spaces. 17124NL2SP=$lt_lt_NL2SP 17125 17126# An object symbol dumper. 17127OBJDUMP=$lt_OBJDUMP 17128 17129# Method to check whether dependent libraries are shared objects. 17130deplibs_check_method=$lt_deplibs_check_method 17131 17132# Command to use when deplibs_check_method == "file_magic". 17133file_magic_cmd=$lt_file_magic_cmd 17134 17135# The archiver. 17136AR=$lt_AR 17137AR_FLAGS=$lt_AR_FLAGS 17138 17139# A symbol stripping program. 17140STRIP=$lt_STRIP 17141 17142# Commands used to install an old-style archive. 17143RANLIB=$lt_RANLIB 17144old_postinstall_cmds=$lt_old_postinstall_cmds 17145old_postuninstall_cmds=$lt_old_postuninstall_cmds 17146 17147# Whether to use a lock for old archive extraction. 17148lock_old_archive_extraction=$lock_old_archive_extraction 17149 17150# A C compiler. 17151LTCC=$lt_CC 17152 17153# LTCC compiler flags. 17154LTCFLAGS=$lt_CFLAGS 17155 17156# Take the output of nm and produce a listing of raw symbols and C names. 17157global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17158 17159# Transform the output of nm in a proper C declaration. 17160global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17161 17162# Transform the output of nm in a C name address pair. 17163global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17164 17165# Transform the output of nm in a C name address pair when lib prefix is needed. 17166global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17167 17168# The name of the directory that contains temporary libtool files. 17169objdir=$objdir 17170 17171# Used to examine libraries when file_magic_cmd begins with "file". 17172MAGIC_CMD=$MAGIC_CMD 17173 17174# Must we lock files when doing compilation? 17175need_locks=$lt_need_locks 17176 17177# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17178DSYMUTIL=$lt_DSYMUTIL 17179 17180# Tool to change global to local symbols on Mac OS X. 17181NMEDIT=$lt_NMEDIT 17182 17183# Tool to manipulate fat objects and archives on Mac OS X. 17184LIPO=$lt_LIPO 17185 17186# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17187OTOOL=$lt_OTOOL 17188 17189# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17190OTOOL64=$lt_OTOOL64 17191 17192# Old archive suffix (normally "a"). 17193libext=$libext 17194 17195# Shared library suffix (normally ".so"). 17196shrext_cmds=$lt_shrext_cmds 17197 17198# The commands to extract the exported symbol list from a shared archive. 17199extract_expsyms_cmds=$lt_extract_expsyms_cmds 17200 17201# Variables whose values should be saved in libtool wrapper scripts and 17202# restored at link time. 17203variables_saved_for_relink=$lt_variables_saved_for_relink 17204 17205# Do we need the "lib" prefix for modules? 17206need_lib_prefix=$need_lib_prefix 17207 17208# Do we need a version for libraries? 17209need_version=$need_version 17210 17211# Library versioning type. 17212version_type=$version_type 17213 17214# Shared library runtime path variable. 17215runpath_var=$runpath_var 17216 17217# Shared library path variable. 17218shlibpath_var=$shlibpath_var 17219 17220# Is shlibpath searched before the hard-coded library search path? 17221shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17222 17223# Format of library name prefix. 17224libname_spec=$lt_libname_spec 17225 17226# List of archive names. First name is the real one, the rest are links. 17227# The last name is the one that the linker finds with -lNAME 17228library_names_spec=$lt_library_names_spec 17229 17230# The coded name of the library, if different from the real name. 17231soname_spec=$lt_soname_spec 17232 17233# Permission mode override for installation of shared libraries. 17234install_override_mode=$lt_install_override_mode 17235 17236# Command to use after installation of a shared archive. 17237postinstall_cmds=$lt_postinstall_cmds 17238 17239# Command to use after uninstallation of a shared archive. 17240postuninstall_cmds=$lt_postuninstall_cmds 17241 17242# Commands used to finish a libtool library installation in a directory. 17243finish_cmds=$lt_finish_cmds 17244 17245# As "finish_cmds", except a single script fragment to be evaled but 17246# not shown. 17247finish_eval=$lt_finish_eval 17248 17249# Whether we should hardcode library paths into libraries. 17250hardcode_into_libs=$hardcode_into_libs 17251 17252# Compile-time system search path for libraries. 17253sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17254 17255# Run-time system search path for libraries. 17256sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17257 17258# Whether dlopen is supported. 17259dlopen_support=$enable_dlopen 17260 17261# Whether dlopen of programs is supported. 17262dlopen_self=$enable_dlopen_self 17263 17264# Whether dlopen of statically linked programs is supported. 17265dlopen_self_static=$enable_dlopen_self_static 17266 17267# Commands to strip libraries. 17268old_striplib=$lt_old_striplib 17269striplib=$lt_striplib 17270 17271 17272# The linker used to build libraries. 17273LD=$lt_LD 17274 17275# How to create reloadable object files. 17276reload_flag=$lt_reload_flag 17277reload_cmds=$lt_reload_cmds 17278 17279# Commands used to build an old-style archive. 17280old_archive_cmds=$lt_old_archive_cmds 17281 17282# A language specific compiler. 17283CC=$lt_compiler 17284 17285# Is the compiler the GNU compiler? 17286with_gcc=$GCC 17287 17288# Compiler flag to turn off builtin functions. 17289no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17290 17291# How to pass a linker flag through the compiler. 17292wl=$lt_lt_prog_compiler_wl 17293 17294# Additional compiler flags for building library objects. 17295pic_flag=$lt_lt_prog_compiler_pic 17296 17297# Compiler flag to prevent dynamic linking. 17298link_static_flag=$lt_lt_prog_compiler_static 17299 17300# Does compiler simultaneously support -c and -o options? 17301compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17302 17303# Whether or not to add -lc for building shared libraries. 17304build_libtool_need_lc=$archive_cmds_need_lc 17305 17306# Whether or not to disallow shared libs when runtime libs are static. 17307allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17308 17309# Compiler flag to allow reflexive dlopens. 17310export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17311 17312# Compiler flag to generate shared objects directly from archives. 17313whole_archive_flag_spec=$lt_whole_archive_flag_spec 17314 17315# Whether the compiler copes with passing no objects directly. 17316compiler_needs_object=$lt_compiler_needs_object 17317 17318# Create an old-style archive from a shared archive. 17319old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17320 17321# Create a temporary old-style archive to link instead of a shared archive. 17322old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17323 17324# Commands used to build a shared archive. 17325archive_cmds=$lt_archive_cmds 17326archive_expsym_cmds=$lt_archive_expsym_cmds 17327 17328# Commands used to build a loadable module if different from building 17329# a shared archive. 17330module_cmds=$lt_module_cmds 17331module_expsym_cmds=$lt_module_expsym_cmds 17332 17333# Whether we are building with GNU ld or not. 17334with_gnu_ld=$lt_with_gnu_ld 17335 17336# Flag that allows shared libraries with undefined symbols to be built. 17337allow_undefined_flag=$lt_allow_undefined_flag 17338 17339# Flag that enforces no undefined symbols. 17340no_undefined_flag=$lt_no_undefined_flag 17341 17342# Flag to hardcode \$libdir into a binary during linking. 17343# This must work even if \$libdir does not exist 17344hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17345 17346# If ld is used when linking, flag to hardcode \$libdir into a binary 17347# during linking. This must work even if \$libdir does not exist. 17348hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 17349 17350# Whether we need a single "-rpath" flag with a separated argument. 17351hardcode_libdir_separator=$lt_hardcode_libdir_separator 17352 17353# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17354# DIR into the resulting binary. 17355hardcode_direct=$hardcode_direct 17356 17357# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17358# DIR into the resulting binary and the resulting library dependency is 17359# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17360# library is relocated. 17361hardcode_direct_absolute=$hardcode_direct_absolute 17362 17363# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17364# into the resulting binary. 17365hardcode_minus_L=$hardcode_minus_L 17366 17367# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17368# into the resulting binary. 17369hardcode_shlibpath_var=$hardcode_shlibpath_var 17370 17371# Set to "yes" if building a shared library automatically hardcodes DIR 17372# into the library and all subsequent libraries and executables linked 17373# against it. 17374hardcode_automatic=$hardcode_automatic 17375 17376# Set to yes if linker adds runtime paths of dependent libraries 17377# to runtime path list. 17378inherit_rpath=$inherit_rpath 17379 17380# Whether libtool must link a program against all its dependency libraries. 17381link_all_deplibs=$link_all_deplibs 17382 17383# Fix the shell variable \$srcfile for the compiler. 17384fix_srcfile_path=$lt_fix_srcfile_path 17385 17386# Set to "yes" if exported symbols are required. 17387always_export_symbols=$always_export_symbols 17388 17389# The commands to list exported symbols. 17390export_symbols_cmds=$lt_export_symbols_cmds 17391 17392# Symbols that should not be listed in the preloaded symbols. 17393exclude_expsyms=$lt_exclude_expsyms 17394 17395# Symbols that must always be exported. 17396include_expsyms=$lt_include_expsyms 17397 17398# Commands necessary for linking programs (against libraries) with templates. 17399prelink_cmds=$lt_prelink_cmds 17400 17401# Specify filename containing input files. 17402file_list_spec=$lt_file_list_spec 17403 17404# How to hardcode a shared library path into an executable. 17405hardcode_action=$hardcode_action 17406 17407# ### END LIBTOOL CONFIG 17408 17409_LT_EOF 17410 17411 case $host_os in 17412 aix3*) 17413 cat <<\_LT_EOF >> "$cfgfile" 17414# AIX sometimes has problems with the GCC collect2 program. For some 17415# reason, if we set the COLLECT_NAMES environment variable, the problems 17416# vanish in a puff of smoke. 17417if test "X${COLLECT_NAMES+set}" != Xset; then 17418 COLLECT_NAMES= 17419 export COLLECT_NAMES 17420fi 17421_LT_EOF 17422 ;; 17423 esac 17424 17425 17426ltmain="$ac_aux_dir/ltmain.sh" 17427 17428 17429 # We use sed instead of cat because bash on DJGPP gets confused if 17430 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17431 # text mode, it properly converts lines to CR/LF. This bash problem 17432 # is reportedly fixed, but why not run on old versions too? 17433 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 17434 || (rm -f "$cfgfile"; exit 1) 17435 17436 case $xsi_shell in 17437 yes) 17438 cat << \_LT_EOF >> "$cfgfile" 17439 17440# func_dirname file append nondir_replacement 17441# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17442# otherwise set result to NONDIR_REPLACEMENT. 17443func_dirname () 17444{ 17445 case ${1} in 17446 */*) func_dirname_result="${1%/*}${2}" ;; 17447 * ) func_dirname_result="${3}" ;; 17448 esac 17449} 17450 17451# func_basename file 17452func_basename () 17453{ 17454 func_basename_result="${1##*/}" 17455} 17456 17457# func_dirname_and_basename file append nondir_replacement 17458# perform func_basename and func_dirname in a single function 17459# call: 17460# dirname: Compute the dirname of FILE. If nonempty, 17461# add APPEND to the result, otherwise set result 17462# to NONDIR_REPLACEMENT. 17463# value returned in "$func_dirname_result" 17464# basename: Compute filename of FILE. 17465# value retuned in "$func_basename_result" 17466# Implementation must be kept synchronized with func_dirname 17467# and func_basename. For efficiency, we do not delegate to 17468# those functions but instead duplicate the functionality here. 17469func_dirname_and_basename () 17470{ 17471 case ${1} in 17472 */*) func_dirname_result="${1%/*}${2}" ;; 17473 * ) func_dirname_result="${3}" ;; 17474 esac 17475 func_basename_result="${1##*/}" 17476} 17477 17478# func_stripname prefix suffix name 17479# strip PREFIX and SUFFIX off of NAME. 17480# PREFIX and SUFFIX must not contain globbing or regex special 17481# characters, hashes, percent signs, but SUFFIX may contain a leading 17482# dot (in which case that matches only a dot). 17483func_stripname () 17484{ 17485 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 17486 # positional parameters, so assign one to ordinary parameter first. 17487 func_stripname_result=${3} 17488 func_stripname_result=${func_stripname_result#"${1}"} 17489 func_stripname_result=${func_stripname_result%"${2}"} 17490} 17491 17492# func_opt_split 17493func_opt_split () 17494{ 17495 func_opt_split_opt=${1%%=*} 17496 func_opt_split_arg=${1#*=} 17497} 17498 17499# func_lo2o object 17500func_lo2o () 17501{ 17502 case ${1} in 17503 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 17504 *) func_lo2o_result=${1} ;; 17505 esac 17506} 17507 17508# func_xform libobj-or-source 17509func_xform () 17510{ 17511 func_xform_result=${1%.*}.lo 17512} 17513 17514# func_arith arithmetic-term... 17515func_arith () 17516{ 17517 func_arith_result=$(( $* )) 17518} 17519 17520# func_len string 17521# STRING may not start with a hyphen. 17522func_len () 17523{ 17524 func_len_result=${#1} 17525} 17526 17527_LT_EOF 17528 ;; 17529 *) # Bourne compatible functions. 17530 cat << \_LT_EOF >> "$cfgfile" 17531 17532# func_dirname file append nondir_replacement 17533# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17534# otherwise set result to NONDIR_REPLACEMENT. 17535func_dirname () 17536{ 17537 # Extract subdirectory from the argument. 17538 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 17539 if test "X$func_dirname_result" = "X${1}"; then 17540 func_dirname_result="${3}" 17541 else 17542 func_dirname_result="$func_dirname_result${2}" 17543 fi 17544} 17545 17546# func_basename file 17547func_basename () 17548{ 17549 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 17550} 17551 17552 17553# func_stripname prefix suffix name 17554# strip PREFIX and SUFFIX off of NAME. 17555# PREFIX and SUFFIX must not contain globbing or regex special 17556# characters, hashes, percent signs, but SUFFIX may contain a leading 17557# dot (in which case that matches only a dot). 17558# func_strip_suffix prefix name 17559func_stripname () 17560{ 17561 case ${2} in 17562 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 17563 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 17564 esac 17565} 17566 17567# sed scripts: 17568my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 17569my_sed_long_arg='1s/^-[^=]*=//' 17570 17571# func_opt_split 17572func_opt_split () 17573{ 17574 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 17575 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 17576} 17577 17578# func_lo2o object 17579func_lo2o () 17580{ 17581 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 17582} 17583 17584# func_xform libobj-or-source 17585func_xform () 17586{ 17587 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 17588} 17589 17590# func_arith arithmetic-term... 17591func_arith () 17592{ 17593 func_arith_result=`expr "$@"` 17594} 17595 17596# func_len string 17597# STRING may not start with a hyphen. 17598func_len () 17599{ 17600 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 17601} 17602 17603_LT_EOF 17604esac 17605 17606case $lt_shell_append in 17607 yes) 17608 cat << \_LT_EOF >> "$cfgfile" 17609 17610# func_append var value 17611# Append VALUE to the end of shell variable VAR. 17612func_append () 17613{ 17614 eval "$1+=\$2" 17615} 17616_LT_EOF 17617 ;; 17618 *) 17619 cat << \_LT_EOF >> "$cfgfile" 17620 17621# func_append var value 17622# Append VALUE to the end of shell variable VAR. 17623func_append () 17624{ 17625 eval "$1=\$$1\$2" 17626} 17627 17628_LT_EOF 17629 ;; 17630 esac 17631 17632 17633 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 17634 || (rm -f "$cfgfile"; exit 1) 17635 17636 mv -f "$cfgfile" "$ofile" || 17637 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17638 chmod +x "$ofile" 17639 17640 ;; 17641 "gstdint.h":C) 17642if test "$GCC" = yes; then 17643 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h 17644else 17645 echo "/* generated for $CC */" > tmp-stdint.h 17646fi 17647 17648sed 's/^ *//' >> tmp-stdint.h <<EOF 17649 17650 #ifndef GCC_GENERATED_STDINT_H 17651 #define GCC_GENERATED_STDINT_H 1 17652 17653 #include <sys/types.h> 17654EOF 17655 17656if test "$acx_cv_header_stdint" != stdint.h; then 17657 echo "#include <stddef.h>" >> tmp-stdint.h 17658fi 17659if test "$acx_cv_header_stdint" != stddef.h; then 17660 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h 17661fi 17662 17663sed 's/^ *//' >> tmp-stdint.h <<EOF 17664 /* glibc uses these symbols as guards to prevent redefinitions. */ 17665 #ifdef __int8_t_defined 17666 #define _INT8_T 17667 #define _INT16_T 17668 #define _INT32_T 17669 #endif 17670 #ifdef __uint32_t_defined 17671 #define _UINT32_T 17672 #endif 17673 17674EOF 17675 17676# ----------------- done header, emit basic int types ------------- 17677if test "$acx_cv_header_stdint" = stddef.h; then 17678 sed 's/^ *//' >> tmp-stdint.h <<EOF 17679 17680 #ifndef _UINT8_T 17681 #define _UINT8_T 17682 #ifndef __uint8_t_defined 17683 #define __uint8_t_defined 17684 #ifndef uint8_t 17685 typedef unsigned $acx_cv_type_int8_t uint8_t; 17686 #endif 17687 #endif 17688 #endif 17689 17690 #ifndef _UINT16_T 17691 #define _UINT16_T 17692 #ifndef __uint16_t_defined 17693 #define __uint16_t_defined 17694 #ifndef uint16_t 17695 typedef unsigned $acx_cv_type_int16_t uint16_t; 17696 #endif 17697 #endif 17698 #endif 17699 17700 #ifndef _UINT32_T 17701 #define _UINT32_T 17702 #ifndef __uint32_t_defined 17703 #define __uint32_t_defined 17704 #ifndef uint32_t 17705 typedef unsigned $acx_cv_type_int32_t uint32_t; 17706 #endif 17707 #endif 17708 #endif 17709 17710 #ifndef _INT8_T 17711 #define _INT8_T 17712 #ifndef __int8_t_defined 17713 #define __int8_t_defined 17714 #ifndef int8_t 17715 typedef $acx_cv_type_int8_t int8_t; 17716 #endif 17717 #endif 17718 #endif 17719 17720 #ifndef _INT16_T 17721 #define _INT16_T 17722 #ifndef __int16_t_defined 17723 #define __int16_t_defined 17724 #ifndef int16_t 17725 typedef $acx_cv_type_int16_t int16_t; 17726 #endif 17727 #endif 17728 #endif 17729 17730 #ifndef _INT32_T 17731 #define _INT32_T 17732 #ifndef __int32_t_defined 17733 #define __int32_t_defined 17734 #ifndef int32_t 17735 typedef $acx_cv_type_int32_t int32_t; 17736 #endif 17737 #endif 17738 #endif 17739EOF 17740elif test "$ac_cv_type_u_int32_t" = yes; then 17741 sed 's/^ *//' >> tmp-stdint.h <<EOF 17742 17743 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ 17744 #ifndef _INT8_T 17745 #define _INT8_T 17746 #endif 17747 #ifndef _INT16_T 17748 #define _INT16_T 17749 #endif 17750 #ifndef _INT32_T 17751 #define _INT32_T 17752 #endif 17753 17754 #ifndef _UINT8_T 17755 #define _UINT8_T 17756 #ifndef __uint8_t_defined 17757 #define __uint8_t_defined 17758 #ifndef uint8_t 17759 typedef u_int8_t uint8_t; 17760 #endif 17761 #endif 17762 #endif 17763 17764 #ifndef _UINT16_T 17765 #define _UINT16_T 17766 #ifndef __uint16_t_defined 17767 #define __uint16_t_defined 17768 #ifndef uint16_t 17769 typedef u_int16_t uint16_t; 17770 #endif 17771 #endif 17772 #endif 17773 17774 #ifndef _UINT32_T 17775 #define _UINT32_T 17776 #ifndef __uint32_t_defined 17777 #define __uint32_t_defined 17778 #ifndef uint32_t 17779 typedef u_int32_t uint32_t; 17780 #endif 17781 #endif 17782 #endif 17783EOF 17784else 17785 sed 's/^ *//' >> tmp-stdint.h <<EOF 17786 17787 /* Some systems have guard macros to prevent redefinitions, define them. */ 17788 #ifndef _INT8_T 17789 #define _INT8_T 17790 #endif 17791 #ifndef _INT16_T 17792 #define _INT16_T 17793 #endif 17794 #ifndef _INT32_T 17795 #define _INT32_T 17796 #endif 17797 #ifndef _UINT8_T 17798 #define _UINT8_T 17799 #endif 17800 #ifndef _UINT16_T 17801 #define _UINT16_T 17802 #endif 17803 #ifndef _UINT32_T 17804 #define _UINT32_T 17805 #endif 17806EOF 17807fi 17808 17809# ------------- done basic int types, emit int64_t types ------------ 17810if test "$ac_cv_type_uint64_t" = yes; then 17811 sed 's/^ *//' >> tmp-stdint.h <<EOF 17812 17813 /* system headers have good uint64_t and int64_t */ 17814 #ifndef _INT64_T 17815 #define _INT64_T 17816 #endif 17817 #ifndef _UINT64_T 17818 #define _UINT64_T 17819 #endif 17820EOF 17821elif test "$ac_cv_type_u_int64_t" = yes; then 17822 sed 's/^ *//' >> tmp-stdint.h <<EOF 17823 17824 /* system headers have an u_int64_t (and int64_t) */ 17825 #ifndef _INT64_T 17826 #define _INT64_T 17827 #endif 17828 #ifndef _UINT64_T 17829 #define _UINT64_T 17830 #ifndef __uint64_t_defined 17831 #define __uint64_t_defined 17832 #ifndef uint64_t 17833 typedef u_int64_t uint64_t; 17834 #endif 17835 #endif 17836 #endif 17837EOF 17838elif test -n "$acx_cv_type_int64_t"; then 17839 sed 's/^ *//' >> tmp-stdint.h <<EOF 17840 17841 /* architecture has a 64-bit type, $acx_cv_type_int64_t */ 17842 #ifndef _INT64_T 17843 #define _INT64_T 17844 #ifndef int64_t 17845 typedef $acx_cv_type_int64_t int64_t; 17846 #endif 17847 #endif 17848 #ifndef _UINT64_T 17849 #define _UINT64_T 17850 #ifndef __uint64_t_defined 17851 #define __uint64_t_defined 17852 #ifndef uint64_t 17853 typedef unsigned $acx_cv_type_int64_t uint64_t; 17854 #endif 17855 #endif 17856 #endif 17857EOF 17858else 17859 sed 's/^ *//' >> tmp-stdint.h <<EOF 17860 17861 /* some common heuristics for int64_t, using compiler-specific tests */ 17862 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L 17863 #ifndef _INT64_T 17864 #define _INT64_T 17865 #ifndef __int64_t_defined 17866 #ifndef int64_t 17867 typedef long long int64_t; 17868 #endif 17869 #endif 17870 #endif 17871 #ifndef _UINT64_T 17872 #define _UINT64_T 17873 #ifndef uint64_t 17874 typedef unsigned long long uint64_t; 17875 #endif 17876 #endif 17877 17878 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 17879 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and 17880 does not implement __extension__. But that compiler doesn't define 17881 __GNUC_MINOR__. */ 17882 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) 17883 # define __extension__ 17884 # endif 17885 17886 # ifndef _INT64_T 17887 # define _INT64_T 17888 # ifndef int64_t 17889 __extension__ typedef long long int64_t; 17890 # endif 17891 # endif 17892 # ifndef _UINT64_T 17893 # define _UINT64_T 17894 # ifndef uint64_t 17895 __extension__ typedef unsigned long long uint64_t; 17896 # endif 17897 # endif 17898 17899 #elif !defined __STRICT_ANSI__ 17900 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ 17901 17902 # ifndef _INT64_T 17903 # define _INT64_T 17904 # ifndef int64_t 17905 typedef __int64 int64_t; 17906 # endif 17907 # endif 17908 # ifndef _UINT64_T 17909 # define _UINT64_T 17910 # ifndef uint64_t 17911 typedef unsigned __int64 uint64_t; 17912 # endif 17913 # endif 17914 # endif /* compiler */ 17915 17916 #endif /* ANSI version */ 17917EOF 17918fi 17919 17920# ------------- done int64_t types, emit intptr types ------------ 17921if test "$ac_cv_type_uintptr_t" != yes; then 17922 sed 's/^ *//' >> tmp-stdint.h <<EOF 17923 17924 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ 17925 #ifndef __uintptr_t_defined 17926 #ifndef uintptr_t 17927 typedef u$acx_cv_type_intptr_t uintptr_t; 17928 #endif 17929 #endif 17930 #ifndef __intptr_t_defined 17931 #ifndef intptr_t 17932 typedef $acx_cv_type_intptr_t intptr_t; 17933 #endif 17934 #endif 17935EOF 17936fi 17937 17938# ------------- done intptr types, emit int_least types ------------ 17939if test "$ac_cv_type_int_least32_t" != yes; then 17940 sed 's/^ *//' >> tmp-stdint.h <<EOF 17941 17942 /* Define int_least types */ 17943 typedef int8_t int_least8_t; 17944 typedef int16_t int_least16_t; 17945 typedef int32_t int_least32_t; 17946 #ifdef _INT64_T 17947 typedef int64_t int_least64_t; 17948 #endif 17949 17950 typedef uint8_t uint_least8_t; 17951 typedef uint16_t uint_least16_t; 17952 typedef uint32_t uint_least32_t; 17953 #ifdef _UINT64_T 17954 typedef uint64_t uint_least64_t; 17955 #endif 17956EOF 17957fi 17958 17959# ------------- done intptr types, emit int_fast types ------------ 17960if test "$ac_cv_type_int_fast32_t" != yes; then 17961 sed 's/^ *//' >> tmp-stdint.h <<EOF 17962 17963 /* Define int_fast types. short is often slow */ 17964 typedef int8_t int_fast8_t; 17965 typedef int int_fast16_t; 17966 typedef int32_t int_fast32_t; 17967 #ifdef _INT64_T 17968 typedef int64_t int_fast64_t; 17969 #endif 17970 17971 typedef uint8_t uint_fast8_t; 17972 typedef unsigned int uint_fast16_t; 17973 typedef uint32_t uint_fast32_t; 17974 #ifdef _UINT64_T 17975 typedef uint64_t uint_fast64_t; 17976 #endif 17977EOF 17978fi 17979 17980if test "$ac_cv_type_uintmax_t" != yes; then 17981 sed 's/^ *//' >> tmp-stdint.h <<EOF 17982 17983 /* Define intmax based on what we found */ 17984 #ifndef intmax_t 17985 #ifdef _INT64_T 17986 typedef int64_t intmax_t; 17987 #else 17988 typedef long intmax_t; 17989 #endif 17990 #endif 17991 #ifndef uintmax_t 17992 #ifdef _UINT64_T 17993 typedef uint64_t uintmax_t; 17994 #else 17995 typedef unsigned long uintmax_t; 17996 #endif 17997 #endif 17998EOF 17999fi 18000 18001sed 's/^ *//' >> tmp-stdint.h <<EOF 18002 18003 #endif /* GCC_GENERATED_STDINT_H */ 18004EOF 18005 18006if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then 18007 rm -f tmp-stdint.h 18008else 18009 mv -f tmp-stdint.h gstdint.h 18010fi 18011 18012 ;; 18013 18014 esac 18015done # for ac_tag 18016 18017 18018as_fn_exit 0 18019_ACEOF 18020ac_clean_files=$ac_clean_files_save 18021 18022test $ac_write_fail = 0 || 18023 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 18024 18025 18026# configure is writing to config.log, and then calls config.status. 18027# config.status does its own redirection, appending to config.log. 18028# Unfortunately, on DOS this fails, as config.log is still kept open 18029# by configure, so config.status won't be able to write to it; its 18030# output is simply discarded. So we exec the FD to /dev/null, 18031# effectively closing config.log, so it can be properly (re)opened and 18032# appended to by config.status. When coming back to configure, we 18033# need to make the FD available again. 18034if test "$no_create" != yes; then 18035 ac_cs_success=: 18036 ac_config_status_args= 18037 test "$silent" = yes && 18038 ac_config_status_args="$ac_config_status_args --quiet" 18039 exec 5>/dev/null 18040 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18041 exec 5>>config.log 18042 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18043 # would make configure fail if this is the last instruction. 18044 $ac_cs_success || as_fn_exit $? 18045fi 18046if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18048$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18049fi 18050 18051