1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for cosmosmash 1.4.8. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 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. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='cosmosmash' 589PACKAGE_TARNAME='cosmosmash' 590PACKAGE_VERSION='1.4.8' 591PACKAGE_STRING='cosmosmash 1.4.8' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="src/CosmoSmashEngine.h" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='am__EXEEXT_FALSE 633am__EXEEXT_TRUE 634LTLIBOBJS 635LIBOBJS 636HAVE_GETOPT_LONG_FALSE 637HAVE_GETOPT_LONG_TRUE 638FLATZEBRA_LIBS 639FLATZEBRA_CFLAGS 640PKG_CONFIG_LIBDIR 641PKG_CONFIG_PATH 642PKG_CONFIG 643MINVER_FLATZEBRA 644CXXCPP 645am__fastdepCXX_FALSE 646am__fastdepCXX_TRUE 647CXXDEPMODE 648ac_ct_CXX 649CXXFLAGS 650CXX 651CPP 652OTOOL64 653OTOOL 654LIPO 655NMEDIT 656DSYMUTIL 657MANIFEST_TOOL 658RANLIB 659ac_ct_AR 660AR 661DLLTOOL 662OBJDUMP 663LN_S 664NM 665ac_ct_DUMPBIN 666DUMPBIN 667LD 668FGREP 669EGREP 670GREP 671SED 672am__fastdepCC_FALSE 673am__fastdepCC_TRUE 674CCDEPMODE 675am__nodep 676AMDEPBACKSLASH 677AMDEP_FALSE 678AMDEP_TRUE 679am__quote 680am__include 681DEPDIR 682OBJEXT 683EXEEXT 684ac_ct_CC 685CPPFLAGS 686LDFLAGS 687CFLAGS 688CC 689host_os 690host_vendor 691host_cpu 692host 693build_os 694build_vendor 695build_cpu 696build 697LIBTOOL 698COPYRIGHT_YEARS 699PACKAGE_FULL_NAME_EN_CAPS 700PACKAGE_SUMMARY_FR 701PACKAGE_SUMMARY_EN 702PACKAGE_FULL_NAME 703MANUAL_DATE_EN 704AM_BACKSLASH 705AM_DEFAULT_VERBOSITY 706AM_DEFAULT_V 707AM_V 708am__untar 709am__tar 710AMTAR 711am__leading_dot 712SET_MAKE 713AWK 714mkdir_p 715MKDIR_P 716INSTALL_STRIP_PROGRAM 717STRIP 718install_sh 719MAKEINFO 720AUTOHEADER 721AUTOMAKE 722AUTOCONF 723ACLOCAL 724VERSION 725PACKAGE 726CYGPATH_W 727am__isrc 728INSTALL_DATA 729INSTALL_SCRIPT 730INSTALL_PROGRAM 731target_alias 732host_alias 733build_alias 734LIBS 735ECHO_T 736ECHO_N 737ECHO_C 738DEFS 739mandir 740localedir 741libdir 742psdir 743pdfdir 744dvidir 745htmldir 746infodir 747docdir 748oldincludedir 749includedir 750localstatedir 751sharedstatedir 752sysconfdir 753datadir 754datarootdir 755libexecdir 756sbindir 757bindir 758program_transform_name 759prefix 760exec_prefix 761PACKAGE_URL 762PACKAGE_BUGREPORT 763PACKAGE_STRING 764PACKAGE_VERSION 765PACKAGE_TARNAME 766PACKAGE_NAME 767PATH_SEPARATOR 768SHELL' 769ac_subst_files='' 770ac_user_opts=' 771enable_option_checking 772enable_silent_rules 773enable_static 774enable_shared 775with_pic 776enable_fast_install 777enable_dependency_tracking 778with_gnu_ld 779with_sysroot 780enable_libtool_lock 781' 782 ac_precious_vars='build_alias 783host_alias 784target_alias 785CC 786CFLAGS 787LDFLAGS 788LIBS 789CPPFLAGS 790CPP 791CXX 792CXXFLAGS 793CCC 794CXXCPP 795PKG_CONFIG 796PKG_CONFIG_PATH 797PKG_CONFIG_LIBDIR 798FLATZEBRA_CFLAGS 799FLATZEBRA_LIBS' 800 801 802# Initialize some variables set by options. 803ac_init_help= 804ac_init_version=false 805ac_unrecognized_opts= 806ac_unrecognized_sep= 807# The variables have the same names as the options, with 808# dashes changed to underlines. 809cache_file=/dev/null 810exec_prefix=NONE 811no_create= 812no_recursion= 813prefix=NONE 814program_prefix=NONE 815program_suffix=NONE 816program_transform_name=s,x,x, 817silent= 818site= 819srcdir= 820verbose= 821x_includes=NONE 822x_libraries=NONE 823 824# Installation directory options. 825# These are left unexpanded so users can "make install exec_prefix=/foo" 826# and all the variables that are supposed to be based on exec_prefix 827# by default will actually change. 828# Use braces instead of parens because sh, perl, etc. also accept them. 829# (The list follows the same order as the GNU Coding Standards.) 830bindir='${exec_prefix}/bin' 831sbindir='${exec_prefix}/sbin' 832libexecdir='${exec_prefix}/libexec' 833datarootdir='${prefix}/share' 834datadir='${datarootdir}' 835sysconfdir='${prefix}/etc' 836sharedstatedir='${prefix}/com' 837localstatedir='${prefix}/var' 838includedir='${prefix}/include' 839oldincludedir='/usr/include' 840docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 841infodir='${datarootdir}/info' 842htmldir='${docdir}' 843dvidir='${docdir}' 844pdfdir='${docdir}' 845psdir='${docdir}' 846libdir='${exec_prefix}/lib' 847localedir='${datarootdir}/locale' 848mandir='${datarootdir}/man' 849 850ac_prev= 851ac_dashdash= 852for ac_option 853do 854 # If the previous option needs an argument, assign it. 855 if test -n "$ac_prev"; then 856 eval $ac_prev=\$ac_option 857 ac_prev= 858 continue 859 fi 860 861 case $ac_option in 862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 863 *=) ac_optarg= ;; 864 *) ac_optarg=yes ;; 865 esac 866 867 # Accept the important Cygnus configure options, so we can diagnose typos. 868 869 case $ac_dashdash$ac_option in 870 --) 871 ac_dashdash=yes ;; 872 873 -bindir | --bindir | --bindi | --bind | --bin | --bi) 874 ac_prev=bindir ;; 875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 876 bindir=$ac_optarg ;; 877 878 -build | --build | --buil | --bui | --bu) 879 ac_prev=build_alias ;; 880 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 881 build_alias=$ac_optarg ;; 882 883 -cache-file | --cache-file | --cache-fil | --cache-fi \ 884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 885 ac_prev=cache_file ;; 886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 888 cache_file=$ac_optarg ;; 889 890 --config-cache | -C) 891 cache_file=config.cache ;; 892 893 -datadir | --datadir | --datadi | --datad) 894 ac_prev=datadir ;; 895 -datadir=* | --datadir=* | --datadi=* | --datad=*) 896 datadir=$ac_optarg ;; 897 898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 899 | --dataroo | --dataro | --datar) 900 ac_prev=datarootdir ;; 901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 903 datarootdir=$ac_optarg ;; 904 905 -disable-* | --disable-*) 906 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 907 # Reject names that are not valid shell variable names. 908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 909 as_fn_error $? "invalid feature name: $ac_useropt" 910 ac_useropt_orig=$ac_useropt 911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 912 case $ac_user_opts in 913 *" 914"enable_$ac_useropt" 915"*) ;; 916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 917 ac_unrecognized_sep=', ';; 918 esac 919 eval enable_$ac_useropt=no ;; 920 921 -docdir | --docdir | --docdi | --doc | --do) 922 ac_prev=docdir ;; 923 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 924 docdir=$ac_optarg ;; 925 926 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 927 ac_prev=dvidir ;; 928 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 929 dvidir=$ac_optarg ;; 930 931 -enable-* | --enable-*) 932 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 933 # Reject names that are not valid shell variable names. 934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 935 as_fn_error $? "invalid feature name: $ac_useropt" 936 ac_useropt_orig=$ac_useropt 937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 938 case $ac_user_opts in 939 *" 940"enable_$ac_useropt" 941"*) ;; 942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 943 ac_unrecognized_sep=', ';; 944 esac 945 eval enable_$ac_useropt=\$ac_optarg ;; 946 947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 949 | --exec | --exe | --ex) 950 ac_prev=exec_prefix ;; 951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 953 | --exec=* | --exe=* | --ex=*) 954 exec_prefix=$ac_optarg ;; 955 956 -gas | --gas | --ga | --g) 957 # Obsolete; use --with-gas. 958 with_gas=yes ;; 959 960 -help | --help | --hel | --he | -h) 961 ac_init_help=long ;; 962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 963 ac_init_help=recursive ;; 964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 965 ac_init_help=short ;; 966 967 -host | --host | --hos | --ho) 968 ac_prev=host_alias ;; 969 -host=* | --host=* | --hos=* | --ho=*) 970 host_alias=$ac_optarg ;; 971 972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 973 ac_prev=htmldir ;; 974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 975 | --ht=*) 976 htmldir=$ac_optarg ;; 977 978 -includedir | --includedir | --includedi | --included | --include \ 979 | --includ | --inclu | --incl | --inc) 980 ac_prev=includedir ;; 981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 982 | --includ=* | --inclu=* | --incl=* | --inc=*) 983 includedir=$ac_optarg ;; 984 985 -infodir | --infodir | --infodi | --infod | --info | --inf) 986 ac_prev=infodir ;; 987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 988 infodir=$ac_optarg ;; 989 990 -libdir | --libdir | --libdi | --libd) 991 ac_prev=libdir ;; 992 -libdir=* | --libdir=* | --libdi=* | --libd=*) 993 libdir=$ac_optarg ;; 994 995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 996 | --libexe | --libex | --libe) 997 ac_prev=libexecdir ;; 998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 999 | --libexe=* | --libex=* | --libe=*) 1000 libexecdir=$ac_optarg ;; 1001 1002 -localedir | --localedir | --localedi | --localed | --locale) 1003 ac_prev=localedir ;; 1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1005 localedir=$ac_optarg ;; 1006 1007 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1008 | --localstate | --localstat | --localsta | --localst | --locals) 1009 ac_prev=localstatedir ;; 1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1012 localstatedir=$ac_optarg ;; 1013 1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1015 ac_prev=mandir ;; 1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1017 mandir=$ac_optarg ;; 1018 1019 -nfp | --nfp | --nf) 1020 # Obsolete; use --without-fp. 1021 with_fp=no ;; 1022 1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1024 | --no-cr | --no-c | -n) 1025 no_create=yes ;; 1026 1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1029 no_recursion=yes ;; 1030 1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1033 | --oldin | --oldi | --old | --ol | --o) 1034 ac_prev=oldincludedir ;; 1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1038 oldincludedir=$ac_optarg ;; 1039 1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1041 ac_prev=prefix ;; 1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1043 prefix=$ac_optarg ;; 1044 1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1046 | --program-pre | --program-pr | --program-p) 1047 ac_prev=program_prefix ;; 1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1050 program_prefix=$ac_optarg ;; 1051 1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1053 | --program-suf | --program-su | --program-s) 1054 ac_prev=program_suffix ;; 1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1057 program_suffix=$ac_optarg ;; 1058 1059 -program-transform-name | --program-transform-name \ 1060 | --program-transform-nam | --program-transform-na \ 1061 | --program-transform-n | --program-transform- \ 1062 | --program-transform | --program-transfor \ 1063 | --program-transfo | --program-transf \ 1064 | --program-trans | --program-tran \ 1065 | --progr-tra | --program-tr | --program-t) 1066 ac_prev=program_transform_name ;; 1067 -program-transform-name=* | --program-transform-name=* \ 1068 | --program-transform-nam=* | --program-transform-na=* \ 1069 | --program-transform-n=* | --program-transform-=* \ 1070 | --program-transform=* | --program-transfor=* \ 1071 | --program-transfo=* | --program-transf=* \ 1072 | --program-trans=* | --program-tran=* \ 1073 | --progr-tra=* | --program-tr=* | --program-t=*) 1074 program_transform_name=$ac_optarg ;; 1075 1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1077 ac_prev=pdfdir ;; 1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1079 pdfdir=$ac_optarg ;; 1080 1081 -psdir | --psdir | --psdi | --psd | --ps) 1082 ac_prev=psdir ;; 1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1084 psdir=$ac_optarg ;; 1085 1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1087 | -silent | --silent | --silen | --sile | --sil) 1088 silent=yes ;; 1089 1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1091 ac_prev=sbindir ;; 1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1093 | --sbi=* | --sb=*) 1094 sbindir=$ac_optarg ;; 1095 1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1098 | --sharedst | --shareds | --shared | --share | --shar \ 1099 | --sha | --sh) 1100 ac_prev=sharedstatedir ;; 1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1104 | --sha=* | --sh=*) 1105 sharedstatedir=$ac_optarg ;; 1106 1107 -site | --site | --sit) 1108 ac_prev=site ;; 1109 -site=* | --site=* | --sit=*) 1110 site=$ac_optarg ;; 1111 1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1113 ac_prev=srcdir ;; 1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1115 srcdir=$ac_optarg ;; 1116 1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1118 | --syscon | --sysco | --sysc | --sys | --sy) 1119 ac_prev=sysconfdir ;; 1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1122 sysconfdir=$ac_optarg ;; 1123 1124 -target | --target | --targe | --targ | --tar | --ta | --t) 1125 ac_prev=target_alias ;; 1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1127 target_alias=$ac_optarg ;; 1128 1129 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1130 verbose=yes ;; 1131 1132 -version | --version | --versio | --versi | --vers | -V) 1133 ac_init_version=: ;; 1134 1135 -with-* | --with-*) 1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1137 # Reject names that are not valid shell variable names. 1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1139 as_fn_error $? "invalid package name: $ac_useropt" 1140 ac_useropt_orig=$ac_useropt 1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1142 case $ac_user_opts in 1143 *" 1144"with_$ac_useropt" 1145"*) ;; 1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1147 ac_unrecognized_sep=', ';; 1148 esac 1149 eval with_$ac_useropt=\$ac_optarg ;; 1150 1151 -without-* | --without-*) 1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1153 # Reject names that are not valid shell variable names. 1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1155 as_fn_error $? "invalid package name: $ac_useropt" 1156 ac_useropt_orig=$ac_useropt 1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1158 case $ac_user_opts in 1159 *" 1160"with_$ac_useropt" 1161"*) ;; 1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1163 ac_unrecognized_sep=', ';; 1164 esac 1165 eval with_$ac_useropt=no ;; 1166 1167 --x) 1168 # Obsolete; use --with-x. 1169 with_x=yes ;; 1170 1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1172 | --x-incl | --x-inc | --x-in | --x-i) 1173 ac_prev=x_includes ;; 1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1176 x_includes=$ac_optarg ;; 1177 1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1180 ac_prev=x_libraries ;; 1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1183 x_libraries=$ac_optarg ;; 1184 1185 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1186Try \`$0 --help' for more information" 1187 ;; 1188 1189 *=*) 1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1191 # Reject names that are not valid shell variable names. 1192 case $ac_envvar in #( 1193 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1195 esac 1196 eval $ac_envvar=\$ac_optarg 1197 export $ac_envvar ;; 1198 1199 *) 1200 # FIXME: should be removed in autoconf 3.0. 1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1205 ;; 1206 1207 esac 1208done 1209 1210if test -n "$ac_prev"; then 1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1212 as_fn_error $? "missing argument to $ac_option" 1213fi 1214 1215if test -n "$ac_unrecognized_opts"; then 1216 case $enable_option_checking in 1217 no) ;; 1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1220 esac 1221fi 1222 1223# Check all directory arguments for consistency. 1224for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1225 datadir sysconfdir sharedstatedir localstatedir includedir \ 1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1227 libdir localedir mandir 1228do 1229 eval ac_val=\$$ac_var 1230 # Remove trailing slashes. 1231 case $ac_val in 1232 */ ) 1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1234 eval $ac_var=\$ac_val;; 1235 esac 1236 # Be sure to have absolute directory names. 1237 case $ac_val in 1238 [\\/$]* | ?:[\\/]* ) continue;; 1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1240 esac 1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1242done 1243 1244# There might be people who depend on the old broken behavior: `$host' 1245# used to hold the argument of --host etc. 1246# FIXME: To remove some day. 1247build=$build_alias 1248host=$host_alias 1249target=$target_alias 1250 1251# FIXME: To remove some day. 1252if test "x$host_alias" != x; then 1253 if test "x$build_alias" = x; then 1254 cross_compiling=maybe 1255 elif test "x$build_alias" != "x$host_alias"; then 1256 cross_compiling=yes 1257 fi 1258fi 1259 1260ac_tool_prefix= 1261test -n "$host_alias" && ac_tool_prefix=$host_alias- 1262 1263test "$silent" = yes && exec 6>/dev/null 1264 1265 1266ac_pwd=`pwd` && test -n "$ac_pwd" && 1267ac_ls_di=`ls -di .` && 1268ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1269 as_fn_error $? "working directory cannot be determined" 1270test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1271 as_fn_error $? "pwd does not report name of working directory" 1272 1273 1274# Find the source files, if location was not specified. 1275if test -z "$srcdir"; then 1276 ac_srcdir_defaulted=yes 1277 # Try the directory containing this script, then the parent directory. 1278 ac_confdir=`$as_dirname -- "$as_myself" || 1279$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1280 X"$as_myself" : 'X\(//\)[^/]' \| \ 1281 X"$as_myself" : 'X\(//\)$' \| \ 1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1283$as_echo X"$as_myself" | 1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1285 s//\1/ 1286 q 1287 } 1288 /^X\(\/\/\)[^/].*/{ 1289 s//\1/ 1290 q 1291 } 1292 /^X\(\/\/\)$/{ 1293 s//\1/ 1294 q 1295 } 1296 /^X\(\/\).*/{ 1297 s//\1/ 1298 q 1299 } 1300 s/.*/./; q'` 1301 srcdir=$ac_confdir 1302 if test ! -r "$srcdir/$ac_unique_file"; then 1303 srcdir=.. 1304 fi 1305else 1306 ac_srcdir_defaulted=no 1307fi 1308if test ! -r "$srcdir/$ac_unique_file"; then 1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1311fi 1312ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1313ac_abs_confdir=`( 1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1315 pwd)` 1316# When building in place, set srcdir=. 1317if test "$ac_abs_confdir" = "$ac_pwd"; then 1318 srcdir=. 1319fi 1320# Remove unnecessary trailing slashes from srcdir. 1321# Double slashes in file names in object file debugging info 1322# mess up M-x gdb in Emacs. 1323case $srcdir in 1324*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1325esac 1326for ac_var in $ac_precious_vars; do 1327 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1328 eval ac_env_${ac_var}_value=\$${ac_var} 1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1330 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1331done 1332 1333# 1334# Report the --help message. 1335# 1336if test "$ac_init_help" = "long"; then 1337 # Omit some internal or obsolete options to make the list less imposing. 1338 # This message is too long to be a string in the A/UX 3.1 sh. 1339 cat <<_ACEOF 1340\`configure' configures cosmosmash 1.4.8 to adapt to many kinds of systems. 1341 1342Usage: $0 [OPTION]... [VAR=VALUE]... 1343 1344To assign environment variables (e.g., CC, CFLAGS...), specify them as 1345VAR=VALUE. See below for descriptions of some of the useful variables. 1346 1347Defaults for the options are specified in brackets. 1348 1349Configuration: 1350 -h, --help display this help and exit 1351 --help=short display options specific to this package 1352 --help=recursive display the short help of all the included packages 1353 -V, --version display version information and exit 1354 -q, --quiet, --silent do not print \`checking ...' messages 1355 --cache-file=FILE cache test results in FILE [disabled] 1356 -C, --config-cache alias for \`--cache-file=config.cache' 1357 -n, --no-create do not create output files 1358 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1359 1360Installation directories: 1361 --prefix=PREFIX install architecture-independent files in PREFIX 1362 [$ac_default_prefix] 1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1364 [PREFIX] 1365 1366By default, \`make install' will install all the files in 1367\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1368an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1369for instance \`--prefix=\$HOME'. 1370 1371For better control, use the options below. 1372 1373Fine tuning of the installation directories: 1374 --bindir=DIR user executables [EPREFIX/bin] 1375 --sbindir=DIR system admin executables [EPREFIX/sbin] 1376 --libexecdir=DIR program executables [EPREFIX/libexec] 1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1380 --libdir=DIR object code libraries [EPREFIX/lib] 1381 --includedir=DIR C header files [PREFIX/include] 1382 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1385 --infodir=DIR info documentation [DATAROOTDIR/info] 1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1387 --mandir=DIR man documentation [DATAROOTDIR/man] 1388 --docdir=DIR documentation root [DATAROOTDIR/doc/cosmosmash] 1389 --htmldir=DIR html documentation [DOCDIR] 1390 --dvidir=DIR dvi documentation [DOCDIR] 1391 --pdfdir=DIR pdf documentation [DOCDIR] 1392 --psdir=DIR ps documentation [DOCDIR] 1393_ACEOF 1394 1395 cat <<\_ACEOF 1396 1397Program names: 1398 --program-prefix=PREFIX prepend PREFIX to installed program names 1399 --program-suffix=SUFFIX append SUFFIX to installed program names 1400 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1401 1402System types: 1403 --build=BUILD configure for building on BUILD [guessed] 1404 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1405_ACEOF 1406fi 1407 1408if test -n "$ac_init_help"; then 1409 case $ac_init_help in 1410 short | recursive ) echo "Configuration of cosmosmash 1.4.8:";; 1411 esac 1412 cat <<\_ACEOF 1413 1414Optional Features: 1415 --disable-option-checking ignore unrecognized --enable/--with options 1416 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1417 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1418 --enable-silent-rules less verbose build output (undo: "make V=1") 1419 --disable-silent-rules verbose build output (undo: "make V=0") 1420 --enable-static[=PKGS] build static libraries [default=no] 1421 --enable-shared[=PKGS] build shared libraries [default=yes] 1422 --enable-fast-install[=PKGS] 1423 optimize for fast installation [default=yes] 1424 --enable-dependency-tracking 1425 do not reject slow dependency extractors 1426 --disable-dependency-tracking 1427 speeds up one-time build 1428 --disable-libtool-lock avoid locking (might break parallel builds) 1429 1430Optional Packages: 1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1433 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1434 both] 1435 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1436 --with-sysroot=DIR Search for dependent libraries within DIR 1437 (or the compiler's sysroot if not specified). 1438 1439Some influential environment variables: 1440 CC C compiler command 1441 CFLAGS C compiler flags 1442 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1443 nonstandard directory <lib dir> 1444 LIBS libraries to pass to the linker, e.g. -l<library> 1445 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1446 you have headers in a nonstandard directory <include dir> 1447 CPP C preprocessor 1448 CXX C++ compiler command 1449 CXXFLAGS C++ compiler flags 1450 CXXCPP C++ preprocessor 1451 PKG_CONFIG path to pkg-config utility 1452 PKG_CONFIG_PATH 1453 directories to add to pkg-config's search path 1454 PKG_CONFIG_LIBDIR 1455 path overriding pkg-config's built-in search path 1456 FLATZEBRA_CFLAGS 1457 C compiler flags for FLATZEBRA, overriding pkg-config 1458 FLATZEBRA_LIBS 1459 linker flags for FLATZEBRA, overriding pkg-config 1460 1461Use these variables to override the choices made by `configure' or to help 1462it to find libraries and programs with nonstandard names/locations. 1463 1464Report bugs to the package provider. 1465_ACEOF 1466ac_status=$? 1467fi 1468 1469if test "$ac_init_help" = "recursive"; then 1470 # If there are subdirs, report their specific --help. 1471 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1472 test -d "$ac_dir" || 1473 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1474 continue 1475 ac_builddir=. 1476 1477case "$ac_dir" in 1478.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1479*) 1480 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1481 # A ".." for each directory in $ac_dir_suffix. 1482 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1483 case $ac_top_builddir_sub in 1484 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1485 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1486 esac ;; 1487esac 1488ac_abs_top_builddir=$ac_pwd 1489ac_abs_builddir=$ac_pwd$ac_dir_suffix 1490# for backward compatibility: 1491ac_top_builddir=$ac_top_build_prefix 1492 1493case $srcdir in 1494 .) # We are building in place. 1495 ac_srcdir=. 1496 ac_top_srcdir=$ac_top_builddir_sub 1497 ac_abs_top_srcdir=$ac_pwd ;; 1498 [\\/]* | ?:[\\/]* ) # Absolute name. 1499 ac_srcdir=$srcdir$ac_dir_suffix; 1500 ac_top_srcdir=$srcdir 1501 ac_abs_top_srcdir=$srcdir ;; 1502 *) # Relative name. 1503 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1504 ac_top_srcdir=$ac_top_build_prefix$srcdir 1505 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1506esac 1507ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1508 1509 cd "$ac_dir" || { ac_status=$?; continue; } 1510 # Check for guested configure. 1511 if test -f "$ac_srcdir/configure.gnu"; then 1512 echo && 1513 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1514 elif test -f "$ac_srcdir/configure"; then 1515 echo && 1516 $SHELL "$ac_srcdir/configure" --help=recursive 1517 else 1518 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1519 fi || ac_status=$? 1520 cd "$ac_pwd" || { ac_status=$?; break; } 1521 done 1522fi 1523 1524test -n "$ac_init_help" && exit $ac_status 1525if $ac_init_version; then 1526 cat <<\_ACEOF 1527cosmosmash configure 1.4.8 1528generated by GNU Autoconf 2.69 1529 1530Copyright (C) 2012 Free Software Foundation, Inc. 1531This configure script is free software; the Free Software Foundation 1532gives unlimited permission to copy, distribute and modify it. 1533_ACEOF 1534 exit 1535fi 1536 1537## ------------------------ ## 1538## Autoconf initialization. ## 1539## ------------------------ ## 1540 1541# ac_fn_c_try_compile LINENO 1542# -------------------------- 1543# Try to compile conftest.$ac_ext, and return whether this succeeded. 1544ac_fn_c_try_compile () 1545{ 1546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1547 rm -f conftest.$ac_objext 1548 if { { ac_try="$ac_compile" 1549case "(($ac_try" in 1550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1551 *) ac_try_echo=$ac_try;; 1552esac 1553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1554$as_echo "$ac_try_echo"; } >&5 1555 (eval "$ac_compile") 2>conftest.err 1556 ac_status=$? 1557 if test -s conftest.err; then 1558 grep -v '^ *+' conftest.err >conftest.er1 1559 cat conftest.er1 >&5 1560 mv -f conftest.er1 conftest.err 1561 fi 1562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1563 test $ac_status = 0; } && { 1564 test -z "$ac_c_werror_flag" || 1565 test ! -s conftest.err 1566 } && test -s conftest.$ac_objext; then : 1567 ac_retval=0 1568else 1569 $as_echo "$as_me: failed program was:" >&5 1570sed 's/^/| /' conftest.$ac_ext >&5 1571 1572 ac_retval=1 1573fi 1574 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1575 as_fn_set_status $ac_retval 1576 1577} # ac_fn_c_try_compile 1578 1579# ac_fn_c_try_link LINENO 1580# ----------------------- 1581# Try to link conftest.$ac_ext, and return whether this succeeded. 1582ac_fn_c_try_link () 1583{ 1584 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1585 rm -f conftest.$ac_objext conftest$ac_exeext 1586 if { { ac_try="$ac_link" 1587case "(($ac_try" in 1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1589 *) ac_try_echo=$ac_try;; 1590esac 1591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1592$as_echo "$ac_try_echo"; } >&5 1593 (eval "$ac_link") 2>conftest.err 1594 ac_status=$? 1595 if test -s conftest.err; then 1596 grep -v '^ *+' conftest.err >conftest.er1 1597 cat conftest.er1 >&5 1598 mv -f conftest.er1 conftest.err 1599 fi 1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1601 test $ac_status = 0; } && { 1602 test -z "$ac_c_werror_flag" || 1603 test ! -s conftest.err 1604 } && test -s conftest$ac_exeext && { 1605 test "$cross_compiling" = yes || 1606 test -x conftest$ac_exeext 1607 }; then : 1608 ac_retval=0 1609else 1610 $as_echo "$as_me: failed program was:" >&5 1611sed 's/^/| /' conftest.$ac_ext >&5 1612 1613 ac_retval=1 1614fi 1615 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1616 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1617 # interfere with the next link command; also delete a directory that is 1618 # left behind by Apple's compiler. We do this before executing the actions. 1619 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1621 as_fn_set_status $ac_retval 1622 1623} # ac_fn_c_try_link 1624 1625# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1626# ------------------------------------------------------- 1627# Tests whether HEADER exists and can be compiled using the include files in 1628# INCLUDES, setting the cache variable VAR accordingly. 1629ac_fn_c_check_header_compile () 1630{ 1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1633$as_echo_n "checking for $2... " >&6; } 1634if eval \${$3+:} false; then : 1635 $as_echo_n "(cached) " >&6 1636else 1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1638/* end confdefs.h. */ 1639$4 1640#include <$2> 1641_ACEOF 1642if ac_fn_c_try_compile "$LINENO"; then : 1643 eval "$3=yes" 1644else 1645 eval "$3=no" 1646fi 1647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1648fi 1649eval ac_res=\$$3 1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1651$as_echo "$ac_res" >&6; } 1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1653 1654} # ac_fn_c_check_header_compile 1655 1656# ac_fn_c_try_cpp LINENO 1657# ---------------------- 1658# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1659ac_fn_c_try_cpp () 1660{ 1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1662 if { { ac_try="$ac_cpp conftest.$ac_ext" 1663case "(($ac_try" in 1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1665 *) ac_try_echo=$ac_try;; 1666esac 1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1668$as_echo "$ac_try_echo"; } >&5 1669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1670 ac_status=$? 1671 if test -s conftest.err; then 1672 grep -v '^ *+' conftest.err >conftest.er1 1673 cat conftest.er1 >&5 1674 mv -f conftest.er1 conftest.err 1675 fi 1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1677 test $ac_status = 0; } > conftest.i && { 1678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1679 test ! -s conftest.err 1680 }; then : 1681 ac_retval=0 1682else 1683 $as_echo "$as_me: failed program was:" >&5 1684sed 's/^/| /' conftest.$ac_ext >&5 1685 1686 ac_retval=1 1687fi 1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1689 as_fn_set_status $ac_retval 1690 1691} # ac_fn_c_try_cpp 1692 1693# ac_fn_c_try_run LINENO 1694# ---------------------- 1695# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1696# that executables *can* be run. 1697ac_fn_c_try_run () 1698{ 1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1700 if { { ac_try="$ac_link" 1701case "(($ac_try" in 1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1703 *) ac_try_echo=$ac_try;; 1704esac 1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1706$as_echo "$ac_try_echo"; } >&5 1707 (eval "$ac_link") 2>&5 1708 ac_status=$? 1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1710 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1711 { { case "(($ac_try" in 1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1713 *) ac_try_echo=$ac_try;; 1714esac 1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1716$as_echo "$ac_try_echo"; } >&5 1717 (eval "$ac_try") 2>&5 1718 ac_status=$? 1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1720 test $ac_status = 0; }; }; then : 1721 ac_retval=0 1722else 1723 $as_echo "$as_me: program exited with status $ac_status" >&5 1724 $as_echo "$as_me: failed program was:" >&5 1725sed 's/^/| /' conftest.$ac_ext >&5 1726 1727 ac_retval=$ac_status 1728fi 1729 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1731 as_fn_set_status $ac_retval 1732 1733} # ac_fn_c_try_run 1734 1735# ac_fn_c_check_func LINENO FUNC VAR 1736# ---------------------------------- 1737# Tests whether FUNC exists, setting the cache variable VAR accordingly 1738ac_fn_c_check_func () 1739{ 1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1742$as_echo_n "checking for $2... " >&6; } 1743if eval \${$3+:} false; then : 1744 $as_echo_n "(cached) " >&6 1745else 1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1747/* end confdefs.h. */ 1748/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1749 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1750#define $2 innocuous_$2 1751 1752/* System header to define __stub macros and hopefully few prototypes, 1753 which can conflict with char $2 (); below. 1754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1755 <limits.h> exists even on freestanding compilers. */ 1756 1757#ifdef __STDC__ 1758# include <limits.h> 1759#else 1760# include <assert.h> 1761#endif 1762 1763#undef $2 1764 1765/* Override any GCC internal prototype to avoid an error. 1766 Use char because int might match the return type of a GCC 1767 builtin and then its argument prototype would still apply. */ 1768#ifdef __cplusplus 1769extern "C" 1770#endif 1771char $2 (); 1772/* The GNU C library defines this for functions which it implements 1773 to always fail with ENOSYS. Some functions are actually named 1774 something starting with __ and the normal name is an alias. */ 1775#if defined __stub_$2 || defined __stub___$2 1776choke me 1777#endif 1778 1779int 1780main () 1781{ 1782return $2 (); 1783 ; 1784 return 0; 1785} 1786_ACEOF 1787if ac_fn_c_try_link "$LINENO"; then : 1788 eval "$3=yes" 1789else 1790 eval "$3=no" 1791fi 1792rm -f core conftest.err conftest.$ac_objext \ 1793 conftest$ac_exeext conftest.$ac_ext 1794fi 1795eval ac_res=\$$3 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1797$as_echo "$ac_res" >&6; } 1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1799 1800} # ac_fn_c_check_func 1801 1802# ac_fn_cxx_try_compile LINENO 1803# ---------------------------- 1804# Try to compile conftest.$ac_ext, and return whether this succeeded. 1805ac_fn_cxx_try_compile () 1806{ 1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1808 rm -f conftest.$ac_objext 1809 if { { ac_try="$ac_compile" 1810case "(($ac_try" in 1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1812 *) ac_try_echo=$ac_try;; 1813esac 1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1815$as_echo "$ac_try_echo"; } >&5 1816 (eval "$ac_compile") 2>conftest.err 1817 ac_status=$? 1818 if test -s conftest.err; then 1819 grep -v '^ *+' conftest.err >conftest.er1 1820 cat conftest.er1 >&5 1821 mv -f conftest.er1 conftest.err 1822 fi 1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1824 test $ac_status = 0; } && { 1825 test -z "$ac_cxx_werror_flag" || 1826 test ! -s conftest.err 1827 } && test -s conftest.$ac_objext; then : 1828 ac_retval=0 1829else 1830 $as_echo "$as_me: failed program was:" >&5 1831sed 's/^/| /' conftest.$ac_ext >&5 1832 1833 ac_retval=1 1834fi 1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1836 as_fn_set_status $ac_retval 1837 1838} # ac_fn_cxx_try_compile 1839 1840# ac_fn_cxx_try_cpp LINENO 1841# ------------------------ 1842# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1843ac_fn_cxx_try_cpp () 1844{ 1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1846 if { { ac_try="$ac_cpp conftest.$ac_ext" 1847case "(($ac_try" in 1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1849 *) ac_try_echo=$ac_try;; 1850esac 1851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1852$as_echo "$ac_try_echo"; } >&5 1853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1854 ac_status=$? 1855 if test -s conftest.err; then 1856 grep -v '^ *+' conftest.err >conftest.er1 1857 cat conftest.er1 >&5 1858 mv -f conftest.er1 conftest.err 1859 fi 1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1861 test $ac_status = 0; } > conftest.i && { 1862 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1863 test ! -s conftest.err 1864 }; then : 1865 ac_retval=0 1866else 1867 $as_echo "$as_me: failed program was:" >&5 1868sed 's/^/| /' conftest.$ac_ext >&5 1869 1870 ac_retval=1 1871fi 1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1873 as_fn_set_status $ac_retval 1874 1875} # ac_fn_cxx_try_cpp 1876 1877# ac_fn_cxx_try_link LINENO 1878# ------------------------- 1879# Try to link conftest.$ac_ext, and return whether this succeeded. 1880ac_fn_cxx_try_link () 1881{ 1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1883 rm -f conftest.$ac_objext conftest$ac_exeext 1884 if { { ac_try="$ac_link" 1885case "(($ac_try" in 1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1887 *) ac_try_echo=$ac_try;; 1888esac 1889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1890$as_echo "$ac_try_echo"; } >&5 1891 (eval "$ac_link") 2>conftest.err 1892 ac_status=$? 1893 if test -s conftest.err; then 1894 grep -v '^ *+' conftest.err >conftest.er1 1895 cat conftest.er1 >&5 1896 mv -f conftest.er1 conftest.err 1897 fi 1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1899 test $ac_status = 0; } && { 1900 test -z "$ac_cxx_werror_flag" || 1901 test ! -s conftest.err 1902 } && test -s conftest$ac_exeext && { 1903 test "$cross_compiling" = yes || 1904 test -x conftest$ac_exeext 1905 }; then : 1906 ac_retval=0 1907else 1908 $as_echo "$as_me: failed program was:" >&5 1909sed 's/^/| /' conftest.$ac_ext >&5 1910 1911 ac_retval=1 1912fi 1913 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1914 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1915 # interfere with the next link command; also delete a directory that is 1916 # left behind by Apple's compiler. We do this before executing the actions. 1917 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1919 as_fn_set_status $ac_retval 1920 1921} # ac_fn_cxx_try_link 1922 1923# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 1924# --------------------------------------------------------- 1925# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1926# the include files in INCLUDES and setting the cache variable VAR 1927# accordingly. 1928ac_fn_cxx_check_header_mongrel () 1929{ 1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1931 if eval \${$3+:} false; then : 1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1933$as_echo_n "checking for $2... " >&6; } 1934if eval \${$3+:} false; then : 1935 $as_echo_n "(cached) " >&6 1936fi 1937eval ac_res=\$$3 1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1939$as_echo "$ac_res" >&6; } 1940else 1941 # Is the header compilable? 1942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1943$as_echo_n "checking $2 usability... " >&6; } 1944cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1945/* end confdefs.h. */ 1946$4 1947#include <$2> 1948_ACEOF 1949if ac_fn_cxx_try_compile "$LINENO"; then : 1950 ac_header_compiler=yes 1951else 1952 ac_header_compiler=no 1953fi 1954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1956$as_echo "$ac_header_compiler" >&6; } 1957 1958# Is the header present? 1959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1960$as_echo_n "checking $2 presence... " >&6; } 1961cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1962/* end confdefs.h. */ 1963#include <$2> 1964_ACEOF 1965if ac_fn_cxx_try_cpp "$LINENO"; then : 1966 ac_header_preproc=yes 1967else 1968 ac_header_preproc=no 1969fi 1970rm -f conftest.err conftest.i conftest.$ac_ext 1971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1972$as_echo "$ac_header_preproc" >&6; } 1973 1974# So? What about this header? 1975case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 1976 yes:no: ) 1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1978$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1980$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1981 ;; 1982 no:yes:* ) 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1984$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1986$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1988$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1990$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1992$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1993 ;; 1994esac 1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1996$as_echo_n "checking for $2... " >&6; } 1997if eval \${$3+:} false; then : 1998 $as_echo_n "(cached) " >&6 1999else 2000 eval "$3=\$ac_header_compiler" 2001fi 2002eval ac_res=\$$3 2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2004$as_echo "$ac_res" >&6; } 2005fi 2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2007 2008} # ac_fn_cxx_check_header_mongrel 2009 2010# ac_fn_cxx_check_func LINENO FUNC VAR 2011# ------------------------------------ 2012# Tests whether FUNC exists, setting the cache variable VAR accordingly 2013ac_fn_cxx_check_func () 2014{ 2015 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2017$as_echo_n "checking for $2... " >&6; } 2018if eval \${$3+:} false; then : 2019 $as_echo_n "(cached) " >&6 2020else 2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2022/* end confdefs.h. */ 2023/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2024 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2025#define $2 innocuous_$2 2026 2027/* System header to define __stub macros and hopefully few prototypes, 2028 which can conflict with char $2 (); below. 2029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2030 <limits.h> exists even on freestanding compilers. */ 2031 2032#ifdef __STDC__ 2033# include <limits.h> 2034#else 2035# include <assert.h> 2036#endif 2037 2038#undef $2 2039 2040/* Override any GCC internal prototype to avoid an error. 2041 Use char because int might match the return type of a GCC 2042 builtin and then its argument prototype would still apply. */ 2043#ifdef __cplusplus 2044extern "C" 2045#endif 2046char $2 (); 2047/* The GNU C library defines this for functions which it implements 2048 to always fail with ENOSYS. Some functions are actually named 2049 something starting with __ and the normal name is an alias. */ 2050#if defined __stub_$2 || defined __stub___$2 2051choke me 2052#endif 2053 2054int 2055main () 2056{ 2057return $2 (); 2058 ; 2059 return 0; 2060} 2061_ACEOF 2062if ac_fn_cxx_try_link "$LINENO"; then : 2063 eval "$3=yes" 2064else 2065 eval "$3=no" 2066fi 2067rm -f core conftest.err conftest.$ac_objext \ 2068 conftest$ac_exeext conftest.$ac_ext 2069fi 2070eval ac_res=\$$3 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2072$as_echo "$ac_res" >&6; } 2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2074 2075} # ac_fn_cxx_check_func 2076cat >config.log <<_ACEOF 2077This file contains any messages produced by compilers while 2078running configure, to aid debugging if configure makes a mistake. 2079 2080It was created by cosmosmash $as_me 1.4.8, which was 2081generated by GNU Autoconf 2.69. Invocation command line was 2082 2083 $ $0 $@ 2084 2085_ACEOF 2086exec 5>>config.log 2087{ 2088cat <<_ASUNAME 2089## --------- ## 2090## Platform. ## 2091## --------- ## 2092 2093hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2094uname -m = `(uname -m) 2>/dev/null || echo unknown` 2095uname -r = `(uname -r) 2>/dev/null || echo unknown` 2096uname -s = `(uname -s) 2>/dev/null || echo unknown` 2097uname -v = `(uname -v) 2>/dev/null || echo unknown` 2098 2099/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2100/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2101 2102/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2103/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2104/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2105/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2106/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2107/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2108/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2109 2110_ASUNAME 2111 2112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2113for as_dir in $PATH 2114do 2115 IFS=$as_save_IFS 2116 test -z "$as_dir" && as_dir=. 2117 $as_echo "PATH: $as_dir" 2118 done 2119IFS=$as_save_IFS 2120 2121} >&5 2122 2123cat >&5 <<_ACEOF 2124 2125 2126## ----------- ## 2127## Core tests. ## 2128## ----------- ## 2129 2130_ACEOF 2131 2132 2133# Keep a trace of the command line. 2134# Strip out --no-create and --no-recursion so they do not pile up. 2135# Strip out --silent because we don't want to record it for future runs. 2136# Also quote any args containing shell meta-characters. 2137# Make two passes to allow for proper duplicate-argument suppression. 2138ac_configure_args= 2139ac_configure_args0= 2140ac_configure_args1= 2141ac_must_keep_next=false 2142for ac_pass in 1 2 2143do 2144 for ac_arg 2145 do 2146 case $ac_arg in 2147 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2149 | -silent | --silent | --silen | --sile | --sil) 2150 continue ;; 2151 *\'*) 2152 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2153 esac 2154 case $ac_pass in 2155 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2156 2) 2157 as_fn_append ac_configure_args1 " '$ac_arg'" 2158 if test $ac_must_keep_next = true; then 2159 ac_must_keep_next=false # Got value, back to normal. 2160 else 2161 case $ac_arg in 2162 *=* | --config-cache | -C | -disable-* | --disable-* \ 2163 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2164 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2165 | -with-* | --with-* | -without-* | --without-* | --x) 2166 case "$ac_configure_args0 " in 2167 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2168 esac 2169 ;; 2170 -* ) ac_must_keep_next=true ;; 2171 esac 2172 fi 2173 as_fn_append ac_configure_args " '$ac_arg'" 2174 ;; 2175 esac 2176 done 2177done 2178{ ac_configure_args0=; unset ac_configure_args0;} 2179{ ac_configure_args1=; unset ac_configure_args1;} 2180 2181# When interrupted or exit'd, cleanup temporary files, and complete 2182# config.log. We remove comments because anyway the quotes in there 2183# would cause problems or look ugly. 2184# WARNING: Use '\'' to represent an apostrophe within the trap. 2185# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2186trap 'exit_status=$? 2187 # Save into config.log some information that might help in debugging. 2188 { 2189 echo 2190 2191 $as_echo "## ---------------- ## 2192## Cache variables. ## 2193## ---------------- ##" 2194 echo 2195 # The following way of writing the cache mishandles newlines in values, 2196( 2197 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2198 eval ac_val=\$$ac_var 2199 case $ac_val in #( 2200 *${as_nl}*) 2201 case $ac_var in #( 2202 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2203$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2204 esac 2205 case $ac_var in #( 2206 _ | IFS | as_nl) ;; #( 2207 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2208 *) { eval $ac_var=; unset $ac_var;} ;; 2209 esac ;; 2210 esac 2211 done 2212 (set) 2>&1 | 2213 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2214 *${as_nl}ac_space=\ *) 2215 sed -n \ 2216 "s/'\''/'\''\\\\'\'''\''/g; 2217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2218 ;; #( 2219 *) 2220 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2221 ;; 2222 esac | 2223 sort 2224) 2225 echo 2226 2227 $as_echo "## ----------------- ## 2228## Output variables. ## 2229## ----------------- ##" 2230 echo 2231 for ac_var in $ac_subst_vars 2232 do 2233 eval ac_val=\$$ac_var 2234 case $ac_val in 2235 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2236 esac 2237 $as_echo "$ac_var='\''$ac_val'\''" 2238 done | sort 2239 echo 2240 2241 if test -n "$ac_subst_files"; then 2242 $as_echo "## ------------------- ## 2243## File substitutions. ## 2244## ------------------- ##" 2245 echo 2246 for ac_var in $ac_subst_files 2247 do 2248 eval ac_val=\$$ac_var 2249 case $ac_val in 2250 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2251 esac 2252 $as_echo "$ac_var='\''$ac_val'\''" 2253 done | sort 2254 echo 2255 fi 2256 2257 if test -s confdefs.h; then 2258 $as_echo "## ----------- ## 2259## confdefs.h. ## 2260## ----------- ##" 2261 echo 2262 cat confdefs.h 2263 echo 2264 fi 2265 test "$ac_signal" != 0 && 2266 $as_echo "$as_me: caught signal $ac_signal" 2267 $as_echo "$as_me: exit $exit_status" 2268 } >&5 2269 rm -f core *.core core.conftest.* && 2270 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2271 exit $exit_status 2272' 0 2273for ac_signal in 1 2 13 15; do 2274 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2275done 2276ac_signal=0 2277 2278# confdefs.h avoids OS command line length limits that DEFS can exceed. 2279rm -f -r conftest* confdefs.h 2280 2281$as_echo "/* confdefs.h */" > confdefs.h 2282 2283# Predefined preprocessor variables. 2284 2285cat >>confdefs.h <<_ACEOF 2286#define PACKAGE_NAME "$PACKAGE_NAME" 2287_ACEOF 2288 2289cat >>confdefs.h <<_ACEOF 2290#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2291_ACEOF 2292 2293cat >>confdefs.h <<_ACEOF 2294#define PACKAGE_VERSION "$PACKAGE_VERSION" 2295_ACEOF 2296 2297cat >>confdefs.h <<_ACEOF 2298#define PACKAGE_STRING "$PACKAGE_STRING" 2299_ACEOF 2300 2301cat >>confdefs.h <<_ACEOF 2302#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2303_ACEOF 2304 2305cat >>confdefs.h <<_ACEOF 2306#define PACKAGE_URL "$PACKAGE_URL" 2307_ACEOF 2308 2309 2310# Let the site file select an alternate cache file if it wants to. 2311# Prefer an explicitly selected file to automatically selected ones. 2312ac_site_file1=NONE 2313ac_site_file2=NONE 2314if test -n "$CONFIG_SITE"; then 2315 # We do not want a PATH search for config.site. 2316 case $CONFIG_SITE in #(( 2317 -*) ac_site_file1=./$CONFIG_SITE;; 2318 */*) ac_site_file1=$CONFIG_SITE;; 2319 *) ac_site_file1=./$CONFIG_SITE;; 2320 esac 2321elif test "x$prefix" != xNONE; then 2322 ac_site_file1=$prefix/share/config.site 2323 ac_site_file2=$prefix/etc/config.site 2324else 2325 ac_site_file1=$ac_default_prefix/share/config.site 2326 ac_site_file2=$ac_default_prefix/etc/config.site 2327fi 2328for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2329do 2330 test "x$ac_site_file" = xNONE && continue 2331 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2332 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2333$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2334 sed 's/^/| /' "$ac_site_file" >&5 2335 . "$ac_site_file" \ 2336 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2338as_fn_error $? "failed to load site script $ac_site_file 2339See \`config.log' for more details" "$LINENO" 5; } 2340 fi 2341done 2342 2343if test -r "$cache_file"; then 2344 # Some versions of bash will fail to source /dev/null (special files 2345 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2346 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2347 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2348$as_echo "$as_me: loading cache $cache_file" >&6;} 2349 case $cache_file in 2350 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2351 *) . "./$cache_file";; 2352 esac 2353 fi 2354else 2355 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2356$as_echo "$as_me: creating cache $cache_file" >&6;} 2357 >$cache_file 2358fi 2359 2360# Check that the precious variables saved in the cache have kept the same 2361# value. 2362ac_cache_corrupted=false 2363for ac_var in $ac_precious_vars; do 2364 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2365 eval ac_new_set=\$ac_env_${ac_var}_set 2366 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2367 eval ac_new_val=\$ac_env_${ac_var}_value 2368 case $ac_old_set,$ac_new_set in 2369 set,) 2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2371$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2372 ac_cache_corrupted=: ;; 2373 ,set) 2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2375$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2376 ac_cache_corrupted=: ;; 2377 ,);; 2378 *) 2379 if test "x$ac_old_val" != "x$ac_new_val"; then 2380 # differences in whitespace do not lead to failure. 2381 ac_old_val_w=`echo x $ac_old_val` 2382 ac_new_val_w=`echo x $ac_new_val` 2383 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2385$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2386 ac_cache_corrupted=: 2387 else 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2389$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2390 eval $ac_var=\$ac_old_val 2391 fi 2392 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2393$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2395$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2396 fi;; 2397 esac 2398 # Pass precious variables to config.status. 2399 if test "$ac_new_set" = set; then 2400 case $ac_new_val in 2401 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2402 *) ac_arg=$ac_var=$ac_new_val ;; 2403 esac 2404 case " $ac_configure_args " in 2405 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2406 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2407 esac 2408 fi 2409done 2410if $ac_cache_corrupted; then 2411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2414$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2415 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2416fi 2417## -------------------- ## 2418## Main body of script. ## 2419## -------------------- ## 2420 2421ac_ext=c 2422ac_cpp='$CPP $CPPFLAGS' 2423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2425ac_compiler_gnu=$ac_cv_c_compiler_gnu 2426 2427 2428 2429am__api_version='1.15' 2430 2431ac_aux_dir= 2432for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2433 if test -f "$ac_dir/install-sh"; then 2434 ac_aux_dir=$ac_dir 2435 ac_install_sh="$ac_aux_dir/install-sh -c" 2436 break 2437 elif test -f "$ac_dir/install.sh"; then 2438 ac_aux_dir=$ac_dir 2439 ac_install_sh="$ac_aux_dir/install.sh -c" 2440 break 2441 elif test -f "$ac_dir/shtool"; then 2442 ac_aux_dir=$ac_dir 2443 ac_install_sh="$ac_aux_dir/shtool install -c" 2444 break 2445 fi 2446done 2447if test -z "$ac_aux_dir"; then 2448 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2449fi 2450 2451# These three variables are undocumented and unsupported, 2452# and are intended to be withdrawn in a future Autoconf release. 2453# They can cause serious problems if a builder's source tree is in a directory 2454# whose full name contains unusual characters. 2455ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2456ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2457ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2458 2459 2460# Find a good install program. We prefer a C program (faster), 2461# so one script is as good as another. But avoid the broken or 2462# incompatible versions: 2463# SysV /etc/install, /usr/sbin/install 2464# SunOS /usr/etc/install 2465# IRIX /sbin/install 2466# AIX /bin/install 2467# AmigaOS /C/install, which installs bootblocks on floppy discs 2468# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2469# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2470# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2471# OS/2's system install, which has a completely different semantic 2472# ./install, which can be erroneously created by make from ./install.sh. 2473# Reject install programs that cannot install multiple files. 2474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2475$as_echo_n "checking for a BSD-compatible install... " >&6; } 2476if test -z "$INSTALL"; then 2477if ${ac_cv_path_install+:} false; then : 2478 $as_echo_n "(cached) " >&6 2479else 2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2481for as_dir in $PATH 2482do 2483 IFS=$as_save_IFS 2484 test -z "$as_dir" && as_dir=. 2485 # Account for people who put trailing slashes in PATH elements. 2486case $as_dir/ in #(( 2487 ./ | .// | /[cC]/* | \ 2488 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2489 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2490 /usr/ucb/* ) ;; 2491 *) 2492 # OSF1 and SCO ODT 3.0 have their own names for install. 2493 # Don't use installbsd from OSF since it installs stuff as root 2494 # by default. 2495 for ac_prog in ginstall scoinst install; do 2496 for ac_exec_ext in '' $ac_executable_extensions; do 2497 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2498 if test $ac_prog = install && 2499 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2500 # AIX install. It has an incompatible calling convention. 2501 : 2502 elif test $ac_prog = install && 2503 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2504 # program-specific install script used by HP pwplus--don't use. 2505 : 2506 else 2507 rm -rf conftest.one conftest.two conftest.dir 2508 echo one > conftest.one 2509 echo two > conftest.two 2510 mkdir conftest.dir 2511 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2512 test -s conftest.one && test -s conftest.two && 2513 test -s conftest.dir/conftest.one && 2514 test -s conftest.dir/conftest.two 2515 then 2516 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2517 break 3 2518 fi 2519 fi 2520 fi 2521 done 2522 done 2523 ;; 2524esac 2525 2526 done 2527IFS=$as_save_IFS 2528 2529rm -rf conftest.one conftest.two conftest.dir 2530 2531fi 2532 if test "${ac_cv_path_install+set}" = set; then 2533 INSTALL=$ac_cv_path_install 2534 else 2535 # As a last resort, use the slow shell script. Don't cache a 2536 # value for INSTALL within a source directory, because that will 2537 # break other packages using the cache if that directory is 2538 # removed, or if the value is a relative name. 2539 INSTALL=$ac_install_sh 2540 fi 2541fi 2542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2543$as_echo "$INSTALL" >&6; } 2544 2545# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2546# It thinks the first close brace ends the variable substitution. 2547test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2548 2549test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2550 2551test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2552 2553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2554$as_echo_n "checking whether build environment is sane... " >&6; } 2555# Reject unsafe characters in $srcdir or the absolute working directory 2556# name. Accept space and tab only in the latter. 2557am_lf=' 2558' 2559case `pwd` in 2560 *[\\\"\#\$\&\'\`$am_lf]*) 2561 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2562esac 2563case $srcdir in 2564 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2565 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2566esac 2567 2568# Do 'set' in a subshell so we don't clobber the current shell's 2569# arguments. Must try -L first in case configure is actually a 2570# symlink; some systems play weird games with the mod time of symlinks 2571# (eg FreeBSD returns the mod time of the symlink's containing 2572# directory). 2573if ( 2574 am_has_slept=no 2575 for am_try in 1 2; do 2576 echo "timestamp, slept: $am_has_slept" > conftest.file 2577 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2578 if test "$*" = "X"; then 2579 # -L didn't work. 2580 set X `ls -t "$srcdir/configure" conftest.file` 2581 fi 2582 if test "$*" != "X $srcdir/configure conftest.file" \ 2583 && test "$*" != "X conftest.file $srcdir/configure"; then 2584 2585 # If neither matched, then we have a broken ls. This can happen 2586 # if, for instance, CONFIG_SHELL is bash and it inherits a 2587 # broken ls alias from the environment. This has actually 2588 # happened. Such a system could not be considered "sane". 2589 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2590 alias in your environment" "$LINENO" 5 2591 fi 2592 if test "$2" = conftest.file || test $am_try -eq 2; then 2593 break 2594 fi 2595 # Just in case. 2596 sleep 1 2597 am_has_slept=yes 2598 done 2599 test "$2" = conftest.file 2600 ) 2601then 2602 # Ok. 2603 : 2604else 2605 as_fn_error $? "newly created file is older than distributed files! 2606Check your system clock" "$LINENO" 5 2607fi 2608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2609$as_echo "yes" >&6; } 2610# If we didn't sleep, we still need to ensure time stamps of config.status and 2611# generated files are strictly newer. 2612am_sleep_pid= 2613if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2614 ( sleep 1 ) & 2615 am_sleep_pid=$! 2616fi 2617 2618rm -f conftest.file 2619 2620test "$program_prefix" != NONE && 2621 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2622# Use a double $ so make ignores it. 2623test "$program_suffix" != NONE && 2624 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2625# Double any \ or $. 2626# By default was `s,x,x', remove it if useless. 2627ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2628program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2629 2630# Expand $ac_aux_dir to an absolute path. 2631am_aux_dir=`cd "$ac_aux_dir" && pwd` 2632 2633if test x"${MISSING+set}" != xset; then 2634 case $am_aux_dir in 2635 *\ * | *\ *) 2636 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2637 *) 2638 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2639 esac 2640fi 2641# Use eval to expand $SHELL 2642if eval "$MISSING --is-lightweight"; then 2643 am_missing_run="$MISSING " 2644else 2645 am_missing_run= 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2647$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2648fi 2649 2650if test x"${install_sh+set}" != xset; then 2651 case $am_aux_dir in 2652 *\ * | *\ *) 2653 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2654 *) 2655 install_sh="\${SHELL} $am_aux_dir/install-sh" 2656 esac 2657fi 2658 2659# Installed binaries are usually stripped using 'strip' when the user 2660# run "make install-strip". However 'strip' might not be the right 2661# tool to use in cross-compilation environments, therefore Automake 2662# will honor the 'STRIP' environment variable to overrule this program. 2663if test "$cross_compiling" != no; then 2664 if test -n "$ac_tool_prefix"; then 2665 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2666set dummy ${ac_tool_prefix}strip; ac_word=$2 2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2668$as_echo_n "checking for $ac_word... " >&6; } 2669if ${ac_cv_prog_STRIP+:} false; then : 2670 $as_echo_n "(cached) " >&6 2671else 2672 if test -n "$STRIP"; then 2673 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2674else 2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2676for as_dir in $PATH 2677do 2678 IFS=$as_save_IFS 2679 test -z "$as_dir" && as_dir=. 2680 for ac_exec_ext in '' $ac_executable_extensions; do 2681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2682 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2684 break 2 2685 fi 2686done 2687 done 2688IFS=$as_save_IFS 2689 2690fi 2691fi 2692STRIP=$ac_cv_prog_STRIP 2693if test -n "$STRIP"; then 2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2695$as_echo "$STRIP" >&6; } 2696else 2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2698$as_echo "no" >&6; } 2699fi 2700 2701 2702fi 2703if test -z "$ac_cv_prog_STRIP"; then 2704 ac_ct_STRIP=$STRIP 2705 # Extract the first word of "strip", so it can be a program name with args. 2706set dummy strip; ac_word=$2 2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2708$as_echo_n "checking for $ac_word... " >&6; } 2709if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2710 $as_echo_n "(cached) " >&6 2711else 2712 if test -n "$ac_ct_STRIP"; then 2713 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2714else 2715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2716for as_dir in $PATH 2717do 2718 IFS=$as_save_IFS 2719 test -z "$as_dir" && as_dir=. 2720 for ac_exec_ext in '' $ac_executable_extensions; do 2721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2722 ac_cv_prog_ac_ct_STRIP="strip" 2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2724 break 2 2725 fi 2726done 2727 done 2728IFS=$as_save_IFS 2729 2730fi 2731fi 2732ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2733if test -n "$ac_ct_STRIP"; then 2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2735$as_echo "$ac_ct_STRIP" >&6; } 2736else 2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2738$as_echo "no" >&6; } 2739fi 2740 2741 if test "x$ac_ct_STRIP" = x; then 2742 STRIP=":" 2743 else 2744 case $cross_compiling:$ac_tool_warned in 2745yes:) 2746{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2747$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2748ac_tool_warned=yes ;; 2749esac 2750 STRIP=$ac_ct_STRIP 2751 fi 2752else 2753 STRIP="$ac_cv_prog_STRIP" 2754fi 2755 2756fi 2757INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2758 2759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2760$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2761if test -z "$MKDIR_P"; then 2762 if ${ac_cv_path_mkdir+:} false; then : 2763 $as_echo_n "(cached) " >&6 2764else 2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2766for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2767do 2768 IFS=$as_save_IFS 2769 test -z "$as_dir" && as_dir=. 2770 for ac_prog in mkdir gmkdir; do 2771 for ac_exec_ext in '' $ac_executable_extensions; do 2772 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2773 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2774 'mkdir (GNU coreutils) '* | \ 2775 'mkdir (coreutils) '* | \ 2776 'mkdir (fileutils) '4.1*) 2777 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2778 break 3;; 2779 esac 2780 done 2781 done 2782 done 2783IFS=$as_save_IFS 2784 2785fi 2786 2787 test -d ./--version && rmdir ./--version 2788 if test "${ac_cv_path_mkdir+set}" = set; then 2789 MKDIR_P="$ac_cv_path_mkdir -p" 2790 else 2791 # As a last resort, use the slow shell script. Don't cache a 2792 # value for MKDIR_P within a source directory, because that will 2793 # break other packages using the cache if that directory is 2794 # removed, or if the value is a relative name. 2795 MKDIR_P="$ac_install_sh -d" 2796 fi 2797fi 2798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2799$as_echo "$MKDIR_P" >&6; } 2800 2801for ac_prog in gawk mawk nawk awk 2802do 2803 # Extract the first word of "$ac_prog", so it can be a program name with args. 2804set dummy $ac_prog; ac_word=$2 2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2806$as_echo_n "checking for $ac_word... " >&6; } 2807if ${ac_cv_prog_AWK+:} false; then : 2808 $as_echo_n "(cached) " >&6 2809else 2810 if test -n "$AWK"; then 2811 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2812else 2813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2814for as_dir in $PATH 2815do 2816 IFS=$as_save_IFS 2817 test -z "$as_dir" && as_dir=. 2818 for ac_exec_ext in '' $ac_executable_extensions; do 2819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2820 ac_cv_prog_AWK="$ac_prog" 2821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2822 break 2 2823 fi 2824done 2825 done 2826IFS=$as_save_IFS 2827 2828fi 2829fi 2830AWK=$ac_cv_prog_AWK 2831if test -n "$AWK"; then 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2833$as_echo "$AWK" >&6; } 2834else 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2836$as_echo "no" >&6; } 2837fi 2838 2839 2840 test -n "$AWK" && break 2841done 2842 2843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2844$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2845set x ${MAKE-make} 2846ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2847if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2848 $as_echo_n "(cached) " >&6 2849else 2850 cat >conftest.make <<\_ACEOF 2851SHELL = /bin/sh 2852all: 2853 @echo '@@@%%%=$(MAKE)=@@@%%%' 2854_ACEOF 2855# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2856case `${MAKE-make} -f conftest.make 2>/dev/null` in 2857 *@@@%%%=?*=@@@%%%*) 2858 eval ac_cv_prog_make_${ac_make}_set=yes;; 2859 *) 2860 eval ac_cv_prog_make_${ac_make}_set=no;; 2861esac 2862rm -f conftest.make 2863fi 2864if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2866$as_echo "yes" >&6; } 2867 SET_MAKE= 2868else 2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2870$as_echo "no" >&6; } 2871 SET_MAKE="MAKE=${MAKE-make}" 2872fi 2873 2874rm -rf .tst 2>/dev/null 2875mkdir .tst 2>/dev/null 2876if test -d .tst; then 2877 am__leading_dot=. 2878else 2879 am__leading_dot=_ 2880fi 2881rmdir .tst 2>/dev/null 2882 2883# Check whether --enable-silent-rules was given. 2884if test "${enable_silent_rules+set}" = set; then : 2885 enableval=$enable_silent_rules; 2886fi 2887 2888case $enable_silent_rules in # ((( 2889 yes) AM_DEFAULT_VERBOSITY=0;; 2890 no) AM_DEFAULT_VERBOSITY=1;; 2891 *) AM_DEFAULT_VERBOSITY=1;; 2892esac 2893am_make=${MAKE-make} 2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2895$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2896if ${am_cv_make_support_nested_variables+:} false; then : 2897 $as_echo_n "(cached) " >&6 2898else 2899 if $as_echo 'TRUE=$(BAR$(V)) 2900BAR0=false 2901BAR1=true 2902V=1 2903am__doit: 2904 @$(TRUE) 2905.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2906 am_cv_make_support_nested_variables=yes 2907else 2908 am_cv_make_support_nested_variables=no 2909fi 2910fi 2911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2912$as_echo "$am_cv_make_support_nested_variables" >&6; } 2913if test $am_cv_make_support_nested_variables = yes; then 2914 AM_V='$(V)' 2915 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2916else 2917 AM_V=$AM_DEFAULT_VERBOSITY 2918 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2919fi 2920AM_BACKSLASH='\' 2921 2922if test "`cd $srcdir && pwd`" != "`pwd`"; then 2923 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2924 # is not polluted with repeated "-I." 2925 am__isrc=' -I$(srcdir)' 2926 # test to see if srcdir already configured 2927 if test -f $srcdir/config.status; then 2928 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2929 fi 2930fi 2931 2932# test whether we have cygpath 2933if test -z "$CYGPATH_W"; then 2934 if (cygpath --version) >/dev/null 2>/dev/null; then 2935 CYGPATH_W='cygpath -w' 2936 else 2937 CYGPATH_W=echo 2938 fi 2939fi 2940 2941 2942# Define the identity of the package. 2943 PACKAGE='cosmosmash' 2944 VERSION='1.4.8' 2945 2946 2947cat >>confdefs.h <<_ACEOF 2948#define PACKAGE "$PACKAGE" 2949_ACEOF 2950 2951 2952cat >>confdefs.h <<_ACEOF 2953#define VERSION "$VERSION" 2954_ACEOF 2955 2956# Some tools Automake needs. 2957 2958ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2959 2960 2961AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2962 2963 2964AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2965 2966 2967AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2968 2969 2970MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2971 2972# For better backward compatibility. To be removed once Automake 1.9.x 2973# dies out for good. For more background, see: 2974# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2975# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2976mkdir_p='$(MKDIR_P)' 2977 2978# We need awk for the "check" target (and possibly the TAP driver). The 2979# system "awk" is bad on some platforms. 2980# Always define AMTAR for backward compatibility. Yes, it's still used 2981# in the wild :-( We should find a proper way to deprecate it ... 2982AMTAR='$${TAR-tar}' 2983 2984 2985# We'll loop over all known methods to create a tar archive until one works. 2986_am_tools='gnutar pax cpio none' 2987 2988am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2989 2990 2991 2992 2993 2994 2995# POSIX will say in a future version that running "rm -f" with no argument 2996# is OK; and we want to be able to make that assumption in our Makefile 2997# recipes. So use an aggressive probe to check that the usage we want is 2998# actually supported "in the wild" to an acceptable degree. 2999# See automake bug#10828. 3000# To make any issue more visible, cause the running configure to be aborted 3001# by default if the 'rm' program in use doesn't match our expectations; the 3002# user can still override this though. 3003if rm -f && rm -fr && rm -rf; then : OK; else 3004 cat >&2 <<'END' 3005Oops! 3006 3007Your 'rm' program seems unable to run without file operands specified 3008on the command line, even when the '-f' option is present. This is contrary 3009to the behaviour of most rm programs out there, and not conforming with 3010the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3011 3012Please tell bug-automake@gnu.org about your system, including the value 3013of your $PATH and any error possibly output before this message. This 3014can help us improve future automake versions. 3015 3016END 3017 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3018 echo 'Configuration will proceed anyway, since you have set the' >&2 3019 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3020 echo >&2 3021 else 3022 cat >&2 <<'END' 3023Aborting the configuration process, to ensure you take notice of the issue. 3024 3025You can download and install GNU coreutils to get an 'rm' implementation 3026that behaves properly: <http://www.gnu.org/software/coreutils/>. 3027 3028If you want to complete the configuration process using your problematic 3029'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3030to "yes", and re-run configure. 3031 3032END 3033 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3034 fi 3035fi 3036 3037 3038 3039MANUAL_DATE_EN="November 11th, 2019"; 3040 3041PACKAGE_FULL_NAME="Cosmosmash" 3042PACKAGE_SUMMARY_EN="A space rock shooting video game" 3043PACKAGE_SUMMARY_FR="Un jeu où l'on tire sur des roches spatiales" # UTF-8 3044PACKAGE_FULL_NAME_EN_CAPS="COSMOSMASH" 3045COPYRIGHT_YEARS="2000-2013" 3046 3047 3048 3049 3050 3051 3052 3053# Check whether --enable-static was given. 3054if test "${enable_static+set}" = set; then : 3055 enableval=$enable_static; p=${PACKAGE-default} 3056 case $enableval in 3057 yes) enable_static=yes ;; 3058 no) enable_static=no ;; 3059 *) 3060 enable_static=no 3061 # Look at the argument we got. We use all the common list separators. 3062 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3063 for pkg in $enableval; do 3064 IFS="$lt_save_ifs" 3065 if test "X$pkg" = "X$p"; then 3066 enable_static=yes 3067 fi 3068 done 3069 IFS="$lt_save_ifs" 3070 ;; 3071 esac 3072else 3073 enable_static=no 3074fi 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084case `pwd` in 3085 *\ * | *\ *) 3086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3087$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3088esac 3089 3090 3091 3092macro_version='2.4.2' 3093macro_revision='1.3337' 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107ltmain="$ac_aux_dir/ltmain.sh" 3108 3109# Make sure we can run config.sub. 3110$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3111 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3112 3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3114$as_echo_n "checking build system type... " >&6; } 3115if ${ac_cv_build+:} false; then : 3116 $as_echo_n "(cached) " >&6 3117else 3118 ac_build_alias=$build_alias 3119test "x$ac_build_alias" = x && 3120 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3121test "x$ac_build_alias" = x && 3122 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3123ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3124 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3125 3126fi 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3128$as_echo "$ac_cv_build" >&6; } 3129case $ac_cv_build in 3130*-*-*) ;; 3131*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3132esac 3133build=$ac_cv_build 3134ac_save_IFS=$IFS; IFS='-' 3135set x $ac_cv_build 3136shift 3137build_cpu=$1 3138build_vendor=$2 3139shift; shift 3140# Remember, the first character of IFS is used to create $*, 3141# except with old shells: 3142build_os=$* 3143IFS=$ac_save_IFS 3144case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3145 3146 3147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3148$as_echo_n "checking host system type... " >&6; } 3149if ${ac_cv_host+:} false; then : 3150 $as_echo_n "(cached) " >&6 3151else 3152 if test "x$host_alias" = x; then 3153 ac_cv_host=$ac_cv_build 3154else 3155 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3156 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3157fi 3158 3159fi 3160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3161$as_echo "$ac_cv_host" >&6; } 3162case $ac_cv_host in 3163*-*-*) ;; 3164*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3165esac 3166host=$ac_cv_host 3167ac_save_IFS=$IFS; IFS='-' 3168set x $ac_cv_host 3169shift 3170host_cpu=$1 3171host_vendor=$2 3172shift; shift 3173# Remember, the first character of IFS is used to create $*, 3174# except with old shells: 3175host_os=$* 3176IFS=$ac_save_IFS 3177case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3178 3179 3180# Backslashify metacharacters that are still active within 3181# double-quoted strings. 3182sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3183 3184# Same as above, but do not quote variable references. 3185double_quote_subst='s/\(["`\\]\)/\\\1/g' 3186 3187# Sed substitution to delay expansion of an escaped shell variable in a 3188# double_quote_subst'ed string. 3189delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3190 3191# Sed substitution to delay expansion of an escaped single quote. 3192delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3193 3194# Sed substitution to avoid accidental globbing in evaled expressions 3195no_glob_subst='s/\*/\\\*/g' 3196 3197ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3198ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3199ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3200 3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3202$as_echo_n "checking how to print strings... " >&6; } 3203# Test print first, because it will be a builtin if present. 3204if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3205 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3206 ECHO='print -r --' 3207elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3208 ECHO='printf %s\n' 3209else 3210 # Use this function as a fallback that always works. 3211 func_fallback_echo () 3212 { 3213 eval 'cat <<_LTECHO_EOF 3214$1 3215_LTECHO_EOF' 3216 } 3217 ECHO='func_fallback_echo' 3218fi 3219 3220# func_echo_all arg... 3221# Invoke $ECHO with all args, space-separated. 3222func_echo_all () 3223{ 3224 $ECHO "" 3225} 3226 3227case "$ECHO" in 3228 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3229$as_echo "printf" >&6; } ;; 3230 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3231$as_echo "print -r" >&6; } ;; 3232 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3233$as_echo "cat" >&6; } ;; 3234esac 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249DEPDIR="${am__leading_dot}deps" 3250 3251ac_config_commands="$ac_config_commands depfiles" 3252 3253 3254am_make=${MAKE-make} 3255cat > confinc << 'END' 3256am__doit: 3257 @echo this is the am__doit target 3258.PHONY: am__doit 3259END 3260# If we don't find an include directive, just comment out the code. 3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3262$as_echo_n "checking for style of include used by $am_make... " >&6; } 3263am__include="#" 3264am__quote= 3265_am_result=none 3266# First try GNU make style include. 3267echo "include confinc" > confmf 3268# Ignore all kinds of additional output from 'make'. 3269case `$am_make -s -f confmf 2> /dev/null` in #( 3270*the\ am__doit\ target*) 3271 am__include=include 3272 am__quote= 3273 _am_result=GNU 3274 ;; 3275esac 3276# Now try BSD make style include. 3277if test "$am__include" = "#"; then 3278 echo '.include "confinc"' > confmf 3279 case `$am_make -s -f confmf 2> /dev/null` in #( 3280 *the\ am__doit\ target*) 3281 am__include=.include 3282 am__quote="\"" 3283 _am_result=BSD 3284 ;; 3285 esac 3286fi 3287 3288 3289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3290$as_echo "$_am_result" >&6; } 3291rm -f confinc confmf 3292 3293# Check whether --enable-dependency-tracking was given. 3294if test "${enable_dependency_tracking+set}" = set; then : 3295 enableval=$enable_dependency_tracking; 3296fi 3297 3298if test "x$enable_dependency_tracking" != xno; then 3299 am_depcomp="$ac_aux_dir/depcomp" 3300 AMDEPBACKSLASH='\' 3301 am__nodep='_no' 3302fi 3303 if test "x$enable_dependency_tracking" != xno; then 3304 AMDEP_TRUE= 3305 AMDEP_FALSE='#' 3306else 3307 AMDEP_TRUE='#' 3308 AMDEP_FALSE= 3309fi 3310 3311 3312ac_ext=c 3313ac_cpp='$CPP $CPPFLAGS' 3314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3316ac_compiler_gnu=$ac_cv_c_compiler_gnu 3317if test -n "$ac_tool_prefix"; then 3318 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3319set dummy ${ac_tool_prefix}gcc; ac_word=$2 3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3321$as_echo_n "checking for $ac_word... " >&6; } 3322if ${ac_cv_prog_CC+:} false; then : 3323 $as_echo_n "(cached) " >&6 3324else 3325 if test -n "$CC"; then 3326 ac_cv_prog_CC="$CC" # Let the user override the test. 3327else 3328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3329for as_dir in $PATH 3330do 3331 IFS=$as_save_IFS 3332 test -z "$as_dir" && as_dir=. 3333 for ac_exec_ext in '' $ac_executable_extensions; do 3334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3335 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3337 break 2 3338 fi 3339done 3340 done 3341IFS=$as_save_IFS 3342 3343fi 3344fi 3345CC=$ac_cv_prog_CC 3346if test -n "$CC"; then 3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3348$as_echo "$CC" >&6; } 3349else 3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3351$as_echo "no" >&6; } 3352fi 3353 3354 3355fi 3356if test -z "$ac_cv_prog_CC"; then 3357 ac_ct_CC=$CC 3358 # Extract the first word of "gcc", so it can be a program name with args. 3359set dummy gcc; ac_word=$2 3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3361$as_echo_n "checking for $ac_word... " >&6; } 3362if ${ac_cv_prog_ac_ct_CC+:} false; then : 3363 $as_echo_n "(cached) " >&6 3364else 3365 if test -n "$ac_ct_CC"; then 3366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3367else 3368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3369for as_dir in $PATH 3370do 3371 IFS=$as_save_IFS 3372 test -z "$as_dir" && as_dir=. 3373 for ac_exec_ext in '' $ac_executable_extensions; do 3374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3375 ac_cv_prog_ac_ct_CC="gcc" 3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3377 break 2 3378 fi 3379done 3380 done 3381IFS=$as_save_IFS 3382 3383fi 3384fi 3385ac_ct_CC=$ac_cv_prog_ac_ct_CC 3386if test -n "$ac_ct_CC"; then 3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3388$as_echo "$ac_ct_CC" >&6; } 3389else 3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3391$as_echo "no" >&6; } 3392fi 3393 3394 if test "x$ac_ct_CC" = x; then 3395 CC="" 3396 else 3397 case $cross_compiling:$ac_tool_warned in 3398yes:) 3399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3401ac_tool_warned=yes ;; 3402esac 3403 CC=$ac_ct_CC 3404 fi 3405else 3406 CC="$ac_cv_prog_CC" 3407fi 3408 3409if test -z "$CC"; then 3410 if test -n "$ac_tool_prefix"; then 3411 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3412set dummy ${ac_tool_prefix}cc; ac_word=$2 3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3414$as_echo_n "checking for $ac_word... " >&6; } 3415if ${ac_cv_prog_CC+:} false; then : 3416 $as_echo_n "(cached) " >&6 3417else 3418 if test -n "$CC"; then 3419 ac_cv_prog_CC="$CC" # Let the user override the test. 3420else 3421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3422for as_dir in $PATH 3423do 3424 IFS=$as_save_IFS 3425 test -z "$as_dir" && as_dir=. 3426 for ac_exec_ext in '' $ac_executable_extensions; do 3427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3428 ac_cv_prog_CC="${ac_tool_prefix}cc" 3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3430 break 2 3431 fi 3432done 3433 done 3434IFS=$as_save_IFS 3435 3436fi 3437fi 3438CC=$ac_cv_prog_CC 3439if test -n "$CC"; then 3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3441$as_echo "$CC" >&6; } 3442else 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3444$as_echo "no" >&6; } 3445fi 3446 3447 3448 fi 3449fi 3450if test -z "$CC"; then 3451 # Extract the first word of "cc", so it can be a program name with args. 3452set dummy cc; ac_word=$2 3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3454$as_echo_n "checking for $ac_word... " >&6; } 3455if ${ac_cv_prog_CC+:} false; then : 3456 $as_echo_n "(cached) " >&6 3457else 3458 if test -n "$CC"; then 3459 ac_cv_prog_CC="$CC" # Let the user override the test. 3460else 3461 ac_prog_rejected=no 3462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3463for as_dir in $PATH 3464do 3465 IFS=$as_save_IFS 3466 test -z "$as_dir" && as_dir=. 3467 for ac_exec_ext in '' $ac_executable_extensions; do 3468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3469 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3470 ac_prog_rejected=yes 3471 continue 3472 fi 3473 ac_cv_prog_CC="cc" 3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3475 break 2 3476 fi 3477done 3478 done 3479IFS=$as_save_IFS 3480 3481if test $ac_prog_rejected = yes; then 3482 # We found a bogon in the path, so make sure we never use it. 3483 set dummy $ac_cv_prog_CC 3484 shift 3485 if test $# != 0; then 3486 # We chose a different compiler from the bogus one. 3487 # However, it has the same basename, so the bogon will be chosen 3488 # first if we set CC to just the basename; use the full file name. 3489 shift 3490 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3491 fi 3492fi 3493fi 3494fi 3495CC=$ac_cv_prog_CC 3496if test -n "$CC"; then 3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3498$as_echo "$CC" >&6; } 3499else 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3501$as_echo "no" >&6; } 3502fi 3503 3504 3505fi 3506if test -z "$CC"; then 3507 if test -n "$ac_tool_prefix"; then 3508 for ac_prog in cl.exe 3509 do 3510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3511set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3513$as_echo_n "checking for $ac_word... " >&6; } 3514if ${ac_cv_prog_CC+:} false; then : 3515 $as_echo_n "(cached) " >&6 3516else 3517 if test -n "$CC"; then 3518 ac_cv_prog_CC="$CC" # Let the user override the test. 3519else 3520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3521for as_dir in $PATH 3522do 3523 IFS=$as_save_IFS 3524 test -z "$as_dir" && as_dir=. 3525 for ac_exec_ext in '' $ac_executable_extensions; do 3526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3527 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3529 break 2 3530 fi 3531done 3532 done 3533IFS=$as_save_IFS 3534 3535fi 3536fi 3537CC=$ac_cv_prog_CC 3538if test -n "$CC"; then 3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3540$as_echo "$CC" >&6; } 3541else 3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3543$as_echo "no" >&6; } 3544fi 3545 3546 3547 test -n "$CC" && break 3548 done 3549fi 3550if test -z "$CC"; then 3551 ac_ct_CC=$CC 3552 for ac_prog in cl.exe 3553do 3554 # Extract the first word of "$ac_prog", so it can be a program name with args. 3555set dummy $ac_prog; ac_word=$2 3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3557$as_echo_n "checking for $ac_word... " >&6; } 3558if ${ac_cv_prog_ac_ct_CC+:} false; then : 3559 $as_echo_n "(cached) " >&6 3560else 3561 if test -n "$ac_ct_CC"; then 3562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3563else 3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3565for as_dir in $PATH 3566do 3567 IFS=$as_save_IFS 3568 test -z "$as_dir" && as_dir=. 3569 for ac_exec_ext in '' $ac_executable_extensions; do 3570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3571 ac_cv_prog_ac_ct_CC="$ac_prog" 3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3573 break 2 3574 fi 3575done 3576 done 3577IFS=$as_save_IFS 3578 3579fi 3580fi 3581ac_ct_CC=$ac_cv_prog_ac_ct_CC 3582if test -n "$ac_ct_CC"; then 3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3584$as_echo "$ac_ct_CC" >&6; } 3585else 3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3587$as_echo "no" >&6; } 3588fi 3589 3590 3591 test -n "$ac_ct_CC" && break 3592done 3593 3594 if test "x$ac_ct_CC" = x; then 3595 CC="" 3596 else 3597 case $cross_compiling:$ac_tool_warned in 3598yes:) 3599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3601ac_tool_warned=yes ;; 3602esac 3603 CC=$ac_ct_CC 3604 fi 3605fi 3606 3607fi 3608 3609 3610test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3612as_fn_error $? "no acceptable C compiler found in \$PATH 3613See \`config.log' for more details" "$LINENO" 5; } 3614 3615# Provide some information about the compiler. 3616$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3617set X $ac_compile 3618ac_compiler=$2 3619for ac_option in --version -v -V -qversion; do 3620 { { ac_try="$ac_compiler $ac_option >&5" 3621case "(($ac_try" in 3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3623 *) ac_try_echo=$ac_try;; 3624esac 3625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3626$as_echo "$ac_try_echo"; } >&5 3627 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3628 ac_status=$? 3629 if test -s conftest.err; then 3630 sed '10a\ 3631... rest of stderr output deleted ... 3632 10q' conftest.err >conftest.er1 3633 cat conftest.er1 >&5 3634 fi 3635 rm -f conftest.er1 conftest.err 3636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3637 test $ac_status = 0; } 3638done 3639 3640cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3641/* end confdefs.h. */ 3642 3643int 3644main () 3645{ 3646 3647 ; 3648 return 0; 3649} 3650_ACEOF 3651ac_clean_files_save=$ac_clean_files 3652ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3653# Try to create an executable without -o first, disregard a.out. 3654# It will help us diagnose broken compilers, and finding out an intuition 3655# of exeext. 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3657$as_echo_n "checking whether the C compiler works... " >&6; } 3658ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3659 3660# The possible output files: 3661ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3662 3663ac_rmfiles= 3664for ac_file in $ac_files 3665do 3666 case $ac_file in 3667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3668 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3669 esac 3670done 3671rm -f $ac_rmfiles 3672 3673if { { ac_try="$ac_link_default" 3674case "(($ac_try" in 3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3676 *) ac_try_echo=$ac_try;; 3677esac 3678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3679$as_echo "$ac_try_echo"; } >&5 3680 (eval "$ac_link_default") 2>&5 3681 ac_status=$? 3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3683 test $ac_status = 0; }; then : 3684 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3685# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3686# in a Makefile. We should not override ac_cv_exeext if it was cached, 3687# so that the user can short-circuit this test for compilers unknown to 3688# Autoconf. 3689for ac_file in $ac_files '' 3690do 3691 test -f "$ac_file" || continue 3692 case $ac_file in 3693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3694 ;; 3695 [ab].out ) 3696 # We found the default executable, but exeext='' is most 3697 # certainly right. 3698 break;; 3699 *.* ) 3700 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3701 then :; else 3702 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3703 fi 3704 # We set ac_cv_exeext here because the later test for it is not 3705 # safe: cross compilers may not add the suffix if given an `-o' 3706 # argument, so we may need to know it at that point already. 3707 # Even if this section looks crufty: it has the advantage of 3708 # actually working. 3709 break;; 3710 * ) 3711 break;; 3712 esac 3713done 3714test "$ac_cv_exeext" = no && ac_cv_exeext= 3715 3716else 3717 ac_file='' 3718fi 3719if test -z "$ac_file"; then : 3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3721$as_echo "no" >&6; } 3722$as_echo "$as_me: failed program was:" >&5 3723sed 's/^/| /' conftest.$ac_ext >&5 3724 3725{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3726$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3727as_fn_error 77 "C compiler cannot create executables 3728See \`config.log' for more details" "$LINENO" 5; } 3729else 3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3731$as_echo "yes" >&6; } 3732fi 3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3734$as_echo_n "checking for C compiler default output file name... " >&6; } 3735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3736$as_echo "$ac_file" >&6; } 3737ac_exeext=$ac_cv_exeext 3738 3739rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3740ac_clean_files=$ac_clean_files_save 3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3742$as_echo_n "checking for suffix of executables... " >&6; } 3743if { { ac_try="$ac_link" 3744case "(($ac_try" in 3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3746 *) ac_try_echo=$ac_try;; 3747esac 3748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3749$as_echo "$ac_try_echo"; } >&5 3750 (eval "$ac_link") 2>&5 3751 ac_status=$? 3752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3753 test $ac_status = 0; }; then : 3754 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3755# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3756# work properly (i.e., refer to `conftest.exe'), while it won't with 3757# `rm'. 3758for ac_file in conftest.exe conftest conftest.*; do 3759 test -f "$ac_file" || continue 3760 case $ac_file in 3761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3762 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3763 break;; 3764 * ) break;; 3765 esac 3766done 3767else 3768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3770as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3771See \`config.log' for more details" "$LINENO" 5; } 3772fi 3773rm -f conftest conftest$ac_cv_exeext 3774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3775$as_echo "$ac_cv_exeext" >&6; } 3776 3777rm -f conftest.$ac_ext 3778EXEEXT=$ac_cv_exeext 3779ac_exeext=$EXEEXT 3780cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3781/* end confdefs.h. */ 3782#include <stdio.h> 3783int 3784main () 3785{ 3786FILE *f = fopen ("conftest.out", "w"); 3787 return ferror (f) || fclose (f) != 0; 3788 3789 ; 3790 return 0; 3791} 3792_ACEOF 3793ac_clean_files="$ac_clean_files conftest.out" 3794# Check that the compiler produces executables we can run. If not, either 3795# the compiler is broken, or we cross compile. 3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3797$as_echo_n "checking whether we are cross compiling... " >&6; } 3798if test "$cross_compiling" != yes; then 3799 { { ac_try="$ac_link" 3800case "(($ac_try" in 3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3802 *) ac_try_echo=$ac_try;; 3803esac 3804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3805$as_echo "$ac_try_echo"; } >&5 3806 (eval "$ac_link") 2>&5 3807 ac_status=$? 3808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3809 test $ac_status = 0; } 3810 if { ac_try='./conftest$ac_cv_exeext' 3811 { { case "(($ac_try" in 3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3813 *) ac_try_echo=$ac_try;; 3814esac 3815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3816$as_echo "$ac_try_echo"; } >&5 3817 (eval "$ac_try") 2>&5 3818 ac_status=$? 3819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3820 test $ac_status = 0; }; }; then 3821 cross_compiling=no 3822 else 3823 if test "$cross_compiling" = maybe; then 3824 cross_compiling=yes 3825 else 3826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3828as_fn_error $? "cannot run C compiled programs. 3829If you meant to cross compile, use \`--host'. 3830See \`config.log' for more details" "$LINENO" 5; } 3831 fi 3832 fi 3833fi 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3835$as_echo "$cross_compiling" >&6; } 3836 3837rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3838ac_clean_files=$ac_clean_files_save 3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3840$as_echo_n "checking for suffix of object files... " >&6; } 3841if ${ac_cv_objext+:} false; then : 3842 $as_echo_n "(cached) " >&6 3843else 3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3845/* end confdefs.h. */ 3846 3847int 3848main () 3849{ 3850 3851 ; 3852 return 0; 3853} 3854_ACEOF 3855rm -f conftest.o conftest.obj 3856if { { ac_try="$ac_compile" 3857case "(($ac_try" in 3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3859 *) ac_try_echo=$ac_try;; 3860esac 3861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3862$as_echo "$ac_try_echo"; } >&5 3863 (eval "$ac_compile") 2>&5 3864 ac_status=$? 3865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3866 test $ac_status = 0; }; then : 3867 for ac_file in conftest.o conftest.obj conftest.*; do 3868 test -f "$ac_file" || continue; 3869 case $ac_file in 3870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3871 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3872 break;; 3873 esac 3874done 3875else 3876 $as_echo "$as_me: failed program was:" >&5 3877sed 's/^/| /' conftest.$ac_ext >&5 3878 3879{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3880$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3881as_fn_error $? "cannot compute suffix of object files: cannot compile 3882See \`config.log' for more details" "$LINENO" 5; } 3883fi 3884rm -f conftest.$ac_cv_objext conftest.$ac_ext 3885fi 3886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3887$as_echo "$ac_cv_objext" >&6; } 3888OBJEXT=$ac_cv_objext 3889ac_objext=$OBJEXT 3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3891$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3892if ${ac_cv_c_compiler_gnu+:} false; then : 3893 $as_echo_n "(cached) " >&6 3894else 3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3896/* end confdefs.h. */ 3897 3898int 3899main () 3900{ 3901#ifndef __GNUC__ 3902 choke me 3903#endif 3904 3905 ; 3906 return 0; 3907} 3908_ACEOF 3909if ac_fn_c_try_compile "$LINENO"; then : 3910 ac_compiler_gnu=yes 3911else 3912 ac_compiler_gnu=no 3913fi 3914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3915ac_cv_c_compiler_gnu=$ac_compiler_gnu 3916 3917fi 3918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3919$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3920if test $ac_compiler_gnu = yes; then 3921 GCC=yes 3922else 3923 GCC= 3924fi 3925ac_test_CFLAGS=${CFLAGS+set} 3926ac_save_CFLAGS=$CFLAGS 3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3928$as_echo_n "checking whether $CC accepts -g... " >&6; } 3929if ${ac_cv_prog_cc_g+:} false; then : 3930 $as_echo_n "(cached) " >&6 3931else 3932 ac_save_c_werror_flag=$ac_c_werror_flag 3933 ac_c_werror_flag=yes 3934 ac_cv_prog_cc_g=no 3935 CFLAGS="-g" 3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3937/* end confdefs.h. */ 3938 3939int 3940main () 3941{ 3942 3943 ; 3944 return 0; 3945} 3946_ACEOF 3947if ac_fn_c_try_compile "$LINENO"; then : 3948 ac_cv_prog_cc_g=yes 3949else 3950 CFLAGS="" 3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3952/* end confdefs.h. */ 3953 3954int 3955main () 3956{ 3957 3958 ; 3959 return 0; 3960} 3961_ACEOF 3962if ac_fn_c_try_compile "$LINENO"; then : 3963 3964else 3965 ac_c_werror_flag=$ac_save_c_werror_flag 3966 CFLAGS="-g" 3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3968/* end confdefs.h. */ 3969 3970int 3971main () 3972{ 3973 3974 ; 3975 return 0; 3976} 3977_ACEOF 3978if ac_fn_c_try_compile "$LINENO"; then : 3979 ac_cv_prog_cc_g=yes 3980fi 3981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3982fi 3983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3984fi 3985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3986 ac_c_werror_flag=$ac_save_c_werror_flag 3987fi 3988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3989$as_echo "$ac_cv_prog_cc_g" >&6; } 3990if test "$ac_test_CFLAGS" = set; then 3991 CFLAGS=$ac_save_CFLAGS 3992elif test $ac_cv_prog_cc_g = yes; then 3993 if test "$GCC" = yes; then 3994 CFLAGS="-g -O2" 3995 else 3996 CFLAGS="-g" 3997 fi 3998else 3999 if test "$GCC" = yes; then 4000 CFLAGS="-O2" 4001 else 4002 CFLAGS= 4003 fi 4004fi 4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4006$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4007if ${ac_cv_prog_cc_c89+:} false; then : 4008 $as_echo_n "(cached) " >&6 4009else 4010 ac_cv_prog_cc_c89=no 4011ac_save_CC=$CC 4012cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4013/* end confdefs.h. */ 4014#include <stdarg.h> 4015#include <stdio.h> 4016struct stat; 4017/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4018struct buf { int x; }; 4019FILE * (*rcsopen) (struct buf *, struct stat *, int); 4020static char *e (p, i) 4021 char **p; 4022 int i; 4023{ 4024 return p[i]; 4025} 4026static char *f (char * (*g) (char **, int), char **p, ...) 4027{ 4028 char *s; 4029 va_list v; 4030 va_start (v,p); 4031 s = g (p, va_arg (v,int)); 4032 va_end (v); 4033 return s; 4034} 4035 4036/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4037 function prototypes and stuff, but not '\xHH' hex character constants. 4038 These don't provoke an error unfortunately, instead are silently treated 4039 as 'x'. The following induces an error, until -std is added to get 4040 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4041 array size at least. It's necessary to write '\x00'==0 to get something 4042 that's true only with -std. */ 4043int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4044 4045/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4046 inside strings and character constants. */ 4047#define FOO(x) 'x' 4048int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4049 4050int test (int i, double x); 4051struct s1 {int (*f) (int a);}; 4052struct s2 {int (*f) (double a);}; 4053int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4054int argc; 4055char **argv; 4056int 4057main () 4058{ 4059return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4060 ; 4061 return 0; 4062} 4063_ACEOF 4064for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4065 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4066do 4067 CC="$ac_save_CC $ac_arg" 4068 if ac_fn_c_try_compile "$LINENO"; then : 4069 ac_cv_prog_cc_c89=$ac_arg 4070fi 4071rm -f core conftest.err conftest.$ac_objext 4072 test "x$ac_cv_prog_cc_c89" != "xno" && break 4073done 4074rm -f conftest.$ac_ext 4075CC=$ac_save_CC 4076 4077fi 4078# AC_CACHE_VAL 4079case "x$ac_cv_prog_cc_c89" in 4080 x) 4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4082$as_echo "none needed" >&6; } ;; 4083 xno) 4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4085$as_echo "unsupported" >&6; } ;; 4086 *) 4087 CC="$CC $ac_cv_prog_cc_c89" 4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4089$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4090esac 4091if test "x$ac_cv_prog_cc_c89" != xno; then : 4092 4093fi 4094 4095ac_ext=c 4096ac_cpp='$CPP $CPPFLAGS' 4097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4099ac_compiler_gnu=$ac_cv_c_compiler_gnu 4100 4101ac_ext=c 4102ac_cpp='$CPP $CPPFLAGS' 4103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4105ac_compiler_gnu=$ac_cv_c_compiler_gnu 4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4107$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4108if ${am_cv_prog_cc_c_o+:} false; then : 4109 $as_echo_n "(cached) " >&6 4110else 4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4112/* end confdefs.h. */ 4113 4114int 4115main () 4116{ 4117 4118 ; 4119 return 0; 4120} 4121_ACEOF 4122 # Make sure it works both with $CC and with simple cc. 4123 # Following AC_PROG_CC_C_O, we do the test twice because some 4124 # compilers refuse to overwrite an existing .o file with -o, 4125 # though they will create one. 4126 am_cv_prog_cc_c_o=yes 4127 for am_i in 1 2; do 4128 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4129 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4130 ac_status=$? 4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4132 (exit $ac_status); } \ 4133 && test -f conftest2.$ac_objext; then 4134 : OK 4135 else 4136 am_cv_prog_cc_c_o=no 4137 break 4138 fi 4139 done 4140 rm -f core conftest* 4141 unset am_i 4142fi 4143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4144$as_echo "$am_cv_prog_cc_c_o" >&6; } 4145if test "$am_cv_prog_cc_c_o" != yes; then 4146 # Losing compiler, so override with the script. 4147 # FIXME: It is wrong to rewrite CC. 4148 # But if we don't then we get into trouble of one sort or another. 4149 # A longer-term fix would be to have automake use am__CC in this case, 4150 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4151 CC="$am_aux_dir/compile $CC" 4152fi 4153ac_ext=c 4154ac_cpp='$CPP $CPPFLAGS' 4155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4157ac_compiler_gnu=$ac_cv_c_compiler_gnu 4158 4159 4160depcc="$CC" am_compiler_list= 4161 4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4163$as_echo_n "checking dependency style of $depcc... " >&6; } 4164if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4165 $as_echo_n "(cached) " >&6 4166else 4167 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4168 # We make a subdir and do the tests there. Otherwise we can end up 4169 # making bogus files that we don't know about and never remove. For 4170 # instance it was reported that on HP-UX the gcc test will end up 4171 # making a dummy file named 'D' -- because '-MD' means "put the output 4172 # in D". 4173 rm -rf conftest.dir 4174 mkdir conftest.dir 4175 # Copy depcomp to subdir because otherwise we won't find it if we're 4176 # using a relative directory. 4177 cp "$am_depcomp" conftest.dir 4178 cd conftest.dir 4179 # We will build objects and dependencies in a subdirectory because 4180 # it helps to detect inapplicable dependency modes. For instance 4181 # both Tru64's cc and ICC support -MD to output dependencies as a 4182 # side effect of compilation, but ICC will put the dependencies in 4183 # the current directory while Tru64 will put them in the object 4184 # directory. 4185 mkdir sub 4186 4187 am_cv_CC_dependencies_compiler_type=none 4188 if test "$am_compiler_list" = ""; then 4189 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4190 fi 4191 am__universal=false 4192 case " $depcc " in #( 4193 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4194 esac 4195 4196 for depmode in $am_compiler_list; do 4197 # Setup a source with many dependencies, because some compilers 4198 # like to wrap large dependency lists on column 80 (with \), and 4199 # we should not choose a depcomp mode which is confused by this. 4200 # 4201 # We need to recreate these files for each test, as the compiler may 4202 # overwrite some of them when testing with obscure command lines. 4203 # This happens at least with the AIX C compiler. 4204 : > sub/conftest.c 4205 for i in 1 2 3 4 5 6; do 4206 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4207 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4208 # Solaris 10 /bin/sh. 4209 echo '/* dummy */' > sub/conftst$i.h 4210 done 4211 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4212 4213 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4214 # mode. It turns out that the SunPro C++ compiler does not properly 4215 # handle '-M -o', and we need to detect this. Also, some Intel 4216 # versions had trouble with output in subdirs. 4217 am__obj=sub/conftest.${OBJEXT-o} 4218 am__minus_obj="-o $am__obj" 4219 case $depmode in 4220 gcc) 4221 # This depmode causes a compiler race in universal mode. 4222 test "$am__universal" = false || continue 4223 ;; 4224 nosideeffect) 4225 # After this tag, mechanisms are not by side-effect, so they'll 4226 # only be used when explicitly requested. 4227 if test "x$enable_dependency_tracking" = xyes; then 4228 continue 4229 else 4230 break 4231 fi 4232 ;; 4233 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4234 # This compiler won't grok '-c -o', but also, the minuso test has 4235 # not run yet. These depmodes are late enough in the game, and 4236 # so weak that their functioning should not be impacted. 4237 am__obj=conftest.${OBJEXT-o} 4238 am__minus_obj= 4239 ;; 4240 none) break ;; 4241 esac 4242 if depmode=$depmode \ 4243 source=sub/conftest.c object=$am__obj \ 4244 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4245 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4246 >/dev/null 2>conftest.err && 4247 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4248 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4249 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4250 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4251 # icc doesn't choke on unknown options, it will just issue warnings 4252 # or remarks (even with -Werror). So we grep stderr for any message 4253 # that says an option was ignored or not supported. 4254 # When given -MP, icc 7.0 and 7.1 complain thusly: 4255 # icc: Command line warning: ignoring option '-M'; no argument required 4256 # The diagnosis changed in icc 8.0: 4257 # icc: Command line remark: option '-MP' not supported 4258 if (grep 'ignoring option' conftest.err || 4259 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4260 am_cv_CC_dependencies_compiler_type=$depmode 4261 break 4262 fi 4263 fi 4264 done 4265 4266 cd .. 4267 rm -rf conftest.dir 4268else 4269 am_cv_CC_dependencies_compiler_type=none 4270fi 4271 4272fi 4273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4274$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4275CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4276 4277 if 4278 test "x$enable_dependency_tracking" != xno \ 4279 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4280 am__fastdepCC_TRUE= 4281 am__fastdepCC_FALSE='#' 4282else 4283 am__fastdepCC_TRUE='#' 4284 am__fastdepCC_FALSE= 4285fi 4286 4287 4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4289$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4290if ${ac_cv_path_SED+:} false; then : 4291 $as_echo_n "(cached) " >&6 4292else 4293 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4294 for ac_i in 1 2 3 4 5 6 7; do 4295 ac_script="$ac_script$as_nl$ac_script" 4296 done 4297 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4298 { ac_script=; unset ac_script;} 4299 if test -z "$SED"; then 4300 ac_path_SED_found=false 4301 # Loop through the user's path and test for each of PROGNAME-LIST 4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4303for as_dir in $PATH 4304do 4305 IFS=$as_save_IFS 4306 test -z "$as_dir" && as_dir=. 4307 for ac_prog in sed gsed; do 4308 for ac_exec_ext in '' $ac_executable_extensions; do 4309 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4310 as_fn_executable_p "$ac_path_SED" || continue 4311# Check for GNU ac_path_SED and select it if it is found. 4312 # Check for GNU $ac_path_SED 4313case `"$ac_path_SED" --version 2>&1` in 4314*GNU*) 4315 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4316*) 4317 ac_count=0 4318 $as_echo_n 0123456789 >"conftest.in" 4319 while : 4320 do 4321 cat "conftest.in" "conftest.in" >"conftest.tmp" 4322 mv "conftest.tmp" "conftest.in" 4323 cp "conftest.in" "conftest.nl" 4324 $as_echo '' >> "conftest.nl" 4325 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4326 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4327 as_fn_arith $ac_count + 1 && ac_count=$as_val 4328 if test $ac_count -gt ${ac_path_SED_max-0}; then 4329 # Best one so far, save it but keep looking for a better one 4330 ac_cv_path_SED="$ac_path_SED" 4331 ac_path_SED_max=$ac_count 4332 fi 4333 # 10*(2^10) chars as input seems more than enough 4334 test $ac_count -gt 10 && break 4335 done 4336 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4337esac 4338 4339 $ac_path_SED_found && break 3 4340 done 4341 done 4342 done 4343IFS=$as_save_IFS 4344 if test -z "$ac_cv_path_SED"; then 4345 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4346 fi 4347else 4348 ac_cv_path_SED=$SED 4349fi 4350 4351fi 4352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4353$as_echo "$ac_cv_path_SED" >&6; } 4354 SED="$ac_cv_path_SED" 4355 rm -f conftest.sed 4356 4357test -z "$SED" && SED=sed 4358Xsed="$SED -e 1s/^X//" 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4371$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4372if ${ac_cv_path_GREP+:} false; then : 4373 $as_echo_n "(cached) " >&6 4374else 4375 if test -z "$GREP"; then 4376 ac_path_GREP_found=false 4377 # Loop through the user's path and test for each of PROGNAME-LIST 4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4379for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4380do 4381 IFS=$as_save_IFS 4382 test -z "$as_dir" && as_dir=. 4383 for ac_prog in grep ggrep; do 4384 for ac_exec_ext in '' $ac_executable_extensions; do 4385 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4386 as_fn_executable_p "$ac_path_GREP" || continue 4387# Check for GNU ac_path_GREP and select it if it is found. 4388 # Check for GNU $ac_path_GREP 4389case `"$ac_path_GREP" --version 2>&1` in 4390*GNU*) 4391 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4392*) 4393 ac_count=0 4394 $as_echo_n 0123456789 >"conftest.in" 4395 while : 4396 do 4397 cat "conftest.in" "conftest.in" >"conftest.tmp" 4398 mv "conftest.tmp" "conftest.in" 4399 cp "conftest.in" "conftest.nl" 4400 $as_echo 'GREP' >> "conftest.nl" 4401 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4402 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4403 as_fn_arith $ac_count + 1 && ac_count=$as_val 4404 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4405 # Best one so far, save it but keep looking for a better one 4406 ac_cv_path_GREP="$ac_path_GREP" 4407 ac_path_GREP_max=$ac_count 4408 fi 4409 # 10*(2^10) chars as input seems more than enough 4410 test $ac_count -gt 10 && break 4411 done 4412 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4413esac 4414 4415 $ac_path_GREP_found && break 3 4416 done 4417 done 4418 done 4419IFS=$as_save_IFS 4420 if test -z "$ac_cv_path_GREP"; then 4421 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4422 fi 4423else 4424 ac_cv_path_GREP=$GREP 4425fi 4426 4427fi 4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4429$as_echo "$ac_cv_path_GREP" >&6; } 4430 GREP="$ac_cv_path_GREP" 4431 4432 4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4434$as_echo_n "checking for egrep... " >&6; } 4435if ${ac_cv_path_EGREP+:} false; then : 4436 $as_echo_n "(cached) " >&6 4437else 4438 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4439 then ac_cv_path_EGREP="$GREP -E" 4440 else 4441 if test -z "$EGREP"; then 4442 ac_path_EGREP_found=false 4443 # Loop through the user's path and test for each of PROGNAME-LIST 4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4445for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4446do 4447 IFS=$as_save_IFS 4448 test -z "$as_dir" && as_dir=. 4449 for ac_prog in egrep; do 4450 for ac_exec_ext in '' $ac_executable_extensions; do 4451 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4452 as_fn_executable_p "$ac_path_EGREP" || continue 4453# Check for GNU ac_path_EGREP and select it if it is found. 4454 # Check for GNU $ac_path_EGREP 4455case `"$ac_path_EGREP" --version 2>&1` in 4456*GNU*) 4457 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4458*) 4459 ac_count=0 4460 $as_echo_n 0123456789 >"conftest.in" 4461 while : 4462 do 4463 cat "conftest.in" "conftest.in" >"conftest.tmp" 4464 mv "conftest.tmp" "conftest.in" 4465 cp "conftest.in" "conftest.nl" 4466 $as_echo 'EGREP' >> "conftest.nl" 4467 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4468 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4469 as_fn_arith $ac_count + 1 && ac_count=$as_val 4470 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4471 # Best one so far, save it but keep looking for a better one 4472 ac_cv_path_EGREP="$ac_path_EGREP" 4473 ac_path_EGREP_max=$ac_count 4474 fi 4475 # 10*(2^10) chars as input seems more than enough 4476 test $ac_count -gt 10 && break 4477 done 4478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4479esac 4480 4481 $ac_path_EGREP_found && break 3 4482 done 4483 done 4484 done 4485IFS=$as_save_IFS 4486 if test -z "$ac_cv_path_EGREP"; then 4487 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4488 fi 4489else 4490 ac_cv_path_EGREP=$EGREP 4491fi 4492 4493 fi 4494fi 4495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4496$as_echo "$ac_cv_path_EGREP" >&6; } 4497 EGREP="$ac_cv_path_EGREP" 4498 4499 4500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4501$as_echo_n "checking for fgrep... " >&6; } 4502if ${ac_cv_path_FGREP+:} false; then : 4503 $as_echo_n "(cached) " >&6 4504else 4505 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4506 then ac_cv_path_FGREP="$GREP -F" 4507 else 4508 if test -z "$FGREP"; then 4509 ac_path_FGREP_found=false 4510 # Loop through the user's path and test for each of PROGNAME-LIST 4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4512for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4513do 4514 IFS=$as_save_IFS 4515 test -z "$as_dir" && as_dir=. 4516 for ac_prog in fgrep; do 4517 for ac_exec_ext in '' $ac_executable_extensions; do 4518 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4519 as_fn_executable_p "$ac_path_FGREP" || continue 4520# Check for GNU ac_path_FGREP and select it if it is found. 4521 # Check for GNU $ac_path_FGREP 4522case `"$ac_path_FGREP" --version 2>&1` in 4523*GNU*) 4524 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4525*) 4526 ac_count=0 4527 $as_echo_n 0123456789 >"conftest.in" 4528 while : 4529 do 4530 cat "conftest.in" "conftest.in" >"conftest.tmp" 4531 mv "conftest.tmp" "conftest.in" 4532 cp "conftest.in" "conftest.nl" 4533 $as_echo 'FGREP' >> "conftest.nl" 4534 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4535 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4536 as_fn_arith $ac_count + 1 && ac_count=$as_val 4537 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4538 # Best one so far, save it but keep looking for a better one 4539 ac_cv_path_FGREP="$ac_path_FGREP" 4540 ac_path_FGREP_max=$ac_count 4541 fi 4542 # 10*(2^10) chars as input seems more than enough 4543 test $ac_count -gt 10 && break 4544 done 4545 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4546esac 4547 4548 $ac_path_FGREP_found && break 3 4549 done 4550 done 4551 done 4552IFS=$as_save_IFS 4553 if test -z "$ac_cv_path_FGREP"; then 4554 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4555 fi 4556else 4557 ac_cv_path_FGREP=$FGREP 4558fi 4559 4560 fi 4561fi 4562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4563$as_echo "$ac_cv_path_FGREP" >&6; } 4564 FGREP="$ac_cv_path_FGREP" 4565 4566 4567test -z "$GREP" && GREP=grep 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587# Check whether --with-gnu-ld was given. 4588if test "${with_gnu_ld+set}" = set; then : 4589 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4590else 4591 with_gnu_ld=no 4592fi 4593 4594ac_prog=ld 4595if test "$GCC" = yes; then 4596 # Check if gcc -print-prog-name=ld gives a path. 4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4598$as_echo_n "checking for ld used by $CC... " >&6; } 4599 case $host in 4600 *-*-mingw*) 4601 # gcc leaves a trailing carriage return which upsets mingw 4602 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4603 *) 4604 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4605 esac 4606 case $ac_prog in 4607 # Accept absolute paths. 4608 [\\/]* | ?:[\\/]*) 4609 re_direlt='/[^/][^/]*/\.\./' 4610 # Canonicalize the pathname of ld 4611 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4612 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4613 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4614 done 4615 test -z "$LD" && LD="$ac_prog" 4616 ;; 4617 "") 4618 # If it fails, then pretend we aren't using GCC. 4619 ac_prog=ld 4620 ;; 4621 *) 4622 # If it is relative, then search for the first ld in PATH. 4623 with_gnu_ld=unknown 4624 ;; 4625 esac 4626elif test "$with_gnu_ld" = yes; then 4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4628$as_echo_n "checking for GNU ld... " >&6; } 4629else 4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4631$as_echo_n "checking for non-GNU ld... " >&6; } 4632fi 4633if ${lt_cv_path_LD+:} false; then : 4634 $as_echo_n "(cached) " >&6 4635else 4636 if test -z "$LD"; then 4637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4638 for ac_dir in $PATH; do 4639 IFS="$lt_save_ifs" 4640 test -z "$ac_dir" && ac_dir=. 4641 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4642 lt_cv_path_LD="$ac_dir/$ac_prog" 4643 # Check to see if the program is GNU ld. I'd rather use --version, 4644 # but apparently some variants of GNU ld only accept -v. 4645 # Break only if it was the GNU/non-GNU ld that we prefer. 4646 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4647 *GNU* | *'with BFD'*) 4648 test "$with_gnu_ld" != no && break 4649 ;; 4650 *) 4651 test "$with_gnu_ld" != yes && break 4652 ;; 4653 esac 4654 fi 4655 done 4656 IFS="$lt_save_ifs" 4657else 4658 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4659fi 4660fi 4661 4662LD="$lt_cv_path_LD" 4663if test -n "$LD"; then 4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4665$as_echo "$LD" >&6; } 4666else 4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4668$as_echo "no" >&6; } 4669fi 4670test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4672$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4673if ${lt_cv_prog_gnu_ld+:} false; then : 4674 $as_echo_n "(cached) " >&6 4675else 4676 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4677case `$LD -v 2>&1 </dev/null` in 4678*GNU* | *'with BFD'*) 4679 lt_cv_prog_gnu_ld=yes 4680 ;; 4681*) 4682 lt_cv_prog_gnu_ld=no 4683 ;; 4684esac 4685fi 4686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4687$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4688with_gnu_ld=$lt_cv_prog_gnu_ld 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4699$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4700if ${lt_cv_path_NM+:} false; then : 4701 $as_echo_n "(cached) " >&6 4702else 4703 if test -n "$NM"; then 4704 # Let the user override the test. 4705 lt_cv_path_NM="$NM" 4706else 4707 lt_nm_to_check="${ac_tool_prefix}nm" 4708 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4709 lt_nm_to_check="$lt_nm_to_check nm" 4710 fi 4711 for lt_tmp_nm in $lt_nm_to_check; do 4712 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4713 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4714 IFS="$lt_save_ifs" 4715 test -z "$ac_dir" && ac_dir=. 4716 tmp_nm="$ac_dir/$lt_tmp_nm" 4717 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4718 # Check to see if the nm accepts a BSD-compat flag. 4719 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4720 # nm: unknown option "B" ignored 4721 # Tru64's nm complains that /dev/null is an invalid object file 4722 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4723 */dev/null* | *'Invalid file or object type'*) 4724 lt_cv_path_NM="$tmp_nm -B" 4725 break 4726 ;; 4727 *) 4728 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4729 */dev/null*) 4730 lt_cv_path_NM="$tmp_nm -p" 4731 break 4732 ;; 4733 *) 4734 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4735 continue # so that we can try to find one that supports BSD flags 4736 ;; 4737 esac 4738 ;; 4739 esac 4740 fi 4741 done 4742 IFS="$lt_save_ifs" 4743 done 4744 : ${lt_cv_path_NM=no} 4745fi 4746fi 4747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4748$as_echo "$lt_cv_path_NM" >&6; } 4749if test "$lt_cv_path_NM" != "no"; then 4750 NM="$lt_cv_path_NM" 4751else 4752 # Didn't find any BSD compatible name lister, look for dumpbin. 4753 if test -n "$DUMPBIN"; then : 4754 # Let the user override the test. 4755 else 4756 if test -n "$ac_tool_prefix"; then 4757 for ac_prog in dumpbin "link -dump" 4758 do 4759 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4760set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4762$as_echo_n "checking for $ac_word... " >&6; } 4763if ${ac_cv_prog_DUMPBIN+:} false; then : 4764 $as_echo_n "(cached) " >&6 4765else 4766 if test -n "$DUMPBIN"; then 4767 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4768else 4769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4770for as_dir in $PATH 4771do 4772 IFS=$as_save_IFS 4773 test -z "$as_dir" && as_dir=. 4774 for ac_exec_ext in '' $ac_executable_extensions; do 4775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4776 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4778 break 2 4779 fi 4780done 4781 done 4782IFS=$as_save_IFS 4783 4784fi 4785fi 4786DUMPBIN=$ac_cv_prog_DUMPBIN 4787if test -n "$DUMPBIN"; then 4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4789$as_echo "$DUMPBIN" >&6; } 4790else 4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4792$as_echo "no" >&6; } 4793fi 4794 4795 4796 test -n "$DUMPBIN" && break 4797 done 4798fi 4799if test -z "$DUMPBIN"; then 4800 ac_ct_DUMPBIN=$DUMPBIN 4801 for ac_prog in dumpbin "link -dump" 4802do 4803 # Extract the first word of "$ac_prog", so it can be a program name with args. 4804set dummy $ac_prog; ac_word=$2 4805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4806$as_echo_n "checking for $ac_word... " >&6; } 4807if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4808 $as_echo_n "(cached) " >&6 4809else 4810 if test -n "$ac_ct_DUMPBIN"; then 4811 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4812else 4813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4814for as_dir in $PATH 4815do 4816 IFS=$as_save_IFS 4817 test -z "$as_dir" && as_dir=. 4818 for ac_exec_ext in '' $ac_executable_extensions; do 4819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4820 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4822 break 2 4823 fi 4824done 4825 done 4826IFS=$as_save_IFS 4827 4828fi 4829fi 4830ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4831if test -n "$ac_ct_DUMPBIN"; then 4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4833$as_echo "$ac_ct_DUMPBIN" >&6; } 4834else 4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4836$as_echo "no" >&6; } 4837fi 4838 4839 4840 test -n "$ac_ct_DUMPBIN" && break 4841done 4842 4843 if test "x$ac_ct_DUMPBIN" = x; then 4844 DUMPBIN=":" 4845 else 4846 case $cross_compiling:$ac_tool_warned in 4847yes:) 4848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4850ac_tool_warned=yes ;; 4851esac 4852 DUMPBIN=$ac_ct_DUMPBIN 4853 fi 4854fi 4855 4856 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4857 *COFF*) 4858 DUMPBIN="$DUMPBIN -symbols" 4859 ;; 4860 *) 4861 DUMPBIN=: 4862 ;; 4863 esac 4864 fi 4865 4866 if test "$DUMPBIN" != ":"; then 4867 NM="$DUMPBIN" 4868 fi 4869fi 4870test -z "$NM" && NM=nm 4871 4872 4873 4874 4875 4876 4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4878$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4879if ${lt_cv_nm_interface+:} false; then : 4880 $as_echo_n "(cached) " >&6 4881else 4882 lt_cv_nm_interface="BSD nm" 4883 echo "int some_variable = 0;" > conftest.$ac_ext 4884 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4885 (eval "$ac_compile" 2>conftest.err) 4886 cat conftest.err >&5 4887 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4888 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4889 cat conftest.err >&5 4890 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4891 cat conftest.out >&5 4892 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4893 lt_cv_nm_interface="MS dumpbin" 4894 fi 4895 rm -f conftest* 4896fi 4897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4898$as_echo "$lt_cv_nm_interface" >&6; } 4899 4900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4901$as_echo_n "checking whether ln -s works... " >&6; } 4902LN_S=$as_ln_s 4903if test "$LN_S" = "ln -s"; then 4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4905$as_echo "yes" >&6; } 4906else 4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4908$as_echo "no, using $LN_S" >&6; } 4909fi 4910 4911# find the maximum length of command line arguments 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4913$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4914if ${lt_cv_sys_max_cmd_len+:} false; then : 4915 $as_echo_n "(cached) " >&6 4916else 4917 i=0 4918 teststring="ABCD" 4919 4920 case $build_os in 4921 msdosdjgpp*) 4922 # On DJGPP, this test can blow up pretty badly due to problems in libc 4923 # (any single argument exceeding 2000 bytes causes a buffer overrun 4924 # during glob expansion). Even if it were fixed, the result of this 4925 # check would be larger than it should be. 4926 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4927 ;; 4928 4929 gnu*) 4930 # Under GNU Hurd, this test is not required because there is 4931 # no limit to the length of command line arguments. 4932 # Libtool will interpret -1 as no limit whatsoever 4933 lt_cv_sys_max_cmd_len=-1; 4934 ;; 4935 4936 cygwin* | mingw* | cegcc*) 4937 # On Win9x/ME, this test blows up -- it succeeds, but takes 4938 # about 5 minutes as the teststring grows exponentially. 4939 # Worse, since 9x/ME are not pre-emptively multitasking, 4940 # you end up with a "frozen" computer, even though with patience 4941 # the test eventually succeeds (with a max line length of 256k). 4942 # Instead, let's just punt: use the minimum linelength reported by 4943 # all of the supported platforms: 8192 (on NT/2K/XP). 4944 lt_cv_sys_max_cmd_len=8192; 4945 ;; 4946 4947 mint*) 4948 # On MiNT this can take a long time and run out of memory. 4949 lt_cv_sys_max_cmd_len=8192; 4950 ;; 4951 4952 amigaos*) 4953 # On AmigaOS with pdksh, this test takes hours, literally. 4954 # So we just punt and use a minimum line length of 8192. 4955 lt_cv_sys_max_cmd_len=8192; 4956 ;; 4957 4958 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4959 # This has been around since 386BSD, at least. Likely further. 4960 if test -x /sbin/sysctl; then 4961 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4962 elif test -x /usr/sbin/sysctl; then 4963 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4964 else 4965 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4966 fi 4967 # And add a safety zone 4968 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4969 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4970 ;; 4971 4972 interix*) 4973 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4974 lt_cv_sys_max_cmd_len=196608 4975 ;; 4976 4977 os2*) 4978 # The test takes a long time on OS/2. 4979 lt_cv_sys_max_cmd_len=8192 4980 ;; 4981 4982 osf*) 4983 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4984 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4985 # nice to cause kernel panics so lets avoid the loop below. 4986 # First set a reasonable default. 4987 lt_cv_sys_max_cmd_len=16384 4988 # 4989 if test -x /sbin/sysconfig; then 4990 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4991 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4992 esac 4993 fi 4994 ;; 4995 sco3.2v5*) 4996 lt_cv_sys_max_cmd_len=102400 4997 ;; 4998 sysv5* | sco5v6* | sysv4.2uw2*) 4999 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5000 if test -n "$kargmax"; then 5001 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5002 else 5003 lt_cv_sys_max_cmd_len=32768 5004 fi 5005 ;; 5006 *) 5007 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5008 if test -n "$lt_cv_sys_max_cmd_len" && \ 5009 test undefined != "$lt_cv_sys_max_cmd_len"; then 5010 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5011 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5012 else 5013 # Make teststring a little bigger before we do anything with it. 5014 # a 1K string should be a reasonable start. 5015 for i in 1 2 3 4 5 6 7 8 ; do 5016 teststring=$teststring$teststring 5017 done 5018 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5019 # If test is not a shell built-in, we'll probably end up computing a 5020 # maximum length that is only half of the actual maximum length, but 5021 # we can't tell. 5022 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5023 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5024 test $i != 17 # 1/2 MB should be enough 5025 do 5026 i=`expr $i + 1` 5027 teststring=$teststring$teststring 5028 done 5029 # Only check the string length outside the loop. 5030 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5031 teststring= 5032 # Add a significant safety factor because C++ compilers can tack on 5033 # massive amounts of additional arguments before passing them to the 5034 # linker. It appears as though 1/2 is a usable value. 5035 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5036 fi 5037 ;; 5038 esac 5039 5040fi 5041 5042if test -n $lt_cv_sys_max_cmd_len ; then 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5044$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5045else 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5047$as_echo "none" >&6; } 5048fi 5049max_cmd_len=$lt_cv_sys_max_cmd_len 5050 5051 5052 5053 5054 5055 5056: ${CP="cp -f"} 5057: ${MV="mv -f"} 5058: ${RM="rm -f"} 5059 5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5061$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5062# Try some XSI features 5063xsi_shell=no 5064( _lt_dummy="a/b/c" 5065 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5066 = c,a/b,b/c, \ 5067 && eval 'test $(( 1 + 1 )) -eq 2 \ 5068 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5069 && xsi_shell=yes 5070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5071$as_echo "$xsi_shell" >&6; } 5072 5073 5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5075$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5076lt_shell_append=no 5077( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5078 >/dev/null 2>&1 \ 5079 && lt_shell_append=yes 5080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5081$as_echo "$lt_shell_append" >&6; } 5082 5083 5084if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5085 lt_unset=unset 5086else 5087 lt_unset=false 5088fi 5089 5090 5091 5092 5093 5094# test EBCDIC or ASCII 5095case `echo X|tr X '\101'` in 5096 A) # ASCII based system 5097 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5098 lt_SP2NL='tr \040 \012' 5099 lt_NL2SP='tr \015\012 \040\040' 5100 ;; 5101 *) # EBCDIC based system 5102 lt_SP2NL='tr \100 \n' 5103 lt_NL2SP='tr \r\n \100\100' 5104 ;; 5105esac 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5116$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5117if ${lt_cv_to_host_file_cmd+:} false; then : 5118 $as_echo_n "(cached) " >&6 5119else 5120 case $host in 5121 *-*-mingw* ) 5122 case $build in 5123 *-*-mingw* ) # actually msys 5124 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5125 ;; 5126 *-*-cygwin* ) 5127 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5128 ;; 5129 * ) # otherwise, assume *nix 5130 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5131 ;; 5132 esac 5133 ;; 5134 *-*-cygwin* ) 5135 case $build in 5136 *-*-mingw* ) # actually msys 5137 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5138 ;; 5139 *-*-cygwin* ) 5140 lt_cv_to_host_file_cmd=func_convert_file_noop 5141 ;; 5142 * ) # otherwise, assume *nix 5143 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5144 ;; 5145 esac 5146 ;; 5147 * ) # unhandled hosts (and "normal" native builds) 5148 lt_cv_to_host_file_cmd=func_convert_file_noop 5149 ;; 5150esac 5151 5152fi 5153 5154to_host_file_cmd=$lt_cv_to_host_file_cmd 5155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5156$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5157 5158 5159 5160 5161 5162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5163$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5164if ${lt_cv_to_tool_file_cmd+:} false; then : 5165 $as_echo_n "(cached) " >&6 5166else 5167 #assume ordinary cross tools, or native build. 5168lt_cv_to_tool_file_cmd=func_convert_file_noop 5169case $host in 5170 *-*-mingw* ) 5171 case $build in 5172 *-*-mingw* ) # actually msys 5173 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5174 ;; 5175 esac 5176 ;; 5177esac 5178 5179fi 5180 5181to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5183$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5184 5185 5186 5187 5188 5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5190$as_echo_n "checking for $LD option to reload object files... " >&6; } 5191if ${lt_cv_ld_reload_flag+:} false; then : 5192 $as_echo_n "(cached) " >&6 5193else 5194 lt_cv_ld_reload_flag='-r' 5195fi 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5197$as_echo "$lt_cv_ld_reload_flag" >&6; } 5198reload_flag=$lt_cv_ld_reload_flag 5199case $reload_flag in 5200"" | " "*) ;; 5201*) reload_flag=" $reload_flag" ;; 5202esac 5203reload_cmds='$LD$reload_flag -o $output$reload_objs' 5204case $host_os in 5205 cygwin* | mingw* | pw32* | cegcc*) 5206 if test "$GCC" != yes; then 5207 reload_cmds=false 5208 fi 5209 ;; 5210 darwin*) 5211 if test "$GCC" = yes; then 5212 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5213 else 5214 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5215 fi 5216 ;; 5217esac 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227if test -n "$ac_tool_prefix"; then 5228 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5229set dummy ${ac_tool_prefix}objdump; ac_word=$2 5230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5231$as_echo_n "checking for $ac_word... " >&6; } 5232if ${ac_cv_prog_OBJDUMP+:} false; then : 5233 $as_echo_n "(cached) " >&6 5234else 5235 if test -n "$OBJDUMP"; then 5236 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5237else 5238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5239for as_dir in $PATH 5240do 5241 IFS=$as_save_IFS 5242 test -z "$as_dir" && as_dir=. 5243 for ac_exec_ext in '' $ac_executable_extensions; do 5244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5245 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5247 break 2 5248 fi 5249done 5250 done 5251IFS=$as_save_IFS 5252 5253fi 5254fi 5255OBJDUMP=$ac_cv_prog_OBJDUMP 5256if test -n "$OBJDUMP"; then 5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5258$as_echo "$OBJDUMP" >&6; } 5259else 5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5261$as_echo "no" >&6; } 5262fi 5263 5264 5265fi 5266if test -z "$ac_cv_prog_OBJDUMP"; then 5267 ac_ct_OBJDUMP=$OBJDUMP 5268 # Extract the first word of "objdump", so it can be a program name with args. 5269set dummy objdump; ac_word=$2 5270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5271$as_echo_n "checking for $ac_word... " >&6; } 5272if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5273 $as_echo_n "(cached) " >&6 5274else 5275 if test -n "$ac_ct_OBJDUMP"; then 5276 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5277else 5278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5279for as_dir in $PATH 5280do 5281 IFS=$as_save_IFS 5282 test -z "$as_dir" && as_dir=. 5283 for ac_exec_ext in '' $ac_executable_extensions; do 5284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5285 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5287 break 2 5288 fi 5289done 5290 done 5291IFS=$as_save_IFS 5292 5293fi 5294fi 5295ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5296if test -n "$ac_ct_OBJDUMP"; then 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5298$as_echo "$ac_ct_OBJDUMP" >&6; } 5299else 5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5301$as_echo "no" >&6; } 5302fi 5303 5304 if test "x$ac_ct_OBJDUMP" = x; then 5305 OBJDUMP="false" 5306 else 5307 case $cross_compiling:$ac_tool_warned in 5308yes:) 5309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5311ac_tool_warned=yes ;; 5312esac 5313 OBJDUMP=$ac_ct_OBJDUMP 5314 fi 5315else 5316 OBJDUMP="$ac_cv_prog_OBJDUMP" 5317fi 5318 5319test -z "$OBJDUMP" && OBJDUMP=objdump 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5330$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5331if ${lt_cv_deplibs_check_method+:} false; then : 5332 $as_echo_n "(cached) " >&6 5333else 5334 lt_cv_file_magic_cmd='$MAGIC_CMD' 5335lt_cv_file_magic_test_file= 5336lt_cv_deplibs_check_method='unknown' 5337# Need to set the preceding variable on all platforms that support 5338# interlibrary dependencies. 5339# 'none' -- dependencies not supported. 5340# `unknown' -- same as none, but documents that we really don't know. 5341# 'pass_all' -- all dependencies passed with no checks. 5342# 'test_compile' -- check by making test program. 5343# 'file_magic [[regex]]' -- check by looking for files in library path 5344# which responds to the $file_magic_cmd with a given extended regex. 5345# If you have `file' or equivalent on your system and you're not sure 5346# whether `pass_all' will *always* work, you probably want this one. 5347 5348case $host_os in 5349aix[4-9]*) 5350 lt_cv_deplibs_check_method=pass_all 5351 ;; 5352 5353beos*) 5354 lt_cv_deplibs_check_method=pass_all 5355 ;; 5356 5357bsdi[45]*) 5358 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5359 lt_cv_file_magic_cmd='/usr/bin/file -L' 5360 lt_cv_file_magic_test_file=/shlib/libc.so 5361 ;; 5362 5363cygwin*) 5364 # func_win32_libid is a shell function defined in ltmain.sh 5365 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5366 lt_cv_file_magic_cmd='func_win32_libid' 5367 ;; 5368 5369mingw* | pw32*) 5370 # Base MSYS/MinGW do not provide the 'file' command needed by 5371 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5372 # unless we find 'file', for example because we are cross-compiling. 5373 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5374 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5375 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5376 lt_cv_file_magic_cmd='func_win32_libid' 5377 else 5378 # Keep this pattern in sync with the one in func_win32_libid. 5379 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5380 lt_cv_file_magic_cmd='$OBJDUMP -f' 5381 fi 5382 ;; 5383 5384cegcc*) 5385 # use the weaker test based on 'objdump'. See mingw*. 5386 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5387 lt_cv_file_magic_cmd='$OBJDUMP -f' 5388 ;; 5389 5390darwin* | rhapsody*) 5391 lt_cv_deplibs_check_method=pass_all 5392 ;; 5393 5394freebsd* | dragonfly*) 5395 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5396 case $host_cpu in 5397 i*86 ) 5398 # Not sure whether the presence of OpenBSD here was a mistake. 5399 # Let's accept both of them until this is cleared up. 5400 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5401 lt_cv_file_magic_cmd=/usr/bin/file 5402 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5403 ;; 5404 esac 5405 else 5406 lt_cv_deplibs_check_method=pass_all 5407 fi 5408 ;; 5409 5410haiku*) 5411 lt_cv_deplibs_check_method=pass_all 5412 ;; 5413 5414hpux10.20* | hpux11*) 5415 lt_cv_file_magic_cmd=/usr/bin/file 5416 case $host_cpu in 5417 ia64*) 5418 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5419 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5420 ;; 5421 hppa*64*) 5422 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]' 5423 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5424 ;; 5425 *) 5426 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5427 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5428 ;; 5429 esac 5430 ;; 5431 5432interix[3-9]*) 5433 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5434 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5435 ;; 5436 5437irix5* | irix6* | nonstopux*) 5438 case $LD in 5439 *-32|*"-32 ") libmagic=32-bit;; 5440 *-n32|*"-n32 ") libmagic=N32;; 5441 *-64|*"-64 ") libmagic=64-bit;; 5442 *) libmagic=never-match;; 5443 esac 5444 lt_cv_deplibs_check_method=pass_all 5445 ;; 5446 5447# This must be glibc/ELF. 5448linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5449 lt_cv_deplibs_check_method=pass_all 5450 ;; 5451 5452netbsd* | netbsdelf*-gnu) 5453 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5454 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5455 else 5456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5457 fi 5458 ;; 5459 5460newos6*) 5461 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5462 lt_cv_file_magic_cmd=/usr/bin/file 5463 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5464 ;; 5465 5466*nto* | *qnx*) 5467 lt_cv_deplibs_check_method=pass_all 5468 ;; 5469 5470openbsd*) 5471 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5472 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5473 else 5474 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5475 fi 5476 ;; 5477 5478osf3* | osf4* | osf5*) 5479 lt_cv_deplibs_check_method=pass_all 5480 ;; 5481 5482rdos*) 5483 lt_cv_deplibs_check_method=pass_all 5484 ;; 5485 5486solaris*) 5487 lt_cv_deplibs_check_method=pass_all 5488 ;; 5489 5490sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5491 lt_cv_deplibs_check_method=pass_all 5492 ;; 5493 5494sysv4 | sysv4.3*) 5495 case $host_vendor in 5496 motorola) 5497 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]' 5498 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5499 ;; 5500 ncr) 5501 lt_cv_deplibs_check_method=pass_all 5502 ;; 5503 sequent) 5504 lt_cv_file_magic_cmd='/bin/file' 5505 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5506 ;; 5507 sni) 5508 lt_cv_file_magic_cmd='/bin/file' 5509 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5510 lt_cv_file_magic_test_file=/lib/libc.so 5511 ;; 5512 siemens) 5513 lt_cv_deplibs_check_method=pass_all 5514 ;; 5515 pc) 5516 lt_cv_deplibs_check_method=pass_all 5517 ;; 5518 esac 5519 ;; 5520 5521tpf*) 5522 lt_cv_deplibs_check_method=pass_all 5523 ;; 5524esac 5525 5526fi 5527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5528$as_echo "$lt_cv_deplibs_check_method" >&6; } 5529 5530file_magic_glob= 5531want_nocaseglob=no 5532if test "$build" = "$host"; then 5533 case $host_os in 5534 mingw* | pw32*) 5535 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5536 want_nocaseglob=yes 5537 else 5538 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5539 fi 5540 ;; 5541 esac 5542fi 5543 5544file_magic_cmd=$lt_cv_file_magic_cmd 5545deplibs_check_method=$lt_cv_deplibs_check_method 5546test -z "$deplibs_check_method" && deplibs_check_method=unknown 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569if test -n "$ac_tool_prefix"; then 5570 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5571set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5573$as_echo_n "checking for $ac_word... " >&6; } 5574if ${ac_cv_prog_DLLTOOL+:} false; then : 5575 $as_echo_n "(cached) " >&6 5576else 5577 if test -n "$DLLTOOL"; then 5578 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5579else 5580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5581for as_dir in $PATH 5582do 5583 IFS=$as_save_IFS 5584 test -z "$as_dir" && as_dir=. 5585 for ac_exec_ext in '' $ac_executable_extensions; do 5586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5587 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5589 break 2 5590 fi 5591done 5592 done 5593IFS=$as_save_IFS 5594 5595fi 5596fi 5597DLLTOOL=$ac_cv_prog_DLLTOOL 5598if test -n "$DLLTOOL"; then 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5600$as_echo "$DLLTOOL" >&6; } 5601else 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5603$as_echo "no" >&6; } 5604fi 5605 5606 5607fi 5608if test -z "$ac_cv_prog_DLLTOOL"; then 5609 ac_ct_DLLTOOL=$DLLTOOL 5610 # Extract the first word of "dlltool", so it can be a program name with args. 5611set dummy dlltool; ac_word=$2 5612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5613$as_echo_n "checking for $ac_word... " >&6; } 5614if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5615 $as_echo_n "(cached) " >&6 5616else 5617 if test -n "$ac_ct_DLLTOOL"; then 5618 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5619else 5620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5621for as_dir in $PATH 5622do 5623 IFS=$as_save_IFS 5624 test -z "$as_dir" && as_dir=. 5625 for ac_exec_ext in '' $ac_executable_extensions; do 5626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5627 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5629 break 2 5630 fi 5631done 5632 done 5633IFS=$as_save_IFS 5634 5635fi 5636fi 5637ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5638if test -n "$ac_ct_DLLTOOL"; then 5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5640$as_echo "$ac_ct_DLLTOOL" >&6; } 5641else 5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5643$as_echo "no" >&6; } 5644fi 5645 5646 if test "x$ac_ct_DLLTOOL" = x; then 5647 DLLTOOL="false" 5648 else 5649 case $cross_compiling:$ac_tool_warned in 5650yes:) 5651{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5652$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5653ac_tool_warned=yes ;; 5654esac 5655 DLLTOOL=$ac_ct_DLLTOOL 5656 fi 5657else 5658 DLLTOOL="$ac_cv_prog_DLLTOOL" 5659fi 5660 5661test -z "$DLLTOOL" && DLLTOOL=dlltool 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5673$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5674if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5675 $as_echo_n "(cached) " >&6 5676else 5677 lt_cv_sharedlib_from_linklib_cmd='unknown' 5678 5679case $host_os in 5680cygwin* | mingw* | pw32* | cegcc*) 5681 # two different shell functions defined in ltmain.sh 5682 # decide which to use based on capabilities of $DLLTOOL 5683 case `$DLLTOOL --help 2>&1` in 5684 *--identify-strict*) 5685 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5686 ;; 5687 *) 5688 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5689 ;; 5690 esac 5691 ;; 5692*) 5693 # fallback: assume linklib IS sharedlib 5694 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5695 ;; 5696esac 5697 5698fi 5699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5700$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5701sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5702test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5703 5704 5705 5706 5707 5708 5709 5710 5711if test -n "$ac_tool_prefix"; then 5712 for ac_prog in ar 5713 do 5714 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5715set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5717$as_echo_n "checking for $ac_word... " >&6; } 5718if ${ac_cv_prog_AR+:} false; then : 5719 $as_echo_n "(cached) " >&6 5720else 5721 if test -n "$AR"; then 5722 ac_cv_prog_AR="$AR" # Let the user override the test. 5723else 5724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5725for as_dir in $PATH 5726do 5727 IFS=$as_save_IFS 5728 test -z "$as_dir" && as_dir=. 5729 for ac_exec_ext in '' $ac_executable_extensions; do 5730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5731 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5733 break 2 5734 fi 5735done 5736 done 5737IFS=$as_save_IFS 5738 5739fi 5740fi 5741AR=$ac_cv_prog_AR 5742if test -n "$AR"; then 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5744$as_echo "$AR" >&6; } 5745else 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5747$as_echo "no" >&6; } 5748fi 5749 5750 5751 test -n "$AR" && break 5752 done 5753fi 5754if test -z "$AR"; then 5755 ac_ct_AR=$AR 5756 for ac_prog in ar 5757do 5758 # Extract the first word of "$ac_prog", so it can be a program name with args. 5759set dummy $ac_prog; ac_word=$2 5760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5761$as_echo_n "checking for $ac_word... " >&6; } 5762if ${ac_cv_prog_ac_ct_AR+:} false; then : 5763 $as_echo_n "(cached) " >&6 5764else 5765 if test -n "$ac_ct_AR"; then 5766 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5767else 5768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5769for as_dir in $PATH 5770do 5771 IFS=$as_save_IFS 5772 test -z "$as_dir" && as_dir=. 5773 for ac_exec_ext in '' $ac_executable_extensions; do 5774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5775 ac_cv_prog_ac_ct_AR="$ac_prog" 5776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5777 break 2 5778 fi 5779done 5780 done 5781IFS=$as_save_IFS 5782 5783fi 5784fi 5785ac_ct_AR=$ac_cv_prog_ac_ct_AR 5786if test -n "$ac_ct_AR"; then 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5788$as_echo "$ac_ct_AR" >&6; } 5789else 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5791$as_echo "no" >&6; } 5792fi 5793 5794 5795 test -n "$ac_ct_AR" && break 5796done 5797 5798 if test "x$ac_ct_AR" = x; then 5799 AR="false" 5800 else 5801 case $cross_compiling:$ac_tool_warned in 5802yes:) 5803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5805ac_tool_warned=yes ;; 5806esac 5807 AR=$ac_ct_AR 5808 fi 5809fi 5810 5811: ${AR=ar} 5812: ${AR_FLAGS=cru} 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5825$as_echo_n "checking for archiver @FILE support... " >&6; } 5826if ${lt_cv_ar_at_file+:} false; then : 5827 $as_echo_n "(cached) " >&6 5828else 5829 lt_cv_ar_at_file=no 5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5831/* end confdefs.h. */ 5832 5833int 5834main () 5835{ 5836 5837 ; 5838 return 0; 5839} 5840_ACEOF 5841if ac_fn_c_try_compile "$LINENO"; then : 5842 echo conftest.$ac_objext > conftest.lst 5843 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5845 (eval $lt_ar_try) 2>&5 5846 ac_status=$? 5847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5848 test $ac_status = 0; } 5849 if test "$ac_status" -eq 0; then 5850 # Ensure the archiver fails upon bogus file names. 5851 rm -f conftest.$ac_objext libconftest.a 5852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5853 (eval $lt_ar_try) 2>&5 5854 ac_status=$? 5855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5856 test $ac_status = 0; } 5857 if test "$ac_status" -ne 0; then 5858 lt_cv_ar_at_file=@ 5859 fi 5860 fi 5861 rm -f conftest.* libconftest.a 5862 5863fi 5864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5865 5866fi 5867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5868$as_echo "$lt_cv_ar_at_file" >&6; } 5869 5870if test "x$lt_cv_ar_at_file" = xno; then 5871 archiver_list_spec= 5872else 5873 archiver_list_spec=$lt_cv_ar_at_file 5874fi 5875 5876 5877 5878 5879 5880 5881 5882if test -n "$ac_tool_prefix"; then 5883 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5884set dummy ${ac_tool_prefix}strip; ac_word=$2 5885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5886$as_echo_n "checking for $ac_word... " >&6; } 5887if ${ac_cv_prog_STRIP+:} false; then : 5888 $as_echo_n "(cached) " >&6 5889else 5890 if test -n "$STRIP"; then 5891 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5892else 5893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5894for as_dir in $PATH 5895do 5896 IFS=$as_save_IFS 5897 test -z "$as_dir" && as_dir=. 5898 for ac_exec_ext in '' $ac_executable_extensions; do 5899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5900 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5902 break 2 5903 fi 5904done 5905 done 5906IFS=$as_save_IFS 5907 5908fi 5909fi 5910STRIP=$ac_cv_prog_STRIP 5911if test -n "$STRIP"; then 5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5913$as_echo "$STRIP" >&6; } 5914else 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5916$as_echo "no" >&6; } 5917fi 5918 5919 5920fi 5921if test -z "$ac_cv_prog_STRIP"; then 5922 ac_ct_STRIP=$STRIP 5923 # Extract the first word of "strip", so it can be a program name with args. 5924set dummy strip; ac_word=$2 5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5926$as_echo_n "checking for $ac_word... " >&6; } 5927if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5928 $as_echo_n "(cached) " >&6 5929else 5930 if test -n "$ac_ct_STRIP"; then 5931 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5932else 5933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5934for as_dir in $PATH 5935do 5936 IFS=$as_save_IFS 5937 test -z "$as_dir" && as_dir=. 5938 for ac_exec_ext in '' $ac_executable_extensions; do 5939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5940 ac_cv_prog_ac_ct_STRIP="strip" 5941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5942 break 2 5943 fi 5944done 5945 done 5946IFS=$as_save_IFS 5947 5948fi 5949fi 5950ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5951if test -n "$ac_ct_STRIP"; then 5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5953$as_echo "$ac_ct_STRIP" >&6; } 5954else 5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5956$as_echo "no" >&6; } 5957fi 5958 5959 if test "x$ac_ct_STRIP" = x; then 5960 STRIP=":" 5961 else 5962 case $cross_compiling:$ac_tool_warned in 5963yes:) 5964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5966ac_tool_warned=yes ;; 5967esac 5968 STRIP=$ac_ct_STRIP 5969 fi 5970else 5971 STRIP="$ac_cv_prog_STRIP" 5972fi 5973 5974test -z "$STRIP" && STRIP=: 5975 5976 5977 5978 5979 5980 5981if test -n "$ac_tool_prefix"; then 5982 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5983set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5985$as_echo_n "checking for $ac_word... " >&6; } 5986if ${ac_cv_prog_RANLIB+:} false; then : 5987 $as_echo_n "(cached) " >&6 5988else 5989 if test -n "$RANLIB"; then 5990 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5991else 5992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5993for as_dir in $PATH 5994do 5995 IFS=$as_save_IFS 5996 test -z "$as_dir" && as_dir=. 5997 for ac_exec_ext in '' $ac_executable_extensions; do 5998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5999 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6001 break 2 6002 fi 6003done 6004 done 6005IFS=$as_save_IFS 6006 6007fi 6008fi 6009RANLIB=$ac_cv_prog_RANLIB 6010if test -n "$RANLIB"; then 6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6012$as_echo "$RANLIB" >&6; } 6013else 6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6015$as_echo "no" >&6; } 6016fi 6017 6018 6019fi 6020if test -z "$ac_cv_prog_RANLIB"; then 6021 ac_ct_RANLIB=$RANLIB 6022 # Extract the first word of "ranlib", so it can be a program name with args. 6023set dummy ranlib; ac_word=$2 6024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6025$as_echo_n "checking for $ac_word... " >&6; } 6026if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6027 $as_echo_n "(cached) " >&6 6028else 6029 if test -n "$ac_ct_RANLIB"; then 6030 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6031else 6032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6033for as_dir in $PATH 6034do 6035 IFS=$as_save_IFS 6036 test -z "$as_dir" && as_dir=. 6037 for ac_exec_ext in '' $ac_executable_extensions; do 6038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6039 ac_cv_prog_ac_ct_RANLIB="ranlib" 6040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6041 break 2 6042 fi 6043done 6044 done 6045IFS=$as_save_IFS 6046 6047fi 6048fi 6049ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6050if test -n "$ac_ct_RANLIB"; then 6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6052$as_echo "$ac_ct_RANLIB" >&6; } 6053else 6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6055$as_echo "no" >&6; } 6056fi 6057 6058 if test "x$ac_ct_RANLIB" = x; then 6059 RANLIB=":" 6060 else 6061 case $cross_compiling:$ac_tool_warned in 6062yes:) 6063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6065ac_tool_warned=yes ;; 6066esac 6067 RANLIB=$ac_ct_RANLIB 6068 fi 6069else 6070 RANLIB="$ac_cv_prog_RANLIB" 6071fi 6072 6073test -z "$RANLIB" && RANLIB=: 6074 6075 6076 6077 6078 6079 6080# Determine commands to create old-style static archives. 6081old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6082old_postinstall_cmds='chmod 644 $oldlib' 6083old_postuninstall_cmds= 6084 6085if test -n "$RANLIB"; then 6086 case $host_os in 6087 openbsd*) 6088 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6089 ;; 6090 *) 6091 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6092 ;; 6093 esac 6094 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6095fi 6096 6097case $host_os in 6098 darwin*) 6099 lock_old_archive_extraction=yes ;; 6100 *) 6101 lock_old_archive_extraction=no ;; 6102esac 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142# If no C compiler was specified, use CC. 6143LTCC=${LTCC-"$CC"} 6144 6145# If no C compiler flags were specified, use CFLAGS. 6146LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6147 6148# Allow CC to be a program name with arguments. 6149compiler=$CC 6150 6151 6152# Check for command to grab the raw symbol name followed by C symbol from nm. 6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6154$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6155if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6156 $as_echo_n "(cached) " >&6 6157else 6158 6159# These are sane defaults that work on at least a few old systems. 6160# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6161 6162# Character class describing NM global symbol codes. 6163symcode='[BCDEGRST]' 6164 6165# Regexp to match symbols that can be accessed directly from C. 6166sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6167 6168# Define system-specific variables. 6169case $host_os in 6170aix*) 6171 symcode='[BCDT]' 6172 ;; 6173cygwin* | mingw* | pw32* | cegcc*) 6174 symcode='[ABCDGISTW]' 6175 ;; 6176hpux*) 6177 if test "$host_cpu" = ia64; then 6178 symcode='[ABCDEGRST]' 6179 fi 6180 ;; 6181irix* | nonstopux*) 6182 symcode='[BCDEGRST]' 6183 ;; 6184osf*) 6185 symcode='[BCDEGQRST]' 6186 ;; 6187solaris*) 6188 symcode='[BDRT]' 6189 ;; 6190sco3.2v5*) 6191 symcode='[DT]' 6192 ;; 6193sysv4.2uw2*) 6194 symcode='[DT]' 6195 ;; 6196sysv5* | sco5v6* | unixware* | OpenUNIX*) 6197 symcode='[ABDT]' 6198 ;; 6199sysv4) 6200 symcode='[DFNSTU]' 6201 ;; 6202esac 6203 6204# If we're using GNU nm, then use its standard symbol codes. 6205case `$NM -V 2>&1` in 6206*GNU* | *'with BFD'*) 6207 symcode='[ABCDGIRSTW]' ;; 6208esac 6209 6210# Transform an extracted symbol line into a proper C declaration. 6211# Some systems (esp. on ia64) link data and code symbols differently, 6212# so use this general approach. 6213lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6214 6215# Transform an extracted symbol line into symbol name and symbol address 6216lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6217lt_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'" 6218 6219# Handle CRLF in mingw tool chain 6220opt_cr= 6221case $build_os in 6222mingw*) 6223 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6224 ;; 6225esac 6226 6227# Try without a prefix underscore, then with it. 6228for ac_symprfx in "" "_"; do 6229 6230 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6231 symxfrm="\\1 $ac_symprfx\\2 \\2" 6232 6233 # Write the raw and C identifiers. 6234 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6235 # Fake it for dumpbin and say T for any non-static function 6236 # and D for any global variable. 6237 # Also find C++ and __fastcall symbols from MSVC++, 6238 # which start with @ or ?. 6239 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6240" {last_section=section; section=\$ 3};"\ 6241" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6242" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6243" \$ 0!~/External *\|/{next};"\ 6244" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6245" {if(hide[section]) next};"\ 6246" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6247" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6248" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6249" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6250" ' prfx=^$ac_symprfx" 6251 else 6252 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6253 fi 6254 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6255 6256 # Check to see that the pipe works correctly. 6257 pipe_works=no 6258 6259 rm -f conftest* 6260 cat > conftest.$ac_ext <<_LT_EOF 6261#ifdef __cplusplus 6262extern "C" { 6263#endif 6264char nm_test_var; 6265void nm_test_func(void); 6266void nm_test_func(void){} 6267#ifdef __cplusplus 6268} 6269#endif 6270int main(){nm_test_var='a';nm_test_func();return(0);} 6271_LT_EOF 6272 6273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6274 (eval $ac_compile) 2>&5 6275 ac_status=$? 6276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6277 test $ac_status = 0; }; then 6278 # Now try to grab the symbols. 6279 nlist=conftest.nm 6280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6281 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6282 ac_status=$? 6283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6284 test $ac_status = 0; } && test -s "$nlist"; then 6285 # Try sorting and uniquifying the output. 6286 if sort "$nlist" | uniq > "$nlist"T; then 6287 mv -f "$nlist"T "$nlist" 6288 else 6289 rm -f "$nlist"T 6290 fi 6291 6292 # Make sure that we snagged all the symbols we need. 6293 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6294 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6295 cat <<_LT_EOF > conftest.$ac_ext 6296/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6297#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6298/* DATA imports from DLLs on WIN32 con't be const, because runtime 6299 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6300# define LT_DLSYM_CONST 6301#elif defined(__osf__) 6302/* This system does not cope well with relocations in const data. */ 6303# define LT_DLSYM_CONST 6304#else 6305# define LT_DLSYM_CONST const 6306#endif 6307 6308#ifdef __cplusplus 6309extern "C" { 6310#endif 6311 6312_LT_EOF 6313 # Now generate the symbol file. 6314 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6315 6316 cat <<_LT_EOF >> conftest.$ac_ext 6317 6318/* The mapping between symbol names and symbols. */ 6319LT_DLSYM_CONST struct { 6320 const char *name; 6321 void *address; 6322} 6323lt__PROGRAM__LTX_preloaded_symbols[] = 6324{ 6325 { "@PROGRAM@", (void *) 0 }, 6326_LT_EOF 6327 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6328 cat <<\_LT_EOF >> conftest.$ac_ext 6329 {0, (void *) 0} 6330}; 6331 6332/* This works around a problem in FreeBSD linker */ 6333#ifdef FREEBSD_WORKAROUND 6334static const void *lt_preloaded_setup() { 6335 return lt__PROGRAM__LTX_preloaded_symbols; 6336} 6337#endif 6338 6339#ifdef __cplusplus 6340} 6341#endif 6342_LT_EOF 6343 # Now try linking the two files. 6344 mv conftest.$ac_objext conftstm.$ac_objext 6345 lt_globsym_save_LIBS=$LIBS 6346 lt_globsym_save_CFLAGS=$CFLAGS 6347 LIBS="conftstm.$ac_objext" 6348 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6350 (eval $ac_link) 2>&5 6351 ac_status=$? 6352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6353 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6354 pipe_works=yes 6355 fi 6356 LIBS=$lt_globsym_save_LIBS 6357 CFLAGS=$lt_globsym_save_CFLAGS 6358 else 6359 echo "cannot find nm_test_func in $nlist" >&5 6360 fi 6361 else 6362 echo "cannot find nm_test_var in $nlist" >&5 6363 fi 6364 else 6365 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6366 fi 6367 else 6368 echo "$progname: failed program was:" >&5 6369 cat conftest.$ac_ext >&5 6370 fi 6371 rm -rf conftest* conftst* 6372 6373 # Do not use the global_symbol_pipe unless it works. 6374 if test "$pipe_works" = yes; then 6375 break 6376 else 6377 lt_cv_sys_global_symbol_pipe= 6378 fi 6379done 6380 6381fi 6382 6383if test -z "$lt_cv_sys_global_symbol_pipe"; then 6384 lt_cv_sys_global_symbol_to_cdecl= 6385fi 6386if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6388$as_echo "failed" >&6; } 6389else 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6391$as_echo "ok" >&6; } 6392fi 6393 6394# Response file support. 6395if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6396 nm_file_list_spec='@' 6397elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6398 nm_file_list_spec='@' 6399fi 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6428$as_echo_n "checking for sysroot... " >&6; } 6429 6430# Check whether --with-sysroot was given. 6431if test "${with_sysroot+set}" = set; then : 6432 withval=$with_sysroot; 6433else 6434 with_sysroot=no 6435fi 6436 6437 6438lt_sysroot= 6439case ${with_sysroot} in #( 6440 yes) 6441 if test "$GCC" = yes; then 6442 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6443 fi 6444 ;; #( 6445 /*) 6446 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6447 ;; #( 6448 no|'') 6449 ;; #( 6450 *) 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6452$as_echo "${with_sysroot}" >&6; } 6453 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6454 ;; 6455esac 6456 6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6458$as_echo "${lt_sysroot:-no}" >&6; } 6459 6460 6461 6462 6463 6464# Check whether --enable-libtool-lock was given. 6465if test "${enable_libtool_lock+set}" = set; then : 6466 enableval=$enable_libtool_lock; 6467fi 6468 6469test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6470 6471# Some flags need to be propagated to the compiler or linker for good 6472# libtool support. 6473case $host in 6474ia64-*-hpux*) 6475 # Find out which ABI we are using. 6476 echo 'int i;' > conftest.$ac_ext 6477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6478 (eval $ac_compile) 2>&5 6479 ac_status=$? 6480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6481 test $ac_status = 0; }; then 6482 case `/usr/bin/file conftest.$ac_objext` in 6483 *ELF-32*) 6484 HPUX_IA64_MODE="32" 6485 ;; 6486 *ELF-64*) 6487 HPUX_IA64_MODE="64" 6488 ;; 6489 esac 6490 fi 6491 rm -rf conftest* 6492 ;; 6493*-*-irix6*) 6494 # Find out which ABI we are using. 6495 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6497 (eval $ac_compile) 2>&5 6498 ac_status=$? 6499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6500 test $ac_status = 0; }; then 6501 if test "$lt_cv_prog_gnu_ld" = yes; then 6502 case `/usr/bin/file conftest.$ac_objext` in 6503 *32-bit*) 6504 LD="${LD-ld} -melf32bsmip" 6505 ;; 6506 *N32*) 6507 LD="${LD-ld} -melf32bmipn32" 6508 ;; 6509 *64-bit*) 6510 LD="${LD-ld} -melf64bmip" 6511 ;; 6512 esac 6513 else 6514 case `/usr/bin/file conftest.$ac_objext` in 6515 *32-bit*) 6516 LD="${LD-ld} -32" 6517 ;; 6518 *N32*) 6519 LD="${LD-ld} -n32" 6520 ;; 6521 *64-bit*) 6522 LD="${LD-ld} -64" 6523 ;; 6524 esac 6525 fi 6526 fi 6527 rm -rf conftest* 6528 ;; 6529 6530x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6531s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6532 # Find out which ABI we are using. 6533 echo 'int i;' > conftest.$ac_ext 6534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6535 (eval $ac_compile) 2>&5 6536 ac_status=$? 6537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6538 test $ac_status = 0; }; then 6539 case `/usr/bin/file conftest.o` in 6540 *32-bit*) 6541 case $host in 6542 x86_64-*kfreebsd*-gnu) 6543 LD="${LD-ld} -m elf_i386_fbsd" 6544 ;; 6545 x86_64-*linux*) 6546 case `/usr/bin/file conftest.o` in 6547 *x86-64*) 6548 LD="${LD-ld} -m elf32_x86_64" 6549 ;; 6550 *) 6551 LD="${LD-ld} -m elf_i386" 6552 ;; 6553 esac 6554 ;; 6555 powerpc64le-*) 6556 LD="${LD-ld} -m elf32lppclinux" 6557 ;; 6558 powerpc64-*) 6559 LD="${LD-ld} -m elf32ppclinux" 6560 ;; 6561 s390x-*linux*) 6562 LD="${LD-ld} -m elf_s390" 6563 ;; 6564 sparc64-*linux*) 6565 LD="${LD-ld} -m elf32_sparc" 6566 ;; 6567 esac 6568 ;; 6569 *64-bit*) 6570 case $host in 6571 x86_64-*kfreebsd*-gnu) 6572 LD="${LD-ld} -m elf_x86_64_fbsd" 6573 ;; 6574 x86_64-*linux*) 6575 LD="${LD-ld} -m elf_x86_64" 6576 ;; 6577 powerpcle-*) 6578 LD="${LD-ld} -m elf64lppc" 6579 ;; 6580 powerpc-*) 6581 LD="${LD-ld} -m elf64ppc" 6582 ;; 6583 s390*-*linux*|s390*-*tpf*) 6584 LD="${LD-ld} -m elf64_s390" 6585 ;; 6586 sparc*-*linux*) 6587 LD="${LD-ld} -m elf64_sparc" 6588 ;; 6589 esac 6590 ;; 6591 esac 6592 fi 6593 rm -rf conftest* 6594 ;; 6595 6596*-*-sco3.2v5*) 6597 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6598 SAVE_CFLAGS="$CFLAGS" 6599 CFLAGS="$CFLAGS -belf" 6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6601$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6602if ${lt_cv_cc_needs_belf+:} false; then : 6603 $as_echo_n "(cached) " >&6 6604else 6605 ac_ext=c 6606ac_cpp='$CPP $CPPFLAGS' 6607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6609ac_compiler_gnu=$ac_cv_c_compiler_gnu 6610 6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6612/* end confdefs.h. */ 6613 6614int 6615main () 6616{ 6617 6618 ; 6619 return 0; 6620} 6621_ACEOF 6622if ac_fn_c_try_link "$LINENO"; then : 6623 lt_cv_cc_needs_belf=yes 6624else 6625 lt_cv_cc_needs_belf=no 6626fi 6627rm -f core conftest.err conftest.$ac_objext \ 6628 conftest$ac_exeext conftest.$ac_ext 6629 ac_ext=c 6630ac_cpp='$CPP $CPPFLAGS' 6631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6633ac_compiler_gnu=$ac_cv_c_compiler_gnu 6634 6635fi 6636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6637$as_echo "$lt_cv_cc_needs_belf" >&6; } 6638 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6639 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6640 CFLAGS="$SAVE_CFLAGS" 6641 fi 6642 ;; 6643*-*solaris*) 6644 # Find out which ABI we are using. 6645 echo 'int i;' > conftest.$ac_ext 6646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6647 (eval $ac_compile) 2>&5 6648 ac_status=$? 6649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6650 test $ac_status = 0; }; then 6651 case `/usr/bin/file conftest.o` in 6652 *64-bit*) 6653 case $lt_cv_prog_gnu_ld in 6654 yes*) 6655 case $host in 6656 i?86-*-solaris*) 6657 LD="${LD-ld} -m elf_x86_64" 6658 ;; 6659 sparc*-*-solaris*) 6660 LD="${LD-ld} -m elf64_sparc" 6661 ;; 6662 esac 6663 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6664 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6665 LD="${LD-ld}_sol2" 6666 fi 6667 ;; 6668 *) 6669 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6670 LD="${LD-ld} -64" 6671 fi 6672 ;; 6673 esac 6674 ;; 6675 esac 6676 fi 6677 rm -rf conftest* 6678 ;; 6679esac 6680 6681need_locks="$enable_libtool_lock" 6682 6683if test -n "$ac_tool_prefix"; then 6684 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6685set dummy ${ac_tool_prefix}mt; ac_word=$2 6686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6687$as_echo_n "checking for $ac_word... " >&6; } 6688if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6689 $as_echo_n "(cached) " >&6 6690else 6691 if test -n "$MANIFEST_TOOL"; then 6692 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6693else 6694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6695for as_dir in $PATH 6696do 6697 IFS=$as_save_IFS 6698 test -z "$as_dir" && as_dir=. 6699 for ac_exec_ext in '' $ac_executable_extensions; do 6700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6701 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6703 break 2 6704 fi 6705done 6706 done 6707IFS=$as_save_IFS 6708 6709fi 6710fi 6711MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6712if test -n "$MANIFEST_TOOL"; then 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6714$as_echo "$MANIFEST_TOOL" >&6; } 6715else 6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6717$as_echo "no" >&6; } 6718fi 6719 6720 6721fi 6722if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6723 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6724 # Extract the first word of "mt", so it can be a program name with args. 6725set dummy mt; ac_word=$2 6726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6727$as_echo_n "checking for $ac_word... " >&6; } 6728if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6729 $as_echo_n "(cached) " >&6 6730else 6731 if test -n "$ac_ct_MANIFEST_TOOL"; then 6732 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6733else 6734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6735for as_dir in $PATH 6736do 6737 IFS=$as_save_IFS 6738 test -z "$as_dir" && as_dir=. 6739 for ac_exec_ext in '' $ac_executable_extensions; do 6740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6741 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6743 break 2 6744 fi 6745done 6746 done 6747IFS=$as_save_IFS 6748 6749fi 6750fi 6751ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6752if test -n "$ac_ct_MANIFEST_TOOL"; then 6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6754$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6755else 6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6757$as_echo "no" >&6; } 6758fi 6759 6760 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6761 MANIFEST_TOOL=":" 6762 else 6763 case $cross_compiling:$ac_tool_warned in 6764yes:) 6765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6767ac_tool_warned=yes ;; 6768esac 6769 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6770 fi 6771else 6772 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6773fi 6774 6775test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6777$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6778if ${lt_cv_path_mainfest_tool+:} false; then : 6779 $as_echo_n "(cached) " >&6 6780else 6781 lt_cv_path_mainfest_tool=no 6782 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6783 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6784 cat conftest.err >&5 6785 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6786 lt_cv_path_mainfest_tool=yes 6787 fi 6788 rm -f conftest* 6789fi 6790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6791$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6792if test "x$lt_cv_path_mainfest_tool" != xyes; then 6793 MANIFEST_TOOL=: 6794fi 6795 6796 6797 6798 6799 6800 6801 case $host_os in 6802 rhapsody* | darwin*) 6803 if test -n "$ac_tool_prefix"; then 6804 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6805set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6807$as_echo_n "checking for $ac_word... " >&6; } 6808if ${ac_cv_prog_DSYMUTIL+:} false; then : 6809 $as_echo_n "(cached) " >&6 6810else 6811 if test -n "$DSYMUTIL"; then 6812 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6813else 6814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6815for as_dir in $PATH 6816do 6817 IFS=$as_save_IFS 6818 test -z "$as_dir" && as_dir=. 6819 for ac_exec_ext in '' $ac_executable_extensions; do 6820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6821 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6823 break 2 6824 fi 6825done 6826 done 6827IFS=$as_save_IFS 6828 6829fi 6830fi 6831DSYMUTIL=$ac_cv_prog_DSYMUTIL 6832if test -n "$DSYMUTIL"; then 6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6834$as_echo "$DSYMUTIL" >&6; } 6835else 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6837$as_echo "no" >&6; } 6838fi 6839 6840 6841fi 6842if test -z "$ac_cv_prog_DSYMUTIL"; then 6843 ac_ct_DSYMUTIL=$DSYMUTIL 6844 # Extract the first word of "dsymutil", so it can be a program name with args. 6845set dummy dsymutil; ac_word=$2 6846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6847$as_echo_n "checking for $ac_word... " >&6; } 6848if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6849 $as_echo_n "(cached) " >&6 6850else 6851 if test -n "$ac_ct_DSYMUTIL"; then 6852 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6853else 6854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6855for as_dir in $PATH 6856do 6857 IFS=$as_save_IFS 6858 test -z "$as_dir" && as_dir=. 6859 for ac_exec_ext in '' $ac_executable_extensions; do 6860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6861 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6863 break 2 6864 fi 6865done 6866 done 6867IFS=$as_save_IFS 6868 6869fi 6870fi 6871ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6872if test -n "$ac_ct_DSYMUTIL"; then 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6874$as_echo "$ac_ct_DSYMUTIL" >&6; } 6875else 6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6877$as_echo "no" >&6; } 6878fi 6879 6880 if test "x$ac_ct_DSYMUTIL" = x; then 6881 DSYMUTIL=":" 6882 else 6883 case $cross_compiling:$ac_tool_warned in 6884yes:) 6885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6887ac_tool_warned=yes ;; 6888esac 6889 DSYMUTIL=$ac_ct_DSYMUTIL 6890 fi 6891else 6892 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6893fi 6894 6895 if test -n "$ac_tool_prefix"; then 6896 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6897set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6899$as_echo_n "checking for $ac_word... " >&6; } 6900if ${ac_cv_prog_NMEDIT+:} false; then : 6901 $as_echo_n "(cached) " >&6 6902else 6903 if test -n "$NMEDIT"; then 6904 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6905else 6906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6907for as_dir in $PATH 6908do 6909 IFS=$as_save_IFS 6910 test -z "$as_dir" && as_dir=. 6911 for ac_exec_ext in '' $ac_executable_extensions; do 6912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6913 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6915 break 2 6916 fi 6917done 6918 done 6919IFS=$as_save_IFS 6920 6921fi 6922fi 6923NMEDIT=$ac_cv_prog_NMEDIT 6924if test -n "$NMEDIT"; then 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6926$as_echo "$NMEDIT" >&6; } 6927else 6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6929$as_echo "no" >&6; } 6930fi 6931 6932 6933fi 6934if test -z "$ac_cv_prog_NMEDIT"; then 6935 ac_ct_NMEDIT=$NMEDIT 6936 # Extract the first word of "nmedit", so it can be a program name with args. 6937set dummy nmedit; ac_word=$2 6938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6939$as_echo_n "checking for $ac_word... " >&6; } 6940if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6941 $as_echo_n "(cached) " >&6 6942else 6943 if test -n "$ac_ct_NMEDIT"; then 6944 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6945else 6946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6947for as_dir in $PATH 6948do 6949 IFS=$as_save_IFS 6950 test -z "$as_dir" && as_dir=. 6951 for ac_exec_ext in '' $ac_executable_extensions; do 6952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6953 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6955 break 2 6956 fi 6957done 6958 done 6959IFS=$as_save_IFS 6960 6961fi 6962fi 6963ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6964if test -n "$ac_ct_NMEDIT"; then 6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6966$as_echo "$ac_ct_NMEDIT" >&6; } 6967else 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6969$as_echo "no" >&6; } 6970fi 6971 6972 if test "x$ac_ct_NMEDIT" = x; then 6973 NMEDIT=":" 6974 else 6975 case $cross_compiling:$ac_tool_warned in 6976yes:) 6977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6979ac_tool_warned=yes ;; 6980esac 6981 NMEDIT=$ac_ct_NMEDIT 6982 fi 6983else 6984 NMEDIT="$ac_cv_prog_NMEDIT" 6985fi 6986 6987 if test -n "$ac_tool_prefix"; then 6988 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6989set dummy ${ac_tool_prefix}lipo; ac_word=$2 6990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6991$as_echo_n "checking for $ac_word... " >&6; } 6992if ${ac_cv_prog_LIPO+:} false; then : 6993 $as_echo_n "(cached) " >&6 6994else 6995 if test -n "$LIPO"; then 6996 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6997else 6998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6999for as_dir in $PATH 7000do 7001 IFS=$as_save_IFS 7002 test -z "$as_dir" && as_dir=. 7003 for ac_exec_ext in '' $ac_executable_extensions; do 7004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7005 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7007 break 2 7008 fi 7009done 7010 done 7011IFS=$as_save_IFS 7012 7013fi 7014fi 7015LIPO=$ac_cv_prog_LIPO 7016if test -n "$LIPO"; then 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7018$as_echo "$LIPO" >&6; } 7019else 7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7021$as_echo "no" >&6; } 7022fi 7023 7024 7025fi 7026if test -z "$ac_cv_prog_LIPO"; then 7027 ac_ct_LIPO=$LIPO 7028 # Extract the first word of "lipo", so it can be a program name with args. 7029set dummy lipo; ac_word=$2 7030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7031$as_echo_n "checking for $ac_word... " >&6; } 7032if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7033 $as_echo_n "(cached) " >&6 7034else 7035 if test -n "$ac_ct_LIPO"; then 7036 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7037else 7038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7039for as_dir in $PATH 7040do 7041 IFS=$as_save_IFS 7042 test -z "$as_dir" && as_dir=. 7043 for ac_exec_ext in '' $ac_executable_extensions; do 7044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7045 ac_cv_prog_ac_ct_LIPO="lipo" 7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7047 break 2 7048 fi 7049done 7050 done 7051IFS=$as_save_IFS 7052 7053fi 7054fi 7055ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7056if test -n "$ac_ct_LIPO"; then 7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7058$as_echo "$ac_ct_LIPO" >&6; } 7059else 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7061$as_echo "no" >&6; } 7062fi 7063 7064 if test "x$ac_ct_LIPO" = x; then 7065 LIPO=":" 7066 else 7067 case $cross_compiling:$ac_tool_warned in 7068yes:) 7069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7071ac_tool_warned=yes ;; 7072esac 7073 LIPO=$ac_ct_LIPO 7074 fi 7075else 7076 LIPO="$ac_cv_prog_LIPO" 7077fi 7078 7079 if test -n "$ac_tool_prefix"; then 7080 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7081set dummy ${ac_tool_prefix}otool; ac_word=$2 7082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7083$as_echo_n "checking for $ac_word... " >&6; } 7084if ${ac_cv_prog_OTOOL+:} false; then : 7085 $as_echo_n "(cached) " >&6 7086else 7087 if test -n "$OTOOL"; then 7088 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7089else 7090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7091for as_dir in $PATH 7092do 7093 IFS=$as_save_IFS 7094 test -z "$as_dir" && as_dir=. 7095 for ac_exec_ext in '' $ac_executable_extensions; do 7096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7097 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7099 break 2 7100 fi 7101done 7102 done 7103IFS=$as_save_IFS 7104 7105fi 7106fi 7107OTOOL=$ac_cv_prog_OTOOL 7108if test -n "$OTOOL"; then 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7110$as_echo "$OTOOL" >&6; } 7111else 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7113$as_echo "no" >&6; } 7114fi 7115 7116 7117fi 7118if test -z "$ac_cv_prog_OTOOL"; then 7119 ac_ct_OTOOL=$OTOOL 7120 # Extract the first word of "otool", so it can be a program name with args. 7121set dummy otool; ac_word=$2 7122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7123$as_echo_n "checking for $ac_word... " >&6; } 7124if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7125 $as_echo_n "(cached) " >&6 7126else 7127 if test -n "$ac_ct_OTOOL"; then 7128 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7129else 7130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7131for as_dir in $PATH 7132do 7133 IFS=$as_save_IFS 7134 test -z "$as_dir" && as_dir=. 7135 for ac_exec_ext in '' $ac_executable_extensions; do 7136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7137 ac_cv_prog_ac_ct_OTOOL="otool" 7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7139 break 2 7140 fi 7141done 7142 done 7143IFS=$as_save_IFS 7144 7145fi 7146fi 7147ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7148if test -n "$ac_ct_OTOOL"; then 7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7150$as_echo "$ac_ct_OTOOL" >&6; } 7151else 7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7153$as_echo "no" >&6; } 7154fi 7155 7156 if test "x$ac_ct_OTOOL" = x; then 7157 OTOOL=":" 7158 else 7159 case $cross_compiling:$ac_tool_warned in 7160yes:) 7161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7163ac_tool_warned=yes ;; 7164esac 7165 OTOOL=$ac_ct_OTOOL 7166 fi 7167else 7168 OTOOL="$ac_cv_prog_OTOOL" 7169fi 7170 7171 if test -n "$ac_tool_prefix"; then 7172 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7173set dummy ${ac_tool_prefix}otool64; ac_word=$2 7174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7175$as_echo_n "checking for $ac_word... " >&6; } 7176if ${ac_cv_prog_OTOOL64+:} false; then : 7177 $as_echo_n "(cached) " >&6 7178else 7179 if test -n "$OTOOL64"; then 7180 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7181else 7182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7183for as_dir in $PATH 7184do 7185 IFS=$as_save_IFS 7186 test -z "$as_dir" && as_dir=. 7187 for ac_exec_ext in '' $ac_executable_extensions; do 7188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7189 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7191 break 2 7192 fi 7193done 7194 done 7195IFS=$as_save_IFS 7196 7197fi 7198fi 7199OTOOL64=$ac_cv_prog_OTOOL64 7200if test -n "$OTOOL64"; then 7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7202$as_echo "$OTOOL64" >&6; } 7203else 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7205$as_echo "no" >&6; } 7206fi 7207 7208 7209fi 7210if test -z "$ac_cv_prog_OTOOL64"; then 7211 ac_ct_OTOOL64=$OTOOL64 7212 # Extract the first word of "otool64", so it can be a program name with args. 7213set dummy otool64; ac_word=$2 7214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7215$as_echo_n "checking for $ac_word... " >&6; } 7216if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7217 $as_echo_n "(cached) " >&6 7218else 7219 if test -n "$ac_ct_OTOOL64"; then 7220 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7221else 7222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7223for as_dir in $PATH 7224do 7225 IFS=$as_save_IFS 7226 test -z "$as_dir" && as_dir=. 7227 for ac_exec_ext in '' $ac_executable_extensions; do 7228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7229 ac_cv_prog_ac_ct_OTOOL64="otool64" 7230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7231 break 2 7232 fi 7233done 7234 done 7235IFS=$as_save_IFS 7236 7237fi 7238fi 7239ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7240if test -n "$ac_ct_OTOOL64"; then 7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7242$as_echo "$ac_ct_OTOOL64" >&6; } 7243else 7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7245$as_echo "no" >&6; } 7246fi 7247 7248 if test "x$ac_ct_OTOOL64" = x; then 7249 OTOOL64=":" 7250 else 7251 case $cross_compiling:$ac_tool_warned in 7252yes:) 7253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7255ac_tool_warned=yes ;; 7256esac 7257 OTOOL64=$ac_ct_OTOOL64 7258 fi 7259else 7260 OTOOL64="$ac_cv_prog_OTOOL64" 7261fi 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7290$as_echo_n "checking for -single_module linker flag... " >&6; } 7291if ${lt_cv_apple_cc_single_mod+:} false; then : 7292 $as_echo_n "(cached) " >&6 7293else 7294 lt_cv_apple_cc_single_mod=no 7295 if test -z "${LT_MULTI_MODULE}"; then 7296 # By default we will add the -single_module flag. You can override 7297 # by either setting the environment variable LT_MULTI_MODULE 7298 # non-empty at configure time, or by adding -multi_module to the 7299 # link flags. 7300 rm -rf libconftest.dylib* 7301 echo "int foo(void){return 1;}" > conftest.c 7302 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7303-dynamiclib -Wl,-single_module conftest.c" >&5 7304 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7305 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7306 _lt_result=$? 7307 # If there is a non-empty error log, and "single_module" 7308 # appears in it, assume the flag caused a linker warning 7309 if test -s conftest.err && $GREP single_module conftest.err; then 7310 cat conftest.err >&5 7311 # Otherwise, if the output was created with a 0 exit code from 7312 # the compiler, it worked. 7313 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7314 lt_cv_apple_cc_single_mod=yes 7315 else 7316 cat conftest.err >&5 7317 fi 7318 rm -rf libconftest.dylib* 7319 rm -f conftest.* 7320 fi 7321fi 7322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7323$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7324 7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7326$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7327if ${lt_cv_ld_exported_symbols_list+:} false; then : 7328 $as_echo_n "(cached) " >&6 7329else 7330 lt_cv_ld_exported_symbols_list=no 7331 save_LDFLAGS=$LDFLAGS 7332 echo "_main" > conftest.sym 7333 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7335/* end confdefs.h. */ 7336 7337int 7338main () 7339{ 7340 7341 ; 7342 return 0; 7343} 7344_ACEOF 7345if ac_fn_c_try_link "$LINENO"; then : 7346 lt_cv_ld_exported_symbols_list=yes 7347else 7348 lt_cv_ld_exported_symbols_list=no 7349fi 7350rm -f core conftest.err conftest.$ac_objext \ 7351 conftest$ac_exeext conftest.$ac_ext 7352 LDFLAGS="$save_LDFLAGS" 7353 7354fi 7355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7356$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7357 7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7359$as_echo_n "checking for -force_load linker flag... " >&6; } 7360if ${lt_cv_ld_force_load+:} false; then : 7361 $as_echo_n "(cached) " >&6 7362else 7363 lt_cv_ld_force_load=no 7364 cat > conftest.c << _LT_EOF 7365int forced_loaded() { return 2;} 7366_LT_EOF 7367 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7368 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7369 echo "$AR cru libconftest.a conftest.o" >&5 7370 $AR cru libconftest.a conftest.o 2>&5 7371 echo "$RANLIB libconftest.a" >&5 7372 $RANLIB libconftest.a 2>&5 7373 cat > conftest.c << _LT_EOF 7374int main() { return 0;} 7375_LT_EOF 7376 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7377 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7378 _lt_result=$? 7379 if test -s conftest.err && $GREP force_load conftest.err; then 7380 cat conftest.err >&5 7381 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7382 lt_cv_ld_force_load=yes 7383 else 7384 cat conftest.err >&5 7385 fi 7386 rm -f conftest.err libconftest.a conftest conftest.c 7387 rm -rf conftest.dSYM 7388 7389fi 7390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7391$as_echo "$lt_cv_ld_force_load" >&6; } 7392 case $host_os in 7393 rhapsody* | darwin1.[012]) 7394 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7395 darwin1.*) 7396 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7397 darwin*) # darwin 5.x on 7398 # if running on 10.5 or later, the deployment target defaults 7399 # to the OS version, if on x86, and 10.4, the deployment 7400 # target defaults to 10.4. Don't you love it? 7401 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7402 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7403 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7404 10.[012]*) 7405 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7406 10.*) 7407 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7408 esac 7409 ;; 7410 esac 7411 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7412 _lt_dar_single_mod='$single_module' 7413 fi 7414 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7415 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7416 else 7417 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7418 fi 7419 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7420 _lt_dsymutil='~$DSYMUTIL $lib || :' 7421 else 7422 _lt_dsymutil= 7423 fi 7424 ;; 7425 esac 7426 7427ac_ext=c 7428ac_cpp='$CPP $CPPFLAGS' 7429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7431ac_compiler_gnu=$ac_cv_c_compiler_gnu 7432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7433$as_echo_n "checking how to run the C preprocessor... " >&6; } 7434# On Suns, sometimes $CPP names a directory. 7435if test -n "$CPP" && test -d "$CPP"; then 7436 CPP= 7437fi 7438if test -z "$CPP"; then 7439 if ${ac_cv_prog_CPP+:} false; then : 7440 $as_echo_n "(cached) " >&6 7441else 7442 # Double quotes because CPP needs to be expanded 7443 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7444 do 7445 ac_preproc_ok=false 7446for ac_c_preproc_warn_flag in '' yes 7447do 7448 # Use a header file that comes with gcc, so configuring glibc 7449 # with a fresh cross-compiler works. 7450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7451 # <limits.h> exists even on freestanding compilers. 7452 # On the NeXT, cc -E runs the code through the compiler's parser, 7453 # not just through cpp. "Syntax error" is here to catch this case. 7454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7455/* end confdefs.h. */ 7456#ifdef __STDC__ 7457# include <limits.h> 7458#else 7459# include <assert.h> 7460#endif 7461 Syntax error 7462_ACEOF 7463if ac_fn_c_try_cpp "$LINENO"; then : 7464 7465else 7466 # Broken: fails on valid input. 7467continue 7468fi 7469rm -f conftest.err conftest.i conftest.$ac_ext 7470 7471 # OK, works on sane cases. Now check whether nonexistent headers 7472 # can be detected and how. 7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7474/* end confdefs.h. */ 7475#include <ac_nonexistent.h> 7476_ACEOF 7477if ac_fn_c_try_cpp "$LINENO"; then : 7478 # Broken: success on invalid input. 7479continue 7480else 7481 # Passes both tests. 7482ac_preproc_ok=: 7483break 7484fi 7485rm -f conftest.err conftest.i conftest.$ac_ext 7486 7487done 7488# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7489rm -f conftest.i conftest.err conftest.$ac_ext 7490if $ac_preproc_ok; then : 7491 break 7492fi 7493 7494 done 7495 ac_cv_prog_CPP=$CPP 7496 7497fi 7498 CPP=$ac_cv_prog_CPP 7499else 7500 ac_cv_prog_CPP=$CPP 7501fi 7502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7503$as_echo "$CPP" >&6; } 7504ac_preproc_ok=false 7505for ac_c_preproc_warn_flag in '' yes 7506do 7507 # Use a header file that comes with gcc, so configuring glibc 7508 # with a fresh cross-compiler works. 7509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7510 # <limits.h> exists even on freestanding compilers. 7511 # On the NeXT, cc -E runs the code through the compiler's parser, 7512 # not just through cpp. "Syntax error" is here to catch this case. 7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7514/* end confdefs.h. */ 7515#ifdef __STDC__ 7516# include <limits.h> 7517#else 7518# include <assert.h> 7519#endif 7520 Syntax error 7521_ACEOF 7522if ac_fn_c_try_cpp "$LINENO"; then : 7523 7524else 7525 # Broken: fails on valid input. 7526continue 7527fi 7528rm -f conftest.err conftest.i conftest.$ac_ext 7529 7530 # OK, works on sane cases. Now check whether nonexistent headers 7531 # can be detected and how. 7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7533/* end confdefs.h. */ 7534#include <ac_nonexistent.h> 7535_ACEOF 7536if ac_fn_c_try_cpp "$LINENO"; then : 7537 # Broken: success on invalid input. 7538continue 7539else 7540 # Passes both tests. 7541ac_preproc_ok=: 7542break 7543fi 7544rm -f conftest.err conftest.i conftest.$ac_ext 7545 7546done 7547# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7548rm -f conftest.i conftest.err conftest.$ac_ext 7549if $ac_preproc_ok; then : 7550 7551else 7552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7554as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7555See \`config.log' for more details" "$LINENO" 5; } 7556fi 7557 7558ac_ext=c 7559ac_cpp='$CPP $CPPFLAGS' 7560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7562ac_compiler_gnu=$ac_cv_c_compiler_gnu 7563 7564 7565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7566$as_echo_n "checking for ANSI C header files... " >&6; } 7567if ${ac_cv_header_stdc+:} false; then : 7568 $as_echo_n "(cached) " >&6 7569else 7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7571/* end confdefs.h. */ 7572#include <stdlib.h> 7573#include <stdarg.h> 7574#include <string.h> 7575#include <float.h> 7576 7577int 7578main () 7579{ 7580 7581 ; 7582 return 0; 7583} 7584_ACEOF 7585if ac_fn_c_try_compile "$LINENO"; then : 7586 ac_cv_header_stdc=yes 7587else 7588 ac_cv_header_stdc=no 7589fi 7590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7591 7592if test $ac_cv_header_stdc = yes; then 7593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7595/* end confdefs.h. */ 7596#include <string.h> 7597 7598_ACEOF 7599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7600 $EGREP "memchr" >/dev/null 2>&1; then : 7601 7602else 7603 ac_cv_header_stdc=no 7604fi 7605rm -f conftest* 7606 7607fi 7608 7609if test $ac_cv_header_stdc = yes; then 7610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7612/* end confdefs.h. */ 7613#include <stdlib.h> 7614 7615_ACEOF 7616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7617 $EGREP "free" >/dev/null 2>&1; then : 7618 7619else 7620 ac_cv_header_stdc=no 7621fi 7622rm -f conftest* 7623 7624fi 7625 7626if test $ac_cv_header_stdc = yes; then 7627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7628 if test "$cross_compiling" = yes; then : 7629 : 7630else 7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7632/* end confdefs.h. */ 7633#include <ctype.h> 7634#include <stdlib.h> 7635#if ((' ' & 0x0FF) == 0x020) 7636# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7637# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7638#else 7639# define ISLOWER(c) \ 7640 (('a' <= (c) && (c) <= 'i') \ 7641 || ('j' <= (c) && (c) <= 'r') \ 7642 || ('s' <= (c) && (c) <= 'z')) 7643# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7644#endif 7645 7646#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7647int 7648main () 7649{ 7650 int i; 7651 for (i = 0; i < 256; i++) 7652 if (XOR (islower (i), ISLOWER (i)) 7653 || toupper (i) != TOUPPER (i)) 7654 return 2; 7655 return 0; 7656} 7657_ACEOF 7658if ac_fn_c_try_run "$LINENO"; then : 7659 7660else 7661 ac_cv_header_stdc=no 7662fi 7663rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7664 conftest.$ac_objext conftest.beam conftest.$ac_ext 7665fi 7666 7667fi 7668fi 7669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7670$as_echo "$ac_cv_header_stdc" >&6; } 7671if test $ac_cv_header_stdc = yes; then 7672 7673$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7674 7675fi 7676 7677# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7678for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7679 inttypes.h stdint.h unistd.h 7680do : 7681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7682ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7683" 7684if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7685 cat >>confdefs.h <<_ACEOF 7686#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7687_ACEOF 7688 7689fi 7690 7691done 7692 7693 7694for ac_header in dlfcn.h 7695do : 7696 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7697" 7698if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7699 cat >>confdefs.h <<_ACEOF 7700#define HAVE_DLFCN_H 1 7701_ACEOF 7702 7703fi 7704 7705done 7706 7707 7708 7709 7710 7711# Set options 7712 7713 7714 7715 enable_dlopen=no 7716 7717 7718 enable_win32_dll=no 7719 7720 7721 # Check whether --enable-shared was given. 7722if test "${enable_shared+set}" = set; then : 7723 enableval=$enable_shared; p=${PACKAGE-default} 7724 case $enableval in 7725 yes) enable_shared=yes ;; 7726 no) enable_shared=no ;; 7727 *) 7728 enable_shared=no 7729 # Look at the argument we got. We use all the common list separators. 7730 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7731 for pkg in $enableval; do 7732 IFS="$lt_save_ifs" 7733 if test "X$pkg" = "X$p"; then 7734 enable_shared=yes 7735 fi 7736 done 7737 IFS="$lt_save_ifs" 7738 ;; 7739 esac 7740else 7741 enable_shared=yes 7742fi 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754# Check whether --with-pic was given. 7755if test "${with_pic+set}" = set; then : 7756 withval=$with_pic; lt_p=${PACKAGE-default} 7757 case $withval in 7758 yes|no) pic_mode=$withval ;; 7759 *) 7760 pic_mode=default 7761 # Look at the argument we got. We use all the common list separators. 7762 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7763 for lt_pkg in $withval; do 7764 IFS="$lt_save_ifs" 7765 if test "X$lt_pkg" = "X$lt_p"; then 7766 pic_mode=yes 7767 fi 7768 done 7769 IFS="$lt_save_ifs" 7770 ;; 7771 esac 7772else 7773 pic_mode=default 7774fi 7775 7776 7777test -z "$pic_mode" && pic_mode=default 7778 7779 7780 7781 7782 7783 7784 7785 # Check whether --enable-fast-install was given. 7786if test "${enable_fast_install+set}" = set; then : 7787 enableval=$enable_fast_install; p=${PACKAGE-default} 7788 case $enableval in 7789 yes) enable_fast_install=yes ;; 7790 no) enable_fast_install=no ;; 7791 *) 7792 enable_fast_install=no 7793 # Look at the argument we got. We use all the common list separators. 7794 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7795 for pkg in $enableval; do 7796 IFS="$lt_save_ifs" 7797 if test "X$pkg" = "X$p"; then 7798 enable_fast_install=yes 7799 fi 7800 done 7801 IFS="$lt_save_ifs" 7802 ;; 7803 esac 7804else 7805 enable_fast_install=yes 7806fi 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818# This can be used to rebuild libtool when needed 7819LIBTOOL_DEPS="$ltmain" 7820 7821# Always use our own libtool. 7822LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853test -z "$LN_S" && LN_S="ln -s" 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868if test -n "${ZSH_VERSION+set}" ; then 7869 setopt NO_GLOB_SUBST 7870fi 7871 7872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7873$as_echo_n "checking for objdir... " >&6; } 7874if ${lt_cv_objdir+:} false; then : 7875 $as_echo_n "(cached) " >&6 7876else 7877 rm -f .libs 2>/dev/null 7878mkdir .libs 2>/dev/null 7879if test -d .libs; then 7880 lt_cv_objdir=.libs 7881else 7882 # MS-DOS does not allow filenames that begin with a dot. 7883 lt_cv_objdir=_libs 7884fi 7885rmdir .libs 2>/dev/null 7886fi 7887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7888$as_echo "$lt_cv_objdir" >&6; } 7889objdir=$lt_cv_objdir 7890 7891 7892 7893 7894 7895cat >>confdefs.h <<_ACEOF 7896#define LT_OBJDIR "$lt_cv_objdir/" 7897_ACEOF 7898 7899 7900 7901 7902case $host_os in 7903aix3*) 7904 # AIX sometimes has problems with the GCC collect2 program. For some 7905 # reason, if we set the COLLECT_NAMES environment variable, the problems 7906 # vanish in a puff of smoke. 7907 if test "X${COLLECT_NAMES+set}" != Xset; then 7908 COLLECT_NAMES= 7909 export COLLECT_NAMES 7910 fi 7911 ;; 7912esac 7913 7914# Global variables: 7915ofile=libtool 7916can_build_shared=yes 7917 7918# All known linkers require a `.a' archive for static linking (except MSVC, 7919# which needs '.lib'). 7920libext=a 7921 7922with_gnu_ld="$lt_cv_prog_gnu_ld" 7923 7924old_CC="$CC" 7925old_CFLAGS="$CFLAGS" 7926 7927# Set sane defaults for various variables 7928test -z "$CC" && CC=cc 7929test -z "$LTCC" && LTCC=$CC 7930test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7931test -z "$LD" && LD=ld 7932test -z "$ac_objext" && ac_objext=o 7933 7934for cc_temp in $compiler""; do 7935 case $cc_temp in 7936 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7937 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7938 \-*) ;; 7939 *) break;; 7940 esac 7941done 7942cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7943 7944 7945# Only perform the check for file, if the check method requires it 7946test -z "$MAGIC_CMD" && MAGIC_CMD=file 7947case $deplibs_check_method in 7948file_magic*) 7949 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7951$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7952if ${lt_cv_path_MAGIC_CMD+:} false; then : 7953 $as_echo_n "(cached) " >&6 7954else 7955 case $MAGIC_CMD in 7956[\\/*] | ?:[\\/]*) 7957 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7958 ;; 7959*) 7960 lt_save_MAGIC_CMD="$MAGIC_CMD" 7961 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7962 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7963 for ac_dir in $ac_dummy; do 7964 IFS="$lt_save_ifs" 7965 test -z "$ac_dir" && ac_dir=. 7966 if test -f $ac_dir/${ac_tool_prefix}file; then 7967 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7968 if test -n "$file_magic_test_file"; then 7969 case $deplibs_check_method in 7970 "file_magic "*) 7971 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7972 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7973 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7974 $EGREP "$file_magic_regex" > /dev/null; then 7975 : 7976 else 7977 cat <<_LT_EOF 1>&2 7978 7979*** Warning: the command libtool uses to detect shared libraries, 7980*** $file_magic_cmd, produces output that libtool cannot recognize. 7981*** The result is that libtool may fail to recognize shared libraries 7982*** as such. This will affect the creation of libtool libraries that 7983*** depend on shared libraries, but programs linked with such libtool 7984*** libraries will work regardless of this problem. Nevertheless, you 7985*** may want to report the problem to your system manager and/or to 7986*** bug-libtool@gnu.org 7987 7988_LT_EOF 7989 fi ;; 7990 esac 7991 fi 7992 break 7993 fi 7994 done 7995 IFS="$lt_save_ifs" 7996 MAGIC_CMD="$lt_save_MAGIC_CMD" 7997 ;; 7998esac 7999fi 8000 8001MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8002if test -n "$MAGIC_CMD"; then 8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8004$as_echo "$MAGIC_CMD" >&6; } 8005else 8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8007$as_echo "no" >&6; } 8008fi 8009 8010 8011 8012 8013 8014if test -z "$lt_cv_path_MAGIC_CMD"; then 8015 if test -n "$ac_tool_prefix"; then 8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8017$as_echo_n "checking for file... " >&6; } 8018if ${lt_cv_path_MAGIC_CMD+:} false; then : 8019 $as_echo_n "(cached) " >&6 8020else 8021 case $MAGIC_CMD in 8022[\\/*] | ?:[\\/]*) 8023 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8024 ;; 8025*) 8026 lt_save_MAGIC_CMD="$MAGIC_CMD" 8027 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8028 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8029 for ac_dir in $ac_dummy; do 8030 IFS="$lt_save_ifs" 8031 test -z "$ac_dir" && ac_dir=. 8032 if test -f $ac_dir/file; then 8033 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8034 if test -n "$file_magic_test_file"; then 8035 case $deplibs_check_method in 8036 "file_magic "*) 8037 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8038 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8039 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8040 $EGREP "$file_magic_regex" > /dev/null; then 8041 : 8042 else 8043 cat <<_LT_EOF 1>&2 8044 8045*** Warning: the command libtool uses to detect shared libraries, 8046*** $file_magic_cmd, produces output that libtool cannot recognize. 8047*** The result is that libtool may fail to recognize shared libraries 8048*** as such. This will affect the creation of libtool libraries that 8049*** depend on shared libraries, but programs linked with such libtool 8050*** libraries will work regardless of this problem. Nevertheless, you 8051*** may want to report the problem to your system manager and/or to 8052*** bug-libtool@gnu.org 8053 8054_LT_EOF 8055 fi ;; 8056 esac 8057 fi 8058 break 8059 fi 8060 done 8061 IFS="$lt_save_ifs" 8062 MAGIC_CMD="$lt_save_MAGIC_CMD" 8063 ;; 8064esac 8065fi 8066 8067MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8068if test -n "$MAGIC_CMD"; then 8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8070$as_echo "$MAGIC_CMD" >&6; } 8071else 8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8073$as_echo "no" >&6; } 8074fi 8075 8076 8077 else 8078 MAGIC_CMD=: 8079 fi 8080fi 8081 8082 fi 8083 ;; 8084esac 8085 8086# Use C for the default configuration in the libtool script 8087 8088lt_save_CC="$CC" 8089ac_ext=c 8090ac_cpp='$CPP $CPPFLAGS' 8091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8093ac_compiler_gnu=$ac_cv_c_compiler_gnu 8094 8095 8096# Source file extension for C test sources. 8097ac_ext=c 8098 8099# Object file extension for compiled C test sources. 8100objext=o 8101objext=$objext 8102 8103# Code to be used in simple compile tests 8104lt_simple_compile_test_code="int some_variable = 0;" 8105 8106# Code to be used in simple link tests 8107lt_simple_link_test_code='int main(){return(0);}' 8108 8109 8110 8111 8112 8113 8114 8115# If no C compiler was specified, use CC. 8116LTCC=${LTCC-"$CC"} 8117 8118# If no C compiler flags were specified, use CFLAGS. 8119LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8120 8121# Allow CC to be a program name with arguments. 8122compiler=$CC 8123 8124# Save the default compiler, since it gets overwritten when the other 8125# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8126compiler_DEFAULT=$CC 8127 8128# save warnings/boilerplate of simple test code 8129ac_outfile=conftest.$ac_objext 8130echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8131eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8132_lt_compiler_boilerplate=`cat conftest.err` 8133$RM conftest* 8134 8135ac_outfile=conftest.$ac_objext 8136echo "$lt_simple_link_test_code" >conftest.$ac_ext 8137eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8138_lt_linker_boilerplate=`cat conftest.err` 8139$RM -r conftest* 8140 8141 8142## CAVEAT EMPTOR: 8143## There is no encapsulation within the following macros, do not change 8144## the running order or otherwise move them around unless you know exactly 8145## what you are doing... 8146if test -n "$compiler"; then 8147 8148lt_prog_compiler_no_builtin_flag= 8149 8150if test "$GCC" = yes; then 8151 case $cc_basename in 8152 nvcc*) 8153 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8154 *) 8155 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8156 esac 8157 8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8159$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8160if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8161 $as_echo_n "(cached) " >&6 8162else 8163 lt_cv_prog_compiler_rtti_exceptions=no 8164 ac_outfile=conftest.$ac_objext 8165 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8166 lt_compiler_flag="-fno-rtti -fno-exceptions" 8167 # Insert the option either (1) after the last *FLAGS variable, or 8168 # (2) before a word containing "conftest.", or (3) at the end. 8169 # Note that $ac_compile itself does not contain backslashes and begins 8170 # with a dollar sign (not a hyphen), so the echo should work correctly. 8171 # The option is referenced via a variable to avoid confusing sed. 8172 lt_compile=`echo "$ac_compile" | $SED \ 8173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8175 -e 's:$: $lt_compiler_flag:'` 8176 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8177 (eval "$lt_compile" 2>conftest.err) 8178 ac_status=$? 8179 cat conftest.err >&5 8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8181 if (exit $ac_status) && test -s "$ac_outfile"; then 8182 # The compiler can only warn and ignore the option if not recognized 8183 # So say no if there are warnings other than the usual output. 8184 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8185 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8186 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8187 lt_cv_prog_compiler_rtti_exceptions=yes 8188 fi 8189 fi 8190 $RM conftest* 8191 8192fi 8193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8194$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8195 8196if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8197 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8198else 8199 : 8200fi 8201 8202fi 8203 8204 8205 8206 8207 8208 8209 lt_prog_compiler_wl= 8210lt_prog_compiler_pic= 8211lt_prog_compiler_static= 8212 8213 8214 if test "$GCC" = yes; then 8215 lt_prog_compiler_wl='-Wl,' 8216 lt_prog_compiler_static='-static' 8217 8218 case $host_os in 8219 aix*) 8220 # All AIX code is PIC. 8221 if test "$host_cpu" = ia64; then 8222 # AIX 5 now supports IA64 processor 8223 lt_prog_compiler_static='-Bstatic' 8224 fi 8225 ;; 8226 8227 amigaos*) 8228 case $host_cpu in 8229 powerpc) 8230 # see comment about AmigaOS4 .so support 8231 lt_prog_compiler_pic='-fPIC' 8232 ;; 8233 m68k) 8234 # FIXME: we need at least 68020 code to build shared libraries, but 8235 # adding the `-m68020' flag to GCC prevents building anything better, 8236 # like `-m68040'. 8237 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8238 ;; 8239 esac 8240 ;; 8241 8242 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8243 # PIC is the default for these OSes. 8244 ;; 8245 8246 mingw* | cygwin* | pw32* | os2* | cegcc*) 8247 # This hack is so that the source file can tell whether it is being 8248 # built for inclusion in a dll (and should export symbols for example). 8249 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8250 # (--disable-auto-import) libraries 8251 lt_prog_compiler_pic='-DDLL_EXPORT' 8252 ;; 8253 8254 darwin* | rhapsody*) 8255 # PIC is the default on this platform 8256 # Common symbols not allowed in MH_DYLIB files 8257 lt_prog_compiler_pic='-fno-common' 8258 ;; 8259 8260 haiku*) 8261 # PIC is the default for Haiku. 8262 # The "-static" flag exists, but is broken. 8263 lt_prog_compiler_static= 8264 ;; 8265 8266 hpux*) 8267 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8268 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8269 # sets the default TLS model and affects inlining. 8270 case $host_cpu in 8271 hppa*64*) 8272 # +Z the default 8273 ;; 8274 *) 8275 lt_prog_compiler_pic='-fPIC' 8276 ;; 8277 esac 8278 ;; 8279 8280 interix[3-9]*) 8281 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8282 # Instead, we relocate shared libraries at runtime. 8283 ;; 8284 8285 msdosdjgpp*) 8286 # Just because we use GCC doesn't mean we suddenly get shared libraries 8287 # on systems that don't support them. 8288 lt_prog_compiler_can_build_shared=no 8289 enable_shared=no 8290 ;; 8291 8292 *nto* | *qnx*) 8293 # QNX uses GNU C++, but need to define -shared option too, otherwise 8294 # it will coredump. 8295 lt_prog_compiler_pic='-fPIC -shared' 8296 ;; 8297 8298 sysv4*MP*) 8299 if test -d /usr/nec; then 8300 lt_prog_compiler_pic=-Kconform_pic 8301 fi 8302 ;; 8303 8304 *) 8305 lt_prog_compiler_pic='-fPIC' 8306 ;; 8307 esac 8308 8309 case $cc_basename in 8310 nvcc*) # Cuda Compiler Driver 2.2 8311 lt_prog_compiler_wl='-Xlinker ' 8312 if test -n "$lt_prog_compiler_pic"; then 8313 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8314 fi 8315 ;; 8316 esac 8317 else 8318 # PORTME Check for flag to pass linker flags through the system compiler. 8319 case $host_os in 8320 aix*) 8321 lt_prog_compiler_wl='-Wl,' 8322 if test "$host_cpu" = ia64; then 8323 # AIX 5 now supports IA64 processor 8324 lt_prog_compiler_static='-Bstatic' 8325 else 8326 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8327 fi 8328 ;; 8329 8330 mingw* | cygwin* | pw32* | os2* | cegcc*) 8331 # This hack is so that the source file can tell whether it is being 8332 # built for inclusion in a dll (and should export symbols for example). 8333 lt_prog_compiler_pic='-DDLL_EXPORT' 8334 ;; 8335 8336 hpux9* | hpux10* | hpux11*) 8337 lt_prog_compiler_wl='-Wl,' 8338 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8339 # not for PA HP-UX. 8340 case $host_cpu in 8341 hppa*64*|ia64*) 8342 # +Z the default 8343 ;; 8344 *) 8345 lt_prog_compiler_pic='+Z' 8346 ;; 8347 esac 8348 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8349 lt_prog_compiler_static='${wl}-a ${wl}archive' 8350 ;; 8351 8352 irix5* | irix6* | nonstopux*) 8353 lt_prog_compiler_wl='-Wl,' 8354 # PIC (with -KPIC) is the default. 8355 lt_prog_compiler_static='-non_shared' 8356 ;; 8357 8358 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8359 case $cc_basename in 8360 # old Intel for x86_64 which still supported -KPIC. 8361 ecc*) 8362 lt_prog_compiler_wl='-Wl,' 8363 lt_prog_compiler_pic='-KPIC' 8364 lt_prog_compiler_static='-static' 8365 ;; 8366 # icc used to be incompatible with GCC. 8367 # ICC 10 doesn't accept -KPIC any more. 8368 icc* | ifort*) 8369 lt_prog_compiler_wl='-Wl,' 8370 lt_prog_compiler_pic='-fPIC' 8371 lt_prog_compiler_static='-static' 8372 ;; 8373 # Lahey Fortran 8.1. 8374 lf95*) 8375 lt_prog_compiler_wl='-Wl,' 8376 lt_prog_compiler_pic='--shared' 8377 lt_prog_compiler_static='--static' 8378 ;; 8379 nagfor*) 8380 # NAG Fortran compiler 8381 lt_prog_compiler_wl='-Wl,-Wl,,' 8382 lt_prog_compiler_pic='-PIC' 8383 lt_prog_compiler_static='-Bstatic' 8384 ;; 8385 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8386 # Portland Group compilers (*not* the Pentium gcc compiler, 8387 # which looks to be a dead project) 8388 lt_prog_compiler_wl='-Wl,' 8389 lt_prog_compiler_pic='-fpic' 8390 lt_prog_compiler_static='-Bstatic' 8391 ;; 8392 ccc*) 8393 lt_prog_compiler_wl='-Wl,' 8394 # All Alpha code is PIC. 8395 lt_prog_compiler_static='-non_shared' 8396 ;; 8397 xl* | bgxl* | bgf* | mpixl*) 8398 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8399 lt_prog_compiler_wl='-Wl,' 8400 lt_prog_compiler_pic='-qpic' 8401 lt_prog_compiler_static='-qstaticlink' 8402 ;; 8403 *) 8404 case `$CC -V 2>&1 | sed 5q` in 8405 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8406 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8407 lt_prog_compiler_pic='-KPIC' 8408 lt_prog_compiler_static='-Bstatic' 8409 lt_prog_compiler_wl='' 8410 ;; 8411 *Sun\ F* | *Sun*Fortran*) 8412 lt_prog_compiler_pic='-KPIC' 8413 lt_prog_compiler_static='-Bstatic' 8414 lt_prog_compiler_wl='-Qoption ld ' 8415 ;; 8416 *Sun\ C*) 8417 # Sun C 5.9 8418 lt_prog_compiler_pic='-KPIC' 8419 lt_prog_compiler_static='-Bstatic' 8420 lt_prog_compiler_wl='-Wl,' 8421 ;; 8422 *Intel*\ [CF]*Compiler*) 8423 lt_prog_compiler_wl='-Wl,' 8424 lt_prog_compiler_pic='-fPIC' 8425 lt_prog_compiler_static='-static' 8426 ;; 8427 *Portland\ Group*) 8428 lt_prog_compiler_wl='-Wl,' 8429 lt_prog_compiler_pic='-fpic' 8430 lt_prog_compiler_static='-Bstatic' 8431 ;; 8432 esac 8433 ;; 8434 esac 8435 ;; 8436 8437 newsos6) 8438 lt_prog_compiler_pic='-KPIC' 8439 lt_prog_compiler_static='-Bstatic' 8440 ;; 8441 8442 *nto* | *qnx*) 8443 # QNX uses GNU C++, but need to define -shared option too, otherwise 8444 # it will coredump. 8445 lt_prog_compiler_pic='-fPIC -shared' 8446 ;; 8447 8448 osf3* | osf4* | osf5*) 8449 lt_prog_compiler_wl='-Wl,' 8450 # All OSF/1 code is PIC. 8451 lt_prog_compiler_static='-non_shared' 8452 ;; 8453 8454 rdos*) 8455 lt_prog_compiler_static='-non_shared' 8456 ;; 8457 8458 solaris*) 8459 lt_prog_compiler_pic='-KPIC' 8460 lt_prog_compiler_static='-Bstatic' 8461 case $cc_basename in 8462 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8463 lt_prog_compiler_wl='-Qoption ld ';; 8464 *) 8465 lt_prog_compiler_wl='-Wl,';; 8466 esac 8467 ;; 8468 8469 sunos4*) 8470 lt_prog_compiler_wl='-Qoption ld ' 8471 lt_prog_compiler_pic='-PIC' 8472 lt_prog_compiler_static='-Bstatic' 8473 ;; 8474 8475 sysv4 | sysv4.2uw2* | sysv4.3*) 8476 lt_prog_compiler_wl='-Wl,' 8477 lt_prog_compiler_pic='-KPIC' 8478 lt_prog_compiler_static='-Bstatic' 8479 ;; 8480 8481 sysv4*MP*) 8482 if test -d /usr/nec ;then 8483 lt_prog_compiler_pic='-Kconform_pic' 8484 lt_prog_compiler_static='-Bstatic' 8485 fi 8486 ;; 8487 8488 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8489 lt_prog_compiler_wl='-Wl,' 8490 lt_prog_compiler_pic='-KPIC' 8491 lt_prog_compiler_static='-Bstatic' 8492 ;; 8493 8494 unicos*) 8495 lt_prog_compiler_wl='-Wl,' 8496 lt_prog_compiler_can_build_shared=no 8497 ;; 8498 8499 uts4*) 8500 lt_prog_compiler_pic='-pic' 8501 lt_prog_compiler_static='-Bstatic' 8502 ;; 8503 8504 *) 8505 lt_prog_compiler_can_build_shared=no 8506 ;; 8507 esac 8508 fi 8509 8510case $host_os in 8511 # For platforms which do not support PIC, -DPIC is meaningless: 8512 *djgpp*) 8513 lt_prog_compiler_pic= 8514 ;; 8515 *) 8516 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8517 ;; 8518esac 8519 8520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8521$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8522if ${lt_cv_prog_compiler_pic+:} false; then : 8523 $as_echo_n "(cached) " >&6 8524else 8525 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8526fi 8527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8528$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8529lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8530 8531# 8532# Check to make sure the PIC flag actually works. 8533# 8534if test -n "$lt_prog_compiler_pic"; then 8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8536$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8537if ${lt_cv_prog_compiler_pic_works+:} false; then : 8538 $as_echo_n "(cached) " >&6 8539else 8540 lt_cv_prog_compiler_pic_works=no 8541 ac_outfile=conftest.$ac_objext 8542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8543 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8544 # Insert the option either (1) after the last *FLAGS variable, or 8545 # (2) before a word containing "conftest.", or (3) at the end. 8546 # Note that $ac_compile itself does not contain backslashes and begins 8547 # with a dollar sign (not a hyphen), so the echo should work correctly. 8548 # The option is referenced via a variable to avoid confusing sed. 8549 lt_compile=`echo "$ac_compile" | $SED \ 8550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8552 -e 's:$: $lt_compiler_flag:'` 8553 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8554 (eval "$lt_compile" 2>conftest.err) 8555 ac_status=$? 8556 cat conftest.err >&5 8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8558 if (exit $ac_status) && test -s "$ac_outfile"; then 8559 # The compiler can only warn and ignore the option if not recognized 8560 # So say no if there are warnings other than the usual output. 8561 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8563 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8564 lt_cv_prog_compiler_pic_works=yes 8565 fi 8566 fi 8567 $RM conftest* 8568 8569fi 8570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8571$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8572 8573if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8574 case $lt_prog_compiler_pic in 8575 "" | " "*) ;; 8576 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8577 esac 8578else 8579 lt_prog_compiler_pic= 8580 lt_prog_compiler_can_build_shared=no 8581fi 8582 8583fi 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595# 8596# Check to make sure the static flag actually works. 8597# 8598wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8600$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8601if ${lt_cv_prog_compiler_static_works+:} false; then : 8602 $as_echo_n "(cached) " >&6 8603else 8604 lt_cv_prog_compiler_static_works=no 8605 save_LDFLAGS="$LDFLAGS" 8606 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8607 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8608 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8609 # The linker can only warn and ignore the option if not recognized 8610 # So say no if there are warnings 8611 if test -s conftest.err; then 8612 # Append any errors to the config.log. 8613 cat conftest.err 1>&5 8614 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8616 if diff conftest.exp conftest.er2 >/dev/null; then 8617 lt_cv_prog_compiler_static_works=yes 8618 fi 8619 else 8620 lt_cv_prog_compiler_static_works=yes 8621 fi 8622 fi 8623 $RM -r conftest* 8624 LDFLAGS="$save_LDFLAGS" 8625 8626fi 8627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8628$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8629 8630if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8631 : 8632else 8633 lt_prog_compiler_static= 8634fi 8635 8636 8637 8638 8639 8640 8641 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8643$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8644if ${lt_cv_prog_compiler_c_o+:} false; then : 8645 $as_echo_n "(cached) " >&6 8646else 8647 lt_cv_prog_compiler_c_o=no 8648 $RM -r conftest 2>/dev/null 8649 mkdir conftest 8650 cd conftest 8651 mkdir out 8652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8653 8654 lt_compiler_flag="-o out/conftest2.$ac_objext" 8655 # Insert the option either (1) after the last *FLAGS variable, or 8656 # (2) before a word containing "conftest.", or (3) at the end. 8657 # Note that $ac_compile itself does not contain backslashes and begins 8658 # with a dollar sign (not a hyphen), so the echo should work correctly. 8659 lt_compile=`echo "$ac_compile" | $SED \ 8660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8662 -e 's:$: $lt_compiler_flag:'` 8663 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8664 (eval "$lt_compile" 2>out/conftest.err) 8665 ac_status=$? 8666 cat out/conftest.err >&5 8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8668 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8669 then 8670 # The compiler can only warn and ignore the option if not recognized 8671 # So say no if there are warnings 8672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8673 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8674 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8675 lt_cv_prog_compiler_c_o=yes 8676 fi 8677 fi 8678 chmod u+w . 2>&5 8679 $RM conftest* 8680 # SGI C++ compiler will create directory out/ii_files/ for 8681 # template instantiation 8682 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8683 $RM out/* && rmdir out 8684 cd .. 8685 $RM -r conftest 8686 $RM conftest* 8687 8688fi 8689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8690$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8691 8692 8693 8694 8695 8696 8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8698$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8699if ${lt_cv_prog_compiler_c_o+:} false; then : 8700 $as_echo_n "(cached) " >&6 8701else 8702 lt_cv_prog_compiler_c_o=no 8703 $RM -r conftest 2>/dev/null 8704 mkdir conftest 8705 cd conftest 8706 mkdir out 8707 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8708 8709 lt_compiler_flag="-o out/conftest2.$ac_objext" 8710 # Insert the option either (1) after the last *FLAGS variable, or 8711 # (2) before a word containing "conftest.", or (3) at the end. 8712 # Note that $ac_compile itself does not contain backslashes and begins 8713 # with a dollar sign (not a hyphen), so the echo should work correctly. 8714 lt_compile=`echo "$ac_compile" | $SED \ 8715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8717 -e 's:$: $lt_compiler_flag:'` 8718 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8719 (eval "$lt_compile" 2>out/conftest.err) 8720 ac_status=$? 8721 cat out/conftest.err >&5 8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8723 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8724 then 8725 # The compiler can only warn and ignore the option if not recognized 8726 # So say no if there are warnings 8727 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8728 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8729 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8730 lt_cv_prog_compiler_c_o=yes 8731 fi 8732 fi 8733 chmod u+w . 2>&5 8734 $RM conftest* 8735 # SGI C++ compiler will create directory out/ii_files/ for 8736 # template instantiation 8737 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8738 $RM out/* && rmdir out 8739 cd .. 8740 $RM -r conftest 8741 $RM conftest* 8742 8743fi 8744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8745$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8746 8747 8748 8749 8750hard_links="nottested" 8751if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8752 # do not overwrite the value of need_locks provided by the user 8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8754$as_echo_n "checking if we can lock with hard links... " >&6; } 8755 hard_links=yes 8756 $RM conftest* 8757 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8758 touch conftest.a 8759 ln conftest.a conftest.b 2>&5 || hard_links=no 8760 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8762$as_echo "$hard_links" >&6; } 8763 if test "$hard_links" = no; then 8764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8765$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8766 need_locks=warn 8767 fi 8768else 8769 need_locks=no 8770fi 8771 8772 8773 8774 8775 8776 8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8778$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8779 8780 runpath_var= 8781 allow_undefined_flag= 8782 always_export_symbols=no 8783 archive_cmds= 8784 archive_expsym_cmds= 8785 compiler_needs_object=no 8786 enable_shared_with_static_runtimes=no 8787 export_dynamic_flag_spec= 8788 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8789 hardcode_automatic=no 8790 hardcode_direct=no 8791 hardcode_direct_absolute=no 8792 hardcode_libdir_flag_spec= 8793 hardcode_libdir_separator= 8794 hardcode_minus_L=no 8795 hardcode_shlibpath_var=unsupported 8796 inherit_rpath=no 8797 link_all_deplibs=unknown 8798 module_cmds= 8799 module_expsym_cmds= 8800 old_archive_from_new_cmds= 8801 old_archive_from_expsyms_cmds= 8802 thread_safe_flag_spec= 8803 whole_archive_flag_spec= 8804 # include_expsyms should be a list of space-separated symbols to be *always* 8805 # included in the symbol list 8806 include_expsyms= 8807 # exclude_expsyms can be an extended regexp of symbols to exclude 8808 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8809 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8810 # as well as any symbol that contains `d'. 8811 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8812 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8813 # platforms (ab)use it in PIC code, but their linkers get confused if 8814 # the symbol is explicitly referenced. Since portable code cannot 8815 # rely on this symbol name, it's probably fine to never include it in 8816 # preloaded symbol tables. 8817 # Exclude shared library initialization/finalization symbols. 8818 extract_expsyms_cmds= 8819 8820 case $host_os in 8821 cygwin* | mingw* | pw32* | cegcc*) 8822 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8823 # When not using gcc, we currently assume that we are using 8824 # Microsoft Visual C++. 8825 if test "$GCC" != yes; then 8826 with_gnu_ld=no 8827 fi 8828 ;; 8829 interix*) 8830 # we just hope/assume this is gcc and not c89 (= MSVC++) 8831 with_gnu_ld=yes 8832 ;; 8833 openbsd*) 8834 with_gnu_ld=no 8835 ;; 8836 linux* | k*bsd*-gnu | gnu*) 8837 link_all_deplibs=no 8838 ;; 8839 esac 8840 8841 ld_shlibs=yes 8842 8843 # On some targets, GNU ld is compatible enough with the native linker 8844 # that we're better off using the native interface for both. 8845 lt_use_gnu_ld_interface=no 8846 if test "$with_gnu_ld" = yes; then 8847 case $host_os in 8848 aix*) 8849 # The AIX port of GNU ld has always aspired to compatibility 8850 # with the native linker. However, as the warning in the GNU ld 8851 # block says, versions before 2.19.5* couldn't really create working 8852 # shared libraries, regardless of the interface used. 8853 case `$LD -v 2>&1` in 8854 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8855 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8856 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8857 *) 8858 lt_use_gnu_ld_interface=yes 8859 ;; 8860 esac 8861 ;; 8862 *) 8863 lt_use_gnu_ld_interface=yes 8864 ;; 8865 esac 8866 fi 8867 8868 if test "$lt_use_gnu_ld_interface" = yes; then 8869 # If archive_cmds runs LD, not CC, wlarc should be empty 8870 wlarc='${wl}' 8871 8872 # Set some defaults for GNU ld with shared library support. These 8873 # are reset later if shared libraries are not supported. Putting them 8874 # here allows them to be overridden if necessary. 8875 runpath_var=LD_RUN_PATH 8876 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8877 export_dynamic_flag_spec='${wl}--export-dynamic' 8878 # ancient GNU ld didn't support --whole-archive et. al. 8879 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8880 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8881 else 8882 whole_archive_flag_spec= 8883 fi 8884 supports_anon_versioning=no 8885 case `$LD -v 2>&1` in 8886 *GNU\ gold*) supports_anon_versioning=yes ;; 8887 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8888 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8889 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8890 *\ 2.11.*) ;; # other 2.11 versions 8891 *) supports_anon_versioning=yes ;; 8892 esac 8893 8894 # See if GNU ld supports shared libraries. 8895 case $host_os in 8896 aix[3-9]*) 8897 # On AIX/PPC, the GNU linker is very broken 8898 if test "$host_cpu" != ia64; then 8899 ld_shlibs=no 8900 cat <<_LT_EOF 1>&2 8901 8902*** Warning: the GNU linker, at least up to release 2.19, is reported 8903*** to be unable to reliably create shared libraries on AIX. 8904*** Therefore, libtool is disabling shared libraries support. If you 8905*** really care for shared libraries, you may want to install binutils 8906*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8907*** You will then need to restart the configuration process. 8908 8909_LT_EOF 8910 fi 8911 ;; 8912 8913 amigaos*) 8914 case $host_cpu in 8915 powerpc) 8916 # see comment about AmigaOS4 .so support 8917 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8918 archive_expsym_cmds='' 8919 ;; 8920 m68k) 8921 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)' 8922 hardcode_libdir_flag_spec='-L$libdir' 8923 hardcode_minus_L=yes 8924 ;; 8925 esac 8926 ;; 8927 8928 beos*) 8929 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8930 allow_undefined_flag=unsupported 8931 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8932 # support --undefined. This deserves some investigation. FIXME 8933 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8934 else 8935 ld_shlibs=no 8936 fi 8937 ;; 8938 8939 cygwin* | mingw* | pw32* | cegcc*) 8940 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8941 # as there is no search path for DLLs. 8942 hardcode_libdir_flag_spec='-L$libdir' 8943 export_dynamic_flag_spec='${wl}--export-all-symbols' 8944 allow_undefined_flag=unsupported 8945 always_export_symbols=no 8946 enable_shared_with_static_runtimes=yes 8947 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 8948 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8949 8950 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8952 # If the export-symbols file already is a .def file (1st line 8953 # is EXPORTS), use it as is; otherwise, prepend... 8954 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8955 cp $export_symbols $output_objdir/$soname.def; 8956 else 8957 echo EXPORTS > $output_objdir/$soname.def; 8958 cat $export_symbols >> $output_objdir/$soname.def; 8959 fi~ 8960 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8961 else 8962 ld_shlibs=no 8963 fi 8964 ;; 8965 8966 haiku*) 8967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8968 link_all_deplibs=yes 8969 ;; 8970 8971 interix[3-9]*) 8972 hardcode_direct=no 8973 hardcode_shlibpath_var=no 8974 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8975 export_dynamic_flag_spec='${wl}-E' 8976 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8977 # Instead, shared libraries are loaded at an image base (0x10000000 by 8978 # default) and relocated if they conflict, which is a slow very memory 8979 # consuming and fragmenting process. To avoid this, we pick a random, 8980 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8981 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8982 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8983 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' 8984 ;; 8985 8986 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8987 tmp_diet=no 8988 if test "$host_os" = linux-dietlibc; then 8989 case $cc_basename in 8990 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8991 esac 8992 fi 8993 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8994 && test "$tmp_diet" = no 8995 then 8996 tmp_addflag=' $pic_flag' 8997 tmp_sharedflag='-shared' 8998 case $cc_basename,$host_cpu in 8999 pgcc*) # Portland Group C compiler 9000 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' 9001 tmp_addflag=' $pic_flag' 9002 ;; 9003 pgf77* | pgf90* | pgf95* | pgfortran*) 9004 # Portland Group f77 and f90 compilers 9005 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' 9006 tmp_addflag=' $pic_flag -Mnomain' ;; 9007 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9008 tmp_addflag=' -i_dynamic' ;; 9009 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9010 tmp_addflag=' -i_dynamic -nofor_main' ;; 9011 ifc* | ifort*) # Intel Fortran compiler 9012 tmp_addflag=' -nofor_main' ;; 9013 lf95*) # Lahey Fortran 8.1 9014 whole_archive_flag_spec= 9015 tmp_sharedflag='--shared' ;; 9016 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9017 tmp_sharedflag='-qmkshrobj' 9018 tmp_addflag= ;; 9019 nvcc*) # Cuda Compiler Driver 2.2 9020 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' 9021 compiler_needs_object=yes 9022 ;; 9023 esac 9024 case `$CC -V 2>&1 | sed 5q` in 9025 *Sun\ C*) # Sun C 5.9 9026 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' 9027 compiler_needs_object=yes 9028 tmp_sharedflag='-G' ;; 9029 *Sun\ F*) # Sun Fortran 8.3 9030 tmp_sharedflag='-G' ;; 9031 esac 9032 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9033 9034 if test "x$supports_anon_versioning" = xyes; then 9035 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9036 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9037 echo "local: *; };" >> $output_objdir/$libname.ver~ 9038 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9039 fi 9040 9041 case $cc_basename in 9042 xlf* | bgf* | bgxlf* | mpixlf*) 9043 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9044 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9045 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9046 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9047 if test "x$supports_anon_versioning" = xyes; then 9048 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9049 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9050 echo "local: *; };" >> $output_objdir/$libname.ver~ 9051 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9052 fi 9053 ;; 9054 esac 9055 else 9056 ld_shlibs=no 9057 fi 9058 ;; 9059 9060 netbsd* | netbsdelf*-gnu) 9061 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9062 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9063 wlarc= 9064 else 9065 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9066 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9067 fi 9068 ;; 9069 9070 solaris*) 9071 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9072 ld_shlibs=no 9073 cat <<_LT_EOF 1>&2 9074 9075*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9076*** create shared libraries on Solaris systems. Therefore, libtool 9077*** is disabling shared libraries support. We urge you to upgrade GNU 9078*** binutils to release 2.9.1 or newer. Another option is to modify 9079*** your PATH or compiler configuration so that the native linker is 9080*** used, and then restart. 9081 9082_LT_EOF 9083 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9084 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9085 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9086 else 9087 ld_shlibs=no 9088 fi 9089 ;; 9090 9091 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9092 case `$LD -v 2>&1` in 9093 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9094 ld_shlibs=no 9095 cat <<_LT_EOF 1>&2 9096 9097*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9098*** reliably create shared libraries on SCO systems. Therefore, libtool 9099*** is disabling shared libraries support. We urge you to upgrade GNU 9100*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9101*** your PATH or compiler configuration so that the native linker is 9102*** used, and then restart. 9103 9104_LT_EOF 9105 ;; 9106 *) 9107 # For security reasons, it is highly recommended that you always 9108 # use absolute paths for naming shared libraries, and exclude the 9109 # DT_RUNPATH tag from executables and libraries. But doing so 9110 # requires that you compile everything twice, which is a pain. 9111 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9112 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9114 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9115 else 9116 ld_shlibs=no 9117 fi 9118 ;; 9119 esac 9120 ;; 9121 9122 sunos4*) 9123 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9124 wlarc= 9125 hardcode_direct=yes 9126 hardcode_shlibpath_var=no 9127 ;; 9128 9129 *) 9130 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9131 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9132 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9133 else 9134 ld_shlibs=no 9135 fi 9136 ;; 9137 esac 9138 9139 if test "$ld_shlibs" = no; then 9140 runpath_var= 9141 hardcode_libdir_flag_spec= 9142 export_dynamic_flag_spec= 9143 whole_archive_flag_spec= 9144 fi 9145 else 9146 # PORTME fill in a description of your system's linker (not GNU ld) 9147 case $host_os in 9148 aix3*) 9149 allow_undefined_flag=unsupported 9150 always_export_symbols=yes 9151 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' 9152 # Note: this linker hardcodes the directories in LIBPATH if there 9153 # are no directories specified by -L. 9154 hardcode_minus_L=yes 9155 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9156 # Neither direct hardcoding nor static linking is supported with a 9157 # broken collect2. 9158 hardcode_direct=unsupported 9159 fi 9160 ;; 9161 9162 aix[4-9]*) 9163 if test "$host_cpu" = ia64; then 9164 # On IA64, the linker does run time linking by default, so we don't 9165 # have to do anything special. 9166 aix_use_runtimelinking=no 9167 exp_sym_flag='-Bexport' 9168 no_entry_flag="" 9169 else 9170 # If we're using GNU nm, then we don't want the "-C" option. 9171 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9172 # Also, AIX nm treats weak defined symbols like other global 9173 # defined symbols, whereas GNU nm marks them as "W". 9174 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9175 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' 9176 else 9177 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' 9178 fi 9179 aix_use_runtimelinking=no 9180 9181 # Test if we are trying to use run time linking or normal 9182 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9183 # need to do runtime linking. 9184 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9185 for ld_flag in $LDFLAGS; do 9186 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9187 aix_use_runtimelinking=yes 9188 break 9189 fi 9190 done 9191 ;; 9192 esac 9193 9194 exp_sym_flag='-bexport' 9195 no_entry_flag='-bnoentry' 9196 fi 9197 9198 # When large executables or shared objects are built, AIX ld can 9199 # have problems creating the table of contents. If linking a library 9200 # or program results in "error TOC overflow" add -mminimal-toc to 9201 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9202 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9203 9204 archive_cmds='' 9205 hardcode_direct=yes 9206 hardcode_direct_absolute=yes 9207 hardcode_libdir_separator=':' 9208 link_all_deplibs=yes 9209 file_list_spec='${wl}-f,' 9210 9211 if test "$GCC" = yes; then 9212 case $host_os in aix4.[012]|aix4.[012].*) 9213 # We only want to do this on AIX 4.2 and lower, the check 9214 # below for broken collect2 doesn't work under 4.3+ 9215 collect2name=`${CC} -print-prog-name=collect2` 9216 if test -f "$collect2name" && 9217 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9218 then 9219 # We have reworked collect2 9220 : 9221 else 9222 # We have old collect2 9223 hardcode_direct=unsupported 9224 # It fails to find uninstalled libraries when the uninstalled 9225 # path is not listed in the libpath. Setting hardcode_minus_L 9226 # to unsupported forces relinking 9227 hardcode_minus_L=yes 9228 hardcode_libdir_flag_spec='-L$libdir' 9229 hardcode_libdir_separator= 9230 fi 9231 ;; 9232 esac 9233 shared_flag='-shared' 9234 if test "$aix_use_runtimelinking" = yes; then 9235 shared_flag="$shared_flag "'${wl}-G' 9236 fi 9237 link_all_deplibs=no 9238 else 9239 # not using gcc 9240 if test "$host_cpu" = ia64; then 9241 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9242 # chokes on -Wl,-G. The following line is correct: 9243 shared_flag='-G' 9244 else 9245 if test "$aix_use_runtimelinking" = yes; then 9246 shared_flag='${wl}-G' 9247 else 9248 shared_flag='${wl}-bM:SRE' 9249 fi 9250 fi 9251 fi 9252 9253 export_dynamic_flag_spec='${wl}-bexpall' 9254 # It seems that -bexpall does not export symbols beginning with 9255 # underscore (_), so it is better to generate a list of symbols to export. 9256 always_export_symbols=yes 9257 if test "$aix_use_runtimelinking" = yes; then 9258 # Warning - without using the other runtime loading flags (-brtl), 9259 # -berok will link without error, but may produce a broken library. 9260 allow_undefined_flag='-berok' 9261 # Determine the default libpath from the value encoded in an 9262 # empty executable. 9263 if test "${lt_cv_aix_libpath+set}" = set; then 9264 aix_libpath=$lt_cv_aix_libpath 9265else 9266 if ${lt_cv_aix_libpath_+:} false; then : 9267 $as_echo_n "(cached) " >&6 9268else 9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9270/* end confdefs.h. */ 9271 9272int 9273main () 9274{ 9275 9276 ; 9277 return 0; 9278} 9279_ACEOF 9280if ac_fn_c_try_link "$LINENO"; then : 9281 9282 lt_aix_libpath_sed=' 9283 /Import File Strings/,/^$/ { 9284 /^0/ { 9285 s/^0 *\([^ ]*\) *$/\1/ 9286 p 9287 } 9288 }' 9289 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9290 # Check for a 64-bit object if we didn't find anything. 9291 if test -z "$lt_cv_aix_libpath_"; then 9292 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9293 fi 9294fi 9295rm -f core conftest.err conftest.$ac_objext \ 9296 conftest$ac_exeext conftest.$ac_ext 9297 if test -z "$lt_cv_aix_libpath_"; then 9298 lt_cv_aix_libpath_="/usr/lib:/lib" 9299 fi 9300 9301fi 9302 9303 aix_libpath=$lt_cv_aix_libpath_ 9304fi 9305 9306 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9307 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" 9308 else 9309 if test "$host_cpu" = ia64; then 9310 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9311 allow_undefined_flag="-z nodefs" 9312 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" 9313 else 9314 # Determine the default libpath from the value encoded in an 9315 # empty executable. 9316 if test "${lt_cv_aix_libpath+set}" = set; then 9317 aix_libpath=$lt_cv_aix_libpath 9318else 9319 if ${lt_cv_aix_libpath_+:} false; then : 9320 $as_echo_n "(cached) " >&6 9321else 9322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9323/* end confdefs.h. */ 9324 9325int 9326main () 9327{ 9328 9329 ; 9330 return 0; 9331} 9332_ACEOF 9333if ac_fn_c_try_link "$LINENO"; then : 9334 9335 lt_aix_libpath_sed=' 9336 /Import File Strings/,/^$/ { 9337 /^0/ { 9338 s/^0 *\([^ ]*\) *$/\1/ 9339 p 9340 } 9341 }' 9342 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9343 # Check for a 64-bit object if we didn't find anything. 9344 if test -z "$lt_cv_aix_libpath_"; then 9345 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9346 fi 9347fi 9348rm -f core conftest.err conftest.$ac_objext \ 9349 conftest$ac_exeext conftest.$ac_ext 9350 if test -z "$lt_cv_aix_libpath_"; then 9351 lt_cv_aix_libpath_="/usr/lib:/lib" 9352 fi 9353 9354fi 9355 9356 aix_libpath=$lt_cv_aix_libpath_ 9357fi 9358 9359 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9360 # Warning - without using the other run time loading flags, 9361 # -berok will link without error, but may produce a broken library. 9362 no_undefined_flag=' ${wl}-bernotok' 9363 allow_undefined_flag=' ${wl}-berok' 9364 if test "$with_gnu_ld" = yes; then 9365 # We only use this code for GNU lds that support --whole-archive. 9366 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9367 else 9368 # Exported symbols can be pulled into shared objects from archives 9369 whole_archive_flag_spec='$convenience' 9370 fi 9371 archive_cmds_need_lc=yes 9372 # This is similar to how AIX traditionally builds its shared libraries. 9373 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' 9374 fi 9375 fi 9376 ;; 9377 9378 amigaos*) 9379 case $host_cpu in 9380 powerpc) 9381 # see comment about AmigaOS4 .so support 9382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9383 archive_expsym_cmds='' 9384 ;; 9385 m68k) 9386 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)' 9387 hardcode_libdir_flag_spec='-L$libdir' 9388 hardcode_minus_L=yes 9389 ;; 9390 esac 9391 ;; 9392 9393 bsdi[45]*) 9394 export_dynamic_flag_spec=-rdynamic 9395 ;; 9396 9397 cygwin* | mingw* | pw32* | cegcc*) 9398 # When not using gcc, we currently assume that we are using 9399 # Microsoft Visual C++. 9400 # hardcode_libdir_flag_spec is actually meaningless, as there is 9401 # no search path for DLLs. 9402 case $cc_basename in 9403 cl*) 9404 # Native MSVC 9405 hardcode_libdir_flag_spec=' ' 9406 allow_undefined_flag=unsupported 9407 always_export_symbols=yes 9408 file_list_spec='@' 9409 # Tell ltmain to make .lib files, not .a files. 9410 libext=lib 9411 # Tell ltmain to make .dll files, not .so files. 9412 shrext_cmds=".dll" 9413 # FIXME: Setting linknames here is a bad hack. 9414 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9415 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9416 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9417 else 9418 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9419 fi~ 9420 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9421 linknames=' 9422 # The linker will not automatically build a static lib if we build a DLL. 9423 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9424 enable_shared_with_static_runtimes=yes 9425 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9426 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9427 # Don't use ranlib 9428 old_postinstall_cmds='chmod 644 $oldlib' 9429 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9430 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9431 case $lt_outputfile in 9432 *.exe|*.EXE) ;; 9433 *) 9434 lt_outputfile="$lt_outputfile.exe" 9435 lt_tool_outputfile="$lt_tool_outputfile.exe" 9436 ;; 9437 esac~ 9438 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9439 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9440 $RM "$lt_outputfile.manifest"; 9441 fi' 9442 ;; 9443 *) 9444 # Assume MSVC wrapper 9445 hardcode_libdir_flag_spec=' ' 9446 allow_undefined_flag=unsupported 9447 # Tell ltmain to make .lib files, not .a files. 9448 libext=lib 9449 # Tell ltmain to make .dll files, not .so files. 9450 shrext_cmds=".dll" 9451 # FIXME: Setting linknames here is a bad hack. 9452 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9453 # The linker will automatically build a .lib file if we build a DLL. 9454 old_archive_from_new_cmds='true' 9455 # FIXME: Should let the user specify the lib program. 9456 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9457 enable_shared_with_static_runtimes=yes 9458 ;; 9459 esac 9460 ;; 9461 9462 darwin* | rhapsody*) 9463 9464 9465 archive_cmds_need_lc=no 9466 hardcode_direct=no 9467 hardcode_automatic=yes 9468 hardcode_shlibpath_var=unsupported 9469 if test "$lt_cv_ld_force_load" = "yes"; then 9470 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\"`' 9471 9472 else 9473 whole_archive_flag_spec='' 9474 fi 9475 link_all_deplibs=yes 9476 allow_undefined_flag="$_lt_dar_allow_undefined" 9477 case $cc_basename in 9478 ifort*) _lt_dar_can_shared=yes ;; 9479 *) _lt_dar_can_shared=$GCC ;; 9480 esac 9481 if test "$_lt_dar_can_shared" = "yes"; then 9482 output_verbose_link_cmd=func_echo_all 9483 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9484 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9485 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}" 9486 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}" 9487 9488 else 9489 ld_shlibs=no 9490 fi 9491 9492 ;; 9493 9494 dgux*) 9495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9496 hardcode_libdir_flag_spec='-L$libdir' 9497 hardcode_shlibpath_var=no 9498 ;; 9499 9500 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9501 # support. Future versions do this automatically, but an explicit c++rt0.o 9502 # does not break anything, and helps significantly (at the cost of a little 9503 # extra space). 9504 freebsd2.2*) 9505 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9506 hardcode_libdir_flag_spec='-R$libdir' 9507 hardcode_direct=yes 9508 hardcode_shlibpath_var=no 9509 ;; 9510 9511 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9512 freebsd2.*) 9513 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9514 hardcode_direct=yes 9515 hardcode_minus_L=yes 9516 hardcode_shlibpath_var=no 9517 ;; 9518 9519 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9520 freebsd* | dragonfly*) 9521 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9522 hardcode_libdir_flag_spec='-R$libdir' 9523 hardcode_direct=yes 9524 hardcode_shlibpath_var=no 9525 ;; 9526 9527 hpux9*) 9528 if test "$GCC" = yes; then 9529 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9530 else 9531 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' 9532 fi 9533 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9534 hardcode_libdir_separator=: 9535 hardcode_direct=yes 9536 9537 # hardcode_minus_L: Not really in the search PATH, 9538 # but as the default location of the library. 9539 hardcode_minus_L=yes 9540 export_dynamic_flag_spec='${wl}-E' 9541 ;; 9542 9543 hpux10*) 9544 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9545 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9546 else 9547 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9548 fi 9549 if test "$with_gnu_ld" = no; then 9550 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9551 hardcode_libdir_separator=: 9552 hardcode_direct=yes 9553 hardcode_direct_absolute=yes 9554 export_dynamic_flag_spec='${wl}-E' 9555 # hardcode_minus_L: Not really in the search PATH, 9556 # but as the default location of the library. 9557 hardcode_minus_L=yes 9558 fi 9559 ;; 9560 9561 hpux11*) 9562 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9563 case $host_cpu in 9564 hppa*64*) 9565 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9566 ;; 9567 ia64*) 9568 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9569 ;; 9570 *) 9571 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9572 ;; 9573 esac 9574 else 9575 case $host_cpu in 9576 hppa*64*) 9577 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9578 ;; 9579 ia64*) 9580 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9581 ;; 9582 *) 9583 9584 # Older versions of the 11.00 compiler do not understand -b yet 9585 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9587$as_echo_n "checking if $CC understands -b... " >&6; } 9588if ${lt_cv_prog_compiler__b+:} false; then : 9589 $as_echo_n "(cached) " >&6 9590else 9591 lt_cv_prog_compiler__b=no 9592 save_LDFLAGS="$LDFLAGS" 9593 LDFLAGS="$LDFLAGS -b" 9594 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9595 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9596 # The linker can only warn and ignore the option if not recognized 9597 # So say no if there are warnings 9598 if test -s conftest.err; then 9599 # Append any errors to the config.log. 9600 cat conftest.err 1>&5 9601 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9602 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9603 if diff conftest.exp conftest.er2 >/dev/null; then 9604 lt_cv_prog_compiler__b=yes 9605 fi 9606 else 9607 lt_cv_prog_compiler__b=yes 9608 fi 9609 fi 9610 $RM -r conftest* 9611 LDFLAGS="$save_LDFLAGS" 9612 9613fi 9614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9615$as_echo "$lt_cv_prog_compiler__b" >&6; } 9616 9617if test x"$lt_cv_prog_compiler__b" = xyes; then 9618 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9619else 9620 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9621fi 9622 9623 ;; 9624 esac 9625 fi 9626 if test "$with_gnu_ld" = no; then 9627 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9628 hardcode_libdir_separator=: 9629 9630 case $host_cpu in 9631 hppa*64*|ia64*) 9632 hardcode_direct=no 9633 hardcode_shlibpath_var=no 9634 ;; 9635 *) 9636 hardcode_direct=yes 9637 hardcode_direct_absolute=yes 9638 export_dynamic_flag_spec='${wl}-E' 9639 9640 # hardcode_minus_L: Not really in the search PATH, 9641 # but as the default location of the library. 9642 hardcode_minus_L=yes 9643 ;; 9644 esac 9645 fi 9646 ;; 9647 9648 irix5* | irix6* | nonstopux*) 9649 if test "$GCC" = yes; then 9650 archive_cmds='$CC -shared $pic_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' 9651 # Try to use the -exported_symbol ld option, if it does not 9652 # work, assume that -exports_file does not work either and 9653 # implicitly export all symbols. 9654 # This should be the same for all languages, so no per-tag cache variable. 9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9656$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9657if ${lt_cv_irix_exported_symbol+:} false; then : 9658 $as_echo_n "(cached) " >&6 9659else 9660 save_LDFLAGS="$LDFLAGS" 9661 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9663/* end confdefs.h. */ 9664int foo (void) { return 0; } 9665_ACEOF 9666if ac_fn_c_try_link "$LINENO"; then : 9667 lt_cv_irix_exported_symbol=yes 9668else 9669 lt_cv_irix_exported_symbol=no 9670fi 9671rm -f core conftest.err conftest.$ac_objext \ 9672 conftest$ac_exeext conftest.$ac_ext 9673 LDFLAGS="$save_LDFLAGS" 9674fi 9675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9676$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9677 if test "$lt_cv_irix_exported_symbol" = yes; then 9678 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib' 9679 fi 9680 else 9681 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' 9682 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' 9683 fi 9684 archive_cmds_need_lc='no' 9685 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9686 hardcode_libdir_separator=: 9687 inherit_rpath=yes 9688 link_all_deplibs=yes 9689 ;; 9690 9691 netbsd* | netbsdelf*-gnu) 9692 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9693 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9694 else 9695 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9696 fi 9697 hardcode_libdir_flag_spec='-R$libdir' 9698 hardcode_direct=yes 9699 hardcode_shlibpath_var=no 9700 ;; 9701 9702 newsos6) 9703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9704 hardcode_direct=yes 9705 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9706 hardcode_libdir_separator=: 9707 hardcode_shlibpath_var=no 9708 ;; 9709 9710 *nto* | *qnx*) 9711 ;; 9712 9713 openbsd*) 9714 if test -f /usr/libexec/ld.so; then 9715 hardcode_direct=yes 9716 hardcode_shlibpath_var=no 9717 hardcode_direct_absolute=yes 9718 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9719 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9720 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9721 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9722 export_dynamic_flag_spec='${wl}-E' 9723 else 9724 case $host_os in 9725 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9726 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9727 hardcode_libdir_flag_spec='-R$libdir' 9728 ;; 9729 *) 9730 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9731 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9732 ;; 9733 esac 9734 fi 9735 else 9736 ld_shlibs=no 9737 fi 9738 ;; 9739 9740 os2*) 9741 hardcode_libdir_flag_spec='-L$libdir' 9742 hardcode_minus_L=yes 9743 allow_undefined_flag=unsupported 9744 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' 9745 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9746 ;; 9747 9748 osf3*) 9749 if test "$GCC" = yes; then 9750 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9751 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' 9752 else 9753 allow_undefined_flag=' -expect_unresolved \*' 9754 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' 9755 fi 9756 archive_cmds_need_lc='no' 9757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9758 hardcode_libdir_separator=: 9759 ;; 9760 9761 osf4* | osf5*) # as osf3* with the addition of -msym flag 9762 if test "$GCC" = yes; then 9763 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9764 archive_cmds='$CC -shared${allow_undefined_flag} $pic_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' 9765 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9766 else 9767 allow_undefined_flag=' -expect_unresolved \*' 9768 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' 9769 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~ 9770 $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' 9771 9772 # Both c and cxx compiler support -rpath directly 9773 hardcode_libdir_flag_spec='-rpath $libdir' 9774 fi 9775 archive_cmds_need_lc='no' 9776 hardcode_libdir_separator=: 9777 ;; 9778 9779 solaris*) 9780 no_undefined_flag=' -z defs' 9781 if test "$GCC" = yes; then 9782 wlarc='${wl}' 9783 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9784 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9785 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9786 else 9787 case `$CC -V 2>&1` in 9788 *"Compilers 5.0"*) 9789 wlarc='' 9790 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9791 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9792 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9793 ;; 9794 *) 9795 wlarc='${wl}' 9796 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9797 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9798 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9799 ;; 9800 esac 9801 fi 9802 hardcode_libdir_flag_spec='-R$libdir' 9803 hardcode_shlibpath_var=no 9804 case $host_os in 9805 solaris2.[0-5] | solaris2.[0-5].*) ;; 9806 *) 9807 # The compiler driver will combine and reorder linker options, 9808 # but understands `-z linker_flag'. GCC discards it without `$wl', 9809 # but is careful enough not to reorder. 9810 # Supported since Solaris 2.6 (maybe 2.5.1?) 9811 if test "$GCC" = yes; then 9812 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9813 else 9814 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9815 fi 9816 ;; 9817 esac 9818 link_all_deplibs=yes 9819 ;; 9820 9821 sunos4*) 9822 if test "x$host_vendor" = xsequent; then 9823 # Use $CC to link under sequent, because it throws in some extra .o 9824 # files that make .init and .fini sections work. 9825 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9826 else 9827 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9828 fi 9829 hardcode_libdir_flag_spec='-L$libdir' 9830 hardcode_direct=yes 9831 hardcode_minus_L=yes 9832 hardcode_shlibpath_var=no 9833 ;; 9834 9835 sysv4) 9836 case $host_vendor in 9837 sni) 9838 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9839 hardcode_direct=yes # is this really true??? 9840 ;; 9841 siemens) 9842 ## LD is ld it makes a PLAMLIB 9843 ## CC just makes a GrossModule. 9844 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9845 reload_cmds='$CC -r -o $output$reload_objs' 9846 hardcode_direct=no 9847 ;; 9848 motorola) 9849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9850 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9851 ;; 9852 esac 9853 runpath_var='LD_RUN_PATH' 9854 hardcode_shlibpath_var=no 9855 ;; 9856 9857 sysv4.3*) 9858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9859 hardcode_shlibpath_var=no 9860 export_dynamic_flag_spec='-Bexport' 9861 ;; 9862 9863 sysv4*MP*) 9864 if test -d /usr/nec; then 9865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9866 hardcode_shlibpath_var=no 9867 runpath_var=LD_RUN_PATH 9868 hardcode_runpath_var=yes 9869 ld_shlibs=yes 9870 fi 9871 ;; 9872 9873 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9874 no_undefined_flag='${wl}-z,text' 9875 archive_cmds_need_lc=no 9876 hardcode_shlibpath_var=no 9877 runpath_var='LD_RUN_PATH' 9878 9879 if test "$GCC" = yes; then 9880 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9881 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9882 else 9883 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9884 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9885 fi 9886 ;; 9887 9888 sysv5* | sco3.2v5* | sco5v6*) 9889 # Note: We can NOT use -z defs as we might desire, because we do not 9890 # link with -lc, and that would cause any symbols used from libc to 9891 # always be unresolved, which means just about no library would 9892 # ever link correctly. If we're not using GNU ld we use -z text 9893 # though, which does catch some bad symbols but isn't as heavy-handed 9894 # as -z defs. 9895 no_undefined_flag='${wl}-z,text' 9896 allow_undefined_flag='${wl}-z,nodefs' 9897 archive_cmds_need_lc=no 9898 hardcode_shlibpath_var=no 9899 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9900 hardcode_libdir_separator=':' 9901 link_all_deplibs=yes 9902 export_dynamic_flag_spec='${wl}-Bexport' 9903 runpath_var='LD_RUN_PATH' 9904 9905 if test "$GCC" = yes; then 9906 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9907 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9908 else 9909 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9910 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9911 fi 9912 ;; 9913 9914 uts4*) 9915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9916 hardcode_libdir_flag_spec='-L$libdir' 9917 hardcode_shlibpath_var=no 9918 ;; 9919 9920 *) 9921 ld_shlibs=no 9922 ;; 9923 esac 9924 9925 if test x$host_vendor = xsni; then 9926 case $host in 9927 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9928 export_dynamic_flag_spec='${wl}-Blargedynsym' 9929 ;; 9930 esac 9931 fi 9932 fi 9933 9934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9935$as_echo "$ld_shlibs" >&6; } 9936test "$ld_shlibs" = no && can_build_shared=no 9937 9938with_gnu_ld=$with_gnu_ld 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954# 9955# Do we need to explicitly link libc? 9956# 9957case "x$archive_cmds_need_lc" in 9958x|xyes) 9959 # Assume -lc should be added 9960 archive_cmds_need_lc=yes 9961 9962 if test "$enable_shared" = yes && test "$GCC" = yes; then 9963 case $archive_cmds in 9964 *'~'*) 9965 # FIXME: we may have to deal with multi-command sequences. 9966 ;; 9967 '$CC '*) 9968 # Test whether the compiler implicitly links with -lc since on some 9969 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9970 # to ld, don't add -lc before -lgcc. 9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9972$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9973if ${lt_cv_archive_cmds_need_lc+:} false; then : 9974 $as_echo_n "(cached) " >&6 9975else 9976 $RM conftest* 9977 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9978 9979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9980 (eval $ac_compile) 2>&5 9981 ac_status=$? 9982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9983 test $ac_status = 0; } 2>conftest.err; then 9984 soname=conftest 9985 lib=conftest 9986 libobjs=conftest.$ac_objext 9987 deplibs= 9988 wl=$lt_prog_compiler_wl 9989 pic_flag=$lt_prog_compiler_pic 9990 compiler_flags=-v 9991 linker_flags=-v 9992 verstring= 9993 output_objdir=. 9994 libname=conftest 9995 lt_save_allow_undefined_flag=$allow_undefined_flag 9996 allow_undefined_flag= 9997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9998 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9999 ac_status=$? 10000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10001 test $ac_status = 0; } 10002 then 10003 lt_cv_archive_cmds_need_lc=no 10004 else 10005 lt_cv_archive_cmds_need_lc=yes 10006 fi 10007 allow_undefined_flag=$lt_save_allow_undefined_flag 10008 else 10009 cat conftest.err 1>&5 10010 fi 10011 $RM conftest* 10012 10013fi 10014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10015$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10016 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10017 ;; 10018 esac 10019 fi 10020 ;; 10021esac 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10175$as_echo_n "checking dynamic linker characteristics... " >&6; } 10176 10177if test "$GCC" = yes; then 10178 case $host_os in 10179 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10180 *) lt_awk_arg="/^libraries:/" ;; 10181 esac 10182 case $host_os in 10183 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10184 *) lt_sed_strip_eq="s,=/,/,g" ;; 10185 esac 10186 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10187 case $lt_search_path_spec in 10188 *\;*) 10189 # if the path contains ";" then we assume it to be the separator 10190 # otherwise default to the standard path separator (i.e. ":") - it is 10191 # assumed that no part of a normal pathname contains ";" but that should 10192 # okay in the real world where ";" in dirpaths is itself problematic. 10193 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10194 ;; 10195 *) 10196 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10197 ;; 10198 esac 10199 # Ok, now we have the path, separated by spaces, we can step through it 10200 # and add multilib dir if necessary. 10201 lt_tmp_lt_search_path_spec= 10202 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10203 for lt_sys_path in $lt_search_path_spec; do 10204 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10205 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10206 else 10207 test -d "$lt_sys_path" && \ 10208 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10209 fi 10210 done 10211 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10212BEGIN {RS=" "; FS="/|\n";} { 10213 lt_foo=""; 10214 lt_count=0; 10215 for (lt_i = NF; lt_i > 0; lt_i--) { 10216 if ($lt_i != "" && $lt_i != ".") { 10217 if ($lt_i == "..") { 10218 lt_count++; 10219 } else { 10220 if (lt_count == 0) { 10221 lt_foo="/" $lt_i lt_foo; 10222 } else { 10223 lt_count--; 10224 } 10225 } 10226 } 10227 } 10228 if (lt_foo != "") { lt_freq[lt_foo]++; } 10229 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10230}'` 10231 # AWK program above erroneously prepends '/' to C:/dos/paths 10232 # for these hosts. 10233 case $host_os in 10234 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10235 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10236 esac 10237 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10238else 10239 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10240fi 10241library_names_spec= 10242libname_spec='lib$name' 10243soname_spec= 10244shrext_cmds=".so" 10245postinstall_cmds= 10246postuninstall_cmds= 10247finish_cmds= 10248finish_eval= 10249shlibpath_var= 10250shlibpath_overrides_runpath=unknown 10251version_type=none 10252dynamic_linker="$host_os ld.so" 10253sys_lib_dlsearch_path_spec="/lib /usr/lib" 10254need_lib_prefix=unknown 10255hardcode_into_libs=no 10256 10257# when you set need_version to no, make sure it does not cause -set_version 10258# flags to be left without arguments 10259need_version=unknown 10260 10261case $host_os in 10262aix3*) 10263 version_type=linux # correct to gnu/linux during the next big refactor 10264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10265 shlibpath_var=LIBPATH 10266 10267 # AIX 3 has no versioning support, so we append a major version to the name. 10268 soname_spec='${libname}${release}${shared_ext}$major' 10269 ;; 10270 10271aix[4-9]*) 10272 version_type=linux # correct to gnu/linux during the next big refactor 10273 need_lib_prefix=no 10274 need_version=no 10275 hardcode_into_libs=yes 10276 if test "$host_cpu" = ia64; then 10277 # AIX 5 supports IA64 10278 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10279 shlibpath_var=LD_LIBRARY_PATH 10280 else 10281 # With GCC up to 2.95.x, collect2 would create an import file 10282 # for dependence libraries. The import file would start with 10283 # the line `#! .'. This would cause the generated library to 10284 # depend on `.', always an invalid library. This was fixed in 10285 # development snapshots of GCC prior to 3.0. 10286 case $host_os in 10287 aix4 | aix4.[01] | aix4.[01].*) 10288 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10289 echo ' yes ' 10290 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10291 : 10292 else 10293 can_build_shared=no 10294 fi 10295 ;; 10296 esac 10297 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10298 # soname into executable. Probably we can add versioning support to 10299 # collect2, so additional links can be useful in future. 10300 if test "$aix_use_runtimelinking" = yes; then 10301 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10302 # instead of lib<name>.a to let people know that these are not 10303 # typical AIX shared libraries. 10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10305 else 10306 # We preserve .a as extension for shared libraries through AIX4.2 10307 # and later when we are not doing run time linking. 10308 library_names_spec='${libname}${release}.a $libname.a' 10309 soname_spec='${libname}${release}${shared_ext}$major' 10310 fi 10311 shlibpath_var=LIBPATH 10312 fi 10313 ;; 10314 10315amigaos*) 10316 case $host_cpu in 10317 powerpc) 10318 # Since July 2007 AmigaOS4 officially supports .so libraries. 10319 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10321 ;; 10322 m68k) 10323 library_names_spec='$libname.ixlibrary $libname.a' 10324 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10325 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' 10326 ;; 10327 esac 10328 ;; 10329 10330beos*) 10331 library_names_spec='${libname}${shared_ext}' 10332 dynamic_linker="$host_os ld.so" 10333 shlibpath_var=LIBRARY_PATH 10334 ;; 10335 10336bsdi[45]*) 10337 version_type=linux # correct to gnu/linux during the next big refactor 10338 need_version=no 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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10342 shlibpath_var=LD_LIBRARY_PATH 10343 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10344 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10345 # the default ld.so.conf also contains /usr/contrib/lib and 10346 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10347 # libtool to hard-code these into programs 10348 ;; 10349 10350cygwin* | mingw* | pw32* | cegcc*) 10351 version_type=windows 10352 shrext_cmds=".dll" 10353 need_version=no 10354 need_lib_prefix=no 10355 10356 case $GCC,$cc_basename in 10357 yes,*) 10358 # gcc 10359 library_names_spec='$libname.dll.a' 10360 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10361 postinstall_cmds='base_file=`basename \${file}`~ 10362 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10363 dldir=$destdir/`dirname \$dlpath`~ 10364 test -d \$dldir || mkdir -p \$dldir~ 10365 $install_prog $dir/$dlname \$dldir/$dlname~ 10366 chmod a+x \$dldir/$dlname~ 10367 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10368 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10369 fi' 10370 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10371 dlpath=$dir/\$dldll~ 10372 $RM \$dlpath' 10373 shlibpath_overrides_runpath=yes 10374 10375 case $host_os in 10376 cygwin*) 10377 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10378 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10379 10380 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10381 ;; 10382 mingw* | cegcc*) 10383 # MinGW DLLs use traditional 'lib' prefix 10384 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10385 ;; 10386 pw32*) 10387 # pw32 DLLs use 'pw' prefix rather than 'lib' 10388 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10389 ;; 10390 esac 10391 dynamic_linker='Win32 ld.exe' 10392 ;; 10393 10394 *,cl*) 10395 # Native MSVC 10396 libname_spec='$name' 10397 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10398 library_names_spec='${libname}.dll.lib' 10399 10400 case $build_os in 10401 mingw*) 10402 sys_lib_search_path_spec= 10403 lt_save_ifs=$IFS 10404 IFS=';' 10405 for lt_path in $LIB 10406 do 10407 IFS=$lt_save_ifs 10408 # Let DOS variable expansion print the short 8.3 style file name. 10409 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10410 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10411 done 10412 IFS=$lt_save_ifs 10413 # Convert to MSYS style. 10414 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10415 ;; 10416 cygwin*) 10417 # Convert to unix form, then to dos form, then back to unix form 10418 # but this time dos style (no spaces!) so that the unix form looks 10419 # like /cygdrive/c/PROGRA~1:/cygdr... 10420 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10421 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10422 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10423 ;; 10424 *) 10425 sys_lib_search_path_spec="$LIB" 10426 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10427 # It is most probably a Windows format PATH. 10428 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10429 else 10430 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10431 fi 10432 # FIXME: find the short name or the path components, as spaces are 10433 # common. (e.g. "Program Files" -> "PROGRA~1") 10434 ;; 10435 esac 10436 10437 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10438 postinstall_cmds='base_file=`basename \${file}`~ 10439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10440 dldir=$destdir/`dirname \$dlpath`~ 10441 test -d \$dldir || mkdir -p \$dldir~ 10442 $install_prog $dir/$dlname \$dldir/$dlname' 10443 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10444 dlpath=$dir/\$dldll~ 10445 $RM \$dlpath' 10446 shlibpath_overrides_runpath=yes 10447 dynamic_linker='Win32 link.exe' 10448 ;; 10449 10450 *) 10451 # Assume MSVC wrapper 10452 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10453 dynamic_linker='Win32 ld.exe' 10454 ;; 10455 esac 10456 # FIXME: first we should search . and the directory the executable is in 10457 shlibpath_var=PATH 10458 ;; 10459 10460darwin* | rhapsody*) 10461 dynamic_linker="$host_os dyld" 10462 version_type=darwin 10463 need_lib_prefix=no 10464 need_version=no 10465 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10466 soname_spec='${libname}${release}${major}$shared_ext' 10467 shlibpath_overrides_runpath=yes 10468 shlibpath_var=DYLD_LIBRARY_PATH 10469 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10470 10471 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10472 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10473 ;; 10474 10475dgux*) 10476 version_type=linux # correct to gnu/linux during the next big refactor 10477 need_lib_prefix=no 10478 need_version=no 10479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10480 soname_spec='${libname}${release}${shared_ext}$major' 10481 shlibpath_var=LD_LIBRARY_PATH 10482 ;; 10483 10484freebsd* | dragonfly*) 10485 # DragonFly does not have aout. When/if they implement a new 10486 # versioning mechanism, adjust this. 10487 if test -x /usr/bin/objformat; then 10488 objformat=`/usr/bin/objformat` 10489 else 10490 case $host_os in 10491 freebsd[23].*) objformat=aout ;; 10492 *) objformat=elf ;; 10493 esac 10494 fi 10495 version_type=freebsd-$objformat 10496 case $version_type in 10497 freebsd-elf*) 10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10499 need_version=no 10500 need_lib_prefix=no 10501 ;; 10502 freebsd-*) 10503 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10504 need_version=yes 10505 ;; 10506 esac 10507 shlibpath_var=LD_LIBRARY_PATH 10508 case $host_os in 10509 freebsd2.*) 10510 shlibpath_overrides_runpath=yes 10511 ;; 10512 freebsd3.[01]* | freebsdelf3.[01]*) 10513 shlibpath_overrides_runpath=yes 10514 hardcode_into_libs=yes 10515 ;; 10516 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10517 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10518 shlibpath_overrides_runpath=no 10519 hardcode_into_libs=yes 10520 ;; 10521 *) # from 4.6 on, and DragonFly 10522 shlibpath_overrides_runpath=yes 10523 hardcode_into_libs=yes 10524 ;; 10525 esac 10526 ;; 10527 10528haiku*) 10529 version_type=linux # correct to gnu/linux during the next big refactor 10530 need_lib_prefix=no 10531 need_version=no 10532 dynamic_linker="$host_os runtime_loader" 10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10534 soname_spec='${libname}${release}${shared_ext}$major' 10535 shlibpath_var=LIBRARY_PATH 10536 shlibpath_overrides_runpath=yes 10537 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10538 hardcode_into_libs=yes 10539 ;; 10540 10541hpux9* | hpux10* | hpux11*) 10542 # Give a soname corresponding to the major version so that dld.sl refuses to 10543 # link against other versions. 10544 version_type=sunos 10545 need_lib_prefix=no 10546 need_version=no 10547 case $host_cpu in 10548 ia64*) 10549 shrext_cmds='.so' 10550 hardcode_into_libs=yes 10551 dynamic_linker="$host_os dld.so" 10552 shlibpath_var=LD_LIBRARY_PATH 10553 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10555 soname_spec='${libname}${release}${shared_ext}$major' 10556 if test "X$HPUX_IA64_MODE" = X32; then 10557 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10558 else 10559 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10560 fi 10561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10562 ;; 10563 hppa*64*) 10564 shrext_cmds='.sl' 10565 hardcode_into_libs=yes 10566 dynamic_linker="$host_os dld.sl" 10567 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10568 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10572 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10573 ;; 10574 *) 10575 shrext_cmds='.sl' 10576 dynamic_linker="$host_os dld.sl" 10577 shlibpath_var=SHLIB_PATH 10578 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10580 soname_spec='${libname}${release}${shared_ext}$major' 10581 ;; 10582 esac 10583 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10584 postinstall_cmds='chmod 555 $lib' 10585 # or fails outright, so override atomically: 10586 install_override_mode=555 10587 ;; 10588 10589interix[3-9]*) 10590 version_type=linux # correct to gnu/linux during the next big refactor 10591 need_lib_prefix=no 10592 need_version=no 10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10594 soname_spec='${libname}${release}${shared_ext}$major' 10595 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10596 shlibpath_var=LD_LIBRARY_PATH 10597 shlibpath_overrides_runpath=no 10598 hardcode_into_libs=yes 10599 ;; 10600 10601irix5* | irix6* | nonstopux*) 10602 case $host_os in 10603 nonstopux*) version_type=nonstopux ;; 10604 *) 10605 if test "$lt_cv_prog_gnu_ld" = yes; then 10606 version_type=linux # correct to gnu/linux during the next big refactor 10607 else 10608 version_type=irix 10609 fi ;; 10610 esac 10611 need_lib_prefix=no 10612 need_version=no 10613 soname_spec='${libname}${release}${shared_ext}$major' 10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10615 case $host_os in 10616 irix5* | nonstopux*) 10617 libsuff= shlibsuff= 10618 ;; 10619 *) 10620 case $LD in # libtool.m4 will add one of these switches to LD 10621 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10622 libsuff= shlibsuff= libmagic=32-bit;; 10623 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10624 libsuff=32 shlibsuff=N32 libmagic=N32;; 10625 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10626 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10627 *) libsuff= shlibsuff= libmagic=never-match;; 10628 esac 10629 ;; 10630 esac 10631 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10632 shlibpath_overrides_runpath=no 10633 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10634 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10635 hardcode_into_libs=yes 10636 ;; 10637 10638# No shared lib support for Linux oldld, aout, or coff. 10639linux*oldld* | linux*aout* | linux*coff*) 10640 dynamic_linker=no 10641 ;; 10642 10643# This must be glibc/ELF. 10644linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10645 version_type=linux # correct to gnu/linux during the next big refactor 10646 need_lib_prefix=no 10647 need_version=no 10648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10649 soname_spec='${libname}${release}${shared_ext}$major' 10650 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10651 shlibpath_var=LD_LIBRARY_PATH 10652 shlibpath_overrides_runpath=no 10653 10654 # Some binutils ld are patched to set DT_RUNPATH 10655 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10656 $as_echo_n "(cached) " >&6 10657else 10658 lt_cv_shlibpath_overrides_runpath=no 10659 save_LDFLAGS=$LDFLAGS 10660 save_libdir=$libdir 10661 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10662 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10664/* end confdefs.h. */ 10665 10666int 10667main () 10668{ 10669 10670 ; 10671 return 0; 10672} 10673_ACEOF 10674if ac_fn_c_try_link "$LINENO"; then : 10675 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10676 lt_cv_shlibpath_overrides_runpath=yes 10677fi 10678fi 10679rm -f core conftest.err conftest.$ac_objext \ 10680 conftest$ac_exeext conftest.$ac_ext 10681 LDFLAGS=$save_LDFLAGS 10682 libdir=$save_libdir 10683 10684fi 10685 10686 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10687 10688 # This implies no fast_install, which is unacceptable. 10689 # Some rework will be needed to allow for fast_install 10690 # before this can be enabled. 10691 hardcode_into_libs=yes 10692 10693 # Append ld.so.conf contents to the search path 10694 if test -f /etc/ld.so.conf; then 10695 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' ' '` 10696 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10697 fi 10698 10699 # We used to test for /lib/ld.so.1 and disable shared libraries on 10700 # powerpc, because MkLinux only supported shared libraries with the 10701 # GNU dynamic linker. Since this was broken with cross compilers, 10702 # most powerpc-linux boxes support dynamic linking these days and 10703 # people can always --disable-shared, the test was removed, and we 10704 # assume the GNU/Linux dynamic linker is in use. 10705 dynamic_linker='GNU/Linux ld.so' 10706 ;; 10707 10708netbsdelf*-gnu) 10709 version_type=linux 10710 need_lib_prefix=no 10711 need_version=no 10712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10713 soname_spec='${libname}${release}${shared_ext}$major' 10714 shlibpath_var=LD_LIBRARY_PATH 10715 shlibpath_overrides_runpath=no 10716 hardcode_into_libs=yes 10717 dynamic_linker='NetBSD ld.elf_so' 10718 ;; 10719 10720netbsd*) 10721 version_type=sunos 10722 need_lib_prefix=no 10723 need_version=no 10724 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10726 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10727 dynamic_linker='NetBSD (a.out) ld.so' 10728 else 10729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10730 soname_spec='${libname}${release}${shared_ext}$major' 10731 dynamic_linker='NetBSD ld.elf_so' 10732 fi 10733 shlibpath_var=LD_LIBRARY_PATH 10734 shlibpath_overrides_runpath=yes 10735 hardcode_into_libs=yes 10736 ;; 10737 10738newsos6) 10739 version_type=linux # correct to gnu/linux during the next big refactor 10740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10741 shlibpath_var=LD_LIBRARY_PATH 10742 shlibpath_overrides_runpath=yes 10743 ;; 10744 10745*nto* | *qnx*) 10746 version_type=qnx 10747 need_lib_prefix=no 10748 need_version=no 10749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10750 soname_spec='${libname}${release}${shared_ext}$major' 10751 shlibpath_var=LD_LIBRARY_PATH 10752 shlibpath_overrides_runpath=no 10753 hardcode_into_libs=yes 10754 dynamic_linker='ldqnx.so' 10755 ;; 10756 10757openbsd*) 10758 version_type=sunos 10759 sys_lib_dlsearch_path_spec="/usr/lib" 10760 need_lib_prefix=no 10761 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10762 case $host_os in 10763 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10764 *) need_version=no ;; 10765 esac 10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10768 shlibpath_var=LD_LIBRARY_PATH 10769 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10770 case $host_os in 10771 openbsd2.[89] | openbsd2.[89].*) 10772 shlibpath_overrides_runpath=no 10773 ;; 10774 *) 10775 shlibpath_overrides_runpath=yes 10776 ;; 10777 esac 10778 else 10779 shlibpath_overrides_runpath=yes 10780 fi 10781 ;; 10782 10783os2*) 10784 libname_spec='$name' 10785 shrext_cmds=".dll" 10786 need_lib_prefix=no 10787 library_names_spec='$libname${shared_ext} $libname.a' 10788 dynamic_linker='OS/2 ld.exe' 10789 shlibpath_var=LIBPATH 10790 ;; 10791 10792osf3* | osf4* | osf5*) 10793 version_type=osf 10794 need_lib_prefix=no 10795 need_version=no 10796 soname_spec='${libname}${release}${shared_ext}$major' 10797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10798 shlibpath_var=LD_LIBRARY_PATH 10799 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10800 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10801 ;; 10802 10803rdos*) 10804 dynamic_linker=no 10805 ;; 10806 10807solaris*) 10808 version_type=linux # correct to gnu/linux during the next big refactor 10809 need_lib_prefix=no 10810 need_version=no 10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10812 soname_spec='${libname}${release}${shared_ext}$major' 10813 shlibpath_var=LD_LIBRARY_PATH 10814 shlibpath_overrides_runpath=yes 10815 hardcode_into_libs=yes 10816 # ldd complains unless libraries are executable 10817 postinstall_cmds='chmod +x $lib' 10818 ;; 10819 10820sunos4*) 10821 version_type=sunos 10822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10823 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10824 shlibpath_var=LD_LIBRARY_PATH 10825 shlibpath_overrides_runpath=yes 10826 if test "$with_gnu_ld" = yes; then 10827 need_lib_prefix=no 10828 fi 10829 need_version=yes 10830 ;; 10831 10832sysv4 | sysv4.3*) 10833 version_type=linux # correct to gnu/linux during the next big refactor 10834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10835 soname_spec='${libname}${release}${shared_ext}$major' 10836 shlibpath_var=LD_LIBRARY_PATH 10837 case $host_vendor in 10838 sni) 10839 shlibpath_overrides_runpath=no 10840 need_lib_prefix=no 10841 runpath_var=LD_RUN_PATH 10842 ;; 10843 siemens) 10844 need_lib_prefix=no 10845 ;; 10846 motorola) 10847 need_lib_prefix=no 10848 need_version=no 10849 shlibpath_overrides_runpath=no 10850 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10851 ;; 10852 esac 10853 ;; 10854 10855sysv4*MP*) 10856 if test -d /usr/nec ;then 10857 version_type=linux # correct to gnu/linux during the next big refactor 10858 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10859 soname_spec='$libname${shared_ext}.$major' 10860 shlibpath_var=LD_LIBRARY_PATH 10861 fi 10862 ;; 10863 10864sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10865 version_type=freebsd-elf 10866 need_lib_prefix=no 10867 need_version=no 10868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10869 soname_spec='${libname}${release}${shared_ext}$major' 10870 shlibpath_var=LD_LIBRARY_PATH 10871 shlibpath_overrides_runpath=yes 10872 hardcode_into_libs=yes 10873 if test "$with_gnu_ld" = yes; then 10874 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10875 else 10876 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10877 case $host_os in 10878 sco3.2v5*) 10879 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10880 ;; 10881 esac 10882 fi 10883 sys_lib_dlsearch_path_spec='/usr/lib' 10884 ;; 10885 10886tpf*) 10887 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10888 version_type=linux # correct to gnu/linux during the next big refactor 10889 need_lib_prefix=no 10890 need_version=no 10891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10892 shlibpath_var=LD_LIBRARY_PATH 10893 shlibpath_overrides_runpath=no 10894 hardcode_into_libs=yes 10895 ;; 10896 10897uts4*) 10898 version_type=linux # correct to gnu/linux during the next big refactor 10899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10900 soname_spec='${libname}${release}${shared_ext}$major' 10901 shlibpath_var=LD_LIBRARY_PATH 10902 ;; 10903 10904*) 10905 dynamic_linker=no 10906 ;; 10907esac 10908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10909$as_echo "$dynamic_linker" >&6; } 10910test "$dynamic_linker" = no && can_build_shared=no 10911 10912variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10913if test "$GCC" = yes; then 10914 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10915fi 10916 10917if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10918 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10919fi 10920if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10921 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10922fi 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11016$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11017hardcode_action= 11018if test -n "$hardcode_libdir_flag_spec" || 11019 test -n "$runpath_var" || 11020 test "X$hardcode_automatic" = "Xyes" ; then 11021 11022 # We can hardcode non-existent directories. 11023 if test "$hardcode_direct" != no && 11024 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11025 # have to relink, otherwise we might link with an installed library 11026 # when we should be linking with a yet-to-be-installed one 11027 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11028 test "$hardcode_minus_L" != no; then 11029 # Linking always hardcodes the temporary library directory. 11030 hardcode_action=relink 11031 else 11032 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11033 hardcode_action=immediate 11034 fi 11035else 11036 # We cannot hardcode anything, or else we can only hardcode existing 11037 # directories. 11038 hardcode_action=unsupported 11039fi 11040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11041$as_echo "$hardcode_action" >&6; } 11042 11043if test "$hardcode_action" = relink || 11044 test "$inherit_rpath" = yes; then 11045 # Fast installation is not supported 11046 enable_fast_install=no 11047elif test "$shlibpath_overrides_runpath" = yes || 11048 test "$enable_shared" = no; then 11049 # Fast installation is not necessary 11050 enable_fast_install=needless 11051fi 11052 11053 11054 11055 11056 11057 11058 if test "x$enable_dlopen" != xyes; then 11059 enable_dlopen=unknown 11060 enable_dlopen_self=unknown 11061 enable_dlopen_self_static=unknown 11062else 11063 lt_cv_dlopen=no 11064 lt_cv_dlopen_libs= 11065 11066 case $host_os in 11067 beos*) 11068 lt_cv_dlopen="load_add_on" 11069 lt_cv_dlopen_libs= 11070 lt_cv_dlopen_self=yes 11071 ;; 11072 11073 mingw* | pw32* | cegcc*) 11074 lt_cv_dlopen="LoadLibrary" 11075 lt_cv_dlopen_libs= 11076 ;; 11077 11078 cygwin*) 11079 lt_cv_dlopen="dlopen" 11080 lt_cv_dlopen_libs= 11081 ;; 11082 11083 darwin*) 11084 # if libdl is installed we need to link against it 11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11086$as_echo_n "checking for dlopen in -ldl... " >&6; } 11087if ${ac_cv_lib_dl_dlopen+:} false; then : 11088 $as_echo_n "(cached) " >&6 11089else 11090 ac_check_lib_save_LIBS=$LIBS 11091LIBS="-ldl $LIBS" 11092cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11093/* end confdefs.h. */ 11094 11095/* Override any GCC internal prototype to avoid an error. 11096 Use char because int might match the return type of a GCC 11097 builtin and then its argument prototype would still apply. */ 11098#ifdef __cplusplus 11099extern "C" 11100#endif 11101char dlopen (); 11102int 11103main () 11104{ 11105return dlopen (); 11106 ; 11107 return 0; 11108} 11109_ACEOF 11110if ac_fn_c_try_link "$LINENO"; then : 11111 ac_cv_lib_dl_dlopen=yes 11112else 11113 ac_cv_lib_dl_dlopen=no 11114fi 11115rm -f core conftest.err conftest.$ac_objext \ 11116 conftest$ac_exeext conftest.$ac_ext 11117LIBS=$ac_check_lib_save_LIBS 11118fi 11119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11120$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11121if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11122 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11123else 11124 11125 lt_cv_dlopen="dyld" 11126 lt_cv_dlopen_libs= 11127 lt_cv_dlopen_self=yes 11128 11129fi 11130 11131 ;; 11132 11133 *) 11134 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11135if test "x$ac_cv_func_shl_load" = xyes; then : 11136 lt_cv_dlopen="shl_load" 11137else 11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11139$as_echo_n "checking for shl_load in -ldld... " >&6; } 11140if ${ac_cv_lib_dld_shl_load+:} false; then : 11141 $as_echo_n "(cached) " >&6 11142else 11143 ac_check_lib_save_LIBS=$LIBS 11144LIBS="-ldld $LIBS" 11145cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11146/* end confdefs.h. */ 11147 11148/* Override any GCC internal prototype to avoid an error. 11149 Use char because int might match the return type of a GCC 11150 builtin and then its argument prototype would still apply. */ 11151#ifdef __cplusplus 11152extern "C" 11153#endif 11154char shl_load (); 11155int 11156main () 11157{ 11158return shl_load (); 11159 ; 11160 return 0; 11161} 11162_ACEOF 11163if ac_fn_c_try_link "$LINENO"; then : 11164 ac_cv_lib_dld_shl_load=yes 11165else 11166 ac_cv_lib_dld_shl_load=no 11167fi 11168rm -f core conftest.err conftest.$ac_objext \ 11169 conftest$ac_exeext conftest.$ac_ext 11170LIBS=$ac_check_lib_save_LIBS 11171fi 11172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11173$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11174if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11175 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11176else 11177 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11178if test "x$ac_cv_func_dlopen" = xyes; then : 11179 lt_cv_dlopen="dlopen" 11180else 11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11182$as_echo_n "checking for dlopen in -ldl... " >&6; } 11183if ${ac_cv_lib_dl_dlopen+:} false; then : 11184 $as_echo_n "(cached) " >&6 11185else 11186 ac_check_lib_save_LIBS=$LIBS 11187LIBS="-ldl $LIBS" 11188cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11189/* end confdefs.h. */ 11190 11191/* Override any GCC internal prototype to avoid an error. 11192 Use char because int might match the return type of a GCC 11193 builtin and then its argument prototype would still apply. */ 11194#ifdef __cplusplus 11195extern "C" 11196#endif 11197char dlopen (); 11198int 11199main () 11200{ 11201return dlopen (); 11202 ; 11203 return 0; 11204} 11205_ACEOF 11206if ac_fn_c_try_link "$LINENO"; then : 11207 ac_cv_lib_dl_dlopen=yes 11208else 11209 ac_cv_lib_dl_dlopen=no 11210fi 11211rm -f core conftest.err conftest.$ac_objext \ 11212 conftest$ac_exeext conftest.$ac_ext 11213LIBS=$ac_check_lib_save_LIBS 11214fi 11215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11216$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11217if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11218 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11219else 11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11221$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11222if ${ac_cv_lib_svld_dlopen+:} false; then : 11223 $as_echo_n "(cached) " >&6 11224else 11225 ac_check_lib_save_LIBS=$LIBS 11226LIBS="-lsvld $LIBS" 11227cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11228/* end confdefs.h. */ 11229 11230/* Override any GCC internal prototype to avoid an error. 11231 Use char because int might match the return type of a GCC 11232 builtin and then its argument prototype would still apply. */ 11233#ifdef __cplusplus 11234extern "C" 11235#endif 11236char dlopen (); 11237int 11238main () 11239{ 11240return dlopen (); 11241 ; 11242 return 0; 11243} 11244_ACEOF 11245if ac_fn_c_try_link "$LINENO"; then : 11246 ac_cv_lib_svld_dlopen=yes 11247else 11248 ac_cv_lib_svld_dlopen=no 11249fi 11250rm -f core conftest.err conftest.$ac_objext \ 11251 conftest$ac_exeext conftest.$ac_ext 11252LIBS=$ac_check_lib_save_LIBS 11253fi 11254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11255$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11256if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11257 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11258else 11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11260$as_echo_n "checking for dld_link in -ldld... " >&6; } 11261if ${ac_cv_lib_dld_dld_link+:} false; then : 11262 $as_echo_n "(cached) " >&6 11263else 11264 ac_check_lib_save_LIBS=$LIBS 11265LIBS="-ldld $LIBS" 11266cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11267/* end confdefs.h. */ 11268 11269/* Override any GCC internal prototype to avoid an error. 11270 Use char because int might match the return type of a GCC 11271 builtin and then its argument prototype would still apply. */ 11272#ifdef __cplusplus 11273extern "C" 11274#endif 11275char dld_link (); 11276int 11277main () 11278{ 11279return dld_link (); 11280 ; 11281 return 0; 11282} 11283_ACEOF 11284if ac_fn_c_try_link "$LINENO"; then : 11285 ac_cv_lib_dld_dld_link=yes 11286else 11287 ac_cv_lib_dld_dld_link=no 11288fi 11289rm -f core conftest.err conftest.$ac_objext \ 11290 conftest$ac_exeext conftest.$ac_ext 11291LIBS=$ac_check_lib_save_LIBS 11292fi 11293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11294$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11295if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11296 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11297fi 11298 11299 11300fi 11301 11302 11303fi 11304 11305 11306fi 11307 11308 11309fi 11310 11311 11312fi 11313 11314 ;; 11315 esac 11316 11317 if test "x$lt_cv_dlopen" != xno; then 11318 enable_dlopen=yes 11319 else 11320 enable_dlopen=no 11321 fi 11322 11323 case $lt_cv_dlopen in 11324 dlopen) 11325 save_CPPFLAGS="$CPPFLAGS" 11326 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11327 11328 save_LDFLAGS="$LDFLAGS" 11329 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11330 11331 save_LIBS="$LIBS" 11332 LIBS="$lt_cv_dlopen_libs $LIBS" 11333 11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11335$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11336if ${lt_cv_dlopen_self+:} false; then : 11337 $as_echo_n "(cached) " >&6 11338else 11339 if test "$cross_compiling" = yes; then : 11340 lt_cv_dlopen_self=cross 11341else 11342 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11343 lt_status=$lt_dlunknown 11344 cat > conftest.$ac_ext <<_LT_EOF 11345#line $LINENO "configure" 11346#include "confdefs.h" 11347 11348#if HAVE_DLFCN_H 11349#include <dlfcn.h> 11350#endif 11351 11352#include <stdio.h> 11353 11354#ifdef RTLD_GLOBAL 11355# define LT_DLGLOBAL RTLD_GLOBAL 11356#else 11357# ifdef DL_GLOBAL 11358# define LT_DLGLOBAL DL_GLOBAL 11359# else 11360# define LT_DLGLOBAL 0 11361# endif 11362#endif 11363 11364/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11365 find out it does not work in some platform. */ 11366#ifndef LT_DLLAZY_OR_NOW 11367# ifdef RTLD_LAZY 11368# define LT_DLLAZY_OR_NOW RTLD_LAZY 11369# else 11370# ifdef DL_LAZY 11371# define LT_DLLAZY_OR_NOW DL_LAZY 11372# else 11373# ifdef RTLD_NOW 11374# define LT_DLLAZY_OR_NOW RTLD_NOW 11375# else 11376# ifdef DL_NOW 11377# define LT_DLLAZY_OR_NOW DL_NOW 11378# else 11379# define LT_DLLAZY_OR_NOW 0 11380# endif 11381# endif 11382# endif 11383# endif 11384#endif 11385 11386/* When -fvisbility=hidden is used, assume the code has been annotated 11387 correspondingly for the symbols needed. */ 11388#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11389int fnord () __attribute__((visibility("default"))); 11390#endif 11391 11392int fnord () { return 42; } 11393int main () 11394{ 11395 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11396 int status = $lt_dlunknown; 11397 11398 if (self) 11399 { 11400 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11401 else 11402 { 11403 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11404 else puts (dlerror ()); 11405 } 11406 /* dlclose (self); */ 11407 } 11408 else 11409 puts (dlerror ()); 11410 11411 return status; 11412} 11413_LT_EOF 11414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11415 (eval $ac_link) 2>&5 11416 ac_status=$? 11417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11418 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11419 (./conftest; exit; ) >&5 2>/dev/null 11420 lt_status=$? 11421 case x$lt_status in 11422 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11423 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11424 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11425 esac 11426 else : 11427 # compilation failed 11428 lt_cv_dlopen_self=no 11429 fi 11430fi 11431rm -fr conftest* 11432 11433 11434fi 11435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11436$as_echo "$lt_cv_dlopen_self" >&6; } 11437 11438 if test "x$lt_cv_dlopen_self" = xyes; then 11439 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11441$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11442if ${lt_cv_dlopen_self_static+:} false; then : 11443 $as_echo_n "(cached) " >&6 11444else 11445 if test "$cross_compiling" = yes; then : 11446 lt_cv_dlopen_self_static=cross 11447else 11448 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11449 lt_status=$lt_dlunknown 11450 cat > conftest.$ac_ext <<_LT_EOF 11451#line $LINENO "configure" 11452#include "confdefs.h" 11453 11454#if HAVE_DLFCN_H 11455#include <dlfcn.h> 11456#endif 11457 11458#include <stdio.h> 11459 11460#ifdef RTLD_GLOBAL 11461# define LT_DLGLOBAL RTLD_GLOBAL 11462#else 11463# ifdef DL_GLOBAL 11464# define LT_DLGLOBAL DL_GLOBAL 11465# else 11466# define LT_DLGLOBAL 0 11467# endif 11468#endif 11469 11470/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11471 find out it does not work in some platform. */ 11472#ifndef LT_DLLAZY_OR_NOW 11473# ifdef RTLD_LAZY 11474# define LT_DLLAZY_OR_NOW RTLD_LAZY 11475# else 11476# ifdef DL_LAZY 11477# define LT_DLLAZY_OR_NOW DL_LAZY 11478# else 11479# ifdef RTLD_NOW 11480# define LT_DLLAZY_OR_NOW RTLD_NOW 11481# else 11482# ifdef DL_NOW 11483# define LT_DLLAZY_OR_NOW DL_NOW 11484# else 11485# define LT_DLLAZY_OR_NOW 0 11486# endif 11487# endif 11488# endif 11489# endif 11490#endif 11491 11492/* When -fvisbility=hidden is used, assume the code has been annotated 11493 correspondingly for the symbols needed. */ 11494#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11495int fnord () __attribute__((visibility("default"))); 11496#endif 11497 11498int fnord () { return 42; } 11499int main () 11500{ 11501 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11502 int status = $lt_dlunknown; 11503 11504 if (self) 11505 { 11506 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11507 else 11508 { 11509 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11510 else puts (dlerror ()); 11511 } 11512 /* dlclose (self); */ 11513 } 11514 else 11515 puts (dlerror ()); 11516 11517 return status; 11518} 11519_LT_EOF 11520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11521 (eval $ac_link) 2>&5 11522 ac_status=$? 11523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11524 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11525 (./conftest; exit; ) >&5 2>/dev/null 11526 lt_status=$? 11527 case x$lt_status in 11528 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11529 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11530 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11531 esac 11532 else : 11533 # compilation failed 11534 lt_cv_dlopen_self_static=no 11535 fi 11536fi 11537rm -fr conftest* 11538 11539 11540fi 11541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11542$as_echo "$lt_cv_dlopen_self_static" >&6; } 11543 fi 11544 11545 CPPFLAGS="$save_CPPFLAGS" 11546 LDFLAGS="$save_LDFLAGS" 11547 LIBS="$save_LIBS" 11548 ;; 11549 esac 11550 11551 case $lt_cv_dlopen_self in 11552 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11553 *) enable_dlopen_self=unknown ;; 11554 esac 11555 11556 case $lt_cv_dlopen_self_static in 11557 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11558 *) enable_dlopen_self_static=unknown ;; 11559 esac 11560fi 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578striplib= 11579old_striplib= 11580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11581$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11582if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11583 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11584 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11586$as_echo "yes" >&6; } 11587else 11588# FIXME - insert some real tests, host_os isn't really good enough 11589 case $host_os in 11590 darwin*) 11591 if test -n "$STRIP" ; then 11592 striplib="$STRIP -x" 11593 old_striplib="$STRIP -S" 11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11595$as_echo "yes" >&6; } 11596 else 11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11598$as_echo "no" >&6; } 11599 fi 11600 ;; 11601 *) 11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11603$as_echo "no" >&6; } 11604 ;; 11605 esac 11606fi 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 # Report which library types will actually be built 11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11621$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11623$as_echo "$can_build_shared" >&6; } 11624 11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11626$as_echo_n "checking whether to build shared libraries... " >&6; } 11627 test "$can_build_shared" = "no" && enable_shared=no 11628 11629 # On AIX, shared libraries and static libraries use the same namespace, and 11630 # are all built from PIC. 11631 case $host_os in 11632 aix3*) 11633 test "$enable_shared" = yes && enable_static=no 11634 if test -n "$RANLIB"; then 11635 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11636 postinstall_cmds='$RANLIB $lib' 11637 fi 11638 ;; 11639 11640 aix[4-9]*) 11641 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11642 test "$enable_shared" = yes && enable_static=no 11643 fi 11644 ;; 11645 esac 11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11647$as_echo "$enable_shared" >&6; } 11648 11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11650$as_echo_n "checking whether to build static libraries... " >&6; } 11651 # Make sure either enable_shared or enable_static is yes. 11652 test "$enable_shared" = yes || enable_static=yes 11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11654$as_echo "$enable_static" >&6; } 11655 11656 11657 11658 11659fi 11660ac_ext=c 11661ac_cpp='$CPP $CPPFLAGS' 11662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11664ac_compiler_gnu=$ac_cv_c_compiler_gnu 11665 11666CC="$lt_save_CC" 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 ac_config_commands="$ac_config_commands libtool" 11683 11684 11685 11686 11687# Only expand once: 11688 11689 11690 11691ac_ext=cpp 11692ac_cpp='$CXXCPP $CPPFLAGS' 11693ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11694ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11695ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11696if test -z "$CXX"; then 11697 if test -n "$CCC"; then 11698 CXX=$CCC 11699 else 11700 if test -n "$ac_tool_prefix"; then 11701 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 11702 do 11703 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11704set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11706$as_echo_n "checking for $ac_word... " >&6; } 11707if ${ac_cv_prog_CXX+:} false; then : 11708 $as_echo_n "(cached) " >&6 11709else 11710 if test -n "$CXX"; then 11711 ac_cv_prog_CXX="$CXX" # Let the user override the test. 11712else 11713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11714for as_dir in $PATH 11715do 11716 IFS=$as_save_IFS 11717 test -z "$as_dir" && as_dir=. 11718 for ac_exec_ext in '' $ac_executable_extensions; do 11719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11720 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 11721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11722 break 2 11723 fi 11724done 11725 done 11726IFS=$as_save_IFS 11727 11728fi 11729fi 11730CXX=$ac_cv_prog_CXX 11731if test -n "$CXX"; then 11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 11733$as_echo "$CXX" >&6; } 11734else 11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11736$as_echo "no" >&6; } 11737fi 11738 11739 11740 test -n "$CXX" && break 11741 done 11742fi 11743if test -z "$CXX"; then 11744 ac_ct_CXX=$CXX 11745 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 11746do 11747 # Extract the first word of "$ac_prog", so it can be a program name with args. 11748set dummy $ac_prog; ac_word=$2 11749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11750$as_echo_n "checking for $ac_word... " >&6; } 11751if ${ac_cv_prog_ac_ct_CXX+:} false; then : 11752 $as_echo_n "(cached) " >&6 11753else 11754 if test -n "$ac_ct_CXX"; then 11755 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 11756else 11757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11758for as_dir in $PATH 11759do 11760 IFS=$as_save_IFS 11761 test -z "$as_dir" && as_dir=. 11762 for ac_exec_ext in '' $ac_executable_extensions; do 11763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11764 ac_cv_prog_ac_ct_CXX="$ac_prog" 11765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11766 break 2 11767 fi 11768done 11769 done 11770IFS=$as_save_IFS 11771 11772fi 11773fi 11774ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 11775if test -n "$ac_ct_CXX"; then 11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 11777$as_echo "$ac_ct_CXX" >&6; } 11778else 11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11780$as_echo "no" >&6; } 11781fi 11782 11783 11784 test -n "$ac_ct_CXX" && break 11785done 11786 11787 if test "x$ac_ct_CXX" = x; then 11788 CXX="g++" 11789 else 11790 case $cross_compiling:$ac_tool_warned in 11791yes:) 11792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11794ac_tool_warned=yes ;; 11795esac 11796 CXX=$ac_ct_CXX 11797 fi 11798fi 11799 11800 fi 11801fi 11802# Provide some information about the compiler. 11803$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 11804set X $ac_compile 11805ac_compiler=$2 11806for ac_option in --version -v -V -qversion; do 11807 { { ac_try="$ac_compiler $ac_option >&5" 11808case "(($ac_try" in 11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 11810 *) ac_try_echo=$ac_try;; 11811esac 11812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 11813$as_echo "$ac_try_echo"; } >&5 11814 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 11815 ac_status=$? 11816 if test -s conftest.err; then 11817 sed '10a\ 11818... rest of stderr output deleted ... 11819 10q' conftest.err >conftest.er1 11820 cat conftest.er1 >&5 11821 fi 11822 rm -f conftest.er1 conftest.err 11823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11824 test $ac_status = 0; } 11825done 11826 11827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 11828$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 11829if ${ac_cv_cxx_compiler_gnu+:} false; then : 11830 $as_echo_n "(cached) " >&6 11831else 11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11833/* end confdefs.h. */ 11834 11835int 11836main () 11837{ 11838#ifndef __GNUC__ 11839 choke me 11840#endif 11841 11842 ; 11843 return 0; 11844} 11845_ACEOF 11846if ac_fn_cxx_try_compile "$LINENO"; then : 11847 ac_compiler_gnu=yes 11848else 11849 ac_compiler_gnu=no 11850fi 11851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11852ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 11853 11854fi 11855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 11856$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 11857if test $ac_compiler_gnu = yes; then 11858 GXX=yes 11859else 11860 GXX= 11861fi 11862ac_test_CXXFLAGS=${CXXFLAGS+set} 11863ac_save_CXXFLAGS=$CXXFLAGS 11864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 11865$as_echo_n "checking whether $CXX accepts -g... " >&6; } 11866if ${ac_cv_prog_cxx_g+:} false; then : 11867 $as_echo_n "(cached) " >&6 11868else 11869 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 11870 ac_cxx_werror_flag=yes 11871 ac_cv_prog_cxx_g=no 11872 CXXFLAGS="-g" 11873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11874/* end confdefs.h. */ 11875 11876int 11877main () 11878{ 11879 11880 ; 11881 return 0; 11882} 11883_ACEOF 11884if ac_fn_cxx_try_compile "$LINENO"; then : 11885 ac_cv_prog_cxx_g=yes 11886else 11887 CXXFLAGS="" 11888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11889/* end confdefs.h. */ 11890 11891int 11892main () 11893{ 11894 11895 ; 11896 return 0; 11897} 11898_ACEOF 11899if ac_fn_cxx_try_compile "$LINENO"; then : 11900 11901else 11902 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 11903 CXXFLAGS="-g" 11904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11905/* end confdefs.h. */ 11906 11907int 11908main () 11909{ 11910 11911 ; 11912 return 0; 11913} 11914_ACEOF 11915if ac_fn_cxx_try_compile "$LINENO"; then : 11916 ac_cv_prog_cxx_g=yes 11917fi 11918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11919fi 11920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11921fi 11922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11923 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 11924fi 11925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 11926$as_echo "$ac_cv_prog_cxx_g" >&6; } 11927if test "$ac_test_CXXFLAGS" = set; then 11928 CXXFLAGS=$ac_save_CXXFLAGS 11929elif test $ac_cv_prog_cxx_g = yes; then 11930 if test "$GXX" = yes; then 11931 CXXFLAGS="-g -O2" 11932 else 11933 CXXFLAGS="-g" 11934 fi 11935else 11936 if test "$GXX" = yes; then 11937 CXXFLAGS="-O2" 11938 else 11939 CXXFLAGS= 11940 fi 11941fi 11942ac_ext=c 11943ac_cpp='$CPP $CPPFLAGS' 11944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11946ac_compiler_gnu=$ac_cv_c_compiler_gnu 11947 11948depcc="$CXX" am_compiler_list= 11949 11950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 11951$as_echo_n "checking dependency style of $depcc... " >&6; } 11952if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 11953 $as_echo_n "(cached) " >&6 11954else 11955 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11956 # We make a subdir and do the tests there. Otherwise we can end up 11957 # making bogus files that we don't know about and never remove. For 11958 # instance it was reported that on HP-UX the gcc test will end up 11959 # making a dummy file named 'D' -- because '-MD' means "put the output 11960 # in D". 11961 rm -rf conftest.dir 11962 mkdir conftest.dir 11963 # Copy depcomp to subdir because otherwise we won't find it if we're 11964 # using a relative directory. 11965 cp "$am_depcomp" conftest.dir 11966 cd conftest.dir 11967 # We will build objects and dependencies in a subdirectory because 11968 # it helps to detect inapplicable dependency modes. For instance 11969 # both Tru64's cc and ICC support -MD to output dependencies as a 11970 # side effect of compilation, but ICC will put the dependencies in 11971 # the current directory while Tru64 will put them in the object 11972 # directory. 11973 mkdir sub 11974 11975 am_cv_CXX_dependencies_compiler_type=none 11976 if test "$am_compiler_list" = ""; then 11977 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11978 fi 11979 am__universal=false 11980 case " $depcc " in #( 11981 *\ -arch\ *\ -arch\ *) am__universal=true ;; 11982 esac 11983 11984 for depmode in $am_compiler_list; do 11985 # Setup a source with many dependencies, because some compilers 11986 # like to wrap large dependency lists on column 80 (with \), and 11987 # we should not choose a depcomp mode which is confused by this. 11988 # 11989 # We need to recreate these files for each test, as the compiler may 11990 # overwrite some of them when testing with obscure command lines. 11991 # This happens at least with the AIX C compiler. 11992 : > sub/conftest.c 11993 for i in 1 2 3 4 5 6; do 11994 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11995 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 11996 # Solaris 10 /bin/sh. 11997 echo '/* dummy */' > sub/conftst$i.h 11998 done 11999 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12000 12001 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12002 # mode. It turns out that the SunPro C++ compiler does not properly 12003 # handle '-M -o', and we need to detect this. Also, some Intel 12004 # versions had trouble with output in subdirs. 12005 am__obj=sub/conftest.${OBJEXT-o} 12006 am__minus_obj="-o $am__obj" 12007 case $depmode in 12008 gcc) 12009 # This depmode causes a compiler race in universal mode. 12010 test "$am__universal" = false || continue 12011 ;; 12012 nosideeffect) 12013 # After this tag, mechanisms are not by side-effect, so they'll 12014 # only be used when explicitly requested. 12015 if test "x$enable_dependency_tracking" = xyes; then 12016 continue 12017 else 12018 break 12019 fi 12020 ;; 12021 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12022 # This compiler won't grok '-c -o', but also, the minuso test has 12023 # not run yet. These depmodes are late enough in the game, and 12024 # so weak that their functioning should not be impacted. 12025 am__obj=conftest.${OBJEXT-o} 12026 am__minus_obj= 12027 ;; 12028 none) break ;; 12029 esac 12030 if depmode=$depmode \ 12031 source=sub/conftest.c object=$am__obj \ 12032 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12033 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12034 >/dev/null 2>conftest.err && 12035 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12036 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12037 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12038 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12039 # icc doesn't choke on unknown options, it will just issue warnings 12040 # or remarks (even with -Werror). So we grep stderr for any message 12041 # that says an option was ignored or not supported. 12042 # When given -MP, icc 7.0 and 7.1 complain thusly: 12043 # icc: Command line warning: ignoring option '-M'; no argument required 12044 # The diagnosis changed in icc 8.0: 12045 # icc: Command line remark: option '-MP' not supported 12046 if (grep 'ignoring option' conftest.err || 12047 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12048 am_cv_CXX_dependencies_compiler_type=$depmode 12049 break 12050 fi 12051 fi 12052 done 12053 12054 cd .. 12055 rm -rf conftest.dir 12056else 12057 am_cv_CXX_dependencies_compiler_type=none 12058fi 12059 12060fi 12061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 12062$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 12063CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 12064 12065 if 12066 test "x$enable_dependency_tracking" != xno \ 12067 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 12068 am__fastdepCXX_TRUE= 12069 am__fastdepCXX_FALSE='#' 12070else 12071 am__fastdepCXX_TRUE='#' 12072 am__fastdepCXX_FALSE= 12073fi 12074 12075 12076 12077 12078func_stripname_cnf () 12079{ 12080 case ${2} in 12081 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 12082 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 12083 esac 12084} # func_stripname_cnf 12085 12086 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 12087 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 12088 (test "X$CXX" != "Xg++"))) ; then 12089 ac_ext=cpp 12090ac_cpp='$CXXCPP $CPPFLAGS' 12091ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12092ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12093ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12095$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12096if test -z "$CXXCPP"; then 12097 if ${ac_cv_prog_CXXCPP+:} false; then : 12098 $as_echo_n "(cached) " >&6 12099else 12100 # Double quotes because CXXCPP needs to be expanded 12101 for CXXCPP in "$CXX -E" "/lib/cpp" 12102 do 12103 ac_preproc_ok=false 12104for ac_cxx_preproc_warn_flag in '' yes 12105do 12106 # Use a header file that comes with gcc, so configuring glibc 12107 # with a fresh cross-compiler works. 12108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12109 # <limits.h> exists even on freestanding compilers. 12110 # On the NeXT, cc -E runs the code through the compiler's parser, 12111 # not just through cpp. "Syntax error" is here to catch this case. 12112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12113/* end confdefs.h. */ 12114#ifdef __STDC__ 12115# include <limits.h> 12116#else 12117# include <assert.h> 12118#endif 12119 Syntax error 12120_ACEOF 12121if ac_fn_cxx_try_cpp "$LINENO"; then : 12122 12123else 12124 # Broken: fails on valid input. 12125continue 12126fi 12127rm -f conftest.err conftest.i conftest.$ac_ext 12128 12129 # OK, works on sane cases. Now check whether nonexistent headers 12130 # can be detected and how. 12131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12132/* end confdefs.h. */ 12133#include <ac_nonexistent.h> 12134_ACEOF 12135if ac_fn_cxx_try_cpp "$LINENO"; then : 12136 # Broken: success on invalid input. 12137continue 12138else 12139 # Passes both tests. 12140ac_preproc_ok=: 12141break 12142fi 12143rm -f conftest.err conftest.i conftest.$ac_ext 12144 12145done 12146# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12147rm -f conftest.i conftest.err conftest.$ac_ext 12148if $ac_preproc_ok; then : 12149 break 12150fi 12151 12152 done 12153 ac_cv_prog_CXXCPP=$CXXCPP 12154 12155fi 12156 CXXCPP=$ac_cv_prog_CXXCPP 12157else 12158 ac_cv_prog_CXXCPP=$CXXCPP 12159fi 12160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12161$as_echo "$CXXCPP" >&6; } 12162ac_preproc_ok=false 12163for ac_cxx_preproc_warn_flag in '' yes 12164do 12165 # Use a header file that comes with gcc, so configuring glibc 12166 # with a fresh cross-compiler works. 12167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12168 # <limits.h> exists even on freestanding compilers. 12169 # On the NeXT, cc -E runs the code through the compiler's parser, 12170 # not just through cpp. "Syntax error" is here to catch this case. 12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12172/* end confdefs.h. */ 12173#ifdef __STDC__ 12174# include <limits.h> 12175#else 12176# include <assert.h> 12177#endif 12178 Syntax error 12179_ACEOF 12180if ac_fn_cxx_try_cpp "$LINENO"; then : 12181 12182else 12183 # Broken: fails on valid input. 12184continue 12185fi 12186rm -f conftest.err conftest.i conftest.$ac_ext 12187 12188 # OK, works on sane cases. Now check whether nonexistent headers 12189 # can be detected and how. 12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12191/* end confdefs.h. */ 12192#include <ac_nonexistent.h> 12193_ACEOF 12194if ac_fn_cxx_try_cpp "$LINENO"; then : 12195 # Broken: success on invalid input. 12196continue 12197else 12198 # Passes both tests. 12199ac_preproc_ok=: 12200break 12201fi 12202rm -f conftest.err conftest.i conftest.$ac_ext 12203 12204done 12205# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12206rm -f conftest.i conftest.err conftest.$ac_ext 12207if $ac_preproc_ok; then : 12208 12209else 12210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12212as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12213See \`config.log' for more details" "$LINENO" 5; } 12214fi 12215 12216ac_ext=c 12217ac_cpp='$CPP $CPPFLAGS' 12218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12220ac_compiler_gnu=$ac_cv_c_compiler_gnu 12221 12222else 12223 _lt_caught_CXX_error=yes 12224fi 12225 12226ac_ext=cpp 12227ac_cpp='$CXXCPP $CPPFLAGS' 12228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12231 12232archive_cmds_need_lc_CXX=no 12233allow_undefined_flag_CXX= 12234always_export_symbols_CXX=no 12235archive_expsym_cmds_CXX= 12236compiler_needs_object_CXX=no 12237export_dynamic_flag_spec_CXX= 12238hardcode_direct_CXX=no 12239hardcode_direct_absolute_CXX=no 12240hardcode_libdir_flag_spec_CXX= 12241hardcode_libdir_separator_CXX= 12242hardcode_minus_L_CXX=no 12243hardcode_shlibpath_var_CXX=unsupported 12244hardcode_automatic_CXX=no 12245inherit_rpath_CXX=no 12246module_cmds_CXX= 12247module_expsym_cmds_CXX= 12248link_all_deplibs_CXX=unknown 12249old_archive_cmds_CXX=$old_archive_cmds 12250reload_flag_CXX=$reload_flag 12251reload_cmds_CXX=$reload_cmds 12252no_undefined_flag_CXX= 12253whole_archive_flag_spec_CXX= 12254enable_shared_with_static_runtimes_CXX=no 12255 12256# Source file extension for C++ test sources. 12257ac_ext=cpp 12258 12259# Object file extension for compiled C++ test sources. 12260objext=o 12261objext_CXX=$objext 12262 12263# No sense in running all these tests if we already determined that 12264# the CXX compiler isn't working. Some variables (like enable_shared) 12265# are currently assumed to apply to all compilers on this platform, 12266# and will be corrupted by setting them based on a non-working compiler. 12267if test "$_lt_caught_CXX_error" != yes; then 12268 # Code to be used in simple compile tests 12269 lt_simple_compile_test_code="int some_variable = 0;" 12270 12271 # Code to be used in simple link tests 12272 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12273 12274 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12275 12276 12277 12278 12279 12280 12281# If no C compiler was specified, use CC. 12282LTCC=${LTCC-"$CC"} 12283 12284# If no C compiler flags were specified, use CFLAGS. 12285LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12286 12287# Allow CC to be a program name with arguments. 12288compiler=$CC 12289 12290 12291 # save warnings/boilerplate of simple test code 12292 ac_outfile=conftest.$ac_objext 12293echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12294eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12295_lt_compiler_boilerplate=`cat conftest.err` 12296$RM conftest* 12297 12298 ac_outfile=conftest.$ac_objext 12299echo "$lt_simple_link_test_code" >conftest.$ac_ext 12300eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12301_lt_linker_boilerplate=`cat conftest.err` 12302$RM -r conftest* 12303 12304 12305 # Allow CC to be a program name with arguments. 12306 lt_save_CC=$CC 12307 lt_save_CFLAGS=$CFLAGS 12308 lt_save_LD=$LD 12309 lt_save_GCC=$GCC 12310 GCC=$GXX 12311 lt_save_with_gnu_ld=$with_gnu_ld 12312 lt_save_path_LD=$lt_cv_path_LD 12313 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12314 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12315 else 12316 $as_unset lt_cv_prog_gnu_ld 12317 fi 12318 if test -n "${lt_cv_path_LDCXX+set}"; then 12319 lt_cv_path_LD=$lt_cv_path_LDCXX 12320 else 12321 $as_unset lt_cv_path_LD 12322 fi 12323 test -z "${LDCXX+set}" || LD=$LDCXX 12324 CC=${CXX-"c++"} 12325 CFLAGS=$CXXFLAGS 12326 compiler=$CC 12327 compiler_CXX=$CC 12328 for cc_temp in $compiler""; do 12329 case $cc_temp in 12330 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12331 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12332 \-*) ;; 12333 *) break;; 12334 esac 12335done 12336cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12337 12338 12339 if test -n "$compiler"; then 12340 # We don't want -fno-exception when compiling C++ code, so set the 12341 # no_builtin_flag separately 12342 if test "$GXX" = yes; then 12343 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12344 else 12345 lt_prog_compiler_no_builtin_flag_CXX= 12346 fi 12347 12348 if test "$GXX" = yes; then 12349 # Set up default GNU C++ configuration 12350 12351 12352 12353# Check whether --with-gnu-ld was given. 12354if test "${with_gnu_ld+set}" = set; then : 12355 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12356else 12357 with_gnu_ld=no 12358fi 12359 12360ac_prog=ld 12361if test "$GCC" = yes; then 12362 # Check if gcc -print-prog-name=ld gives a path. 12363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12364$as_echo_n "checking for ld used by $CC... " >&6; } 12365 case $host in 12366 *-*-mingw*) 12367 # gcc leaves a trailing carriage return which upsets mingw 12368 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12369 *) 12370 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12371 esac 12372 case $ac_prog in 12373 # Accept absolute paths. 12374 [\\/]* | ?:[\\/]*) 12375 re_direlt='/[^/][^/]*/\.\./' 12376 # Canonicalize the pathname of ld 12377 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12378 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12379 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12380 done 12381 test -z "$LD" && LD="$ac_prog" 12382 ;; 12383 "") 12384 # If it fails, then pretend we aren't using GCC. 12385 ac_prog=ld 12386 ;; 12387 *) 12388 # If it is relative, then search for the first ld in PATH. 12389 with_gnu_ld=unknown 12390 ;; 12391 esac 12392elif test "$with_gnu_ld" = yes; then 12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12394$as_echo_n "checking for GNU ld... " >&6; } 12395else 12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12397$as_echo_n "checking for non-GNU ld... " >&6; } 12398fi 12399if ${lt_cv_path_LD+:} false; then : 12400 $as_echo_n "(cached) " >&6 12401else 12402 if test -z "$LD"; then 12403 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12404 for ac_dir in $PATH; do 12405 IFS="$lt_save_ifs" 12406 test -z "$ac_dir" && ac_dir=. 12407 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12408 lt_cv_path_LD="$ac_dir/$ac_prog" 12409 # Check to see if the program is GNU ld. I'd rather use --version, 12410 # but apparently some variants of GNU ld only accept -v. 12411 # Break only if it was the GNU/non-GNU ld that we prefer. 12412 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12413 *GNU* | *'with BFD'*) 12414 test "$with_gnu_ld" != no && break 12415 ;; 12416 *) 12417 test "$with_gnu_ld" != yes && break 12418 ;; 12419 esac 12420 fi 12421 done 12422 IFS="$lt_save_ifs" 12423else 12424 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12425fi 12426fi 12427 12428LD="$lt_cv_path_LD" 12429if test -n "$LD"; then 12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12431$as_echo "$LD" >&6; } 12432else 12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12434$as_echo "no" >&6; } 12435fi 12436test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12438$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12439if ${lt_cv_prog_gnu_ld+:} false; then : 12440 $as_echo_n "(cached) " >&6 12441else 12442 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12443case `$LD -v 2>&1 </dev/null` in 12444*GNU* | *'with BFD'*) 12445 lt_cv_prog_gnu_ld=yes 12446 ;; 12447*) 12448 lt_cv_prog_gnu_ld=no 12449 ;; 12450esac 12451fi 12452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12453$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12454with_gnu_ld=$lt_cv_prog_gnu_ld 12455 12456 12457 12458 12459 12460 12461 12462 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12463 # archiving commands below assume that GNU ld is being used. 12464 if test "$with_gnu_ld" = yes; then 12465 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12466 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 12467 12468 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12469 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12470 12471 # If archive_cmds runs LD, not CC, wlarc should be empty 12472 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12473 # investigate it a little bit more. (MM) 12474 wlarc='${wl}' 12475 12476 # ancient GNU ld didn't support --whole-archive et. al. 12477 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12478 $GREP 'no-whole-archive' > /dev/null; then 12479 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12480 else 12481 whole_archive_flag_spec_CXX= 12482 fi 12483 else 12484 with_gnu_ld=no 12485 wlarc= 12486 12487 # A generic and very simple default shared library creation 12488 # command for GNU C++ for the case where it uses the native 12489 # linker, instead of GNU ld. If possible, this setting should 12490 # overridden to take advantage of the native linker features on 12491 # the platform it is being used on. 12492 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12493 fi 12494 12495 # Commands to make compiler produce verbose output that lists 12496 # what "hidden" libraries, object files and flags are used when 12497 # linking a shared library. 12498 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12499 12500 else 12501 GXX=no 12502 with_gnu_ld=no 12503 wlarc= 12504 fi 12505 12506 # PORTME: fill in a description of your system's C++ link characteristics 12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12508$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12509 ld_shlibs_CXX=yes 12510 case $host_os in 12511 aix3*) 12512 # FIXME: insert proper C++ library support 12513 ld_shlibs_CXX=no 12514 ;; 12515 aix[4-9]*) 12516 if test "$host_cpu" = ia64; then 12517 # On IA64, the linker does run time linking by default, so we don't 12518 # have to do anything special. 12519 aix_use_runtimelinking=no 12520 exp_sym_flag='-Bexport' 12521 no_entry_flag="" 12522 else 12523 aix_use_runtimelinking=no 12524 12525 # Test if we are trying to use run time linking or normal 12526 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12527 # need to do runtime linking. 12528 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12529 for ld_flag in $LDFLAGS; do 12530 case $ld_flag in 12531 *-brtl*) 12532 aix_use_runtimelinking=yes 12533 break 12534 ;; 12535 esac 12536 done 12537 ;; 12538 esac 12539 12540 exp_sym_flag='-bexport' 12541 no_entry_flag='-bnoentry' 12542 fi 12543 12544 # When large executables or shared objects are built, AIX ld can 12545 # have problems creating the table of contents. If linking a library 12546 # or program results in "error TOC overflow" add -mminimal-toc to 12547 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12548 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12549 12550 archive_cmds_CXX='' 12551 hardcode_direct_CXX=yes 12552 hardcode_direct_absolute_CXX=yes 12553 hardcode_libdir_separator_CXX=':' 12554 link_all_deplibs_CXX=yes 12555 file_list_spec_CXX='${wl}-f,' 12556 12557 if test "$GXX" = yes; then 12558 case $host_os in aix4.[012]|aix4.[012].*) 12559 # We only want to do this on AIX 4.2 and lower, the check 12560 # below for broken collect2 doesn't work under 4.3+ 12561 collect2name=`${CC} -print-prog-name=collect2` 12562 if test -f "$collect2name" && 12563 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12564 then 12565 # We have reworked collect2 12566 : 12567 else 12568 # We have old collect2 12569 hardcode_direct_CXX=unsupported 12570 # It fails to find uninstalled libraries when the uninstalled 12571 # path is not listed in the libpath. Setting hardcode_minus_L 12572 # to unsupported forces relinking 12573 hardcode_minus_L_CXX=yes 12574 hardcode_libdir_flag_spec_CXX='-L$libdir' 12575 hardcode_libdir_separator_CXX= 12576 fi 12577 esac 12578 shared_flag='-shared' 12579 if test "$aix_use_runtimelinking" = yes; then 12580 shared_flag="$shared_flag "'${wl}-G' 12581 fi 12582 else 12583 # not using gcc 12584 if test "$host_cpu" = ia64; then 12585 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12586 # chokes on -Wl,-G. The following line is correct: 12587 shared_flag='-G' 12588 else 12589 if test "$aix_use_runtimelinking" = yes; then 12590 shared_flag='${wl}-G' 12591 else 12592 shared_flag='${wl}-bM:SRE' 12593 fi 12594 fi 12595 fi 12596 12597 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12598 # It seems that -bexpall does not export symbols beginning with 12599 # underscore (_), so it is better to generate a list of symbols to 12600 # export. 12601 always_export_symbols_CXX=yes 12602 if test "$aix_use_runtimelinking" = yes; then 12603 # Warning - without using the other runtime loading flags (-brtl), 12604 # -berok will link without error, but may produce a broken library. 12605 allow_undefined_flag_CXX='-berok' 12606 # Determine the default libpath from the value encoded in an empty 12607 # executable. 12608 if test "${lt_cv_aix_libpath+set}" = set; then 12609 aix_libpath=$lt_cv_aix_libpath 12610else 12611 if ${lt_cv_aix_libpath__CXX+:} false; then : 12612 $as_echo_n "(cached) " >&6 12613else 12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12615/* end confdefs.h. */ 12616 12617int 12618main () 12619{ 12620 12621 ; 12622 return 0; 12623} 12624_ACEOF 12625if ac_fn_cxx_try_link "$LINENO"; then : 12626 12627 lt_aix_libpath_sed=' 12628 /Import File Strings/,/^$/ { 12629 /^0/ { 12630 s/^0 *\([^ ]*\) *$/\1/ 12631 p 12632 } 12633 }' 12634 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12635 # Check for a 64-bit object if we didn't find anything. 12636 if test -z "$lt_cv_aix_libpath__CXX"; then 12637 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12638 fi 12639fi 12640rm -f core conftest.err conftest.$ac_objext \ 12641 conftest$ac_exeext conftest.$ac_ext 12642 if test -z "$lt_cv_aix_libpath__CXX"; then 12643 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12644 fi 12645 12646fi 12647 12648 aix_libpath=$lt_cv_aix_libpath__CXX 12649fi 12650 12651 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12652 12653 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" 12654 else 12655 if test "$host_cpu" = ia64; then 12656 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12657 allow_undefined_flag_CXX="-z nodefs" 12658 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" 12659 else 12660 # Determine the default libpath from the value encoded in an 12661 # empty executable. 12662 if test "${lt_cv_aix_libpath+set}" = set; then 12663 aix_libpath=$lt_cv_aix_libpath 12664else 12665 if ${lt_cv_aix_libpath__CXX+:} false; then : 12666 $as_echo_n "(cached) " >&6 12667else 12668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12669/* end confdefs.h. */ 12670 12671int 12672main () 12673{ 12674 12675 ; 12676 return 0; 12677} 12678_ACEOF 12679if ac_fn_cxx_try_link "$LINENO"; then : 12680 12681 lt_aix_libpath_sed=' 12682 /Import File Strings/,/^$/ { 12683 /^0/ { 12684 s/^0 *\([^ ]*\) *$/\1/ 12685 p 12686 } 12687 }' 12688 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12689 # Check for a 64-bit object if we didn't find anything. 12690 if test -z "$lt_cv_aix_libpath__CXX"; then 12691 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12692 fi 12693fi 12694rm -f core conftest.err conftest.$ac_objext \ 12695 conftest$ac_exeext conftest.$ac_ext 12696 if test -z "$lt_cv_aix_libpath__CXX"; then 12697 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 12698 fi 12699 12700fi 12701 12702 aix_libpath=$lt_cv_aix_libpath__CXX 12703fi 12704 12705 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12706 # Warning - without using the other run time loading flags, 12707 # -berok will link without error, but may produce a broken library. 12708 no_undefined_flag_CXX=' ${wl}-bernotok' 12709 allow_undefined_flag_CXX=' ${wl}-berok' 12710 if test "$with_gnu_ld" = yes; then 12711 # We only use this code for GNU lds that support --whole-archive. 12712 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12713 else 12714 # Exported symbols can be pulled into shared objects from archives 12715 whole_archive_flag_spec_CXX='$convenience' 12716 fi 12717 archive_cmds_need_lc_CXX=yes 12718 # This is similar to how AIX traditionally builds its shared 12719 # libraries. 12720 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' 12721 fi 12722 fi 12723 ;; 12724 12725 beos*) 12726 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12727 allow_undefined_flag_CXX=unsupported 12728 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12729 # support --undefined. This deserves some investigation. FIXME 12730 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12731 else 12732 ld_shlibs_CXX=no 12733 fi 12734 ;; 12735 12736 chorus*) 12737 case $cc_basename in 12738 *) 12739 # FIXME: insert proper C++ library support 12740 ld_shlibs_CXX=no 12741 ;; 12742 esac 12743 ;; 12744 12745 cygwin* | mingw* | pw32* | cegcc*) 12746 case $GXX,$cc_basename in 12747 ,cl* | no,cl*) 12748 # Native MSVC 12749 # hardcode_libdir_flag_spec is actually meaningless, as there is 12750 # no search path for DLLs. 12751 hardcode_libdir_flag_spec_CXX=' ' 12752 allow_undefined_flag_CXX=unsupported 12753 always_export_symbols_CXX=yes 12754 file_list_spec_CXX='@' 12755 # Tell ltmain to make .lib files, not .a files. 12756 libext=lib 12757 # Tell ltmain to make .dll files, not .so files. 12758 shrext_cmds=".dll" 12759 # FIXME: Setting linknames here is a bad hack. 12760 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 12761 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12762 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 12763 else 12764 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 12765 fi~ 12766 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 12767 linknames=' 12768 # The linker will not automatically build a static lib if we build a DLL. 12769 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 12770 enable_shared_with_static_runtimes_CXX=yes 12771 # Don't use ranlib 12772 old_postinstall_cmds_CXX='chmod 644 $oldlib' 12773 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 12774 lt_tool_outputfile="@TOOL_OUTPUT@"~ 12775 case $lt_outputfile in 12776 *.exe|*.EXE) ;; 12777 *) 12778 lt_outputfile="$lt_outputfile.exe" 12779 lt_tool_outputfile="$lt_tool_outputfile.exe" 12780 ;; 12781 esac~ 12782 func_to_tool_file "$lt_outputfile"~ 12783 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 12784 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 12785 $RM "$lt_outputfile.manifest"; 12786 fi' 12787 ;; 12788 *) 12789 # g++ 12790 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12791 # as there is no search path for DLLs. 12792 hardcode_libdir_flag_spec_CXX='-L$libdir' 12793 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 12794 allow_undefined_flag_CXX=unsupported 12795 always_export_symbols_CXX=no 12796 enable_shared_with_static_runtimes_CXX=yes 12797 12798 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12799 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' 12800 # If the export-symbols file already is a .def file (1st line 12801 # is EXPORTS), use it as is; otherwise, prepend... 12802 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12803 cp $export_symbols $output_objdir/$soname.def; 12804 else 12805 echo EXPORTS > $output_objdir/$soname.def; 12806 cat $export_symbols >> $output_objdir/$soname.def; 12807 fi~ 12808 $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' 12809 else 12810 ld_shlibs_CXX=no 12811 fi 12812 ;; 12813 esac 12814 ;; 12815 darwin* | rhapsody*) 12816 12817 12818 archive_cmds_need_lc_CXX=no 12819 hardcode_direct_CXX=no 12820 hardcode_automatic_CXX=yes 12821 hardcode_shlibpath_var_CXX=unsupported 12822 if test "$lt_cv_ld_force_load" = "yes"; then 12823 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\"`' 12824 12825 else 12826 whole_archive_flag_spec_CXX='' 12827 fi 12828 link_all_deplibs_CXX=yes 12829 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12830 case $cc_basename in 12831 ifort*) _lt_dar_can_shared=yes ;; 12832 *) _lt_dar_can_shared=$GCC ;; 12833 esac 12834 if test "$_lt_dar_can_shared" = "yes"; then 12835 output_verbose_link_cmd=func_echo_all 12836 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}" 12837 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12838 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}" 12839 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}" 12840 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12841 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}" 12842 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}" 12843 fi 12844 12845 else 12846 ld_shlibs_CXX=no 12847 fi 12848 12849 ;; 12850 12851 dgux*) 12852 case $cc_basename in 12853 ec++*) 12854 # FIXME: insert proper C++ library support 12855 ld_shlibs_CXX=no 12856 ;; 12857 ghcx*) 12858 # Green Hills C++ Compiler 12859 # FIXME: insert proper C++ library support 12860 ld_shlibs_CXX=no 12861 ;; 12862 *) 12863 # FIXME: insert proper C++ library support 12864 ld_shlibs_CXX=no 12865 ;; 12866 esac 12867 ;; 12868 12869 freebsd2.*) 12870 # C++ shared libraries reported to be fairly broken before 12871 # switch to ELF 12872 ld_shlibs_CXX=no 12873 ;; 12874 12875 freebsd-elf*) 12876 archive_cmds_need_lc_CXX=no 12877 ;; 12878 12879 freebsd* | dragonfly*) 12880 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12881 # conventions 12882 ld_shlibs_CXX=yes 12883 ;; 12884 12885 haiku*) 12886 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12887 link_all_deplibs_CXX=yes 12888 ;; 12889 12890 hpux9*) 12891 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12892 hardcode_libdir_separator_CXX=: 12893 export_dynamic_flag_spec_CXX='${wl}-E' 12894 hardcode_direct_CXX=yes 12895 hardcode_minus_L_CXX=yes # Not in the search PATH, 12896 # but as the default 12897 # location of the library. 12898 12899 case $cc_basename in 12900 CC*) 12901 # FIXME: insert proper C++ library support 12902 ld_shlibs_CXX=no 12903 ;; 12904 aCC*) 12905 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' 12906 # Commands to make compiler produce verbose output that lists 12907 # what "hidden" libraries, object files and flags are used when 12908 # linking a shared library. 12909 # 12910 # There doesn't appear to be a way to prevent this compiler from 12911 # explicitly linking system object files so we need to strip them 12912 # from the output so that they don't get included in the library 12913 # dependencies. 12914 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"' 12915 ;; 12916 *) 12917 if test "$GXX" = yes; then 12918 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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' 12919 else 12920 # FIXME: insert proper C++ library support 12921 ld_shlibs_CXX=no 12922 fi 12923 ;; 12924 esac 12925 ;; 12926 12927 hpux10*|hpux11*) 12928 if test $with_gnu_ld = no; then 12929 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12930 hardcode_libdir_separator_CXX=: 12931 12932 case $host_cpu in 12933 hppa*64*|ia64*) 12934 ;; 12935 *) 12936 export_dynamic_flag_spec_CXX='${wl}-E' 12937 ;; 12938 esac 12939 fi 12940 case $host_cpu in 12941 hppa*64*|ia64*) 12942 hardcode_direct_CXX=no 12943 hardcode_shlibpath_var_CXX=no 12944 ;; 12945 *) 12946 hardcode_direct_CXX=yes 12947 hardcode_direct_absolute_CXX=yes 12948 hardcode_minus_L_CXX=yes # Not in the search PATH, 12949 # but as the default 12950 # location of the library. 12951 ;; 12952 esac 12953 12954 case $cc_basename in 12955 CC*) 12956 # FIXME: insert proper C++ library support 12957 ld_shlibs_CXX=no 12958 ;; 12959 aCC*) 12960 case $host_cpu in 12961 hppa*64*) 12962 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12963 ;; 12964 ia64*) 12965 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12966 ;; 12967 *) 12968 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12969 ;; 12970 esac 12971 # Commands to make compiler produce verbose output that lists 12972 # what "hidden" libraries, object files and flags are used when 12973 # linking a shared library. 12974 # 12975 # There doesn't appear to be a way to prevent this compiler from 12976 # explicitly linking system object files so we need to strip them 12977 # from the output so that they don't get included in the library 12978 # dependencies. 12979 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"' 12980 ;; 12981 *) 12982 if test "$GXX" = yes; then 12983 if test $with_gnu_ld = no; then 12984 case $host_cpu in 12985 hppa*64*) 12986 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12987 ;; 12988 ia64*) 12989 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12990 ;; 12991 *) 12992 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12993 ;; 12994 esac 12995 fi 12996 else 12997 # FIXME: insert proper C++ library support 12998 ld_shlibs_CXX=no 12999 fi 13000 ;; 13001 esac 13002 ;; 13003 13004 interix[3-9]*) 13005 hardcode_direct_CXX=no 13006 hardcode_shlibpath_var_CXX=no 13007 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13008 export_dynamic_flag_spec_CXX='${wl}-E' 13009 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13010 # Instead, shared libraries are loaded at an image base (0x10000000 by 13011 # default) and relocated if they conflict, which is a slow very memory 13012 # consuming and fragmenting process. To avoid this, we pick a random, 13013 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13014 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13015 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' 13016 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' 13017 ;; 13018 irix5* | irix6*) 13019 case $cc_basename in 13020 CC*) 13021 # SGI C++ 13022 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' 13023 13024 # Archives containing C++ object files must be created using 13025 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13026 # necessary to make sure instantiated templates are included 13027 # in the archive. 13028 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13029 ;; 13030 *) 13031 if test "$GXX" = yes; then 13032 if test "$with_gnu_ld" = no; then 13033 archive_cmds_CXX='$CC -shared $pic_flag -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' 13034 else 13035 archive_cmds_CXX='$CC -shared $pic_flag -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' 13036 fi 13037 fi 13038 link_all_deplibs_CXX=yes 13039 ;; 13040 esac 13041 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13042 hardcode_libdir_separator_CXX=: 13043 inherit_rpath_CXX=yes 13044 ;; 13045 13046 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13047 case $cc_basename in 13048 KCC*) 13049 # Kuck and Associates, Inc. (KAI) C++ Compiler 13050 13051 # KCC will only create a shared library if the output file 13052 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13053 # to its proper name (with version) after linking. 13054 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' 13055 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' 13056 # Commands to make compiler produce verbose output that lists 13057 # what "hidden" libraries, object files and flags are used when 13058 # linking a shared library. 13059 # 13060 # There doesn't appear to be a way to prevent this compiler from 13061 # explicitly linking system object files so we need to strip them 13062 # from the output so that they don't get included in the library 13063 # dependencies. 13064 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"' 13065 13066 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13067 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13068 13069 # Archives containing C++ object files must be created using 13070 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13071 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13072 ;; 13073 icpc* | ecpc* ) 13074 # Intel C++ 13075 with_gnu_ld=yes 13076 # version 8.0 and above of icpc choke on multiply defined symbols 13077 # if we add $predep_objects and $postdep_objects, however 7.1 and 13078 # earlier do not add the objects themselves. 13079 case `$CC -V 2>&1` in 13080 *"Version 7."*) 13081 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13082 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' 13083 ;; 13084 *) # Version 8.0 or newer 13085 tmp_idyn= 13086 case $host_cpu in 13087 ia64*) tmp_idyn=' -i_dynamic';; 13088 esac 13089 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13090 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' 13091 ;; 13092 esac 13093 archive_cmds_need_lc_CXX=no 13094 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13095 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13096 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13097 ;; 13098 pgCC* | pgcpp*) 13099 # Portland Group C++ compiler 13100 case `$CC -V` in 13101 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13102 prelink_cmds_CXX='tpldir=Template.dir~ 13103 rm -rf $tpldir~ 13104 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13105 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13106 old_archive_cmds_CXX='tpldir=Template.dir~ 13107 rm -rf $tpldir~ 13108 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13109 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13110 $RANLIB $oldlib' 13111 archive_cmds_CXX='tpldir=Template.dir~ 13112 rm -rf $tpldir~ 13113 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13114 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13115 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13116 rm -rf $tpldir~ 13117 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13118 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 13119 ;; 13120 *) # Version 6 and above use weak symbols 13121 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 13122 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' 13123 ;; 13124 esac 13125 13126 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 13127 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13128 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' 13129 ;; 13130 cxx*) 13131 # Compaq C++ 13132 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13133 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' 13134 13135 runpath_var=LD_RUN_PATH 13136 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13137 hardcode_libdir_separator_CXX=: 13138 13139 # Commands to make compiler produce verbose output that lists 13140 # what "hidden" libraries, object files and flags are used when 13141 # linking a shared library. 13142 # 13143 # There doesn't appear to be a way to prevent this compiler from 13144 # explicitly linking system object files so we need to strip them 13145 # from the output so that they don't get included in the library 13146 # dependencies. 13147 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' 13148 ;; 13149 xl* | mpixl* | bgxl*) 13150 # IBM XL 8.0 on PPC, with GNU ld 13151 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13152 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13153 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13154 if test "x$supports_anon_versioning" = xyes; then 13155 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13156 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13157 echo "local: *; };" >> $output_objdir/$libname.ver~ 13158 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13159 fi 13160 ;; 13161 *) 13162 case `$CC -V 2>&1 | sed 5q` in 13163 *Sun\ C*) 13164 # Sun C++ 5.9 13165 no_undefined_flag_CXX=' -zdefs' 13166 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13167 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' 13168 hardcode_libdir_flag_spec_CXX='-R$libdir' 13169 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' 13170 compiler_needs_object_CXX=yes 13171 13172 # Not sure whether something based on 13173 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13174 # would be better. 13175 output_verbose_link_cmd='func_echo_all' 13176 13177 # Archives containing C++ object files must be created using 13178 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13179 # necessary to make sure instantiated templates are included 13180 # in the archive. 13181 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13182 ;; 13183 esac 13184 ;; 13185 esac 13186 ;; 13187 13188 lynxos*) 13189 # FIXME: insert proper C++ library support 13190 ld_shlibs_CXX=no 13191 ;; 13192 13193 m88k*) 13194 # FIXME: insert proper C++ library support 13195 ld_shlibs_CXX=no 13196 ;; 13197 13198 mvs*) 13199 case $cc_basename in 13200 cxx*) 13201 # FIXME: insert proper C++ library support 13202 ld_shlibs_CXX=no 13203 ;; 13204 *) 13205 # FIXME: insert proper C++ library support 13206 ld_shlibs_CXX=no 13207 ;; 13208 esac 13209 ;; 13210 13211 netbsd*) 13212 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13213 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13214 wlarc= 13215 hardcode_libdir_flag_spec_CXX='-R$libdir' 13216 hardcode_direct_CXX=yes 13217 hardcode_shlibpath_var_CXX=no 13218 fi 13219 # Workaround some broken pre-1.5 toolchains 13220 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13221 ;; 13222 13223 *nto* | *qnx*) 13224 ld_shlibs_CXX=yes 13225 ;; 13226 13227 openbsd2*) 13228 # C++ shared libraries are fairly broken 13229 ld_shlibs_CXX=no 13230 ;; 13231 13232 openbsd*) 13233 if test -f /usr/libexec/ld.so; then 13234 hardcode_direct_CXX=yes 13235 hardcode_shlibpath_var_CXX=no 13236 hardcode_direct_absolute_CXX=yes 13237 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13238 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13239 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13240 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13241 export_dynamic_flag_spec_CXX='${wl}-E' 13242 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13243 fi 13244 output_verbose_link_cmd=func_echo_all 13245 else 13246 ld_shlibs_CXX=no 13247 fi 13248 ;; 13249 13250 osf3* | osf4* | osf5*) 13251 case $cc_basename in 13252 KCC*) 13253 # Kuck and Associates, Inc. (KAI) C++ Compiler 13254 13255 # KCC will only create a shared library if the output file 13256 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13257 # to its proper name (with version) after linking. 13258 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' 13259 13260 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13261 hardcode_libdir_separator_CXX=: 13262 13263 # Archives containing C++ object files must be created using 13264 # the KAI C++ compiler. 13265 case $host in 13266 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13267 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13268 esac 13269 ;; 13270 RCC*) 13271 # Rational C++ 2.4.1 13272 # FIXME: insert proper C++ library support 13273 ld_shlibs_CXX=no 13274 ;; 13275 cxx*) 13276 case $host in 13277 osf3*) 13278 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13279 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' 13280 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13281 ;; 13282 *) 13283 allow_undefined_flag_CXX=' -expect_unresolved \*' 13284 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' 13285 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13286 echo "-hidden">> $lib.exp~ 13287 $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~ 13288 $RM $lib.exp' 13289 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13290 ;; 13291 esac 13292 13293 hardcode_libdir_separator_CXX=: 13294 13295 # Commands to make compiler produce verbose output that lists 13296 # what "hidden" libraries, object files and flags are used when 13297 # linking a shared library. 13298 # 13299 # There doesn't appear to be a way to prevent this compiler from 13300 # explicitly linking system object files so we need to strip them 13301 # from the output so that they don't get included in the library 13302 # dependencies. 13303 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"' 13304 ;; 13305 *) 13306 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13307 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13308 case $host in 13309 osf3*) 13310 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' 13311 ;; 13312 *) 13313 archive_cmds_CXX='$CC -shared $pic_flag -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' 13314 ;; 13315 esac 13316 13317 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13318 hardcode_libdir_separator_CXX=: 13319 13320 # Commands to make compiler produce verbose output that lists 13321 # what "hidden" libraries, object files and flags are used when 13322 # linking a shared library. 13323 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13324 13325 else 13326 # FIXME: insert proper C++ library support 13327 ld_shlibs_CXX=no 13328 fi 13329 ;; 13330 esac 13331 ;; 13332 13333 psos*) 13334 # FIXME: insert proper C++ library support 13335 ld_shlibs_CXX=no 13336 ;; 13337 13338 sunos4*) 13339 case $cc_basename in 13340 CC*) 13341 # Sun C++ 4.x 13342 # FIXME: insert proper C++ library support 13343 ld_shlibs_CXX=no 13344 ;; 13345 lcc*) 13346 # Lucid 13347 # FIXME: insert proper C++ library support 13348 ld_shlibs_CXX=no 13349 ;; 13350 *) 13351 # FIXME: insert proper C++ library support 13352 ld_shlibs_CXX=no 13353 ;; 13354 esac 13355 ;; 13356 13357 solaris*) 13358 case $cc_basename in 13359 CC* | sunCC*) 13360 # Sun C++ 4.2, 5.x and Centerline C++ 13361 archive_cmds_need_lc_CXX=yes 13362 no_undefined_flag_CXX=' -zdefs' 13363 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13364 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13365 $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' 13366 13367 hardcode_libdir_flag_spec_CXX='-R$libdir' 13368 hardcode_shlibpath_var_CXX=no 13369 case $host_os in 13370 solaris2.[0-5] | solaris2.[0-5].*) ;; 13371 *) 13372 # The compiler driver will combine and reorder linker options, 13373 # but understands `-z linker_flag'. 13374 # Supported since Solaris 2.6 (maybe 2.5.1?) 13375 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13376 ;; 13377 esac 13378 link_all_deplibs_CXX=yes 13379 13380 output_verbose_link_cmd='func_echo_all' 13381 13382 # Archives containing C++ object files must be created using 13383 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13384 # necessary to make sure instantiated templates are included 13385 # in the archive. 13386 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13387 ;; 13388 gcx*) 13389 # Green Hills C++ Compiler 13390 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13391 13392 # The C++ compiler must be used to create the archive. 13393 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13394 ;; 13395 *) 13396 # GNU C++ compiler with Solaris linker 13397 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13398 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13399 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13400 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13401 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13402 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13403 13404 # Commands to make compiler produce verbose output that lists 13405 # what "hidden" libraries, object files and flags are used when 13406 # linking a shared library. 13407 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13408 else 13409 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13410 # platform. 13411 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13412 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13413 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13414 13415 # Commands to make compiler produce verbose output that lists 13416 # what "hidden" libraries, object files and flags are used when 13417 # linking a shared library. 13418 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13419 fi 13420 13421 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13422 case $host_os in 13423 solaris2.[0-5] | solaris2.[0-5].*) ;; 13424 *) 13425 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13426 ;; 13427 esac 13428 fi 13429 ;; 13430 esac 13431 ;; 13432 13433 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13434 no_undefined_flag_CXX='${wl}-z,text' 13435 archive_cmds_need_lc_CXX=no 13436 hardcode_shlibpath_var_CXX=no 13437 runpath_var='LD_RUN_PATH' 13438 13439 case $cc_basename in 13440 CC*) 13441 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13442 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13443 ;; 13444 *) 13445 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13446 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13447 ;; 13448 esac 13449 ;; 13450 13451 sysv5* | sco3.2v5* | sco5v6*) 13452 # Note: We can NOT use -z defs as we might desire, because we do not 13453 # link with -lc, and that would cause any symbols used from libc to 13454 # always be unresolved, which means just about no library would 13455 # ever link correctly. If we're not using GNU ld we use -z text 13456 # though, which does catch some bad symbols but isn't as heavy-handed 13457 # as -z defs. 13458 no_undefined_flag_CXX='${wl}-z,text' 13459 allow_undefined_flag_CXX='${wl}-z,nodefs' 13460 archive_cmds_need_lc_CXX=no 13461 hardcode_shlibpath_var_CXX=no 13462 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13463 hardcode_libdir_separator_CXX=':' 13464 link_all_deplibs_CXX=yes 13465 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13466 runpath_var='LD_RUN_PATH' 13467 13468 case $cc_basename in 13469 CC*) 13470 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13471 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13472 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13473 '"$old_archive_cmds_CXX" 13474 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13475 '"$reload_cmds_CXX" 13476 ;; 13477 *) 13478 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13479 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13480 ;; 13481 esac 13482 ;; 13483 13484 tandem*) 13485 case $cc_basename in 13486 NCC*) 13487 # NonStop-UX NCC 3.20 13488 # FIXME: insert proper C++ library support 13489 ld_shlibs_CXX=no 13490 ;; 13491 *) 13492 # FIXME: insert proper C++ library support 13493 ld_shlibs_CXX=no 13494 ;; 13495 esac 13496 ;; 13497 13498 vxworks*) 13499 # FIXME: insert proper C++ library support 13500 ld_shlibs_CXX=no 13501 ;; 13502 13503 *) 13504 # FIXME: insert proper C++ library support 13505 ld_shlibs_CXX=no 13506 ;; 13507 esac 13508 13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13510$as_echo "$ld_shlibs_CXX" >&6; } 13511 test "$ld_shlibs_CXX" = no && can_build_shared=no 13512 13513 GCC_CXX="$GXX" 13514 LD_CXX="$LD" 13515 13516 ## CAVEAT EMPTOR: 13517 ## There is no encapsulation within the following macros, do not change 13518 ## the running order or otherwise move them around unless you know exactly 13519 ## what you are doing... 13520 # Dependencies to place before and after the object being linked: 13521predep_objects_CXX= 13522postdep_objects_CXX= 13523predeps_CXX= 13524postdeps_CXX= 13525compiler_lib_search_path_CXX= 13526 13527cat > conftest.$ac_ext <<_LT_EOF 13528class Foo 13529{ 13530public: 13531 Foo (void) { a = 0; } 13532private: 13533 int a; 13534}; 13535_LT_EOF 13536 13537 13538_lt_libdeps_save_CFLAGS=$CFLAGS 13539case "$CC $CFLAGS " in #( 13540*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 13541*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 13542*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 13543esac 13544 13545if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13546 (eval $ac_compile) 2>&5 13547 ac_status=$? 13548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13549 test $ac_status = 0; }; then 13550 # Parse the compiler output and extract the necessary 13551 # objects, libraries and library flags. 13552 13553 # Sentinel used to keep track of whether or not we are before 13554 # the conftest object file. 13555 pre_test_object_deps_done=no 13556 13557 for p in `eval "$output_verbose_link_cmd"`; do 13558 case ${prev}${p} in 13559 13560 -L* | -R* | -l*) 13561 # Some compilers place space between "-{L,R}" and the path. 13562 # Remove the space. 13563 if test $p = "-L" || 13564 test $p = "-R"; then 13565 prev=$p 13566 continue 13567 fi 13568 13569 # Expand the sysroot to ease extracting the directories later. 13570 if test -z "$prev"; then 13571 case $p in 13572 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 13573 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 13574 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 13575 esac 13576 fi 13577 case $p in 13578 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 13579 esac 13580 if test "$pre_test_object_deps_done" = no; then 13581 case ${prev} in 13582 -L | -R) 13583 # Internal compiler library paths should come after those 13584 # provided the user. The postdeps already come after the 13585 # user supplied libs so there is no need to process them. 13586 if test -z "$compiler_lib_search_path_CXX"; then 13587 compiler_lib_search_path_CXX="${prev}${p}" 13588 else 13589 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13590 fi 13591 ;; 13592 # The "-l" case would never come before the object being 13593 # linked, so don't bother handling this case. 13594 esac 13595 else 13596 if test -z "$postdeps_CXX"; then 13597 postdeps_CXX="${prev}${p}" 13598 else 13599 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13600 fi 13601 fi 13602 prev= 13603 ;; 13604 13605 *.lto.$objext) ;; # Ignore GCC LTO objects 13606 *.$objext) 13607 # This assumes that the test object file only shows up 13608 # once in the compiler output. 13609 if test "$p" = "conftest.$objext"; then 13610 pre_test_object_deps_done=yes 13611 continue 13612 fi 13613 13614 if test "$pre_test_object_deps_done" = no; then 13615 if test -z "$predep_objects_CXX"; then 13616 predep_objects_CXX="$p" 13617 else 13618 predep_objects_CXX="$predep_objects_CXX $p" 13619 fi 13620 else 13621 if test -z "$postdep_objects_CXX"; then 13622 postdep_objects_CXX="$p" 13623 else 13624 postdep_objects_CXX="$postdep_objects_CXX $p" 13625 fi 13626 fi 13627 ;; 13628 13629 *) ;; # Ignore the rest. 13630 13631 esac 13632 done 13633 13634 # Clean up. 13635 rm -f a.out a.exe 13636else 13637 echo "libtool.m4: error: problem compiling CXX test program" 13638fi 13639 13640$RM -f confest.$objext 13641CFLAGS=$_lt_libdeps_save_CFLAGS 13642 13643# PORTME: override above test on systems where it is broken 13644case $host_os in 13645interix[3-9]*) 13646 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13647 # hack all around it, let's just trust "g++" to DTRT. 13648 predep_objects_CXX= 13649 postdep_objects_CXX= 13650 postdeps_CXX= 13651 ;; 13652 13653linux*) 13654 case `$CC -V 2>&1 | sed 5q` in 13655 *Sun\ C*) 13656 # Sun C++ 5.9 13657 13658 # The more standards-conforming stlport4 library is 13659 # incompatible with the Cstd library. Avoid specifying 13660 # it if it's in CXXFLAGS. Ignore libCrun as 13661 # -library=stlport4 depends on it. 13662 case " $CXX $CXXFLAGS " in 13663 *" -library=stlport4 "*) 13664 solaris_use_stlport4=yes 13665 ;; 13666 esac 13667 13668 if test "$solaris_use_stlport4" != yes; then 13669 postdeps_CXX='-library=Cstd -library=Crun' 13670 fi 13671 ;; 13672 esac 13673 ;; 13674 13675solaris*) 13676 case $cc_basename in 13677 CC* | sunCC*) 13678 # The more standards-conforming stlport4 library is 13679 # incompatible with the Cstd library. Avoid specifying 13680 # it if it's in CXXFLAGS. Ignore libCrun as 13681 # -library=stlport4 depends on it. 13682 case " $CXX $CXXFLAGS " in 13683 *" -library=stlport4 "*) 13684 solaris_use_stlport4=yes 13685 ;; 13686 esac 13687 13688 # Adding this requires a known-good setup of shared libraries for 13689 # Sun compiler versions before 5.6, else PIC objects from an old 13690 # archive will be linked into the output, leading to subtle bugs. 13691 if test "$solaris_use_stlport4" != yes; then 13692 postdeps_CXX='-library=Cstd -library=Crun' 13693 fi 13694 ;; 13695 esac 13696 ;; 13697esac 13698 13699 13700case " $postdeps_CXX " in 13701*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13702esac 13703 compiler_lib_search_dirs_CXX= 13704if test -n "${compiler_lib_search_path_CXX}"; then 13705 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13706fi 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 lt_prog_compiler_wl_CXX= 13739lt_prog_compiler_pic_CXX= 13740lt_prog_compiler_static_CXX= 13741 13742 13743 # C++ specific cases for pic, static, wl, etc. 13744 if test "$GXX" = yes; then 13745 lt_prog_compiler_wl_CXX='-Wl,' 13746 lt_prog_compiler_static_CXX='-static' 13747 13748 case $host_os in 13749 aix*) 13750 # All AIX code is PIC. 13751 if test "$host_cpu" = ia64; then 13752 # AIX 5 now supports IA64 processor 13753 lt_prog_compiler_static_CXX='-Bstatic' 13754 fi 13755 ;; 13756 13757 amigaos*) 13758 case $host_cpu in 13759 powerpc) 13760 # see comment about AmigaOS4 .so support 13761 lt_prog_compiler_pic_CXX='-fPIC' 13762 ;; 13763 m68k) 13764 # FIXME: we need at least 68020 code to build shared libraries, but 13765 # adding the `-m68020' flag to GCC prevents building anything better, 13766 # like `-m68040'. 13767 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13768 ;; 13769 esac 13770 ;; 13771 13772 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13773 # PIC is the default for these OSes. 13774 ;; 13775 mingw* | cygwin* | os2* | pw32* | cegcc*) 13776 # This hack is so that the source file can tell whether it is being 13777 # built for inclusion in a dll (and should export symbols for example). 13778 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13779 # (--disable-auto-import) libraries 13780 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13781 ;; 13782 darwin* | rhapsody*) 13783 # PIC is the default on this platform 13784 # Common symbols not allowed in MH_DYLIB files 13785 lt_prog_compiler_pic_CXX='-fno-common' 13786 ;; 13787 *djgpp*) 13788 # DJGPP does not support shared libraries at all 13789 lt_prog_compiler_pic_CXX= 13790 ;; 13791 haiku*) 13792 # PIC is the default for Haiku. 13793 # The "-static" flag exists, but is broken. 13794 lt_prog_compiler_static_CXX= 13795 ;; 13796 interix[3-9]*) 13797 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13798 # Instead, we relocate shared libraries at runtime. 13799 ;; 13800 sysv4*MP*) 13801 if test -d /usr/nec; then 13802 lt_prog_compiler_pic_CXX=-Kconform_pic 13803 fi 13804 ;; 13805 hpux*) 13806 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13807 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13808 # sets the default TLS model and affects inlining. 13809 case $host_cpu in 13810 hppa*64*) 13811 ;; 13812 *) 13813 lt_prog_compiler_pic_CXX='-fPIC' 13814 ;; 13815 esac 13816 ;; 13817 *qnx* | *nto*) 13818 # QNX uses GNU C++, but need to define -shared option too, otherwise 13819 # it will coredump. 13820 lt_prog_compiler_pic_CXX='-fPIC -shared' 13821 ;; 13822 *) 13823 lt_prog_compiler_pic_CXX='-fPIC' 13824 ;; 13825 esac 13826 else 13827 case $host_os in 13828 aix[4-9]*) 13829 # All AIX code is PIC. 13830 if test "$host_cpu" = ia64; then 13831 # AIX 5 now supports IA64 processor 13832 lt_prog_compiler_static_CXX='-Bstatic' 13833 else 13834 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13835 fi 13836 ;; 13837 chorus*) 13838 case $cc_basename in 13839 cxch68*) 13840 # Green Hills C++ Compiler 13841 # _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" 13842 ;; 13843 esac 13844 ;; 13845 mingw* | cygwin* | os2* | pw32* | cegcc*) 13846 # This hack is so that the source file can tell whether it is being 13847 # built for inclusion in a dll (and should export symbols for example). 13848 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13849 ;; 13850 dgux*) 13851 case $cc_basename in 13852 ec++*) 13853 lt_prog_compiler_pic_CXX='-KPIC' 13854 ;; 13855 ghcx*) 13856 # Green Hills C++ Compiler 13857 lt_prog_compiler_pic_CXX='-pic' 13858 ;; 13859 *) 13860 ;; 13861 esac 13862 ;; 13863 freebsd* | dragonfly*) 13864 # FreeBSD uses GNU C++ 13865 ;; 13866 hpux9* | hpux10* | hpux11*) 13867 case $cc_basename in 13868 CC*) 13869 lt_prog_compiler_wl_CXX='-Wl,' 13870 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13871 if test "$host_cpu" != ia64; then 13872 lt_prog_compiler_pic_CXX='+Z' 13873 fi 13874 ;; 13875 aCC*) 13876 lt_prog_compiler_wl_CXX='-Wl,' 13877 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13878 case $host_cpu in 13879 hppa*64*|ia64*) 13880 # +Z the default 13881 ;; 13882 *) 13883 lt_prog_compiler_pic_CXX='+Z' 13884 ;; 13885 esac 13886 ;; 13887 *) 13888 ;; 13889 esac 13890 ;; 13891 interix*) 13892 # This is c89, which is MS Visual C++ (no shared libs) 13893 # Anyone wants to do a port? 13894 ;; 13895 irix5* | irix6* | nonstopux*) 13896 case $cc_basename in 13897 CC*) 13898 lt_prog_compiler_wl_CXX='-Wl,' 13899 lt_prog_compiler_static_CXX='-non_shared' 13900 # CC pic flag -KPIC is the default. 13901 ;; 13902 *) 13903 ;; 13904 esac 13905 ;; 13906 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13907 case $cc_basename in 13908 KCC*) 13909 # KAI C++ Compiler 13910 lt_prog_compiler_wl_CXX='--backend -Wl,' 13911 lt_prog_compiler_pic_CXX='-fPIC' 13912 ;; 13913 ecpc* ) 13914 # old Intel C++ for x86_64 which still supported -KPIC. 13915 lt_prog_compiler_wl_CXX='-Wl,' 13916 lt_prog_compiler_pic_CXX='-KPIC' 13917 lt_prog_compiler_static_CXX='-static' 13918 ;; 13919 icpc* ) 13920 # Intel C++, used to be incompatible with GCC. 13921 # ICC 10 doesn't accept -KPIC any more. 13922 lt_prog_compiler_wl_CXX='-Wl,' 13923 lt_prog_compiler_pic_CXX='-fPIC' 13924 lt_prog_compiler_static_CXX='-static' 13925 ;; 13926 pgCC* | pgcpp*) 13927 # Portland Group C++ compiler 13928 lt_prog_compiler_wl_CXX='-Wl,' 13929 lt_prog_compiler_pic_CXX='-fpic' 13930 lt_prog_compiler_static_CXX='-Bstatic' 13931 ;; 13932 cxx*) 13933 # Compaq C++ 13934 # Make sure the PIC flag is empty. It appears that all Alpha 13935 # Linux and Compaq Tru64 Unix objects are PIC. 13936 lt_prog_compiler_pic_CXX= 13937 lt_prog_compiler_static_CXX='-non_shared' 13938 ;; 13939 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 13940 # IBM XL 8.0, 9.0 on PPC and BlueGene 13941 lt_prog_compiler_wl_CXX='-Wl,' 13942 lt_prog_compiler_pic_CXX='-qpic' 13943 lt_prog_compiler_static_CXX='-qstaticlink' 13944 ;; 13945 *) 13946 case `$CC -V 2>&1 | sed 5q` in 13947 *Sun\ C*) 13948 # Sun C++ 5.9 13949 lt_prog_compiler_pic_CXX='-KPIC' 13950 lt_prog_compiler_static_CXX='-Bstatic' 13951 lt_prog_compiler_wl_CXX='-Qoption ld ' 13952 ;; 13953 esac 13954 ;; 13955 esac 13956 ;; 13957 lynxos*) 13958 ;; 13959 m88k*) 13960 ;; 13961 mvs*) 13962 case $cc_basename in 13963 cxx*) 13964 lt_prog_compiler_pic_CXX='-W c,exportall' 13965 ;; 13966 *) 13967 ;; 13968 esac 13969 ;; 13970 netbsd* | netbsdelf*-gnu) 13971 ;; 13972 *qnx* | *nto*) 13973 # QNX uses GNU C++, but need to define -shared option too, otherwise 13974 # it will coredump. 13975 lt_prog_compiler_pic_CXX='-fPIC -shared' 13976 ;; 13977 osf3* | osf4* | osf5*) 13978 case $cc_basename in 13979 KCC*) 13980 lt_prog_compiler_wl_CXX='--backend -Wl,' 13981 ;; 13982 RCC*) 13983 # Rational C++ 2.4.1 13984 lt_prog_compiler_pic_CXX='-pic' 13985 ;; 13986 cxx*) 13987 # Digital/Compaq C++ 13988 lt_prog_compiler_wl_CXX='-Wl,' 13989 # Make sure the PIC flag is empty. It appears that all Alpha 13990 # Linux and Compaq Tru64 Unix objects are PIC. 13991 lt_prog_compiler_pic_CXX= 13992 lt_prog_compiler_static_CXX='-non_shared' 13993 ;; 13994 *) 13995 ;; 13996 esac 13997 ;; 13998 psos*) 13999 ;; 14000 solaris*) 14001 case $cc_basename in 14002 CC* | sunCC*) 14003 # Sun C++ 4.2, 5.x and Centerline C++ 14004 lt_prog_compiler_pic_CXX='-KPIC' 14005 lt_prog_compiler_static_CXX='-Bstatic' 14006 lt_prog_compiler_wl_CXX='-Qoption ld ' 14007 ;; 14008 gcx*) 14009 # Green Hills C++ Compiler 14010 lt_prog_compiler_pic_CXX='-PIC' 14011 ;; 14012 *) 14013 ;; 14014 esac 14015 ;; 14016 sunos4*) 14017 case $cc_basename in 14018 CC*) 14019 # Sun C++ 4.x 14020 lt_prog_compiler_pic_CXX='-pic' 14021 lt_prog_compiler_static_CXX='-Bstatic' 14022 ;; 14023 lcc*) 14024 # Lucid 14025 lt_prog_compiler_pic_CXX='-pic' 14026 ;; 14027 *) 14028 ;; 14029 esac 14030 ;; 14031 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14032 case $cc_basename in 14033 CC*) 14034 lt_prog_compiler_wl_CXX='-Wl,' 14035 lt_prog_compiler_pic_CXX='-KPIC' 14036 lt_prog_compiler_static_CXX='-Bstatic' 14037 ;; 14038 esac 14039 ;; 14040 tandem*) 14041 case $cc_basename in 14042 NCC*) 14043 # NonStop-UX NCC 3.20 14044 lt_prog_compiler_pic_CXX='-KPIC' 14045 ;; 14046 *) 14047 ;; 14048 esac 14049 ;; 14050 vxworks*) 14051 ;; 14052 *) 14053 lt_prog_compiler_can_build_shared_CXX=no 14054 ;; 14055 esac 14056 fi 14057 14058case $host_os in 14059 # For platforms which do not support PIC, -DPIC is meaningless: 14060 *djgpp*) 14061 lt_prog_compiler_pic_CXX= 14062 ;; 14063 *) 14064 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14065 ;; 14066esac 14067 14068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14069$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14070if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14071 $as_echo_n "(cached) " >&6 14072else 14073 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14074fi 14075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14076$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14077lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14078 14079# 14080# Check to make sure the PIC flag actually works. 14081# 14082if test -n "$lt_prog_compiler_pic_CXX"; then 14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14084$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14085if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14086 $as_echo_n "(cached) " >&6 14087else 14088 lt_cv_prog_compiler_pic_works_CXX=no 14089 ac_outfile=conftest.$ac_objext 14090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14091 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 14092 # Insert the option either (1) after the last *FLAGS variable, or 14093 # (2) before a word containing "conftest.", or (3) at the end. 14094 # Note that $ac_compile itself does not contain backslashes and begins 14095 # with a dollar sign (not a hyphen), so the echo should work correctly. 14096 # The option is referenced via a variable to avoid confusing sed. 14097 lt_compile=`echo "$ac_compile" | $SED \ 14098 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14099 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14100 -e 's:$: $lt_compiler_flag:'` 14101 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14102 (eval "$lt_compile" 2>conftest.err) 14103 ac_status=$? 14104 cat conftest.err >&5 14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14106 if (exit $ac_status) && test -s "$ac_outfile"; then 14107 # The compiler can only warn and ignore the option if not recognized 14108 # So say no if there are warnings other than the usual output. 14109 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14110 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14111 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14112 lt_cv_prog_compiler_pic_works_CXX=yes 14113 fi 14114 fi 14115 $RM conftest* 14116 14117fi 14118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14119$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14120 14121if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 14122 case $lt_prog_compiler_pic_CXX in 14123 "" | " "*) ;; 14124 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14125 esac 14126else 14127 lt_prog_compiler_pic_CXX= 14128 lt_prog_compiler_can_build_shared_CXX=no 14129fi 14130 14131fi 14132 14133 14134 14135 14136 14137# 14138# Check to make sure the static flag actually works. 14139# 14140wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14142$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14143if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14144 $as_echo_n "(cached) " >&6 14145else 14146 lt_cv_prog_compiler_static_works_CXX=no 14147 save_LDFLAGS="$LDFLAGS" 14148 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14149 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14150 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14151 # The linker can only warn and ignore the option if not recognized 14152 # So say no if there are warnings 14153 if test -s conftest.err; then 14154 # Append any errors to the config.log. 14155 cat conftest.err 1>&5 14156 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14157 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14158 if diff conftest.exp conftest.er2 >/dev/null; then 14159 lt_cv_prog_compiler_static_works_CXX=yes 14160 fi 14161 else 14162 lt_cv_prog_compiler_static_works_CXX=yes 14163 fi 14164 fi 14165 $RM -r conftest* 14166 LDFLAGS="$save_LDFLAGS" 14167 14168fi 14169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14170$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14171 14172if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 14173 : 14174else 14175 lt_prog_compiler_static_CXX= 14176fi 14177 14178 14179 14180 14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14182$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14183if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14184 $as_echo_n "(cached) " >&6 14185else 14186 lt_cv_prog_compiler_c_o_CXX=no 14187 $RM -r conftest 2>/dev/null 14188 mkdir conftest 14189 cd conftest 14190 mkdir out 14191 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14192 14193 lt_compiler_flag="-o out/conftest2.$ac_objext" 14194 # Insert the option either (1) after the last *FLAGS variable, or 14195 # (2) before a word containing "conftest.", or (3) at the end. 14196 # Note that $ac_compile itself does not contain backslashes and begins 14197 # with a dollar sign (not a hyphen), so the echo should work correctly. 14198 lt_compile=`echo "$ac_compile" | $SED \ 14199 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14201 -e 's:$: $lt_compiler_flag:'` 14202 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14203 (eval "$lt_compile" 2>out/conftest.err) 14204 ac_status=$? 14205 cat out/conftest.err >&5 14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14207 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14208 then 14209 # The compiler can only warn and ignore the option if not recognized 14210 # So say no if there are warnings 14211 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14212 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14213 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14214 lt_cv_prog_compiler_c_o_CXX=yes 14215 fi 14216 fi 14217 chmod u+w . 2>&5 14218 $RM conftest* 14219 # SGI C++ compiler will create directory out/ii_files/ for 14220 # template instantiation 14221 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14222 $RM out/* && rmdir out 14223 cd .. 14224 $RM -r conftest 14225 $RM conftest* 14226 14227fi 14228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14229$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14230 14231 14232 14233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14234$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14235if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14236 $as_echo_n "(cached) " >&6 14237else 14238 lt_cv_prog_compiler_c_o_CXX=no 14239 $RM -r conftest 2>/dev/null 14240 mkdir conftest 14241 cd conftest 14242 mkdir out 14243 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14244 14245 lt_compiler_flag="-o out/conftest2.$ac_objext" 14246 # Insert the option either (1) after the last *FLAGS variable, or 14247 # (2) before a word containing "conftest.", or (3) at the end. 14248 # Note that $ac_compile itself does not contain backslashes and begins 14249 # with a dollar sign (not a hyphen), so the echo should work correctly. 14250 lt_compile=`echo "$ac_compile" | $SED \ 14251 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14253 -e 's:$: $lt_compiler_flag:'` 14254 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14255 (eval "$lt_compile" 2>out/conftest.err) 14256 ac_status=$? 14257 cat out/conftest.err >&5 14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14259 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14260 then 14261 # The compiler can only warn and ignore the option if not recognized 14262 # So say no if there are warnings 14263 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14264 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14265 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14266 lt_cv_prog_compiler_c_o_CXX=yes 14267 fi 14268 fi 14269 chmod u+w . 2>&5 14270 $RM conftest* 14271 # SGI C++ compiler will create directory out/ii_files/ for 14272 # template instantiation 14273 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14274 $RM out/* && rmdir out 14275 cd .. 14276 $RM -r conftest 14277 $RM conftest* 14278 14279fi 14280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14281$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14282 14283 14284 14285 14286hard_links="nottested" 14287if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14288 # do not overwrite the value of need_locks provided by the user 14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14290$as_echo_n "checking if we can lock with hard links... " >&6; } 14291 hard_links=yes 14292 $RM conftest* 14293 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14294 touch conftest.a 14295 ln conftest.a conftest.b 2>&5 || hard_links=no 14296 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14298$as_echo "$hard_links" >&6; } 14299 if test "$hard_links" = no; then 14300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14301$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14302 need_locks=warn 14303 fi 14304else 14305 need_locks=no 14306fi 14307 14308 14309 14310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14311$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14312 14313 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14314 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14315 case $host_os in 14316 aix[4-9]*) 14317 # If we're using GNU nm, then we don't want the "-C" option. 14318 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14319 # Also, AIX nm treats weak defined symbols like other global defined 14320 # symbols, whereas GNU nm marks them as "W". 14321 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14322 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' 14323 else 14324 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' 14325 fi 14326 ;; 14327 pw32*) 14328 export_symbols_cmds_CXX="$ltdll_cmds" 14329 ;; 14330 cygwin* | mingw* | cegcc*) 14331 case $cc_basename in 14332 cl*) 14333 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14334 ;; 14335 *) 14336 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 14337 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14338 ;; 14339 esac 14340 ;; 14341 linux* | k*bsd*-gnu | gnu*) 14342 link_all_deplibs_CXX=no 14343 ;; 14344 *) 14345 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14346 ;; 14347 esac 14348 14349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14350$as_echo "$ld_shlibs_CXX" >&6; } 14351test "$ld_shlibs_CXX" = no && can_build_shared=no 14352 14353with_gnu_ld_CXX=$with_gnu_ld 14354 14355 14356 14357 14358 14359 14360# 14361# Do we need to explicitly link libc? 14362# 14363case "x$archive_cmds_need_lc_CXX" in 14364x|xyes) 14365 # Assume -lc should be added 14366 archive_cmds_need_lc_CXX=yes 14367 14368 if test "$enable_shared" = yes && test "$GCC" = yes; then 14369 case $archive_cmds_CXX in 14370 *'~'*) 14371 # FIXME: we may have to deal with multi-command sequences. 14372 ;; 14373 '$CC '*) 14374 # Test whether the compiler implicitly links with -lc since on some 14375 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14376 # to ld, don't add -lc before -lgcc. 14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14378$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14379if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14380 $as_echo_n "(cached) " >&6 14381else 14382 $RM conftest* 14383 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14384 14385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14386 (eval $ac_compile) 2>&5 14387 ac_status=$? 14388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14389 test $ac_status = 0; } 2>conftest.err; then 14390 soname=conftest 14391 lib=conftest 14392 libobjs=conftest.$ac_objext 14393 deplibs= 14394 wl=$lt_prog_compiler_wl_CXX 14395 pic_flag=$lt_prog_compiler_pic_CXX 14396 compiler_flags=-v 14397 linker_flags=-v 14398 verstring= 14399 output_objdir=. 14400 libname=conftest 14401 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14402 allow_undefined_flag_CXX= 14403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14404 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14405 ac_status=$? 14406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14407 test $ac_status = 0; } 14408 then 14409 lt_cv_archive_cmds_need_lc_CXX=no 14410 else 14411 lt_cv_archive_cmds_need_lc_CXX=yes 14412 fi 14413 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14414 else 14415 cat conftest.err 1>&5 14416 fi 14417 $RM conftest* 14418 14419fi 14420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14421$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14422 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14423 ;; 14424 esac 14425 fi 14426 ;; 14427esac 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14491$as_echo_n "checking dynamic linker characteristics... " >&6; } 14492 14493library_names_spec= 14494libname_spec='lib$name' 14495soname_spec= 14496shrext_cmds=".so" 14497postinstall_cmds= 14498postuninstall_cmds= 14499finish_cmds= 14500finish_eval= 14501shlibpath_var= 14502shlibpath_overrides_runpath=unknown 14503version_type=none 14504dynamic_linker="$host_os ld.so" 14505sys_lib_dlsearch_path_spec="/lib /usr/lib" 14506need_lib_prefix=unknown 14507hardcode_into_libs=no 14508 14509# when you set need_version to no, make sure it does not cause -set_version 14510# flags to be left without arguments 14511need_version=unknown 14512 14513case $host_os in 14514aix3*) 14515 version_type=linux # correct to gnu/linux during the next big refactor 14516 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14517 shlibpath_var=LIBPATH 14518 14519 # AIX 3 has no versioning support, so we append a major version to the name. 14520 soname_spec='${libname}${release}${shared_ext}$major' 14521 ;; 14522 14523aix[4-9]*) 14524 version_type=linux # correct to gnu/linux during the next big refactor 14525 need_lib_prefix=no 14526 need_version=no 14527 hardcode_into_libs=yes 14528 if test "$host_cpu" = ia64; then 14529 # AIX 5 supports IA64 14530 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14531 shlibpath_var=LD_LIBRARY_PATH 14532 else 14533 # With GCC up to 2.95.x, collect2 would create an import file 14534 # for dependence libraries. The import file would start with 14535 # the line `#! .'. This would cause the generated library to 14536 # depend on `.', always an invalid library. This was fixed in 14537 # development snapshots of GCC prior to 3.0. 14538 case $host_os in 14539 aix4 | aix4.[01] | aix4.[01].*) 14540 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14541 echo ' yes ' 14542 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14543 : 14544 else 14545 can_build_shared=no 14546 fi 14547 ;; 14548 esac 14549 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14550 # soname into executable. Probably we can add versioning support to 14551 # collect2, so additional links can be useful in future. 14552 if test "$aix_use_runtimelinking" = yes; then 14553 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14554 # instead of lib<name>.a to let people know that these are not 14555 # typical AIX shared libraries. 14556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14557 else 14558 # We preserve .a as extension for shared libraries through AIX4.2 14559 # and later when we are not doing run time linking. 14560 library_names_spec='${libname}${release}.a $libname.a' 14561 soname_spec='${libname}${release}${shared_ext}$major' 14562 fi 14563 shlibpath_var=LIBPATH 14564 fi 14565 ;; 14566 14567amigaos*) 14568 case $host_cpu in 14569 powerpc) 14570 # Since July 2007 AmigaOS4 officially supports .so libraries. 14571 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14573 ;; 14574 m68k) 14575 library_names_spec='$libname.ixlibrary $libname.a' 14576 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14577 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' 14578 ;; 14579 esac 14580 ;; 14581 14582beos*) 14583 library_names_spec='${libname}${shared_ext}' 14584 dynamic_linker="$host_os ld.so" 14585 shlibpath_var=LIBRARY_PATH 14586 ;; 14587 14588bsdi[45]*) 14589 version_type=linux # correct to gnu/linux during the next big refactor 14590 need_version=no 14591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14592 soname_spec='${libname}${release}${shared_ext}$major' 14593 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14594 shlibpath_var=LD_LIBRARY_PATH 14595 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14596 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14597 # the default ld.so.conf also contains /usr/contrib/lib and 14598 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14599 # libtool to hard-code these into programs 14600 ;; 14601 14602cygwin* | mingw* | pw32* | cegcc*) 14603 version_type=windows 14604 shrext_cmds=".dll" 14605 need_version=no 14606 need_lib_prefix=no 14607 14608 case $GCC,$cc_basename in 14609 yes,*) 14610 # gcc 14611 library_names_spec='$libname.dll.a' 14612 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14613 postinstall_cmds='base_file=`basename \${file}`~ 14614 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14615 dldir=$destdir/`dirname \$dlpath`~ 14616 test -d \$dldir || mkdir -p \$dldir~ 14617 $install_prog $dir/$dlname \$dldir/$dlname~ 14618 chmod a+x \$dldir/$dlname~ 14619 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14620 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14621 fi' 14622 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14623 dlpath=$dir/\$dldll~ 14624 $RM \$dlpath' 14625 shlibpath_overrides_runpath=yes 14626 14627 case $host_os in 14628 cygwin*) 14629 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14630 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14631 14632 ;; 14633 mingw* | cegcc*) 14634 # MinGW DLLs use traditional 'lib' prefix 14635 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14636 ;; 14637 pw32*) 14638 # pw32 DLLs use 'pw' prefix rather than 'lib' 14639 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14640 ;; 14641 esac 14642 dynamic_linker='Win32 ld.exe' 14643 ;; 14644 14645 *,cl*) 14646 # Native MSVC 14647 libname_spec='$name' 14648 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14649 library_names_spec='${libname}.dll.lib' 14650 14651 case $build_os in 14652 mingw*) 14653 sys_lib_search_path_spec= 14654 lt_save_ifs=$IFS 14655 IFS=';' 14656 for lt_path in $LIB 14657 do 14658 IFS=$lt_save_ifs 14659 # Let DOS variable expansion print the short 8.3 style file name. 14660 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 14661 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 14662 done 14663 IFS=$lt_save_ifs 14664 # Convert to MSYS style. 14665 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 14666 ;; 14667 cygwin*) 14668 # Convert to unix form, then to dos form, then back to unix form 14669 # but this time dos style (no spaces!) so that the unix form looks 14670 # like /cygdrive/c/PROGRA~1:/cygdr... 14671 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 14672 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 14673 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14674 ;; 14675 *) 14676 sys_lib_search_path_spec="$LIB" 14677 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 14678 # It is most probably a Windows format PATH. 14679 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14680 else 14681 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14682 fi 14683 # FIXME: find the short name or the path components, as spaces are 14684 # common. (e.g. "Program Files" -> "PROGRA~1") 14685 ;; 14686 esac 14687 14688 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14689 postinstall_cmds='base_file=`basename \${file}`~ 14690 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14691 dldir=$destdir/`dirname \$dlpath`~ 14692 test -d \$dldir || mkdir -p \$dldir~ 14693 $install_prog $dir/$dlname \$dldir/$dlname' 14694 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14695 dlpath=$dir/\$dldll~ 14696 $RM \$dlpath' 14697 shlibpath_overrides_runpath=yes 14698 dynamic_linker='Win32 link.exe' 14699 ;; 14700 14701 *) 14702 # Assume MSVC wrapper 14703 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14704 dynamic_linker='Win32 ld.exe' 14705 ;; 14706 esac 14707 # FIXME: first we should search . and the directory the executable is in 14708 shlibpath_var=PATH 14709 ;; 14710 14711darwin* | rhapsody*) 14712 dynamic_linker="$host_os dyld" 14713 version_type=darwin 14714 need_lib_prefix=no 14715 need_version=no 14716 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14717 soname_spec='${libname}${release}${major}$shared_ext' 14718 shlibpath_overrides_runpath=yes 14719 shlibpath_var=DYLD_LIBRARY_PATH 14720 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14721 14722 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14723 ;; 14724 14725dgux*) 14726 version_type=linux # correct to gnu/linux during the next big refactor 14727 need_lib_prefix=no 14728 need_version=no 14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14730 soname_spec='${libname}${release}${shared_ext}$major' 14731 shlibpath_var=LD_LIBRARY_PATH 14732 ;; 14733 14734freebsd* | dragonfly*) 14735 # DragonFly does not have aout. When/if they implement a new 14736 # versioning mechanism, adjust this. 14737 if test -x /usr/bin/objformat; then 14738 objformat=`/usr/bin/objformat` 14739 else 14740 case $host_os in 14741 freebsd[23].*) objformat=aout ;; 14742 *) objformat=elf ;; 14743 esac 14744 fi 14745 version_type=freebsd-$objformat 14746 case $version_type in 14747 freebsd-elf*) 14748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14749 need_version=no 14750 need_lib_prefix=no 14751 ;; 14752 freebsd-*) 14753 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14754 need_version=yes 14755 ;; 14756 esac 14757 shlibpath_var=LD_LIBRARY_PATH 14758 case $host_os in 14759 freebsd2.*) 14760 shlibpath_overrides_runpath=yes 14761 ;; 14762 freebsd3.[01]* | freebsdelf3.[01]*) 14763 shlibpath_overrides_runpath=yes 14764 hardcode_into_libs=yes 14765 ;; 14766 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14767 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14768 shlibpath_overrides_runpath=no 14769 hardcode_into_libs=yes 14770 ;; 14771 *) # from 4.6 on, and DragonFly 14772 shlibpath_overrides_runpath=yes 14773 hardcode_into_libs=yes 14774 ;; 14775 esac 14776 ;; 14777 14778haiku*) 14779 version_type=linux # correct to gnu/linux during the next big refactor 14780 need_lib_prefix=no 14781 need_version=no 14782 dynamic_linker="$host_os runtime_loader" 14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14784 soname_spec='${libname}${release}${shared_ext}$major' 14785 shlibpath_var=LIBRARY_PATH 14786 shlibpath_overrides_runpath=yes 14787 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14788 hardcode_into_libs=yes 14789 ;; 14790 14791hpux9* | hpux10* | hpux11*) 14792 # Give a soname corresponding to the major version so that dld.sl refuses to 14793 # link against other versions. 14794 version_type=sunos 14795 need_lib_prefix=no 14796 need_version=no 14797 case $host_cpu in 14798 ia64*) 14799 shrext_cmds='.so' 14800 hardcode_into_libs=yes 14801 dynamic_linker="$host_os dld.so" 14802 shlibpath_var=LD_LIBRARY_PATH 14803 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14805 soname_spec='${libname}${release}${shared_ext}$major' 14806 if test "X$HPUX_IA64_MODE" = X32; then 14807 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14808 else 14809 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14810 fi 14811 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14812 ;; 14813 hppa*64*) 14814 shrext_cmds='.sl' 14815 hardcode_into_libs=yes 14816 dynamic_linker="$host_os dld.sl" 14817 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14818 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14820 soname_spec='${libname}${release}${shared_ext}$major' 14821 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14822 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14823 ;; 14824 *) 14825 shrext_cmds='.sl' 14826 dynamic_linker="$host_os dld.sl" 14827 shlibpath_var=SHLIB_PATH 14828 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14830 soname_spec='${libname}${release}${shared_ext}$major' 14831 ;; 14832 esac 14833 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14834 postinstall_cmds='chmod 555 $lib' 14835 # or fails outright, so override atomically: 14836 install_override_mode=555 14837 ;; 14838 14839interix[3-9]*) 14840 version_type=linux # correct to gnu/linux during the next big refactor 14841 need_lib_prefix=no 14842 need_version=no 14843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14844 soname_spec='${libname}${release}${shared_ext}$major' 14845 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14846 shlibpath_var=LD_LIBRARY_PATH 14847 shlibpath_overrides_runpath=no 14848 hardcode_into_libs=yes 14849 ;; 14850 14851irix5* | irix6* | nonstopux*) 14852 case $host_os in 14853 nonstopux*) version_type=nonstopux ;; 14854 *) 14855 if test "$lt_cv_prog_gnu_ld" = yes; then 14856 version_type=linux # correct to gnu/linux during the next big refactor 14857 else 14858 version_type=irix 14859 fi ;; 14860 esac 14861 need_lib_prefix=no 14862 need_version=no 14863 soname_spec='${libname}${release}${shared_ext}$major' 14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14865 case $host_os in 14866 irix5* | nonstopux*) 14867 libsuff= shlibsuff= 14868 ;; 14869 *) 14870 case $LD in # libtool.m4 will add one of these switches to LD 14871 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14872 libsuff= shlibsuff= libmagic=32-bit;; 14873 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14874 libsuff=32 shlibsuff=N32 libmagic=N32;; 14875 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14876 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14877 *) libsuff= shlibsuff= libmagic=never-match;; 14878 esac 14879 ;; 14880 esac 14881 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14882 shlibpath_overrides_runpath=no 14883 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14884 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14885 hardcode_into_libs=yes 14886 ;; 14887 14888# No shared lib support for Linux oldld, aout, or coff. 14889linux*oldld* | linux*aout* | linux*coff*) 14890 dynamic_linker=no 14891 ;; 14892 14893# This must be glibc/ELF. 14894linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14895 version_type=linux # correct to gnu/linux during the next big refactor 14896 need_lib_prefix=no 14897 need_version=no 14898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14899 soname_spec='${libname}${release}${shared_ext}$major' 14900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14901 shlibpath_var=LD_LIBRARY_PATH 14902 shlibpath_overrides_runpath=no 14903 14904 # Some binutils ld are patched to set DT_RUNPATH 14905 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 14906 $as_echo_n "(cached) " >&6 14907else 14908 lt_cv_shlibpath_overrides_runpath=no 14909 save_LDFLAGS=$LDFLAGS 14910 save_libdir=$libdir 14911 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14912 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14914/* end confdefs.h. */ 14915 14916int 14917main () 14918{ 14919 14920 ; 14921 return 0; 14922} 14923_ACEOF 14924if ac_fn_cxx_try_link "$LINENO"; then : 14925 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14926 lt_cv_shlibpath_overrides_runpath=yes 14927fi 14928fi 14929rm -f core conftest.err conftest.$ac_objext \ 14930 conftest$ac_exeext conftest.$ac_ext 14931 LDFLAGS=$save_LDFLAGS 14932 libdir=$save_libdir 14933 14934fi 14935 14936 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14937 14938 # This implies no fast_install, which is unacceptable. 14939 # Some rework will be needed to allow for fast_install 14940 # before this can be enabled. 14941 hardcode_into_libs=yes 14942 14943 # Append ld.so.conf contents to the search path 14944 if test -f /etc/ld.so.conf; then 14945 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' ' '` 14946 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14947 fi 14948 14949 # We used to test for /lib/ld.so.1 and disable shared libraries on 14950 # powerpc, because MkLinux only supported shared libraries with the 14951 # GNU dynamic linker. Since this was broken with cross compilers, 14952 # most powerpc-linux boxes support dynamic linking these days and 14953 # people can always --disable-shared, the test was removed, and we 14954 # assume the GNU/Linux dynamic linker is in use. 14955 dynamic_linker='GNU/Linux ld.so' 14956 ;; 14957 14958netbsdelf*-gnu) 14959 version_type=linux 14960 need_lib_prefix=no 14961 need_version=no 14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14963 soname_spec='${libname}${release}${shared_ext}$major' 14964 shlibpath_var=LD_LIBRARY_PATH 14965 shlibpath_overrides_runpath=no 14966 hardcode_into_libs=yes 14967 dynamic_linker='NetBSD ld.elf_so' 14968 ;; 14969 14970netbsd*) 14971 version_type=sunos 14972 need_lib_prefix=no 14973 need_version=no 14974 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14977 dynamic_linker='NetBSD (a.out) ld.so' 14978 else 14979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14980 soname_spec='${libname}${release}${shared_ext}$major' 14981 dynamic_linker='NetBSD ld.elf_so' 14982 fi 14983 shlibpath_var=LD_LIBRARY_PATH 14984 shlibpath_overrides_runpath=yes 14985 hardcode_into_libs=yes 14986 ;; 14987 14988newsos6) 14989 version_type=linux # correct to gnu/linux during the next big refactor 14990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14991 shlibpath_var=LD_LIBRARY_PATH 14992 shlibpath_overrides_runpath=yes 14993 ;; 14994 14995*nto* | *qnx*) 14996 version_type=qnx 14997 need_lib_prefix=no 14998 need_version=no 14999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15000 soname_spec='${libname}${release}${shared_ext}$major' 15001 shlibpath_var=LD_LIBRARY_PATH 15002 shlibpath_overrides_runpath=no 15003 hardcode_into_libs=yes 15004 dynamic_linker='ldqnx.so' 15005 ;; 15006 15007openbsd*) 15008 version_type=sunos 15009 sys_lib_dlsearch_path_spec="/usr/lib" 15010 need_lib_prefix=no 15011 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15012 case $host_os in 15013 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15014 *) need_version=no ;; 15015 esac 15016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15018 shlibpath_var=LD_LIBRARY_PATH 15019 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15020 case $host_os in 15021 openbsd2.[89] | openbsd2.[89].*) 15022 shlibpath_overrides_runpath=no 15023 ;; 15024 *) 15025 shlibpath_overrides_runpath=yes 15026 ;; 15027 esac 15028 else 15029 shlibpath_overrides_runpath=yes 15030 fi 15031 ;; 15032 15033os2*) 15034 libname_spec='$name' 15035 shrext_cmds=".dll" 15036 need_lib_prefix=no 15037 library_names_spec='$libname${shared_ext} $libname.a' 15038 dynamic_linker='OS/2 ld.exe' 15039 shlibpath_var=LIBPATH 15040 ;; 15041 15042osf3* | osf4* | osf5*) 15043 version_type=osf 15044 need_lib_prefix=no 15045 need_version=no 15046 soname_spec='${libname}${release}${shared_ext}$major' 15047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15048 shlibpath_var=LD_LIBRARY_PATH 15049 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15050 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15051 ;; 15052 15053rdos*) 15054 dynamic_linker=no 15055 ;; 15056 15057solaris*) 15058 version_type=linux # correct to gnu/linux during the next big refactor 15059 need_lib_prefix=no 15060 need_version=no 15061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15062 soname_spec='${libname}${release}${shared_ext}$major' 15063 shlibpath_var=LD_LIBRARY_PATH 15064 shlibpath_overrides_runpath=yes 15065 hardcode_into_libs=yes 15066 # ldd complains unless libraries are executable 15067 postinstall_cmds='chmod +x $lib' 15068 ;; 15069 15070sunos4*) 15071 version_type=sunos 15072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15073 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15074 shlibpath_var=LD_LIBRARY_PATH 15075 shlibpath_overrides_runpath=yes 15076 if test "$with_gnu_ld" = yes; then 15077 need_lib_prefix=no 15078 fi 15079 need_version=yes 15080 ;; 15081 15082sysv4 | sysv4.3*) 15083 version_type=linux # correct to gnu/linux during the next big refactor 15084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15085 soname_spec='${libname}${release}${shared_ext}$major' 15086 shlibpath_var=LD_LIBRARY_PATH 15087 case $host_vendor in 15088 sni) 15089 shlibpath_overrides_runpath=no 15090 need_lib_prefix=no 15091 runpath_var=LD_RUN_PATH 15092 ;; 15093 siemens) 15094 need_lib_prefix=no 15095 ;; 15096 motorola) 15097 need_lib_prefix=no 15098 need_version=no 15099 shlibpath_overrides_runpath=no 15100 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15101 ;; 15102 esac 15103 ;; 15104 15105sysv4*MP*) 15106 if test -d /usr/nec ;then 15107 version_type=linux # correct to gnu/linux during the next big refactor 15108 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15109 soname_spec='$libname${shared_ext}.$major' 15110 shlibpath_var=LD_LIBRARY_PATH 15111 fi 15112 ;; 15113 15114sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15115 version_type=freebsd-elf 15116 need_lib_prefix=no 15117 need_version=no 15118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15119 soname_spec='${libname}${release}${shared_ext}$major' 15120 shlibpath_var=LD_LIBRARY_PATH 15121 shlibpath_overrides_runpath=yes 15122 hardcode_into_libs=yes 15123 if test "$with_gnu_ld" = yes; then 15124 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15125 else 15126 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15127 case $host_os in 15128 sco3.2v5*) 15129 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15130 ;; 15131 esac 15132 fi 15133 sys_lib_dlsearch_path_spec='/usr/lib' 15134 ;; 15135 15136tpf*) 15137 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15138 version_type=linux # correct to gnu/linux during the next big refactor 15139 need_lib_prefix=no 15140 need_version=no 15141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15142 shlibpath_var=LD_LIBRARY_PATH 15143 shlibpath_overrides_runpath=no 15144 hardcode_into_libs=yes 15145 ;; 15146 15147uts4*) 15148 version_type=linux # correct to gnu/linux during the next big refactor 15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15150 soname_spec='${libname}${release}${shared_ext}$major' 15151 shlibpath_var=LD_LIBRARY_PATH 15152 ;; 15153 15154*) 15155 dynamic_linker=no 15156 ;; 15157esac 15158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15159$as_echo "$dynamic_linker" >&6; } 15160test "$dynamic_linker" = no && can_build_shared=no 15161 15162variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15163if test "$GCC" = yes; then 15164 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15165fi 15166 15167if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 15168 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 15169fi 15170if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 15171 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 15172fi 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15212$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15213hardcode_action_CXX= 15214if test -n "$hardcode_libdir_flag_spec_CXX" || 15215 test -n "$runpath_var_CXX" || 15216 test "X$hardcode_automatic_CXX" = "Xyes" ; then 15217 15218 # We can hardcode non-existent directories. 15219 if test "$hardcode_direct_CXX" != no && 15220 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15221 # have to relink, otherwise we might link with an installed library 15222 # when we should be linking with a yet-to-be-installed one 15223 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 15224 test "$hardcode_minus_L_CXX" != no; then 15225 # Linking always hardcodes the temporary library directory. 15226 hardcode_action_CXX=relink 15227 else 15228 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15229 hardcode_action_CXX=immediate 15230 fi 15231else 15232 # We cannot hardcode anything, or else we can only hardcode existing 15233 # directories. 15234 hardcode_action_CXX=unsupported 15235fi 15236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15237$as_echo "$hardcode_action_CXX" >&6; } 15238 15239if test "$hardcode_action_CXX" = relink || 15240 test "$inherit_rpath_CXX" = yes; then 15241 # Fast installation is not supported 15242 enable_fast_install=no 15243elif test "$shlibpath_overrides_runpath" = yes || 15244 test "$enable_shared" = no; then 15245 # Fast installation is not necessary 15246 enable_fast_install=needless 15247fi 15248 15249 15250 15251 15252 15253 15254 15255 fi # test -n "$compiler" 15256 15257 CC=$lt_save_CC 15258 CFLAGS=$lt_save_CFLAGS 15259 LDCXX=$LD 15260 LD=$lt_save_LD 15261 GCC=$lt_save_GCC 15262 with_gnu_ld=$lt_save_with_gnu_ld 15263 lt_cv_path_LDCXX=$lt_cv_path_LD 15264 lt_cv_path_LD=$lt_save_path_LD 15265 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15266 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15267fi # test "$_lt_caught_CXX_error" != yes 15268 15269ac_ext=c 15270ac_cpp='$CPP $CPPFLAGS' 15271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15273ac_compiler_gnu=$ac_cv_c_compiler_gnu 15274 15275 15276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5 15277$as_echo_n "checking maximum warning verbosity option... " >&6; } 15278if test -n "$CXX" 15279then 15280 if test "$GXX" = "yes" 15281 then 15282 ac_compile_warnings_opt='-W -Wall' 15283 fi 15284 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt" 15285 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++" 15286fi 15287 15288if test -n "$CC" 15289then 15290 if test "$GCC" = "yes" 15291 then 15292 ac_compile_warnings_opt='-W -Wall' 15293 fi 15294 CFLAGS="$CFLAGS $ac_compile_warnings_opt" 15295 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C" 15296fi 15297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5 15298$as_echo "$ac_compile_warnings_msg" >&6; } 15299unset ac_compile_warnings_msg 15300unset ac_compile_warnings_opt 15301 15302ac_ext=cpp 15303ac_cpp='$CXXCPP $CPPFLAGS' 15304ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15305ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15306ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15307 15308 15309 15310# C API test (capitest) in src/Makefile.am needs per-target flags. 15311 15312 15313 15314# Checks for libraries. 15315MINVER_FLATZEBRA=0.1.7; 15316 15317 15318 15319 15320 15321 15322 15323if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 15324 if test -n "$ac_tool_prefix"; then 15325 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 15326set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 15327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15328$as_echo_n "checking for $ac_word... " >&6; } 15329if ${ac_cv_path_PKG_CONFIG+:} false; then : 15330 $as_echo_n "(cached) " >&6 15331else 15332 case $PKG_CONFIG in 15333 [\\/]* | ?:[\\/]*) 15334 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 15335 ;; 15336 *) 15337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15338for as_dir in $PATH 15339do 15340 IFS=$as_save_IFS 15341 test -z "$as_dir" && as_dir=. 15342 for ac_exec_ext in '' $ac_executable_extensions; do 15343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15344 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15346 break 2 15347 fi 15348done 15349 done 15350IFS=$as_save_IFS 15351 15352 ;; 15353esac 15354fi 15355PKG_CONFIG=$ac_cv_path_PKG_CONFIG 15356if test -n "$PKG_CONFIG"; then 15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 15358$as_echo "$PKG_CONFIG" >&6; } 15359else 15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15361$as_echo "no" >&6; } 15362fi 15363 15364 15365fi 15366if test -z "$ac_cv_path_PKG_CONFIG"; then 15367 ac_pt_PKG_CONFIG=$PKG_CONFIG 15368 # Extract the first word of "pkg-config", so it can be a program name with args. 15369set dummy pkg-config; ac_word=$2 15370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15371$as_echo_n "checking for $ac_word... " >&6; } 15372if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 15373 $as_echo_n "(cached) " >&6 15374else 15375 case $ac_pt_PKG_CONFIG in 15376 [\\/]* | ?:[\\/]*) 15377 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 15378 ;; 15379 *) 15380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15381for as_dir in $PATH 15382do 15383 IFS=$as_save_IFS 15384 test -z "$as_dir" && as_dir=. 15385 for ac_exec_ext in '' $ac_executable_extensions; do 15386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15387 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 15388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15389 break 2 15390 fi 15391done 15392 done 15393IFS=$as_save_IFS 15394 15395 ;; 15396esac 15397fi 15398ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 15399if test -n "$ac_pt_PKG_CONFIG"; then 15400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 15401$as_echo "$ac_pt_PKG_CONFIG" >&6; } 15402else 15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15404$as_echo "no" >&6; } 15405fi 15406 15407 if test "x$ac_pt_PKG_CONFIG" = x; then 15408 PKG_CONFIG="" 15409 else 15410 case $cross_compiling:$ac_tool_warned in 15411yes:) 15412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15414ac_tool_warned=yes ;; 15415esac 15416 PKG_CONFIG=$ac_pt_PKG_CONFIG 15417 fi 15418else 15419 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 15420fi 15421 15422fi 15423if test -n "$PKG_CONFIG"; then 15424 _pkg_min_version=0.9.0 15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 15426$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 15427 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15429$as_echo "yes" >&6; } 15430 else 15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15432$as_echo "no" >&6; } 15433 PKG_CONFIG="" 15434 fi 15435fi 15436 15437pkg_failed=no 15438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLATZEBRA" >&5 15439$as_echo_n "checking for FLATZEBRA... " >&6; } 15440 15441if test -n "$FLATZEBRA_CFLAGS"; then 15442 pkg_cv_FLATZEBRA_CFLAGS="$FLATZEBRA_CFLAGS" 15443 elif test -n "$PKG_CONFIG"; then 15444 if test -n "$PKG_CONFIG" && \ 15445 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flatzebra-0.1 >= \$MINVER_FLATZEBRA\""; } >&5 15446 ($PKG_CONFIG --exists --print-errors "flatzebra-0.1 >= $MINVER_FLATZEBRA") 2>&5 15447 ac_status=$? 15448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15449 test $ac_status = 0; }; then 15450 pkg_cv_FLATZEBRA_CFLAGS=`$PKG_CONFIG --cflags "flatzebra-0.1 >= $MINVER_FLATZEBRA" 2>/dev/null` 15451 test "x$?" != "x0" && pkg_failed=yes 15452else 15453 pkg_failed=yes 15454fi 15455 else 15456 pkg_failed=untried 15457fi 15458if test -n "$FLATZEBRA_LIBS"; then 15459 pkg_cv_FLATZEBRA_LIBS="$FLATZEBRA_LIBS" 15460 elif test -n "$PKG_CONFIG"; then 15461 if test -n "$PKG_CONFIG" && \ 15462 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"flatzebra-0.1 >= \$MINVER_FLATZEBRA\""; } >&5 15463 ($PKG_CONFIG --exists --print-errors "flatzebra-0.1 >= $MINVER_FLATZEBRA") 2>&5 15464 ac_status=$? 15465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15466 test $ac_status = 0; }; then 15467 pkg_cv_FLATZEBRA_LIBS=`$PKG_CONFIG --libs "flatzebra-0.1 >= $MINVER_FLATZEBRA" 2>/dev/null` 15468 test "x$?" != "x0" && pkg_failed=yes 15469else 15470 pkg_failed=yes 15471fi 15472 else 15473 pkg_failed=untried 15474fi 15475 15476 15477 15478if test $pkg_failed = yes; then 15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15480$as_echo "no" >&6; } 15481 15482if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15483 _pkg_short_errors_supported=yes 15484else 15485 _pkg_short_errors_supported=no 15486fi 15487 if test $_pkg_short_errors_supported = yes; then 15488 FLATZEBRA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "flatzebra-0.1 >= $MINVER_FLATZEBRA" 2>&1` 15489 else 15490 FLATZEBRA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "flatzebra-0.1 >= $MINVER_FLATZEBRA" 2>&1` 15491 fi 15492 # Put the nasty error message in config.log where it belongs 15493 echo "$FLATZEBRA_PKG_ERRORS" >&5 15494 15495 as_fn_error $? "Package requirements (flatzebra-0.1 >= $MINVER_FLATZEBRA) were not met: 15496 15497$FLATZEBRA_PKG_ERRORS 15498 15499Consider adjusting the PKG_CONFIG_PATH environment variable if you 15500installed software in a non-standard prefix. 15501 15502Alternatively, you may set the environment variables FLATZEBRA_CFLAGS 15503and FLATZEBRA_LIBS to avoid the need to call pkg-config. 15504See the pkg-config man page for more details." "$LINENO" 5 15505elif test $pkg_failed = untried; then 15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15507$as_echo "no" >&6; } 15508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15510as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 15511is in your PATH or set the PKG_CONFIG environment variable to the full 15512path to pkg-config. 15513 15514Alternatively, you may set the environment variables FLATZEBRA_CFLAGS 15515and FLATZEBRA_LIBS to avoid the need to call pkg-config. 15516See the pkg-config man page for more details. 15517 15518To get pkg-config, see <http://pkg-config.freedesktop.org/>. 15519See \`config.log' for more details" "$LINENO" 5; } 15520else 15521 FLATZEBRA_CFLAGS=$pkg_cv_FLATZEBRA_CFLAGS 15522 FLATZEBRA_LIBS=$pkg_cv_FLATZEBRA_LIBS 15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15524$as_echo "yes" >&6; } 15525 15526fi 15527 15528# Check for getopt_long() but don't fail if it is not available: 15529 15530 15531 ac_fn_cxx_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 15532if test "x$ac_cv_header_getopt_h" = xyes; then : 15533 15534fi 15535 15536 15537 for ac_func in getopt_long 15538do : 15539 ac_fn_cxx_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" 15540if test "x$ac_cv_func_getopt_long" = xyes; then : 15541 cat >>confdefs.h <<_ACEOF 15542#define HAVE_GETOPT_LONG 1 15543_ACEOF 15544 HAVE_GETOPT_LONG=1 15545else 15546 HAVE_GETOPT_LONG=0 15547fi 15548done 15549 15550 if test "$HAVE_GETOPT_LONG" = 1; then 15551 HAVE_GETOPT_LONG_TRUE= 15552 HAVE_GETOPT_LONG_FALSE='#' 15553else 15554 HAVE_GETOPT_LONG_TRUE='#' 15555 HAVE_GETOPT_LONG_FALSE= 15556fi 15557 15558 15559 15560 15561ac_config_files="$ac_config_files Makefile src/Makefile doc/cosmosmash.6 cosmosmash.spec" 15562 15563cat >confcache <<\_ACEOF 15564# This file is a shell script that caches the results of configure 15565# tests run on this system so they can be shared between configure 15566# scripts and configure runs, see configure's option --config-cache. 15567# It is not useful on other systems. If it contains results you don't 15568# want to keep, you may remove or edit it. 15569# 15570# config.status only pays attention to the cache file if you give it 15571# the --recheck option to rerun configure. 15572# 15573# `ac_cv_env_foo' variables (set or unset) will be overridden when 15574# loading this file, other *unset* `ac_cv_foo' will be assigned the 15575# following values. 15576 15577_ACEOF 15578 15579# The following way of writing the cache mishandles newlines in values, 15580# but we know of no workaround that is simple, portable, and efficient. 15581# So, we kill variables containing newlines. 15582# Ultrix sh set writes to stderr and can't be redirected directly, 15583# and sets the high bit in the cache file unless we assign to the vars. 15584( 15585 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15586 eval ac_val=\$$ac_var 15587 case $ac_val in #( 15588 *${as_nl}*) 15589 case $ac_var in #( 15590 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15591$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15592 esac 15593 case $ac_var in #( 15594 _ | IFS | as_nl) ;; #( 15595 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15596 *) { eval $ac_var=; unset $ac_var;} ;; 15597 esac ;; 15598 esac 15599 done 15600 15601 (set) 2>&1 | 15602 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15603 *${as_nl}ac_space=\ *) 15604 # `set' does not quote correctly, so add quotes: double-quote 15605 # substitution turns \\\\ into \\, and sed turns \\ into \. 15606 sed -n \ 15607 "s/'/'\\\\''/g; 15608 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15609 ;; #( 15610 *) 15611 # `set' quotes correctly as required by POSIX, so do not add quotes. 15612 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15613 ;; 15614 esac | 15615 sort 15616) | 15617 sed ' 15618 /^ac_cv_env_/b end 15619 t clear 15620 :clear 15621 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15622 t end 15623 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15624 :end' >>confcache 15625if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15626 if test -w "$cache_file"; then 15627 if test "x$cache_file" != "x/dev/null"; then 15628 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15629$as_echo "$as_me: updating cache $cache_file" >&6;} 15630 if test ! -f "$cache_file" || test -h "$cache_file"; then 15631 cat confcache >"$cache_file" 15632 else 15633 case $cache_file in #( 15634 */* | ?:*) 15635 mv -f confcache "$cache_file"$$ && 15636 mv -f "$cache_file"$$ "$cache_file" ;; #( 15637 *) 15638 mv -f confcache "$cache_file" ;; 15639 esac 15640 fi 15641 fi 15642 else 15643 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15644$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15645 fi 15646fi 15647rm -f confcache 15648 15649test "x$prefix" = xNONE && prefix=$ac_default_prefix 15650# Let make expand exec_prefix. 15651test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15652 15653# Transform confdefs.h into DEFS. 15654# Protect against shell expansion while executing Makefile rules. 15655# Protect against Makefile macro expansion. 15656# 15657# If the first sed substitution is executed (which looks for macros that 15658# take arguments), then branch to the quote section. Otherwise, 15659# look for a macro that doesn't take arguments. 15660ac_script=' 15661:mline 15662/\\$/{ 15663 N 15664 s,\\\n,, 15665 b mline 15666} 15667t clear 15668:clear 15669s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 15670t quote 15671s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 15672t quote 15673b any 15674:quote 15675s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 15676s/\[/\\&/g 15677s/\]/\\&/g 15678s/\$/$$/g 15679H 15680:any 15681${ 15682 g 15683 s/^\n// 15684 s/\n/ /g 15685 p 15686} 15687' 15688DEFS=`sed -n "$ac_script" confdefs.h` 15689 15690 15691ac_libobjs= 15692ac_ltlibobjs= 15693U= 15694for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15695 # 1. Remove the extension, and $U if already installed. 15696 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15697 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15698 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15699 # will be set to the directory where LIBOBJS objects are built. 15700 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15701 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15702done 15703LIBOBJS=$ac_libobjs 15704 15705LTLIBOBJS=$ac_ltlibobjs 15706 15707 15708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 15709$as_echo_n "checking that generated files are newer than configure... " >&6; } 15710 if test -n "$am_sleep_pid"; then 15711 # Hide warnings about reused PIDs. 15712 wait $am_sleep_pid 2>/dev/null 15713 fi 15714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 15715$as_echo "done" >&6; } 15716 if test -n "$EXEEXT"; then 15717 am__EXEEXT_TRUE= 15718 am__EXEEXT_FALSE='#' 15719else 15720 am__EXEEXT_TRUE='#' 15721 am__EXEEXT_FALSE= 15722fi 15723 15724if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15725 as_fn_error $? "conditional \"AMDEP\" was never defined. 15726Usually this means the macro was only invoked conditionally." "$LINENO" 5 15727fi 15728if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15729 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15730Usually this means the macro was only invoked conditionally." "$LINENO" 5 15731fi 15732if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 15733 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 15734Usually this means the macro was only invoked conditionally." "$LINENO" 5 15735fi 15736if test -z "${HAVE_GETOPT_LONG_TRUE}" && test -z "${HAVE_GETOPT_LONG_FALSE}"; then 15737 as_fn_error $? "conditional \"HAVE_GETOPT_LONG\" was never defined. 15738Usually this means the macro was only invoked conditionally." "$LINENO" 5 15739fi 15740 15741: "${CONFIG_STATUS=./config.status}" 15742ac_write_fail=0 15743ac_clean_files_save=$ac_clean_files 15744ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15745{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15746$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15747as_write_fail=0 15748cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15749#! $SHELL 15750# Generated by $as_me. 15751# Run this file to recreate the current configuration. 15752# Compiler output produced by configure, useful for debugging 15753# configure, is in config.log if it exists. 15754 15755debug=false 15756ac_cs_recheck=false 15757ac_cs_silent=false 15758 15759SHELL=\${CONFIG_SHELL-$SHELL} 15760export SHELL 15761_ASEOF 15762cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15763## -------------------- ## 15764## M4sh Initialization. ## 15765## -------------------- ## 15766 15767# Be more Bourne compatible 15768DUALCASE=1; export DUALCASE # for MKS sh 15769if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15770 emulate sh 15771 NULLCMD=: 15772 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15773 # is contrary to our usage. Disable this feature. 15774 alias -g '${1+"$@"}'='"$@"' 15775 setopt NO_GLOB_SUBST 15776else 15777 case `(set -o) 2>/dev/null` in #( 15778 *posix*) : 15779 set -o posix ;; #( 15780 *) : 15781 ;; 15782esac 15783fi 15784 15785 15786as_nl=' 15787' 15788export as_nl 15789# Printing a long string crashes Solaris 7 /usr/bin/printf. 15790as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15791as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15792as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15793# Prefer a ksh shell builtin over an external printf program on Solaris, 15794# but without wasting forks for bash or zsh. 15795if test -z "$BASH_VERSION$ZSH_VERSION" \ 15796 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15797 as_echo='print -r --' 15798 as_echo_n='print -rn --' 15799elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15800 as_echo='printf %s\n' 15801 as_echo_n='printf %s' 15802else 15803 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15804 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15805 as_echo_n='/usr/ucb/echo -n' 15806 else 15807 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15808 as_echo_n_body='eval 15809 arg=$1; 15810 case $arg in #( 15811 *"$as_nl"*) 15812 expr "X$arg" : "X\\(.*\\)$as_nl"; 15813 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15814 esac; 15815 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15816 ' 15817 export as_echo_n_body 15818 as_echo_n='sh -c $as_echo_n_body as_echo' 15819 fi 15820 export as_echo_body 15821 as_echo='sh -c $as_echo_body as_echo' 15822fi 15823 15824# The user is always right. 15825if test "${PATH_SEPARATOR+set}" != set; then 15826 PATH_SEPARATOR=: 15827 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15828 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15829 PATH_SEPARATOR=';' 15830 } 15831fi 15832 15833 15834# IFS 15835# We need space, tab and new line, in precisely that order. Quoting is 15836# there to prevent editors from complaining about space-tab. 15837# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15838# splitting by setting IFS to empty value.) 15839IFS=" "" $as_nl" 15840 15841# Find who we are. Look in the path if we contain no directory separator. 15842as_myself= 15843case $0 in #(( 15844 *[\\/]* ) as_myself=$0 ;; 15845 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15846for as_dir in $PATH 15847do 15848 IFS=$as_save_IFS 15849 test -z "$as_dir" && as_dir=. 15850 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15851 done 15852IFS=$as_save_IFS 15853 15854 ;; 15855esac 15856# We did not find ourselves, most probably we were run as `sh COMMAND' 15857# in which case we are not to be found in the path. 15858if test "x$as_myself" = x; then 15859 as_myself=$0 15860fi 15861if test ! -f "$as_myself"; then 15862 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15863 exit 1 15864fi 15865 15866# Unset variables that we do not need and which cause bugs (e.g. in 15867# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15868# suppresses any "Segmentation fault" message there. '((' could 15869# trigger a bug in pdksh 5.2.14. 15870for as_var in BASH_ENV ENV MAIL MAILPATH 15871do eval test x\${$as_var+set} = xset \ 15872 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15873done 15874PS1='$ ' 15875PS2='> ' 15876PS4='+ ' 15877 15878# NLS nuisances. 15879LC_ALL=C 15880export LC_ALL 15881LANGUAGE=C 15882export LANGUAGE 15883 15884# CDPATH. 15885(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15886 15887 15888# as_fn_error STATUS ERROR [LINENO LOG_FD] 15889# ---------------------------------------- 15890# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15891# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15892# script with STATUS, using 1 if that was 0. 15893as_fn_error () 15894{ 15895 as_status=$1; test $as_status -eq 0 && as_status=1 15896 if test "$4"; then 15897 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15898 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15899 fi 15900 $as_echo "$as_me: error: $2" >&2 15901 as_fn_exit $as_status 15902} # as_fn_error 15903 15904 15905# as_fn_set_status STATUS 15906# ----------------------- 15907# Set $? to STATUS, without forking. 15908as_fn_set_status () 15909{ 15910 return $1 15911} # as_fn_set_status 15912 15913# as_fn_exit STATUS 15914# ----------------- 15915# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15916as_fn_exit () 15917{ 15918 set +e 15919 as_fn_set_status $1 15920 exit $1 15921} # as_fn_exit 15922 15923# as_fn_unset VAR 15924# --------------- 15925# Portably unset VAR. 15926as_fn_unset () 15927{ 15928 { eval $1=; unset $1;} 15929} 15930as_unset=as_fn_unset 15931# as_fn_append VAR VALUE 15932# ---------------------- 15933# Append the text in VALUE to the end of the definition contained in VAR. Take 15934# advantage of any shell optimizations that allow amortized linear growth over 15935# repeated appends, instead of the typical quadratic growth present in naive 15936# implementations. 15937if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15938 eval 'as_fn_append () 15939 { 15940 eval $1+=\$2 15941 }' 15942else 15943 as_fn_append () 15944 { 15945 eval $1=\$$1\$2 15946 } 15947fi # as_fn_append 15948 15949# as_fn_arith ARG... 15950# ------------------ 15951# Perform arithmetic evaluation on the ARGs, and store the result in the 15952# global $as_val. Take advantage of shells that can avoid forks. The arguments 15953# must be portable across $(()) and expr. 15954if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15955 eval 'as_fn_arith () 15956 { 15957 as_val=$(( $* )) 15958 }' 15959else 15960 as_fn_arith () 15961 { 15962 as_val=`expr "$@" || test $? -eq 1` 15963 } 15964fi # as_fn_arith 15965 15966 15967if expr a : '\(a\)' >/dev/null 2>&1 && 15968 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15969 as_expr=expr 15970else 15971 as_expr=false 15972fi 15973 15974if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15975 as_basename=basename 15976else 15977 as_basename=false 15978fi 15979 15980if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15981 as_dirname=dirname 15982else 15983 as_dirname=false 15984fi 15985 15986as_me=`$as_basename -- "$0" || 15987$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15988 X"$0" : 'X\(//\)$' \| \ 15989 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15990$as_echo X/"$0" | 15991 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15992 s//\1/ 15993 q 15994 } 15995 /^X\/\(\/\/\)$/{ 15996 s//\1/ 15997 q 15998 } 15999 /^X\/\(\/\).*/{ 16000 s//\1/ 16001 q 16002 } 16003 s/.*/./; q'` 16004 16005# Avoid depending upon Character Ranges. 16006as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16007as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16008as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16009as_cr_digits='0123456789' 16010as_cr_alnum=$as_cr_Letters$as_cr_digits 16011 16012ECHO_C= ECHO_N= ECHO_T= 16013case `echo -n x` in #((((( 16014-n*) 16015 case `echo 'xy\c'` in 16016 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16017 xy) ECHO_C='\c';; 16018 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16019 ECHO_T=' ';; 16020 esac;; 16021*) 16022 ECHO_N='-n';; 16023esac 16024 16025rm -f conf$$ conf$$.exe conf$$.file 16026if test -d conf$$.dir; then 16027 rm -f conf$$.dir/conf$$.file 16028else 16029 rm -f conf$$.dir 16030 mkdir conf$$.dir 2>/dev/null 16031fi 16032if (echo >conf$$.file) 2>/dev/null; then 16033 if ln -s conf$$.file conf$$ 2>/dev/null; then 16034 as_ln_s='ln -s' 16035 # ... but there are two gotchas: 16036 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16037 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16038 # In both cases, we have to default to `cp -pR'. 16039 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16040 as_ln_s='cp -pR' 16041 elif ln conf$$.file conf$$ 2>/dev/null; then 16042 as_ln_s=ln 16043 else 16044 as_ln_s='cp -pR' 16045 fi 16046else 16047 as_ln_s='cp -pR' 16048fi 16049rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16050rmdir conf$$.dir 2>/dev/null 16051 16052 16053# as_fn_mkdir_p 16054# ------------- 16055# Create "$as_dir" as a directory, including parents if necessary. 16056as_fn_mkdir_p () 16057{ 16058 16059 case $as_dir in #( 16060 -*) as_dir=./$as_dir;; 16061 esac 16062 test -d "$as_dir" || eval $as_mkdir_p || { 16063 as_dirs= 16064 while :; do 16065 case $as_dir in #( 16066 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16067 *) as_qdir=$as_dir;; 16068 esac 16069 as_dirs="'$as_qdir' $as_dirs" 16070 as_dir=`$as_dirname -- "$as_dir" || 16071$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16072 X"$as_dir" : 'X\(//\)[^/]' \| \ 16073 X"$as_dir" : 'X\(//\)$' \| \ 16074 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16075$as_echo X"$as_dir" | 16076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16077 s//\1/ 16078 q 16079 } 16080 /^X\(\/\/\)[^/].*/{ 16081 s//\1/ 16082 q 16083 } 16084 /^X\(\/\/\)$/{ 16085 s//\1/ 16086 q 16087 } 16088 /^X\(\/\).*/{ 16089 s//\1/ 16090 q 16091 } 16092 s/.*/./; q'` 16093 test -d "$as_dir" && break 16094 done 16095 test -z "$as_dirs" || eval "mkdir $as_dirs" 16096 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16097 16098 16099} # as_fn_mkdir_p 16100if mkdir -p . 2>/dev/null; then 16101 as_mkdir_p='mkdir -p "$as_dir"' 16102else 16103 test -d ./-p && rmdir ./-p 16104 as_mkdir_p=false 16105fi 16106 16107 16108# as_fn_executable_p FILE 16109# ----------------------- 16110# Test if FILE is an executable regular file. 16111as_fn_executable_p () 16112{ 16113 test -f "$1" && test -x "$1" 16114} # as_fn_executable_p 16115as_test_x='test -x' 16116as_executable_p=as_fn_executable_p 16117 16118# Sed expression to map a string onto a valid CPP name. 16119as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16120 16121# Sed expression to map a string onto a valid variable name. 16122as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16123 16124 16125exec 6>&1 16126## ----------------------------------- ## 16127## Main body of $CONFIG_STATUS script. ## 16128## ----------------------------------- ## 16129_ASEOF 16130test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 16131 16132cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16133# Save the log message, to keep $0 and so on meaningful, and to 16134# report actual input values of CONFIG_FILES etc. instead of their 16135# values after options handling. 16136ac_log=" 16137This file was extended by cosmosmash $as_me 1.4.8, which was 16138generated by GNU Autoconf 2.69. Invocation command line was 16139 16140 CONFIG_FILES = $CONFIG_FILES 16141 CONFIG_HEADERS = $CONFIG_HEADERS 16142 CONFIG_LINKS = $CONFIG_LINKS 16143 CONFIG_COMMANDS = $CONFIG_COMMANDS 16144 $ $0 $@ 16145 16146on `(hostname || uname -n) 2>/dev/null | sed 1q` 16147" 16148 16149_ACEOF 16150 16151case $ac_config_files in *" 16152"*) set x $ac_config_files; shift; ac_config_files=$*;; 16153esac 16154 16155 16156 16157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16158# Files that config.status was made for. 16159config_files="$ac_config_files" 16160config_commands="$ac_config_commands" 16161 16162_ACEOF 16163 16164cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16165ac_cs_usage="\ 16166\`$as_me' instantiates files and other configuration actions 16167from templates according to the current configuration. Unless the files 16168and actions are specified as TAGs, all are instantiated by default. 16169 16170Usage: $0 [OPTION]... [TAG]... 16171 16172 -h, --help print this help, then exit 16173 -V, --version print version number and configuration settings, then exit 16174 --config print configuration, then exit 16175 -q, --quiet, --silent 16176 do not print progress messages 16177 -d, --debug don't remove temporary files 16178 --recheck update $as_me by reconfiguring in the same conditions 16179 --file=FILE[:TEMPLATE] 16180 instantiate the configuration file FILE 16181 16182Configuration files: 16183$config_files 16184 16185Configuration commands: 16186$config_commands 16187 16188Report bugs to the package provider." 16189 16190_ACEOF 16191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16192ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16193ac_cs_version="\\ 16194cosmosmash config.status 1.4.8 16195configured by $0, generated by GNU Autoconf 2.69, 16196 with options \\"\$ac_cs_config\\" 16197 16198Copyright (C) 2012 Free Software Foundation, Inc. 16199This config.status script is free software; the Free Software Foundation 16200gives unlimited permission to copy, distribute and modify it." 16201 16202ac_pwd='$ac_pwd' 16203srcdir='$srcdir' 16204INSTALL='$INSTALL' 16205MKDIR_P='$MKDIR_P' 16206AWK='$AWK' 16207test -n "\$AWK" || AWK=awk 16208_ACEOF 16209 16210cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16211# The default lists apply if the user does not specify any file. 16212ac_need_defaults=: 16213while test $# != 0 16214do 16215 case $1 in 16216 --*=?*) 16217 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16218 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16219 ac_shift=: 16220 ;; 16221 --*=) 16222 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16223 ac_optarg= 16224 ac_shift=: 16225 ;; 16226 *) 16227 ac_option=$1 16228 ac_optarg=$2 16229 ac_shift=shift 16230 ;; 16231 esac 16232 16233 case $ac_option in 16234 # Handling of the options. 16235 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16236 ac_cs_recheck=: ;; 16237 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16238 $as_echo "$ac_cs_version"; exit ;; 16239 --config | --confi | --conf | --con | --co | --c ) 16240 $as_echo "$ac_cs_config"; exit ;; 16241 --debug | --debu | --deb | --de | --d | -d ) 16242 debug=: ;; 16243 --file | --fil | --fi | --f ) 16244 $ac_shift 16245 case $ac_optarg in 16246 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16247 '') as_fn_error $? "missing file argument" ;; 16248 esac 16249 as_fn_append CONFIG_FILES " '$ac_optarg'" 16250 ac_need_defaults=false;; 16251 --he | --h | --help | --hel | -h ) 16252 $as_echo "$ac_cs_usage"; exit ;; 16253 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16254 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16255 ac_cs_silent=: ;; 16256 16257 # This is an error. 16258 -*) as_fn_error $? "unrecognized option: \`$1' 16259Try \`$0 --help' for more information." ;; 16260 16261 *) as_fn_append ac_config_targets " $1" 16262 ac_need_defaults=false ;; 16263 16264 esac 16265 shift 16266done 16267 16268ac_configure_extra_args= 16269 16270if $ac_cs_silent; then 16271 exec 6>/dev/null 16272 ac_configure_extra_args="$ac_configure_extra_args --silent" 16273fi 16274 16275_ACEOF 16276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16277if \$ac_cs_recheck; then 16278 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16279 shift 16280 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16281 CONFIG_SHELL='$SHELL' 16282 export CONFIG_SHELL 16283 exec "\$@" 16284fi 16285 16286_ACEOF 16287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16288exec 5>>config.log 16289{ 16290 echo 16291 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16292## Running $as_me. ## 16293_ASBOX 16294 $as_echo "$ac_log" 16295} >&5 16296 16297_ACEOF 16298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16299# 16300# INIT-COMMANDS 16301# 16302AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 16303 16304 16305# The HP-UX ksh and POSIX shell print the target directory to stdout 16306# if CDPATH is set. 16307(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16308 16309sed_quote_subst='$sed_quote_subst' 16310double_quote_subst='$double_quote_subst' 16311delay_variable_subst='$delay_variable_subst' 16312enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 16313macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 16314macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 16315enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 16316pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 16317enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 16318SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 16319ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 16320PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 16321host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 16322host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 16323host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 16324build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 16325build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 16326build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 16327SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 16328Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 16329GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 16330EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 16331FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 16332LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 16333NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 16334LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 16335max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 16336ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 16337exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 16338lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 16339lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 16340lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 16341lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 16342lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 16343reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 16344reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 16345OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 16346deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 16347file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 16348file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 16349want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 16350DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 16351sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 16352AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 16353AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 16354archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 16355STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 16356RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 16357old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16358old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16359old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 16360lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 16361CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 16362CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 16363compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 16364GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 16365lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 16366lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 16367lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 16368lt_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"`' 16369nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 16370lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 16371objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 16372MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 16373lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 16374lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 16375lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 16376lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 16377lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 16378need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 16379MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 16380DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 16381NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 16382LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 16383OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 16384OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 16385libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 16386shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 16387extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16388archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 16389enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 16390export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 16391whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 16392compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 16393old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 16394old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 16395archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 16396archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16397module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 16398module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 16399with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 16400allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 16401no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 16402hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 16403hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 16404hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 16405hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 16406hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 16407hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 16408hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 16409inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 16410link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 16411always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 16412export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 16413exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 16414include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 16415prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 16416postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 16417file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 16418variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 16419need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 16420need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 16421version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 16422runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 16423shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 16424shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 16425libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 16426library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 16427soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 16428install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 16429postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 16430postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 16431finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 16432finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 16433hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 16434sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 16435sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 16436hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 16437enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 16438enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 16439enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 16440old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 16441striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 16442compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 16443predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 16444postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 16445predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 16446postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 16447compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 16448LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 16449reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 16450reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16451old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16452compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 16453GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 16454lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 16455lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 16456lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 16457lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 16458lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 16459archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 16460enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 16461export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16462whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16463compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 16464old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16465old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16466archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16467archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16468module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16469module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16470with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 16471allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16472no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 16473hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 16474hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 16475hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 16476hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 16477hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 16478hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 16479hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 16480inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 16481link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 16482always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 16483export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16484exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 16485include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 16486prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16487postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 16488file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 16489hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 16490compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 16491predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 16492postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 16493predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 16494postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 16495compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 16496 16497LTCC='$LTCC' 16498LTCFLAGS='$LTCFLAGS' 16499compiler='$compiler_DEFAULT' 16500 16501# A function that is used when there is no print builtin or printf. 16502func_fallback_echo () 16503{ 16504 eval 'cat <<_LTECHO_EOF 16505\$1 16506_LTECHO_EOF' 16507} 16508 16509# Quote evaled strings. 16510for var in SHELL \ 16511ECHO \ 16512PATH_SEPARATOR \ 16513SED \ 16514GREP \ 16515EGREP \ 16516FGREP \ 16517LD \ 16518NM \ 16519LN_S \ 16520lt_SP2NL \ 16521lt_NL2SP \ 16522reload_flag \ 16523OBJDUMP \ 16524deplibs_check_method \ 16525file_magic_cmd \ 16526file_magic_glob \ 16527want_nocaseglob \ 16528DLLTOOL \ 16529sharedlib_from_linklib_cmd \ 16530AR \ 16531AR_FLAGS \ 16532archiver_list_spec \ 16533STRIP \ 16534RANLIB \ 16535CC \ 16536CFLAGS \ 16537compiler \ 16538lt_cv_sys_global_symbol_pipe \ 16539lt_cv_sys_global_symbol_to_cdecl \ 16540lt_cv_sys_global_symbol_to_c_name_address \ 16541lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 16542nm_file_list_spec \ 16543lt_prog_compiler_no_builtin_flag \ 16544lt_prog_compiler_pic \ 16545lt_prog_compiler_wl \ 16546lt_prog_compiler_static \ 16547lt_cv_prog_compiler_c_o \ 16548need_locks \ 16549MANIFEST_TOOL \ 16550DSYMUTIL \ 16551NMEDIT \ 16552LIPO \ 16553OTOOL \ 16554OTOOL64 \ 16555shrext_cmds \ 16556export_dynamic_flag_spec \ 16557whole_archive_flag_spec \ 16558compiler_needs_object \ 16559with_gnu_ld \ 16560allow_undefined_flag \ 16561no_undefined_flag \ 16562hardcode_libdir_flag_spec \ 16563hardcode_libdir_separator \ 16564exclude_expsyms \ 16565include_expsyms \ 16566file_list_spec \ 16567variables_saved_for_relink \ 16568libname_spec \ 16569library_names_spec \ 16570soname_spec \ 16571install_override_mode \ 16572finish_eval \ 16573old_striplib \ 16574striplib \ 16575compiler_lib_search_dirs \ 16576predep_objects \ 16577postdep_objects \ 16578predeps \ 16579postdeps \ 16580compiler_lib_search_path \ 16581LD_CXX \ 16582reload_flag_CXX \ 16583compiler_CXX \ 16584lt_prog_compiler_no_builtin_flag_CXX \ 16585lt_prog_compiler_pic_CXX \ 16586lt_prog_compiler_wl_CXX \ 16587lt_prog_compiler_static_CXX \ 16588lt_cv_prog_compiler_c_o_CXX \ 16589export_dynamic_flag_spec_CXX \ 16590whole_archive_flag_spec_CXX \ 16591compiler_needs_object_CXX \ 16592with_gnu_ld_CXX \ 16593allow_undefined_flag_CXX \ 16594no_undefined_flag_CXX \ 16595hardcode_libdir_flag_spec_CXX \ 16596hardcode_libdir_separator_CXX \ 16597exclude_expsyms_CXX \ 16598include_expsyms_CXX \ 16599file_list_spec_CXX \ 16600compiler_lib_search_dirs_CXX \ 16601predep_objects_CXX \ 16602postdep_objects_CXX \ 16603predeps_CXX \ 16604postdeps_CXX \ 16605compiler_lib_search_path_CXX; do 16606 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16607 *[\\\\\\\`\\"\\\$]*) 16608 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 16609 ;; 16610 *) 16611 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16612 ;; 16613 esac 16614done 16615 16616# Double-quote double-evaled strings. 16617for var in reload_cmds \ 16618old_postinstall_cmds \ 16619old_postuninstall_cmds \ 16620old_archive_cmds \ 16621extract_expsyms_cmds \ 16622old_archive_from_new_cmds \ 16623old_archive_from_expsyms_cmds \ 16624archive_cmds \ 16625archive_expsym_cmds \ 16626module_cmds \ 16627module_expsym_cmds \ 16628export_symbols_cmds \ 16629prelink_cmds \ 16630postlink_cmds \ 16631postinstall_cmds \ 16632postuninstall_cmds \ 16633finish_cmds \ 16634sys_lib_search_path_spec \ 16635sys_lib_dlsearch_path_spec \ 16636reload_cmds_CXX \ 16637old_archive_cmds_CXX \ 16638old_archive_from_new_cmds_CXX \ 16639old_archive_from_expsyms_cmds_CXX \ 16640archive_cmds_CXX \ 16641archive_expsym_cmds_CXX \ 16642module_cmds_CXX \ 16643module_expsym_cmds_CXX \ 16644export_symbols_cmds_CXX \ 16645prelink_cmds_CXX \ 16646postlink_cmds_CXX; do 16647 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16648 *[\\\\\\\`\\"\\\$]*) 16649 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16650 ;; 16651 *) 16652 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16653 ;; 16654 esac 16655done 16656 16657ac_aux_dir='$ac_aux_dir' 16658xsi_shell='$xsi_shell' 16659lt_shell_append='$lt_shell_append' 16660 16661# See if we are running on zsh, and set the options which allow our 16662# commands through without removal of \ escapes INIT. 16663if test -n "\${ZSH_VERSION+set}" ; then 16664 setopt NO_GLOB_SUBST 16665fi 16666 16667 16668 PACKAGE='$PACKAGE' 16669 VERSION='$VERSION' 16670 TIMESTAMP='$TIMESTAMP' 16671 RM='$RM' 16672 ofile='$ofile' 16673 16674 16675 16676 16677 16678 16679_ACEOF 16680 16681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16682 16683# Handling of arguments. 16684for ac_config_target in $ac_config_targets 16685do 16686 case $ac_config_target in 16687 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16688 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16689 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16690 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 16691 "doc/cosmosmash.6") CONFIG_FILES="$CONFIG_FILES doc/cosmosmash.6" ;; 16692 "cosmosmash.spec") CONFIG_FILES="$CONFIG_FILES cosmosmash.spec" ;; 16693 16694 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16695 esac 16696done 16697 16698 16699# If the user did not use the arguments to specify the items to instantiate, 16700# then the envvar interface is used. Set only those that are not. 16701# We use the long form for the default assignment because of an extremely 16702# bizarre bug on SunOS 4.1.3. 16703if $ac_need_defaults; then 16704 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16705 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16706fi 16707 16708# Have a temporary directory for convenience. Make it in the build tree 16709# simply because there is no reason against having it here, and in addition, 16710# creating and moving files from /tmp can sometimes cause problems. 16711# Hook for its removal unless debugging. 16712# Note that there is a small window in which the directory will not be cleaned: 16713# after its creation but before its name has been assigned to `$tmp'. 16714$debug || 16715{ 16716 tmp= ac_tmp= 16717 trap 'exit_status=$? 16718 : "${ac_tmp:=$tmp}" 16719 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16720' 0 16721 trap 'as_fn_exit 1' 1 2 13 15 16722} 16723# Create a (secure) tmp directory for tmp files. 16724 16725{ 16726 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16727 test -d "$tmp" 16728} || 16729{ 16730 tmp=./conf$$-$RANDOM 16731 (umask 077 && mkdir "$tmp") 16732} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16733ac_tmp=$tmp 16734 16735# Set up the scripts for CONFIG_FILES section. 16736# No need to generate them if there are no CONFIG_FILES. 16737# This happens for instance with `./config.status config.h'. 16738if test -n "$CONFIG_FILES"; then 16739 16740 16741ac_cr=`echo X | tr X '\015'` 16742# On cygwin, bash can eat \r inside `` if the user requested igncr. 16743# But we know of no other shell where ac_cr would be empty at this 16744# point, so we can use a bashism as a fallback. 16745if test "x$ac_cr" = x; then 16746 eval ac_cr=\$\'\\r\' 16747fi 16748ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16749if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16750 ac_cs_awk_cr='\\r' 16751else 16752 ac_cs_awk_cr=$ac_cr 16753fi 16754 16755echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16756_ACEOF 16757 16758 16759{ 16760 echo "cat >conf$$subs.awk <<_ACEOF" && 16761 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16762 echo "_ACEOF" 16763} >conf$$subs.sh || 16764 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16765ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16766ac_delim='%!_!# ' 16767for ac_last_try in false false false false false :; do 16768 . ./conf$$subs.sh || 16769 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16770 16771 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16772 if test $ac_delim_n = $ac_delim_num; then 16773 break 16774 elif $ac_last_try; then 16775 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16776 else 16777 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16778 fi 16779done 16780rm -f conf$$subs.sh 16781 16782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16783cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16784_ACEOF 16785sed -n ' 16786h 16787s/^/S["/; s/!.*/"]=/ 16788p 16789g 16790s/^[^!]*!// 16791:repl 16792t repl 16793s/'"$ac_delim"'$// 16794t delim 16795:nl 16796h 16797s/\(.\{148\}\)..*/\1/ 16798t more1 16799s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16800p 16801n 16802b repl 16803:more1 16804s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16805p 16806g 16807s/.\{148\}// 16808t nl 16809:delim 16810h 16811s/\(.\{148\}\)..*/\1/ 16812t more2 16813s/["\\]/\\&/g; s/^/"/; s/$/"/ 16814p 16815b 16816:more2 16817s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16818p 16819g 16820s/.\{148\}// 16821t delim 16822' <conf$$subs.awk | sed ' 16823/^[^""]/{ 16824 N 16825 s/\n// 16826} 16827' >>$CONFIG_STATUS || ac_write_fail=1 16828rm -f conf$$subs.awk 16829cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16830_ACAWK 16831cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16832 for (key in S) S_is_set[key] = 1 16833 FS = "" 16834 16835} 16836{ 16837 line = $ 0 16838 nfields = split(line, field, "@") 16839 substed = 0 16840 len = length(field[1]) 16841 for (i = 2; i < nfields; i++) { 16842 key = field[i] 16843 keylen = length(key) 16844 if (S_is_set[key]) { 16845 value = S[key] 16846 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16847 len += length(value) + length(field[++i]) 16848 substed = 1 16849 } else 16850 len += 1 + keylen 16851 } 16852 16853 print line 16854} 16855 16856_ACAWK 16857_ACEOF 16858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16859if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16860 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16861else 16862 cat 16863fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16864 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16865_ACEOF 16866 16867# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16868# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16869# trailing colons and then remove the whole line if VPATH becomes empty 16870# (actually we leave an empty line to preserve line numbers). 16871if test "x$srcdir" = x.; then 16872 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16873h 16874s/// 16875s/^/:/ 16876s/[ ]*$/:/ 16877s/:\$(srcdir):/:/g 16878s/:\${srcdir}:/:/g 16879s/:@srcdir@:/:/g 16880s/^:*// 16881s/:*$// 16882x 16883s/\(=[ ]*\).*/\1/ 16884G 16885s/\n// 16886s/^[^=]*=[ ]*$// 16887}' 16888fi 16889 16890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16891fi # test -n "$CONFIG_FILES" 16892 16893 16894eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 16895shift 16896for ac_tag 16897do 16898 case $ac_tag in 16899 :[FHLC]) ac_mode=$ac_tag; continue;; 16900 esac 16901 case $ac_mode$ac_tag in 16902 :[FHL]*:*);; 16903 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16904 :[FH]-) ac_tag=-:-;; 16905 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16906 esac 16907 ac_save_IFS=$IFS 16908 IFS=: 16909 set x $ac_tag 16910 IFS=$ac_save_IFS 16911 shift 16912 ac_file=$1 16913 shift 16914 16915 case $ac_mode in 16916 :L) ac_source=$1;; 16917 :[FH]) 16918 ac_file_inputs= 16919 for ac_f 16920 do 16921 case $ac_f in 16922 -) ac_f="$ac_tmp/stdin";; 16923 *) # Look for the file first in the build tree, then in the source tree 16924 # (if the path is not absolute). The absolute path cannot be DOS-style, 16925 # because $ac_f cannot contain `:'. 16926 test -f "$ac_f" || 16927 case $ac_f in 16928 [\\/$]*) false;; 16929 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16930 esac || 16931 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16932 esac 16933 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16934 as_fn_append ac_file_inputs " '$ac_f'" 16935 done 16936 16937 # Let's still pretend it is `configure' which instantiates (i.e., don't 16938 # use $as_me), people would be surprised to read: 16939 # /* config.h. Generated by config.status. */ 16940 configure_input='Generated from '` 16941 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16942 `' by configure.' 16943 if test x"$ac_file" != x-; then 16944 configure_input="$ac_file. $configure_input" 16945 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16946$as_echo "$as_me: creating $ac_file" >&6;} 16947 fi 16948 # Neutralize special characters interpreted by sed in replacement strings. 16949 case $configure_input in #( 16950 *\&* | *\|* | *\\* ) 16951 ac_sed_conf_input=`$as_echo "$configure_input" | 16952 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16953 *) ac_sed_conf_input=$configure_input;; 16954 esac 16955 16956 case $ac_tag in 16957 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16958 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16959 esac 16960 ;; 16961 esac 16962 16963 ac_dir=`$as_dirname -- "$ac_file" || 16964$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16965 X"$ac_file" : 'X\(//\)[^/]' \| \ 16966 X"$ac_file" : 'X\(//\)$' \| \ 16967 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16968$as_echo X"$ac_file" | 16969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16970 s//\1/ 16971 q 16972 } 16973 /^X\(\/\/\)[^/].*/{ 16974 s//\1/ 16975 q 16976 } 16977 /^X\(\/\/\)$/{ 16978 s//\1/ 16979 q 16980 } 16981 /^X\(\/\).*/{ 16982 s//\1/ 16983 q 16984 } 16985 s/.*/./; q'` 16986 as_dir="$ac_dir"; as_fn_mkdir_p 16987 ac_builddir=. 16988 16989case "$ac_dir" in 16990.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16991*) 16992 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16993 # A ".." for each directory in $ac_dir_suffix. 16994 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16995 case $ac_top_builddir_sub in 16996 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16997 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16998 esac ;; 16999esac 17000ac_abs_top_builddir=$ac_pwd 17001ac_abs_builddir=$ac_pwd$ac_dir_suffix 17002# for backward compatibility: 17003ac_top_builddir=$ac_top_build_prefix 17004 17005case $srcdir in 17006 .) # We are building in place. 17007 ac_srcdir=. 17008 ac_top_srcdir=$ac_top_builddir_sub 17009 ac_abs_top_srcdir=$ac_pwd ;; 17010 [\\/]* | ?:[\\/]* ) # Absolute name. 17011 ac_srcdir=$srcdir$ac_dir_suffix; 17012 ac_top_srcdir=$srcdir 17013 ac_abs_top_srcdir=$srcdir ;; 17014 *) # Relative name. 17015 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17016 ac_top_srcdir=$ac_top_build_prefix$srcdir 17017 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17018esac 17019ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17020 17021 17022 case $ac_mode in 17023 :F) 17024 # 17025 # CONFIG_FILE 17026 # 17027 17028 case $INSTALL in 17029 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 17030 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 17031 esac 17032 ac_MKDIR_P=$MKDIR_P 17033 case $MKDIR_P in 17034 [\\/$]* | ?:[\\/]* ) ;; 17035 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 17036 esac 17037_ACEOF 17038 17039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17040# If the template does not know about datarootdir, expand it. 17041# FIXME: This hack should be removed a few years after 2.60. 17042ac_datarootdir_hack=; ac_datarootdir_seen= 17043ac_sed_dataroot=' 17044/datarootdir/ { 17045 p 17046 q 17047} 17048/@datadir@/p 17049/@docdir@/p 17050/@infodir@/p 17051/@localedir@/p 17052/@mandir@/p' 17053case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 17054*datarootdir*) ac_datarootdir_seen=yes;; 17055*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 17056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 17057$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 17058_ACEOF 17059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17060 ac_datarootdir_hack=' 17061 s&@datadir@&$datadir&g 17062 s&@docdir@&$docdir&g 17063 s&@infodir@&$infodir&g 17064 s&@localedir@&$localedir&g 17065 s&@mandir@&$mandir&g 17066 s&\\\${datarootdir}&$datarootdir&g' ;; 17067esac 17068_ACEOF 17069 17070# Neutralize VPATH when `$srcdir' = `.'. 17071# Shell code in configure.ac might set extrasub. 17072# FIXME: do we really want to maintain this feature? 17073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17074ac_sed_extra="$ac_vpsub 17075$extrasub 17076_ACEOF 17077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17078:t 17079/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 17080s|@configure_input@|$ac_sed_conf_input|;t t 17081s&@top_builddir@&$ac_top_builddir_sub&;t t 17082s&@top_build_prefix@&$ac_top_build_prefix&;t t 17083s&@srcdir@&$ac_srcdir&;t t 17084s&@abs_srcdir@&$ac_abs_srcdir&;t t 17085s&@top_srcdir@&$ac_top_srcdir&;t t 17086s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 17087s&@builddir@&$ac_builddir&;t t 17088s&@abs_builddir@&$ac_abs_builddir&;t t 17089s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 17090s&@INSTALL@&$ac_INSTALL&;t t 17091s&@MKDIR_P@&$ac_MKDIR_P&;t t 17092$ac_datarootdir_hack 17093" 17094eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 17095 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17096 17097test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 17098 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 17099 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 17100 "$ac_tmp/out"`; test -z "$ac_out"; } && 17101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17102which seems to be undefined. Please make sure it is defined" >&5 17103$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 17104which seems to be undefined. Please make sure it is defined" >&2;} 17105 17106 rm -f "$ac_tmp/stdin" 17107 case $ac_file in 17108 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 17109 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 17110 esac \ 17111 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 17112 ;; 17113 17114 17115 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 17116$as_echo "$as_me: executing $ac_file commands" >&6;} 17117 ;; 17118 esac 17119 17120 17121 case $ac_file$ac_mode in 17122 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 17123 # Older Autoconf quotes --file arguments for eval, but not when files 17124 # are listed without --file. Let's play safe and only enable the eval 17125 # if we detect the quoting. 17126 case $CONFIG_FILES in 17127 *\'*) eval set x "$CONFIG_FILES" ;; 17128 *) set x $CONFIG_FILES ;; 17129 esac 17130 shift 17131 for mf 17132 do 17133 # Strip MF so we end up with the name of the file. 17134 mf=`echo "$mf" | sed -e 's/:.*$//'` 17135 # Check whether this is an Automake generated Makefile or not. 17136 # We used to match only the files named 'Makefile.in', but 17137 # some people rename them; so instead we look at the file content. 17138 # Grep'ing the first line is not enough: some people post-process 17139 # each Makefile.in and add a new line on top of each file to say so. 17140 # Grep'ing the whole file is not good either: AIX grep has a line 17141 # limit of 2048, but all sed's we know have understand at least 4000. 17142 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 17143 dirpart=`$as_dirname -- "$mf" || 17144$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17145 X"$mf" : 'X\(//\)[^/]' \| \ 17146 X"$mf" : 'X\(//\)$' \| \ 17147 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 17148$as_echo X"$mf" | 17149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17150 s//\1/ 17151 q 17152 } 17153 /^X\(\/\/\)[^/].*/{ 17154 s//\1/ 17155 q 17156 } 17157 /^X\(\/\/\)$/{ 17158 s//\1/ 17159 q 17160 } 17161 /^X\(\/\).*/{ 17162 s//\1/ 17163 q 17164 } 17165 s/.*/./; q'` 17166 else 17167 continue 17168 fi 17169 # Extract the definition of DEPDIR, am__include, and am__quote 17170 # from the Makefile without running 'make'. 17171 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 17172 test -z "$DEPDIR" && continue 17173 am__include=`sed -n 's/^am__include = //p' < "$mf"` 17174 test -z "$am__include" && continue 17175 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 17176 # Find all dependency output files, they are included files with 17177 # $(DEPDIR) in their names. We invoke sed twice because it is the 17178 # simplest approach to changing $(DEPDIR) to its actual value in the 17179 # expansion. 17180 for file in `sed -n " 17181 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 17182 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 17183 # Make sure the directory exists. 17184 test -f "$dirpart/$file" && continue 17185 fdir=`$as_dirname -- "$file" || 17186$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17187 X"$file" : 'X\(//\)[^/]' \| \ 17188 X"$file" : 'X\(//\)$' \| \ 17189 X"$file" : 'X\(/\)' \| . 2>/dev/null || 17190$as_echo X"$file" | 17191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17192 s//\1/ 17193 q 17194 } 17195 /^X\(\/\/\)[^/].*/{ 17196 s//\1/ 17197 q 17198 } 17199 /^X\(\/\/\)$/{ 17200 s//\1/ 17201 q 17202 } 17203 /^X\(\/\).*/{ 17204 s//\1/ 17205 q 17206 } 17207 s/.*/./; q'` 17208 as_dir=$dirpart/$fdir; as_fn_mkdir_p 17209 # echo "creating $dirpart/$file" 17210 echo '# dummy' > "$dirpart/$file" 17211 done 17212 done 17213} 17214 ;; 17215 "libtool":C) 17216 17217 # See if we are running on zsh, and set the options which allow our 17218 # commands through without removal of \ escapes. 17219 if test -n "${ZSH_VERSION+set}" ; then 17220 setopt NO_GLOB_SUBST 17221 fi 17222 17223 cfgfile="${ofile}T" 17224 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 17225 $RM "$cfgfile" 17226 17227 cat <<_LT_EOF >> "$cfgfile" 17228#! $SHELL 17229 17230# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 17231# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 17232# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17233# NOTE: Changes made to this file will be lost: look at ltmain.sh. 17234# 17235# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 17236# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 17237# Foundation, Inc. 17238# Written by Gordon Matzigkeit, 1996 17239# 17240# This file is part of GNU Libtool. 17241# 17242# GNU Libtool is free software; you can redistribute it and/or 17243# modify it under the terms of the GNU General Public License as 17244# published by the Free Software Foundation; either version 2 of 17245# the License, or (at your option) any later version. 17246# 17247# As a special exception to the GNU General Public License, 17248# if you distribute this file as part of a program or library that 17249# is built using GNU Libtool, you may include this file under the 17250# same distribution terms that you use for the rest of that program. 17251# 17252# GNU Libtool is distributed in the hope that it will be useful, 17253# but WITHOUT ANY WARRANTY; without even the implied warranty of 17254# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17255# GNU General Public License for more details. 17256# 17257# You should have received a copy of the GNU General Public License 17258# along with GNU Libtool; see the file COPYING. If not, a copy 17259# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 17260# obtained by writing to the Free Software Foundation, Inc., 17261# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17262 17263 17264# The names of the tagged configurations supported by this script. 17265available_tags="CXX " 17266 17267# ### BEGIN LIBTOOL CONFIG 17268 17269# Whether or not to build static libraries. 17270build_old_libs=$enable_static 17271 17272# Which release of libtool.m4 was used? 17273macro_version=$macro_version 17274macro_revision=$macro_revision 17275 17276# Whether or not to build shared libraries. 17277build_libtool_libs=$enable_shared 17278 17279# What type of objects to build. 17280pic_mode=$pic_mode 17281 17282# Whether or not to optimize for fast installation. 17283fast_install=$enable_fast_install 17284 17285# Shell to use when invoking shell scripts. 17286SHELL=$lt_SHELL 17287 17288# An echo program that protects backslashes. 17289ECHO=$lt_ECHO 17290 17291# The PATH separator for the build system. 17292PATH_SEPARATOR=$lt_PATH_SEPARATOR 17293 17294# The host system. 17295host_alias=$host_alias 17296host=$host 17297host_os=$host_os 17298 17299# The build system. 17300build_alias=$build_alias 17301build=$build 17302build_os=$build_os 17303 17304# A sed program that does not truncate output. 17305SED=$lt_SED 17306 17307# Sed that helps us avoid accidentally triggering echo(1) options like -n. 17308Xsed="\$SED -e 1s/^X//" 17309 17310# A grep program that handles long lines. 17311GREP=$lt_GREP 17312 17313# An ERE matcher. 17314EGREP=$lt_EGREP 17315 17316# A literal string matcher. 17317FGREP=$lt_FGREP 17318 17319# A BSD- or MS-compatible name lister. 17320NM=$lt_NM 17321 17322# Whether we need soft or hard links. 17323LN_S=$lt_LN_S 17324 17325# What is the maximum length of a command? 17326max_cmd_len=$max_cmd_len 17327 17328# Object file suffix (normally "o"). 17329objext=$ac_objext 17330 17331# Executable file suffix (normally ""). 17332exeext=$exeext 17333 17334# whether the shell understands "unset". 17335lt_unset=$lt_unset 17336 17337# turn spaces into newlines. 17338SP2NL=$lt_lt_SP2NL 17339 17340# turn newlines into spaces. 17341NL2SP=$lt_lt_NL2SP 17342 17343# convert \$build file names to \$host format. 17344to_host_file_cmd=$lt_cv_to_host_file_cmd 17345 17346# convert \$build files to toolchain format. 17347to_tool_file_cmd=$lt_cv_to_tool_file_cmd 17348 17349# An object symbol dumper. 17350OBJDUMP=$lt_OBJDUMP 17351 17352# Method to check whether dependent libraries are shared objects. 17353deplibs_check_method=$lt_deplibs_check_method 17354 17355# Command to use when deplibs_check_method = "file_magic". 17356file_magic_cmd=$lt_file_magic_cmd 17357 17358# How to find potential files when deplibs_check_method = "file_magic". 17359file_magic_glob=$lt_file_magic_glob 17360 17361# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 17362want_nocaseglob=$lt_want_nocaseglob 17363 17364# DLL creation program. 17365DLLTOOL=$lt_DLLTOOL 17366 17367# Command to associate shared and link libraries. 17368sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 17369 17370# The archiver. 17371AR=$lt_AR 17372 17373# Flags to create an archive. 17374AR_FLAGS=$lt_AR_FLAGS 17375 17376# How to feed a file listing to the archiver. 17377archiver_list_spec=$lt_archiver_list_spec 17378 17379# A symbol stripping program. 17380STRIP=$lt_STRIP 17381 17382# Commands used to install an old-style archive. 17383RANLIB=$lt_RANLIB 17384old_postinstall_cmds=$lt_old_postinstall_cmds 17385old_postuninstall_cmds=$lt_old_postuninstall_cmds 17386 17387# Whether to use a lock for old archive extraction. 17388lock_old_archive_extraction=$lock_old_archive_extraction 17389 17390# A C compiler. 17391LTCC=$lt_CC 17392 17393# LTCC compiler flags. 17394LTCFLAGS=$lt_CFLAGS 17395 17396# Take the output of nm and produce a listing of raw symbols and C names. 17397global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17398 17399# Transform the output of nm in a proper C declaration. 17400global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17401 17402# Transform the output of nm in a C name address pair. 17403global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17404 17405# Transform the output of nm in a C name address pair when lib prefix is needed. 17406global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 17407 17408# Specify filename containing input files for \$NM. 17409nm_file_list_spec=$lt_nm_file_list_spec 17410 17411# The root where to search for dependent libraries,and in which our libraries should be installed. 17412lt_sysroot=$lt_sysroot 17413 17414# The name of the directory that contains temporary libtool files. 17415objdir=$objdir 17416 17417# Used to examine libraries when file_magic_cmd begins with "file". 17418MAGIC_CMD=$MAGIC_CMD 17419 17420# Must we lock files when doing compilation? 17421need_locks=$lt_need_locks 17422 17423# Manifest tool. 17424MANIFEST_TOOL=$lt_MANIFEST_TOOL 17425 17426# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 17427DSYMUTIL=$lt_DSYMUTIL 17428 17429# Tool to change global to local symbols on Mac OS X. 17430NMEDIT=$lt_NMEDIT 17431 17432# Tool to manipulate fat objects and archives on Mac OS X. 17433LIPO=$lt_LIPO 17434 17435# ldd/readelf like tool for Mach-O binaries on Mac OS X. 17436OTOOL=$lt_OTOOL 17437 17438# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 17439OTOOL64=$lt_OTOOL64 17440 17441# Old archive suffix (normally "a"). 17442libext=$libext 17443 17444# Shared library suffix (normally ".so"). 17445shrext_cmds=$lt_shrext_cmds 17446 17447# The commands to extract the exported symbol list from a shared archive. 17448extract_expsyms_cmds=$lt_extract_expsyms_cmds 17449 17450# Variables whose values should be saved in libtool wrapper scripts and 17451# restored at link time. 17452variables_saved_for_relink=$lt_variables_saved_for_relink 17453 17454# Do we need the "lib" prefix for modules? 17455need_lib_prefix=$need_lib_prefix 17456 17457# Do we need a version for libraries? 17458need_version=$need_version 17459 17460# Library versioning type. 17461version_type=$version_type 17462 17463# Shared library runtime path variable. 17464runpath_var=$runpath_var 17465 17466# Shared library path variable. 17467shlibpath_var=$shlibpath_var 17468 17469# Is shlibpath searched before the hard-coded library search path? 17470shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17471 17472# Format of library name prefix. 17473libname_spec=$lt_libname_spec 17474 17475# List of archive names. First name is the real one, the rest are links. 17476# The last name is the one that the linker finds with -lNAME 17477library_names_spec=$lt_library_names_spec 17478 17479# The coded name of the library, if different from the real name. 17480soname_spec=$lt_soname_spec 17481 17482# Permission mode override for installation of shared libraries. 17483install_override_mode=$lt_install_override_mode 17484 17485# Command to use after installation of a shared archive. 17486postinstall_cmds=$lt_postinstall_cmds 17487 17488# Command to use after uninstallation of a shared archive. 17489postuninstall_cmds=$lt_postuninstall_cmds 17490 17491# Commands used to finish a libtool library installation in a directory. 17492finish_cmds=$lt_finish_cmds 17493 17494# As "finish_cmds", except a single script fragment to be evaled but 17495# not shown. 17496finish_eval=$lt_finish_eval 17497 17498# Whether we should hardcode library paths into libraries. 17499hardcode_into_libs=$hardcode_into_libs 17500 17501# Compile-time system search path for libraries. 17502sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 17503 17504# Run-time system search path for libraries. 17505sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 17506 17507# Whether dlopen is supported. 17508dlopen_support=$enable_dlopen 17509 17510# Whether dlopen of programs is supported. 17511dlopen_self=$enable_dlopen_self 17512 17513# Whether dlopen of statically linked programs is supported. 17514dlopen_self_static=$enable_dlopen_self_static 17515 17516# Commands to strip libraries. 17517old_striplib=$lt_old_striplib 17518striplib=$lt_striplib 17519 17520 17521# The linker used to build libraries. 17522LD=$lt_LD 17523 17524# How to create reloadable object files. 17525reload_flag=$lt_reload_flag 17526reload_cmds=$lt_reload_cmds 17527 17528# Commands used to build an old-style archive. 17529old_archive_cmds=$lt_old_archive_cmds 17530 17531# A language specific compiler. 17532CC=$lt_compiler 17533 17534# Is the compiler the GNU compiler? 17535with_gcc=$GCC 17536 17537# Compiler flag to turn off builtin functions. 17538no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 17539 17540# Additional compiler flags for building library objects. 17541pic_flag=$lt_lt_prog_compiler_pic 17542 17543# How to pass a linker flag through the compiler. 17544wl=$lt_lt_prog_compiler_wl 17545 17546# Compiler flag to prevent dynamic linking. 17547link_static_flag=$lt_lt_prog_compiler_static 17548 17549# Does compiler simultaneously support -c and -o options? 17550compiler_c_o=$lt_lt_cv_prog_compiler_c_o 17551 17552# Whether or not to add -lc for building shared libraries. 17553build_libtool_need_lc=$archive_cmds_need_lc 17554 17555# Whether or not to disallow shared libs when runtime libs are static. 17556allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 17557 17558# Compiler flag to allow reflexive dlopens. 17559export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 17560 17561# Compiler flag to generate shared objects directly from archives. 17562whole_archive_flag_spec=$lt_whole_archive_flag_spec 17563 17564# Whether the compiler copes with passing no objects directly. 17565compiler_needs_object=$lt_compiler_needs_object 17566 17567# Create an old-style archive from a shared archive. 17568old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 17569 17570# Create a temporary old-style archive to link instead of a shared archive. 17571old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 17572 17573# Commands used to build a shared archive. 17574archive_cmds=$lt_archive_cmds 17575archive_expsym_cmds=$lt_archive_expsym_cmds 17576 17577# Commands used to build a loadable module if different from building 17578# a shared archive. 17579module_cmds=$lt_module_cmds 17580module_expsym_cmds=$lt_module_expsym_cmds 17581 17582# Whether we are building with GNU ld or not. 17583with_gnu_ld=$lt_with_gnu_ld 17584 17585# Flag that allows shared libraries with undefined symbols to be built. 17586allow_undefined_flag=$lt_allow_undefined_flag 17587 17588# Flag that enforces no undefined symbols. 17589no_undefined_flag=$lt_no_undefined_flag 17590 17591# Flag to hardcode \$libdir into a binary during linking. 17592# This must work even if \$libdir does not exist 17593hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 17594 17595# Whether we need a single "-rpath" flag with a separated argument. 17596hardcode_libdir_separator=$lt_hardcode_libdir_separator 17597 17598# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17599# DIR into the resulting binary. 17600hardcode_direct=$hardcode_direct 17601 17602# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17603# DIR into the resulting binary and the resulting library dependency is 17604# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17605# library is relocated. 17606hardcode_direct_absolute=$hardcode_direct_absolute 17607 17608# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17609# into the resulting binary. 17610hardcode_minus_L=$hardcode_minus_L 17611 17612# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17613# into the resulting binary. 17614hardcode_shlibpath_var=$hardcode_shlibpath_var 17615 17616# Set to "yes" if building a shared library automatically hardcodes DIR 17617# into the library and all subsequent libraries and executables linked 17618# against it. 17619hardcode_automatic=$hardcode_automatic 17620 17621# Set to yes if linker adds runtime paths of dependent libraries 17622# to runtime path list. 17623inherit_rpath=$inherit_rpath 17624 17625# Whether libtool must link a program against all its dependency libraries. 17626link_all_deplibs=$link_all_deplibs 17627 17628# Set to "yes" if exported symbols are required. 17629always_export_symbols=$always_export_symbols 17630 17631# The commands to list exported symbols. 17632export_symbols_cmds=$lt_export_symbols_cmds 17633 17634# Symbols that should not be listed in the preloaded symbols. 17635exclude_expsyms=$lt_exclude_expsyms 17636 17637# Symbols that must always be exported. 17638include_expsyms=$lt_include_expsyms 17639 17640# Commands necessary for linking programs (against libraries) with templates. 17641prelink_cmds=$lt_prelink_cmds 17642 17643# Commands necessary for finishing linking programs. 17644postlink_cmds=$lt_postlink_cmds 17645 17646# Specify filename containing input files. 17647file_list_spec=$lt_file_list_spec 17648 17649# How to hardcode a shared library path into an executable. 17650hardcode_action=$hardcode_action 17651 17652# The directories searched by this compiler when creating a shared library. 17653compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 17654 17655# Dependencies to place before and after the objects being linked to 17656# create a shared library. 17657predep_objects=$lt_predep_objects 17658postdep_objects=$lt_postdep_objects 17659predeps=$lt_predeps 17660postdeps=$lt_postdeps 17661 17662# The library search path used internally by the compiler when linking 17663# a shared library. 17664compiler_lib_search_path=$lt_compiler_lib_search_path 17665 17666# ### END LIBTOOL CONFIG 17667 17668_LT_EOF 17669 17670 case $host_os in 17671 aix3*) 17672 cat <<\_LT_EOF >> "$cfgfile" 17673# AIX sometimes has problems with the GCC collect2 program. For some 17674# reason, if we set the COLLECT_NAMES environment variable, the problems 17675# vanish in a puff of smoke. 17676if test "X${COLLECT_NAMES+set}" != Xset; then 17677 COLLECT_NAMES= 17678 export COLLECT_NAMES 17679fi 17680_LT_EOF 17681 ;; 17682 esac 17683 17684 17685ltmain="$ac_aux_dir/ltmain.sh" 17686 17687 17688 # We use sed instead of cat because bash on DJGPP gets confused if 17689 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17690 # text mode, it properly converts lines to CR/LF. This bash problem 17691 # is reportedly fixed, but why not run on old versions too? 17692 sed '$q' "$ltmain" >> "$cfgfile" \ 17693 || (rm -f "$cfgfile"; exit 1) 17694 17695 if test x"$xsi_shell" = xyes; then 17696 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 17697func_dirname ()\ 17698{\ 17699\ case ${1} in\ 17700\ */*) func_dirname_result="${1%/*}${2}" ;;\ 17701\ * ) func_dirname_result="${3}" ;;\ 17702\ esac\ 17703} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 17704 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17705 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17706test 0 -eq $? || _lt_function_replace_fail=: 17707 17708 17709 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 17710func_basename ()\ 17711{\ 17712\ func_basename_result="${1##*/}"\ 17713} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 17714 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17715 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17716test 0 -eq $? || _lt_function_replace_fail=: 17717 17718 17719 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 17720func_dirname_and_basename ()\ 17721{\ 17722\ case ${1} in\ 17723\ */*) func_dirname_result="${1%/*}${2}" ;;\ 17724\ * ) func_dirname_result="${3}" ;;\ 17725\ esac\ 17726\ func_basename_result="${1##*/}"\ 17727} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 17728 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17729 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17730test 0 -eq $? || _lt_function_replace_fail=: 17731 17732 17733 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 17734func_stripname ()\ 17735{\ 17736\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 17737\ # positional parameters, so assign one to ordinary parameter first.\ 17738\ func_stripname_result=${3}\ 17739\ func_stripname_result=${func_stripname_result#"${1}"}\ 17740\ func_stripname_result=${func_stripname_result%"${2}"}\ 17741} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 17742 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17743 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17744test 0 -eq $? || _lt_function_replace_fail=: 17745 17746 17747 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 17748func_split_long_opt ()\ 17749{\ 17750\ func_split_long_opt_name=${1%%=*}\ 17751\ func_split_long_opt_arg=${1#*=}\ 17752} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 17753 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17754 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17755test 0 -eq $? || _lt_function_replace_fail=: 17756 17757 17758 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 17759func_split_short_opt ()\ 17760{\ 17761\ func_split_short_opt_arg=${1#??}\ 17762\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 17763} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 17764 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17765 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17766test 0 -eq $? || _lt_function_replace_fail=: 17767 17768 17769 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 17770func_lo2o ()\ 17771{\ 17772\ case ${1} in\ 17773\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 17774\ *) func_lo2o_result=${1} ;;\ 17775\ esac\ 17776} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 17777 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17778 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17779test 0 -eq $? || _lt_function_replace_fail=: 17780 17781 17782 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 17783func_xform ()\ 17784{\ 17785 func_xform_result=${1%.*}.lo\ 17786} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 17787 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17788 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17789test 0 -eq $? || _lt_function_replace_fail=: 17790 17791 17792 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 17793func_arith ()\ 17794{\ 17795 func_arith_result=$(( $* ))\ 17796} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 17797 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17798 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17799test 0 -eq $? || _lt_function_replace_fail=: 17800 17801 17802 sed -e '/^func_len ()$/,/^} # func_len /c\ 17803func_len ()\ 17804{\ 17805 func_len_result=${#1}\ 17806} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 17807 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17808 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17809test 0 -eq $? || _lt_function_replace_fail=: 17810 17811fi 17812 17813if test x"$lt_shell_append" = xyes; then 17814 sed -e '/^func_append ()$/,/^} # func_append /c\ 17815func_append ()\ 17816{\ 17817 eval "${1}+=\\${2}"\ 17818} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 17819 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17820 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17821test 0 -eq $? || _lt_function_replace_fail=: 17822 17823 17824 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 17825func_append_quoted ()\ 17826{\ 17827\ func_quote_for_eval "${2}"\ 17828\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 17829} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 17830 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17831 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17832test 0 -eq $? || _lt_function_replace_fail=: 17833 17834 17835 # Save a `func_append' function call where possible by direct use of '+=' 17836 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 17837 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17838 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17839 test 0 -eq $? || _lt_function_replace_fail=: 17840else 17841 # Save a `func_append' function call even when '+=' is not available 17842 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 17843 && mv -f "$cfgfile.tmp" "$cfgfile" \ 17844 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 17845 test 0 -eq $? || _lt_function_replace_fail=: 17846fi 17847 17848if test x"$_lt_function_replace_fail" = x":"; then 17849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 17850$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 17851fi 17852 17853 17854 mv -f "$cfgfile" "$ofile" || 17855 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17856 chmod +x "$ofile" 17857 17858 17859 cat <<_LT_EOF >> "$ofile" 17860 17861# ### BEGIN LIBTOOL TAG CONFIG: CXX 17862 17863# The linker used to build libraries. 17864LD=$lt_LD_CXX 17865 17866# How to create reloadable object files. 17867reload_flag=$lt_reload_flag_CXX 17868reload_cmds=$lt_reload_cmds_CXX 17869 17870# Commands used to build an old-style archive. 17871old_archive_cmds=$lt_old_archive_cmds_CXX 17872 17873# A language specific compiler. 17874CC=$lt_compiler_CXX 17875 17876# Is the compiler the GNU compiler? 17877with_gcc=$GCC_CXX 17878 17879# Compiler flag to turn off builtin functions. 17880no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 17881 17882# Additional compiler flags for building library objects. 17883pic_flag=$lt_lt_prog_compiler_pic_CXX 17884 17885# How to pass a linker flag through the compiler. 17886wl=$lt_lt_prog_compiler_wl_CXX 17887 17888# Compiler flag to prevent dynamic linking. 17889link_static_flag=$lt_lt_prog_compiler_static_CXX 17890 17891# Does compiler simultaneously support -c and -o options? 17892compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 17893 17894# Whether or not to add -lc for building shared libraries. 17895build_libtool_need_lc=$archive_cmds_need_lc_CXX 17896 17897# Whether or not to disallow shared libs when runtime libs are static. 17898allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 17899 17900# Compiler flag to allow reflexive dlopens. 17901export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 17902 17903# Compiler flag to generate shared objects directly from archives. 17904whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 17905 17906# Whether the compiler copes with passing no objects directly. 17907compiler_needs_object=$lt_compiler_needs_object_CXX 17908 17909# Create an old-style archive from a shared archive. 17910old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 17911 17912# Create a temporary old-style archive to link instead of a shared archive. 17913old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 17914 17915# Commands used to build a shared archive. 17916archive_cmds=$lt_archive_cmds_CXX 17917archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 17918 17919# Commands used to build a loadable module if different from building 17920# a shared archive. 17921module_cmds=$lt_module_cmds_CXX 17922module_expsym_cmds=$lt_module_expsym_cmds_CXX 17923 17924# Whether we are building with GNU ld or not. 17925with_gnu_ld=$lt_with_gnu_ld_CXX 17926 17927# Flag that allows shared libraries with undefined symbols to be built. 17928allow_undefined_flag=$lt_allow_undefined_flag_CXX 17929 17930# Flag that enforces no undefined symbols. 17931no_undefined_flag=$lt_no_undefined_flag_CXX 17932 17933# Flag to hardcode \$libdir into a binary during linking. 17934# This must work even if \$libdir does not exist 17935hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 17936 17937# Whether we need a single "-rpath" flag with a separated argument. 17938hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 17939 17940# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17941# DIR into the resulting binary. 17942hardcode_direct=$hardcode_direct_CXX 17943 17944# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17945# DIR into the resulting binary and the resulting library dependency is 17946# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17947# library is relocated. 17948hardcode_direct_absolute=$hardcode_direct_absolute_CXX 17949 17950# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17951# into the resulting binary. 17952hardcode_minus_L=$hardcode_minus_L_CXX 17953 17954# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17955# into the resulting binary. 17956hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 17957 17958# Set to "yes" if building a shared library automatically hardcodes DIR 17959# into the library and all subsequent libraries and executables linked 17960# against it. 17961hardcode_automatic=$hardcode_automatic_CXX 17962 17963# Set to yes if linker adds runtime paths of dependent libraries 17964# to runtime path list. 17965inherit_rpath=$inherit_rpath_CXX 17966 17967# Whether libtool must link a program against all its dependency libraries. 17968link_all_deplibs=$link_all_deplibs_CXX 17969 17970# Set to "yes" if exported symbols are required. 17971always_export_symbols=$always_export_symbols_CXX 17972 17973# The commands to list exported symbols. 17974export_symbols_cmds=$lt_export_symbols_cmds_CXX 17975 17976# Symbols that should not be listed in the preloaded symbols. 17977exclude_expsyms=$lt_exclude_expsyms_CXX 17978 17979# Symbols that must always be exported. 17980include_expsyms=$lt_include_expsyms_CXX 17981 17982# Commands necessary for linking programs (against libraries) with templates. 17983prelink_cmds=$lt_prelink_cmds_CXX 17984 17985# Commands necessary for finishing linking programs. 17986postlink_cmds=$lt_postlink_cmds_CXX 17987 17988# Specify filename containing input files. 17989file_list_spec=$lt_file_list_spec_CXX 17990 17991# How to hardcode a shared library path into an executable. 17992hardcode_action=$hardcode_action_CXX 17993 17994# The directories searched by this compiler when creating a shared library. 17995compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 17996 17997# Dependencies to place before and after the objects being linked to 17998# create a shared library. 17999predep_objects=$lt_predep_objects_CXX 18000postdep_objects=$lt_postdep_objects_CXX 18001predeps=$lt_predeps_CXX 18002postdeps=$lt_postdeps_CXX 18003 18004# The library search path used internally by the compiler when linking 18005# a shared library. 18006compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 18007 18008# ### END LIBTOOL TAG CONFIG: CXX 18009_LT_EOF 18010 18011 ;; 18012 18013 esac 18014done # for ac_tag 18015 18016 18017as_fn_exit 0 18018_ACEOF 18019ac_clean_files=$ac_clean_files_save 18020 18021test $ac_write_fail = 0 || 18022 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18023 18024 18025# configure is writing to config.log, and then calls config.status. 18026# config.status does its own redirection, appending to config.log. 18027# Unfortunately, on DOS this fails, as config.log is still kept open 18028# by configure, so config.status won't be able to write to it; its 18029# output is simply discarded. So we exec the FD to /dev/null, 18030# effectively closing config.log, so it can be properly (re)opened and 18031# appended to by config.status. When coming back to configure, we 18032# need to make the FD available again. 18033if test "$no_create" != yes; then 18034 ac_cs_success=: 18035 ac_config_status_args= 18036 test "$silent" = yes && 18037 ac_config_status_args="$ac_config_status_args --quiet" 18038 exec 5>/dev/null 18039 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18040 exec 5>>config.log 18041 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18042 # would make configure fail if this is the last instruction. 18043 $ac_cs_success || as_fn_exit 1 18044fi 18045if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18047$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18048fi 18049 18050