1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.64 for MIC Offload Runtime Library 1.0. 4# 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 7# Foundation, Inc. 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90case $0 in #(( 91 *[\\/]* ) as_myself=$0 ;; 92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 93for as_dir in $PATH 94do 95 IFS=$as_save_IFS 96 test -z "$as_dir" && as_dir=. 97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 98 done 99IFS=$as_save_IFS 100 101 ;; 102esac 103# We did not find ourselves, most probably we were run as `sh COMMAND' 104# in which case we are not to be found in the path. 105if test "x$as_myself" = x; then 106 as_myself=$0 107fi 108if test ! -f "$as_myself"; then 109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 110 exit 1 111fi 112 113# Unset variables that we do not need and which cause bugs (e.g. in 114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 115# suppresses any "Segmentation fault" message there. '((' could 116# trigger a bug in pdksh 5.2.14. 117for as_var in BASH_ENV ENV MAIL MAILPATH 118do eval test x\${$as_var+set} = xset \ 119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 120done 121PS1='$ ' 122PS2='> ' 123PS4='+ ' 124 125# NLS nuisances. 126LC_ALL=C 127export LC_ALL 128LANGUAGE=C 129export LANGUAGE 130 131# CDPATH. 132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 133 134if test "x$CONFIG_SHELL" = x; then 135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 136 emulate sh 137 NULLCMD=: 138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 139 # is contrary to our usage. Disable this feature. 140 alias -g '\${1+\"\$@\"}'='\"\$@\"' 141 setopt NO_GLOB_SUBST 142else 143 case \`(set -o) 2>/dev/null\` in #( 144 *posix*) : 145 set -o posix ;; #( 146 *) : 147 ;; 148esac 149fi 150" 151 as_required="as_fn_return () { (exit \$1); } 152as_fn_success () { as_fn_return 0; } 153as_fn_failure () { as_fn_return 1; } 154as_fn_ret_success () { return 0; } 155as_fn_ret_failure () { return 1; } 156 157exitcode=0 158as_fn_success || { exitcode=1; echo as_fn_success failed.; } 159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 163 164else 165 exitcode=1; echo positional parameters were not saved. 166fi 167test x\$exitcode = x0 || exit 1" 168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 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='MIC Offload Runtime Library' 558PACKAGE_TARNAME='liboffloadmic' 559PACKAGE_VERSION='1.0' 560PACKAGE_STRING='MIC Offload Runtime Library 1.0' 561PACKAGE_BUGREPORT='' 562PACKAGE_URL='' 563 564enable_option_checking=no 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 605link_offloadmic_target 606link_offloadmic_host 607lt_cv_dlopen_libs 608toolexeclibdir 609toolexecdir 610CXXCPP 611OTOOL64 612OTOOL 613LIPO 614NMEDIT 615DSYMUTIL 616RANLIB 617AR 618OBJDUMP 619LN_S 620NM 621ac_ct_DUMPBIN 622DUMPBIN 623LD 624FGREP 625SED 626LIBTOOL 627LIBOFFLOADMIC_HOST_FALSE 628LIBOFFLOADMIC_HOST_TRUE 629EGREP 630GREP 631CPP 632ALLOCA 633subdirs 634multi_basedir 635am__fastdepCXX_FALSE 636am__fastdepCXX_TRUE 637CXXDEPMODE 638ac_ct_CXX 639CXXFLAGS 640CXX 641am__fastdepCC_FALSE 642am__fastdepCC_TRUE 643CCDEPMODE 644AMDEPBACKSLASH 645AMDEP_FALSE 646AMDEP_TRUE 647am__quote 648am__include 649DEPDIR 650OBJEXT 651EXEEXT 652ac_ct_CC 653CPPFLAGS 654LDFLAGS 655CFLAGS 656CC 657MAINT 658MAINTAINER_MODE_FALSE 659MAINTAINER_MODE_TRUE 660am__untar 661am__tar 662AMTAR 663am__leading_dot 664SET_MAKE 665AWK 666mkdir_p 667MKDIR_P 668INSTALL_STRIP_PROGRAM 669STRIP 670install_sh 671MAKEINFO 672AUTOHEADER 673AUTOMAKE 674AUTOCONF 675ACLOCAL 676VERSION 677PACKAGE 678CYGPATH_W 679am__isrc 680INSTALL_DATA 681INSTALL_SCRIPT 682INSTALL_PROGRAM 683target_os 684target_vendor 685target_cpu 686target 687host_os 688host_vendor 689host_cpu 690host 691build_os 692build_vendor 693build_cpu 694build 695target_alias 696host_alias 697build_alias 698LIBS 699ECHO_T 700ECHO_N 701ECHO_C 702DEFS 703mandir 704localedir 705libdir 706psdir 707pdfdir 708dvidir 709htmldir 710infodir 711docdir 712oldincludedir 713includedir 714localstatedir 715sharedstatedir 716sysconfdir 717datadir 718datarootdir 719libexecdir 720sbindir 721bindir 722program_transform_name 723prefix 724exec_prefix 725PACKAGE_URL 726PACKAGE_BUGREPORT 727PACKAGE_STRING 728PACKAGE_VERSION 729PACKAGE_TARNAME 730PACKAGE_NAME 731PATH_SEPARATOR 732SHELL' 733ac_subst_files='' 734ac_user_opts=' 735enable_option_checking 736enable_maintainer_mode 737enable_dependency_tracking 738enable_multilib 739enable_version_specific_runtime_libs 740enable_shared 741enable_static 742with_pic 743enable_fast_install 744with_gnu_ld 745enable_libtool_lock 746' 747 ac_precious_vars='build_alias 748host_alias 749target_alias 750CC 751CFLAGS 752LDFLAGS 753LIBS 754CPPFLAGS 755CXX 756CXXFLAGS 757CCC 758CPP 759CXXCPP' 760ac_subdirs_all='plugin' 761 762# Initialize some variables set by options. 763ac_init_help= 764ac_init_version=false 765ac_unrecognized_opts= 766ac_unrecognized_sep= 767# The variables have the same names as the options, with 768# dashes changed to underlines. 769cache_file=/dev/null 770exec_prefix=NONE 771no_create= 772no_recursion= 773prefix=NONE 774program_prefix=NONE 775program_suffix=NONE 776program_transform_name=s,x,x, 777silent= 778site= 779srcdir= 780verbose= 781x_includes=NONE 782x_libraries=NONE 783 784# Installation directory options. 785# These are left unexpanded so users can "make install exec_prefix=/foo" 786# and all the variables that are supposed to be based on exec_prefix 787# by default will actually change. 788# Use braces instead of parens because sh, perl, etc. also accept them. 789# (The list follows the same order as the GNU Coding Standards.) 790bindir='${exec_prefix}/bin' 791sbindir='${exec_prefix}/sbin' 792libexecdir='${exec_prefix}/libexec' 793datarootdir='${prefix}/share' 794datadir='${datarootdir}' 795sysconfdir='${prefix}/etc' 796sharedstatedir='${prefix}/com' 797localstatedir='${prefix}/var' 798includedir='${prefix}/include' 799oldincludedir='/usr/include' 800docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 801infodir='${datarootdir}/info' 802htmldir='${docdir}' 803dvidir='${docdir}' 804pdfdir='${docdir}' 805psdir='${docdir}' 806libdir='${exec_prefix}/lib' 807localedir='${datarootdir}/locale' 808mandir='${datarootdir}/man' 809 810ac_prev= 811ac_dashdash= 812for ac_option 813do 814 # If the previous option needs an argument, assign it. 815 if test -n "$ac_prev"; then 816 eval $ac_prev=\$ac_option 817 ac_prev= 818 continue 819 fi 820 821 case $ac_option in 822 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 823 *) ac_optarg=yes ;; 824 esac 825 826 # Accept the important Cygnus configure options, so we can diagnose typos. 827 828 case $ac_dashdash$ac_option in 829 --) 830 ac_dashdash=yes ;; 831 832 -bindir | --bindir | --bindi | --bind | --bin | --bi) 833 ac_prev=bindir ;; 834 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 835 bindir=$ac_optarg ;; 836 837 -build | --build | --buil | --bui | --bu) 838 ac_prev=build_alias ;; 839 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 840 build_alias=$ac_optarg ;; 841 842 -cache-file | --cache-file | --cache-fil | --cache-fi \ 843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 844 ac_prev=cache_file ;; 845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 847 cache_file=$ac_optarg ;; 848 849 --config-cache | -C) 850 cache_file=config.cache ;; 851 852 -datadir | --datadir | --datadi | --datad) 853 ac_prev=datadir ;; 854 -datadir=* | --datadir=* | --datadi=* | --datad=*) 855 datadir=$ac_optarg ;; 856 857 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 858 | --dataroo | --dataro | --datar) 859 ac_prev=datarootdir ;; 860 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 861 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 862 datarootdir=$ac_optarg ;; 863 864 -disable-* | --disable-*) 865 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 866 # Reject names that are not valid shell variable names. 867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 868 as_fn_error "invalid feature name: $ac_useropt" 869 ac_useropt_orig=$ac_useropt 870 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 871 case $ac_user_opts in 872 *" 873"enable_$ac_useropt" 874"*) ;; 875 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 876 ac_unrecognized_sep=', ';; 877 esac 878 eval enable_$ac_useropt=no ;; 879 880 -docdir | --docdir | --docdi | --doc | --do) 881 ac_prev=docdir ;; 882 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 883 docdir=$ac_optarg ;; 884 885 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 886 ac_prev=dvidir ;; 887 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 888 dvidir=$ac_optarg ;; 889 890 -enable-* | --enable-*) 891 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 892 # Reject names that are not valid shell variable names. 893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 894 as_fn_error "invalid feature name: $ac_useropt" 895 ac_useropt_orig=$ac_useropt 896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 897 case $ac_user_opts in 898 *" 899"enable_$ac_useropt" 900"*) ;; 901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 902 ac_unrecognized_sep=', ';; 903 esac 904 eval enable_$ac_useropt=\$ac_optarg ;; 905 906 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 907 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 908 | --exec | --exe | --ex) 909 ac_prev=exec_prefix ;; 910 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 911 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 912 | --exec=* | --exe=* | --ex=*) 913 exec_prefix=$ac_optarg ;; 914 915 -gas | --gas | --ga | --g) 916 # Obsolete; use --with-gas. 917 with_gas=yes ;; 918 919 -help | --help | --hel | --he | -h) 920 ac_init_help=long ;; 921 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 922 ac_init_help=recursive ;; 923 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 924 ac_init_help=short ;; 925 926 -host | --host | --hos | --ho) 927 ac_prev=host_alias ;; 928 -host=* | --host=* | --hos=* | --ho=*) 929 host_alias=$ac_optarg ;; 930 931 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 932 ac_prev=htmldir ;; 933 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 934 | --ht=*) 935 htmldir=$ac_optarg ;; 936 937 -includedir | --includedir | --includedi | --included | --include \ 938 | --includ | --inclu | --incl | --inc) 939 ac_prev=includedir ;; 940 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 941 | --includ=* | --inclu=* | --incl=* | --inc=*) 942 includedir=$ac_optarg ;; 943 944 -infodir | --infodir | --infodi | --infod | --info | --inf) 945 ac_prev=infodir ;; 946 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 947 infodir=$ac_optarg ;; 948 949 -libdir | --libdir | --libdi | --libd) 950 ac_prev=libdir ;; 951 -libdir=* | --libdir=* | --libdi=* | --libd=*) 952 libdir=$ac_optarg ;; 953 954 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 955 | --libexe | --libex | --libe) 956 ac_prev=libexecdir ;; 957 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 958 | --libexe=* | --libex=* | --libe=*) 959 libexecdir=$ac_optarg ;; 960 961 -localedir | --localedir | --localedi | --localed | --locale) 962 ac_prev=localedir ;; 963 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 964 localedir=$ac_optarg ;; 965 966 -localstatedir | --localstatedir | --localstatedi | --localstated \ 967 | --localstate | --localstat | --localsta | --localst | --locals) 968 ac_prev=localstatedir ;; 969 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 970 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 971 localstatedir=$ac_optarg ;; 972 973 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 974 ac_prev=mandir ;; 975 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 976 mandir=$ac_optarg ;; 977 978 -nfp | --nfp | --nf) 979 # Obsolete; use --without-fp. 980 with_fp=no ;; 981 982 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 983 | --no-cr | --no-c | -n) 984 no_create=yes ;; 985 986 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 987 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 988 no_recursion=yes ;; 989 990 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 991 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 992 | --oldin | --oldi | --old | --ol | --o) 993 ac_prev=oldincludedir ;; 994 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 995 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 996 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 997 oldincludedir=$ac_optarg ;; 998 999 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1000 ac_prev=prefix ;; 1001 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1002 prefix=$ac_optarg ;; 1003 1004 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1005 | --program-pre | --program-pr | --program-p) 1006 ac_prev=program_prefix ;; 1007 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1008 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1009 program_prefix=$ac_optarg ;; 1010 1011 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1012 | --program-suf | --program-su | --program-s) 1013 ac_prev=program_suffix ;; 1014 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1015 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1016 program_suffix=$ac_optarg ;; 1017 1018 -program-transform-name | --program-transform-name \ 1019 | --program-transform-nam | --program-transform-na \ 1020 | --program-transform-n | --program-transform- \ 1021 | --program-transform | --program-transfor \ 1022 | --program-transfo | --program-transf \ 1023 | --program-trans | --program-tran \ 1024 | --progr-tra | --program-tr | --program-t) 1025 ac_prev=program_transform_name ;; 1026 -program-transform-name=* | --program-transform-name=* \ 1027 | --program-transform-nam=* | --program-transform-na=* \ 1028 | --program-transform-n=* | --program-transform-=* \ 1029 | --program-transform=* | --program-transfor=* \ 1030 | --program-transfo=* | --program-transf=* \ 1031 | --program-trans=* | --program-tran=* \ 1032 | --progr-tra=* | --program-tr=* | --program-t=*) 1033 program_transform_name=$ac_optarg ;; 1034 1035 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1036 ac_prev=pdfdir ;; 1037 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1038 pdfdir=$ac_optarg ;; 1039 1040 -psdir | --psdir | --psdi | --psd | --ps) 1041 ac_prev=psdir ;; 1042 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1043 psdir=$ac_optarg ;; 1044 1045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1046 | -silent | --silent | --silen | --sile | --sil) 1047 silent=yes ;; 1048 1049 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1050 ac_prev=sbindir ;; 1051 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1052 | --sbi=* | --sb=*) 1053 sbindir=$ac_optarg ;; 1054 1055 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1056 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1057 | --sharedst | --shareds | --shared | --share | --shar \ 1058 | --sha | --sh) 1059 ac_prev=sharedstatedir ;; 1060 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1061 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1062 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1063 | --sha=* | --sh=*) 1064 sharedstatedir=$ac_optarg ;; 1065 1066 -site | --site | --sit) 1067 ac_prev=site ;; 1068 -site=* | --site=* | --sit=*) 1069 site=$ac_optarg ;; 1070 1071 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1072 ac_prev=srcdir ;; 1073 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1074 srcdir=$ac_optarg ;; 1075 1076 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1077 | --syscon | --sysco | --sysc | --sys | --sy) 1078 ac_prev=sysconfdir ;; 1079 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1080 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1081 sysconfdir=$ac_optarg ;; 1082 1083 -target | --target | --targe | --targ | --tar | --ta | --t) 1084 ac_prev=target_alias ;; 1085 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1086 target_alias=$ac_optarg ;; 1087 1088 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1089 verbose=yes ;; 1090 1091 -version | --version | --versio | --versi | --vers | -V) 1092 ac_init_version=: ;; 1093 1094 -with-* | --with-*) 1095 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 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--with-$ac_useropt_orig" 1106 ac_unrecognized_sep=', ';; 1107 esac 1108 eval with_$ac_useropt=\$ac_optarg ;; 1109 1110 -without-* | --without-*) 1111 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1112 # Reject names that are not valid shell variable names. 1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1114 as_fn_error "invalid package name: $ac_useropt" 1115 ac_useropt_orig=$ac_useropt 1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1117 case $ac_user_opts in 1118 *" 1119"with_$ac_useropt" 1120"*) ;; 1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1122 ac_unrecognized_sep=', ';; 1123 esac 1124 eval with_$ac_useropt=no ;; 1125 1126 --x) 1127 # Obsolete; use --with-x. 1128 with_x=yes ;; 1129 1130 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1131 | --x-incl | --x-inc | --x-in | --x-i) 1132 ac_prev=x_includes ;; 1133 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1134 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1135 x_includes=$ac_optarg ;; 1136 1137 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1138 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1139 ac_prev=x_libraries ;; 1140 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1141 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1142 x_libraries=$ac_optarg ;; 1143 1144 -*) as_fn_error "unrecognized option: \`$ac_option' 1145Try \`$0 --help' for more information." 1146 ;; 1147 1148 *=*) 1149 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1150 # Reject names that are not valid shell variable names. 1151 case $ac_envvar in #( 1152 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1153 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1154 esac 1155 eval $ac_envvar=\$ac_optarg 1156 export $ac_envvar ;; 1157 1158 *) 1159 # FIXME: should be removed in autoconf 3.0. 1160 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1161 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1162 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1163 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1164 ;; 1165 1166 esac 1167done 1168 1169if test -n "$ac_prev"; then 1170 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1171 as_fn_error "missing argument to $ac_option" 1172fi 1173 1174if test -n "$ac_unrecognized_opts"; then 1175 case $enable_option_checking in 1176 no) ;; 1177 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1178 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1179 esac 1180fi 1181 1182# Check all directory arguments for consistency. 1183for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1184 datadir sysconfdir sharedstatedir localstatedir includedir \ 1185 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1186 libdir localedir mandir 1187do 1188 eval ac_val=\$$ac_var 1189 # Remove trailing slashes. 1190 case $ac_val in 1191 */ ) 1192 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1193 eval $ac_var=\$ac_val;; 1194 esac 1195 # Be sure to have absolute directory names. 1196 case $ac_val in 1197 [\\/$]* | ?:[\\/]* ) continue;; 1198 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1199 esac 1200 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1201done 1202 1203# There might be people who depend on the old broken behavior: `$host' 1204# used to hold the argument of --host etc. 1205# FIXME: To remove some day. 1206build=$build_alias 1207host=$host_alias 1208target=$target_alias 1209 1210# FIXME: To remove some day. 1211if test "x$host_alias" != x; then 1212 if test "x$build_alias" = x; then 1213 cross_compiling=maybe 1214 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1215 If a cross compiler is detected then cross compile mode will be used." >&2 1216 elif test "x$build_alias" != "x$host_alias"; then 1217 cross_compiling=yes 1218 fi 1219fi 1220 1221ac_tool_prefix= 1222test -n "$host_alias" && ac_tool_prefix=$host_alias- 1223 1224test "$silent" = yes && exec 6>/dev/null 1225 1226 1227ac_pwd=`pwd` && test -n "$ac_pwd" && 1228ac_ls_di=`ls -di .` && 1229ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1230 as_fn_error "working directory cannot be determined" 1231test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1232 as_fn_error "pwd does not report name of working directory" 1233 1234 1235# Find the source files, if location was not specified. 1236if test -z "$srcdir"; then 1237 ac_srcdir_defaulted=yes 1238 # Try the directory containing this script, then the parent directory. 1239 ac_confdir=`$as_dirname -- "$as_myself" || 1240$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1241 X"$as_myself" : 'X\(//\)[^/]' \| \ 1242 X"$as_myself" : 'X\(//\)$' \| \ 1243 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1244$as_echo X"$as_myself" | 1245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1246 s//\1/ 1247 q 1248 } 1249 /^X\(\/\/\)[^/].*/{ 1250 s//\1/ 1251 q 1252 } 1253 /^X\(\/\/\)$/{ 1254 s//\1/ 1255 q 1256 } 1257 /^X\(\/\).*/{ 1258 s//\1/ 1259 q 1260 } 1261 s/.*/./; q'` 1262 srcdir=$ac_confdir 1263 if test ! -r "$srcdir/$ac_unique_file"; then 1264 srcdir=.. 1265 fi 1266else 1267 ac_srcdir_defaulted=no 1268fi 1269if test ! -r "$srcdir/$ac_unique_file"; then 1270 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1271 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1272fi 1273ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1274ac_abs_confdir=`( 1275 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1276 pwd)` 1277# When building in place, set srcdir=. 1278if test "$ac_abs_confdir" = "$ac_pwd"; then 1279 srcdir=. 1280fi 1281# Remove unnecessary trailing slashes from srcdir. 1282# Double slashes in file names in object file debugging info 1283# mess up M-x gdb in Emacs. 1284case $srcdir in 1285*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1286esac 1287for ac_var in $ac_precious_vars; do 1288 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1289 eval ac_env_${ac_var}_value=\$${ac_var} 1290 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1291 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1292done 1293 1294# 1295# Report the --help message. 1296# 1297if test "$ac_init_help" = "long"; then 1298 # Omit some internal or obsolete options to make the list less imposing. 1299 # This message is too long to be a string in the A/UX 3.1 sh. 1300 cat <<_ACEOF 1301\`configure' configures MIC Offload Runtime Library 1.0 to adapt to many kinds of systems. 1302 1303Usage: $0 [OPTION]... [VAR=VALUE]... 1304 1305To assign environment variables (e.g., CC, CFLAGS...), specify them as 1306VAR=VALUE. See below for descriptions of some of the useful variables. 1307 1308Defaults for the options are specified in brackets. 1309 1310Configuration: 1311 -h, --help display this help and exit 1312 --help=short display options specific to this package 1313 --help=recursive display the short help of all the included packages 1314 -V, --version display version information and exit 1315 -q, --quiet, --silent do not print \`checking...' messages 1316 --cache-file=FILE cache test results in FILE [disabled] 1317 -C, --config-cache alias for \`--cache-file=config.cache' 1318 -n, --no-create do not create output files 1319 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1320 1321Installation directories: 1322 --prefix=PREFIX install architecture-independent files in PREFIX 1323 [$ac_default_prefix] 1324 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1325 [PREFIX] 1326 1327By default, \`make install' will install all the files in 1328\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1329an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1330for instance \`--prefix=\$HOME'. 1331 1332For better control, use the options below. 1333 1334Fine tuning of the installation directories: 1335 --bindir=DIR user executables [EPREFIX/bin] 1336 --sbindir=DIR system admin executables [EPREFIX/sbin] 1337 --libexecdir=DIR program executables [EPREFIX/libexec] 1338 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1339 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1340 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1341 --libdir=DIR object code libraries [EPREFIX/lib] 1342 --includedir=DIR C header files [PREFIX/include] 1343 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1344 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1345 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1346 --infodir=DIR info documentation [DATAROOTDIR/info] 1347 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1348 --mandir=DIR man documentation [DATAROOTDIR/man] 1349 --docdir=DIR documentation root [DATAROOTDIR/doc/liboffloadmic] 1350 --htmldir=DIR html documentation [DOCDIR] 1351 --dvidir=DIR dvi documentation [DOCDIR] 1352 --pdfdir=DIR pdf documentation [DOCDIR] 1353 --psdir=DIR ps documentation [DOCDIR] 1354_ACEOF 1355 1356 cat <<\_ACEOF 1357 1358Program names: 1359 --program-prefix=PREFIX prepend PREFIX to installed program names 1360 --program-suffix=SUFFIX append SUFFIX to installed program names 1361 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1362 1363System types: 1364 --build=BUILD configure for building on BUILD [guessed] 1365 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1366 --target=TARGET configure for building compilers for TARGET [HOST] 1367_ACEOF 1368fi 1369 1370if test -n "$ac_init_help"; then 1371 case $ac_init_help in 1372 short | recursive ) echo "Configuration of MIC Offload Runtime Library 1.0:";; 1373 esac 1374 cat <<\_ACEOF 1375 1376Optional Features: 1377 --disable-option-checking ignore unrecognized --enable/--with options 1378 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1379 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1380 --enable-maintainer-mode enable make rules and dependencies not useful 1381 (and sometimes confusing) to the casual installer 1382 --disable-dependency-tracking speeds up one-time build 1383 --enable-dependency-tracking do not reject slow dependency extractors 1384 --enable-multilib build many library versions (default) 1385 --enable-version-specific-runtime-libs 1386 Specify that runtime libraries should be installed 1387 in a compiler-specific directory 1388 --enable-shared[=PKGS] build shared libraries [default=yes] 1389 --enable-static[=PKGS] build static libraries [default=yes] 1390 --enable-fast-install[=PKGS] 1391 optimize for fast installation [default=yes] 1392 --disable-libtool-lock avoid locking (might break parallel builds) 1393 1394Optional Packages: 1395 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1396 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1397 --with-pic try to use only PIC/non-PIC objects [default=use 1398 both] 1399 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1400 1401Some influential environment variables: 1402 CC C compiler command 1403 CFLAGS C compiler flags 1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1405 nonstandard directory <lib dir> 1406 LIBS libraries to pass to the linker, e.g. -l<library> 1407 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1408 you have headers in a nonstandard directory <include dir> 1409 CXX C++ compiler command 1410 CXXFLAGS C++ compiler flags 1411 CPP C preprocessor 1412 CXXCPP C++ preprocessor 1413 1414Use these variables to override the choices made by `configure' or to help 1415it to find libraries and programs with nonstandard names/locations. 1416 1417Report bugs to the package provider. 1418_ACEOF 1419ac_status=$? 1420fi 1421 1422if test "$ac_init_help" = "recursive"; then 1423 # If there are subdirs, report their specific --help. 1424 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1425 test -d "$ac_dir" || 1426 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1427 continue 1428 ac_builddir=. 1429 1430case "$ac_dir" in 1431.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1432*) 1433 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1434 # A ".." for each directory in $ac_dir_suffix. 1435 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1436 case $ac_top_builddir_sub in 1437 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1438 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1439 esac ;; 1440esac 1441ac_abs_top_builddir=$ac_pwd 1442ac_abs_builddir=$ac_pwd$ac_dir_suffix 1443# for backward compatibility: 1444ac_top_builddir=$ac_top_build_prefix 1445 1446case $srcdir in 1447 .) # We are building in place. 1448 ac_srcdir=. 1449 ac_top_srcdir=$ac_top_builddir_sub 1450 ac_abs_top_srcdir=$ac_pwd ;; 1451 [\\/]* | ?:[\\/]* ) # Absolute name. 1452 ac_srcdir=$srcdir$ac_dir_suffix; 1453 ac_top_srcdir=$srcdir 1454 ac_abs_top_srcdir=$srcdir ;; 1455 *) # Relative name. 1456 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1457 ac_top_srcdir=$ac_top_build_prefix$srcdir 1458 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1459esac 1460ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1461 1462 cd "$ac_dir" || { ac_status=$?; continue; } 1463 # Check for guested configure. 1464 if test -f "$ac_srcdir/configure.gnu"; then 1465 echo && 1466 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1467 elif test -f "$ac_srcdir/configure"; then 1468 echo && 1469 $SHELL "$ac_srcdir/configure" --help=recursive 1470 else 1471 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1472 fi || ac_status=$? 1473 cd "$ac_pwd" || { ac_status=$?; break; } 1474 done 1475fi 1476 1477test -n "$ac_init_help" && exit $ac_status 1478if $ac_init_version; then 1479 cat <<\_ACEOF 1480MIC Offload Runtime Library configure 1.0 1481generated by GNU Autoconf 2.64 1482 1483Copyright (C) 2009 Free Software Foundation, Inc. 1484This configure script is free software; the Free Software Foundation 1485gives unlimited permission to copy, distribute and modify it. 1486_ACEOF 1487 exit 1488fi 1489 1490## ------------------------ ## 1491## Autoconf initialization. ## 1492## ------------------------ ## 1493 1494# ac_fn_c_try_compile LINENO 1495# -------------------------- 1496# Try to compile conftest.$ac_ext, and return whether this succeeded. 1497ac_fn_c_try_compile () 1498{ 1499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1500 rm -f conftest.$ac_objext 1501 if { { ac_try="$ac_compile" 1502case "(($ac_try" in 1503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1504 *) ac_try_echo=$ac_try;; 1505esac 1506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1507$as_echo "$ac_try_echo"; } >&5 1508 (eval "$ac_compile") 2>conftest.err 1509 ac_status=$? 1510 if test -s conftest.err; then 1511 grep -v '^ *+' conftest.err >conftest.er1 1512 cat conftest.er1 >&5 1513 mv -f conftest.er1 conftest.err 1514 fi 1515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1516 test $ac_status = 0; } && { 1517 test -z "$ac_c_werror_flag" || 1518 test ! -s conftest.err 1519 } && test -s conftest.$ac_objext; then : 1520 ac_retval=0 1521else 1522 $as_echo "$as_me: failed program was:" >&5 1523sed 's/^/| /' conftest.$ac_ext >&5 1524 1525 ac_retval=1 1526fi 1527 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1528 return $ac_retval 1529 1530} # ac_fn_c_try_compile 1531 1532# ac_fn_cxx_try_compile LINENO 1533# ---------------------------- 1534# Try to compile conftest.$ac_ext, and return whether this succeeded. 1535ac_fn_cxx_try_compile () 1536{ 1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1538 rm -f conftest.$ac_objext 1539 if { { ac_try="$ac_compile" 1540case "(($ac_try" in 1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1542 *) ac_try_echo=$ac_try;; 1543esac 1544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1545$as_echo "$ac_try_echo"; } >&5 1546 (eval "$ac_compile") 2>conftest.err 1547 ac_status=$? 1548 if test -s conftest.err; then 1549 grep -v '^ *+' conftest.err >conftest.er1 1550 cat conftest.er1 >&5 1551 mv -f conftest.er1 conftest.err 1552 fi 1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1554 test $ac_status = 0; } && { 1555 test -z "$ac_cxx_werror_flag" || 1556 test ! -s conftest.err 1557 } && test -s conftest.$ac_objext; then : 1558 ac_retval=0 1559else 1560 $as_echo "$as_me: failed program was:" >&5 1561sed 's/^/| /' conftest.$ac_ext >&5 1562 1563 ac_retval=1 1564fi 1565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1566 return $ac_retval 1567 1568} # ac_fn_cxx_try_compile 1569 1570# ac_fn_c_try_link LINENO 1571# ----------------------- 1572# Try to link conftest.$ac_ext, and return whether this succeeded. 1573ac_fn_c_try_link () 1574{ 1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1576 rm -f conftest.$ac_objext conftest$ac_exeext 1577 if { { ac_try="$ac_link" 1578case "(($ac_try" in 1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1580 *) ac_try_echo=$ac_try;; 1581esac 1582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1583$as_echo "$ac_try_echo"; } >&5 1584 (eval "$ac_link") 2>conftest.err 1585 ac_status=$? 1586 if test -s conftest.err; then 1587 grep -v '^ *+' conftest.err >conftest.er1 1588 cat conftest.er1 >&5 1589 mv -f conftest.er1 conftest.err 1590 fi 1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1592 test $ac_status = 0; } && { 1593 test -z "$ac_c_werror_flag" || 1594 test ! -s conftest.err 1595 } && test -s conftest$ac_exeext && { 1596 test "$cross_compiling" = yes || 1597 $as_test_x conftest$ac_exeext 1598 }; then : 1599 ac_retval=0 1600else 1601 $as_echo "$as_me: failed program was:" >&5 1602sed 's/^/| /' conftest.$ac_ext >&5 1603 1604 ac_retval=1 1605fi 1606 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1607 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1608 # interfere with the next link command; also delete a directory that is 1609 # left behind by Apple's compiler. We do this before executing the actions. 1610 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1611 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1612 return $ac_retval 1613 1614} # ac_fn_c_try_link 1615 1616# ac_fn_c_try_cpp LINENO 1617# ---------------------- 1618# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1619ac_fn_c_try_cpp () 1620{ 1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1622 if { { ac_try="$ac_cpp conftest.$ac_ext" 1623case "(($ac_try" in 1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1625 *) ac_try_echo=$ac_try;; 1626esac 1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1628$as_echo "$ac_try_echo"; } >&5 1629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1630 ac_status=$? 1631 if test -s conftest.err; then 1632 grep -v '^ *+' conftest.err >conftest.er1 1633 cat conftest.er1 >&5 1634 mv -f conftest.er1 conftest.err 1635 fi 1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1637 test $ac_status = 0; } >/dev/null && { 1638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1639 test ! -s conftest.err 1640 }; then : 1641 ac_retval=0 1642else 1643 $as_echo "$as_me: failed program was:" >&5 1644sed 's/^/| /' conftest.$ac_ext >&5 1645 1646 ac_retval=1 1647fi 1648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1649 return $ac_retval 1650 1651} # ac_fn_c_try_cpp 1652 1653# ac_fn_c_check_func LINENO FUNC VAR 1654# ---------------------------------- 1655# Tests whether FUNC exists, setting the cache variable VAR accordingly 1656ac_fn_c_check_func () 1657{ 1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1660$as_echo_n "checking for $2... " >&6; } 1661if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1662 $as_echo_n "(cached) " >&6 1663else 1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1665/* end confdefs.h. */ 1666/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1667 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1668#define $2 innocuous_$2 1669 1670/* System header to define __stub macros and hopefully few prototypes, 1671 which can conflict with char $2 (); below. 1672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1673 <limits.h> exists even on freestanding compilers. */ 1674 1675#ifdef __STDC__ 1676# include <limits.h> 1677#else 1678# include <assert.h> 1679#endif 1680 1681#undef $2 1682 1683/* Override any GCC internal prototype to avoid an error. 1684 Use char because int might match the return type of a GCC 1685 builtin and then its argument prototype would still apply. */ 1686#ifdef __cplusplus 1687extern "C" 1688#endif 1689char $2 (); 1690/* The GNU C library defines this for functions which it implements 1691 to always fail with ENOSYS. Some functions are actually named 1692 something starting with __ and the normal name is an alias. */ 1693#if defined __stub_$2 || defined __stub___$2 1694choke me 1695#endif 1696 1697int 1698main () 1699{ 1700return $2 (); 1701 ; 1702 return 0; 1703} 1704_ACEOF 1705if ac_fn_c_try_link "$LINENO"; then : 1706 eval "$3=yes" 1707else 1708 eval "$3=no" 1709fi 1710rm -f core conftest.err conftest.$ac_objext \ 1711 conftest$ac_exeext conftest.$ac_ext 1712fi 1713eval ac_res=\$$3 1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1715$as_echo "$ac_res" >&6; } 1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1717 1718} # ac_fn_c_check_func 1719 1720# ac_fn_c_try_run LINENO 1721# ---------------------- 1722# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1723# that executables *can* be run. 1724ac_fn_c_try_run () 1725{ 1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1727 if { { ac_try="$ac_link" 1728case "(($ac_try" in 1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1730 *) ac_try_echo=$ac_try;; 1731esac 1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1733$as_echo "$ac_try_echo"; } >&5 1734 (eval "$ac_link") 2>&5 1735 ac_status=$? 1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1737 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1738 { { case "(($ac_try" in 1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1740 *) ac_try_echo=$ac_try;; 1741esac 1742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1743$as_echo "$ac_try_echo"; } >&5 1744 (eval "$ac_try") 2>&5 1745 ac_status=$? 1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1747 test $ac_status = 0; }; }; then : 1748 ac_retval=0 1749else 1750 $as_echo "$as_me: program exited with status $ac_status" >&5 1751 $as_echo "$as_me: failed program was:" >&5 1752sed 's/^/| /' conftest.$ac_ext >&5 1753 1754 ac_retval=$ac_status 1755fi 1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1758 return $ac_retval 1759 1760} # ac_fn_c_try_run 1761 1762# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1763# ------------------------------------------------------- 1764# Tests whether HEADER exists and can be compiled using the include files in 1765# INCLUDES, setting the cache variable VAR accordingly. 1766ac_fn_c_check_header_compile () 1767{ 1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1770$as_echo_n "checking for $2... " >&6; } 1771if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1772 $as_echo_n "(cached) " >&6 1773else 1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1775/* end confdefs.h. */ 1776$4 1777#include <$2> 1778_ACEOF 1779if ac_fn_c_try_compile "$LINENO"; then : 1780 eval "$3=yes" 1781else 1782 eval "$3=no" 1783fi 1784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1785fi 1786eval ac_res=\$$3 1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1788$as_echo "$ac_res" >&6; } 1789 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1790 1791} # ac_fn_c_check_header_compile 1792 1793# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1794# ------------------------------------------------------- 1795# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1796# the include files in INCLUDES and setting the cache variable VAR 1797# accordingly. 1798ac_fn_c_check_header_mongrel () 1799{ 1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1801 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1803$as_echo_n "checking for $2... " >&6; } 1804if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1805 $as_echo_n "(cached) " >&6 1806fi 1807eval ac_res=\$$3 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1809$as_echo "$ac_res" >&6; } 1810else 1811 # Is the header compilable? 1812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1813$as_echo_n "checking $2 usability... " >&6; } 1814cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1815/* end confdefs.h. */ 1816$4 1817#include <$2> 1818_ACEOF 1819if ac_fn_c_try_compile "$LINENO"; then : 1820 ac_header_compiler=yes 1821else 1822 ac_header_compiler=no 1823fi 1824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1826$as_echo "$ac_header_compiler" >&6; } 1827 1828# Is the header present? 1829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1830$as_echo_n "checking $2 presence... " >&6; } 1831cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1832/* end confdefs.h. */ 1833#include <$2> 1834_ACEOF 1835if ac_fn_c_try_cpp "$LINENO"; then : 1836 ac_header_preproc=yes 1837else 1838 ac_header_preproc=no 1839fi 1840rm -f conftest.err conftest.$ac_ext 1841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1842$as_echo "$ac_header_preproc" >&6; } 1843 1844# So? What about this header? 1845case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1846 yes:no: ) 1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1848$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1850$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1851 ;; 1852 no:yes:* ) 1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1854$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1856$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1858$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1860$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1862$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1863 ;; 1864esac 1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1866$as_echo_n "checking for $2... " >&6; } 1867if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1868 $as_echo_n "(cached) " >&6 1869else 1870 eval "$3=\$ac_header_compiler" 1871fi 1872eval ac_res=\$$3 1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1874$as_echo "$ac_res" >&6; } 1875fi 1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1877 1878} # ac_fn_c_check_header_mongrel 1879 1880# ac_fn_cxx_try_cpp LINENO 1881# ------------------------ 1882# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1883ac_fn_cxx_try_cpp () 1884{ 1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1886 if { { ac_try="$ac_cpp conftest.$ac_ext" 1887case "(($ac_try" in 1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1889 *) ac_try_echo=$ac_try;; 1890esac 1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1892$as_echo "$ac_try_echo"; } >&5 1893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1894 ac_status=$? 1895 if test -s conftest.err; then 1896 grep -v '^ *+' conftest.err >conftest.er1 1897 cat conftest.er1 >&5 1898 mv -f conftest.er1 conftest.err 1899 fi 1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1901 test $ac_status = 0; } >/dev/null && { 1902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1903 test ! -s conftest.err 1904 }; then : 1905 ac_retval=0 1906else 1907 $as_echo "$as_me: failed program was:" >&5 1908sed 's/^/| /' conftest.$ac_ext >&5 1909 1910 ac_retval=1 1911fi 1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1913 return $ac_retval 1914 1915} # ac_fn_cxx_try_cpp 1916 1917# ac_fn_cxx_try_link LINENO 1918# ------------------------- 1919# Try to link conftest.$ac_ext, and return whether this succeeded. 1920ac_fn_cxx_try_link () 1921{ 1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1923 rm -f conftest.$ac_objext conftest$ac_exeext 1924 if { { ac_try="$ac_link" 1925case "(($ac_try" in 1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1927 *) ac_try_echo=$ac_try;; 1928esac 1929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1930$as_echo "$ac_try_echo"; } >&5 1931 (eval "$ac_link") 2>conftest.err 1932 ac_status=$? 1933 if test -s conftest.err; then 1934 grep -v '^ *+' conftest.err >conftest.er1 1935 cat conftest.er1 >&5 1936 mv -f conftest.er1 conftest.err 1937 fi 1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1939 test $ac_status = 0; } && { 1940 test -z "$ac_cxx_werror_flag" || 1941 test ! -s conftest.err 1942 } && test -s conftest$ac_exeext && { 1943 test "$cross_compiling" = yes || 1944 $as_test_x conftest$ac_exeext 1945 }; then : 1946 ac_retval=0 1947else 1948 $as_echo "$as_me: failed program was:" >&5 1949sed 's/^/| /' conftest.$ac_ext >&5 1950 1951 ac_retval=1 1952fi 1953 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1954 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1955 # interfere with the next link command; also delete a directory that is 1956 # left behind by Apple's compiler. We do this before executing the actions. 1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1959 return $ac_retval 1960 1961} # ac_fn_cxx_try_link 1962cat >config.log <<_ACEOF 1963This file contains any messages produced by compilers while 1964running configure, to aid debugging if configure makes a mistake. 1965 1966It was created by MIC Offload Runtime Library $as_me 1.0, which was 1967generated by GNU Autoconf 2.64. Invocation command line was 1968 1969 $ $0 $@ 1970 1971_ACEOF 1972exec 5>>config.log 1973{ 1974cat <<_ASUNAME 1975## --------- ## 1976## Platform. ## 1977## --------- ## 1978 1979hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1980uname -m = `(uname -m) 2>/dev/null || echo unknown` 1981uname -r = `(uname -r) 2>/dev/null || echo unknown` 1982uname -s = `(uname -s) 2>/dev/null || echo unknown` 1983uname -v = `(uname -v) 2>/dev/null || echo unknown` 1984 1985/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1986/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1987 1988/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1989/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1990/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1991/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1992/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1993/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1994/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1995 1996_ASUNAME 1997 1998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1999for as_dir in $PATH 2000do 2001 IFS=$as_save_IFS 2002 test -z "$as_dir" && as_dir=. 2003 $as_echo "PATH: $as_dir" 2004 done 2005IFS=$as_save_IFS 2006 2007} >&5 2008 2009cat >&5 <<_ACEOF 2010 2011 2012## ----------- ## 2013## Core tests. ## 2014## ----------- ## 2015 2016_ACEOF 2017 2018 2019# Keep a trace of the command line. 2020# Strip out --no-create and --no-recursion so they do not pile up. 2021# Strip out --silent because we don't want to record it for future runs. 2022# Also quote any args containing shell meta-characters. 2023# Make two passes to allow for proper duplicate-argument suppression. 2024ac_configure_args= 2025ac_configure_args0= 2026ac_configure_args1= 2027ac_must_keep_next=false 2028for ac_pass in 1 2 2029do 2030 for ac_arg 2031 do 2032 case $ac_arg in 2033 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2035 | -silent | --silent | --silen | --sile | --sil) 2036 continue ;; 2037 *\'*) 2038 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2039 esac 2040 case $ac_pass in 2041 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2042 2) 2043 as_fn_append ac_configure_args1 " '$ac_arg'" 2044 if test $ac_must_keep_next = true; then 2045 ac_must_keep_next=false # Got value, back to normal. 2046 else 2047 case $ac_arg in 2048 *=* | --config-cache | -C | -disable-* | --disable-* \ 2049 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2050 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2051 | -with-* | --with-* | -without-* | --without-* | --x) 2052 case "$ac_configure_args0 " in 2053 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2054 esac 2055 ;; 2056 -* ) ac_must_keep_next=true ;; 2057 esac 2058 fi 2059 as_fn_append ac_configure_args " '$ac_arg'" 2060 ;; 2061 esac 2062 done 2063done 2064{ ac_configure_args0=; unset ac_configure_args0;} 2065{ ac_configure_args1=; unset ac_configure_args1;} 2066 2067# When interrupted or exit'd, cleanup temporary files, and complete 2068# config.log. We remove comments because anyway the quotes in there 2069# would cause problems or look ugly. 2070# WARNING: Use '\'' to represent an apostrophe within the trap. 2071# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2072trap 'exit_status=$? 2073 # Save into config.log some information that might help in debugging. 2074 { 2075 echo 2076 2077 cat <<\_ASBOX 2078## ---------------- ## 2079## Cache variables. ## 2080## ---------------- ## 2081_ASBOX 2082 echo 2083 # The following way of writing the cache mishandles newlines in values, 2084( 2085 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2086 eval ac_val=\$$ac_var 2087 case $ac_val in #( 2088 *${as_nl}*) 2089 case $ac_var in #( 2090 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2091$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2092 esac 2093 case $ac_var in #( 2094 _ | IFS | as_nl) ;; #( 2095 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2096 *) { eval $ac_var=; unset $ac_var;} ;; 2097 esac ;; 2098 esac 2099 done 2100 (set) 2>&1 | 2101 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2102 *${as_nl}ac_space=\ *) 2103 sed -n \ 2104 "s/'\''/'\''\\\\'\'''\''/g; 2105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2106 ;; #( 2107 *) 2108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2109 ;; 2110 esac | 2111 sort 2112) 2113 echo 2114 2115 cat <<\_ASBOX 2116## ----------------- ## 2117## Output variables. ## 2118## ----------------- ## 2119_ASBOX 2120 echo 2121 for ac_var in $ac_subst_vars 2122 do 2123 eval ac_val=\$$ac_var 2124 case $ac_val in 2125 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2126 esac 2127 $as_echo "$ac_var='\''$ac_val'\''" 2128 done | sort 2129 echo 2130 2131 if test -n "$ac_subst_files"; then 2132 cat <<\_ASBOX 2133## ------------------- ## 2134## File substitutions. ## 2135## ------------------- ## 2136_ASBOX 2137 echo 2138 for ac_var in $ac_subst_files 2139 do 2140 eval ac_val=\$$ac_var 2141 case $ac_val in 2142 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2143 esac 2144 $as_echo "$ac_var='\''$ac_val'\''" 2145 done | sort 2146 echo 2147 fi 2148 2149 if test -s confdefs.h; then 2150 cat <<\_ASBOX 2151## ----------- ## 2152## confdefs.h. ## 2153## ----------- ## 2154_ASBOX 2155 echo 2156 cat confdefs.h 2157 echo 2158 fi 2159 test "$ac_signal" != 0 && 2160 $as_echo "$as_me: caught signal $ac_signal" 2161 $as_echo "$as_me: exit $exit_status" 2162 } >&5 2163 rm -f core *.core core.conftest.* && 2164 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2165 exit $exit_status 2166' 0 2167for ac_signal in 1 2 13 15; do 2168 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2169done 2170ac_signal=0 2171 2172# confdefs.h avoids OS command line length limits that DEFS can exceed. 2173rm -f -r conftest* confdefs.h 2174 2175$as_echo "/* confdefs.h */" > confdefs.h 2176 2177# Predefined preprocessor variables. 2178 2179cat >>confdefs.h <<_ACEOF 2180#define PACKAGE_NAME "$PACKAGE_NAME" 2181_ACEOF 2182 2183cat >>confdefs.h <<_ACEOF 2184#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2185_ACEOF 2186 2187cat >>confdefs.h <<_ACEOF 2188#define PACKAGE_VERSION "$PACKAGE_VERSION" 2189_ACEOF 2190 2191cat >>confdefs.h <<_ACEOF 2192#define PACKAGE_STRING "$PACKAGE_STRING" 2193_ACEOF 2194 2195cat >>confdefs.h <<_ACEOF 2196#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2197_ACEOF 2198 2199cat >>confdefs.h <<_ACEOF 2200#define PACKAGE_URL "$PACKAGE_URL" 2201_ACEOF 2202 2203 2204# Let the site file select an alternate cache file if it wants to. 2205# Prefer an explicitly selected file to automatically selected ones. 2206ac_site_file1=NONE 2207ac_site_file2=NONE 2208if test -n "$CONFIG_SITE"; then 2209 ac_site_file1=$CONFIG_SITE 2210elif test "x$prefix" != xNONE; then 2211 ac_site_file1=$prefix/share/config.site 2212 ac_site_file2=$prefix/etc/config.site 2213else 2214 ac_site_file1=$ac_default_prefix/share/config.site 2215 ac_site_file2=$ac_default_prefix/etc/config.site 2216fi 2217for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2218do 2219 test "x$ac_site_file" = xNONE && continue 2220 if test -r "$ac_site_file"; then 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2222$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2223 sed 's/^/| /' "$ac_site_file" >&5 2224 . "$ac_site_file" 2225 fi 2226done 2227 2228if test -r "$cache_file"; then 2229 # Some versions of bash will fail to source /dev/null (special 2230 # files actually), so we avoid doing that. 2231 if test -f "$cache_file"; then 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2233$as_echo "$as_me: loading cache $cache_file" >&6;} 2234 case $cache_file in 2235 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2236 *) . "./$cache_file";; 2237 esac 2238 fi 2239else 2240 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2241$as_echo "$as_me: creating cache $cache_file" >&6;} 2242 >$cache_file 2243fi 2244 2245# Check that the precious variables saved in the cache have kept the same 2246# value. 2247ac_cache_corrupted=false 2248for ac_var in $ac_precious_vars; do 2249 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2250 eval ac_new_set=\$ac_env_${ac_var}_set 2251 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2252 eval ac_new_val=\$ac_env_${ac_var}_value 2253 case $ac_old_set,$ac_new_set in 2254 set,) 2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2256$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2257 ac_cache_corrupted=: ;; 2258 ,set) 2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2260$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2261 ac_cache_corrupted=: ;; 2262 ,);; 2263 *) 2264 if test "x$ac_old_val" != "x$ac_new_val"; then 2265 # differences in whitespace do not lead to failure. 2266 ac_old_val_w=`echo x $ac_old_val` 2267 ac_new_val_w=`echo x $ac_new_val` 2268 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2270$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2271 ac_cache_corrupted=: 2272 else 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2274$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2275 eval $ac_var=\$ac_old_val 2276 fi 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2278$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2279 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2280$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2281 fi;; 2282 esac 2283 # Pass precious variables to config.status. 2284 if test "$ac_new_set" = set; then 2285 case $ac_new_val in 2286 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2287 *) ac_arg=$ac_var=$ac_new_val ;; 2288 esac 2289 case " $ac_configure_args " in 2290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2291 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2292 esac 2293 fi 2294done 2295if $ac_cache_corrupted; then 2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2297$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2299$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2300 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2301fi 2302## -------------------- ## 2303## Main body of script. ## 2304## -------------------- ## 2305 2306ac_ext=c 2307ac_cpp='$CPP $CPPFLAGS' 2308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2310ac_compiler_gnu=$ac_cv_c_compiler_gnu 2311 2312 2313 2314 2315 2316 2317ac_aux_dir= 2318for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2319 for ac_t in install-sh install.sh shtool; do 2320 if test -f "$ac_dir/$ac_t"; then 2321 ac_aux_dir=$ac_dir 2322 ac_install_sh="$ac_aux_dir/$ac_t -c" 2323 break 2 2324 fi 2325 done 2326done 2327if test -z "$ac_aux_dir"; then 2328 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2329fi 2330 2331# These three variables are undocumented and unsupported, 2332# and are intended to be withdrawn in a future Autoconf release. 2333# They can cause serious problems if a builder's source tree is in a directory 2334# whose full name contains unusual characters. 2335ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2336ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2337ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2338 2339 2340# Make sure we can run config.sub. 2341$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2342 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2343 2344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2345$as_echo_n "checking build system type... " >&6; } 2346if test "${ac_cv_build+set}" = set; then : 2347 $as_echo_n "(cached) " >&6 2348else 2349 ac_build_alias=$build_alias 2350test "x$ac_build_alias" = x && 2351 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2352test "x$ac_build_alias" = x && 2353 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2354ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2355 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2356 2357fi 2358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2359$as_echo "$ac_cv_build" >&6; } 2360case $ac_cv_build in 2361*-*-*) ;; 2362*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2363esac 2364build=$ac_cv_build 2365ac_save_IFS=$IFS; IFS='-' 2366set x $ac_cv_build 2367shift 2368build_cpu=$1 2369build_vendor=$2 2370shift; shift 2371# Remember, the first character of IFS is used to create $*, 2372# except with old shells: 2373build_os=$* 2374IFS=$ac_save_IFS 2375case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2376 2377 2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2379$as_echo_n "checking host system type... " >&6; } 2380if test "${ac_cv_host+set}" = set; then : 2381 $as_echo_n "(cached) " >&6 2382else 2383 if test "x$host_alias" = x; then 2384 ac_cv_host=$ac_cv_build 2385else 2386 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2387 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2388fi 2389 2390fi 2391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2392$as_echo "$ac_cv_host" >&6; } 2393case $ac_cv_host in 2394*-*-*) ;; 2395*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2396esac 2397host=$ac_cv_host 2398ac_save_IFS=$IFS; IFS='-' 2399set x $ac_cv_host 2400shift 2401host_cpu=$1 2402host_vendor=$2 2403shift; shift 2404# Remember, the first character of IFS is used to create $*, 2405# except with old shells: 2406host_os=$* 2407IFS=$ac_save_IFS 2408case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2409 2410 2411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2412$as_echo_n "checking target system type... " >&6; } 2413if test "${ac_cv_target+set}" = set; then : 2414 $as_echo_n "(cached) " >&6 2415else 2416 if test "x$target_alias" = x; then 2417 ac_cv_target=$ac_cv_host 2418else 2419 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2420 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2421fi 2422 2423fi 2424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2425$as_echo "$ac_cv_target" >&6; } 2426case $ac_cv_target in 2427*-*-*) ;; 2428*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2429esac 2430target=$ac_cv_target 2431ac_save_IFS=$IFS; IFS='-' 2432set x $ac_cv_target 2433shift 2434target_cpu=$1 2435target_vendor=$2 2436shift; shift 2437# Remember, the first character of IFS is used to create $*, 2438# except with old shells: 2439target_os=$* 2440IFS=$ac_save_IFS 2441case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2442 2443 2444# The aliases save the names the user supplied, while $host etc. 2445# will get canonicalized. 2446test -n "$target_alias" && 2447 test "$program_prefix$program_suffix$program_transform_name" = \ 2448 NONENONEs,x,x, && 2449 program_prefix=${target_alias}- 2450 2451target_alias=${target_alias-$host_alias} 2452 2453 2454am__api_version='1.11' 2455 2456# Find a good install program. We prefer a C program (faster), 2457# so one script is as good as another. But avoid the broken or 2458# incompatible versions: 2459# SysV /etc/install, /usr/sbin/install 2460# SunOS /usr/etc/install 2461# IRIX /sbin/install 2462# AIX /bin/install 2463# AmigaOS /C/install, which installs bootblocks on floppy discs 2464# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2465# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2466# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2467# OS/2's system install, which has a completely different semantic 2468# ./install, which can be erroneously created by make from ./install.sh. 2469# Reject install programs that cannot install multiple files. 2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2471$as_echo_n "checking for a BSD-compatible install... " >&6; } 2472if test -z "$INSTALL"; then 2473if test "${ac_cv_path_install+set}" = set; then : 2474 $as_echo_n "(cached) " >&6 2475else 2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2477for as_dir in $PATH 2478do 2479 IFS=$as_save_IFS 2480 test -z "$as_dir" && as_dir=. 2481 # Account for people who put trailing slashes in PATH elements. 2482case $as_dir/ in #(( 2483 ./ | .// | /[cC]/* | \ 2484 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2485 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2486 /usr/ucb/* ) ;; 2487 *) 2488 # OSF1 and SCO ODT 3.0 have their own names for install. 2489 # Don't use installbsd from OSF since it installs stuff as root 2490 # by default. 2491 for ac_prog in ginstall scoinst install; do 2492 for ac_exec_ext in '' $ac_executable_extensions; do 2493 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2494 if test $ac_prog = install && 2495 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2496 # AIX install. It has an incompatible calling convention. 2497 : 2498 elif test $ac_prog = install && 2499 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2500 # program-specific install script used by HP pwplus--don't use. 2501 : 2502 else 2503 rm -rf conftest.one conftest.two conftest.dir 2504 echo one > conftest.one 2505 echo two > conftest.two 2506 mkdir conftest.dir 2507 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2508 test -s conftest.one && test -s conftest.two && 2509 test -s conftest.dir/conftest.one && 2510 test -s conftest.dir/conftest.two 2511 then 2512 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2513 break 3 2514 fi 2515 fi 2516 fi 2517 done 2518 done 2519 ;; 2520esac 2521 2522 done 2523IFS=$as_save_IFS 2524 2525rm -rf conftest.one conftest.two conftest.dir 2526 2527fi 2528 if test "${ac_cv_path_install+set}" = set; then 2529 INSTALL=$ac_cv_path_install 2530 else 2531 # As a last resort, use the slow shell script. Don't cache a 2532 # value for INSTALL within a source directory, because that will 2533 # break other packages using the cache if that directory is 2534 # removed, or if the value is a relative name. 2535 INSTALL=$ac_install_sh 2536 fi 2537fi 2538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2539$as_echo "$INSTALL" >&6; } 2540 2541# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2542# It thinks the first close brace ends the variable substitution. 2543test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2544 2545test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2546 2547test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2548 2549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2550$as_echo_n "checking whether build environment is sane... " >&6; } 2551# Just in case 2552sleep 1 2553echo timestamp > conftest.file 2554# Reject unsafe characters in $srcdir or the absolute working directory 2555# name. Accept space and tab only in the latter. 2556am_lf=' 2557' 2558case `pwd` in 2559 *[\\\"\#\$\&\'\`$am_lf]*) 2560 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2561esac 2562case $srcdir in 2563 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2564 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2565esac 2566 2567# Do `set' in a subshell so we don't clobber the current shell's 2568# arguments. Must try -L first in case configure is actually a 2569# symlink; some systems play weird games with the mod time of symlinks 2570# (eg FreeBSD returns the mod time of the symlink's containing 2571# directory). 2572if ( 2573 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2574 if test "$*" = "X"; then 2575 # -L didn't work. 2576 set X `ls -t "$srcdir/configure" conftest.file` 2577 fi 2578 rm -f conftest.file 2579 if test "$*" != "X $srcdir/configure conftest.file" \ 2580 && test "$*" != "X conftest.file $srcdir/configure"; then 2581 2582 # If neither matched, then we have a broken ls. This can happen 2583 # if, for instance, CONFIG_SHELL is bash and it inherits a 2584 # broken ls alias from the environment. This has actually 2585 # happened. Such a system could not be considered "sane". 2586 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2587alias in your environment" "$LINENO" 5 2588 fi 2589 2590 test "$2" = conftest.file 2591 ) 2592then 2593 # Ok. 2594 : 2595else 2596 as_fn_error "newly created file is older than distributed files! 2597Check your system clock" "$LINENO" 5 2598fi 2599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2600$as_echo "yes" >&6; } 2601test "$program_prefix" != NONE && 2602 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2603# Use a double $ so make ignores it. 2604test "$program_suffix" != NONE && 2605 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2606# Double any \ or $. 2607# By default was `s,x,x', remove it if useless. 2608ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2609program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2610 2611# expand $ac_aux_dir to an absolute path 2612am_aux_dir=`cd $ac_aux_dir && pwd` 2613 2614if test x"${MISSING+set}" != xset; then 2615 case $am_aux_dir in 2616 *\ * | *\ *) 2617 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2618 *) 2619 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2620 esac 2621fi 2622# Use eval to expand $SHELL 2623if eval "$MISSING --run true"; then 2624 am_missing_run="$MISSING --run " 2625else 2626 am_missing_run= 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2628$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2629fi 2630 2631if test x"${install_sh}" != xset; then 2632 case $am_aux_dir in 2633 *\ * | *\ *) 2634 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2635 *) 2636 install_sh="\${SHELL} $am_aux_dir/install-sh" 2637 esac 2638fi 2639 2640# Installed binaries are usually stripped using `strip' when the user 2641# run `make install-strip'. However `strip' might not be the right 2642# tool to use in cross-compilation environments, therefore Automake 2643# will honor the `STRIP' environment variable to overrule this program. 2644if test "$cross_compiling" != no; then 2645 if test -n "$ac_tool_prefix"; then 2646 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2647set dummy ${ac_tool_prefix}strip; ac_word=$2 2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2649$as_echo_n "checking for $ac_word... " >&6; } 2650if test "${ac_cv_prog_STRIP+set}" = set; then : 2651 $as_echo_n "(cached) " >&6 2652else 2653 if test -n "$STRIP"; then 2654 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2655else 2656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2657for as_dir in $PATH 2658do 2659 IFS=$as_save_IFS 2660 test -z "$as_dir" && as_dir=. 2661 for ac_exec_ext in '' $ac_executable_extensions; do 2662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2663 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2665 break 2 2666 fi 2667done 2668 done 2669IFS=$as_save_IFS 2670 2671fi 2672fi 2673STRIP=$ac_cv_prog_STRIP 2674if test -n "$STRIP"; then 2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2676$as_echo "$STRIP" >&6; } 2677else 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2679$as_echo "no" >&6; } 2680fi 2681 2682 2683fi 2684if test -z "$ac_cv_prog_STRIP"; then 2685 ac_ct_STRIP=$STRIP 2686 # Extract the first word of "strip", so it can be a program name with args. 2687set dummy strip; ac_word=$2 2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2689$as_echo_n "checking for $ac_word... " >&6; } 2690if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2691 $as_echo_n "(cached) " >&6 2692else 2693 if test -n "$ac_ct_STRIP"; then 2694 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2695else 2696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2697for as_dir in $PATH 2698do 2699 IFS=$as_save_IFS 2700 test -z "$as_dir" && as_dir=. 2701 for ac_exec_ext in '' $ac_executable_extensions; do 2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2703 ac_cv_prog_ac_ct_STRIP="strip" 2704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2705 break 2 2706 fi 2707done 2708 done 2709IFS=$as_save_IFS 2710 2711fi 2712fi 2713ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2714if test -n "$ac_ct_STRIP"; then 2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2716$as_echo "$ac_ct_STRIP" >&6; } 2717else 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2719$as_echo "no" >&6; } 2720fi 2721 2722 if test "x$ac_ct_STRIP" = x; then 2723 STRIP=":" 2724 else 2725 case $cross_compiling:$ac_tool_warned in 2726yes:) 2727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2729ac_tool_warned=yes ;; 2730esac 2731 STRIP=$ac_ct_STRIP 2732 fi 2733else 2734 STRIP="$ac_cv_prog_STRIP" 2735fi 2736 2737fi 2738INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2739 2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2741$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2742if test -z "$MKDIR_P"; then 2743 if test "${ac_cv_path_mkdir+set}" = set; then : 2744 $as_echo_n "(cached) " >&6 2745else 2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2747for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2748do 2749 IFS=$as_save_IFS 2750 test -z "$as_dir" && as_dir=. 2751 for ac_prog in mkdir gmkdir; do 2752 for ac_exec_ext in '' $ac_executable_extensions; do 2753 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2754 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2755 'mkdir (GNU coreutils) '* | \ 2756 'mkdir (coreutils) '* | \ 2757 'mkdir (fileutils) '4.1*) 2758 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2759 break 3;; 2760 esac 2761 done 2762 done 2763 done 2764IFS=$as_save_IFS 2765 2766fi 2767 2768 if test "${ac_cv_path_mkdir+set}" = set; then 2769 MKDIR_P="$ac_cv_path_mkdir -p" 2770 else 2771 # As a last resort, use the slow shell script. Don't cache a 2772 # value for MKDIR_P within a source directory, because that will 2773 # break other packages using the cache if that directory is 2774 # removed, or if the value is a relative name. 2775 test -d ./--version && rmdir ./--version 2776 MKDIR_P="$ac_install_sh -d" 2777 fi 2778fi 2779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2780$as_echo "$MKDIR_P" >&6; } 2781 2782mkdir_p="$MKDIR_P" 2783case $mkdir_p in 2784 [\\/$]* | ?:[\\/]*) ;; 2785 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2786esac 2787 2788for ac_prog in gawk mawk nawk awk 2789do 2790 # Extract the first word of "$ac_prog", so it can be a program name with args. 2791set dummy $ac_prog; ac_word=$2 2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2793$as_echo_n "checking for $ac_word... " >&6; } 2794if test "${ac_cv_prog_AWK+set}" = set; then : 2795 $as_echo_n "(cached) " >&6 2796else 2797 if test -n "$AWK"; then 2798 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2799else 2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2801for as_dir in $PATH 2802do 2803 IFS=$as_save_IFS 2804 test -z "$as_dir" && as_dir=. 2805 for ac_exec_ext in '' $ac_executable_extensions; do 2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2807 ac_cv_prog_AWK="$ac_prog" 2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2809 break 2 2810 fi 2811done 2812 done 2813IFS=$as_save_IFS 2814 2815fi 2816fi 2817AWK=$ac_cv_prog_AWK 2818if test -n "$AWK"; then 2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2820$as_echo "$AWK" >&6; } 2821else 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2823$as_echo "no" >&6; } 2824fi 2825 2826 2827 test -n "$AWK" && break 2828done 2829 2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2831$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2832set x ${MAKE-make} 2833ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2834if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2835 $as_echo_n "(cached) " >&6 2836else 2837 cat >conftest.make <<\_ACEOF 2838SHELL = /bin/sh 2839all: 2840 @echo '@@@%%%=$(MAKE)=@@@%%%' 2841_ACEOF 2842# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2843case `${MAKE-make} -f conftest.make 2>/dev/null` in 2844 *@@@%%%=?*=@@@%%%*) 2845 eval ac_cv_prog_make_${ac_make}_set=yes;; 2846 *) 2847 eval ac_cv_prog_make_${ac_make}_set=no;; 2848esac 2849rm -f conftest.make 2850fi 2851if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2853$as_echo "yes" >&6; } 2854 SET_MAKE= 2855else 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2857$as_echo "no" >&6; } 2858 SET_MAKE="MAKE=${MAKE-make}" 2859fi 2860 2861rm -rf .tst 2>/dev/null 2862mkdir .tst 2>/dev/null 2863if test -d .tst; then 2864 am__leading_dot=. 2865else 2866 am__leading_dot=_ 2867fi 2868rmdir .tst 2>/dev/null 2869 2870if test "`cd $srcdir && pwd`" != "`pwd`"; then 2871 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2872 # is not polluted with repeated "-I." 2873 am__isrc=' -I$(srcdir)' 2874 # test to see if srcdir already configured 2875 if test -f $srcdir/config.status; then 2876 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2877 fi 2878fi 2879 2880# test whether we have cygpath 2881if test -z "$CYGPATH_W"; then 2882 if (cygpath --version) >/dev/null 2>/dev/null; then 2883 CYGPATH_W='cygpath -w' 2884 else 2885 CYGPATH_W=echo 2886 fi 2887fi 2888 2889 2890# Define the identity of the package. 2891 PACKAGE='liboffloadmic' 2892 VERSION='1.0' 2893 2894 2895cat >>confdefs.h <<_ACEOF 2896#define PACKAGE "$PACKAGE" 2897_ACEOF 2898 2899 2900cat >>confdefs.h <<_ACEOF 2901#define VERSION "$VERSION" 2902_ACEOF 2903 2904# Some tools Automake needs. 2905 2906ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2907 2908 2909AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2910 2911 2912AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2913 2914 2915AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2916 2917 2918MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2919 2920# We need awk for the "check" target. The system "awk" is bad on 2921# some platforms. 2922# Always define AMTAR for backward compatibility. 2923 2924AMTAR=${AMTAR-"${am_missing_run}tar"} 2925 2926am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2927 2928 2929 2930 2931 2932 2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2934$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2935 # Check whether --enable-maintainer-mode was given. 2936if test "${enable_maintainer_mode+set}" = set; then : 2937 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2938else 2939 USE_MAINTAINER_MODE=no 2940fi 2941 2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2943$as_echo "$USE_MAINTAINER_MODE" >&6; } 2944 if test $USE_MAINTAINER_MODE = yes; then 2945 MAINTAINER_MODE_TRUE= 2946 MAINTAINER_MODE_FALSE='#' 2947else 2948 MAINTAINER_MODE_TRUE='#' 2949 MAINTAINER_MODE_FALSE= 2950fi 2951 2952 MAINT=$MAINTAINER_MODE_TRUE 2953 2954 2955 2956ac_ext=c 2957ac_cpp='$CPP $CPPFLAGS' 2958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2960ac_compiler_gnu=$ac_cv_c_compiler_gnu 2961if test -n "$ac_tool_prefix"; then 2962 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2963set dummy ${ac_tool_prefix}gcc; ac_word=$2 2964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2965$as_echo_n "checking for $ac_word... " >&6; } 2966if test "${ac_cv_prog_CC+set}" = set; then : 2967 $as_echo_n "(cached) " >&6 2968else 2969 if test -n "$CC"; then 2970 ac_cv_prog_CC="$CC" # Let the user override the test. 2971else 2972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2973for as_dir in $PATH 2974do 2975 IFS=$as_save_IFS 2976 test -z "$as_dir" && as_dir=. 2977 for ac_exec_ext in '' $ac_executable_extensions; do 2978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2979 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2981 break 2 2982 fi 2983done 2984 done 2985IFS=$as_save_IFS 2986 2987fi 2988fi 2989CC=$ac_cv_prog_CC 2990if test -n "$CC"; then 2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2992$as_echo "$CC" >&6; } 2993else 2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2995$as_echo "no" >&6; } 2996fi 2997 2998 2999fi 3000if test -z "$ac_cv_prog_CC"; then 3001 ac_ct_CC=$CC 3002 # Extract the first word of "gcc", so it can be a program name with args. 3003set dummy gcc; ac_word=$2 3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3005$as_echo_n "checking for $ac_word... " >&6; } 3006if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3007 $as_echo_n "(cached) " >&6 3008else 3009 if test -n "$ac_ct_CC"; then 3010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3011else 3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3013for as_dir in $PATH 3014do 3015 IFS=$as_save_IFS 3016 test -z "$as_dir" && as_dir=. 3017 for ac_exec_ext in '' $ac_executable_extensions; do 3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3019 ac_cv_prog_ac_ct_CC="gcc" 3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3021 break 2 3022 fi 3023done 3024 done 3025IFS=$as_save_IFS 3026 3027fi 3028fi 3029ac_ct_CC=$ac_cv_prog_ac_ct_CC 3030if test -n "$ac_ct_CC"; then 3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3032$as_echo "$ac_ct_CC" >&6; } 3033else 3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3035$as_echo "no" >&6; } 3036fi 3037 3038 if test "x$ac_ct_CC" = x; then 3039 CC="" 3040 else 3041 case $cross_compiling:$ac_tool_warned in 3042yes:) 3043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3045ac_tool_warned=yes ;; 3046esac 3047 CC=$ac_ct_CC 3048 fi 3049else 3050 CC="$ac_cv_prog_CC" 3051fi 3052 3053if test -z "$CC"; then 3054 if test -n "$ac_tool_prefix"; then 3055 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3056set dummy ${ac_tool_prefix}cc; ac_word=$2 3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3058$as_echo_n "checking for $ac_word... " >&6; } 3059if test "${ac_cv_prog_CC+set}" = set; then : 3060 $as_echo_n "(cached) " >&6 3061else 3062 if test -n "$CC"; then 3063 ac_cv_prog_CC="$CC" # Let the user override the test. 3064else 3065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3066for as_dir in $PATH 3067do 3068 IFS=$as_save_IFS 3069 test -z "$as_dir" && as_dir=. 3070 for ac_exec_ext in '' $ac_executable_extensions; do 3071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3072 ac_cv_prog_CC="${ac_tool_prefix}cc" 3073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3074 break 2 3075 fi 3076done 3077 done 3078IFS=$as_save_IFS 3079 3080fi 3081fi 3082CC=$ac_cv_prog_CC 3083if test -n "$CC"; then 3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3085$as_echo "$CC" >&6; } 3086else 3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3088$as_echo "no" >&6; } 3089fi 3090 3091 3092 fi 3093fi 3094if test -z "$CC"; then 3095 # Extract the first word of "cc", so it can be a program name with args. 3096set dummy cc; ac_word=$2 3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3098$as_echo_n "checking for $ac_word... " >&6; } 3099if test "${ac_cv_prog_CC+set}" = set; then : 3100 $as_echo_n "(cached) " >&6 3101else 3102 if test -n "$CC"; then 3103 ac_cv_prog_CC="$CC" # Let the user override the test. 3104else 3105 ac_prog_rejected=no 3106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3107for as_dir in $PATH 3108do 3109 IFS=$as_save_IFS 3110 test -z "$as_dir" && as_dir=. 3111 for ac_exec_ext in '' $ac_executable_extensions; do 3112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3113 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3114 ac_prog_rejected=yes 3115 continue 3116 fi 3117 ac_cv_prog_CC="cc" 3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3119 break 2 3120 fi 3121done 3122 done 3123IFS=$as_save_IFS 3124 3125if test $ac_prog_rejected = yes; then 3126 # We found a bogon in the path, so make sure we never use it. 3127 set dummy $ac_cv_prog_CC 3128 shift 3129 if test $# != 0; then 3130 # We chose a different compiler from the bogus one. 3131 # However, it has the same basename, so the bogon will be chosen 3132 # first if we set CC to just the basename; use the full file name. 3133 shift 3134 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3135 fi 3136fi 3137fi 3138fi 3139CC=$ac_cv_prog_CC 3140if test -n "$CC"; then 3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3142$as_echo "$CC" >&6; } 3143else 3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3145$as_echo "no" >&6; } 3146fi 3147 3148 3149fi 3150if test -z "$CC"; then 3151 if test -n "$ac_tool_prefix"; then 3152 for ac_prog in cl.exe 3153 do 3154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3155set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3157$as_echo_n "checking for $ac_word... " >&6; } 3158if test "${ac_cv_prog_CC+set}" = set; then : 3159 $as_echo_n "(cached) " >&6 3160else 3161 if test -n "$CC"; then 3162 ac_cv_prog_CC="$CC" # Let the user override the test. 3163else 3164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3165for as_dir in $PATH 3166do 3167 IFS=$as_save_IFS 3168 test -z "$as_dir" && as_dir=. 3169 for ac_exec_ext in '' $ac_executable_extensions; do 3170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3171 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3173 break 2 3174 fi 3175done 3176 done 3177IFS=$as_save_IFS 3178 3179fi 3180fi 3181CC=$ac_cv_prog_CC 3182if test -n "$CC"; then 3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3184$as_echo "$CC" >&6; } 3185else 3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3187$as_echo "no" >&6; } 3188fi 3189 3190 3191 test -n "$CC" && break 3192 done 3193fi 3194if test -z "$CC"; then 3195 ac_ct_CC=$CC 3196 for ac_prog in cl.exe 3197do 3198 # Extract the first word of "$ac_prog", so it can be a program name with args. 3199set dummy $ac_prog; ac_word=$2 3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3201$as_echo_n "checking for $ac_word... " >&6; } 3202if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3203 $as_echo_n "(cached) " >&6 3204else 3205 if test -n "$ac_ct_CC"; then 3206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3207else 3208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3209for as_dir in $PATH 3210do 3211 IFS=$as_save_IFS 3212 test -z "$as_dir" && as_dir=. 3213 for ac_exec_ext in '' $ac_executable_extensions; do 3214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3215 ac_cv_prog_ac_ct_CC="$ac_prog" 3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3217 break 2 3218 fi 3219done 3220 done 3221IFS=$as_save_IFS 3222 3223fi 3224fi 3225ac_ct_CC=$ac_cv_prog_ac_ct_CC 3226if test -n "$ac_ct_CC"; then 3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3228$as_echo "$ac_ct_CC" >&6; } 3229else 3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3231$as_echo "no" >&6; } 3232fi 3233 3234 3235 test -n "$ac_ct_CC" && break 3236done 3237 3238 if test "x$ac_ct_CC" = x; then 3239 CC="" 3240 else 3241 case $cross_compiling:$ac_tool_warned in 3242yes:) 3243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3245ac_tool_warned=yes ;; 3246esac 3247 CC=$ac_ct_CC 3248 fi 3249fi 3250 3251fi 3252 3253 3254test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3256as_fn_error "no acceptable C compiler found in \$PATH 3257See \`config.log' for more details." "$LINENO" 5; } 3258 3259# Provide some information about the compiler. 3260$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3261set X $ac_compile 3262ac_compiler=$2 3263for ac_option in --version -v -V -qversion; do 3264 { { ac_try="$ac_compiler $ac_option >&5" 3265case "(($ac_try" in 3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3267 *) ac_try_echo=$ac_try;; 3268esac 3269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3270$as_echo "$ac_try_echo"; } >&5 3271 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3272 ac_status=$? 3273 if test -s conftest.err; then 3274 sed '10a\ 3275... rest of stderr output deleted ... 3276 10q' conftest.err >conftest.er1 3277 cat conftest.er1 >&5 3278 rm -f conftest.er1 conftest.err 3279 fi 3280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3281 test $ac_status = 0; } 3282done 3283 3284cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3285/* end confdefs.h. */ 3286 3287int 3288main () 3289{ 3290 3291 ; 3292 return 0; 3293} 3294_ACEOF 3295ac_clean_files_save=$ac_clean_files 3296ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 3297# Try to create an executable without -o first, disregard a.out. 3298# It will help us diagnose broken compilers, and finding out an intuition 3299# of exeext. 3300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3301$as_echo_n "checking for C compiler default output file name... " >&6; } 3302ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3303 3304# The possible output files: 3305ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3306 3307ac_rmfiles= 3308for ac_file in $ac_files 3309do 3310 case $ac_file in 3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3312 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3313 esac 3314done 3315rm -f $ac_rmfiles 3316 3317if { { ac_try="$ac_link_default" 3318case "(($ac_try" in 3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3320 *) ac_try_echo=$ac_try;; 3321esac 3322eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3323$as_echo "$ac_try_echo"; } >&5 3324 (eval "$ac_link_default") 2>&5 3325 ac_status=$? 3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3327 test $ac_status = 0; }; then : 3328 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3329# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3330# in a Makefile. We should not override ac_cv_exeext if it was cached, 3331# so that the user can short-circuit this test for compilers unknown to 3332# Autoconf. 3333for ac_file in $ac_files '' 3334do 3335 test -f "$ac_file" || continue 3336 case $ac_file in 3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3338 ;; 3339 [ab].out ) 3340 # We found the default executable, but exeext='' is most 3341 # certainly right. 3342 break;; 3343 *.* ) 3344 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3345 then :; else 3346 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3347 fi 3348 # We set ac_cv_exeext here because the later test for it is not 3349 # safe: cross compilers may not add the suffix if given an `-o' 3350 # argument, so we may need to know it at that point already. 3351 # Even if this section looks crufty: it has the advantage of 3352 # actually working. 3353 break;; 3354 * ) 3355 break;; 3356 esac 3357done 3358test "$ac_cv_exeext" = no && ac_cv_exeext= 3359 3360else 3361 ac_file='' 3362fi 3363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3364$as_echo "$ac_file" >&6; } 3365if test -z "$ac_file"; then : 3366 $as_echo "$as_me: failed program was:" >&5 3367sed 's/^/| /' conftest.$ac_ext >&5 3368 3369{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3370$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3371{ as_fn_set_status 77 3372as_fn_error "C compiler cannot create executables 3373See \`config.log' for more details." "$LINENO" 5; }; } 3374fi 3375ac_exeext=$ac_cv_exeext 3376 3377# Check that the compiler produces executables we can run. If not, either 3378# the compiler is broken, or we cross compile. 3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3380$as_echo_n "checking whether the C compiler works... " >&6; } 3381# If not cross compiling, check that we can run a simple program. 3382if test "$cross_compiling" != yes; then 3383 if { ac_try='./$ac_file' 3384 { { case "(($ac_try" in 3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3386 *) ac_try_echo=$ac_try;; 3387esac 3388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3389$as_echo "$ac_try_echo"; } >&5 3390 (eval "$ac_try") 2>&5 3391 ac_status=$? 3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3393 test $ac_status = 0; }; }; then 3394 cross_compiling=no 3395 else 3396 if test "$cross_compiling" = maybe; then 3397 cross_compiling=yes 3398 else 3399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3401as_fn_error "cannot run C compiled programs. 3402If you meant to cross compile, use \`--host'. 3403See \`config.log' for more details." "$LINENO" 5; } 3404 fi 3405 fi 3406fi 3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3408$as_echo "yes" >&6; } 3409 3410rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3411ac_clean_files=$ac_clean_files_save 3412# Check that the compiler produces executables we can run. If not, either 3413# the compiler is broken, or we cross compile. 3414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3415$as_echo_n "checking whether we are cross compiling... " >&6; } 3416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3417$as_echo "$cross_compiling" >&6; } 3418 3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3420$as_echo_n "checking for suffix of executables... " >&6; } 3421if { { ac_try="$ac_link" 3422case "(($ac_try" in 3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3424 *) ac_try_echo=$ac_try;; 3425esac 3426eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3427$as_echo "$ac_try_echo"; } >&5 3428 (eval "$ac_link") 2>&5 3429 ac_status=$? 3430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3431 test $ac_status = 0; }; then : 3432 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3433# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3434# work properly (i.e., refer to `conftest.exe'), while it won't with 3435# `rm'. 3436for ac_file in conftest.exe conftest conftest.*; do 3437 test -f "$ac_file" || continue 3438 case $ac_file in 3439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3440 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3441 break;; 3442 * ) break;; 3443 esac 3444done 3445else 3446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3448as_fn_error "cannot compute suffix of executables: cannot compile and link 3449See \`config.log' for more details." "$LINENO" 5; } 3450fi 3451rm -f conftest$ac_cv_exeext 3452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3453$as_echo "$ac_cv_exeext" >&6; } 3454 3455rm -f conftest.$ac_ext 3456EXEEXT=$ac_cv_exeext 3457ac_exeext=$EXEEXT 3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3459$as_echo_n "checking for suffix of object files... " >&6; } 3460if test "${ac_cv_objext+set}" = set; then : 3461 $as_echo_n "(cached) " >&6 3462else 3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3464/* end confdefs.h. */ 3465 3466int 3467main () 3468{ 3469 3470 ; 3471 return 0; 3472} 3473_ACEOF 3474rm -f conftest.o conftest.obj 3475if { { ac_try="$ac_compile" 3476case "(($ac_try" in 3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3478 *) ac_try_echo=$ac_try;; 3479esac 3480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3481$as_echo "$ac_try_echo"; } >&5 3482 (eval "$ac_compile") 2>&5 3483 ac_status=$? 3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3485 test $ac_status = 0; }; then : 3486 for ac_file in conftest.o conftest.obj conftest.*; do 3487 test -f "$ac_file" || continue; 3488 case $ac_file in 3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3490 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3491 break;; 3492 esac 3493done 3494else 3495 $as_echo "$as_me: failed program was:" >&5 3496sed 's/^/| /' conftest.$ac_ext >&5 3497 3498{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3499$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3500as_fn_error "cannot compute suffix of object files: cannot compile 3501See \`config.log' for more details." "$LINENO" 5; } 3502fi 3503rm -f conftest.$ac_cv_objext conftest.$ac_ext 3504fi 3505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3506$as_echo "$ac_cv_objext" >&6; } 3507OBJEXT=$ac_cv_objext 3508ac_objext=$OBJEXT 3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3510$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3511if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3512 $as_echo_n "(cached) " >&6 3513else 3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3515/* end confdefs.h. */ 3516 3517int 3518main () 3519{ 3520#ifndef __GNUC__ 3521 choke me 3522#endif 3523 3524 ; 3525 return 0; 3526} 3527_ACEOF 3528if ac_fn_c_try_compile "$LINENO"; then : 3529 ac_compiler_gnu=yes 3530else 3531 ac_compiler_gnu=no 3532fi 3533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3534ac_cv_c_compiler_gnu=$ac_compiler_gnu 3535 3536fi 3537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3538$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3539if test $ac_compiler_gnu = yes; then 3540 GCC=yes 3541else 3542 GCC= 3543fi 3544ac_test_CFLAGS=${CFLAGS+set} 3545ac_save_CFLAGS=$CFLAGS 3546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3547$as_echo_n "checking whether $CC accepts -g... " >&6; } 3548if test "${ac_cv_prog_cc_g+set}" = set; then : 3549 $as_echo_n "(cached) " >&6 3550else 3551 ac_save_c_werror_flag=$ac_c_werror_flag 3552 ac_c_werror_flag=yes 3553 ac_cv_prog_cc_g=no 3554 CFLAGS="-g" 3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3556/* end confdefs.h. */ 3557 3558int 3559main () 3560{ 3561 3562 ; 3563 return 0; 3564} 3565_ACEOF 3566if ac_fn_c_try_compile "$LINENO"; then : 3567 ac_cv_prog_cc_g=yes 3568else 3569 CFLAGS="" 3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3571/* end confdefs.h. */ 3572 3573int 3574main () 3575{ 3576 3577 ; 3578 return 0; 3579} 3580_ACEOF 3581if ac_fn_c_try_compile "$LINENO"; then : 3582 3583else 3584 ac_c_werror_flag=$ac_save_c_werror_flag 3585 CFLAGS="-g" 3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3587/* end confdefs.h. */ 3588 3589int 3590main () 3591{ 3592 3593 ; 3594 return 0; 3595} 3596_ACEOF 3597if ac_fn_c_try_compile "$LINENO"; then : 3598 ac_cv_prog_cc_g=yes 3599fi 3600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3601fi 3602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3603fi 3604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3605 ac_c_werror_flag=$ac_save_c_werror_flag 3606fi 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3608$as_echo "$ac_cv_prog_cc_g" >&6; } 3609if test "$ac_test_CFLAGS" = set; then 3610 CFLAGS=$ac_save_CFLAGS 3611elif test $ac_cv_prog_cc_g = yes; then 3612 if test "$GCC" = yes; then 3613 CFLAGS="-g -O2" 3614 else 3615 CFLAGS="-g" 3616 fi 3617else 3618 if test "$GCC" = yes; then 3619 CFLAGS="-O2" 3620 else 3621 CFLAGS= 3622 fi 3623fi 3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3625$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3626if test "${ac_cv_prog_cc_c89+set}" = set; then : 3627 $as_echo_n "(cached) " >&6 3628else 3629 ac_cv_prog_cc_c89=no 3630ac_save_CC=$CC 3631cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3632/* end confdefs.h. */ 3633#include <stdarg.h> 3634#include <stdio.h> 3635#include <sys/types.h> 3636#include <sys/stat.h> 3637/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3638struct buf { int x; }; 3639FILE * (*rcsopen) (struct buf *, struct stat *, int); 3640static char *e (p, i) 3641 char **p; 3642 int i; 3643{ 3644 return p[i]; 3645} 3646static char *f (char * (*g) (char **, int), char **p, ...) 3647{ 3648 char *s; 3649 va_list v; 3650 va_start (v,p); 3651 s = g (p, va_arg (v,int)); 3652 va_end (v); 3653 return s; 3654} 3655 3656/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3657 function prototypes and stuff, but not '\xHH' hex character constants. 3658 These don't provoke an error unfortunately, instead are silently treated 3659 as 'x'. The following induces an error, until -std is added to get 3660 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3661 array size at least. It's necessary to write '\x00'==0 to get something 3662 that's true only with -std. */ 3663int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3664 3665/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3666 inside strings and character constants. */ 3667#define FOO(x) 'x' 3668int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3669 3670int test (int i, double x); 3671struct s1 {int (*f) (int a);}; 3672struct s2 {int (*f) (double a);}; 3673int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3674int argc; 3675char **argv; 3676int 3677main () 3678{ 3679return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3680 ; 3681 return 0; 3682} 3683_ACEOF 3684for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3685 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3686do 3687 CC="$ac_save_CC $ac_arg" 3688 if ac_fn_c_try_compile "$LINENO"; then : 3689 ac_cv_prog_cc_c89=$ac_arg 3690fi 3691rm -f core conftest.err conftest.$ac_objext 3692 test "x$ac_cv_prog_cc_c89" != "xno" && break 3693done 3694rm -f conftest.$ac_ext 3695CC=$ac_save_CC 3696 3697fi 3698# AC_CACHE_VAL 3699case "x$ac_cv_prog_cc_c89" in 3700 x) 3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3702$as_echo "none needed" >&6; } ;; 3703 xno) 3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3705$as_echo "unsupported" >&6; } ;; 3706 *) 3707 CC="$CC $ac_cv_prog_cc_c89" 3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3709$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3710esac 3711if test "x$ac_cv_prog_cc_c89" != xno; then : 3712 3713fi 3714 3715ac_ext=c 3716ac_cpp='$CPP $CPPFLAGS' 3717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3719ac_compiler_gnu=$ac_cv_c_compiler_gnu 3720DEPDIR="${am__leading_dot}deps" 3721 3722ac_config_commands="$ac_config_commands depfiles" 3723 3724 3725am_make=${MAKE-make} 3726cat > confinc << 'END' 3727am__doit: 3728 @echo this is the am__doit target 3729.PHONY: am__doit 3730END 3731# If we don't find an include directive, just comment out the code. 3732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3733$as_echo_n "checking for style of include used by $am_make... " >&6; } 3734am__include="#" 3735am__quote= 3736_am_result=none 3737# First try GNU make style include. 3738echo "include confinc" > confmf 3739# Ignore all kinds of additional output from `make'. 3740case `$am_make -s -f confmf 2> /dev/null` in #( 3741*the\ am__doit\ target*) 3742 am__include=include 3743 am__quote= 3744 _am_result=GNU 3745 ;; 3746esac 3747# Now try BSD make style include. 3748if test "$am__include" = "#"; then 3749 echo '.include "confinc"' > confmf 3750 case `$am_make -s -f confmf 2> /dev/null` in #( 3751 *the\ am__doit\ target*) 3752 am__include=.include 3753 am__quote="\"" 3754 _am_result=BSD 3755 ;; 3756 esac 3757fi 3758 3759 3760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3761$as_echo "$_am_result" >&6; } 3762rm -f confinc confmf 3763 3764# Check whether --enable-dependency-tracking was given. 3765if test "${enable_dependency_tracking+set}" = set; then : 3766 enableval=$enable_dependency_tracking; 3767fi 3768 3769if test "x$enable_dependency_tracking" != xno; then 3770 am_depcomp="$ac_aux_dir/depcomp" 3771 AMDEPBACKSLASH='\' 3772fi 3773 if test "x$enable_dependency_tracking" != xno; then 3774 AMDEP_TRUE= 3775 AMDEP_FALSE='#' 3776else 3777 AMDEP_TRUE='#' 3778 AMDEP_FALSE= 3779fi 3780 3781 3782 3783depcc="$CC" am_compiler_list= 3784 3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3786$as_echo_n "checking dependency style of $depcc... " >&6; } 3787if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3788 $as_echo_n "(cached) " >&6 3789else 3790 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3791 # We make a subdir and do the tests there. Otherwise we can end up 3792 # making bogus files that we don't know about and never remove. For 3793 # instance it was reported that on HP-UX the gcc test will end up 3794 # making a dummy file named `D' -- because `-MD' means `put the output 3795 # in D'. 3796 mkdir conftest.dir 3797 # Copy depcomp to subdir because otherwise we won't find it if we're 3798 # using a relative directory. 3799 cp "$am_depcomp" conftest.dir 3800 cd conftest.dir 3801 # We will build objects and dependencies in a subdirectory because 3802 # it helps to detect inapplicable dependency modes. For instance 3803 # both Tru64's cc and ICC support -MD to output dependencies as a 3804 # side effect of compilation, but ICC will put the dependencies in 3805 # the current directory while Tru64 will put them in the object 3806 # directory. 3807 mkdir sub 3808 3809 am_cv_CC_dependencies_compiler_type=none 3810 if test "$am_compiler_list" = ""; then 3811 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3812 fi 3813 am__universal=false 3814 case " $depcc " in #( 3815 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3816 esac 3817 3818 for depmode in $am_compiler_list; do 3819 # Setup a source with many dependencies, because some compilers 3820 # like to wrap large dependency lists on column 80 (with \), and 3821 # we should not choose a depcomp mode which is confused by this. 3822 # 3823 # We need to recreate these files for each test, as the compiler may 3824 # overwrite some of them when testing with obscure command lines. 3825 # This happens at least with the AIX C compiler. 3826 : > sub/conftest.c 3827 for i in 1 2 3 4 5 6; do 3828 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3829 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3830 # Solaris 8's {/usr,}/bin/sh. 3831 touch sub/conftst$i.h 3832 done 3833 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3834 3835 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3836 # mode. It turns out that the SunPro C++ compiler does not properly 3837 # handle `-M -o', and we need to detect this. Also, some Intel 3838 # versions had trouble with output in subdirs 3839 am__obj=sub/conftest.${OBJEXT-o} 3840 am__minus_obj="-o $am__obj" 3841 case $depmode in 3842 gcc) 3843 # This depmode causes a compiler race in universal mode. 3844 test "$am__universal" = false || continue 3845 ;; 3846 nosideeffect) 3847 # after this tag, mechanisms are not by side-effect, so they'll 3848 # only be used when explicitly requested 3849 if test "x$enable_dependency_tracking" = xyes; then 3850 continue 3851 else 3852 break 3853 fi 3854 ;; 3855 msvisualcpp | msvcmsys) 3856 # This compiler won't grok `-c -o', but also, the minuso test has 3857 # not run yet. These depmodes are late enough in the game, and 3858 # so weak that their functioning should not be impacted. 3859 am__obj=conftest.${OBJEXT-o} 3860 am__minus_obj= 3861 ;; 3862 none) break ;; 3863 esac 3864 if depmode=$depmode \ 3865 source=sub/conftest.c object=$am__obj \ 3866 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3867 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3868 >/dev/null 2>conftest.err && 3869 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3870 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3871 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3872 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3873 # icc doesn't choke on unknown options, it will just issue warnings 3874 # or remarks (even with -Werror). So we grep stderr for any message 3875 # that says an option was ignored or not supported. 3876 # When given -MP, icc 7.0 and 7.1 complain thusly: 3877 # icc: Command line warning: ignoring option '-M'; no argument required 3878 # The diagnosis changed in icc 8.0: 3879 # icc: Command line remark: option '-MP' not supported 3880 if (grep 'ignoring option' conftest.err || 3881 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3882 am_cv_CC_dependencies_compiler_type=$depmode 3883 break 3884 fi 3885 fi 3886 done 3887 3888 cd .. 3889 rm -rf conftest.dir 3890else 3891 am_cv_CC_dependencies_compiler_type=none 3892fi 3893 3894fi 3895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3896$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3897CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3898 3899 if 3900 test "x$enable_dependency_tracking" != xno \ 3901 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3902 am__fastdepCC_TRUE= 3903 am__fastdepCC_FALSE='#' 3904else 3905 am__fastdepCC_TRUE='#' 3906 am__fastdepCC_FALSE= 3907fi 3908 3909 3910ac_ext=cpp 3911ac_cpp='$CXXCPP $CPPFLAGS' 3912ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3913ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3914ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3915if test -z "$CXX"; then 3916 if test -n "$CCC"; then 3917 CXX=$CCC 3918 else 3919 if test -n "$ac_tool_prefix"; then 3920 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3921 do 3922 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3923set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3925$as_echo_n "checking for $ac_word... " >&6; } 3926if test "${ac_cv_prog_CXX+set}" = set; then : 3927 $as_echo_n "(cached) " >&6 3928else 3929 if test -n "$CXX"; then 3930 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3931else 3932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3933for as_dir in $PATH 3934do 3935 IFS=$as_save_IFS 3936 test -z "$as_dir" && as_dir=. 3937 for ac_exec_ext in '' $ac_executable_extensions; do 3938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3939 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3941 break 2 3942 fi 3943done 3944 done 3945IFS=$as_save_IFS 3946 3947fi 3948fi 3949CXX=$ac_cv_prog_CXX 3950if test -n "$CXX"; then 3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3952$as_echo "$CXX" >&6; } 3953else 3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3955$as_echo "no" >&6; } 3956fi 3957 3958 3959 test -n "$CXX" && break 3960 done 3961fi 3962if test -z "$CXX"; then 3963 ac_ct_CXX=$CXX 3964 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3965do 3966 # Extract the first word of "$ac_prog", so it can be a program name with args. 3967set dummy $ac_prog; ac_word=$2 3968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3969$as_echo_n "checking for $ac_word... " >&6; } 3970if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 3971 $as_echo_n "(cached) " >&6 3972else 3973 if test -n "$ac_ct_CXX"; then 3974 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3975else 3976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3977for as_dir in $PATH 3978do 3979 IFS=$as_save_IFS 3980 test -z "$as_dir" && as_dir=. 3981 for ac_exec_ext in '' $ac_executable_extensions; do 3982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3983 ac_cv_prog_ac_ct_CXX="$ac_prog" 3984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3985 break 2 3986 fi 3987done 3988 done 3989IFS=$as_save_IFS 3990 3991fi 3992fi 3993ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3994if test -n "$ac_ct_CXX"; then 3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3996$as_echo "$ac_ct_CXX" >&6; } 3997else 3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3999$as_echo "no" >&6; } 4000fi 4001 4002 4003 test -n "$ac_ct_CXX" && break 4004done 4005 4006 if test "x$ac_ct_CXX" = x; then 4007 CXX="g++" 4008 else 4009 case $cross_compiling:$ac_tool_warned in 4010yes:) 4011{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4013ac_tool_warned=yes ;; 4014esac 4015 CXX=$ac_ct_CXX 4016 fi 4017fi 4018 4019 fi 4020fi 4021# Provide some information about the compiler. 4022$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4023set X $ac_compile 4024ac_compiler=$2 4025for ac_option in --version -v -V -qversion; do 4026 { { ac_try="$ac_compiler $ac_option >&5" 4027case "(($ac_try" in 4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4029 *) ac_try_echo=$ac_try;; 4030esac 4031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4032$as_echo "$ac_try_echo"; } >&5 4033 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4034 ac_status=$? 4035 if test -s conftest.err; then 4036 sed '10a\ 4037... rest of stderr output deleted ... 4038 10q' conftest.err >conftest.er1 4039 cat conftest.er1 >&5 4040 rm -f conftest.er1 conftest.err 4041 fi 4042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4043 test $ac_status = 0; } 4044done 4045 4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4047$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4048if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 4049 $as_echo_n "(cached) " >&6 4050else 4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4052/* end confdefs.h. */ 4053 4054int 4055main () 4056{ 4057#ifndef __GNUC__ 4058 choke me 4059#endif 4060 4061 ; 4062 return 0; 4063} 4064_ACEOF 4065if ac_fn_cxx_try_compile "$LINENO"; then : 4066 ac_compiler_gnu=yes 4067else 4068 ac_compiler_gnu=no 4069fi 4070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4071ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4072 4073fi 4074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4075$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4076if test $ac_compiler_gnu = yes; then 4077 GXX=yes 4078else 4079 GXX= 4080fi 4081ac_test_CXXFLAGS=${CXXFLAGS+set} 4082ac_save_CXXFLAGS=$CXXFLAGS 4083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4084$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4085if test "${ac_cv_prog_cxx_g+set}" = set; then : 4086 $as_echo_n "(cached) " >&6 4087else 4088 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4089 ac_cxx_werror_flag=yes 4090 ac_cv_prog_cxx_g=no 4091 CXXFLAGS="-g" 4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4093/* end confdefs.h. */ 4094 4095int 4096main () 4097{ 4098 4099 ; 4100 return 0; 4101} 4102_ACEOF 4103if ac_fn_cxx_try_compile "$LINENO"; then : 4104 ac_cv_prog_cxx_g=yes 4105else 4106 CXXFLAGS="" 4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4108/* end confdefs.h. */ 4109 4110int 4111main () 4112{ 4113 4114 ; 4115 return 0; 4116} 4117_ACEOF 4118if ac_fn_cxx_try_compile "$LINENO"; then : 4119 4120else 4121 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4122 CXXFLAGS="-g" 4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4124/* end confdefs.h. */ 4125 4126int 4127main () 4128{ 4129 4130 ; 4131 return 0; 4132} 4133_ACEOF 4134if ac_fn_cxx_try_compile "$LINENO"; then : 4135 ac_cv_prog_cxx_g=yes 4136fi 4137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4138fi 4139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4140fi 4141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4142 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4143fi 4144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4145$as_echo "$ac_cv_prog_cxx_g" >&6; } 4146if test "$ac_test_CXXFLAGS" = set; then 4147 CXXFLAGS=$ac_save_CXXFLAGS 4148elif test $ac_cv_prog_cxx_g = yes; then 4149 if test "$GXX" = yes; then 4150 CXXFLAGS="-g -O2" 4151 else 4152 CXXFLAGS="-g" 4153 fi 4154else 4155 if test "$GXX" = yes; then 4156 CXXFLAGS="-O2" 4157 else 4158 CXXFLAGS= 4159 fi 4160fi 4161ac_ext=c 4162ac_cpp='$CPP $CPPFLAGS' 4163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4165ac_compiler_gnu=$ac_cv_c_compiler_gnu 4166 4167depcc="$CXX" am_compiler_list= 4168 4169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4170$as_echo_n "checking dependency style of $depcc... " >&6; } 4171if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 4172 $as_echo_n "(cached) " >&6 4173else 4174 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4175 # We make a subdir and do the tests there. Otherwise we can end up 4176 # making bogus files that we don't know about and never remove. For 4177 # instance it was reported that on HP-UX the gcc test will end up 4178 # making a dummy file named `D' -- because `-MD' means `put the output 4179 # in D'. 4180 mkdir conftest.dir 4181 # Copy depcomp to subdir because otherwise we won't find it if we're 4182 # using a relative directory. 4183 cp "$am_depcomp" conftest.dir 4184 cd conftest.dir 4185 # We will build objects and dependencies in a subdirectory because 4186 # it helps to detect inapplicable dependency modes. For instance 4187 # both Tru64's cc and ICC support -MD to output dependencies as a 4188 # side effect of compilation, but ICC will put the dependencies in 4189 # the current directory while Tru64 will put them in the object 4190 # directory. 4191 mkdir sub 4192 4193 am_cv_CXX_dependencies_compiler_type=none 4194 if test "$am_compiler_list" = ""; then 4195 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4196 fi 4197 am__universal=false 4198 case " $depcc " in #( 4199 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4200 esac 4201 4202 for depmode in $am_compiler_list; do 4203 # Setup a source with many dependencies, because some compilers 4204 # like to wrap large dependency lists on column 80 (with \), and 4205 # we should not choose a depcomp mode which is confused by this. 4206 # 4207 # We need to recreate these files for each test, as the compiler may 4208 # overwrite some of them when testing with obscure command lines. 4209 # This happens at least with the AIX C compiler. 4210 : > sub/conftest.c 4211 for i in 1 2 3 4 5 6; do 4212 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4213 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4214 # Solaris 8's {/usr,}/bin/sh. 4215 touch sub/conftst$i.h 4216 done 4217 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4218 4219 # We check with `-c' and `-o' for the sake of the "dashmstdout" 4220 # mode. It turns out that the SunPro C++ compiler does not properly 4221 # handle `-M -o', and we need to detect this. Also, some Intel 4222 # versions had trouble with output in subdirs 4223 am__obj=sub/conftest.${OBJEXT-o} 4224 am__minus_obj="-o $am__obj" 4225 case $depmode in 4226 gcc) 4227 # This depmode causes a compiler race in universal mode. 4228 test "$am__universal" = false || continue 4229 ;; 4230 nosideeffect) 4231 # after this tag, mechanisms are not by side-effect, so they'll 4232 # only be used when explicitly requested 4233 if test "x$enable_dependency_tracking" = xyes; then 4234 continue 4235 else 4236 break 4237 fi 4238 ;; 4239 msvisualcpp | msvcmsys) 4240 # This compiler won't grok `-c -o', but also, the minuso test has 4241 # not run yet. These depmodes are late enough in the game, and 4242 # so weak that their functioning should not be impacted. 4243 am__obj=conftest.${OBJEXT-o} 4244 am__minus_obj= 4245 ;; 4246 none) break ;; 4247 esac 4248 if depmode=$depmode \ 4249 source=sub/conftest.c object=$am__obj \ 4250 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4251 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4252 >/dev/null 2>conftest.err && 4253 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4254 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4255 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4256 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4257 # icc doesn't choke on unknown options, it will just issue warnings 4258 # or remarks (even with -Werror). So we grep stderr for any message 4259 # that says an option was ignored or not supported. 4260 # When given -MP, icc 7.0 and 7.1 complain thusly: 4261 # icc: Command line warning: ignoring option '-M'; no argument required 4262 # The diagnosis changed in icc 8.0: 4263 # icc: Command line remark: option '-MP' not supported 4264 if (grep 'ignoring option' conftest.err || 4265 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4266 am_cv_CXX_dependencies_compiler_type=$depmode 4267 break 4268 fi 4269 fi 4270 done 4271 4272 cd .. 4273 rm -rf conftest.dir 4274else 4275 am_cv_CXX_dependencies_compiler_type=none 4276fi 4277 4278fi 4279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4280$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4281CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4282 4283 if 4284 test "x$enable_dependency_tracking" != xno \ 4285 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4286 am__fastdepCXX_TRUE= 4287 am__fastdepCXX_FALSE='#' 4288else 4289 am__fastdepCXX_TRUE='#' 4290 am__fastdepCXX_FALSE= 4291fi 4292 4293 4294ac_config_files="$ac_config_files Makefile liboffloadmic_host.spec liboffloadmic_target.spec" 4295 4296# Default to --enable-multilib 4297# Check whether --enable-multilib was given. 4298if test "${enable_multilib+set}" = set; then : 4299 enableval=$enable_multilib; case "$enableval" in 4300 yes) multilib=yes ;; 4301 no) multilib=no ;; 4302 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;; 4303 esac 4304else 4305 multilib=yes 4306fi 4307 4308 4309# We may get other options which we leave undocumented: 4310# --with-target-subdir, --with-multisrctop, --with-multisubdir 4311# See config-ml.in if you want the gory details. 4312 4313if test "$srcdir" = "."; then 4314 if test "$with_target_subdir" != "."; then 4315 multi_basedir="$srcdir/$with_multisrctop../.." 4316 else 4317 multi_basedir="$srcdir/$with_multisrctop.." 4318 fi 4319else 4320 multi_basedir="$srcdir/.." 4321fi 4322 4323 4324# Even if the default multilib is not a cross compilation, 4325# it may be that some of the other multilibs are. 4326if test $cross_compiling = no && test $multilib = yes \ 4327 && test "x${with_multisubdir}" != x ; then 4328 cross_compiling=maybe 4329fi 4330 4331ac_config_commands="$ac_config_commands default-1" 4332 4333 4334 4335subdirs="$subdirs plugin" 4336 4337 4338ac_ext=c 4339ac_cpp='$CPP $CPPFLAGS' 4340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4342ac_compiler_gnu=$ac_cv_c_compiler_gnu 4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4344$as_echo_n "checking how to run the C preprocessor... " >&6; } 4345# On Suns, sometimes $CPP names a directory. 4346if test -n "$CPP" && test -d "$CPP"; then 4347 CPP= 4348fi 4349if test -z "$CPP"; then 4350 if test "${ac_cv_prog_CPP+set}" = set; then : 4351 $as_echo_n "(cached) " >&6 4352else 4353 # Double quotes because CPP needs to be expanded 4354 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4355 do 4356 ac_preproc_ok=false 4357for ac_c_preproc_warn_flag in '' yes 4358do 4359 # Use a header file that comes with gcc, so configuring glibc 4360 # with a fresh cross-compiler works. 4361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4362 # <limits.h> exists even on freestanding compilers. 4363 # On the NeXT, cc -E runs the code through the compiler's parser, 4364 # not just through cpp. "Syntax error" is here to catch this case. 4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4366/* end confdefs.h. */ 4367#ifdef __STDC__ 4368# include <limits.h> 4369#else 4370# include <assert.h> 4371#endif 4372 Syntax error 4373_ACEOF 4374if ac_fn_c_try_cpp "$LINENO"; then : 4375 4376else 4377 # Broken: fails on valid input. 4378continue 4379fi 4380rm -f conftest.err conftest.$ac_ext 4381 4382 # OK, works on sane cases. Now check whether nonexistent headers 4383 # can be detected and how. 4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4385/* end confdefs.h. */ 4386#include <ac_nonexistent.h> 4387_ACEOF 4388if ac_fn_c_try_cpp "$LINENO"; then : 4389 # Broken: success on invalid input. 4390continue 4391else 4392 # Passes both tests. 4393ac_preproc_ok=: 4394break 4395fi 4396rm -f conftest.err conftest.$ac_ext 4397 4398done 4399# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4400rm -f conftest.err conftest.$ac_ext 4401if $ac_preproc_ok; then : 4402 break 4403fi 4404 4405 done 4406 ac_cv_prog_CPP=$CPP 4407 4408fi 4409 CPP=$ac_cv_prog_CPP 4410else 4411 ac_cv_prog_CPP=$CPP 4412fi 4413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4414$as_echo "$CPP" >&6; } 4415ac_preproc_ok=false 4416for ac_c_preproc_warn_flag in '' yes 4417do 4418 # Use a header file that comes with gcc, so configuring glibc 4419 # with a fresh cross-compiler works. 4420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4421 # <limits.h> exists even on freestanding compilers. 4422 # On the NeXT, cc -E runs the code through the compiler's parser, 4423 # not just through cpp. "Syntax error" is here to catch this case. 4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4425/* end confdefs.h. */ 4426#ifdef __STDC__ 4427# include <limits.h> 4428#else 4429# include <assert.h> 4430#endif 4431 Syntax error 4432_ACEOF 4433if ac_fn_c_try_cpp "$LINENO"; then : 4434 4435else 4436 # Broken: fails on valid input. 4437continue 4438fi 4439rm -f conftest.err conftest.$ac_ext 4440 4441 # OK, works on sane cases. Now check whether nonexistent headers 4442 # can be detected and how. 4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4444/* end confdefs.h. */ 4445#include <ac_nonexistent.h> 4446_ACEOF 4447if ac_fn_c_try_cpp "$LINENO"; then : 4448 # Broken: success on invalid input. 4449continue 4450else 4451 # Passes both tests. 4452ac_preproc_ok=: 4453break 4454fi 4455rm -f conftest.err conftest.$ac_ext 4456 4457done 4458# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4459rm -f conftest.err conftest.$ac_ext 4460if $ac_preproc_ok; then : 4461 4462else 4463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4465as_fn_error "C preprocessor \"$CPP\" fails sanity check 4466See \`config.log' for more details." "$LINENO" 5; } 4467fi 4468 4469ac_ext=c 4470ac_cpp='$CPP $CPPFLAGS' 4471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4473ac_compiler_gnu=$ac_cv_c_compiler_gnu 4474 4475 4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4477$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4478if test "${ac_cv_path_GREP+set}" = set; then : 4479 $as_echo_n "(cached) " >&6 4480else 4481 if test -z "$GREP"; then 4482 ac_path_GREP_found=false 4483 # Loop through the user's path and test for each of PROGNAME-LIST 4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4485for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4486do 4487 IFS=$as_save_IFS 4488 test -z "$as_dir" && as_dir=. 4489 for ac_prog in grep ggrep; do 4490 for ac_exec_ext in '' $ac_executable_extensions; do 4491 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4492 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4493# Check for GNU ac_path_GREP and select it if it is found. 4494 # Check for GNU $ac_path_GREP 4495case `"$ac_path_GREP" --version 2>&1` in 4496*GNU*) 4497 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4498*) 4499 ac_count=0 4500 $as_echo_n 0123456789 >"conftest.in" 4501 while : 4502 do 4503 cat "conftest.in" "conftest.in" >"conftest.tmp" 4504 mv "conftest.tmp" "conftest.in" 4505 cp "conftest.in" "conftest.nl" 4506 $as_echo 'GREP' >> "conftest.nl" 4507 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4508 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4509 as_fn_arith $ac_count + 1 && ac_count=$as_val 4510 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4511 # Best one so far, save it but keep looking for a better one 4512 ac_cv_path_GREP="$ac_path_GREP" 4513 ac_path_GREP_max=$ac_count 4514 fi 4515 # 10*(2^10) chars as input seems more than enough 4516 test $ac_count -gt 10 && break 4517 done 4518 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4519esac 4520 4521 $ac_path_GREP_found && break 3 4522 done 4523 done 4524 done 4525IFS=$as_save_IFS 4526 if test -z "$ac_cv_path_GREP"; then 4527 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4528 fi 4529else 4530 ac_cv_path_GREP=$GREP 4531fi 4532 4533fi 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4535$as_echo "$ac_cv_path_GREP" >&6; } 4536 GREP="$ac_cv_path_GREP" 4537 4538 4539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4540$as_echo_n "checking for egrep... " >&6; } 4541if test "${ac_cv_path_EGREP+set}" = set; then : 4542 $as_echo_n "(cached) " >&6 4543else 4544 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4545 then ac_cv_path_EGREP="$GREP -E" 4546 else 4547 if test -z "$EGREP"; then 4548 ac_path_EGREP_found=false 4549 # Loop through the user's path and test for each of PROGNAME-LIST 4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4551for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4552do 4553 IFS=$as_save_IFS 4554 test -z "$as_dir" && as_dir=. 4555 for ac_prog in egrep; do 4556 for ac_exec_ext in '' $ac_executable_extensions; do 4557 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4558 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4559# Check for GNU ac_path_EGREP and select it if it is found. 4560 # Check for GNU $ac_path_EGREP 4561case `"$ac_path_EGREP" --version 2>&1` in 4562*GNU*) 4563 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4564*) 4565 ac_count=0 4566 $as_echo_n 0123456789 >"conftest.in" 4567 while : 4568 do 4569 cat "conftest.in" "conftest.in" >"conftest.tmp" 4570 mv "conftest.tmp" "conftest.in" 4571 cp "conftest.in" "conftest.nl" 4572 $as_echo 'EGREP' >> "conftest.nl" 4573 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4574 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4575 as_fn_arith $ac_count + 1 && ac_count=$as_val 4576 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4577 # Best one so far, save it but keep looking for a better one 4578 ac_cv_path_EGREP="$ac_path_EGREP" 4579 ac_path_EGREP_max=$ac_count 4580 fi 4581 # 10*(2^10) chars as input seems more than enough 4582 test $ac_count -gt 10 && break 4583 done 4584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4585esac 4586 4587 $ac_path_EGREP_found && break 3 4588 done 4589 done 4590 done 4591IFS=$as_save_IFS 4592 if test -z "$ac_cv_path_EGREP"; then 4593 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4594 fi 4595else 4596 ac_cv_path_EGREP=$EGREP 4597fi 4598 4599 fi 4600fi 4601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4602$as_echo "$ac_cv_path_EGREP" >&6; } 4603 EGREP="$ac_cv_path_EGREP" 4604 4605 4606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4607$as_echo_n "checking for ANSI C header files... " >&6; } 4608if test "${ac_cv_header_stdc+set}" = set; then : 4609 $as_echo_n "(cached) " >&6 4610else 4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4612/* end confdefs.h. */ 4613#include <stdlib.h> 4614#include <stdarg.h> 4615#include <string.h> 4616#include <float.h> 4617 4618int 4619main () 4620{ 4621 4622 ; 4623 return 0; 4624} 4625_ACEOF 4626if ac_fn_c_try_compile "$LINENO"; then : 4627 ac_cv_header_stdc=yes 4628else 4629 ac_cv_header_stdc=no 4630fi 4631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4632 4633if test $ac_cv_header_stdc = yes; then 4634 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4636/* end confdefs.h. */ 4637#include <string.h> 4638 4639_ACEOF 4640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4641 $EGREP "memchr" >/dev/null 2>&1; then : 4642 4643else 4644 ac_cv_header_stdc=no 4645fi 4646rm -f conftest* 4647 4648fi 4649 4650if test $ac_cv_header_stdc = yes; then 4651 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4653/* end confdefs.h. */ 4654#include <stdlib.h> 4655 4656_ACEOF 4657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4658 $EGREP "free" >/dev/null 2>&1; then : 4659 4660else 4661 ac_cv_header_stdc=no 4662fi 4663rm -f conftest* 4664 4665fi 4666 4667if test $ac_cv_header_stdc = yes; then 4668 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4669 if test "$cross_compiling" = yes; then : 4670 : 4671else 4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4673/* end confdefs.h. */ 4674#include <ctype.h> 4675#include <stdlib.h> 4676#if ((' ' & 0x0FF) == 0x020) 4677# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4678# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4679#else 4680# define ISLOWER(c) \ 4681 (('a' <= (c) && (c) <= 'i') \ 4682 || ('j' <= (c) && (c) <= 'r') \ 4683 || ('s' <= (c) && (c) <= 'z')) 4684# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4685#endif 4686 4687#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4688int 4689main () 4690{ 4691 int i; 4692 for (i = 0; i < 256; i++) 4693 if (XOR (islower (i), ISLOWER (i)) 4694 || toupper (i) != TOUPPER (i)) 4695 return 2; 4696 return 0; 4697} 4698_ACEOF 4699if ac_fn_c_try_run "$LINENO"; then : 4700 4701else 4702 ac_cv_header_stdc=no 4703fi 4704rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4705 conftest.$ac_objext conftest.beam conftest.$ac_ext 4706fi 4707 4708fi 4709fi 4710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4711$as_echo "$ac_cv_header_stdc" >&6; } 4712if test $ac_cv_header_stdc = yes; then 4713 4714$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4715 4716fi 4717 4718# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4719for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4720 inttypes.h stdint.h unistd.h 4721do : 4722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4723ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4724" 4725eval as_val=\$$as_ac_Header 4726 if test "x$as_val" = x""yes; then : 4727 cat >>confdefs.h <<_ACEOF 4728#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4729_ACEOF 4730 4731fi 4732 4733done 4734 4735 4736# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 4737# for constant arguments. Useless! 4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 4739$as_echo_n "checking for working alloca.h... " >&6; } 4740if test "${ac_cv_working_alloca_h+set}" = set; then : 4741 $as_echo_n "(cached) " >&6 4742else 4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4744/* end confdefs.h. */ 4745#include <alloca.h> 4746int 4747main () 4748{ 4749char *p = (char *) alloca (2 * sizeof (int)); 4750 if (p) return 0; 4751 ; 4752 return 0; 4753} 4754_ACEOF 4755if ac_fn_c_try_link "$LINENO"; then : 4756 ac_cv_working_alloca_h=yes 4757else 4758 ac_cv_working_alloca_h=no 4759fi 4760rm -f core conftest.err conftest.$ac_objext \ 4761 conftest$ac_exeext conftest.$ac_ext 4762fi 4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 4764$as_echo "$ac_cv_working_alloca_h" >&6; } 4765if test $ac_cv_working_alloca_h = yes; then 4766 4767$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 4768 4769fi 4770 4771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 4772$as_echo_n "checking for alloca... " >&6; } 4773if test "${ac_cv_func_alloca_works+set}" = set; then : 4774 $as_echo_n "(cached) " >&6 4775else 4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4777/* end confdefs.h. */ 4778#ifdef __GNUC__ 4779# define alloca __builtin_alloca 4780#else 4781# ifdef _MSC_VER 4782# include <malloc.h> 4783# define alloca _alloca 4784# else 4785# ifdef HAVE_ALLOCA_H 4786# include <alloca.h> 4787# else 4788# ifdef _AIX 4789 #pragma alloca 4790# else 4791# ifndef alloca /* predefined by HP cc +Olibcalls */ 4792char *alloca (); 4793# endif 4794# endif 4795# endif 4796# endif 4797#endif 4798 4799int 4800main () 4801{ 4802char *p = (char *) alloca (1); 4803 if (p) return 0; 4804 ; 4805 return 0; 4806} 4807_ACEOF 4808if ac_fn_c_try_link "$LINENO"; then : 4809 ac_cv_func_alloca_works=yes 4810else 4811 ac_cv_func_alloca_works=no 4812fi 4813rm -f core conftest.err conftest.$ac_objext \ 4814 conftest$ac_exeext conftest.$ac_ext 4815fi 4816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 4817$as_echo "$ac_cv_func_alloca_works" >&6; } 4818 4819if test $ac_cv_func_alloca_works = yes; then 4820 4821$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 4822 4823else 4824 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 4825# that cause trouble. Some versions do not even contain alloca or 4826# contain a buggy version. If you still want to use their alloca, 4827# use ar to extract alloca.o from them instead of compiling alloca.c. 4828 4829ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 4830 4831$as_echo "#define C_ALLOCA 1" >>confdefs.h 4832 4833 4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 4835$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 4836if test "${ac_cv_os_cray+set}" = set; then : 4837 $as_echo_n "(cached) " >&6 4838else 4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4840/* end confdefs.h. */ 4841#if defined CRAY && ! defined CRAY2 4842webecray 4843#else 4844wenotbecray 4845#endif 4846 4847_ACEOF 4848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4849 $EGREP "webecray" >/dev/null 2>&1; then : 4850 ac_cv_os_cray=yes 4851else 4852 ac_cv_os_cray=no 4853fi 4854rm -f conftest* 4855 4856fi 4857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 4858$as_echo "$ac_cv_os_cray" >&6; } 4859if test $ac_cv_os_cray = yes; then 4860 for ac_func in _getb67 GETB67 getb67; do 4861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4862ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4863eval as_val=\$$as_ac_var 4864 if test "x$as_val" = x""yes; then : 4865 4866cat >>confdefs.h <<_ACEOF 4867#define CRAY_STACKSEG_END $ac_func 4868_ACEOF 4869 4870 break 4871fi 4872 4873 done 4874fi 4875 4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 4877$as_echo_n "checking stack direction for C alloca... " >&6; } 4878if test "${ac_cv_c_stack_direction+set}" = set; then : 4879 $as_echo_n "(cached) " >&6 4880else 4881 if test "$cross_compiling" = yes; then : 4882 ac_cv_c_stack_direction=0 4883else 4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4885/* end confdefs.h. */ 4886$ac_includes_default 4887int 4888find_stack_direction () 4889{ 4890 static char *addr = 0; 4891 auto char dummy; 4892 if (addr == 0) 4893 { 4894 addr = &dummy; 4895 return find_stack_direction (); 4896 } 4897 else 4898 return (&dummy > addr) ? 1 : -1; 4899} 4900 4901int 4902main () 4903{ 4904 return find_stack_direction () < 0; 4905} 4906_ACEOF 4907if ac_fn_c_try_run "$LINENO"; then : 4908 ac_cv_c_stack_direction=1 4909else 4910 ac_cv_c_stack_direction=-1 4911fi 4912rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4913 conftest.$ac_objext conftest.beam conftest.$ac_ext 4914fi 4915 4916fi 4917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 4918$as_echo "$ac_cv_c_stack_direction" >&6; } 4919cat >>confdefs.h <<_ACEOF 4920#define STACK_DIRECTION $ac_cv_c_stack_direction 4921_ACEOF 4922 4923 4924fi 4925 4926for ac_header in mm_malloc.h 4927do : 4928 ac_fn_c_check_header_mongrel "$LINENO" "mm_malloc.h" "ac_cv_header_mm_malloc_h" "$ac_includes_default" 4929if test "x$ac_cv_header_mm_malloc_h" = x""yes; then : 4930 cat >>confdefs.h <<_ACEOF 4931#define HAVE_MM_MALLOC_H 1 4932_ACEOF 4933 4934else 4935 as_fn_error "\"Couldn't find mm_malloc.h\"" "$LINENO" 5 4936fi 4937 4938done 4939 4940for ac_func in __secure_getenv secure_getenv 4941do : 4942 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4943ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4944eval as_val=\$$as_ac_var 4945 if test "x$as_val" = x""yes; then : 4946 cat >>confdefs.h <<_ACEOF 4947#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4948_ACEOF 4949 4950fi 4951done 4952 4953 4954# Get target configure. 4955. ${srcdir}/configure.tgt 4956if test -n "$UNSUPPORTED"; then 4957 as_fn_error "Configuration ${target} is unsupported" "$LINENO" 5 4958fi 4959 4960if test "${multilib}" = "yes"; then 4961 multilib_arg="--enable-multilib" 4962else 4963 multilib_arg= 4964fi 4965 4966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 4967$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } 4968# Check whether --enable-version-specific-runtime-libs was given. 4969if test "${enable_version_specific_runtime_libs+set}" = set; then : 4970 enableval=$enable_version_specific_runtime_libs; case "$enableval" in 4971 yes) enable_version_specific_runtime_libs=yes ;; 4972 no) enable_version_specific_runtime_libs=no ;; 4973 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; 4974 esac 4975else 4976 enable_version_specific_runtime_libs=no 4977fi 4978 4979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5 4980$as_echo "$enable_version_specific_runtime_libs" >&6; } 4981 4982# Make sure liboffloadmic is enabled 4983case "$enable_liboffloadmic" in 4984 host | target) 4985 ;; 4986 *) 4987 as_fn_error "Liboffloadmic is disabled" "$LINENO" 5 ;; 4988esac 4989 if test x"$enable_liboffloadmic" = xhost; then 4990 LIBOFFLOADMIC_HOST_TRUE= 4991 LIBOFFLOADMIC_HOST_FALSE='#' 4992else 4993 LIBOFFLOADMIC_HOST_TRUE='#' 4994 LIBOFFLOADMIC_HOST_FALSE= 4995fi 4996 4997 4998# Calculate toolexeclibdir. 4999# Also toolexecdir, though it's only used in toolexeclibdir. 5000case ${enable_version_specific_runtime_libs} in 5001 yes) 5002 # Need the gcc compiler version to know where to install libraries 5003 # and header files if --enable-version-specific-runtime-libs option 5004 # is selected. 5005 toolexecdir='$(libdir)/gcc/$(target_alias)' 5006 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' 5007 ;; 5008 no) 5009 if test -n "$with_cross_host" && 5010 test x"$with_cross_host" != x"no"; then 5011 # Install a library built with a cross compiler in tooldir, not libdir. 5012 toolexecdir='$(exec_prefix)/$(target_alias)' 5013 toolexeclibdir='$(toolexecdir)/lib' 5014 else 5015 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 5016 toolexeclibdir='$(libdir)' 5017 fi 5018 multi_os_directory=`$CC -print-multi-os-directory` 5019 case $multi_os_directory in 5020 .) ;; # Avoid trailing /. 5021 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; 5022 esac 5023 ;; 5024esac 5025 5026enable_dlopen=yes 5027 5028 5029 5030case `pwd` in 5031 *\ * | *\ *) 5032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5033$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5034esac 5035 5036 5037 5038macro_version='2.2.7a' 5039macro_revision='1.3134' 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053ltmain="$ac_aux_dir/ltmain.sh" 5054 5055# Backslashify metacharacters that are still active within 5056# double-quoted strings. 5057sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5058 5059# Same as above, but do not quote variable references. 5060double_quote_subst='s/\(["`\\]\)/\\\1/g' 5061 5062# Sed substitution to delay expansion of an escaped shell variable in a 5063# double_quote_subst'ed string. 5064delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5065 5066# Sed substitution to delay expansion of an escaped single quote. 5067delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5068 5069# Sed substitution to avoid accidental globbing in evaled expressions 5070no_glob_subst='s/\*/\\\*/g' 5071 5072ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5073ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5074ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5075 5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5077$as_echo_n "checking how to print strings... " >&6; } 5078# Test print first, because it will be a builtin if present. 5079if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 5080 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5081 ECHO='print -r --' 5082elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5083 ECHO='printf %s\n' 5084else 5085 # Use this function as a fallback that always works. 5086 func_fallback_echo () 5087 { 5088 eval 'cat <<_LTECHO_EOF 5089$1 5090_LTECHO_EOF' 5091 } 5092 ECHO='func_fallback_echo' 5093fi 5094 5095# func_echo_all arg... 5096# Invoke $ECHO with all args, space-separated. 5097func_echo_all () 5098{ 5099 $ECHO "" 5100} 5101 5102case "$ECHO" in 5103 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5104$as_echo "printf" >&6; } ;; 5105 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5106$as_echo "print -r" >&6; } ;; 5107 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5108$as_echo "cat" >&6; } ;; 5109esac 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5125$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5126if test "${ac_cv_path_SED+set}" = set; then : 5127 $as_echo_n "(cached) " >&6 5128else 5129 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5130 for ac_i in 1 2 3 4 5 6 7; do 5131 ac_script="$ac_script$as_nl$ac_script" 5132 done 5133 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5134 { ac_script=; unset ac_script;} 5135 if test -z "$SED"; then 5136 ac_path_SED_found=false 5137 # Loop through the user's path and test for each of PROGNAME-LIST 5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5139for as_dir in $PATH 5140do 5141 IFS=$as_save_IFS 5142 test -z "$as_dir" && as_dir=. 5143 for ac_prog in sed gsed; do 5144 for ac_exec_ext in '' $ac_executable_extensions; do 5145 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5146 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5147# Check for GNU ac_path_SED and select it if it is found. 5148 # Check for GNU $ac_path_SED 5149case `"$ac_path_SED" --version 2>&1` in 5150*GNU*) 5151 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5152*) 5153 ac_count=0 5154 $as_echo_n 0123456789 >"conftest.in" 5155 while : 5156 do 5157 cat "conftest.in" "conftest.in" >"conftest.tmp" 5158 mv "conftest.tmp" "conftest.in" 5159 cp "conftest.in" "conftest.nl" 5160 $as_echo '' >> "conftest.nl" 5161 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5163 as_fn_arith $ac_count + 1 && ac_count=$as_val 5164 if test $ac_count -gt ${ac_path_SED_max-0}; then 5165 # Best one so far, save it but keep looking for a better one 5166 ac_cv_path_SED="$ac_path_SED" 5167 ac_path_SED_max=$ac_count 5168 fi 5169 # 10*(2^10) chars as input seems more than enough 5170 test $ac_count -gt 10 && break 5171 done 5172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5173esac 5174 5175 $ac_path_SED_found && break 3 5176 done 5177 done 5178 done 5179IFS=$as_save_IFS 5180 if test -z "$ac_cv_path_SED"; then 5181 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 5182 fi 5183else 5184 ac_cv_path_SED=$SED 5185fi 5186 5187fi 5188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5189$as_echo "$ac_cv_path_SED" >&6; } 5190 SED="$ac_cv_path_SED" 5191 rm -f conftest.sed 5192 5193test -z "$SED" && SED=sed 5194Xsed="$SED -e 1s/^X//" 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5207$as_echo_n "checking for fgrep... " >&6; } 5208if test "${ac_cv_path_FGREP+set}" = set; then : 5209 $as_echo_n "(cached) " >&6 5210else 5211 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5212 then ac_cv_path_FGREP="$GREP -F" 5213 else 5214 if test -z "$FGREP"; then 5215 ac_path_FGREP_found=false 5216 # Loop through the user's path and test for each of PROGNAME-LIST 5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5218for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5219do 5220 IFS=$as_save_IFS 5221 test -z "$as_dir" && as_dir=. 5222 for ac_prog in fgrep; do 5223 for ac_exec_ext in '' $ac_executable_extensions; do 5224 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5225 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5226# Check for GNU ac_path_FGREP and select it if it is found. 5227 # Check for GNU $ac_path_FGREP 5228case `"$ac_path_FGREP" --version 2>&1` in 5229*GNU*) 5230 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5231*) 5232 ac_count=0 5233 $as_echo_n 0123456789 >"conftest.in" 5234 while : 5235 do 5236 cat "conftest.in" "conftest.in" >"conftest.tmp" 5237 mv "conftest.tmp" "conftest.in" 5238 cp "conftest.in" "conftest.nl" 5239 $as_echo 'FGREP' >> "conftest.nl" 5240 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5242 as_fn_arith $ac_count + 1 && ac_count=$as_val 5243 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5244 # Best one so far, save it but keep looking for a better one 5245 ac_cv_path_FGREP="$ac_path_FGREP" 5246 ac_path_FGREP_max=$ac_count 5247 fi 5248 # 10*(2^10) chars as input seems more than enough 5249 test $ac_count -gt 10 && break 5250 done 5251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5252esac 5253 5254 $ac_path_FGREP_found && break 3 5255 done 5256 done 5257 done 5258IFS=$as_save_IFS 5259 if test -z "$ac_cv_path_FGREP"; then 5260 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5261 fi 5262else 5263 ac_cv_path_FGREP=$FGREP 5264fi 5265 5266 fi 5267fi 5268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5269$as_echo "$ac_cv_path_FGREP" >&6; } 5270 FGREP="$ac_cv_path_FGREP" 5271 5272 5273test -z "$GREP" && GREP=grep 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293# Check whether --with-gnu-ld was given. 5294if test "${with_gnu_ld+set}" = set; then : 5295 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5296else 5297 with_gnu_ld=no 5298fi 5299 5300ac_prog=ld 5301if test "$GCC" = yes; then 5302 # Check if gcc -print-prog-name=ld gives a path. 5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5304$as_echo_n "checking for ld used by $CC... " >&6; } 5305 case $host in 5306 *-*-mingw*) 5307 # gcc leaves a trailing carriage return which upsets mingw 5308 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5309 *) 5310 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5311 esac 5312 case $ac_prog in 5313 # Accept absolute paths. 5314 [\\/]* | ?:[\\/]*) 5315 re_direlt='/[^/][^/]*/\.\./' 5316 # Canonicalize the pathname of ld 5317 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5318 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5319 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5320 done 5321 test -z "$LD" && LD="$ac_prog" 5322 ;; 5323 "") 5324 # If it fails, then pretend we aren't using GCC. 5325 ac_prog=ld 5326 ;; 5327 *) 5328 # If it is relative, then search for the first ld in PATH. 5329 with_gnu_ld=unknown 5330 ;; 5331 esac 5332elif test "$with_gnu_ld" = yes; then 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5334$as_echo_n "checking for GNU ld... " >&6; } 5335else 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5337$as_echo_n "checking for non-GNU ld... " >&6; } 5338fi 5339if test "${lt_cv_path_LD+set}" = set; then : 5340 $as_echo_n "(cached) " >&6 5341else 5342 if test -z "$LD"; then 5343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5344 for ac_dir in $PATH; do 5345 IFS="$lt_save_ifs" 5346 test -z "$ac_dir" && ac_dir=. 5347 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5348 lt_cv_path_LD="$ac_dir/$ac_prog" 5349 # Check to see if the program is GNU ld. I'd rather use --version, 5350 # but apparently some variants of GNU ld only accept -v. 5351 # Break only if it was the GNU/non-GNU ld that we prefer. 5352 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5353 *GNU* | *'with BFD'*) 5354 test "$with_gnu_ld" != no && break 5355 ;; 5356 *) 5357 test "$with_gnu_ld" != yes && break 5358 ;; 5359 esac 5360 fi 5361 done 5362 IFS="$lt_save_ifs" 5363else 5364 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5365fi 5366fi 5367 5368LD="$lt_cv_path_LD" 5369if test -n "$LD"; then 5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5371$as_echo "$LD" >&6; } 5372else 5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5374$as_echo "no" >&6; } 5375fi 5376test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 5377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5378$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5379if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5380 $as_echo_n "(cached) " >&6 5381else 5382 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5383case `$LD -v 2>&1 </dev/null` in 5384*GNU* | *'with BFD'*) 5385 lt_cv_prog_gnu_ld=yes 5386 ;; 5387*) 5388 lt_cv_prog_gnu_ld=no 5389 ;; 5390esac 5391fi 5392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5393$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5394with_gnu_ld=$lt_cv_prog_gnu_ld 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5405$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5406if test "${lt_cv_path_NM+set}" = set; then : 5407 $as_echo_n "(cached) " >&6 5408else 5409 if test -n "$NM"; then 5410 # Let the user override the test. 5411 lt_cv_path_NM="$NM" 5412else 5413 lt_nm_to_check="${ac_tool_prefix}nm" 5414 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5415 lt_nm_to_check="$lt_nm_to_check nm" 5416 fi 5417 for lt_tmp_nm in $lt_nm_to_check; do 5418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5419 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5420 IFS="$lt_save_ifs" 5421 test -z "$ac_dir" && ac_dir=. 5422 tmp_nm="$ac_dir/$lt_tmp_nm" 5423 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5424 # Check to see if the nm accepts a BSD-compat flag. 5425 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5426 # nm: unknown option "B" ignored 5427 # Tru64's nm complains that /dev/null is an invalid object file 5428 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5429 */dev/null* | *'Invalid file or object type'*) 5430 lt_cv_path_NM="$tmp_nm -B" 5431 break 5432 ;; 5433 *) 5434 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5435 */dev/null*) 5436 lt_cv_path_NM="$tmp_nm -p" 5437 break 5438 ;; 5439 *) 5440 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5441 continue # so that we can try to find one that supports BSD flags 5442 ;; 5443 esac 5444 ;; 5445 esac 5446 fi 5447 done 5448 IFS="$lt_save_ifs" 5449 done 5450 : ${lt_cv_path_NM=no} 5451fi 5452fi 5453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5454$as_echo "$lt_cv_path_NM" >&6; } 5455if test "$lt_cv_path_NM" != "no"; then 5456 NM="$lt_cv_path_NM" 5457else 5458 # Didn't find any BSD compatible name lister, look for dumpbin. 5459 if test -n "$DUMPBIN"; then : 5460 # Let the user override the test. 5461 else 5462 if test -n "$ac_tool_prefix"; then 5463 for ac_prog in dumpbin "link -dump" 5464 do 5465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5466set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5468$as_echo_n "checking for $ac_word... " >&6; } 5469if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5470 $as_echo_n "(cached) " >&6 5471else 5472 if test -n "$DUMPBIN"; then 5473 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5474else 5475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5476for as_dir in $PATH 5477do 5478 IFS=$as_save_IFS 5479 test -z "$as_dir" && as_dir=. 5480 for ac_exec_ext in '' $ac_executable_extensions; do 5481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5482 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5484 break 2 5485 fi 5486done 5487 done 5488IFS=$as_save_IFS 5489 5490fi 5491fi 5492DUMPBIN=$ac_cv_prog_DUMPBIN 5493if test -n "$DUMPBIN"; then 5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5495$as_echo "$DUMPBIN" >&6; } 5496else 5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5498$as_echo "no" >&6; } 5499fi 5500 5501 5502 test -n "$DUMPBIN" && break 5503 done 5504fi 5505if test -z "$DUMPBIN"; then 5506 ac_ct_DUMPBIN=$DUMPBIN 5507 for ac_prog in dumpbin "link -dump" 5508do 5509 # Extract the first word of "$ac_prog", so it can be a program name with args. 5510set dummy $ac_prog; ac_word=$2 5511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5512$as_echo_n "checking for $ac_word... " >&6; } 5513if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 5514 $as_echo_n "(cached) " >&6 5515else 5516 if test -n "$ac_ct_DUMPBIN"; then 5517 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5518else 5519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5520for as_dir in $PATH 5521do 5522 IFS=$as_save_IFS 5523 test -z "$as_dir" && as_dir=. 5524 for ac_exec_ext in '' $ac_executable_extensions; do 5525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5526 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5528 break 2 5529 fi 5530done 5531 done 5532IFS=$as_save_IFS 5533 5534fi 5535fi 5536ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5537if test -n "$ac_ct_DUMPBIN"; then 5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5539$as_echo "$ac_ct_DUMPBIN" >&6; } 5540else 5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5542$as_echo "no" >&6; } 5543fi 5544 5545 5546 test -n "$ac_ct_DUMPBIN" && break 5547done 5548 5549 if test "x$ac_ct_DUMPBIN" = x; then 5550 DUMPBIN=":" 5551 else 5552 case $cross_compiling:$ac_tool_warned in 5553yes:) 5554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5556ac_tool_warned=yes ;; 5557esac 5558 DUMPBIN=$ac_ct_DUMPBIN 5559 fi 5560fi 5561 5562 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5563 *COFF*) 5564 DUMPBIN="$DUMPBIN -symbols" 5565 ;; 5566 *) 5567 DUMPBIN=: 5568 ;; 5569 esac 5570 fi 5571 5572 if test "$DUMPBIN" != ":"; then 5573 NM="$DUMPBIN" 5574 fi 5575fi 5576test -z "$NM" && NM=nm 5577 5578 5579 5580 5581 5582 5583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5584$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5585if test "${lt_cv_nm_interface+set}" = set; then : 5586 $as_echo_n "(cached) " >&6 5587else 5588 lt_cv_nm_interface="BSD nm" 5589 echo "int some_variable = 0;" > conftest.$ac_ext 5590 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5591 (eval "$ac_compile" 2>conftest.err) 5592 cat conftest.err >&5 5593 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5594 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5595 cat conftest.err >&5 5596 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5597 cat conftest.out >&5 5598 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5599 lt_cv_nm_interface="MS dumpbin" 5600 fi 5601 rm -f conftest* 5602fi 5603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5604$as_echo "$lt_cv_nm_interface" >&6; } 5605 5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5607$as_echo_n "checking whether ln -s works... " >&6; } 5608LN_S=$as_ln_s 5609if test "$LN_S" = "ln -s"; then 5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5611$as_echo "yes" >&6; } 5612else 5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5614$as_echo "no, using $LN_S" >&6; } 5615fi 5616 5617# find the maximum length of command line arguments 5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5619$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5620if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5621 $as_echo_n "(cached) " >&6 5622else 5623 i=0 5624 teststring="ABCD" 5625 5626 case $build_os in 5627 msdosdjgpp*) 5628 # On DJGPP, this test can blow up pretty badly due to problems in libc 5629 # (any single argument exceeding 2000 bytes causes a buffer overrun 5630 # during glob expansion). Even if it were fixed, the result of this 5631 # check would be larger than it should be. 5632 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5633 ;; 5634 5635 gnu*) 5636 # Under GNU Hurd, this test is not required because there is 5637 # no limit to the length of command line arguments. 5638 # Libtool will interpret -1 as no limit whatsoever 5639 lt_cv_sys_max_cmd_len=-1; 5640 ;; 5641 5642 cygwin* | mingw* | cegcc*) 5643 # On Win9x/ME, this test blows up -- it succeeds, but takes 5644 # about 5 minutes as the teststring grows exponentially. 5645 # Worse, since 9x/ME are not pre-emptively multitasking, 5646 # you end up with a "frozen" computer, even though with patience 5647 # the test eventually succeeds (with a max line length of 256k). 5648 # Instead, let's just punt: use the minimum linelength reported by 5649 # all of the supported platforms: 8192 (on NT/2K/XP). 5650 lt_cv_sys_max_cmd_len=8192; 5651 ;; 5652 5653 mint*) 5654 # On MiNT this can take a long time and run out of memory. 5655 lt_cv_sys_max_cmd_len=8192; 5656 ;; 5657 5658 amigaos*) 5659 # On AmigaOS with pdksh, this test takes hours, literally. 5660 # So we just punt and use a minimum line length of 8192. 5661 lt_cv_sys_max_cmd_len=8192; 5662 ;; 5663 5664 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5665 # This has been around since 386BSD, at least. Likely further. 5666 if test -x /sbin/sysctl; then 5667 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5668 elif test -x /usr/sbin/sysctl; then 5669 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5670 else 5671 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5672 fi 5673 # And add a safety zone 5674 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5675 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5676 ;; 5677 5678 interix*) 5679 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5680 lt_cv_sys_max_cmd_len=196608 5681 ;; 5682 5683 osf*) 5684 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5685 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5686 # nice to cause kernel panics so lets avoid the loop below. 5687 # First set a reasonable default. 5688 lt_cv_sys_max_cmd_len=16384 5689 # 5690 if test -x /sbin/sysconfig; then 5691 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5692 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5693 esac 5694 fi 5695 ;; 5696 sco3.2v5*) 5697 lt_cv_sys_max_cmd_len=102400 5698 ;; 5699 sysv5* | sco5v6* | sysv4.2uw2*) 5700 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5701 if test -n "$kargmax"; then 5702 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5703 else 5704 lt_cv_sys_max_cmd_len=32768 5705 fi 5706 ;; 5707 *) 5708 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5709 if test -n "$lt_cv_sys_max_cmd_len"; then 5710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5712 else 5713 # Make teststring a little bigger before we do anything with it. 5714 # a 1K string should be a reasonable start. 5715 for i in 1 2 3 4 5 6 7 8 ; do 5716 teststring=$teststring$teststring 5717 done 5718 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5719 # If test is not a shell built-in, we'll probably end up computing a 5720 # maximum length that is only half of the actual maximum length, but 5721 # we can't tell. 5722 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5723 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5724 test $i != 17 # 1/2 MB should be enough 5725 do 5726 i=`expr $i + 1` 5727 teststring=$teststring$teststring 5728 done 5729 # Only check the string length outside the loop. 5730 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5731 teststring= 5732 # Add a significant safety factor because C++ compilers can tack on 5733 # massive amounts of additional arguments before passing them to the 5734 # linker. It appears as though 1/2 is a usable value. 5735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5736 fi 5737 ;; 5738 esac 5739 5740fi 5741 5742if test -n $lt_cv_sys_max_cmd_len ; then 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5744$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5745else 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5747$as_echo "none" >&6; } 5748fi 5749max_cmd_len=$lt_cv_sys_max_cmd_len 5750 5751 5752 5753 5754 5755 5756: ${CP="cp -f"} 5757: ${MV="mv -f"} 5758: ${RM="rm -f"} 5759 5760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5761$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5762# Try some XSI features 5763xsi_shell=no 5764( _lt_dummy="a/b/c" 5765 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5766 = c,a/b,, \ 5767 && eval 'test $(( 1 + 1 )) -eq 2 \ 5768 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5769 && xsi_shell=yes 5770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5771$as_echo "$xsi_shell" >&6; } 5772 5773 5774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5775$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5776lt_shell_append=no 5777( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5778 >/dev/null 2>&1 \ 5779 && lt_shell_append=yes 5780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5781$as_echo "$lt_shell_append" >&6; } 5782 5783 5784if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5785 lt_unset=unset 5786else 5787 lt_unset=false 5788fi 5789 5790 5791 5792 5793 5794# test EBCDIC or ASCII 5795case `echo X|tr X '\101'` in 5796 A) # ASCII based system 5797 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5798 lt_SP2NL='tr \040 \012' 5799 lt_NL2SP='tr \015\012 \040\040' 5800 ;; 5801 *) # EBCDIC based system 5802 lt_SP2NL='tr \100 \n' 5803 lt_NL2SP='tr \r\n \100\100' 5804 ;; 5805esac 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5816$as_echo_n "checking for $LD option to reload object files... " >&6; } 5817if test "${lt_cv_ld_reload_flag+set}" = set; then : 5818 $as_echo_n "(cached) " >&6 5819else 5820 lt_cv_ld_reload_flag='-r' 5821fi 5822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5823$as_echo "$lt_cv_ld_reload_flag" >&6; } 5824reload_flag=$lt_cv_ld_reload_flag 5825case $reload_flag in 5826"" | " "*) ;; 5827*) reload_flag=" $reload_flag" ;; 5828esac 5829reload_cmds='$LD$reload_flag -o $output$reload_objs' 5830case $host_os in 5831 darwin*) 5832 if test "$GCC" = yes; then 5833 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5834 else 5835 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5836 fi 5837 ;; 5838esac 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848if test -n "$ac_tool_prefix"; then 5849 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5850set dummy ${ac_tool_prefix}objdump; ac_word=$2 5851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5852$as_echo_n "checking for $ac_word... " >&6; } 5853if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 5854 $as_echo_n "(cached) " >&6 5855else 5856 if test -n "$OBJDUMP"; then 5857 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5858else 5859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5860for as_dir in $PATH 5861do 5862 IFS=$as_save_IFS 5863 test -z "$as_dir" && as_dir=. 5864 for ac_exec_ext in '' $ac_executable_extensions; do 5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5866 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5868 break 2 5869 fi 5870done 5871 done 5872IFS=$as_save_IFS 5873 5874fi 5875fi 5876OBJDUMP=$ac_cv_prog_OBJDUMP 5877if test -n "$OBJDUMP"; then 5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5879$as_echo "$OBJDUMP" >&6; } 5880else 5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5882$as_echo "no" >&6; } 5883fi 5884 5885 5886fi 5887if test -z "$ac_cv_prog_OBJDUMP"; then 5888 ac_ct_OBJDUMP=$OBJDUMP 5889 # Extract the first word of "objdump", so it can be a program name with args. 5890set dummy objdump; ac_word=$2 5891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5892$as_echo_n "checking for $ac_word... " >&6; } 5893if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 5894 $as_echo_n "(cached) " >&6 5895else 5896 if test -n "$ac_ct_OBJDUMP"; then 5897 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5898else 5899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5900for as_dir in $PATH 5901do 5902 IFS=$as_save_IFS 5903 test -z "$as_dir" && as_dir=. 5904 for ac_exec_ext in '' $ac_executable_extensions; do 5905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5906 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5908 break 2 5909 fi 5910done 5911 done 5912IFS=$as_save_IFS 5913 5914fi 5915fi 5916ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5917if test -n "$ac_ct_OBJDUMP"; then 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5919$as_echo "$ac_ct_OBJDUMP" >&6; } 5920else 5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5922$as_echo "no" >&6; } 5923fi 5924 5925 if test "x$ac_ct_OBJDUMP" = x; then 5926 OBJDUMP="false" 5927 else 5928 case $cross_compiling:$ac_tool_warned in 5929yes:) 5930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5932ac_tool_warned=yes ;; 5933esac 5934 OBJDUMP=$ac_ct_OBJDUMP 5935 fi 5936else 5937 OBJDUMP="$ac_cv_prog_OBJDUMP" 5938fi 5939 5940test -z "$OBJDUMP" && OBJDUMP=objdump 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5951$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5952if test "${lt_cv_deplibs_check_method+set}" = set; then : 5953 $as_echo_n "(cached) " >&6 5954else 5955 lt_cv_file_magic_cmd='$MAGIC_CMD' 5956lt_cv_file_magic_test_file= 5957lt_cv_deplibs_check_method='unknown' 5958# Need to set the preceding variable on all platforms that support 5959# interlibrary dependencies. 5960# 'none' -- dependencies not supported. 5961# `unknown' -- same as none, but documents that we really don't know. 5962# 'pass_all' -- all dependencies passed with no checks. 5963# 'test_compile' -- check by making test program. 5964# 'file_magic [[regex]]' -- check by looking for files in library path 5965# which responds to the $file_magic_cmd with a given extended regex. 5966# If you have `file' or equivalent on your system and you're not sure 5967# whether `pass_all' will *always* work, you probably want this one. 5968 5969case $host_os in 5970aix[4-9]*) 5971 lt_cv_deplibs_check_method=pass_all 5972 ;; 5973 5974beos*) 5975 lt_cv_deplibs_check_method=pass_all 5976 ;; 5977 5978bsdi[45]*) 5979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5980 lt_cv_file_magic_cmd='/usr/bin/file -L' 5981 lt_cv_file_magic_test_file=/shlib/libc.so 5982 ;; 5983 5984cygwin*) 5985 # func_win32_libid is a shell function defined in ltmain.sh 5986 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5987 lt_cv_file_magic_cmd='func_win32_libid' 5988 ;; 5989 5990mingw* | pw32*) 5991 # Base MSYS/MinGW do not provide the 'file' command needed by 5992 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5993 # unless we find 'file', for example because we are cross-compiling. 5994 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5995 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5996 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5997 lt_cv_file_magic_cmd='func_win32_libid' 5998 else 5999 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6000 lt_cv_file_magic_cmd='$OBJDUMP -f' 6001 fi 6002 ;; 6003 6004cegcc*) 6005 # use the weaker test based on 'objdump'. See mingw*. 6006 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6007 lt_cv_file_magic_cmd='$OBJDUMP -f' 6008 ;; 6009 6010darwin* | rhapsody*) 6011 lt_cv_deplibs_check_method=pass_all 6012 ;; 6013 6014freebsd* | dragonfly*) 6015 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6016 case $host_cpu in 6017 i*86 ) 6018 # Not sure whether the presence of OpenBSD here was a mistake. 6019 # Let's accept both of them until this is cleared up. 6020 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6021 lt_cv_file_magic_cmd=/usr/bin/file 6022 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6023 ;; 6024 esac 6025 else 6026 lt_cv_deplibs_check_method=pass_all 6027 fi 6028 ;; 6029 6030gnu*) 6031 lt_cv_deplibs_check_method=pass_all 6032 ;; 6033 6034haiku*) 6035 lt_cv_deplibs_check_method=pass_all 6036 ;; 6037 6038hpux10.20* | hpux11*) 6039 lt_cv_file_magic_cmd=/usr/bin/file 6040 case $host_cpu in 6041 ia64*) 6042 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6043 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6044 ;; 6045 hppa*64*) 6046 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]' 6047 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6048 ;; 6049 *) 6050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6051 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6052 ;; 6053 esac 6054 ;; 6055 6056interix[3-9]*) 6057 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6059 ;; 6060 6061irix5* | irix6* | nonstopux*) 6062 case $LD in 6063 *-32|*"-32 ") libmagic=32-bit;; 6064 *-n32|*"-n32 ") libmagic=N32;; 6065 *-64|*"-64 ") libmagic=64-bit;; 6066 *) libmagic=never-match;; 6067 esac 6068 lt_cv_deplibs_check_method=pass_all 6069 ;; 6070 6071# This must be Linux ELF. 6072linux* | k*bsd*-gnu | kopensolaris*-gnu) 6073 lt_cv_deplibs_check_method=pass_all 6074 ;; 6075 6076netbsd*) 6077 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6079 else 6080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6081 fi 6082 ;; 6083 6084newos6*) 6085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6086 lt_cv_file_magic_cmd=/usr/bin/file 6087 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6088 ;; 6089 6090*nto* | *qnx*) 6091 lt_cv_deplibs_check_method=pass_all 6092 ;; 6093 6094openbsd*) 6095 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6097 else 6098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6099 fi 6100 ;; 6101 6102osf3* | osf4* | osf5*) 6103 lt_cv_deplibs_check_method=pass_all 6104 ;; 6105 6106rdos*) 6107 lt_cv_deplibs_check_method=pass_all 6108 ;; 6109 6110solaris*) 6111 lt_cv_deplibs_check_method=pass_all 6112 ;; 6113 6114sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6115 lt_cv_deplibs_check_method=pass_all 6116 ;; 6117 6118sysv4 | sysv4.3*) 6119 case $host_vendor in 6120 motorola) 6121 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]' 6122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6123 ;; 6124 ncr) 6125 lt_cv_deplibs_check_method=pass_all 6126 ;; 6127 sequent) 6128 lt_cv_file_magic_cmd='/bin/file' 6129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6130 ;; 6131 sni) 6132 lt_cv_file_magic_cmd='/bin/file' 6133 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6134 lt_cv_file_magic_test_file=/lib/libc.so 6135 ;; 6136 siemens) 6137 lt_cv_deplibs_check_method=pass_all 6138 ;; 6139 pc) 6140 lt_cv_deplibs_check_method=pass_all 6141 ;; 6142 esac 6143 ;; 6144 6145tpf*) 6146 lt_cv_deplibs_check_method=pass_all 6147 ;; 6148esac 6149 6150fi 6151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6152$as_echo "$lt_cv_deplibs_check_method" >&6; } 6153file_magic_cmd=$lt_cv_file_magic_cmd 6154deplibs_check_method=$lt_cv_deplibs_check_method 6155test -z "$deplibs_check_method" && deplibs_check_method=unknown 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168if test -n "$ac_tool_prefix"; then 6169 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6170set dummy ${ac_tool_prefix}ar; ac_word=$2 6171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6172$as_echo_n "checking for $ac_word... " >&6; } 6173if test "${ac_cv_prog_AR+set}" = set; then : 6174 $as_echo_n "(cached) " >&6 6175else 6176 if test -n "$AR"; then 6177 ac_cv_prog_AR="$AR" # Let the user override the test. 6178else 6179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6180for as_dir in $PATH 6181do 6182 IFS=$as_save_IFS 6183 test -z "$as_dir" && as_dir=. 6184 for ac_exec_ext in '' $ac_executable_extensions; do 6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6186 ac_cv_prog_AR="${ac_tool_prefix}ar" 6187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6188 break 2 6189 fi 6190done 6191 done 6192IFS=$as_save_IFS 6193 6194fi 6195fi 6196AR=$ac_cv_prog_AR 6197if test -n "$AR"; then 6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6199$as_echo "$AR" >&6; } 6200else 6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6202$as_echo "no" >&6; } 6203fi 6204 6205 6206fi 6207if test -z "$ac_cv_prog_AR"; then 6208 ac_ct_AR=$AR 6209 # Extract the first word of "ar", so it can be a program name with args. 6210set dummy ar; ac_word=$2 6211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6212$as_echo_n "checking for $ac_word... " >&6; } 6213if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6214 $as_echo_n "(cached) " >&6 6215else 6216 if test -n "$ac_ct_AR"; then 6217 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6218else 6219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6220for as_dir in $PATH 6221do 6222 IFS=$as_save_IFS 6223 test -z "$as_dir" && as_dir=. 6224 for ac_exec_ext in '' $ac_executable_extensions; do 6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6226 ac_cv_prog_ac_ct_AR="ar" 6227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6228 break 2 6229 fi 6230done 6231 done 6232IFS=$as_save_IFS 6233 6234fi 6235fi 6236ac_ct_AR=$ac_cv_prog_ac_ct_AR 6237if test -n "$ac_ct_AR"; then 6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6239$as_echo "$ac_ct_AR" >&6; } 6240else 6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6242$as_echo "no" >&6; } 6243fi 6244 6245 if test "x$ac_ct_AR" = x; then 6246 AR="false" 6247 else 6248 case $cross_compiling:$ac_tool_warned in 6249yes:) 6250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6252ac_tool_warned=yes ;; 6253esac 6254 AR=$ac_ct_AR 6255 fi 6256else 6257 AR="$ac_cv_prog_AR" 6258fi 6259 6260test -z "$AR" && AR=ar 6261test -z "$AR_FLAGS" && AR_FLAGS=cru 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273if test -n "$ac_tool_prefix"; then 6274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6275set dummy ${ac_tool_prefix}strip; ac_word=$2 6276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6277$as_echo_n "checking for $ac_word... " >&6; } 6278if test "${ac_cv_prog_STRIP+set}" = set; then : 6279 $as_echo_n "(cached) " >&6 6280else 6281 if test -n "$STRIP"; then 6282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6283else 6284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6285for as_dir in $PATH 6286do 6287 IFS=$as_save_IFS 6288 test -z "$as_dir" && as_dir=. 6289 for ac_exec_ext in '' $ac_executable_extensions; do 6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6291 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6293 break 2 6294 fi 6295done 6296 done 6297IFS=$as_save_IFS 6298 6299fi 6300fi 6301STRIP=$ac_cv_prog_STRIP 6302if test -n "$STRIP"; then 6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6304$as_echo "$STRIP" >&6; } 6305else 6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6307$as_echo "no" >&6; } 6308fi 6309 6310 6311fi 6312if test -z "$ac_cv_prog_STRIP"; then 6313 ac_ct_STRIP=$STRIP 6314 # Extract the first word of "strip", so it can be a program name with args. 6315set dummy strip; ac_word=$2 6316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6317$as_echo_n "checking for $ac_word... " >&6; } 6318if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6319 $as_echo_n "(cached) " >&6 6320else 6321 if test -n "$ac_ct_STRIP"; then 6322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6323else 6324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6325for as_dir in $PATH 6326do 6327 IFS=$as_save_IFS 6328 test -z "$as_dir" && as_dir=. 6329 for ac_exec_ext in '' $ac_executable_extensions; do 6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6331 ac_cv_prog_ac_ct_STRIP="strip" 6332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6333 break 2 6334 fi 6335done 6336 done 6337IFS=$as_save_IFS 6338 6339fi 6340fi 6341ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6342if test -n "$ac_ct_STRIP"; then 6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6344$as_echo "$ac_ct_STRIP" >&6; } 6345else 6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6347$as_echo "no" >&6; } 6348fi 6349 6350 if test "x$ac_ct_STRIP" = x; then 6351 STRIP=":" 6352 else 6353 case $cross_compiling:$ac_tool_warned in 6354yes:) 6355{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6356$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6357ac_tool_warned=yes ;; 6358esac 6359 STRIP=$ac_ct_STRIP 6360 fi 6361else 6362 STRIP="$ac_cv_prog_STRIP" 6363fi 6364 6365test -z "$STRIP" && STRIP=: 6366 6367 6368 6369 6370 6371 6372if test -n "$ac_tool_prefix"; then 6373 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6374set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6376$as_echo_n "checking for $ac_word... " >&6; } 6377if test "${ac_cv_prog_RANLIB+set}" = set; then : 6378 $as_echo_n "(cached) " >&6 6379else 6380 if test -n "$RANLIB"; then 6381 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6382else 6383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6384for as_dir in $PATH 6385do 6386 IFS=$as_save_IFS 6387 test -z "$as_dir" && as_dir=. 6388 for ac_exec_ext in '' $ac_executable_extensions; do 6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6390 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6392 break 2 6393 fi 6394done 6395 done 6396IFS=$as_save_IFS 6397 6398fi 6399fi 6400RANLIB=$ac_cv_prog_RANLIB 6401if test -n "$RANLIB"; then 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6403$as_echo "$RANLIB" >&6; } 6404else 6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6406$as_echo "no" >&6; } 6407fi 6408 6409 6410fi 6411if test -z "$ac_cv_prog_RANLIB"; then 6412 ac_ct_RANLIB=$RANLIB 6413 # Extract the first word of "ranlib", so it can be a program name with args. 6414set dummy ranlib; ac_word=$2 6415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6416$as_echo_n "checking for $ac_word... " >&6; } 6417if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6418 $as_echo_n "(cached) " >&6 6419else 6420 if test -n "$ac_ct_RANLIB"; then 6421 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6422else 6423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6424for as_dir in $PATH 6425do 6426 IFS=$as_save_IFS 6427 test -z "$as_dir" && as_dir=. 6428 for ac_exec_ext in '' $ac_executable_extensions; do 6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6430 ac_cv_prog_ac_ct_RANLIB="ranlib" 6431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6432 break 2 6433 fi 6434done 6435 done 6436IFS=$as_save_IFS 6437 6438fi 6439fi 6440ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6441if test -n "$ac_ct_RANLIB"; then 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6443$as_echo "$ac_ct_RANLIB" >&6; } 6444else 6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6446$as_echo "no" >&6; } 6447fi 6448 6449 if test "x$ac_ct_RANLIB" = x; then 6450 RANLIB=":" 6451 else 6452 case $cross_compiling:$ac_tool_warned in 6453yes:) 6454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6456ac_tool_warned=yes ;; 6457esac 6458 RANLIB=$ac_ct_RANLIB 6459 fi 6460else 6461 RANLIB="$ac_cv_prog_RANLIB" 6462fi 6463 6464test -z "$RANLIB" && RANLIB=: 6465 6466 6467 6468 6469 6470 6471# Determine commands to create old-style static archives. 6472old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6473old_postinstall_cmds='chmod 644 $oldlib' 6474old_postuninstall_cmds= 6475 6476if test -n "$RANLIB"; then 6477 case $host_os in 6478 openbsd*) 6479 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6480 ;; 6481 *) 6482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6483 ;; 6484 esac 6485 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6486fi 6487 6488case $host_os in 6489 darwin*) 6490 lock_old_archive_extraction=yes ;; 6491 *) 6492 lock_old_archive_extraction=no ;; 6493esac 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 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533# If no C compiler was specified, use CC. 6534LTCC=${LTCC-"$CC"} 6535 6536# If no C compiler flags were specified, use CFLAGS. 6537LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6538 6539# Allow CC to be a program name with arguments. 6540compiler=$CC 6541 6542 6543# Check for command to grab the raw symbol name followed by C symbol from nm. 6544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6545$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6546if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6547 $as_echo_n "(cached) " >&6 6548else 6549 6550# These are sane defaults that work on at least a few old systems. 6551# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6552 6553# Character class describing NM global symbol codes. 6554symcode='[BCDEGRST]' 6555 6556# Regexp to match symbols that can be accessed directly from C. 6557sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6558 6559# Define system-specific variables. 6560case $host_os in 6561aix*) 6562 symcode='[BCDT]' 6563 ;; 6564cygwin* | mingw* | pw32* | cegcc*) 6565 symcode='[ABCDGISTW]' 6566 ;; 6567hpux*) 6568 if test "$host_cpu" = ia64; then 6569 symcode='[ABCDEGRST]' 6570 fi 6571 ;; 6572irix* | nonstopux*) 6573 symcode='[BCDEGRST]' 6574 ;; 6575osf*) 6576 symcode='[BCDEGQRST]' 6577 ;; 6578solaris*) 6579 symcode='[BDRT]' 6580 ;; 6581sco3.2v5*) 6582 symcode='[DT]' 6583 ;; 6584sysv4.2uw2*) 6585 symcode='[DT]' 6586 ;; 6587sysv5* | sco5v6* | unixware* | OpenUNIX*) 6588 symcode='[ABDT]' 6589 ;; 6590sysv4) 6591 symcode='[DFNSTU]' 6592 ;; 6593esac 6594 6595# If we're using GNU nm, then use its standard symbol codes. 6596case `$NM -V 2>&1` in 6597*GNU* | *'with BFD'*) 6598 symcode='[ABCDGIRSTW]' ;; 6599esac 6600 6601# Transform an extracted symbol line into a proper C declaration. 6602# Some systems (esp. on ia64) link data and code symbols differently, 6603# so use this general approach. 6604lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6605 6606# Transform an extracted symbol line into symbol name and symbol address 6607lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6608lt_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'" 6609 6610# Handle CRLF in mingw tool chain 6611opt_cr= 6612case $build_os in 6613mingw*) 6614 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6615 ;; 6616esac 6617 6618# Try without a prefix underscore, then with it. 6619for ac_symprfx in "" "_"; do 6620 6621 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6622 symxfrm="\\1 $ac_symprfx\\2 \\2" 6623 6624 # Write the raw and C identifiers. 6625 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6626 # Fake it for dumpbin and say T for any non-static function 6627 # and D for any global variable. 6628 # Also find C++ and __fastcall symbols from MSVC++, 6629 # which start with @ or ?. 6630 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6631" {last_section=section; section=\$ 3};"\ 6632" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6633" \$ 0!~/External *\|/{next};"\ 6634" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6635" {if(hide[section]) next};"\ 6636" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6637" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6638" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6639" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6640" ' prfx=^$ac_symprfx" 6641 else 6642 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6643 fi 6644 6645 # Check to see that the pipe works correctly. 6646 pipe_works=no 6647 6648 rm -f conftest* 6649 cat > conftest.$ac_ext <<_LT_EOF 6650#ifdef __cplusplus 6651extern "C" { 6652#endif 6653char nm_test_var; 6654void nm_test_func(void); 6655void nm_test_func(void){} 6656#ifdef __cplusplus 6657} 6658#endif 6659int main(){nm_test_var='a';nm_test_func();return(0);} 6660_LT_EOF 6661 6662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6663 (eval $ac_compile) 2>&5 6664 ac_status=$? 6665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6666 test $ac_status = 0; }; then 6667 # Now try to grab the symbols. 6668 nlist=conftest.nm 6669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6670 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6671 ac_status=$? 6672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6673 test $ac_status = 0; } && test -s "$nlist"; then 6674 # Try sorting and uniquifying the output. 6675 if sort "$nlist" | uniq > "$nlist"T; then 6676 mv -f "$nlist"T "$nlist" 6677 else 6678 rm -f "$nlist"T 6679 fi 6680 6681 # Make sure that we snagged all the symbols we need. 6682 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6683 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6684 cat <<_LT_EOF > conftest.$ac_ext 6685#ifdef __cplusplus 6686extern "C" { 6687#endif 6688 6689_LT_EOF 6690 # Now generate the symbol file. 6691 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6692 6693 cat <<_LT_EOF >> conftest.$ac_ext 6694 6695/* The mapping between symbol names and symbols. */ 6696const struct { 6697 const char *name; 6698 void *address; 6699} 6700lt__PROGRAM__LTX_preloaded_symbols[] = 6701{ 6702 { "@PROGRAM@", (void *) 0 }, 6703_LT_EOF 6704 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6705 cat <<\_LT_EOF >> conftest.$ac_ext 6706 {0, (void *) 0} 6707}; 6708 6709/* This works around a problem in FreeBSD linker */ 6710#ifdef FREEBSD_WORKAROUND 6711static const void *lt_preloaded_setup() { 6712 return lt__PROGRAM__LTX_preloaded_symbols; 6713} 6714#endif 6715 6716#ifdef __cplusplus 6717} 6718#endif 6719_LT_EOF 6720 # Now try linking the two files. 6721 mv conftest.$ac_objext conftstm.$ac_objext 6722 lt_save_LIBS="$LIBS" 6723 lt_save_CFLAGS="$CFLAGS" 6724 LIBS="conftstm.$ac_objext" 6725 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6727 (eval $ac_link) 2>&5 6728 ac_status=$? 6729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6730 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6731 pipe_works=yes 6732 fi 6733 LIBS="$lt_save_LIBS" 6734 CFLAGS="$lt_save_CFLAGS" 6735 else 6736 echo "cannot find nm_test_func in $nlist" >&5 6737 fi 6738 else 6739 echo "cannot find nm_test_var in $nlist" >&5 6740 fi 6741 else 6742 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6743 fi 6744 else 6745 echo "$progname: failed program was:" >&5 6746 cat conftest.$ac_ext >&5 6747 fi 6748 rm -rf conftest* conftst* 6749 6750 # Do not use the global_symbol_pipe unless it works. 6751 if test "$pipe_works" = yes; then 6752 break 6753 else 6754 lt_cv_sys_global_symbol_pipe= 6755 fi 6756done 6757 6758fi 6759 6760if test -z "$lt_cv_sys_global_symbol_pipe"; then 6761 lt_cv_sys_global_symbol_to_cdecl= 6762fi 6763if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6765$as_echo "failed" >&6; } 6766else 6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6768$as_echo "ok" >&6; } 6769fi 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792# Check whether --enable-libtool-lock was given. 6793if test "${enable_libtool_lock+set}" = set; then : 6794 enableval=$enable_libtool_lock; 6795fi 6796 6797test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6798 6799# Some flags need to be propagated to the compiler or linker for good 6800# libtool support. 6801case $host in 6802ia64-*-hpux*) 6803 # Find out which ABI we are using. 6804 echo 'int i;' > conftest.$ac_ext 6805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6806 (eval $ac_compile) 2>&5 6807 ac_status=$? 6808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6809 test $ac_status = 0; }; then 6810 case `/usr/bin/file conftest.$ac_objext` in 6811 *ELF-32*) 6812 HPUX_IA64_MODE="32" 6813 ;; 6814 *ELF-64*) 6815 HPUX_IA64_MODE="64" 6816 ;; 6817 esac 6818 fi 6819 rm -rf conftest* 6820 ;; 6821*-*-irix6*) 6822 # Find out which ABI we are using. 6823 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6825 (eval $ac_compile) 2>&5 6826 ac_status=$? 6827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6828 test $ac_status = 0; }; then 6829 if test "$lt_cv_prog_gnu_ld" = yes; then 6830 case `/usr/bin/file conftest.$ac_objext` in 6831 *32-bit*) 6832 LD="${LD-ld} -melf32bsmip" 6833 ;; 6834 *N32*) 6835 LD="${LD-ld} -melf32bmipn32" 6836 ;; 6837 *64-bit*) 6838 LD="${LD-ld} -melf64bmip" 6839 ;; 6840 esac 6841 else 6842 case `/usr/bin/file conftest.$ac_objext` in 6843 *32-bit*) 6844 LD="${LD-ld} -32" 6845 ;; 6846 *N32*) 6847 LD="${LD-ld} -n32" 6848 ;; 6849 *64-bit*) 6850 LD="${LD-ld} -64" 6851 ;; 6852 esac 6853 fi 6854 fi 6855 rm -rf conftest* 6856 ;; 6857 6858x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6859s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6860 # Find out which ABI we are using. 6861 echo 'int i;' > conftest.$ac_ext 6862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6863 (eval $ac_compile) 2>&5 6864 ac_status=$? 6865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6866 test $ac_status = 0; }; then 6867 case `/usr/bin/file conftest.o` in 6868 *32-bit*) 6869 case $host in 6870 x86_64-*kfreebsd*-gnu) 6871 LD="${LD-ld} -m elf_i386_fbsd" 6872 ;; 6873 x86_64-*linux*) 6874 case `/usr/bin/file conftest.o` in 6875 *x86-64*) 6876 LD="${LD-ld} -m elf32_x86_64" 6877 ;; 6878 *) 6879 LD="${LD-ld} -m elf_i386" 6880 ;; 6881 esac 6882 ;; 6883 powerpc64le-*linux*) 6884 LD="${LD-ld} -m elf32lppclinux" 6885 ;; 6886 powerpc64-*linux*) 6887 LD="${LD-ld} -m elf32ppclinux" 6888 ;; 6889 s390x-*linux*) 6890 LD="${LD-ld} -m elf_s390" 6891 ;; 6892 sparc64-*linux*) 6893 LD="${LD-ld} -m elf32_sparc" 6894 ;; 6895 esac 6896 ;; 6897 *64-bit*) 6898 case $host in 6899 x86_64-*kfreebsd*-gnu) 6900 LD="${LD-ld} -m elf_x86_64_fbsd" 6901 ;; 6902 x86_64-*linux*) 6903 LD="${LD-ld} -m elf_x86_64" 6904 ;; 6905 powerpcle-*linux*) 6906 LD="${LD-ld} -m elf64lppc" 6907 ;; 6908 powerpc-*linux*) 6909 LD="${LD-ld} -m elf64ppc" 6910 ;; 6911 s390*-*linux*|s390*-*tpf*) 6912 LD="${LD-ld} -m elf64_s390" 6913 ;; 6914 sparc*-*linux*) 6915 LD="${LD-ld} -m elf64_sparc" 6916 ;; 6917 esac 6918 ;; 6919 esac 6920 fi 6921 rm -rf conftest* 6922 ;; 6923 6924*-*-sco3.2v5*) 6925 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6926 SAVE_CFLAGS="$CFLAGS" 6927 CFLAGS="$CFLAGS -belf" 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6929$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6930if test "${lt_cv_cc_needs_belf+set}" = set; then : 6931 $as_echo_n "(cached) " >&6 6932else 6933 ac_ext=c 6934ac_cpp='$CPP $CPPFLAGS' 6935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6937ac_compiler_gnu=$ac_cv_c_compiler_gnu 6938 6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6940/* end confdefs.h. */ 6941 6942int 6943main () 6944{ 6945 6946 ; 6947 return 0; 6948} 6949_ACEOF 6950if ac_fn_c_try_link "$LINENO"; then : 6951 lt_cv_cc_needs_belf=yes 6952else 6953 lt_cv_cc_needs_belf=no 6954fi 6955rm -f core conftest.err conftest.$ac_objext \ 6956 conftest$ac_exeext conftest.$ac_ext 6957 ac_ext=c 6958ac_cpp='$CPP $CPPFLAGS' 6959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6961ac_compiler_gnu=$ac_cv_c_compiler_gnu 6962 6963fi 6964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6965$as_echo "$lt_cv_cc_needs_belf" >&6; } 6966 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6967 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6968 CFLAGS="$SAVE_CFLAGS" 6969 fi 6970 ;; 6971sparc*-*solaris*) 6972 # Find out which ABI we are using. 6973 echo 'int i;' > conftest.$ac_ext 6974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6975 (eval $ac_compile) 2>&5 6976 ac_status=$? 6977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6978 test $ac_status = 0; }; then 6979 case `/usr/bin/file conftest.o` in 6980 *64-bit*) 6981 case $lt_cv_prog_gnu_ld in 6982 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6983 *) 6984 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6985 LD="${LD-ld} -64" 6986 fi 6987 ;; 6988 esac 6989 ;; 6990 esac 6991 fi 6992 rm -rf conftest* 6993 ;; 6994esac 6995 6996need_locks="$enable_libtool_lock" 6997 6998 6999 case $host_os in 7000 rhapsody* | darwin*) 7001 if test -n "$ac_tool_prefix"; then 7002 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7003set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7005$as_echo_n "checking for $ac_word... " >&6; } 7006if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 7007 $as_echo_n "(cached) " >&6 7008else 7009 if test -n "$DSYMUTIL"; then 7010 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7011else 7012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7013for as_dir in $PATH 7014do 7015 IFS=$as_save_IFS 7016 test -z "$as_dir" && as_dir=. 7017 for ac_exec_ext in '' $ac_executable_extensions; do 7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7019 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7021 break 2 7022 fi 7023done 7024 done 7025IFS=$as_save_IFS 7026 7027fi 7028fi 7029DSYMUTIL=$ac_cv_prog_DSYMUTIL 7030if test -n "$DSYMUTIL"; then 7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7032$as_echo "$DSYMUTIL" >&6; } 7033else 7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7035$as_echo "no" >&6; } 7036fi 7037 7038 7039fi 7040if test -z "$ac_cv_prog_DSYMUTIL"; then 7041 ac_ct_DSYMUTIL=$DSYMUTIL 7042 # Extract the first word of "dsymutil", so it can be a program name with args. 7043set dummy dsymutil; ac_word=$2 7044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7045$as_echo_n "checking for $ac_word... " >&6; } 7046if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 7047 $as_echo_n "(cached) " >&6 7048else 7049 if test -n "$ac_ct_DSYMUTIL"; then 7050 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7051else 7052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7053for as_dir in $PATH 7054do 7055 IFS=$as_save_IFS 7056 test -z "$as_dir" && as_dir=. 7057 for ac_exec_ext in '' $ac_executable_extensions; do 7058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7059 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7061 break 2 7062 fi 7063done 7064 done 7065IFS=$as_save_IFS 7066 7067fi 7068fi 7069ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7070if test -n "$ac_ct_DSYMUTIL"; then 7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7072$as_echo "$ac_ct_DSYMUTIL" >&6; } 7073else 7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7075$as_echo "no" >&6; } 7076fi 7077 7078 if test "x$ac_ct_DSYMUTIL" = x; then 7079 DSYMUTIL=":" 7080 else 7081 case $cross_compiling:$ac_tool_warned in 7082yes:) 7083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7085ac_tool_warned=yes ;; 7086esac 7087 DSYMUTIL=$ac_ct_DSYMUTIL 7088 fi 7089else 7090 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7091fi 7092 7093 if test -n "$ac_tool_prefix"; then 7094 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7095set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7097$as_echo_n "checking for $ac_word... " >&6; } 7098if test "${ac_cv_prog_NMEDIT+set}" = set; then : 7099 $as_echo_n "(cached) " >&6 7100else 7101 if test -n "$NMEDIT"; then 7102 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7103else 7104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7105for as_dir in $PATH 7106do 7107 IFS=$as_save_IFS 7108 test -z "$as_dir" && as_dir=. 7109 for ac_exec_ext in '' $ac_executable_extensions; do 7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7111 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7113 break 2 7114 fi 7115done 7116 done 7117IFS=$as_save_IFS 7118 7119fi 7120fi 7121NMEDIT=$ac_cv_prog_NMEDIT 7122if test -n "$NMEDIT"; then 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7124$as_echo "$NMEDIT" >&6; } 7125else 7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7127$as_echo "no" >&6; } 7128fi 7129 7130 7131fi 7132if test -z "$ac_cv_prog_NMEDIT"; then 7133 ac_ct_NMEDIT=$NMEDIT 7134 # Extract the first word of "nmedit", so it can be a program name with args. 7135set dummy nmedit; ac_word=$2 7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7137$as_echo_n "checking for $ac_word... " >&6; } 7138if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 7139 $as_echo_n "(cached) " >&6 7140else 7141 if test -n "$ac_ct_NMEDIT"; then 7142 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7143else 7144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7145for as_dir in $PATH 7146do 7147 IFS=$as_save_IFS 7148 test -z "$as_dir" && as_dir=. 7149 for ac_exec_ext in '' $ac_executable_extensions; do 7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7151 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7153 break 2 7154 fi 7155done 7156 done 7157IFS=$as_save_IFS 7158 7159fi 7160fi 7161ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7162if test -n "$ac_ct_NMEDIT"; then 7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7164$as_echo "$ac_ct_NMEDIT" >&6; } 7165else 7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7167$as_echo "no" >&6; } 7168fi 7169 7170 if test "x$ac_ct_NMEDIT" = x; then 7171 NMEDIT=":" 7172 else 7173 case $cross_compiling:$ac_tool_warned in 7174yes:) 7175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7177ac_tool_warned=yes ;; 7178esac 7179 NMEDIT=$ac_ct_NMEDIT 7180 fi 7181else 7182 NMEDIT="$ac_cv_prog_NMEDIT" 7183fi 7184 7185 if test -n "$ac_tool_prefix"; then 7186 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7187set dummy ${ac_tool_prefix}lipo; ac_word=$2 7188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7189$as_echo_n "checking for $ac_word... " >&6; } 7190if test "${ac_cv_prog_LIPO+set}" = set; then : 7191 $as_echo_n "(cached) " >&6 7192else 7193 if test -n "$LIPO"; then 7194 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7195else 7196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7197for as_dir in $PATH 7198do 7199 IFS=$as_save_IFS 7200 test -z "$as_dir" && as_dir=. 7201 for ac_exec_ext in '' $ac_executable_extensions; do 7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7203 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7205 break 2 7206 fi 7207done 7208 done 7209IFS=$as_save_IFS 7210 7211fi 7212fi 7213LIPO=$ac_cv_prog_LIPO 7214if test -n "$LIPO"; then 7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7216$as_echo "$LIPO" >&6; } 7217else 7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7219$as_echo "no" >&6; } 7220fi 7221 7222 7223fi 7224if test -z "$ac_cv_prog_LIPO"; then 7225 ac_ct_LIPO=$LIPO 7226 # Extract the first word of "lipo", so it can be a program name with args. 7227set dummy lipo; ac_word=$2 7228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7229$as_echo_n "checking for $ac_word... " >&6; } 7230if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 7231 $as_echo_n "(cached) " >&6 7232else 7233 if test -n "$ac_ct_LIPO"; then 7234 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7235else 7236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7237for as_dir in $PATH 7238do 7239 IFS=$as_save_IFS 7240 test -z "$as_dir" && as_dir=. 7241 for ac_exec_ext in '' $ac_executable_extensions; do 7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7243 ac_cv_prog_ac_ct_LIPO="lipo" 7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7245 break 2 7246 fi 7247done 7248 done 7249IFS=$as_save_IFS 7250 7251fi 7252fi 7253ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7254if test -n "$ac_ct_LIPO"; then 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7256$as_echo "$ac_ct_LIPO" >&6; } 7257else 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7259$as_echo "no" >&6; } 7260fi 7261 7262 if test "x$ac_ct_LIPO" = x; then 7263 LIPO=":" 7264 else 7265 case $cross_compiling:$ac_tool_warned in 7266yes:) 7267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7269ac_tool_warned=yes ;; 7270esac 7271 LIPO=$ac_ct_LIPO 7272 fi 7273else 7274 LIPO="$ac_cv_prog_LIPO" 7275fi 7276 7277 if test -n "$ac_tool_prefix"; then 7278 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7279set dummy ${ac_tool_prefix}otool; ac_word=$2 7280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7281$as_echo_n "checking for $ac_word... " >&6; } 7282if test "${ac_cv_prog_OTOOL+set}" = set; then : 7283 $as_echo_n "(cached) " >&6 7284else 7285 if test -n "$OTOOL"; then 7286 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7287else 7288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7289for as_dir in $PATH 7290do 7291 IFS=$as_save_IFS 7292 test -z "$as_dir" && as_dir=. 7293 for ac_exec_ext in '' $ac_executable_extensions; do 7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7295 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7297 break 2 7298 fi 7299done 7300 done 7301IFS=$as_save_IFS 7302 7303fi 7304fi 7305OTOOL=$ac_cv_prog_OTOOL 7306if test -n "$OTOOL"; then 7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7308$as_echo "$OTOOL" >&6; } 7309else 7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7311$as_echo "no" >&6; } 7312fi 7313 7314 7315fi 7316if test -z "$ac_cv_prog_OTOOL"; then 7317 ac_ct_OTOOL=$OTOOL 7318 # Extract the first word of "otool", so it can be a program name with args. 7319set dummy otool; ac_word=$2 7320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7321$as_echo_n "checking for $ac_word... " >&6; } 7322if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7323 $as_echo_n "(cached) " >&6 7324else 7325 if test -n "$ac_ct_OTOOL"; then 7326 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7327else 7328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7329for as_dir in $PATH 7330do 7331 IFS=$as_save_IFS 7332 test -z "$as_dir" && as_dir=. 7333 for ac_exec_ext in '' $ac_executable_extensions; do 7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7335 ac_cv_prog_ac_ct_OTOOL="otool" 7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7337 break 2 7338 fi 7339done 7340 done 7341IFS=$as_save_IFS 7342 7343fi 7344fi 7345ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7346if test -n "$ac_ct_OTOOL"; then 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7348$as_echo "$ac_ct_OTOOL" >&6; } 7349else 7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7351$as_echo "no" >&6; } 7352fi 7353 7354 if test "x$ac_ct_OTOOL" = x; then 7355 OTOOL=":" 7356 else 7357 case $cross_compiling:$ac_tool_warned in 7358yes:) 7359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7361ac_tool_warned=yes ;; 7362esac 7363 OTOOL=$ac_ct_OTOOL 7364 fi 7365else 7366 OTOOL="$ac_cv_prog_OTOOL" 7367fi 7368 7369 if test -n "$ac_tool_prefix"; then 7370 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7371set dummy ${ac_tool_prefix}otool64; ac_word=$2 7372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7373$as_echo_n "checking for $ac_word... " >&6; } 7374if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7375 $as_echo_n "(cached) " >&6 7376else 7377 if test -n "$OTOOL64"; then 7378 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7379else 7380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7381for as_dir in $PATH 7382do 7383 IFS=$as_save_IFS 7384 test -z "$as_dir" && as_dir=. 7385 for ac_exec_ext in '' $ac_executable_extensions; do 7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7387 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7389 break 2 7390 fi 7391done 7392 done 7393IFS=$as_save_IFS 7394 7395fi 7396fi 7397OTOOL64=$ac_cv_prog_OTOOL64 7398if test -n "$OTOOL64"; then 7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7400$as_echo "$OTOOL64" >&6; } 7401else 7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7403$as_echo "no" >&6; } 7404fi 7405 7406 7407fi 7408if test -z "$ac_cv_prog_OTOOL64"; then 7409 ac_ct_OTOOL64=$OTOOL64 7410 # Extract the first word of "otool64", so it can be a program name with args. 7411set dummy otool64; ac_word=$2 7412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7413$as_echo_n "checking for $ac_word... " >&6; } 7414if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7415 $as_echo_n "(cached) " >&6 7416else 7417 if test -n "$ac_ct_OTOOL64"; then 7418 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7419else 7420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7421for as_dir in $PATH 7422do 7423 IFS=$as_save_IFS 7424 test -z "$as_dir" && as_dir=. 7425 for ac_exec_ext in '' $ac_executable_extensions; do 7426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7427 ac_cv_prog_ac_ct_OTOOL64="otool64" 7428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7429 break 2 7430 fi 7431done 7432 done 7433IFS=$as_save_IFS 7434 7435fi 7436fi 7437ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7438if test -n "$ac_ct_OTOOL64"; then 7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7440$as_echo "$ac_ct_OTOOL64" >&6; } 7441else 7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7443$as_echo "no" >&6; } 7444fi 7445 7446 if test "x$ac_ct_OTOOL64" = x; then 7447 OTOOL64=":" 7448 else 7449 case $cross_compiling:$ac_tool_warned in 7450yes:) 7451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7453ac_tool_warned=yes ;; 7454esac 7455 OTOOL64=$ac_ct_OTOOL64 7456 fi 7457else 7458 OTOOL64="$ac_cv_prog_OTOOL64" 7459fi 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7488$as_echo_n "checking for -single_module linker flag... " >&6; } 7489if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7490 $as_echo_n "(cached) " >&6 7491else 7492 lt_cv_apple_cc_single_mod=no 7493 if test -z "${LT_MULTI_MODULE}"; then 7494 # By default we will add the -single_module flag. You can override 7495 # by either setting the environment variable LT_MULTI_MODULE 7496 # non-empty at configure time, or by adding -multi_module to the 7497 # link flags. 7498 rm -rf libconftest.dylib* 7499 echo "int foo(void){return 1;}" > conftest.c 7500 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7501-dynamiclib -Wl,-single_module conftest.c" >&5 7502 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7503 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7504 _lt_result=$? 7505 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7506 lt_cv_apple_cc_single_mod=yes 7507 else 7508 cat conftest.err >&5 7509 fi 7510 rm -rf libconftest.dylib* 7511 rm -f conftest.* 7512 fi 7513fi 7514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7515$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7517$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7518if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7519 $as_echo_n "(cached) " >&6 7520else 7521 lt_cv_ld_exported_symbols_list=no 7522 save_LDFLAGS=$LDFLAGS 7523 echo "_main" > conftest.sym 7524 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7526/* end confdefs.h. */ 7527 7528int 7529main () 7530{ 7531 7532 ; 7533 return 0; 7534} 7535_ACEOF 7536if ac_fn_c_try_link "$LINENO"; then : 7537 lt_cv_ld_exported_symbols_list=yes 7538else 7539 lt_cv_ld_exported_symbols_list=no 7540fi 7541rm -f core conftest.err conftest.$ac_objext \ 7542 conftest$ac_exeext conftest.$ac_ext 7543 LDFLAGS="$save_LDFLAGS" 7544 7545fi 7546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7547$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7549$as_echo_n "checking for -force_load linker flag... " >&6; } 7550if test "${lt_cv_ld_force_load+set}" = set; then : 7551 $as_echo_n "(cached) " >&6 7552else 7553 lt_cv_ld_force_load=no 7554 cat > conftest.c << _LT_EOF 7555int forced_loaded() { return 2;} 7556_LT_EOF 7557 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7558 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7559 echo "$AR cru libconftest.a conftest.o" >&5 7560 $AR cru libconftest.a conftest.o 2>&5 7561 cat > conftest.c << _LT_EOF 7562int main() { return 0;} 7563_LT_EOF 7564 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7565 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7566 _lt_result=$? 7567 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7568 lt_cv_ld_force_load=yes 7569 else 7570 cat conftest.err >&5 7571 fi 7572 rm -f conftest.err libconftest.a conftest conftest.c 7573 rm -rf conftest.dSYM 7574 7575fi 7576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7577$as_echo "$lt_cv_ld_force_load" >&6; } 7578 case $host_os in 7579 rhapsody* | darwin1.[012]) 7580 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7581 darwin1.*) 7582 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7583 darwin*) # darwin 5.x on 7584 # if running on 10.5 or later, the deployment target defaults 7585 # to the OS version, if on x86, and 10.4, the deployment 7586 # target defaults to 10.4. Don't you love it? 7587 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7588 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7589 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7590 10.[012]*) 7591 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7592 10.*) 7593 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7594 esac 7595 ;; 7596 esac 7597 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7598 _lt_dar_single_mod='$single_module' 7599 fi 7600 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7601 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7602 else 7603 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7604 fi 7605 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7606 _lt_dsymutil='~$DSYMUTIL $lib || :' 7607 else 7608 _lt_dsymutil= 7609 fi 7610 ;; 7611 esac 7612 7613for ac_header in dlfcn.h 7614do : 7615 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7616" 7617if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7618 cat >>confdefs.h <<_ACEOF 7619#define HAVE_DLFCN_H 1 7620_ACEOF 7621 7622fi 7623 7624done 7625 7626 7627 7628 7629 7630 7631# Set options 7632 7633 7634 7635 7636 enable_win32_dll=no 7637 7638 7639 # Check whether --enable-shared was given. 7640if test "${enable_shared+set}" = set; then : 7641 enableval=$enable_shared; p=${PACKAGE-default} 7642 case $enableval in 7643 yes) enable_shared=yes ;; 7644 no) enable_shared=no ;; 7645 *) 7646 enable_shared=no 7647 # Look at the argument we got. We use all the common list separators. 7648 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7649 for pkg in $enableval; do 7650 IFS="$lt_save_ifs" 7651 if test "X$pkg" = "X$p"; then 7652 enable_shared=yes 7653 fi 7654 done 7655 IFS="$lt_save_ifs" 7656 ;; 7657 esac 7658else 7659 enable_shared=yes 7660fi 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 # Check whether --enable-static was given. 7671if test "${enable_static+set}" = set; then : 7672 enableval=$enable_static; p=${PACKAGE-default} 7673 case $enableval in 7674 yes) enable_static=yes ;; 7675 no) enable_static=no ;; 7676 *) 7677 enable_static=no 7678 # Look at the argument we got. We use all the common list separators. 7679 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7680 for pkg in $enableval; do 7681 IFS="$lt_save_ifs" 7682 if test "X$pkg" = "X$p"; then 7683 enable_static=yes 7684 fi 7685 done 7686 IFS="$lt_save_ifs" 7687 ;; 7688 esac 7689else 7690 enable_static=yes 7691fi 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702# Check whether --with-pic was given. 7703if test "${with_pic+set}" = set; then : 7704 withval=$with_pic; pic_mode="$withval" 7705else 7706 pic_mode=default 7707fi 7708 7709 7710test -z "$pic_mode" && pic_mode=default 7711 7712 7713 7714 7715 7716 7717 7718 # Check whether --enable-fast-install was given. 7719if test "${enable_fast_install+set}" = set; then : 7720 enableval=$enable_fast_install; p=${PACKAGE-default} 7721 case $enableval in 7722 yes) enable_fast_install=yes ;; 7723 no) enable_fast_install=no ;; 7724 *) 7725 enable_fast_install=no 7726 # Look at the argument we got. We use all the common list separators. 7727 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7728 for pkg in $enableval; do 7729 IFS="$lt_save_ifs" 7730 if test "X$pkg" = "X$p"; then 7731 enable_fast_install=yes 7732 fi 7733 done 7734 IFS="$lt_save_ifs" 7735 ;; 7736 esac 7737else 7738 enable_fast_install=yes 7739fi 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751# This can be used to rebuild libtool when needed 7752LIBTOOL_DEPS="$ltmain" 7753 7754# Always use our own libtool. 7755LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782test -z "$LN_S" && LN_S="ln -s" 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797if test -n "${ZSH_VERSION+set}" ; then 7798 setopt NO_GLOB_SUBST 7799fi 7800 7801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7802$as_echo_n "checking for objdir... " >&6; } 7803if test "${lt_cv_objdir+set}" = set; then : 7804 $as_echo_n "(cached) " >&6 7805else 7806 rm -f .libs 2>/dev/null 7807mkdir .libs 2>/dev/null 7808if test -d .libs; then 7809 lt_cv_objdir=.libs 7810else 7811 # MS-DOS does not allow filenames that begin with a dot. 7812 lt_cv_objdir=_libs 7813fi 7814rmdir .libs 2>/dev/null 7815fi 7816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7817$as_echo "$lt_cv_objdir" >&6; } 7818objdir=$lt_cv_objdir 7819 7820 7821 7822 7823 7824cat >>confdefs.h <<_ACEOF 7825#define LT_OBJDIR "$lt_cv_objdir/" 7826_ACEOF 7827 7828 7829 7830 7831case $host_os in 7832aix3*) 7833 # AIX sometimes has problems with the GCC collect2 program. For some 7834 # reason, if we set the COLLECT_NAMES environment variable, the problems 7835 # vanish in a puff of smoke. 7836 if test "X${COLLECT_NAMES+set}" != Xset; then 7837 COLLECT_NAMES= 7838 export COLLECT_NAMES 7839 fi 7840 ;; 7841esac 7842 7843# Global variables: 7844ofile=libtool 7845can_build_shared=yes 7846 7847# All known linkers require a `.a' archive for static linking (except MSVC, 7848# which needs '.lib'). 7849libext=a 7850 7851with_gnu_ld="$lt_cv_prog_gnu_ld" 7852 7853old_CC="$CC" 7854old_CFLAGS="$CFLAGS" 7855 7856# Set sane defaults for various variables 7857test -z "$CC" && CC=cc 7858test -z "$LTCC" && LTCC=$CC 7859test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7860test -z "$LD" && LD=ld 7861test -z "$ac_objext" && ac_objext=o 7862 7863for cc_temp in $compiler""; do 7864 case $cc_temp in 7865 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7866 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7867 \-*) ;; 7868 *) break;; 7869 esac 7870done 7871cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7872 7873 7874# Only perform the check for file, if the check method requires it 7875test -z "$MAGIC_CMD" && MAGIC_CMD=file 7876case $deplibs_check_method in 7877file_magic*) 7878 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7880$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7881if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7882 $as_echo_n "(cached) " >&6 7883else 7884 case $MAGIC_CMD in 7885[\\/*] | ?:[\\/]*) 7886 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7887 ;; 7888*) 7889 lt_save_MAGIC_CMD="$MAGIC_CMD" 7890 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7891 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7892 for ac_dir in $ac_dummy; do 7893 IFS="$lt_save_ifs" 7894 test -z "$ac_dir" && ac_dir=. 7895 if test -f $ac_dir/${ac_tool_prefix}file; then 7896 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7897 if test -n "$file_magic_test_file"; then 7898 case $deplibs_check_method in 7899 "file_magic "*) 7900 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7901 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7902 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7903 $EGREP "$file_magic_regex" > /dev/null; then 7904 : 7905 else 7906 cat <<_LT_EOF 1>&2 7907 7908*** Warning: the command libtool uses to detect shared libraries, 7909*** $file_magic_cmd, produces output that libtool cannot recognize. 7910*** The result is that libtool may fail to recognize shared libraries 7911*** as such. This will affect the creation of libtool libraries that 7912*** depend on shared libraries, but programs linked with such libtool 7913*** libraries will work regardless of this problem. Nevertheless, you 7914*** may want to report the problem to your system manager and/or to 7915*** bug-libtool@gnu.org 7916 7917_LT_EOF 7918 fi ;; 7919 esac 7920 fi 7921 break 7922 fi 7923 done 7924 IFS="$lt_save_ifs" 7925 MAGIC_CMD="$lt_save_MAGIC_CMD" 7926 ;; 7927esac 7928fi 7929 7930MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7931if test -n "$MAGIC_CMD"; then 7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7933$as_echo "$MAGIC_CMD" >&6; } 7934else 7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7936$as_echo "no" >&6; } 7937fi 7938 7939 7940 7941 7942 7943if test -z "$lt_cv_path_MAGIC_CMD"; then 7944 if test -n "$ac_tool_prefix"; then 7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7946$as_echo_n "checking for file... " >&6; } 7947if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7948 $as_echo_n "(cached) " >&6 7949else 7950 case $MAGIC_CMD in 7951[\\/*] | ?:[\\/]*) 7952 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7953 ;; 7954*) 7955 lt_save_MAGIC_CMD="$MAGIC_CMD" 7956 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7957 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7958 for ac_dir in $ac_dummy; do 7959 IFS="$lt_save_ifs" 7960 test -z "$ac_dir" && ac_dir=. 7961 if test -f $ac_dir/file; then 7962 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7963 if test -n "$file_magic_test_file"; then 7964 case $deplibs_check_method in 7965 "file_magic "*) 7966 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7967 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7968 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7969 $EGREP "$file_magic_regex" > /dev/null; then 7970 : 7971 else 7972 cat <<_LT_EOF 1>&2 7973 7974*** Warning: the command libtool uses to detect shared libraries, 7975*** $file_magic_cmd, produces output that libtool cannot recognize. 7976*** The result is that libtool may fail to recognize shared libraries 7977*** as such. This will affect the creation of libtool libraries that 7978*** depend on shared libraries, but programs linked with such libtool 7979*** libraries will work regardless of this problem. Nevertheless, you 7980*** may want to report the problem to your system manager and/or to 7981*** bug-libtool@gnu.org 7982 7983_LT_EOF 7984 fi ;; 7985 esac 7986 fi 7987 break 7988 fi 7989 done 7990 IFS="$lt_save_ifs" 7991 MAGIC_CMD="$lt_save_MAGIC_CMD" 7992 ;; 7993esac 7994fi 7995 7996MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7997if test -n "$MAGIC_CMD"; then 7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7999$as_echo "$MAGIC_CMD" >&6; } 8000else 8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8002$as_echo "no" >&6; } 8003fi 8004 8005 8006 else 8007 MAGIC_CMD=: 8008 fi 8009fi 8010 8011 fi 8012 ;; 8013esac 8014 8015# Use C for the default configuration in the libtool script 8016 8017lt_save_CC="$CC" 8018ac_ext=c 8019ac_cpp='$CPP $CPPFLAGS' 8020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8022ac_compiler_gnu=$ac_cv_c_compiler_gnu 8023 8024 8025# Source file extension for C test sources. 8026ac_ext=c 8027 8028# Object file extension for compiled C test sources. 8029objext=o 8030objext=$objext 8031 8032# Code to be used in simple compile tests 8033lt_simple_compile_test_code="int some_variable = 0;" 8034 8035# Code to be used in simple link tests 8036lt_simple_link_test_code='int main(){return(0);}' 8037 8038 8039 8040 8041 8042 8043 8044# If no C compiler was specified, use CC. 8045LTCC=${LTCC-"$CC"} 8046 8047# If no C compiler flags were specified, use CFLAGS. 8048LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8049 8050# Allow CC to be a program name with arguments. 8051compiler=$CC 8052 8053# Save the default compiler, since it gets overwritten when the other 8054# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8055compiler_DEFAULT=$CC 8056 8057# save warnings/boilerplate of simple test code 8058ac_outfile=conftest.$ac_objext 8059echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8060eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8061_lt_compiler_boilerplate=`cat conftest.err` 8062$RM conftest* 8063 8064ac_outfile=conftest.$ac_objext 8065echo "$lt_simple_link_test_code" >conftest.$ac_ext 8066eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8067_lt_linker_boilerplate=`cat conftest.err` 8068$RM -r conftest* 8069 8070 8071## CAVEAT EMPTOR: 8072## There is no encapsulation within the following macros, do not change 8073## the running order or otherwise move them around unless you know exactly 8074## what you are doing... 8075if test -n "$compiler"; then 8076 8077lt_prog_compiler_no_builtin_flag= 8078 8079if test "$GCC" = yes; then 8080 case $cc_basename in 8081 nvcc*) 8082 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8083 *) 8084 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8085 esac 8086 8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8088$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8089if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8090 $as_echo_n "(cached) " >&6 8091else 8092 lt_cv_prog_compiler_rtti_exceptions=no 8093 ac_outfile=conftest.$ac_objext 8094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8095 lt_compiler_flag="-fno-rtti -fno-exceptions" 8096 # Insert the option either (1) after the last *FLAGS variable, or 8097 # (2) before a word containing "conftest.", or (3) at the end. 8098 # Note that $ac_compile itself does not contain backslashes and begins 8099 # with a dollar sign (not a hyphen), so the echo should work correctly. 8100 # The option is referenced via a variable to avoid confusing sed. 8101 lt_compile=`echo "$ac_compile" | $SED \ 8102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8104 -e 's:$: $lt_compiler_flag:'` 8105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8106 (eval "$lt_compile" 2>conftest.err) 8107 ac_status=$? 8108 cat conftest.err >&5 8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8110 if (exit $ac_status) && test -s "$ac_outfile"; then 8111 # The compiler can only warn and ignore the option if not recognized 8112 # So say no if there are warnings other than the usual output. 8113 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8115 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8116 lt_cv_prog_compiler_rtti_exceptions=yes 8117 fi 8118 fi 8119 $RM conftest* 8120 8121fi 8122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8123$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8124 8125if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8126 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8127else 8128 : 8129fi 8130 8131fi 8132 8133 8134 8135 8136 8137 8138 lt_prog_compiler_wl= 8139lt_prog_compiler_pic= 8140lt_prog_compiler_static= 8141 8142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8143$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8144 8145 if test "$GCC" = yes; then 8146 lt_prog_compiler_wl='-Wl,' 8147 lt_prog_compiler_static='-static' 8148 8149 case $host_os in 8150 aix*) 8151 # All AIX code is PIC. 8152 if test "$host_cpu" = ia64; then 8153 # AIX 5 now supports IA64 processor 8154 lt_prog_compiler_static='-Bstatic' 8155 fi 8156 lt_prog_compiler_pic='-fPIC' 8157 ;; 8158 8159 amigaos*) 8160 case $host_cpu in 8161 powerpc) 8162 # see comment about AmigaOS4 .so support 8163 lt_prog_compiler_pic='-fPIC' 8164 ;; 8165 m68k) 8166 # FIXME: we need at least 68020 code to build shared libraries, but 8167 # adding the `-m68020' flag to GCC prevents building anything better, 8168 # like `-m68040'. 8169 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8170 ;; 8171 esac 8172 ;; 8173 8174 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8175 # PIC is the default for these OSes. 8176 ;; 8177 8178 mingw* | cygwin* | pw32* | os2* | cegcc*) 8179 # This hack is so that the source file can tell whether it is being 8180 # built for inclusion in a dll (and should export symbols for example). 8181 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8182 # (--disable-auto-import) libraries 8183 lt_prog_compiler_pic='-DDLL_EXPORT' 8184 ;; 8185 8186 darwin* | rhapsody*) 8187 # PIC is the default on this platform 8188 # Common symbols not allowed in MH_DYLIB files 8189 lt_prog_compiler_pic='-fno-common' 8190 ;; 8191 8192 haiku*) 8193 # PIC is the default for Haiku. 8194 # The "-static" flag exists, but is broken. 8195 lt_prog_compiler_static= 8196 ;; 8197 8198 hpux*) 8199 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8200 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8201 # sets the default TLS model and affects inlining. 8202 case $host_cpu in 8203 hppa*64*) 8204 # +Z the default 8205 ;; 8206 *) 8207 lt_prog_compiler_pic='-fPIC' 8208 ;; 8209 esac 8210 ;; 8211 8212 interix[3-9]*) 8213 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8214 # Instead, we relocate shared libraries at runtime. 8215 ;; 8216 8217 msdosdjgpp*) 8218 # Just because we use GCC doesn't mean we suddenly get shared libraries 8219 # on systems that don't support them. 8220 lt_prog_compiler_can_build_shared=no 8221 enable_shared=no 8222 ;; 8223 8224 *nto* | *qnx*) 8225 # QNX uses GNU C++, but need to define -shared option too, otherwise 8226 # it will coredump. 8227 lt_prog_compiler_pic='-fPIC -shared' 8228 ;; 8229 8230 sysv4*MP*) 8231 if test -d /usr/nec; then 8232 lt_prog_compiler_pic=-Kconform_pic 8233 fi 8234 ;; 8235 8236 *) 8237 lt_prog_compiler_pic='-fPIC' 8238 ;; 8239 esac 8240 8241 case $cc_basename in 8242 nvcc*) # Cuda Compiler Driver 2.2 8243 lt_prog_compiler_wl='-Xlinker ' 8244 lt_prog_compiler_pic='-Xcompiler -fPIC' 8245 ;; 8246 esac 8247 else 8248 # PORTME Check for flag to pass linker flags through the system compiler. 8249 case $host_os in 8250 aix*) 8251 lt_prog_compiler_wl='-Wl,' 8252 if test "$host_cpu" = ia64; then 8253 # AIX 5 now supports IA64 processor 8254 lt_prog_compiler_static='-Bstatic' 8255 else 8256 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8257 fi 8258 ;; 8259 8260 mingw* | cygwin* | pw32* | os2* | cegcc*) 8261 # This hack is so that the source file can tell whether it is being 8262 # built for inclusion in a dll (and should export symbols for example). 8263 lt_prog_compiler_pic='-DDLL_EXPORT' 8264 ;; 8265 8266 hpux9* | hpux10* | hpux11*) 8267 lt_prog_compiler_wl='-Wl,' 8268 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8269 # not for PA HP-UX. 8270 case $host_cpu in 8271 hppa*64*|ia64*) 8272 # +Z the default 8273 ;; 8274 *) 8275 lt_prog_compiler_pic='+Z' 8276 ;; 8277 esac 8278 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8279 lt_prog_compiler_static='${wl}-a ${wl}archive' 8280 ;; 8281 8282 irix5* | irix6* | nonstopux*) 8283 lt_prog_compiler_wl='-Wl,' 8284 # PIC (with -KPIC) is the default. 8285 lt_prog_compiler_static='-non_shared' 8286 ;; 8287 8288 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8289 case $cc_basename in 8290 # old Intel for x86_64 which still supported -KPIC. 8291 ecc*) 8292 lt_prog_compiler_wl='-Wl,' 8293 lt_prog_compiler_pic='-KPIC' 8294 lt_prog_compiler_static='-static' 8295 ;; 8296 # icc used to be incompatible with GCC. 8297 # ICC 10 doesn't accept -KPIC any more. 8298 icc* | ifort*) 8299 lt_prog_compiler_wl='-Wl,' 8300 lt_prog_compiler_pic='-fPIC' 8301 lt_prog_compiler_static='-static' 8302 ;; 8303 # Lahey Fortran 8.1. 8304 lf95*) 8305 lt_prog_compiler_wl='-Wl,' 8306 lt_prog_compiler_pic='--shared' 8307 lt_prog_compiler_static='--static' 8308 ;; 8309 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8310 # Portland Group compilers (*not* the Pentium gcc compiler, 8311 # which looks to be a dead project) 8312 lt_prog_compiler_wl='-Wl,' 8313 lt_prog_compiler_pic='-fpic' 8314 lt_prog_compiler_static='-Bstatic' 8315 ;; 8316 ccc*) 8317 lt_prog_compiler_wl='-Wl,' 8318 # All Alpha code is PIC. 8319 lt_prog_compiler_static='-non_shared' 8320 ;; 8321 xl* | bgxl* | bgf* | mpixl*) 8322 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8323 lt_prog_compiler_wl='-Wl,' 8324 lt_prog_compiler_pic='-qpic' 8325 lt_prog_compiler_static='-qstaticlink' 8326 ;; 8327 *) 8328 case `$CC -V 2>&1 | sed 5q` in 8329 *Sun\ F* | *Sun*Fortran*) 8330 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8331 lt_prog_compiler_pic='-KPIC' 8332 lt_prog_compiler_static='-Bstatic' 8333 lt_prog_compiler_wl='' 8334 ;; 8335 *Sun\ C*) 8336 # Sun C 5.9 8337 lt_prog_compiler_pic='-KPIC' 8338 lt_prog_compiler_static='-Bstatic' 8339 lt_prog_compiler_wl='-Wl,' 8340 ;; 8341 esac 8342 ;; 8343 esac 8344 ;; 8345 8346 newsos6) 8347 lt_prog_compiler_pic='-KPIC' 8348 lt_prog_compiler_static='-Bstatic' 8349 ;; 8350 8351 *nto* | *qnx*) 8352 # QNX uses GNU C++, but need to define -shared option too, otherwise 8353 # it will coredump. 8354 lt_prog_compiler_pic='-fPIC -shared' 8355 ;; 8356 8357 osf3* | osf4* | osf5*) 8358 lt_prog_compiler_wl='-Wl,' 8359 # All OSF/1 code is PIC. 8360 lt_prog_compiler_static='-non_shared' 8361 ;; 8362 8363 rdos*) 8364 lt_prog_compiler_static='-non_shared' 8365 ;; 8366 8367 solaris*) 8368 lt_prog_compiler_pic='-KPIC' 8369 lt_prog_compiler_static='-Bstatic' 8370 case $cc_basename in 8371 f77* | f90* | f95*) 8372 lt_prog_compiler_wl='-Qoption ld ';; 8373 *) 8374 lt_prog_compiler_wl='-Wl,';; 8375 esac 8376 ;; 8377 8378 sunos4*) 8379 lt_prog_compiler_wl='-Qoption ld ' 8380 lt_prog_compiler_pic='-PIC' 8381 lt_prog_compiler_static='-Bstatic' 8382 ;; 8383 8384 sysv4 | sysv4.2uw2* | sysv4.3*) 8385 lt_prog_compiler_wl='-Wl,' 8386 lt_prog_compiler_pic='-KPIC' 8387 lt_prog_compiler_static='-Bstatic' 8388 ;; 8389 8390 sysv4*MP*) 8391 if test -d /usr/nec ;then 8392 lt_prog_compiler_pic='-Kconform_pic' 8393 lt_prog_compiler_static='-Bstatic' 8394 fi 8395 ;; 8396 8397 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8398 lt_prog_compiler_wl='-Wl,' 8399 lt_prog_compiler_pic='-KPIC' 8400 lt_prog_compiler_static='-Bstatic' 8401 ;; 8402 8403 unicos*) 8404 lt_prog_compiler_wl='-Wl,' 8405 lt_prog_compiler_can_build_shared=no 8406 ;; 8407 8408 uts4*) 8409 lt_prog_compiler_pic='-pic' 8410 lt_prog_compiler_static='-Bstatic' 8411 ;; 8412 8413 *) 8414 lt_prog_compiler_can_build_shared=no 8415 ;; 8416 esac 8417 fi 8418 8419case $host_os in 8420 # For platforms which do not support PIC, -DPIC is meaningless: 8421 *djgpp*) 8422 lt_prog_compiler_pic= 8423 ;; 8424 *) 8425 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8426 ;; 8427esac 8428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8429$as_echo "$lt_prog_compiler_pic" >&6; } 8430 8431 8432 8433 8434 8435 8436# 8437# Check to make sure the PIC flag actually works. 8438# 8439if test -n "$lt_prog_compiler_pic"; then 8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8441$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8442if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8443 $as_echo_n "(cached) " >&6 8444else 8445 lt_cv_prog_compiler_pic_works=no 8446 ac_outfile=conftest.$ac_objext 8447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8448 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8449 # Insert the option either (1) after the last *FLAGS variable, or 8450 # (2) before a word containing "conftest.", or (3) at the end. 8451 # Note that $ac_compile itself does not contain backslashes and begins 8452 # with a dollar sign (not a hyphen), so the echo should work correctly. 8453 # The option is referenced via a variable to avoid confusing sed. 8454 lt_compile=`echo "$ac_compile" | $SED \ 8455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8457 -e 's:$: $lt_compiler_flag:'` 8458 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8459 (eval "$lt_compile" 2>conftest.err) 8460 ac_status=$? 8461 cat conftest.err >&5 8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8463 if (exit $ac_status) && test -s "$ac_outfile"; then 8464 # The compiler can only warn and ignore the option if not recognized 8465 # So say no if there are warnings other than the usual output. 8466 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8468 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8469 lt_cv_prog_compiler_pic_works=yes 8470 fi 8471 fi 8472 $RM conftest* 8473 8474fi 8475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8476$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8477 8478if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8479 case $lt_prog_compiler_pic in 8480 "" | " "*) ;; 8481 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8482 esac 8483else 8484 lt_prog_compiler_pic= 8485 lt_prog_compiler_can_build_shared=no 8486fi 8487 8488fi 8489 8490 8491 8492 8493 8494 8495# 8496# Check to make sure the static flag actually works. 8497# 8498wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8500$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8501if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8502 $as_echo_n "(cached) " >&6 8503else 8504 lt_cv_prog_compiler_static_works=no 8505 save_LDFLAGS="$LDFLAGS" 8506 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8507 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8508 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8509 # The linker can only warn and ignore the option if not recognized 8510 # So say no if there are warnings 8511 if test -s conftest.err; then 8512 # Append any errors to the config.log. 8513 cat conftest.err 1>&5 8514 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8516 if diff conftest.exp conftest.er2 >/dev/null; then 8517 lt_cv_prog_compiler_static_works=yes 8518 fi 8519 else 8520 lt_cv_prog_compiler_static_works=yes 8521 fi 8522 fi 8523 $RM -r conftest* 8524 LDFLAGS="$save_LDFLAGS" 8525 8526fi 8527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8528$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8529 8530if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8531 : 8532else 8533 lt_prog_compiler_static= 8534fi 8535 8536 8537 8538 8539 8540 8541 8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8543$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8544if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8545 $as_echo_n "(cached) " >&6 8546else 8547 lt_cv_prog_compiler_c_o=no 8548 $RM -r conftest 2>/dev/null 8549 mkdir conftest 8550 cd conftest 8551 mkdir out 8552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8553 8554 lt_compiler_flag="-o out/conftest2.$ac_objext" 8555 # Insert the option either (1) after the last *FLAGS variable, or 8556 # (2) before a word containing "conftest.", or (3) at the end. 8557 # Note that $ac_compile itself does not contain backslashes and begins 8558 # with a dollar sign (not a hyphen), so the echo should work correctly. 8559 lt_compile=`echo "$ac_compile" | $SED \ 8560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8562 -e 's:$: $lt_compiler_flag:'` 8563 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8564 (eval "$lt_compile" 2>out/conftest.err) 8565 ac_status=$? 8566 cat out/conftest.err >&5 8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8568 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8569 then 8570 # The compiler can only warn and ignore the option if not recognized 8571 # So say no if there are warnings 8572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8575 lt_cv_prog_compiler_c_o=yes 8576 fi 8577 fi 8578 chmod u+w . 2>&5 8579 $RM conftest* 8580 # SGI C++ compiler will create directory out/ii_files/ for 8581 # template instantiation 8582 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8583 $RM out/* && rmdir out 8584 cd .. 8585 $RM -r conftest 8586 $RM conftest* 8587 8588fi 8589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8590$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8591 8592 8593 8594 8595 8596 8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8598$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8599if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8600 $as_echo_n "(cached) " >&6 8601else 8602 lt_cv_prog_compiler_c_o=no 8603 $RM -r conftest 2>/dev/null 8604 mkdir conftest 8605 cd conftest 8606 mkdir out 8607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8608 8609 lt_compiler_flag="-o out/conftest2.$ac_objext" 8610 # Insert the option either (1) after the last *FLAGS variable, or 8611 # (2) before a word containing "conftest.", or (3) at the end. 8612 # Note that $ac_compile itself does not contain backslashes and begins 8613 # with a dollar sign (not a hyphen), so the echo should work correctly. 8614 lt_compile=`echo "$ac_compile" | $SED \ 8615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8617 -e 's:$: $lt_compiler_flag:'` 8618 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8619 (eval "$lt_compile" 2>out/conftest.err) 8620 ac_status=$? 8621 cat out/conftest.err >&5 8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8623 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8624 then 8625 # The compiler can only warn and ignore the option if not recognized 8626 # So say no if there are warnings 8627 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8628 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8629 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8630 lt_cv_prog_compiler_c_o=yes 8631 fi 8632 fi 8633 chmod u+w . 2>&5 8634 $RM conftest* 8635 # SGI C++ compiler will create directory out/ii_files/ for 8636 # template instantiation 8637 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8638 $RM out/* && rmdir out 8639 cd .. 8640 $RM -r conftest 8641 $RM conftest* 8642 8643fi 8644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8645$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8646 8647 8648 8649 8650hard_links="nottested" 8651if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8652 # do not overwrite the value of need_locks provided by the user 8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8654$as_echo_n "checking if we can lock with hard links... " >&6; } 8655 hard_links=yes 8656 $RM conftest* 8657 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8658 touch conftest.a 8659 ln conftest.a conftest.b 2>&5 || hard_links=no 8660 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8662$as_echo "$hard_links" >&6; } 8663 if test "$hard_links" = no; then 8664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8665$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8666 need_locks=warn 8667 fi 8668else 8669 need_locks=no 8670fi 8671 8672 8673 8674 8675 8676 8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8678$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8679 8680 runpath_var= 8681 allow_undefined_flag= 8682 always_export_symbols=no 8683 archive_cmds= 8684 archive_expsym_cmds= 8685 compiler_needs_object=no 8686 enable_shared_with_static_runtimes=no 8687 export_dynamic_flag_spec= 8688 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8689 hardcode_automatic=no 8690 hardcode_direct=no 8691 hardcode_direct_absolute=no 8692 hardcode_libdir_flag_spec= 8693 hardcode_libdir_flag_spec_ld= 8694 hardcode_libdir_separator= 8695 hardcode_minus_L=no 8696 hardcode_shlibpath_var=unsupported 8697 inherit_rpath=no 8698 link_all_deplibs=unknown 8699 module_cmds= 8700 module_expsym_cmds= 8701 old_archive_from_new_cmds= 8702 old_archive_from_expsyms_cmds= 8703 thread_safe_flag_spec= 8704 whole_archive_flag_spec= 8705 # include_expsyms should be a list of space-separated symbols to be *always* 8706 # included in the symbol list 8707 include_expsyms= 8708 # exclude_expsyms can be an extended regexp of symbols to exclude 8709 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8710 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8711 # as well as any symbol that contains `d'. 8712 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8713 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8714 # platforms (ab)use it in PIC code, but their linkers get confused if 8715 # the symbol is explicitly referenced. Since portable code cannot 8716 # rely on this symbol name, it's probably fine to never include it in 8717 # preloaded symbol tables. 8718 # Exclude shared library initialization/finalization symbols. 8719 extract_expsyms_cmds= 8720 8721 case $host_os in 8722 cygwin* | mingw* | pw32* | cegcc*) 8723 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8724 # When not using gcc, we currently assume that we are using 8725 # Microsoft Visual C++. 8726 if test "$GCC" != yes; then 8727 with_gnu_ld=no 8728 fi 8729 ;; 8730 interix*) 8731 # we just hope/assume this is gcc and not c89 (= MSVC++) 8732 with_gnu_ld=yes 8733 ;; 8734 openbsd*) 8735 with_gnu_ld=no 8736 ;; 8737 esac 8738 8739 ld_shlibs=yes 8740 8741 # On some targets, GNU ld is compatible enough with the native linker 8742 # that we're better off using the native interface for both. 8743 lt_use_gnu_ld_interface=no 8744 if test "$with_gnu_ld" = yes; then 8745 case $host_os in 8746 aix*) 8747 # The AIX port of GNU ld has always aspired to compatibility 8748 # with the native linker. However, as the warning in the GNU ld 8749 # block says, versions before 2.19.5* couldn't really create working 8750 # shared libraries, regardless of the interface used. 8751 case `$LD -v 2>&1` in 8752 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8753 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8754 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8755 *) 8756 lt_use_gnu_ld_interface=yes 8757 ;; 8758 esac 8759 ;; 8760 *) 8761 lt_use_gnu_ld_interface=yes 8762 ;; 8763 esac 8764 fi 8765 8766 if test "$lt_use_gnu_ld_interface" = yes; then 8767 # If archive_cmds runs LD, not CC, wlarc should be empty 8768 wlarc='${wl}' 8769 8770 # Set some defaults for GNU ld with shared library support. These 8771 # are reset later if shared libraries are not supported. Putting them 8772 # here allows them to be overridden if necessary. 8773 runpath_var=LD_RUN_PATH 8774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8775 export_dynamic_flag_spec='${wl}--export-dynamic' 8776 # ancient GNU ld didn't support --whole-archive et. al. 8777 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8778 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8779 else 8780 whole_archive_flag_spec= 8781 fi 8782 supports_anon_versioning=no 8783 case `$LD -v 2>&1` in 8784 *GNU\ gold*) supports_anon_versioning=yes ;; 8785 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8786 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8787 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8788 *\ 2.11.*) ;; # other 2.11 versions 8789 *) supports_anon_versioning=yes ;; 8790 esac 8791 8792 # See if GNU ld supports shared libraries. 8793 case $host_os in 8794 aix[3-9]*) 8795 # On AIX/PPC, the GNU linker is very broken 8796 if test "$host_cpu" != ia64; then 8797 ld_shlibs=no 8798 cat <<_LT_EOF 1>&2 8799 8800*** Warning: the GNU linker, at least up to release 2.19, is reported 8801*** to be unable to reliably create shared libraries on AIX. 8802*** Therefore, libtool is disabling shared libraries support. If you 8803*** really care for shared libraries, you may want to install binutils 8804*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8805*** You will then need to restart the configuration process. 8806 8807_LT_EOF 8808 fi 8809 ;; 8810 8811 amigaos*) 8812 case $host_cpu in 8813 powerpc) 8814 # see comment about AmigaOS4 .so support 8815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8816 archive_expsym_cmds='' 8817 ;; 8818 m68k) 8819 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)' 8820 hardcode_libdir_flag_spec='-L$libdir' 8821 hardcode_minus_L=yes 8822 ;; 8823 esac 8824 ;; 8825 8826 beos*) 8827 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8828 allow_undefined_flag=unsupported 8829 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8830 # support --undefined. This deserves some investigation. FIXME 8831 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8832 else 8833 ld_shlibs=no 8834 fi 8835 ;; 8836 8837 cygwin* | mingw* | pw32* | cegcc*) 8838 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8839 # as there is no search path for DLLs. 8840 hardcode_libdir_flag_spec='-L$libdir' 8841 export_dynamic_flag_spec='${wl}--export-all-symbols' 8842 allow_undefined_flag=unsupported 8843 always_export_symbols=no 8844 enable_shared_with_static_runtimes=yes 8845 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8846 8847 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8849 # If the export-symbols file already is a .def file (1st line 8850 # is EXPORTS), use it as is; otherwise, prepend... 8851 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8852 cp $export_symbols $output_objdir/$soname.def; 8853 else 8854 echo EXPORTS > $output_objdir/$soname.def; 8855 cat $export_symbols >> $output_objdir/$soname.def; 8856 fi~ 8857 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8858 else 8859 ld_shlibs=no 8860 fi 8861 ;; 8862 8863 haiku*) 8864 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8865 link_all_deplibs=yes 8866 ;; 8867 8868 interix[3-9]*) 8869 hardcode_direct=no 8870 hardcode_shlibpath_var=no 8871 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8872 export_dynamic_flag_spec='${wl}-E' 8873 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8874 # Instead, shared libraries are loaded at an image base (0x10000000 by 8875 # default) and relocated if they conflict, which is a slow very memory 8876 # consuming and fragmenting process. To avoid this, we pick a random, 8877 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8878 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8879 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8880 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' 8881 ;; 8882 8883 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8884 tmp_diet=no 8885 if test "$host_os" = linux-dietlibc; then 8886 case $cc_basename in 8887 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8888 esac 8889 fi 8890 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8891 && test "$tmp_diet" = no 8892 then 8893 tmp_addflag= 8894 tmp_sharedflag='-shared' 8895 case $cc_basename,$host_cpu in 8896 pgcc*) # Portland Group C compiler 8897 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' 8898 tmp_addflag=' $pic_flag' 8899 ;; 8900 pgf77* | pgf90* | pgf95* | pgfortran*) 8901 # Portland Group f77 and f90 compilers 8902 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' 8903 tmp_addflag=' $pic_flag -Mnomain' ;; 8904 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8905 tmp_addflag=' -i_dynamic' ;; 8906 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8907 tmp_addflag=' -i_dynamic -nofor_main' ;; 8908 ifc* | ifort*) # Intel Fortran compiler 8909 tmp_addflag=' -nofor_main' ;; 8910 lf95*) # Lahey Fortran 8.1 8911 whole_archive_flag_spec= 8912 tmp_sharedflag='--shared' ;; 8913 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8914 tmp_sharedflag='-qmkshrobj' 8915 tmp_addflag= ;; 8916 nvcc*) # Cuda Compiler Driver 2.2 8917 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' 8918 compiler_needs_object=yes 8919 ;; 8920 esac 8921 case `$CC -V 2>&1 | sed 5q` in 8922 *Sun\ C*) # Sun C 5.9 8923 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' 8924 compiler_needs_object=yes 8925 tmp_sharedflag='-G' ;; 8926 *Sun\ F*) # Sun Fortran 8.3 8927 tmp_sharedflag='-G' ;; 8928 esac 8929 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8930 8931 if test "x$supports_anon_versioning" = xyes; then 8932 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8933 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8934 echo "local: *; };" >> $output_objdir/$libname.ver~ 8935 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8936 fi 8937 8938 case $cc_basename in 8939 xlf* | bgf* | bgxlf* | mpixlf*) 8940 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8941 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8942 hardcode_libdir_flag_spec= 8943 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8944 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 8945 if test "x$supports_anon_versioning" = xyes; then 8946 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8947 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8948 echo "local: *; };" >> $output_objdir/$libname.ver~ 8949 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8950 fi 8951 ;; 8952 esac 8953 else 8954 ld_shlibs=no 8955 fi 8956 ;; 8957 8958 netbsd*) 8959 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8960 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8961 wlarc= 8962 else 8963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8964 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8965 fi 8966 ;; 8967 8968 solaris*) 8969 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8970 ld_shlibs=no 8971 cat <<_LT_EOF 1>&2 8972 8973*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8974*** create shared libraries on Solaris systems. Therefore, libtool 8975*** is disabling shared libraries support. We urge you to upgrade GNU 8976*** binutils to release 2.9.1 or newer. Another option is to modify 8977*** your PATH or compiler configuration so that the native linker is 8978*** used, and then restart. 8979 8980_LT_EOF 8981 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8982 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8983 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8984 else 8985 ld_shlibs=no 8986 fi 8987 ;; 8988 8989 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8990 case `$LD -v 2>&1` in 8991 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8992 ld_shlibs=no 8993 cat <<_LT_EOF 1>&2 8994 8995*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8996*** reliably create shared libraries on SCO systems. Therefore, libtool 8997*** is disabling shared libraries support. We urge you to upgrade GNU 8998*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8999*** your PATH or compiler configuration so that the native linker is 9000*** used, and then restart. 9001 9002_LT_EOF 9003 ;; 9004 *) 9005 # For security reasons, it is highly recommended that you always 9006 # use absolute paths for naming shared libraries, and exclude the 9007 # DT_RUNPATH tag from executables and libraries. But doing so 9008 # requires that you compile everything twice, which is a pain. 9009 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9010 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9012 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9013 else 9014 ld_shlibs=no 9015 fi 9016 ;; 9017 esac 9018 ;; 9019 9020 sunos4*) 9021 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9022 wlarc= 9023 hardcode_direct=yes 9024 hardcode_shlibpath_var=no 9025 ;; 9026 9027 *) 9028 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9030 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9031 else 9032 ld_shlibs=no 9033 fi 9034 ;; 9035 esac 9036 9037 if test "$ld_shlibs" = no; then 9038 runpath_var= 9039 hardcode_libdir_flag_spec= 9040 export_dynamic_flag_spec= 9041 whole_archive_flag_spec= 9042 fi 9043 else 9044 # PORTME fill in a description of your system's linker (not GNU ld) 9045 case $host_os in 9046 aix3*) 9047 allow_undefined_flag=unsupported 9048 always_export_symbols=yes 9049 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' 9050 # Note: this linker hardcodes the directories in LIBPATH if there 9051 # are no directories specified by -L. 9052 hardcode_minus_L=yes 9053 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9054 # Neither direct hardcoding nor static linking is supported with a 9055 # broken collect2. 9056 hardcode_direct=unsupported 9057 fi 9058 ;; 9059 9060 aix[4-9]*) 9061 if test "$host_cpu" = ia64; then 9062 # On IA64, the linker does run time linking by default, so we don't 9063 # have to do anything special. 9064 aix_use_runtimelinking=no 9065 exp_sym_flag='-Bexport' 9066 no_entry_flag="" 9067 else 9068 # If we're using GNU nm, then we don't want the "-C" option. 9069 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9070 # Also, AIX nm treats weak defined symbols like other global 9071 # defined symbols, whereas GNU nm marks them as "W". 9072 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9073 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' 9074 else 9075 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' 9076 fi 9077 aix_use_runtimelinking=no 9078 9079 # Test if we are trying to use run time linking or normal 9080 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9081 # need to do runtime linking. 9082 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9083 for ld_flag in $LDFLAGS; do 9084 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9085 aix_use_runtimelinking=yes 9086 break 9087 fi 9088 done 9089 ;; 9090 esac 9091 9092 exp_sym_flag='-bexport' 9093 no_entry_flag='-bnoentry' 9094 fi 9095 9096 # When large executables or shared objects are built, AIX ld can 9097 # have problems creating the table of contents. If linking a library 9098 # or program results in "error TOC overflow" add -mminimal-toc to 9099 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9100 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9101 9102 archive_cmds='' 9103 hardcode_direct=yes 9104 hardcode_direct_absolute=yes 9105 hardcode_libdir_separator=':' 9106 link_all_deplibs=yes 9107 file_list_spec='${wl}-f,' 9108 9109 if test "$GCC" = yes; then 9110 case $host_os in aix4.[012]|aix4.[012].*) 9111 # We only want to do this on AIX 4.2 and lower, the check 9112 # below for broken collect2 doesn't work under 4.3+ 9113 collect2name=`${CC} -print-prog-name=collect2` 9114 if test -f "$collect2name" && 9115 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9116 then 9117 # We have reworked collect2 9118 : 9119 else 9120 # We have old collect2 9121 hardcode_direct=unsupported 9122 # It fails to find uninstalled libraries when the uninstalled 9123 # path is not listed in the libpath. Setting hardcode_minus_L 9124 # to unsupported forces relinking 9125 hardcode_minus_L=yes 9126 hardcode_libdir_flag_spec='-L$libdir' 9127 hardcode_libdir_separator= 9128 fi 9129 ;; 9130 esac 9131 shared_flag='-shared' 9132 if test "$aix_use_runtimelinking" = yes; then 9133 shared_flag="$shared_flag "'${wl}-G' 9134 fi 9135 else 9136 # not using gcc 9137 if test "$host_cpu" = ia64; then 9138 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9139 # chokes on -Wl,-G. The following line is correct: 9140 shared_flag='-G' 9141 else 9142 if test "$aix_use_runtimelinking" = yes; then 9143 shared_flag='${wl}-G' 9144 else 9145 shared_flag='${wl}-bM:SRE' 9146 fi 9147 fi 9148 fi 9149 9150 export_dynamic_flag_spec='${wl}-bexpall' 9151 # It seems that -bexpall does not export symbols beginning with 9152 # underscore (_), so it is better to generate a list of symbols to export. 9153 always_export_symbols=yes 9154 if test "$aix_use_runtimelinking" = yes; then 9155 # Warning - without using the other runtime loading flags (-brtl), 9156 # -berok will link without error, but may produce a broken library. 9157 allow_undefined_flag='-berok' 9158 # Determine the default libpath from the value encoded in an 9159 # empty executable. 9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9161/* end confdefs.h. */ 9162 9163int 9164main () 9165{ 9166 9167 ; 9168 return 0; 9169} 9170_ACEOF 9171if ac_fn_c_try_link "$LINENO"; then : 9172 9173lt_aix_libpath_sed=' 9174 /Import File Strings/,/^$/ { 9175 /^0/ { 9176 s/^0 *\(.*\)$/\1/ 9177 p 9178 } 9179 }' 9180aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9181# Check for a 64-bit object if we didn't find anything. 9182if test -z "$aix_libpath"; then 9183 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9184fi 9185fi 9186rm -f core conftest.err conftest.$ac_objext \ 9187 conftest$ac_exeext conftest.$ac_ext 9188if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9189 9190 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9191 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" 9192 else 9193 if test "$host_cpu" = ia64; then 9194 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9195 allow_undefined_flag="-z nodefs" 9196 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" 9197 else 9198 # Determine the default libpath from the value encoded in an 9199 # empty executable. 9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9201/* end confdefs.h. */ 9202 9203int 9204main () 9205{ 9206 9207 ; 9208 return 0; 9209} 9210_ACEOF 9211if ac_fn_c_try_link "$LINENO"; then : 9212 9213lt_aix_libpath_sed=' 9214 /Import File Strings/,/^$/ { 9215 /^0/ { 9216 s/^0 *\(.*\)$/\1/ 9217 p 9218 } 9219 }' 9220aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9221# Check for a 64-bit object if we didn't find anything. 9222if test -z "$aix_libpath"; then 9223 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9224fi 9225fi 9226rm -f core conftest.err conftest.$ac_objext \ 9227 conftest$ac_exeext conftest.$ac_ext 9228if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9229 9230 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9231 # Warning - without using the other run time loading flags, 9232 # -berok will link without error, but may produce a broken library. 9233 no_undefined_flag=' ${wl}-bernotok' 9234 allow_undefined_flag=' ${wl}-berok' 9235 if test "$with_gnu_ld" = yes; then 9236 # We only use this code for GNU lds that support --whole-archive. 9237 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9238 else 9239 # Exported symbols can be pulled into shared objects from archives 9240 whole_archive_flag_spec='$convenience' 9241 fi 9242 archive_cmds_need_lc=yes 9243 # This is similar to how AIX traditionally builds its shared libraries. 9244 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' 9245 fi 9246 fi 9247 ;; 9248 9249 amigaos*) 9250 case $host_cpu in 9251 powerpc) 9252 # see comment about AmigaOS4 .so support 9253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9254 archive_expsym_cmds='' 9255 ;; 9256 m68k) 9257 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)' 9258 hardcode_libdir_flag_spec='-L$libdir' 9259 hardcode_minus_L=yes 9260 ;; 9261 esac 9262 ;; 9263 9264 bsdi[45]*) 9265 export_dynamic_flag_spec=-rdynamic 9266 ;; 9267 9268 cygwin* | mingw* | pw32* | cegcc*) 9269 # When not using gcc, we currently assume that we are using 9270 # Microsoft Visual C++. 9271 # hardcode_libdir_flag_spec is actually meaningless, as there is 9272 # no search path for DLLs. 9273 hardcode_libdir_flag_spec=' ' 9274 allow_undefined_flag=unsupported 9275 # Tell ltmain to make .lib files, not .a files. 9276 libext=lib 9277 # Tell ltmain to make .dll files, not .so files. 9278 shrext_cmds=".dll" 9279 # FIXME: Setting linknames here is a bad hack. 9280 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9281 # The linker will automatically build a .lib file if we build a DLL. 9282 old_archive_from_new_cmds='true' 9283 # FIXME: Should let the user specify the lib program. 9284 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9285 fix_srcfile_path='`cygpath -w "$srcfile"`' 9286 enable_shared_with_static_runtimes=yes 9287 ;; 9288 9289 darwin* | rhapsody*) 9290 9291 9292 archive_cmds_need_lc=no 9293 hardcode_direct=no 9294 hardcode_automatic=yes 9295 hardcode_shlibpath_var=unsupported 9296 if test "$lt_cv_ld_force_load" = "yes"; then 9297 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\"`' 9298 else 9299 whole_archive_flag_spec='' 9300 fi 9301 link_all_deplibs=yes 9302 allow_undefined_flag="$_lt_dar_allow_undefined" 9303 case $cc_basename in 9304 ifort*) _lt_dar_can_shared=yes ;; 9305 *) _lt_dar_can_shared=$GCC ;; 9306 esac 9307 if test "$_lt_dar_can_shared" = "yes"; then 9308 output_verbose_link_cmd=func_echo_all 9309 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9310 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9311 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}" 9312 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}" 9313 9314 else 9315 ld_shlibs=no 9316 fi 9317 9318 ;; 9319 9320 dgux*) 9321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9322 hardcode_libdir_flag_spec='-L$libdir' 9323 hardcode_shlibpath_var=no 9324 ;; 9325 9326 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9327 # support. Future versions do this automatically, but an explicit c++rt0.o 9328 # does not break anything, and helps significantly (at the cost of a little 9329 # extra space). 9330 freebsd2.2*) 9331 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9332 hardcode_libdir_flag_spec='-R$libdir' 9333 hardcode_direct=yes 9334 hardcode_shlibpath_var=no 9335 ;; 9336 9337 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9338 freebsd2.*) 9339 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9340 hardcode_direct=yes 9341 hardcode_minus_L=yes 9342 hardcode_shlibpath_var=no 9343 ;; 9344 9345 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9346 freebsd* | dragonfly*) 9347 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9348 hardcode_libdir_flag_spec='-R$libdir' 9349 hardcode_direct=yes 9350 hardcode_shlibpath_var=no 9351 ;; 9352 9353 hpux9*) 9354 if test "$GCC" = yes; then 9355 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' 9356 else 9357 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' 9358 fi 9359 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9360 hardcode_libdir_separator=: 9361 hardcode_direct=yes 9362 9363 # hardcode_minus_L: Not really in the search PATH, 9364 # but as the default location of the library. 9365 hardcode_minus_L=yes 9366 export_dynamic_flag_spec='${wl}-E' 9367 ;; 9368 9369 hpux10*) 9370 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9371 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9372 else 9373 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9374 fi 9375 if test "$with_gnu_ld" = no; then 9376 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9377 hardcode_libdir_flag_spec_ld='+b $libdir' 9378 hardcode_libdir_separator=: 9379 hardcode_direct=yes 9380 hardcode_direct_absolute=yes 9381 export_dynamic_flag_spec='${wl}-E' 9382 # hardcode_minus_L: Not really in the search PATH, 9383 # but as the default location of the library. 9384 hardcode_minus_L=yes 9385 fi 9386 ;; 9387 9388 hpux11*) 9389 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9390 case $host_cpu in 9391 hppa*64*) 9392 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9393 ;; 9394 ia64*) 9395 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9396 ;; 9397 *) 9398 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9399 ;; 9400 esac 9401 else 9402 case $host_cpu in 9403 hppa*64*) 9404 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9405 ;; 9406 ia64*) 9407 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9408 ;; 9409 *) 9410 9411 # Older versions of the 11.00 compiler do not understand -b yet 9412 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9414$as_echo_n "checking if $CC understands -b... " >&6; } 9415if test "${lt_cv_prog_compiler__b+set}" = set; then : 9416 $as_echo_n "(cached) " >&6 9417else 9418 lt_cv_prog_compiler__b=no 9419 save_LDFLAGS="$LDFLAGS" 9420 LDFLAGS="$LDFLAGS -b" 9421 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9422 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9423 # The linker can only warn and ignore the option if not recognized 9424 # So say no if there are warnings 9425 if test -s conftest.err; then 9426 # Append any errors to the config.log. 9427 cat conftest.err 1>&5 9428 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9429 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9430 if diff conftest.exp conftest.er2 >/dev/null; then 9431 lt_cv_prog_compiler__b=yes 9432 fi 9433 else 9434 lt_cv_prog_compiler__b=yes 9435 fi 9436 fi 9437 $RM -r conftest* 9438 LDFLAGS="$save_LDFLAGS" 9439 9440fi 9441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9442$as_echo "$lt_cv_prog_compiler__b" >&6; } 9443 9444if test x"$lt_cv_prog_compiler__b" = xyes; then 9445 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9446else 9447 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9448fi 9449 9450 ;; 9451 esac 9452 fi 9453 if test "$with_gnu_ld" = no; then 9454 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9455 hardcode_libdir_separator=: 9456 9457 case $host_cpu in 9458 hppa*64*|ia64*) 9459 hardcode_direct=no 9460 hardcode_shlibpath_var=no 9461 ;; 9462 *) 9463 hardcode_direct=yes 9464 hardcode_direct_absolute=yes 9465 export_dynamic_flag_spec='${wl}-E' 9466 9467 # hardcode_minus_L: Not really in the search PATH, 9468 # but as the default location of the library. 9469 hardcode_minus_L=yes 9470 ;; 9471 esac 9472 fi 9473 ;; 9474 9475 irix5* | irix6* | nonstopux*) 9476 if test "$GCC" = yes; then 9477 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' 9478 # Try to use the -exported_symbol ld option, if it does not 9479 # work, assume that -exports_file does not work either and 9480 # implicitly export all symbols. 9481 save_LDFLAGS="$LDFLAGS" 9482 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9484/* end confdefs.h. */ 9485int foo(void) {} 9486_ACEOF 9487if ac_fn_c_try_link "$LINENO"; then : 9488 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' 9489 9490fi 9491rm -f core conftest.err conftest.$ac_objext \ 9492 conftest$ac_exeext conftest.$ac_ext 9493 LDFLAGS="$save_LDFLAGS" 9494 else 9495 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' 9496 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' 9497 fi 9498 archive_cmds_need_lc='no' 9499 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9500 hardcode_libdir_separator=: 9501 inherit_rpath=yes 9502 link_all_deplibs=yes 9503 ;; 9504 9505 netbsd*) 9506 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9507 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9508 else 9509 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9510 fi 9511 hardcode_libdir_flag_spec='-R$libdir' 9512 hardcode_direct=yes 9513 hardcode_shlibpath_var=no 9514 ;; 9515 9516 newsos6) 9517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9518 hardcode_direct=yes 9519 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9520 hardcode_libdir_separator=: 9521 hardcode_shlibpath_var=no 9522 ;; 9523 9524 *nto* | *qnx*) 9525 ;; 9526 9527 openbsd*) 9528 if test -f /usr/libexec/ld.so; then 9529 hardcode_direct=yes 9530 hardcode_shlibpath_var=no 9531 hardcode_direct_absolute=yes 9532 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9533 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9534 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9535 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9536 export_dynamic_flag_spec='${wl}-E' 9537 else 9538 case $host_os in 9539 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9540 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9541 hardcode_libdir_flag_spec='-R$libdir' 9542 ;; 9543 *) 9544 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9545 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9546 ;; 9547 esac 9548 fi 9549 else 9550 ld_shlibs=no 9551 fi 9552 ;; 9553 9554 os2*) 9555 hardcode_libdir_flag_spec='-L$libdir' 9556 hardcode_minus_L=yes 9557 allow_undefined_flag=unsupported 9558 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' 9559 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9560 ;; 9561 9562 osf3*) 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}-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 else 9567 allow_undefined_flag=' -expect_unresolved \*' 9568 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' 9569 fi 9570 archive_cmds_need_lc='no' 9571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9572 hardcode_libdir_separator=: 9573 ;; 9574 9575 osf4* | osf5*) # as osf3* with the addition of -msym flag 9576 if test "$GCC" = yes; then 9577 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9578 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' 9579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9580 else 9581 allow_undefined_flag=' -expect_unresolved \*' 9582 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' 9583 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~ 9584 $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' 9585 9586 # Both c and cxx compiler support -rpath directly 9587 hardcode_libdir_flag_spec='-rpath $libdir' 9588 fi 9589 archive_cmds_need_lc='no' 9590 hardcode_libdir_separator=: 9591 ;; 9592 9593 solaris*) 9594 no_undefined_flag=' -z defs' 9595 if test "$GCC" = yes; then 9596 wlarc='${wl}' 9597 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$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 -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9600 else 9601 case `$CC -V 2>&1` in 9602 *"Compilers 5.0"*) 9603 wlarc='' 9604 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9605 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9606 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9607 ;; 9608 *) 9609 wlarc='${wl}' 9610 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9611 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9612 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9613 ;; 9614 esac 9615 fi 9616 hardcode_libdir_flag_spec='-R$libdir' 9617 hardcode_shlibpath_var=no 9618 case $host_os in 9619 solaris2.[0-5] | solaris2.[0-5].*) ;; 9620 *) 9621 # The compiler driver will combine and reorder linker options, 9622 # but understands `-z linker_flag'. GCC discards it without `$wl', 9623 # but is careful enough not to reorder. 9624 # Supported since Solaris 2.6 (maybe 2.5.1?) 9625 if test "$GCC" = yes; then 9626 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9627 else 9628 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9629 fi 9630 ;; 9631 esac 9632 link_all_deplibs=yes 9633 ;; 9634 9635 sunos4*) 9636 if test "x$host_vendor" = xsequent; then 9637 # Use $CC to link under sequent, because it throws in some extra .o 9638 # files that make .init and .fini sections work. 9639 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9640 else 9641 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9642 fi 9643 hardcode_libdir_flag_spec='-L$libdir' 9644 hardcode_direct=yes 9645 hardcode_minus_L=yes 9646 hardcode_shlibpath_var=no 9647 ;; 9648 9649 sysv4) 9650 case $host_vendor in 9651 sni) 9652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9653 hardcode_direct=yes # is this really true??? 9654 ;; 9655 siemens) 9656 ## LD is ld it makes a PLAMLIB 9657 ## CC just makes a GrossModule. 9658 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9659 reload_cmds='$CC -r -o $output$reload_objs' 9660 hardcode_direct=no 9661 ;; 9662 motorola) 9663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9664 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9665 ;; 9666 esac 9667 runpath_var='LD_RUN_PATH' 9668 hardcode_shlibpath_var=no 9669 ;; 9670 9671 sysv4.3*) 9672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9673 hardcode_shlibpath_var=no 9674 export_dynamic_flag_spec='-Bexport' 9675 ;; 9676 9677 sysv4*MP*) 9678 if test -d /usr/nec; then 9679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9680 hardcode_shlibpath_var=no 9681 runpath_var=LD_RUN_PATH 9682 hardcode_runpath_var=yes 9683 ld_shlibs=yes 9684 fi 9685 ;; 9686 9687 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9688 no_undefined_flag='${wl}-z,text' 9689 archive_cmds_need_lc=no 9690 hardcode_shlibpath_var=no 9691 runpath_var='LD_RUN_PATH' 9692 9693 if test "$GCC" = yes; then 9694 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9695 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9696 else 9697 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9698 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9699 fi 9700 ;; 9701 9702 sysv5* | sco3.2v5* | sco5v6*) 9703 # Note: We can NOT use -z defs as we might desire, because we do not 9704 # link with -lc, and that would cause any symbols used from libc to 9705 # always be unresolved, which means just about no library would 9706 # ever link correctly. If we're not using GNU ld we use -z text 9707 # though, which does catch some bad symbols but isn't as heavy-handed 9708 # as -z defs. 9709 no_undefined_flag='${wl}-z,text' 9710 allow_undefined_flag='${wl}-z,nodefs' 9711 archive_cmds_need_lc=no 9712 hardcode_shlibpath_var=no 9713 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9714 hardcode_libdir_separator=':' 9715 link_all_deplibs=yes 9716 export_dynamic_flag_spec='${wl}-Bexport' 9717 runpath_var='LD_RUN_PATH' 9718 9719 if test "$GCC" = yes; then 9720 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9721 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9722 else 9723 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9724 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9725 fi 9726 ;; 9727 9728 uts4*) 9729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9730 hardcode_libdir_flag_spec='-L$libdir' 9731 hardcode_shlibpath_var=no 9732 ;; 9733 9734 *) 9735 ld_shlibs=no 9736 ;; 9737 esac 9738 9739 if test x$host_vendor = xsni; then 9740 case $host in 9741 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9742 export_dynamic_flag_spec='${wl}-Blargedynsym' 9743 ;; 9744 esac 9745 fi 9746 fi 9747 9748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9749$as_echo "$ld_shlibs" >&6; } 9750test "$ld_shlibs" = no && can_build_shared=no 9751 9752with_gnu_ld=$with_gnu_ld 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768# 9769# Do we need to explicitly link libc? 9770# 9771case "x$archive_cmds_need_lc" in 9772x|xyes) 9773 # Assume -lc should be added 9774 archive_cmds_need_lc=yes 9775 9776 if test "$enable_shared" = yes && test "$GCC" = yes; then 9777 case $archive_cmds in 9778 *'~'*) 9779 # FIXME: we may have to deal with multi-command sequences. 9780 ;; 9781 '$CC '*) 9782 # Test whether the compiler implicitly links with -lc since on some 9783 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9784 # to ld, don't add -lc before -lgcc. 9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9786$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9787if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 9788 $as_echo_n "(cached) " >&6 9789else 9790 $RM conftest* 9791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9792 9793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9794 (eval $ac_compile) 2>&5 9795 ac_status=$? 9796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9797 test $ac_status = 0; } 2>conftest.err; then 9798 soname=conftest 9799 lib=conftest 9800 libobjs=conftest.$ac_objext 9801 deplibs= 9802 wl=$lt_prog_compiler_wl 9803 pic_flag=$lt_prog_compiler_pic 9804 compiler_flags=-v 9805 linker_flags=-v 9806 verstring= 9807 output_objdir=. 9808 libname=conftest 9809 lt_save_allow_undefined_flag=$allow_undefined_flag 9810 allow_undefined_flag= 9811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9812 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9813 ac_status=$? 9814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9815 test $ac_status = 0; } 9816 then 9817 lt_cv_archive_cmds_need_lc=no 9818 else 9819 lt_cv_archive_cmds_need_lc=yes 9820 fi 9821 allow_undefined_flag=$lt_save_allow_undefined_flag 9822 else 9823 cat conftest.err 1>&5 9824 fi 9825 $RM conftest* 9826 9827fi 9828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9829$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9830 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9831 ;; 9832 esac 9833 fi 9834 ;; 9835esac 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 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9994$as_echo_n "checking dynamic linker characteristics... " >&6; } 9995 9996if test "$GCC" = yes; then 9997 case $host_os in 9998 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9999 *) lt_awk_arg="/^libraries:/" ;; 10000 esac 10001 case $host_os in 10002 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10003 *) lt_sed_strip_eq="s,=/,/,g" ;; 10004 esac 10005 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10006 case $lt_search_path_spec in 10007 *\;*) 10008 # if the path contains ";" then we assume it to be the separator 10009 # otherwise default to the standard path separator (i.e. ":") - it is 10010 # assumed that no part of a normal pathname contains ";" but that should 10011 # okay in the real world where ";" in dirpaths is itself problematic. 10012 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10013 ;; 10014 *) 10015 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10016 ;; 10017 esac 10018 # Ok, now we have the path, separated by spaces, we can step through it 10019 # and add multilib dir if necessary. 10020 lt_tmp_lt_search_path_spec= 10021 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10022 for lt_sys_path in $lt_search_path_spec; do 10023 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10024 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10025 else 10026 test -d "$lt_sys_path" && \ 10027 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10028 fi 10029 done 10030 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10031BEGIN {RS=" "; FS="/|\n";} { 10032 lt_foo=""; 10033 lt_count=0; 10034 for (lt_i = NF; lt_i > 0; lt_i--) { 10035 if ($lt_i != "" && $lt_i != ".") { 10036 if ($lt_i == "..") { 10037 lt_count++; 10038 } else { 10039 if (lt_count == 0) { 10040 lt_foo="/" $lt_i lt_foo; 10041 } else { 10042 lt_count--; 10043 } 10044 } 10045 } 10046 } 10047 if (lt_foo != "") { lt_freq[lt_foo]++; } 10048 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10049}'` 10050 # AWK program above erroneously prepends '/' to C:/dos/paths 10051 # for these hosts. 10052 case $host_os in 10053 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10054 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10055 esac 10056 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10057else 10058 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10059fi 10060library_names_spec= 10061libname_spec='lib$name' 10062soname_spec= 10063shrext_cmds=".so" 10064postinstall_cmds= 10065postuninstall_cmds= 10066finish_cmds= 10067finish_eval= 10068shlibpath_var= 10069shlibpath_overrides_runpath=unknown 10070version_type=none 10071dynamic_linker="$host_os ld.so" 10072sys_lib_dlsearch_path_spec="/lib /usr/lib" 10073need_lib_prefix=unknown 10074hardcode_into_libs=no 10075 10076# when you set need_version to no, make sure it does not cause -set_version 10077# flags to be left without arguments 10078need_version=unknown 10079 10080case $host_os in 10081aix3*) 10082 version_type=linux 10083 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10084 shlibpath_var=LIBPATH 10085 10086 # AIX 3 has no versioning support, so we append a major version to the name. 10087 soname_spec='${libname}${release}${shared_ext}$major' 10088 ;; 10089 10090aix[4-9]*) 10091 version_type=linux 10092 need_lib_prefix=no 10093 need_version=no 10094 hardcode_into_libs=yes 10095 if test "$host_cpu" = ia64; then 10096 # AIX 5 supports IA64 10097 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10098 shlibpath_var=LD_LIBRARY_PATH 10099 else 10100 # With GCC up to 2.95.x, collect2 would create an import file 10101 # for dependence libraries. The import file would start with 10102 # the line `#! .'. This would cause the generated library to 10103 # depend on `.', always an invalid library. This was fixed in 10104 # development snapshots of GCC prior to 3.0. 10105 case $host_os in 10106 aix4 | aix4.[01] | aix4.[01].*) 10107 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10108 echo ' yes ' 10109 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10110 : 10111 else 10112 can_build_shared=no 10113 fi 10114 ;; 10115 esac 10116 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10117 # soname into executable. Probably we can add versioning support to 10118 # collect2, so additional links can be useful in future. 10119 if test "$aix_use_runtimelinking" = yes; then 10120 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10121 # instead of lib<name>.a to let people know that these are not 10122 # typical AIX shared libraries. 10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10124 else 10125 # We preserve .a as extension for shared libraries through AIX4.2 10126 # and later when we are not doing run time linking. 10127 library_names_spec='${libname}${release}.a $libname.a' 10128 soname_spec='${libname}${release}${shared_ext}$major' 10129 fi 10130 shlibpath_var=LIBPATH 10131 fi 10132 ;; 10133 10134amigaos*) 10135 case $host_cpu in 10136 powerpc) 10137 # Since July 2007 AmigaOS4 officially supports .so libraries. 10138 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10140 ;; 10141 m68k) 10142 library_names_spec='$libname.ixlibrary $libname.a' 10143 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10144 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' 10145 ;; 10146 esac 10147 ;; 10148 10149beos*) 10150 library_names_spec='${libname}${shared_ext}' 10151 dynamic_linker="$host_os ld.so" 10152 shlibpath_var=LIBRARY_PATH 10153 ;; 10154 10155bsdi[45]*) 10156 version_type=linux 10157 need_version=no 10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10159 soname_spec='${libname}${release}${shared_ext}$major' 10160 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10161 shlibpath_var=LD_LIBRARY_PATH 10162 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10163 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10164 # the default ld.so.conf also contains /usr/contrib/lib and 10165 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10166 # libtool to hard-code these into programs 10167 ;; 10168 10169cygwin* | mingw* | pw32* | cegcc*) 10170 version_type=windows 10171 shrext_cmds=".dll" 10172 need_version=no 10173 need_lib_prefix=no 10174 10175 case $GCC,$host_os in 10176 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10177 library_names_spec='$libname.dll.a' 10178 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10179 postinstall_cmds='base_file=`basename \${file}`~ 10180 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10181 dldir=$destdir/`dirname \$dlpath`~ 10182 test -d \$dldir || mkdir -p \$dldir~ 10183 $install_prog $dir/$dlname \$dldir/$dlname~ 10184 chmod a+x \$dldir/$dlname~ 10185 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10186 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10187 fi' 10188 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10189 dlpath=$dir/\$dldll~ 10190 $RM \$dlpath' 10191 shlibpath_overrides_runpath=yes 10192 10193 case $host_os in 10194 cygwin*) 10195 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10196 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10197 10198 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10199 ;; 10200 mingw* | cegcc*) 10201 # MinGW DLLs use traditional 'lib' prefix 10202 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10203 ;; 10204 pw32*) 10205 # pw32 DLLs use 'pw' prefix rather than 'lib' 10206 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10207 ;; 10208 esac 10209 ;; 10210 10211 *) 10212 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10213 ;; 10214 esac 10215 dynamic_linker='Win32 ld.exe' 10216 # FIXME: first we should search . and the directory the executable is in 10217 shlibpath_var=PATH 10218 ;; 10219 10220darwin* | rhapsody*) 10221 dynamic_linker="$host_os dyld" 10222 version_type=darwin 10223 need_lib_prefix=no 10224 need_version=no 10225 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10226 soname_spec='${libname}${release}${major}$shared_ext' 10227 shlibpath_overrides_runpath=yes 10228 shlibpath_var=DYLD_LIBRARY_PATH 10229 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10230 10231 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10232 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10233 ;; 10234 10235dgux*) 10236 version_type=linux 10237 need_lib_prefix=no 10238 need_version=no 10239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10240 soname_spec='${libname}${release}${shared_ext}$major' 10241 shlibpath_var=LD_LIBRARY_PATH 10242 ;; 10243 10244freebsd* | dragonfly*) 10245 # DragonFly does not have aout. When/if they implement a new 10246 # versioning mechanism, adjust this. 10247 if test -x /usr/bin/objformat; then 10248 objformat=`/usr/bin/objformat` 10249 else 10250 case $host_os in 10251 freebsd[23].*) objformat=aout ;; 10252 *) objformat=elf ;; 10253 esac 10254 fi 10255 version_type=freebsd-$objformat 10256 case $version_type in 10257 freebsd-elf*) 10258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10259 need_version=no 10260 need_lib_prefix=no 10261 ;; 10262 freebsd-*) 10263 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10264 need_version=yes 10265 ;; 10266 esac 10267 shlibpath_var=LD_LIBRARY_PATH 10268 case $host_os in 10269 freebsd2.*) 10270 shlibpath_overrides_runpath=yes 10271 ;; 10272 freebsd3.[01]* | freebsdelf3.[01]*) 10273 shlibpath_overrides_runpath=yes 10274 hardcode_into_libs=yes 10275 ;; 10276 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10277 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10278 shlibpath_overrides_runpath=no 10279 hardcode_into_libs=yes 10280 ;; 10281 *) # from 4.6 on, and DragonFly 10282 shlibpath_overrides_runpath=yes 10283 hardcode_into_libs=yes 10284 ;; 10285 esac 10286 ;; 10287 10288gnu*) 10289 version_type=linux 10290 need_lib_prefix=no 10291 need_version=no 10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10293 soname_spec='${libname}${release}${shared_ext}$major' 10294 shlibpath_var=LD_LIBRARY_PATH 10295 hardcode_into_libs=yes 10296 ;; 10297 10298haiku*) 10299 version_type=linux 10300 need_lib_prefix=no 10301 need_version=no 10302 dynamic_linker="$host_os runtime_loader" 10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10304 soname_spec='${libname}${release}${shared_ext}$major' 10305 shlibpath_var=LIBRARY_PATH 10306 shlibpath_overrides_runpath=yes 10307 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 10308 hardcode_into_libs=yes 10309 ;; 10310 10311hpux9* | hpux10* | hpux11*) 10312 # Give a soname corresponding to the major version so that dld.sl refuses to 10313 # link against other versions. 10314 version_type=sunos 10315 need_lib_prefix=no 10316 need_version=no 10317 case $host_cpu in 10318 ia64*) 10319 shrext_cmds='.so' 10320 hardcode_into_libs=yes 10321 dynamic_linker="$host_os dld.so" 10322 shlibpath_var=LD_LIBRARY_PATH 10323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10325 soname_spec='${libname}${release}${shared_ext}$major' 10326 if test "X$HPUX_IA64_MODE" = X32; then 10327 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10328 else 10329 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10330 fi 10331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10332 ;; 10333 hppa*64*) 10334 shrext_cmds='.sl' 10335 hardcode_into_libs=yes 10336 dynamic_linker="$host_os dld.sl" 10337 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10340 soname_spec='${libname}${release}${shared_ext}$major' 10341 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10343 ;; 10344 *) 10345 shrext_cmds='.sl' 10346 dynamic_linker="$host_os dld.sl" 10347 shlibpath_var=SHLIB_PATH 10348 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10350 soname_spec='${libname}${release}${shared_ext}$major' 10351 ;; 10352 esac 10353 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10354 postinstall_cmds='chmod 555 $lib' 10355 # or fails outright, so override atomically: 10356 install_override_mode=555 10357 ;; 10358 10359interix[3-9]*) 10360 version_type=linux 10361 need_lib_prefix=no 10362 need_version=no 10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10364 soname_spec='${libname}${release}${shared_ext}$major' 10365 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10366 shlibpath_var=LD_LIBRARY_PATH 10367 shlibpath_overrides_runpath=no 10368 hardcode_into_libs=yes 10369 ;; 10370 10371irix5* | irix6* | nonstopux*) 10372 case $host_os in 10373 nonstopux*) version_type=nonstopux ;; 10374 *) 10375 if test "$lt_cv_prog_gnu_ld" = yes; then 10376 version_type=linux 10377 else 10378 version_type=irix 10379 fi ;; 10380 esac 10381 need_lib_prefix=no 10382 need_version=no 10383 soname_spec='${libname}${release}${shared_ext}$major' 10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10385 case $host_os in 10386 irix5* | nonstopux*) 10387 libsuff= shlibsuff= 10388 ;; 10389 *) 10390 case $LD in # libtool.m4 will add one of these switches to LD 10391 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10392 libsuff= shlibsuff= libmagic=32-bit;; 10393 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10394 libsuff=32 shlibsuff=N32 libmagic=N32;; 10395 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10396 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10397 *) libsuff= shlibsuff= libmagic=never-match;; 10398 esac 10399 ;; 10400 esac 10401 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10402 shlibpath_overrides_runpath=no 10403 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10404 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10405 hardcode_into_libs=yes 10406 ;; 10407 10408# No shared lib support for Linux oldld, aout, or coff. 10409linux*oldld* | linux*aout* | linux*coff*) 10410 dynamic_linker=no 10411 ;; 10412 10413# This must be Linux ELF. 10414linux* | k*bsd*-gnu | kopensolaris*-gnu) 10415 version_type=linux 10416 need_lib_prefix=no 10417 need_version=no 10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10419 soname_spec='${libname}${release}${shared_ext}$major' 10420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10421 shlibpath_var=LD_LIBRARY_PATH 10422 shlibpath_overrides_runpath=no 10423 10424 # Some binutils ld are patched to set DT_RUNPATH 10425 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 10426 $as_echo_n "(cached) " >&6 10427else 10428 lt_cv_shlibpath_overrides_runpath=no 10429 save_LDFLAGS=$LDFLAGS 10430 save_libdir=$libdir 10431 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10432 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10434/* end confdefs.h. */ 10435 10436int 10437main () 10438{ 10439 10440 ; 10441 return 0; 10442} 10443_ACEOF 10444if ac_fn_c_try_link "$LINENO"; then : 10445 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10446 lt_cv_shlibpath_overrides_runpath=yes 10447fi 10448fi 10449rm -f core conftest.err conftest.$ac_objext \ 10450 conftest$ac_exeext conftest.$ac_ext 10451 LDFLAGS=$save_LDFLAGS 10452 libdir=$save_libdir 10453 10454fi 10455 10456 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10457 10458 # This implies no fast_install, which is unacceptable. 10459 # Some rework will be needed to allow for fast_install 10460 # before this can be enabled. 10461 hardcode_into_libs=yes 10462 10463 # Append ld.so.conf contents to the search path 10464 if test -f /etc/ld.so.conf; then 10465 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' ' '` 10466 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10467 fi 10468 10469 # We used to test for /lib/ld.so.1 and disable shared libraries on 10470 # powerpc, because MkLinux only supported shared libraries with the 10471 # GNU dynamic linker. Since this was broken with cross compilers, 10472 # most powerpc-linux boxes support dynamic linking these days and 10473 # people can always --disable-shared, the test was removed, and we 10474 # assume the GNU/Linux dynamic linker is in use. 10475 dynamic_linker='GNU/Linux ld.so' 10476 ;; 10477 10478netbsd*) 10479 version_type=sunos 10480 need_lib_prefix=no 10481 need_version=no 10482 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10485 dynamic_linker='NetBSD (a.out) ld.so' 10486 else 10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10488 soname_spec='${libname}${release}${shared_ext}$major' 10489 dynamic_linker='NetBSD ld.elf_so' 10490 fi 10491 shlibpath_var=LD_LIBRARY_PATH 10492 shlibpath_overrides_runpath=yes 10493 hardcode_into_libs=yes 10494 ;; 10495 10496newsos6) 10497 version_type=linux 10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10499 shlibpath_var=LD_LIBRARY_PATH 10500 shlibpath_overrides_runpath=yes 10501 ;; 10502 10503*nto* | *qnx*) 10504 version_type=qnx 10505 need_lib_prefix=no 10506 need_version=no 10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10508 soname_spec='${libname}${release}${shared_ext}$major' 10509 shlibpath_var=LD_LIBRARY_PATH 10510 shlibpath_overrides_runpath=no 10511 hardcode_into_libs=yes 10512 dynamic_linker='ldqnx.so' 10513 ;; 10514 10515openbsd*) 10516 version_type=sunos 10517 sys_lib_dlsearch_path_spec="/usr/lib" 10518 need_lib_prefix=no 10519 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10520 case $host_os in 10521 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10522 *) need_version=no ;; 10523 esac 10524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10526 shlibpath_var=LD_LIBRARY_PATH 10527 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10528 case $host_os in 10529 openbsd2.[89] | openbsd2.[89].*) 10530 shlibpath_overrides_runpath=no 10531 ;; 10532 *) 10533 shlibpath_overrides_runpath=yes 10534 ;; 10535 esac 10536 else 10537 shlibpath_overrides_runpath=yes 10538 fi 10539 ;; 10540 10541os2*) 10542 libname_spec='$name' 10543 shrext_cmds=".dll" 10544 need_lib_prefix=no 10545 library_names_spec='$libname${shared_ext} $libname.a' 10546 dynamic_linker='OS/2 ld.exe' 10547 shlibpath_var=LIBPATH 10548 ;; 10549 10550osf3* | osf4* | osf5*) 10551 version_type=osf 10552 need_lib_prefix=no 10553 need_version=no 10554 soname_spec='${libname}${release}${shared_ext}$major' 10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10556 shlibpath_var=LD_LIBRARY_PATH 10557 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10558 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10559 ;; 10560 10561rdos*) 10562 dynamic_linker=no 10563 ;; 10564 10565solaris*) 10566 version_type=linux 10567 need_lib_prefix=no 10568 need_version=no 10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10570 soname_spec='${libname}${release}${shared_ext}$major' 10571 shlibpath_var=LD_LIBRARY_PATH 10572 shlibpath_overrides_runpath=yes 10573 hardcode_into_libs=yes 10574 # ldd complains unless libraries are executable 10575 postinstall_cmds='chmod +x $lib' 10576 ;; 10577 10578sunos4*) 10579 version_type=sunos 10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10581 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10582 shlibpath_var=LD_LIBRARY_PATH 10583 shlibpath_overrides_runpath=yes 10584 if test "$with_gnu_ld" = yes; then 10585 need_lib_prefix=no 10586 fi 10587 need_version=yes 10588 ;; 10589 10590sysv4 | sysv4.3*) 10591 version_type=linux 10592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10593 soname_spec='${libname}${release}${shared_ext}$major' 10594 shlibpath_var=LD_LIBRARY_PATH 10595 case $host_vendor in 10596 sni) 10597 shlibpath_overrides_runpath=no 10598 need_lib_prefix=no 10599 runpath_var=LD_RUN_PATH 10600 ;; 10601 siemens) 10602 need_lib_prefix=no 10603 ;; 10604 motorola) 10605 need_lib_prefix=no 10606 need_version=no 10607 shlibpath_overrides_runpath=no 10608 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10609 ;; 10610 esac 10611 ;; 10612 10613sysv4*MP*) 10614 if test -d /usr/nec ;then 10615 version_type=linux 10616 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10617 soname_spec='$libname${shared_ext}.$major' 10618 shlibpath_var=LD_LIBRARY_PATH 10619 fi 10620 ;; 10621 10622sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10623 version_type=freebsd-elf 10624 need_lib_prefix=no 10625 need_version=no 10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10627 soname_spec='${libname}${release}${shared_ext}$major' 10628 shlibpath_var=LD_LIBRARY_PATH 10629 shlibpath_overrides_runpath=yes 10630 hardcode_into_libs=yes 10631 if test "$with_gnu_ld" = yes; then 10632 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10633 else 10634 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10635 case $host_os in 10636 sco3.2v5*) 10637 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10638 ;; 10639 esac 10640 fi 10641 sys_lib_dlsearch_path_spec='/usr/lib' 10642 ;; 10643 10644tpf*) 10645 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10646 version_type=linux 10647 need_lib_prefix=no 10648 need_version=no 10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10650 shlibpath_var=LD_LIBRARY_PATH 10651 shlibpath_overrides_runpath=no 10652 hardcode_into_libs=yes 10653 ;; 10654 10655uts4*) 10656 version_type=linux 10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10658 soname_spec='${libname}${release}${shared_ext}$major' 10659 shlibpath_var=LD_LIBRARY_PATH 10660 ;; 10661 10662*) 10663 dynamic_linker=no 10664 ;; 10665esac 10666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10667$as_echo "$dynamic_linker" >&6; } 10668test "$dynamic_linker" = no && can_build_shared=no 10669 10670variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10671if test "$GCC" = yes; then 10672 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10673fi 10674 10675if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10676 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10677fi 10678if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10679 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10680fi 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 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10774$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10775hardcode_action= 10776if test -n "$hardcode_libdir_flag_spec" || 10777 test -n "$runpath_var" || 10778 test "X$hardcode_automatic" = "Xyes" ; then 10779 10780 # We can hardcode non-existent directories. 10781 if test "$hardcode_direct" != no && 10782 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10783 # have to relink, otherwise we might link with an installed library 10784 # when we should be linking with a yet-to-be-installed one 10785 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10786 test "$hardcode_minus_L" != no; then 10787 # Linking always hardcodes the temporary library directory. 10788 hardcode_action=relink 10789 else 10790 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10791 hardcode_action=immediate 10792 fi 10793else 10794 # We cannot hardcode anything, or else we can only hardcode existing 10795 # directories. 10796 hardcode_action=unsupported 10797fi 10798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10799$as_echo "$hardcode_action" >&6; } 10800 10801if test "$hardcode_action" = relink || 10802 test "$inherit_rpath" = yes; then 10803 # Fast installation is not supported 10804 enable_fast_install=no 10805elif test "$shlibpath_overrides_runpath" = yes || 10806 test "$enable_shared" = no; then 10807 # Fast installation is not necessary 10808 enable_fast_install=needless 10809fi 10810 10811 10812 10813 10814 10815 10816 if test "x$enable_dlopen" != xyes; then 10817 enable_dlopen=unknown 10818 enable_dlopen_self=unknown 10819 enable_dlopen_self_static=unknown 10820else 10821 lt_cv_dlopen=no 10822 lt_cv_dlopen_libs= 10823 10824 case $host_os in 10825 beos*) 10826 lt_cv_dlopen="load_add_on" 10827 lt_cv_dlopen_libs= 10828 lt_cv_dlopen_self=yes 10829 ;; 10830 10831 mingw* | pw32* | cegcc*) 10832 lt_cv_dlopen="LoadLibrary" 10833 lt_cv_dlopen_libs= 10834 ;; 10835 10836 cygwin*) 10837 lt_cv_dlopen="dlopen" 10838 lt_cv_dlopen_libs= 10839 ;; 10840 10841 darwin*) 10842 # if libdl is installed we need to link against it 10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10844$as_echo_n "checking for dlopen in -ldl... " >&6; } 10845if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10846 $as_echo_n "(cached) " >&6 10847else 10848 ac_check_lib_save_LIBS=$LIBS 10849LIBS="-ldl $LIBS" 10850cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10851/* end confdefs.h. */ 10852 10853/* Override any GCC internal prototype to avoid an error. 10854 Use char because int might match the return type of a GCC 10855 builtin and then its argument prototype would still apply. */ 10856#ifdef __cplusplus 10857extern "C" 10858#endif 10859char dlopen (); 10860int 10861main () 10862{ 10863return dlopen (); 10864 ; 10865 return 0; 10866} 10867_ACEOF 10868if ac_fn_c_try_link "$LINENO"; then : 10869 ac_cv_lib_dl_dlopen=yes 10870else 10871 ac_cv_lib_dl_dlopen=no 10872fi 10873rm -f core conftest.err conftest.$ac_objext \ 10874 conftest$ac_exeext conftest.$ac_ext 10875LIBS=$ac_check_lib_save_LIBS 10876fi 10877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10878$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10879if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10880 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10881else 10882 10883 lt_cv_dlopen="dyld" 10884 lt_cv_dlopen_libs= 10885 lt_cv_dlopen_self=yes 10886 10887fi 10888 10889 ;; 10890 10891 *) 10892 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10893if test "x$ac_cv_func_shl_load" = x""yes; then : 10894 lt_cv_dlopen="shl_load" 10895else 10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10897$as_echo_n "checking for shl_load in -ldld... " >&6; } 10898if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10899 $as_echo_n "(cached) " >&6 10900else 10901 ac_check_lib_save_LIBS=$LIBS 10902LIBS="-ldld $LIBS" 10903cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10904/* end confdefs.h. */ 10905 10906/* Override any GCC internal prototype to avoid an error. 10907 Use char because int might match the return type of a GCC 10908 builtin and then its argument prototype would still apply. */ 10909#ifdef __cplusplus 10910extern "C" 10911#endif 10912char shl_load (); 10913int 10914main () 10915{ 10916return shl_load (); 10917 ; 10918 return 0; 10919} 10920_ACEOF 10921if ac_fn_c_try_link "$LINENO"; then : 10922 ac_cv_lib_dld_shl_load=yes 10923else 10924 ac_cv_lib_dld_shl_load=no 10925fi 10926rm -f core conftest.err conftest.$ac_objext \ 10927 conftest$ac_exeext conftest.$ac_ext 10928LIBS=$ac_check_lib_save_LIBS 10929fi 10930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10931$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10932if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10933 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10934else 10935 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10936if test "x$ac_cv_func_dlopen" = x""yes; then : 10937 lt_cv_dlopen="dlopen" 10938else 10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10940$as_echo_n "checking for dlopen in -ldl... " >&6; } 10941if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10942 $as_echo_n "(cached) " >&6 10943else 10944 ac_check_lib_save_LIBS=$LIBS 10945LIBS="-ldl $LIBS" 10946cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10947/* end confdefs.h. */ 10948 10949/* Override any GCC internal prototype to avoid an error. 10950 Use char because int might match the return type of a GCC 10951 builtin and then its argument prototype would still apply. */ 10952#ifdef __cplusplus 10953extern "C" 10954#endif 10955char dlopen (); 10956int 10957main () 10958{ 10959return dlopen (); 10960 ; 10961 return 0; 10962} 10963_ACEOF 10964if ac_fn_c_try_link "$LINENO"; then : 10965 ac_cv_lib_dl_dlopen=yes 10966else 10967 ac_cv_lib_dl_dlopen=no 10968fi 10969rm -f core conftest.err conftest.$ac_objext \ 10970 conftest$ac_exeext conftest.$ac_ext 10971LIBS=$ac_check_lib_save_LIBS 10972fi 10973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10974$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10975if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10976 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10977else 10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10979$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10980if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10981 $as_echo_n "(cached) " >&6 10982else 10983 ac_check_lib_save_LIBS=$LIBS 10984LIBS="-lsvld $LIBS" 10985cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10986/* end confdefs.h. */ 10987 10988/* Override any GCC internal prototype to avoid an error. 10989 Use char because int might match the return type of a GCC 10990 builtin and then its argument prototype would still apply. */ 10991#ifdef __cplusplus 10992extern "C" 10993#endif 10994char dlopen (); 10995int 10996main () 10997{ 10998return dlopen (); 10999 ; 11000 return 0; 11001} 11002_ACEOF 11003if ac_fn_c_try_link "$LINENO"; then : 11004 ac_cv_lib_svld_dlopen=yes 11005else 11006 ac_cv_lib_svld_dlopen=no 11007fi 11008rm -f core conftest.err conftest.$ac_objext \ 11009 conftest$ac_exeext conftest.$ac_ext 11010LIBS=$ac_check_lib_save_LIBS 11011fi 11012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11013$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11014if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11015 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11016else 11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11018$as_echo_n "checking for dld_link in -ldld... " >&6; } 11019if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11020 $as_echo_n "(cached) " >&6 11021else 11022 ac_check_lib_save_LIBS=$LIBS 11023LIBS="-ldld $LIBS" 11024cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11025/* end confdefs.h. */ 11026 11027/* Override any GCC internal prototype to avoid an error. 11028 Use char because int might match the return type of a GCC 11029 builtin and then its argument prototype would still apply. */ 11030#ifdef __cplusplus 11031extern "C" 11032#endif 11033char dld_link (); 11034int 11035main () 11036{ 11037return dld_link (); 11038 ; 11039 return 0; 11040} 11041_ACEOF 11042if ac_fn_c_try_link "$LINENO"; then : 11043 ac_cv_lib_dld_dld_link=yes 11044else 11045 ac_cv_lib_dld_dld_link=no 11046fi 11047rm -f core conftest.err conftest.$ac_objext \ 11048 conftest$ac_exeext conftest.$ac_ext 11049LIBS=$ac_check_lib_save_LIBS 11050fi 11051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11052$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11053if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11054 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11055fi 11056 11057 11058fi 11059 11060 11061fi 11062 11063 11064fi 11065 11066 11067fi 11068 11069 11070fi 11071 11072 ;; 11073 esac 11074 11075 if test "x$lt_cv_dlopen" != xno; then 11076 enable_dlopen=yes 11077 else 11078 enable_dlopen=no 11079 fi 11080 11081 case $lt_cv_dlopen in 11082 dlopen) 11083 save_CPPFLAGS="$CPPFLAGS" 11084 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11085 11086 save_LDFLAGS="$LDFLAGS" 11087 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11088 11089 save_LIBS="$LIBS" 11090 LIBS="$lt_cv_dlopen_libs $LIBS" 11091 11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11093$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11094if test "${lt_cv_dlopen_self+set}" = set; then : 11095 $as_echo_n "(cached) " >&6 11096else 11097 if test "$cross_compiling" = yes; then : 11098 lt_cv_dlopen_self=cross 11099else 11100 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11101 lt_status=$lt_dlunknown 11102 cat > conftest.$ac_ext <<_LT_EOF 11103#line 11103 "configure" 11104#include "confdefs.h" 11105 11106#if HAVE_DLFCN_H 11107#include <dlfcn.h> 11108#endif 11109 11110#include <stdio.h> 11111 11112#ifdef RTLD_GLOBAL 11113# define LT_DLGLOBAL RTLD_GLOBAL 11114#else 11115# ifdef DL_GLOBAL 11116# define LT_DLGLOBAL DL_GLOBAL 11117# else 11118# define LT_DLGLOBAL 0 11119# endif 11120#endif 11121 11122/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11123 find out it does not work in some platform. */ 11124#ifndef LT_DLLAZY_OR_NOW 11125# ifdef RTLD_LAZY 11126# define LT_DLLAZY_OR_NOW RTLD_LAZY 11127# else 11128# ifdef DL_LAZY 11129# define LT_DLLAZY_OR_NOW DL_LAZY 11130# else 11131# ifdef RTLD_NOW 11132# define LT_DLLAZY_OR_NOW RTLD_NOW 11133# else 11134# ifdef DL_NOW 11135# define LT_DLLAZY_OR_NOW DL_NOW 11136# else 11137# define LT_DLLAZY_OR_NOW 0 11138# endif 11139# endif 11140# endif 11141# endif 11142#endif 11143 11144/* When -fvisbility=hidden is used, assume the code has been annotated 11145 correspondingly for the symbols needed. */ 11146#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11147void fnord () __attribute__((visibility("default"))); 11148#endif 11149 11150void fnord () { int i=42; } 11151int main () 11152{ 11153 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11154 int status = $lt_dlunknown; 11155 11156 if (self) 11157 { 11158 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11159 else 11160 { 11161 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11162 else puts (dlerror ()); 11163 } 11164 /* dlclose (self); */ 11165 } 11166 else 11167 puts (dlerror ()); 11168 11169 return status; 11170} 11171_LT_EOF 11172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11173 (eval $ac_link) 2>&5 11174 ac_status=$? 11175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11176 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11177 (./conftest; exit; ) >&5 2>/dev/null 11178 lt_status=$? 11179 case x$lt_status in 11180 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11181 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11182 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11183 esac 11184 else : 11185 # compilation failed 11186 lt_cv_dlopen_self=no 11187 fi 11188fi 11189rm -fr conftest* 11190 11191 11192fi 11193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11194$as_echo "$lt_cv_dlopen_self" >&6; } 11195 11196 if test "x$lt_cv_dlopen_self" = xyes; then 11197 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11199$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11200if test "${lt_cv_dlopen_self_static+set}" = set; then : 11201 $as_echo_n "(cached) " >&6 11202else 11203 if test "$cross_compiling" = yes; then : 11204 lt_cv_dlopen_self_static=cross 11205else 11206 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11207 lt_status=$lt_dlunknown 11208 cat > conftest.$ac_ext <<_LT_EOF 11209#line 11209 "configure" 11210#include "confdefs.h" 11211 11212#if HAVE_DLFCN_H 11213#include <dlfcn.h> 11214#endif 11215 11216#include <stdio.h> 11217 11218#ifdef RTLD_GLOBAL 11219# define LT_DLGLOBAL RTLD_GLOBAL 11220#else 11221# ifdef DL_GLOBAL 11222# define LT_DLGLOBAL DL_GLOBAL 11223# else 11224# define LT_DLGLOBAL 0 11225# endif 11226#endif 11227 11228/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11229 find out it does not work in some platform. */ 11230#ifndef LT_DLLAZY_OR_NOW 11231# ifdef RTLD_LAZY 11232# define LT_DLLAZY_OR_NOW RTLD_LAZY 11233# else 11234# ifdef DL_LAZY 11235# define LT_DLLAZY_OR_NOW DL_LAZY 11236# else 11237# ifdef RTLD_NOW 11238# define LT_DLLAZY_OR_NOW RTLD_NOW 11239# else 11240# ifdef DL_NOW 11241# define LT_DLLAZY_OR_NOW DL_NOW 11242# else 11243# define LT_DLLAZY_OR_NOW 0 11244# endif 11245# endif 11246# endif 11247# endif 11248#endif 11249 11250/* When -fvisbility=hidden is used, assume the code has been annotated 11251 correspondingly for the symbols needed. */ 11252#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11253void fnord () __attribute__((visibility("default"))); 11254#endif 11255 11256void fnord () { int i=42; } 11257int main () 11258{ 11259 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11260 int status = $lt_dlunknown; 11261 11262 if (self) 11263 { 11264 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11265 else 11266 { 11267 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11268 else puts (dlerror ()); 11269 } 11270 /* dlclose (self); */ 11271 } 11272 else 11273 puts (dlerror ()); 11274 11275 return status; 11276} 11277_LT_EOF 11278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11279 (eval $ac_link) 2>&5 11280 ac_status=$? 11281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11282 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11283 (./conftest; exit; ) >&5 2>/dev/null 11284 lt_status=$? 11285 case x$lt_status in 11286 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11287 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11288 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11289 esac 11290 else : 11291 # compilation failed 11292 lt_cv_dlopen_self_static=no 11293 fi 11294fi 11295rm -fr conftest* 11296 11297 11298fi 11299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11300$as_echo "$lt_cv_dlopen_self_static" >&6; } 11301 fi 11302 11303 CPPFLAGS="$save_CPPFLAGS" 11304 LDFLAGS="$save_LDFLAGS" 11305 LIBS="$save_LIBS" 11306 ;; 11307 esac 11308 11309 case $lt_cv_dlopen_self in 11310 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11311 *) enable_dlopen_self=unknown ;; 11312 esac 11313 11314 case $lt_cv_dlopen_self_static in 11315 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11316 *) enable_dlopen_self_static=unknown ;; 11317 esac 11318fi 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336striplib= 11337old_striplib= 11338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11339$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11340if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11341 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11342 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11344$as_echo "yes" >&6; } 11345else 11346# FIXME - insert some real tests, host_os isn't really good enough 11347 case $host_os in 11348 darwin*) 11349 if test -n "$STRIP" ; then 11350 striplib="$STRIP -x" 11351 old_striplib="$STRIP -S" 11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11353$as_echo "yes" >&6; } 11354 else 11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11356$as_echo "no" >&6; } 11357 fi 11358 ;; 11359 *) 11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11361$as_echo "no" >&6; } 11362 ;; 11363 esac 11364fi 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 # Report which library types will actually be built 11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11379$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11381$as_echo "$can_build_shared" >&6; } 11382 11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11384$as_echo_n "checking whether to build shared libraries... " >&6; } 11385 test "$can_build_shared" = "no" && enable_shared=no 11386 11387 # On AIX, shared libraries and static libraries use the same namespace, and 11388 # are all built from PIC. 11389 case $host_os in 11390 aix3*) 11391 test "$enable_shared" = yes && enable_static=no 11392 if test -n "$RANLIB"; then 11393 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11394 postinstall_cmds='$RANLIB $lib' 11395 fi 11396 ;; 11397 11398 aix[4-9]*) 11399 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11400 test "$enable_shared" = yes && enable_static=no 11401 fi 11402 ;; 11403 esac 11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11405$as_echo "$enable_shared" >&6; } 11406 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11408$as_echo_n "checking whether to build static libraries... " >&6; } 11409 # Make sure either enable_shared or enable_static is yes. 11410 test "$enable_shared" = yes || enable_static=yes 11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11412$as_echo "$enable_static" >&6; } 11413 11414 11415 11416 11417fi 11418ac_ext=c 11419ac_cpp='$CPP $CPPFLAGS' 11420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11422ac_compiler_gnu=$ac_cv_c_compiler_gnu 11423 11424CC="$lt_save_CC" 11425 11426 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11427 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11428 (test "X$CXX" != "Xg++"))) ; then 11429 ac_ext=cpp 11430ac_cpp='$CXXCPP $CPPFLAGS' 11431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 11435$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 11436if test -z "$CXXCPP"; then 11437 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 11438 $as_echo_n "(cached) " >&6 11439else 11440 # Double quotes because CXXCPP needs to be expanded 11441 for CXXCPP in "$CXX -E" "/lib/cpp" 11442 do 11443 ac_preproc_ok=false 11444for ac_cxx_preproc_warn_flag in '' yes 11445do 11446 # Use a header file that comes with gcc, so configuring glibc 11447 # with a fresh cross-compiler works. 11448 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11449 # <limits.h> exists even on freestanding compilers. 11450 # On the NeXT, cc -E runs the code through the compiler's parser, 11451 # not just through cpp. "Syntax error" is here to catch this case. 11452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11453/* end confdefs.h. */ 11454#ifdef __STDC__ 11455# include <limits.h> 11456#else 11457# include <assert.h> 11458#endif 11459 Syntax error 11460_ACEOF 11461if ac_fn_cxx_try_cpp "$LINENO"; then : 11462 11463else 11464 # Broken: fails on valid input. 11465continue 11466fi 11467rm -f conftest.err conftest.$ac_ext 11468 11469 # OK, works on sane cases. Now check whether nonexistent headers 11470 # can be detected and how. 11471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11472/* end confdefs.h. */ 11473#include <ac_nonexistent.h> 11474_ACEOF 11475if ac_fn_cxx_try_cpp "$LINENO"; then : 11476 # Broken: success on invalid input. 11477continue 11478else 11479 # Passes both tests. 11480ac_preproc_ok=: 11481break 11482fi 11483rm -f conftest.err conftest.$ac_ext 11484 11485done 11486# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11487rm -f conftest.err conftest.$ac_ext 11488if $ac_preproc_ok; then : 11489 break 11490fi 11491 11492 done 11493 ac_cv_prog_CXXCPP=$CXXCPP 11494 11495fi 11496 CXXCPP=$ac_cv_prog_CXXCPP 11497else 11498 ac_cv_prog_CXXCPP=$CXXCPP 11499fi 11500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 11501$as_echo "$CXXCPP" >&6; } 11502ac_preproc_ok=false 11503for ac_cxx_preproc_warn_flag in '' yes 11504do 11505 # Use a header file that comes with gcc, so configuring glibc 11506 # with a fresh cross-compiler works. 11507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11508 # <limits.h> exists even on freestanding compilers. 11509 # On the NeXT, cc -E runs the code through the compiler's parser, 11510 # not just through cpp. "Syntax error" is here to catch this case. 11511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11512/* end confdefs.h. */ 11513#ifdef __STDC__ 11514# include <limits.h> 11515#else 11516# include <assert.h> 11517#endif 11518 Syntax error 11519_ACEOF 11520if ac_fn_cxx_try_cpp "$LINENO"; then : 11521 11522else 11523 # Broken: fails on valid input. 11524continue 11525fi 11526rm -f conftest.err conftest.$ac_ext 11527 11528 # OK, works on sane cases. Now check whether nonexistent headers 11529 # can be detected and how. 11530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11531/* end confdefs.h. */ 11532#include <ac_nonexistent.h> 11533_ACEOF 11534if ac_fn_cxx_try_cpp "$LINENO"; then : 11535 # Broken: success on invalid input. 11536continue 11537else 11538 # Passes both tests. 11539ac_preproc_ok=: 11540break 11541fi 11542rm -f conftest.err conftest.$ac_ext 11543 11544done 11545# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11546rm -f conftest.err conftest.$ac_ext 11547if $ac_preproc_ok; then : 11548 11549else 11550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11552as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check 11553See \`config.log' for more details." "$LINENO" 5; } 11554fi 11555 11556ac_ext=c 11557ac_cpp='$CPP $CPPFLAGS' 11558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11560ac_compiler_gnu=$ac_cv_c_compiler_gnu 11561 11562else 11563 _lt_caught_CXX_error=yes 11564fi 11565 11566ac_ext=cpp 11567ac_cpp='$CXXCPP $CPPFLAGS' 11568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11571 11572archive_cmds_need_lc_CXX=no 11573allow_undefined_flag_CXX= 11574always_export_symbols_CXX=no 11575archive_expsym_cmds_CXX= 11576compiler_needs_object_CXX=no 11577export_dynamic_flag_spec_CXX= 11578hardcode_direct_CXX=no 11579hardcode_direct_absolute_CXX=no 11580hardcode_libdir_flag_spec_CXX= 11581hardcode_libdir_flag_spec_ld_CXX= 11582hardcode_libdir_separator_CXX= 11583hardcode_minus_L_CXX=no 11584hardcode_shlibpath_var_CXX=unsupported 11585hardcode_automatic_CXX=no 11586inherit_rpath_CXX=no 11587module_cmds_CXX= 11588module_expsym_cmds_CXX= 11589link_all_deplibs_CXX=unknown 11590old_archive_cmds_CXX=$old_archive_cmds 11591reload_flag_CXX=$reload_flag 11592reload_cmds_CXX=$reload_cmds 11593no_undefined_flag_CXX= 11594whole_archive_flag_spec_CXX= 11595enable_shared_with_static_runtimes_CXX=no 11596 11597# Source file extension for C++ test sources. 11598ac_ext=cpp 11599 11600# Object file extension for compiled C++ test sources. 11601objext=o 11602objext_CXX=$objext 11603 11604# No sense in running all these tests if we already determined that 11605# the CXX compiler isn't working. Some variables (like enable_shared) 11606# are currently assumed to apply to all compilers on this platform, 11607# and will be corrupted by setting them based on a non-working compiler. 11608if test "$_lt_caught_CXX_error" != yes; then 11609 # Code to be used in simple compile tests 11610 lt_simple_compile_test_code="int some_variable = 0;" 11611 11612 # Code to be used in simple link tests 11613 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11614 11615 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11616 11617 11618 11619 11620 11621 11622# If no C compiler was specified, use CC. 11623LTCC=${LTCC-"$CC"} 11624 11625# If no C compiler flags were specified, use CFLAGS. 11626LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11627 11628# Allow CC to be a program name with arguments. 11629compiler=$CC 11630 11631 11632 # save warnings/boilerplate of simple test code 11633 ac_outfile=conftest.$ac_objext 11634echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11635eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11636_lt_compiler_boilerplate=`cat conftest.err` 11637$RM conftest* 11638 11639 ac_outfile=conftest.$ac_objext 11640echo "$lt_simple_link_test_code" >conftest.$ac_ext 11641eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11642_lt_linker_boilerplate=`cat conftest.err` 11643$RM -r conftest* 11644 11645 11646 # Allow CC to be a program name with arguments. 11647 lt_save_CC=$CC 11648 lt_save_LD=$LD 11649 lt_save_GCC=$GCC 11650 GCC=$GXX 11651 lt_save_with_gnu_ld=$with_gnu_ld 11652 lt_save_path_LD=$lt_cv_path_LD 11653 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11654 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11655 else 11656 $as_unset lt_cv_prog_gnu_ld 11657 fi 11658 if test -n "${lt_cv_path_LDCXX+set}"; then 11659 lt_cv_path_LD=$lt_cv_path_LDCXX 11660 else 11661 $as_unset lt_cv_path_LD 11662 fi 11663 test -z "${LDCXX+set}" || LD=$LDCXX 11664 CC=${CXX-"c++"} 11665 compiler=$CC 11666 compiler_CXX=$CC 11667 for cc_temp in $compiler""; do 11668 case $cc_temp in 11669 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11670 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11671 \-*) ;; 11672 *) break;; 11673 esac 11674done 11675cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11676 11677 11678 if test -n "$compiler"; then 11679 # We don't want -fno-exception when compiling C++ code, so set the 11680 # no_builtin_flag separately 11681 if test "$GXX" = yes; then 11682 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11683 else 11684 lt_prog_compiler_no_builtin_flag_CXX= 11685 fi 11686 11687 if test "$GXX" = yes; then 11688 # Set up default GNU C++ configuration 11689 11690 11691 11692# Check whether --with-gnu-ld was given. 11693if test "${with_gnu_ld+set}" = set; then : 11694 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11695else 11696 with_gnu_ld=no 11697fi 11698 11699ac_prog=ld 11700if test "$GCC" = yes; then 11701 # Check if gcc -print-prog-name=ld gives a path. 11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11703$as_echo_n "checking for ld used by $CC... " >&6; } 11704 case $host in 11705 *-*-mingw*) 11706 # gcc leaves a trailing carriage return which upsets mingw 11707 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11708 *) 11709 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11710 esac 11711 case $ac_prog in 11712 # Accept absolute paths. 11713 [\\/]* | ?:[\\/]*) 11714 re_direlt='/[^/][^/]*/\.\./' 11715 # Canonicalize the pathname of ld 11716 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11717 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11718 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11719 done 11720 test -z "$LD" && LD="$ac_prog" 11721 ;; 11722 "") 11723 # If it fails, then pretend we aren't using GCC. 11724 ac_prog=ld 11725 ;; 11726 *) 11727 # If it is relative, then search for the first ld in PATH. 11728 with_gnu_ld=unknown 11729 ;; 11730 esac 11731elif test "$with_gnu_ld" = yes; then 11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11733$as_echo_n "checking for GNU ld... " >&6; } 11734else 11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11736$as_echo_n "checking for non-GNU ld... " >&6; } 11737fi 11738if test "${lt_cv_path_LD+set}" = set; then : 11739 $as_echo_n "(cached) " >&6 11740else 11741 if test -z "$LD"; then 11742 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11743 for ac_dir in $PATH; do 11744 IFS="$lt_save_ifs" 11745 test -z "$ac_dir" && ac_dir=. 11746 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11747 lt_cv_path_LD="$ac_dir/$ac_prog" 11748 # Check to see if the program is GNU ld. I'd rather use --version, 11749 # but apparently some variants of GNU ld only accept -v. 11750 # Break only if it was the GNU/non-GNU ld that we prefer. 11751 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11752 *GNU* | *'with BFD'*) 11753 test "$with_gnu_ld" != no && break 11754 ;; 11755 *) 11756 test "$with_gnu_ld" != yes && break 11757 ;; 11758 esac 11759 fi 11760 done 11761 IFS="$lt_save_ifs" 11762else 11763 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11764fi 11765fi 11766 11767LD="$lt_cv_path_LD" 11768if test -n "$LD"; then 11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11770$as_echo "$LD" >&6; } 11771else 11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11773$as_echo "no" >&6; } 11774fi 11775test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 11776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11777$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11778if test "${lt_cv_prog_gnu_ld+set}" = set; then : 11779 $as_echo_n "(cached) " >&6 11780else 11781 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11782case `$LD -v 2>&1 </dev/null` in 11783*GNU* | *'with BFD'*) 11784 lt_cv_prog_gnu_ld=yes 11785 ;; 11786*) 11787 lt_cv_prog_gnu_ld=no 11788 ;; 11789esac 11790fi 11791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11792$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11793with_gnu_ld=$lt_cv_prog_gnu_ld 11794 11795 11796 11797 11798 11799 11800 11801 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11802 # archiving commands below assume that GNU ld is being used. 11803 if test "$with_gnu_ld" = yes; then 11804 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11805 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11806 11807 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11808 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11809 11810 # If archive_cmds runs LD, not CC, wlarc should be empty 11811 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11812 # investigate it a little bit more. (MM) 11813 wlarc='${wl}' 11814 11815 # ancient GNU ld didn't support --whole-archive et. al. 11816 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 11817 $GREP 'no-whole-archive' > /dev/null; then 11818 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11819 else 11820 whole_archive_flag_spec_CXX= 11821 fi 11822 else 11823 with_gnu_ld=no 11824 wlarc= 11825 11826 # A generic and very simple default shared library creation 11827 # command for GNU C++ for the case where it uses the native 11828 # linker, instead of GNU ld. If possible, this setting should 11829 # overridden to take advantage of the native linker features on 11830 # the platform it is being used on. 11831 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11832 fi 11833 11834 # Commands to make compiler produce verbose output that lists 11835 # what "hidden" libraries, object files and flags are used when 11836 # linking a shared library. 11837 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 11838 11839 else 11840 GXX=no 11841 with_gnu_ld=no 11842 wlarc= 11843 fi 11844 11845 # PORTME: fill in a description of your system's C++ link characteristics 11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11847$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11848 ld_shlibs_CXX=yes 11849 case $host_os in 11850 aix3*) 11851 # FIXME: insert proper C++ library support 11852 ld_shlibs_CXX=no 11853 ;; 11854 aix[4-9]*) 11855 if test "$host_cpu" = ia64; then 11856 # On IA64, the linker does run time linking by default, so we don't 11857 # have to do anything special. 11858 aix_use_runtimelinking=no 11859 exp_sym_flag='-Bexport' 11860 no_entry_flag="" 11861 else 11862 aix_use_runtimelinking=no 11863 11864 # Test if we are trying to use run time linking or normal 11865 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11866 # need to do runtime linking. 11867 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11868 for ld_flag in $LDFLAGS; do 11869 case $ld_flag in 11870 *-brtl*) 11871 aix_use_runtimelinking=yes 11872 break 11873 ;; 11874 esac 11875 done 11876 ;; 11877 esac 11878 11879 exp_sym_flag='-bexport' 11880 no_entry_flag='-bnoentry' 11881 fi 11882 11883 # When large executables or shared objects are built, AIX ld can 11884 # have problems creating the table of contents. If linking a library 11885 # or program results in "error TOC overflow" add -mminimal-toc to 11886 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11887 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11888 11889 archive_cmds_CXX='' 11890 hardcode_direct_CXX=yes 11891 hardcode_direct_absolute_CXX=yes 11892 hardcode_libdir_separator_CXX=':' 11893 link_all_deplibs_CXX=yes 11894 file_list_spec_CXX='${wl}-f,' 11895 11896 if test "$GXX" = yes; then 11897 case $host_os in aix4.[012]|aix4.[012].*) 11898 # We only want to do this on AIX 4.2 and lower, the check 11899 # below for broken collect2 doesn't work under 4.3+ 11900 collect2name=`${CC} -print-prog-name=collect2` 11901 if test -f "$collect2name" && 11902 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11903 then 11904 # We have reworked collect2 11905 : 11906 else 11907 # We have old collect2 11908 hardcode_direct_CXX=unsupported 11909 # It fails to find uninstalled libraries when the uninstalled 11910 # path is not listed in the libpath. Setting hardcode_minus_L 11911 # to unsupported forces relinking 11912 hardcode_minus_L_CXX=yes 11913 hardcode_libdir_flag_spec_CXX='-L$libdir' 11914 hardcode_libdir_separator_CXX= 11915 fi 11916 esac 11917 shared_flag='-shared' 11918 if test "$aix_use_runtimelinking" = yes; then 11919 shared_flag="$shared_flag "'${wl}-G' 11920 fi 11921 else 11922 # not using gcc 11923 if test "$host_cpu" = ia64; then 11924 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11925 # chokes on -Wl,-G. The following line is correct: 11926 shared_flag='-G' 11927 else 11928 if test "$aix_use_runtimelinking" = yes; then 11929 shared_flag='${wl}-G' 11930 else 11931 shared_flag='${wl}-bM:SRE' 11932 fi 11933 fi 11934 fi 11935 11936 export_dynamic_flag_spec_CXX='${wl}-bexpall' 11937 # It seems that -bexpall does not export symbols beginning with 11938 # underscore (_), so it is better to generate a list of symbols to 11939 # export. 11940 always_export_symbols_CXX=yes 11941 if test "$aix_use_runtimelinking" = yes; then 11942 # Warning - without using the other runtime loading flags (-brtl), 11943 # -berok will link without error, but may produce a broken library. 11944 allow_undefined_flag_CXX='-berok' 11945 # Determine the default libpath from the value encoded in an empty 11946 # executable. 11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11948/* end confdefs.h. */ 11949 11950int 11951main () 11952{ 11953 11954 ; 11955 return 0; 11956} 11957_ACEOF 11958if ac_fn_cxx_try_link "$LINENO"; then : 11959 11960lt_aix_libpath_sed=' 11961 /Import File Strings/,/^$/ { 11962 /^0/ { 11963 s/^0 *\(.*\)$/\1/ 11964 p 11965 } 11966 }' 11967aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11968# Check for a 64-bit object if we didn't find anything. 11969if test -z "$aix_libpath"; then 11970 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11971fi 11972fi 11973rm -f core conftest.err conftest.$ac_objext \ 11974 conftest$ac_exeext conftest.$ac_ext 11975if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11976 11977 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11978 11979 archive_expsym_cmds_CXX='$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" 11980 else 11981 if test "$host_cpu" = ia64; then 11982 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11983 allow_undefined_flag_CXX="-z nodefs" 11984 archive_expsym_cmds_CXX="\$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" 11985 else 11986 # Determine the default libpath from the value encoded in an 11987 # empty executable. 11988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11989/* end confdefs.h. */ 11990 11991int 11992main () 11993{ 11994 11995 ; 11996 return 0; 11997} 11998_ACEOF 11999if ac_fn_cxx_try_link "$LINENO"; then : 12000 12001lt_aix_libpath_sed=' 12002 /Import File Strings/,/^$/ { 12003 /^0/ { 12004 s/^0 *\(.*\)$/\1/ 12005 p 12006 } 12007 }' 12008aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12009# Check for a 64-bit object if we didn't find anything. 12010if test -z "$aix_libpath"; then 12011 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12012fi 12013fi 12014rm -f core conftest.err conftest.$ac_objext \ 12015 conftest$ac_exeext conftest.$ac_ext 12016if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12017 12018 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12019 # Warning - without using the other run time loading flags, 12020 # -berok will link without error, but may produce a broken library. 12021 no_undefined_flag_CXX=' ${wl}-bernotok' 12022 allow_undefined_flag_CXX=' ${wl}-berok' 12023 if test "$with_gnu_ld" = yes; then 12024 # We only use this code for GNU lds that support --whole-archive. 12025 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12026 else 12027 # Exported symbols can be pulled into shared objects from archives 12028 whole_archive_flag_spec_CXX='$convenience' 12029 fi 12030 archive_cmds_need_lc_CXX=yes 12031 # This is similar to how AIX traditionally builds its shared 12032 # libraries. 12033 archive_expsym_cmds_CXX="\$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' 12034 fi 12035 fi 12036 ;; 12037 12038 beos*) 12039 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12040 allow_undefined_flag_CXX=unsupported 12041 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12042 # support --undefined. This deserves some investigation. FIXME 12043 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12044 else 12045 ld_shlibs_CXX=no 12046 fi 12047 ;; 12048 12049 chorus*) 12050 case $cc_basename in 12051 *) 12052 # FIXME: insert proper C++ library support 12053 ld_shlibs_CXX=no 12054 ;; 12055 esac 12056 ;; 12057 12058 cygwin* | mingw* | pw32* | cegcc*) 12059 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12060 # as there is no search path for DLLs. 12061 hardcode_libdir_flag_spec_CXX='-L$libdir' 12062 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 12063 allow_undefined_flag_CXX=unsupported 12064 always_export_symbols_CXX=no 12065 enable_shared_with_static_runtimes_CXX=yes 12066 12067 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12068 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12069 # If the export-symbols file already is a .def file (1st line 12070 # is EXPORTS), use it as is; otherwise, prepend... 12071 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12072 cp $export_symbols $output_objdir/$soname.def; 12073 else 12074 echo EXPORTS > $output_objdir/$soname.def; 12075 cat $export_symbols >> $output_objdir/$soname.def; 12076 fi~ 12077 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 12078 else 12079 ld_shlibs_CXX=no 12080 fi 12081 ;; 12082 darwin* | rhapsody*) 12083 12084 12085 archive_cmds_need_lc_CXX=no 12086 hardcode_direct_CXX=no 12087 hardcode_automatic_CXX=yes 12088 hardcode_shlibpath_var_CXX=unsupported 12089 if test "$lt_cv_ld_force_load" = "yes"; then 12090 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 12091 else 12092 whole_archive_flag_spec_CXX='' 12093 fi 12094 link_all_deplibs_CXX=yes 12095 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12096 case $cc_basename in 12097 ifort*) _lt_dar_can_shared=yes ;; 12098 *) _lt_dar_can_shared=$GCC ;; 12099 esac 12100 if test "$_lt_dar_can_shared" = "yes"; then 12101 output_verbose_link_cmd=func_echo_all 12102 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 12103 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12104 archive_expsym_cmds_CXX="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}" 12105 module_expsym_cmds_CXX="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}" 12106 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12107 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 12108 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 12109 fi 12110 12111 else 12112 ld_shlibs_CXX=no 12113 fi 12114 12115 ;; 12116 12117 dgux*) 12118 case $cc_basename in 12119 ec++*) 12120 # FIXME: insert proper C++ library support 12121 ld_shlibs_CXX=no 12122 ;; 12123 ghcx*) 12124 # Green Hills C++ Compiler 12125 # FIXME: insert proper C++ library support 12126 ld_shlibs_CXX=no 12127 ;; 12128 *) 12129 # FIXME: insert proper C++ library support 12130 ld_shlibs_CXX=no 12131 ;; 12132 esac 12133 ;; 12134 12135 freebsd2.*) 12136 # C++ shared libraries reported to be fairly broken before 12137 # switch to ELF 12138 ld_shlibs_CXX=no 12139 ;; 12140 12141 freebsd-elf*) 12142 archive_cmds_need_lc_CXX=no 12143 ;; 12144 12145 freebsd* | dragonfly*) 12146 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12147 # conventions 12148 ld_shlibs_CXX=yes 12149 ;; 12150 12151 gnu*) 12152 ;; 12153 12154 haiku*) 12155 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12156 link_all_deplibs_CXX=yes 12157 ;; 12158 12159 hpux9*) 12160 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12161 hardcode_libdir_separator_CXX=: 12162 export_dynamic_flag_spec_CXX='${wl}-E' 12163 hardcode_direct_CXX=yes 12164 hardcode_minus_L_CXX=yes # Not in the search PATH, 12165 # but as the default 12166 # location of the library. 12167 12168 case $cc_basename in 12169 CC*) 12170 # FIXME: insert proper C++ library support 12171 ld_shlibs_CXX=no 12172 ;; 12173 aCC*) 12174 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12175 # Commands to make compiler produce verbose output that lists 12176 # what "hidden" libraries, object files and flags are used when 12177 # linking a shared library. 12178 # 12179 # There doesn't appear to be a way to prevent this compiler from 12180 # explicitly linking system object files so we need to strip them 12181 # from the output so that they don't get included in the library 12182 # dependencies. 12183 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 12184 ;; 12185 *) 12186 if test "$GXX" = yes; then 12187 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 12188 else 12189 # FIXME: insert proper C++ library support 12190 ld_shlibs_CXX=no 12191 fi 12192 ;; 12193 esac 12194 ;; 12195 12196 hpux10*|hpux11*) 12197 if test $with_gnu_ld = no; then 12198 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12199 hardcode_libdir_separator_CXX=: 12200 12201 case $host_cpu in 12202 hppa*64*|ia64*) 12203 ;; 12204 *) 12205 export_dynamic_flag_spec_CXX='${wl}-E' 12206 ;; 12207 esac 12208 fi 12209 case $host_cpu in 12210 hppa*64*|ia64*) 12211 hardcode_direct_CXX=no 12212 hardcode_shlibpath_var_CXX=no 12213 ;; 12214 *) 12215 hardcode_direct_CXX=yes 12216 hardcode_direct_absolute_CXX=yes 12217 hardcode_minus_L_CXX=yes # Not in the search PATH, 12218 # but as the default 12219 # location of the library. 12220 ;; 12221 esac 12222 12223 case $cc_basename in 12224 CC*) 12225 # FIXME: insert proper C++ library support 12226 ld_shlibs_CXX=no 12227 ;; 12228 aCC*) 12229 case $host_cpu in 12230 hppa*64*) 12231 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12232 ;; 12233 ia64*) 12234 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12235 ;; 12236 *) 12237 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12238 ;; 12239 esac 12240 # Commands to make compiler produce verbose output that lists 12241 # what "hidden" libraries, object files and flags are used when 12242 # linking a shared library. 12243 # 12244 # There doesn't appear to be a way to prevent this compiler from 12245 # explicitly linking system object files so we need to strip them 12246 # from the output so that they don't get included in the library 12247 # dependencies. 12248 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 12249 ;; 12250 *) 12251 if test "$GXX" = yes; then 12252 if test $with_gnu_ld = no; then 12253 case $host_cpu in 12254 hppa*64*) 12255 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12256 ;; 12257 ia64*) 12258 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12259 ;; 12260 *) 12261 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12262 ;; 12263 esac 12264 fi 12265 else 12266 # FIXME: insert proper C++ library support 12267 ld_shlibs_CXX=no 12268 fi 12269 ;; 12270 esac 12271 ;; 12272 12273 interix[3-9]*) 12274 hardcode_direct_CXX=no 12275 hardcode_shlibpath_var_CXX=no 12276 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12277 export_dynamic_flag_spec_CXX='${wl}-E' 12278 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12279 # Instead, shared libraries are loaded at an image base (0x10000000 by 12280 # default) and relocated if they conflict, which is a slow very memory 12281 # consuming and fragmenting process. To avoid this, we pick a random, 12282 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12283 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12284 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 12285 archive_expsym_cmds_CXX='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' 12286 ;; 12287 irix5* | irix6*) 12288 case $cc_basename in 12289 CC*) 12290 # SGI C++ 12291 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 12292 12293 # Archives containing C++ object files must be created using 12294 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12295 # necessary to make sure instantiated templates are included 12296 # in the archive. 12297 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12298 ;; 12299 *) 12300 if test "$GXX" = yes; then 12301 if test "$with_gnu_ld" = no; then 12302 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 12303 else 12304 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 12305 fi 12306 fi 12307 link_all_deplibs_CXX=yes 12308 ;; 12309 esac 12310 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12311 hardcode_libdir_separator_CXX=: 12312 inherit_rpath_CXX=yes 12313 ;; 12314 12315 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12316 case $cc_basename in 12317 KCC*) 12318 # Kuck and Associates, Inc. (KAI) C++ Compiler 12319 12320 # KCC will only create a shared library if the output file 12321 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12322 # to its proper name (with version) after linking. 12323 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 12324 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 12325 # Commands to make compiler produce verbose output that lists 12326 # what "hidden" libraries, object files and flags are used when 12327 # linking a shared library. 12328 # 12329 # There doesn't appear to be a way to prevent this compiler from 12330 # explicitly linking system object files so we need to strip them 12331 # from the output so that they don't get included in the library 12332 # dependencies. 12333 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 12334 12335 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12336 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12337 12338 # Archives containing C++ object files must be created using 12339 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12340 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12341 ;; 12342 icpc* | ecpc* ) 12343 # Intel C++ 12344 with_gnu_ld=yes 12345 # version 8.0 and above of icpc choke on multiply defined symbols 12346 # if we add $predep_objects and $postdep_objects, however 7.1 and 12347 # earlier do not add the objects themselves. 12348 case `$CC -V 2>&1` in 12349 *"Version 7."*) 12350 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12351 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12352 ;; 12353 *) # Version 8.0 or newer 12354 tmp_idyn= 12355 case $host_cpu in 12356 ia64*) tmp_idyn=' -i_dynamic';; 12357 esac 12358 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12359 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12360 ;; 12361 esac 12362 archive_cmds_need_lc_CXX=no 12363 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12364 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12365 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12366 ;; 12367 pgCC* | pgcpp*) 12368 # Portland Group C++ compiler 12369 case `$CC -V` in 12370 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 12371 prelink_cmds_CXX='tpldir=Template.dir~ 12372 rm -rf $tpldir~ 12373 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 12374 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' 12375 old_archive_cmds_CXX='tpldir=Template.dir~ 12376 rm -rf $tpldir~ 12377 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 12378 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ 12379 $RANLIB $oldlib' 12380 archive_cmds_CXX='tpldir=Template.dir~ 12381 rm -rf $tpldir~ 12382 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12383 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12384 archive_expsym_cmds_CXX='tpldir=Template.dir~ 12385 rm -rf $tpldir~ 12386 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12387 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 12388 ;; 12389 *) # Version 6 and above use weak symbols 12390 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12391 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 12392 ;; 12393 esac 12394 12395 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12396 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12397 whole_archive_flag_spec_CXX='${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' 12398 ;; 12399 cxx*) 12400 # Compaq C++ 12401 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12402 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 12403 12404 runpath_var=LD_RUN_PATH 12405 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12406 hardcode_libdir_separator_CXX=: 12407 12408 # Commands to make compiler produce verbose output that lists 12409 # what "hidden" libraries, object files and flags are used when 12410 # linking a shared library. 12411 # 12412 # There doesn't appear to be a way to prevent this compiler from 12413 # explicitly linking system object files so we need to strip them 12414 # from the output so that they don't get included in the library 12415 # dependencies. 12416 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 12417 ;; 12418 xl* | mpixl* | bgxl*) 12419 # IBM XL 8.0 on PPC, with GNU ld 12420 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12421 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12422 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12423 if test "x$supports_anon_versioning" = xyes; then 12424 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 12425 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12426 echo "local: *; };" >> $output_objdir/$libname.ver~ 12427 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12428 fi 12429 ;; 12430 *) 12431 case `$CC -V 2>&1 | sed 5q` in 12432 *Sun\ C*) 12433 # Sun C++ 5.9 12434 no_undefined_flag_CXX=' -zdefs' 12435 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12436 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 12437 hardcode_libdir_flag_spec_CXX='-R$libdir' 12438 whole_archive_flag_spec_CXX='${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' 12439 compiler_needs_object_CXX=yes 12440 12441 # Not sure whether something based on 12442 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12443 # would be better. 12444 output_verbose_link_cmd='func_echo_all' 12445 12446 # Archives containing C++ object files must be created using 12447 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12448 # necessary to make sure instantiated templates are included 12449 # in the archive. 12450 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12451 ;; 12452 esac 12453 ;; 12454 esac 12455 ;; 12456 12457 lynxos*) 12458 # FIXME: insert proper C++ library support 12459 ld_shlibs_CXX=no 12460 ;; 12461 12462 m88k*) 12463 # FIXME: insert proper C++ library support 12464 ld_shlibs_CXX=no 12465 ;; 12466 12467 mvs*) 12468 case $cc_basename in 12469 cxx*) 12470 # FIXME: insert proper C++ library support 12471 ld_shlibs_CXX=no 12472 ;; 12473 *) 12474 # FIXME: insert proper C++ library support 12475 ld_shlibs_CXX=no 12476 ;; 12477 esac 12478 ;; 12479 12480 netbsd*) 12481 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12482 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12483 wlarc= 12484 hardcode_libdir_flag_spec_CXX='-R$libdir' 12485 hardcode_direct_CXX=yes 12486 hardcode_shlibpath_var_CXX=no 12487 fi 12488 # Workaround some broken pre-1.5 toolchains 12489 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12490 ;; 12491 12492 *nto* | *qnx*) 12493 ld_shlibs_CXX=yes 12494 ;; 12495 12496 openbsd2*) 12497 # C++ shared libraries are fairly broken 12498 ld_shlibs_CXX=no 12499 ;; 12500 12501 openbsd*) 12502 if test -f /usr/libexec/ld.so; then 12503 hardcode_direct_CXX=yes 12504 hardcode_shlibpath_var_CXX=no 12505 hardcode_direct_absolute_CXX=yes 12506 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12507 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12508 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12509 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12510 export_dynamic_flag_spec_CXX='${wl}-E' 12511 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12512 fi 12513 output_verbose_link_cmd=func_echo_all 12514 else 12515 ld_shlibs_CXX=no 12516 fi 12517 ;; 12518 12519 osf3* | osf4* | osf5*) 12520 case $cc_basename in 12521 KCC*) 12522 # Kuck and Associates, Inc. (KAI) C++ Compiler 12523 12524 # KCC will only create a shared library if the output file 12525 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12526 # to its proper name (with version) after linking. 12527 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 12528 12529 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12530 hardcode_libdir_separator_CXX=: 12531 12532 # Archives containing C++ object files must be created using 12533 # the KAI C++ compiler. 12534 case $host in 12535 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 12536 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 12537 esac 12538 ;; 12539 RCC*) 12540 # Rational C++ 2.4.1 12541 # FIXME: insert proper C++ library support 12542 ld_shlibs_CXX=no 12543 ;; 12544 cxx*) 12545 case $host in 12546 osf3*) 12547 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12548 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 12549 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12550 ;; 12551 *) 12552 allow_undefined_flag_CXX=' -expect_unresolved \*' 12553 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 12554 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12555 echo "-hidden">> $lib.exp~ 12556 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 12557 $RM $lib.exp' 12558 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12559 ;; 12560 esac 12561 12562 hardcode_libdir_separator_CXX=: 12563 12564 # Commands to make compiler produce verbose output that lists 12565 # what "hidden" libraries, object files and flags are used when 12566 # linking a shared library. 12567 # 12568 # There doesn't appear to be a way to prevent this compiler from 12569 # explicitly linking system object files so we need to strip them 12570 # from the output so that they don't get included in the library 12571 # dependencies. 12572 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 12573 ;; 12574 *) 12575 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12576 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12577 case $host in 12578 osf3*) 12579 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 12580 ;; 12581 *) 12582 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' 12583 ;; 12584 esac 12585 12586 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12587 hardcode_libdir_separator_CXX=: 12588 12589 # Commands to make compiler produce verbose output that lists 12590 # what "hidden" libraries, object files and flags are used when 12591 # linking a shared library. 12592 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12593 12594 else 12595 # FIXME: insert proper C++ library support 12596 ld_shlibs_CXX=no 12597 fi 12598 ;; 12599 esac 12600 ;; 12601 12602 psos*) 12603 # FIXME: insert proper C++ library support 12604 ld_shlibs_CXX=no 12605 ;; 12606 12607 sunos4*) 12608 case $cc_basename in 12609 CC*) 12610 # Sun C++ 4.x 12611 # FIXME: insert proper C++ library support 12612 ld_shlibs_CXX=no 12613 ;; 12614 lcc*) 12615 # Lucid 12616 # FIXME: insert proper C++ library support 12617 ld_shlibs_CXX=no 12618 ;; 12619 *) 12620 # FIXME: insert proper C++ library support 12621 ld_shlibs_CXX=no 12622 ;; 12623 esac 12624 ;; 12625 12626 solaris*) 12627 case $cc_basename in 12628 CC*) 12629 # Sun C++ 4.2, 5.x and Centerline C++ 12630 archive_cmds_need_lc_CXX=yes 12631 no_undefined_flag_CXX=' -zdefs' 12632 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12633 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12634 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12635 12636 hardcode_libdir_flag_spec_CXX='-R$libdir' 12637 hardcode_shlibpath_var_CXX=no 12638 case $host_os in 12639 solaris2.[0-5] | solaris2.[0-5].*) ;; 12640 *) 12641 # The compiler driver will combine and reorder linker options, 12642 # but understands `-z linker_flag'. 12643 # Supported since Solaris 2.6 (maybe 2.5.1?) 12644 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12645 ;; 12646 esac 12647 link_all_deplibs_CXX=yes 12648 12649 output_verbose_link_cmd='func_echo_all' 12650 12651 # Archives containing C++ object files must be created using 12652 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12653 # necessary to make sure instantiated templates are included 12654 # in the archive. 12655 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12656 ;; 12657 gcx*) 12658 # Green Hills C++ Compiler 12659 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12660 12661 # The C++ compiler must be used to create the archive. 12662 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12663 ;; 12664 *) 12665 # GNU C++ compiler with Solaris linker 12666 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12667 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12668 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 12669 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12670 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12671 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12672 12673 # Commands to make compiler produce verbose output that lists 12674 # what "hidden" libraries, object files and flags are used when 12675 # linking a shared library. 12676 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12677 else 12678 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12679 # platform. 12680 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12681 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12682 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12683 12684 # Commands to make compiler produce verbose output that lists 12685 # what "hidden" libraries, object files and flags are used when 12686 # linking a shared library. 12687 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12688 fi 12689 12690 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12691 case $host_os in 12692 solaris2.[0-5] | solaris2.[0-5].*) ;; 12693 *) 12694 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12695 ;; 12696 esac 12697 fi 12698 ;; 12699 esac 12700 ;; 12701 12702 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12703 no_undefined_flag_CXX='${wl}-z,text' 12704 archive_cmds_need_lc_CXX=no 12705 hardcode_shlibpath_var_CXX=no 12706 runpath_var='LD_RUN_PATH' 12707 12708 case $cc_basename in 12709 CC*) 12710 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12711 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12712 ;; 12713 *) 12714 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12715 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12716 ;; 12717 esac 12718 ;; 12719 12720 sysv5* | sco3.2v5* | sco5v6*) 12721 # Note: We can NOT use -z defs as we might desire, because we do not 12722 # link with -lc, and that would cause any symbols used from libc to 12723 # always be unresolved, which means just about no library would 12724 # ever link correctly. If we're not using GNU ld we use -z text 12725 # though, which does catch some bad symbols but isn't as heavy-handed 12726 # as -z defs. 12727 no_undefined_flag_CXX='${wl}-z,text' 12728 allow_undefined_flag_CXX='${wl}-z,nodefs' 12729 archive_cmds_need_lc_CXX=no 12730 hardcode_shlibpath_var_CXX=no 12731 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 12732 hardcode_libdir_separator_CXX=':' 12733 link_all_deplibs_CXX=yes 12734 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12735 runpath_var='LD_RUN_PATH' 12736 12737 case $cc_basename in 12738 CC*) 12739 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12740 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12741 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 12742 '"$old_archive_cmds_CXX" 12743 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 12744 '"$reload_cmds_CXX" 12745 ;; 12746 *) 12747 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12748 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12749 ;; 12750 esac 12751 ;; 12752 12753 tandem*) 12754 case $cc_basename in 12755 NCC*) 12756 # NonStop-UX NCC 3.20 12757 # FIXME: insert proper C++ library support 12758 ld_shlibs_CXX=no 12759 ;; 12760 *) 12761 # FIXME: insert proper C++ library support 12762 ld_shlibs_CXX=no 12763 ;; 12764 esac 12765 ;; 12766 12767 vxworks*) 12768 # FIXME: insert proper C++ library support 12769 ld_shlibs_CXX=no 12770 ;; 12771 12772 *) 12773 # FIXME: insert proper C++ library support 12774 ld_shlibs_CXX=no 12775 ;; 12776 esac 12777 12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 12779$as_echo "$ld_shlibs_CXX" >&6; } 12780 test "$ld_shlibs_CXX" = no && can_build_shared=no 12781 12782 GCC_CXX="$GXX" 12783 LD_CXX="$LD" 12784 12785 ## CAVEAT EMPTOR: 12786 ## There is no encapsulation within the following macros, do not change 12787 ## the running order or otherwise move them around unless you know exactly 12788 ## what you are doing... 12789 # Dependencies to place before and after the object being linked: 12790predep_objects_CXX= 12791postdep_objects_CXX= 12792predeps_CXX= 12793postdeps_CXX= 12794compiler_lib_search_path_CXX= 12795 12796cat > conftest.$ac_ext <<_LT_EOF 12797class Foo 12798{ 12799public: 12800 Foo (void) { a = 0; } 12801private: 12802 int a; 12803}; 12804_LT_EOF 12805 12806if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12807 (eval $ac_compile) 2>&5 12808 ac_status=$? 12809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12810 test $ac_status = 0; }; then 12811 # Parse the compiler output and extract the necessary 12812 # objects, libraries and library flags. 12813 12814 # Sentinel used to keep track of whether or not we are before 12815 # the conftest object file. 12816 pre_test_object_deps_done=no 12817 12818 for p in `eval "$output_verbose_link_cmd"`; do 12819 case $p in 12820 12821 -L* | -R* | -l*) 12822 # Some compilers place space between "-{L,R}" and the path. 12823 # Remove the space. 12824 if test $p = "-L" || 12825 test $p = "-R"; then 12826 prev=$p 12827 continue 12828 else 12829 prev= 12830 fi 12831 12832 if test "$pre_test_object_deps_done" = no; then 12833 case $p in 12834 -L* | -R*) 12835 # Internal compiler library paths should come after those 12836 # provided the user. The postdeps already come after the 12837 # user supplied libs so there is no need to process them. 12838 if test -z "$compiler_lib_search_path_CXX"; then 12839 compiler_lib_search_path_CXX="${prev}${p}" 12840 else 12841 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12842 fi 12843 ;; 12844 # The "-l" case would never come before the object being 12845 # linked, so don't bother handling this case. 12846 esac 12847 else 12848 if test -z "$postdeps_CXX"; then 12849 postdeps_CXX="${prev}${p}" 12850 else 12851 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12852 fi 12853 fi 12854 ;; 12855 12856 *.$objext) 12857 # This assumes that the test object file only shows up 12858 # once in the compiler output. 12859 if test "$p" = "conftest.$objext"; then 12860 pre_test_object_deps_done=yes 12861 continue 12862 fi 12863 12864 if test "$pre_test_object_deps_done" = no; then 12865 if test -z "$predep_objects_CXX"; then 12866 predep_objects_CXX="$p" 12867 else 12868 predep_objects_CXX="$predep_objects_CXX $p" 12869 fi 12870 else 12871 if test -z "$postdep_objects_CXX"; then 12872 postdep_objects_CXX="$p" 12873 else 12874 postdep_objects_CXX="$postdep_objects_CXX $p" 12875 fi 12876 fi 12877 ;; 12878 12879 *) ;; # Ignore the rest. 12880 12881 esac 12882 done 12883 12884 # Clean up. 12885 rm -f a.out a.exe 12886else 12887 echo "libtool.m4: error: problem compiling CXX test program" 12888fi 12889 12890$RM -f confest.$objext 12891 12892# PORTME: override above test on systems where it is broken 12893case $host_os in 12894interix[3-9]*) 12895 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12896 # hack all around it, let's just trust "g++" to DTRT. 12897 predep_objects_CXX= 12898 postdep_objects_CXX= 12899 postdeps_CXX= 12900 ;; 12901 12902linux*) 12903 case `$CC -V 2>&1 | sed 5q` in 12904 *Sun\ C*) 12905 # Sun C++ 5.9 12906 12907 # The more standards-conforming stlport4 library is 12908 # incompatible with the Cstd library. Avoid specifying 12909 # it if it's in CXXFLAGS. Ignore libCrun as 12910 # -library=stlport4 depends on it. 12911 case " $CXX $CXXFLAGS " in 12912 *" -library=stlport4 "*) 12913 solaris_use_stlport4=yes 12914 ;; 12915 esac 12916 12917 if test "$solaris_use_stlport4" != yes; then 12918 postdeps_CXX='-library=Cstd -library=Crun' 12919 fi 12920 ;; 12921 esac 12922 ;; 12923 12924solaris*) 12925 case $cc_basename in 12926 CC*) 12927 # The more standards-conforming stlport4 library is 12928 # incompatible with the Cstd library. Avoid specifying 12929 # it if it's in CXXFLAGS. Ignore libCrun as 12930 # -library=stlport4 depends on it. 12931 case " $CXX $CXXFLAGS " in 12932 *" -library=stlport4 "*) 12933 solaris_use_stlport4=yes 12934 ;; 12935 esac 12936 12937 # Adding this requires a known-good setup of shared libraries for 12938 # Sun compiler versions before 5.6, else PIC objects from an old 12939 # archive will be linked into the output, leading to subtle bugs. 12940 if test "$solaris_use_stlport4" != yes; then 12941 postdeps_CXX='-library=Cstd -library=Crun' 12942 fi 12943 ;; 12944 esac 12945 ;; 12946esac 12947 12948 12949case " $postdeps_CXX " in 12950*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12951esac 12952 compiler_lib_search_dirs_CXX= 12953if test -n "${compiler_lib_search_path_CXX}"; then 12954 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12955fi 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 lt_prog_compiler_wl_CXX= 12988lt_prog_compiler_pic_CXX= 12989lt_prog_compiler_static_CXX= 12990 12991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12992$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12993 12994 # C++ specific cases for pic, static, wl, etc. 12995 if test "$GXX" = yes; then 12996 lt_prog_compiler_wl_CXX='-Wl,' 12997 lt_prog_compiler_static_CXX='-static' 12998 12999 case $host_os in 13000 aix*) 13001 # All AIX code is PIC. 13002 if test "$host_cpu" = ia64; then 13003 # AIX 5 now supports IA64 processor 13004 lt_prog_compiler_static_CXX='-Bstatic' 13005 fi 13006 lt_prog_compiler_pic_CXX='-fPIC' 13007 ;; 13008 13009 amigaos*) 13010 case $host_cpu in 13011 powerpc) 13012 # see comment about AmigaOS4 .so support 13013 lt_prog_compiler_pic_CXX='-fPIC' 13014 ;; 13015 m68k) 13016 # FIXME: we need at least 68020 code to build shared libraries, but 13017 # adding the `-m68020' flag to GCC prevents building anything better, 13018 # like `-m68040'. 13019 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13020 ;; 13021 esac 13022 ;; 13023 13024 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13025 # PIC is the default for these OSes. 13026 ;; 13027 mingw* | cygwin* | os2* | pw32* | cegcc*) 13028 # This hack is so that the source file can tell whether it is being 13029 # built for inclusion in a dll (and should export symbols for example). 13030 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13031 # (--disable-auto-import) libraries 13032 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13033 ;; 13034 darwin* | rhapsody*) 13035 # PIC is the default on this platform 13036 # Common symbols not allowed in MH_DYLIB files 13037 lt_prog_compiler_pic_CXX='-fno-common' 13038 ;; 13039 *djgpp*) 13040 # DJGPP does not support shared libraries at all 13041 lt_prog_compiler_pic_CXX= 13042 ;; 13043 haiku*) 13044 # PIC is the default for Haiku. 13045 # The "-static" flag exists, but is broken. 13046 lt_prog_compiler_static_CXX= 13047 ;; 13048 interix[3-9]*) 13049 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13050 # Instead, we relocate shared libraries at runtime. 13051 ;; 13052 sysv4*MP*) 13053 if test -d /usr/nec; then 13054 lt_prog_compiler_pic_CXX=-Kconform_pic 13055 fi 13056 ;; 13057 hpux*) 13058 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13059 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13060 # sets the default TLS model and affects inlining. 13061 case $host_cpu in 13062 hppa*64*) 13063 ;; 13064 *) 13065 lt_prog_compiler_pic_CXX='-fPIC' 13066 ;; 13067 esac 13068 ;; 13069 *qnx* | *nto*) 13070 # QNX uses GNU C++, but need to define -shared option too, otherwise 13071 # it will coredump. 13072 lt_prog_compiler_pic_CXX='-fPIC -shared' 13073 ;; 13074 *) 13075 lt_prog_compiler_pic_CXX='-fPIC' 13076 ;; 13077 esac 13078 else 13079 case $host_os in 13080 aix[4-9]*) 13081 # All AIX code is PIC. 13082 if test "$host_cpu" = ia64; then 13083 # AIX 5 now supports IA64 processor 13084 lt_prog_compiler_static_CXX='-Bstatic' 13085 else 13086 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13087 fi 13088 ;; 13089 chorus*) 13090 case $cc_basename in 13091 cxch68*) 13092 # Green Hills C++ Compiler 13093 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 13094 ;; 13095 esac 13096 ;; 13097 dgux*) 13098 case $cc_basename in 13099 ec++*) 13100 lt_prog_compiler_pic_CXX='-KPIC' 13101 ;; 13102 ghcx*) 13103 # Green Hills C++ Compiler 13104 lt_prog_compiler_pic_CXX='-pic' 13105 ;; 13106 *) 13107 ;; 13108 esac 13109 ;; 13110 freebsd* | dragonfly*) 13111 # FreeBSD uses GNU C++ 13112 ;; 13113 hpux9* | hpux10* | hpux11*) 13114 case $cc_basename in 13115 CC*) 13116 lt_prog_compiler_wl_CXX='-Wl,' 13117 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13118 if test "$host_cpu" != ia64; then 13119 lt_prog_compiler_pic_CXX='+Z' 13120 fi 13121 ;; 13122 aCC*) 13123 lt_prog_compiler_wl_CXX='-Wl,' 13124 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13125 case $host_cpu in 13126 hppa*64*|ia64*) 13127 # +Z the default 13128 ;; 13129 *) 13130 lt_prog_compiler_pic_CXX='+Z' 13131 ;; 13132 esac 13133 ;; 13134 *) 13135 ;; 13136 esac 13137 ;; 13138 interix*) 13139 # This is c89, which is MS Visual C++ (no shared libs) 13140 # Anyone wants to do a port? 13141 ;; 13142 irix5* | irix6* | nonstopux*) 13143 case $cc_basename in 13144 CC*) 13145 lt_prog_compiler_wl_CXX='-Wl,' 13146 lt_prog_compiler_static_CXX='-non_shared' 13147 # CC pic flag -KPIC is the default. 13148 ;; 13149 *) 13150 ;; 13151 esac 13152 ;; 13153 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13154 case $cc_basename in 13155 KCC*) 13156 # KAI C++ Compiler 13157 lt_prog_compiler_wl_CXX='--backend -Wl,' 13158 lt_prog_compiler_pic_CXX='-fPIC' 13159 ;; 13160 ecpc* ) 13161 # old Intel C++ for x86_64 which still supported -KPIC. 13162 lt_prog_compiler_wl_CXX='-Wl,' 13163 lt_prog_compiler_pic_CXX='-KPIC' 13164 lt_prog_compiler_static_CXX='-static' 13165 ;; 13166 icpc* ) 13167 # Intel C++, used to be incompatible with GCC. 13168 # ICC 10 doesn't accept -KPIC any more. 13169 lt_prog_compiler_wl_CXX='-Wl,' 13170 lt_prog_compiler_pic_CXX='-fPIC' 13171 lt_prog_compiler_static_CXX='-static' 13172 ;; 13173 pgCC* | pgcpp*) 13174 # Portland Group C++ compiler 13175 lt_prog_compiler_wl_CXX='-Wl,' 13176 lt_prog_compiler_pic_CXX='-fpic' 13177 lt_prog_compiler_static_CXX='-Bstatic' 13178 ;; 13179 cxx*) 13180 # Compaq C++ 13181 # Make sure the PIC flag is empty. It appears that all Alpha 13182 # Linux and Compaq Tru64 Unix objects are PIC. 13183 lt_prog_compiler_pic_CXX= 13184 lt_prog_compiler_static_CXX='-non_shared' 13185 ;; 13186 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 13187 # IBM XL 8.0, 9.0 on PPC and BlueGene 13188 lt_prog_compiler_wl_CXX='-Wl,' 13189 lt_prog_compiler_pic_CXX='-qpic' 13190 lt_prog_compiler_static_CXX='-qstaticlink' 13191 ;; 13192 *) 13193 case `$CC -V 2>&1 | sed 5q` in 13194 *Sun\ C*) 13195 # Sun C++ 5.9 13196 lt_prog_compiler_pic_CXX='-KPIC' 13197 lt_prog_compiler_static_CXX='-Bstatic' 13198 lt_prog_compiler_wl_CXX='-Qoption ld ' 13199 ;; 13200 esac 13201 ;; 13202 esac 13203 ;; 13204 lynxos*) 13205 ;; 13206 m88k*) 13207 ;; 13208 mvs*) 13209 case $cc_basename in 13210 cxx*) 13211 lt_prog_compiler_pic_CXX='-W c,exportall' 13212 ;; 13213 *) 13214 ;; 13215 esac 13216 ;; 13217 netbsd*) 13218 ;; 13219 *qnx* | *nto*) 13220 # QNX uses GNU C++, but need to define -shared option too, otherwise 13221 # it will coredump. 13222 lt_prog_compiler_pic_CXX='-fPIC -shared' 13223 ;; 13224 osf3* | osf4* | osf5*) 13225 case $cc_basename in 13226 KCC*) 13227 lt_prog_compiler_wl_CXX='--backend -Wl,' 13228 ;; 13229 RCC*) 13230 # Rational C++ 2.4.1 13231 lt_prog_compiler_pic_CXX='-pic' 13232 ;; 13233 cxx*) 13234 # Digital/Compaq C++ 13235 lt_prog_compiler_wl_CXX='-Wl,' 13236 # Make sure the PIC flag is empty. It appears that all Alpha 13237 # Linux and Compaq Tru64 Unix objects are PIC. 13238 lt_prog_compiler_pic_CXX= 13239 lt_prog_compiler_static_CXX='-non_shared' 13240 ;; 13241 *) 13242 ;; 13243 esac 13244 ;; 13245 psos*) 13246 ;; 13247 solaris*) 13248 case $cc_basename in 13249 CC*) 13250 # Sun C++ 4.2, 5.x and Centerline C++ 13251 lt_prog_compiler_pic_CXX='-KPIC' 13252 lt_prog_compiler_static_CXX='-Bstatic' 13253 lt_prog_compiler_wl_CXX='-Qoption ld ' 13254 ;; 13255 gcx*) 13256 # Green Hills C++ Compiler 13257 lt_prog_compiler_pic_CXX='-PIC' 13258 ;; 13259 *) 13260 ;; 13261 esac 13262 ;; 13263 sunos4*) 13264 case $cc_basename in 13265 CC*) 13266 # Sun C++ 4.x 13267 lt_prog_compiler_pic_CXX='-pic' 13268 lt_prog_compiler_static_CXX='-Bstatic' 13269 ;; 13270 lcc*) 13271 # Lucid 13272 lt_prog_compiler_pic_CXX='-pic' 13273 ;; 13274 *) 13275 ;; 13276 esac 13277 ;; 13278 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13279 case $cc_basename in 13280 CC*) 13281 lt_prog_compiler_wl_CXX='-Wl,' 13282 lt_prog_compiler_pic_CXX='-KPIC' 13283 lt_prog_compiler_static_CXX='-Bstatic' 13284 ;; 13285 esac 13286 ;; 13287 tandem*) 13288 case $cc_basename in 13289 NCC*) 13290 # NonStop-UX NCC 3.20 13291 lt_prog_compiler_pic_CXX='-KPIC' 13292 ;; 13293 *) 13294 ;; 13295 esac 13296 ;; 13297 vxworks*) 13298 ;; 13299 *) 13300 lt_prog_compiler_can_build_shared_CXX=no 13301 ;; 13302 esac 13303 fi 13304 13305case $host_os in 13306 # For platforms which do not support PIC, -DPIC is meaningless: 13307 *djgpp*) 13308 lt_prog_compiler_pic_CXX= 13309 ;; 13310 *) 13311 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13312 ;; 13313esac 13314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 13315$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 13316 13317 13318 13319# 13320# Check to make sure the PIC flag actually works. 13321# 13322if test -n "$lt_prog_compiler_pic_CXX"; then 13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13324$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 13325if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : 13326 $as_echo_n "(cached) " >&6 13327else 13328 lt_cv_prog_compiler_pic_works_CXX=no 13329 ac_outfile=conftest.$ac_objext 13330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13331 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13332 # Insert the option either (1) after the last *FLAGS variable, or 13333 # (2) before a word containing "conftest.", or (3) at the end. 13334 # Note that $ac_compile itself does not contain backslashes and begins 13335 # with a dollar sign (not a hyphen), so the echo should work correctly. 13336 # The option is referenced via a variable to avoid confusing sed. 13337 lt_compile=`echo "$ac_compile" | $SED \ 13338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13340 -e 's:$: $lt_compiler_flag:'` 13341 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13342 (eval "$lt_compile" 2>conftest.err) 13343 ac_status=$? 13344 cat conftest.err >&5 13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13346 if (exit $ac_status) && test -s "$ac_outfile"; then 13347 # The compiler can only warn and ignore the option if not recognized 13348 # So say no if there are warnings other than the usual output. 13349 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13350 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13351 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13352 lt_cv_prog_compiler_pic_works_CXX=yes 13353 fi 13354 fi 13355 $RM conftest* 13356 13357fi 13358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13359$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13360 13361if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13362 case $lt_prog_compiler_pic_CXX in 13363 "" | " "*) ;; 13364 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13365 esac 13366else 13367 lt_prog_compiler_pic_CXX= 13368 lt_prog_compiler_can_build_shared_CXX=no 13369fi 13370 13371fi 13372 13373 13374 13375# 13376# Check to make sure the static flag actually works. 13377# 13378wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13380$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13381if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : 13382 $as_echo_n "(cached) " >&6 13383else 13384 lt_cv_prog_compiler_static_works_CXX=no 13385 save_LDFLAGS="$LDFLAGS" 13386 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13387 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13388 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13389 # The linker can only warn and ignore the option if not recognized 13390 # So say no if there are warnings 13391 if test -s conftest.err; then 13392 # Append any errors to the config.log. 13393 cat conftest.err 1>&5 13394 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13396 if diff conftest.exp conftest.er2 >/dev/null; then 13397 lt_cv_prog_compiler_static_works_CXX=yes 13398 fi 13399 else 13400 lt_cv_prog_compiler_static_works_CXX=yes 13401 fi 13402 fi 13403 $RM -r conftest* 13404 LDFLAGS="$save_LDFLAGS" 13405 13406fi 13407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13408$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13409 13410if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13411 : 13412else 13413 lt_prog_compiler_static_CXX= 13414fi 13415 13416 13417 13418 13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13420$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13421if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 13422 $as_echo_n "(cached) " >&6 13423else 13424 lt_cv_prog_compiler_c_o_CXX=no 13425 $RM -r conftest 2>/dev/null 13426 mkdir conftest 13427 cd conftest 13428 mkdir out 13429 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13430 13431 lt_compiler_flag="-o out/conftest2.$ac_objext" 13432 # Insert the option either (1) after the last *FLAGS variable, or 13433 # (2) before a word containing "conftest.", or (3) at the end. 13434 # Note that $ac_compile itself does not contain backslashes and begins 13435 # with a dollar sign (not a hyphen), so the echo should work correctly. 13436 lt_compile=`echo "$ac_compile" | $SED \ 13437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13439 -e 's:$: $lt_compiler_flag:'` 13440 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13441 (eval "$lt_compile" 2>out/conftest.err) 13442 ac_status=$? 13443 cat out/conftest.err >&5 13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13445 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13446 then 13447 # The compiler can only warn and ignore the option if not recognized 13448 # So say no if there are warnings 13449 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13450 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13451 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13452 lt_cv_prog_compiler_c_o_CXX=yes 13453 fi 13454 fi 13455 chmod u+w . 2>&5 13456 $RM conftest* 13457 # SGI C++ compiler will create directory out/ii_files/ for 13458 # template instantiation 13459 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13460 $RM out/* && rmdir out 13461 cd .. 13462 $RM -r conftest 13463 $RM conftest* 13464 13465fi 13466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13467$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13468 13469 13470 13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13472$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13473if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 13474 $as_echo_n "(cached) " >&6 13475else 13476 lt_cv_prog_compiler_c_o_CXX=no 13477 $RM -r conftest 2>/dev/null 13478 mkdir conftest 13479 cd conftest 13480 mkdir out 13481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13482 13483 lt_compiler_flag="-o out/conftest2.$ac_objext" 13484 # Insert the option either (1) after the last *FLAGS variable, or 13485 # (2) before a word containing "conftest.", or (3) at the end. 13486 # Note that $ac_compile itself does not contain backslashes and begins 13487 # with a dollar sign (not a hyphen), so the echo should work correctly. 13488 lt_compile=`echo "$ac_compile" | $SED \ 13489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13491 -e 's:$: $lt_compiler_flag:'` 13492 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13493 (eval "$lt_compile" 2>out/conftest.err) 13494 ac_status=$? 13495 cat out/conftest.err >&5 13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13497 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13498 then 13499 # The compiler can only warn and ignore the option if not recognized 13500 # So say no if there are warnings 13501 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13502 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13503 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13504 lt_cv_prog_compiler_c_o_CXX=yes 13505 fi 13506 fi 13507 chmod u+w . 2>&5 13508 $RM conftest* 13509 # SGI C++ compiler will create directory out/ii_files/ for 13510 # template instantiation 13511 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13512 $RM out/* && rmdir out 13513 cd .. 13514 $RM -r conftest 13515 $RM conftest* 13516 13517fi 13518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13519$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13520 13521 13522 13523 13524hard_links="nottested" 13525if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13526 # do not overwrite the value of need_locks provided by the user 13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13528$as_echo_n "checking if we can lock with hard links... " >&6; } 13529 hard_links=yes 13530 $RM conftest* 13531 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13532 touch conftest.a 13533 ln conftest.a conftest.b 2>&5 || hard_links=no 13534 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13536$as_echo "$hard_links" >&6; } 13537 if test "$hard_links" = no; then 13538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13539$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13540 need_locks=warn 13541 fi 13542else 13543 need_locks=no 13544fi 13545 13546 13547 13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13549$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13550 13551 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13552 case $host_os in 13553 aix[4-9]*) 13554 # If we're using GNU nm, then we don't want the "-C" option. 13555 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13556 # Also, AIX nm treats weak defined symbols like other global defined 13557 # symbols, whereas GNU nm marks them as "W". 13558 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13559 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 13560 else 13561 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 13562 fi 13563 ;; 13564 pw32*) 13565 export_symbols_cmds_CXX="$ltdll_cmds" 13566 ;; 13567 cygwin* | mingw* | cegcc*) 13568 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 13569 ;; 13570 *) 13571 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13572 ;; 13573 esac 13574 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13575 13576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13577$as_echo "$ld_shlibs_CXX" >&6; } 13578test "$ld_shlibs_CXX" = no && can_build_shared=no 13579 13580with_gnu_ld_CXX=$with_gnu_ld 13581 13582 13583 13584 13585 13586 13587# 13588# Do we need to explicitly link libc? 13589# 13590case "x$archive_cmds_need_lc_CXX" in 13591x|xyes) 13592 # Assume -lc should be added 13593 archive_cmds_need_lc_CXX=yes 13594 13595 if test "$enable_shared" = yes && test "$GCC" = yes; then 13596 case $archive_cmds_CXX in 13597 *'~'*) 13598 # FIXME: we may have to deal with multi-command sequences. 13599 ;; 13600 '$CC '*) 13601 # Test whether the compiler implicitly links with -lc since on some 13602 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13603 # to ld, don't add -lc before -lgcc. 13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13605$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13606if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then : 13607 $as_echo_n "(cached) " >&6 13608else 13609 $RM conftest* 13610 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13611 13612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13613 (eval $ac_compile) 2>&5 13614 ac_status=$? 13615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13616 test $ac_status = 0; } 2>conftest.err; then 13617 soname=conftest 13618 lib=conftest 13619 libobjs=conftest.$ac_objext 13620 deplibs= 13621 wl=$lt_prog_compiler_wl_CXX 13622 pic_flag=$lt_prog_compiler_pic_CXX 13623 compiler_flags=-v 13624 linker_flags=-v 13625 verstring= 13626 output_objdir=. 13627 libname=conftest 13628 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13629 allow_undefined_flag_CXX= 13630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13631 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13632 ac_status=$? 13633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13634 test $ac_status = 0; } 13635 then 13636 lt_cv_archive_cmds_need_lc_CXX=no 13637 else 13638 lt_cv_archive_cmds_need_lc_CXX=yes 13639 fi 13640 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13641 else 13642 cat conftest.err 1>&5 13643 fi 13644 $RM conftest* 13645 13646fi 13647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 13648$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 13649 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 13650 ;; 13651 esac 13652 fi 13653 ;; 13654esac 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13720$as_echo_n "checking dynamic linker characteristics... " >&6; } 13721 13722library_names_spec= 13723libname_spec='lib$name' 13724soname_spec= 13725shrext_cmds=".so" 13726postinstall_cmds= 13727postuninstall_cmds= 13728finish_cmds= 13729finish_eval= 13730shlibpath_var= 13731shlibpath_overrides_runpath=unknown 13732version_type=none 13733dynamic_linker="$host_os ld.so" 13734sys_lib_dlsearch_path_spec="/lib /usr/lib" 13735need_lib_prefix=unknown 13736hardcode_into_libs=no 13737 13738# when you set need_version to no, make sure it does not cause -set_version 13739# flags to be left without arguments 13740need_version=unknown 13741 13742case $host_os in 13743aix3*) 13744 version_type=linux 13745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13746 shlibpath_var=LIBPATH 13747 13748 # AIX 3 has no versioning support, so we append a major version to the name. 13749 soname_spec='${libname}${release}${shared_ext}$major' 13750 ;; 13751 13752aix[4-9]*) 13753 version_type=linux 13754 need_lib_prefix=no 13755 need_version=no 13756 hardcode_into_libs=yes 13757 if test "$host_cpu" = ia64; then 13758 # AIX 5 supports IA64 13759 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13760 shlibpath_var=LD_LIBRARY_PATH 13761 else 13762 # With GCC up to 2.95.x, collect2 would create an import file 13763 # for dependence libraries. The import file would start with 13764 # the line `#! .'. This would cause the generated library to 13765 # depend on `.', always an invalid library. This was fixed in 13766 # development snapshots of GCC prior to 3.0. 13767 case $host_os in 13768 aix4 | aix4.[01] | aix4.[01].*) 13769 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13770 echo ' yes ' 13771 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 13772 : 13773 else 13774 can_build_shared=no 13775 fi 13776 ;; 13777 esac 13778 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13779 # soname into executable. Probably we can add versioning support to 13780 # collect2, so additional links can be useful in future. 13781 if test "$aix_use_runtimelinking" = yes; then 13782 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13783 # instead of lib<name>.a to let people know that these are not 13784 # typical AIX shared libraries. 13785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13786 else 13787 # We preserve .a as extension for shared libraries through AIX4.2 13788 # and later when we are not doing run time linking. 13789 library_names_spec='${libname}${release}.a $libname.a' 13790 soname_spec='${libname}${release}${shared_ext}$major' 13791 fi 13792 shlibpath_var=LIBPATH 13793 fi 13794 ;; 13795 13796amigaos*) 13797 case $host_cpu in 13798 powerpc) 13799 # Since July 2007 AmigaOS4 officially supports .so libraries. 13800 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13802 ;; 13803 m68k) 13804 library_names_spec='$libname.ixlibrary $libname.a' 13805 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13806 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' 13807 ;; 13808 esac 13809 ;; 13810 13811beos*) 13812 library_names_spec='${libname}${shared_ext}' 13813 dynamic_linker="$host_os ld.so" 13814 shlibpath_var=LIBRARY_PATH 13815 ;; 13816 13817bsdi[45]*) 13818 version_type=linux 13819 need_version=no 13820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13821 soname_spec='${libname}${release}${shared_ext}$major' 13822 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13823 shlibpath_var=LD_LIBRARY_PATH 13824 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13825 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13826 # the default ld.so.conf also contains /usr/contrib/lib and 13827 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13828 # libtool to hard-code these into programs 13829 ;; 13830 13831cygwin* | mingw* | pw32* | cegcc*) 13832 version_type=windows 13833 shrext_cmds=".dll" 13834 need_version=no 13835 need_lib_prefix=no 13836 13837 case $GCC,$host_os in 13838 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 13839 library_names_spec='$libname.dll.a' 13840 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13841 postinstall_cmds='base_file=`basename \${file}`~ 13842 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13843 dldir=$destdir/`dirname \$dlpath`~ 13844 test -d \$dldir || mkdir -p \$dldir~ 13845 $install_prog $dir/$dlname \$dldir/$dlname~ 13846 chmod a+x \$dldir/$dlname~ 13847 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13848 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13849 fi' 13850 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13851 dlpath=$dir/\$dldll~ 13852 $RM \$dlpath' 13853 shlibpath_overrides_runpath=yes 13854 13855 case $host_os in 13856 cygwin*) 13857 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13858 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13859 13860 ;; 13861 mingw* | cegcc*) 13862 # MinGW DLLs use traditional 'lib' prefix 13863 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13864 ;; 13865 pw32*) 13866 # pw32 DLLs use 'pw' prefix rather than 'lib' 13867 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13868 ;; 13869 esac 13870 ;; 13871 13872 *) 13873 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13874 ;; 13875 esac 13876 dynamic_linker='Win32 ld.exe' 13877 # FIXME: first we should search . and the directory the executable is in 13878 shlibpath_var=PATH 13879 ;; 13880 13881darwin* | rhapsody*) 13882 dynamic_linker="$host_os dyld" 13883 version_type=darwin 13884 need_lib_prefix=no 13885 need_version=no 13886 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13887 soname_spec='${libname}${release}${major}$shared_ext' 13888 shlibpath_overrides_runpath=yes 13889 shlibpath_var=DYLD_LIBRARY_PATH 13890 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13891 13892 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13893 ;; 13894 13895dgux*) 13896 version_type=linux 13897 need_lib_prefix=no 13898 need_version=no 13899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13900 soname_spec='${libname}${release}${shared_ext}$major' 13901 shlibpath_var=LD_LIBRARY_PATH 13902 ;; 13903 13904freebsd* | dragonfly*) 13905 # DragonFly does not have aout. When/if they implement a new 13906 # versioning mechanism, adjust this. 13907 if test -x /usr/bin/objformat; then 13908 objformat=`/usr/bin/objformat` 13909 else 13910 case $host_os in 13911 freebsd[23].*) objformat=aout ;; 13912 *) objformat=elf ;; 13913 esac 13914 fi 13915 version_type=freebsd-$objformat 13916 case $version_type in 13917 freebsd-elf*) 13918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13919 need_version=no 13920 need_lib_prefix=no 13921 ;; 13922 freebsd-*) 13923 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13924 need_version=yes 13925 ;; 13926 esac 13927 shlibpath_var=LD_LIBRARY_PATH 13928 case $host_os in 13929 freebsd2.*) 13930 shlibpath_overrides_runpath=yes 13931 ;; 13932 freebsd3.[01]* | freebsdelf3.[01]*) 13933 shlibpath_overrides_runpath=yes 13934 hardcode_into_libs=yes 13935 ;; 13936 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13937 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13938 shlibpath_overrides_runpath=no 13939 hardcode_into_libs=yes 13940 ;; 13941 *) # from 4.6 on, and DragonFly 13942 shlibpath_overrides_runpath=yes 13943 hardcode_into_libs=yes 13944 ;; 13945 esac 13946 ;; 13947 13948gnu*) 13949 version_type=linux 13950 need_lib_prefix=no 13951 need_version=no 13952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13953 soname_spec='${libname}${release}${shared_ext}$major' 13954 shlibpath_var=LD_LIBRARY_PATH 13955 hardcode_into_libs=yes 13956 ;; 13957 13958haiku*) 13959 version_type=linux 13960 need_lib_prefix=no 13961 need_version=no 13962 dynamic_linker="$host_os runtime_loader" 13963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13964 soname_spec='${libname}${release}${shared_ext}$major' 13965 shlibpath_var=LIBRARY_PATH 13966 shlibpath_overrides_runpath=yes 13967 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 13968 hardcode_into_libs=yes 13969 ;; 13970 13971hpux9* | hpux10* | hpux11*) 13972 # Give a soname corresponding to the major version so that dld.sl refuses to 13973 # link against other versions. 13974 version_type=sunos 13975 need_lib_prefix=no 13976 need_version=no 13977 case $host_cpu in 13978 ia64*) 13979 shrext_cmds='.so' 13980 hardcode_into_libs=yes 13981 dynamic_linker="$host_os dld.so" 13982 shlibpath_var=LD_LIBRARY_PATH 13983 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13985 soname_spec='${libname}${release}${shared_ext}$major' 13986 if test "X$HPUX_IA64_MODE" = X32; then 13987 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13988 else 13989 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13990 fi 13991 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13992 ;; 13993 hppa*64*) 13994 shrext_cmds='.sl' 13995 hardcode_into_libs=yes 13996 dynamic_linker="$host_os dld.sl" 13997 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13998 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14000 soname_spec='${libname}${release}${shared_ext}$major' 14001 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14002 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14003 ;; 14004 *) 14005 shrext_cmds='.sl' 14006 dynamic_linker="$host_os dld.sl" 14007 shlibpath_var=SHLIB_PATH 14008 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14010 soname_spec='${libname}${release}${shared_ext}$major' 14011 ;; 14012 esac 14013 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14014 postinstall_cmds='chmod 555 $lib' 14015 # or fails outright, so override atomically: 14016 install_override_mode=555 14017 ;; 14018 14019interix[3-9]*) 14020 version_type=linux 14021 need_lib_prefix=no 14022 need_version=no 14023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14024 soname_spec='${libname}${release}${shared_ext}$major' 14025 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14026 shlibpath_var=LD_LIBRARY_PATH 14027 shlibpath_overrides_runpath=no 14028 hardcode_into_libs=yes 14029 ;; 14030 14031irix5* | irix6* | nonstopux*) 14032 case $host_os in 14033 nonstopux*) version_type=nonstopux ;; 14034 *) 14035 if test "$lt_cv_prog_gnu_ld" = yes; then 14036 version_type=linux 14037 else 14038 version_type=irix 14039 fi ;; 14040 esac 14041 need_lib_prefix=no 14042 need_version=no 14043 soname_spec='${libname}${release}${shared_ext}$major' 14044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14045 case $host_os in 14046 irix5* | nonstopux*) 14047 libsuff= shlibsuff= 14048 ;; 14049 *) 14050 case $LD in # libtool.m4 will add one of these switches to LD 14051 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14052 libsuff= shlibsuff= libmagic=32-bit;; 14053 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14054 libsuff=32 shlibsuff=N32 libmagic=N32;; 14055 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14056 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14057 *) libsuff= shlibsuff= libmagic=never-match;; 14058 esac 14059 ;; 14060 esac 14061 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14062 shlibpath_overrides_runpath=no 14063 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14064 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14065 hardcode_into_libs=yes 14066 ;; 14067 14068# No shared lib support for Linux oldld, aout, or coff. 14069linux*oldld* | linux*aout* | linux*coff*) 14070 dynamic_linker=no 14071 ;; 14072 14073# This must be Linux ELF. 14074linux* | k*bsd*-gnu | kopensolaris*-gnu) 14075 version_type=linux 14076 need_lib_prefix=no 14077 need_version=no 14078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14079 soname_spec='${libname}${release}${shared_ext}$major' 14080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14081 shlibpath_var=LD_LIBRARY_PATH 14082 shlibpath_overrides_runpath=no 14083 14084 # Some binutils ld are patched to set DT_RUNPATH 14085 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 14086 $as_echo_n "(cached) " >&6 14087else 14088 lt_cv_shlibpath_overrides_runpath=no 14089 save_LDFLAGS=$LDFLAGS 14090 save_libdir=$libdir 14091 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14092 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14094/* end confdefs.h. */ 14095 14096int 14097main () 14098{ 14099 14100 ; 14101 return 0; 14102} 14103_ACEOF 14104if ac_fn_cxx_try_link "$LINENO"; then : 14105 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14106 lt_cv_shlibpath_overrides_runpath=yes 14107fi 14108fi 14109rm -f core conftest.err conftest.$ac_objext \ 14110 conftest$ac_exeext conftest.$ac_ext 14111 LDFLAGS=$save_LDFLAGS 14112 libdir=$save_libdir 14113 14114fi 14115 14116 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14117 14118 # This implies no fast_install, which is unacceptable. 14119 # Some rework will be needed to allow for fast_install 14120 # before this can be enabled. 14121 hardcode_into_libs=yes 14122 14123 # Append ld.so.conf contents to the search path 14124 if test -f /etc/ld.so.conf; then 14125 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' ' '` 14126 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14127 fi 14128 14129 # We used to test for /lib/ld.so.1 and disable shared libraries on 14130 # powerpc, because MkLinux only supported shared libraries with the 14131 # GNU dynamic linker. Since this was broken with cross compilers, 14132 # most powerpc-linux boxes support dynamic linking these days and 14133 # people can always --disable-shared, the test was removed, and we 14134 # assume the GNU/Linux dynamic linker is in use. 14135 dynamic_linker='GNU/Linux ld.so' 14136 ;; 14137 14138netbsd*) 14139 version_type=sunos 14140 need_lib_prefix=no 14141 need_version=no 14142 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14144 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14145 dynamic_linker='NetBSD (a.out) ld.so' 14146 else 14147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14148 soname_spec='${libname}${release}${shared_ext}$major' 14149 dynamic_linker='NetBSD ld.elf_so' 14150 fi 14151 shlibpath_var=LD_LIBRARY_PATH 14152 shlibpath_overrides_runpath=yes 14153 hardcode_into_libs=yes 14154 ;; 14155 14156newsos6) 14157 version_type=linux 14158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14159 shlibpath_var=LD_LIBRARY_PATH 14160 shlibpath_overrides_runpath=yes 14161 ;; 14162 14163*nto* | *qnx*) 14164 version_type=qnx 14165 need_lib_prefix=no 14166 need_version=no 14167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14168 soname_spec='${libname}${release}${shared_ext}$major' 14169 shlibpath_var=LD_LIBRARY_PATH 14170 shlibpath_overrides_runpath=no 14171 hardcode_into_libs=yes 14172 dynamic_linker='ldqnx.so' 14173 ;; 14174 14175openbsd*) 14176 version_type=sunos 14177 sys_lib_dlsearch_path_spec="/usr/lib" 14178 need_lib_prefix=no 14179 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14180 case $host_os in 14181 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14182 *) need_version=no ;; 14183 esac 14184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14185 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14186 shlibpath_var=LD_LIBRARY_PATH 14187 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14188 case $host_os in 14189 openbsd2.[89] | openbsd2.[89].*) 14190 shlibpath_overrides_runpath=no 14191 ;; 14192 *) 14193 shlibpath_overrides_runpath=yes 14194 ;; 14195 esac 14196 else 14197 shlibpath_overrides_runpath=yes 14198 fi 14199 ;; 14200 14201os2*) 14202 libname_spec='$name' 14203 shrext_cmds=".dll" 14204 need_lib_prefix=no 14205 library_names_spec='$libname${shared_ext} $libname.a' 14206 dynamic_linker='OS/2 ld.exe' 14207 shlibpath_var=LIBPATH 14208 ;; 14209 14210osf3* | osf4* | osf5*) 14211 version_type=osf 14212 need_lib_prefix=no 14213 need_version=no 14214 soname_spec='${libname}${release}${shared_ext}$major' 14215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14216 shlibpath_var=LD_LIBRARY_PATH 14217 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14218 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14219 ;; 14220 14221rdos*) 14222 dynamic_linker=no 14223 ;; 14224 14225solaris*) 14226 version_type=linux 14227 need_lib_prefix=no 14228 need_version=no 14229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14230 soname_spec='${libname}${release}${shared_ext}$major' 14231 shlibpath_var=LD_LIBRARY_PATH 14232 shlibpath_overrides_runpath=yes 14233 hardcode_into_libs=yes 14234 # ldd complains unless libraries are executable 14235 postinstall_cmds='chmod +x $lib' 14236 ;; 14237 14238sunos4*) 14239 version_type=sunos 14240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14241 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14242 shlibpath_var=LD_LIBRARY_PATH 14243 shlibpath_overrides_runpath=yes 14244 if test "$with_gnu_ld" = yes; then 14245 need_lib_prefix=no 14246 fi 14247 need_version=yes 14248 ;; 14249 14250sysv4 | sysv4.3*) 14251 version_type=linux 14252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14253 soname_spec='${libname}${release}${shared_ext}$major' 14254 shlibpath_var=LD_LIBRARY_PATH 14255 case $host_vendor in 14256 sni) 14257 shlibpath_overrides_runpath=no 14258 need_lib_prefix=no 14259 runpath_var=LD_RUN_PATH 14260 ;; 14261 siemens) 14262 need_lib_prefix=no 14263 ;; 14264 motorola) 14265 need_lib_prefix=no 14266 need_version=no 14267 shlibpath_overrides_runpath=no 14268 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14269 ;; 14270 esac 14271 ;; 14272 14273sysv4*MP*) 14274 if test -d /usr/nec ;then 14275 version_type=linux 14276 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14277 soname_spec='$libname${shared_ext}.$major' 14278 shlibpath_var=LD_LIBRARY_PATH 14279 fi 14280 ;; 14281 14282sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14283 version_type=freebsd-elf 14284 need_lib_prefix=no 14285 need_version=no 14286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14287 soname_spec='${libname}${release}${shared_ext}$major' 14288 shlibpath_var=LD_LIBRARY_PATH 14289 shlibpath_overrides_runpath=yes 14290 hardcode_into_libs=yes 14291 if test "$with_gnu_ld" = yes; then 14292 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14293 else 14294 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14295 case $host_os in 14296 sco3.2v5*) 14297 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14298 ;; 14299 esac 14300 fi 14301 sys_lib_dlsearch_path_spec='/usr/lib' 14302 ;; 14303 14304tpf*) 14305 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14306 version_type=linux 14307 need_lib_prefix=no 14308 need_version=no 14309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14310 shlibpath_var=LD_LIBRARY_PATH 14311 shlibpath_overrides_runpath=no 14312 hardcode_into_libs=yes 14313 ;; 14314 14315uts4*) 14316 version_type=linux 14317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14318 soname_spec='${libname}${release}${shared_ext}$major' 14319 shlibpath_var=LD_LIBRARY_PATH 14320 ;; 14321 14322*) 14323 dynamic_linker=no 14324 ;; 14325esac 14326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14327$as_echo "$dynamic_linker" >&6; } 14328test "$dynamic_linker" = no && can_build_shared=no 14329 14330variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14331if test "$GCC" = yes; then 14332 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14333fi 14334 14335if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14336 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14337fi 14338if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14339 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14340fi 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14380$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14381hardcode_action_CXX= 14382if test -n "$hardcode_libdir_flag_spec_CXX" || 14383 test -n "$runpath_var_CXX" || 14384 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14385 14386 # We can hardcode non-existent directories. 14387 if test "$hardcode_direct_CXX" != no && 14388 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14389 # have to relink, otherwise we might link with an installed library 14390 # when we should be linking with a yet-to-be-installed one 14391 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14392 test "$hardcode_minus_L_CXX" != no; then 14393 # Linking always hardcodes the temporary library directory. 14394 hardcode_action_CXX=relink 14395 else 14396 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14397 hardcode_action_CXX=immediate 14398 fi 14399else 14400 # We cannot hardcode anything, or else we can only hardcode existing 14401 # directories. 14402 hardcode_action_CXX=unsupported 14403fi 14404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 14405$as_echo "$hardcode_action_CXX" >&6; } 14406 14407if test "$hardcode_action_CXX" = relink || 14408 test "$inherit_rpath_CXX" = yes; then 14409 # Fast installation is not supported 14410 enable_fast_install=no 14411elif test "$shlibpath_overrides_runpath" = yes || 14412 test "$enable_shared" = no; then 14413 # Fast installation is not necessary 14414 enable_fast_install=needless 14415fi 14416 14417 14418 14419 14420 14421 14422 14423 fi # test -n "$compiler" 14424 14425 CC=$lt_save_CC 14426 LDCXX=$LD 14427 LD=$lt_save_LD 14428 GCC=$lt_save_GCC 14429 with_gnu_ld=$lt_save_with_gnu_ld 14430 lt_cv_path_LDCXX=$lt_cv_path_LD 14431 lt_cv_path_LD=$lt_save_path_LD 14432 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14433 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14434fi # test "$_lt_caught_CXX_error" != yes 14435 14436ac_ext=c 14437ac_cpp='$CPP $CPPFLAGS' 14438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14440ac_compiler_gnu=$ac_cv_c_compiler_gnu 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 ac_config_commands="$ac_config_commands libtool" 14455 14456 14457 14458 14459# Only expand once: 14460 14461 14462# Forbid libtool to hardcode RPATH, because we want to be able to specify 14463# library search directory using LD_LIBRARY_PATH 14464hardcode_into_libs=no 14465 14466 14467 14468 14469 14470if test $enable_shared = yes; then 14471 link_offloadmic_host="-loffloadmic_host %{static: $LIBS}" 14472 link_offloadmic_target="-loffloadmic_target %{static: $LIBS}" 14473else 14474 link_offloadmic_host="-loffloadmic_host $LIBS" 14475 link_offloadmic_target="-loffloadmic_target $LIBS" 14476fi 14477 14478 14479 14480# Must be last 14481cat >confcache <<\_ACEOF 14482# This file is a shell script that caches the results of configure 14483# tests run on this system so they can be shared between configure 14484# scripts and configure runs, see configure's option --config-cache. 14485# It is not useful on other systems. If it contains results you don't 14486# want to keep, you may remove or edit it. 14487# 14488# config.status only pays attention to the cache file if you give it 14489# the --recheck option to rerun configure. 14490# 14491# `ac_cv_env_foo' variables (set or unset) will be overridden when 14492# loading this file, other *unset* `ac_cv_foo' will be assigned the 14493# following values. 14494 14495_ACEOF 14496 14497# The following way of writing the cache mishandles newlines in values, 14498# but we know of no workaround that is simple, portable, and efficient. 14499# So, we kill variables containing newlines. 14500# Ultrix sh set writes to stderr and can't be redirected directly, 14501# and sets the high bit in the cache file unless we assign to the vars. 14502( 14503 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14504 eval ac_val=\$$ac_var 14505 case $ac_val in #( 14506 *${as_nl}*) 14507 case $ac_var in #( 14508 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14509$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14510 esac 14511 case $ac_var in #( 14512 _ | IFS | as_nl) ;; #( 14513 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14514 *) { eval $ac_var=; unset $ac_var;} ;; 14515 esac ;; 14516 esac 14517 done 14518 14519 (set) 2>&1 | 14520 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14521 *${as_nl}ac_space=\ *) 14522 # `set' does not quote correctly, so add quotes: double-quote 14523 # substitution turns \\\\ into \\, and sed turns \\ into \. 14524 sed -n \ 14525 "s/'/'\\\\''/g; 14526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14527 ;; #( 14528 *) 14529 # `set' quotes correctly as required by POSIX, so do not add quotes. 14530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14531 ;; 14532 esac | 14533 sort 14534) | 14535 sed ' 14536 /^ac_cv_env_/b end 14537 t clear 14538 :clear 14539 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14540 t end 14541 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14542 :end' >>confcache 14543if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14544 if test -w "$cache_file"; then 14545 test "x$cache_file" != "x/dev/null" && 14546 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14547$as_echo "$as_me: updating cache $cache_file" >&6;} 14548 cat confcache >$cache_file 14549 else 14550 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14551$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14552 fi 14553fi 14554rm -f confcache 14555 14556test "x$prefix" = xNONE && prefix=$ac_default_prefix 14557# Let make expand exec_prefix. 14558test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14559 14560# Transform confdefs.h into DEFS. 14561# Protect against shell expansion while executing Makefile rules. 14562# Protect against Makefile macro expansion. 14563# 14564# If the first sed substitution is executed (which looks for macros that 14565# take arguments), then branch to the quote section. Otherwise, 14566# look for a macro that doesn't take arguments. 14567ac_script=' 14568:mline 14569/\\$/{ 14570 N 14571 s,\\\n,, 14572 b mline 14573} 14574t clear 14575:clear 14576s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 14577t quote 14578s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 14579t quote 14580b any 14581:quote 14582s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 14583s/\[/\\&/g 14584s/\]/\\&/g 14585s/\$/$$/g 14586H 14587:any 14588${ 14589 g 14590 s/^\n// 14591 s/\n/ /g 14592 p 14593} 14594' 14595DEFS=`sed -n "$ac_script" confdefs.h` 14596 14597 14598ac_libobjs= 14599ac_ltlibobjs= 14600for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14601 # 1. Remove the extension, and $U if already installed. 14602 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14603 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14604 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14605 # will be set to the directory where LIBOBJS objects are built. 14606 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14607 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14608done 14609LIBOBJS=$ac_libobjs 14610 14611LTLIBOBJS=$ac_ltlibobjs 14612 14613 14614 if test -n "$EXEEXT"; then 14615 am__EXEEXT_TRUE= 14616 am__EXEEXT_FALSE='#' 14617else 14618 am__EXEEXT_TRUE='#' 14619 am__EXEEXT_FALSE= 14620fi 14621 14622if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 14623 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 14624Usually this means the macro was only invoked conditionally." "$LINENO" 5 14625fi 14626if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 14627 as_fn_error "conditional \"AMDEP\" was never defined. 14628Usually this means the macro was only invoked conditionally." "$LINENO" 5 14629fi 14630if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 14631 as_fn_error "conditional \"am__fastdepCC\" was never defined. 14632Usually this means the macro was only invoked conditionally." "$LINENO" 5 14633fi 14634if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 14635 as_fn_error "conditional \"am__fastdepCXX\" was never defined. 14636Usually this means the macro was only invoked conditionally." "$LINENO" 5 14637fi 14638if test -z "${LIBOFFLOADMIC_HOST_TRUE}" && test -z "${LIBOFFLOADMIC_HOST_FALSE}"; then 14639 as_fn_error "conditional \"LIBOFFLOADMIC_HOST\" was never defined. 14640Usually this means the macro was only invoked conditionally." "$LINENO" 5 14641fi 14642 14643: ${CONFIG_STATUS=./config.status} 14644ac_write_fail=0 14645ac_clean_files_save=$ac_clean_files 14646ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14647{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14648$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14649as_write_fail=0 14650cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14651#! $SHELL 14652# Generated by $as_me. 14653# Run this file to recreate the current configuration. 14654# Compiler output produced by configure, useful for debugging 14655# configure, is in config.log if it exists. 14656 14657debug=false 14658ac_cs_recheck=false 14659ac_cs_silent=false 14660 14661SHELL=\${CONFIG_SHELL-$SHELL} 14662export SHELL 14663_ASEOF 14664cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14665## -------------------- ## 14666## M4sh Initialization. ## 14667## -------------------- ## 14668 14669# Be more Bourne compatible 14670DUALCASE=1; export DUALCASE # for MKS sh 14671if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14672 emulate sh 14673 NULLCMD=: 14674 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14675 # is contrary to our usage. Disable this feature. 14676 alias -g '${1+"$@"}'='"$@"' 14677 setopt NO_GLOB_SUBST 14678else 14679 case `(set -o) 2>/dev/null` in #( 14680 *posix*) : 14681 set -o posix ;; #( 14682 *) : 14683 ;; 14684esac 14685fi 14686 14687 14688as_nl=' 14689' 14690export as_nl 14691# Printing a long string crashes Solaris 7 /usr/bin/printf. 14692as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14693as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14694as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14695# Prefer a ksh shell builtin over an external printf program on Solaris, 14696# but without wasting forks for bash or zsh. 14697if test -z "$BASH_VERSION$ZSH_VERSION" \ 14698 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14699 as_echo='print -r --' 14700 as_echo_n='print -rn --' 14701elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14702 as_echo='printf %s\n' 14703 as_echo_n='printf %s' 14704else 14705 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14706 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14707 as_echo_n='/usr/ucb/echo -n' 14708 else 14709 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14710 as_echo_n_body='eval 14711 arg=$1; 14712 case $arg in #( 14713 *"$as_nl"*) 14714 expr "X$arg" : "X\\(.*\\)$as_nl"; 14715 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14716 esac; 14717 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14718 ' 14719 export as_echo_n_body 14720 as_echo_n='sh -c $as_echo_n_body as_echo' 14721 fi 14722 export as_echo_body 14723 as_echo='sh -c $as_echo_body as_echo' 14724fi 14725 14726# The user is always right. 14727if test "${PATH_SEPARATOR+set}" != set; then 14728 PATH_SEPARATOR=: 14729 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14730 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14731 PATH_SEPARATOR=';' 14732 } 14733fi 14734 14735 14736# IFS 14737# We need space, tab and new line, in precisely that order. Quoting is 14738# there to prevent editors from complaining about space-tab. 14739# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14740# splitting by setting IFS to empty value.) 14741IFS=" "" $as_nl" 14742 14743# Find who we are. Look in the path if we contain no directory separator. 14744case $0 in #(( 14745 *[\\/]* ) as_myself=$0 ;; 14746 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14747for as_dir in $PATH 14748do 14749 IFS=$as_save_IFS 14750 test -z "$as_dir" && as_dir=. 14751 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14752 done 14753IFS=$as_save_IFS 14754 14755 ;; 14756esac 14757# We did not find ourselves, most probably we were run as `sh COMMAND' 14758# in which case we are not to be found in the path. 14759if test "x$as_myself" = x; then 14760 as_myself=$0 14761fi 14762if test ! -f "$as_myself"; then 14763 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14764 exit 1 14765fi 14766 14767# Unset variables that we do not need and which cause bugs (e.g. in 14768# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14769# suppresses any "Segmentation fault" message there. '((' could 14770# trigger a bug in pdksh 5.2.14. 14771for as_var in BASH_ENV ENV MAIL MAILPATH 14772do eval test x\${$as_var+set} = xset \ 14773 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14774done 14775PS1='$ ' 14776PS2='> ' 14777PS4='+ ' 14778 14779# NLS nuisances. 14780LC_ALL=C 14781export LC_ALL 14782LANGUAGE=C 14783export LANGUAGE 14784 14785# CDPATH. 14786(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14787 14788 14789# as_fn_error ERROR [LINENO LOG_FD] 14790# --------------------------------- 14791# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14792# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14793# script with status $?, using 1 if that was 0. 14794as_fn_error () 14795{ 14796 as_status=$?; test $as_status -eq 0 && as_status=1 14797 if test "$3"; then 14798 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14799 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 14800 fi 14801 $as_echo "$as_me: error: $1" >&2 14802 as_fn_exit $as_status 14803} # as_fn_error 14804 14805 14806# as_fn_set_status STATUS 14807# ----------------------- 14808# Set $? to STATUS, without forking. 14809as_fn_set_status () 14810{ 14811 return $1 14812} # as_fn_set_status 14813 14814# as_fn_exit STATUS 14815# ----------------- 14816# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14817as_fn_exit () 14818{ 14819 set +e 14820 as_fn_set_status $1 14821 exit $1 14822} # as_fn_exit 14823 14824# as_fn_unset VAR 14825# --------------- 14826# Portably unset VAR. 14827as_fn_unset () 14828{ 14829 { eval $1=; unset $1;} 14830} 14831as_unset=as_fn_unset 14832# as_fn_append VAR VALUE 14833# ---------------------- 14834# Append the text in VALUE to the end of the definition contained in VAR. Take 14835# advantage of any shell optimizations that allow amortized linear growth over 14836# repeated appends, instead of the typical quadratic growth present in naive 14837# implementations. 14838if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14839 eval 'as_fn_append () 14840 { 14841 eval $1+=\$2 14842 }' 14843else 14844 as_fn_append () 14845 { 14846 eval $1=\$$1\$2 14847 } 14848fi # as_fn_append 14849 14850# as_fn_arith ARG... 14851# ------------------ 14852# Perform arithmetic evaluation on the ARGs, and store the result in the 14853# global $as_val. Take advantage of shells that can avoid forks. The arguments 14854# must be portable across $(()) and expr. 14855if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14856 eval 'as_fn_arith () 14857 { 14858 as_val=$(( $* )) 14859 }' 14860else 14861 as_fn_arith () 14862 { 14863 as_val=`expr "$@" || test $? -eq 1` 14864 } 14865fi # as_fn_arith 14866 14867 14868if expr a : '\(a\)' >/dev/null 2>&1 && 14869 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14870 as_expr=expr 14871else 14872 as_expr=false 14873fi 14874 14875if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14876 as_basename=basename 14877else 14878 as_basename=false 14879fi 14880 14881if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14882 as_dirname=dirname 14883else 14884 as_dirname=false 14885fi 14886 14887as_me=`$as_basename -- "$0" || 14888$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14889 X"$0" : 'X\(//\)$' \| \ 14890 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14891$as_echo X/"$0" | 14892 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14893 s//\1/ 14894 q 14895 } 14896 /^X\/\(\/\/\)$/{ 14897 s//\1/ 14898 q 14899 } 14900 /^X\/\(\/\).*/{ 14901 s//\1/ 14902 q 14903 } 14904 s/.*/./; q'` 14905 14906# Avoid depending upon Character Ranges. 14907as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14908as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14909as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14910as_cr_digits='0123456789' 14911as_cr_alnum=$as_cr_Letters$as_cr_digits 14912 14913ECHO_C= ECHO_N= ECHO_T= 14914case `echo -n x` in #((((( 14915-n*) 14916 case `echo 'xy\c'` in 14917 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14918 xy) ECHO_C='\c';; 14919 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14920 ECHO_T=' ';; 14921 esac;; 14922*) 14923 ECHO_N='-n';; 14924esac 14925 14926rm -f conf$$ conf$$.exe conf$$.file 14927if test -d conf$$.dir; then 14928 rm -f conf$$.dir/conf$$.file 14929else 14930 rm -f conf$$.dir 14931 mkdir conf$$.dir 2>/dev/null 14932fi 14933if (echo >conf$$.file) 2>/dev/null; then 14934 if ln -s conf$$.file conf$$ 2>/dev/null; then 14935 as_ln_s='ln -s' 14936 # ... but there are two gotchas: 14937 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14938 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14939 # In both cases, we have to default to `cp -p'. 14940 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14941 as_ln_s='cp -p' 14942 elif ln conf$$.file conf$$ 2>/dev/null; then 14943 as_ln_s=ln 14944 else 14945 as_ln_s='cp -p' 14946 fi 14947else 14948 as_ln_s='cp -p' 14949fi 14950rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14951rmdir conf$$.dir 2>/dev/null 14952 14953 14954# as_fn_mkdir_p 14955# ------------- 14956# Create "$as_dir" as a directory, including parents if necessary. 14957as_fn_mkdir_p () 14958{ 14959 14960 case $as_dir in #( 14961 -*) as_dir=./$as_dir;; 14962 esac 14963 test -d "$as_dir" || eval $as_mkdir_p || { 14964 as_dirs= 14965 while :; do 14966 case $as_dir in #( 14967 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14968 *) as_qdir=$as_dir;; 14969 esac 14970 as_dirs="'$as_qdir' $as_dirs" 14971 as_dir=`$as_dirname -- "$as_dir" || 14972$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14973 X"$as_dir" : 'X\(//\)[^/]' \| \ 14974 X"$as_dir" : 'X\(//\)$' \| \ 14975 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14976$as_echo X"$as_dir" | 14977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14978 s//\1/ 14979 q 14980 } 14981 /^X\(\/\/\)[^/].*/{ 14982 s//\1/ 14983 q 14984 } 14985 /^X\(\/\/\)$/{ 14986 s//\1/ 14987 q 14988 } 14989 /^X\(\/\).*/{ 14990 s//\1/ 14991 q 14992 } 14993 s/.*/./; q'` 14994 test -d "$as_dir" && break 14995 done 14996 test -z "$as_dirs" || eval "mkdir $as_dirs" 14997 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 14998 14999 15000} # as_fn_mkdir_p 15001if mkdir -p . 2>/dev/null; then 15002 as_mkdir_p='mkdir -p "$as_dir"' 15003else 15004 test -d ./-p && rmdir ./-p 15005 as_mkdir_p=false 15006fi 15007 15008if test -x / >/dev/null 2>&1; then 15009 as_test_x='test -x' 15010else 15011 if ls -dL / >/dev/null 2>&1; then 15012 as_ls_L_option=L 15013 else 15014 as_ls_L_option= 15015 fi 15016 as_test_x=' 15017 eval sh -c '\'' 15018 if test -d "$1"; then 15019 test -d "$1/."; 15020 else 15021 case $1 in #( 15022 -*)set "./$1";; 15023 esac; 15024 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 15025 ???[sx]*):;;*)false;;esac;fi 15026 '\'' sh 15027 ' 15028fi 15029as_executable_p=$as_test_x 15030 15031# Sed expression to map a string onto a valid CPP name. 15032as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15033 15034# Sed expression to map a string onto a valid variable name. 15035as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15036 15037 15038exec 6>&1 15039## ----------------------------------- ## 15040## Main body of $CONFIG_STATUS script. ## 15041## ----------------------------------- ## 15042_ASEOF 15043test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15044 15045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15046# Save the log message, to keep $0 and so on meaningful, and to 15047# report actual input values of CONFIG_FILES etc. instead of their 15048# values after options handling. 15049ac_log=" 15050This file was extended by MIC Offload Runtime Library $as_me 1.0, which was 15051generated by GNU Autoconf 2.64. Invocation command line was 15052 15053 CONFIG_FILES = $CONFIG_FILES 15054 CONFIG_HEADERS = $CONFIG_HEADERS 15055 CONFIG_LINKS = $CONFIG_LINKS 15056 CONFIG_COMMANDS = $CONFIG_COMMANDS 15057 $ $0 $@ 15058 15059on `(hostname || uname -n) 2>/dev/null | sed 1q` 15060" 15061 15062_ACEOF 15063 15064case $ac_config_files in *" 15065"*) set x $ac_config_files; shift; ac_config_files=$*;; 15066esac 15067 15068 15069 15070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15071# Files that config.status was made for. 15072config_files="$ac_config_files" 15073config_commands="$ac_config_commands" 15074 15075_ACEOF 15076 15077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15078ac_cs_usage="\ 15079\`$as_me' instantiates files and other configuration actions 15080from templates according to the current configuration. Unless the files 15081and actions are specified as TAGs, all are instantiated by default. 15082 15083Usage: $0 [OPTION]... [TAG]... 15084 15085 -h, --help print this help, then exit 15086 -V, --version print version number and configuration settings, then exit 15087 -q, --quiet, --silent 15088 do not print progress messages 15089 -d, --debug don't remove temporary files 15090 --recheck update $as_me by reconfiguring in the same conditions 15091 --file=FILE[:TEMPLATE] 15092 instantiate the configuration file FILE 15093 15094Configuration files: 15095$config_files 15096 15097Configuration commands: 15098$config_commands 15099 15100Report bugs to the package provider." 15101 15102_ACEOF 15103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15104ac_cs_version="\\ 15105MIC Offload Runtime Library config.status 1.0 15106configured by $0, generated by GNU Autoconf 2.64, 15107 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 15108 15109Copyright (C) 2009 Free Software Foundation, Inc. 15110This config.status script is free software; the Free Software Foundation 15111gives unlimited permission to copy, distribute and modify it." 15112 15113ac_pwd='$ac_pwd' 15114srcdir='$srcdir' 15115INSTALL='$INSTALL' 15116MKDIR_P='$MKDIR_P' 15117AWK='$AWK' 15118test -n "\$AWK" || AWK=awk 15119_ACEOF 15120 15121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15122# The default lists apply if the user does not specify any file. 15123ac_need_defaults=: 15124while test $# != 0 15125do 15126 case $1 in 15127 --*=*) 15128 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15129 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15130 ac_shift=: 15131 ;; 15132 *) 15133 ac_option=$1 15134 ac_optarg=$2 15135 ac_shift=shift 15136 ;; 15137 esac 15138 15139 case $ac_option in 15140 # Handling of the options. 15141 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15142 ac_cs_recheck=: ;; 15143 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15144 $as_echo "$ac_cs_version"; exit ;; 15145 --debug | --debu | --deb | --de | --d | -d ) 15146 debug=: ;; 15147 --file | --fil | --fi | --f ) 15148 $ac_shift 15149 case $ac_optarg in 15150 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15151 esac 15152 as_fn_append CONFIG_FILES " '$ac_optarg'" 15153 ac_need_defaults=false;; 15154 --he | --h | --help | --hel | -h ) 15155 $as_echo "$ac_cs_usage"; exit ;; 15156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15157 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15158 ac_cs_silent=: ;; 15159 15160 # This is an error. 15161 -*) as_fn_error "unrecognized option: \`$1' 15162Try \`$0 --help' for more information." ;; 15163 15164 *) as_fn_append ac_config_targets " $1" 15165 ac_need_defaults=false ;; 15166 15167 esac 15168 shift 15169done 15170 15171ac_configure_extra_args= 15172 15173if $ac_cs_silent; then 15174 exec 6>/dev/null 15175 ac_configure_extra_args="$ac_configure_extra_args --silent" 15176fi 15177 15178_ACEOF 15179cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15180if \$ac_cs_recheck; then 15181 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15182 shift 15183 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15184 CONFIG_SHELL='$SHELL' 15185 export CONFIG_SHELL 15186 exec "\$@" 15187fi 15188 15189_ACEOF 15190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15191exec 5>>config.log 15192{ 15193 echo 15194 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15195## Running $as_me. ## 15196_ASBOX 15197 $as_echo "$ac_log" 15198} >&5 15199 15200_ACEOF 15201cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15202# 15203# INIT-COMMANDS 15204# 15205AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15206 15207srcdir="$srcdir" 15208host="$host" 15209target="$target" 15210with_multisubdir="$with_multisubdir" 15211with_multisrctop="$with_multisrctop" 15212with_target_subdir="$with_target_subdir" 15213ac_configure_args="${multilib_arg} ${ac_configure_args}" 15214multi_basedir="$multi_basedir" 15215CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 15216CC="$CC" 15217CXX="$CXX" 15218GFORTRAN="$GFORTRAN" 15219GCJ="$GCJ" 15220 15221 15222# The HP-UX ksh and POSIX shell print the target directory to stdout 15223# if CDPATH is set. 15224(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15225 15226sed_quote_subst='$sed_quote_subst' 15227double_quote_subst='$double_quote_subst' 15228delay_variable_subst='$delay_variable_subst' 15229macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15230macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15231enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15232enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15233pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15234enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15235SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15236ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15237host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15238host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15239host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15240build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15241build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15242build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15243SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15244Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15245GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15246EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15247FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15248LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15249NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15250LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15251max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15252ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15253exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15254lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15255lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15256lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15257reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15258reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15259OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15260deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15261file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15262AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15263AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15264STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15265RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15266old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15267old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15268old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15269lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15270CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15271CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15272compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15273GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15274lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15275lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15276lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15277lt_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"`' 15278objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15279MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15280lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15281lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15282lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15283lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15284lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15285need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15286DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15287NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15288LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15289OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15290OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15291libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15292shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15293extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15294archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15295enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15296export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15297whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15298compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15299old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15300old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15301archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15302archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15303module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15304module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15305with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15306allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15307no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15308hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15309hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 15310hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15311hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15312hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15313hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15314hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15315hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15316inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15317link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15318fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 15319always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15320export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15321exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15322include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15323prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15324file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15325variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15326need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15327need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15328version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15329runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15330shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15331shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15332libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15333library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15334soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15335install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15336postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15337postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15338finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15339finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15340hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15341sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15342sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 15343hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15344enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15345enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15346enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15347old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15348striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15349compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 15350predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 15351postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 15352predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 15353postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 15354compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 15355LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 15356reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 15357reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15358old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15359compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 15360GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 15361lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 15362lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 15363lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 15364lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 15365lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 15366archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 15367enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 15368export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15369whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15370compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 15371old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15372old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15373archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15374archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15375module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15376module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15377with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 15378allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 15379no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 15380hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15381hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 15382hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 15383hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 15384hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 15385hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 15386hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 15387hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 15388inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 15389link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 15390fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' 15391always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 15392export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15393exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 15394include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 15395prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15396file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 15397hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 15398compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 15399predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 15400postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 15401predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 15402postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 15403compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 15404 15405LTCC='$LTCC' 15406LTCFLAGS='$LTCFLAGS' 15407compiler='$compiler_DEFAULT' 15408 15409# A function that is used when there is no print builtin or printf. 15410func_fallback_echo () 15411{ 15412 eval 'cat <<_LTECHO_EOF 15413\$1 15414_LTECHO_EOF' 15415} 15416 15417# Quote evaled strings. 15418for var in SHELL \ 15419ECHO \ 15420SED \ 15421GREP \ 15422EGREP \ 15423FGREP \ 15424LD \ 15425NM \ 15426LN_S \ 15427lt_SP2NL \ 15428lt_NL2SP \ 15429reload_flag \ 15430OBJDUMP \ 15431deplibs_check_method \ 15432file_magic_cmd \ 15433AR \ 15434AR_FLAGS \ 15435STRIP \ 15436RANLIB \ 15437CC \ 15438CFLAGS \ 15439compiler \ 15440lt_cv_sys_global_symbol_pipe \ 15441lt_cv_sys_global_symbol_to_cdecl \ 15442lt_cv_sys_global_symbol_to_c_name_address \ 15443lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15444lt_prog_compiler_no_builtin_flag \ 15445lt_prog_compiler_wl \ 15446lt_prog_compiler_pic \ 15447lt_prog_compiler_static \ 15448lt_cv_prog_compiler_c_o \ 15449need_locks \ 15450DSYMUTIL \ 15451NMEDIT \ 15452LIPO \ 15453OTOOL \ 15454OTOOL64 \ 15455shrext_cmds \ 15456export_dynamic_flag_spec \ 15457whole_archive_flag_spec \ 15458compiler_needs_object \ 15459with_gnu_ld \ 15460allow_undefined_flag \ 15461no_undefined_flag \ 15462hardcode_libdir_flag_spec \ 15463hardcode_libdir_flag_spec_ld \ 15464hardcode_libdir_separator \ 15465fix_srcfile_path \ 15466exclude_expsyms \ 15467include_expsyms \ 15468file_list_spec \ 15469variables_saved_for_relink \ 15470libname_spec \ 15471library_names_spec \ 15472soname_spec \ 15473install_override_mode \ 15474finish_eval \ 15475old_striplib \ 15476striplib \ 15477compiler_lib_search_dirs \ 15478predep_objects \ 15479postdep_objects \ 15480predeps \ 15481postdeps \ 15482compiler_lib_search_path \ 15483LD_CXX \ 15484reload_flag_CXX \ 15485compiler_CXX \ 15486lt_prog_compiler_no_builtin_flag_CXX \ 15487lt_prog_compiler_wl_CXX \ 15488lt_prog_compiler_pic_CXX \ 15489lt_prog_compiler_static_CXX \ 15490lt_cv_prog_compiler_c_o_CXX \ 15491export_dynamic_flag_spec_CXX \ 15492whole_archive_flag_spec_CXX \ 15493compiler_needs_object_CXX \ 15494with_gnu_ld_CXX \ 15495allow_undefined_flag_CXX \ 15496no_undefined_flag_CXX \ 15497hardcode_libdir_flag_spec_CXX \ 15498hardcode_libdir_flag_spec_ld_CXX \ 15499hardcode_libdir_separator_CXX \ 15500fix_srcfile_path_CXX \ 15501exclude_expsyms_CXX \ 15502include_expsyms_CXX \ 15503file_list_spec_CXX \ 15504compiler_lib_search_dirs_CXX \ 15505predep_objects_CXX \ 15506postdep_objects_CXX \ 15507predeps_CXX \ 15508postdeps_CXX \ 15509compiler_lib_search_path_CXX; do 15510 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15511 *[\\\\\\\`\\"\\\$]*) 15512 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15513 ;; 15514 *) 15515 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15516 ;; 15517 esac 15518done 15519 15520# Double-quote double-evaled strings. 15521for var in reload_cmds \ 15522old_postinstall_cmds \ 15523old_postuninstall_cmds \ 15524old_archive_cmds \ 15525extract_expsyms_cmds \ 15526old_archive_from_new_cmds \ 15527old_archive_from_expsyms_cmds \ 15528archive_cmds \ 15529archive_expsym_cmds \ 15530module_cmds \ 15531module_expsym_cmds \ 15532export_symbols_cmds \ 15533prelink_cmds \ 15534postinstall_cmds \ 15535postuninstall_cmds \ 15536finish_cmds \ 15537sys_lib_search_path_spec \ 15538sys_lib_dlsearch_path_spec \ 15539reload_cmds_CXX \ 15540old_archive_cmds_CXX \ 15541old_archive_from_new_cmds_CXX \ 15542old_archive_from_expsyms_cmds_CXX \ 15543archive_cmds_CXX \ 15544archive_expsym_cmds_CXX \ 15545module_cmds_CXX \ 15546module_expsym_cmds_CXX \ 15547export_symbols_cmds_CXX \ 15548prelink_cmds_CXX; do 15549 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15550 *[\\\\\\\`\\"\\\$]*) 15551 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 15552 ;; 15553 *) 15554 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15555 ;; 15556 esac 15557done 15558 15559ac_aux_dir='$ac_aux_dir' 15560xsi_shell='$xsi_shell' 15561lt_shell_append='$lt_shell_append' 15562 15563# See if we are running on zsh, and set the options which allow our 15564# commands through without removal of \ escapes INIT. 15565if test -n "\${ZSH_VERSION+set}" ; then 15566 setopt NO_GLOB_SUBST 15567fi 15568 15569 15570 PACKAGE='$PACKAGE' 15571 VERSION='$VERSION' 15572 TIMESTAMP='$TIMESTAMP' 15573 RM='$RM' 15574 ofile='$ofile' 15575 15576 15577 15578 15579 15580 15581_ACEOF 15582 15583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15584 15585# Handling of arguments. 15586for ac_config_target in $ac_config_targets 15587do 15588 case $ac_config_target in 15589 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 15590 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 15591 "liboffloadmic_host.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_host.spec" ;; 15592 "liboffloadmic_target.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_target.spec" ;; 15593 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 15594 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 15595 15596 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15597 esac 15598done 15599 15600 15601# If the user did not use the arguments to specify the items to instantiate, 15602# then the envvar interface is used. Set only those that are not. 15603# We use the long form for the default assignment because of an extremely 15604# bizarre bug on SunOS 4.1.3. 15605if $ac_need_defaults; then 15606 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15607 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15608fi 15609 15610# Have a temporary directory for convenience. Make it in the build tree 15611# simply because there is no reason against having it here, and in addition, 15612# creating and moving files from /tmp can sometimes cause problems. 15613# Hook for its removal unless debugging. 15614# Note that there is a small window in which the directory will not be cleaned: 15615# after its creation but before its name has been assigned to `$tmp'. 15616$debug || 15617{ 15618 tmp= 15619 trap 'exit_status=$? 15620 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 15621' 0 15622 trap 'as_fn_exit 1' 1 2 13 15 15623} 15624# Create a (secure) tmp directory for tmp files. 15625 15626{ 15627 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15628 test -n "$tmp" && test -d "$tmp" 15629} || 15630{ 15631 tmp=./conf$$-$RANDOM 15632 (umask 077 && mkdir "$tmp") 15633} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 15634 15635# Set up the scripts for CONFIG_FILES section. 15636# No need to generate them if there are no CONFIG_FILES. 15637# This happens for instance with `./config.status config.h'. 15638if test -n "$CONFIG_FILES"; then 15639 15640 15641ac_cr=`echo X | tr X '\015'` 15642# On cygwin, bash can eat \r inside `` if the user requested igncr. 15643# But we know of no other shell where ac_cr would be empty at this 15644# point, so we can use a bashism as a fallback. 15645if test "x$ac_cr" = x; then 15646 eval ac_cr=\$\'\\r\' 15647fi 15648ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15649if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15650 ac_cs_awk_cr='\r' 15651else 15652 ac_cs_awk_cr=$ac_cr 15653fi 15654 15655echo 'BEGIN {' >"$tmp/subs1.awk" && 15656_ACEOF 15657 15658 15659{ 15660 echo "cat >conf$$subs.awk <<_ACEOF" && 15661 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15662 echo "_ACEOF" 15663} >conf$$subs.sh || 15664 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 15665ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 15666ac_delim='%!_!# ' 15667for ac_last_try in false false false false false :; do 15668 . ./conf$$subs.sh || 15669 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 15670 15671 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15672 if test $ac_delim_n = $ac_delim_num; then 15673 break 15674 elif $ac_last_try; then 15675 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 15676 else 15677 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15678 fi 15679done 15680rm -f conf$$subs.sh 15681 15682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15683cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 15684_ACEOF 15685sed -n ' 15686h 15687s/^/S["/; s/!.*/"]=/ 15688p 15689g 15690s/^[^!]*!// 15691:repl 15692t repl 15693s/'"$ac_delim"'$// 15694t delim 15695:nl 15696h 15697s/\(.\{148\}\).*/\1/ 15698t more1 15699s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15700p 15701n 15702b repl 15703:more1 15704s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15705p 15706g 15707s/.\{148\}// 15708t nl 15709:delim 15710h 15711s/\(.\{148\}\).*/\1/ 15712t more2 15713s/["\\]/\\&/g; s/^/"/; s/$/"/ 15714p 15715b 15716:more2 15717s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15718p 15719g 15720s/.\{148\}// 15721t delim 15722' <conf$$subs.awk | sed ' 15723/^[^""]/{ 15724 N 15725 s/\n// 15726} 15727' >>$CONFIG_STATUS || ac_write_fail=1 15728rm -f conf$$subs.awk 15729cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15730_ACAWK 15731cat >>"\$tmp/subs1.awk" <<_ACAWK && 15732 for (key in S) S_is_set[key] = 1 15733 FS = "" 15734 15735} 15736{ 15737 line = $ 0 15738 nfields = split(line, field, "@") 15739 substed = 0 15740 len = length(field[1]) 15741 for (i = 2; i < nfields; i++) { 15742 key = field[i] 15743 keylen = length(key) 15744 if (S_is_set[key]) { 15745 value = S[key] 15746 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15747 len += length(value) + length(field[++i]) 15748 substed = 1 15749 } else 15750 len += 1 + keylen 15751 } 15752 15753 print line 15754} 15755 15756_ACAWK 15757_ACEOF 15758cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15759if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15760 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15761else 15762 cat 15763fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 15764 || as_fn_error "could not setup config files machinery" "$LINENO" 5 15765_ACEOF 15766 15767# VPATH may cause trouble with some makes, so we remove $(srcdir), 15768# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 15769# trailing colons and then remove the whole line if VPATH becomes empty 15770# (actually we leave an empty line to preserve line numbers). 15771if test "x$srcdir" = x.; then 15772 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 15773s/:*\$(srcdir):*/:/ 15774s/:*\${srcdir}:*/:/ 15775s/:*@srcdir@:*/:/ 15776s/^\([^=]*=[ ]*\):*/\1/ 15777s/:*$// 15778s/^[^=]*=[ ]*$// 15779}' 15780fi 15781 15782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15783fi # test -n "$CONFIG_FILES" 15784 15785 15786eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 15787shift 15788for ac_tag 15789do 15790 case $ac_tag in 15791 :[FHLC]) ac_mode=$ac_tag; continue;; 15792 esac 15793 case $ac_mode$ac_tag in 15794 :[FHL]*:*);; 15795 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 15796 :[FH]-) ac_tag=-:-;; 15797 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15798 esac 15799 ac_save_IFS=$IFS 15800 IFS=: 15801 set x $ac_tag 15802 IFS=$ac_save_IFS 15803 shift 15804 ac_file=$1 15805 shift 15806 15807 case $ac_mode in 15808 :L) ac_source=$1;; 15809 :[FH]) 15810 ac_file_inputs= 15811 for ac_f 15812 do 15813 case $ac_f in 15814 -) ac_f="$tmp/stdin";; 15815 *) # Look for the file first in the build tree, then in the source tree 15816 # (if the path is not absolute). The absolute path cannot be DOS-style, 15817 # because $ac_f cannot contain `:'. 15818 test -f "$ac_f" || 15819 case $ac_f in 15820 [\\/$]*) false;; 15821 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15822 esac || 15823 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15824 esac 15825 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15826 as_fn_append ac_file_inputs " '$ac_f'" 15827 done 15828 15829 # Let's still pretend it is `configure' which instantiates (i.e., don't 15830 # use $as_me), people would be surprised to read: 15831 # /* config.h. Generated by config.status. */ 15832 configure_input='Generated from '` 15833 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15834 `' by configure.' 15835 if test x"$ac_file" != x-; then 15836 configure_input="$ac_file. $configure_input" 15837 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15838$as_echo "$as_me: creating $ac_file" >&6;} 15839 fi 15840 # Neutralize special characters interpreted by sed in replacement strings. 15841 case $configure_input in #( 15842 *\&* | *\|* | *\\* ) 15843 ac_sed_conf_input=`$as_echo "$configure_input" | 15844 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15845 *) ac_sed_conf_input=$configure_input;; 15846 esac 15847 15848 case $ac_tag in 15849 *:-:* | *:-) cat >"$tmp/stdin" \ 15850 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 15851 esac 15852 ;; 15853 esac 15854 15855 ac_dir=`$as_dirname -- "$ac_file" || 15856$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15857 X"$ac_file" : 'X\(//\)[^/]' \| \ 15858 X"$ac_file" : 'X\(//\)$' \| \ 15859 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15860$as_echo X"$ac_file" | 15861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15862 s//\1/ 15863 q 15864 } 15865 /^X\(\/\/\)[^/].*/{ 15866 s//\1/ 15867 q 15868 } 15869 /^X\(\/\/\)$/{ 15870 s//\1/ 15871 q 15872 } 15873 /^X\(\/\).*/{ 15874 s//\1/ 15875 q 15876 } 15877 s/.*/./; q'` 15878 as_dir="$ac_dir"; as_fn_mkdir_p 15879 ac_builddir=. 15880 15881case "$ac_dir" in 15882.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15883*) 15884 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15885 # A ".." for each directory in $ac_dir_suffix. 15886 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15887 case $ac_top_builddir_sub in 15888 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15889 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15890 esac ;; 15891esac 15892ac_abs_top_builddir=$ac_pwd 15893ac_abs_builddir=$ac_pwd$ac_dir_suffix 15894# for backward compatibility: 15895ac_top_builddir=$ac_top_build_prefix 15896 15897case $srcdir in 15898 .) # We are building in place. 15899 ac_srcdir=. 15900 ac_top_srcdir=$ac_top_builddir_sub 15901 ac_abs_top_srcdir=$ac_pwd ;; 15902 [\\/]* | ?:[\\/]* ) # Absolute name. 15903 ac_srcdir=$srcdir$ac_dir_suffix; 15904 ac_top_srcdir=$srcdir 15905 ac_abs_top_srcdir=$srcdir ;; 15906 *) # Relative name. 15907 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15908 ac_top_srcdir=$ac_top_build_prefix$srcdir 15909 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15910esac 15911ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15912 15913 15914 case $ac_mode in 15915 :F) 15916 # 15917 # CONFIG_FILE 15918 # 15919 15920 case $INSTALL in 15921 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15922 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15923 esac 15924 ac_MKDIR_P=$MKDIR_P 15925 case $MKDIR_P in 15926 [\\/$]* | ?:[\\/]* ) ;; 15927 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15928 esac 15929_ACEOF 15930 15931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15932# If the template does not know about datarootdir, expand it. 15933# FIXME: This hack should be removed a few years after 2.60. 15934ac_datarootdir_hack=; ac_datarootdir_seen= 15935ac_sed_dataroot=' 15936/datarootdir/ { 15937 p 15938 q 15939} 15940/@datadir@/p 15941/@docdir@/p 15942/@infodir@/p 15943/@localedir@/p 15944/@mandir@/p' 15945case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15946*datarootdir*) ac_datarootdir_seen=yes;; 15947*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15949$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15950_ACEOF 15951cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15952 ac_datarootdir_hack=' 15953 s&@datadir@&$datadir&g 15954 s&@docdir@&$docdir&g 15955 s&@infodir@&$infodir&g 15956 s&@localedir@&$localedir&g 15957 s&@mandir@&$mandir&g 15958 s&\\\${datarootdir}&$datarootdir&g' ;; 15959esac 15960_ACEOF 15961 15962# Neutralize VPATH when `$srcdir' = `.'. 15963# Shell code in configure.ac might set extrasub. 15964# FIXME: do we really want to maintain this feature? 15965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15966ac_sed_extra="$ac_vpsub 15967$extrasub 15968_ACEOF 15969cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15970:t 15971/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15972s|@configure_input@|$ac_sed_conf_input|;t t 15973s&@top_builddir@&$ac_top_builddir_sub&;t t 15974s&@top_build_prefix@&$ac_top_build_prefix&;t t 15975s&@srcdir@&$ac_srcdir&;t t 15976s&@abs_srcdir@&$ac_abs_srcdir&;t t 15977s&@top_srcdir@&$ac_top_srcdir&;t t 15978s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15979s&@builddir@&$ac_builddir&;t t 15980s&@abs_builddir@&$ac_abs_builddir&;t t 15981s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15982s&@INSTALL@&$ac_INSTALL&;t t 15983s&@MKDIR_P@&$ac_MKDIR_P&;t t 15984$ac_datarootdir_hack 15985" 15986eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 15987 || as_fn_error "could not create $ac_file" "$LINENO" 5 15988 15989test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15990 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 15991 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 15992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15993which seems to be undefined. Please make sure it is defined." >&5 15994$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15995which seems to be undefined. Please make sure it is defined." >&2;} 15996 15997 rm -f "$tmp/stdin" 15998 case $ac_file in 15999 -) cat "$tmp/out" && rm -f "$tmp/out";; 16000 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 16001 esac \ 16002 || as_fn_error "could not create $ac_file" "$LINENO" 5 16003 ;; 16004 16005 16006 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16007$as_echo "$as_me: executing $ac_file commands" >&6;} 16008 ;; 16009 esac 16010 16011 16012 case $ac_file$ac_mode in 16013 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16014 # Autoconf 2.62 quotes --file arguments for eval, but not when files 16015 # are listed without --file. Let's play safe and only enable the eval 16016 # if we detect the quoting. 16017 case $CONFIG_FILES in 16018 *\'*) eval set x "$CONFIG_FILES" ;; 16019 *) set x $CONFIG_FILES ;; 16020 esac 16021 shift 16022 for mf 16023 do 16024 # Strip MF so we end up with the name of the file. 16025 mf=`echo "$mf" | sed -e 's/:.*$//'` 16026 # Check whether this is an Automake generated Makefile or not. 16027 # We used to match only the files named `Makefile.in', but 16028 # some people rename them; so instead we look at the file content. 16029 # Grep'ing the first line is not enough: some people post-process 16030 # each Makefile.in and add a new line on top of each file to say so. 16031 # Grep'ing the whole file is not good either: AIX grep has a line 16032 # limit of 2048, but all sed's we know have understand at least 4000. 16033 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16034 dirpart=`$as_dirname -- "$mf" || 16035$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16036 X"$mf" : 'X\(//\)[^/]' \| \ 16037 X"$mf" : 'X\(//\)$' \| \ 16038 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16039$as_echo X"$mf" | 16040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16041 s//\1/ 16042 q 16043 } 16044 /^X\(\/\/\)[^/].*/{ 16045 s//\1/ 16046 q 16047 } 16048 /^X\(\/\/\)$/{ 16049 s//\1/ 16050 q 16051 } 16052 /^X\(\/\).*/{ 16053 s//\1/ 16054 q 16055 } 16056 s/.*/./; q'` 16057 else 16058 continue 16059 fi 16060 # Extract the definition of DEPDIR, am__include, and am__quote 16061 # from the Makefile without running `make'. 16062 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16063 test -z "$DEPDIR" && continue 16064 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16065 test -z "am__include" && continue 16066 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16067 # When using ansi2knr, U may be empty or an underscore; expand it 16068 U=`sed -n 's/^U = //p' < "$mf"` 16069 # Find all dependency output files, they are included files with 16070 # $(DEPDIR) in their names. We invoke sed twice because it is the 16071 # simplest approach to changing $(DEPDIR) to its actual value in the 16072 # expansion. 16073 for file in `sed -n " 16074 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16075 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 16076 # Make sure the directory exists. 16077 test -f "$dirpart/$file" && continue 16078 fdir=`$as_dirname -- "$file" || 16079$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16080 X"$file" : 'X\(//\)[^/]' \| \ 16081 X"$file" : 'X\(//\)$' \| \ 16082 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16083$as_echo X"$file" | 16084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16085 s//\1/ 16086 q 16087 } 16088 /^X\(\/\/\)[^/].*/{ 16089 s//\1/ 16090 q 16091 } 16092 /^X\(\/\/\)$/{ 16093 s//\1/ 16094 q 16095 } 16096 /^X\(\/\).*/{ 16097 s//\1/ 16098 q 16099 } 16100 s/.*/./; q'` 16101 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16102 # echo "creating $dirpart/$file" 16103 echo '# dummy' > "$dirpart/$file" 16104 done 16105 done 16106} 16107 ;; 16108 "default-1":C) 16109# Only add multilib support code if we just rebuilt the top-level 16110# Makefile. 16111case " $CONFIG_FILES " in 16112 *" Makefile "*) 16113 ac_file=Makefile . ${multi_basedir}/config-ml.in 16114 ;; 16115esac ;; 16116 "libtool":C) 16117 16118 # See if we are running on zsh, and set the options which allow our 16119 # commands through without removal of \ escapes. 16120 if test -n "${ZSH_VERSION+set}" ; then 16121 setopt NO_GLOB_SUBST 16122 fi 16123 16124 cfgfile="${ofile}T" 16125 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16126 $RM "$cfgfile" 16127 16128 cat <<_LT_EOF >> "$cfgfile" 16129#! $SHELL 16130 16131# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16132# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16133# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16134# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16135# 16136# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16137# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 16138# Written by Gordon Matzigkeit, 1996 16139# 16140# This file is part of GNU Libtool. 16141# 16142# GNU Libtool is free software; you can redistribute it and/or 16143# modify it under the terms of the GNU General Public License as 16144# published by the Free Software Foundation; either version 2 of 16145# the License, or (at your option) any later version. 16146# 16147# As a special exception to the GNU General Public License, 16148# if you distribute this file as part of a program or library that 16149# is built using GNU Libtool, you may include this file under the 16150# same distribution terms that you use for the rest of that program. 16151# 16152# GNU Libtool is distributed in the hope that it will be useful, 16153# but WITHOUT ANY WARRANTY; without even the implied warranty of 16154# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16155# GNU General Public License for more details. 16156# 16157# You should have received a copy of the GNU General Public License 16158# along with GNU Libtool; see the file COPYING. If not, a copy 16159# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 16160# obtained by writing to the Free Software Foundation, Inc., 16161# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16162 16163 16164# The names of the tagged configurations supported by this script. 16165available_tags="CXX " 16166 16167# ### BEGIN LIBTOOL CONFIG 16168 16169# Which release of libtool.m4 was used? 16170macro_version=$macro_version 16171macro_revision=$macro_revision 16172 16173# Whether or not to build shared libraries. 16174build_libtool_libs=$enable_shared 16175 16176# Whether or not to build static libraries. 16177build_old_libs=$enable_static 16178 16179# What type of objects to build. 16180pic_mode=$pic_mode 16181 16182# Whether or not to optimize for fast installation. 16183fast_install=$enable_fast_install 16184 16185# Shell to use when invoking shell scripts. 16186SHELL=$lt_SHELL 16187 16188# An echo program that protects backslashes. 16189ECHO=$lt_ECHO 16190 16191# The host system. 16192host_alias=$host_alias 16193host=$host 16194host_os=$host_os 16195 16196# The build system. 16197build_alias=$build_alias 16198build=$build 16199build_os=$build_os 16200 16201# A sed program that does not truncate output. 16202SED=$lt_SED 16203 16204# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16205Xsed="\$SED -e 1s/^X//" 16206 16207# A grep program that handles long lines. 16208GREP=$lt_GREP 16209 16210# An ERE matcher. 16211EGREP=$lt_EGREP 16212 16213# A literal string matcher. 16214FGREP=$lt_FGREP 16215 16216# A BSD- or MS-compatible name lister. 16217NM=$lt_NM 16218 16219# Whether we need soft or hard links. 16220LN_S=$lt_LN_S 16221 16222# What is the maximum length of a command? 16223max_cmd_len=$max_cmd_len 16224 16225# Object file suffix (normally "o"). 16226objext=$ac_objext 16227 16228# Executable file suffix (normally ""). 16229exeext=$exeext 16230 16231# whether the shell understands "unset". 16232lt_unset=$lt_unset 16233 16234# turn spaces into newlines. 16235SP2NL=$lt_lt_SP2NL 16236 16237# turn newlines into spaces. 16238NL2SP=$lt_lt_NL2SP 16239 16240# An object symbol dumper. 16241OBJDUMP=$lt_OBJDUMP 16242 16243# Method to check whether dependent libraries are shared objects. 16244deplibs_check_method=$lt_deplibs_check_method 16245 16246# Command to use when deplibs_check_method == "file_magic". 16247file_magic_cmd=$lt_file_magic_cmd 16248 16249# The archiver. 16250AR=$lt_AR 16251AR_FLAGS=$lt_AR_FLAGS 16252 16253# A symbol stripping program. 16254STRIP=$lt_STRIP 16255 16256# Commands used to install an old-style archive. 16257RANLIB=$lt_RANLIB 16258old_postinstall_cmds=$lt_old_postinstall_cmds 16259old_postuninstall_cmds=$lt_old_postuninstall_cmds 16260 16261# Whether to use a lock for old archive extraction. 16262lock_old_archive_extraction=$lock_old_archive_extraction 16263 16264# A C compiler. 16265LTCC=$lt_CC 16266 16267# LTCC compiler flags. 16268LTCFLAGS=$lt_CFLAGS 16269 16270# Take the output of nm and produce a listing of raw symbols and C names. 16271global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16272 16273# Transform the output of nm in a proper C declaration. 16274global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16275 16276# Transform the output of nm in a C name address pair. 16277global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16278 16279# Transform the output of nm in a C name address pair when lib prefix is needed. 16280global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16281 16282# The name of the directory that contains temporary libtool files. 16283objdir=$objdir 16284 16285# Used to examine libraries when file_magic_cmd begins with "file". 16286MAGIC_CMD=$MAGIC_CMD 16287 16288# Must we lock files when doing compilation? 16289need_locks=$lt_need_locks 16290 16291# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16292DSYMUTIL=$lt_DSYMUTIL 16293 16294# Tool to change global to local symbols on Mac OS X. 16295NMEDIT=$lt_NMEDIT 16296 16297# Tool to manipulate fat objects and archives on Mac OS X. 16298LIPO=$lt_LIPO 16299 16300# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16301OTOOL=$lt_OTOOL 16302 16303# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16304OTOOL64=$lt_OTOOL64 16305 16306# Old archive suffix (normally "a"). 16307libext=$libext 16308 16309# Shared library suffix (normally ".so"). 16310shrext_cmds=$lt_shrext_cmds 16311 16312# The commands to extract the exported symbol list from a shared archive. 16313extract_expsyms_cmds=$lt_extract_expsyms_cmds 16314 16315# Variables whose values should be saved in libtool wrapper scripts and 16316# restored at link time. 16317variables_saved_for_relink=$lt_variables_saved_for_relink 16318 16319# Do we need the "lib" prefix for modules? 16320need_lib_prefix=$need_lib_prefix 16321 16322# Do we need a version for libraries? 16323need_version=$need_version 16324 16325# Library versioning type. 16326version_type=$version_type 16327 16328# Shared library runtime path variable. 16329runpath_var=$runpath_var 16330 16331# Shared library path variable. 16332shlibpath_var=$shlibpath_var 16333 16334# Is shlibpath searched before the hard-coded library search path? 16335shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16336 16337# Format of library name prefix. 16338libname_spec=$lt_libname_spec 16339 16340# List of archive names. First name is the real one, the rest are links. 16341# The last name is the one that the linker finds with -lNAME 16342library_names_spec=$lt_library_names_spec 16343 16344# The coded name of the library, if different from the real name. 16345soname_spec=$lt_soname_spec 16346 16347# Permission mode override for installation of shared libraries. 16348install_override_mode=$lt_install_override_mode 16349 16350# Command to use after installation of a shared archive. 16351postinstall_cmds=$lt_postinstall_cmds 16352 16353# Command to use after uninstallation of a shared archive. 16354postuninstall_cmds=$lt_postuninstall_cmds 16355 16356# Commands used to finish a libtool library installation in a directory. 16357finish_cmds=$lt_finish_cmds 16358 16359# As "finish_cmds", except a single script fragment to be evaled but 16360# not shown. 16361finish_eval=$lt_finish_eval 16362 16363# Whether we should hardcode library paths into libraries. 16364hardcode_into_libs=$hardcode_into_libs 16365 16366# Compile-time system search path for libraries. 16367sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16368 16369# Run-time system search path for libraries. 16370sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16371 16372# Whether dlopen is supported. 16373dlopen_support=$enable_dlopen 16374 16375# Whether dlopen of programs is supported. 16376dlopen_self=$enable_dlopen_self 16377 16378# Whether dlopen of statically linked programs is supported. 16379dlopen_self_static=$enable_dlopen_self_static 16380 16381# Commands to strip libraries. 16382old_striplib=$lt_old_striplib 16383striplib=$lt_striplib 16384 16385 16386# The linker used to build libraries. 16387LD=$lt_LD 16388 16389# How to create reloadable object files. 16390reload_flag=$lt_reload_flag 16391reload_cmds=$lt_reload_cmds 16392 16393# Commands used to build an old-style archive. 16394old_archive_cmds=$lt_old_archive_cmds 16395 16396# A language specific compiler. 16397CC=$lt_compiler 16398 16399# Is the compiler the GNU compiler? 16400with_gcc=$GCC 16401 16402# Compiler flag to turn off builtin functions. 16403no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16404 16405# How to pass a linker flag through the compiler. 16406wl=$lt_lt_prog_compiler_wl 16407 16408# Additional compiler flags for building library objects. 16409pic_flag=$lt_lt_prog_compiler_pic 16410 16411# Compiler flag to prevent dynamic linking. 16412link_static_flag=$lt_lt_prog_compiler_static 16413 16414# Does compiler simultaneously support -c and -o options? 16415compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16416 16417# Whether or not to add -lc for building shared libraries. 16418build_libtool_need_lc=$archive_cmds_need_lc 16419 16420# Whether or not to disallow shared libs when runtime libs are static. 16421allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16422 16423# Compiler flag to allow reflexive dlopens. 16424export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16425 16426# Compiler flag to generate shared objects directly from archives. 16427whole_archive_flag_spec=$lt_whole_archive_flag_spec 16428 16429# Whether the compiler copes with passing no objects directly. 16430compiler_needs_object=$lt_compiler_needs_object 16431 16432# Create an old-style archive from a shared archive. 16433old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16434 16435# Create a temporary old-style archive to link instead of a shared archive. 16436old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16437 16438# Commands used to build a shared archive. 16439archive_cmds=$lt_archive_cmds 16440archive_expsym_cmds=$lt_archive_expsym_cmds 16441 16442# Commands used to build a loadable module if different from building 16443# a shared archive. 16444module_cmds=$lt_module_cmds 16445module_expsym_cmds=$lt_module_expsym_cmds 16446 16447# Whether we are building with GNU ld or not. 16448with_gnu_ld=$lt_with_gnu_ld 16449 16450# Flag that allows shared libraries with undefined symbols to be built. 16451allow_undefined_flag=$lt_allow_undefined_flag 16452 16453# Flag that enforces no undefined symbols. 16454no_undefined_flag=$lt_no_undefined_flag 16455 16456# Flag to hardcode \$libdir into a binary during linking. 16457# This must work even if \$libdir does not exist 16458hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16459 16460# If ld is used when linking, flag to hardcode \$libdir into a binary 16461# during linking. This must work even if \$libdir does not exist. 16462hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 16463 16464# Whether we need a single "-rpath" flag with a separated argument. 16465hardcode_libdir_separator=$lt_hardcode_libdir_separator 16466 16467# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16468# DIR into the resulting binary. 16469hardcode_direct=$hardcode_direct 16470 16471# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16472# DIR into the resulting binary and the resulting library dependency is 16473# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16474# library is relocated. 16475hardcode_direct_absolute=$hardcode_direct_absolute 16476 16477# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16478# into the resulting binary. 16479hardcode_minus_L=$hardcode_minus_L 16480 16481# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16482# into the resulting binary. 16483hardcode_shlibpath_var=$hardcode_shlibpath_var 16484 16485# Set to "yes" if building a shared library automatically hardcodes DIR 16486# into the library and all subsequent libraries and executables linked 16487# against it. 16488hardcode_automatic=$hardcode_automatic 16489 16490# Set to yes if linker adds runtime paths of dependent libraries 16491# to runtime path list. 16492inherit_rpath=$inherit_rpath 16493 16494# Whether libtool must link a program against all its dependency libraries. 16495link_all_deplibs=$link_all_deplibs 16496 16497# Fix the shell variable \$srcfile for the compiler. 16498fix_srcfile_path=$lt_fix_srcfile_path 16499 16500# Set to "yes" if exported symbols are required. 16501always_export_symbols=$always_export_symbols 16502 16503# The commands to list exported symbols. 16504export_symbols_cmds=$lt_export_symbols_cmds 16505 16506# Symbols that should not be listed in the preloaded symbols. 16507exclude_expsyms=$lt_exclude_expsyms 16508 16509# Symbols that must always be exported. 16510include_expsyms=$lt_include_expsyms 16511 16512# Commands necessary for linking programs (against libraries) with templates. 16513prelink_cmds=$lt_prelink_cmds 16514 16515# Specify filename containing input files. 16516file_list_spec=$lt_file_list_spec 16517 16518# How to hardcode a shared library path into an executable. 16519hardcode_action=$hardcode_action 16520 16521# The directories searched by this compiler when creating a shared library. 16522compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 16523 16524# Dependencies to place before and after the objects being linked to 16525# create a shared library. 16526predep_objects=$lt_predep_objects 16527postdep_objects=$lt_postdep_objects 16528predeps=$lt_predeps 16529postdeps=$lt_postdeps 16530 16531# The library search path used internally by the compiler when linking 16532# a shared library. 16533compiler_lib_search_path=$lt_compiler_lib_search_path 16534 16535# ### END LIBTOOL CONFIG 16536 16537_LT_EOF 16538 16539 case $host_os in 16540 aix3*) 16541 cat <<\_LT_EOF >> "$cfgfile" 16542# AIX sometimes has problems with the GCC collect2 program. For some 16543# reason, if we set the COLLECT_NAMES environment variable, the problems 16544# vanish in a puff of smoke. 16545if test "X${COLLECT_NAMES+set}" != Xset; then 16546 COLLECT_NAMES= 16547 export COLLECT_NAMES 16548fi 16549_LT_EOF 16550 ;; 16551 esac 16552 16553 16554ltmain="$ac_aux_dir/ltmain.sh" 16555 16556 16557 # We use sed instead of cat because bash on DJGPP gets confused if 16558 # if finds mixed CR/LF and LF-only lines. Since sed operates in 16559 # text mode, it properly converts lines to CR/LF. This bash problem 16560 # is reportedly fixed, but why not run on old versions too? 16561 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 16562 || (rm -f "$cfgfile"; exit 1) 16563 16564 case $xsi_shell in 16565 yes) 16566 cat << \_LT_EOF >> "$cfgfile" 16567 16568# func_dirname file append nondir_replacement 16569# Compute the dirname of FILE. If nonempty, add APPEND to the result, 16570# otherwise set result to NONDIR_REPLACEMENT. 16571func_dirname () 16572{ 16573 case ${1} in 16574 */*) func_dirname_result="${1%/*}${2}" ;; 16575 * ) func_dirname_result="${3}" ;; 16576 esac 16577} 16578 16579# func_basename file 16580func_basename () 16581{ 16582 func_basename_result="${1##*/}" 16583} 16584 16585# func_dirname_and_basename file append nondir_replacement 16586# perform func_basename and func_dirname in a single function 16587# call: 16588# dirname: Compute the dirname of FILE. If nonempty, 16589# add APPEND to the result, otherwise set result 16590# to NONDIR_REPLACEMENT. 16591# value returned in "$func_dirname_result" 16592# basename: Compute filename of FILE. 16593# value retuned in "$func_basename_result" 16594# Implementation must be kept synchronized with func_dirname 16595# and func_basename. For efficiency, we do not delegate to 16596# those functions but instead duplicate the functionality here. 16597func_dirname_and_basename () 16598{ 16599 case ${1} in 16600 */*) func_dirname_result="${1%/*}${2}" ;; 16601 * ) func_dirname_result="${3}" ;; 16602 esac 16603 func_basename_result="${1##*/}" 16604} 16605 16606# func_stripname prefix suffix name 16607# strip PREFIX and SUFFIX off of NAME. 16608# PREFIX and SUFFIX must not contain globbing or regex special 16609# characters, hashes, percent signs, but SUFFIX may contain a leading 16610# dot (in which case that matches only a dot). 16611func_stripname () 16612{ 16613 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 16614 # positional parameters, so assign one to ordinary parameter first. 16615 func_stripname_result=${3} 16616 func_stripname_result=${func_stripname_result#"${1}"} 16617 func_stripname_result=${func_stripname_result%"${2}"} 16618} 16619 16620# func_opt_split 16621func_opt_split () 16622{ 16623 func_opt_split_opt=${1%%=*} 16624 func_opt_split_arg=${1#*=} 16625} 16626 16627# func_lo2o object 16628func_lo2o () 16629{ 16630 case ${1} in 16631 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 16632 *) func_lo2o_result=${1} ;; 16633 esac 16634} 16635 16636# func_xform libobj-or-source 16637func_xform () 16638{ 16639 func_xform_result=${1%.*}.lo 16640} 16641 16642# func_arith arithmetic-term... 16643func_arith () 16644{ 16645 func_arith_result=$(( $* )) 16646} 16647 16648# func_len string 16649# STRING may not start with a hyphen. 16650func_len () 16651{ 16652 func_len_result=${#1} 16653} 16654 16655_LT_EOF 16656 ;; 16657 *) # Bourne compatible functions. 16658 cat << \_LT_EOF >> "$cfgfile" 16659 16660# func_dirname file append nondir_replacement 16661# Compute the dirname of FILE. If nonempty, add APPEND to the result, 16662# otherwise set result to NONDIR_REPLACEMENT. 16663func_dirname () 16664{ 16665 # Extract subdirectory from the argument. 16666 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 16667 if test "X$func_dirname_result" = "X${1}"; then 16668 func_dirname_result="${3}" 16669 else 16670 func_dirname_result="$func_dirname_result${2}" 16671 fi 16672} 16673 16674# func_basename file 16675func_basename () 16676{ 16677 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 16678} 16679 16680 16681# func_stripname prefix suffix name 16682# strip PREFIX and SUFFIX off of NAME. 16683# PREFIX and SUFFIX must not contain globbing or regex special 16684# characters, hashes, percent signs, but SUFFIX may contain a leading 16685# dot (in which case that matches only a dot). 16686# func_strip_suffix prefix name 16687func_stripname () 16688{ 16689 case ${2} in 16690 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 16691 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 16692 esac 16693} 16694 16695# sed scripts: 16696my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 16697my_sed_long_arg='1s/^-[^=]*=//' 16698 16699# func_opt_split 16700func_opt_split () 16701{ 16702 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 16703 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 16704} 16705 16706# func_lo2o object 16707func_lo2o () 16708{ 16709 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 16710} 16711 16712# func_xform libobj-or-source 16713func_xform () 16714{ 16715 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 16716} 16717 16718# func_arith arithmetic-term... 16719func_arith () 16720{ 16721 func_arith_result=`expr "$@"` 16722} 16723 16724# func_len string 16725# STRING may not start with a hyphen. 16726func_len () 16727{ 16728 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 16729} 16730 16731_LT_EOF 16732esac 16733 16734case $lt_shell_append in 16735 yes) 16736 cat << \_LT_EOF >> "$cfgfile" 16737 16738# func_append var value 16739# Append VALUE to the end of shell variable VAR. 16740func_append () 16741{ 16742 eval "$1+=\$2" 16743} 16744_LT_EOF 16745 ;; 16746 *) 16747 cat << \_LT_EOF >> "$cfgfile" 16748 16749# func_append var value 16750# Append VALUE to the end of shell variable VAR. 16751func_append () 16752{ 16753 eval "$1=\$$1\$2" 16754} 16755 16756_LT_EOF 16757 ;; 16758 esac 16759 16760 16761 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 16762 || (rm -f "$cfgfile"; exit 1) 16763 16764 mv -f "$cfgfile" "$ofile" || 16765 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16766 chmod +x "$ofile" 16767 16768 16769 cat <<_LT_EOF >> "$ofile" 16770 16771# ### BEGIN LIBTOOL TAG CONFIG: CXX 16772 16773# The linker used to build libraries. 16774LD=$lt_LD_CXX 16775 16776# How to create reloadable object files. 16777reload_flag=$lt_reload_flag_CXX 16778reload_cmds=$lt_reload_cmds_CXX 16779 16780# Commands used to build an old-style archive. 16781old_archive_cmds=$lt_old_archive_cmds_CXX 16782 16783# A language specific compiler. 16784CC=$lt_compiler_CXX 16785 16786# Is the compiler the GNU compiler? 16787with_gcc=$GCC_CXX 16788 16789# Compiler flag to turn off builtin functions. 16790no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 16791 16792# How to pass a linker flag through the compiler. 16793wl=$lt_lt_prog_compiler_wl_CXX 16794 16795# Additional compiler flags for building library objects. 16796pic_flag=$lt_lt_prog_compiler_pic_CXX 16797 16798# Compiler flag to prevent dynamic linking. 16799link_static_flag=$lt_lt_prog_compiler_static_CXX 16800 16801# Does compiler simultaneously support -c and -o options? 16802compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 16803 16804# Whether or not to add -lc for building shared libraries. 16805build_libtool_need_lc=$archive_cmds_need_lc_CXX 16806 16807# Whether or not to disallow shared libs when runtime libs are static. 16808allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 16809 16810# Compiler flag to allow reflexive dlopens. 16811export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 16812 16813# Compiler flag to generate shared objects directly from archives. 16814whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 16815 16816# Whether the compiler copes with passing no objects directly. 16817compiler_needs_object=$lt_compiler_needs_object_CXX 16818 16819# Create an old-style archive from a shared archive. 16820old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 16821 16822# Create a temporary old-style archive to link instead of a shared archive. 16823old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 16824 16825# Commands used to build a shared archive. 16826archive_cmds=$lt_archive_cmds_CXX 16827archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 16828 16829# Commands used to build a loadable module if different from building 16830# a shared archive. 16831module_cmds=$lt_module_cmds_CXX 16832module_expsym_cmds=$lt_module_expsym_cmds_CXX 16833 16834# Whether we are building with GNU ld or not. 16835with_gnu_ld=$lt_with_gnu_ld_CXX 16836 16837# Flag that allows shared libraries with undefined symbols to be built. 16838allow_undefined_flag=$lt_allow_undefined_flag_CXX 16839 16840# Flag that enforces no undefined symbols. 16841no_undefined_flag=$lt_no_undefined_flag_CXX 16842 16843# Flag to hardcode \$libdir into a binary during linking. 16844# This must work even if \$libdir does not exist 16845hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 16846 16847# If ld is used when linking, flag to hardcode \$libdir into a binary 16848# during linking. This must work even if \$libdir does not exist. 16849hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 16850 16851# Whether we need a single "-rpath" flag with a separated argument. 16852hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 16853 16854# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16855# DIR into the resulting binary. 16856hardcode_direct=$hardcode_direct_CXX 16857 16858# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16859# DIR into the resulting binary and the resulting library dependency is 16860# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16861# library is relocated. 16862hardcode_direct_absolute=$hardcode_direct_absolute_CXX 16863 16864# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16865# into the resulting binary. 16866hardcode_minus_L=$hardcode_minus_L_CXX 16867 16868# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16869# into the resulting binary. 16870hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 16871 16872# Set to "yes" if building a shared library automatically hardcodes DIR 16873# into the library and all subsequent libraries and executables linked 16874# against it. 16875hardcode_automatic=$hardcode_automatic_CXX 16876 16877# Set to yes if linker adds runtime paths of dependent libraries 16878# to runtime path list. 16879inherit_rpath=$inherit_rpath_CXX 16880 16881# Whether libtool must link a program against all its dependency libraries. 16882link_all_deplibs=$link_all_deplibs_CXX 16883 16884# Fix the shell variable \$srcfile for the compiler. 16885fix_srcfile_path=$lt_fix_srcfile_path_CXX 16886 16887# Set to "yes" if exported symbols are required. 16888always_export_symbols=$always_export_symbols_CXX 16889 16890# The commands to list exported symbols. 16891export_symbols_cmds=$lt_export_symbols_cmds_CXX 16892 16893# Symbols that should not be listed in the preloaded symbols. 16894exclude_expsyms=$lt_exclude_expsyms_CXX 16895 16896# Symbols that must always be exported. 16897include_expsyms=$lt_include_expsyms_CXX 16898 16899# Commands necessary for linking programs (against libraries) with templates. 16900prelink_cmds=$lt_prelink_cmds_CXX 16901 16902# Specify filename containing input files. 16903file_list_spec=$lt_file_list_spec_CXX 16904 16905# How to hardcode a shared library path into an executable. 16906hardcode_action=$hardcode_action_CXX 16907 16908# The directories searched by this compiler when creating a shared library. 16909compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 16910 16911# Dependencies to place before and after the objects being linked to 16912# create a shared library. 16913predep_objects=$lt_predep_objects_CXX 16914postdep_objects=$lt_postdep_objects_CXX 16915predeps=$lt_predeps_CXX 16916postdeps=$lt_postdeps_CXX 16917 16918# The library search path used internally by the compiler when linking 16919# a shared library. 16920compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 16921 16922# ### END LIBTOOL TAG CONFIG: CXX 16923_LT_EOF 16924 16925 ;; 16926 16927 esac 16928done # for ac_tag 16929 16930 16931as_fn_exit 0 16932_ACEOF 16933ac_clean_files=$ac_clean_files_save 16934 16935test $ac_write_fail = 0 || 16936 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 16937 16938 16939# configure is writing to config.log, and then calls config.status. 16940# config.status does its own redirection, appending to config.log. 16941# Unfortunately, on DOS this fails, as config.log is still kept open 16942# by configure, so config.status won't be able to write to it; its 16943# output is simply discarded. So we exec the FD to /dev/null, 16944# effectively closing config.log, so it can be properly (re)opened and 16945# appended to by config.status. When coming back to configure, we 16946# need to make the FD available again. 16947if test "$no_create" != yes; then 16948 ac_cs_success=: 16949 ac_config_status_args= 16950 test "$silent" = yes && 16951 ac_config_status_args="$ac_config_status_args --quiet" 16952 exec 5>/dev/null 16953 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16954 exec 5>>config.log 16955 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16956 # would make configure fail if this is the last instruction. 16957 $ac_cs_success || as_fn_exit $? 16958fi 16959 16960# 16961# CONFIG_SUBDIRS section. 16962# 16963if test "$no_recursion" != yes; then 16964 16965 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 16966 # so they do not pile up. 16967 ac_sub_configure_args= 16968 ac_prev= 16969 eval "set x $ac_configure_args" 16970 shift 16971 for ac_arg 16972 do 16973 if test -n "$ac_prev"; then 16974 ac_prev= 16975 continue 16976 fi 16977 case $ac_arg in 16978 -cache-file | --cache-file | --cache-fil | --cache-fi \ 16979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 16980 ac_prev=cache_file ;; 16981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 16982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 16983 | --c=*) 16984 ;; 16985 --config-cache | -C) 16986 ;; 16987 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 16988 ac_prev=srcdir ;; 16989 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 16990 ;; 16991 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 16992 ac_prev=prefix ;; 16993 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 16994 ;; 16995 --disable-option-checking) 16996 ;; 16997 *) 16998 case $ac_arg in 16999 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 17000 esac 17001 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 17002 esac 17003 done 17004 17005 # Always prepend --prefix to ensure using the same prefix 17006 # in subdir configurations. 17007 ac_arg="--prefix=$prefix" 17008 case $ac_arg in 17009 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 17010 esac 17011 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 17012 17013 # Pass --silent 17014 if test "$silent" = yes; then 17015 ac_sub_configure_args="--silent $ac_sub_configure_args" 17016 fi 17017 17018 # Always prepend --disable-option-checking to silence warnings, since 17019 # different subdirs can have different --enable and --with options. 17020 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 17021 17022 ac_popdir=`pwd` 17023 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 17024 17025 # Do not complain, so a configure script can configure whichever 17026 # parts of a large source tree are present. 17027 test -d "$srcdir/$ac_dir" || continue 17028 17029 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 17030 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 17031 $as_echo "$ac_msg" >&6 17032 as_dir="$ac_dir"; as_fn_mkdir_p 17033 ac_builddir=. 17034 17035case "$ac_dir" in 17036.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17037*) 17038 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17039 # A ".." for each directory in $ac_dir_suffix. 17040 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17041 case $ac_top_builddir_sub in 17042 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17043 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17044 esac ;; 17045esac 17046ac_abs_top_builddir=$ac_pwd 17047ac_abs_builddir=$ac_pwd$ac_dir_suffix 17048# for backward compatibility: 17049ac_top_builddir=$ac_top_build_prefix 17050 17051case $srcdir in 17052 .) # We are building in place. 17053 ac_srcdir=. 17054 ac_top_srcdir=$ac_top_builddir_sub 17055 ac_abs_top_srcdir=$ac_pwd ;; 17056 [\\/]* | ?:[\\/]* ) # Absolute name. 17057 ac_srcdir=$srcdir$ac_dir_suffix; 17058 ac_top_srcdir=$srcdir 17059 ac_abs_top_srcdir=$srcdir ;; 17060 *) # Relative name. 17061 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17062 ac_top_srcdir=$ac_top_build_prefix$srcdir 17063 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17064esac 17065ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17066 17067 17068 cd "$ac_dir" 17069 17070 # Check for guested configure; otherwise get Cygnus style configure. 17071 if test -f "$ac_srcdir/configure.gnu"; then 17072 ac_sub_configure=$ac_srcdir/configure.gnu 17073 elif test -f "$ac_srcdir/configure"; then 17074 ac_sub_configure=$ac_srcdir/configure 17075 elif test -f "$ac_srcdir/configure.in"; then 17076 # This should be Cygnus configure. 17077 ac_sub_configure=$ac_aux_dir/configure 17078 else 17079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 17080$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 17081 ac_sub_configure= 17082 fi 17083 17084 # The recursion is here. 17085 if test -n "$ac_sub_configure"; then 17086 # Make the cache file name correct relative to the subdirectory. 17087 case $cache_file in 17088 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 17089 *) # Relative name. 17090 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 17091 esac 17092 17093 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 17094$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 17095 # The eval makes quoting arguments work. 17096 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 17097 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 17098 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 17099 fi 17100 17101 cd "$ac_popdir" 17102 done 17103fi 17104if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17106$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17107fi 17108 17109