1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.64 for package-unused version-unused. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 7# Foundation, Inc. 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90case $0 in #(( 91 *[\\/]* ) as_myself=$0 ;; 92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 93for as_dir in $PATH 94do 95 IFS=$as_save_IFS 96 test -z "$as_dir" && as_dir=. 97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 98 done 99IFS=$as_save_IFS 100 101 ;; 102esac 103# We did not find ourselves, most probably we were run as `sh COMMAND' 104# in which case we are not to be found in the path. 105if test "x$as_myself" = x; then 106 as_myself=$0 107fi 108if test ! -f "$as_myself"; then 109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 110 exit 1 111fi 112 113# Unset variables that we do not need and which cause bugs (e.g. in 114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 115# suppresses any "Segmentation fault" message there. '((' could 116# trigger a bug in pdksh 5.2.14. 117for as_var in BASH_ENV ENV MAIL MAILPATH 118do eval test x\${$as_var+set} = xset \ 119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 120done 121PS1='$ ' 122PS2='> ' 123PS4='+ ' 124 125# NLS nuisances. 126LC_ALL=C 127export LC_ALL 128LANGUAGE=C 129export LANGUAGE 130 131# CDPATH. 132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 133 134if test "x$CONFIG_SHELL" = x; then 135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 136 emulate sh 137 NULLCMD=: 138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 139 # is contrary to our usage. Disable this feature. 140 alias -g '\${1+\"\$@\"}'='\"\$@\"' 141 setopt NO_GLOB_SUBST 142else 143 case \`(set -o) 2>/dev/null\` in #( 144 *posix*) : 145 set -o posix ;; #( 146 *) : 147 ;; 148esac 149fi 150" 151 as_required="as_fn_return () { (exit \$1); } 152as_fn_success () { as_fn_return 0; } 153as_fn_failure () { as_fn_return 1; } 154as_fn_ret_success () { return 0; } 155as_fn_ret_failure () { return 1; } 156 157exitcode=0 158as_fn_success || { exitcode=1; echo as_fn_success failed.; } 159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 163 164else 165 exitcode=1; echo positional parameters were not saved. 166fi 167test x\$exitcode = x0 || exit 1" 168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 172test \$(( 1 + 1 )) = 2 || exit 1 173 174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 178 PATH=/empty FPATH=/empty; export PATH FPATH 179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 181 if (eval "$as_required") 2>/dev/null; then : 182 as_have_required=yes 183else 184 as_have_required=no 185fi 186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 187 188else 189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 190as_found=false 191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 192do 193 IFS=$as_save_IFS 194 test -z "$as_dir" && as_dir=. 195 as_found=: 196 case $as_dir in #( 197 /*) 198 for as_base in sh bash ksh sh5; do 199 # Try only shells that exist, to save several forks. 200 as_shell=$as_dir/$as_base 201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 203 CONFIG_SHELL=$as_shell as_have_required=yes 204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 205 break 2 206fi 207fi 208 done;; 209 esac 210 as_found=false 211done 212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 214 CONFIG_SHELL=$SHELL as_have_required=yes 215fi; } 216IFS=$as_save_IFS 217 218 219 if test "x$CONFIG_SHELL" != x; then : 220 # We cannot yet assume a decent shell, so we have to provide a 221 # neutralization value for shells without unset; and this also 222 # works around shells that cannot unset nonexistent variables. 223 BASH_ENV=/dev/null 224 ENV=/dev/null 225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 226 export CONFIG_SHELL 227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 228fi 229 230 if test x$as_have_required = xno; then : 231 $as_echo "$0: This script requires a shell more modern than all" 232 $as_echo "$0: the shells that I found on your system." 233 if test x${ZSH_VERSION+set} = xset ; then 234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 235 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 236 else 237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 238$0: including any error possibly output before this 239$0: message. Then install a modern shell, or manually run 240$0: the script under such a shell if you do have one." 241 fi 242 exit 1 243fi 244fi 245fi 246SHELL=${CONFIG_SHELL-/bin/sh} 247export SHELL 248# Unset more variables known to interfere with behavior of common tools. 249CLICOLOR_FORCE= GREP_OPTIONS= 250unset CLICOLOR_FORCE GREP_OPTIONS 251 252## --------------------- ## 253## M4sh Shell Functions. ## 254## --------------------- ## 255# as_fn_unset VAR 256# --------------- 257# Portably unset VAR. 258as_fn_unset () 259{ 260 { eval $1=; unset $1;} 261} 262as_unset=as_fn_unset 263 264# as_fn_set_status STATUS 265# ----------------------- 266# Set $? to STATUS, without forking. 267as_fn_set_status () 268{ 269 return $1 270} # as_fn_set_status 271 272# as_fn_exit STATUS 273# ----------------- 274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 275as_fn_exit () 276{ 277 set +e 278 as_fn_set_status $1 279 exit $1 280} # as_fn_exit 281 282# as_fn_mkdir_p 283# ------------- 284# Create "$as_dir" as a directory, including parents if necessary. 285as_fn_mkdir_p () 286{ 287 288 case $as_dir in #( 289 -*) as_dir=./$as_dir;; 290 esac 291 test -d "$as_dir" || eval $as_mkdir_p || { 292 as_dirs= 293 while :; do 294 case $as_dir in #( 295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 296 *) as_qdir=$as_dir;; 297 esac 298 as_dirs="'$as_qdir' $as_dirs" 299 as_dir=`$as_dirname -- "$as_dir" || 300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 301 X"$as_dir" : 'X\(//\)[^/]' \| \ 302 X"$as_dir" : 'X\(//\)$' \| \ 303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 304$as_echo X"$as_dir" | 305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 306 s//\1/ 307 q 308 } 309 /^X\(\/\/\)[^/].*/{ 310 s//\1/ 311 q 312 } 313 /^X\(\/\/\)$/{ 314 s//\1/ 315 q 316 } 317 /^X\(\/\).*/{ 318 s//\1/ 319 q 320 } 321 s/.*/./; q'` 322 test -d "$as_dir" && break 323 done 324 test -z "$as_dirs" || eval "mkdir $as_dirs" 325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 326 327 328} # as_fn_mkdir_p 329# as_fn_append VAR VALUE 330# ---------------------- 331# Append the text in VALUE to the end of the definition contained in VAR. Take 332# advantage of any shell optimizations that allow amortized linear growth over 333# repeated appends, instead of the typical quadratic growth present in naive 334# implementations. 335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 336 eval 'as_fn_append () 337 { 338 eval $1+=\$2 339 }' 340else 341 as_fn_append () 342 { 343 eval $1=\$$1\$2 344 } 345fi # as_fn_append 346 347# as_fn_arith ARG... 348# ------------------ 349# Perform arithmetic evaluation on the ARGs, and store the result in the 350# global $as_val. Take advantage of shells that can avoid forks. The arguments 351# must be portable across $(()) and expr. 352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 353 eval 'as_fn_arith () 354 { 355 as_val=$(( $* )) 356 }' 357else 358 as_fn_arith () 359 { 360 as_val=`expr "$@" || test $? -eq 1` 361 } 362fi # as_fn_arith 363 364 365# as_fn_error ERROR [LINENO LOG_FD] 366# --------------------------------- 367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 369# script with status $?, using 1 if that was 0. 370as_fn_error () 371{ 372 as_status=$?; test $as_status -eq 0 && as_status=1 373 if test "$3"; then 374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 376 fi 377 $as_echo "$as_me: error: $1" >&2 378 as_fn_exit $as_status 379} # as_fn_error 380 381if expr a : '\(a\)' >/dev/null 2>&1 && 382 test "X`expr 00001 : '.*\(...\)'`" = X001; then 383 as_expr=expr 384else 385 as_expr=false 386fi 387 388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 389 as_basename=basename 390else 391 as_basename=false 392fi 393 394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 395 as_dirname=dirname 396else 397 as_dirname=false 398fi 399 400as_me=`$as_basename -- "$0" || 401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 402 X"$0" : 'X\(//\)$' \| \ 403 X"$0" : 'X\(/\)' \| . 2>/dev/null || 404$as_echo X/"$0" | 405 sed '/^.*\/\([^/][^/]*\)\/*$/{ 406 s//\1/ 407 q 408 } 409 /^X\/\(\/\/\)$/{ 410 s//\1/ 411 q 412 } 413 /^X\/\(\/\).*/{ 414 s//\1/ 415 q 416 } 417 s/.*/./; q'` 418 419# Avoid depending upon Character Ranges. 420as_cr_letters='abcdefghijklmnopqrstuvwxyz' 421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 422as_cr_Letters=$as_cr_letters$as_cr_LETTERS 423as_cr_digits='0123456789' 424as_cr_alnum=$as_cr_Letters$as_cr_digits 425 426 427 as_lineno_1=$LINENO as_lineno_1a=$LINENO 428 as_lineno_2=$LINENO as_lineno_2a=$LINENO 429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 432 sed -n ' 433 p 434 /[$]LINENO/= 435 ' <$as_myself | 436 sed ' 437 s/[$]LINENO.*/&-/ 438 t lineno 439 b 440 :lineno 441 N 442 :loop 443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 444 t loop 445 s/-\n.*// 446 ' >$as_me.lineno && 447 chmod +x "$as_me.lineno" || 448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 449 450 # Don't try to exec as it changes $[0], causing all sort of problems 451 # (the dirname of $[0] is not the place where we might find the 452 # original and so on. Autoconf is especially sensitive to this). 453 . "./$as_me.lineno" 454 # Exit status is that of the last command. 455 exit 456} 457 458ECHO_C= ECHO_N= ECHO_T= 459case `echo -n x` in #((((( 460-n*) 461 case `echo 'xy\c'` in 462 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 463 xy) ECHO_C='\c';; 464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 465 ECHO_T=' ';; 466 esac;; 467*) 468 ECHO_N='-n';; 469esac 470 471rm -f conf$$ conf$$.exe conf$$.file 472if test -d conf$$.dir; then 473 rm -f conf$$.dir/conf$$.file 474else 475 rm -f conf$$.dir 476 mkdir conf$$.dir 2>/dev/null 477fi 478if (echo >conf$$.file) 2>/dev/null; then 479 if ln -s conf$$.file conf$$ 2>/dev/null; then 480 as_ln_s='ln -s' 481 # ... but there are two gotchas: 482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 484 # In both cases, we have to default to `cp -p'. 485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 486 as_ln_s='cp -p' 487 elif ln conf$$.file conf$$ 2>/dev/null; then 488 as_ln_s=ln 489 else 490 as_ln_s='cp -p' 491 fi 492else 493 as_ln_s='cp -p' 494fi 495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 496rmdir conf$$.dir 2>/dev/null 497 498if mkdir -p . 2>/dev/null; then 499 as_mkdir_p='mkdir -p "$as_dir"' 500else 501 test -d ./-p && rmdir ./-p 502 as_mkdir_p=false 503fi 504 505if test -x / >/dev/null 2>&1; then 506 as_test_x='test -x' 507else 508 if ls -dL / >/dev/null 2>&1; then 509 as_ls_L_option=L 510 else 511 as_ls_L_option= 512 fi 513 as_test_x=' 514 eval sh -c '\'' 515 if test -d "$1"; then 516 test -d "$1/."; 517 else 518 case $1 in #( 519 -*)set "./$1";; 520 esac; 521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 522 ???[sx]*):;;*)false;;esac;fi 523 '\'' sh 524 ' 525fi 526as_executable_p=$as_test_x 527 528# Sed expression to map a string onto a valid CPP name. 529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 530 531# Sed expression to map a string onto a valid variable name. 532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 533 534SHELL=${CONFIG_SHELL-/bin/sh} 535 536 537exec 7<&0 </dev/null 6>&1 538 539# Name of the host. 540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 541# so uname gets run too. 542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 543 544# 545# Initializations. 546# 547ac_default_prefix=/usr/local 548ac_clean_files= 549ac_config_libobj_dir=. 550LIBOBJS= 551cross_compiling=no 552subdirs= 553MFLAGS= 554MAKEFLAGS= 555 556# Identity of this package. 557PACKAGE_NAME='package-unused' 558PACKAGE_TARNAME='libbacktrace' 559PACKAGE_VERSION='version-unused' 560PACKAGE_STRING='package-unused version-unused' 561PACKAGE_BUGREPORT='' 562PACKAGE_URL='' 563 564ac_unique_file="backtrace.h" 565# Factoring default headers for most tests. 566ac_includes_default="\ 567#include <stdio.h> 568#ifdef HAVE_SYS_TYPES_H 569# include <sys/types.h> 570#endif 571#ifdef HAVE_SYS_STAT_H 572# include <sys/stat.h> 573#endif 574#ifdef STDC_HEADERS 575# include <stdlib.h> 576# include <stddef.h> 577#else 578# ifdef HAVE_STDLIB_H 579# include <stdlib.h> 580# endif 581#endif 582#ifdef HAVE_STRING_H 583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 584# include <memory.h> 585# endif 586# include <string.h> 587#endif 588#ifdef HAVE_STRINGS_H 589# include <strings.h> 590#endif 591#ifdef HAVE_INTTYPES_H 592# include <inttypes.h> 593#endif 594#ifdef HAVE_STDINT_H 595# include <stdint.h> 596#endif 597#ifdef HAVE_UNISTD_H 598# include <unistd.h> 599#endif" 600 601ac_subst_vars='am__EXEEXT_FALSE 602am__EXEEXT_TRUE 603LTLIBOBJS 604LIBOBJS 605NATIVE_FALSE 606NATIVE_TRUE 607BACKTRACE_USES_MALLOC 608ALLOC_FILE 609VIEW_FILE 610BACKTRACE_SUPPORTED 611FORMAT_FILE 612BACKTRACE_SUPPORTS_THREADS 613PIC_FLAG 614WARN_FLAGS 615EXTRA_FLAGS 616BACKTRACE_FILE 617multi_basedir 618OTOOL64 619OTOOL 620LIPO 621NMEDIT 622DSYMUTIL 623AR 624OBJDUMP 625LN_S 626NM 627ac_ct_DUMPBIN 628DUMPBIN 629LD 630FGREP 631SED 632LIBTOOL 633RANLIB 634MAINT 635MAINTAINER_MODE_FALSE 636MAINTAINER_MODE_TRUE 637am__untar 638am__tar 639AMTAR 640am__leading_dot 641SET_MAKE 642AWK 643mkdir_p 644MKDIR_P 645INSTALL_STRIP_PROGRAM 646STRIP 647install_sh 648MAKEINFO 649AUTOHEADER 650AUTOMAKE 651AUTOCONF 652ACLOCAL 653VERSION 654PACKAGE 655CYGPATH_W 656am__isrc 657INSTALL_DATA 658INSTALL_SCRIPT 659INSTALL_PROGRAM 660libtool_VERSION 661EGREP 662GREP 663CPP 664OBJEXT 665EXEEXT 666ac_ct_CC 667CPPFLAGS 668LDFLAGS 669CFLAGS 670CC 671target_os 672target_vendor 673target_cpu 674target 675host_os 676host_vendor 677host_cpu 678host 679build_os 680build_vendor 681build_cpu 682build 683target_alias 684host_alias 685build_alias 686LIBS 687ECHO_T 688ECHO_N 689ECHO_C 690DEFS 691mandir 692localedir 693libdir 694psdir 695pdfdir 696dvidir 697htmldir 698infodir 699docdir 700oldincludedir 701includedir 702localstatedir 703sharedstatedir 704sysconfdir 705datadir 706datarootdir 707libexecdir 708sbindir 709bindir 710program_transform_name 711prefix 712exec_prefix 713PACKAGE_URL 714PACKAGE_BUGREPORT 715PACKAGE_STRING 716PACKAGE_VERSION 717PACKAGE_TARNAME 718PACKAGE_NAME 719PATH_SEPARATOR 720SHELL' 721ac_subst_files='' 722ac_user_opts=' 723enable_option_checking 724enable_maintainer_mode 725with_target_subdir 726enable_shared 727enable_static 728with_pic 729enable_fast_install 730with_gnu_ld 731enable_libtool_lock 732enable_multilib 733with_system_libunwind 734' 735 ac_precious_vars='build_alias 736host_alias 737target_alias 738CC 739CFLAGS 740LDFLAGS 741LIBS 742CPPFLAGS 743CPP' 744 745 746# Initialize some variables set by options. 747ac_init_help= 748ac_init_version=false 749ac_unrecognized_opts= 750ac_unrecognized_sep= 751# The variables have the same names as the options, with 752# dashes changed to underlines. 753cache_file=/dev/null 754exec_prefix=NONE 755no_create= 756no_recursion= 757prefix=NONE 758program_prefix=NONE 759program_suffix=NONE 760program_transform_name=s,x,x, 761silent= 762site= 763srcdir= 764verbose= 765x_includes=NONE 766x_libraries=NONE 767 768# Installation directory options. 769# These are left unexpanded so users can "make install exec_prefix=/foo" 770# and all the variables that are supposed to be based on exec_prefix 771# by default will actually change. 772# Use braces instead of parens because sh, perl, etc. also accept them. 773# (The list follows the same order as the GNU Coding Standards.) 774bindir='${exec_prefix}/bin' 775sbindir='${exec_prefix}/sbin' 776libexecdir='${exec_prefix}/libexec' 777datarootdir='${prefix}/share' 778datadir='${datarootdir}' 779sysconfdir='${prefix}/etc' 780sharedstatedir='${prefix}/com' 781localstatedir='${prefix}/var' 782includedir='${prefix}/include' 783oldincludedir='/usr/include' 784docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 785infodir='${datarootdir}/info' 786htmldir='${docdir}' 787dvidir='${docdir}' 788pdfdir='${docdir}' 789psdir='${docdir}' 790libdir='${exec_prefix}/lib' 791localedir='${datarootdir}/locale' 792mandir='${datarootdir}/man' 793 794ac_prev= 795ac_dashdash= 796for ac_option 797do 798 # If the previous option needs an argument, assign it. 799 if test -n "$ac_prev"; then 800 eval $ac_prev=\$ac_option 801 ac_prev= 802 continue 803 fi 804 805 case $ac_option in 806 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 807 *) ac_optarg=yes ;; 808 esac 809 810 # Accept the important Cygnus configure options, so we can diagnose typos. 811 812 case $ac_dashdash$ac_option in 813 --) 814 ac_dashdash=yes ;; 815 816 -bindir | --bindir | --bindi | --bind | --bin | --bi) 817 ac_prev=bindir ;; 818 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 819 bindir=$ac_optarg ;; 820 821 -build | --build | --buil | --bui | --bu) 822 ac_prev=build_alias ;; 823 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 824 build_alias=$ac_optarg ;; 825 826 -cache-file | --cache-file | --cache-fil | --cache-fi \ 827 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 828 ac_prev=cache_file ;; 829 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 830 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 831 cache_file=$ac_optarg ;; 832 833 --config-cache | -C) 834 cache_file=config.cache ;; 835 836 -datadir | --datadir | --datadi | --datad) 837 ac_prev=datadir ;; 838 -datadir=* | --datadir=* | --datadi=* | --datad=*) 839 datadir=$ac_optarg ;; 840 841 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 842 | --dataroo | --dataro | --datar) 843 ac_prev=datarootdir ;; 844 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 845 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 846 datarootdir=$ac_optarg ;; 847 848 -disable-* | --disable-*) 849 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 850 # Reject names that are not valid shell variable names. 851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 852 as_fn_error "invalid feature name: $ac_useropt" 853 ac_useropt_orig=$ac_useropt 854 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 855 case $ac_user_opts in 856 *" 857"enable_$ac_useropt" 858"*) ;; 859 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 860 ac_unrecognized_sep=', ';; 861 esac 862 eval enable_$ac_useropt=no ;; 863 864 -docdir | --docdir | --docdi | --doc | --do) 865 ac_prev=docdir ;; 866 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 867 docdir=$ac_optarg ;; 868 869 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 870 ac_prev=dvidir ;; 871 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 872 dvidir=$ac_optarg ;; 873 874 -enable-* | --enable-*) 875 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 876 # Reject names that are not valid shell variable names. 877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 878 as_fn_error "invalid feature name: $ac_useropt" 879 ac_useropt_orig=$ac_useropt 880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 881 case $ac_user_opts in 882 *" 883"enable_$ac_useropt" 884"*) ;; 885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 886 ac_unrecognized_sep=', ';; 887 esac 888 eval enable_$ac_useropt=\$ac_optarg ;; 889 890 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 891 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 892 | --exec | --exe | --ex) 893 ac_prev=exec_prefix ;; 894 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 895 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 896 | --exec=* | --exe=* | --ex=*) 897 exec_prefix=$ac_optarg ;; 898 899 -gas | --gas | --ga | --g) 900 # Obsolete; use --with-gas. 901 with_gas=yes ;; 902 903 -help | --help | --hel | --he | -h) 904 ac_init_help=long ;; 905 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 906 ac_init_help=recursive ;; 907 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 908 ac_init_help=short ;; 909 910 -host | --host | --hos | --ho) 911 ac_prev=host_alias ;; 912 -host=* | --host=* | --hos=* | --ho=*) 913 host_alias=$ac_optarg ;; 914 915 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 916 ac_prev=htmldir ;; 917 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 918 | --ht=*) 919 htmldir=$ac_optarg ;; 920 921 -includedir | --includedir | --includedi | --included | --include \ 922 | --includ | --inclu | --incl | --inc) 923 ac_prev=includedir ;; 924 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 925 | --includ=* | --inclu=* | --incl=* | --inc=*) 926 includedir=$ac_optarg ;; 927 928 -infodir | --infodir | --infodi | --infod | --info | --inf) 929 ac_prev=infodir ;; 930 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 931 infodir=$ac_optarg ;; 932 933 -libdir | --libdir | --libdi | --libd) 934 ac_prev=libdir ;; 935 -libdir=* | --libdir=* | --libdi=* | --libd=*) 936 libdir=$ac_optarg ;; 937 938 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 939 | --libexe | --libex | --libe) 940 ac_prev=libexecdir ;; 941 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 942 | --libexe=* | --libex=* | --libe=*) 943 libexecdir=$ac_optarg ;; 944 945 -localedir | --localedir | --localedi | --localed | --locale) 946 ac_prev=localedir ;; 947 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 948 localedir=$ac_optarg ;; 949 950 -localstatedir | --localstatedir | --localstatedi | --localstated \ 951 | --localstate | --localstat | --localsta | --localst | --locals) 952 ac_prev=localstatedir ;; 953 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 954 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 955 localstatedir=$ac_optarg ;; 956 957 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 958 ac_prev=mandir ;; 959 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 960 mandir=$ac_optarg ;; 961 962 -nfp | --nfp | --nf) 963 # Obsolete; use --without-fp. 964 with_fp=no ;; 965 966 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 967 | --no-cr | --no-c | -n) 968 no_create=yes ;; 969 970 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 971 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 972 no_recursion=yes ;; 973 974 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 975 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 976 | --oldin | --oldi | --old | --ol | --o) 977 ac_prev=oldincludedir ;; 978 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 979 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 980 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 981 oldincludedir=$ac_optarg ;; 982 983 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 984 ac_prev=prefix ;; 985 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 986 prefix=$ac_optarg ;; 987 988 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 989 | --program-pre | --program-pr | --program-p) 990 ac_prev=program_prefix ;; 991 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 992 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 993 program_prefix=$ac_optarg ;; 994 995 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 996 | --program-suf | --program-su | --program-s) 997 ac_prev=program_suffix ;; 998 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 999 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1000 program_suffix=$ac_optarg ;; 1001 1002 -program-transform-name | --program-transform-name \ 1003 | --program-transform-nam | --program-transform-na \ 1004 | --program-transform-n | --program-transform- \ 1005 | --program-transform | --program-transfor \ 1006 | --program-transfo | --program-transf \ 1007 | --program-trans | --program-tran \ 1008 | --progr-tra | --program-tr | --program-t) 1009 ac_prev=program_transform_name ;; 1010 -program-transform-name=* | --program-transform-name=* \ 1011 | --program-transform-nam=* | --program-transform-na=* \ 1012 | --program-transform-n=* | --program-transform-=* \ 1013 | --program-transform=* | --program-transfor=* \ 1014 | --program-transfo=* | --program-transf=* \ 1015 | --program-trans=* | --program-tran=* \ 1016 | --progr-tra=* | --program-tr=* | --program-t=*) 1017 program_transform_name=$ac_optarg ;; 1018 1019 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1020 ac_prev=pdfdir ;; 1021 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1022 pdfdir=$ac_optarg ;; 1023 1024 -psdir | --psdir | --psdi | --psd | --ps) 1025 ac_prev=psdir ;; 1026 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1027 psdir=$ac_optarg ;; 1028 1029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1030 | -silent | --silent | --silen | --sile | --sil) 1031 silent=yes ;; 1032 1033 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1034 ac_prev=sbindir ;; 1035 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1036 | --sbi=* | --sb=*) 1037 sbindir=$ac_optarg ;; 1038 1039 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1040 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1041 | --sharedst | --shareds | --shared | --share | --shar \ 1042 | --sha | --sh) 1043 ac_prev=sharedstatedir ;; 1044 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1045 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1046 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1047 | --sha=* | --sh=*) 1048 sharedstatedir=$ac_optarg ;; 1049 1050 -site | --site | --sit) 1051 ac_prev=site ;; 1052 -site=* | --site=* | --sit=*) 1053 site=$ac_optarg ;; 1054 1055 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1056 ac_prev=srcdir ;; 1057 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1058 srcdir=$ac_optarg ;; 1059 1060 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1061 | --syscon | --sysco | --sysc | --sys | --sy) 1062 ac_prev=sysconfdir ;; 1063 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1064 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1065 sysconfdir=$ac_optarg ;; 1066 1067 -target | --target | --targe | --targ | --tar | --ta | --t) 1068 ac_prev=target_alias ;; 1069 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1070 target_alias=$ac_optarg ;; 1071 1072 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1073 verbose=yes ;; 1074 1075 -version | --version | --versio | --versi | --vers | -V) 1076 ac_init_version=: ;; 1077 1078 -with-* | --with-*) 1079 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1080 # Reject names that are not valid shell variable names. 1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1082 as_fn_error "invalid package name: $ac_useropt" 1083 ac_useropt_orig=$ac_useropt 1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1085 case $ac_user_opts in 1086 *" 1087"with_$ac_useropt" 1088"*) ;; 1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1090 ac_unrecognized_sep=', ';; 1091 esac 1092 eval with_$ac_useropt=\$ac_optarg ;; 1093 1094 -without-* | --without-*) 1095 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1096 # Reject names that are not valid shell variable names. 1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1098 as_fn_error "invalid package name: $ac_useropt" 1099 ac_useropt_orig=$ac_useropt 1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1101 case $ac_user_opts in 1102 *" 1103"with_$ac_useropt" 1104"*) ;; 1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1106 ac_unrecognized_sep=', ';; 1107 esac 1108 eval with_$ac_useropt=no ;; 1109 1110 --x) 1111 # Obsolete; use --with-x. 1112 with_x=yes ;; 1113 1114 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1115 | --x-incl | --x-inc | --x-in | --x-i) 1116 ac_prev=x_includes ;; 1117 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1118 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1119 x_includes=$ac_optarg ;; 1120 1121 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1122 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1123 ac_prev=x_libraries ;; 1124 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1125 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1126 x_libraries=$ac_optarg ;; 1127 1128 -*) as_fn_error "unrecognized option: \`$ac_option' 1129Try \`$0 --help' for more information." 1130 ;; 1131 1132 *=*) 1133 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1134 # Reject names that are not valid shell variable names. 1135 case $ac_envvar in #( 1136 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1137 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1138 esac 1139 eval $ac_envvar=\$ac_optarg 1140 export $ac_envvar ;; 1141 1142 *) 1143 # FIXME: should be removed in autoconf 3.0. 1144 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1145 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1146 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1147 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1148 ;; 1149 1150 esac 1151done 1152 1153if test -n "$ac_prev"; then 1154 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1155 as_fn_error "missing argument to $ac_option" 1156fi 1157 1158if test -n "$ac_unrecognized_opts"; then 1159 case $enable_option_checking in 1160 no) ;; 1161 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1162 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1163 esac 1164fi 1165 1166# Check all directory arguments for consistency. 1167for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1168 datadir sysconfdir sharedstatedir localstatedir includedir \ 1169 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1170 libdir localedir mandir 1171do 1172 eval ac_val=\$$ac_var 1173 # Remove trailing slashes. 1174 case $ac_val in 1175 */ ) 1176 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1177 eval $ac_var=\$ac_val;; 1178 esac 1179 # Be sure to have absolute directory names. 1180 case $ac_val in 1181 [\\/$]* | ?:[\\/]* ) continue;; 1182 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1183 esac 1184 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1185done 1186 1187# There might be people who depend on the old broken behavior: `$host' 1188# used to hold the argument of --host etc. 1189# FIXME: To remove some day. 1190build=$build_alias 1191host=$host_alias 1192target=$target_alias 1193 1194# FIXME: To remove some day. 1195if test "x$host_alias" != x; then 1196 if test "x$build_alias" = x; then 1197 cross_compiling=maybe 1198 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1199 If a cross compiler is detected then cross compile mode will be used." >&2 1200 elif test "x$build_alias" != "x$host_alias"; then 1201 cross_compiling=yes 1202 fi 1203fi 1204 1205ac_tool_prefix= 1206test -n "$host_alias" && ac_tool_prefix=$host_alias- 1207 1208test "$silent" = yes && exec 6>/dev/null 1209 1210 1211ac_pwd=`pwd` && test -n "$ac_pwd" && 1212ac_ls_di=`ls -di .` && 1213ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1214 as_fn_error "working directory cannot be determined" 1215test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1216 as_fn_error "pwd does not report name of working directory" 1217 1218 1219# Find the source files, if location was not specified. 1220if test -z "$srcdir"; then 1221 ac_srcdir_defaulted=yes 1222 # Try the directory containing this script, then the parent directory. 1223 ac_confdir=`$as_dirname -- "$as_myself" || 1224$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1225 X"$as_myself" : 'X\(//\)[^/]' \| \ 1226 X"$as_myself" : 'X\(//\)$' \| \ 1227 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1228$as_echo X"$as_myself" | 1229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1230 s//\1/ 1231 q 1232 } 1233 /^X\(\/\/\)[^/].*/{ 1234 s//\1/ 1235 q 1236 } 1237 /^X\(\/\/\)$/{ 1238 s//\1/ 1239 q 1240 } 1241 /^X\(\/\).*/{ 1242 s//\1/ 1243 q 1244 } 1245 s/.*/./; q'` 1246 srcdir=$ac_confdir 1247 if test ! -r "$srcdir/$ac_unique_file"; then 1248 srcdir=.. 1249 fi 1250else 1251 ac_srcdir_defaulted=no 1252fi 1253if test ! -r "$srcdir/$ac_unique_file"; then 1254 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1255 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1256fi 1257ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1258ac_abs_confdir=`( 1259 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1260 pwd)` 1261# When building in place, set srcdir=. 1262if test "$ac_abs_confdir" = "$ac_pwd"; then 1263 srcdir=. 1264fi 1265# Remove unnecessary trailing slashes from srcdir. 1266# Double slashes in file names in object file debugging info 1267# mess up M-x gdb in Emacs. 1268case $srcdir in 1269*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1270esac 1271for ac_var in $ac_precious_vars; do 1272 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1273 eval ac_env_${ac_var}_value=\$${ac_var} 1274 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1275 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1276done 1277 1278# 1279# Report the --help message. 1280# 1281if test "$ac_init_help" = "long"; then 1282 # Omit some internal or obsolete options to make the list less imposing. 1283 # This message is too long to be a string in the A/UX 3.1 sh. 1284 cat <<_ACEOF 1285\`configure' configures package-unused version-unused to adapt to many kinds of systems. 1286 1287Usage: $0 [OPTION]... [VAR=VALUE]... 1288 1289To assign environment variables (e.g., CC, CFLAGS...), specify them as 1290VAR=VALUE. See below for descriptions of some of the useful variables. 1291 1292Defaults for the options are specified in brackets. 1293 1294Configuration: 1295 -h, --help display this help and exit 1296 --help=short display options specific to this package 1297 --help=recursive display the short help of all the included packages 1298 -V, --version display version information and exit 1299 -q, --quiet, --silent do not print \`checking...' messages 1300 --cache-file=FILE cache test results in FILE [disabled] 1301 -C, --config-cache alias for \`--cache-file=config.cache' 1302 -n, --no-create do not create output files 1303 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1304 1305Installation directories: 1306 --prefix=PREFIX install architecture-independent files in PREFIX 1307 [$ac_default_prefix] 1308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1309 [PREFIX] 1310 1311By default, \`make install' will install all the files in 1312\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1313an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1314for instance \`--prefix=\$HOME'. 1315 1316For better control, use the options below. 1317 1318Fine tuning of the installation directories: 1319 --bindir=DIR user executables [EPREFIX/bin] 1320 --sbindir=DIR system admin executables [EPREFIX/sbin] 1321 --libexecdir=DIR program executables [EPREFIX/libexec] 1322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1324 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1325 --libdir=DIR object code libraries [EPREFIX/lib] 1326 --includedir=DIR C header files [PREFIX/include] 1327 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1328 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1329 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1330 --infodir=DIR info documentation [DATAROOTDIR/info] 1331 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1332 --mandir=DIR man documentation [DATAROOTDIR/man] 1333 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace] 1334 --htmldir=DIR html documentation [DOCDIR] 1335 --dvidir=DIR dvi documentation [DOCDIR] 1336 --pdfdir=DIR pdf documentation [DOCDIR] 1337 --psdir=DIR ps documentation [DOCDIR] 1338_ACEOF 1339 1340 cat <<\_ACEOF 1341 1342Program names: 1343 --program-prefix=PREFIX prepend PREFIX to installed program names 1344 --program-suffix=SUFFIX append SUFFIX to installed program names 1345 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1346 1347System types: 1348 --build=BUILD configure for building on BUILD [guessed] 1349 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1350 --target=TARGET configure for building compilers for TARGET [HOST] 1351_ACEOF 1352fi 1353 1354if test -n "$ac_init_help"; then 1355 case $ac_init_help in 1356 short | recursive ) echo "Configuration of package-unused version-unused:";; 1357 esac 1358 cat <<\_ACEOF 1359 1360Optional Features: 1361 --disable-option-checking ignore unrecognized --enable/--with options 1362 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1363 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1364 --enable-maintainer-mode enable make rules and dependencies not useful 1365 (and sometimes confusing) to the casual installer 1366 --enable-shared[=PKGS] build shared libraries [default=no] 1367 --enable-static[=PKGS] build static libraries [default=yes] 1368 --enable-fast-install[=PKGS] 1369 optimize for fast installation [default=yes] 1370 --disable-libtool-lock avoid locking (might break parallel builds) 1371 --enable-multilib build many library versions (default) 1372 1373Optional Packages: 1374 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1375 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1376 --with-target-subdir=SUBDIR Configuring in a subdirectory for target 1377 --with-pic try to use only PIC/non-PIC objects [default=use 1378 both] 1379 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1380 --with-system-libunwind use installed libunwind 1381 1382Some influential environment variables: 1383 CC C compiler command 1384 CFLAGS C compiler flags 1385 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1386 nonstandard directory <lib dir> 1387 LIBS libraries to pass to the linker, e.g. -l<library> 1388 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1389 you have headers in a nonstandard directory <include dir> 1390 CPP C preprocessor 1391 1392Use these variables to override the choices made by `configure' or to help 1393it to find libraries and programs with nonstandard names/locations. 1394 1395Report bugs to the package provider. 1396_ACEOF 1397ac_status=$? 1398fi 1399 1400if test "$ac_init_help" = "recursive"; then 1401 # If there are subdirs, report their specific --help. 1402 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1403 test -d "$ac_dir" || 1404 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1405 continue 1406 ac_builddir=. 1407 1408case "$ac_dir" in 1409.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1410*) 1411 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1412 # A ".." for each directory in $ac_dir_suffix. 1413 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1414 case $ac_top_builddir_sub in 1415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1417 esac ;; 1418esac 1419ac_abs_top_builddir=$ac_pwd 1420ac_abs_builddir=$ac_pwd$ac_dir_suffix 1421# for backward compatibility: 1422ac_top_builddir=$ac_top_build_prefix 1423 1424case $srcdir in 1425 .) # We are building in place. 1426 ac_srcdir=. 1427 ac_top_srcdir=$ac_top_builddir_sub 1428 ac_abs_top_srcdir=$ac_pwd ;; 1429 [\\/]* | ?:[\\/]* ) # Absolute name. 1430 ac_srcdir=$srcdir$ac_dir_suffix; 1431 ac_top_srcdir=$srcdir 1432 ac_abs_top_srcdir=$srcdir ;; 1433 *) # Relative name. 1434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1435 ac_top_srcdir=$ac_top_build_prefix$srcdir 1436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1437esac 1438ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1439 1440 cd "$ac_dir" || { ac_status=$?; continue; } 1441 # Check for guested configure. 1442 if test -f "$ac_srcdir/configure.gnu"; then 1443 echo && 1444 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1445 elif test -f "$ac_srcdir/configure"; then 1446 echo && 1447 $SHELL "$ac_srcdir/configure" --help=recursive 1448 else 1449 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1450 fi || ac_status=$? 1451 cd "$ac_pwd" || { ac_status=$?; break; } 1452 done 1453fi 1454 1455test -n "$ac_init_help" && exit $ac_status 1456if $ac_init_version; then 1457 cat <<\_ACEOF 1458package-unused configure version-unused 1459generated by GNU Autoconf 2.64 1460 1461Copyright (C) 2009 Free Software Foundation, Inc. 1462This configure script is free software; the Free Software Foundation 1463gives unlimited permission to copy, distribute and modify it. 1464_ACEOF 1465 exit 1466fi 1467 1468## ------------------------ ## 1469## Autoconf initialization. ## 1470## ------------------------ ## 1471 1472# ac_fn_c_try_compile LINENO 1473# -------------------------- 1474# Try to compile conftest.$ac_ext, and return whether this succeeded. 1475ac_fn_c_try_compile () 1476{ 1477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1478 rm -f conftest.$ac_objext 1479 if { { ac_try="$ac_compile" 1480case "(($ac_try" in 1481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1482 *) ac_try_echo=$ac_try;; 1483esac 1484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1485$as_echo "$ac_try_echo"; } >&5 1486 (eval "$ac_compile") 2>conftest.err 1487 ac_status=$? 1488 if test -s conftest.err; then 1489 grep -v '^ *+' conftest.err >conftest.er1 1490 cat conftest.er1 >&5 1491 mv -f conftest.er1 conftest.err 1492 fi 1493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1494 test $ac_status = 0; } && { 1495 test -z "$ac_c_werror_flag" || 1496 test ! -s conftest.err 1497 } && test -s conftest.$ac_objext; then : 1498 ac_retval=0 1499else 1500 $as_echo "$as_me: failed program was:" >&5 1501sed 's/^/| /' conftest.$ac_ext >&5 1502 1503 ac_retval=1 1504fi 1505 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1506 return $ac_retval 1507 1508} # ac_fn_c_try_compile 1509 1510# ac_fn_c_try_cpp LINENO 1511# ---------------------- 1512# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1513ac_fn_c_try_cpp () 1514{ 1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1516 if { { ac_try="$ac_cpp conftest.$ac_ext" 1517case "(($ac_try" in 1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1519 *) ac_try_echo=$ac_try;; 1520esac 1521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1522$as_echo "$ac_try_echo"; } >&5 1523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1524 ac_status=$? 1525 if test -s conftest.err; then 1526 grep -v '^ *+' conftest.err >conftest.er1 1527 cat conftest.er1 >&5 1528 mv -f conftest.er1 conftest.err 1529 fi 1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1531 test $ac_status = 0; } >/dev/null && { 1532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1533 test ! -s conftest.err 1534 }; then : 1535 ac_retval=0 1536else 1537 $as_echo "$as_me: failed program was:" >&5 1538sed 's/^/| /' conftest.$ac_ext >&5 1539 1540 ac_retval=1 1541fi 1542 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1543 return $ac_retval 1544 1545} # ac_fn_c_try_cpp 1546 1547# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1548# ------------------------------------------------------- 1549# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1550# the include files in INCLUDES and setting the cache variable VAR 1551# accordingly. 1552ac_fn_c_check_header_mongrel () 1553{ 1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1555 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1557$as_echo_n "checking for $2... " >&6; } 1558if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1559 $as_echo_n "(cached) " >&6 1560fi 1561eval ac_res=\$$3 1562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1563$as_echo "$ac_res" >&6; } 1564else 1565 # Is the header compilable? 1566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1567$as_echo_n "checking $2 usability... " >&6; } 1568cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1569/* end confdefs.h. */ 1570$4 1571#include <$2> 1572_ACEOF 1573if ac_fn_c_try_compile "$LINENO"; then : 1574 ac_header_compiler=yes 1575else 1576 ac_header_compiler=no 1577fi 1578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1580$as_echo "$ac_header_compiler" >&6; } 1581 1582# Is the header present? 1583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1584$as_echo_n "checking $2 presence... " >&6; } 1585cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1586/* end confdefs.h. */ 1587#include <$2> 1588_ACEOF 1589if ac_fn_c_try_cpp "$LINENO"; then : 1590 ac_header_preproc=yes 1591else 1592 ac_header_preproc=no 1593fi 1594rm -f conftest.err conftest.$ac_ext 1595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1596$as_echo "$ac_header_preproc" >&6; } 1597 1598# So? What about this header? 1599case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1600 yes:no: ) 1601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1602$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1604$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1605 ;; 1606 no:yes:* ) 1607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1608$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1610$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1612$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1614$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1616$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1617 ;; 1618esac 1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1620$as_echo_n "checking for $2... " >&6; } 1621if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1622 $as_echo_n "(cached) " >&6 1623else 1624 eval "$3=\$ac_header_compiler" 1625fi 1626eval ac_res=\$$3 1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1628$as_echo "$ac_res" >&6; } 1629fi 1630 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1631 1632} # ac_fn_c_check_header_mongrel 1633 1634# ac_fn_c_try_run LINENO 1635# ---------------------- 1636# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1637# that executables *can* be run. 1638ac_fn_c_try_run () 1639{ 1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1641 if { { ac_try="$ac_link" 1642case "(($ac_try" in 1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1644 *) ac_try_echo=$ac_try;; 1645esac 1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1647$as_echo "$ac_try_echo"; } >&5 1648 (eval "$ac_link") 2>&5 1649 ac_status=$? 1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1651 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1652 { { case "(($ac_try" in 1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1654 *) ac_try_echo=$ac_try;; 1655esac 1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1657$as_echo "$ac_try_echo"; } >&5 1658 (eval "$ac_try") 2>&5 1659 ac_status=$? 1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1661 test $ac_status = 0; }; }; then : 1662 ac_retval=0 1663else 1664 $as_echo "$as_me: program exited with status $ac_status" >&5 1665 $as_echo "$as_me: failed program was:" >&5 1666sed 's/^/| /' conftest.$ac_ext >&5 1667 1668 ac_retval=$ac_status 1669fi 1670 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1671 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1672 return $ac_retval 1673 1674} # ac_fn_c_try_run 1675 1676# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1677# ------------------------------------------------------- 1678# Tests whether HEADER exists and can be compiled using the include files in 1679# INCLUDES, setting the cache variable VAR accordingly. 1680ac_fn_c_check_header_compile () 1681{ 1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1684$as_echo_n "checking for $2... " >&6; } 1685if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1686 $as_echo_n "(cached) " >&6 1687else 1688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1689/* end confdefs.h. */ 1690$4 1691#include <$2> 1692_ACEOF 1693if ac_fn_c_try_compile "$LINENO"; then : 1694 eval "$3=yes" 1695else 1696 eval "$3=no" 1697fi 1698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1699fi 1700eval ac_res=\$$3 1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1702$as_echo "$ac_res" >&6; } 1703 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1704 1705} # ac_fn_c_check_header_compile 1706 1707# ac_fn_c_try_link LINENO 1708# ----------------------- 1709# Try to link conftest.$ac_ext, and return whether this succeeded. 1710ac_fn_c_try_link () 1711{ 1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1713 rm -f conftest.$ac_objext conftest$ac_exeext 1714 if { { ac_try="$ac_link" 1715case "(($ac_try" in 1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1717 *) ac_try_echo=$ac_try;; 1718esac 1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1720$as_echo "$ac_try_echo"; } >&5 1721 (eval "$ac_link") 2>conftest.err 1722 ac_status=$? 1723 if test -s conftest.err; then 1724 grep -v '^ *+' conftest.err >conftest.er1 1725 cat conftest.er1 >&5 1726 mv -f conftest.er1 conftest.err 1727 fi 1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1729 test $ac_status = 0; } && { 1730 test -z "$ac_c_werror_flag" || 1731 test ! -s conftest.err 1732 } && test -s conftest$ac_exeext && { 1733 test "$cross_compiling" = yes || 1734 $as_test_x conftest$ac_exeext 1735 }; then : 1736 ac_retval=0 1737else 1738 $as_echo "$as_me: failed program was:" >&5 1739sed 's/^/| /' conftest.$ac_ext >&5 1740 1741 ac_retval=1 1742fi 1743 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1744 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1745 # interfere with the next link command; also delete a directory that is 1746 # left behind by Apple's compiler. We do this before executing the actions. 1747 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1748 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1749 return $ac_retval 1750 1751} # ac_fn_c_try_link 1752 1753# ac_fn_c_check_func LINENO FUNC VAR 1754# ---------------------------------- 1755# Tests whether FUNC exists, setting the cache variable VAR accordingly 1756ac_fn_c_check_func () 1757{ 1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1760$as_echo_n "checking for $2... " >&6; } 1761if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1762 $as_echo_n "(cached) " >&6 1763else 1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1765/* end confdefs.h. */ 1766/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1767 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1768#define $2 innocuous_$2 1769 1770/* System header to define __stub macros and hopefully few prototypes, 1771 which can conflict with char $2 (); below. 1772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1773 <limits.h> exists even on freestanding compilers. */ 1774 1775#ifdef __STDC__ 1776# include <limits.h> 1777#else 1778# include <assert.h> 1779#endif 1780 1781#undef $2 1782 1783/* Override any GCC internal prototype to avoid an error. 1784 Use char because int might match the return type of a GCC 1785 builtin and then its argument prototype would still apply. */ 1786#ifdef __cplusplus 1787extern "C" 1788#endif 1789char $2 (); 1790/* The GNU C library defines this for functions which it implements 1791 to always fail with ENOSYS. Some functions are actually named 1792 something starting with __ and the normal name is an alias. */ 1793#if defined __stub_$2 || defined __stub___$2 1794choke me 1795#endif 1796 1797int 1798main () 1799{ 1800return $2 (); 1801 ; 1802 return 0; 1803} 1804_ACEOF 1805if ac_fn_c_try_link "$LINENO"; then : 1806 eval "$3=yes" 1807else 1808 eval "$3=no" 1809fi 1810rm -f core conftest.err conftest.$ac_objext \ 1811 conftest$ac_exeext conftest.$ac_ext 1812fi 1813eval ac_res=\$$3 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1815$as_echo "$ac_res" >&6; } 1816 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1817 1818} # ac_fn_c_check_func 1819 1820# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1821# ------------------------------------------- 1822# Tests whether TYPE exists after having included INCLUDES, setting cache 1823# variable VAR accordingly. 1824ac_fn_c_check_type () 1825{ 1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1828$as_echo_n "checking for $2... " >&6; } 1829if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1830 $as_echo_n "(cached) " >&6 1831else 1832 eval "$3=no" 1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1834/* end confdefs.h. */ 1835$4 1836int 1837main () 1838{ 1839if (sizeof ($2)) 1840 return 0; 1841 ; 1842 return 0; 1843} 1844_ACEOF 1845if ac_fn_c_try_compile "$LINENO"; then : 1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1847/* end confdefs.h. */ 1848$4 1849int 1850main () 1851{ 1852if (sizeof (($2))) 1853 return 0; 1854 ; 1855 return 0; 1856} 1857_ACEOF 1858if ac_fn_c_try_compile "$LINENO"; then : 1859 1860else 1861 eval "$3=yes" 1862fi 1863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1864fi 1865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1866fi 1867eval ac_res=\$$3 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1869$as_echo "$ac_res" >&6; } 1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1871 1872} # ac_fn_c_check_type 1873 1874# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1875# -------------------------------------------- 1876# Tries to find the compile-time value of EXPR in a program that includes 1877# INCLUDES, setting VAR accordingly. Returns whether the value could be 1878# computed 1879ac_fn_c_compute_int () 1880{ 1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1882 if test "$cross_compiling" = yes; then 1883 # Depending upon the size, compute the lo and hi bounds. 1884cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1885/* end confdefs.h. */ 1886$4 1887int 1888main () 1889{ 1890static int test_array [1 - 2 * !(($2) >= 0)]; 1891test_array [0] = 0 1892 1893 ; 1894 return 0; 1895} 1896_ACEOF 1897if ac_fn_c_try_compile "$LINENO"; then : 1898 ac_lo=0 ac_mid=0 1899 while :; do 1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1901/* end confdefs.h. */ 1902$4 1903int 1904main () 1905{ 1906static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1907test_array [0] = 0 1908 1909 ; 1910 return 0; 1911} 1912_ACEOF 1913if ac_fn_c_try_compile "$LINENO"; then : 1914 ac_hi=$ac_mid; break 1915else 1916 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1917 if test $ac_lo -le $ac_mid; then 1918 ac_lo= ac_hi= 1919 break 1920 fi 1921 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1922fi 1923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1924 done 1925else 1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1927/* end confdefs.h. */ 1928$4 1929int 1930main () 1931{ 1932static int test_array [1 - 2 * !(($2) < 0)]; 1933test_array [0] = 0 1934 1935 ; 1936 return 0; 1937} 1938_ACEOF 1939if ac_fn_c_try_compile "$LINENO"; then : 1940 ac_hi=-1 ac_mid=-1 1941 while :; do 1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1943/* end confdefs.h. */ 1944$4 1945int 1946main () 1947{ 1948static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1949test_array [0] = 0 1950 1951 ; 1952 return 0; 1953} 1954_ACEOF 1955if ac_fn_c_try_compile "$LINENO"; then : 1956 ac_lo=$ac_mid; break 1957else 1958 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1959 if test $ac_mid -le $ac_hi; then 1960 ac_lo= ac_hi= 1961 break 1962 fi 1963 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1964fi 1965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1966 done 1967else 1968 ac_lo= ac_hi= 1969fi 1970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1971fi 1972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1973# Binary search between lo and hi bounds. 1974while test "x$ac_lo" != "x$ac_hi"; do 1975 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1977/* end confdefs.h. */ 1978$4 1979int 1980main () 1981{ 1982static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1983test_array [0] = 0 1984 1985 ; 1986 return 0; 1987} 1988_ACEOF 1989if ac_fn_c_try_compile "$LINENO"; then : 1990 ac_hi=$ac_mid 1991else 1992 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1993fi 1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1995done 1996case $ac_lo in #(( 1997?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1998'') ac_retval=1 ;; 1999esac 2000 else 2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2002/* end confdefs.h. */ 2003$4 2004static long int longval () { return $2; } 2005static unsigned long int ulongval () { return $2; } 2006#include <stdio.h> 2007#include <stdlib.h> 2008int 2009main () 2010{ 2011 2012 FILE *f = fopen ("conftest.val", "w"); 2013 if (! f) 2014 return 1; 2015 if (($2) < 0) 2016 { 2017 long int i = longval (); 2018 if (i != ($2)) 2019 return 1; 2020 fprintf (f, "%ld", i); 2021 } 2022 else 2023 { 2024 unsigned long int i = ulongval (); 2025 if (i != ($2)) 2026 return 1; 2027 fprintf (f, "%lu", i); 2028 } 2029 /* Do not output a trailing newline, as this causes \r\n confusion 2030 on some platforms. */ 2031 return ferror (f) || fclose (f) != 0; 2032 2033 ; 2034 return 0; 2035} 2036_ACEOF 2037if ac_fn_c_try_run "$LINENO"; then : 2038 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2039else 2040 ac_retval=1 2041fi 2042rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2043 conftest.$ac_objext conftest.beam conftest.$ac_ext 2044rm -f conftest.val 2045 2046 fi 2047 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2048 return $ac_retval 2049 2050} # ac_fn_c_compute_int 2051 2052# ac_fn_c_check_decl LINENO SYMBOL VAR 2053# ------------------------------------ 2054# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 2055ac_fn_c_check_decl () 2056{ 2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2058 as_decl_name=`echo $2|sed 's/ *(.*//'` 2059 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2061$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2062if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2063 $as_echo_n "(cached) " >&6 2064else 2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2066/* end confdefs.h. */ 2067$4 2068int 2069main () 2070{ 2071#ifndef $as_decl_name 2072#ifdef __cplusplus 2073 (void) $as_decl_use; 2074#else 2075 (void) $as_decl_name; 2076#endif 2077#endif 2078 2079 ; 2080 return 0; 2081} 2082_ACEOF 2083if ac_fn_c_try_compile "$LINENO"; then : 2084 eval "$3=yes" 2085else 2086 eval "$3=no" 2087fi 2088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2089fi 2090eval ac_res=\$$3 2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2092$as_echo "$ac_res" >&6; } 2093 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2094 2095} # ac_fn_c_check_decl 2096cat >config.log <<_ACEOF 2097This file contains any messages produced by compilers while 2098running configure, to aid debugging if configure makes a mistake. 2099 2100It was created by package-unused $as_me version-unused, which was 2101generated by GNU Autoconf 2.64. Invocation command line was 2102 2103 $ $0 $@ 2104 2105_ACEOF 2106exec 5>>config.log 2107{ 2108cat <<_ASUNAME 2109## --------- ## 2110## Platform. ## 2111## --------- ## 2112 2113hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2114uname -m = `(uname -m) 2>/dev/null || echo unknown` 2115uname -r = `(uname -r) 2>/dev/null || echo unknown` 2116uname -s = `(uname -s) 2>/dev/null || echo unknown` 2117uname -v = `(uname -v) 2>/dev/null || echo unknown` 2118 2119/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2120/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2121 2122/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2123/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2124/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2125/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2126/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2127/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2128/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2129 2130_ASUNAME 2131 2132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2133for as_dir in $PATH 2134do 2135 IFS=$as_save_IFS 2136 test -z "$as_dir" && as_dir=. 2137 $as_echo "PATH: $as_dir" 2138 done 2139IFS=$as_save_IFS 2140 2141} >&5 2142 2143cat >&5 <<_ACEOF 2144 2145 2146## ----------- ## 2147## Core tests. ## 2148## ----------- ## 2149 2150_ACEOF 2151 2152 2153# Keep a trace of the command line. 2154# Strip out --no-create and --no-recursion so they do not pile up. 2155# Strip out --silent because we don't want to record it for future runs. 2156# Also quote any args containing shell meta-characters. 2157# Make two passes to allow for proper duplicate-argument suppression. 2158ac_configure_args= 2159ac_configure_args0= 2160ac_configure_args1= 2161ac_must_keep_next=false 2162for ac_pass in 1 2 2163do 2164 for ac_arg 2165 do 2166 case $ac_arg in 2167 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2169 | -silent | --silent | --silen | --sile | --sil) 2170 continue ;; 2171 *\'*) 2172 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2173 esac 2174 case $ac_pass in 2175 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2176 2) 2177 as_fn_append ac_configure_args1 " '$ac_arg'" 2178 if test $ac_must_keep_next = true; then 2179 ac_must_keep_next=false # Got value, back to normal. 2180 else 2181 case $ac_arg in 2182 *=* | --config-cache | -C | -disable-* | --disable-* \ 2183 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2184 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2185 | -with-* | --with-* | -without-* | --without-* | --x) 2186 case "$ac_configure_args0 " in 2187 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2188 esac 2189 ;; 2190 -* ) ac_must_keep_next=true ;; 2191 esac 2192 fi 2193 as_fn_append ac_configure_args " '$ac_arg'" 2194 ;; 2195 esac 2196 done 2197done 2198{ ac_configure_args0=; unset ac_configure_args0;} 2199{ ac_configure_args1=; unset ac_configure_args1;} 2200 2201# When interrupted or exit'd, cleanup temporary files, and complete 2202# config.log. We remove comments because anyway the quotes in there 2203# would cause problems or look ugly. 2204# WARNING: Use '\'' to represent an apostrophe within the trap. 2205# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2206trap 'exit_status=$? 2207 # Save into config.log some information that might help in debugging. 2208 { 2209 echo 2210 2211 cat <<\_ASBOX 2212## ---------------- ## 2213## Cache variables. ## 2214## ---------------- ## 2215_ASBOX 2216 echo 2217 # The following way of writing the cache mishandles newlines in values, 2218( 2219 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2220 eval ac_val=\$$ac_var 2221 case $ac_val in #( 2222 *${as_nl}*) 2223 case $ac_var in #( 2224 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2225$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2226 esac 2227 case $ac_var in #( 2228 _ | IFS | as_nl) ;; #( 2229 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2230 *) { eval $ac_var=; unset $ac_var;} ;; 2231 esac ;; 2232 esac 2233 done 2234 (set) 2>&1 | 2235 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2236 *${as_nl}ac_space=\ *) 2237 sed -n \ 2238 "s/'\''/'\''\\\\'\'''\''/g; 2239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2240 ;; #( 2241 *) 2242 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2243 ;; 2244 esac | 2245 sort 2246) 2247 echo 2248 2249 cat <<\_ASBOX 2250## ----------------- ## 2251## Output variables. ## 2252## ----------------- ## 2253_ASBOX 2254 echo 2255 for ac_var in $ac_subst_vars 2256 do 2257 eval ac_val=\$$ac_var 2258 case $ac_val in 2259 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2260 esac 2261 $as_echo "$ac_var='\''$ac_val'\''" 2262 done | sort 2263 echo 2264 2265 if test -n "$ac_subst_files"; then 2266 cat <<\_ASBOX 2267## ------------------- ## 2268## File substitutions. ## 2269## ------------------- ## 2270_ASBOX 2271 echo 2272 for ac_var in $ac_subst_files 2273 do 2274 eval ac_val=\$$ac_var 2275 case $ac_val in 2276 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2277 esac 2278 $as_echo "$ac_var='\''$ac_val'\''" 2279 done | sort 2280 echo 2281 fi 2282 2283 if test -s confdefs.h; then 2284 cat <<\_ASBOX 2285## ----------- ## 2286## confdefs.h. ## 2287## ----------- ## 2288_ASBOX 2289 echo 2290 cat confdefs.h 2291 echo 2292 fi 2293 test "$ac_signal" != 0 && 2294 $as_echo "$as_me: caught signal $ac_signal" 2295 $as_echo "$as_me: exit $exit_status" 2296 } >&5 2297 rm -f core *.core core.conftest.* && 2298 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2299 exit $exit_status 2300' 0 2301for ac_signal in 1 2 13 15; do 2302 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2303done 2304ac_signal=0 2305 2306# confdefs.h avoids OS command line length limits that DEFS can exceed. 2307rm -f -r conftest* confdefs.h 2308 2309$as_echo "/* confdefs.h */" > confdefs.h 2310 2311# Predefined preprocessor variables. 2312 2313cat >>confdefs.h <<_ACEOF 2314#define PACKAGE_NAME "$PACKAGE_NAME" 2315_ACEOF 2316 2317cat >>confdefs.h <<_ACEOF 2318#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2319_ACEOF 2320 2321cat >>confdefs.h <<_ACEOF 2322#define PACKAGE_VERSION "$PACKAGE_VERSION" 2323_ACEOF 2324 2325cat >>confdefs.h <<_ACEOF 2326#define PACKAGE_STRING "$PACKAGE_STRING" 2327_ACEOF 2328 2329cat >>confdefs.h <<_ACEOF 2330#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2331_ACEOF 2332 2333cat >>confdefs.h <<_ACEOF 2334#define PACKAGE_URL "$PACKAGE_URL" 2335_ACEOF 2336 2337 2338# Let the site file select an alternate cache file if it wants to. 2339# Prefer an explicitly selected file to automatically selected ones. 2340ac_site_file1=NONE 2341ac_site_file2=NONE 2342if test -n "$CONFIG_SITE"; then 2343 ac_site_file1=$CONFIG_SITE 2344elif test "x$prefix" != xNONE; then 2345 ac_site_file1=$prefix/share/config.site 2346 ac_site_file2=$prefix/etc/config.site 2347else 2348 ac_site_file1=$ac_default_prefix/share/config.site 2349 ac_site_file2=$ac_default_prefix/etc/config.site 2350fi 2351for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2352do 2353 test "x$ac_site_file" = xNONE && continue 2354 if test -r "$ac_site_file"; then 2355 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2356$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2357 sed 's/^/| /' "$ac_site_file" >&5 2358 . "$ac_site_file" 2359 fi 2360done 2361 2362if test -r "$cache_file"; then 2363 # Some versions of bash will fail to source /dev/null (special 2364 # files actually), so we avoid doing that. 2365 if test -f "$cache_file"; then 2366 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2367$as_echo "$as_me: loading cache $cache_file" >&6;} 2368 case $cache_file in 2369 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2370 *) . "./$cache_file";; 2371 esac 2372 fi 2373else 2374 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2375$as_echo "$as_me: creating cache $cache_file" >&6;} 2376 >$cache_file 2377fi 2378 2379# Check that the precious variables saved in the cache have kept the same 2380# value. 2381ac_cache_corrupted=false 2382for ac_var in $ac_precious_vars; do 2383 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2384 eval ac_new_set=\$ac_env_${ac_var}_set 2385 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2386 eval ac_new_val=\$ac_env_${ac_var}_value 2387 case $ac_old_set,$ac_new_set in 2388 set,) 2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2390$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2391 ac_cache_corrupted=: ;; 2392 ,set) 2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2394$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2395 ac_cache_corrupted=: ;; 2396 ,);; 2397 *) 2398 if test "x$ac_old_val" != "x$ac_new_val"; then 2399 # differences in whitespace do not lead to failure. 2400 ac_old_val_w=`echo x $ac_old_val` 2401 ac_new_val_w=`echo x $ac_new_val` 2402 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2404$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2405 ac_cache_corrupted=: 2406 else 2407 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2408$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2409 eval $ac_var=\$ac_old_val 2410 fi 2411 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2412$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2413 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2414$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2415 fi;; 2416 esac 2417 # Pass precious variables to config.status. 2418 if test "$ac_new_set" = set; then 2419 case $ac_new_val in 2420 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2421 *) ac_arg=$ac_var=$ac_new_val ;; 2422 esac 2423 case " $ac_configure_args " in 2424 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2425 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2426 esac 2427 fi 2428done 2429if $ac_cache_corrupted; then 2430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2433$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2434 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2435fi 2436## -------------------- ## 2437## Main body of script. ## 2438## -------------------- ## 2439 2440ac_ext=c 2441ac_cpp='$CPP $CPPFLAGS' 2442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2444ac_compiler_gnu=$ac_cv_c_compiler_gnu 2445 2446 2447 2448 2449 2450 2451ac_config_headers="$ac_config_headers config.h" 2452 2453 2454ac_aux_dir= 2455for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2456 for ac_t in install-sh install.sh shtool; do 2457 if test -f "$ac_dir/$ac_t"; then 2458 ac_aux_dir=$ac_dir 2459 ac_install_sh="$SHELL $ac_aux_dir/$ac_t -c" 2460 break 2 2461 fi 2462 done 2463done 2464if test -z "$ac_aux_dir"; then 2465 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2466fi 2467 2468# These three variables are undocumented and unsupported, 2469# and are intended to be withdrawn in a future Autoconf release. 2470# They can cause serious problems if a builder's source tree is in a directory 2471# whose full name contains unusual characters. 2472ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2473ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2474ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2475 2476 2477# Make sure we can run config.sub. 2478$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2479 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2480 2481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2482$as_echo_n "checking build system type... " >&6; } 2483if test "${ac_cv_build+set}" = set; then : 2484 $as_echo_n "(cached) " >&6 2485else 2486 ac_build_alias=$build_alias 2487test "x$ac_build_alias" = x && 2488 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2489test "x$ac_build_alias" = x && 2490 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2491ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2492 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2493 2494fi 2495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2496$as_echo "$ac_cv_build" >&6; } 2497case $ac_cv_build in 2498*-*-*) ;; 2499*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2500esac 2501build=$ac_cv_build 2502ac_save_IFS=$IFS; IFS='-' 2503set x $ac_cv_build 2504shift 2505build_cpu=$1 2506build_vendor=$2 2507shift; shift 2508# Remember, the first character of IFS is used to create $*, 2509# except with old shells: 2510build_os=$* 2511IFS=$ac_save_IFS 2512case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2513 2514 2515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2516$as_echo_n "checking host system type... " >&6; } 2517if test "${ac_cv_host+set}" = set; then : 2518 $as_echo_n "(cached) " >&6 2519else 2520 if test "x$host_alias" = x; then 2521 ac_cv_host=$ac_cv_build 2522else 2523 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2524 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2525fi 2526 2527fi 2528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2529$as_echo "$ac_cv_host" >&6; } 2530case $ac_cv_host in 2531*-*-*) ;; 2532*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2533esac 2534host=$ac_cv_host 2535ac_save_IFS=$IFS; IFS='-' 2536set x $ac_cv_host 2537shift 2538host_cpu=$1 2539host_vendor=$2 2540shift; shift 2541# Remember, the first character of IFS is used to create $*, 2542# except with old shells: 2543host_os=$* 2544IFS=$ac_save_IFS 2545case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2546 2547 2548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2549$as_echo_n "checking target system type... " >&6; } 2550if test "${ac_cv_target+set}" = set; then : 2551 $as_echo_n "(cached) " >&6 2552else 2553 if test "x$target_alias" = x; then 2554 ac_cv_target=$ac_cv_host 2555else 2556 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2557 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2558fi 2559 2560fi 2561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2562$as_echo "$ac_cv_target" >&6; } 2563case $ac_cv_target in 2564*-*-*) ;; 2565*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2566esac 2567target=$ac_cv_target 2568ac_save_IFS=$IFS; IFS='-' 2569set x $ac_cv_target 2570shift 2571target_cpu=$1 2572target_vendor=$2 2573shift; shift 2574# Remember, the first character of IFS is used to create $*, 2575# except with old shells: 2576target_os=$* 2577IFS=$ac_save_IFS 2578case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2579 2580 2581# The aliases save the names the user supplied, while $host etc. 2582# will get canonicalized. 2583test -n "$target_alias" && 2584 test "$program_prefix$program_suffix$program_transform_name" = \ 2585 NONENONEs,x,x, && 2586 program_prefix=${target_alias}- 2587 2588target_alias=${target_alias-$host_alias} 2589 2590ac_ext=c 2591ac_cpp='$CPP $CPPFLAGS' 2592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2594ac_compiler_gnu=$ac_cv_c_compiler_gnu 2595if test -n "$ac_tool_prefix"; then 2596 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2597set dummy ${ac_tool_prefix}gcc; ac_word=$2 2598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2599$as_echo_n "checking for $ac_word... " >&6; } 2600if test "${ac_cv_prog_CC+set}" = set; then : 2601 $as_echo_n "(cached) " >&6 2602else 2603 if test -n "$CC"; then 2604 ac_cv_prog_CC="$CC" # Let the user override the test. 2605else 2606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2607for as_dir in $PATH 2608do 2609 IFS=$as_save_IFS 2610 test -z "$as_dir" && as_dir=. 2611 for ac_exec_ext in '' $ac_executable_extensions; do 2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2613 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2615 break 2 2616 fi 2617done 2618 done 2619IFS=$as_save_IFS 2620 2621fi 2622fi 2623CC=$ac_cv_prog_CC 2624if test -n "$CC"; then 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2626$as_echo "$CC" >&6; } 2627else 2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2629$as_echo "no" >&6; } 2630fi 2631 2632 2633fi 2634if test -z "$ac_cv_prog_CC"; then 2635 ac_ct_CC=$CC 2636 # Extract the first word of "gcc", so it can be a program name with args. 2637set dummy gcc; ac_word=$2 2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2639$as_echo_n "checking for $ac_word... " >&6; } 2640if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2641 $as_echo_n "(cached) " >&6 2642else 2643 if test -n "$ac_ct_CC"; then 2644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2645else 2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2647for as_dir in $PATH 2648do 2649 IFS=$as_save_IFS 2650 test -z "$as_dir" && as_dir=. 2651 for ac_exec_ext in '' $ac_executable_extensions; do 2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2653 ac_cv_prog_ac_ct_CC="gcc" 2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2655 break 2 2656 fi 2657done 2658 done 2659IFS=$as_save_IFS 2660 2661fi 2662fi 2663ac_ct_CC=$ac_cv_prog_ac_ct_CC 2664if test -n "$ac_ct_CC"; then 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2666$as_echo "$ac_ct_CC" >&6; } 2667else 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2669$as_echo "no" >&6; } 2670fi 2671 2672 if test "x$ac_ct_CC" = x; then 2673 CC="" 2674 else 2675 case $cross_compiling:$ac_tool_warned in 2676yes:) 2677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2679ac_tool_warned=yes ;; 2680esac 2681 CC=$ac_ct_CC 2682 fi 2683else 2684 CC="$ac_cv_prog_CC" 2685fi 2686 2687if test -z "$CC"; then 2688 if test -n "$ac_tool_prefix"; then 2689 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2690set dummy ${ac_tool_prefix}cc; ac_word=$2 2691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2692$as_echo_n "checking for $ac_word... " >&6; } 2693if test "${ac_cv_prog_CC+set}" = set; then : 2694 $as_echo_n "(cached) " >&6 2695else 2696 if test -n "$CC"; then 2697 ac_cv_prog_CC="$CC" # Let the user override the test. 2698else 2699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2700for as_dir in $PATH 2701do 2702 IFS=$as_save_IFS 2703 test -z "$as_dir" && as_dir=. 2704 for ac_exec_ext in '' $ac_executable_extensions; do 2705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2706 ac_cv_prog_CC="${ac_tool_prefix}cc" 2707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2708 break 2 2709 fi 2710done 2711 done 2712IFS=$as_save_IFS 2713 2714fi 2715fi 2716CC=$ac_cv_prog_CC 2717if test -n "$CC"; then 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2719$as_echo "$CC" >&6; } 2720else 2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2722$as_echo "no" >&6; } 2723fi 2724 2725 2726 fi 2727fi 2728if test -z "$CC"; then 2729 # Extract the first word of "cc", so it can be a program name with args. 2730set dummy cc; ac_word=$2 2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2732$as_echo_n "checking for $ac_word... " >&6; } 2733if test "${ac_cv_prog_CC+set}" = set; then : 2734 $as_echo_n "(cached) " >&6 2735else 2736 if test -n "$CC"; then 2737 ac_cv_prog_CC="$CC" # Let the user override the test. 2738else 2739 ac_prog_rejected=no 2740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2741for as_dir in $PATH 2742do 2743 IFS=$as_save_IFS 2744 test -z "$as_dir" && as_dir=. 2745 for ac_exec_ext in '' $ac_executable_extensions; do 2746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2747 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2748 ac_prog_rejected=yes 2749 continue 2750 fi 2751 ac_cv_prog_CC="cc" 2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2753 break 2 2754 fi 2755done 2756 done 2757IFS=$as_save_IFS 2758 2759if test $ac_prog_rejected = yes; then 2760 # We found a bogon in the path, so make sure we never use it. 2761 set dummy $ac_cv_prog_CC 2762 shift 2763 if test $# != 0; then 2764 # We chose a different compiler from the bogus one. 2765 # However, it has the same basename, so the bogon will be chosen 2766 # first if we set CC to just the basename; use the full file name. 2767 shift 2768 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2769 fi 2770fi 2771fi 2772fi 2773CC=$ac_cv_prog_CC 2774if test -n "$CC"; then 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2776$as_echo "$CC" >&6; } 2777else 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2779$as_echo "no" >&6; } 2780fi 2781 2782 2783fi 2784if test -z "$CC"; then 2785 if test -n "$ac_tool_prefix"; then 2786 for ac_prog in cl.exe 2787 do 2788 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2789set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2791$as_echo_n "checking for $ac_word... " >&6; } 2792if test "${ac_cv_prog_CC+set}" = set; then : 2793 $as_echo_n "(cached) " >&6 2794else 2795 if test -n "$CC"; then 2796 ac_cv_prog_CC="$CC" # Let the user override the test. 2797else 2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2799for as_dir in $PATH 2800do 2801 IFS=$as_save_IFS 2802 test -z "$as_dir" && as_dir=. 2803 for ac_exec_ext in '' $ac_executable_extensions; do 2804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2805 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2807 break 2 2808 fi 2809done 2810 done 2811IFS=$as_save_IFS 2812 2813fi 2814fi 2815CC=$ac_cv_prog_CC 2816if test -n "$CC"; then 2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2818$as_echo "$CC" >&6; } 2819else 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2821$as_echo "no" >&6; } 2822fi 2823 2824 2825 test -n "$CC" && break 2826 done 2827fi 2828if test -z "$CC"; then 2829 ac_ct_CC=$CC 2830 for ac_prog in cl.exe 2831do 2832 # Extract the first word of "$ac_prog", so it can be a program name with args. 2833set dummy $ac_prog; ac_word=$2 2834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2835$as_echo_n "checking for $ac_word... " >&6; } 2836if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2837 $as_echo_n "(cached) " >&6 2838else 2839 if test -n "$ac_ct_CC"; then 2840 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2841else 2842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2843for as_dir in $PATH 2844do 2845 IFS=$as_save_IFS 2846 test -z "$as_dir" && as_dir=. 2847 for ac_exec_ext in '' $ac_executable_extensions; do 2848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2849 ac_cv_prog_ac_ct_CC="$ac_prog" 2850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2851 break 2 2852 fi 2853done 2854 done 2855IFS=$as_save_IFS 2856 2857fi 2858fi 2859ac_ct_CC=$ac_cv_prog_ac_ct_CC 2860if test -n "$ac_ct_CC"; then 2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2862$as_echo "$ac_ct_CC" >&6; } 2863else 2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2865$as_echo "no" >&6; } 2866fi 2867 2868 2869 test -n "$ac_ct_CC" && break 2870done 2871 2872 if test "x$ac_ct_CC" = x; then 2873 CC="" 2874 else 2875 case $cross_compiling:$ac_tool_warned in 2876yes:) 2877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2879ac_tool_warned=yes ;; 2880esac 2881 CC=$ac_ct_CC 2882 fi 2883fi 2884 2885fi 2886 2887 2888test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2889$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2890as_fn_error "no acceptable C compiler found in \$PATH 2891See \`config.log' for more details." "$LINENO" 5; } 2892 2893# Provide some information about the compiler. 2894$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2895set X $ac_compile 2896ac_compiler=$2 2897for ac_option in --version -v -V -qversion; do 2898 { { ac_try="$ac_compiler $ac_option >&5" 2899case "(($ac_try" in 2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2901 *) ac_try_echo=$ac_try;; 2902esac 2903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2904$as_echo "$ac_try_echo"; } >&5 2905 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2906 ac_status=$? 2907 if test -s conftest.err; then 2908 sed '10a\ 2909... rest of stderr output deleted ... 2910 10q' conftest.err >conftest.er1 2911 cat conftest.er1 >&5 2912 rm -f conftest.er1 conftest.err 2913 fi 2914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2915 test $ac_status = 0; } 2916done 2917 2918cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2919/* end confdefs.h. */ 2920 2921int 2922main () 2923{ 2924 2925 ; 2926 return 0; 2927} 2928_ACEOF 2929ac_clean_files_save=$ac_clean_files 2930ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 2931# Try to create an executable without -o first, disregard a.out. 2932# It will help us diagnose broken compilers, and finding out an intuition 2933# of exeext. 2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2935$as_echo_n "checking for C compiler default output file name... " >&6; } 2936ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2937 2938# The possible output files: 2939ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2940 2941ac_rmfiles= 2942for ac_file in $ac_files 2943do 2944 case $ac_file in 2945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2946 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2947 esac 2948done 2949rm -f $ac_rmfiles 2950 2951if { { ac_try="$ac_link_default" 2952case "(($ac_try" in 2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2954 *) ac_try_echo=$ac_try;; 2955esac 2956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2957$as_echo "$ac_try_echo"; } >&5 2958 (eval "$ac_link_default") 2>&5 2959 ac_status=$? 2960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2961 test $ac_status = 0; }; then : 2962 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2963# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2964# in a Makefile. We should not override ac_cv_exeext if it was cached, 2965# so that the user can short-circuit this test for compilers unknown to 2966# Autoconf. 2967for ac_file in $ac_files '' 2968do 2969 test -f "$ac_file" || continue 2970 case $ac_file in 2971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2972 ;; 2973 [ab].out ) 2974 # We found the default executable, but exeext='' is most 2975 # certainly right. 2976 break;; 2977 *.* ) 2978 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2979 then :; else 2980 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2981 fi 2982 # We set ac_cv_exeext here because the later test for it is not 2983 # safe: cross compilers may not add the suffix if given an `-o' 2984 # argument, so we may need to know it at that point already. 2985 # Even if this section looks crufty: it has the advantage of 2986 # actually working. 2987 break;; 2988 * ) 2989 break;; 2990 esac 2991done 2992test "$ac_cv_exeext" = no && ac_cv_exeext= 2993 2994else 2995 ac_file='' 2996fi 2997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2998$as_echo "$ac_file" >&6; } 2999if test -z "$ac_file"; then : 3000 $as_echo "$as_me: failed program was:" >&5 3001sed 's/^/| /' conftest.$ac_ext >&5 3002 3003{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3005{ as_fn_set_status 77 3006as_fn_error "C compiler cannot create executables 3007See \`config.log' for more details." "$LINENO" 5; }; } 3008fi 3009ac_exeext=$ac_cv_exeext 3010 3011# Check that the compiler produces executables we can run. If not, either 3012# the compiler is broken, or we cross compile. 3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3014$as_echo_n "checking whether the C compiler works... " >&6; } 3015# If not cross compiling, check that we can run a simple program. 3016if test "$cross_compiling" != yes; then 3017 if { ac_try='./$ac_file' 3018 { { case "(($ac_try" in 3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3020 *) ac_try_echo=$ac_try;; 3021esac 3022eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3023$as_echo "$ac_try_echo"; } >&5 3024 (eval "$ac_try") 2>&5 3025 ac_status=$? 3026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3027 test $ac_status = 0; }; }; then 3028 cross_compiling=no 3029 else 3030 if test "$cross_compiling" = maybe; then 3031 cross_compiling=yes 3032 else 3033 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3034$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3035as_fn_error "cannot run C compiled programs. 3036If you meant to cross compile, use \`--host'. 3037See \`config.log' for more details." "$LINENO" 5; } 3038 fi 3039 fi 3040fi 3041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3042$as_echo "yes" >&6; } 3043 3044rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3045ac_clean_files=$ac_clean_files_save 3046# Check that the compiler produces executables we can run. If not, either 3047# the compiler is broken, or we cross compile. 3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3049$as_echo_n "checking whether we are cross compiling... " >&6; } 3050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3051$as_echo "$cross_compiling" >&6; } 3052 3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3054$as_echo_n "checking for suffix of executables... " >&6; } 3055if { { ac_try="$ac_link" 3056case "(($ac_try" in 3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3058 *) ac_try_echo=$ac_try;; 3059esac 3060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3061$as_echo "$ac_try_echo"; } >&5 3062 (eval "$ac_link") 2>&5 3063 ac_status=$? 3064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3065 test $ac_status = 0; }; then : 3066 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3067# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3068# work properly (i.e., refer to `conftest.exe'), while it won't with 3069# `rm'. 3070for ac_file in conftest.exe conftest conftest.*; do 3071 test -f "$ac_file" || continue 3072 case $ac_file in 3073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3074 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3075 break;; 3076 * ) break;; 3077 esac 3078done 3079else 3080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3082as_fn_error "cannot compute suffix of executables: cannot compile and link 3083See \`config.log' for more details." "$LINENO" 5; } 3084fi 3085rm -f conftest$ac_cv_exeext 3086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3087$as_echo "$ac_cv_exeext" >&6; } 3088 3089rm -f conftest.$ac_ext 3090EXEEXT=$ac_cv_exeext 3091ac_exeext=$EXEEXT 3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3093$as_echo_n "checking for suffix of object files... " >&6; } 3094if test "${ac_cv_objext+set}" = set; then : 3095 $as_echo_n "(cached) " >&6 3096else 3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3098/* end confdefs.h. */ 3099 3100int 3101main () 3102{ 3103 3104 ; 3105 return 0; 3106} 3107_ACEOF 3108rm -f conftest.o conftest.obj 3109if { { ac_try="$ac_compile" 3110case "(($ac_try" in 3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3112 *) ac_try_echo=$ac_try;; 3113esac 3114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3115$as_echo "$ac_try_echo"; } >&5 3116 (eval "$ac_compile") 2>&5 3117 ac_status=$? 3118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3119 test $ac_status = 0; }; then : 3120 for ac_file in conftest.o conftest.obj conftest.*; do 3121 test -f "$ac_file" || continue; 3122 case $ac_file in 3123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3124 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3125 break;; 3126 esac 3127done 3128else 3129 $as_echo "$as_me: failed program was:" >&5 3130sed 's/^/| /' conftest.$ac_ext >&5 3131 3132{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3134as_fn_error "cannot compute suffix of object files: cannot compile 3135See \`config.log' for more details." "$LINENO" 5; } 3136fi 3137rm -f conftest.$ac_cv_objext conftest.$ac_ext 3138fi 3139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3140$as_echo "$ac_cv_objext" >&6; } 3141OBJEXT=$ac_cv_objext 3142ac_objext=$OBJEXT 3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3144$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3145if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3146 $as_echo_n "(cached) " >&6 3147else 3148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3149/* end confdefs.h. */ 3150 3151int 3152main () 3153{ 3154#ifndef __GNUC__ 3155 choke me 3156#endif 3157 3158 ; 3159 return 0; 3160} 3161_ACEOF 3162if ac_fn_c_try_compile "$LINENO"; then : 3163 ac_compiler_gnu=yes 3164else 3165 ac_compiler_gnu=no 3166fi 3167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3168ac_cv_c_compiler_gnu=$ac_compiler_gnu 3169 3170fi 3171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3172$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3173if test $ac_compiler_gnu = yes; then 3174 GCC=yes 3175else 3176 GCC= 3177fi 3178ac_test_CFLAGS=${CFLAGS+set} 3179ac_save_CFLAGS=$CFLAGS 3180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3181$as_echo_n "checking whether $CC accepts -g... " >&6; } 3182if test "${ac_cv_prog_cc_g+set}" = set; then : 3183 $as_echo_n "(cached) " >&6 3184else 3185 ac_save_c_werror_flag=$ac_c_werror_flag 3186 ac_c_werror_flag=yes 3187 ac_cv_prog_cc_g=no 3188 CFLAGS="-g" 3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3190/* end confdefs.h. */ 3191 3192int 3193main () 3194{ 3195 3196 ; 3197 return 0; 3198} 3199_ACEOF 3200if ac_fn_c_try_compile "$LINENO"; then : 3201 ac_cv_prog_cc_g=yes 3202else 3203 CFLAGS="" 3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3205/* end confdefs.h. */ 3206 3207int 3208main () 3209{ 3210 3211 ; 3212 return 0; 3213} 3214_ACEOF 3215if ac_fn_c_try_compile "$LINENO"; then : 3216 3217else 3218 ac_c_werror_flag=$ac_save_c_werror_flag 3219 CFLAGS="-g" 3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3221/* end confdefs.h. */ 3222 3223int 3224main () 3225{ 3226 3227 ; 3228 return 0; 3229} 3230_ACEOF 3231if ac_fn_c_try_compile "$LINENO"; then : 3232 ac_cv_prog_cc_g=yes 3233fi 3234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3235fi 3236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3237fi 3238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3239 ac_c_werror_flag=$ac_save_c_werror_flag 3240fi 3241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3242$as_echo "$ac_cv_prog_cc_g" >&6; } 3243if test "$ac_test_CFLAGS" = set; then 3244 CFLAGS=$ac_save_CFLAGS 3245elif test $ac_cv_prog_cc_g = yes; then 3246 if test "$GCC" = yes; then 3247 CFLAGS="-g -O2" 3248 else 3249 CFLAGS="-g" 3250 fi 3251else 3252 if test "$GCC" = yes; then 3253 CFLAGS="-O2" 3254 else 3255 CFLAGS= 3256 fi 3257fi 3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3259$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3260if test "${ac_cv_prog_cc_c89+set}" = set; then : 3261 $as_echo_n "(cached) " >&6 3262else 3263 ac_cv_prog_cc_c89=no 3264ac_save_CC=$CC 3265cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3266/* end confdefs.h. */ 3267#include <stdarg.h> 3268#include <stdio.h> 3269#include <sys/types.h> 3270#include <sys/stat.h> 3271/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3272struct buf { int x; }; 3273FILE * (*rcsopen) (struct buf *, struct stat *, int); 3274static char *e (p, i) 3275 char **p; 3276 int i; 3277{ 3278 return p[i]; 3279} 3280static char *f (char * (*g) (char **, int), char **p, ...) 3281{ 3282 char *s; 3283 va_list v; 3284 va_start (v,p); 3285 s = g (p, va_arg (v,int)); 3286 va_end (v); 3287 return s; 3288} 3289 3290/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3291 function prototypes and stuff, but not '\xHH' hex character constants. 3292 These don't provoke an error unfortunately, instead are silently treated 3293 as 'x'. The following induces an error, until -std is added to get 3294 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3295 array size at least. It's necessary to write '\x00'==0 to get something 3296 that's true only with -std. */ 3297int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3298 3299/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3300 inside strings and character constants. */ 3301#define FOO(x) 'x' 3302int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3303 3304int test (int i, double x); 3305struct s1 {int (*f) (int a);}; 3306struct s2 {int (*f) (double a);}; 3307int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3308int argc; 3309char **argv; 3310int 3311main () 3312{ 3313return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3314 ; 3315 return 0; 3316} 3317_ACEOF 3318for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3319 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3320do 3321 CC="$ac_save_CC $ac_arg" 3322 if ac_fn_c_try_compile "$LINENO"; then : 3323 ac_cv_prog_cc_c89=$ac_arg 3324fi 3325rm -f core conftest.err conftest.$ac_objext 3326 test "x$ac_cv_prog_cc_c89" != "xno" && break 3327done 3328rm -f conftest.$ac_ext 3329CC=$ac_save_CC 3330 3331fi 3332# AC_CACHE_VAL 3333case "x$ac_cv_prog_cc_c89" in 3334 x) 3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3336$as_echo "none needed" >&6; } ;; 3337 xno) 3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3339$as_echo "unsupported" >&6; } ;; 3340 *) 3341 CC="$CC $ac_cv_prog_cc_c89" 3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3343$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3344esac 3345if test "x$ac_cv_prog_cc_c89" != xno; then : 3346 3347fi 3348 3349ac_ext=c 3350ac_cpp='$CPP $CPPFLAGS' 3351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3353ac_compiler_gnu=$ac_cv_c_compiler_gnu 3354 3355 3356ac_ext=c 3357ac_cpp='$CPP $CPPFLAGS' 3358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3360ac_compiler_gnu=$ac_cv_c_compiler_gnu 3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3362$as_echo_n "checking how to run the C preprocessor... " >&6; } 3363# On Suns, sometimes $CPP names a directory. 3364if test -n "$CPP" && test -d "$CPP"; then 3365 CPP= 3366fi 3367if test -z "$CPP"; then 3368 if test "${ac_cv_prog_CPP+set}" = set; then : 3369 $as_echo_n "(cached) " >&6 3370else 3371 # Double quotes because CPP needs to be expanded 3372 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3373 do 3374 ac_preproc_ok=false 3375for ac_c_preproc_warn_flag in '' yes 3376do 3377 # Use a header file that comes with gcc, so configuring glibc 3378 # with a fresh cross-compiler works. 3379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3380 # <limits.h> exists even on freestanding compilers. 3381 # On the NeXT, cc -E runs the code through the compiler's parser, 3382 # not just through cpp. "Syntax error" is here to catch this case. 3383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3384/* end confdefs.h. */ 3385#ifdef __STDC__ 3386# include <limits.h> 3387#else 3388# include <assert.h> 3389#endif 3390 Syntax error 3391_ACEOF 3392if ac_fn_c_try_cpp "$LINENO"; then : 3393 3394else 3395 # Broken: fails on valid input. 3396continue 3397fi 3398rm -f conftest.err conftest.$ac_ext 3399 3400 # OK, works on sane cases. Now check whether nonexistent headers 3401 # can be detected and how. 3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3403/* end confdefs.h. */ 3404#include <ac_nonexistent.h> 3405_ACEOF 3406if ac_fn_c_try_cpp "$LINENO"; then : 3407 # Broken: success on invalid input. 3408continue 3409else 3410 # Passes both tests. 3411ac_preproc_ok=: 3412break 3413fi 3414rm -f conftest.err conftest.$ac_ext 3415 3416done 3417# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3418rm -f conftest.err conftest.$ac_ext 3419if $ac_preproc_ok; then : 3420 break 3421fi 3422 3423 done 3424 ac_cv_prog_CPP=$CPP 3425 3426fi 3427 CPP=$ac_cv_prog_CPP 3428else 3429 ac_cv_prog_CPP=$CPP 3430fi 3431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3432$as_echo "$CPP" >&6; } 3433ac_preproc_ok=false 3434for ac_c_preproc_warn_flag in '' yes 3435do 3436 # Use a header file that comes with gcc, so configuring glibc 3437 # with a fresh cross-compiler works. 3438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3439 # <limits.h> exists even on freestanding compilers. 3440 # On the NeXT, cc -E runs the code through the compiler's parser, 3441 # not just through cpp. "Syntax error" is here to catch this case. 3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3443/* end confdefs.h. */ 3444#ifdef __STDC__ 3445# include <limits.h> 3446#else 3447# include <assert.h> 3448#endif 3449 Syntax error 3450_ACEOF 3451if ac_fn_c_try_cpp "$LINENO"; then : 3452 3453else 3454 # Broken: fails on valid input. 3455continue 3456fi 3457rm -f conftest.err conftest.$ac_ext 3458 3459 # OK, works on sane cases. Now check whether nonexistent headers 3460 # can be detected and how. 3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3462/* end confdefs.h. */ 3463#include <ac_nonexistent.h> 3464_ACEOF 3465if ac_fn_c_try_cpp "$LINENO"; then : 3466 # Broken: success on invalid input. 3467continue 3468else 3469 # Passes both tests. 3470ac_preproc_ok=: 3471break 3472fi 3473rm -f conftest.err conftest.$ac_ext 3474 3475done 3476# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3477rm -f conftest.err conftest.$ac_ext 3478if $ac_preproc_ok; then : 3479 3480else 3481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3483as_fn_error "C preprocessor \"$CPP\" fails sanity check 3484See \`config.log' for more details." "$LINENO" 5; } 3485fi 3486 3487ac_ext=c 3488ac_cpp='$CPP $CPPFLAGS' 3489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3491ac_compiler_gnu=$ac_cv_c_compiler_gnu 3492 3493 3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3495$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3496if test "${ac_cv_path_GREP+set}" = set; then : 3497 $as_echo_n "(cached) " >&6 3498else 3499 if test -z "$GREP"; then 3500 ac_path_GREP_found=false 3501 # Loop through the user's path and test for each of PROGNAME-LIST 3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3503for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3504do 3505 IFS=$as_save_IFS 3506 test -z "$as_dir" && as_dir=. 3507 for ac_prog in grep ggrep; do 3508 for ac_exec_ext in '' $ac_executable_extensions; do 3509 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3510 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3511# Check for GNU ac_path_GREP and select it if it is found. 3512 # Check for GNU $ac_path_GREP 3513case `"$ac_path_GREP" --version 2>&1` in 3514*GNU*) 3515 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3516*) 3517 ac_count=0 3518 $as_echo_n 0123456789 >"conftest.in" 3519 while : 3520 do 3521 cat "conftest.in" "conftest.in" >"conftest.tmp" 3522 mv "conftest.tmp" "conftest.in" 3523 cp "conftest.in" "conftest.nl" 3524 $as_echo 'GREP' >> "conftest.nl" 3525 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3526 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3527 as_fn_arith $ac_count + 1 && ac_count=$as_val 3528 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3529 # Best one so far, save it but keep looking for a better one 3530 ac_cv_path_GREP="$ac_path_GREP" 3531 ac_path_GREP_max=$ac_count 3532 fi 3533 # 10*(2^10) chars as input seems more than enough 3534 test $ac_count -gt 10 && break 3535 done 3536 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3537esac 3538 3539 $ac_path_GREP_found && break 3 3540 done 3541 done 3542 done 3543IFS=$as_save_IFS 3544 if test -z "$ac_cv_path_GREP"; then 3545 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3546 fi 3547else 3548 ac_cv_path_GREP=$GREP 3549fi 3550 3551fi 3552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3553$as_echo "$ac_cv_path_GREP" >&6; } 3554 GREP="$ac_cv_path_GREP" 3555 3556 3557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3558$as_echo_n "checking for egrep... " >&6; } 3559if test "${ac_cv_path_EGREP+set}" = set; then : 3560 $as_echo_n "(cached) " >&6 3561else 3562 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3563 then ac_cv_path_EGREP="$GREP -E" 3564 else 3565 if test -z "$EGREP"; then 3566 ac_path_EGREP_found=false 3567 # Loop through the user's path and test for each of PROGNAME-LIST 3568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3569for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3570do 3571 IFS=$as_save_IFS 3572 test -z "$as_dir" && as_dir=. 3573 for ac_prog in egrep; do 3574 for ac_exec_ext in '' $ac_executable_extensions; do 3575 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3576 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3577# Check for GNU ac_path_EGREP and select it if it is found. 3578 # Check for GNU $ac_path_EGREP 3579case `"$ac_path_EGREP" --version 2>&1` in 3580*GNU*) 3581 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3582*) 3583 ac_count=0 3584 $as_echo_n 0123456789 >"conftest.in" 3585 while : 3586 do 3587 cat "conftest.in" "conftest.in" >"conftest.tmp" 3588 mv "conftest.tmp" "conftest.in" 3589 cp "conftest.in" "conftest.nl" 3590 $as_echo 'EGREP' >> "conftest.nl" 3591 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3592 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3593 as_fn_arith $ac_count + 1 && ac_count=$as_val 3594 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3595 # Best one so far, save it but keep looking for a better one 3596 ac_cv_path_EGREP="$ac_path_EGREP" 3597 ac_path_EGREP_max=$ac_count 3598 fi 3599 # 10*(2^10) chars as input seems more than enough 3600 test $ac_count -gt 10 && break 3601 done 3602 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3603esac 3604 3605 $ac_path_EGREP_found && break 3 3606 done 3607 done 3608 done 3609IFS=$as_save_IFS 3610 if test -z "$ac_cv_path_EGREP"; then 3611 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3612 fi 3613else 3614 ac_cv_path_EGREP=$EGREP 3615fi 3616 3617 fi 3618fi 3619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3620$as_echo "$ac_cv_path_EGREP" >&6; } 3621 EGREP="$ac_cv_path_EGREP" 3622 3623 3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3625$as_echo_n "checking for ANSI C header files... " >&6; } 3626if test "${ac_cv_header_stdc+set}" = set; then : 3627 $as_echo_n "(cached) " >&6 3628else 3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3630/* end confdefs.h. */ 3631#include <stdlib.h> 3632#include <stdarg.h> 3633#include <string.h> 3634#include <float.h> 3635 3636int 3637main () 3638{ 3639 3640 ; 3641 return 0; 3642} 3643_ACEOF 3644if ac_fn_c_try_compile "$LINENO"; then : 3645 ac_cv_header_stdc=yes 3646else 3647 ac_cv_header_stdc=no 3648fi 3649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3650 3651if test $ac_cv_header_stdc = yes; then 3652 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3654/* end confdefs.h. */ 3655#include <string.h> 3656 3657_ACEOF 3658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3659 $EGREP "memchr" >/dev/null 2>&1; then : 3660 3661else 3662 ac_cv_header_stdc=no 3663fi 3664rm -f conftest* 3665 3666fi 3667 3668if test $ac_cv_header_stdc = yes; then 3669 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3671/* end confdefs.h. */ 3672#include <stdlib.h> 3673 3674_ACEOF 3675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3676 $EGREP "free" >/dev/null 2>&1; then : 3677 3678else 3679 ac_cv_header_stdc=no 3680fi 3681rm -f conftest* 3682 3683fi 3684 3685if test $ac_cv_header_stdc = yes; then 3686 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3687 if test "$cross_compiling" = yes; then : 3688 : 3689else 3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3691/* end confdefs.h. */ 3692#include <ctype.h> 3693#include <stdlib.h> 3694#if ((' ' & 0x0FF) == 0x020) 3695# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3696# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3697#else 3698# define ISLOWER(c) \ 3699 (('a' <= (c) && (c) <= 'i') \ 3700 || ('j' <= (c) && (c) <= 'r') \ 3701 || ('s' <= (c) && (c) <= 'z')) 3702# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3703#endif 3704 3705#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3706int 3707main () 3708{ 3709 int i; 3710 for (i = 0; i < 256; i++) 3711 if (XOR (islower (i), ISLOWER (i)) 3712 || toupper (i) != TOUPPER (i)) 3713 return 2; 3714 return 0; 3715} 3716_ACEOF 3717if ac_fn_c_try_run "$LINENO"; then : 3718 3719else 3720 ac_cv_header_stdc=no 3721fi 3722rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3723 conftest.$ac_objext conftest.beam conftest.$ac_ext 3724fi 3725 3726fi 3727fi 3728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3729$as_echo "$ac_cv_header_stdc" >&6; } 3730if test $ac_cv_header_stdc = yes; then 3731 3732$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3733 3734fi 3735 3736# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3737for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3738 inttypes.h stdint.h unistd.h 3739do : 3740 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3741ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3742" 3743eval as_val=\$$as_ac_Header 3744 if test "x$as_val" = x""yes; then : 3745 cat >>confdefs.h <<_ACEOF 3746#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3747_ACEOF 3748 3749fi 3750 3751done 3752 3753 3754 3755 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3756if test "x$ac_cv_header_minix_config_h" = x""yes; then : 3757 MINIX=yes 3758else 3759 MINIX= 3760fi 3761 3762 3763 if test "$MINIX" = yes; then 3764 3765$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3766 3767 3768$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3769 3770 3771$as_echo "#define _MINIX 1" >>confdefs.h 3772 3773 fi 3774 3775 3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3777$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3778if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 3779 $as_echo_n "(cached) " >&6 3780else 3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3782/* end confdefs.h. */ 3783 3784# define __EXTENSIONS__ 1 3785 $ac_includes_default 3786int 3787main () 3788{ 3789 3790 ; 3791 return 0; 3792} 3793_ACEOF 3794if ac_fn_c_try_compile "$LINENO"; then : 3795 ac_cv_safe_to_define___extensions__=yes 3796else 3797 ac_cv_safe_to_define___extensions__=no 3798fi 3799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3800fi 3801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3802$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3803 test $ac_cv_safe_to_define___extensions__ = yes && 3804 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3805 3806 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3807 3808 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3809 3810 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3811 3812 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3813 3814 3815 3816libtool_VERSION=1:0:0 3817 3818 3819# 1.11.1: Require that version of automake. 3820# foreign: Don't require README, INSTALL, NEWS, etc. 3821# no-define: Don't define PACKAGE and VERSION. 3822# no-dependencies: Don't generate automatic dependencies. 3823# (because it breaks when using bootstrap-lean, since some of the 3824# headers are gone at "make install" time). 3825# -Wall: Issue all automake warnings. 3826# -Wno-portability: Don't warn about constructs supported by GNU make. 3827# (because GCC requires GNU make anyhow). 3828am__api_version='1.11' 3829 3830# Find a good install program. We prefer a C program (faster), 3831# so one script is as good as another. But avoid the broken or 3832# incompatible versions: 3833# SysV /etc/install, /usr/sbin/install 3834# SunOS /usr/etc/install 3835# IRIX /sbin/install 3836# AIX /bin/install 3837# AmigaOS /C/install, which installs bootblocks on floppy discs 3838# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3839# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3840# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3841# OS/2's system install, which has a completely different semantic 3842# ./install, which can be erroneously created by make from ./install.sh. 3843# Reject install programs that cannot install multiple files. 3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3845$as_echo_n "checking for a BSD-compatible install... " >&6; } 3846if test -z "$INSTALL"; then 3847if test "${ac_cv_path_install+set}" = set; then : 3848 $as_echo_n "(cached) " >&6 3849else 3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3851for as_dir in $PATH 3852do 3853 IFS=$as_save_IFS 3854 test -z "$as_dir" && as_dir=. 3855 # Account for people who put trailing slashes in PATH elements. 3856case $as_dir/ in #(( 3857 ./ | .// | /[cC]/* | \ 3858 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3859 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3860 /usr/ucb/* ) ;; 3861 *) 3862 # OSF1 and SCO ODT 3.0 have their own names for install. 3863 # Don't use installbsd from OSF since it installs stuff as root 3864 # by default. 3865 for ac_prog in ginstall scoinst install; do 3866 for ac_exec_ext in '' $ac_executable_extensions; do 3867 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3868 if test $ac_prog = install && 3869 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3870 # AIX install. It has an incompatible calling convention. 3871 : 3872 elif test $ac_prog = install && 3873 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3874 # program-specific install script used by HP pwplus--don't use. 3875 : 3876 else 3877 rm -rf conftest.one conftest.two conftest.dir 3878 echo one > conftest.one 3879 echo two > conftest.two 3880 mkdir conftest.dir 3881 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3882 test -s conftest.one && test -s conftest.two && 3883 test -s conftest.dir/conftest.one && 3884 test -s conftest.dir/conftest.two 3885 then 3886 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3887 break 3 3888 fi 3889 fi 3890 fi 3891 done 3892 done 3893 ;; 3894esac 3895 3896 done 3897IFS=$as_save_IFS 3898 3899rm -rf conftest.one conftest.two conftest.dir 3900 3901fi 3902 if test "${ac_cv_path_install+set}" = set; then 3903 INSTALL=$ac_cv_path_install 3904 else 3905 # As a last resort, use the slow shell script. Don't cache a 3906 # value for INSTALL within a source directory, because that will 3907 # break other packages using the cache if that directory is 3908 # removed, or if the value is a relative name. 3909 INSTALL=$ac_install_sh 3910 fi 3911fi 3912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3913$as_echo "$INSTALL" >&6; } 3914 3915# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3916# It thinks the first close brace ends the variable substitution. 3917test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3918 3919test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3920 3921test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3922 3923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3924$as_echo_n "checking whether build environment is sane... " >&6; } 3925# Just in case 3926sleep 1 3927echo timestamp > conftest.file 3928# Reject unsafe characters in $srcdir or the absolute working directory 3929# name. Accept space and tab only in the latter. 3930am_lf=' 3931' 3932case `pwd` in 3933 *[\\\"\#\$\&\'\`$am_lf]*) 3934 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 3935esac 3936case $srcdir in 3937 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3938 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 3939esac 3940 3941# Do `set' in a subshell so we don't clobber the current shell's 3942# arguments. Must try -L first in case configure is actually a 3943# symlink; some systems play weird games with the mod time of symlinks 3944# (eg FreeBSD returns the mod time of the symlink's containing 3945# directory). 3946if ( 3947 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3948 if test "$*" = "X"; then 3949 # -L didn't work. 3950 set X `ls -t "$srcdir/configure" conftest.file` 3951 fi 3952 rm -f conftest.file 3953 if test "$*" != "X $srcdir/configure conftest.file" \ 3954 && test "$*" != "X conftest.file $srcdir/configure"; then 3955 3956 # If neither matched, then we have a broken ls. This can happen 3957 # if, for instance, CONFIG_SHELL is bash and it inherits a 3958 # broken ls alias from the environment. This has actually 3959 # happened. Such a system could not be considered "sane". 3960 as_fn_error "ls -t appears to fail. Make sure there is not a broken 3961alias in your environment" "$LINENO" 5 3962 fi 3963 3964 test "$2" = conftest.file 3965 ) 3966then 3967 # Ok. 3968 : 3969else 3970 as_fn_error "newly created file is older than distributed files! 3971Check your system clock" "$LINENO" 5 3972fi 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3974$as_echo "yes" >&6; } 3975test "$program_prefix" != NONE && 3976 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3977# Use a double $ so make ignores it. 3978test "$program_suffix" != NONE && 3979 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3980# Double any \ or $. 3981# By default was `s,x,x', remove it if useless. 3982ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3983program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3984 3985# expand $ac_aux_dir to an absolute path 3986am_aux_dir=`cd $ac_aux_dir && pwd` 3987 3988if test x"${MISSING+set}" != xset; then 3989 case $am_aux_dir in 3990 *\ * | *\ *) 3991 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3992 *) 3993 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3994 esac 3995fi 3996# Use eval to expand $SHELL 3997if eval "$MISSING --run true"; then 3998 am_missing_run="$MISSING --run " 3999else 4000 am_missing_run= 4001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 4002$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 4003fi 4004 4005if test x"${install_sh}" != xset; then 4006 case $am_aux_dir in 4007 *\ * | *\ *) 4008 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 4009 *) 4010 install_sh="\${SHELL} $am_aux_dir/install-sh" 4011 esac 4012fi 4013 4014# Installed binaries are usually stripped using `strip' when the user 4015# run `make install-strip'. However `strip' might not be the right 4016# tool to use in cross-compilation environments, therefore Automake 4017# will honor the `STRIP' environment variable to overrule this program. 4018if test "$cross_compiling" != no; then 4019 if test -n "$ac_tool_prefix"; then 4020 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4021set dummy ${ac_tool_prefix}strip; ac_word=$2 4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4023$as_echo_n "checking for $ac_word... " >&6; } 4024if test "${ac_cv_prog_STRIP+set}" = set; then : 4025 $as_echo_n "(cached) " >&6 4026else 4027 if test -n "$STRIP"; then 4028 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4029else 4030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4031for as_dir in $PATH 4032do 4033 IFS=$as_save_IFS 4034 test -z "$as_dir" && as_dir=. 4035 for ac_exec_ext in '' $ac_executable_extensions; do 4036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4037 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4039 break 2 4040 fi 4041done 4042 done 4043IFS=$as_save_IFS 4044 4045fi 4046fi 4047STRIP=$ac_cv_prog_STRIP 4048if test -n "$STRIP"; then 4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4050$as_echo "$STRIP" >&6; } 4051else 4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4053$as_echo "no" >&6; } 4054fi 4055 4056 4057fi 4058if test -z "$ac_cv_prog_STRIP"; then 4059 ac_ct_STRIP=$STRIP 4060 # Extract the first word of "strip", so it can be a program name with args. 4061set dummy strip; ac_word=$2 4062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4063$as_echo_n "checking for $ac_word... " >&6; } 4064if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 4065 $as_echo_n "(cached) " >&6 4066else 4067 if test -n "$ac_ct_STRIP"; then 4068 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4069else 4070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4071for as_dir in $PATH 4072do 4073 IFS=$as_save_IFS 4074 test -z "$as_dir" && as_dir=. 4075 for ac_exec_ext in '' $ac_executable_extensions; do 4076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4077 ac_cv_prog_ac_ct_STRIP="strip" 4078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4079 break 2 4080 fi 4081done 4082 done 4083IFS=$as_save_IFS 4084 4085fi 4086fi 4087ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4088if test -n "$ac_ct_STRIP"; then 4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 4090$as_echo "$ac_ct_STRIP" >&6; } 4091else 4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4093$as_echo "no" >&6; } 4094fi 4095 4096 if test "x$ac_ct_STRIP" = x; then 4097 STRIP=":" 4098 else 4099 case $cross_compiling:$ac_tool_warned in 4100yes:) 4101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4103ac_tool_warned=yes ;; 4104esac 4105 STRIP=$ac_ct_STRIP 4106 fi 4107else 4108 STRIP="$ac_cv_prog_STRIP" 4109fi 4110 4111fi 4112INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 4113 4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 4115$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 4116if test -z "$MKDIR_P"; then 4117 if test "${ac_cv_path_mkdir+set}" = set; then : 4118 $as_echo_n "(cached) " >&6 4119else 4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4121for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 4122do 4123 IFS=$as_save_IFS 4124 test -z "$as_dir" && as_dir=. 4125 for ac_prog in mkdir gmkdir; do 4126 for ac_exec_ext in '' $ac_executable_extensions; do 4127 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 4128 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 4129 'mkdir (GNU coreutils) '* | \ 4130 'mkdir (coreutils) '* | \ 4131 'mkdir (fileutils) '4.1*) 4132 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 4133 break 3;; 4134 esac 4135 done 4136 done 4137 done 4138IFS=$as_save_IFS 4139 4140fi 4141 4142 if test "${ac_cv_path_mkdir+set}" = set; then 4143 MKDIR_P="$ac_cv_path_mkdir -p" 4144 else 4145 # As a last resort, use the slow shell script. Don't cache a 4146 # value for MKDIR_P within a source directory, because that will 4147 # break other packages using the cache if that directory is 4148 # removed, or if the value is a relative name. 4149 test -d ./--version && rmdir ./--version 4150 MKDIR_P="$ac_install_sh -d" 4151 fi 4152fi 4153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4154$as_echo "$MKDIR_P" >&6; } 4155 4156mkdir_p="$MKDIR_P" 4157case $mkdir_p in 4158 [\\/$]* | ?:[\\/]*) ;; 4159 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 4160esac 4161 4162for ac_prog in gawk mawk nawk awk 4163do 4164 # Extract the first word of "$ac_prog", so it can be a program name with args. 4165set dummy $ac_prog; ac_word=$2 4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4167$as_echo_n "checking for $ac_word... " >&6; } 4168if test "${ac_cv_prog_AWK+set}" = set; then : 4169 $as_echo_n "(cached) " >&6 4170else 4171 if test -n "$AWK"; then 4172 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4173else 4174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4175for as_dir in $PATH 4176do 4177 IFS=$as_save_IFS 4178 test -z "$as_dir" && as_dir=. 4179 for ac_exec_ext in '' $ac_executable_extensions; do 4180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4181 ac_cv_prog_AWK="$ac_prog" 4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4183 break 2 4184 fi 4185done 4186 done 4187IFS=$as_save_IFS 4188 4189fi 4190fi 4191AWK=$ac_cv_prog_AWK 4192if test -n "$AWK"; then 4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4194$as_echo "$AWK" >&6; } 4195else 4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4197$as_echo "no" >&6; } 4198fi 4199 4200 4201 test -n "$AWK" && break 4202done 4203 4204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4205$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4206set x ${MAKE-make} 4207ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4208if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 4209 $as_echo_n "(cached) " >&6 4210else 4211 cat >conftest.make <<\_ACEOF 4212SHELL = /bin/sh 4213all: 4214 @echo '@@@%%%=$(MAKE)=@@@%%%' 4215_ACEOF 4216# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 4217case `${MAKE-make} -f conftest.make 2>/dev/null` in 4218 *@@@%%%=?*=@@@%%%*) 4219 eval ac_cv_prog_make_${ac_make}_set=yes;; 4220 *) 4221 eval ac_cv_prog_make_${ac_make}_set=no;; 4222esac 4223rm -f conftest.make 4224fi 4225if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4227$as_echo "yes" >&6; } 4228 SET_MAKE= 4229else 4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4231$as_echo "no" >&6; } 4232 SET_MAKE="MAKE=${MAKE-make}" 4233fi 4234 4235rm -rf .tst 2>/dev/null 4236mkdir .tst 2>/dev/null 4237if test -d .tst; then 4238 am__leading_dot=. 4239else 4240 am__leading_dot=_ 4241fi 4242rmdir .tst 2>/dev/null 4243 4244if test "`cd $srcdir && pwd`" != "`pwd`"; then 4245 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4246 # is not polluted with repeated "-I." 4247 am__isrc=' -I$(srcdir)' 4248 # test to see if srcdir already configured 4249 if test -f $srcdir/config.status; then 4250 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4251 fi 4252fi 4253 4254# test whether we have cygpath 4255if test -z "$CYGPATH_W"; then 4256 if (cygpath --version) >/dev/null 2>/dev/null; then 4257 CYGPATH_W='cygpath -w' 4258 else 4259 CYGPATH_W=echo 4260 fi 4261fi 4262 4263 4264# Define the identity of the package. 4265 PACKAGE='libbacktrace' 4266 VERSION='version-unused' 4267 4268 4269# Some tools Automake needs. 4270 4271ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4272 4273 4274AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4275 4276 4277AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4278 4279 4280AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4281 4282 4283MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4284 4285# We need awk for the "check" target. The system "awk" is bad on 4286# some platforms. 4287# Always define AMTAR for backward compatibility. 4288 4289AMTAR=${AMTAR-"${am_missing_run}tar"} 4290 4291am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 4292 4293 4294 4295 4296 4297 4298 4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4300$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4301 # Check whether --enable-maintainer-mode was given. 4302if test "${enable_maintainer_mode+set}" = set; then : 4303 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4304else 4305 USE_MAINTAINER_MODE=no 4306fi 4307 4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4309$as_echo "$USE_MAINTAINER_MODE" >&6; } 4310 if test $USE_MAINTAINER_MODE = yes; then 4311 MAINTAINER_MODE_TRUE= 4312 MAINTAINER_MODE_FALSE='#' 4313else 4314 MAINTAINER_MODE_TRUE='#' 4315 MAINTAINER_MODE_FALSE= 4316fi 4317 4318 MAINT=$MAINTAINER_MODE_TRUE 4319 4320 4321 4322 4323# Check whether --with-target-subdir was given. 4324if test "${with_target_subdir+set}" = set; then : 4325 withval=$with_target_subdir; 4326fi 4327 4328 4329# We must force CC to /not/ be precious variables; otherwise 4330# the wrong, non-multilib-adjusted value will be used in multilibs. 4331# As a side effect, we have to subst CFLAGS ourselves. 4332 4333 4334ac_ext=c 4335ac_cpp='$CPP $CPPFLAGS' 4336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4338ac_compiler_gnu=$ac_cv_c_compiler_gnu 4339if test -n "$ac_tool_prefix"; then 4340 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4341set dummy ${ac_tool_prefix}gcc; ac_word=$2 4342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4343$as_echo_n "checking for $ac_word... " >&6; } 4344if test "${ac_cv_prog_CC+set}" = set; then : 4345 $as_echo_n "(cached) " >&6 4346else 4347 if test -n "$CC"; then 4348 ac_cv_prog_CC="$CC" # Let the user override the test. 4349else 4350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4351for as_dir in $PATH 4352do 4353 IFS=$as_save_IFS 4354 test -z "$as_dir" && as_dir=. 4355 for ac_exec_ext in '' $ac_executable_extensions; do 4356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4357 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4359 break 2 4360 fi 4361done 4362 done 4363IFS=$as_save_IFS 4364 4365fi 4366fi 4367CC=$ac_cv_prog_CC 4368if test -n "$CC"; then 4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4370$as_echo "$CC" >&6; } 4371else 4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4373$as_echo "no" >&6; } 4374fi 4375 4376 4377fi 4378if test -z "$ac_cv_prog_CC"; then 4379 ac_ct_CC=$CC 4380 # Extract the first word of "gcc", so it can be a program name with args. 4381set dummy gcc; ac_word=$2 4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4383$as_echo_n "checking for $ac_word... " >&6; } 4384if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4385 $as_echo_n "(cached) " >&6 4386else 4387 if test -n "$ac_ct_CC"; then 4388 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4389else 4390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4391for as_dir in $PATH 4392do 4393 IFS=$as_save_IFS 4394 test -z "$as_dir" && as_dir=. 4395 for ac_exec_ext in '' $ac_executable_extensions; do 4396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4397 ac_cv_prog_ac_ct_CC="gcc" 4398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4399 break 2 4400 fi 4401done 4402 done 4403IFS=$as_save_IFS 4404 4405fi 4406fi 4407ac_ct_CC=$ac_cv_prog_ac_ct_CC 4408if test -n "$ac_ct_CC"; then 4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4410$as_echo "$ac_ct_CC" >&6; } 4411else 4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4413$as_echo "no" >&6; } 4414fi 4415 4416 if test "x$ac_ct_CC" = x; then 4417 CC="" 4418 else 4419 case $cross_compiling:$ac_tool_warned in 4420yes:) 4421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4423ac_tool_warned=yes ;; 4424esac 4425 CC=$ac_ct_CC 4426 fi 4427else 4428 CC="$ac_cv_prog_CC" 4429fi 4430 4431if test -z "$CC"; then 4432 if test -n "$ac_tool_prefix"; then 4433 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4434set dummy ${ac_tool_prefix}cc; ac_word=$2 4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4436$as_echo_n "checking for $ac_word... " >&6; } 4437if test "${ac_cv_prog_CC+set}" = set; then : 4438 $as_echo_n "(cached) " >&6 4439else 4440 if test -n "$CC"; then 4441 ac_cv_prog_CC="$CC" # Let the user override the test. 4442else 4443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4444for as_dir in $PATH 4445do 4446 IFS=$as_save_IFS 4447 test -z "$as_dir" && as_dir=. 4448 for ac_exec_ext in '' $ac_executable_extensions; do 4449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4450 ac_cv_prog_CC="${ac_tool_prefix}cc" 4451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4452 break 2 4453 fi 4454done 4455 done 4456IFS=$as_save_IFS 4457 4458fi 4459fi 4460CC=$ac_cv_prog_CC 4461if test -n "$CC"; then 4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4463$as_echo "$CC" >&6; } 4464else 4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4466$as_echo "no" >&6; } 4467fi 4468 4469 4470 fi 4471fi 4472if test -z "$CC"; then 4473 # Extract the first word of "cc", so it can be a program name with args. 4474set dummy cc; ac_word=$2 4475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4476$as_echo_n "checking for $ac_word... " >&6; } 4477if test "${ac_cv_prog_CC+set}" = set; then : 4478 $as_echo_n "(cached) " >&6 4479else 4480 if test -n "$CC"; then 4481 ac_cv_prog_CC="$CC" # Let the user override the test. 4482else 4483 ac_prog_rejected=no 4484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4485for as_dir in $PATH 4486do 4487 IFS=$as_save_IFS 4488 test -z "$as_dir" && as_dir=. 4489 for ac_exec_ext in '' $ac_executable_extensions; do 4490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4491 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4492 ac_prog_rejected=yes 4493 continue 4494 fi 4495 ac_cv_prog_CC="cc" 4496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4497 break 2 4498 fi 4499done 4500 done 4501IFS=$as_save_IFS 4502 4503if test $ac_prog_rejected = yes; then 4504 # We found a bogon in the path, so make sure we never use it. 4505 set dummy $ac_cv_prog_CC 4506 shift 4507 if test $# != 0; then 4508 # We chose a different compiler from the bogus one. 4509 # However, it has the same basename, so the bogon will be chosen 4510 # first if we set CC to just the basename; use the full file name. 4511 shift 4512 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4513 fi 4514fi 4515fi 4516fi 4517CC=$ac_cv_prog_CC 4518if test -n "$CC"; then 4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4520$as_echo "$CC" >&6; } 4521else 4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4523$as_echo "no" >&6; } 4524fi 4525 4526 4527fi 4528if test -z "$CC"; then 4529 if test -n "$ac_tool_prefix"; then 4530 for ac_prog in cl.exe 4531 do 4532 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4533set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4535$as_echo_n "checking for $ac_word... " >&6; } 4536if test "${ac_cv_prog_CC+set}" = set; then : 4537 $as_echo_n "(cached) " >&6 4538else 4539 if test -n "$CC"; then 4540 ac_cv_prog_CC="$CC" # Let the user override the test. 4541else 4542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4543for as_dir in $PATH 4544do 4545 IFS=$as_save_IFS 4546 test -z "$as_dir" && as_dir=. 4547 for ac_exec_ext in '' $ac_executable_extensions; do 4548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4549 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4551 break 2 4552 fi 4553done 4554 done 4555IFS=$as_save_IFS 4556 4557fi 4558fi 4559CC=$ac_cv_prog_CC 4560if test -n "$CC"; then 4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4562$as_echo "$CC" >&6; } 4563else 4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4565$as_echo "no" >&6; } 4566fi 4567 4568 4569 test -n "$CC" && break 4570 done 4571fi 4572if test -z "$CC"; then 4573 ac_ct_CC=$CC 4574 for ac_prog in cl.exe 4575do 4576 # Extract the first word of "$ac_prog", so it can be a program name with args. 4577set dummy $ac_prog; ac_word=$2 4578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4579$as_echo_n "checking for $ac_word... " >&6; } 4580if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4581 $as_echo_n "(cached) " >&6 4582else 4583 if test -n "$ac_ct_CC"; then 4584 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4585else 4586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4587for as_dir in $PATH 4588do 4589 IFS=$as_save_IFS 4590 test -z "$as_dir" && as_dir=. 4591 for ac_exec_ext in '' $ac_executable_extensions; do 4592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4593 ac_cv_prog_ac_ct_CC="$ac_prog" 4594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4595 break 2 4596 fi 4597done 4598 done 4599IFS=$as_save_IFS 4600 4601fi 4602fi 4603ac_ct_CC=$ac_cv_prog_ac_ct_CC 4604if test -n "$ac_ct_CC"; then 4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4606$as_echo "$ac_ct_CC" >&6; } 4607else 4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4609$as_echo "no" >&6; } 4610fi 4611 4612 4613 test -n "$ac_ct_CC" && break 4614done 4615 4616 if test "x$ac_ct_CC" = x; then 4617 CC="" 4618 else 4619 case $cross_compiling:$ac_tool_warned in 4620yes:) 4621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4623ac_tool_warned=yes ;; 4624esac 4625 CC=$ac_ct_CC 4626 fi 4627fi 4628 4629fi 4630 4631 4632test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4634as_fn_error "no acceptable C compiler found in \$PATH 4635See \`config.log' for more details." "$LINENO" 5; } 4636 4637# Provide some information about the compiler. 4638$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4639set X $ac_compile 4640ac_compiler=$2 4641for ac_option in --version -v -V -qversion; do 4642 { { ac_try="$ac_compiler $ac_option >&5" 4643case "(($ac_try" in 4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4645 *) ac_try_echo=$ac_try;; 4646esac 4647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4648$as_echo "$ac_try_echo"; } >&5 4649 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4650 ac_status=$? 4651 if test -s conftest.err; then 4652 sed '10a\ 4653... rest of stderr output deleted ... 4654 10q' conftest.err >conftest.er1 4655 cat conftest.er1 >&5 4656 rm -f conftest.er1 conftest.err 4657 fi 4658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4659 test $ac_status = 0; } 4660done 4661 4662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4663$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4664if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4665 $as_echo_n "(cached) " >&6 4666else 4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4668/* end confdefs.h. */ 4669 4670int 4671main () 4672{ 4673#ifndef __GNUC__ 4674 choke me 4675#endif 4676 4677 ; 4678 return 0; 4679} 4680_ACEOF 4681if ac_fn_c_try_compile "$LINENO"; then : 4682 ac_compiler_gnu=yes 4683else 4684 ac_compiler_gnu=no 4685fi 4686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4687ac_cv_c_compiler_gnu=$ac_compiler_gnu 4688 4689fi 4690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4691$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4692if test $ac_compiler_gnu = yes; then 4693 GCC=yes 4694else 4695 GCC= 4696fi 4697ac_test_CFLAGS=${CFLAGS+set} 4698ac_save_CFLAGS=$CFLAGS 4699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4700$as_echo_n "checking whether $CC accepts -g... " >&6; } 4701if test "${ac_cv_prog_cc_g+set}" = set; then : 4702 $as_echo_n "(cached) " >&6 4703else 4704 ac_save_c_werror_flag=$ac_c_werror_flag 4705 ac_c_werror_flag=yes 4706 ac_cv_prog_cc_g=no 4707 CFLAGS="-g" 4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4709/* end confdefs.h. */ 4710 4711int 4712main () 4713{ 4714 4715 ; 4716 return 0; 4717} 4718_ACEOF 4719if ac_fn_c_try_compile "$LINENO"; then : 4720 ac_cv_prog_cc_g=yes 4721else 4722 CFLAGS="" 4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4724/* end confdefs.h. */ 4725 4726int 4727main () 4728{ 4729 4730 ; 4731 return 0; 4732} 4733_ACEOF 4734if ac_fn_c_try_compile "$LINENO"; then : 4735 4736else 4737 ac_c_werror_flag=$ac_save_c_werror_flag 4738 CFLAGS="-g" 4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4740/* end confdefs.h. */ 4741 4742int 4743main () 4744{ 4745 4746 ; 4747 return 0; 4748} 4749_ACEOF 4750if ac_fn_c_try_compile "$LINENO"; then : 4751 ac_cv_prog_cc_g=yes 4752fi 4753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4754fi 4755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4756fi 4757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4758 ac_c_werror_flag=$ac_save_c_werror_flag 4759fi 4760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4761$as_echo "$ac_cv_prog_cc_g" >&6; } 4762if test "$ac_test_CFLAGS" = set; then 4763 CFLAGS=$ac_save_CFLAGS 4764elif test $ac_cv_prog_cc_g = yes; then 4765 if test "$GCC" = yes; then 4766 CFLAGS="-g -O2" 4767 else 4768 CFLAGS="-g" 4769 fi 4770else 4771 if test "$GCC" = yes; then 4772 CFLAGS="-O2" 4773 else 4774 CFLAGS= 4775 fi 4776fi 4777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4778$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4779if test "${ac_cv_prog_cc_c89+set}" = set; then : 4780 $as_echo_n "(cached) " >&6 4781else 4782 ac_cv_prog_cc_c89=no 4783ac_save_CC=$CC 4784cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4785/* end confdefs.h. */ 4786#include <stdarg.h> 4787#include <stdio.h> 4788#include <sys/types.h> 4789#include <sys/stat.h> 4790/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4791struct buf { int x; }; 4792FILE * (*rcsopen) (struct buf *, struct stat *, int); 4793static char *e (p, i) 4794 char **p; 4795 int i; 4796{ 4797 return p[i]; 4798} 4799static char *f (char * (*g) (char **, int), char **p, ...) 4800{ 4801 char *s; 4802 va_list v; 4803 va_start (v,p); 4804 s = g (p, va_arg (v,int)); 4805 va_end (v); 4806 return s; 4807} 4808 4809/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4810 function prototypes and stuff, but not '\xHH' hex character constants. 4811 These don't provoke an error unfortunately, instead are silently treated 4812 as 'x'. The following induces an error, until -std is added to get 4813 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4814 array size at least. It's necessary to write '\x00'==0 to get something 4815 that's true only with -std. */ 4816int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4817 4818/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4819 inside strings and character constants. */ 4820#define FOO(x) 'x' 4821int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4822 4823int test (int i, double x); 4824struct s1 {int (*f) (int a);}; 4825struct s2 {int (*f) (double a);}; 4826int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4827int argc; 4828char **argv; 4829int 4830main () 4831{ 4832return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4833 ; 4834 return 0; 4835} 4836_ACEOF 4837for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4838 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4839do 4840 CC="$ac_save_CC $ac_arg" 4841 if ac_fn_c_try_compile "$LINENO"; then : 4842 ac_cv_prog_cc_c89=$ac_arg 4843fi 4844rm -f core conftest.err conftest.$ac_objext 4845 test "x$ac_cv_prog_cc_c89" != "xno" && break 4846done 4847rm -f conftest.$ac_ext 4848CC=$ac_save_CC 4849 4850fi 4851# AC_CACHE_VAL 4852case "x$ac_cv_prog_cc_c89" in 4853 x) 4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4855$as_echo "none needed" >&6; } ;; 4856 xno) 4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4858$as_echo "unsupported" >&6; } ;; 4859 *) 4860 CC="$CC $ac_cv_prog_cc_c89" 4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4862$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4863esac 4864if test "x$ac_cv_prog_cc_c89" != xno; then : 4865 4866fi 4867 4868ac_ext=c 4869ac_cpp='$CPP $CPPFLAGS' 4870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4872ac_compiler_gnu=$ac_cv_c_compiler_gnu 4873 4874 4875 4876 4877 4878if test -n "$ac_tool_prefix"; then 4879 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4880set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4882$as_echo_n "checking for $ac_word... " >&6; } 4883if test "${ac_cv_prog_RANLIB+set}" = set; then : 4884 $as_echo_n "(cached) " >&6 4885else 4886 if test -n "$RANLIB"; then 4887 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4888else 4889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4890for as_dir in $PATH 4891do 4892 IFS=$as_save_IFS 4893 test -z "$as_dir" && as_dir=. 4894 for ac_exec_ext in '' $ac_executable_extensions; do 4895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4896 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4898 break 2 4899 fi 4900done 4901 done 4902IFS=$as_save_IFS 4903 4904fi 4905fi 4906RANLIB=$ac_cv_prog_RANLIB 4907if test -n "$RANLIB"; then 4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4909$as_echo "$RANLIB" >&6; } 4910else 4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4912$as_echo "no" >&6; } 4913fi 4914 4915 4916fi 4917if test -z "$ac_cv_prog_RANLIB"; then 4918 ac_ct_RANLIB=$RANLIB 4919 # Extract the first word of "ranlib", so it can be a program name with args. 4920set dummy ranlib; ac_word=$2 4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4922$as_echo_n "checking for $ac_word... " >&6; } 4923if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 4924 $as_echo_n "(cached) " >&6 4925else 4926 if test -n "$ac_ct_RANLIB"; then 4927 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4928else 4929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4930for as_dir in $PATH 4931do 4932 IFS=$as_save_IFS 4933 test -z "$as_dir" && as_dir=. 4934 for ac_exec_ext in '' $ac_executable_extensions; do 4935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4936 ac_cv_prog_ac_ct_RANLIB="ranlib" 4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4938 break 2 4939 fi 4940done 4941 done 4942IFS=$as_save_IFS 4943 4944fi 4945fi 4946ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4947if test -n "$ac_ct_RANLIB"; then 4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4949$as_echo "$ac_ct_RANLIB" >&6; } 4950else 4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4952$as_echo "no" >&6; } 4953fi 4954 4955 if test "x$ac_ct_RANLIB" = x; then 4956 RANLIB=":" 4957 else 4958 case $cross_compiling:$ac_tool_warned in 4959yes:) 4960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4962ac_tool_warned=yes ;; 4963esac 4964 RANLIB=$ac_ct_RANLIB 4965 fi 4966else 4967 RANLIB="$ac_cv_prog_RANLIB" 4968fi 4969 4970 4971for ac_prog in gawk mawk nawk awk 4972do 4973 # Extract the first word of "$ac_prog", so it can be a program name with args. 4974set dummy $ac_prog; ac_word=$2 4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4976$as_echo_n "checking for $ac_word... " >&6; } 4977if test "${ac_cv_prog_AWK+set}" = set; then : 4978 $as_echo_n "(cached) " >&6 4979else 4980 if test -n "$AWK"; then 4981 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4982else 4983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4984for as_dir in $PATH 4985do 4986 IFS=$as_save_IFS 4987 test -z "$as_dir" && as_dir=. 4988 for ac_exec_ext in '' $ac_executable_extensions; do 4989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4990 ac_cv_prog_AWK="$ac_prog" 4991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4992 break 2 4993 fi 4994done 4995 done 4996IFS=$as_save_IFS 4997 4998fi 4999fi 5000AWK=$ac_cv_prog_AWK 5001if test -n "$AWK"; then 5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5003$as_echo "$AWK" >&6; } 5004else 5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5006$as_echo "no" >&6; } 5007fi 5008 5009 5010 test -n "$AWK" && break 5011done 5012 5013case "$AWK" in 5014"") as_fn_error "can't build without awk" "$LINENO" 5 ;; 5015esac 5016 5017case `pwd` in 5018 *\ * | *\ *) 5019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5020$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5021esac 5022 5023 5024 5025macro_version='2.2.7a' 5026macro_revision='1.3134' 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040ltmain="$ac_aux_dir/ltmain.sh" 5041 5042# Backslashify metacharacters that are still active within 5043# double-quoted strings. 5044sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5045 5046# Same as above, but do not quote variable references. 5047double_quote_subst='s/\(["`\\]\)/\\\1/g' 5048 5049# Sed substitution to delay expansion of an escaped shell variable in a 5050# double_quote_subst'ed string. 5051delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5052 5053# Sed substitution to delay expansion of an escaped single quote. 5054delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5055 5056# Sed substitution to avoid accidental globbing in evaled expressions 5057no_glob_subst='s/\*/\\\*/g' 5058 5059ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5060ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5061ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5062 5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5064$as_echo_n "checking how to print strings... " >&6; } 5065# Test print first, because it will be a builtin if present. 5066if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 5067 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5068 ECHO='print -r --' 5069elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5070 ECHO='printf %s\n' 5071else 5072 # Use this function as a fallback that always works. 5073 func_fallback_echo () 5074 { 5075 eval 'cat <<_LTECHO_EOF 5076$1 5077_LTECHO_EOF' 5078 } 5079 ECHO='func_fallback_echo' 5080fi 5081 5082# func_echo_all arg... 5083# Invoke $ECHO with all args, space-separated. 5084func_echo_all () 5085{ 5086 $ECHO "" 5087} 5088 5089case "$ECHO" in 5090 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5091$as_echo "printf" >&6; } ;; 5092 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5093$as_echo "print -r" >&6; } ;; 5094 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5095$as_echo "cat" >&6; } ;; 5096esac 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5112$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5113if test "${ac_cv_path_SED+set}" = set; then : 5114 $as_echo_n "(cached) " >&6 5115else 5116 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5117 for ac_i in 1 2 3 4 5 6 7; do 5118 ac_script="$ac_script$as_nl$ac_script" 5119 done 5120 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5121 { ac_script=; unset ac_script;} 5122 if test -z "$SED"; then 5123 ac_path_SED_found=false 5124 # Loop through the user's path and test for each of PROGNAME-LIST 5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5126for as_dir in $PATH 5127do 5128 IFS=$as_save_IFS 5129 test -z "$as_dir" && as_dir=. 5130 for ac_prog in sed gsed; do 5131 for ac_exec_ext in '' $ac_executable_extensions; do 5132 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5133 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5134# Check for GNU ac_path_SED and select it if it is found. 5135 # Check for GNU $ac_path_SED 5136case `"$ac_path_SED" --version 2>&1` in 5137*GNU*) 5138 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5139*) 5140 ac_count=0 5141 $as_echo_n 0123456789 >"conftest.in" 5142 while : 5143 do 5144 cat "conftest.in" "conftest.in" >"conftest.tmp" 5145 mv "conftest.tmp" "conftest.in" 5146 cp "conftest.in" "conftest.nl" 5147 $as_echo '' >> "conftest.nl" 5148 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5149 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5150 as_fn_arith $ac_count + 1 && ac_count=$as_val 5151 if test $ac_count -gt ${ac_path_SED_max-0}; then 5152 # Best one so far, save it but keep looking for a better one 5153 ac_cv_path_SED="$ac_path_SED" 5154 ac_path_SED_max=$ac_count 5155 fi 5156 # 10*(2^10) chars as input seems more than enough 5157 test $ac_count -gt 10 && break 5158 done 5159 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5160esac 5161 5162 $ac_path_SED_found && break 3 5163 done 5164 done 5165 done 5166IFS=$as_save_IFS 5167 if test -z "$ac_cv_path_SED"; then 5168 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 5169 fi 5170else 5171 ac_cv_path_SED=$SED 5172fi 5173 5174fi 5175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5176$as_echo "$ac_cv_path_SED" >&6; } 5177 SED="$ac_cv_path_SED" 5178 rm -f conftest.sed 5179 5180test -z "$SED" && SED=sed 5181Xsed="$SED -e 1s/^X//" 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5194$as_echo_n "checking for fgrep... " >&6; } 5195if test "${ac_cv_path_FGREP+set}" = set; then : 5196 $as_echo_n "(cached) " >&6 5197else 5198 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5199 then ac_cv_path_FGREP="$GREP -F" 5200 else 5201 if test -z "$FGREP"; then 5202 ac_path_FGREP_found=false 5203 # Loop through the user's path and test for each of PROGNAME-LIST 5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5205for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5206do 5207 IFS=$as_save_IFS 5208 test -z "$as_dir" && as_dir=. 5209 for ac_prog in fgrep; do 5210 for ac_exec_ext in '' $ac_executable_extensions; do 5211 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5212 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5213# Check for GNU ac_path_FGREP and select it if it is found. 5214 # Check for GNU $ac_path_FGREP 5215case `"$ac_path_FGREP" --version 2>&1` in 5216*GNU*) 5217 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5218*) 5219 ac_count=0 5220 $as_echo_n 0123456789 >"conftest.in" 5221 while : 5222 do 5223 cat "conftest.in" "conftest.in" >"conftest.tmp" 5224 mv "conftest.tmp" "conftest.in" 5225 cp "conftest.in" "conftest.nl" 5226 $as_echo 'FGREP' >> "conftest.nl" 5227 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5228 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5229 as_fn_arith $ac_count + 1 && ac_count=$as_val 5230 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5231 # Best one so far, save it but keep looking for a better one 5232 ac_cv_path_FGREP="$ac_path_FGREP" 5233 ac_path_FGREP_max=$ac_count 5234 fi 5235 # 10*(2^10) chars as input seems more than enough 5236 test $ac_count -gt 10 && break 5237 done 5238 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5239esac 5240 5241 $ac_path_FGREP_found && break 3 5242 done 5243 done 5244 done 5245IFS=$as_save_IFS 5246 if test -z "$ac_cv_path_FGREP"; then 5247 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5248 fi 5249else 5250 ac_cv_path_FGREP=$FGREP 5251fi 5252 5253 fi 5254fi 5255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5256$as_echo "$ac_cv_path_FGREP" >&6; } 5257 FGREP="$ac_cv_path_FGREP" 5258 5259 5260test -z "$GREP" && GREP=grep 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280# Check whether --with-gnu-ld was given. 5281if test "${with_gnu_ld+set}" = set; then : 5282 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5283else 5284 with_gnu_ld=no 5285fi 5286 5287ac_prog=ld 5288if test "$GCC" = yes; then 5289 # Check if gcc -print-prog-name=ld gives a path. 5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5291$as_echo_n "checking for ld used by $CC... " >&6; } 5292 case $host in 5293 *-*-mingw*) 5294 # gcc leaves a trailing carriage return which upsets mingw 5295 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5296 *) 5297 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5298 esac 5299 case $ac_prog in 5300 # Accept absolute paths. 5301 [\\/]* | ?:[\\/]*) 5302 re_direlt='/[^/][^/]*/\.\./' 5303 # Canonicalize the pathname of ld 5304 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5305 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5306 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5307 done 5308 test -z "$LD" && LD="$ac_prog" 5309 ;; 5310 "") 5311 # If it fails, then pretend we aren't using GCC. 5312 ac_prog=ld 5313 ;; 5314 *) 5315 # If it is relative, then search for the first ld in PATH. 5316 with_gnu_ld=unknown 5317 ;; 5318 esac 5319elif test "$with_gnu_ld" = yes; then 5320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5321$as_echo_n "checking for GNU ld... " >&6; } 5322else 5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5324$as_echo_n "checking for non-GNU ld... " >&6; } 5325fi 5326if test "${lt_cv_path_LD+set}" = set; then : 5327 $as_echo_n "(cached) " >&6 5328else 5329 if test -z "$LD"; then 5330 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5331 for ac_dir in $PATH; do 5332 IFS="$lt_save_ifs" 5333 test -z "$ac_dir" && ac_dir=. 5334 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5335 lt_cv_path_LD="$ac_dir/$ac_prog" 5336 # Check to see if the program is GNU ld. I'd rather use --version, 5337 # but apparently some variants of GNU ld only accept -v. 5338 # Break only if it was the GNU/non-GNU ld that we prefer. 5339 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5340 *GNU* | *'with BFD'*) 5341 test "$with_gnu_ld" != no && break 5342 ;; 5343 *) 5344 test "$with_gnu_ld" != yes && break 5345 ;; 5346 esac 5347 fi 5348 done 5349 IFS="$lt_save_ifs" 5350else 5351 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5352fi 5353fi 5354 5355LD="$lt_cv_path_LD" 5356if test -n "$LD"; then 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5358$as_echo "$LD" >&6; } 5359else 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5361$as_echo "no" >&6; } 5362fi 5363test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 5364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5365$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5366if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5367 $as_echo_n "(cached) " >&6 5368else 5369 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5370case `$LD -v 2>&1 </dev/null` in 5371*GNU* | *'with BFD'*) 5372 lt_cv_prog_gnu_ld=yes 5373 ;; 5374*) 5375 lt_cv_prog_gnu_ld=no 5376 ;; 5377esac 5378fi 5379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5380$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5381with_gnu_ld=$lt_cv_prog_gnu_ld 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5392$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5393if test "${lt_cv_path_NM+set}" = set; then : 5394 $as_echo_n "(cached) " >&6 5395else 5396 if test -n "$NM"; then 5397 # Let the user override the test. 5398 lt_cv_path_NM="$NM" 5399else 5400 lt_nm_to_check="${ac_tool_prefix}nm" 5401 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5402 lt_nm_to_check="$lt_nm_to_check nm" 5403 fi 5404 for lt_tmp_nm in $lt_nm_to_check; do 5405 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5406 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5407 IFS="$lt_save_ifs" 5408 test -z "$ac_dir" && ac_dir=. 5409 tmp_nm="$ac_dir/$lt_tmp_nm" 5410 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5411 # Check to see if the nm accepts a BSD-compat flag. 5412 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5413 # nm: unknown option "B" ignored 5414 # Tru64's nm complains that /dev/null is an invalid object file 5415 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5416 */dev/null* | *'Invalid file or object type'*) 5417 lt_cv_path_NM="$tmp_nm -B" 5418 break 5419 ;; 5420 *) 5421 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5422 */dev/null*) 5423 lt_cv_path_NM="$tmp_nm -p" 5424 break 5425 ;; 5426 *) 5427 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5428 continue # so that we can try to find one that supports BSD flags 5429 ;; 5430 esac 5431 ;; 5432 esac 5433 fi 5434 done 5435 IFS="$lt_save_ifs" 5436 done 5437 : ${lt_cv_path_NM=no} 5438fi 5439fi 5440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5441$as_echo "$lt_cv_path_NM" >&6; } 5442if test "$lt_cv_path_NM" != "no"; then 5443 NM="$lt_cv_path_NM" 5444else 5445 # Didn't find any BSD compatible name lister, look for dumpbin. 5446 if test -n "$DUMPBIN"; then : 5447 # Let the user override the test. 5448 else 5449 if test -n "$ac_tool_prefix"; then 5450 for ac_prog in dumpbin "link -dump" 5451 do 5452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5453set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5455$as_echo_n "checking for $ac_word... " >&6; } 5456if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5457 $as_echo_n "(cached) " >&6 5458else 5459 if test -n "$DUMPBIN"; then 5460 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5461else 5462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5463for as_dir in $PATH 5464do 5465 IFS=$as_save_IFS 5466 test -z "$as_dir" && as_dir=. 5467 for ac_exec_ext in '' $ac_executable_extensions; do 5468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5469 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5471 break 2 5472 fi 5473done 5474 done 5475IFS=$as_save_IFS 5476 5477fi 5478fi 5479DUMPBIN=$ac_cv_prog_DUMPBIN 5480if test -n "$DUMPBIN"; then 5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5482$as_echo "$DUMPBIN" >&6; } 5483else 5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5485$as_echo "no" >&6; } 5486fi 5487 5488 5489 test -n "$DUMPBIN" && break 5490 done 5491fi 5492if test -z "$DUMPBIN"; then 5493 ac_ct_DUMPBIN=$DUMPBIN 5494 for ac_prog in dumpbin "link -dump" 5495do 5496 # Extract the first word of "$ac_prog", so it can be a program name with args. 5497set dummy $ac_prog; ac_word=$2 5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5499$as_echo_n "checking for $ac_word... " >&6; } 5500if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 5501 $as_echo_n "(cached) " >&6 5502else 5503 if test -n "$ac_ct_DUMPBIN"; then 5504 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5505else 5506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5507for as_dir in $PATH 5508do 5509 IFS=$as_save_IFS 5510 test -z "$as_dir" && as_dir=. 5511 for ac_exec_ext in '' $ac_executable_extensions; do 5512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5513 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5515 break 2 5516 fi 5517done 5518 done 5519IFS=$as_save_IFS 5520 5521fi 5522fi 5523ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5524if test -n "$ac_ct_DUMPBIN"; then 5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5526$as_echo "$ac_ct_DUMPBIN" >&6; } 5527else 5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5529$as_echo "no" >&6; } 5530fi 5531 5532 5533 test -n "$ac_ct_DUMPBIN" && break 5534done 5535 5536 if test "x$ac_ct_DUMPBIN" = x; then 5537 DUMPBIN=":" 5538 else 5539 case $cross_compiling:$ac_tool_warned in 5540yes:) 5541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5543ac_tool_warned=yes ;; 5544esac 5545 DUMPBIN=$ac_ct_DUMPBIN 5546 fi 5547fi 5548 5549 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5550 *COFF*) 5551 DUMPBIN="$DUMPBIN -symbols" 5552 ;; 5553 *) 5554 DUMPBIN=: 5555 ;; 5556 esac 5557 fi 5558 5559 if test "$DUMPBIN" != ":"; then 5560 NM="$DUMPBIN" 5561 fi 5562fi 5563test -z "$NM" && NM=nm 5564 5565 5566 5567 5568 5569 5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5571$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5572if test "${lt_cv_nm_interface+set}" = set; then : 5573 $as_echo_n "(cached) " >&6 5574else 5575 lt_cv_nm_interface="BSD nm" 5576 echo "int some_variable = 0;" > conftest.$ac_ext 5577 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5578 (eval "$ac_compile" 2>conftest.err) 5579 cat conftest.err >&5 5580 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5581 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5582 cat conftest.err >&5 5583 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5584 cat conftest.out >&5 5585 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5586 lt_cv_nm_interface="MS dumpbin" 5587 fi 5588 rm -f conftest* 5589fi 5590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5591$as_echo "$lt_cv_nm_interface" >&6; } 5592 5593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5594$as_echo_n "checking whether ln -s works... " >&6; } 5595LN_S=$as_ln_s 5596if test "$LN_S" = "ln -s"; then 5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5598$as_echo "yes" >&6; } 5599else 5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5601$as_echo "no, using $LN_S" >&6; } 5602fi 5603 5604# find the maximum length of command line arguments 5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5606$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5607if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5608 $as_echo_n "(cached) " >&6 5609else 5610 i=0 5611 teststring="ABCD" 5612 5613 case $build_os in 5614 msdosdjgpp*) 5615 # On DJGPP, this test can blow up pretty badly due to problems in libc 5616 # (any single argument exceeding 2000 bytes causes a buffer overrun 5617 # during glob expansion). Even if it were fixed, the result of this 5618 # check would be larger than it should be. 5619 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5620 ;; 5621 5622 gnu*) 5623 # Under GNU Hurd, this test is not required because there is 5624 # no limit to the length of command line arguments. 5625 # Libtool will interpret -1 as no limit whatsoever 5626 lt_cv_sys_max_cmd_len=-1; 5627 ;; 5628 5629 cygwin* | mingw* | cegcc*) 5630 # On Win9x/ME, this test blows up -- it succeeds, but takes 5631 # about 5 minutes as the teststring grows exponentially. 5632 # Worse, since 9x/ME are not pre-emptively multitasking, 5633 # you end up with a "frozen" computer, even though with patience 5634 # the test eventually succeeds (with a max line length of 256k). 5635 # Instead, let's just punt: use the minimum linelength reported by 5636 # all of the supported platforms: 8192 (on NT/2K/XP). 5637 lt_cv_sys_max_cmd_len=8192; 5638 ;; 5639 5640 mint*) 5641 # On MiNT this can take a long time and run out of memory. 5642 lt_cv_sys_max_cmd_len=8192; 5643 ;; 5644 5645 amigaos*) 5646 # On AmigaOS with pdksh, this test takes hours, literally. 5647 # So we just punt and use a minimum line length of 8192. 5648 lt_cv_sys_max_cmd_len=8192; 5649 ;; 5650 5651 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5652 # This has been around since 386BSD, at least. Likely further. 5653 if test -x /sbin/sysctl; then 5654 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5655 elif test -x /usr/sbin/sysctl; then 5656 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5657 else 5658 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5659 fi 5660 # And add a safety zone 5661 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5662 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5663 ;; 5664 5665 interix*) 5666 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5667 lt_cv_sys_max_cmd_len=196608 5668 ;; 5669 5670 osf*) 5671 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5672 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5673 # nice to cause kernel panics so lets avoid the loop below. 5674 # First set a reasonable default. 5675 lt_cv_sys_max_cmd_len=16384 5676 # 5677 if test -x /sbin/sysconfig; then 5678 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5679 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5680 esac 5681 fi 5682 ;; 5683 sco3.2v5*) 5684 lt_cv_sys_max_cmd_len=102400 5685 ;; 5686 sysv5* | sco5v6* | sysv4.2uw2*) 5687 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5688 if test -n "$kargmax"; then 5689 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5690 else 5691 lt_cv_sys_max_cmd_len=32768 5692 fi 5693 ;; 5694 *) 5695 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5696 if test -n "$lt_cv_sys_max_cmd_len"; then 5697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5699 else 5700 # Make teststring a little bigger before we do anything with it. 5701 # a 1K string should be a reasonable start. 5702 for i in 1 2 3 4 5 6 7 8 ; do 5703 teststring=$teststring$teststring 5704 done 5705 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5706 # If test is not a shell built-in, we'll probably end up computing a 5707 # maximum length that is only half of the actual maximum length, but 5708 # we can't tell. 5709 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5710 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5711 test $i != 17 # 1/2 MB should be enough 5712 do 5713 i=`expr $i + 1` 5714 teststring=$teststring$teststring 5715 done 5716 # Only check the string length outside the loop. 5717 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5718 teststring= 5719 # Add a significant safety factor because C++ compilers can tack on 5720 # massive amounts of additional arguments before passing them to the 5721 # linker. It appears as though 1/2 is a usable value. 5722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5723 fi 5724 ;; 5725 esac 5726 5727fi 5728 5729if test -n $lt_cv_sys_max_cmd_len ; then 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5731$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5732else 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5734$as_echo "none" >&6; } 5735fi 5736max_cmd_len=$lt_cv_sys_max_cmd_len 5737 5738 5739 5740 5741 5742 5743: ${CP="cp -f"} 5744: ${MV="mv -f"} 5745: ${RM="rm -f"} 5746 5747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5748$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5749# Try some XSI features 5750xsi_shell=no 5751( _lt_dummy="a/b/c" 5752 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5753 = c,a/b,, \ 5754 && eval 'test $(( 1 + 1 )) -eq 2 \ 5755 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5756 && xsi_shell=yes 5757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5758$as_echo "$xsi_shell" >&6; } 5759 5760 5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5762$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5763lt_shell_append=no 5764( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5765 >/dev/null 2>&1 \ 5766 && lt_shell_append=yes 5767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5768$as_echo "$lt_shell_append" >&6; } 5769 5770 5771if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5772 lt_unset=unset 5773else 5774 lt_unset=false 5775fi 5776 5777 5778 5779 5780 5781# test EBCDIC or ASCII 5782case `echo X|tr X '\101'` in 5783 A) # ASCII based system 5784 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5785 lt_SP2NL='tr \040 \012' 5786 lt_NL2SP='tr \015\012 \040\040' 5787 ;; 5788 *) # EBCDIC based system 5789 lt_SP2NL='tr \100 \n' 5790 lt_NL2SP='tr \r\n \100\100' 5791 ;; 5792esac 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5803$as_echo_n "checking for $LD option to reload object files... " >&6; } 5804if test "${lt_cv_ld_reload_flag+set}" = set; then : 5805 $as_echo_n "(cached) " >&6 5806else 5807 lt_cv_ld_reload_flag='-r' 5808fi 5809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5810$as_echo "$lt_cv_ld_reload_flag" >&6; } 5811reload_flag=$lt_cv_ld_reload_flag 5812case $reload_flag in 5813"" | " "*) ;; 5814*) reload_flag=" $reload_flag" ;; 5815esac 5816reload_cmds='$LD$reload_flag -o $output$reload_objs' 5817case $host_os in 5818 darwin*) 5819 if test "$GCC" = yes; then 5820 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5821 else 5822 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5823 fi 5824 ;; 5825esac 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835if test -n "$ac_tool_prefix"; then 5836 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5837set dummy ${ac_tool_prefix}objdump; ac_word=$2 5838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5839$as_echo_n "checking for $ac_word... " >&6; } 5840if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5841 $as_echo_n "(cached) " >&6 5842else 5843 if test -n "$OBJDUMP"; then 5844 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5845else 5846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5847for as_dir in $PATH 5848do 5849 IFS=$as_save_IFS 5850 test -z "$as_dir" && as_dir=. 5851 for ac_exec_ext in '' $ac_executable_extensions; do 5852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5853 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5855 break 2 5856 fi 5857done 5858 done 5859IFS=$as_save_IFS 5860 5861fi 5862fi 5863OBJDUMP=$ac_cv_prog_OBJDUMP 5864if test -n "$OBJDUMP"; then 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5866$as_echo "$OBJDUMP" >&6; } 5867else 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5869$as_echo "no" >&6; } 5870fi 5871 5872 5873fi 5874if test -z "$ac_cv_prog_OBJDUMP"; then 5875 ac_ct_OBJDUMP=$OBJDUMP 5876 # Extract the first word of "objdump", so it can be a program name with args. 5877set dummy objdump; ac_word=$2 5878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5879$as_echo_n "checking for $ac_word... " >&6; } 5880if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5881 $as_echo_n "(cached) " >&6 5882else 5883 if test -n "$ac_ct_OBJDUMP"; then 5884 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5885else 5886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5887for as_dir in $PATH 5888do 5889 IFS=$as_save_IFS 5890 test -z "$as_dir" && as_dir=. 5891 for ac_exec_ext in '' $ac_executable_extensions; do 5892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5893 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5895 break 2 5896 fi 5897done 5898 done 5899IFS=$as_save_IFS 5900 5901fi 5902fi 5903ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5904if test -n "$ac_ct_OBJDUMP"; then 5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5906$as_echo "$ac_ct_OBJDUMP" >&6; } 5907else 5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5909$as_echo "no" >&6; } 5910fi 5911 5912 if test "x$ac_ct_OBJDUMP" = x; then 5913 OBJDUMP="false" 5914 else 5915 case $cross_compiling:$ac_tool_warned in 5916yes:) 5917{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5918$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5919ac_tool_warned=yes ;; 5920esac 5921 OBJDUMP=$ac_ct_OBJDUMP 5922 fi 5923else 5924 OBJDUMP="$ac_cv_prog_OBJDUMP" 5925fi 5926 5927test -z "$OBJDUMP" && OBJDUMP=objdump 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5938$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5939if test "${lt_cv_deplibs_check_method+set}" = set; then : 5940 $as_echo_n "(cached) " >&6 5941else 5942 lt_cv_file_magic_cmd='$MAGIC_CMD' 5943lt_cv_file_magic_test_file= 5944lt_cv_deplibs_check_method='unknown' 5945# Need to set the preceding variable on all platforms that support 5946# interlibrary dependencies. 5947# 'none' -- dependencies not supported. 5948# `unknown' -- same as none, but documents that we really don't know. 5949# 'pass_all' -- all dependencies passed with no checks. 5950# 'test_compile' -- check by making test program. 5951# 'file_magic [[regex]]' -- check by looking for files in library path 5952# which responds to the $file_magic_cmd with a given extended regex. 5953# If you have `file' or equivalent on your system and you're not sure 5954# whether `pass_all' will *always* work, you probably want this one. 5955 5956case $host_os in 5957aix[4-9]*) 5958 lt_cv_deplibs_check_method=pass_all 5959 ;; 5960 5961beos*) 5962 lt_cv_deplibs_check_method=pass_all 5963 ;; 5964 5965bsdi[45]*) 5966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5967 lt_cv_file_magic_cmd='/usr/bin/file -L' 5968 lt_cv_file_magic_test_file=/shlib/libc.so 5969 ;; 5970 5971cygwin*) 5972 # func_win32_libid is a shell function defined in ltmain.sh 5973 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5974 lt_cv_file_magic_cmd='func_win32_libid' 5975 ;; 5976 5977mingw* | pw32*) 5978 # Base MSYS/MinGW do not provide the 'file' command needed by 5979 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5980 # unless we find 'file', for example because we are cross-compiling. 5981 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5982 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5983 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5984 lt_cv_file_magic_cmd='func_win32_libid' 5985 else 5986 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 5987 lt_cv_file_magic_cmd='$OBJDUMP -f' 5988 fi 5989 ;; 5990 5991cegcc*) 5992 # use the weaker test based on 'objdump'. See mingw*. 5993 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5994 lt_cv_file_magic_cmd='$OBJDUMP -f' 5995 ;; 5996 5997darwin* | rhapsody*) 5998 lt_cv_deplibs_check_method=pass_all 5999 ;; 6000 6001freebsd* | dragonfly*) 6002 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6003 case $host_cpu in 6004 i*86 ) 6005 # Not sure whether the presence of OpenBSD here was a mistake. 6006 # Let's accept both of them until this is cleared up. 6007 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6008 lt_cv_file_magic_cmd=/usr/bin/file 6009 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6010 ;; 6011 esac 6012 else 6013 lt_cv_deplibs_check_method=pass_all 6014 fi 6015 ;; 6016 6017gnu*) 6018 lt_cv_deplibs_check_method=pass_all 6019 ;; 6020 6021haiku*) 6022 lt_cv_deplibs_check_method=pass_all 6023 ;; 6024 6025hpux10.20* | hpux11*) 6026 lt_cv_file_magic_cmd=/usr/bin/file 6027 case $host_cpu in 6028 ia64*) 6029 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6030 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6031 ;; 6032 hppa*64*) 6033 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]' 6034 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6035 ;; 6036 *) 6037 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6038 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6039 ;; 6040 esac 6041 ;; 6042 6043interix[3-9]*) 6044 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6046 ;; 6047 6048irix5* | irix6* | nonstopux*) 6049 case $LD in 6050 *-32|*"-32 ") libmagic=32-bit;; 6051 *-n32|*"-n32 ") libmagic=N32;; 6052 *-64|*"-64 ") libmagic=64-bit;; 6053 *) libmagic=never-match;; 6054 esac 6055 lt_cv_deplibs_check_method=pass_all 6056 ;; 6057 6058# This must be Linux ELF. 6059linux* | k*bsd*-gnu | kopensolaris*-gnu) 6060 lt_cv_deplibs_check_method=pass_all 6061 ;; 6062 6063netbsd*) 6064 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6066 else 6067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6068 fi 6069 ;; 6070 6071newos6*) 6072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6073 lt_cv_file_magic_cmd=/usr/bin/file 6074 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6075 ;; 6076 6077*nto* | *qnx*) 6078 lt_cv_deplibs_check_method=pass_all 6079 ;; 6080 6081openbsd*) 6082 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6084 else 6085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6086 fi 6087 ;; 6088 6089osf3* | osf4* | osf5*) 6090 lt_cv_deplibs_check_method=pass_all 6091 ;; 6092 6093rdos*) 6094 lt_cv_deplibs_check_method=pass_all 6095 ;; 6096 6097solaris*) 6098 lt_cv_deplibs_check_method=pass_all 6099 ;; 6100 6101sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6102 lt_cv_deplibs_check_method=pass_all 6103 ;; 6104 6105sysv4 | sysv4.3*) 6106 case $host_vendor in 6107 motorola) 6108 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]' 6109 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6110 ;; 6111 ncr) 6112 lt_cv_deplibs_check_method=pass_all 6113 ;; 6114 sequent) 6115 lt_cv_file_magic_cmd='/bin/file' 6116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6117 ;; 6118 sni) 6119 lt_cv_file_magic_cmd='/bin/file' 6120 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6121 lt_cv_file_magic_test_file=/lib/libc.so 6122 ;; 6123 siemens) 6124 lt_cv_deplibs_check_method=pass_all 6125 ;; 6126 pc) 6127 lt_cv_deplibs_check_method=pass_all 6128 ;; 6129 esac 6130 ;; 6131 6132tpf*) 6133 lt_cv_deplibs_check_method=pass_all 6134 ;; 6135esac 6136 6137fi 6138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6139$as_echo "$lt_cv_deplibs_check_method" >&6; } 6140file_magic_cmd=$lt_cv_file_magic_cmd 6141deplibs_check_method=$lt_cv_deplibs_check_method 6142test -z "$deplibs_check_method" && deplibs_check_method=unknown 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155if test -n "$ac_tool_prefix"; then 6156 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6157set dummy ${ac_tool_prefix}ar; ac_word=$2 6158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6159$as_echo_n "checking for $ac_word... " >&6; } 6160if test "${ac_cv_prog_AR+set}" = set; then : 6161 $as_echo_n "(cached) " >&6 6162else 6163 if test -n "$AR"; then 6164 ac_cv_prog_AR="$AR" # Let the user override the test. 6165else 6166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6167for as_dir in $PATH 6168do 6169 IFS=$as_save_IFS 6170 test -z "$as_dir" && as_dir=. 6171 for ac_exec_ext in '' $ac_executable_extensions; do 6172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6173 ac_cv_prog_AR="${ac_tool_prefix}ar" 6174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6175 break 2 6176 fi 6177done 6178 done 6179IFS=$as_save_IFS 6180 6181fi 6182fi 6183AR=$ac_cv_prog_AR 6184if test -n "$AR"; then 6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6186$as_echo "$AR" >&6; } 6187else 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6189$as_echo "no" >&6; } 6190fi 6191 6192 6193fi 6194if test -z "$ac_cv_prog_AR"; then 6195 ac_ct_AR=$AR 6196 # Extract the first word of "ar", so it can be a program name with args. 6197set dummy ar; ac_word=$2 6198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6199$as_echo_n "checking for $ac_word... " >&6; } 6200if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6201 $as_echo_n "(cached) " >&6 6202else 6203 if test -n "$ac_ct_AR"; then 6204 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6205else 6206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6207for as_dir in $PATH 6208do 6209 IFS=$as_save_IFS 6210 test -z "$as_dir" && as_dir=. 6211 for ac_exec_ext in '' $ac_executable_extensions; do 6212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6213 ac_cv_prog_ac_ct_AR="ar" 6214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6215 break 2 6216 fi 6217done 6218 done 6219IFS=$as_save_IFS 6220 6221fi 6222fi 6223ac_ct_AR=$ac_cv_prog_ac_ct_AR 6224if test -n "$ac_ct_AR"; then 6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6226$as_echo "$ac_ct_AR" >&6; } 6227else 6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6229$as_echo "no" >&6; } 6230fi 6231 6232 if test "x$ac_ct_AR" = x; then 6233 AR="false" 6234 else 6235 case $cross_compiling:$ac_tool_warned in 6236yes:) 6237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6239ac_tool_warned=yes ;; 6240esac 6241 AR=$ac_ct_AR 6242 fi 6243else 6244 AR="$ac_cv_prog_AR" 6245fi 6246 6247test -z "$AR" && AR=ar 6248test -z "$AR_FLAGS" && AR_FLAGS=cru 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260if test -n "$ac_tool_prefix"; then 6261 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6262set dummy ${ac_tool_prefix}strip; ac_word=$2 6263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6264$as_echo_n "checking for $ac_word... " >&6; } 6265if test "${ac_cv_prog_STRIP+set}" = set; then : 6266 $as_echo_n "(cached) " >&6 6267else 6268 if test -n "$STRIP"; then 6269 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6270else 6271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6272for as_dir in $PATH 6273do 6274 IFS=$as_save_IFS 6275 test -z "$as_dir" && as_dir=. 6276 for ac_exec_ext in '' $ac_executable_extensions; do 6277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6278 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6280 break 2 6281 fi 6282done 6283 done 6284IFS=$as_save_IFS 6285 6286fi 6287fi 6288STRIP=$ac_cv_prog_STRIP 6289if test -n "$STRIP"; then 6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6291$as_echo "$STRIP" >&6; } 6292else 6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6294$as_echo "no" >&6; } 6295fi 6296 6297 6298fi 6299if test -z "$ac_cv_prog_STRIP"; then 6300 ac_ct_STRIP=$STRIP 6301 # Extract the first word of "strip", so it can be a program name with args. 6302set dummy strip; ac_word=$2 6303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6304$as_echo_n "checking for $ac_word... " >&6; } 6305if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6306 $as_echo_n "(cached) " >&6 6307else 6308 if test -n "$ac_ct_STRIP"; then 6309 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6310else 6311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6312for as_dir in $PATH 6313do 6314 IFS=$as_save_IFS 6315 test -z "$as_dir" && as_dir=. 6316 for ac_exec_ext in '' $ac_executable_extensions; do 6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6318 ac_cv_prog_ac_ct_STRIP="strip" 6319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6320 break 2 6321 fi 6322done 6323 done 6324IFS=$as_save_IFS 6325 6326fi 6327fi 6328ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6329if test -n "$ac_ct_STRIP"; then 6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6331$as_echo "$ac_ct_STRIP" >&6; } 6332else 6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6334$as_echo "no" >&6; } 6335fi 6336 6337 if test "x$ac_ct_STRIP" = x; then 6338 STRIP=":" 6339 else 6340 case $cross_compiling:$ac_tool_warned in 6341yes:) 6342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6344ac_tool_warned=yes ;; 6345esac 6346 STRIP=$ac_ct_STRIP 6347 fi 6348else 6349 STRIP="$ac_cv_prog_STRIP" 6350fi 6351 6352test -z "$STRIP" && STRIP=: 6353 6354 6355 6356 6357 6358 6359if test -n "$ac_tool_prefix"; then 6360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6361set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6363$as_echo_n "checking for $ac_word... " >&6; } 6364if test "${ac_cv_prog_RANLIB+set}" = set; then : 6365 $as_echo_n "(cached) " >&6 6366else 6367 if test -n "$RANLIB"; then 6368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6369else 6370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6371for as_dir in $PATH 6372do 6373 IFS=$as_save_IFS 6374 test -z "$as_dir" && as_dir=. 6375 for ac_exec_ext in '' $ac_executable_extensions; do 6376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6377 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6379 break 2 6380 fi 6381done 6382 done 6383IFS=$as_save_IFS 6384 6385fi 6386fi 6387RANLIB=$ac_cv_prog_RANLIB 6388if test -n "$RANLIB"; then 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6390$as_echo "$RANLIB" >&6; } 6391else 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6393$as_echo "no" >&6; } 6394fi 6395 6396 6397fi 6398if test -z "$ac_cv_prog_RANLIB"; then 6399 ac_ct_RANLIB=$RANLIB 6400 # Extract the first word of "ranlib", so it can be a program name with args. 6401set dummy ranlib; ac_word=$2 6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6403$as_echo_n "checking for $ac_word... " >&6; } 6404if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6405 $as_echo_n "(cached) " >&6 6406else 6407 if test -n "$ac_ct_RANLIB"; then 6408 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6409else 6410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6411for as_dir in $PATH 6412do 6413 IFS=$as_save_IFS 6414 test -z "$as_dir" && as_dir=. 6415 for ac_exec_ext in '' $ac_executable_extensions; do 6416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6417 ac_cv_prog_ac_ct_RANLIB="ranlib" 6418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6419 break 2 6420 fi 6421done 6422 done 6423IFS=$as_save_IFS 6424 6425fi 6426fi 6427ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6428if test -n "$ac_ct_RANLIB"; then 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6430$as_echo "$ac_ct_RANLIB" >&6; } 6431else 6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6433$as_echo "no" >&6; } 6434fi 6435 6436 if test "x$ac_ct_RANLIB" = x; then 6437 RANLIB=":" 6438 else 6439 case $cross_compiling:$ac_tool_warned in 6440yes:) 6441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6443ac_tool_warned=yes ;; 6444esac 6445 RANLIB=$ac_ct_RANLIB 6446 fi 6447else 6448 RANLIB="$ac_cv_prog_RANLIB" 6449fi 6450 6451test -z "$RANLIB" && RANLIB=: 6452 6453 6454 6455 6456 6457 6458# Determine commands to create old-style static archives. 6459old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6460old_postinstall_cmds='chmod 644 $oldlib' 6461old_postuninstall_cmds= 6462 6463if test -n "$RANLIB"; then 6464 case $host_os in 6465 openbsd*) 6466 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6467 ;; 6468 *) 6469 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6470 ;; 6471 esac 6472 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6473fi 6474 6475case $host_os in 6476 darwin*) 6477 lock_old_archive_extraction=yes ;; 6478 *) 6479 lock_old_archive_extraction=no ;; 6480esac 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520# If no C compiler was specified, use CC. 6521LTCC=${LTCC-"$CC"} 6522 6523# If no C compiler flags were specified, use CFLAGS. 6524LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6525 6526# Allow CC to be a program name with arguments. 6527compiler=$CC 6528 6529 6530# Check for command to grab the raw symbol name followed by C symbol from nm. 6531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6532$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6533if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6534 $as_echo_n "(cached) " >&6 6535else 6536 6537# These are sane defaults that work on at least a few old systems. 6538# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6539 6540# Character class describing NM global symbol codes. 6541symcode='[BCDEGRST]' 6542 6543# Regexp to match symbols that can be accessed directly from C. 6544sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6545 6546# Define system-specific variables. 6547case $host_os in 6548aix*) 6549 symcode='[BCDT]' 6550 ;; 6551cygwin* | mingw* | pw32* | cegcc*) 6552 symcode='[ABCDGISTW]' 6553 ;; 6554hpux*) 6555 if test "$host_cpu" = ia64; then 6556 symcode='[ABCDEGRST]' 6557 fi 6558 ;; 6559irix* | nonstopux*) 6560 symcode='[BCDEGRST]' 6561 ;; 6562osf*) 6563 symcode='[BCDEGQRST]' 6564 ;; 6565solaris*) 6566 symcode='[BDRT]' 6567 ;; 6568sco3.2v5*) 6569 symcode='[DT]' 6570 ;; 6571sysv4.2uw2*) 6572 symcode='[DT]' 6573 ;; 6574sysv5* | sco5v6* | unixware* | OpenUNIX*) 6575 symcode='[ABDT]' 6576 ;; 6577sysv4) 6578 symcode='[DFNSTU]' 6579 ;; 6580esac 6581 6582# If we're using GNU nm, then use its standard symbol codes. 6583case `$NM -V 2>&1` in 6584*GNU* | *'with BFD'*) 6585 symcode='[ABCDGIRSTW]' ;; 6586esac 6587 6588# Transform an extracted symbol line into a proper C declaration. 6589# Some systems (esp. on ia64) link data and code symbols differently, 6590# so use this general approach. 6591lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6592 6593# Transform an extracted symbol line into symbol name and symbol address 6594lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6595lt_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'" 6596 6597# Handle CRLF in mingw tool chain 6598opt_cr= 6599case $build_os in 6600mingw*) 6601 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6602 ;; 6603esac 6604 6605# Try without a prefix underscore, then with it. 6606for ac_symprfx in "" "_"; do 6607 6608 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6609 symxfrm="\\1 $ac_symprfx\\2 \\2" 6610 6611 # Write the raw and C identifiers. 6612 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6613 # Fake it for dumpbin and say T for any non-static function 6614 # and D for any global variable. 6615 # Also find C++ and __fastcall symbols from MSVC++, 6616 # which start with @ or ?. 6617 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6618" {last_section=section; section=\$ 3};"\ 6619" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6620" \$ 0!~/External *\|/{next};"\ 6621" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6622" {if(hide[section]) next};"\ 6623" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6624" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6625" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6626" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6627" ' prfx=^$ac_symprfx" 6628 else 6629 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6630 fi 6631 6632 # Check to see that the pipe works correctly. 6633 pipe_works=no 6634 6635 rm -f conftest* 6636 cat > conftest.$ac_ext <<_LT_EOF 6637#ifdef __cplusplus 6638extern "C" { 6639#endif 6640char nm_test_var; 6641void nm_test_func(void); 6642void nm_test_func(void){} 6643#ifdef __cplusplus 6644} 6645#endif 6646int main(){nm_test_var='a';nm_test_func();return(0);} 6647_LT_EOF 6648 6649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6650 (eval $ac_compile) 2>&5 6651 ac_status=$? 6652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6653 test $ac_status = 0; }; then 6654 # Now try to grab the symbols. 6655 nlist=conftest.nm 6656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6657 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6658 ac_status=$? 6659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6660 test $ac_status = 0; } && test -s "$nlist"; then 6661 # Try sorting and uniquifying the output. 6662 if sort "$nlist" | uniq > "$nlist"T; then 6663 mv -f "$nlist"T "$nlist" 6664 else 6665 rm -f "$nlist"T 6666 fi 6667 6668 # Make sure that we snagged all the symbols we need. 6669 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6670 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6671 cat <<_LT_EOF > conftest.$ac_ext 6672#ifdef __cplusplus 6673extern "C" { 6674#endif 6675 6676_LT_EOF 6677 # Now generate the symbol file. 6678 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6679 6680 cat <<_LT_EOF >> conftest.$ac_ext 6681 6682/* The mapping between symbol names and symbols. */ 6683const struct { 6684 const char *name; 6685 void *address; 6686} 6687lt__PROGRAM__LTX_preloaded_symbols[] = 6688{ 6689 { "@PROGRAM@", (void *) 0 }, 6690_LT_EOF 6691 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6692 cat <<\_LT_EOF >> conftest.$ac_ext 6693 {0, (void *) 0} 6694}; 6695 6696/* This works around a problem in FreeBSD linker */ 6697#ifdef FREEBSD_WORKAROUND 6698static const void *lt_preloaded_setup() { 6699 return lt__PROGRAM__LTX_preloaded_symbols; 6700} 6701#endif 6702 6703#ifdef __cplusplus 6704} 6705#endif 6706_LT_EOF 6707 # Now try linking the two files. 6708 mv conftest.$ac_objext conftstm.$ac_objext 6709 lt_save_LIBS="$LIBS" 6710 lt_save_CFLAGS="$CFLAGS" 6711 LIBS="conftstm.$ac_objext" 6712 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6714 (eval $ac_link) 2>&5 6715 ac_status=$? 6716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6717 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6718 pipe_works=yes 6719 fi 6720 LIBS="$lt_save_LIBS" 6721 CFLAGS="$lt_save_CFLAGS" 6722 else 6723 echo "cannot find nm_test_func in $nlist" >&5 6724 fi 6725 else 6726 echo "cannot find nm_test_var in $nlist" >&5 6727 fi 6728 else 6729 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6730 fi 6731 else 6732 echo "$progname: failed program was:" >&5 6733 cat conftest.$ac_ext >&5 6734 fi 6735 rm -rf conftest* conftst* 6736 6737 # Do not use the global_symbol_pipe unless it works. 6738 if test "$pipe_works" = yes; then 6739 break 6740 else 6741 lt_cv_sys_global_symbol_pipe= 6742 fi 6743done 6744 6745fi 6746 6747if test -z "$lt_cv_sys_global_symbol_pipe"; then 6748 lt_cv_sys_global_symbol_to_cdecl= 6749fi 6750if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6752$as_echo "failed" >&6; } 6753else 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6755$as_echo "ok" >&6; } 6756fi 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779# Check whether --enable-libtool-lock was given. 6780if test "${enable_libtool_lock+set}" = set; then : 6781 enableval=$enable_libtool_lock; 6782fi 6783 6784test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6785 6786# Some flags need to be propagated to the compiler or linker for good 6787# libtool support. 6788case $host in 6789ia64-*-hpux*) 6790 # Find out which ABI we are using. 6791 echo 'int i;' > conftest.$ac_ext 6792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6793 (eval $ac_compile) 2>&5 6794 ac_status=$? 6795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6796 test $ac_status = 0; }; then 6797 case `/usr/bin/file conftest.$ac_objext` in 6798 *ELF-32*) 6799 HPUX_IA64_MODE="32" 6800 ;; 6801 *ELF-64*) 6802 HPUX_IA64_MODE="64" 6803 ;; 6804 esac 6805 fi 6806 rm -rf conftest* 6807 ;; 6808*-*-irix6*) 6809 # Find out which ABI we are using. 6810 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6812 (eval $ac_compile) 2>&5 6813 ac_status=$? 6814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6815 test $ac_status = 0; }; then 6816 if test "$lt_cv_prog_gnu_ld" = yes; then 6817 case `/usr/bin/file conftest.$ac_objext` in 6818 *32-bit*) 6819 LD="${LD-ld} -melf32bsmip" 6820 ;; 6821 *N32*) 6822 LD="${LD-ld} -melf32bmipn32" 6823 ;; 6824 *64-bit*) 6825 LD="${LD-ld} -melf64bmip" 6826 ;; 6827 esac 6828 else 6829 case `/usr/bin/file conftest.$ac_objext` in 6830 *32-bit*) 6831 LD="${LD-ld} -32" 6832 ;; 6833 *N32*) 6834 LD="${LD-ld} -n32" 6835 ;; 6836 *64-bit*) 6837 LD="${LD-ld} -64" 6838 ;; 6839 esac 6840 fi 6841 fi 6842 rm -rf conftest* 6843 ;; 6844 6845x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6846s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6847 # Find out which ABI we are using. 6848 echo 'int i;' > conftest.$ac_ext 6849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6850 (eval $ac_compile) 2>&5 6851 ac_status=$? 6852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6853 test $ac_status = 0; }; then 6854 case `/usr/bin/file conftest.o` in 6855 *32-bit*) 6856 case $host in 6857 x86_64-*kfreebsd*-gnu) 6858 LD="${LD-ld} -m elf_i386_fbsd" 6859 ;; 6860 x86_64-*linux*) 6861 case `/usr/bin/file conftest.o` in 6862 *x86-64*) 6863 LD="${LD-ld} -m elf32_x86_64" 6864 ;; 6865 *) 6866 LD="${LD-ld} -m elf_i386" 6867 ;; 6868 esac 6869 ;; 6870 powerpc64le-*linux*) 6871 LD="${LD-ld} -m elf32lppclinux" 6872 ;; 6873 powerpc64-*linux*) 6874 LD="${LD-ld} -m elf32ppclinux" 6875 ;; 6876 s390x-*linux*) 6877 LD="${LD-ld} -m elf_s390" 6878 ;; 6879 sparc64-*linux*) 6880 LD="${LD-ld} -m elf32_sparc" 6881 ;; 6882 esac 6883 ;; 6884 *64-bit*) 6885 case $host in 6886 x86_64-*kfreebsd*-gnu) 6887 LD="${LD-ld} -m elf_x86_64_fbsd" 6888 ;; 6889 x86_64-*linux*) 6890 LD="${LD-ld} -m elf_x86_64" 6891 ;; 6892 powerpcle-*linux*) 6893 LD="${LD-ld} -m elf64lppc" 6894 ;; 6895 powerpc-*linux*) 6896 LD="${LD-ld} -m elf64ppc" 6897 ;; 6898 s390*-*linux*|s390*-*tpf*) 6899 LD="${LD-ld} -m elf64_s390" 6900 ;; 6901 sparc*-*linux*) 6902 LD="${LD-ld} -m elf64_sparc" 6903 ;; 6904 esac 6905 ;; 6906 esac 6907 fi 6908 rm -rf conftest* 6909 ;; 6910 6911*-*-sco3.2v5*) 6912 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6913 SAVE_CFLAGS="$CFLAGS" 6914 CFLAGS="$CFLAGS -belf" 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6916$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6917if test "${lt_cv_cc_needs_belf+set}" = set; then : 6918 $as_echo_n "(cached) " >&6 6919else 6920 ac_ext=c 6921ac_cpp='$CPP $CPPFLAGS' 6922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6924ac_compiler_gnu=$ac_cv_c_compiler_gnu 6925 6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6927/* end confdefs.h. */ 6928 6929int 6930main () 6931{ 6932 6933 ; 6934 return 0; 6935} 6936_ACEOF 6937if ac_fn_c_try_link "$LINENO"; then : 6938 lt_cv_cc_needs_belf=yes 6939else 6940 lt_cv_cc_needs_belf=no 6941fi 6942rm -f core conftest.err conftest.$ac_objext \ 6943 conftest$ac_exeext conftest.$ac_ext 6944 ac_ext=c 6945ac_cpp='$CPP $CPPFLAGS' 6946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6948ac_compiler_gnu=$ac_cv_c_compiler_gnu 6949 6950fi 6951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6952$as_echo "$lt_cv_cc_needs_belf" >&6; } 6953 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6954 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6955 CFLAGS="$SAVE_CFLAGS" 6956 fi 6957 ;; 6958sparc*-*solaris*) 6959 # Find out which ABI we are using. 6960 echo 'int i;' > conftest.$ac_ext 6961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6962 (eval $ac_compile) 2>&5 6963 ac_status=$? 6964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6965 test $ac_status = 0; }; then 6966 case `/usr/bin/file conftest.o` in 6967 *64-bit*) 6968 case $lt_cv_prog_gnu_ld in 6969 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6970 *) 6971 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6972 LD="${LD-ld} -64" 6973 fi 6974 ;; 6975 esac 6976 ;; 6977 esac 6978 fi 6979 rm -rf conftest* 6980 ;; 6981esac 6982 6983need_locks="$enable_libtool_lock" 6984 6985 6986 case $host_os in 6987 rhapsody* | darwin*) 6988 if test -n "$ac_tool_prefix"; then 6989 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6990set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6992$as_echo_n "checking for $ac_word... " >&6; } 6993if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 6994 $as_echo_n "(cached) " >&6 6995else 6996 if test -n "$DSYMUTIL"; then 6997 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6998else 6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7000for as_dir in $PATH 7001do 7002 IFS=$as_save_IFS 7003 test -z "$as_dir" && as_dir=. 7004 for ac_exec_ext in '' $ac_executable_extensions; do 7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7006 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7008 break 2 7009 fi 7010done 7011 done 7012IFS=$as_save_IFS 7013 7014fi 7015fi 7016DSYMUTIL=$ac_cv_prog_DSYMUTIL 7017if test -n "$DSYMUTIL"; then 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7019$as_echo "$DSYMUTIL" >&6; } 7020else 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7022$as_echo "no" >&6; } 7023fi 7024 7025 7026fi 7027if test -z "$ac_cv_prog_DSYMUTIL"; then 7028 ac_ct_DSYMUTIL=$DSYMUTIL 7029 # Extract the first word of "dsymutil", so it can be a program name with args. 7030set dummy dsymutil; ac_word=$2 7031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7032$as_echo_n "checking for $ac_word... " >&6; } 7033if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 7034 $as_echo_n "(cached) " >&6 7035else 7036 if test -n "$ac_ct_DSYMUTIL"; then 7037 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7038else 7039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7040for as_dir in $PATH 7041do 7042 IFS=$as_save_IFS 7043 test -z "$as_dir" && as_dir=. 7044 for ac_exec_ext in '' $ac_executable_extensions; do 7045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7046 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7048 break 2 7049 fi 7050done 7051 done 7052IFS=$as_save_IFS 7053 7054fi 7055fi 7056ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7057if test -n "$ac_ct_DSYMUTIL"; then 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7059$as_echo "$ac_ct_DSYMUTIL" >&6; } 7060else 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7062$as_echo "no" >&6; } 7063fi 7064 7065 if test "x$ac_ct_DSYMUTIL" = x; then 7066 DSYMUTIL=":" 7067 else 7068 case $cross_compiling:$ac_tool_warned in 7069yes:) 7070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7072ac_tool_warned=yes ;; 7073esac 7074 DSYMUTIL=$ac_ct_DSYMUTIL 7075 fi 7076else 7077 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7078fi 7079 7080 if test -n "$ac_tool_prefix"; then 7081 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7082set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7084$as_echo_n "checking for $ac_word... " >&6; } 7085if test "${ac_cv_prog_NMEDIT+set}" = set; then : 7086 $as_echo_n "(cached) " >&6 7087else 7088 if test -n "$NMEDIT"; then 7089 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7090else 7091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7092for as_dir in $PATH 7093do 7094 IFS=$as_save_IFS 7095 test -z "$as_dir" && as_dir=. 7096 for ac_exec_ext in '' $ac_executable_extensions; do 7097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7098 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7100 break 2 7101 fi 7102done 7103 done 7104IFS=$as_save_IFS 7105 7106fi 7107fi 7108NMEDIT=$ac_cv_prog_NMEDIT 7109if test -n "$NMEDIT"; then 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7111$as_echo "$NMEDIT" >&6; } 7112else 7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7114$as_echo "no" >&6; } 7115fi 7116 7117 7118fi 7119if test -z "$ac_cv_prog_NMEDIT"; then 7120 ac_ct_NMEDIT=$NMEDIT 7121 # Extract the first word of "nmedit", so it can be a program name with args. 7122set dummy nmedit; ac_word=$2 7123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7124$as_echo_n "checking for $ac_word... " >&6; } 7125if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 7126 $as_echo_n "(cached) " >&6 7127else 7128 if test -n "$ac_ct_NMEDIT"; then 7129 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7130else 7131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7132for as_dir in $PATH 7133do 7134 IFS=$as_save_IFS 7135 test -z "$as_dir" && as_dir=. 7136 for ac_exec_ext in '' $ac_executable_extensions; do 7137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7138 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7140 break 2 7141 fi 7142done 7143 done 7144IFS=$as_save_IFS 7145 7146fi 7147fi 7148ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7149if test -n "$ac_ct_NMEDIT"; then 7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7151$as_echo "$ac_ct_NMEDIT" >&6; } 7152else 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7154$as_echo "no" >&6; } 7155fi 7156 7157 if test "x$ac_ct_NMEDIT" = x; then 7158 NMEDIT=":" 7159 else 7160 case $cross_compiling:$ac_tool_warned in 7161yes:) 7162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7164ac_tool_warned=yes ;; 7165esac 7166 NMEDIT=$ac_ct_NMEDIT 7167 fi 7168else 7169 NMEDIT="$ac_cv_prog_NMEDIT" 7170fi 7171 7172 if test -n "$ac_tool_prefix"; then 7173 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7174set dummy ${ac_tool_prefix}lipo; ac_word=$2 7175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7176$as_echo_n "checking for $ac_word... " >&6; } 7177if test "${ac_cv_prog_LIPO+set}" = set; then : 7178 $as_echo_n "(cached) " >&6 7179else 7180 if test -n "$LIPO"; then 7181 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7182else 7183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7184for as_dir in $PATH 7185do 7186 IFS=$as_save_IFS 7187 test -z "$as_dir" && as_dir=. 7188 for ac_exec_ext in '' $ac_executable_extensions; do 7189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7190 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7192 break 2 7193 fi 7194done 7195 done 7196IFS=$as_save_IFS 7197 7198fi 7199fi 7200LIPO=$ac_cv_prog_LIPO 7201if test -n "$LIPO"; then 7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7203$as_echo "$LIPO" >&6; } 7204else 7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7206$as_echo "no" >&6; } 7207fi 7208 7209 7210fi 7211if test -z "$ac_cv_prog_LIPO"; then 7212 ac_ct_LIPO=$LIPO 7213 # Extract the first word of "lipo", so it can be a program name with args. 7214set dummy lipo; ac_word=$2 7215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7216$as_echo_n "checking for $ac_word... " >&6; } 7217if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 7218 $as_echo_n "(cached) " >&6 7219else 7220 if test -n "$ac_ct_LIPO"; then 7221 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7222else 7223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7224for as_dir in $PATH 7225do 7226 IFS=$as_save_IFS 7227 test -z "$as_dir" && as_dir=. 7228 for ac_exec_ext in '' $ac_executable_extensions; do 7229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7230 ac_cv_prog_ac_ct_LIPO="lipo" 7231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7232 break 2 7233 fi 7234done 7235 done 7236IFS=$as_save_IFS 7237 7238fi 7239fi 7240ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7241if test -n "$ac_ct_LIPO"; then 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7243$as_echo "$ac_ct_LIPO" >&6; } 7244else 7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7246$as_echo "no" >&6; } 7247fi 7248 7249 if test "x$ac_ct_LIPO" = x; then 7250 LIPO=":" 7251 else 7252 case $cross_compiling:$ac_tool_warned in 7253yes:) 7254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7256ac_tool_warned=yes ;; 7257esac 7258 LIPO=$ac_ct_LIPO 7259 fi 7260else 7261 LIPO="$ac_cv_prog_LIPO" 7262fi 7263 7264 if test -n "$ac_tool_prefix"; then 7265 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7266set dummy ${ac_tool_prefix}otool; ac_word=$2 7267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7268$as_echo_n "checking for $ac_word... " >&6; } 7269if test "${ac_cv_prog_OTOOL+set}" = set; then : 7270 $as_echo_n "(cached) " >&6 7271else 7272 if test -n "$OTOOL"; then 7273 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7274else 7275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7276for as_dir in $PATH 7277do 7278 IFS=$as_save_IFS 7279 test -z "$as_dir" && as_dir=. 7280 for ac_exec_ext in '' $ac_executable_extensions; do 7281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7282 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7284 break 2 7285 fi 7286done 7287 done 7288IFS=$as_save_IFS 7289 7290fi 7291fi 7292OTOOL=$ac_cv_prog_OTOOL 7293if test -n "$OTOOL"; then 7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7295$as_echo "$OTOOL" >&6; } 7296else 7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7298$as_echo "no" >&6; } 7299fi 7300 7301 7302fi 7303if test -z "$ac_cv_prog_OTOOL"; then 7304 ac_ct_OTOOL=$OTOOL 7305 # Extract the first word of "otool", so it can be a program name with args. 7306set dummy otool; ac_word=$2 7307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7308$as_echo_n "checking for $ac_word... " >&6; } 7309if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7310 $as_echo_n "(cached) " >&6 7311else 7312 if test -n "$ac_ct_OTOOL"; then 7313 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7314else 7315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7316for as_dir in $PATH 7317do 7318 IFS=$as_save_IFS 7319 test -z "$as_dir" && as_dir=. 7320 for ac_exec_ext in '' $ac_executable_extensions; do 7321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7322 ac_cv_prog_ac_ct_OTOOL="otool" 7323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7324 break 2 7325 fi 7326done 7327 done 7328IFS=$as_save_IFS 7329 7330fi 7331fi 7332ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7333if test -n "$ac_ct_OTOOL"; then 7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7335$as_echo "$ac_ct_OTOOL" >&6; } 7336else 7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7338$as_echo "no" >&6; } 7339fi 7340 7341 if test "x$ac_ct_OTOOL" = x; then 7342 OTOOL=":" 7343 else 7344 case $cross_compiling:$ac_tool_warned in 7345yes:) 7346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7348ac_tool_warned=yes ;; 7349esac 7350 OTOOL=$ac_ct_OTOOL 7351 fi 7352else 7353 OTOOL="$ac_cv_prog_OTOOL" 7354fi 7355 7356 if test -n "$ac_tool_prefix"; then 7357 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7358set dummy ${ac_tool_prefix}otool64; ac_word=$2 7359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7360$as_echo_n "checking for $ac_word... " >&6; } 7361if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7362 $as_echo_n "(cached) " >&6 7363else 7364 if test -n "$OTOOL64"; then 7365 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7366else 7367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7368for as_dir in $PATH 7369do 7370 IFS=$as_save_IFS 7371 test -z "$as_dir" && as_dir=. 7372 for ac_exec_ext in '' $ac_executable_extensions; do 7373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7374 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7376 break 2 7377 fi 7378done 7379 done 7380IFS=$as_save_IFS 7381 7382fi 7383fi 7384OTOOL64=$ac_cv_prog_OTOOL64 7385if test -n "$OTOOL64"; then 7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7387$as_echo "$OTOOL64" >&6; } 7388else 7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7390$as_echo "no" >&6; } 7391fi 7392 7393 7394fi 7395if test -z "$ac_cv_prog_OTOOL64"; then 7396 ac_ct_OTOOL64=$OTOOL64 7397 # Extract the first word of "otool64", so it can be a program name with args. 7398set dummy otool64; ac_word=$2 7399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7400$as_echo_n "checking for $ac_word... " >&6; } 7401if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7402 $as_echo_n "(cached) " >&6 7403else 7404 if test -n "$ac_ct_OTOOL64"; then 7405 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7406else 7407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7408for as_dir in $PATH 7409do 7410 IFS=$as_save_IFS 7411 test -z "$as_dir" && as_dir=. 7412 for ac_exec_ext in '' $ac_executable_extensions; do 7413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7414 ac_cv_prog_ac_ct_OTOOL64="otool64" 7415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7416 break 2 7417 fi 7418done 7419 done 7420IFS=$as_save_IFS 7421 7422fi 7423fi 7424ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7425if test -n "$ac_ct_OTOOL64"; then 7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7427$as_echo "$ac_ct_OTOOL64" >&6; } 7428else 7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7430$as_echo "no" >&6; } 7431fi 7432 7433 if test "x$ac_ct_OTOOL64" = x; then 7434 OTOOL64=":" 7435 else 7436 case $cross_compiling:$ac_tool_warned in 7437yes:) 7438{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7439$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7440ac_tool_warned=yes ;; 7441esac 7442 OTOOL64=$ac_ct_OTOOL64 7443 fi 7444else 7445 OTOOL64="$ac_cv_prog_OTOOL64" 7446fi 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7475$as_echo_n "checking for -single_module linker flag... " >&6; } 7476if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7477 $as_echo_n "(cached) " >&6 7478else 7479 lt_cv_apple_cc_single_mod=no 7480 if test -z "${LT_MULTI_MODULE}"; then 7481 # By default we will add the -single_module flag. You can override 7482 # by either setting the environment variable LT_MULTI_MODULE 7483 # non-empty at configure time, or by adding -multi_module to the 7484 # link flags. 7485 rm -rf libconftest.dylib* 7486 echo "int foo(void){return 1;}" > conftest.c 7487 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7488-dynamiclib -Wl,-single_module conftest.c" >&5 7489 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7490 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7491 _lt_result=$? 7492 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7493 lt_cv_apple_cc_single_mod=yes 7494 else 7495 cat conftest.err >&5 7496 fi 7497 rm -rf libconftest.dylib* 7498 rm -f conftest.* 7499 fi 7500fi 7501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7502$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7504$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7505if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7506 $as_echo_n "(cached) " >&6 7507else 7508 lt_cv_ld_exported_symbols_list=no 7509 save_LDFLAGS=$LDFLAGS 7510 echo "_main" > conftest.sym 7511 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7513/* end confdefs.h. */ 7514 7515int 7516main () 7517{ 7518 7519 ; 7520 return 0; 7521} 7522_ACEOF 7523if ac_fn_c_try_link "$LINENO"; then : 7524 lt_cv_ld_exported_symbols_list=yes 7525else 7526 lt_cv_ld_exported_symbols_list=no 7527fi 7528rm -f core conftest.err conftest.$ac_objext \ 7529 conftest$ac_exeext conftest.$ac_ext 7530 LDFLAGS="$save_LDFLAGS" 7531 7532fi 7533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7534$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7536$as_echo_n "checking for -force_load linker flag... " >&6; } 7537if test "${lt_cv_ld_force_load+set}" = set; then : 7538 $as_echo_n "(cached) " >&6 7539else 7540 lt_cv_ld_force_load=no 7541 cat > conftest.c << _LT_EOF 7542int forced_loaded() { return 2;} 7543_LT_EOF 7544 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7545 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7546 echo "$AR cru libconftest.a conftest.o" >&5 7547 $AR cru libconftest.a conftest.o 2>&5 7548 cat > conftest.c << _LT_EOF 7549int main() { return 0;} 7550_LT_EOF 7551 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7552 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7553 _lt_result=$? 7554 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7555 lt_cv_ld_force_load=yes 7556 else 7557 cat conftest.err >&5 7558 fi 7559 rm -f conftest.err libconftest.a conftest conftest.c 7560 rm -rf conftest.dSYM 7561 7562fi 7563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7564$as_echo "$lt_cv_ld_force_load" >&6; } 7565 case $host_os in 7566 rhapsody* | darwin1.[012]) 7567 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7568 darwin1.*) 7569 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7570 darwin*) # darwin 5.x on 7571 # if running on 10.5 or later, the deployment target defaults 7572 # to the OS version, if on x86, and 10.4, the deployment 7573 # target defaults to 10.4. Don't you love it? 7574 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7575 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7576 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7577 10.[012]*) 7578 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7579 10.*) 7580 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7581 esac 7582 ;; 7583 esac 7584 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7585 _lt_dar_single_mod='$single_module' 7586 fi 7587 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7588 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7589 else 7590 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7591 fi 7592 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7593 _lt_dsymutil='~$DSYMUTIL $lib || :' 7594 else 7595 _lt_dsymutil= 7596 fi 7597 ;; 7598 esac 7599 7600for ac_header in dlfcn.h 7601do : 7602 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7603" 7604if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7605 cat >>confdefs.h <<_ACEOF 7606#define HAVE_DLFCN_H 1 7607_ACEOF 7608 7609fi 7610 7611done 7612 7613 7614 7615 7616 7617# Set options 7618# Check whether --enable-shared was given. 7619if test "${enable_shared+set}" = set; then : 7620 enableval=$enable_shared; p=${PACKAGE-default} 7621 case $enableval in 7622 yes) enable_shared=yes ;; 7623 no) enable_shared=no ;; 7624 *) 7625 enable_shared=no 7626 # Look at the argument we got. We use all the common list separators. 7627 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7628 for pkg in $enableval; do 7629 IFS="$lt_save_ifs" 7630 if test "X$pkg" = "X$p"; then 7631 enable_shared=yes 7632 fi 7633 done 7634 IFS="$lt_save_ifs" 7635 ;; 7636 esac 7637else 7638 enable_shared=no 7639fi 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 enable_dlopen=no 7651 7652 7653 enable_win32_dll=no 7654 7655 7656 7657 # Check whether --enable-static was given. 7658if test "${enable_static+set}" = set; then : 7659 enableval=$enable_static; p=${PACKAGE-default} 7660 case $enableval in 7661 yes) enable_static=yes ;; 7662 no) enable_static=no ;; 7663 *) 7664 enable_static=no 7665 # Look at the argument we got. We use all the common list separators. 7666 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7667 for pkg in $enableval; do 7668 IFS="$lt_save_ifs" 7669 if test "X$pkg" = "X$p"; then 7670 enable_static=yes 7671 fi 7672 done 7673 IFS="$lt_save_ifs" 7674 ;; 7675 esac 7676else 7677 enable_static=yes 7678fi 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689# Check whether --with-pic was given. 7690if test "${with_pic+set}" = set; then : 7691 withval=$with_pic; pic_mode="$withval" 7692else 7693 pic_mode=default 7694fi 7695 7696 7697test -z "$pic_mode" && pic_mode=default 7698 7699 7700 7701 7702 7703 7704 7705 # Check whether --enable-fast-install was given. 7706if test "${enable_fast_install+set}" = set; then : 7707 enableval=$enable_fast_install; p=${PACKAGE-default} 7708 case $enableval in 7709 yes) enable_fast_install=yes ;; 7710 no) enable_fast_install=no ;; 7711 *) 7712 enable_fast_install=no 7713 # Look at the argument we got. We use all the common list separators. 7714 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7715 for pkg in $enableval; do 7716 IFS="$lt_save_ifs" 7717 if test "X$pkg" = "X$p"; then 7718 enable_fast_install=yes 7719 fi 7720 done 7721 IFS="$lt_save_ifs" 7722 ;; 7723 esac 7724else 7725 enable_fast_install=yes 7726fi 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738# This can be used to rebuild libtool when needed 7739LIBTOOL_DEPS="$ltmain" 7740 7741# Always use our own libtool. 7742LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769test -z "$LN_S" && LN_S="ln -s" 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784if test -n "${ZSH_VERSION+set}" ; then 7785 setopt NO_GLOB_SUBST 7786fi 7787 7788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7789$as_echo_n "checking for objdir... " >&6; } 7790if test "${lt_cv_objdir+set}" = set; then : 7791 $as_echo_n "(cached) " >&6 7792else 7793 rm -f .libs 2>/dev/null 7794mkdir .libs 2>/dev/null 7795if test -d .libs; then 7796 lt_cv_objdir=.libs 7797else 7798 # MS-DOS does not allow filenames that begin with a dot. 7799 lt_cv_objdir=_libs 7800fi 7801rmdir .libs 2>/dev/null 7802fi 7803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7804$as_echo "$lt_cv_objdir" >&6; } 7805objdir=$lt_cv_objdir 7806 7807 7808 7809 7810 7811cat >>confdefs.h <<_ACEOF 7812#define LT_OBJDIR "$lt_cv_objdir/" 7813_ACEOF 7814 7815 7816 7817 7818case $host_os in 7819aix3*) 7820 # AIX sometimes has problems with the GCC collect2 program. For some 7821 # reason, if we set the COLLECT_NAMES environment variable, the problems 7822 # vanish in a puff of smoke. 7823 if test "X${COLLECT_NAMES+set}" != Xset; then 7824 COLLECT_NAMES= 7825 export COLLECT_NAMES 7826 fi 7827 ;; 7828esac 7829 7830# Global variables: 7831ofile=libtool 7832can_build_shared=yes 7833 7834# All known linkers require a `.a' archive for static linking (except MSVC, 7835# which needs '.lib'). 7836libext=a 7837 7838with_gnu_ld="$lt_cv_prog_gnu_ld" 7839 7840old_CC="$CC" 7841old_CFLAGS="$CFLAGS" 7842 7843# Set sane defaults for various variables 7844test -z "$CC" && CC=cc 7845test -z "$LTCC" && LTCC=$CC 7846test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7847test -z "$LD" && LD=ld 7848test -z "$ac_objext" && ac_objext=o 7849 7850for cc_temp in $compiler""; do 7851 case $cc_temp in 7852 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7853 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7854 \-*) ;; 7855 *) break;; 7856 esac 7857done 7858cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7859 7860 7861# Only perform the check for file, if the check method requires it 7862test -z "$MAGIC_CMD" && MAGIC_CMD=file 7863case $deplibs_check_method in 7864file_magic*) 7865 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7867$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7868if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7869 $as_echo_n "(cached) " >&6 7870else 7871 case $MAGIC_CMD in 7872[\\/*] | ?:[\\/]*) 7873 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7874 ;; 7875*) 7876 lt_save_MAGIC_CMD="$MAGIC_CMD" 7877 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7878 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7879 for ac_dir in $ac_dummy; do 7880 IFS="$lt_save_ifs" 7881 test -z "$ac_dir" && ac_dir=. 7882 if test -f $ac_dir/${ac_tool_prefix}file; then 7883 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7884 if test -n "$file_magic_test_file"; then 7885 case $deplibs_check_method in 7886 "file_magic "*) 7887 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7888 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7889 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7890 $EGREP "$file_magic_regex" > /dev/null; then 7891 : 7892 else 7893 cat <<_LT_EOF 1>&2 7894 7895*** Warning: the command libtool uses to detect shared libraries, 7896*** $file_magic_cmd, produces output that libtool cannot recognize. 7897*** The result is that libtool may fail to recognize shared libraries 7898*** as such. This will affect the creation of libtool libraries that 7899*** depend on shared libraries, but programs linked with such libtool 7900*** libraries will work regardless of this problem. Nevertheless, you 7901*** may want to report the problem to your system manager and/or to 7902*** bug-libtool@gnu.org 7903 7904_LT_EOF 7905 fi ;; 7906 esac 7907 fi 7908 break 7909 fi 7910 done 7911 IFS="$lt_save_ifs" 7912 MAGIC_CMD="$lt_save_MAGIC_CMD" 7913 ;; 7914esac 7915fi 7916 7917MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7918if test -n "$MAGIC_CMD"; then 7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7920$as_echo "$MAGIC_CMD" >&6; } 7921else 7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7923$as_echo "no" >&6; } 7924fi 7925 7926 7927 7928 7929 7930if test -z "$lt_cv_path_MAGIC_CMD"; then 7931 if test -n "$ac_tool_prefix"; then 7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7933$as_echo_n "checking for file... " >&6; } 7934if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7935 $as_echo_n "(cached) " >&6 7936else 7937 case $MAGIC_CMD in 7938[\\/*] | ?:[\\/]*) 7939 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7940 ;; 7941*) 7942 lt_save_MAGIC_CMD="$MAGIC_CMD" 7943 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7944 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7945 for ac_dir in $ac_dummy; do 7946 IFS="$lt_save_ifs" 7947 test -z "$ac_dir" && ac_dir=. 7948 if test -f $ac_dir/file; then 7949 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7950 if test -n "$file_magic_test_file"; then 7951 case $deplibs_check_method in 7952 "file_magic "*) 7953 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7955 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7956 $EGREP "$file_magic_regex" > /dev/null; then 7957 : 7958 else 7959 cat <<_LT_EOF 1>&2 7960 7961*** Warning: the command libtool uses to detect shared libraries, 7962*** $file_magic_cmd, produces output that libtool cannot recognize. 7963*** The result is that libtool may fail to recognize shared libraries 7964*** as such. This will affect the creation of libtool libraries that 7965*** depend on shared libraries, but programs linked with such libtool 7966*** libraries will work regardless of this problem. Nevertheless, you 7967*** may want to report the problem to your system manager and/or to 7968*** bug-libtool@gnu.org 7969 7970_LT_EOF 7971 fi ;; 7972 esac 7973 fi 7974 break 7975 fi 7976 done 7977 IFS="$lt_save_ifs" 7978 MAGIC_CMD="$lt_save_MAGIC_CMD" 7979 ;; 7980esac 7981fi 7982 7983MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7984if test -n "$MAGIC_CMD"; then 7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7986$as_echo "$MAGIC_CMD" >&6; } 7987else 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7989$as_echo "no" >&6; } 7990fi 7991 7992 7993 else 7994 MAGIC_CMD=: 7995 fi 7996fi 7997 7998 fi 7999 ;; 8000esac 8001 8002# Use C for the default configuration in the libtool script 8003 8004lt_save_CC="$CC" 8005ac_ext=c 8006ac_cpp='$CPP $CPPFLAGS' 8007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8009ac_compiler_gnu=$ac_cv_c_compiler_gnu 8010 8011 8012# Source file extension for C test sources. 8013ac_ext=c 8014 8015# Object file extension for compiled C test sources. 8016objext=o 8017objext=$objext 8018 8019# Code to be used in simple compile tests 8020lt_simple_compile_test_code="int some_variable = 0;" 8021 8022# Code to be used in simple link tests 8023lt_simple_link_test_code='int main(){return(0);}' 8024 8025 8026 8027 8028 8029 8030 8031# If no C compiler was specified, use CC. 8032LTCC=${LTCC-"$CC"} 8033 8034# If no C compiler flags were specified, use CFLAGS. 8035LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8036 8037# Allow CC to be a program name with arguments. 8038compiler=$CC 8039 8040# Save the default compiler, since it gets overwritten when the other 8041# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8042compiler_DEFAULT=$CC 8043 8044# save warnings/boilerplate of simple test code 8045ac_outfile=conftest.$ac_objext 8046echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8047eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8048_lt_compiler_boilerplate=`cat conftest.err` 8049$RM conftest* 8050 8051ac_outfile=conftest.$ac_objext 8052echo "$lt_simple_link_test_code" >conftest.$ac_ext 8053eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8054_lt_linker_boilerplate=`cat conftest.err` 8055$RM -r conftest* 8056 8057 8058## CAVEAT EMPTOR: 8059## There is no encapsulation within the following macros, do not change 8060## the running order or otherwise move them around unless you know exactly 8061## what you are doing... 8062if test -n "$compiler"; then 8063 8064lt_prog_compiler_no_builtin_flag= 8065 8066if test "$GCC" = yes; then 8067 case $cc_basename in 8068 nvcc*) 8069 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8070 *) 8071 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8072 esac 8073 8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8075$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8076if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8077 $as_echo_n "(cached) " >&6 8078else 8079 lt_cv_prog_compiler_rtti_exceptions=no 8080 ac_outfile=conftest.$ac_objext 8081 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8082 lt_compiler_flag="-fno-rtti -fno-exceptions" 8083 # Insert the option either (1) after the last *FLAGS variable, or 8084 # (2) before a word containing "conftest.", or (3) at the end. 8085 # Note that $ac_compile itself does not contain backslashes and begins 8086 # with a dollar sign (not a hyphen), so the echo should work correctly. 8087 # The option is referenced via a variable to avoid confusing sed. 8088 lt_compile=`echo "$ac_compile" | $SED \ 8089 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8090 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8091 -e 's:$: $lt_compiler_flag:'` 8092 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8093 (eval "$lt_compile" 2>conftest.err) 8094 ac_status=$? 8095 cat conftest.err >&5 8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8097 if (exit $ac_status) && test -s "$ac_outfile"; then 8098 # The compiler can only warn and ignore the option if not recognized 8099 # So say no if there are warnings other than the usual output. 8100 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8101 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8102 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8103 lt_cv_prog_compiler_rtti_exceptions=yes 8104 fi 8105 fi 8106 $RM conftest* 8107 8108fi 8109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8110$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8111 8112if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8113 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8114else 8115 : 8116fi 8117 8118fi 8119 8120 8121 8122 8123 8124 8125 lt_prog_compiler_wl= 8126lt_prog_compiler_pic= 8127lt_prog_compiler_static= 8128 8129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8130$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8131 8132 if test "$GCC" = yes; then 8133 lt_prog_compiler_wl='-Wl,' 8134 lt_prog_compiler_static='-static' 8135 8136 case $host_os in 8137 aix*) 8138 # All AIX code is PIC. 8139 if test "$host_cpu" = ia64; then 8140 # AIX 5 now supports IA64 processor 8141 lt_prog_compiler_static='-Bstatic' 8142 fi 8143 lt_prog_compiler_pic='-fPIC' 8144 ;; 8145 8146 amigaos*) 8147 case $host_cpu in 8148 powerpc) 8149 # see comment about AmigaOS4 .so support 8150 lt_prog_compiler_pic='-fPIC' 8151 ;; 8152 m68k) 8153 # FIXME: we need at least 68020 code to build shared libraries, but 8154 # adding the `-m68020' flag to GCC prevents building anything better, 8155 # like `-m68040'. 8156 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8157 ;; 8158 esac 8159 ;; 8160 8161 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8162 # PIC is the default for these OSes. 8163 ;; 8164 8165 mingw* | cygwin* | pw32* | os2* | cegcc*) 8166 # This hack is so that the source file can tell whether it is being 8167 # built for inclusion in a dll (and should export symbols for example). 8168 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8169 # (--disable-auto-import) libraries 8170 lt_prog_compiler_pic='-DDLL_EXPORT' 8171 ;; 8172 8173 darwin* | rhapsody*) 8174 # PIC is the default on this platform 8175 # Common symbols not allowed in MH_DYLIB files 8176 lt_prog_compiler_pic='-fno-common' 8177 ;; 8178 8179 haiku*) 8180 # PIC is the default for Haiku. 8181 # The "-static" flag exists, but is broken. 8182 lt_prog_compiler_static= 8183 ;; 8184 8185 hpux*) 8186 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8187 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8188 # sets the default TLS model and affects inlining. 8189 case $host_cpu in 8190 hppa*64*) 8191 # +Z the default 8192 ;; 8193 *) 8194 lt_prog_compiler_pic='-fPIC' 8195 ;; 8196 esac 8197 ;; 8198 8199 interix[3-9]*) 8200 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8201 # Instead, we relocate shared libraries at runtime. 8202 ;; 8203 8204 msdosdjgpp*) 8205 # Just because we use GCC doesn't mean we suddenly get shared libraries 8206 # on systems that don't support them. 8207 lt_prog_compiler_can_build_shared=no 8208 enable_shared=no 8209 ;; 8210 8211 *nto* | *qnx*) 8212 # QNX uses GNU C++, but need to define -shared option too, otherwise 8213 # it will coredump. 8214 lt_prog_compiler_pic='-fPIC -shared' 8215 ;; 8216 8217 sysv4*MP*) 8218 if test -d /usr/nec; then 8219 lt_prog_compiler_pic=-Kconform_pic 8220 fi 8221 ;; 8222 8223 *) 8224 lt_prog_compiler_pic='-fPIC' 8225 ;; 8226 esac 8227 8228 case $cc_basename in 8229 nvcc*) # Cuda Compiler Driver 2.2 8230 lt_prog_compiler_wl='-Xlinker ' 8231 lt_prog_compiler_pic='-Xcompiler -fPIC' 8232 ;; 8233 esac 8234 else 8235 # PORTME Check for flag to pass linker flags through the system compiler. 8236 case $host_os in 8237 aix*) 8238 lt_prog_compiler_wl='-Wl,' 8239 if test "$host_cpu" = ia64; then 8240 # AIX 5 now supports IA64 processor 8241 lt_prog_compiler_static='-Bstatic' 8242 else 8243 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8244 fi 8245 ;; 8246 8247 mingw* | cygwin* | pw32* | os2* | cegcc*) 8248 # This hack is so that the source file can tell whether it is being 8249 # built for inclusion in a dll (and should export symbols for example). 8250 lt_prog_compiler_pic='-DDLL_EXPORT' 8251 ;; 8252 8253 hpux9* | hpux10* | hpux11*) 8254 lt_prog_compiler_wl='-Wl,' 8255 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8256 # not for PA HP-UX. 8257 case $host_cpu in 8258 hppa*64*|ia64*) 8259 # +Z the default 8260 ;; 8261 *) 8262 lt_prog_compiler_pic='+Z' 8263 ;; 8264 esac 8265 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8266 lt_prog_compiler_static='${wl}-a ${wl}archive' 8267 ;; 8268 8269 irix5* | irix6* | nonstopux*) 8270 lt_prog_compiler_wl='-Wl,' 8271 # PIC (with -KPIC) is the default. 8272 lt_prog_compiler_static='-non_shared' 8273 ;; 8274 8275 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8276 case $cc_basename in 8277 # old Intel for x86_64 which still supported -KPIC. 8278 ecc*) 8279 lt_prog_compiler_wl='-Wl,' 8280 lt_prog_compiler_pic='-KPIC' 8281 lt_prog_compiler_static='-static' 8282 ;; 8283 # icc used to be incompatible with GCC. 8284 # ICC 10 doesn't accept -KPIC any more. 8285 icc* | ifort*) 8286 lt_prog_compiler_wl='-Wl,' 8287 lt_prog_compiler_pic='-fPIC' 8288 lt_prog_compiler_static='-static' 8289 ;; 8290 # Lahey Fortran 8.1. 8291 lf95*) 8292 lt_prog_compiler_wl='-Wl,' 8293 lt_prog_compiler_pic='--shared' 8294 lt_prog_compiler_static='--static' 8295 ;; 8296 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8297 # Portland Group compilers (*not* the Pentium gcc compiler, 8298 # which looks to be a dead project) 8299 lt_prog_compiler_wl='-Wl,' 8300 lt_prog_compiler_pic='-fpic' 8301 lt_prog_compiler_static='-Bstatic' 8302 ;; 8303 ccc*) 8304 lt_prog_compiler_wl='-Wl,' 8305 # All Alpha code is PIC. 8306 lt_prog_compiler_static='-non_shared' 8307 ;; 8308 xl* | bgxl* | bgf* | mpixl*) 8309 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8310 lt_prog_compiler_wl='-Wl,' 8311 lt_prog_compiler_pic='-qpic' 8312 lt_prog_compiler_static='-qstaticlink' 8313 ;; 8314 *) 8315 case `$CC -V 2>&1 | sed 5q` in 8316 *Sun\ F* | *Sun*Fortran*) 8317 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8318 lt_prog_compiler_pic='-KPIC' 8319 lt_prog_compiler_static='-Bstatic' 8320 lt_prog_compiler_wl='' 8321 ;; 8322 *Sun\ C*) 8323 # Sun C 5.9 8324 lt_prog_compiler_pic='-KPIC' 8325 lt_prog_compiler_static='-Bstatic' 8326 lt_prog_compiler_wl='-Wl,' 8327 ;; 8328 esac 8329 ;; 8330 esac 8331 ;; 8332 8333 newsos6) 8334 lt_prog_compiler_pic='-KPIC' 8335 lt_prog_compiler_static='-Bstatic' 8336 ;; 8337 8338 *nto* | *qnx*) 8339 # QNX uses GNU C++, but need to define -shared option too, otherwise 8340 # it will coredump. 8341 lt_prog_compiler_pic='-fPIC -shared' 8342 ;; 8343 8344 osf3* | osf4* | osf5*) 8345 lt_prog_compiler_wl='-Wl,' 8346 # All OSF/1 code is PIC. 8347 lt_prog_compiler_static='-non_shared' 8348 ;; 8349 8350 rdos*) 8351 lt_prog_compiler_static='-non_shared' 8352 ;; 8353 8354 solaris*) 8355 lt_prog_compiler_pic='-KPIC' 8356 lt_prog_compiler_static='-Bstatic' 8357 case $cc_basename in 8358 f77* | f90* | f95*) 8359 lt_prog_compiler_wl='-Qoption ld ';; 8360 *) 8361 lt_prog_compiler_wl='-Wl,';; 8362 esac 8363 ;; 8364 8365 sunos4*) 8366 lt_prog_compiler_wl='-Qoption ld ' 8367 lt_prog_compiler_pic='-PIC' 8368 lt_prog_compiler_static='-Bstatic' 8369 ;; 8370 8371 sysv4 | sysv4.2uw2* | sysv4.3*) 8372 lt_prog_compiler_wl='-Wl,' 8373 lt_prog_compiler_pic='-KPIC' 8374 lt_prog_compiler_static='-Bstatic' 8375 ;; 8376 8377 sysv4*MP*) 8378 if test -d /usr/nec ;then 8379 lt_prog_compiler_pic='-Kconform_pic' 8380 lt_prog_compiler_static='-Bstatic' 8381 fi 8382 ;; 8383 8384 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8385 lt_prog_compiler_wl='-Wl,' 8386 lt_prog_compiler_pic='-KPIC' 8387 lt_prog_compiler_static='-Bstatic' 8388 ;; 8389 8390 unicos*) 8391 lt_prog_compiler_wl='-Wl,' 8392 lt_prog_compiler_can_build_shared=no 8393 ;; 8394 8395 uts4*) 8396 lt_prog_compiler_pic='-pic' 8397 lt_prog_compiler_static='-Bstatic' 8398 ;; 8399 8400 *) 8401 lt_prog_compiler_can_build_shared=no 8402 ;; 8403 esac 8404 fi 8405 8406case $host_os in 8407 # For platforms which do not support PIC, -DPIC is meaningless: 8408 *djgpp*) 8409 lt_prog_compiler_pic= 8410 ;; 8411 *) 8412 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8413 ;; 8414esac 8415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8416$as_echo "$lt_prog_compiler_pic" >&6; } 8417 8418 8419 8420 8421 8422 8423# 8424# Check to make sure the PIC flag actually works. 8425# 8426if test -n "$lt_prog_compiler_pic"; then 8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8428$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8429if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8430 $as_echo_n "(cached) " >&6 8431else 8432 lt_cv_prog_compiler_pic_works=no 8433 ac_outfile=conftest.$ac_objext 8434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8435 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8436 # Insert the option either (1) after the last *FLAGS variable, or 8437 # (2) before a word containing "conftest.", or (3) at the end. 8438 # Note that $ac_compile itself does not contain backslashes and begins 8439 # with a dollar sign (not a hyphen), so the echo should work correctly. 8440 # The option is referenced via a variable to avoid confusing sed. 8441 lt_compile=`echo "$ac_compile" | $SED \ 8442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8444 -e 's:$: $lt_compiler_flag:'` 8445 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8446 (eval "$lt_compile" 2>conftest.err) 8447 ac_status=$? 8448 cat conftest.err >&5 8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8450 if (exit $ac_status) && test -s "$ac_outfile"; then 8451 # The compiler can only warn and ignore the option if not recognized 8452 # So say no if there are warnings other than the usual output. 8453 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8455 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8456 lt_cv_prog_compiler_pic_works=yes 8457 fi 8458 fi 8459 $RM conftest* 8460 8461fi 8462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8463$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8464 8465if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8466 case $lt_prog_compiler_pic in 8467 "" | " "*) ;; 8468 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8469 esac 8470else 8471 lt_prog_compiler_pic= 8472 lt_prog_compiler_can_build_shared=no 8473fi 8474 8475fi 8476 8477 8478 8479 8480 8481 8482# 8483# Check to make sure the static flag actually works. 8484# 8485wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8487$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8488if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8489 $as_echo_n "(cached) " >&6 8490else 8491 lt_cv_prog_compiler_static_works=no 8492 save_LDFLAGS="$LDFLAGS" 8493 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8494 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8495 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8496 # The linker can only warn and ignore the option if not recognized 8497 # So say no if there are warnings 8498 if test -s conftest.err; then 8499 # Append any errors to the config.log. 8500 cat conftest.err 1>&5 8501 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8503 if diff conftest.exp conftest.er2 >/dev/null; then 8504 lt_cv_prog_compiler_static_works=yes 8505 fi 8506 else 8507 lt_cv_prog_compiler_static_works=yes 8508 fi 8509 fi 8510 $RM -r conftest* 8511 LDFLAGS="$save_LDFLAGS" 8512 8513fi 8514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8515$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8516 8517if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8518 : 8519else 8520 lt_prog_compiler_static= 8521fi 8522 8523 8524 8525 8526 8527 8528 8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8530$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8531if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8532 $as_echo_n "(cached) " >&6 8533else 8534 lt_cv_prog_compiler_c_o=no 8535 $RM -r conftest 2>/dev/null 8536 mkdir conftest 8537 cd conftest 8538 mkdir out 8539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8540 8541 lt_compiler_flag="-o out/conftest2.$ac_objext" 8542 # Insert the option either (1) after the last *FLAGS variable, or 8543 # (2) before a word containing "conftest.", or (3) at the end. 8544 # Note that $ac_compile itself does not contain backslashes and begins 8545 # with a dollar sign (not a hyphen), so the echo should work correctly. 8546 lt_compile=`echo "$ac_compile" | $SED \ 8547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8549 -e 's:$: $lt_compiler_flag:'` 8550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8551 (eval "$lt_compile" 2>out/conftest.err) 8552 ac_status=$? 8553 cat out/conftest.err >&5 8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8555 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8556 then 8557 # The compiler can only warn and ignore the option if not recognized 8558 # So say no if there are warnings 8559 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8560 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8561 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8562 lt_cv_prog_compiler_c_o=yes 8563 fi 8564 fi 8565 chmod u+w . 2>&5 8566 $RM conftest* 8567 # SGI C++ compiler will create directory out/ii_files/ for 8568 # template instantiation 8569 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8570 $RM out/* && rmdir out 8571 cd .. 8572 $RM -r conftest 8573 $RM conftest* 8574 8575fi 8576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8577$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8578 8579 8580 8581 8582 8583 8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8585$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8586if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8587 $as_echo_n "(cached) " >&6 8588else 8589 lt_cv_prog_compiler_c_o=no 8590 $RM -r conftest 2>/dev/null 8591 mkdir conftest 8592 cd conftest 8593 mkdir out 8594 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8595 8596 lt_compiler_flag="-o out/conftest2.$ac_objext" 8597 # Insert the option either (1) after the last *FLAGS variable, or 8598 # (2) before a word containing "conftest.", or (3) at the end. 8599 # Note that $ac_compile itself does not contain backslashes and begins 8600 # with a dollar sign (not a hyphen), so the echo should work correctly. 8601 lt_compile=`echo "$ac_compile" | $SED \ 8602 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8603 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8604 -e 's:$: $lt_compiler_flag:'` 8605 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8606 (eval "$lt_compile" 2>out/conftest.err) 8607 ac_status=$? 8608 cat out/conftest.err >&5 8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8610 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8611 then 8612 # The compiler can only warn and ignore the option if not recognized 8613 # So say no if there are warnings 8614 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8615 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8616 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8617 lt_cv_prog_compiler_c_o=yes 8618 fi 8619 fi 8620 chmod u+w . 2>&5 8621 $RM conftest* 8622 # SGI C++ compiler will create directory out/ii_files/ for 8623 # template instantiation 8624 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8625 $RM out/* && rmdir out 8626 cd .. 8627 $RM -r conftest 8628 $RM conftest* 8629 8630fi 8631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8632$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8633 8634 8635 8636 8637hard_links="nottested" 8638if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8639 # do not overwrite the value of need_locks provided by the user 8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8641$as_echo_n "checking if we can lock with hard links... " >&6; } 8642 hard_links=yes 8643 $RM conftest* 8644 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8645 touch conftest.a 8646 ln conftest.a conftest.b 2>&5 || hard_links=no 8647 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8649$as_echo "$hard_links" >&6; } 8650 if test "$hard_links" = no; then 8651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8652$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8653 need_locks=warn 8654 fi 8655else 8656 need_locks=no 8657fi 8658 8659 8660 8661 8662 8663 8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8665$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8666 8667 runpath_var= 8668 allow_undefined_flag= 8669 always_export_symbols=no 8670 archive_cmds= 8671 archive_expsym_cmds= 8672 compiler_needs_object=no 8673 enable_shared_with_static_runtimes=no 8674 export_dynamic_flag_spec= 8675 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8676 hardcode_automatic=no 8677 hardcode_direct=no 8678 hardcode_direct_absolute=no 8679 hardcode_libdir_flag_spec= 8680 hardcode_libdir_flag_spec_ld= 8681 hardcode_libdir_separator= 8682 hardcode_minus_L=no 8683 hardcode_shlibpath_var=unsupported 8684 inherit_rpath=no 8685 link_all_deplibs=unknown 8686 module_cmds= 8687 module_expsym_cmds= 8688 old_archive_from_new_cmds= 8689 old_archive_from_expsyms_cmds= 8690 thread_safe_flag_spec= 8691 whole_archive_flag_spec= 8692 # include_expsyms should be a list of space-separated symbols to be *always* 8693 # included in the symbol list 8694 include_expsyms= 8695 # exclude_expsyms can be an extended regexp of symbols to exclude 8696 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8697 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8698 # as well as any symbol that contains `d'. 8699 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8700 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8701 # platforms (ab)use it in PIC code, but their linkers get confused if 8702 # the symbol is explicitly referenced. Since portable code cannot 8703 # rely on this symbol name, it's probably fine to never include it in 8704 # preloaded symbol tables. 8705 # Exclude shared library initialization/finalization symbols. 8706 extract_expsyms_cmds= 8707 8708 case $host_os in 8709 cygwin* | mingw* | pw32* | cegcc*) 8710 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8711 # When not using gcc, we currently assume that we are using 8712 # Microsoft Visual C++. 8713 if test "$GCC" != yes; then 8714 with_gnu_ld=no 8715 fi 8716 ;; 8717 interix*) 8718 # we just hope/assume this is gcc and not c89 (= MSVC++) 8719 with_gnu_ld=yes 8720 ;; 8721 openbsd*) 8722 with_gnu_ld=no 8723 ;; 8724 esac 8725 8726 ld_shlibs=yes 8727 8728 # On some targets, GNU ld is compatible enough with the native linker 8729 # that we're better off using the native interface for both. 8730 lt_use_gnu_ld_interface=no 8731 if test "$with_gnu_ld" = yes; then 8732 case $host_os in 8733 aix*) 8734 # The AIX port of GNU ld has always aspired to compatibility 8735 # with the native linker. However, as the warning in the GNU ld 8736 # block says, versions before 2.19.5* couldn't really create working 8737 # shared libraries, regardless of the interface used. 8738 case `$LD -v 2>&1` in 8739 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8740 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8741 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8742 *) 8743 lt_use_gnu_ld_interface=yes 8744 ;; 8745 esac 8746 ;; 8747 *) 8748 lt_use_gnu_ld_interface=yes 8749 ;; 8750 esac 8751 fi 8752 8753 if test "$lt_use_gnu_ld_interface" = yes; then 8754 # If archive_cmds runs LD, not CC, wlarc should be empty 8755 wlarc='${wl}' 8756 8757 # Set some defaults for GNU ld with shared library support. These 8758 # are reset later if shared libraries are not supported. Putting them 8759 # here allows them to be overridden if necessary. 8760 runpath_var=LD_RUN_PATH 8761 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8762 export_dynamic_flag_spec='${wl}--export-dynamic' 8763 # ancient GNU ld didn't support --whole-archive et. al. 8764 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8765 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8766 else 8767 whole_archive_flag_spec= 8768 fi 8769 supports_anon_versioning=no 8770 case `$LD -v 2>&1` in 8771 *GNU\ gold*) supports_anon_versioning=yes ;; 8772 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8773 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8774 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8775 *\ 2.11.*) ;; # other 2.11 versions 8776 *) supports_anon_versioning=yes ;; 8777 esac 8778 8779 # See if GNU ld supports shared libraries. 8780 case $host_os in 8781 aix[3-9]*) 8782 # On AIX/PPC, the GNU linker is very broken 8783 if test "$host_cpu" != ia64; then 8784 ld_shlibs=no 8785 cat <<_LT_EOF 1>&2 8786 8787*** Warning: the GNU linker, at least up to release 2.19, is reported 8788*** to be unable to reliably create shared libraries on AIX. 8789*** Therefore, libtool is disabling shared libraries support. If you 8790*** really care for shared libraries, you may want to install binutils 8791*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8792*** You will then need to restart the configuration process. 8793 8794_LT_EOF 8795 fi 8796 ;; 8797 8798 amigaos*) 8799 case $host_cpu in 8800 powerpc) 8801 # see comment about AmigaOS4 .so support 8802 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8803 archive_expsym_cmds='' 8804 ;; 8805 m68k) 8806 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)' 8807 hardcode_libdir_flag_spec='-L$libdir' 8808 hardcode_minus_L=yes 8809 ;; 8810 esac 8811 ;; 8812 8813 beos*) 8814 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8815 allow_undefined_flag=unsupported 8816 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8817 # support --undefined. This deserves some investigation. FIXME 8818 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8819 else 8820 ld_shlibs=no 8821 fi 8822 ;; 8823 8824 cygwin* | mingw* | pw32* | cegcc*) 8825 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8826 # as there is no search path for DLLs. 8827 hardcode_libdir_flag_spec='-L$libdir' 8828 export_dynamic_flag_spec='${wl}--export-all-symbols' 8829 allow_undefined_flag=unsupported 8830 always_export_symbols=no 8831 enable_shared_with_static_runtimes=yes 8832 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8833 8834 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8836 # If the export-symbols file already is a .def file (1st line 8837 # is EXPORTS), use it as is; otherwise, prepend... 8838 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8839 cp $export_symbols $output_objdir/$soname.def; 8840 else 8841 echo EXPORTS > $output_objdir/$soname.def; 8842 cat $export_symbols >> $output_objdir/$soname.def; 8843 fi~ 8844 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8845 else 8846 ld_shlibs=no 8847 fi 8848 ;; 8849 8850 haiku*) 8851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8852 link_all_deplibs=yes 8853 ;; 8854 8855 interix[3-9]*) 8856 hardcode_direct=no 8857 hardcode_shlibpath_var=no 8858 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8859 export_dynamic_flag_spec='${wl}-E' 8860 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8861 # Instead, shared libraries are loaded at an image base (0x10000000 by 8862 # default) and relocated if they conflict, which is a slow very memory 8863 # consuming and fragmenting process. To avoid this, we pick a random, 8864 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8865 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8866 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8867 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' 8868 ;; 8869 8870 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8871 tmp_diet=no 8872 if test "$host_os" = linux-dietlibc; then 8873 case $cc_basename in 8874 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8875 esac 8876 fi 8877 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8878 && test "$tmp_diet" = no 8879 then 8880 tmp_addflag= 8881 tmp_sharedflag='-shared' 8882 case $cc_basename,$host_cpu in 8883 pgcc*) # Portland Group C compiler 8884 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' 8885 tmp_addflag=' $pic_flag' 8886 ;; 8887 pgf77* | pgf90* | pgf95* | pgfortran*) 8888 # Portland Group f77 and f90 compilers 8889 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' 8890 tmp_addflag=' $pic_flag -Mnomain' ;; 8891 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8892 tmp_addflag=' -i_dynamic' ;; 8893 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8894 tmp_addflag=' -i_dynamic -nofor_main' ;; 8895 ifc* | ifort*) # Intel Fortran compiler 8896 tmp_addflag=' -nofor_main' ;; 8897 lf95*) # Lahey Fortran 8.1 8898 whole_archive_flag_spec= 8899 tmp_sharedflag='--shared' ;; 8900 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8901 tmp_sharedflag='-qmkshrobj' 8902 tmp_addflag= ;; 8903 nvcc*) # Cuda Compiler Driver 2.2 8904 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' 8905 compiler_needs_object=yes 8906 ;; 8907 esac 8908 case `$CC -V 2>&1 | sed 5q` in 8909 *Sun\ C*) # Sun C 5.9 8910 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' 8911 compiler_needs_object=yes 8912 tmp_sharedflag='-G' ;; 8913 *Sun\ F*) # Sun Fortran 8.3 8914 tmp_sharedflag='-G' ;; 8915 esac 8916 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8917 8918 if test "x$supports_anon_versioning" = xyes; then 8919 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8920 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8921 echo "local: *; };" >> $output_objdir/$libname.ver~ 8922 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8923 fi 8924 8925 case $cc_basename in 8926 xlf* | bgf* | bgxlf* | mpixlf*) 8927 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8928 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8929 hardcode_libdir_flag_spec= 8930 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8931 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8932 if test "x$supports_anon_versioning" = xyes; then 8933 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8934 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8935 echo "local: *; };" >> $output_objdir/$libname.ver~ 8936 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8937 fi 8938 ;; 8939 esac 8940 else 8941 ld_shlibs=no 8942 fi 8943 ;; 8944 8945 netbsd*) 8946 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8947 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8948 wlarc= 8949 else 8950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8951 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8952 fi 8953 ;; 8954 8955 solaris*) 8956 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8957 ld_shlibs=no 8958 cat <<_LT_EOF 1>&2 8959 8960*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8961*** create shared libraries on Solaris systems. Therefore, libtool 8962*** is disabling shared libraries support. We urge you to upgrade GNU 8963*** binutils to release 2.9.1 or newer. Another option is to modify 8964*** your PATH or compiler configuration so that the native linker is 8965*** used, and then restart. 8966 8967_LT_EOF 8968 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8970 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8971 else 8972 ld_shlibs=no 8973 fi 8974 ;; 8975 8976 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8977 case `$LD -v 2>&1` in 8978 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8979 ld_shlibs=no 8980 cat <<_LT_EOF 1>&2 8981 8982*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8983*** reliably create shared libraries on SCO systems. Therefore, libtool 8984*** is disabling shared libraries support. We urge you to upgrade GNU 8985*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8986*** your PATH or compiler configuration so that the native linker is 8987*** used, and then restart. 8988 8989_LT_EOF 8990 ;; 8991 *) 8992 # For security reasons, it is highly recommended that you always 8993 # use absolute paths for naming shared libraries, and exclude the 8994 # DT_RUNPATH tag from executables and libraries. But doing so 8995 # requires that you compile everything twice, which is a pain. 8996 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8997 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8998 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8999 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9000 else 9001 ld_shlibs=no 9002 fi 9003 ;; 9004 esac 9005 ;; 9006 9007 sunos4*) 9008 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9009 wlarc= 9010 hardcode_direct=yes 9011 hardcode_shlibpath_var=no 9012 ;; 9013 9014 *) 9015 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9017 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9018 else 9019 ld_shlibs=no 9020 fi 9021 ;; 9022 esac 9023 9024 if test "$ld_shlibs" = no; then 9025 runpath_var= 9026 hardcode_libdir_flag_spec= 9027 export_dynamic_flag_spec= 9028 whole_archive_flag_spec= 9029 fi 9030 else 9031 # PORTME fill in a description of your system's linker (not GNU ld) 9032 case $host_os in 9033 aix3*) 9034 allow_undefined_flag=unsupported 9035 always_export_symbols=yes 9036 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' 9037 # Note: this linker hardcodes the directories in LIBPATH if there 9038 # are no directories specified by -L. 9039 hardcode_minus_L=yes 9040 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9041 # Neither direct hardcoding nor static linking is supported with a 9042 # broken collect2. 9043 hardcode_direct=unsupported 9044 fi 9045 ;; 9046 9047 aix[4-9]*) 9048 if test "$host_cpu" = ia64; then 9049 # On IA64, the linker does run time linking by default, so we don't 9050 # have to do anything special. 9051 aix_use_runtimelinking=no 9052 exp_sym_flag='-Bexport' 9053 no_entry_flag="" 9054 else 9055 # If we're using GNU nm, then we don't want the "-C" option. 9056 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9057 # Also, AIX nm treats weak defined symbols like other global 9058 # defined symbols, whereas GNU nm marks them as "W". 9059 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9060 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' 9061 else 9062 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' 9063 fi 9064 aix_use_runtimelinking=no 9065 9066 # Test if we are trying to use run time linking or normal 9067 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9068 # need to do runtime linking. 9069 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9070 for ld_flag in $LDFLAGS; do 9071 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9072 aix_use_runtimelinking=yes 9073 break 9074 fi 9075 done 9076 ;; 9077 esac 9078 9079 exp_sym_flag='-bexport' 9080 no_entry_flag='-bnoentry' 9081 fi 9082 9083 # When large executables or shared objects are built, AIX ld can 9084 # have problems creating the table of contents. If linking a library 9085 # or program results in "error TOC overflow" add -mminimal-toc to 9086 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9087 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9088 9089 archive_cmds='' 9090 hardcode_direct=yes 9091 hardcode_direct_absolute=yes 9092 hardcode_libdir_separator=':' 9093 link_all_deplibs=yes 9094 file_list_spec='${wl}-f,' 9095 9096 if test "$GCC" = yes; then 9097 case $host_os in aix4.[012]|aix4.[012].*) 9098 # We only want to do this on AIX 4.2 and lower, the check 9099 # below for broken collect2 doesn't work under 4.3+ 9100 collect2name=`${CC} -print-prog-name=collect2` 9101 if test -f "$collect2name" && 9102 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9103 then 9104 # We have reworked collect2 9105 : 9106 else 9107 # We have old collect2 9108 hardcode_direct=unsupported 9109 # It fails to find uninstalled libraries when the uninstalled 9110 # path is not listed in the libpath. Setting hardcode_minus_L 9111 # to unsupported forces relinking 9112 hardcode_minus_L=yes 9113 hardcode_libdir_flag_spec='-L$libdir' 9114 hardcode_libdir_separator= 9115 fi 9116 ;; 9117 esac 9118 shared_flag='-shared' 9119 if test "$aix_use_runtimelinking" = yes; then 9120 shared_flag="$shared_flag "'${wl}-G' 9121 fi 9122 else 9123 # not using gcc 9124 if test "$host_cpu" = ia64; then 9125 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9126 # chokes on -Wl,-G. The following line is correct: 9127 shared_flag='-G' 9128 else 9129 if test "$aix_use_runtimelinking" = yes; then 9130 shared_flag='${wl}-G' 9131 else 9132 shared_flag='${wl}-bM:SRE' 9133 fi 9134 fi 9135 fi 9136 9137 export_dynamic_flag_spec='${wl}-bexpall' 9138 # It seems that -bexpall does not export symbols beginning with 9139 # underscore (_), so it is better to generate a list of symbols to export. 9140 always_export_symbols=yes 9141 if test "$aix_use_runtimelinking" = yes; then 9142 # Warning - without using the other runtime loading flags (-brtl), 9143 # -berok will link without error, but may produce a broken library. 9144 allow_undefined_flag='-berok' 9145 # Determine the default libpath from the value encoded in an 9146 # empty executable. 9147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9148/* end confdefs.h. */ 9149 9150int 9151main () 9152{ 9153 9154 ; 9155 return 0; 9156} 9157_ACEOF 9158if ac_fn_c_try_link "$LINENO"; then : 9159 9160lt_aix_libpath_sed=' 9161 /Import File Strings/,/^$/ { 9162 /^0/ { 9163 s/^0 *\(.*\)$/\1/ 9164 p 9165 } 9166 }' 9167aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9168# Check for a 64-bit object if we didn't find anything. 9169if test -z "$aix_libpath"; then 9170 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9171fi 9172fi 9173rm -f core conftest.err conftest.$ac_objext \ 9174 conftest$ac_exeext conftest.$ac_ext 9175if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9176 9177 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9178 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" 9179 else 9180 if test "$host_cpu" = ia64; then 9181 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9182 allow_undefined_flag="-z nodefs" 9183 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" 9184 else 9185 # Determine the default libpath from the value encoded in an 9186 # empty executable. 9187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9188/* end confdefs.h. */ 9189 9190int 9191main () 9192{ 9193 9194 ; 9195 return 0; 9196} 9197_ACEOF 9198if ac_fn_c_try_link "$LINENO"; then : 9199 9200lt_aix_libpath_sed=' 9201 /Import File Strings/,/^$/ { 9202 /^0/ { 9203 s/^0 *\(.*\)$/\1/ 9204 p 9205 } 9206 }' 9207aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9208# Check for a 64-bit object if we didn't find anything. 9209if test -z "$aix_libpath"; then 9210 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9211fi 9212fi 9213rm -f core conftest.err conftest.$ac_objext \ 9214 conftest$ac_exeext conftest.$ac_ext 9215if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9216 9217 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9218 # Warning - without using the other run time loading flags, 9219 # -berok will link without error, but may produce a broken library. 9220 no_undefined_flag=' ${wl}-bernotok' 9221 allow_undefined_flag=' ${wl}-berok' 9222 if test "$with_gnu_ld" = yes; then 9223 # We only use this code for GNU lds that support --whole-archive. 9224 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9225 else 9226 # Exported symbols can be pulled into shared objects from archives 9227 whole_archive_flag_spec='$convenience' 9228 fi 9229 archive_cmds_need_lc=yes 9230 # This is similar to how AIX traditionally builds its shared libraries. 9231 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' 9232 fi 9233 fi 9234 ;; 9235 9236 amigaos*) 9237 case $host_cpu in 9238 powerpc) 9239 # see comment about AmigaOS4 .so support 9240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9241 archive_expsym_cmds='' 9242 ;; 9243 m68k) 9244 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)' 9245 hardcode_libdir_flag_spec='-L$libdir' 9246 hardcode_minus_L=yes 9247 ;; 9248 esac 9249 ;; 9250 9251 bsdi[45]*) 9252 export_dynamic_flag_spec=-rdynamic 9253 ;; 9254 9255 cygwin* | mingw* | pw32* | cegcc*) 9256 # When not using gcc, we currently assume that we are using 9257 # Microsoft Visual C++. 9258 # hardcode_libdir_flag_spec is actually meaningless, as there is 9259 # no search path for DLLs. 9260 hardcode_libdir_flag_spec=' ' 9261 allow_undefined_flag=unsupported 9262 # Tell ltmain to make .lib files, not .a files. 9263 libext=lib 9264 # Tell ltmain to make .dll files, not .so files. 9265 shrext_cmds=".dll" 9266 # FIXME: Setting linknames here is a bad hack. 9267 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9268 # The linker will automatically build a .lib file if we build a DLL. 9269 old_archive_from_new_cmds='true' 9270 # FIXME: Should let the user specify the lib program. 9271 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9272 fix_srcfile_path='`cygpath -w "$srcfile"`' 9273 enable_shared_with_static_runtimes=yes 9274 ;; 9275 9276 darwin* | rhapsody*) 9277 9278 9279 archive_cmds_need_lc=no 9280 hardcode_direct=no 9281 hardcode_automatic=yes 9282 hardcode_shlibpath_var=unsupported 9283 if test "$lt_cv_ld_force_load" = "yes"; then 9284 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\"`' 9285 else 9286 whole_archive_flag_spec='' 9287 fi 9288 link_all_deplibs=yes 9289 allow_undefined_flag="$_lt_dar_allow_undefined" 9290 case $cc_basename in 9291 ifort*) _lt_dar_can_shared=yes ;; 9292 *) _lt_dar_can_shared=$GCC ;; 9293 esac 9294 if test "$_lt_dar_can_shared" = "yes"; then 9295 output_verbose_link_cmd=func_echo_all 9296 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9297 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9298 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}" 9299 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}" 9300 9301 else 9302 ld_shlibs=no 9303 fi 9304 9305 ;; 9306 9307 dgux*) 9308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9309 hardcode_libdir_flag_spec='-L$libdir' 9310 hardcode_shlibpath_var=no 9311 ;; 9312 9313 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9314 # support. Future versions do this automatically, but an explicit c++rt0.o 9315 # does not break anything, and helps significantly (at the cost of a little 9316 # extra space). 9317 freebsd2.2*) 9318 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9319 hardcode_libdir_flag_spec='-R$libdir' 9320 hardcode_direct=yes 9321 hardcode_shlibpath_var=no 9322 ;; 9323 9324 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9325 freebsd2.*) 9326 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9327 hardcode_direct=yes 9328 hardcode_minus_L=yes 9329 hardcode_shlibpath_var=no 9330 ;; 9331 9332 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9333 freebsd* | dragonfly*) 9334 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9335 hardcode_libdir_flag_spec='-R$libdir' 9336 hardcode_direct=yes 9337 hardcode_shlibpath_var=no 9338 ;; 9339 9340 hpux9*) 9341 if test "$GCC" = yes; then 9342 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' 9343 else 9344 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' 9345 fi 9346 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9347 hardcode_libdir_separator=: 9348 hardcode_direct=yes 9349 9350 # hardcode_minus_L: Not really in the search PATH, 9351 # but as the default location of the library. 9352 hardcode_minus_L=yes 9353 export_dynamic_flag_spec='${wl}-E' 9354 ;; 9355 9356 hpux10*) 9357 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9358 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9359 else 9360 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9361 fi 9362 if test "$with_gnu_ld" = no; then 9363 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9364 hardcode_libdir_flag_spec_ld='+b $libdir' 9365 hardcode_libdir_separator=: 9366 hardcode_direct=yes 9367 hardcode_direct_absolute=yes 9368 export_dynamic_flag_spec='${wl}-E' 9369 # hardcode_minus_L: Not really in the search PATH, 9370 # but as the default location of the library. 9371 hardcode_minus_L=yes 9372 fi 9373 ;; 9374 9375 hpux11*) 9376 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9377 case $host_cpu in 9378 hppa*64*) 9379 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9380 ;; 9381 ia64*) 9382 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9383 ;; 9384 *) 9385 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9386 ;; 9387 esac 9388 else 9389 case $host_cpu in 9390 hppa*64*) 9391 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9392 ;; 9393 ia64*) 9394 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9395 ;; 9396 *) 9397 9398 # Older versions of the 11.00 compiler do not understand -b yet 9399 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9401$as_echo_n "checking if $CC understands -b... " >&6; } 9402if test "${lt_cv_prog_compiler__b+set}" = set; then : 9403 $as_echo_n "(cached) " >&6 9404else 9405 lt_cv_prog_compiler__b=no 9406 save_LDFLAGS="$LDFLAGS" 9407 LDFLAGS="$LDFLAGS -b" 9408 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9409 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9410 # The linker can only warn and ignore the option if not recognized 9411 # So say no if there are warnings 9412 if test -s conftest.err; then 9413 # Append any errors to the config.log. 9414 cat conftest.err 1>&5 9415 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9416 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9417 if diff conftest.exp conftest.er2 >/dev/null; then 9418 lt_cv_prog_compiler__b=yes 9419 fi 9420 else 9421 lt_cv_prog_compiler__b=yes 9422 fi 9423 fi 9424 $RM -r conftest* 9425 LDFLAGS="$save_LDFLAGS" 9426 9427fi 9428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9429$as_echo "$lt_cv_prog_compiler__b" >&6; } 9430 9431if test x"$lt_cv_prog_compiler__b" = xyes; then 9432 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9433else 9434 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9435fi 9436 9437 ;; 9438 esac 9439 fi 9440 if test "$with_gnu_ld" = no; then 9441 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9442 hardcode_libdir_separator=: 9443 9444 case $host_cpu in 9445 hppa*64*|ia64*) 9446 hardcode_direct=no 9447 hardcode_shlibpath_var=no 9448 ;; 9449 *) 9450 hardcode_direct=yes 9451 hardcode_direct_absolute=yes 9452 export_dynamic_flag_spec='${wl}-E' 9453 9454 # hardcode_minus_L: Not really in the search PATH, 9455 # but as the default location of the library. 9456 hardcode_minus_L=yes 9457 ;; 9458 esac 9459 fi 9460 ;; 9461 9462 irix5* | irix6* | nonstopux*) 9463 if test "$GCC" = yes; then 9464 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' 9465 # Try to use the -exported_symbol ld option, if it does not 9466 # work, assume that -exports_file does not work either and 9467 # implicitly export all symbols. 9468 save_LDFLAGS="$LDFLAGS" 9469 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9471/* end confdefs.h. */ 9472int foo(void) {} 9473_ACEOF 9474if ac_fn_c_try_link "$LINENO"; then : 9475 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' 9476 9477fi 9478rm -f core conftest.err conftest.$ac_objext \ 9479 conftest$ac_exeext conftest.$ac_ext 9480 LDFLAGS="$save_LDFLAGS" 9481 else 9482 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' 9483 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' 9484 fi 9485 archive_cmds_need_lc='no' 9486 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9487 hardcode_libdir_separator=: 9488 inherit_rpath=yes 9489 link_all_deplibs=yes 9490 ;; 9491 9492 netbsd*) 9493 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9495 else 9496 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9497 fi 9498 hardcode_libdir_flag_spec='-R$libdir' 9499 hardcode_direct=yes 9500 hardcode_shlibpath_var=no 9501 ;; 9502 9503 newsos6) 9504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9505 hardcode_direct=yes 9506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9507 hardcode_libdir_separator=: 9508 hardcode_shlibpath_var=no 9509 ;; 9510 9511 *nto* | *qnx*) 9512 ;; 9513 9514 openbsd*) 9515 if test -f /usr/libexec/ld.so; then 9516 hardcode_direct=yes 9517 hardcode_shlibpath_var=no 9518 hardcode_direct_absolute=yes 9519 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9520 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9521 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9522 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9523 export_dynamic_flag_spec='${wl}-E' 9524 else 9525 case $host_os in 9526 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9528 hardcode_libdir_flag_spec='-R$libdir' 9529 ;; 9530 *) 9531 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9532 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9533 ;; 9534 esac 9535 fi 9536 else 9537 ld_shlibs=no 9538 fi 9539 ;; 9540 9541 os2*) 9542 hardcode_libdir_flag_spec='-L$libdir' 9543 hardcode_minus_L=yes 9544 allow_undefined_flag=unsupported 9545 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' 9546 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9547 ;; 9548 9549 osf3*) 9550 if test "$GCC" = yes; then 9551 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9552 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' 9553 else 9554 allow_undefined_flag=' -expect_unresolved \*' 9555 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' 9556 fi 9557 archive_cmds_need_lc='no' 9558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9559 hardcode_libdir_separator=: 9560 ;; 9561 9562 osf4* | osf5*) # as osf3* with the addition of -msym flag 9563 if test "$GCC" = yes; then 9564 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9565 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' 9566 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9567 else 9568 allow_undefined_flag=' -expect_unresolved \*' 9569 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' 9570 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~ 9571 $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' 9572 9573 # Both c and cxx compiler support -rpath directly 9574 hardcode_libdir_flag_spec='-rpath $libdir' 9575 fi 9576 archive_cmds_need_lc='no' 9577 hardcode_libdir_separator=: 9578 ;; 9579 9580 solaris*) 9581 no_undefined_flag=' -z defs' 9582 if test "$GCC" = yes; then 9583 wlarc='${wl}' 9584 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9585 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9586 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9587 else 9588 case `$CC -V 2>&1` in 9589 *"Compilers 5.0"*) 9590 wlarc='' 9591 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9592 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9593 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9594 ;; 9595 *) 9596 wlarc='${wl}' 9597 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9598 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9599 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9600 ;; 9601 esac 9602 fi 9603 hardcode_libdir_flag_spec='-R$libdir' 9604 hardcode_shlibpath_var=no 9605 case $host_os in 9606 solaris2.[0-5] | solaris2.[0-5].*) ;; 9607 *) 9608 # The compiler driver will combine and reorder linker options, 9609 # but understands `-z linker_flag'. GCC discards it without `$wl', 9610 # but is careful enough not to reorder. 9611 # Supported since Solaris 2.6 (maybe 2.5.1?) 9612 if test "$GCC" = yes; then 9613 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9614 else 9615 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9616 fi 9617 ;; 9618 esac 9619 link_all_deplibs=yes 9620 ;; 9621 9622 sunos4*) 9623 if test "x$host_vendor" = xsequent; then 9624 # Use $CC to link under sequent, because it throws in some extra .o 9625 # files that make .init and .fini sections work. 9626 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9627 else 9628 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9629 fi 9630 hardcode_libdir_flag_spec='-L$libdir' 9631 hardcode_direct=yes 9632 hardcode_minus_L=yes 9633 hardcode_shlibpath_var=no 9634 ;; 9635 9636 sysv4) 9637 case $host_vendor in 9638 sni) 9639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9640 hardcode_direct=yes # is this really true??? 9641 ;; 9642 siemens) 9643 ## LD is ld it makes a PLAMLIB 9644 ## CC just makes a GrossModule. 9645 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9646 reload_cmds='$CC -r -o $output$reload_objs' 9647 hardcode_direct=no 9648 ;; 9649 motorola) 9650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9651 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9652 ;; 9653 esac 9654 runpath_var='LD_RUN_PATH' 9655 hardcode_shlibpath_var=no 9656 ;; 9657 9658 sysv4.3*) 9659 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9660 hardcode_shlibpath_var=no 9661 export_dynamic_flag_spec='-Bexport' 9662 ;; 9663 9664 sysv4*MP*) 9665 if test -d /usr/nec; then 9666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9667 hardcode_shlibpath_var=no 9668 runpath_var=LD_RUN_PATH 9669 hardcode_runpath_var=yes 9670 ld_shlibs=yes 9671 fi 9672 ;; 9673 9674 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9675 no_undefined_flag='${wl}-z,text' 9676 archive_cmds_need_lc=no 9677 hardcode_shlibpath_var=no 9678 runpath_var='LD_RUN_PATH' 9679 9680 if test "$GCC" = yes; then 9681 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9682 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9683 else 9684 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9685 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9686 fi 9687 ;; 9688 9689 sysv5* | sco3.2v5* | sco5v6*) 9690 # Note: We can NOT use -z defs as we might desire, because we do not 9691 # link with -lc, and that would cause any symbols used from libc to 9692 # always be unresolved, which means just about no library would 9693 # ever link correctly. If we're not using GNU ld we use -z text 9694 # though, which does catch some bad symbols but isn't as heavy-handed 9695 # as -z defs. 9696 no_undefined_flag='${wl}-z,text' 9697 allow_undefined_flag='${wl}-z,nodefs' 9698 archive_cmds_need_lc=no 9699 hardcode_shlibpath_var=no 9700 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9701 hardcode_libdir_separator=':' 9702 link_all_deplibs=yes 9703 export_dynamic_flag_spec='${wl}-Bexport' 9704 runpath_var='LD_RUN_PATH' 9705 9706 if test "$GCC" = yes; then 9707 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9708 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9709 else 9710 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9711 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9712 fi 9713 ;; 9714 9715 uts4*) 9716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9717 hardcode_libdir_flag_spec='-L$libdir' 9718 hardcode_shlibpath_var=no 9719 ;; 9720 9721 *) 9722 ld_shlibs=no 9723 ;; 9724 esac 9725 9726 if test x$host_vendor = xsni; then 9727 case $host in 9728 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9729 export_dynamic_flag_spec='${wl}-Blargedynsym' 9730 ;; 9731 esac 9732 fi 9733 fi 9734 9735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9736$as_echo "$ld_shlibs" >&6; } 9737test "$ld_shlibs" = no && can_build_shared=no 9738 9739with_gnu_ld=$with_gnu_ld 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755# 9756# Do we need to explicitly link libc? 9757# 9758case "x$archive_cmds_need_lc" in 9759x|xyes) 9760 # Assume -lc should be added 9761 archive_cmds_need_lc=yes 9762 9763 if test "$enable_shared" = yes && test "$GCC" = yes; then 9764 case $archive_cmds in 9765 *'~'*) 9766 # FIXME: we may have to deal with multi-command sequences. 9767 ;; 9768 '$CC '*) 9769 # Test whether the compiler implicitly links with -lc since on some 9770 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9771 # to ld, don't add -lc before -lgcc. 9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9773$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9774if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 9775 $as_echo_n "(cached) " >&6 9776else 9777 $RM conftest* 9778 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9779 9780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9781 (eval $ac_compile) 2>&5 9782 ac_status=$? 9783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9784 test $ac_status = 0; } 2>conftest.err; then 9785 soname=conftest 9786 lib=conftest 9787 libobjs=conftest.$ac_objext 9788 deplibs= 9789 wl=$lt_prog_compiler_wl 9790 pic_flag=$lt_prog_compiler_pic 9791 compiler_flags=-v 9792 linker_flags=-v 9793 verstring= 9794 output_objdir=. 9795 libname=conftest 9796 lt_save_allow_undefined_flag=$allow_undefined_flag 9797 allow_undefined_flag= 9798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9799 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9800 ac_status=$? 9801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9802 test $ac_status = 0; } 9803 then 9804 lt_cv_archive_cmds_need_lc=no 9805 else 9806 lt_cv_archive_cmds_need_lc=yes 9807 fi 9808 allow_undefined_flag=$lt_save_allow_undefined_flag 9809 else 9810 cat conftest.err 1>&5 9811 fi 9812 $RM conftest* 9813 9814fi 9815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9816$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9817 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9818 ;; 9819 esac 9820 fi 9821 ;; 9822esac 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9981$as_echo_n "checking dynamic linker characteristics... " >&6; } 9982 9983if test "$GCC" = yes; then 9984 case $host_os in 9985 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9986 *) lt_awk_arg="/^libraries:/" ;; 9987 esac 9988 case $host_os in 9989 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9990 *) lt_sed_strip_eq="s,=/,/,g" ;; 9991 esac 9992 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9993 case $lt_search_path_spec in 9994 *\;*) 9995 # if the path contains ";" then we assume it to be the separator 9996 # otherwise default to the standard path separator (i.e. ":") - it is 9997 # assumed that no part of a normal pathname contains ";" but that should 9998 # okay in the real world where ";" in dirpaths is itself problematic. 9999 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10000 ;; 10001 *) 10002 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10003 ;; 10004 esac 10005 # Ok, now we have the path, separated by spaces, we can step through it 10006 # and add multilib dir if necessary. 10007 lt_tmp_lt_search_path_spec= 10008 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10009 for lt_sys_path in $lt_search_path_spec; do 10010 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10011 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10012 else 10013 test -d "$lt_sys_path" && \ 10014 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10015 fi 10016 done 10017 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10018BEGIN {RS=" "; FS="/|\n";} { 10019 lt_foo=""; 10020 lt_count=0; 10021 for (lt_i = NF; lt_i > 0; lt_i--) { 10022 if ($lt_i != "" && $lt_i != ".") { 10023 if ($lt_i == "..") { 10024 lt_count++; 10025 } else { 10026 if (lt_count == 0) { 10027 lt_foo="/" $lt_i lt_foo; 10028 } else { 10029 lt_count--; 10030 } 10031 } 10032 } 10033 } 10034 if (lt_foo != "") { lt_freq[lt_foo]++; } 10035 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10036}'` 10037 # AWK program above erroneously prepends '/' to C:/dos/paths 10038 # for these hosts. 10039 case $host_os in 10040 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10041 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10042 esac 10043 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10044else 10045 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10046fi 10047library_names_spec= 10048libname_spec='lib$name' 10049soname_spec= 10050shrext_cmds=".so" 10051postinstall_cmds= 10052postuninstall_cmds= 10053finish_cmds= 10054finish_eval= 10055shlibpath_var= 10056shlibpath_overrides_runpath=unknown 10057version_type=none 10058dynamic_linker="$host_os ld.so" 10059sys_lib_dlsearch_path_spec="/lib /usr/lib" 10060need_lib_prefix=unknown 10061hardcode_into_libs=no 10062 10063# when you set need_version to no, make sure it does not cause -set_version 10064# flags to be left without arguments 10065need_version=unknown 10066 10067case $host_os in 10068aix3*) 10069 version_type=linux 10070 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10071 shlibpath_var=LIBPATH 10072 10073 # AIX 3 has no versioning support, so we append a major version to the name. 10074 soname_spec='${libname}${release}${shared_ext}$major' 10075 ;; 10076 10077aix[4-9]*) 10078 version_type=linux 10079 need_lib_prefix=no 10080 need_version=no 10081 hardcode_into_libs=yes 10082 if test "$host_cpu" = ia64; then 10083 # AIX 5 supports IA64 10084 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10085 shlibpath_var=LD_LIBRARY_PATH 10086 else 10087 # With GCC up to 2.95.x, collect2 would create an import file 10088 # for dependence libraries. The import file would start with 10089 # the line `#! .'. This would cause the generated library to 10090 # depend on `.', always an invalid library. This was fixed in 10091 # development snapshots of GCC prior to 3.0. 10092 case $host_os in 10093 aix4 | aix4.[01] | aix4.[01].*) 10094 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10095 echo ' yes ' 10096 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10097 : 10098 else 10099 can_build_shared=no 10100 fi 10101 ;; 10102 esac 10103 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10104 # soname into executable. Probably we can add versioning support to 10105 # collect2, so additional links can be useful in future. 10106 if test "$aix_use_runtimelinking" = yes; then 10107 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10108 # instead of lib<name>.a to let people know that these are not 10109 # typical AIX shared libraries. 10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10111 else 10112 # We preserve .a as extension for shared libraries through AIX4.2 10113 # and later when we are not doing run time linking. 10114 library_names_spec='${libname}${release}.a $libname.a' 10115 soname_spec='${libname}${release}${shared_ext}$major' 10116 fi 10117 shlibpath_var=LIBPATH 10118 fi 10119 ;; 10120 10121amigaos*) 10122 case $host_cpu in 10123 powerpc) 10124 # Since July 2007 AmigaOS4 officially supports .so libraries. 10125 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10127 ;; 10128 m68k) 10129 library_names_spec='$libname.ixlibrary $libname.a' 10130 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10131 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' 10132 ;; 10133 esac 10134 ;; 10135 10136beos*) 10137 library_names_spec='${libname}${shared_ext}' 10138 dynamic_linker="$host_os ld.so" 10139 shlibpath_var=LIBRARY_PATH 10140 ;; 10141 10142bsdi[45]*) 10143 version_type=linux 10144 need_version=no 10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10146 soname_spec='${libname}${release}${shared_ext}$major' 10147 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10148 shlibpath_var=LD_LIBRARY_PATH 10149 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10150 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10151 # the default ld.so.conf also contains /usr/contrib/lib and 10152 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10153 # libtool to hard-code these into programs 10154 ;; 10155 10156cygwin* | mingw* | pw32* | cegcc*) 10157 version_type=windows 10158 shrext_cmds=".dll" 10159 need_version=no 10160 need_lib_prefix=no 10161 10162 case $GCC,$host_os in 10163 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10164 library_names_spec='$libname.dll.a' 10165 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10166 postinstall_cmds='base_file=`basename \${file}`~ 10167 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10168 dldir=$destdir/`dirname \$dlpath`~ 10169 test -d \$dldir || mkdir -p \$dldir~ 10170 $install_prog $dir/$dlname \$dldir/$dlname~ 10171 chmod a+x \$dldir/$dlname~ 10172 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10173 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10174 fi' 10175 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10176 dlpath=$dir/\$dldll~ 10177 $RM \$dlpath' 10178 shlibpath_overrides_runpath=yes 10179 10180 case $host_os in 10181 cygwin*) 10182 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10183 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10184 10185 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10186 ;; 10187 mingw* | cegcc*) 10188 # MinGW DLLs use traditional 'lib' prefix 10189 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10190 ;; 10191 pw32*) 10192 # pw32 DLLs use 'pw' prefix rather than 'lib' 10193 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10194 ;; 10195 esac 10196 ;; 10197 10198 *) 10199 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10200 ;; 10201 esac 10202 dynamic_linker='Win32 ld.exe' 10203 # FIXME: first we should search . and the directory the executable is in 10204 shlibpath_var=PATH 10205 ;; 10206 10207darwin* | rhapsody*) 10208 dynamic_linker="$host_os dyld" 10209 version_type=darwin 10210 need_lib_prefix=no 10211 need_version=no 10212 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10213 soname_spec='${libname}${release}${major}$shared_ext' 10214 shlibpath_overrides_runpath=yes 10215 shlibpath_var=DYLD_LIBRARY_PATH 10216 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10217 10218 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10219 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10220 ;; 10221 10222dgux*) 10223 version_type=linux 10224 need_lib_prefix=no 10225 need_version=no 10226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10227 soname_spec='${libname}${release}${shared_ext}$major' 10228 shlibpath_var=LD_LIBRARY_PATH 10229 ;; 10230 10231freebsd* | dragonfly*) 10232 # DragonFly does not have aout. When/if they implement a new 10233 # versioning mechanism, adjust this. 10234 if test -x /usr/bin/objformat; then 10235 objformat=`/usr/bin/objformat` 10236 else 10237 case $host_os in 10238 freebsd[23].*) objformat=aout ;; 10239 *) objformat=elf ;; 10240 esac 10241 fi 10242 version_type=freebsd-$objformat 10243 case $version_type in 10244 freebsd-elf*) 10245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10246 need_version=no 10247 need_lib_prefix=no 10248 ;; 10249 freebsd-*) 10250 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10251 need_version=yes 10252 ;; 10253 esac 10254 shlibpath_var=LD_LIBRARY_PATH 10255 case $host_os in 10256 freebsd2.*) 10257 shlibpath_overrides_runpath=yes 10258 ;; 10259 freebsd3.[01]* | freebsdelf3.[01]*) 10260 shlibpath_overrides_runpath=yes 10261 hardcode_into_libs=yes 10262 ;; 10263 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10264 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10265 shlibpath_overrides_runpath=no 10266 hardcode_into_libs=yes 10267 ;; 10268 *) # from 4.6 on, and DragonFly 10269 shlibpath_overrides_runpath=yes 10270 hardcode_into_libs=yes 10271 ;; 10272 esac 10273 ;; 10274 10275gnu*) 10276 version_type=linux 10277 need_lib_prefix=no 10278 need_version=no 10279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10280 soname_spec='${libname}${release}${shared_ext}$major' 10281 shlibpath_var=LD_LIBRARY_PATH 10282 hardcode_into_libs=yes 10283 ;; 10284 10285haiku*) 10286 version_type=linux 10287 need_lib_prefix=no 10288 need_version=no 10289 dynamic_linker="$host_os runtime_loader" 10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10291 soname_spec='${libname}${release}${shared_ext}$major' 10292 shlibpath_var=LIBRARY_PATH 10293 shlibpath_overrides_runpath=yes 10294 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 10295 hardcode_into_libs=yes 10296 ;; 10297 10298hpux9* | hpux10* | hpux11*) 10299 # Give a soname corresponding to the major version so that dld.sl refuses to 10300 # link against other versions. 10301 version_type=sunos 10302 need_lib_prefix=no 10303 need_version=no 10304 case $host_cpu in 10305 ia64*) 10306 shrext_cmds='.so' 10307 hardcode_into_libs=yes 10308 dynamic_linker="$host_os dld.so" 10309 shlibpath_var=LD_LIBRARY_PATH 10310 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10312 soname_spec='${libname}${release}${shared_ext}$major' 10313 if test "X$HPUX_IA64_MODE" = X32; then 10314 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10315 else 10316 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10317 fi 10318 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10319 ;; 10320 hppa*64*) 10321 shrext_cmds='.sl' 10322 hardcode_into_libs=yes 10323 dynamic_linker="$host_os dld.sl" 10324 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10325 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10327 soname_spec='${libname}${release}${shared_ext}$major' 10328 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10329 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10330 ;; 10331 *) 10332 shrext_cmds='.sl' 10333 dynamic_linker="$host_os dld.sl" 10334 shlibpath_var=SHLIB_PATH 10335 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10337 soname_spec='${libname}${release}${shared_ext}$major' 10338 ;; 10339 esac 10340 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10341 postinstall_cmds='chmod 555 $lib' 10342 # or fails outright, so override atomically: 10343 install_override_mode=555 10344 ;; 10345 10346interix[3-9]*) 10347 version_type=linux 10348 need_lib_prefix=no 10349 need_version=no 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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10353 shlibpath_var=LD_LIBRARY_PATH 10354 shlibpath_overrides_runpath=no 10355 hardcode_into_libs=yes 10356 ;; 10357 10358irix5* | irix6* | nonstopux*) 10359 case $host_os in 10360 nonstopux*) version_type=nonstopux ;; 10361 *) 10362 if test "$lt_cv_prog_gnu_ld" = yes; then 10363 version_type=linux 10364 else 10365 version_type=irix 10366 fi ;; 10367 esac 10368 need_lib_prefix=no 10369 need_version=no 10370 soname_spec='${libname}${release}${shared_ext}$major' 10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10372 case $host_os in 10373 irix5* | nonstopux*) 10374 libsuff= shlibsuff= 10375 ;; 10376 *) 10377 case $LD in # libtool.m4 will add one of these switches to LD 10378 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10379 libsuff= shlibsuff= libmagic=32-bit;; 10380 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10381 libsuff=32 shlibsuff=N32 libmagic=N32;; 10382 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10383 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10384 *) libsuff= shlibsuff= libmagic=never-match;; 10385 esac 10386 ;; 10387 esac 10388 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10389 shlibpath_overrides_runpath=no 10390 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10391 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10392 hardcode_into_libs=yes 10393 ;; 10394 10395# No shared lib support for Linux oldld, aout, or coff. 10396linux*oldld* | linux*aout* | linux*coff*) 10397 dynamic_linker=no 10398 ;; 10399 10400# This must be Linux ELF. 10401linux* | k*bsd*-gnu | kopensolaris*-gnu) 10402 version_type=linux 10403 need_lib_prefix=no 10404 need_version=no 10405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10406 soname_spec='${libname}${release}${shared_ext}$major' 10407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10408 shlibpath_var=LD_LIBRARY_PATH 10409 shlibpath_overrides_runpath=no 10410 10411 # Some binutils ld are patched to set DT_RUNPATH 10412 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 10413 $as_echo_n "(cached) " >&6 10414else 10415 lt_cv_shlibpath_overrides_runpath=no 10416 save_LDFLAGS=$LDFLAGS 10417 save_libdir=$libdir 10418 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10419 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10421/* end confdefs.h. */ 10422 10423int 10424main () 10425{ 10426 10427 ; 10428 return 0; 10429} 10430_ACEOF 10431if ac_fn_c_try_link "$LINENO"; then : 10432 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10433 lt_cv_shlibpath_overrides_runpath=yes 10434fi 10435fi 10436rm -f core conftest.err conftest.$ac_objext \ 10437 conftest$ac_exeext conftest.$ac_ext 10438 LDFLAGS=$save_LDFLAGS 10439 libdir=$save_libdir 10440 10441fi 10442 10443 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10444 10445 # This implies no fast_install, which is unacceptable. 10446 # Some rework will be needed to allow for fast_install 10447 # before this can be enabled. 10448 hardcode_into_libs=yes 10449 10450 # Append ld.so.conf contents to the search path 10451 if test -f /etc/ld.so.conf; then 10452 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' ' '` 10453 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10454 fi 10455 10456 # We used to test for /lib/ld.so.1 and disable shared libraries on 10457 # powerpc, because MkLinux only supported shared libraries with the 10458 # GNU dynamic linker. Since this was broken with cross compilers, 10459 # most powerpc-linux boxes support dynamic linking these days and 10460 # people can always --disable-shared, the test was removed, and we 10461 # assume the GNU/Linux dynamic linker is in use. 10462 dynamic_linker='GNU/Linux ld.so' 10463 ;; 10464 10465netbsd*) 10466 version_type=sunos 10467 need_lib_prefix=no 10468 need_version=no 10469 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10471 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10472 dynamic_linker='NetBSD (a.out) ld.so' 10473 else 10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10475 soname_spec='${libname}${release}${shared_ext}$major' 10476 dynamic_linker='NetBSD ld.elf_so' 10477 fi 10478 shlibpath_var=LD_LIBRARY_PATH 10479 shlibpath_overrides_runpath=yes 10480 hardcode_into_libs=yes 10481 ;; 10482 10483newsos6) 10484 version_type=linux 10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10486 shlibpath_var=LD_LIBRARY_PATH 10487 shlibpath_overrides_runpath=yes 10488 ;; 10489 10490*nto* | *qnx*) 10491 version_type=qnx 10492 need_lib_prefix=no 10493 need_version=no 10494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10495 soname_spec='${libname}${release}${shared_ext}$major' 10496 shlibpath_var=LD_LIBRARY_PATH 10497 shlibpath_overrides_runpath=no 10498 hardcode_into_libs=yes 10499 dynamic_linker='ldqnx.so' 10500 ;; 10501 10502openbsd*) 10503 version_type=sunos 10504 sys_lib_dlsearch_path_spec="/usr/lib" 10505 need_lib_prefix=no 10506 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10507 case $host_os in 10508 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10509 *) need_version=no ;; 10510 esac 10511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10513 shlibpath_var=LD_LIBRARY_PATH 10514 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10515 case $host_os in 10516 openbsd2.[89] | openbsd2.[89].*) 10517 shlibpath_overrides_runpath=no 10518 ;; 10519 *) 10520 shlibpath_overrides_runpath=yes 10521 ;; 10522 esac 10523 else 10524 shlibpath_overrides_runpath=yes 10525 fi 10526 ;; 10527 10528os2*) 10529 libname_spec='$name' 10530 shrext_cmds=".dll" 10531 need_lib_prefix=no 10532 library_names_spec='$libname${shared_ext} $libname.a' 10533 dynamic_linker='OS/2 ld.exe' 10534 shlibpath_var=LIBPATH 10535 ;; 10536 10537osf3* | osf4* | osf5*) 10538 version_type=osf 10539 need_lib_prefix=no 10540 need_version=no 10541 soname_spec='${libname}${release}${shared_ext}$major' 10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10543 shlibpath_var=LD_LIBRARY_PATH 10544 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10545 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10546 ;; 10547 10548rdos*) 10549 dynamic_linker=no 10550 ;; 10551 10552solaris*) 10553 version_type=linux 10554 need_lib_prefix=no 10555 need_version=no 10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10557 soname_spec='${libname}${release}${shared_ext}$major' 10558 shlibpath_var=LD_LIBRARY_PATH 10559 shlibpath_overrides_runpath=yes 10560 hardcode_into_libs=yes 10561 # ldd complains unless libraries are executable 10562 postinstall_cmds='chmod +x $lib' 10563 ;; 10564 10565sunos4*) 10566 version_type=sunos 10567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10568 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10569 shlibpath_var=LD_LIBRARY_PATH 10570 shlibpath_overrides_runpath=yes 10571 if test "$with_gnu_ld" = yes; then 10572 need_lib_prefix=no 10573 fi 10574 need_version=yes 10575 ;; 10576 10577sysv4 | sysv4.3*) 10578 version_type=linux 10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10580 soname_spec='${libname}${release}${shared_ext}$major' 10581 shlibpath_var=LD_LIBRARY_PATH 10582 case $host_vendor in 10583 sni) 10584 shlibpath_overrides_runpath=no 10585 need_lib_prefix=no 10586 runpath_var=LD_RUN_PATH 10587 ;; 10588 siemens) 10589 need_lib_prefix=no 10590 ;; 10591 motorola) 10592 need_lib_prefix=no 10593 need_version=no 10594 shlibpath_overrides_runpath=no 10595 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10596 ;; 10597 esac 10598 ;; 10599 10600sysv4*MP*) 10601 if test -d /usr/nec ;then 10602 version_type=linux 10603 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10604 soname_spec='$libname${shared_ext}.$major' 10605 shlibpath_var=LD_LIBRARY_PATH 10606 fi 10607 ;; 10608 10609sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10610 version_type=freebsd-elf 10611 need_lib_prefix=no 10612 need_version=no 10613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10614 soname_spec='${libname}${release}${shared_ext}$major' 10615 shlibpath_var=LD_LIBRARY_PATH 10616 shlibpath_overrides_runpath=yes 10617 hardcode_into_libs=yes 10618 if test "$with_gnu_ld" = yes; then 10619 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10620 else 10621 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10622 case $host_os in 10623 sco3.2v5*) 10624 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10625 ;; 10626 esac 10627 fi 10628 sys_lib_dlsearch_path_spec='/usr/lib' 10629 ;; 10630 10631tpf*) 10632 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10633 version_type=linux 10634 need_lib_prefix=no 10635 need_version=no 10636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10637 shlibpath_var=LD_LIBRARY_PATH 10638 shlibpath_overrides_runpath=no 10639 hardcode_into_libs=yes 10640 ;; 10641 10642uts4*) 10643 version_type=linux 10644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10645 soname_spec='${libname}${release}${shared_ext}$major' 10646 shlibpath_var=LD_LIBRARY_PATH 10647 ;; 10648 10649*) 10650 dynamic_linker=no 10651 ;; 10652esac 10653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10654$as_echo "$dynamic_linker" >&6; } 10655test "$dynamic_linker" = no && can_build_shared=no 10656 10657variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10658if test "$GCC" = yes; then 10659 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10660fi 10661 10662if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10663 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10664fi 10665if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10666 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10667fi 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10761$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10762hardcode_action= 10763if test -n "$hardcode_libdir_flag_spec" || 10764 test -n "$runpath_var" || 10765 test "X$hardcode_automatic" = "Xyes" ; then 10766 10767 # We can hardcode non-existent directories. 10768 if test "$hardcode_direct" != no && 10769 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10770 # have to relink, otherwise we might link with an installed library 10771 # when we should be linking with a yet-to-be-installed one 10772 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10773 test "$hardcode_minus_L" != no; then 10774 # Linking always hardcodes the temporary library directory. 10775 hardcode_action=relink 10776 else 10777 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10778 hardcode_action=immediate 10779 fi 10780else 10781 # We cannot hardcode anything, or else we can only hardcode existing 10782 # directories. 10783 hardcode_action=unsupported 10784fi 10785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10786$as_echo "$hardcode_action" >&6; } 10787 10788if test "$hardcode_action" = relink || 10789 test "$inherit_rpath" = yes; then 10790 # Fast installation is not supported 10791 enable_fast_install=no 10792elif test "$shlibpath_overrides_runpath" = yes || 10793 test "$enable_shared" = no; then 10794 # Fast installation is not necessary 10795 enable_fast_install=needless 10796fi 10797 10798 10799 10800 10801 10802 10803 if test "x$enable_dlopen" != xyes; then 10804 enable_dlopen=unknown 10805 enable_dlopen_self=unknown 10806 enable_dlopen_self_static=unknown 10807else 10808 lt_cv_dlopen=no 10809 lt_cv_dlopen_libs= 10810 10811 case $host_os in 10812 beos*) 10813 lt_cv_dlopen="load_add_on" 10814 lt_cv_dlopen_libs= 10815 lt_cv_dlopen_self=yes 10816 ;; 10817 10818 mingw* | pw32* | cegcc*) 10819 lt_cv_dlopen="LoadLibrary" 10820 lt_cv_dlopen_libs= 10821 ;; 10822 10823 cygwin*) 10824 lt_cv_dlopen="dlopen" 10825 lt_cv_dlopen_libs= 10826 ;; 10827 10828 darwin*) 10829 # if libdl is installed we need to link against it 10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10831$as_echo_n "checking for dlopen in -ldl... " >&6; } 10832if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10833 $as_echo_n "(cached) " >&6 10834else 10835 ac_check_lib_save_LIBS=$LIBS 10836LIBS="-ldl $LIBS" 10837cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10838/* end confdefs.h. */ 10839 10840/* Override any GCC internal prototype to avoid an error. 10841 Use char because int might match the return type of a GCC 10842 builtin and then its argument prototype would still apply. */ 10843#ifdef __cplusplus 10844extern "C" 10845#endif 10846char dlopen (); 10847int 10848main () 10849{ 10850return dlopen (); 10851 ; 10852 return 0; 10853} 10854_ACEOF 10855if ac_fn_c_try_link "$LINENO"; then : 10856 ac_cv_lib_dl_dlopen=yes 10857else 10858 ac_cv_lib_dl_dlopen=no 10859fi 10860rm -f core conftest.err conftest.$ac_objext \ 10861 conftest$ac_exeext conftest.$ac_ext 10862LIBS=$ac_check_lib_save_LIBS 10863fi 10864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10865$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10866if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10867 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10868else 10869 10870 lt_cv_dlopen="dyld" 10871 lt_cv_dlopen_libs= 10872 lt_cv_dlopen_self=yes 10873 10874fi 10875 10876 ;; 10877 10878 *) 10879 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10880if test "x$ac_cv_func_shl_load" = x""yes; then : 10881 lt_cv_dlopen="shl_load" 10882else 10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10884$as_echo_n "checking for shl_load in -ldld... " >&6; } 10885if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10886 $as_echo_n "(cached) " >&6 10887else 10888 ac_check_lib_save_LIBS=$LIBS 10889LIBS="-ldld $LIBS" 10890cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10891/* end confdefs.h. */ 10892 10893/* Override any GCC internal prototype to avoid an error. 10894 Use char because int might match the return type of a GCC 10895 builtin and then its argument prototype would still apply. */ 10896#ifdef __cplusplus 10897extern "C" 10898#endif 10899char shl_load (); 10900int 10901main () 10902{ 10903return shl_load (); 10904 ; 10905 return 0; 10906} 10907_ACEOF 10908if ac_fn_c_try_link "$LINENO"; then : 10909 ac_cv_lib_dld_shl_load=yes 10910else 10911 ac_cv_lib_dld_shl_load=no 10912fi 10913rm -f core conftest.err conftest.$ac_objext \ 10914 conftest$ac_exeext conftest.$ac_ext 10915LIBS=$ac_check_lib_save_LIBS 10916fi 10917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10918$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10919if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10920 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10921else 10922 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10923if test "x$ac_cv_func_dlopen" = x""yes; then : 10924 lt_cv_dlopen="dlopen" 10925else 10926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10927$as_echo_n "checking for dlopen in -ldl... " >&6; } 10928if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10929 $as_echo_n "(cached) " >&6 10930else 10931 ac_check_lib_save_LIBS=$LIBS 10932LIBS="-ldl $LIBS" 10933cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10934/* end confdefs.h. */ 10935 10936/* Override any GCC internal prototype to avoid an error. 10937 Use char because int might match the return type of a GCC 10938 builtin and then its argument prototype would still apply. */ 10939#ifdef __cplusplus 10940extern "C" 10941#endif 10942char dlopen (); 10943int 10944main () 10945{ 10946return dlopen (); 10947 ; 10948 return 0; 10949} 10950_ACEOF 10951if ac_fn_c_try_link "$LINENO"; then : 10952 ac_cv_lib_dl_dlopen=yes 10953else 10954 ac_cv_lib_dl_dlopen=no 10955fi 10956rm -f core conftest.err conftest.$ac_objext \ 10957 conftest$ac_exeext conftest.$ac_ext 10958LIBS=$ac_check_lib_save_LIBS 10959fi 10960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10961$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10962if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10963 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10964else 10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10966$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10967if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10968 $as_echo_n "(cached) " >&6 10969else 10970 ac_check_lib_save_LIBS=$LIBS 10971LIBS="-lsvld $LIBS" 10972cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10973/* end confdefs.h. */ 10974 10975/* Override any GCC internal prototype to avoid an error. 10976 Use char because int might match the return type of a GCC 10977 builtin and then its argument prototype would still apply. */ 10978#ifdef __cplusplus 10979extern "C" 10980#endif 10981char dlopen (); 10982int 10983main () 10984{ 10985return dlopen (); 10986 ; 10987 return 0; 10988} 10989_ACEOF 10990if ac_fn_c_try_link "$LINENO"; then : 10991 ac_cv_lib_svld_dlopen=yes 10992else 10993 ac_cv_lib_svld_dlopen=no 10994fi 10995rm -f core conftest.err conftest.$ac_objext \ 10996 conftest$ac_exeext conftest.$ac_ext 10997LIBS=$ac_check_lib_save_LIBS 10998fi 10999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11000$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11001if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11002 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11003else 11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11005$as_echo_n "checking for dld_link in -ldld... " >&6; } 11006if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11007 $as_echo_n "(cached) " >&6 11008else 11009 ac_check_lib_save_LIBS=$LIBS 11010LIBS="-ldld $LIBS" 11011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11012/* end confdefs.h. */ 11013 11014/* Override any GCC internal prototype to avoid an error. 11015 Use char because int might match the return type of a GCC 11016 builtin and then its argument prototype would still apply. */ 11017#ifdef __cplusplus 11018extern "C" 11019#endif 11020char dld_link (); 11021int 11022main () 11023{ 11024return dld_link (); 11025 ; 11026 return 0; 11027} 11028_ACEOF 11029if ac_fn_c_try_link "$LINENO"; then : 11030 ac_cv_lib_dld_dld_link=yes 11031else 11032 ac_cv_lib_dld_dld_link=no 11033fi 11034rm -f core conftest.err conftest.$ac_objext \ 11035 conftest$ac_exeext conftest.$ac_ext 11036LIBS=$ac_check_lib_save_LIBS 11037fi 11038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11039$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11040if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11041 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11042fi 11043 11044 11045fi 11046 11047 11048fi 11049 11050 11051fi 11052 11053 11054fi 11055 11056 11057fi 11058 11059 ;; 11060 esac 11061 11062 if test "x$lt_cv_dlopen" != xno; then 11063 enable_dlopen=yes 11064 else 11065 enable_dlopen=no 11066 fi 11067 11068 case $lt_cv_dlopen in 11069 dlopen) 11070 save_CPPFLAGS="$CPPFLAGS" 11071 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11072 11073 save_LDFLAGS="$LDFLAGS" 11074 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11075 11076 save_LIBS="$LIBS" 11077 LIBS="$lt_cv_dlopen_libs $LIBS" 11078 11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11080$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11081if test "${lt_cv_dlopen_self+set}" = set; then : 11082 $as_echo_n "(cached) " >&6 11083else 11084 if test "$cross_compiling" = yes; then : 11085 lt_cv_dlopen_self=cross 11086else 11087 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11088 lt_status=$lt_dlunknown 11089 cat > conftest.$ac_ext <<_LT_EOF 11090#line 11090 "configure" 11091#include "confdefs.h" 11092 11093#if HAVE_DLFCN_H 11094#include <dlfcn.h> 11095#endif 11096 11097#include <stdio.h> 11098 11099#ifdef RTLD_GLOBAL 11100# define LT_DLGLOBAL RTLD_GLOBAL 11101#else 11102# ifdef DL_GLOBAL 11103# define LT_DLGLOBAL DL_GLOBAL 11104# else 11105# define LT_DLGLOBAL 0 11106# endif 11107#endif 11108 11109/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11110 find out it does not work in some platform. */ 11111#ifndef LT_DLLAZY_OR_NOW 11112# ifdef RTLD_LAZY 11113# define LT_DLLAZY_OR_NOW RTLD_LAZY 11114# else 11115# ifdef DL_LAZY 11116# define LT_DLLAZY_OR_NOW DL_LAZY 11117# else 11118# ifdef RTLD_NOW 11119# define LT_DLLAZY_OR_NOW RTLD_NOW 11120# else 11121# ifdef DL_NOW 11122# define LT_DLLAZY_OR_NOW DL_NOW 11123# else 11124# define LT_DLLAZY_OR_NOW 0 11125# endif 11126# endif 11127# endif 11128# endif 11129#endif 11130 11131/* When -fvisbility=hidden is used, assume the code has been annotated 11132 correspondingly for the symbols needed. */ 11133#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11134void fnord () __attribute__((visibility("default"))); 11135#endif 11136 11137void fnord () { int i=42; } 11138int main () 11139{ 11140 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11141 int status = $lt_dlunknown; 11142 11143 if (self) 11144 { 11145 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11146 else 11147 { 11148 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11149 else puts (dlerror ()); 11150 } 11151 /* dlclose (self); */ 11152 } 11153 else 11154 puts (dlerror ()); 11155 11156 return status; 11157} 11158_LT_EOF 11159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11160 (eval $ac_link) 2>&5 11161 ac_status=$? 11162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11163 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11164 (./conftest; exit; ) >&5 2>/dev/null 11165 lt_status=$? 11166 case x$lt_status in 11167 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11168 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11169 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11170 esac 11171 else : 11172 # compilation failed 11173 lt_cv_dlopen_self=no 11174 fi 11175fi 11176rm -fr conftest* 11177 11178 11179fi 11180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11181$as_echo "$lt_cv_dlopen_self" >&6; } 11182 11183 if test "x$lt_cv_dlopen_self" = xyes; then 11184 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11186$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11187if test "${lt_cv_dlopen_self_static+set}" = set; then : 11188 $as_echo_n "(cached) " >&6 11189else 11190 if test "$cross_compiling" = yes; then : 11191 lt_cv_dlopen_self_static=cross 11192else 11193 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11194 lt_status=$lt_dlunknown 11195 cat > conftest.$ac_ext <<_LT_EOF 11196#line 11196 "configure" 11197#include "confdefs.h" 11198 11199#if HAVE_DLFCN_H 11200#include <dlfcn.h> 11201#endif 11202 11203#include <stdio.h> 11204 11205#ifdef RTLD_GLOBAL 11206# define LT_DLGLOBAL RTLD_GLOBAL 11207#else 11208# ifdef DL_GLOBAL 11209# define LT_DLGLOBAL DL_GLOBAL 11210# else 11211# define LT_DLGLOBAL 0 11212# endif 11213#endif 11214 11215/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11216 find out it does not work in some platform. */ 11217#ifndef LT_DLLAZY_OR_NOW 11218# ifdef RTLD_LAZY 11219# define LT_DLLAZY_OR_NOW RTLD_LAZY 11220# else 11221# ifdef DL_LAZY 11222# define LT_DLLAZY_OR_NOW DL_LAZY 11223# else 11224# ifdef RTLD_NOW 11225# define LT_DLLAZY_OR_NOW RTLD_NOW 11226# else 11227# ifdef DL_NOW 11228# define LT_DLLAZY_OR_NOW DL_NOW 11229# else 11230# define LT_DLLAZY_OR_NOW 0 11231# endif 11232# endif 11233# endif 11234# endif 11235#endif 11236 11237/* When -fvisbility=hidden is used, assume the code has been annotated 11238 correspondingly for the symbols needed. */ 11239#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11240void fnord () __attribute__((visibility("default"))); 11241#endif 11242 11243void fnord () { int i=42; } 11244int main () 11245{ 11246 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11247 int status = $lt_dlunknown; 11248 11249 if (self) 11250 { 11251 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11252 else 11253 { 11254 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11255 else puts (dlerror ()); 11256 } 11257 /* dlclose (self); */ 11258 } 11259 else 11260 puts (dlerror ()); 11261 11262 return status; 11263} 11264_LT_EOF 11265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11266 (eval $ac_link) 2>&5 11267 ac_status=$? 11268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11269 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11270 (./conftest; exit; ) >&5 2>/dev/null 11271 lt_status=$? 11272 case x$lt_status in 11273 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11274 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11275 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11276 esac 11277 else : 11278 # compilation failed 11279 lt_cv_dlopen_self_static=no 11280 fi 11281fi 11282rm -fr conftest* 11283 11284 11285fi 11286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11287$as_echo "$lt_cv_dlopen_self_static" >&6; } 11288 fi 11289 11290 CPPFLAGS="$save_CPPFLAGS" 11291 LDFLAGS="$save_LDFLAGS" 11292 LIBS="$save_LIBS" 11293 ;; 11294 esac 11295 11296 case $lt_cv_dlopen_self in 11297 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11298 *) enable_dlopen_self=unknown ;; 11299 esac 11300 11301 case $lt_cv_dlopen_self_static in 11302 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11303 *) enable_dlopen_self_static=unknown ;; 11304 esac 11305fi 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323striplib= 11324old_striplib= 11325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11326$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11327if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11328 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11329 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11331$as_echo "yes" >&6; } 11332else 11333# FIXME - insert some real tests, host_os isn't really good enough 11334 case $host_os in 11335 darwin*) 11336 if test -n "$STRIP" ; then 11337 striplib="$STRIP -x" 11338 old_striplib="$STRIP -S" 11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11340$as_echo "yes" >&6; } 11341 else 11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11343$as_echo "no" >&6; } 11344 fi 11345 ;; 11346 *) 11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11348$as_echo "no" >&6; } 11349 ;; 11350 esac 11351fi 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 # Report which library types will actually be built 11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11366$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11368$as_echo "$can_build_shared" >&6; } 11369 11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11371$as_echo_n "checking whether to build shared libraries... " >&6; } 11372 test "$can_build_shared" = "no" && enable_shared=no 11373 11374 # On AIX, shared libraries and static libraries use the same namespace, and 11375 # are all built from PIC. 11376 case $host_os in 11377 aix3*) 11378 test "$enable_shared" = yes && enable_static=no 11379 if test -n "$RANLIB"; then 11380 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11381 postinstall_cmds='$RANLIB $lib' 11382 fi 11383 ;; 11384 11385 aix[4-9]*) 11386 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11387 test "$enable_shared" = yes && enable_static=no 11388 fi 11389 ;; 11390 esac 11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11392$as_echo "$enable_shared" >&6; } 11393 11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11395$as_echo_n "checking whether to build static libraries... " >&6; } 11396 # Make sure either enable_shared or enable_static is yes. 11397 test "$enable_shared" = yes || enable_static=yes 11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11399$as_echo "$enable_static" >&6; } 11400 11401 11402 11403 11404fi 11405ac_ext=c 11406ac_cpp='$CPP $CPPFLAGS' 11407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11409ac_compiler_gnu=$ac_cv_c_compiler_gnu 11410 11411CC="$lt_save_CC" 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 ac_config_commands="$ac_config_commands libtool" 11426 11427 11428 11429 11430# Only expand once: 11431 11432 11433 11434 11435backtrace_supported=yes 11436 11437if test -n "${with_target_subdir}"; then 11438 # We are compiling a GCC library. We can assume that the unwind 11439 # library exists. 11440 # Default to --enable-multilib 11441# Check whether --enable-multilib was given. 11442if test "${enable_multilib+set}" = set; then : 11443 enableval=$enable_multilib; case "$enableval" in 11444 yes) multilib=yes ;; 11445 no) multilib=no ;; 11446 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;; 11447 esac 11448else 11449 multilib=yes 11450fi 11451 11452 11453# We may get other options which we leave undocumented: 11454# --with-target-subdir, --with-multisrctop, --with-multisubdir 11455# See config-ml.in if you want the gory details. 11456 11457if test "$srcdir" = "."; then 11458 if test "$with_target_subdir" != "."; then 11459 multi_basedir="$srcdir/$with_multisrctop../.." 11460 else 11461 multi_basedir="$srcdir/$with_multisrctop.." 11462 fi 11463else 11464 multi_basedir="$srcdir/.." 11465fi 11466 11467 11468# Even if the default multilib is not a cross compilation, 11469# it may be that some of the other multilibs are. 11470if test $cross_compiling = no && test $multilib = yes \ 11471 && test "x${with_multisubdir}" != x ; then 11472 cross_compiling=maybe 11473fi 11474 11475ac_config_commands="$ac_config_commands default-1" 11476 11477 BACKTRACE_FILE="backtrace.lo simple.lo" 11478else 11479 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default" 11480if test "x$ac_cv_header_unwind_h" = x""yes; then : 11481 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace" 11482if test "x$ac_cv_func__Unwind_Backtrace" = x""yes; then : 11483 BACKTRACE_FILE="backtrace.lo simple.lo" 11484else 11485 BACKTRACE_FILE="nounwind.lo" 11486 backtrace_supported=no 11487fi 11488 11489else 11490 BACKTRACE_FILE="nounwind.lo" 11491 backtrace_supported=no 11492fi 11493 11494 11495fi 11496 11497 11498EXTRA_FLAGS= 11499if test -n "${with_target_subdir}"; then 11500 EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@" 11501else 11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5 11503$as_echo_n "checking for -funwind-tables option... " >&6; } 11504if test "${libbacktrace_cv_c_unwind_tables+set}" = set; then : 11505 $as_echo_n "(cached) " >&6 11506else 11507 CFLAGS_hold="$CFLAGS" 11508 CFLAGS="$CFLAGS -funwind-tables" 11509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11510/* end confdefs.h. */ 11511static int f() { return 0; } 11512int 11513main () 11514{ 11515return f(); 11516 ; 11517 return 0; 11518} 11519_ACEOF 11520if ac_fn_c_try_compile "$LINENO"; then : 11521 libbacktrace_cv_c_unwind_tables=yes 11522else 11523 libbacktrace_cv_c_unwind_tables=no 11524fi 11525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11526 CFLAGS="$CFLAGS_hold" 11527fi 11528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5 11529$as_echo "$libbacktrace_cv_c_unwind_tables" >&6; } 11530 if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then 11531 EXTRA_FLAGS=-funwind-tables 11532 fi 11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5 11534$as_echo_n "checking for -frandom-seed=string option... " >&6; } 11535if test "${libbacktrace_cv_c_random_seed_string+set}" = set; then : 11536 $as_echo_n "(cached) " >&6 11537else 11538 CFLAGS_hold="$CFLAGS" 11539 CFLAGS="$CFLAGS -frandom-seed=conftest.lo" 11540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11541/* end confdefs.h. */ 11542 11543int 11544main () 11545{ 11546return 0; 11547 ; 11548 return 0; 11549} 11550_ACEOF 11551if ac_fn_c_try_compile "$LINENO"; then : 11552 libbacktrace_cv_c_random_seed_string=yes 11553else 11554 libbacktrace_cv_c_random_seed_string=no 11555fi 11556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11557 CFLAGS="$CFLAGS_hold" 11558fi 11559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5 11560$as_echo "$libbacktrace_cv_c_random_seed_string" >&6; } 11561 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then 11562 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@" 11563 fi 11564fi 11565 11566 11567WARN_FLAGS= 11568save_CFLAGS="$CFLAGS" 11569for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \ 11570 -Wmissing-prototypes -Wold-style-definition \ 11571 -Wmissing-format-attribute -Wcast-qual; do 11572 # Do the check with the no- prefix removed since gcc silently 11573 # accepts any -Wno-* option on purpose 11574 case $real_option in 11575 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; 11576 *) option=$real_option ;; 11577 esac 11578 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` 11579 11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 11581$as_echo_n "checking whether $CC supports $option... " >&6; } 11582if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then : 11583 $as_echo_n "(cached) " >&6 11584else 11585 CFLAGS="$option" 11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11587/* end confdefs.h. */ 11588 11589int 11590main () 11591{ 11592 11593 ; 11594 return 0; 11595} 11596_ACEOF 11597if ac_fn_c_try_compile "$LINENO"; then : 11598 eval "$as_acx_Woption=yes" 11599else 11600 eval "$as_acx_Woption=no" 11601fi 11602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11603 11604fi 11605eval ac_res=\$$as_acx_Woption 11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11607$as_echo "$ac_res" >&6; } 11608 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : 11609 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option" 11610fi 11611 done 11612CFLAGS="$save_CFLAGS" 11613 11614 11615if test -n "${with_target_subdir}"; then 11616 WARN_FLAGS="$WARN_FLAGS -Werror" 11617fi 11618 11619 11620 11621if test -n "${with_target_subdir}"; then 11622 11623 11624# Check whether --with-system-libunwind was given. 11625if test "${with_system_libunwind+set}" = set; then : 11626 withval=$with_system_libunwind; 11627fi 11628 11629 # If system-libunwind was not specifically set, pick a default setting. 11630 if test x$with_system_libunwind = x; then 11631 case ${target} in 11632 ia64-*-hpux*) with_system_libunwind=yes ;; 11633 *) with_system_libunwind=no ;; 11634 esac 11635 fi 11636 # Based on system-libunwind and target, do we have ipinfo? 11637 if test x$with_system_libunwind = xyes; then 11638 case ${target} in 11639 ia64-*-*) have_unwind_getipinfo=no ;; 11640 *) have_unwind_getipinfo=yes ;; 11641 esac 11642 else 11643 # Darwin before version 9 does not have _Unwind_GetIPInfo. 11644 11645 case ${target} in 11646 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;; 11647 *) have_unwind_getipinfo=yes ;; 11648 esac 11649 11650 fi 11651 11652 if test x$have_unwind_getipinfo = xyes; then 11653 11654$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h 11655 11656 fi 11657 11658else 11659 ac_save_CFFLAGS="$CFLAGS" 11660 CFLAGS="$CFLAGS -Werror-implicit-function-declaration" 11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5 11662$as_echo_n "checking for _Unwind_GetIPInfo... " >&6; } 11663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11664/* end confdefs.h. */ 11665#include "unwind.h" 11666 struct _Unwind_Context *context; 11667 int ip_before_insn = 0; 11668int 11669main () 11670{ 11671return _Unwind_GetIPInfo (context, &ip_before_insn); 11672 ; 11673 return 0; 11674} 11675_ACEOF 11676if ac_fn_c_try_link "$LINENO"; then : 11677 have_unwind_getipinfo=yes 11678else 11679 have_unwind_getipinfo=no 11680fi 11681rm -f core conftest.err conftest.$ac_objext \ 11682 conftest$ac_exeext conftest.$ac_ext 11683 CFLAGS="$ac_save_CFLAGS" 11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5 11685$as_echo "$have_unwind_getipinfo" >&6; } 11686 if test "$have_unwind_getipinfo" = "yes"; then 11687 11688$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h 11689 11690 fi 11691fi 11692 11693# When building as a target library, shared libraries may want to link 11694# this in. We don't want to provide another shared library to 11695# complicate dependencies. Instead, we just compile with -fPIC. 11696PIC_FLAG= 11697if test -n "${with_target_subdir}"; then 11698 PIC_FLAG=-fPIC 11699fi 11700 11701 11702# Test for __sync support. 11703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5 11704$as_echo_n "checking __sync extensions... " >&6; } 11705if test "${libbacktrace_cv_sys_sync+set}" = set; then : 11706 $as_echo_n "(cached) " >&6 11707else 11708 if test -n "${with_target_subdir}"; then 11709 libbacktrace_cv_sys_sync=yes 11710 else 11711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11712/* end confdefs.h. */ 11713int i; 11714int 11715main () 11716{ 11717__sync_bool_compare_and_swap (&i, i, i); 11718 __sync_lock_test_and_set (&i, 1); 11719 __sync_lock_release (&i); 11720 ; 11721 return 0; 11722} 11723_ACEOF 11724if ac_fn_c_try_link "$LINENO"; then : 11725 libbacktrace_cv_sys_sync=yes 11726else 11727 libbacktrace_cv_sys_sync=no 11728fi 11729rm -f core conftest.err conftest.$ac_objext \ 11730 conftest$ac_exeext conftest.$ac_ext 11731 fi 11732fi 11733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5 11734$as_echo "$libbacktrace_cv_sys_sync" >&6; } 11735BACKTRACE_SUPPORTS_THREADS=0 11736if test "$libbacktrace_cv_sys_sync" = "yes"; then 11737 BACKTRACE_SUPPORTS_THREADS=1 11738 11739$as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h 11740 11741fi 11742 11743 11744# The library needs to be able to read the executable itself. Compile 11745# a file to determine the executable format. The awk script 11746# filetype.awk prints out the file type. 11747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5 11748$as_echo_n "checking output filetype... " >&6; } 11749if test "${libbacktrace_cv_sys_filetype+set}" = set; then : 11750 $as_echo_n "(cached) " >&6 11751else 11752 filetype= 11753cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11754/* end confdefs.h. */ 11755int i; 11756int 11757main () 11758{ 11759int j; 11760 ; 11761 return 0; 11762} 11763_ACEOF 11764if ac_fn_c_try_compile "$LINENO"; then : 11765 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext` 11766else 11767 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11769as_fn_error "compiler failed 11770See \`config.log' for more details." "$LINENO" 5; } 11771fi 11772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11773libbacktrace_cv_sys_filetype=$filetype 11774fi 11775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5 11776$as_echo "$libbacktrace_cv_sys_filetype" >&6; } 11777 11778# Match the file type to decide what files to compile. 11779FORMAT_FILE= 11780case "$libbacktrace_cv_sys_filetype" in 11781elf*) FORMAT_FILE="elf.lo" ;; 11782*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5 11783$as_echo "$as_me: WARNING: could not determine output file type" >&2;} 11784 FORMAT_FILE="unknown.lo" 11785 backtrace_supported=no 11786 ;; 11787esac 11788 11789 11790# ELF defines. 11791elfsize= 11792case "$libbacktrace_cv_sys_filetype" in 11793elf32) elfsize=32 ;; 11794elf64) elfsize=64 ;; 11795esac 11796 11797cat >>confdefs.h <<_ACEOF 11798#define BACKTRACE_ELF_SIZE $elfsize 11799_ACEOF 11800 11801 11802BACKTRACE_SUPPORTED=0 11803if test "$backtrace_supported" = "yes"; then 11804 BACKTRACE_SUPPORTED=1 11805fi 11806 11807 11808 11809 11810inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` 11811 11812acx_cv_header_stdint=stddef.h 11813acx_cv_header_stdint_kind="(already complete)" 11814for i in stdint.h $inttype_headers; do 11815 unset ac_cv_type_uintptr_t 11816 unset ac_cv_type_uintmax_t 11817 unset ac_cv_type_int_least32_t 11818 unset ac_cv_type_int_fast32_t 11819 unset ac_cv_type_uint64_t 11820 $as_echo_n "looking for a compliant stdint.h in $i, " >&6 11821 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h> 11822#include <$i> 11823" 11824if test "x$ac_cv_type_uintmax_t" = x""yes; then : 11825 acx_cv_header_stdint=$i 11826else 11827 continue 11828fi 11829 11830 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> 11831#include <$i> 11832" 11833if test "x$ac_cv_type_uintptr_t" = x""yes; then : 11834 11835else 11836 acx_cv_header_stdint_kind="(mostly complete)" 11837fi 11838 11839 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h> 11840#include <$i> 11841" 11842if test "x$ac_cv_type_int_least32_t" = x""yes; then : 11843 11844else 11845 acx_cv_header_stdint_kind="(mostly complete)" 11846fi 11847 11848 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h> 11849#include <$i> 11850" 11851if test "x$ac_cv_type_int_fast32_t" = x""yes; then : 11852 11853else 11854 acx_cv_header_stdint_kind="(mostly complete)" 11855fi 11856 11857 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> 11858#include <$i> 11859" 11860if test "x$ac_cv_type_uint64_t" = x""yes; then : 11861 11862else 11863 acx_cv_header_stdint_kind="(lacks uint64_t)" 11864fi 11865 11866 break 11867done 11868if test "$acx_cv_header_stdint" = stddef.h; then 11869 acx_cv_header_stdint_kind="(lacks uintmax_t)" 11870 for i in stdint.h $inttype_headers; do 11871 unset ac_cv_type_uintptr_t 11872 unset ac_cv_type_uint32_t 11873 unset ac_cv_type_uint64_t 11874 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6 11875 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h> 11876#include <$i> 11877" 11878if test "x$ac_cv_type_uint32_t" = x""yes; then : 11879 acx_cv_header_stdint=$i 11880else 11881 continue 11882fi 11883 11884 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h> 11885#include <$i> 11886" 11887if test "x$ac_cv_type_uint64_t" = x""yes; then : 11888 11889fi 11890 11891 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h> 11892#include <$i> 11893" 11894if test "x$ac_cv_type_uintptr_t" = x""yes; then : 11895 11896fi 11897 11898 break 11899 done 11900fi 11901if test "$acx_cv_header_stdint" = stddef.h; then 11902 acx_cv_header_stdint_kind="(u_intXX_t style)" 11903 for i in sys/types.h $inttype_headers; do 11904 unset ac_cv_type_u_int32_t 11905 unset ac_cv_type_u_int64_t 11906 $as_echo_n "looking for u_intXX_t types in $i, " >&6 11907 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h> 11908#include <$i> 11909" 11910if test "x$ac_cv_type_u_int32_t" = x""yes; then : 11911 acx_cv_header_stdint=$i 11912else 11913 continue 11914fi 11915 11916 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h> 11917#include <$i> 11918" 11919if test "x$ac_cv_type_u_int64_t" = x""yes; then : 11920 11921fi 11922 11923 break 11924 done 11925fi 11926if test "$acx_cv_header_stdint" = stddef.h; then 11927 acx_cv_header_stdint_kind="(using manual detection)" 11928fi 11929 11930test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no 11931test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no 11932test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no 11933test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no 11934test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no 11935 11936# ----------------- Summarize what we found so far 11937 11938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5 11939$as_echo_n "checking what to include in gstdint.h... " >&6; } 11940 11941case `$as_basename -- gstdint.h || 11942$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ 11943 Xgstdint.h : 'X\(//\)$' \| \ 11944 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null || 11945$as_echo X/gstdint.h | 11946 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11947 s//\1/ 11948 q 11949 } 11950 /^X\/\(\/\/\)$/{ 11951 s//\1/ 11952 q 11953 } 11954 /^X\/\(\/\).*/{ 11955 s//\1/ 11956 q 11957 } 11958 s/.*/./; q'` in 11959 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 11960$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; 11961 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5 11962$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; 11963 *) ;; 11964esac 11965 11966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 11967$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; } 11968 11969# ----------------- done included file, check C basic types -------- 11970 11971# Lacking an uintptr_t? Test size of void * 11972case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in 11973 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler 11974# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11975# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11976# This bug is HP SR number 8606223364. 11977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 11978$as_echo_n "checking size of void *... " >&6; } 11979if test "${ac_cv_sizeof_void_p+set}" = set; then : 11980 $as_echo_n "(cached) " >&6 11981else 11982 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 11983 11984else 11985 if test "$ac_cv_type_void_p" = yes; then 11986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11987$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11988{ as_fn_set_status 77 11989as_fn_error "cannot compute sizeof (void *) 11990See \`config.log' for more details." "$LINENO" 5; }; } 11991 else 11992 ac_cv_sizeof_void_p=0 11993 fi 11994fi 11995 11996fi 11997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 11998$as_echo "$ac_cv_sizeof_void_p" >&6; } 11999 12000 12001 12002cat >>confdefs.h <<_ACEOF 12003#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 12004_ACEOF 12005 12006 ;; 12007esac 12008 12009# Lacking an uint64_t? Test size of long 12010case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in 12011 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler 12012# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12013# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12014# This bug is HP SR number 8606223364. 12015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 12016$as_echo_n "checking size of long... " >&6; } 12017if test "${ac_cv_sizeof_long+set}" = set; then : 12018 $as_echo_n "(cached) " >&6 12019else 12020 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 12021 12022else 12023 if test "$ac_cv_type_long" = yes; then 12024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12026{ as_fn_set_status 77 12027as_fn_error "cannot compute sizeof (long) 12028See \`config.log' for more details." "$LINENO" 5; }; } 12029 else 12030 ac_cv_sizeof_long=0 12031 fi 12032fi 12033 12034fi 12035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 12036$as_echo "$ac_cv_sizeof_long" >&6; } 12037 12038 12039 12040cat >>confdefs.h <<_ACEOF 12041#define SIZEOF_LONG $ac_cv_sizeof_long 12042_ACEOF 12043 12044 ;; 12045esac 12046 12047if test $acx_cv_header_stdint = stddef.h; then 12048 # Lacking a good header? Test size of everything and deduce all types. 12049 # The cast to long int works around a bug in the HP C Compiler 12050# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12051# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12052# This bug is HP SR number 8606223364. 12053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 12054$as_echo_n "checking size of int... " >&6; } 12055if test "${ac_cv_sizeof_int+set}" = set; then : 12056 $as_echo_n "(cached) " >&6 12057else 12058 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 12059 12060else 12061 if test "$ac_cv_type_int" = yes; then 12062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12063$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12064{ as_fn_set_status 77 12065as_fn_error "cannot compute sizeof (int) 12066See \`config.log' for more details." "$LINENO" 5; }; } 12067 else 12068 ac_cv_sizeof_int=0 12069 fi 12070fi 12071 12072fi 12073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 12074$as_echo "$ac_cv_sizeof_int" >&6; } 12075 12076 12077 12078cat >>confdefs.h <<_ACEOF 12079#define SIZEOF_INT $ac_cv_sizeof_int 12080_ACEOF 12081 12082 12083 # The cast to long int works around a bug in the HP C Compiler 12084# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12085# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12086# This bug is HP SR number 8606223364. 12087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 12088$as_echo_n "checking size of short... " >&6; } 12089if test "${ac_cv_sizeof_short+set}" = set; then : 12090 $as_echo_n "(cached) " >&6 12091else 12092 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 12093 12094else 12095 if test "$ac_cv_type_short" = yes; then 12096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12098{ as_fn_set_status 77 12099as_fn_error "cannot compute sizeof (short) 12100See \`config.log' for more details." "$LINENO" 5; }; } 12101 else 12102 ac_cv_sizeof_short=0 12103 fi 12104fi 12105 12106fi 12107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 12108$as_echo "$ac_cv_sizeof_short" >&6; } 12109 12110 12111 12112cat >>confdefs.h <<_ACEOF 12113#define SIZEOF_SHORT $ac_cv_sizeof_short 12114_ACEOF 12115 12116 12117 # The cast to long int works around a bug in the HP C Compiler 12118# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12119# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12120# This bug is HP SR number 8606223364. 12121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5 12122$as_echo_n "checking size of char... " >&6; } 12123if test "${ac_cv_sizeof_char+set}" = set; then : 12124 $as_echo_n "(cached) " >&6 12125else 12126 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then : 12127 12128else 12129 if test "$ac_cv_type_char" = yes; then 12130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12132{ as_fn_set_status 77 12133as_fn_error "cannot compute sizeof (char) 12134See \`config.log' for more details." "$LINENO" 5; }; } 12135 else 12136 ac_cv_sizeof_char=0 12137 fi 12138fi 12139 12140fi 12141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5 12142$as_echo "$ac_cv_sizeof_char" >&6; } 12143 12144 12145 12146cat >>confdefs.h <<_ACEOF 12147#define SIZEOF_CHAR $ac_cv_sizeof_char 12148_ACEOF 12149 12150 12151 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5 12153$as_echo_n "checking for type equivalent to int8_t... " >&6; } 12154 case "$ac_cv_sizeof_char" in 12155 1) acx_cv_type_int8_t=char ;; 12156 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5 12157 esac 12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5 12159$as_echo "$acx_cv_type_int8_t" >&6; } 12160 12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5 12162$as_echo_n "checking for type equivalent to int16_t... " >&6; } 12163 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in 12164 2:*) acx_cv_type_int16_t=int ;; 12165 *:2) acx_cv_type_int16_t=short ;; 12166 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5 12167 esac 12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5 12169$as_echo "$acx_cv_type_int16_t" >&6; } 12170 12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5 12172$as_echo_n "checking for type equivalent to int32_t... " >&6; } 12173 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in 12174 4:*) acx_cv_type_int32_t=int ;; 12175 *:4) acx_cv_type_int32_t=long ;; 12176 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5 12177 esac 12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5 12179$as_echo "$acx_cv_type_int32_t" >&6; } 12180fi 12181 12182# These tests are here to make the output prettier 12183 12184if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then 12185 case "$ac_cv_sizeof_long" in 12186 8) acx_cv_type_int64_t=long ;; 12187 esac 12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5 12189$as_echo_n "checking for type equivalent to int64_t... " >&6; } 12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 12191$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; } 12192fi 12193 12194# Now we can use the above types 12195 12196if test "$ac_cv_type_uintptr_t" != yes; then 12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5 12198$as_echo_n "checking for type equivalent to intptr_t... " >&6; } 12199 case $ac_cv_sizeof_void_p in 12200 2) acx_cv_type_intptr_t=int16_t ;; 12201 4) acx_cv_type_intptr_t=int32_t ;; 12202 8) acx_cv_type_intptr_t=int64_t ;; 12203 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5 12204 esac 12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5 12206$as_echo "$acx_cv_type_intptr_t" >&6; } 12207fi 12208 12209# ----------------- done all checks, emit header ------------- 12210ac_config_commands="$ac_config_commands gstdint.h" 12211 12212 12213 12214 12215for ac_header in sys/mman.h 12216do : 12217 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 12218if test "x$ac_cv_header_sys_mman_h" = x""yes; then : 12219 cat >>confdefs.h <<_ACEOF 12220#define HAVE_SYS_MMAN_H 1 12221_ACEOF 12222 12223fi 12224 12225done 12226 12227if test "$ac_cv_header_sys_mman_h" = "no"; then 12228 have_mmap=no 12229else 12230 if test -n "${with_target_subdir}"; then 12231 # When built as a GCC target library, we can't do a link test. We 12232 # simply assume that if we have mman.h, we have mmap. 12233 have_mmap=yes 12234 else 12235 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 12236if test "x$ac_cv_func_mmap" = x""yes; then : 12237 have_mmap=yes 12238else 12239 have_mmap=no 12240fi 12241 12242 fi 12243fi 12244if test "$have_mmap" = "no"; then 12245 VIEW_FILE=read.lo 12246 ALLOC_FILE=alloc.lo 12247else 12248 VIEW_FILE=mmapio.lo 12249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12250/* end confdefs.h. */ 12251 12252#include <sys/mman.h> 12253#if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON) 12254 #error no MAP_ANONYMOUS 12255#endif 12256 12257_ACEOF 12258if ac_fn_c_try_cpp "$LINENO"; then : 12259 ALLOC_FILE=mmap.lo 12260else 12261 ALLOC_FILE=alloc.lo 12262fi 12263rm -f conftest.err conftest.$ac_ext 12264fi 12265 12266 12267 12268BACKTRACE_USES_MALLOC=0 12269if test "$ALLOC_FILE" = "alloc.lo"; then 12270 BACKTRACE_USES_MALLOC=1 12271fi 12272 12273 12274# Check for dl_iterate_phdr. 12275for ac_header in link.h 12276do : 12277 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default" 12278if test "x$ac_cv_header_link_h" = x""yes; then : 12279 cat >>confdefs.h <<_ACEOF 12280#define HAVE_LINK_H 1 12281_ACEOF 12282 12283fi 12284 12285done 12286 12287if test "$ac_cv_header_link_h" = "no"; then 12288 have_dl_iterate_phdr=no 12289else 12290 if test -n "${with_target_subdir}"; then 12291 # When built as a GCC target library, we can't do a link test. 12292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12293/* end confdefs.h. */ 12294#include <link.h> 12295 12296_ACEOF 12297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12298 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then : 12299 have_dl_iterate_phdr=yes 12300else 12301 have_dl_iterate_phdr=no 12302fi 12303rm -f conftest* 12304 12305 case "${host}" in 12306 *-*-solaris2.10*) 12307 # Avoid dl_iterate_phdr on Solaris 10, where it is in the 12308 # header file but is only in -ldl. 12309 have_dl_iterate_phdr=no ;; 12310 esac 12311 else 12312 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr" 12313if test "x$ac_cv_func_dl_iterate_phdr" = x""yes; then : 12314 have_dl_iterate_phdr=yes 12315else 12316 have_dl_iterate_phdr=no 12317fi 12318 12319 fi 12320fi 12321if test "$have_dl_iterate_phdr" = "yes"; then 12322 12323$as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h 12324 12325fi 12326 12327# Check for the fcntl function. 12328if test -n "${with_target_subdir}"; then 12329 case "${host}" in 12330 *-*-mingw*) have_fcntl=no ;; 12331 *) have_fcntl=yes ;; 12332 esac 12333else 12334 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" 12335if test "x$ac_cv_func_fcntl" = x""yes; then : 12336 have_fcntl=yes 12337else 12338 have_fcntl=no 12339fi 12340 12341fi 12342if test "$have_fcntl" = "yes"; then 12343 12344$as_echo "#define HAVE_FCNTL 1" >>confdefs.h 12345 12346fi 12347 12348ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" 12349if test "x$ac_cv_have_decl_strnlen" = x""yes; then : 12350 ac_have_decl=1 12351else 12352 ac_have_decl=0 12353fi 12354 12355cat >>confdefs.h <<_ACEOF 12356#define HAVE_DECL_STRNLEN $ac_have_decl 12357_ACEOF 12358 12359 12360# Check for getexecname function. 12361if test -n "${with_target_subdir}"; then 12362 case "${host}" in 12363 *-*-solaris2*) have_getexecname=yes ;; 12364 *) have_getexecname=no ;; 12365 esac 12366else 12367 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname" 12368if test "x$ac_cv_func_getexecname" = x""yes; then : 12369 have_getexecname=yes 12370else 12371 have_getexecname=no 12372fi 12373 12374fi 12375if test "$have_getexecname" = "yes"; then 12376 12377$as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h 12378 12379fi 12380 12381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5 12382$as_echo_n "checking whether tests can run... " >&6; } 12383if test "${libbacktrace_cv_sys_native+set}" = set; then : 12384 $as_echo_n "(cached) " >&6 12385else 12386 if test "$cross_compiling" = yes; then : 12387 libbacktrace_cv_sys_native=no 12388else 12389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12390/* end confdefs.h. */ 12391 12392int 12393main () 12394{ 12395return 0; 12396 ; 12397 return 0; 12398} 12399_ACEOF 12400if ac_fn_c_try_run "$LINENO"; then : 12401 libbacktrace_cv_sys_native=yes 12402else 12403 libbacktrace_cv_sys_native=no 12404fi 12405rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12406 conftest.$ac_objext conftest.beam conftest.$ac_ext 12407fi 12408 12409fi 12410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5 12411$as_echo "$libbacktrace_cv_sys_native" >&6; } 12412 if test "$libbacktrace_cv_sys_native" = "yes"; then 12413 NATIVE_TRUE= 12414 NATIVE_FALSE='#' 12415else 12416 NATIVE_TRUE='#' 12417 NATIVE_FALSE= 12418fi 12419 12420 12421if test "${multilib}" = "yes"; then 12422 multilib_arg="--enable-multilib" 12423else 12424 multilib_arg= 12425fi 12426 12427ac_config_files="$ac_config_files Makefile backtrace-supported.h" 12428 12429 12430# We need multilib support, but only if configuring for the target. 12431ac_config_commands="$ac_config_commands default" 12432 12433 12434cat >confcache <<\_ACEOF 12435# This file is a shell script that caches the results of configure 12436# tests run on this system so they can be shared between configure 12437# scripts and configure runs, see configure's option --config-cache. 12438# It is not useful on other systems. If it contains results you don't 12439# want to keep, you may remove or edit it. 12440# 12441# config.status only pays attention to the cache file if you give it 12442# the --recheck option to rerun configure. 12443# 12444# `ac_cv_env_foo' variables (set or unset) will be overridden when 12445# loading this file, other *unset* `ac_cv_foo' will be assigned the 12446# following values. 12447 12448_ACEOF 12449 12450# The following way of writing the cache mishandles newlines in values, 12451# but we know of no workaround that is simple, portable, and efficient. 12452# So, we kill variables containing newlines. 12453# Ultrix sh set writes to stderr and can't be redirected directly, 12454# and sets the high bit in the cache file unless we assign to the vars. 12455( 12456 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12457 eval ac_val=\$$ac_var 12458 case $ac_val in #( 12459 *${as_nl}*) 12460 case $ac_var in #( 12461 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12462$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12463 esac 12464 case $ac_var in #( 12465 _ | IFS | as_nl) ;; #( 12466 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12467 *) { eval $ac_var=; unset $ac_var;} ;; 12468 esac ;; 12469 esac 12470 done 12471 12472 (set) 2>&1 | 12473 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12474 *${as_nl}ac_space=\ *) 12475 # `set' does not quote correctly, so add quotes: double-quote 12476 # substitution turns \\\\ into \\, and sed turns \\ into \. 12477 sed -n \ 12478 "s/'/'\\\\''/g; 12479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12480 ;; #( 12481 *) 12482 # `set' quotes correctly as required by POSIX, so do not add quotes. 12483 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12484 ;; 12485 esac | 12486 sort 12487) | 12488 sed ' 12489 /^ac_cv_env_/b end 12490 t clear 12491 :clear 12492 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12493 t end 12494 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12495 :end' >>confcache 12496if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12497 if test -w "$cache_file"; then 12498 test "x$cache_file" != "x/dev/null" && 12499 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12500$as_echo "$as_me: updating cache $cache_file" >&6;} 12501 cat confcache >$cache_file 12502 else 12503 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12504$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12505 fi 12506fi 12507rm -f confcache 12508 12509test "x$prefix" = xNONE && prefix=$ac_default_prefix 12510# Let make expand exec_prefix. 12511test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12512 12513DEFS=-DHAVE_CONFIG_H 12514 12515ac_libobjs= 12516ac_ltlibobjs= 12517for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12518 # 1. Remove the extension, and $U if already installed. 12519 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12520 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12521 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12522 # will be set to the directory where LIBOBJS objects are built. 12523 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12524 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12525done 12526LIBOBJS=$ac_libobjs 12527 12528LTLIBOBJS=$ac_ltlibobjs 12529 12530 12531 if test -n "$EXEEXT"; then 12532 am__EXEEXT_TRUE= 12533 am__EXEEXT_FALSE='#' 12534else 12535 am__EXEEXT_TRUE='#' 12536 am__EXEEXT_FALSE= 12537fi 12538 12539if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 12540 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 12541Usually this means the macro was only invoked conditionally." "$LINENO" 5 12542fi 12543if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then 12544 as_fn_error "conditional \"NATIVE\" was never defined. 12545Usually this means the macro was only invoked conditionally." "$LINENO" 5 12546fi 12547 12548: ${CONFIG_STATUS=./config.status} 12549ac_write_fail=0 12550ac_clean_files_save=$ac_clean_files 12551ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12552{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12553$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12554as_write_fail=0 12555cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12556#! $SHELL 12557# Generated by $as_me. 12558# Run this file to recreate the current configuration. 12559# Compiler output produced by configure, useful for debugging 12560# configure, is in config.log if it exists. 12561 12562debug=false 12563ac_cs_recheck=false 12564ac_cs_silent=false 12565 12566SHELL=\${CONFIG_SHELL-$SHELL} 12567export SHELL 12568_ASEOF 12569cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12570## -------------------- ## 12571## M4sh Initialization. ## 12572## -------------------- ## 12573 12574# Be more Bourne compatible 12575DUALCASE=1; export DUALCASE # for MKS sh 12576if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12577 emulate sh 12578 NULLCMD=: 12579 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12580 # is contrary to our usage. Disable this feature. 12581 alias -g '${1+"$@"}'='"$@"' 12582 setopt NO_GLOB_SUBST 12583else 12584 case `(set -o) 2>/dev/null` in #( 12585 *posix*) : 12586 set -o posix ;; #( 12587 *) : 12588 ;; 12589esac 12590fi 12591 12592 12593as_nl=' 12594' 12595export as_nl 12596# Printing a long string crashes Solaris 7 /usr/bin/printf. 12597as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12598as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12599as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12600# Prefer a ksh shell builtin over an external printf program on Solaris, 12601# but without wasting forks for bash or zsh. 12602if test -z "$BASH_VERSION$ZSH_VERSION" \ 12603 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12604 as_echo='print -r --' 12605 as_echo_n='print -rn --' 12606elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12607 as_echo='printf %s\n' 12608 as_echo_n='printf %s' 12609else 12610 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12611 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12612 as_echo_n='/usr/ucb/echo -n' 12613 else 12614 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12615 as_echo_n_body='eval 12616 arg=$1; 12617 case $arg in #( 12618 *"$as_nl"*) 12619 expr "X$arg" : "X\\(.*\\)$as_nl"; 12620 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12621 esac; 12622 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12623 ' 12624 export as_echo_n_body 12625 as_echo_n='sh -c $as_echo_n_body as_echo' 12626 fi 12627 export as_echo_body 12628 as_echo='sh -c $as_echo_body as_echo' 12629fi 12630 12631# The user is always right. 12632if test "${PATH_SEPARATOR+set}" != set; then 12633 PATH_SEPARATOR=: 12634 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12635 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12636 PATH_SEPARATOR=';' 12637 } 12638fi 12639 12640 12641# IFS 12642# We need space, tab and new line, in precisely that order. Quoting is 12643# there to prevent editors from complaining about space-tab. 12644# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12645# splitting by setting IFS to empty value.) 12646IFS=" "" $as_nl" 12647 12648# Find who we are. Look in the path if we contain no directory separator. 12649case $0 in #(( 12650 *[\\/]* ) as_myself=$0 ;; 12651 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12652for as_dir in $PATH 12653do 12654 IFS=$as_save_IFS 12655 test -z "$as_dir" && as_dir=. 12656 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12657 done 12658IFS=$as_save_IFS 12659 12660 ;; 12661esac 12662# We did not find ourselves, most probably we were run as `sh COMMAND' 12663# in which case we are not to be found in the path. 12664if test "x$as_myself" = x; then 12665 as_myself=$0 12666fi 12667if test ! -f "$as_myself"; then 12668 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12669 exit 1 12670fi 12671 12672# Unset variables that we do not need and which cause bugs (e.g. in 12673# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12674# suppresses any "Segmentation fault" message there. '((' could 12675# trigger a bug in pdksh 5.2.14. 12676for as_var in BASH_ENV ENV MAIL MAILPATH 12677do eval test x\${$as_var+set} = xset \ 12678 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12679done 12680PS1='$ ' 12681PS2='> ' 12682PS4='+ ' 12683 12684# NLS nuisances. 12685LC_ALL=C 12686export LC_ALL 12687LANGUAGE=C 12688export LANGUAGE 12689 12690# CDPATH. 12691(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12692 12693 12694# as_fn_error ERROR [LINENO LOG_FD] 12695# --------------------------------- 12696# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12697# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12698# script with status $?, using 1 if that was 0. 12699as_fn_error () 12700{ 12701 as_status=$?; test $as_status -eq 0 && as_status=1 12702 if test "$3"; then 12703 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12704 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 12705 fi 12706 $as_echo "$as_me: error: $1" >&2 12707 as_fn_exit $as_status 12708} # as_fn_error 12709 12710 12711# as_fn_set_status STATUS 12712# ----------------------- 12713# Set $? to STATUS, without forking. 12714as_fn_set_status () 12715{ 12716 return $1 12717} # as_fn_set_status 12718 12719# as_fn_exit STATUS 12720# ----------------- 12721# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12722as_fn_exit () 12723{ 12724 set +e 12725 as_fn_set_status $1 12726 exit $1 12727} # as_fn_exit 12728 12729# as_fn_unset VAR 12730# --------------- 12731# Portably unset VAR. 12732as_fn_unset () 12733{ 12734 { eval $1=; unset $1;} 12735} 12736as_unset=as_fn_unset 12737# as_fn_append VAR VALUE 12738# ---------------------- 12739# Append the text in VALUE to the end of the definition contained in VAR. Take 12740# advantage of any shell optimizations that allow amortized linear growth over 12741# repeated appends, instead of the typical quadratic growth present in naive 12742# implementations. 12743if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12744 eval 'as_fn_append () 12745 { 12746 eval $1+=\$2 12747 }' 12748else 12749 as_fn_append () 12750 { 12751 eval $1=\$$1\$2 12752 } 12753fi # as_fn_append 12754 12755# as_fn_arith ARG... 12756# ------------------ 12757# Perform arithmetic evaluation on the ARGs, and store the result in the 12758# global $as_val. Take advantage of shells that can avoid forks. The arguments 12759# must be portable across $(()) and expr. 12760if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12761 eval 'as_fn_arith () 12762 { 12763 as_val=$(( $* )) 12764 }' 12765else 12766 as_fn_arith () 12767 { 12768 as_val=`expr "$@" || test $? -eq 1` 12769 } 12770fi # as_fn_arith 12771 12772 12773if expr a : '\(a\)' >/dev/null 2>&1 && 12774 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12775 as_expr=expr 12776else 12777 as_expr=false 12778fi 12779 12780if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12781 as_basename=basename 12782else 12783 as_basename=false 12784fi 12785 12786if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12787 as_dirname=dirname 12788else 12789 as_dirname=false 12790fi 12791 12792as_me=`$as_basename -- "$0" || 12793$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12794 X"$0" : 'X\(//\)$' \| \ 12795 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12796$as_echo X/"$0" | 12797 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12798 s//\1/ 12799 q 12800 } 12801 /^X\/\(\/\/\)$/{ 12802 s//\1/ 12803 q 12804 } 12805 /^X\/\(\/\).*/{ 12806 s//\1/ 12807 q 12808 } 12809 s/.*/./; q'` 12810 12811# Avoid depending upon Character Ranges. 12812as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12813as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12814as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12815as_cr_digits='0123456789' 12816as_cr_alnum=$as_cr_Letters$as_cr_digits 12817 12818ECHO_C= ECHO_N= ECHO_T= 12819case `echo -n x` in #((((( 12820-n*) 12821 case `echo 'xy\c'` in 12822 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12823 xy) ECHO_C='\c';; 12824 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12825 ECHO_T=' ';; 12826 esac;; 12827*) 12828 ECHO_N='-n';; 12829esac 12830 12831rm -f conf$$ conf$$.exe conf$$.file 12832if test -d conf$$.dir; then 12833 rm -f conf$$.dir/conf$$.file 12834else 12835 rm -f conf$$.dir 12836 mkdir conf$$.dir 2>/dev/null 12837fi 12838if (echo >conf$$.file) 2>/dev/null; then 12839 if ln -s conf$$.file conf$$ 2>/dev/null; then 12840 as_ln_s='ln -s' 12841 # ... but there are two gotchas: 12842 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12843 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12844 # In both cases, we have to default to `cp -p'. 12845 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12846 as_ln_s='cp -p' 12847 elif ln conf$$.file conf$$ 2>/dev/null; then 12848 as_ln_s=ln 12849 else 12850 as_ln_s='cp -p' 12851 fi 12852else 12853 as_ln_s='cp -p' 12854fi 12855rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12856rmdir conf$$.dir 2>/dev/null 12857 12858 12859# as_fn_mkdir_p 12860# ------------- 12861# Create "$as_dir" as a directory, including parents if necessary. 12862as_fn_mkdir_p () 12863{ 12864 12865 case $as_dir in #( 12866 -*) as_dir=./$as_dir;; 12867 esac 12868 test -d "$as_dir" || eval $as_mkdir_p || { 12869 as_dirs= 12870 while :; do 12871 case $as_dir in #( 12872 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12873 *) as_qdir=$as_dir;; 12874 esac 12875 as_dirs="'$as_qdir' $as_dirs" 12876 as_dir=`$as_dirname -- "$as_dir" || 12877$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12878 X"$as_dir" : 'X\(//\)[^/]' \| \ 12879 X"$as_dir" : 'X\(//\)$' \| \ 12880 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12881$as_echo X"$as_dir" | 12882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12883 s//\1/ 12884 q 12885 } 12886 /^X\(\/\/\)[^/].*/{ 12887 s//\1/ 12888 q 12889 } 12890 /^X\(\/\/\)$/{ 12891 s//\1/ 12892 q 12893 } 12894 /^X\(\/\).*/{ 12895 s//\1/ 12896 q 12897 } 12898 s/.*/./; q'` 12899 test -d "$as_dir" && break 12900 done 12901 test -z "$as_dirs" || eval "mkdir $as_dirs" 12902 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 12903 12904 12905} # as_fn_mkdir_p 12906if mkdir -p . 2>/dev/null; then 12907 as_mkdir_p='mkdir -p "$as_dir"' 12908else 12909 test -d ./-p && rmdir ./-p 12910 as_mkdir_p=false 12911fi 12912 12913if test -x / >/dev/null 2>&1; then 12914 as_test_x='test -x' 12915else 12916 if ls -dL / >/dev/null 2>&1; then 12917 as_ls_L_option=L 12918 else 12919 as_ls_L_option= 12920 fi 12921 as_test_x=' 12922 eval sh -c '\'' 12923 if test -d "$1"; then 12924 test -d "$1/."; 12925 else 12926 case $1 in #( 12927 -*)set "./$1";; 12928 esac; 12929 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12930 ???[sx]*):;;*)false;;esac;fi 12931 '\'' sh 12932 ' 12933fi 12934as_executable_p=$as_test_x 12935 12936# Sed expression to map a string onto a valid CPP name. 12937as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12938 12939# Sed expression to map a string onto a valid variable name. 12940as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12941 12942 12943exec 6>&1 12944## ----------------------------------- ## 12945## Main body of $CONFIG_STATUS script. ## 12946## ----------------------------------- ## 12947_ASEOF 12948test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12949 12950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12951# Save the log message, to keep $0 and so on meaningful, and to 12952# report actual input values of CONFIG_FILES etc. instead of their 12953# values after options handling. 12954ac_log=" 12955This file was extended by package-unused $as_me version-unused, which was 12956generated by GNU Autoconf 2.64. Invocation command line was 12957 12958 CONFIG_FILES = $CONFIG_FILES 12959 CONFIG_HEADERS = $CONFIG_HEADERS 12960 CONFIG_LINKS = $CONFIG_LINKS 12961 CONFIG_COMMANDS = $CONFIG_COMMANDS 12962 $ $0 $@ 12963 12964on `(hostname || uname -n) 2>/dev/null | sed 1q` 12965" 12966 12967_ACEOF 12968 12969case $ac_config_files in *" 12970"*) set x $ac_config_files; shift; ac_config_files=$*;; 12971esac 12972 12973case $ac_config_headers in *" 12974"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12975esac 12976 12977 12978cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12979# Files that config.status was made for. 12980config_files="$ac_config_files" 12981config_headers="$ac_config_headers" 12982config_commands="$ac_config_commands" 12983 12984_ACEOF 12985 12986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12987ac_cs_usage="\ 12988\`$as_me' instantiates files and other configuration actions 12989from templates according to the current configuration. Unless the files 12990and actions are specified as TAGs, all are instantiated by default. 12991 12992Usage: $0 [OPTION]... [TAG]... 12993 12994 -h, --help print this help, then exit 12995 -V, --version print version number and configuration settings, then exit 12996 -q, --quiet, --silent 12997 do not print progress messages 12998 -d, --debug don't remove temporary files 12999 --recheck update $as_me by reconfiguring in the same conditions 13000 --file=FILE[:TEMPLATE] 13001 instantiate the configuration file FILE 13002 --header=FILE[:TEMPLATE] 13003 instantiate the configuration header FILE 13004 13005Configuration files: 13006$config_files 13007 13008Configuration headers: 13009$config_headers 13010 13011Configuration commands: 13012$config_commands 13013 13014Report bugs to the package provider." 13015 13016_ACEOF 13017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13018ac_cs_version="\\ 13019package-unused config.status version-unused 13020configured by $0, generated by GNU Autoconf 2.64, 13021 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 13022 13023Copyright (C) 2009 Free Software Foundation, Inc. 13024This config.status script is free software; the Free Software Foundation 13025gives unlimited permission to copy, distribute and modify it." 13026 13027ac_pwd='$ac_pwd' 13028srcdir='$srcdir' 13029INSTALL='$INSTALL' 13030MKDIR_P='$MKDIR_P' 13031AWK='$AWK' 13032test -n "\$AWK" || AWK=awk 13033_ACEOF 13034 13035cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13036# The default lists apply if the user does not specify any file. 13037ac_need_defaults=: 13038while test $# != 0 13039do 13040 case $1 in 13041 --*=*) 13042 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13043 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13044 ac_shift=: 13045 ;; 13046 *) 13047 ac_option=$1 13048 ac_optarg=$2 13049 ac_shift=shift 13050 ;; 13051 esac 13052 13053 case $ac_option in 13054 # Handling of the options. 13055 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13056 ac_cs_recheck=: ;; 13057 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13058 $as_echo "$ac_cs_version"; exit ;; 13059 --debug | --debu | --deb | --de | --d | -d ) 13060 debug=: ;; 13061 --file | --fil | --fi | --f ) 13062 $ac_shift 13063 case $ac_optarg in 13064 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13065 esac 13066 as_fn_append CONFIG_FILES " '$ac_optarg'" 13067 ac_need_defaults=false;; 13068 --header | --heade | --head | --hea ) 13069 $ac_shift 13070 case $ac_optarg in 13071 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13072 esac 13073 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13074 ac_need_defaults=false;; 13075 --he | --h) 13076 # Conflict between --help and --header 13077 as_fn_error "ambiguous option: \`$1' 13078Try \`$0 --help' for more information.";; 13079 --help | --hel | -h ) 13080 $as_echo "$ac_cs_usage"; exit ;; 13081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13082 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13083 ac_cs_silent=: ;; 13084 13085 # This is an error. 13086 -*) as_fn_error "unrecognized option: \`$1' 13087Try \`$0 --help' for more information." ;; 13088 13089 *) as_fn_append ac_config_targets " $1" 13090 ac_need_defaults=false ;; 13091 13092 esac 13093 shift 13094done 13095 13096ac_configure_extra_args= 13097 13098if $ac_cs_silent; then 13099 exec 6>/dev/null 13100 ac_configure_extra_args="$ac_configure_extra_args --silent" 13101fi 13102 13103_ACEOF 13104cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13105if \$ac_cs_recheck; then 13106 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13107 shift 13108 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13109 CONFIG_SHELL='$SHELL' 13110 export CONFIG_SHELL 13111 exec "\$@" 13112fi 13113 13114_ACEOF 13115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13116exec 5>>config.log 13117{ 13118 echo 13119 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13120## Running $as_me. ## 13121_ASBOX 13122 $as_echo "$ac_log" 13123} >&5 13124 13125_ACEOF 13126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13127# 13128# INIT-COMMANDS 13129# 13130 13131 13132# The HP-UX ksh and POSIX shell print the target directory to stdout 13133# if CDPATH is set. 13134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13135 13136sed_quote_subst='$sed_quote_subst' 13137double_quote_subst='$double_quote_subst' 13138delay_variable_subst='$delay_variable_subst' 13139macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13140macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13141enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13142enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13143pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13144enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13145SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13146ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13147host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13148host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13149host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13150build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13151build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13152build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13153SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13154Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13155GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13156EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13157FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13158LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13159NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13160LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13161max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13162ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13163exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13164lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13165lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13166lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13167reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13168reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13169OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13170deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13171file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13172AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13173AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13174STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13175RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13176old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13177old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13178old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13179lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13180CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13181CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13182compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13183GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13184lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13185lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13186lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13187lt_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"`' 13188objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13189MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13190lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13191lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13192lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13193lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13194lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13195need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13196DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13197NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13198LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13199OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13200OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13201libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13202shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13203extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13204archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13205enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13206export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13207whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13208compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13209old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13210old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13211archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13212archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13213module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13214module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13215with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13216allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13217no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13218hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13219hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 13220hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13221hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13222hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13223hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13224hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13225hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13226inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13227link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13228fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 13229always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13230export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13231exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13232include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13233prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13234file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13235variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13236need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13237need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13238version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13239runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13240shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13241shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13242libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13243library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13244soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13245install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13246postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13247postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13248finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13249finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13250hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13251sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13252sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 13253hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13254enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13255enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13256enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13257old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13258striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13259 13260LTCC='$LTCC' 13261LTCFLAGS='$LTCFLAGS' 13262compiler='$compiler_DEFAULT' 13263 13264# A function that is used when there is no print builtin or printf. 13265func_fallback_echo () 13266{ 13267 eval 'cat <<_LTECHO_EOF 13268\$1 13269_LTECHO_EOF' 13270} 13271 13272# Quote evaled strings. 13273for var in SHELL \ 13274ECHO \ 13275SED \ 13276GREP \ 13277EGREP \ 13278FGREP \ 13279LD \ 13280NM \ 13281LN_S \ 13282lt_SP2NL \ 13283lt_NL2SP \ 13284reload_flag \ 13285OBJDUMP \ 13286deplibs_check_method \ 13287file_magic_cmd \ 13288AR \ 13289AR_FLAGS \ 13290STRIP \ 13291RANLIB \ 13292CC \ 13293CFLAGS \ 13294compiler \ 13295lt_cv_sys_global_symbol_pipe \ 13296lt_cv_sys_global_symbol_to_cdecl \ 13297lt_cv_sys_global_symbol_to_c_name_address \ 13298lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13299lt_prog_compiler_no_builtin_flag \ 13300lt_prog_compiler_wl \ 13301lt_prog_compiler_pic \ 13302lt_prog_compiler_static \ 13303lt_cv_prog_compiler_c_o \ 13304need_locks \ 13305DSYMUTIL \ 13306NMEDIT \ 13307LIPO \ 13308OTOOL \ 13309OTOOL64 \ 13310shrext_cmds \ 13311export_dynamic_flag_spec \ 13312whole_archive_flag_spec \ 13313compiler_needs_object \ 13314with_gnu_ld \ 13315allow_undefined_flag \ 13316no_undefined_flag \ 13317hardcode_libdir_flag_spec \ 13318hardcode_libdir_flag_spec_ld \ 13319hardcode_libdir_separator \ 13320fix_srcfile_path \ 13321exclude_expsyms \ 13322include_expsyms \ 13323file_list_spec \ 13324variables_saved_for_relink \ 13325libname_spec \ 13326library_names_spec \ 13327soname_spec \ 13328install_override_mode \ 13329finish_eval \ 13330old_striplib \ 13331striplib; do 13332 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13333 *[\\\\\\\`\\"\\\$]*) 13334 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13335 ;; 13336 *) 13337 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13338 ;; 13339 esac 13340done 13341 13342# Double-quote double-evaled strings. 13343for var in reload_cmds \ 13344old_postinstall_cmds \ 13345old_postuninstall_cmds \ 13346old_archive_cmds \ 13347extract_expsyms_cmds \ 13348old_archive_from_new_cmds \ 13349old_archive_from_expsyms_cmds \ 13350archive_cmds \ 13351archive_expsym_cmds \ 13352module_cmds \ 13353module_expsym_cmds \ 13354export_symbols_cmds \ 13355prelink_cmds \ 13356postinstall_cmds \ 13357postuninstall_cmds \ 13358finish_cmds \ 13359sys_lib_search_path_spec \ 13360sys_lib_dlsearch_path_spec; do 13361 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13362 *[\\\\\\\`\\"\\\$]*) 13363 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13364 ;; 13365 *) 13366 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13367 ;; 13368 esac 13369done 13370 13371ac_aux_dir='$ac_aux_dir' 13372xsi_shell='$xsi_shell' 13373lt_shell_append='$lt_shell_append' 13374 13375# See if we are running on zsh, and set the options which allow our 13376# commands through without removal of \ escapes INIT. 13377if test -n "\${ZSH_VERSION+set}" ; then 13378 setopt NO_GLOB_SUBST 13379fi 13380 13381 13382 PACKAGE='$PACKAGE' 13383 VERSION='$VERSION' 13384 TIMESTAMP='$TIMESTAMP' 13385 RM='$RM' 13386 ofile='$ofile' 13387 13388 13389 13390 13391srcdir="$srcdir" 13392host="$host" 13393target="$target" 13394with_multisubdir="$with_multisubdir" 13395with_multisrctop="$with_multisrctop" 13396with_target_subdir="$with_target_subdir" 13397ac_configure_args="${multilib_arg} ${ac_configure_args}" 13398multi_basedir="$multi_basedir" 13399CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 13400CC="$CC" 13401CXX="$CXX" 13402GFORTRAN="$GFORTRAN" 13403GCJ="$GCJ" 13404 13405GCC="$GCC" 13406CC="$CC" 13407acx_cv_header_stdint="$acx_cv_header_stdint" 13408acx_cv_type_int8_t="$acx_cv_type_int8_t" 13409acx_cv_type_int16_t="$acx_cv_type_int16_t" 13410acx_cv_type_int32_t="$acx_cv_type_int32_t" 13411acx_cv_type_int64_t="$acx_cv_type_int64_t" 13412acx_cv_type_intptr_t="$acx_cv_type_intptr_t" 13413ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" 13414ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" 13415ac_cv_type_uint64_t="$ac_cv_type_uint64_t" 13416ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" 13417ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" 13418ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" 13419ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" 13420ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" 13421 13422 13423# Variables needed in config.status (file generation) which aren't already 13424# passed by autoconf. 13425SUBDIRS="$SUBDIRS" 13426 13427 13428_ACEOF 13429 13430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13431 13432# Handling of arguments. 13433for ac_config_target in $ac_config_targets 13434do 13435 case $ac_config_target in 13436 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13437 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13438 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 13439 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; 13440 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13441 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;; 13442 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 13443 13444 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13445 esac 13446done 13447 13448 13449# If the user did not use the arguments to specify the items to instantiate, 13450# then the envvar interface is used. Set only those that are not. 13451# We use the long form for the default assignment because of an extremely 13452# bizarre bug on SunOS 4.1.3. 13453if $ac_need_defaults; then 13454 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13455 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13456 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13457fi 13458 13459# Have a temporary directory for convenience. Make it in the build tree 13460# simply because there is no reason against having it here, and in addition, 13461# creating and moving files from /tmp can sometimes cause problems. 13462# Hook for its removal unless debugging. 13463# Note that there is a small window in which the directory will not be cleaned: 13464# after its creation but before its name has been assigned to `$tmp'. 13465$debug || 13466{ 13467 tmp= 13468 trap 'exit_status=$? 13469 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 13470' 0 13471 trap 'as_fn_exit 1' 1 2 13 15 13472} 13473# Create a (secure) tmp directory for tmp files. 13474 13475{ 13476 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13477 test -n "$tmp" && test -d "$tmp" 13478} || 13479{ 13480 tmp=./conf$$-$RANDOM 13481 (umask 077 && mkdir "$tmp") 13482} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 13483 13484# Set up the scripts for CONFIG_FILES section. 13485# No need to generate them if there are no CONFIG_FILES. 13486# This happens for instance with `./config.status config.h'. 13487if test -n "$CONFIG_FILES"; then 13488 13489 13490ac_cr=`echo X | tr X '\015'` 13491# On cygwin, bash can eat \r inside `` if the user requested igncr. 13492# But we know of no other shell where ac_cr would be empty at this 13493# point, so we can use a bashism as a fallback. 13494if test "x$ac_cr" = x; then 13495 eval ac_cr=\$\'\\r\' 13496fi 13497ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13498if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13499 ac_cs_awk_cr='\r' 13500else 13501 ac_cs_awk_cr=$ac_cr 13502fi 13503 13504echo 'BEGIN {' >"$tmp/subs1.awk" && 13505_ACEOF 13506 13507 13508{ 13509 echo "cat >conf$$subs.awk <<_ACEOF" && 13510 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13511 echo "_ACEOF" 13512} >conf$$subs.sh || 13513 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13514ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 13515ac_delim='%!_!# ' 13516for ac_last_try in false false false false false :; do 13517 . ./conf$$subs.sh || 13518 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13519 13520 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13521 if test $ac_delim_n = $ac_delim_num; then 13522 break 13523 elif $ac_last_try; then 13524 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 13525 else 13526 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13527 fi 13528done 13529rm -f conf$$subs.sh 13530 13531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13532cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 13533_ACEOF 13534sed -n ' 13535h 13536s/^/S["/; s/!.*/"]=/ 13537p 13538g 13539s/^[^!]*!// 13540:repl 13541t repl 13542s/'"$ac_delim"'$// 13543t delim 13544:nl 13545h 13546s/\(.\{148\}\).*/\1/ 13547t more1 13548s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13549p 13550n 13551b repl 13552:more1 13553s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13554p 13555g 13556s/.\{148\}// 13557t nl 13558:delim 13559h 13560s/\(.\{148\}\).*/\1/ 13561t more2 13562s/["\\]/\\&/g; s/^/"/; s/$/"/ 13563p 13564b 13565:more2 13566s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13567p 13568g 13569s/.\{148\}// 13570t delim 13571' <conf$$subs.awk | sed ' 13572/^[^""]/{ 13573 N 13574 s/\n// 13575} 13576' >>$CONFIG_STATUS || ac_write_fail=1 13577rm -f conf$$subs.awk 13578cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13579_ACAWK 13580cat >>"\$tmp/subs1.awk" <<_ACAWK && 13581 for (key in S) S_is_set[key] = 1 13582 FS = "" 13583 13584} 13585{ 13586 line = $ 0 13587 nfields = split(line, field, "@") 13588 substed = 0 13589 len = length(field[1]) 13590 for (i = 2; i < nfields; i++) { 13591 key = field[i] 13592 keylen = length(key) 13593 if (S_is_set[key]) { 13594 value = S[key] 13595 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13596 len += length(value) + length(field[++i]) 13597 substed = 1 13598 } else 13599 len += 1 + keylen 13600 } 13601 13602 print line 13603} 13604 13605_ACAWK 13606_ACEOF 13607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13608if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13609 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13610else 13611 cat 13612fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 13613 || as_fn_error "could not setup config files machinery" "$LINENO" 5 13614_ACEOF 13615 13616# VPATH may cause trouble with some makes, so we remove $(srcdir), 13617# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 13618# trailing colons and then remove the whole line if VPATH becomes empty 13619# (actually we leave an empty line to preserve line numbers). 13620if test "x$srcdir" = x.; then 13621 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 13622s/:*\$(srcdir):*/:/ 13623s/:*\${srcdir}:*/:/ 13624s/:*@srcdir@:*/:/ 13625s/^\([^=]*=[ ]*\):*/\1/ 13626s/:*$// 13627s/^[^=]*=[ ]*$// 13628}' 13629fi 13630 13631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13632fi # test -n "$CONFIG_FILES" 13633 13634# Set up the scripts for CONFIG_HEADERS section. 13635# No need to generate them if there are no CONFIG_HEADERS. 13636# This happens for instance with `./config.status Makefile'. 13637if test -n "$CONFIG_HEADERS"; then 13638cat >"$tmp/defines.awk" <<\_ACAWK || 13639BEGIN { 13640_ACEOF 13641 13642# Transform confdefs.h into an awk script `defines.awk', embedded as 13643# here-document in config.status, that substitutes the proper values into 13644# config.h.in to produce config.h. 13645 13646# Create a delimiter string that does not exist in confdefs.h, to ease 13647# handling of long lines. 13648ac_delim='%!_!# ' 13649for ac_last_try in false false :; do 13650 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 13651 if test -z "$ac_t"; then 13652 break 13653 elif $ac_last_try; then 13654 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 13655 else 13656 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13657 fi 13658done 13659 13660# For the awk script, D is an array of macro values keyed by name, 13661# likewise P contains macro parameters if any. Preserve backslash 13662# newline sequences. 13663 13664ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13665sed -n ' 13666s/.\{148\}/&'"$ac_delim"'/g 13667t rset 13668:rset 13669s/^[ ]*#[ ]*define[ ][ ]*/ / 13670t def 13671d 13672:def 13673s/\\$// 13674t bsnl 13675s/["\\]/\\&/g 13676s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13677D["\1"]=" \3"/p 13678s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13679d 13680:bsnl 13681s/["\\]/\\&/g 13682s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13683D["\1"]=" \3\\\\\\n"\\/p 13684t cont 13685s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13686t cont 13687d 13688:cont 13689n 13690s/.\{148\}/&'"$ac_delim"'/g 13691t clear 13692:clear 13693s/\\$// 13694t bsnlc 13695s/["\\]/\\&/g; s/^/"/; s/$/"/p 13696d 13697:bsnlc 13698s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13699b cont 13700' <confdefs.h | sed ' 13701s/'"$ac_delim"'/"\\\ 13702"/g' >>$CONFIG_STATUS || ac_write_fail=1 13703 13704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13705 for (key in D) D_is_set[key] = 1 13706 FS = "" 13707} 13708/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13709 line = \$ 0 13710 split(line, arg, " ") 13711 if (arg[1] == "#") { 13712 defundef = arg[2] 13713 mac1 = arg[3] 13714 } else { 13715 defundef = substr(arg[1], 2) 13716 mac1 = arg[2] 13717 } 13718 split(mac1, mac2, "(") #) 13719 macro = mac2[1] 13720 prefix = substr(line, 1, index(line, defundef) - 1) 13721 if (D_is_set[macro]) { 13722 # Preserve the white space surrounding the "#". 13723 print prefix "define", macro P[macro] D[macro] 13724 next 13725 } else { 13726 # Replace #undef with comments. This is necessary, for example, 13727 # in the case of _POSIX_SOURCE, which is predefined and required 13728 # on some systems where configure will not decide to define it. 13729 if (defundef == "undef") { 13730 print "/*", prefix defundef, macro, "*/" 13731 next 13732 } 13733 } 13734} 13735{ print } 13736_ACAWK 13737_ACEOF 13738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13739 as_fn_error "could not setup config headers machinery" "$LINENO" 5 13740fi # test -n "$CONFIG_HEADERS" 13741 13742 13743eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13744shift 13745for ac_tag 13746do 13747 case $ac_tag in 13748 :[FHLC]) ac_mode=$ac_tag; continue;; 13749 esac 13750 case $ac_mode$ac_tag in 13751 :[FHL]*:*);; 13752 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 13753 :[FH]-) ac_tag=-:-;; 13754 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13755 esac 13756 ac_save_IFS=$IFS 13757 IFS=: 13758 set x $ac_tag 13759 IFS=$ac_save_IFS 13760 shift 13761 ac_file=$1 13762 shift 13763 13764 case $ac_mode in 13765 :L) ac_source=$1;; 13766 :[FH]) 13767 ac_file_inputs= 13768 for ac_f 13769 do 13770 case $ac_f in 13771 -) ac_f="$tmp/stdin";; 13772 *) # Look for the file first in the build tree, then in the source tree 13773 # (if the path is not absolute). The absolute path cannot be DOS-style, 13774 # because $ac_f cannot contain `:'. 13775 test -f "$ac_f" || 13776 case $ac_f in 13777 [\\/$]*) false;; 13778 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13779 esac || 13780 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13781 esac 13782 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13783 as_fn_append ac_file_inputs " '$ac_f'" 13784 done 13785 13786 # Let's still pretend it is `configure' which instantiates (i.e., don't 13787 # use $as_me), people would be surprised to read: 13788 # /* config.h. Generated by config.status. */ 13789 configure_input='Generated from '` 13790 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13791 `' by configure.' 13792 if test x"$ac_file" != x-; then 13793 configure_input="$ac_file. $configure_input" 13794 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13795$as_echo "$as_me: creating $ac_file" >&6;} 13796 fi 13797 # Neutralize special characters interpreted by sed in replacement strings. 13798 case $configure_input in #( 13799 *\&* | *\|* | *\\* ) 13800 ac_sed_conf_input=`$as_echo "$configure_input" | 13801 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13802 *) ac_sed_conf_input=$configure_input;; 13803 esac 13804 13805 case $ac_tag in 13806 *:-:* | *:-) cat >"$tmp/stdin" \ 13807 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 13808 esac 13809 ;; 13810 esac 13811 13812 ac_dir=`$as_dirname -- "$ac_file" || 13813$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13814 X"$ac_file" : 'X\(//\)[^/]' \| \ 13815 X"$ac_file" : 'X\(//\)$' \| \ 13816 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13817$as_echo X"$ac_file" | 13818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13819 s//\1/ 13820 q 13821 } 13822 /^X\(\/\/\)[^/].*/{ 13823 s//\1/ 13824 q 13825 } 13826 /^X\(\/\/\)$/{ 13827 s//\1/ 13828 q 13829 } 13830 /^X\(\/\).*/{ 13831 s//\1/ 13832 q 13833 } 13834 s/.*/./; q'` 13835 as_dir="$ac_dir"; as_fn_mkdir_p 13836 ac_builddir=. 13837 13838case "$ac_dir" in 13839.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13840*) 13841 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13842 # A ".." for each directory in $ac_dir_suffix. 13843 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13844 case $ac_top_builddir_sub in 13845 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13846 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13847 esac ;; 13848esac 13849ac_abs_top_builddir=$ac_pwd 13850ac_abs_builddir=$ac_pwd$ac_dir_suffix 13851# for backward compatibility: 13852ac_top_builddir=$ac_top_build_prefix 13853 13854case $srcdir in 13855 .) # We are building in place. 13856 ac_srcdir=. 13857 ac_top_srcdir=$ac_top_builddir_sub 13858 ac_abs_top_srcdir=$ac_pwd ;; 13859 [\\/]* | ?:[\\/]* ) # Absolute name. 13860 ac_srcdir=$srcdir$ac_dir_suffix; 13861 ac_top_srcdir=$srcdir 13862 ac_abs_top_srcdir=$srcdir ;; 13863 *) # Relative name. 13864 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13865 ac_top_srcdir=$ac_top_build_prefix$srcdir 13866 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13867esac 13868ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13869 13870 13871 case $ac_mode in 13872 :F) 13873 # 13874 # CONFIG_FILE 13875 # 13876 13877 case $INSTALL in 13878 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13879 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13880 esac 13881 ac_MKDIR_P=$MKDIR_P 13882 case $MKDIR_P in 13883 [\\/$]* | ?:[\\/]* ) ;; 13884 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13885 esac 13886_ACEOF 13887 13888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13889# If the template does not know about datarootdir, expand it. 13890# FIXME: This hack should be removed a few years after 2.60. 13891ac_datarootdir_hack=; ac_datarootdir_seen= 13892ac_sed_dataroot=' 13893/datarootdir/ { 13894 p 13895 q 13896} 13897/@datadir@/p 13898/@docdir@/p 13899/@infodir@/p 13900/@localedir@/p 13901/@mandir@/p' 13902case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13903*datarootdir*) ac_datarootdir_seen=yes;; 13904*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13906$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13907_ACEOF 13908cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13909 ac_datarootdir_hack=' 13910 s&@datadir@&$datadir&g 13911 s&@docdir@&$docdir&g 13912 s&@infodir@&$infodir&g 13913 s&@localedir@&$localedir&g 13914 s&@mandir@&$mandir&g 13915 s&\\\${datarootdir}&$datarootdir&g' ;; 13916esac 13917_ACEOF 13918 13919# Neutralize VPATH when `$srcdir' = `.'. 13920# Shell code in configure.ac might set extrasub. 13921# FIXME: do we really want to maintain this feature? 13922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13923ac_sed_extra="$ac_vpsub 13924$extrasub 13925_ACEOF 13926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13927:t 13928/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13929s|@configure_input@|$ac_sed_conf_input|;t t 13930s&@top_builddir@&$ac_top_builddir_sub&;t t 13931s&@top_build_prefix@&$ac_top_build_prefix&;t t 13932s&@srcdir@&$ac_srcdir&;t t 13933s&@abs_srcdir@&$ac_abs_srcdir&;t t 13934s&@top_srcdir@&$ac_top_srcdir&;t t 13935s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13936s&@builddir@&$ac_builddir&;t t 13937s&@abs_builddir@&$ac_abs_builddir&;t t 13938s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13939s&@INSTALL@&$ac_INSTALL&;t t 13940s&@MKDIR_P@&$ac_MKDIR_P&;t t 13941$ac_datarootdir_hack 13942" 13943eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 13944 || as_fn_error "could not create $ac_file" "$LINENO" 5 13945 13946test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13947 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13948 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13950which seems to be undefined. Please make sure it is defined." >&5 13951$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13952which seems to be undefined. Please make sure it is defined." >&2;} 13953 13954 rm -f "$tmp/stdin" 13955 case $ac_file in 13956 -) cat "$tmp/out" && rm -f "$tmp/out";; 13957 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 13958 esac \ 13959 || as_fn_error "could not create $ac_file" "$LINENO" 5 13960 ;; 13961 :H) 13962 # 13963 # CONFIG_HEADER 13964 # 13965 if test x"$ac_file" != x-; then 13966 { 13967 $as_echo "/* $configure_input */" \ 13968 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 13969 } >"$tmp/config.h" \ 13970 || as_fn_error "could not create $ac_file" "$LINENO" 5 13971 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 13972 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13973$as_echo "$as_me: $ac_file is unchanged" >&6;} 13974 else 13975 rm -f "$ac_file" 13976 mv "$tmp/config.h" "$ac_file" \ 13977 || as_fn_error "could not create $ac_file" "$LINENO" 5 13978 fi 13979 else 13980 $as_echo "/* $configure_input */" \ 13981 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 13982 || as_fn_error "could not create -" "$LINENO" 5 13983 fi 13984# Compute "$ac_file"'s index in $config_headers. 13985_am_arg="$ac_file" 13986_am_stamp_count=1 13987for _am_header in $config_headers :; do 13988 case $_am_header in 13989 $_am_arg | $_am_arg:* ) 13990 break ;; 13991 * ) 13992 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13993 esac 13994done 13995echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13996$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13997 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13998 X"$_am_arg" : 'X\(//\)$' \| \ 13999 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14000$as_echo X"$_am_arg" | 14001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14002 s//\1/ 14003 q 14004 } 14005 /^X\(\/\/\)[^/].*/{ 14006 s//\1/ 14007 q 14008 } 14009 /^X\(\/\/\)$/{ 14010 s//\1/ 14011 q 14012 } 14013 /^X\(\/\).*/{ 14014 s//\1/ 14015 q 14016 } 14017 s/.*/./; q'`/stamp-h$_am_stamp_count 14018 ;; 14019 14020 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14021$as_echo "$as_me: executing $ac_file commands" >&6;} 14022 ;; 14023 esac 14024 14025 14026 case $ac_file$ac_mode in 14027 "libtool":C) 14028 14029 # See if we are running on zsh, and set the options which allow our 14030 # commands through without removal of \ escapes. 14031 if test -n "${ZSH_VERSION+set}" ; then 14032 setopt NO_GLOB_SUBST 14033 fi 14034 14035 cfgfile="${ofile}T" 14036 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14037 $RM "$cfgfile" 14038 14039 cat <<_LT_EOF >> "$cfgfile" 14040#! $SHELL 14041 14042# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14043# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14044# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14045# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14046# 14047# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14048# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 14049# Written by Gordon Matzigkeit, 1996 14050# 14051# This file is part of GNU Libtool. 14052# 14053# GNU Libtool is free software; you can redistribute it and/or 14054# modify it under the terms of the GNU General Public License as 14055# published by the Free Software Foundation; either version 2 of 14056# the License, or (at your option) any later version. 14057# 14058# As a special exception to the GNU General Public License, 14059# if you distribute this file as part of a program or library that 14060# is built using GNU Libtool, you may include this file under the 14061# same distribution terms that you use for the rest of that program. 14062# 14063# GNU Libtool is distributed in the hope that it will be useful, 14064# but WITHOUT ANY WARRANTY; without even the implied warranty of 14065# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14066# GNU General Public License for more details. 14067# 14068# You should have received a copy of the GNU General Public License 14069# along with GNU Libtool; see the file COPYING. If not, a copy 14070# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14071# obtained by writing to the Free Software Foundation, Inc., 14072# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14073 14074 14075# The names of the tagged configurations supported by this script. 14076available_tags="" 14077 14078# ### BEGIN LIBTOOL CONFIG 14079 14080# Which release of libtool.m4 was used? 14081macro_version=$macro_version 14082macro_revision=$macro_revision 14083 14084# Whether or not to build shared libraries. 14085build_libtool_libs=$enable_shared 14086 14087# Whether or not to build static libraries. 14088build_old_libs=$enable_static 14089 14090# What type of objects to build. 14091pic_mode=$pic_mode 14092 14093# Whether or not to optimize for fast installation. 14094fast_install=$enable_fast_install 14095 14096# Shell to use when invoking shell scripts. 14097SHELL=$lt_SHELL 14098 14099# An echo program that protects backslashes. 14100ECHO=$lt_ECHO 14101 14102# The host system. 14103host_alias=$host_alias 14104host=$host 14105host_os=$host_os 14106 14107# The build system. 14108build_alias=$build_alias 14109build=$build 14110build_os=$build_os 14111 14112# A sed program that does not truncate output. 14113SED=$lt_SED 14114 14115# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14116Xsed="\$SED -e 1s/^X//" 14117 14118# A grep program that handles long lines. 14119GREP=$lt_GREP 14120 14121# An ERE matcher. 14122EGREP=$lt_EGREP 14123 14124# A literal string matcher. 14125FGREP=$lt_FGREP 14126 14127# A BSD- or MS-compatible name lister. 14128NM=$lt_NM 14129 14130# Whether we need soft or hard links. 14131LN_S=$lt_LN_S 14132 14133# What is the maximum length of a command? 14134max_cmd_len=$max_cmd_len 14135 14136# Object file suffix (normally "o"). 14137objext=$ac_objext 14138 14139# Executable file suffix (normally ""). 14140exeext=$exeext 14141 14142# whether the shell understands "unset". 14143lt_unset=$lt_unset 14144 14145# turn spaces into newlines. 14146SP2NL=$lt_lt_SP2NL 14147 14148# turn newlines into spaces. 14149NL2SP=$lt_lt_NL2SP 14150 14151# An object symbol dumper. 14152OBJDUMP=$lt_OBJDUMP 14153 14154# Method to check whether dependent libraries are shared objects. 14155deplibs_check_method=$lt_deplibs_check_method 14156 14157# Command to use when deplibs_check_method == "file_magic". 14158file_magic_cmd=$lt_file_magic_cmd 14159 14160# The archiver. 14161AR=$lt_AR 14162AR_FLAGS=$lt_AR_FLAGS 14163 14164# A symbol stripping program. 14165STRIP=$lt_STRIP 14166 14167# Commands used to install an old-style archive. 14168RANLIB=$lt_RANLIB 14169old_postinstall_cmds=$lt_old_postinstall_cmds 14170old_postuninstall_cmds=$lt_old_postuninstall_cmds 14171 14172# Whether to use a lock for old archive extraction. 14173lock_old_archive_extraction=$lock_old_archive_extraction 14174 14175# A C compiler. 14176LTCC=$lt_CC 14177 14178# LTCC compiler flags. 14179LTCFLAGS=$lt_CFLAGS 14180 14181# Take the output of nm and produce a listing of raw symbols and C names. 14182global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14183 14184# Transform the output of nm in a proper C declaration. 14185global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14186 14187# Transform the output of nm in a C name address pair. 14188global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14189 14190# Transform the output of nm in a C name address pair when lib prefix is needed. 14191global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14192 14193# The name of the directory that contains temporary libtool files. 14194objdir=$objdir 14195 14196# Used to examine libraries when file_magic_cmd begins with "file". 14197MAGIC_CMD=$MAGIC_CMD 14198 14199# Must we lock files when doing compilation? 14200need_locks=$lt_need_locks 14201 14202# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14203DSYMUTIL=$lt_DSYMUTIL 14204 14205# Tool to change global to local symbols on Mac OS X. 14206NMEDIT=$lt_NMEDIT 14207 14208# Tool to manipulate fat objects and archives on Mac OS X. 14209LIPO=$lt_LIPO 14210 14211# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14212OTOOL=$lt_OTOOL 14213 14214# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14215OTOOL64=$lt_OTOOL64 14216 14217# Old archive suffix (normally "a"). 14218libext=$libext 14219 14220# Shared library suffix (normally ".so"). 14221shrext_cmds=$lt_shrext_cmds 14222 14223# The commands to extract the exported symbol list from a shared archive. 14224extract_expsyms_cmds=$lt_extract_expsyms_cmds 14225 14226# Variables whose values should be saved in libtool wrapper scripts and 14227# restored at link time. 14228variables_saved_for_relink=$lt_variables_saved_for_relink 14229 14230# Do we need the "lib" prefix for modules? 14231need_lib_prefix=$need_lib_prefix 14232 14233# Do we need a version for libraries? 14234need_version=$need_version 14235 14236# Library versioning type. 14237version_type=$version_type 14238 14239# Shared library runtime path variable. 14240runpath_var=$runpath_var 14241 14242# Shared library path variable. 14243shlibpath_var=$shlibpath_var 14244 14245# Is shlibpath searched before the hard-coded library search path? 14246shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14247 14248# Format of library name prefix. 14249libname_spec=$lt_libname_spec 14250 14251# List of archive names. First name is the real one, the rest are links. 14252# The last name is the one that the linker finds with -lNAME 14253library_names_spec=$lt_library_names_spec 14254 14255# The coded name of the library, if different from the real name. 14256soname_spec=$lt_soname_spec 14257 14258# Permission mode override for installation of shared libraries. 14259install_override_mode=$lt_install_override_mode 14260 14261# Command to use after installation of a shared archive. 14262postinstall_cmds=$lt_postinstall_cmds 14263 14264# Command to use after uninstallation of a shared archive. 14265postuninstall_cmds=$lt_postuninstall_cmds 14266 14267# Commands used to finish a libtool library installation in a directory. 14268finish_cmds=$lt_finish_cmds 14269 14270# As "finish_cmds", except a single script fragment to be evaled but 14271# not shown. 14272finish_eval=$lt_finish_eval 14273 14274# Whether we should hardcode library paths into libraries. 14275hardcode_into_libs=$hardcode_into_libs 14276 14277# Compile-time system search path for libraries. 14278sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14279 14280# Run-time system search path for libraries. 14281sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14282 14283# Whether dlopen is supported. 14284dlopen_support=$enable_dlopen 14285 14286# Whether dlopen of programs is supported. 14287dlopen_self=$enable_dlopen_self 14288 14289# Whether dlopen of statically linked programs is supported. 14290dlopen_self_static=$enable_dlopen_self_static 14291 14292# Commands to strip libraries. 14293old_striplib=$lt_old_striplib 14294striplib=$lt_striplib 14295 14296 14297# The linker used to build libraries. 14298LD=$lt_LD 14299 14300# How to create reloadable object files. 14301reload_flag=$lt_reload_flag 14302reload_cmds=$lt_reload_cmds 14303 14304# Commands used to build an old-style archive. 14305old_archive_cmds=$lt_old_archive_cmds 14306 14307# A language specific compiler. 14308CC=$lt_compiler 14309 14310# Is the compiler the GNU compiler? 14311with_gcc=$GCC 14312 14313# Compiler flag to turn off builtin functions. 14314no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14315 14316# How to pass a linker flag through the compiler. 14317wl=$lt_lt_prog_compiler_wl 14318 14319# Additional compiler flags for building library objects. 14320pic_flag=$lt_lt_prog_compiler_pic 14321 14322# Compiler flag to prevent dynamic linking. 14323link_static_flag=$lt_lt_prog_compiler_static 14324 14325# Does compiler simultaneously support -c and -o options? 14326compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14327 14328# Whether or not to add -lc for building shared libraries. 14329build_libtool_need_lc=$archive_cmds_need_lc 14330 14331# Whether or not to disallow shared libs when runtime libs are static. 14332allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14333 14334# Compiler flag to allow reflexive dlopens. 14335export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14336 14337# Compiler flag to generate shared objects directly from archives. 14338whole_archive_flag_spec=$lt_whole_archive_flag_spec 14339 14340# Whether the compiler copes with passing no objects directly. 14341compiler_needs_object=$lt_compiler_needs_object 14342 14343# Create an old-style archive from a shared archive. 14344old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14345 14346# Create a temporary old-style archive to link instead of a shared archive. 14347old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14348 14349# Commands used to build a shared archive. 14350archive_cmds=$lt_archive_cmds 14351archive_expsym_cmds=$lt_archive_expsym_cmds 14352 14353# Commands used to build a loadable module if different from building 14354# a shared archive. 14355module_cmds=$lt_module_cmds 14356module_expsym_cmds=$lt_module_expsym_cmds 14357 14358# Whether we are building with GNU ld or not. 14359with_gnu_ld=$lt_with_gnu_ld 14360 14361# Flag that allows shared libraries with undefined symbols to be built. 14362allow_undefined_flag=$lt_allow_undefined_flag 14363 14364# Flag that enforces no undefined symbols. 14365no_undefined_flag=$lt_no_undefined_flag 14366 14367# Flag to hardcode \$libdir into a binary during linking. 14368# This must work even if \$libdir does not exist 14369hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14370 14371# If ld is used when linking, flag to hardcode \$libdir into a binary 14372# during linking. This must work even if \$libdir does not exist. 14373hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14374 14375# Whether we need a single "-rpath" flag with a separated argument. 14376hardcode_libdir_separator=$lt_hardcode_libdir_separator 14377 14378# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14379# DIR into the resulting binary. 14380hardcode_direct=$hardcode_direct 14381 14382# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14383# DIR into the resulting binary and the resulting library dependency is 14384# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14385# library is relocated. 14386hardcode_direct_absolute=$hardcode_direct_absolute 14387 14388# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14389# into the resulting binary. 14390hardcode_minus_L=$hardcode_minus_L 14391 14392# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14393# into the resulting binary. 14394hardcode_shlibpath_var=$hardcode_shlibpath_var 14395 14396# Set to "yes" if building a shared library automatically hardcodes DIR 14397# into the library and all subsequent libraries and executables linked 14398# against it. 14399hardcode_automatic=$hardcode_automatic 14400 14401# Set to yes if linker adds runtime paths of dependent libraries 14402# to runtime path list. 14403inherit_rpath=$inherit_rpath 14404 14405# Whether libtool must link a program against all its dependency libraries. 14406link_all_deplibs=$link_all_deplibs 14407 14408# Fix the shell variable \$srcfile for the compiler. 14409fix_srcfile_path=$lt_fix_srcfile_path 14410 14411# Set to "yes" if exported symbols are required. 14412always_export_symbols=$always_export_symbols 14413 14414# The commands to list exported symbols. 14415export_symbols_cmds=$lt_export_symbols_cmds 14416 14417# Symbols that should not be listed in the preloaded symbols. 14418exclude_expsyms=$lt_exclude_expsyms 14419 14420# Symbols that must always be exported. 14421include_expsyms=$lt_include_expsyms 14422 14423# Commands necessary for linking programs (against libraries) with templates. 14424prelink_cmds=$lt_prelink_cmds 14425 14426# Specify filename containing input files. 14427file_list_spec=$lt_file_list_spec 14428 14429# How to hardcode a shared library path into an executable. 14430hardcode_action=$hardcode_action 14431 14432# ### END LIBTOOL CONFIG 14433 14434_LT_EOF 14435 14436 case $host_os in 14437 aix3*) 14438 cat <<\_LT_EOF >> "$cfgfile" 14439# AIX sometimes has problems with the GCC collect2 program. For some 14440# reason, if we set the COLLECT_NAMES environment variable, the problems 14441# vanish in a puff of smoke. 14442if test "X${COLLECT_NAMES+set}" != Xset; then 14443 COLLECT_NAMES= 14444 export COLLECT_NAMES 14445fi 14446_LT_EOF 14447 ;; 14448 esac 14449 14450 14451ltmain="$ac_aux_dir/ltmain.sh" 14452 14453 14454 # We use sed instead of cat because bash on DJGPP gets confused if 14455 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14456 # text mode, it properly converts lines to CR/LF. This bash problem 14457 # is reportedly fixed, but why not run on old versions too? 14458 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 14459 || (rm -f "$cfgfile"; exit 1) 14460 14461 case $xsi_shell in 14462 yes) 14463 cat << \_LT_EOF >> "$cfgfile" 14464 14465# func_dirname file append nondir_replacement 14466# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14467# otherwise set result to NONDIR_REPLACEMENT. 14468func_dirname () 14469{ 14470 case ${1} in 14471 */*) func_dirname_result="${1%/*}${2}" ;; 14472 * ) func_dirname_result="${3}" ;; 14473 esac 14474} 14475 14476# func_basename file 14477func_basename () 14478{ 14479 func_basename_result="${1##*/}" 14480} 14481 14482# func_dirname_and_basename file append nondir_replacement 14483# perform func_basename and func_dirname in a single function 14484# call: 14485# dirname: Compute the dirname of FILE. If nonempty, 14486# add APPEND to the result, otherwise set result 14487# to NONDIR_REPLACEMENT. 14488# value returned in "$func_dirname_result" 14489# basename: Compute filename of FILE. 14490# value retuned in "$func_basename_result" 14491# Implementation must be kept synchronized with func_dirname 14492# and func_basename. For efficiency, we do not delegate to 14493# those functions but instead duplicate the functionality here. 14494func_dirname_and_basename () 14495{ 14496 case ${1} in 14497 */*) func_dirname_result="${1%/*}${2}" ;; 14498 * ) func_dirname_result="${3}" ;; 14499 esac 14500 func_basename_result="${1##*/}" 14501} 14502 14503# func_stripname prefix suffix name 14504# strip PREFIX and SUFFIX off of NAME. 14505# PREFIX and SUFFIX must not contain globbing or regex special 14506# characters, hashes, percent signs, but SUFFIX may contain a leading 14507# dot (in which case that matches only a dot). 14508func_stripname () 14509{ 14510 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 14511 # positional parameters, so assign one to ordinary parameter first. 14512 func_stripname_result=${3} 14513 func_stripname_result=${func_stripname_result#"${1}"} 14514 func_stripname_result=${func_stripname_result%"${2}"} 14515} 14516 14517# func_opt_split 14518func_opt_split () 14519{ 14520 func_opt_split_opt=${1%%=*} 14521 func_opt_split_arg=${1#*=} 14522} 14523 14524# func_lo2o object 14525func_lo2o () 14526{ 14527 case ${1} in 14528 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 14529 *) func_lo2o_result=${1} ;; 14530 esac 14531} 14532 14533# func_xform libobj-or-source 14534func_xform () 14535{ 14536 func_xform_result=${1%.*}.lo 14537} 14538 14539# func_arith arithmetic-term... 14540func_arith () 14541{ 14542 func_arith_result=$(( $* )) 14543} 14544 14545# func_len string 14546# STRING may not start with a hyphen. 14547func_len () 14548{ 14549 func_len_result=${#1} 14550} 14551 14552_LT_EOF 14553 ;; 14554 *) # Bourne compatible functions. 14555 cat << \_LT_EOF >> "$cfgfile" 14556 14557# func_dirname file append nondir_replacement 14558# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14559# otherwise set result to NONDIR_REPLACEMENT. 14560func_dirname () 14561{ 14562 # Extract subdirectory from the argument. 14563 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 14564 if test "X$func_dirname_result" = "X${1}"; then 14565 func_dirname_result="${3}" 14566 else 14567 func_dirname_result="$func_dirname_result${2}" 14568 fi 14569} 14570 14571# func_basename file 14572func_basename () 14573{ 14574 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 14575} 14576 14577 14578# func_stripname prefix suffix name 14579# strip PREFIX and SUFFIX off of NAME. 14580# PREFIX and SUFFIX must not contain globbing or regex special 14581# characters, hashes, percent signs, but SUFFIX may contain a leading 14582# dot (in which case that matches only a dot). 14583# func_strip_suffix prefix name 14584func_stripname () 14585{ 14586 case ${2} in 14587 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 14588 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 14589 esac 14590} 14591 14592# sed scripts: 14593my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 14594my_sed_long_arg='1s/^-[^=]*=//' 14595 14596# func_opt_split 14597func_opt_split () 14598{ 14599 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 14600 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 14601} 14602 14603# func_lo2o object 14604func_lo2o () 14605{ 14606 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 14607} 14608 14609# func_xform libobj-or-source 14610func_xform () 14611{ 14612 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 14613} 14614 14615# func_arith arithmetic-term... 14616func_arith () 14617{ 14618 func_arith_result=`expr "$@"` 14619} 14620 14621# func_len string 14622# STRING may not start with a hyphen. 14623func_len () 14624{ 14625 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 14626} 14627 14628_LT_EOF 14629esac 14630 14631case $lt_shell_append in 14632 yes) 14633 cat << \_LT_EOF >> "$cfgfile" 14634 14635# func_append var value 14636# Append VALUE to the end of shell variable VAR. 14637func_append () 14638{ 14639 eval "$1+=\$2" 14640} 14641_LT_EOF 14642 ;; 14643 *) 14644 cat << \_LT_EOF >> "$cfgfile" 14645 14646# func_append var value 14647# Append VALUE to the end of shell variable VAR. 14648func_append () 14649{ 14650 eval "$1=\$$1\$2" 14651} 14652 14653_LT_EOF 14654 ;; 14655 esac 14656 14657 14658 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 14659 || (rm -f "$cfgfile"; exit 1) 14660 14661 mv -f "$cfgfile" "$ofile" || 14662 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14663 chmod +x "$ofile" 14664 14665 ;; 14666 "default-1":C) 14667# Only add multilib support code if we just rebuilt the top-level 14668# Makefile. 14669case " $CONFIG_FILES " in 14670 *" Makefile "*) 14671 ac_file=Makefile . ${multi_basedir}/config-ml.in 14672 ;; 14673esac ;; 14674 "gstdint.h":C) 14675if test "$GCC" = yes; then 14676 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h 14677else 14678 echo "/* generated for $CC */" > tmp-stdint.h 14679fi 14680 14681sed 's/^ *//' >> tmp-stdint.h <<EOF 14682 14683 #ifndef GCC_GENERATED_STDINT_H 14684 #define GCC_GENERATED_STDINT_H 1 14685 14686 #include <sys/types.h> 14687EOF 14688 14689if test "$acx_cv_header_stdint" != stdint.h; then 14690 echo "#include <stddef.h>" >> tmp-stdint.h 14691fi 14692if test "$acx_cv_header_stdint" != stddef.h; then 14693 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h 14694fi 14695 14696sed 's/^ *//' >> tmp-stdint.h <<EOF 14697 /* glibc uses these symbols as guards to prevent redefinitions. */ 14698 #ifdef __int8_t_defined 14699 #define _INT8_T 14700 #define _INT16_T 14701 #define _INT32_T 14702 #endif 14703 #ifdef __uint32_t_defined 14704 #define _UINT32_T 14705 #endif 14706 14707EOF 14708 14709# ----------------- done header, emit basic int types ------------- 14710if test "$acx_cv_header_stdint" = stddef.h; then 14711 sed 's/^ *//' >> tmp-stdint.h <<EOF 14712 14713 #ifndef _UINT8_T 14714 #define _UINT8_T 14715 #ifndef __uint8_t_defined 14716 #define __uint8_t_defined 14717 #ifndef uint8_t 14718 typedef unsigned $acx_cv_type_int8_t uint8_t; 14719 #endif 14720 #endif 14721 #endif 14722 14723 #ifndef _UINT16_T 14724 #define _UINT16_T 14725 #ifndef __uint16_t_defined 14726 #define __uint16_t_defined 14727 #ifndef uint16_t 14728 typedef unsigned $acx_cv_type_int16_t uint16_t; 14729 #endif 14730 #endif 14731 #endif 14732 14733 #ifndef _UINT32_T 14734 #define _UINT32_T 14735 #ifndef __uint32_t_defined 14736 #define __uint32_t_defined 14737 #ifndef uint32_t 14738 typedef unsigned $acx_cv_type_int32_t uint32_t; 14739 #endif 14740 #endif 14741 #endif 14742 14743 #ifndef _INT8_T 14744 #define _INT8_T 14745 #ifndef __int8_t_defined 14746 #define __int8_t_defined 14747 #ifndef int8_t 14748 typedef $acx_cv_type_int8_t int8_t; 14749 #endif 14750 #endif 14751 #endif 14752 14753 #ifndef _INT16_T 14754 #define _INT16_T 14755 #ifndef __int16_t_defined 14756 #define __int16_t_defined 14757 #ifndef int16_t 14758 typedef $acx_cv_type_int16_t int16_t; 14759 #endif 14760 #endif 14761 #endif 14762 14763 #ifndef _INT32_T 14764 #define _INT32_T 14765 #ifndef __int32_t_defined 14766 #define __int32_t_defined 14767 #ifndef int32_t 14768 typedef $acx_cv_type_int32_t int32_t; 14769 #endif 14770 #endif 14771 #endif 14772EOF 14773elif test "$ac_cv_type_u_int32_t" = yes; then 14774 sed 's/^ *//' >> tmp-stdint.h <<EOF 14775 14776 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ 14777 #ifndef _INT8_T 14778 #define _INT8_T 14779 #endif 14780 #ifndef _INT16_T 14781 #define _INT16_T 14782 #endif 14783 #ifndef _INT32_T 14784 #define _INT32_T 14785 #endif 14786 14787 #ifndef _UINT8_T 14788 #define _UINT8_T 14789 #ifndef __uint8_t_defined 14790 #define __uint8_t_defined 14791 #ifndef uint8_t 14792 typedef u_int8_t uint8_t; 14793 #endif 14794 #endif 14795 #endif 14796 14797 #ifndef _UINT16_T 14798 #define _UINT16_T 14799 #ifndef __uint16_t_defined 14800 #define __uint16_t_defined 14801 #ifndef uint16_t 14802 typedef u_int16_t uint16_t; 14803 #endif 14804 #endif 14805 #endif 14806 14807 #ifndef _UINT32_T 14808 #define _UINT32_T 14809 #ifndef __uint32_t_defined 14810 #define __uint32_t_defined 14811 #ifndef uint32_t 14812 typedef u_int32_t uint32_t; 14813 #endif 14814 #endif 14815 #endif 14816EOF 14817else 14818 sed 's/^ *//' >> tmp-stdint.h <<EOF 14819 14820 /* Some systems have guard macros to prevent redefinitions, define them. */ 14821 #ifndef _INT8_T 14822 #define _INT8_T 14823 #endif 14824 #ifndef _INT16_T 14825 #define _INT16_T 14826 #endif 14827 #ifndef _INT32_T 14828 #define _INT32_T 14829 #endif 14830 #ifndef _UINT8_T 14831 #define _UINT8_T 14832 #endif 14833 #ifndef _UINT16_T 14834 #define _UINT16_T 14835 #endif 14836 #ifndef _UINT32_T 14837 #define _UINT32_T 14838 #endif 14839EOF 14840fi 14841 14842# ------------- done basic int types, emit int64_t types ------------ 14843if test "$ac_cv_type_uint64_t" = yes; then 14844 sed 's/^ *//' >> tmp-stdint.h <<EOF 14845 14846 /* system headers have good uint64_t and int64_t */ 14847 #ifndef _INT64_T 14848 #define _INT64_T 14849 #endif 14850 #ifndef _UINT64_T 14851 #define _UINT64_T 14852 #endif 14853EOF 14854elif test "$ac_cv_type_u_int64_t" = yes; then 14855 sed 's/^ *//' >> tmp-stdint.h <<EOF 14856 14857 /* system headers have an u_int64_t (and int64_t) */ 14858 #ifndef _INT64_T 14859 #define _INT64_T 14860 #endif 14861 #ifndef _UINT64_T 14862 #define _UINT64_T 14863 #ifndef __uint64_t_defined 14864 #define __uint64_t_defined 14865 #ifndef uint64_t 14866 typedef u_int64_t uint64_t; 14867 #endif 14868 #endif 14869 #endif 14870EOF 14871elif test -n "$acx_cv_type_int64_t"; then 14872 sed 's/^ *//' >> tmp-stdint.h <<EOF 14873 14874 /* architecture has a 64-bit type, $acx_cv_type_int64_t */ 14875 #ifndef _INT64_T 14876 #define _INT64_T 14877 #ifndef int64_t 14878 typedef $acx_cv_type_int64_t int64_t; 14879 #endif 14880 #endif 14881 #ifndef _UINT64_T 14882 #define _UINT64_T 14883 #ifndef __uint64_t_defined 14884 #define __uint64_t_defined 14885 #ifndef uint64_t 14886 typedef unsigned $acx_cv_type_int64_t uint64_t; 14887 #endif 14888 #endif 14889 #endif 14890EOF 14891else 14892 sed 's/^ *//' >> tmp-stdint.h <<EOF 14893 14894 /* some common heuristics for int64_t, using compiler-specific tests */ 14895 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L 14896 #ifndef _INT64_T 14897 #define _INT64_T 14898 #ifndef __int64_t_defined 14899 #ifndef int64_t 14900 typedef long long int64_t; 14901 #endif 14902 #endif 14903 #endif 14904 #ifndef _UINT64_T 14905 #define _UINT64_T 14906 #ifndef uint64_t 14907 typedef unsigned long long uint64_t; 14908 #endif 14909 #endif 14910 14911 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 14912 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and 14913 does not implement __extension__. But that compiler doesn't define 14914 __GNUC_MINOR__. */ 14915 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) 14916 # define __extension__ 14917 # endif 14918 14919 # ifndef _INT64_T 14920 # define _INT64_T 14921 # ifndef int64_t 14922 __extension__ typedef long long int64_t; 14923 # endif 14924 # endif 14925 # ifndef _UINT64_T 14926 # define _UINT64_T 14927 # ifndef uint64_t 14928 __extension__ typedef unsigned long long uint64_t; 14929 # endif 14930 # endif 14931 14932 #elif !defined __STRICT_ANSI__ 14933 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ 14934 14935 # ifndef _INT64_T 14936 # define _INT64_T 14937 # ifndef int64_t 14938 typedef __int64 int64_t; 14939 # endif 14940 # endif 14941 # ifndef _UINT64_T 14942 # define _UINT64_T 14943 # ifndef uint64_t 14944 typedef unsigned __int64 uint64_t; 14945 # endif 14946 # endif 14947 # endif /* compiler */ 14948 14949 #endif /* ANSI version */ 14950EOF 14951fi 14952 14953# ------------- done int64_t types, emit intptr types ------------ 14954if test "$ac_cv_type_uintptr_t" != yes; then 14955 sed 's/^ *//' >> tmp-stdint.h <<EOF 14956 14957 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ 14958 #ifndef __uintptr_t_defined 14959 #ifndef uintptr_t 14960 typedef u$acx_cv_type_intptr_t uintptr_t; 14961 #endif 14962 #endif 14963 #ifndef __intptr_t_defined 14964 #ifndef intptr_t 14965 typedef $acx_cv_type_intptr_t intptr_t; 14966 #endif 14967 #endif 14968EOF 14969fi 14970 14971# ------------- done intptr types, emit int_least types ------------ 14972if test "$ac_cv_type_int_least32_t" != yes; then 14973 sed 's/^ *//' >> tmp-stdint.h <<EOF 14974 14975 /* Define int_least types */ 14976 typedef int8_t int_least8_t; 14977 typedef int16_t int_least16_t; 14978 typedef int32_t int_least32_t; 14979 #ifdef _INT64_T 14980 typedef int64_t int_least64_t; 14981 #endif 14982 14983 typedef uint8_t uint_least8_t; 14984 typedef uint16_t uint_least16_t; 14985 typedef uint32_t uint_least32_t; 14986 #ifdef _UINT64_T 14987 typedef uint64_t uint_least64_t; 14988 #endif 14989EOF 14990fi 14991 14992# ------------- done intptr types, emit int_fast types ------------ 14993if test "$ac_cv_type_int_fast32_t" != yes; then 14994 sed 's/^ *//' >> tmp-stdint.h <<EOF 14995 14996 /* Define int_fast types. short is often slow */ 14997 typedef int8_t int_fast8_t; 14998 typedef int int_fast16_t; 14999 typedef int32_t int_fast32_t; 15000 #ifdef _INT64_T 15001 typedef int64_t int_fast64_t; 15002 #endif 15003 15004 typedef uint8_t uint_fast8_t; 15005 typedef unsigned int uint_fast16_t; 15006 typedef uint32_t uint_fast32_t; 15007 #ifdef _UINT64_T 15008 typedef uint64_t uint_fast64_t; 15009 #endif 15010EOF 15011fi 15012 15013if test "$ac_cv_type_uintmax_t" != yes; then 15014 sed 's/^ *//' >> tmp-stdint.h <<EOF 15015 15016 /* Define intmax based on what we found */ 15017 #ifndef intmax_t 15018 #ifdef _INT64_T 15019 typedef int64_t intmax_t; 15020 #else 15021 typedef long intmax_t; 15022 #endif 15023 #endif 15024 #ifndef uintmax_t 15025 #ifdef _UINT64_T 15026 typedef uint64_t uintmax_t; 15027 #else 15028 typedef unsigned long uintmax_t; 15029 #endif 15030 #endif 15031EOF 15032fi 15033 15034sed 's/^ *//' >> tmp-stdint.h <<EOF 15035 15036 #endif /* GCC_GENERATED_STDINT_H */ 15037EOF 15038 15039if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then 15040 rm -f tmp-stdint.h 15041else 15042 mv -f tmp-stdint.h gstdint.h 15043fi 15044 15045 ;; 15046 "default":C) if test -n "$CONFIG_FILES"; then 15047 if test -n "${with_target_subdir}"; then 15048 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so 15049 # that multilib installs will end up installed in the correct place. 15050 # The testsuite needs it for multilib-aware ABI baseline files. 15051 # To work around this not being passed down from config-ml.in -> 15052 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually 15053 # append it here. Only modify Makefiles that have just been created. 15054 # 15055 # Also, get rid of this simulated-VPATH thing that automake does. 15056 cat > vpsed << \_EOF 15057 s!`test -f '$<' || echo '$(srcdir)/'`!! 15058_EOF 15059 for i in $SUBDIRS; do 15060 case $CONFIG_FILES in 15061 *${i}/Makefile*) 15062 #echo "Adding MULTISUBDIR to $i/Makefile" 15063 sed -f vpsed $i/Makefile > tmp 15064 grep '^MULTISUBDIR =' Makefile >> tmp 15065 mv tmp $i/Makefile 15066 ;; 15067 esac 15068 done 15069 rm vpsed 15070 fi 15071 fi 15072 ;; 15073 15074 esac 15075done # for ac_tag 15076 15077 15078as_fn_exit 0 15079_ACEOF 15080ac_clean_files=$ac_clean_files_save 15081 15082test $ac_write_fail = 0 || 15083 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 15084 15085 15086# configure is writing to config.log, and then calls config.status. 15087# config.status does its own redirection, appending to config.log. 15088# Unfortunately, on DOS this fails, as config.log is still kept open 15089# by configure, so config.status won't be able to write to it; its 15090# output is simply discarded. So we exec the FD to /dev/null, 15091# effectively closing config.log, so it can be properly (re)opened and 15092# appended to by config.status. When coming back to configure, we 15093# need to make the FD available again. 15094if test "$no_create" != yes; then 15095 ac_cs_success=: 15096 ac_config_status_args= 15097 test "$silent" = yes && 15098 ac_config_status_args="$ac_config_status_args --quiet" 15099 exec 5>/dev/null 15100 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15101 exec 5>>config.log 15102 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15103 # would make configure fail if this is the last instruction. 15104 $ac_cs_success || as_fn_exit $? 15105fi 15106if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15108$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15109fi 15110 15111