1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for readosm 1.1.0a. 4# 5# Report bugs to <a.furieri@lqt.it>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and a.furieri@lqt.it 278$0: about your system, including any error possibly output 279$0: before this message. Then install a modern shell, or 280$0: manually run the script under such a shell if you do 281$0: have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='readosm' 592PACKAGE_TARNAME='readosm' 593PACKAGE_VERSION='1.1.0a' 594PACKAGE_STRING='readosm 1.1.0a' 595PACKAGE_BUGREPORT='a.furieri@lqt.it' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637LIBOBJS 638CXXCPP 639OTOOL64 640OTOOL 641LIPO 642NMEDIT 643DSYMUTIL 644MANIFEST_TOOL 645RANLIB 646ac_ct_AR 647AR 648NM 649ac_ct_DUMPBIN 650DUMPBIN 651LD 652FGREP 653SED 654LIBTOOL 655OBJDUMP 656DLLTOOL 657AS 658host_os 659host_vendor 660host_cpu 661host 662build_os 663build_vendor 664build_cpu 665build 666LN_S 667am__fastdepCXX_FALSE 668am__fastdepCXX_TRUE 669CXXDEPMODE 670ac_ct_CXX 671CXXFLAGS 672CXX 673EGREP 674GREP 675CPP 676am__fastdepCC_FALSE 677am__fastdepCC_TRUE 678CCDEPMODE 679am__nodep 680AMDEPBACKSLASH 681AMDEP_FALSE 682AMDEP_TRUE 683am__include 684DEPDIR 685OBJEXT 686EXEEXT 687ac_ct_CC 688CPPFLAGS 689LDFLAGS 690CFLAGS 691CC 692MAINT 693MAINTAINER_MODE_FALSE 694MAINTAINER_MODE_TRUE 695AM_BACKSLASH 696AM_DEFAULT_VERBOSITY 697AM_DEFAULT_V 698AM_V 699am__untar 700am__tar 701AMTAR 702am__leading_dot 703SET_MAKE 704AWK 705mkdir_p 706MKDIR_P 707INSTALL_STRIP_PROGRAM 708STRIP 709install_sh 710MAKEINFO 711AUTOHEADER 712AUTOMAKE 713AUTOCONF 714ACLOCAL 715VERSION 716PACKAGE 717CYGPATH_W 718am__isrc 719INSTALL_DATA 720INSTALL_SCRIPT 721INSTALL_PROGRAM 722target_alias 723host_alias 724build_alias 725LIBS 726ECHO_T 727ECHO_N 728ECHO_C 729DEFS 730mandir 731localedir 732libdir 733psdir 734pdfdir 735dvidir 736htmldir 737infodir 738docdir 739oldincludedir 740includedir 741localstatedir 742sharedstatedir 743sysconfdir 744datadir 745datarootdir 746libexecdir 747sbindir 748bindir 749program_transform_name 750prefix 751exec_prefix 752PACKAGE_URL 753PACKAGE_BUGREPORT 754PACKAGE_STRING 755PACKAGE_VERSION 756PACKAGE_TARNAME 757PACKAGE_NAME 758PATH_SEPARATOR 759SHELL 760am__quote' 761ac_subst_files='' 762ac_user_opts=' 763enable_option_checking 764enable_silent_rules 765enable_maintainer_mode 766enable_dependency_tracking 767enable_shared 768enable_static 769with_pic 770enable_fast_install 771with_gnu_ld 772with_sysroot 773enable_libtool_lock 774enable_gcov 775' 776 ac_precious_vars='build_alias 777host_alias 778target_alias 779CC 780CFLAGS 781LDFLAGS 782LIBS 783CPPFLAGS 784CPP 785CXX 786CXXFLAGS 787CCC 788CXXCPP' 789 790 791# Initialize some variables set by options. 792ac_init_help= 793ac_init_version=false 794ac_unrecognized_opts= 795ac_unrecognized_sep= 796# The variables have the same names as the options, with 797# dashes changed to underlines. 798cache_file=/dev/null 799exec_prefix=NONE 800no_create= 801no_recursion= 802prefix=NONE 803program_prefix=NONE 804program_suffix=NONE 805program_transform_name=s,x,x, 806silent= 807site= 808srcdir= 809verbose= 810x_includes=NONE 811x_libraries=NONE 812 813# Installation directory options. 814# These are left unexpanded so users can "make install exec_prefix=/foo" 815# and all the variables that are supposed to be based on exec_prefix 816# by default will actually change. 817# Use braces instead of parens because sh, perl, etc. also accept them. 818# (The list follows the same order as the GNU Coding Standards.) 819bindir='${exec_prefix}/bin' 820sbindir='${exec_prefix}/sbin' 821libexecdir='${exec_prefix}/libexec' 822datarootdir='${prefix}/share' 823datadir='${datarootdir}' 824sysconfdir='${prefix}/etc' 825sharedstatedir='${prefix}/com' 826localstatedir='${prefix}/var' 827includedir='${prefix}/include' 828oldincludedir='/usr/include' 829docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 830infodir='${datarootdir}/info' 831htmldir='${docdir}' 832dvidir='${docdir}' 833pdfdir='${docdir}' 834psdir='${docdir}' 835libdir='${exec_prefix}/lib' 836localedir='${datarootdir}/locale' 837mandir='${datarootdir}/man' 838 839ac_prev= 840ac_dashdash= 841for ac_option 842do 843 # If the previous option needs an argument, assign it. 844 if test -n "$ac_prev"; then 845 eval $ac_prev=\$ac_option 846 ac_prev= 847 continue 848 fi 849 850 case $ac_option in 851 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 852 *=) ac_optarg= ;; 853 *) ac_optarg=yes ;; 854 esac 855 856 # Accept the important Cygnus configure options, so we can diagnose typos. 857 858 case $ac_dashdash$ac_option in 859 --) 860 ac_dashdash=yes ;; 861 862 -bindir | --bindir | --bindi | --bind | --bin | --bi) 863 ac_prev=bindir ;; 864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 865 bindir=$ac_optarg ;; 866 867 -build | --build | --buil | --bui | --bu) 868 ac_prev=build_alias ;; 869 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 870 build_alias=$ac_optarg ;; 871 872 -cache-file | --cache-file | --cache-fil | --cache-fi \ 873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 874 ac_prev=cache_file ;; 875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 877 cache_file=$ac_optarg ;; 878 879 --config-cache | -C) 880 cache_file=config.cache ;; 881 882 -datadir | --datadir | --datadi | --datad) 883 ac_prev=datadir ;; 884 -datadir=* | --datadir=* | --datadi=* | --datad=*) 885 datadir=$ac_optarg ;; 886 887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 888 | --dataroo | --dataro | --datar) 889 ac_prev=datarootdir ;; 890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 892 datarootdir=$ac_optarg ;; 893 894 -disable-* | --disable-*) 895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 896 # Reject names that are not valid shell variable names. 897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 898 as_fn_error $? "invalid feature name: $ac_useropt" 899 ac_useropt_orig=$ac_useropt 900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 901 case $ac_user_opts in 902 *" 903"enable_$ac_useropt" 904"*) ;; 905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 906 ac_unrecognized_sep=', ';; 907 esac 908 eval enable_$ac_useropt=no ;; 909 910 -docdir | --docdir | --docdi | --doc | --do) 911 ac_prev=docdir ;; 912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 913 docdir=$ac_optarg ;; 914 915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 916 ac_prev=dvidir ;; 917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 918 dvidir=$ac_optarg ;; 919 920 -enable-* | --enable-*) 921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 922 # Reject names that are not valid shell variable names. 923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 924 as_fn_error $? "invalid feature name: $ac_useropt" 925 ac_useropt_orig=$ac_useropt 926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 927 case $ac_user_opts in 928 *" 929"enable_$ac_useropt" 930"*) ;; 931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 932 ac_unrecognized_sep=', ';; 933 esac 934 eval enable_$ac_useropt=\$ac_optarg ;; 935 936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 938 | --exec | --exe | --ex) 939 ac_prev=exec_prefix ;; 940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 942 | --exec=* | --exe=* | --ex=*) 943 exec_prefix=$ac_optarg ;; 944 945 -gas | --gas | --ga | --g) 946 # Obsolete; use --with-gas. 947 with_gas=yes ;; 948 949 -help | --help | --hel | --he | -h) 950 ac_init_help=long ;; 951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 952 ac_init_help=recursive ;; 953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 954 ac_init_help=short ;; 955 956 -host | --host | --hos | --ho) 957 ac_prev=host_alias ;; 958 -host=* | --host=* | --hos=* | --ho=*) 959 host_alias=$ac_optarg ;; 960 961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 962 ac_prev=htmldir ;; 963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 964 | --ht=*) 965 htmldir=$ac_optarg ;; 966 967 -includedir | --includedir | --includedi | --included | --include \ 968 | --includ | --inclu | --incl | --inc) 969 ac_prev=includedir ;; 970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 971 | --includ=* | --inclu=* | --incl=* | --inc=*) 972 includedir=$ac_optarg ;; 973 974 -infodir | --infodir | --infodi | --infod | --info | --inf) 975 ac_prev=infodir ;; 976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 977 infodir=$ac_optarg ;; 978 979 -libdir | --libdir | --libdi | --libd) 980 ac_prev=libdir ;; 981 -libdir=* | --libdir=* | --libdi=* | --libd=*) 982 libdir=$ac_optarg ;; 983 984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 985 | --libexe | --libex | --libe) 986 ac_prev=libexecdir ;; 987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 988 | --libexe=* | --libex=* | --libe=*) 989 libexecdir=$ac_optarg ;; 990 991 -localedir | --localedir | --localedi | --localed | --locale) 992 ac_prev=localedir ;; 993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 994 localedir=$ac_optarg ;; 995 996 -localstatedir | --localstatedir | --localstatedi | --localstated \ 997 | --localstate | --localstat | --localsta | --localst | --locals) 998 ac_prev=localstatedir ;; 999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1001 localstatedir=$ac_optarg ;; 1002 1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1004 ac_prev=mandir ;; 1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1006 mandir=$ac_optarg ;; 1007 1008 -nfp | --nfp | --nf) 1009 # Obsolete; use --without-fp. 1010 with_fp=no ;; 1011 1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1013 | --no-cr | --no-c | -n) 1014 no_create=yes ;; 1015 1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1018 no_recursion=yes ;; 1019 1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1022 | --oldin | --oldi | --old | --ol | --o) 1023 ac_prev=oldincludedir ;; 1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1027 oldincludedir=$ac_optarg ;; 1028 1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1030 ac_prev=prefix ;; 1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1032 prefix=$ac_optarg ;; 1033 1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1035 | --program-pre | --program-pr | --program-p) 1036 ac_prev=program_prefix ;; 1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1039 program_prefix=$ac_optarg ;; 1040 1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1042 | --program-suf | --program-su | --program-s) 1043 ac_prev=program_suffix ;; 1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1046 program_suffix=$ac_optarg ;; 1047 1048 -program-transform-name | --program-transform-name \ 1049 | --program-transform-nam | --program-transform-na \ 1050 | --program-transform-n | --program-transform- \ 1051 | --program-transform | --program-transfor \ 1052 | --program-transfo | --program-transf \ 1053 | --program-trans | --program-tran \ 1054 | --progr-tra | --program-tr | --program-t) 1055 ac_prev=program_transform_name ;; 1056 -program-transform-name=* | --program-transform-name=* \ 1057 | --program-transform-nam=* | --program-transform-na=* \ 1058 | --program-transform-n=* | --program-transform-=* \ 1059 | --program-transform=* | --program-transfor=* \ 1060 | --program-transfo=* | --program-transf=* \ 1061 | --program-trans=* | --program-tran=* \ 1062 | --progr-tra=* | --program-tr=* | --program-t=*) 1063 program_transform_name=$ac_optarg ;; 1064 1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1066 ac_prev=pdfdir ;; 1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1068 pdfdir=$ac_optarg ;; 1069 1070 -psdir | --psdir | --psdi | --psd | --ps) 1071 ac_prev=psdir ;; 1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1073 psdir=$ac_optarg ;; 1074 1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1076 | -silent | --silent | --silen | --sile | --sil) 1077 silent=yes ;; 1078 1079 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1080 ac_prev=sbindir ;; 1081 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1082 | --sbi=* | --sb=*) 1083 sbindir=$ac_optarg ;; 1084 1085 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1086 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1087 | --sharedst | --shareds | --shared | --share | --shar \ 1088 | --sha | --sh) 1089 ac_prev=sharedstatedir ;; 1090 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1091 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1092 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1093 | --sha=* | --sh=*) 1094 sharedstatedir=$ac_optarg ;; 1095 1096 -site | --site | --sit) 1097 ac_prev=site ;; 1098 -site=* | --site=* | --sit=*) 1099 site=$ac_optarg ;; 1100 1101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1102 ac_prev=srcdir ;; 1103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1104 srcdir=$ac_optarg ;; 1105 1106 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1107 | --syscon | --sysco | --sysc | --sys | --sy) 1108 ac_prev=sysconfdir ;; 1109 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1110 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1111 sysconfdir=$ac_optarg ;; 1112 1113 -target | --target | --targe | --targ | --tar | --ta | --t) 1114 ac_prev=target_alias ;; 1115 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1116 target_alias=$ac_optarg ;; 1117 1118 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1119 verbose=yes ;; 1120 1121 -version | --version | --versio | --versi | --vers | -V) 1122 ac_init_version=: ;; 1123 1124 -with-* | --with-*) 1125 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1126 # Reject names that are not valid shell variable names. 1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1128 as_fn_error $? "invalid package name: $ac_useropt" 1129 ac_useropt_orig=$ac_useropt 1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1131 case $ac_user_opts in 1132 *" 1133"with_$ac_useropt" 1134"*) ;; 1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1136 ac_unrecognized_sep=', ';; 1137 esac 1138 eval with_$ac_useropt=\$ac_optarg ;; 1139 1140 -without-* | --without-*) 1141 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1142 # Reject names that are not valid shell variable names. 1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1144 as_fn_error $? "invalid package name: $ac_useropt" 1145 ac_useropt_orig=$ac_useropt 1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1147 case $ac_user_opts in 1148 *" 1149"with_$ac_useropt" 1150"*) ;; 1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1152 ac_unrecognized_sep=', ';; 1153 esac 1154 eval with_$ac_useropt=no ;; 1155 1156 --x) 1157 # Obsolete; use --with-x. 1158 with_x=yes ;; 1159 1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1161 | --x-incl | --x-inc | --x-in | --x-i) 1162 ac_prev=x_includes ;; 1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1165 x_includes=$ac_optarg ;; 1166 1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1169 ac_prev=x_libraries ;; 1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1172 x_libraries=$ac_optarg ;; 1173 1174 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1175Try \`$0 --help' for more information" 1176 ;; 1177 1178 *=*) 1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1180 # Reject names that are not valid shell variable names. 1181 case $ac_envvar in #( 1182 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1183 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1184 esac 1185 eval $ac_envvar=\$ac_optarg 1186 export $ac_envvar ;; 1187 1188 *) 1189 # FIXME: should be removed in autoconf 3.0. 1190 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1192 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1193 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1194 ;; 1195 1196 esac 1197done 1198 1199if test -n "$ac_prev"; then 1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1201 as_fn_error $? "missing argument to $ac_option" 1202fi 1203 1204if test -n "$ac_unrecognized_opts"; then 1205 case $enable_option_checking in 1206 no) ;; 1207 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1208 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1209 esac 1210fi 1211 1212# Check all directory arguments for consistency. 1213for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1214 datadir sysconfdir sharedstatedir localstatedir includedir \ 1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1216 libdir localedir mandir 1217do 1218 eval ac_val=\$$ac_var 1219 # Remove trailing slashes. 1220 case $ac_val in 1221 */ ) 1222 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1223 eval $ac_var=\$ac_val;; 1224 esac 1225 # Be sure to have absolute directory names. 1226 case $ac_val in 1227 [\\/$]* | ?:[\\/]* ) continue;; 1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1229 esac 1230 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1231done 1232 1233# There might be people who depend on the old broken behavior: `$host' 1234# used to hold the argument of --host etc. 1235# FIXME: To remove some day. 1236build=$build_alias 1237host=$host_alias 1238target=$target_alias 1239 1240# FIXME: To remove some day. 1241if test "x$host_alias" != x; then 1242 if test "x$build_alias" = x; then 1243 cross_compiling=maybe 1244 elif test "x$build_alias" != "x$host_alias"; then 1245 cross_compiling=yes 1246 fi 1247fi 1248 1249ac_tool_prefix= 1250test -n "$host_alias" && ac_tool_prefix=$host_alias- 1251 1252test "$silent" = yes && exec 6>/dev/null 1253 1254 1255ac_pwd=`pwd` && test -n "$ac_pwd" && 1256ac_ls_di=`ls -di .` && 1257ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1258 as_fn_error $? "working directory cannot be determined" 1259test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1260 as_fn_error $? "pwd does not report name of working directory" 1261 1262 1263# Find the source files, if location was not specified. 1264if test -z "$srcdir"; then 1265 ac_srcdir_defaulted=yes 1266 # Try the directory containing this script, then the parent directory. 1267 ac_confdir=`$as_dirname -- "$as_myself" || 1268$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1269 X"$as_myself" : 'X\(//\)[^/]' \| \ 1270 X"$as_myself" : 'X\(//\)$' \| \ 1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1272$as_echo X"$as_myself" | 1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1274 s//\1/ 1275 q 1276 } 1277 /^X\(\/\/\)[^/].*/{ 1278 s//\1/ 1279 q 1280 } 1281 /^X\(\/\/\)$/{ 1282 s//\1/ 1283 q 1284 } 1285 /^X\(\/\).*/{ 1286 s//\1/ 1287 q 1288 } 1289 s/.*/./; q'` 1290 srcdir=$ac_confdir 1291 if test ! -r "$srcdir/$ac_unique_file"; then 1292 srcdir=.. 1293 fi 1294else 1295 ac_srcdir_defaulted=no 1296fi 1297if test ! -r "$srcdir/$ac_unique_file"; then 1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1299 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1300fi 1301ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1302ac_abs_confdir=`( 1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1304 pwd)` 1305# When building in place, set srcdir=. 1306if test "$ac_abs_confdir" = "$ac_pwd"; then 1307 srcdir=. 1308fi 1309# Remove unnecessary trailing slashes from srcdir. 1310# Double slashes in file names in object file debugging info 1311# mess up M-x gdb in Emacs. 1312case $srcdir in 1313*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1314esac 1315for ac_var in $ac_precious_vars; do 1316 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1317 eval ac_env_${ac_var}_value=\$${ac_var} 1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1319 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1320done 1321 1322# 1323# Report the --help message. 1324# 1325if test "$ac_init_help" = "long"; then 1326 # Omit some internal or obsolete options to make the list less imposing. 1327 # This message is too long to be a string in the A/UX 3.1 sh. 1328 cat <<_ACEOF 1329\`configure' configures readosm 1.1.0a to adapt to many kinds of systems. 1330 1331Usage: $0 [OPTION]... [VAR=VALUE]... 1332 1333To assign environment variables (e.g., CC, CFLAGS...), specify them as 1334VAR=VALUE. See below for descriptions of some of the useful variables. 1335 1336Defaults for the options are specified in brackets. 1337 1338Configuration: 1339 -h, --help display this help and exit 1340 --help=short display options specific to this package 1341 --help=recursive display the short help of all the included packages 1342 -V, --version display version information and exit 1343 -q, --quiet, --silent do not print \`checking ...' messages 1344 --cache-file=FILE cache test results in FILE [disabled] 1345 -C, --config-cache alias for \`--cache-file=config.cache' 1346 -n, --no-create do not create output files 1347 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1348 1349Installation directories: 1350 --prefix=PREFIX install architecture-independent files in PREFIX 1351 [$ac_default_prefix] 1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1353 [PREFIX] 1354 1355By default, \`make install' will install all the files in 1356\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1357an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1358for instance \`--prefix=\$HOME'. 1359 1360For better control, use the options below. 1361 1362Fine tuning of the installation directories: 1363 --bindir=DIR user executables [EPREFIX/bin] 1364 --sbindir=DIR system admin executables [EPREFIX/sbin] 1365 --libexecdir=DIR program executables [EPREFIX/libexec] 1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1369 --libdir=DIR object code libraries [EPREFIX/lib] 1370 --includedir=DIR C header files [PREFIX/include] 1371 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1374 --infodir=DIR info documentation [DATAROOTDIR/info] 1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1376 --mandir=DIR man documentation [DATAROOTDIR/man] 1377 --docdir=DIR documentation root [DATAROOTDIR/doc/readosm] 1378 --htmldir=DIR html documentation [DOCDIR] 1379 --dvidir=DIR dvi documentation [DOCDIR] 1380 --pdfdir=DIR pdf documentation [DOCDIR] 1381 --psdir=DIR ps documentation [DOCDIR] 1382_ACEOF 1383 1384 cat <<\_ACEOF 1385 1386Program names: 1387 --program-prefix=PREFIX prepend PREFIX to installed program names 1388 --program-suffix=SUFFIX append SUFFIX to installed program names 1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1390 1391System types: 1392 --build=BUILD configure for building on BUILD [guessed] 1393 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1394_ACEOF 1395fi 1396 1397if test -n "$ac_init_help"; then 1398 case $ac_init_help in 1399 short | recursive ) echo "Configuration of readosm 1.1.0a:";; 1400 esac 1401 cat <<\_ACEOF 1402 1403Optional Features: 1404 --disable-option-checking ignore unrecognized --enable/--with options 1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1407 --enable-silent-rules less verbose build output (undo: "make V=1") 1408 --disable-silent-rules verbose build output (undo: "make V=0") 1409 --enable-maintainer-mode 1410 enable make rules and dependencies not useful (and 1411 sometimes confusing) to the casual installer 1412 --enable-dependency-tracking 1413 do not reject slow dependency extractors 1414 --disable-dependency-tracking 1415 speeds up one-time build 1416 --enable-shared[=PKGS] build shared libraries [default=yes] 1417 --enable-static[=PKGS] build static libraries [default=yes] 1418 --enable-fast-install[=PKGS] 1419 optimize for fast installation [default=yes] 1420 --disable-libtool-lock avoid locking (might break parallel builds) 1421 --enable-gcov turn on code coverage analysis tools 1422 1423Optional Packages: 1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1426 --with-pic try to use only PIC/non-PIC objects [default=use 1427 both] 1428 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1429 --with-sysroot=DIR Search for dependent libraries within DIR 1430 (or the compiler's sysroot if not specified). 1431 1432Some influential environment variables: 1433 CC C compiler command 1434 CFLAGS C compiler flags 1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1436 nonstandard directory <lib dir> 1437 LIBS libraries to pass to the linker, e.g. -l<library> 1438 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1439 you have headers in a nonstandard directory <include dir> 1440 CPP C preprocessor 1441 CXX C++ compiler command 1442 CXXFLAGS C++ compiler flags 1443 CXXCPP C++ preprocessor 1444 1445Use these variables to override the choices made by `configure' or to help 1446it to find libraries and programs with nonstandard names/locations. 1447 1448Report bugs to <a.furieri@lqt.it>. 1449_ACEOF 1450ac_status=$? 1451fi 1452 1453if test "$ac_init_help" = "recursive"; then 1454 # If there are subdirs, report their specific --help. 1455 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1456 test -d "$ac_dir" || 1457 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1458 continue 1459 ac_builddir=. 1460 1461case "$ac_dir" in 1462.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1463*) 1464 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1465 # A ".." for each directory in $ac_dir_suffix. 1466 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1467 case $ac_top_builddir_sub in 1468 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1469 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1470 esac ;; 1471esac 1472ac_abs_top_builddir=$ac_pwd 1473ac_abs_builddir=$ac_pwd$ac_dir_suffix 1474# for backward compatibility: 1475ac_top_builddir=$ac_top_build_prefix 1476 1477case $srcdir in 1478 .) # We are building in place. 1479 ac_srcdir=. 1480 ac_top_srcdir=$ac_top_builddir_sub 1481 ac_abs_top_srcdir=$ac_pwd ;; 1482 [\\/]* | ?:[\\/]* ) # Absolute name. 1483 ac_srcdir=$srcdir$ac_dir_suffix; 1484 ac_top_srcdir=$srcdir 1485 ac_abs_top_srcdir=$srcdir ;; 1486 *) # Relative name. 1487 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1488 ac_top_srcdir=$ac_top_build_prefix$srcdir 1489 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1490esac 1491ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1492 1493 cd "$ac_dir" || { ac_status=$?; continue; } 1494 # Check for guested configure. 1495 if test -f "$ac_srcdir/configure.gnu"; then 1496 echo && 1497 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1498 elif test -f "$ac_srcdir/configure"; then 1499 echo && 1500 $SHELL "$ac_srcdir/configure" --help=recursive 1501 else 1502 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1503 fi || ac_status=$? 1504 cd "$ac_pwd" || { ac_status=$?; break; } 1505 done 1506fi 1507 1508test -n "$ac_init_help" && exit $ac_status 1509if $ac_init_version; then 1510 cat <<\_ACEOF 1511readosm configure 1.1.0a 1512generated by GNU Autoconf 2.69 1513 1514Copyright (C) 2012 Free Software Foundation, Inc. 1515This configure script is free software; the Free Software Foundation 1516gives unlimited permission to copy, distribute and modify it. 1517_ACEOF 1518 exit 1519fi 1520 1521## ------------------------ ## 1522## Autoconf initialization. ## 1523## ------------------------ ## 1524 1525# ac_fn_c_try_compile LINENO 1526# -------------------------- 1527# Try to compile conftest.$ac_ext, and return whether this succeeded. 1528ac_fn_c_try_compile () 1529{ 1530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1531 rm -f conftest.$ac_objext 1532 if { { ac_try="$ac_compile" 1533case "(($ac_try" in 1534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1535 *) ac_try_echo=$ac_try;; 1536esac 1537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1538$as_echo "$ac_try_echo"; } >&5 1539 (eval "$ac_compile") 2>conftest.err 1540 ac_status=$? 1541 if test -s conftest.err; then 1542 grep -v '^ *+' conftest.err >conftest.er1 1543 cat conftest.er1 >&5 1544 mv -f conftest.er1 conftest.err 1545 fi 1546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1547 test $ac_status = 0; } && { 1548 test -z "$ac_c_werror_flag" || 1549 test ! -s conftest.err 1550 } && test -s conftest.$ac_objext; then : 1551 ac_retval=0 1552else 1553 $as_echo "$as_me: failed program was:" >&5 1554sed 's/^/| /' conftest.$ac_ext >&5 1555 1556 ac_retval=1 1557fi 1558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1559 as_fn_set_status $ac_retval 1560 1561} # ac_fn_c_try_compile 1562 1563# ac_fn_c_try_cpp LINENO 1564# ---------------------- 1565# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1566ac_fn_c_try_cpp () 1567{ 1568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1569 if { { ac_try="$ac_cpp conftest.$ac_ext" 1570case "(($ac_try" in 1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1572 *) ac_try_echo=$ac_try;; 1573esac 1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1575$as_echo "$ac_try_echo"; } >&5 1576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1577 ac_status=$? 1578 if test -s conftest.err; then 1579 grep -v '^ *+' conftest.err >conftest.er1 1580 cat conftest.er1 >&5 1581 mv -f conftest.er1 conftest.err 1582 fi 1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1584 test $ac_status = 0; } > conftest.i && { 1585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1586 test ! -s conftest.err 1587 }; then : 1588 ac_retval=0 1589else 1590 $as_echo "$as_me: failed program was:" >&5 1591sed 's/^/| /' conftest.$ac_ext >&5 1592 1593 ac_retval=1 1594fi 1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1596 as_fn_set_status $ac_retval 1597 1598} # ac_fn_c_try_cpp 1599 1600# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1601# ------------------------------------------------------- 1602# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1603# the include files in INCLUDES and setting the cache variable VAR 1604# accordingly. 1605ac_fn_c_check_header_mongrel () 1606{ 1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1608 if eval \${$3+:} false; then : 1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1610$as_echo_n "checking for $2... " >&6; } 1611if eval \${$3+:} false; then : 1612 $as_echo_n "(cached) " >&6 1613fi 1614eval ac_res=\$$3 1615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1616$as_echo "$ac_res" >&6; } 1617else 1618 # Is the header compilable? 1619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1620$as_echo_n "checking $2 usability... " >&6; } 1621cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1622/* end confdefs.h. */ 1623$4 1624#include <$2> 1625_ACEOF 1626if ac_fn_c_try_compile "$LINENO"; then : 1627 ac_header_compiler=yes 1628else 1629 ac_header_compiler=no 1630fi 1631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1633$as_echo "$ac_header_compiler" >&6; } 1634 1635# Is the header present? 1636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1637$as_echo_n "checking $2 presence... " >&6; } 1638cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1639/* end confdefs.h. */ 1640#include <$2> 1641_ACEOF 1642if ac_fn_c_try_cpp "$LINENO"; then : 1643 ac_header_preproc=yes 1644else 1645 ac_header_preproc=no 1646fi 1647rm -f conftest.err conftest.i conftest.$ac_ext 1648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1649$as_echo "$ac_header_preproc" >&6; } 1650 1651# So? What about this header? 1652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1653 yes:no: ) 1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1655$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1657$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1658 ;; 1659 no:yes:* ) 1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1661$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1663$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1665$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1667$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1669$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1670( $as_echo "## ------------------------------- ## 1671## Report this to a.furieri@lqt.it ## 1672## ------------------------------- ##" 1673 ) | sed "s/^/$as_me: WARNING: /" >&2 1674 ;; 1675esac 1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1677$as_echo_n "checking for $2... " >&6; } 1678if eval \${$3+:} false; then : 1679 $as_echo_n "(cached) " >&6 1680else 1681 eval "$3=\$ac_header_compiler" 1682fi 1683eval ac_res=\$$3 1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1685$as_echo "$ac_res" >&6; } 1686fi 1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1688 1689} # ac_fn_c_check_header_mongrel 1690 1691# ac_fn_c_try_run LINENO 1692# ---------------------- 1693# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1694# that executables *can* be run. 1695ac_fn_c_try_run () 1696{ 1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1698 if { { ac_try="$ac_link" 1699case "(($ac_try" in 1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1701 *) ac_try_echo=$ac_try;; 1702esac 1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1704$as_echo "$ac_try_echo"; } >&5 1705 (eval "$ac_link") 2>&5 1706 ac_status=$? 1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1708 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1709 { { case "(($ac_try" in 1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1711 *) ac_try_echo=$ac_try;; 1712esac 1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1714$as_echo "$ac_try_echo"; } >&5 1715 (eval "$ac_try") 2>&5 1716 ac_status=$? 1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1718 test $ac_status = 0; }; }; then : 1719 ac_retval=0 1720else 1721 $as_echo "$as_me: program exited with status $ac_status" >&5 1722 $as_echo "$as_me: failed program was:" >&5 1723sed 's/^/| /' conftest.$ac_ext >&5 1724 1725 ac_retval=$ac_status 1726fi 1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1729 as_fn_set_status $ac_retval 1730 1731} # ac_fn_c_try_run 1732 1733# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1734# ------------------------------------------------------- 1735# Tests whether HEADER exists and can be compiled using the include files in 1736# INCLUDES, setting the cache variable VAR accordingly. 1737ac_fn_c_check_header_compile () 1738{ 1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1741$as_echo_n "checking for $2... " >&6; } 1742if eval \${$3+:} false; then : 1743 $as_echo_n "(cached) " >&6 1744else 1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1746/* end confdefs.h. */ 1747$4 1748#include <$2> 1749_ACEOF 1750if ac_fn_c_try_compile "$LINENO"; then : 1751 eval "$3=yes" 1752else 1753 eval "$3=no" 1754fi 1755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1756fi 1757eval ac_res=\$$3 1758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1759$as_echo "$ac_res" >&6; } 1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1761 1762} # ac_fn_c_check_header_compile 1763 1764# ac_fn_cxx_try_compile LINENO 1765# ---------------------------- 1766# Try to compile conftest.$ac_ext, and return whether this succeeded. 1767ac_fn_cxx_try_compile () 1768{ 1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1770 rm -f conftest.$ac_objext 1771 if { { ac_try="$ac_compile" 1772case "(($ac_try" in 1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1774 *) ac_try_echo=$ac_try;; 1775esac 1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1777$as_echo "$ac_try_echo"; } >&5 1778 (eval "$ac_compile") 2>conftest.err 1779 ac_status=$? 1780 if test -s conftest.err; then 1781 grep -v '^ *+' conftest.err >conftest.er1 1782 cat conftest.er1 >&5 1783 mv -f conftest.er1 conftest.err 1784 fi 1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1786 test $ac_status = 0; } && { 1787 test -z "$ac_cxx_werror_flag" || 1788 test ! -s conftest.err 1789 } && test -s conftest.$ac_objext; then : 1790 ac_retval=0 1791else 1792 $as_echo "$as_me: failed program was:" >&5 1793sed 's/^/| /' conftest.$ac_ext >&5 1794 1795 ac_retval=1 1796fi 1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1798 as_fn_set_status $ac_retval 1799 1800} # ac_fn_cxx_try_compile 1801 1802# ac_fn_c_try_link LINENO 1803# ----------------------- 1804# Try to link conftest.$ac_ext, and return whether this succeeded. 1805ac_fn_c_try_link () 1806{ 1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1808 rm -f conftest.$ac_objext conftest$ac_exeext 1809 if { { ac_try="$ac_link" 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_link") 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_c_werror_flag" || 1826 test ! -s conftest.err 1827 } && test -s conftest$ac_exeext && { 1828 test "$cross_compiling" = yes || 1829 test -x conftest$ac_exeext 1830 }; then : 1831 ac_retval=0 1832else 1833 $as_echo "$as_me: failed program was:" >&5 1834sed 's/^/| /' conftest.$ac_ext >&5 1835 1836 ac_retval=1 1837fi 1838 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1839 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1840 # interfere with the next link command; also delete a directory that is 1841 # left behind by Apple's compiler. We do this before executing the actions. 1842 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1844 as_fn_set_status $ac_retval 1845 1846} # ac_fn_c_try_link 1847 1848# ac_fn_c_check_func LINENO FUNC VAR 1849# ---------------------------------- 1850# Tests whether FUNC exists, setting the cache variable VAR accordingly 1851ac_fn_c_check_func () 1852{ 1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1855$as_echo_n "checking for $2... " >&6; } 1856if eval \${$3+:} false; then : 1857 $as_echo_n "(cached) " >&6 1858else 1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1860/* end confdefs.h. */ 1861/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1862 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1863#define $2 innocuous_$2 1864 1865/* System header to define __stub macros and hopefully few prototypes, 1866 which can conflict with char $2 (); below. 1867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1868 <limits.h> exists even on freestanding compilers. */ 1869 1870#ifdef __STDC__ 1871# include <limits.h> 1872#else 1873# include <assert.h> 1874#endif 1875 1876#undef $2 1877 1878/* Override any GCC internal prototype to avoid an error. 1879 Use char because int might match the return type of a GCC 1880 builtin and then its argument prototype would still apply. */ 1881#ifdef __cplusplus 1882extern "C" 1883#endif 1884char $2 (); 1885/* The GNU C library defines this for functions which it implements 1886 to always fail with ENOSYS. Some functions are actually named 1887 something starting with __ and the normal name is an alias. */ 1888#if defined __stub_$2 || defined __stub___$2 1889choke me 1890#endif 1891 1892int 1893main () 1894{ 1895return $2 (); 1896 ; 1897 return 0; 1898} 1899_ACEOF 1900if ac_fn_c_try_link "$LINENO"; then : 1901 eval "$3=yes" 1902else 1903 eval "$3=no" 1904fi 1905rm -f core conftest.err conftest.$ac_objext \ 1906 conftest$ac_exeext conftest.$ac_ext 1907fi 1908eval ac_res=\$$3 1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1910$as_echo "$ac_res" >&6; } 1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1912 1913} # ac_fn_c_check_func 1914 1915# ac_fn_cxx_try_cpp LINENO 1916# ------------------------ 1917# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1918ac_fn_cxx_try_cpp () 1919{ 1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1921 if { { ac_try="$ac_cpp conftest.$ac_ext" 1922case "(($ac_try" in 1923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1924 *) ac_try_echo=$ac_try;; 1925esac 1926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1927$as_echo "$ac_try_echo"; } >&5 1928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1929 ac_status=$? 1930 if test -s conftest.err; then 1931 grep -v '^ *+' conftest.err >conftest.er1 1932 cat conftest.er1 >&5 1933 mv -f conftest.er1 conftest.err 1934 fi 1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1936 test $ac_status = 0; } > conftest.i && { 1937 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1938 test ! -s conftest.err 1939 }; then : 1940 ac_retval=0 1941else 1942 $as_echo "$as_me: failed program was:" >&5 1943sed 's/^/| /' conftest.$ac_ext >&5 1944 1945 ac_retval=1 1946fi 1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1948 as_fn_set_status $ac_retval 1949 1950} # ac_fn_cxx_try_cpp 1951 1952# ac_fn_cxx_try_link LINENO 1953# ------------------------- 1954# Try to link conftest.$ac_ext, and return whether this succeeded. 1955ac_fn_cxx_try_link () 1956{ 1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1958 rm -f conftest.$ac_objext conftest$ac_exeext 1959 if { { ac_try="$ac_link" 1960case "(($ac_try" in 1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1962 *) ac_try_echo=$ac_try;; 1963esac 1964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1965$as_echo "$ac_try_echo"; } >&5 1966 (eval "$ac_link") 2>conftest.err 1967 ac_status=$? 1968 if test -s conftest.err; then 1969 grep -v '^ *+' conftest.err >conftest.er1 1970 cat conftest.er1 >&5 1971 mv -f conftest.er1 conftest.err 1972 fi 1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1974 test $ac_status = 0; } && { 1975 test -z "$ac_cxx_werror_flag" || 1976 test ! -s conftest.err 1977 } && test -s conftest$ac_exeext && { 1978 test "$cross_compiling" = yes || 1979 test -x conftest$ac_exeext 1980 }; then : 1981 ac_retval=0 1982else 1983 $as_echo "$as_me: failed program was:" >&5 1984sed 's/^/| /' conftest.$ac_ext >&5 1985 1986 ac_retval=1 1987fi 1988 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1989 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1990 # interfere with the next link command; also delete a directory that is 1991 # left behind by Apple's compiler. We do this before executing the actions. 1992 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1994 as_fn_set_status $ac_retval 1995 1996} # ac_fn_cxx_try_link 1997 1998# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1999# ------------------------------------------- 2000# Tests whether TYPE exists after having included INCLUDES, setting cache 2001# variable VAR accordingly. 2002ac_fn_c_check_type () 2003{ 2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2006$as_echo_n "checking for $2... " >&6; } 2007if eval \${$3+:} false; then : 2008 $as_echo_n "(cached) " >&6 2009else 2010 eval "$3=no" 2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2012/* end confdefs.h. */ 2013$4 2014int 2015main () 2016{ 2017if (sizeof ($2)) 2018 return 0; 2019 ; 2020 return 0; 2021} 2022_ACEOF 2023if ac_fn_c_try_compile "$LINENO"; then : 2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2025/* end confdefs.h. */ 2026$4 2027int 2028main () 2029{ 2030if (sizeof (($2))) 2031 return 0; 2032 ; 2033 return 0; 2034} 2035_ACEOF 2036if ac_fn_c_try_compile "$LINENO"; then : 2037 2038else 2039 eval "$3=yes" 2040fi 2041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2042fi 2043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2044fi 2045eval ac_res=\$$3 2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2047$as_echo "$ac_res" >&6; } 2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2049 2050} # ac_fn_c_check_type 2051cat >config.log <<_ACEOF 2052This file contains any messages produced by compilers while 2053running configure, to aid debugging if configure makes a mistake. 2054 2055It was created by readosm $as_me 1.1.0a, which was 2056generated by GNU Autoconf 2.69. Invocation command line was 2057 2058 $ $0 $@ 2059 2060_ACEOF 2061exec 5>>config.log 2062{ 2063cat <<_ASUNAME 2064## --------- ## 2065## Platform. ## 2066## --------- ## 2067 2068hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2069uname -m = `(uname -m) 2>/dev/null || echo unknown` 2070uname -r = `(uname -r) 2>/dev/null || echo unknown` 2071uname -s = `(uname -s) 2>/dev/null || echo unknown` 2072uname -v = `(uname -v) 2>/dev/null || echo unknown` 2073 2074/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2075/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2076 2077/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2078/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2079/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2080/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2081/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2082/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2083/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2084 2085_ASUNAME 2086 2087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2088for as_dir in $PATH 2089do 2090 IFS=$as_save_IFS 2091 test -z "$as_dir" && as_dir=. 2092 $as_echo "PATH: $as_dir" 2093 done 2094IFS=$as_save_IFS 2095 2096} >&5 2097 2098cat >&5 <<_ACEOF 2099 2100 2101## ----------- ## 2102## Core tests. ## 2103## ----------- ## 2104 2105_ACEOF 2106 2107 2108# Keep a trace of the command line. 2109# Strip out --no-create and --no-recursion so they do not pile up. 2110# Strip out --silent because we don't want to record it for future runs. 2111# Also quote any args containing shell meta-characters. 2112# Make two passes to allow for proper duplicate-argument suppression. 2113ac_configure_args= 2114ac_configure_args0= 2115ac_configure_args1= 2116ac_must_keep_next=false 2117for ac_pass in 1 2 2118do 2119 for ac_arg 2120 do 2121 case $ac_arg in 2122 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2124 | -silent | --silent | --silen | --sile | --sil) 2125 continue ;; 2126 *\'*) 2127 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2128 esac 2129 case $ac_pass in 2130 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2131 2) 2132 as_fn_append ac_configure_args1 " '$ac_arg'" 2133 if test $ac_must_keep_next = true; then 2134 ac_must_keep_next=false # Got value, back to normal. 2135 else 2136 case $ac_arg in 2137 *=* | --config-cache | -C | -disable-* | --disable-* \ 2138 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2139 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2140 | -with-* | --with-* | -without-* | --without-* | --x) 2141 case "$ac_configure_args0 " in 2142 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2143 esac 2144 ;; 2145 -* ) ac_must_keep_next=true ;; 2146 esac 2147 fi 2148 as_fn_append ac_configure_args " '$ac_arg'" 2149 ;; 2150 esac 2151 done 2152done 2153{ ac_configure_args0=; unset ac_configure_args0;} 2154{ ac_configure_args1=; unset ac_configure_args1;} 2155 2156# When interrupted or exit'd, cleanup temporary files, and complete 2157# config.log. We remove comments because anyway the quotes in there 2158# would cause problems or look ugly. 2159# WARNING: Use '\'' to represent an apostrophe within the trap. 2160# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2161trap 'exit_status=$? 2162 # Save into config.log some information that might help in debugging. 2163 { 2164 echo 2165 2166 $as_echo "## ---------------- ## 2167## Cache variables. ## 2168## ---------------- ##" 2169 echo 2170 # The following way of writing the cache mishandles newlines in values, 2171( 2172 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2173 eval ac_val=\$$ac_var 2174 case $ac_val in #( 2175 *${as_nl}*) 2176 case $ac_var in #( 2177 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2178$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2179 esac 2180 case $ac_var in #( 2181 _ | IFS | as_nl) ;; #( 2182 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2183 *) { eval $ac_var=; unset $ac_var;} ;; 2184 esac ;; 2185 esac 2186 done 2187 (set) 2>&1 | 2188 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2189 *${as_nl}ac_space=\ *) 2190 sed -n \ 2191 "s/'\''/'\''\\\\'\'''\''/g; 2192 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2193 ;; #( 2194 *) 2195 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2196 ;; 2197 esac | 2198 sort 2199) 2200 echo 2201 2202 $as_echo "## ----------------- ## 2203## Output variables. ## 2204## ----------------- ##" 2205 echo 2206 for ac_var in $ac_subst_vars 2207 do 2208 eval ac_val=\$$ac_var 2209 case $ac_val in 2210 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2211 esac 2212 $as_echo "$ac_var='\''$ac_val'\''" 2213 done | sort 2214 echo 2215 2216 if test -n "$ac_subst_files"; then 2217 $as_echo "## ------------------- ## 2218## File substitutions. ## 2219## ------------------- ##" 2220 echo 2221 for ac_var in $ac_subst_files 2222 do 2223 eval ac_val=\$$ac_var 2224 case $ac_val in 2225 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2226 esac 2227 $as_echo "$ac_var='\''$ac_val'\''" 2228 done | sort 2229 echo 2230 fi 2231 2232 if test -s confdefs.h; then 2233 $as_echo "## ----------- ## 2234## confdefs.h. ## 2235## ----------- ##" 2236 echo 2237 cat confdefs.h 2238 echo 2239 fi 2240 test "$ac_signal" != 0 && 2241 $as_echo "$as_me: caught signal $ac_signal" 2242 $as_echo "$as_me: exit $exit_status" 2243 } >&5 2244 rm -f core *.core core.conftest.* && 2245 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2246 exit $exit_status 2247' 0 2248for ac_signal in 1 2 13 15; do 2249 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2250done 2251ac_signal=0 2252 2253# confdefs.h avoids OS command line length limits that DEFS can exceed. 2254rm -f -r conftest* confdefs.h 2255 2256$as_echo "/* confdefs.h */" > confdefs.h 2257 2258# Predefined preprocessor variables. 2259 2260cat >>confdefs.h <<_ACEOF 2261#define PACKAGE_NAME "$PACKAGE_NAME" 2262_ACEOF 2263 2264cat >>confdefs.h <<_ACEOF 2265#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2266_ACEOF 2267 2268cat >>confdefs.h <<_ACEOF 2269#define PACKAGE_VERSION "$PACKAGE_VERSION" 2270_ACEOF 2271 2272cat >>confdefs.h <<_ACEOF 2273#define PACKAGE_STRING "$PACKAGE_STRING" 2274_ACEOF 2275 2276cat >>confdefs.h <<_ACEOF 2277#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2278_ACEOF 2279 2280cat >>confdefs.h <<_ACEOF 2281#define PACKAGE_URL "$PACKAGE_URL" 2282_ACEOF 2283 2284 2285# Let the site file select an alternate cache file if it wants to. 2286# Prefer an explicitly selected file to automatically selected ones. 2287ac_site_file1=NONE 2288ac_site_file2=NONE 2289if test -n "$CONFIG_SITE"; then 2290 # We do not want a PATH search for config.site. 2291 case $CONFIG_SITE in #(( 2292 -*) ac_site_file1=./$CONFIG_SITE;; 2293 */*) ac_site_file1=$CONFIG_SITE;; 2294 *) ac_site_file1=./$CONFIG_SITE;; 2295 esac 2296elif test "x$prefix" != xNONE; then 2297 ac_site_file1=$prefix/share/config.site 2298 ac_site_file2=$prefix/etc/config.site 2299else 2300 ac_site_file1=$ac_default_prefix/share/config.site 2301 ac_site_file2=$ac_default_prefix/etc/config.site 2302fi 2303for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2304do 2305 test "x$ac_site_file" = xNONE && continue 2306 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2307 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2308$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2309 sed 's/^/| /' "$ac_site_file" >&5 2310 . "$ac_site_file" \ 2311 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2313as_fn_error $? "failed to load site script $ac_site_file 2314See \`config.log' for more details" "$LINENO" 5; } 2315 fi 2316done 2317 2318if test -r "$cache_file"; then 2319 # Some versions of bash will fail to source /dev/null (special files 2320 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2321 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2322 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2323$as_echo "$as_me: loading cache $cache_file" >&6;} 2324 case $cache_file in 2325 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2326 *) . "./$cache_file";; 2327 esac 2328 fi 2329else 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2331$as_echo "$as_me: creating cache $cache_file" >&6;} 2332 >$cache_file 2333fi 2334 2335# Check that the precious variables saved in the cache have kept the same 2336# value. 2337ac_cache_corrupted=false 2338for ac_var in $ac_precious_vars; do 2339 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2340 eval ac_new_set=\$ac_env_${ac_var}_set 2341 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2342 eval ac_new_val=\$ac_env_${ac_var}_value 2343 case $ac_old_set,$ac_new_set in 2344 set,) 2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2346$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2347 ac_cache_corrupted=: ;; 2348 ,set) 2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2350$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2351 ac_cache_corrupted=: ;; 2352 ,);; 2353 *) 2354 if test "x$ac_old_val" != "x$ac_new_val"; then 2355 # differences in whitespace do not lead to failure. 2356 ac_old_val_w=`echo x $ac_old_val` 2357 ac_new_val_w=`echo x $ac_new_val` 2358 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2360$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2361 ac_cache_corrupted=: 2362 else 2363 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2364$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2365 eval $ac_var=\$ac_old_val 2366 fi 2367 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2368$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2369 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2370$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2371 fi;; 2372 esac 2373 # Pass precious variables to config.status. 2374 if test "$ac_new_set" = set; then 2375 case $ac_new_val in 2376 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2377 *) ac_arg=$ac_var=$ac_new_val ;; 2378 esac 2379 case " $ac_configure_args " in 2380 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2381 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2382 esac 2383 fi 2384done 2385if $ac_cache_corrupted; then 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2389$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2390 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2391fi 2392## -------------------- ## 2393## Main body of script. ## 2394## -------------------- ## 2395 2396ac_ext=c 2397ac_cpp='$CPP $CPPFLAGS' 2398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2400ac_compiler_gnu=$ac_cv_c_compiler_gnu 2401 2402 2403ac_ext=c 2404ac_cpp='$CPP $CPPFLAGS' 2405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2407ac_compiler_gnu=$ac_cv_c_compiler_gnu 2408 2409ac_aux_dir= 2410for ac_dir in . "$srcdir"/.; do 2411 if test -f "$ac_dir/install-sh"; then 2412 ac_aux_dir=$ac_dir 2413 ac_install_sh="$ac_aux_dir/install-sh -c" 2414 break 2415 elif test -f "$ac_dir/install.sh"; then 2416 ac_aux_dir=$ac_dir 2417 ac_install_sh="$ac_aux_dir/install.sh -c" 2418 break 2419 elif test -f "$ac_dir/shtool"; then 2420 ac_aux_dir=$ac_dir 2421 ac_install_sh="$ac_aux_dir/shtool install -c" 2422 break 2423 fi 2424done 2425if test -z "$ac_aux_dir"; then 2426 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2427fi 2428 2429# These three variables are undocumented and unsupported, 2430# and are intended to be withdrawn in a future Autoconf release. 2431# They can cause serious problems if a builder's source tree is in a directory 2432# whose full name contains unusual characters. 2433ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2434ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2435ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2436 2437 2438 2439 2440am__api_version='1.16' 2441 2442# Find a good install program. We prefer a C program (faster), 2443# so one script is as good as another. But avoid the broken or 2444# incompatible versions: 2445# SysV /etc/install, /usr/sbin/install 2446# SunOS /usr/etc/install 2447# IRIX /sbin/install 2448# AIX /bin/install 2449# AmigaOS /C/install, which installs bootblocks on floppy discs 2450# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2451# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2452# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2453# OS/2's system install, which has a completely different semantic 2454# ./install, which can be erroneously created by make from ./install.sh. 2455# Reject install programs that cannot install multiple files. 2456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2457$as_echo_n "checking for a BSD-compatible install... " >&6; } 2458if test -z "$INSTALL"; then 2459if ${ac_cv_path_install+:} false; then : 2460 $as_echo_n "(cached) " >&6 2461else 2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2463for as_dir in $PATH 2464do 2465 IFS=$as_save_IFS 2466 test -z "$as_dir" && as_dir=. 2467 # Account for people who put trailing slashes in PATH elements. 2468case $as_dir/ in #(( 2469 ./ | .// | /[cC]/* | \ 2470 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2471 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2472 /usr/ucb/* ) ;; 2473 *) 2474 # OSF1 and SCO ODT 3.0 have their own names for install. 2475 # Don't use installbsd from OSF since it installs stuff as root 2476 # by default. 2477 for ac_prog in ginstall scoinst install; do 2478 for ac_exec_ext in '' $ac_executable_extensions; do 2479 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2480 if test $ac_prog = install && 2481 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2482 # AIX install. It has an incompatible calling convention. 2483 : 2484 elif test $ac_prog = install && 2485 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2486 # program-specific install script used by HP pwplus--don't use. 2487 : 2488 else 2489 rm -rf conftest.one conftest.two conftest.dir 2490 echo one > conftest.one 2491 echo two > conftest.two 2492 mkdir conftest.dir 2493 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2494 test -s conftest.one && test -s conftest.two && 2495 test -s conftest.dir/conftest.one && 2496 test -s conftest.dir/conftest.two 2497 then 2498 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2499 break 3 2500 fi 2501 fi 2502 fi 2503 done 2504 done 2505 ;; 2506esac 2507 2508 done 2509IFS=$as_save_IFS 2510 2511rm -rf conftest.one conftest.two conftest.dir 2512 2513fi 2514 if test "${ac_cv_path_install+set}" = set; then 2515 INSTALL=$ac_cv_path_install 2516 else 2517 # As a last resort, use the slow shell script. Don't cache a 2518 # value for INSTALL within a source directory, because that will 2519 # break other packages using the cache if that directory is 2520 # removed, or if the value is a relative name. 2521 INSTALL=$ac_install_sh 2522 fi 2523fi 2524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2525$as_echo "$INSTALL" >&6; } 2526 2527# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2528# It thinks the first close brace ends the variable substitution. 2529test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2530 2531test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2532 2533test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2534 2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2536$as_echo_n "checking whether build environment is sane... " >&6; } 2537# Reject unsafe characters in $srcdir or the absolute working directory 2538# name. Accept space and tab only in the latter. 2539am_lf=' 2540' 2541case `pwd` in 2542 *[\\\"\#\$\&\'\`$am_lf]*) 2543 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2544esac 2545case $srcdir in 2546 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2547 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2548esac 2549 2550# Do 'set' in a subshell so we don't clobber the current shell's 2551# arguments. Must try -L first in case configure is actually a 2552# symlink; some systems play weird games with the mod time of symlinks 2553# (eg FreeBSD returns the mod time of the symlink's containing 2554# directory). 2555if ( 2556 am_has_slept=no 2557 for am_try in 1 2; do 2558 echo "timestamp, slept: $am_has_slept" > conftest.file 2559 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2560 if test "$*" = "X"; then 2561 # -L didn't work. 2562 set X `ls -t "$srcdir/configure" conftest.file` 2563 fi 2564 if test "$*" != "X $srcdir/configure conftest.file" \ 2565 && test "$*" != "X conftest.file $srcdir/configure"; then 2566 2567 # If neither matched, then we have a broken ls. This can happen 2568 # if, for instance, CONFIG_SHELL is bash and it inherits a 2569 # broken ls alias from the environment. This has actually 2570 # happened. Such a system could not be considered "sane". 2571 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2572 alias in your environment" "$LINENO" 5 2573 fi 2574 if test "$2" = conftest.file || test $am_try -eq 2; then 2575 break 2576 fi 2577 # Just in case. 2578 sleep 1 2579 am_has_slept=yes 2580 done 2581 test "$2" = conftest.file 2582 ) 2583then 2584 # Ok. 2585 : 2586else 2587 as_fn_error $? "newly created file is older than distributed files! 2588Check your system clock" "$LINENO" 5 2589fi 2590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2591$as_echo "yes" >&6; } 2592# If we didn't sleep, we still need to ensure time stamps of config.status and 2593# generated files are strictly newer. 2594am_sleep_pid= 2595if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2596 ( sleep 1 ) & 2597 am_sleep_pid=$! 2598fi 2599 2600rm -f conftest.file 2601 2602test "$program_prefix" != NONE && 2603 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2604# Use a double $ so make ignores it. 2605test "$program_suffix" != NONE && 2606 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2607# Double any \ or $. 2608# By default was `s,x,x', remove it if useless. 2609ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2610program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2611 2612# Expand $ac_aux_dir to an absolute path. 2613am_aux_dir=`cd "$ac_aux_dir" && pwd` 2614 2615if test x"${MISSING+set}" != xset; then 2616 case $am_aux_dir in 2617 *\ * | *\ *) 2618 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2619 *) 2620 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2621 esac 2622fi 2623# Use eval to expand $SHELL 2624if eval "$MISSING --is-lightweight"; then 2625 am_missing_run="$MISSING " 2626else 2627 am_missing_run= 2628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2629$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2630fi 2631 2632if test x"${install_sh+set}" != xset; then 2633 case $am_aux_dir in 2634 *\ * | *\ *) 2635 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2636 *) 2637 install_sh="\${SHELL} $am_aux_dir/install-sh" 2638 esac 2639fi 2640 2641# Installed binaries are usually stripped using 'strip' when the user 2642# run "make install-strip". However 'strip' might not be the right 2643# tool to use in cross-compilation environments, therefore Automake 2644# will honor the 'STRIP' environment variable to overrule this program. 2645if test "$cross_compiling" != no; then 2646 if test -n "$ac_tool_prefix"; then 2647 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2648set dummy ${ac_tool_prefix}strip; ac_word=$2 2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2650$as_echo_n "checking for $ac_word... " >&6; } 2651if ${ac_cv_prog_STRIP+:} false; then : 2652 $as_echo_n "(cached) " >&6 2653else 2654 if test -n "$STRIP"; then 2655 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2656else 2657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2658for as_dir in $PATH 2659do 2660 IFS=$as_save_IFS 2661 test -z "$as_dir" && as_dir=. 2662 for ac_exec_ext in '' $ac_executable_extensions; do 2663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2664 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2666 break 2 2667 fi 2668done 2669 done 2670IFS=$as_save_IFS 2671 2672fi 2673fi 2674STRIP=$ac_cv_prog_STRIP 2675if test -n "$STRIP"; then 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2677$as_echo "$STRIP" >&6; } 2678else 2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2680$as_echo "no" >&6; } 2681fi 2682 2683 2684fi 2685if test -z "$ac_cv_prog_STRIP"; then 2686 ac_ct_STRIP=$STRIP 2687 # Extract the first word of "strip", so it can be a program name with args. 2688set dummy strip; ac_word=$2 2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2690$as_echo_n "checking for $ac_word... " >&6; } 2691if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2692 $as_echo_n "(cached) " >&6 2693else 2694 if test -n "$ac_ct_STRIP"; then 2695 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2696else 2697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2698for as_dir in $PATH 2699do 2700 IFS=$as_save_IFS 2701 test -z "$as_dir" && as_dir=. 2702 for ac_exec_ext in '' $ac_executable_extensions; do 2703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2704 ac_cv_prog_ac_ct_STRIP="strip" 2705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2706 break 2 2707 fi 2708done 2709 done 2710IFS=$as_save_IFS 2711 2712fi 2713fi 2714ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2715if test -n "$ac_ct_STRIP"; then 2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2717$as_echo "$ac_ct_STRIP" >&6; } 2718else 2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2720$as_echo "no" >&6; } 2721fi 2722 2723 if test "x$ac_ct_STRIP" = x; then 2724 STRIP=":" 2725 else 2726 case $cross_compiling:$ac_tool_warned in 2727yes:) 2728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2730ac_tool_warned=yes ;; 2731esac 2732 STRIP=$ac_ct_STRIP 2733 fi 2734else 2735 STRIP="$ac_cv_prog_STRIP" 2736fi 2737 2738fi 2739INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2740 2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2742$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2743if test -z "$MKDIR_P"; then 2744 if ${ac_cv_path_mkdir+:} false; then : 2745 $as_echo_n "(cached) " >&6 2746else 2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2748for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2749do 2750 IFS=$as_save_IFS 2751 test -z "$as_dir" && as_dir=. 2752 for ac_prog in mkdir gmkdir; do 2753 for ac_exec_ext in '' $ac_executable_extensions; do 2754 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2755 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2756 'mkdir (GNU coreutils) '* | \ 2757 'mkdir (coreutils) '* | \ 2758 'mkdir (fileutils) '4.1*) 2759 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2760 break 3;; 2761 esac 2762 done 2763 done 2764 done 2765IFS=$as_save_IFS 2766 2767fi 2768 2769 test -d ./--version && rmdir ./--version 2770 if test "${ac_cv_path_mkdir+set}" = set; then 2771 MKDIR_P="$ac_cv_path_mkdir -p" 2772 else 2773 # As a last resort, use the slow shell script. Don't cache a 2774 # value for MKDIR_P within a source directory, because that will 2775 # break other packages using the cache if that directory is 2776 # removed, or if the value is a relative name. 2777 MKDIR_P="$ac_install_sh -d" 2778 fi 2779fi 2780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2781$as_echo "$MKDIR_P" >&6; } 2782 2783for ac_prog in gawk mawk nawk awk 2784do 2785 # Extract the first word of "$ac_prog", so it can be a program name with args. 2786set dummy $ac_prog; ac_word=$2 2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2788$as_echo_n "checking for $ac_word... " >&6; } 2789if ${ac_cv_prog_AWK+:} false; then : 2790 $as_echo_n "(cached) " >&6 2791else 2792 if test -n "$AWK"; then 2793 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2794else 2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2796for as_dir in $PATH 2797do 2798 IFS=$as_save_IFS 2799 test -z "$as_dir" && as_dir=. 2800 for ac_exec_ext in '' $ac_executable_extensions; do 2801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2802 ac_cv_prog_AWK="$ac_prog" 2803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2804 break 2 2805 fi 2806done 2807 done 2808IFS=$as_save_IFS 2809 2810fi 2811fi 2812AWK=$ac_cv_prog_AWK 2813if test -n "$AWK"; then 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2815$as_echo "$AWK" >&6; } 2816else 2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2818$as_echo "no" >&6; } 2819fi 2820 2821 2822 test -n "$AWK" && break 2823done 2824 2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2826$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2827set x ${MAKE-make} 2828ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2829if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2830 $as_echo_n "(cached) " >&6 2831else 2832 cat >conftest.make <<\_ACEOF 2833SHELL = /bin/sh 2834all: 2835 @echo '@@@%%%=$(MAKE)=@@@%%%' 2836_ACEOF 2837# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2838case `${MAKE-make} -f conftest.make 2>/dev/null` in 2839 *@@@%%%=?*=@@@%%%*) 2840 eval ac_cv_prog_make_${ac_make}_set=yes;; 2841 *) 2842 eval ac_cv_prog_make_${ac_make}_set=no;; 2843esac 2844rm -f conftest.make 2845fi 2846if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2848$as_echo "yes" >&6; } 2849 SET_MAKE= 2850else 2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2852$as_echo "no" >&6; } 2853 SET_MAKE="MAKE=${MAKE-make}" 2854fi 2855 2856rm -rf .tst 2>/dev/null 2857mkdir .tst 2>/dev/null 2858if test -d .tst; then 2859 am__leading_dot=. 2860else 2861 am__leading_dot=_ 2862fi 2863rmdir .tst 2>/dev/null 2864 2865# Check whether --enable-silent-rules was given. 2866if test "${enable_silent_rules+set}" = set; then : 2867 enableval=$enable_silent_rules; 2868fi 2869 2870case $enable_silent_rules in # ((( 2871 yes) AM_DEFAULT_VERBOSITY=0;; 2872 no) AM_DEFAULT_VERBOSITY=1;; 2873 *) AM_DEFAULT_VERBOSITY=1;; 2874esac 2875am_make=${MAKE-make} 2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2877$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2878if ${am_cv_make_support_nested_variables+:} false; then : 2879 $as_echo_n "(cached) " >&6 2880else 2881 if $as_echo 'TRUE=$(BAR$(V)) 2882BAR0=false 2883BAR1=true 2884V=1 2885am__doit: 2886 @$(TRUE) 2887.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2888 am_cv_make_support_nested_variables=yes 2889else 2890 am_cv_make_support_nested_variables=no 2891fi 2892fi 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2894$as_echo "$am_cv_make_support_nested_variables" >&6; } 2895if test $am_cv_make_support_nested_variables = yes; then 2896 AM_V='$(V)' 2897 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2898else 2899 AM_V=$AM_DEFAULT_VERBOSITY 2900 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2901fi 2902AM_BACKSLASH='\' 2903 2904if test "`cd $srcdir && pwd`" != "`pwd`"; then 2905 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2906 # is not polluted with repeated "-I." 2907 am__isrc=' -I$(srcdir)' 2908 # test to see if srcdir already configured 2909 if test -f $srcdir/config.status; then 2910 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2911 fi 2912fi 2913 2914# test whether we have cygpath 2915if test -z "$CYGPATH_W"; then 2916 if (cygpath --version) >/dev/null 2>/dev/null; then 2917 CYGPATH_W='cygpath -w' 2918 else 2919 CYGPATH_W=echo 2920 fi 2921fi 2922 2923 2924# Define the identity of the package. 2925 PACKAGE='readosm' 2926 VERSION='1.1.0a' 2927 2928 2929cat >>confdefs.h <<_ACEOF 2930#define PACKAGE "$PACKAGE" 2931_ACEOF 2932 2933 2934cat >>confdefs.h <<_ACEOF 2935#define VERSION "$VERSION" 2936_ACEOF 2937 2938# Some tools Automake needs. 2939 2940ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2941 2942 2943AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2944 2945 2946AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2947 2948 2949AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2950 2951 2952MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2953 2954# For better backward compatibility. To be removed once Automake 1.9.x 2955# dies out for good. For more background, see: 2956# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2957# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2958mkdir_p='$(MKDIR_P)' 2959 2960# We need awk for the "check" target (and possibly the TAP driver). The 2961# system "awk" is bad on some platforms. 2962# Always define AMTAR for backward compatibility. Yes, it's still used 2963# in the wild :-( We should find a proper way to deprecate it ... 2964AMTAR='$${TAR-tar}' 2965 2966 2967# We'll loop over all known methods to create a tar archive until one works. 2968_am_tools='gnutar pax cpio none' 2969 2970am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2971 2972 2973 2974 2975 2976 2977# POSIX will say in a future version that running "rm -f" with no argument 2978# is OK; and we want to be able to make that assumption in our Makefile 2979# recipes. So use an aggressive probe to check that the usage we want is 2980# actually supported "in the wild" to an acceptable degree. 2981# See automake bug#10828. 2982# To make any issue more visible, cause the running configure to be aborted 2983# by default if the 'rm' program in use doesn't match our expectations; the 2984# user can still override this though. 2985if rm -f && rm -fr && rm -rf; then : OK; else 2986 cat >&2 <<'END' 2987Oops! 2988 2989Your 'rm' program seems unable to run without file operands specified 2990on the command line, even when the '-f' option is present. This is contrary 2991to the behaviour of most rm programs out there, and not conforming with 2992the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2993 2994Please tell bug-automake@gnu.org about your system, including the value 2995of your $PATH and any error possibly output before this message. This 2996can help us improve future automake versions. 2997 2998END 2999 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3000 echo 'Configuration will proceed anyway, since you have set the' >&2 3001 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3002 echo >&2 3003 else 3004 cat >&2 <<'END' 3005Aborting the configuration process, to ensure you take notice of the issue. 3006 3007You can download and install GNU coreutils to get an 'rm' implementation 3008that behaves properly: <https://www.gnu.org/software/coreutils/>. 3009 3010If you want to complete the configuration process using your problematic 3011'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3012to "yes", and re-run configure. 3013 3014END 3015 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3016 fi 3017fi 3018 3019 3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3021$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3022 # Check whether --enable-maintainer-mode was given. 3023if test "${enable_maintainer_mode+set}" = set; then : 3024 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3025else 3026 USE_MAINTAINER_MODE=no 3027fi 3028 3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3030$as_echo "$USE_MAINTAINER_MODE" >&6; } 3031 if test $USE_MAINTAINER_MODE = yes; then 3032 MAINTAINER_MODE_TRUE= 3033 MAINTAINER_MODE_FALSE='#' 3034else 3035 MAINTAINER_MODE_TRUE='#' 3036 MAINTAINER_MODE_FALSE= 3037fi 3038 3039 MAINT=$MAINTAINER_MODE_TRUE 3040 3041 3042ac_config_headers="$ac_config_headers config.h" 3043 3044 3045 3046# Checks for header files. 3047DEPDIR="${am__leading_dot}deps" 3048 3049ac_config_commands="$ac_config_commands depfiles" 3050 3051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3052$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3053cat > confinc.mk << 'END' 3054am__doit: 3055 @echo this is the am__doit target >confinc.out 3056.PHONY: am__doit 3057END 3058am__include="#" 3059am__quote= 3060# BSD make does it like this. 3061echo '.include "confinc.mk" # ignored' > confmf.BSD 3062# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3063echo 'include confinc.mk # ignored' > confmf.GNU 3064_am_result=no 3065for s in GNU BSD; do 3066 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3067 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3068 ac_status=$? 3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3070 (exit $ac_status); } 3071 case $?:`cat confinc.out 2>/dev/null` in #( 3072 '0:this is the am__doit target') : 3073 case $s in #( 3074 BSD) : 3075 am__include='.include' am__quote='"' ;; #( 3076 *) : 3077 am__include='include' am__quote='' ;; 3078esac ;; #( 3079 *) : 3080 ;; 3081esac 3082 if test "$am__include" != "#"; then 3083 _am_result="yes ($s style)" 3084 break 3085 fi 3086done 3087rm -f confinc.* confmf.* 3088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3089$as_echo "${_am_result}" >&6; } 3090 3091# Check whether --enable-dependency-tracking was given. 3092if test "${enable_dependency_tracking+set}" = set; then : 3093 enableval=$enable_dependency_tracking; 3094fi 3095 3096if test "x$enable_dependency_tracking" != xno; then 3097 am_depcomp="$ac_aux_dir/depcomp" 3098 AMDEPBACKSLASH='\' 3099 am__nodep='_no' 3100fi 3101 if test "x$enable_dependency_tracking" != xno; then 3102 AMDEP_TRUE= 3103 AMDEP_FALSE='#' 3104else 3105 AMDEP_TRUE='#' 3106 AMDEP_FALSE= 3107fi 3108 3109 3110ac_ext=c 3111ac_cpp='$CPP $CPPFLAGS' 3112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3114ac_compiler_gnu=$ac_cv_c_compiler_gnu 3115if test -n "$ac_tool_prefix"; then 3116 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3117set dummy ${ac_tool_prefix}gcc; ac_word=$2 3118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3119$as_echo_n "checking for $ac_word... " >&6; } 3120if ${ac_cv_prog_CC+:} false; then : 3121 $as_echo_n "(cached) " >&6 3122else 3123 if test -n "$CC"; then 3124 ac_cv_prog_CC="$CC" # Let the user override the test. 3125else 3126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3127for as_dir in $PATH 3128do 3129 IFS=$as_save_IFS 3130 test -z "$as_dir" && as_dir=. 3131 for ac_exec_ext in '' $ac_executable_extensions; do 3132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3133 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3135 break 2 3136 fi 3137done 3138 done 3139IFS=$as_save_IFS 3140 3141fi 3142fi 3143CC=$ac_cv_prog_CC 3144if test -n "$CC"; then 3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3146$as_echo "$CC" >&6; } 3147else 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3149$as_echo "no" >&6; } 3150fi 3151 3152 3153fi 3154if test -z "$ac_cv_prog_CC"; then 3155 ac_ct_CC=$CC 3156 # Extract the first word of "gcc", so it can be a program name with args. 3157set dummy gcc; ac_word=$2 3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3159$as_echo_n "checking for $ac_word... " >&6; } 3160if ${ac_cv_prog_ac_ct_CC+:} false; then : 3161 $as_echo_n "(cached) " >&6 3162else 3163 if test -n "$ac_ct_CC"; then 3164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3165else 3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3167for as_dir in $PATH 3168do 3169 IFS=$as_save_IFS 3170 test -z "$as_dir" && as_dir=. 3171 for ac_exec_ext in '' $ac_executable_extensions; do 3172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3173 ac_cv_prog_ac_ct_CC="gcc" 3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3175 break 2 3176 fi 3177done 3178 done 3179IFS=$as_save_IFS 3180 3181fi 3182fi 3183ac_ct_CC=$ac_cv_prog_ac_ct_CC 3184if test -n "$ac_ct_CC"; then 3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3186$as_echo "$ac_ct_CC" >&6; } 3187else 3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3189$as_echo "no" >&6; } 3190fi 3191 3192 if test "x$ac_ct_CC" = x; then 3193 CC="" 3194 else 3195 case $cross_compiling:$ac_tool_warned in 3196yes:) 3197{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3198$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3199ac_tool_warned=yes ;; 3200esac 3201 CC=$ac_ct_CC 3202 fi 3203else 3204 CC="$ac_cv_prog_CC" 3205fi 3206 3207if test -z "$CC"; then 3208 if test -n "$ac_tool_prefix"; then 3209 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3210set dummy ${ac_tool_prefix}cc; ac_word=$2 3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3212$as_echo_n "checking for $ac_word... " >&6; } 3213if ${ac_cv_prog_CC+:} false; then : 3214 $as_echo_n "(cached) " >&6 3215else 3216 if test -n "$CC"; then 3217 ac_cv_prog_CC="$CC" # Let the user override the test. 3218else 3219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3220for as_dir in $PATH 3221do 3222 IFS=$as_save_IFS 3223 test -z "$as_dir" && as_dir=. 3224 for ac_exec_ext in '' $ac_executable_extensions; do 3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3226 ac_cv_prog_CC="${ac_tool_prefix}cc" 3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3228 break 2 3229 fi 3230done 3231 done 3232IFS=$as_save_IFS 3233 3234fi 3235fi 3236CC=$ac_cv_prog_CC 3237if test -n "$CC"; then 3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3239$as_echo "$CC" >&6; } 3240else 3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3242$as_echo "no" >&6; } 3243fi 3244 3245 3246 fi 3247fi 3248if test -z "$CC"; then 3249 # Extract the first word of "cc", so it can be a program name with args. 3250set dummy cc; ac_word=$2 3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3252$as_echo_n "checking for $ac_word... " >&6; } 3253if ${ac_cv_prog_CC+:} false; then : 3254 $as_echo_n "(cached) " >&6 3255else 3256 if test -n "$CC"; then 3257 ac_cv_prog_CC="$CC" # Let the user override the test. 3258else 3259 ac_prog_rejected=no 3260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3261for as_dir in $PATH 3262do 3263 IFS=$as_save_IFS 3264 test -z "$as_dir" && as_dir=. 3265 for ac_exec_ext in '' $ac_executable_extensions; do 3266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3267 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3268 ac_prog_rejected=yes 3269 continue 3270 fi 3271 ac_cv_prog_CC="cc" 3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3273 break 2 3274 fi 3275done 3276 done 3277IFS=$as_save_IFS 3278 3279if test $ac_prog_rejected = yes; then 3280 # We found a bogon in the path, so make sure we never use it. 3281 set dummy $ac_cv_prog_CC 3282 shift 3283 if test $# != 0; then 3284 # We chose a different compiler from the bogus one. 3285 # However, it has the same basename, so the bogon will be chosen 3286 # first if we set CC to just the basename; use the full file name. 3287 shift 3288 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3289 fi 3290fi 3291fi 3292fi 3293CC=$ac_cv_prog_CC 3294if test -n "$CC"; then 3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3296$as_echo "$CC" >&6; } 3297else 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3299$as_echo "no" >&6; } 3300fi 3301 3302 3303fi 3304if test -z "$CC"; then 3305 if test -n "$ac_tool_prefix"; then 3306 for ac_prog in cl.exe 3307 do 3308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3309set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3311$as_echo_n "checking for $ac_word... " >&6; } 3312if ${ac_cv_prog_CC+:} false; then : 3313 $as_echo_n "(cached) " >&6 3314else 3315 if test -n "$CC"; then 3316 ac_cv_prog_CC="$CC" # Let the user override the test. 3317else 3318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3319for as_dir in $PATH 3320do 3321 IFS=$as_save_IFS 3322 test -z "$as_dir" && as_dir=. 3323 for ac_exec_ext in '' $ac_executable_extensions; do 3324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3325 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3327 break 2 3328 fi 3329done 3330 done 3331IFS=$as_save_IFS 3332 3333fi 3334fi 3335CC=$ac_cv_prog_CC 3336if test -n "$CC"; then 3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3338$as_echo "$CC" >&6; } 3339else 3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3341$as_echo "no" >&6; } 3342fi 3343 3344 3345 test -n "$CC" && break 3346 done 3347fi 3348if test -z "$CC"; then 3349 ac_ct_CC=$CC 3350 for ac_prog in cl.exe 3351do 3352 # Extract the first word of "$ac_prog", so it can be a program name with args. 3353set dummy $ac_prog; ac_word=$2 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3355$as_echo_n "checking for $ac_word... " >&6; } 3356if ${ac_cv_prog_ac_ct_CC+:} false; then : 3357 $as_echo_n "(cached) " >&6 3358else 3359 if test -n "$ac_ct_CC"; then 3360 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3361else 3362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3363for as_dir in $PATH 3364do 3365 IFS=$as_save_IFS 3366 test -z "$as_dir" && as_dir=. 3367 for ac_exec_ext in '' $ac_executable_extensions; do 3368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3369 ac_cv_prog_ac_ct_CC="$ac_prog" 3370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3371 break 2 3372 fi 3373done 3374 done 3375IFS=$as_save_IFS 3376 3377fi 3378fi 3379ac_ct_CC=$ac_cv_prog_ac_ct_CC 3380if test -n "$ac_ct_CC"; then 3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3382$as_echo "$ac_ct_CC" >&6; } 3383else 3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3385$as_echo "no" >&6; } 3386fi 3387 3388 3389 test -n "$ac_ct_CC" && break 3390done 3391 3392 if test "x$ac_ct_CC" = x; then 3393 CC="" 3394 else 3395 case $cross_compiling:$ac_tool_warned in 3396yes:) 3397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3399ac_tool_warned=yes ;; 3400esac 3401 CC=$ac_ct_CC 3402 fi 3403fi 3404 3405fi 3406 3407 3408test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3410as_fn_error $? "no acceptable C compiler found in \$PATH 3411See \`config.log' for more details" "$LINENO" 5; } 3412 3413# Provide some information about the compiler. 3414$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3415set X $ac_compile 3416ac_compiler=$2 3417for ac_option in --version -v -V -qversion; do 3418 { { ac_try="$ac_compiler $ac_option >&5" 3419case "(($ac_try" in 3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3421 *) ac_try_echo=$ac_try;; 3422esac 3423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3424$as_echo "$ac_try_echo"; } >&5 3425 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3426 ac_status=$? 3427 if test -s conftest.err; then 3428 sed '10a\ 3429... rest of stderr output deleted ... 3430 10q' conftest.err >conftest.er1 3431 cat conftest.er1 >&5 3432 fi 3433 rm -f conftest.er1 conftest.err 3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3435 test $ac_status = 0; } 3436done 3437 3438cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3439/* end confdefs.h. */ 3440 3441int 3442main () 3443{ 3444 3445 ; 3446 return 0; 3447} 3448_ACEOF 3449ac_clean_files_save=$ac_clean_files 3450ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3451# Try to create an executable without -o first, disregard a.out. 3452# It will help us diagnose broken compilers, and finding out an intuition 3453# of exeext. 3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3455$as_echo_n "checking whether the C compiler works... " >&6; } 3456ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3457 3458# The possible output files: 3459ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3460 3461ac_rmfiles= 3462for ac_file in $ac_files 3463do 3464 case $ac_file in 3465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3466 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3467 esac 3468done 3469rm -f $ac_rmfiles 3470 3471if { { ac_try="$ac_link_default" 3472case "(($ac_try" in 3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3474 *) ac_try_echo=$ac_try;; 3475esac 3476eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3477$as_echo "$ac_try_echo"; } >&5 3478 (eval "$ac_link_default") 2>&5 3479 ac_status=$? 3480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3481 test $ac_status = 0; }; then : 3482 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3483# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3484# in a Makefile. We should not override ac_cv_exeext if it was cached, 3485# so that the user can short-circuit this test for compilers unknown to 3486# Autoconf. 3487for ac_file in $ac_files '' 3488do 3489 test -f "$ac_file" || continue 3490 case $ac_file in 3491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3492 ;; 3493 [ab].out ) 3494 # We found the default executable, but exeext='' is most 3495 # certainly right. 3496 break;; 3497 *.* ) 3498 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3499 then :; else 3500 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3501 fi 3502 # We set ac_cv_exeext here because the later test for it is not 3503 # safe: cross compilers may not add the suffix if given an `-o' 3504 # argument, so we may need to know it at that point already. 3505 # Even if this section looks crufty: it has the advantage of 3506 # actually working. 3507 break;; 3508 * ) 3509 break;; 3510 esac 3511done 3512test "$ac_cv_exeext" = no && ac_cv_exeext= 3513 3514else 3515 ac_file='' 3516fi 3517if test -z "$ac_file"; then : 3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3519$as_echo "no" >&6; } 3520$as_echo "$as_me: failed program was:" >&5 3521sed 's/^/| /' conftest.$ac_ext >&5 3522 3523{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3525as_fn_error 77 "C compiler cannot create executables 3526See \`config.log' for more details" "$LINENO" 5; } 3527else 3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3529$as_echo "yes" >&6; } 3530fi 3531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3532$as_echo_n "checking for C compiler default output file name... " >&6; } 3533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3534$as_echo "$ac_file" >&6; } 3535ac_exeext=$ac_cv_exeext 3536 3537rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3538ac_clean_files=$ac_clean_files_save 3539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3540$as_echo_n "checking for suffix of executables... " >&6; } 3541if { { ac_try="$ac_link" 3542case "(($ac_try" in 3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3544 *) ac_try_echo=$ac_try;; 3545esac 3546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3547$as_echo "$ac_try_echo"; } >&5 3548 (eval "$ac_link") 2>&5 3549 ac_status=$? 3550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3551 test $ac_status = 0; }; then : 3552 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3553# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3554# work properly (i.e., refer to `conftest.exe'), while it won't with 3555# `rm'. 3556for ac_file in conftest.exe conftest conftest.*; do 3557 test -f "$ac_file" || continue 3558 case $ac_file in 3559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3560 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3561 break;; 3562 * ) break;; 3563 esac 3564done 3565else 3566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3568as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3569See \`config.log' for more details" "$LINENO" 5; } 3570fi 3571rm -f conftest conftest$ac_cv_exeext 3572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3573$as_echo "$ac_cv_exeext" >&6; } 3574 3575rm -f conftest.$ac_ext 3576EXEEXT=$ac_cv_exeext 3577ac_exeext=$EXEEXT 3578cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3579/* end confdefs.h. */ 3580#include <stdio.h> 3581int 3582main () 3583{ 3584FILE *f = fopen ("conftest.out", "w"); 3585 return ferror (f) || fclose (f) != 0; 3586 3587 ; 3588 return 0; 3589} 3590_ACEOF 3591ac_clean_files="$ac_clean_files conftest.out" 3592# Check that the compiler produces executables we can run. If not, either 3593# the compiler is broken, or we cross compile. 3594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3595$as_echo_n "checking whether we are cross compiling... " >&6; } 3596if test "$cross_compiling" != yes; then 3597 { { ac_try="$ac_link" 3598case "(($ac_try" in 3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3600 *) ac_try_echo=$ac_try;; 3601esac 3602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3603$as_echo "$ac_try_echo"; } >&5 3604 (eval "$ac_link") 2>&5 3605 ac_status=$? 3606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3607 test $ac_status = 0; } 3608 if { ac_try='./conftest$ac_cv_exeext' 3609 { { case "(($ac_try" in 3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3611 *) ac_try_echo=$ac_try;; 3612esac 3613eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3614$as_echo "$ac_try_echo"; } >&5 3615 (eval "$ac_try") 2>&5 3616 ac_status=$? 3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3618 test $ac_status = 0; }; }; then 3619 cross_compiling=no 3620 else 3621 if test "$cross_compiling" = maybe; then 3622 cross_compiling=yes 3623 else 3624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3626as_fn_error $? "cannot run C compiled programs. 3627If you meant to cross compile, use \`--host'. 3628See \`config.log' for more details" "$LINENO" 5; } 3629 fi 3630 fi 3631fi 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3633$as_echo "$cross_compiling" >&6; } 3634 3635rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3636ac_clean_files=$ac_clean_files_save 3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3638$as_echo_n "checking for suffix of object files... " >&6; } 3639if ${ac_cv_objext+:} false; then : 3640 $as_echo_n "(cached) " >&6 3641else 3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3643/* end confdefs.h. */ 3644 3645int 3646main () 3647{ 3648 3649 ; 3650 return 0; 3651} 3652_ACEOF 3653rm -f conftest.o conftest.obj 3654if { { ac_try="$ac_compile" 3655case "(($ac_try" in 3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3657 *) ac_try_echo=$ac_try;; 3658esac 3659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3660$as_echo "$ac_try_echo"; } >&5 3661 (eval "$ac_compile") 2>&5 3662 ac_status=$? 3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3664 test $ac_status = 0; }; then : 3665 for ac_file in conftest.o conftest.obj conftest.*; do 3666 test -f "$ac_file" || continue; 3667 case $ac_file in 3668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3669 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3670 break;; 3671 esac 3672done 3673else 3674 $as_echo "$as_me: failed program was:" >&5 3675sed 's/^/| /' conftest.$ac_ext >&5 3676 3677{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3679as_fn_error $? "cannot compute suffix of object files: cannot compile 3680See \`config.log' for more details" "$LINENO" 5; } 3681fi 3682rm -f conftest.$ac_cv_objext conftest.$ac_ext 3683fi 3684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3685$as_echo "$ac_cv_objext" >&6; } 3686OBJEXT=$ac_cv_objext 3687ac_objext=$OBJEXT 3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3689$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3690if ${ac_cv_c_compiler_gnu+:} false; then : 3691 $as_echo_n "(cached) " >&6 3692else 3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3694/* end confdefs.h. */ 3695 3696int 3697main () 3698{ 3699#ifndef __GNUC__ 3700 choke me 3701#endif 3702 3703 ; 3704 return 0; 3705} 3706_ACEOF 3707if ac_fn_c_try_compile "$LINENO"; then : 3708 ac_compiler_gnu=yes 3709else 3710 ac_compiler_gnu=no 3711fi 3712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3713ac_cv_c_compiler_gnu=$ac_compiler_gnu 3714 3715fi 3716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3717$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3718if test $ac_compiler_gnu = yes; then 3719 GCC=yes 3720else 3721 GCC= 3722fi 3723ac_test_CFLAGS=${CFLAGS+set} 3724ac_save_CFLAGS=$CFLAGS 3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3726$as_echo_n "checking whether $CC accepts -g... " >&6; } 3727if ${ac_cv_prog_cc_g+:} false; then : 3728 $as_echo_n "(cached) " >&6 3729else 3730 ac_save_c_werror_flag=$ac_c_werror_flag 3731 ac_c_werror_flag=yes 3732 ac_cv_prog_cc_g=no 3733 CFLAGS="-g" 3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3735/* end confdefs.h. */ 3736 3737int 3738main () 3739{ 3740 3741 ; 3742 return 0; 3743} 3744_ACEOF 3745if ac_fn_c_try_compile "$LINENO"; then : 3746 ac_cv_prog_cc_g=yes 3747else 3748 CFLAGS="" 3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3750/* end confdefs.h. */ 3751 3752int 3753main () 3754{ 3755 3756 ; 3757 return 0; 3758} 3759_ACEOF 3760if ac_fn_c_try_compile "$LINENO"; then : 3761 3762else 3763 ac_c_werror_flag=$ac_save_c_werror_flag 3764 CFLAGS="-g" 3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3766/* end confdefs.h. */ 3767 3768int 3769main () 3770{ 3771 3772 ; 3773 return 0; 3774} 3775_ACEOF 3776if ac_fn_c_try_compile "$LINENO"; then : 3777 ac_cv_prog_cc_g=yes 3778fi 3779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3780fi 3781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3782fi 3783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3784 ac_c_werror_flag=$ac_save_c_werror_flag 3785fi 3786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3787$as_echo "$ac_cv_prog_cc_g" >&6; } 3788if test "$ac_test_CFLAGS" = set; then 3789 CFLAGS=$ac_save_CFLAGS 3790elif test $ac_cv_prog_cc_g = yes; then 3791 if test "$GCC" = yes; then 3792 CFLAGS="-g -O2" 3793 else 3794 CFLAGS="-g" 3795 fi 3796else 3797 if test "$GCC" = yes; then 3798 CFLAGS="-O2" 3799 else 3800 CFLAGS= 3801 fi 3802fi 3803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3804$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3805if ${ac_cv_prog_cc_c89+:} false; then : 3806 $as_echo_n "(cached) " >&6 3807else 3808 ac_cv_prog_cc_c89=no 3809ac_save_CC=$CC 3810cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3811/* end confdefs.h. */ 3812#include <stdarg.h> 3813#include <stdio.h> 3814struct stat; 3815/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3816struct buf { int x; }; 3817FILE * (*rcsopen) (struct buf *, struct stat *, int); 3818static char *e (p, i) 3819 char **p; 3820 int i; 3821{ 3822 return p[i]; 3823} 3824static char *f (char * (*g) (char **, int), char **p, ...) 3825{ 3826 char *s; 3827 va_list v; 3828 va_start (v,p); 3829 s = g (p, va_arg (v,int)); 3830 va_end (v); 3831 return s; 3832} 3833 3834/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3835 function prototypes and stuff, but not '\xHH' hex character constants. 3836 These don't provoke an error unfortunately, instead are silently treated 3837 as 'x'. The following induces an error, until -std is added to get 3838 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3839 array size at least. It's necessary to write '\x00'==0 to get something 3840 that's true only with -std. */ 3841int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3842 3843/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3844 inside strings and character constants. */ 3845#define FOO(x) 'x' 3846int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3847 3848int test (int i, double x); 3849struct s1 {int (*f) (int a);}; 3850struct s2 {int (*f) (double a);}; 3851int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3852int argc; 3853char **argv; 3854int 3855main () 3856{ 3857return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3858 ; 3859 return 0; 3860} 3861_ACEOF 3862for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3863 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3864do 3865 CC="$ac_save_CC $ac_arg" 3866 if ac_fn_c_try_compile "$LINENO"; then : 3867 ac_cv_prog_cc_c89=$ac_arg 3868fi 3869rm -f core conftest.err conftest.$ac_objext 3870 test "x$ac_cv_prog_cc_c89" != "xno" && break 3871done 3872rm -f conftest.$ac_ext 3873CC=$ac_save_CC 3874 3875fi 3876# AC_CACHE_VAL 3877case "x$ac_cv_prog_cc_c89" in 3878 x) 3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3880$as_echo "none needed" >&6; } ;; 3881 xno) 3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3883$as_echo "unsupported" >&6; } ;; 3884 *) 3885 CC="$CC $ac_cv_prog_cc_c89" 3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3887$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3888esac 3889if test "x$ac_cv_prog_cc_c89" != xno; then : 3890 3891fi 3892 3893ac_ext=c 3894ac_cpp='$CPP $CPPFLAGS' 3895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3897ac_compiler_gnu=$ac_cv_c_compiler_gnu 3898 3899ac_ext=c 3900ac_cpp='$CPP $CPPFLAGS' 3901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3903ac_compiler_gnu=$ac_cv_c_compiler_gnu 3904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3905$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3906if ${am_cv_prog_cc_c_o+:} false; then : 3907 $as_echo_n "(cached) " >&6 3908else 3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3910/* end confdefs.h. */ 3911 3912int 3913main () 3914{ 3915 3916 ; 3917 return 0; 3918} 3919_ACEOF 3920 # Make sure it works both with $CC and with simple cc. 3921 # Following AC_PROG_CC_C_O, we do the test twice because some 3922 # compilers refuse to overwrite an existing .o file with -o, 3923 # though they will create one. 3924 am_cv_prog_cc_c_o=yes 3925 for am_i in 1 2; do 3926 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3927 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3928 ac_status=$? 3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3930 (exit $ac_status); } \ 3931 && test -f conftest2.$ac_objext; then 3932 : OK 3933 else 3934 am_cv_prog_cc_c_o=no 3935 break 3936 fi 3937 done 3938 rm -f core conftest* 3939 unset am_i 3940fi 3941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3942$as_echo "$am_cv_prog_cc_c_o" >&6; } 3943if test "$am_cv_prog_cc_c_o" != yes; then 3944 # Losing compiler, so override with the script. 3945 # FIXME: It is wrong to rewrite CC. 3946 # But if we don't then we get into trouble of one sort or another. 3947 # A longer-term fix would be to have automake use am__CC in this case, 3948 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3949 CC="$am_aux_dir/compile $CC" 3950fi 3951ac_ext=c 3952ac_cpp='$CPP $CPPFLAGS' 3953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3955ac_compiler_gnu=$ac_cv_c_compiler_gnu 3956 3957 3958depcc="$CC" am_compiler_list= 3959 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3961$as_echo_n "checking dependency style of $depcc... " >&6; } 3962if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3963 $as_echo_n "(cached) " >&6 3964else 3965 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3966 # We make a subdir and do the tests there. Otherwise we can end up 3967 # making bogus files that we don't know about and never remove. For 3968 # instance it was reported that on HP-UX the gcc test will end up 3969 # making a dummy file named 'D' -- because '-MD' means "put the output 3970 # in D". 3971 rm -rf conftest.dir 3972 mkdir conftest.dir 3973 # Copy depcomp to subdir because otherwise we won't find it if we're 3974 # using a relative directory. 3975 cp "$am_depcomp" conftest.dir 3976 cd conftest.dir 3977 # We will build objects and dependencies in a subdirectory because 3978 # it helps to detect inapplicable dependency modes. For instance 3979 # both Tru64's cc and ICC support -MD to output dependencies as a 3980 # side effect of compilation, but ICC will put the dependencies in 3981 # the current directory while Tru64 will put them in the object 3982 # directory. 3983 mkdir sub 3984 3985 am_cv_CC_dependencies_compiler_type=none 3986 if test "$am_compiler_list" = ""; then 3987 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3988 fi 3989 am__universal=false 3990 case " $depcc " in #( 3991 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3992 esac 3993 3994 for depmode in $am_compiler_list; do 3995 # Setup a source with many dependencies, because some compilers 3996 # like to wrap large dependency lists on column 80 (with \), and 3997 # we should not choose a depcomp mode which is confused by this. 3998 # 3999 # We need to recreate these files for each test, as the compiler may 4000 # overwrite some of them when testing with obscure command lines. 4001 # This happens at least with the AIX C compiler. 4002 : > sub/conftest.c 4003 for i in 1 2 3 4 5 6; do 4004 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4005 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4006 # Solaris 10 /bin/sh. 4007 echo '/* dummy */' > sub/conftst$i.h 4008 done 4009 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4010 4011 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4012 # mode. It turns out that the SunPro C++ compiler does not properly 4013 # handle '-M -o', and we need to detect this. Also, some Intel 4014 # versions had trouble with output in subdirs. 4015 am__obj=sub/conftest.${OBJEXT-o} 4016 am__minus_obj="-o $am__obj" 4017 case $depmode in 4018 gcc) 4019 # This depmode causes a compiler race in universal mode. 4020 test "$am__universal" = false || continue 4021 ;; 4022 nosideeffect) 4023 # After this tag, mechanisms are not by side-effect, so they'll 4024 # only be used when explicitly requested. 4025 if test "x$enable_dependency_tracking" = xyes; then 4026 continue 4027 else 4028 break 4029 fi 4030 ;; 4031 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4032 # This compiler won't grok '-c -o', but also, the minuso test has 4033 # not run yet. These depmodes are late enough in the game, and 4034 # so weak that their functioning should not be impacted. 4035 am__obj=conftest.${OBJEXT-o} 4036 am__minus_obj= 4037 ;; 4038 none) break ;; 4039 esac 4040 if depmode=$depmode \ 4041 source=sub/conftest.c object=$am__obj \ 4042 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4043 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4044 >/dev/null 2>conftest.err && 4045 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4046 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4047 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4048 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4049 # icc doesn't choke on unknown options, it will just issue warnings 4050 # or remarks (even with -Werror). So we grep stderr for any message 4051 # that says an option was ignored or not supported. 4052 # When given -MP, icc 7.0 and 7.1 complain thusly: 4053 # icc: Command line warning: ignoring option '-M'; no argument required 4054 # The diagnosis changed in icc 8.0: 4055 # icc: Command line remark: option '-MP' not supported 4056 if (grep 'ignoring option' conftest.err || 4057 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4058 am_cv_CC_dependencies_compiler_type=$depmode 4059 break 4060 fi 4061 fi 4062 done 4063 4064 cd .. 4065 rm -rf conftest.dir 4066else 4067 am_cv_CC_dependencies_compiler_type=none 4068fi 4069 4070fi 4071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4072$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4073CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4074 4075 if 4076 test "x$enable_dependency_tracking" != xno \ 4077 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4078 am__fastdepCC_TRUE= 4079 am__fastdepCC_FALSE='#' 4080else 4081 am__fastdepCC_TRUE='#' 4082 am__fastdepCC_FALSE= 4083fi 4084 4085 4086 4087ac_ext=c 4088ac_cpp='$CPP $CPPFLAGS' 4089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4091ac_compiler_gnu=$ac_cv_c_compiler_gnu 4092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4093$as_echo_n "checking how to run the C preprocessor... " >&6; } 4094# On Suns, sometimes $CPP names a directory. 4095if test -n "$CPP" && test -d "$CPP"; then 4096 CPP= 4097fi 4098if test -z "$CPP"; then 4099 if ${ac_cv_prog_CPP+:} false; then : 4100 $as_echo_n "(cached) " >&6 4101else 4102 # Double quotes because CPP needs to be expanded 4103 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4104 do 4105 ac_preproc_ok=false 4106for ac_c_preproc_warn_flag in '' yes 4107do 4108 # Use a header file that comes with gcc, so configuring glibc 4109 # with a fresh cross-compiler works. 4110 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4111 # <limits.h> exists even on freestanding compilers. 4112 # On the NeXT, cc -E runs the code through the compiler's parser, 4113 # not just through cpp. "Syntax error" is here to catch this case. 4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4115/* end confdefs.h. */ 4116#ifdef __STDC__ 4117# include <limits.h> 4118#else 4119# include <assert.h> 4120#endif 4121 Syntax error 4122_ACEOF 4123if ac_fn_c_try_cpp "$LINENO"; then : 4124 4125else 4126 # Broken: fails on valid input. 4127continue 4128fi 4129rm -f conftest.err conftest.i conftest.$ac_ext 4130 4131 # OK, works on sane cases. Now check whether nonexistent headers 4132 # can be detected and how. 4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4134/* end confdefs.h. */ 4135#include <ac_nonexistent.h> 4136_ACEOF 4137if ac_fn_c_try_cpp "$LINENO"; then : 4138 # Broken: success on invalid input. 4139continue 4140else 4141 # Passes both tests. 4142ac_preproc_ok=: 4143break 4144fi 4145rm -f conftest.err conftest.i conftest.$ac_ext 4146 4147done 4148# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4149rm -f conftest.i conftest.err conftest.$ac_ext 4150if $ac_preproc_ok; then : 4151 break 4152fi 4153 4154 done 4155 ac_cv_prog_CPP=$CPP 4156 4157fi 4158 CPP=$ac_cv_prog_CPP 4159else 4160 ac_cv_prog_CPP=$CPP 4161fi 4162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4163$as_echo "$CPP" >&6; } 4164ac_preproc_ok=false 4165for ac_c_preproc_warn_flag in '' yes 4166do 4167 # Use a header file that comes with gcc, so configuring glibc 4168 # with a fresh cross-compiler works. 4169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4170 # <limits.h> exists even on freestanding compilers. 4171 # On the NeXT, cc -E runs the code through the compiler's parser, 4172 # not just through cpp. "Syntax error" is here to catch this case. 4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4174/* end confdefs.h. */ 4175#ifdef __STDC__ 4176# include <limits.h> 4177#else 4178# include <assert.h> 4179#endif 4180 Syntax error 4181_ACEOF 4182if ac_fn_c_try_cpp "$LINENO"; then : 4183 4184else 4185 # Broken: fails on valid input. 4186continue 4187fi 4188rm -f conftest.err conftest.i conftest.$ac_ext 4189 4190 # OK, works on sane cases. Now check whether nonexistent headers 4191 # can be detected and how. 4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4193/* end confdefs.h. */ 4194#include <ac_nonexistent.h> 4195_ACEOF 4196if ac_fn_c_try_cpp "$LINENO"; then : 4197 # Broken: success on invalid input. 4198continue 4199else 4200 # Passes both tests. 4201ac_preproc_ok=: 4202break 4203fi 4204rm -f conftest.err conftest.i conftest.$ac_ext 4205 4206done 4207# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4208rm -f conftest.i conftest.err conftest.$ac_ext 4209if $ac_preproc_ok; then : 4210 4211else 4212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4214as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4215See \`config.log' for more details" "$LINENO" 5; } 4216fi 4217 4218ac_ext=c 4219ac_cpp='$CPP $CPPFLAGS' 4220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4222ac_compiler_gnu=$ac_cv_c_compiler_gnu 4223 4224 4225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4226$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4227if ${ac_cv_path_GREP+:} false; then : 4228 $as_echo_n "(cached) " >&6 4229else 4230 if test -z "$GREP"; then 4231 ac_path_GREP_found=false 4232 # Loop through the user's path and test for each of PROGNAME-LIST 4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4234for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4235do 4236 IFS=$as_save_IFS 4237 test -z "$as_dir" && as_dir=. 4238 for ac_prog in grep ggrep; do 4239 for ac_exec_ext in '' $ac_executable_extensions; do 4240 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4241 as_fn_executable_p "$ac_path_GREP" || continue 4242# Check for GNU ac_path_GREP and select it if it is found. 4243 # Check for GNU $ac_path_GREP 4244case `"$ac_path_GREP" --version 2>&1` in 4245*GNU*) 4246 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4247*) 4248 ac_count=0 4249 $as_echo_n 0123456789 >"conftest.in" 4250 while : 4251 do 4252 cat "conftest.in" "conftest.in" >"conftest.tmp" 4253 mv "conftest.tmp" "conftest.in" 4254 cp "conftest.in" "conftest.nl" 4255 $as_echo 'GREP' >> "conftest.nl" 4256 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4257 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4258 as_fn_arith $ac_count + 1 && ac_count=$as_val 4259 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4260 # Best one so far, save it but keep looking for a better one 4261 ac_cv_path_GREP="$ac_path_GREP" 4262 ac_path_GREP_max=$ac_count 4263 fi 4264 # 10*(2^10) chars as input seems more than enough 4265 test $ac_count -gt 10 && break 4266 done 4267 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4268esac 4269 4270 $ac_path_GREP_found && break 3 4271 done 4272 done 4273 done 4274IFS=$as_save_IFS 4275 if test -z "$ac_cv_path_GREP"; then 4276 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4277 fi 4278else 4279 ac_cv_path_GREP=$GREP 4280fi 4281 4282fi 4283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4284$as_echo "$ac_cv_path_GREP" >&6; } 4285 GREP="$ac_cv_path_GREP" 4286 4287 4288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4289$as_echo_n "checking for egrep... " >&6; } 4290if ${ac_cv_path_EGREP+:} false; then : 4291 $as_echo_n "(cached) " >&6 4292else 4293 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4294 then ac_cv_path_EGREP="$GREP -E" 4295 else 4296 if test -z "$EGREP"; then 4297 ac_path_EGREP_found=false 4298 # Loop through the user's path and test for each of PROGNAME-LIST 4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4300for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4301do 4302 IFS=$as_save_IFS 4303 test -z "$as_dir" && as_dir=. 4304 for ac_prog in egrep; do 4305 for ac_exec_ext in '' $ac_executable_extensions; do 4306 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4307 as_fn_executable_p "$ac_path_EGREP" || continue 4308# Check for GNU ac_path_EGREP and select it if it is found. 4309 # Check for GNU $ac_path_EGREP 4310case `"$ac_path_EGREP" --version 2>&1` in 4311*GNU*) 4312 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4313*) 4314 ac_count=0 4315 $as_echo_n 0123456789 >"conftest.in" 4316 while : 4317 do 4318 cat "conftest.in" "conftest.in" >"conftest.tmp" 4319 mv "conftest.tmp" "conftest.in" 4320 cp "conftest.in" "conftest.nl" 4321 $as_echo 'EGREP' >> "conftest.nl" 4322 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4323 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4324 as_fn_arith $ac_count + 1 && ac_count=$as_val 4325 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4326 # Best one so far, save it but keep looking for a better one 4327 ac_cv_path_EGREP="$ac_path_EGREP" 4328 ac_path_EGREP_max=$ac_count 4329 fi 4330 # 10*(2^10) chars as input seems more than enough 4331 test $ac_count -gt 10 && break 4332 done 4333 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4334esac 4335 4336 $ac_path_EGREP_found && break 3 4337 done 4338 done 4339 done 4340IFS=$as_save_IFS 4341 if test -z "$ac_cv_path_EGREP"; then 4342 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4343 fi 4344else 4345 ac_cv_path_EGREP=$EGREP 4346fi 4347 4348 fi 4349fi 4350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4351$as_echo "$ac_cv_path_EGREP" >&6; } 4352 EGREP="$ac_cv_path_EGREP" 4353 4354 4355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4356$as_echo_n "checking for ANSI C header files... " >&6; } 4357if ${ac_cv_header_stdc+:} false; then : 4358 $as_echo_n "(cached) " >&6 4359else 4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4361/* end confdefs.h. */ 4362#include <stdlib.h> 4363#include <stdarg.h> 4364#include <string.h> 4365#include <float.h> 4366 4367int 4368main () 4369{ 4370 4371 ; 4372 return 0; 4373} 4374_ACEOF 4375if ac_fn_c_try_compile "$LINENO"; then : 4376 ac_cv_header_stdc=yes 4377else 4378 ac_cv_header_stdc=no 4379fi 4380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4381 4382if test $ac_cv_header_stdc = yes; then 4383 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4385/* end confdefs.h. */ 4386#include <string.h> 4387 4388_ACEOF 4389if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4390 $EGREP "memchr" >/dev/null 2>&1; then : 4391 4392else 4393 ac_cv_header_stdc=no 4394fi 4395rm -f conftest* 4396 4397fi 4398 4399if test $ac_cv_header_stdc = yes; then 4400 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4402/* end confdefs.h. */ 4403#include <stdlib.h> 4404 4405_ACEOF 4406if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4407 $EGREP "free" >/dev/null 2>&1; then : 4408 4409else 4410 ac_cv_header_stdc=no 4411fi 4412rm -f conftest* 4413 4414fi 4415 4416if test $ac_cv_header_stdc = yes; then 4417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4418 if test "$cross_compiling" = yes; then : 4419 : 4420else 4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4422/* end confdefs.h. */ 4423#include <ctype.h> 4424#include <stdlib.h> 4425#if ((' ' & 0x0FF) == 0x020) 4426# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4427# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4428#else 4429# define ISLOWER(c) \ 4430 (('a' <= (c) && (c) <= 'i') \ 4431 || ('j' <= (c) && (c) <= 'r') \ 4432 || ('s' <= (c) && (c) <= 'z')) 4433# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4434#endif 4435 4436#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4437int 4438main () 4439{ 4440 int i; 4441 for (i = 0; i < 256; i++) 4442 if (XOR (islower (i), ISLOWER (i)) 4443 || toupper (i) != TOUPPER (i)) 4444 return 2; 4445 return 0; 4446} 4447_ACEOF 4448if ac_fn_c_try_run "$LINENO"; then : 4449 4450else 4451 ac_cv_header_stdc=no 4452fi 4453rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4454 conftest.$ac_objext conftest.beam conftest.$ac_ext 4455fi 4456 4457fi 4458fi 4459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4460$as_echo "$ac_cv_header_stdc" >&6; } 4461if test $ac_cv_header_stdc = yes; then 4462 4463$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4464 4465fi 4466 4467# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4468for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4469 inttypes.h stdint.h unistd.h 4470do : 4471 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4472ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4473" 4474if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4475 cat >>confdefs.h <<_ACEOF 4476#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4477_ACEOF 4478 4479fi 4480 4481done 4482 4483 4484for ac_header in stdlib.h 4485do : 4486 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 4487if test "x$ac_cv_header_stdlib_h" = xyes; then : 4488 cat >>confdefs.h <<_ACEOF 4489#define HAVE_STDLIB_H 1 4490_ACEOF 4491 4492else 4493 as_fn_error $? "cannot find stdlib.h, bailing out" "$LINENO" 5 4494fi 4495 4496done 4497 4498for ac_header in stdio.h 4499do : 4500 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 4501if test "x$ac_cv_header_stdio_h" = xyes; then : 4502 cat >>confdefs.h <<_ACEOF 4503#define HAVE_STDIO_H 1 4504_ACEOF 4505 4506else 4507 as_fn_error $? "cannot find stdio.h, bailing out" "$LINENO" 5 4508fi 4509 4510done 4511 4512for ac_header in memory.h 4513do : 4514 ac_fn_c_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default" 4515if test "x$ac_cv_header_memory_h" = xyes; then : 4516 cat >>confdefs.h <<_ACEOF 4517#define HAVE_MEMORY_H 1 4518_ACEOF 4519 4520else 4521 as_fn_error $? "cannot find memory.h, bailing out" "$LINENO" 5 4522fi 4523 4524done 4525 4526 4527 4528# Checks for programs. 4529ac_ext=cpp 4530ac_cpp='$CXXCPP $CPPFLAGS' 4531ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4532ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4533ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4534if test -z "$CXX"; then 4535 if test -n "$CCC"; then 4536 CXX=$CCC 4537 else 4538 if test -n "$ac_tool_prefix"; then 4539 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4540 do 4541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4542set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4544$as_echo_n "checking for $ac_word... " >&6; } 4545if ${ac_cv_prog_CXX+:} false; then : 4546 $as_echo_n "(cached) " >&6 4547else 4548 if test -n "$CXX"; then 4549 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4550else 4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4552for as_dir in $PATH 4553do 4554 IFS=$as_save_IFS 4555 test -z "$as_dir" && as_dir=. 4556 for ac_exec_ext in '' $ac_executable_extensions; do 4557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4558 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4560 break 2 4561 fi 4562done 4563 done 4564IFS=$as_save_IFS 4565 4566fi 4567fi 4568CXX=$ac_cv_prog_CXX 4569if test -n "$CXX"; then 4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4571$as_echo "$CXX" >&6; } 4572else 4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4574$as_echo "no" >&6; } 4575fi 4576 4577 4578 test -n "$CXX" && break 4579 done 4580fi 4581if test -z "$CXX"; then 4582 ac_ct_CXX=$CXX 4583 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4584do 4585 # Extract the first word of "$ac_prog", so it can be a program name with args. 4586set dummy $ac_prog; ac_word=$2 4587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4588$as_echo_n "checking for $ac_word... " >&6; } 4589if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4590 $as_echo_n "(cached) " >&6 4591else 4592 if test -n "$ac_ct_CXX"; then 4593 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4594else 4595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4596for as_dir in $PATH 4597do 4598 IFS=$as_save_IFS 4599 test -z "$as_dir" && as_dir=. 4600 for ac_exec_ext in '' $ac_executable_extensions; do 4601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4602 ac_cv_prog_ac_ct_CXX="$ac_prog" 4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4604 break 2 4605 fi 4606done 4607 done 4608IFS=$as_save_IFS 4609 4610fi 4611fi 4612ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4613if test -n "$ac_ct_CXX"; then 4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4615$as_echo "$ac_ct_CXX" >&6; } 4616else 4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4618$as_echo "no" >&6; } 4619fi 4620 4621 4622 test -n "$ac_ct_CXX" && break 4623done 4624 4625 if test "x$ac_ct_CXX" = x; then 4626 CXX="g++" 4627 else 4628 case $cross_compiling:$ac_tool_warned in 4629yes:) 4630{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4631$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4632ac_tool_warned=yes ;; 4633esac 4634 CXX=$ac_ct_CXX 4635 fi 4636fi 4637 4638 fi 4639fi 4640# Provide some information about the compiler. 4641$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4642set X $ac_compile 4643ac_compiler=$2 4644for ac_option in --version -v -V -qversion; do 4645 { { ac_try="$ac_compiler $ac_option >&5" 4646case "(($ac_try" in 4647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4648 *) ac_try_echo=$ac_try;; 4649esac 4650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4651$as_echo "$ac_try_echo"; } >&5 4652 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4653 ac_status=$? 4654 if test -s conftest.err; then 4655 sed '10a\ 4656... rest of stderr output deleted ... 4657 10q' conftest.err >conftest.er1 4658 cat conftest.er1 >&5 4659 fi 4660 rm -f conftest.er1 conftest.err 4661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4662 test $ac_status = 0; } 4663done 4664 4665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4666$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4667if ${ac_cv_cxx_compiler_gnu+:} false; then : 4668 $as_echo_n "(cached) " >&6 4669else 4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4671/* end confdefs.h. */ 4672 4673int 4674main () 4675{ 4676#ifndef __GNUC__ 4677 choke me 4678#endif 4679 4680 ; 4681 return 0; 4682} 4683_ACEOF 4684if ac_fn_cxx_try_compile "$LINENO"; then : 4685 ac_compiler_gnu=yes 4686else 4687 ac_compiler_gnu=no 4688fi 4689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4690ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4691 4692fi 4693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4694$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4695if test $ac_compiler_gnu = yes; then 4696 GXX=yes 4697else 4698 GXX= 4699fi 4700ac_test_CXXFLAGS=${CXXFLAGS+set} 4701ac_save_CXXFLAGS=$CXXFLAGS 4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4703$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4704if ${ac_cv_prog_cxx_g+:} false; then : 4705 $as_echo_n "(cached) " >&6 4706else 4707 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4708 ac_cxx_werror_flag=yes 4709 ac_cv_prog_cxx_g=no 4710 CXXFLAGS="-g" 4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4712/* end confdefs.h. */ 4713 4714int 4715main () 4716{ 4717 4718 ; 4719 return 0; 4720} 4721_ACEOF 4722if ac_fn_cxx_try_compile "$LINENO"; then : 4723 ac_cv_prog_cxx_g=yes 4724else 4725 CXXFLAGS="" 4726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4727/* end confdefs.h. */ 4728 4729int 4730main () 4731{ 4732 4733 ; 4734 return 0; 4735} 4736_ACEOF 4737if ac_fn_cxx_try_compile "$LINENO"; then : 4738 4739else 4740 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4741 CXXFLAGS="-g" 4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4743/* end confdefs.h. */ 4744 4745int 4746main () 4747{ 4748 4749 ; 4750 return 0; 4751} 4752_ACEOF 4753if ac_fn_cxx_try_compile "$LINENO"; then : 4754 ac_cv_prog_cxx_g=yes 4755fi 4756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4757fi 4758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4759fi 4760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4761 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4762fi 4763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4764$as_echo "$ac_cv_prog_cxx_g" >&6; } 4765if test "$ac_test_CXXFLAGS" = set; then 4766 CXXFLAGS=$ac_save_CXXFLAGS 4767elif test $ac_cv_prog_cxx_g = yes; then 4768 if test "$GXX" = yes; then 4769 CXXFLAGS="-g -O2" 4770 else 4771 CXXFLAGS="-g" 4772 fi 4773else 4774 if test "$GXX" = yes; then 4775 CXXFLAGS="-O2" 4776 else 4777 CXXFLAGS= 4778 fi 4779fi 4780ac_ext=c 4781ac_cpp='$CPP $CPPFLAGS' 4782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4784ac_compiler_gnu=$ac_cv_c_compiler_gnu 4785 4786depcc="$CXX" am_compiler_list= 4787 4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4789$as_echo_n "checking dependency style of $depcc... " >&6; } 4790if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4791 $as_echo_n "(cached) " >&6 4792else 4793 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4794 # We make a subdir and do the tests there. Otherwise we can end up 4795 # making bogus files that we don't know about and never remove. For 4796 # instance it was reported that on HP-UX the gcc test will end up 4797 # making a dummy file named 'D' -- because '-MD' means "put the output 4798 # in D". 4799 rm -rf conftest.dir 4800 mkdir conftest.dir 4801 # Copy depcomp to subdir because otherwise we won't find it if we're 4802 # using a relative directory. 4803 cp "$am_depcomp" conftest.dir 4804 cd conftest.dir 4805 # We will build objects and dependencies in a subdirectory because 4806 # it helps to detect inapplicable dependency modes. For instance 4807 # both Tru64's cc and ICC support -MD to output dependencies as a 4808 # side effect of compilation, but ICC will put the dependencies in 4809 # the current directory while Tru64 will put them in the object 4810 # directory. 4811 mkdir sub 4812 4813 am_cv_CXX_dependencies_compiler_type=none 4814 if test "$am_compiler_list" = ""; then 4815 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4816 fi 4817 am__universal=false 4818 case " $depcc " in #( 4819 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4820 esac 4821 4822 for depmode in $am_compiler_list; do 4823 # Setup a source with many dependencies, because some compilers 4824 # like to wrap large dependency lists on column 80 (with \), and 4825 # we should not choose a depcomp mode which is confused by this. 4826 # 4827 # We need to recreate these files for each test, as the compiler may 4828 # overwrite some of them when testing with obscure command lines. 4829 # This happens at least with the AIX C compiler. 4830 : > sub/conftest.c 4831 for i in 1 2 3 4 5 6; do 4832 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4833 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4834 # Solaris 10 /bin/sh. 4835 echo '/* dummy */' > sub/conftst$i.h 4836 done 4837 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4838 4839 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4840 # mode. It turns out that the SunPro C++ compiler does not properly 4841 # handle '-M -o', and we need to detect this. Also, some Intel 4842 # versions had trouble with output in subdirs. 4843 am__obj=sub/conftest.${OBJEXT-o} 4844 am__minus_obj="-o $am__obj" 4845 case $depmode in 4846 gcc) 4847 # This depmode causes a compiler race in universal mode. 4848 test "$am__universal" = false || continue 4849 ;; 4850 nosideeffect) 4851 # After this tag, mechanisms are not by side-effect, so they'll 4852 # only be used when explicitly requested. 4853 if test "x$enable_dependency_tracking" = xyes; then 4854 continue 4855 else 4856 break 4857 fi 4858 ;; 4859 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4860 # This compiler won't grok '-c -o', but also, the minuso test has 4861 # not run yet. These depmodes are late enough in the game, and 4862 # so weak that their functioning should not be impacted. 4863 am__obj=conftest.${OBJEXT-o} 4864 am__minus_obj= 4865 ;; 4866 none) break ;; 4867 esac 4868 if depmode=$depmode \ 4869 source=sub/conftest.c object=$am__obj \ 4870 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4871 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4872 >/dev/null 2>conftest.err && 4873 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4874 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4875 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4876 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4877 # icc doesn't choke on unknown options, it will just issue warnings 4878 # or remarks (even with -Werror). So we grep stderr for any message 4879 # that says an option was ignored or not supported. 4880 # When given -MP, icc 7.0 and 7.1 complain thusly: 4881 # icc: Command line warning: ignoring option '-M'; no argument required 4882 # The diagnosis changed in icc 8.0: 4883 # icc: Command line remark: option '-MP' not supported 4884 if (grep 'ignoring option' conftest.err || 4885 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4886 am_cv_CXX_dependencies_compiler_type=$depmode 4887 break 4888 fi 4889 fi 4890 done 4891 4892 cd .. 4893 rm -rf conftest.dir 4894else 4895 am_cv_CXX_dependencies_compiler_type=none 4896fi 4897 4898fi 4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4900$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4901CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4902 4903 if 4904 test "x$enable_dependency_tracking" != xno \ 4905 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4906 am__fastdepCXX_TRUE= 4907 am__fastdepCXX_FALSE='#' 4908else 4909 am__fastdepCXX_TRUE='#' 4910 am__fastdepCXX_FALSE= 4911fi 4912 4913 4914ac_ext=c 4915ac_cpp='$CPP $CPPFLAGS' 4916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4918ac_compiler_gnu=$ac_cv_c_compiler_gnu 4919if test -n "$ac_tool_prefix"; then 4920 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4921set dummy ${ac_tool_prefix}gcc; ac_word=$2 4922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4923$as_echo_n "checking for $ac_word... " >&6; } 4924if ${ac_cv_prog_CC+:} false; then : 4925 $as_echo_n "(cached) " >&6 4926else 4927 if test -n "$CC"; then 4928 ac_cv_prog_CC="$CC" # Let the user override the test. 4929else 4930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4931for as_dir in $PATH 4932do 4933 IFS=$as_save_IFS 4934 test -z "$as_dir" && as_dir=. 4935 for ac_exec_ext in '' $ac_executable_extensions; do 4936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4937 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4939 break 2 4940 fi 4941done 4942 done 4943IFS=$as_save_IFS 4944 4945fi 4946fi 4947CC=$ac_cv_prog_CC 4948if test -n "$CC"; then 4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4950$as_echo "$CC" >&6; } 4951else 4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4953$as_echo "no" >&6; } 4954fi 4955 4956 4957fi 4958if test -z "$ac_cv_prog_CC"; then 4959 ac_ct_CC=$CC 4960 # Extract the first word of "gcc", so it can be a program name with args. 4961set dummy gcc; ac_word=$2 4962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4963$as_echo_n "checking for $ac_word... " >&6; } 4964if ${ac_cv_prog_ac_ct_CC+:} false; then : 4965 $as_echo_n "(cached) " >&6 4966else 4967 if test -n "$ac_ct_CC"; then 4968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4969else 4970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4971for as_dir in $PATH 4972do 4973 IFS=$as_save_IFS 4974 test -z "$as_dir" && as_dir=. 4975 for ac_exec_ext in '' $ac_executable_extensions; do 4976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4977 ac_cv_prog_ac_ct_CC="gcc" 4978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4979 break 2 4980 fi 4981done 4982 done 4983IFS=$as_save_IFS 4984 4985fi 4986fi 4987ac_ct_CC=$ac_cv_prog_ac_ct_CC 4988if test -n "$ac_ct_CC"; then 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4990$as_echo "$ac_ct_CC" >&6; } 4991else 4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4993$as_echo "no" >&6; } 4994fi 4995 4996 if test "x$ac_ct_CC" = x; then 4997 CC="" 4998 else 4999 case $cross_compiling:$ac_tool_warned in 5000yes:) 5001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5003ac_tool_warned=yes ;; 5004esac 5005 CC=$ac_ct_CC 5006 fi 5007else 5008 CC="$ac_cv_prog_CC" 5009fi 5010 5011if test -z "$CC"; then 5012 if test -n "$ac_tool_prefix"; then 5013 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5014set dummy ${ac_tool_prefix}cc; ac_word=$2 5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5016$as_echo_n "checking for $ac_word... " >&6; } 5017if ${ac_cv_prog_CC+:} false; then : 5018 $as_echo_n "(cached) " >&6 5019else 5020 if test -n "$CC"; then 5021 ac_cv_prog_CC="$CC" # Let the user override the test. 5022else 5023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5024for as_dir in $PATH 5025do 5026 IFS=$as_save_IFS 5027 test -z "$as_dir" && as_dir=. 5028 for ac_exec_ext in '' $ac_executable_extensions; do 5029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5030 ac_cv_prog_CC="${ac_tool_prefix}cc" 5031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5032 break 2 5033 fi 5034done 5035 done 5036IFS=$as_save_IFS 5037 5038fi 5039fi 5040CC=$ac_cv_prog_CC 5041if test -n "$CC"; then 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5043$as_echo "$CC" >&6; } 5044else 5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5046$as_echo "no" >&6; } 5047fi 5048 5049 5050 fi 5051fi 5052if test -z "$CC"; then 5053 # Extract the first word of "cc", so it can be a program name with args. 5054set dummy cc; ac_word=$2 5055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5056$as_echo_n "checking for $ac_word... " >&6; } 5057if ${ac_cv_prog_CC+:} false; then : 5058 $as_echo_n "(cached) " >&6 5059else 5060 if test -n "$CC"; then 5061 ac_cv_prog_CC="$CC" # Let the user override the test. 5062else 5063 ac_prog_rejected=no 5064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5065for as_dir in $PATH 5066do 5067 IFS=$as_save_IFS 5068 test -z "$as_dir" && as_dir=. 5069 for ac_exec_ext in '' $ac_executable_extensions; do 5070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5071 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5072 ac_prog_rejected=yes 5073 continue 5074 fi 5075 ac_cv_prog_CC="cc" 5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5077 break 2 5078 fi 5079done 5080 done 5081IFS=$as_save_IFS 5082 5083if test $ac_prog_rejected = yes; then 5084 # We found a bogon in the path, so make sure we never use it. 5085 set dummy $ac_cv_prog_CC 5086 shift 5087 if test $# != 0; then 5088 # We chose a different compiler from the bogus one. 5089 # However, it has the same basename, so the bogon will be chosen 5090 # first if we set CC to just the basename; use the full file name. 5091 shift 5092 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5093 fi 5094fi 5095fi 5096fi 5097CC=$ac_cv_prog_CC 5098if test -n "$CC"; then 5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5100$as_echo "$CC" >&6; } 5101else 5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5103$as_echo "no" >&6; } 5104fi 5105 5106 5107fi 5108if test -z "$CC"; then 5109 if test -n "$ac_tool_prefix"; then 5110 for ac_prog in cl.exe 5111 do 5112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5113set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5115$as_echo_n "checking for $ac_word... " >&6; } 5116if ${ac_cv_prog_CC+:} false; then : 5117 $as_echo_n "(cached) " >&6 5118else 5119 if test -n "$CC"; then 5120 ac_cv_prog_CC="$CC" # Let the user override the test. 5121else 5122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5123for as_dir in $PATH 5124do 5125 IFS=$as_save_IFS 5126 test -z "$as_dir" && as_dir=. 5127 for ac_exec_ext in '' $ac_executable_extensions; do 5128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5129 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5131 break 2 5132 fi 5133done 5134 done 5135IFS=$as_save_IFS 5136 5137fi 5138fi 5139CC=$ac_cv_prog_CC 5140if test -n "$CC"; then 5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5142$as_echo "$CC" >&6; } 5143else 5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5145$as_echo "no" >&6; } 5146fi 5147 5148 5149 test -n "$CC" && break 5150 done 5151fi 5152if test -z "$CC"; then 5153 ac_ct_CC=$CC 5154 for ac_prog in cl.exe 5155do 5156 # Extract the first word of "$ac_prog", so it can be a program name with args. 5157set dummy $ac_prog; ac_word=$2 5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5159$as_echo_n "checking for $ac_word... " >&6; } 5160if ${ac_cv_prog_ac_ct_CC+:} false; then : 5161 $as_echo_n "(cached) " >&6 5162else 5163 if test -n "$ac_ct_CC"; then 5164 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5165else 5166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5167for as_dir in $PATH 5168do 5169 IFS=$as_save_IFS 5170 test -z "$as_dir" && as_dir=. 5171 for ac_exec_ext in '' $ac_executable_extensions; do 5172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5173 ac_cv_prog_ac_ct_CC="$ac_prog" 5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5175 break 2 5176 fi 5177done 5178 done 5179IFS=$as_save_IFS 5180 5181fi 5182fi 5183ac_ct_CC=$ac_cv_prog_ac_ct_CC 5184if test -n "$ac_ct_CC"; then 5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5186$as_echo "$ac_ct_CC" >&6; } 5187else 5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5189$as_echo "no" >&6; } 5190fi 5191 5192 5193 test -n "$ac_ct_CC" && break 5194done 5195 5196 if test "x$ac_ct_CC" = x; then 5197 CC="" 5198 else 5199 case $cross_compiling:$ac_tool_warned in 5200yes:) 5201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5203ac_tool_warned=yes ;; 5204esac 5205 CC=$ac_ct_CC 5206 fi 5207fi 5208 5209fi 5210 5211 5212test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5214as_fn_error $? "no acceptable C compiler found in \$PATH 5215See \`config.log' for more details" "$LINENO" 5; } 5216 5217# Provide some information about the compiler. 5218$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5219set X $ac_compile 5220ac_compiler=$2 5221for ac_option in --version -v -V -qversion; do 5222 { { ac_try="$ac_compiler $ac_option >&5" 5223case "(($ac_try" in 5224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5225 *) ac_try_echo=$ac_try;; 5226esac 5227eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5228$as_echo "$ac_try_echo"; } >&5 5229 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5230 ac_status=$? 5231 if test -s conftest.err; then 5232 sed '10a\ 5233... rest of stderr output deleted ... 5234 10q' conftest.err >conftest.er1 5235 cat conftest.er1 >&5 5236 fi 5237 rm -f conftest.er1 conftest.err 5238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5239 test $ac_status = 0; } 5240done 5241 5242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5243$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5244if ${ac_cv_c_compiler_gnu+:} false; then : 5245 $as_echo_n "(cached) " >&6 5246else 5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5248/* end confdefs.h. */ 5249 5250int 5251main () 5252{ 5253#ifndef __GNUC__ 5254 choke me 5255#endif 5256 5257 ; 5258 return 0; 5259} 5260_ACEOF 5261if ac_fn_c_try_compile "$LINENO"; then : 5262 ac_compiler_gnu=yes 5263else 5264 ac_compiler_gnu=no 5265fi 5266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5267ac_cv_c_compiler_gnu=$ac_compiler_gnu 5268 5269fi 5270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5271$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5272if test $ac_compiler_gnu = yes; then 5273 GCC=yes 5274else 5275 GCC= 5276fi 5277ac_test_CFLAGS=${CFLAGS+set} 5278ac_save_CFLAGS=$CFLAGS 5279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5280$as_echo_n "checking whether $CC accepts -g... " >&6; } 5281if ${ac_cv_prog_cc_g+:} false; then : 5282 $as_echo_n "(cached) " >&6 5283else 5284 ac_save_c_werror_flag=$ac_c_werror_flag 5285 ac_c_werror_flag=yes 5286 ac_cv_prog_cc_g=no 5287 CFLAGS="-g" 5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5289/* end confdefs.h. */ 5290 5291int 5292main () 5293{ 5294 5295 ; 5296 return 0; 5297} 5298_ACEOF 5299if ac_fn_c_try_compile "$LINENO"; then : 5300 ac_cv_prog_cc_g=yes 5301else 5302 CFLAGS="" 5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5304/* end confdefs.h. */ 5305 5306int 5307main () 5308{ 5309 5310 ; 5311 return 0; 5312} 5313_ACEOF 5314if ac_fn_c_try_compile "$LINENO"; then : 5315 5316else 5317 ac_c_werror_flag=$ac_save_c_werror_flag 5318 CFLAGS="-g" 5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5320/* end confdefs.h. */ 5321 5322int 5323main () 5324{ 5325 5326 ; 5327 return 0; 5328} 5329_ACEOF 5330if ac_fn_c_try_compile "$LINENO"; then : 5331 ac_cv_prog_cc_g=yes 5332fi 5333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5334fi 5335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5336fi 5337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5338 ac_c_werror_flag=$ac_save_c_werror_flag 5339fi 5340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5341$as_echo "$ac_cv_prog_cc_g" >&6; } 5342if test "$ac_test_CFLAGS" = set; then 5343 CFLAGS=$ac_save_CFLAGS 5344elif test $ac_cv_prog_cc_g = yes; then 5345 if test "$GCC" = yes; then 5346 CFLAGS="-g -O2" 5347 else 5348 CFLAGS="-g" 5349 fi 5350else 5351 if test "$GCC" = yes; then 5352 CFLAGS="-O2" 5353 else 5354 CFLAGS= 5355 fi 5356fi 5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5358$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5359if ${ac_cv_prog_cc_c89+:} false; then : 5360 $as_echo_n "(cached) " >&6 5361else 5362 ac_cv_prog_cc_c89=no 5363ac_save_CC=$CC 5364cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5365/* end confdefs.h. */ 5366#include <stdarg.h> 5367#include <stdio.h> 5368struct stat; 5369/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5370struct buf { int x; }; 5371FILE * (*rcsopen) (struct buf *, struct stat *, int); 5372static char *e (p, i) 5373 char **p; 5374 int i; 5375{ 5376 return p[i]; 5377} 5378static char *f (char * (*g) (char **, int), char **p, ...) 5379{ 5380 char *s; 5381 va_list v; 5382 va_start (v,p); 5383 s = g (p, va_arg (v,int)); 5384 va_end (v); 5385 return s; 5386} 5387 5388/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5389 function prototypes and stuff, but not '\xHH' hex character constants. 5390 These don't provoke an error unfortunately, instead are silently treated 5391 as 'x'. The following induces an error, until -std is added to get 5392 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5393 array size at least. It's necessary to write '\x00'==0 to get something 5394 that's true only with -std. */ 5395int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5396 5397/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5398 inside strings and character constants. */ 5399#define FOO(x) 'x' 5400int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5401 5402int test (int i, double x); 5403struct s1 {int (*f) (int a);}; 5404struct s2 {int (*f) (double a);}; 5405int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5406int argc; 5407char **argv; 5408int 5409main () 5410{ 5411return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5412 ; 5413 return 0; 5414} 5415_ACEOF 5416for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5417 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5418do 5419 CC="$ac_save_CC $ac_arg" 5420 if ac_fn_c_try_compile "$LINENO"; then : 5421 ac_cv_prog_cc_c89=$ac_arg 5422fi 5423rm -f core conftest.err conftest.$ac_objext 5424 test "x$ac_cv_prog_cc_c89" != "xno" && break 5425done 5426rm -f conftest.$ac_ext 5427CC=$ac_save_CC 5428 5429fi 5430# AC_CACHE_VAL 5431case "x$ac_cv_prog_cc_c89" in 5432 x) 5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5434$as_echo "none needed" >&6; } ;; 5435 xno) 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5437$as_echo "unsupported" >&6; } ;; 5438 *) 5439 CC="$CC $ac_cv_prog_cc_c89" 5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5441$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5442esac 5443if test "x$ac_cv_prog_cc_c89" != xno; then : 5444 5445fi 5446 5447ac_ext=c 5448ac_cpp='$CPP $CPPFLAGS' 5449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5451ac_compiler_gnu=$ac_cv_c_compiler_gnu 5452 5453ac_ext=c 5454ac_cpp='$CPP $CPPFLAGS' 5455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5457ac_compiler_gnu=$ac_cv_c_compiler_gnu 5458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5459$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5460if ${am_cv_prog_cc_c_o+:} false; then : 5461 $as_echo_n "(cached) " >&6 5462else 5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5464/* end confdefs.h. */ 5465 5466int 5467main () 5468{ 5469 5470 ; 5471 return 0; 5472} 5473_ACEOF 5474 # Make sure it works both with $CC and with simple cc. 5475 # Following AC_PROG_CC_C_O, we do the test twice because some 5476 # compilers refuse to overwrite an existing .o file with -o, 5477 # though they will create one. 5478 am_cv_prog_cc_c_o=yes 5479 for am_i in 1 2; do 5480 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5481 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5482 ac_status=$? 5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5484 (exit $ac_status); } \ 5485 && test -f conftest2.$ac_objext; then 5486 : OK 5487 else 5488 am_cv_prog_cc_c_o=no 5489 break 5490 fi 5491 done 5492 rm -f core conftest* 5493 unset am_i 5494fi 5495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5496$as_echo "$am_cv_prog_cc_c_o" >&6; } 5497if test "$am_cv_prog_cc_c_o" != yes; then 5498 # Losing compiler, so override with the script. 5499 # FIXME: It is wrong to rewrite CC. 5500 # But if we don't then we get into trouble of one sort or another. 5501 # A longer-term fix would be to have automake use am__CC in this case, 5502 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5503 CC="$am_aux_dir/compile $CC" 5504fi 5505ac_ext=c 5506ac_cpp='$CPP $CPPFLAGS' 5507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5509ac_compiler_gnu=$ac_cv_c_compiler_gnu 5510 5511 5512depcc="$CC" am_compiler_list= 5513 5514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5515$as_echo_n "checking dependency style of $depcc... " >&6; } 5516if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5517 $as_echo_n "(cached) " >&6 5518else 5519 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5520 # We make a subdir and do the tests there. Otherwise we can end up 5521 # making bogus files that we don't know about and never remove. For 5522 # instance it was reported that on HP-UX the gcc test will end up 5523 # making a dummy file named 'D' -- because '-MD' means "put the output 5524 # in D". 5525 rm -rf conftest.dir 5526 mkdir conftest.dir 5527 # Copy depcomp to subdir because otherwise we won't find it if we're 5528 # using a relative directory. 5529 cp "$am_depcomp" conftest.dir 5530 cd conftest.dir 5531 # We will build objects and dependencies in a subdirectory because 5532 # it helps to detect inapplicable dependency modes. For instance 5533 # both Tru64's cc and ICC support -MD to output dependencies as a 5534 # side effect of compilation, but ICC will put the dependencies in 5535 # the current directory while Tru64 will put them in the object 5536 # directory. 5537 mkdir sub 5538 5539 am_cv_CC_dependencies_compiler_type=none 5540 if test "$am_compiler_list" = ""; then 5541 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5542 fi 5543 am__universal=false 5544 case " $depcc " in #( 5545 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5546 esac 5547 5548 for depmode in $am_compiler_list; do 5549 # Setup a source with many dependencies, because some compilers 5550 # like to wrap large dependency lists on column 80 (with \), and 5551 # we should not choose a depcomp mode which is confused by this. 5552 # 5553 # We need to recreate these files for each test, as the compiler may 5554 # overwrite some of them when testing with obscure command lines. 5555 # This happens at least with the AIX C compiler. 5556 : > sub/conftest.c 5557 for i in 1 2 3 4 5 6; do 5558 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5559 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5560 # Solaris 10 /bin/sh. 5561 echo '/* dummy */' > sub/conftst$i.h 5562 done 5563 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5564 5565 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5566 # mode. It turns out that the SunPro C++ compiler does not properly 5567 # handle '-M -o', and we need to detect this. Also, some Intel 5568 # versions had trouble with output in subdirs. 5569 am__obj=sub/conftest.${OBJEXT-o} 5570 am__minus_obj="-o $am__obj" 5571 case $depmode in 5572 gcc) 5573 # This depmode causes a compiler race in universal mode. 5574 test "$am__universal" = false || continue 5575 ;; 5576 nosideeffect) 5577 # After this tag, mechanisms are not by side-effect, so they'll 5578 # only be used when explicitly requested. 5579 if test "x$enable_dependency_tracking" = xyes; then 5580 continue 5581 else 5582 break 5583 fi 5584 ;; 5585 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5586 # This compiler won't grok '-c -o', but also, the minuso test has 5587 # not run yet. These depmodes are late enough in the game, and 5588 # so weak that their functioning should not be impacted. 5589 am__obj=conftest.${OBJEXT-o} 5590 am__minus_obj= 5591 ;; 5592 none) break ;; 5593 esac 5594 if depmode=$depmode \ 5595 source=sub/conftest.c object=$am__obj \ 5596 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5597 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5598 >/dev/null 2>conftest.err && 5599 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5600 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5601 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5602 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5603 # icc doesn't choke on unknown options, it will just issue warnings 5604 # or remarks (even with -Werror). So we grep stderr for any message 5605 # that says an option was ignored or not supported. 5606 # When given -MP, icc 7.0 and 7.1 complain thusly: 5607 # icc: Command line warning: ignoring option '-M'; no argument required 5608 # The diagnosis changed in icc 8.0: 5609 # icc: Command line remark: option '-MP' not supported 5610 if (grep 'ignoring option' conftest.err || 5611 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5612 am_cv_CC_dependencies_compiler_type=$depmode 5613 break 5614 fi 5615 fi 5616 done 5617 5618 cd .. 5619 rm -rf conftest.dir 5620else 5621 am_cv_CC_dependencies_compiler_type=none 5622fi 5623 5624fi 5625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5626$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5627CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5628 5629 if 5630 test "x$enable_dependency_tracking" != xno \ 5631 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5632 am__fastdepCC_TRUE= 5633 am__fastdepCC_FALSE='#' 5634else 5635 am__fastdepCC_TRUE='#' 5636 am__fastdepCC_FALSE= 5637fi 5638 5639 5640ac_ext=c 5641ac_cpp='$CPP $CPPFLAGS' 5642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5644ac_compiler_gnu=$ac_cv_c_compiler_gnu 5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5646$as_echo_n "checking how to run the C preprocessor... " >&6; } 5647# On Suns, sometimes $CPP names a directory. 5648if test -n "$CPP" && test -d "$CPP"; then 5649 CPP= 5650fi 5651if test -z "$CPP"; then 5652 if ${ac_cv_prog_CPP+:} false; then : 5653 $as_echo_n "(cached) " >&6 5654else 5655 # Double quotes because CPP needs to be expanded 5656 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5657 do 5658 ac_preproc_ok=false 5659for ac_c_preproc_warn_flag in '' yes 5660do 5661 # Use a header file that comes with gcc, so configuring glibc 5662 # with a fresh cross-compiler works. 5663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5664 # <limits.h> exists even on freestanding compilers. 5665 # On the NeXT, cc -E runs the code through the compiler's parser, 5666 # not just through cpp. "Syntax error" is here to catch this case. 5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5668/* end confdefs.h. */ 5669#ifdef __STDC__ 5670# include <limits.h> 5671#else 5672# include <assert.h> 5673#endif 5674 Syntax error 5675_ACEOF 5676if ac_fn_c_try_cpp "$LINENO"; then : 5677 5678else 5679 # Broken: fails on valid input. 5680continue 5681fi 5682rm -f conftest.err conftest.i conftest.$ac_ext 5683 5684 # OK, works on sane cases. Now check whether nonexistent headers 5685 # can be detected and how. 5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5687/* end confdefs.h. */ 5688#include <ac_nonexistent.h> 5689_ACEOF 5690if ac_fn_c_try_cpp "$LINENO"; then : 5691 # Broken: success on invalid input. 5692continue 5693else 5694 # Passes both tests. 5695ac_preproc_ok=: 5696break 5697fi 5698rm -f conftest.err conftest.i conftest.$ac_ext 5699 5700done 5701# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5702rm -f conftest.i conftest.err conftest.$ac_ext 5703if $ac_preproc_ok; then : 5704 break 5705fi 5706 5707 done 5708 ac_cv_prog_CPP=$CPP 5709 5710fi 5711 CPP=$ac_cv_prog_CPP 5712else 5713 ac_cv_prog_CPP=$CPP 5714fi 5715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5716$as_echo "$CPP" >&6; } 5717ac_preproc_ok=false 5718for ac_c_preproc_warn_flag in '' yes 5719do 5720 # Use a header file that comes with gcc, so configuring glibc 5721 # with a fresh cross-compiler works. 5722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5723 # <limits.h> exists even on freestanding compilers. 5724 # On the NeXT, cc -E runs the code through the compiler's parser, 5725 # not just through cpp. "Syntax error" is here to catch this case. 5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5727/* end confdefs.h. */ 5728#ifdef __STDC__ 5729# include <limits.h> 5730#else 5731# include <assert.h> 5732#endif 5733 Syntax error 5734_ACEOF 5735if ac_fn_c_try_cpp "$LINENO"; then : 5736 5737else 5738 # Broken: fails on valid input. 5739continue 5740fi 5741rm -f conftest.err conftest.i conftest.$ac_ext 5742 5743 # OK, works on sane cases. Now check whether nonexistent headers 5744 # can be detected and how. 5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5746/* end confdefs.h. */ 5747#include <ac_nonexistent.h> 5748_ACEOF 5749if ac_fn_c_try_cpp "$LINENO"; then : 5750 # Broken: success on invalid input. 5751continue 5752else 5753 # Passes both tests. 5754ac_preproc_ok=: 5755break 5756fi 5757rm -f conftest.err conftest.i conftest.$ac_ext 5758 5759done 5760# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5761rm -f conftest.i conftest.err conftest.$ac_ext 5762if $ac_preproc_ok; then : 5763 5764else 5765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5767as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5768See \`config.log' for more details" "$LINENO" 5; } 5769fi 5770 5771ac_ext=c 5772ac_cpp='$CPP $CPPFLAGS' 5773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5775ac_compiler_gnu=$ac_cv_c_compiler_gnu 5776 5777 5778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5779$as_echo_n "checking whether ln -s works... " >&6; } 5780LN_S=$as_ln_s 5781if test "$LN_S" = "ln -s"; then 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5783$as_echo "yes" >&6; } 5784else 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5786$as_echo "no, using $LN_S" >&6; } 5787fi 5788 5789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5790$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5791set x ${MAKE-make} 5792ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5793if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 5794 $as_echo_n "(cached) " >&6 5795else 5796 cat >conftest.make <<\_ACEOF 5797SHELL = /bin/sh 5798all: 5799 @echo '@@@%%%=$(MAKE)=@@@%%%' 5800_ACEOF 5801# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5802case `${MAKE-make} -f conftest.make 2>/dev/null` in 5803 *@@@%%%=?*=@@@%%%*) 5804 eval ac_cv_prog_make_${ac_make}_set=yes;; 5805 *) 5806 eval ac_cv_prog_make_${ac_make}_set=no;; 5807esac 5808rm -f conftest.make 5809fi 5810if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5812$as_echo "yes" >&6; } 5813 SET_MAKE= 5814else 5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5816$as_echo "no" >&6; } 5817 SET_MAKE="MAKE=${MAKE-make}" 5818fi 5819 5820# Make sure we can run config.sub. 5821$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5822 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5823 5824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5825$as_echo_n "checking build system type... " >&6; } 5826if ${ac_cv_build+:} false; then : 5827 $as_echo_n "(cached) " >&6 5828else 5829 ac_build_alias=$build_alias 5830test "x$ac_build_alias" = x && 5831 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5832test "x$ac_build_alias" = x && 5833 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5834ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5835 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5836 5837fi 5838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5839$as_echo "$ac_cv_build" >&6; } 5840case $ac_cv_build in 5841*-*-*) ;; 5842*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5843esac 5844build=$ac_cv_build 5845ac_save_IFS=$IFS; IFS='-' 5846set x $ac_cv_build 5847shift 5848build_cpu=$1 5849build_vendor=$2 5850shift; shift 5851# Remember, the first character of IFS is used to create $*, 5852# except with old shells: 5853build_os=$* 5854IFS=$ac_save_IFS 5855case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5856 5857 5858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5859$as_echo_n "checking host system type... " >&6; } 5860if ${ac_cv_host+:} false; then : 5861 $as_echo_n "(cached) " >&6 5862else 5863 if test "x$host_alias" = x; then 5864 ac_cv_host=$ac_cv_build 5865else 5866 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5867 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5868fi 5869 5870fi 5871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5872$as_echo "$ac_cv_host" >&6; } 5873case $ac_cv_host in 5874*-*-*) ;; 5875*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5876esac 5877host=$ac_cv_host 5878ac_save_IFS=$IFS; IFS='-' 5879set x $ac_cv_host 5880shift 5881host_cpu=$1 5882host_vendor=$2 5883shift; shift 5884# Remember, the first character of IFS is used to create $*, 5885# except with old shells: 5886host_os=$* 5887IFS=$ac_save_IFS 5888case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5889 5890 5891enable_win32_dll=yes 5892 5893case $host in 5894*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 5895 if test -n "$ac_tool_prefix"; then 5896 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 5897set dummy ${ac_tool_prefix}as; ac_word=$2 5898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5899$as_echo_n "checking for $ac_word... " >&6; } 5900if ${ac_cv_prog_AS+:} false; then : 5901 $as_echo_n "(cached) " >&6 5902else 5903 if test -n "$AS"; then 5904 ac_cv_prog_AS="$AS" # Let the user override the test. 5905else 5906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5907for as_dir in $PATH 5908do 5909 IFS=$as_save_IFS 5910 test -z "$as_dir" && as_dir=. 5911 for ac_exec_ext in '' $ac_executable_extensions; do 5912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5913 ac_cv_prog_AS="${ac_tool_prefix}as" 5914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5915 break 2 5916 fi 5917done 5918 done 5919IFS=$as_save_IFS 5920 5921fi 5922fi 5923AS=$ac_cv_prog_AS 5924if test -n "$AS"; then 5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 5926$as_echo "$AS" >&6; } 5927else 5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5929$as_echo "no" >&6; } 5930fi 5931 5932 5933fi 5934if test -z "$ac_cv_prog_AS"; then 5935 ac_ct_AS=$AS 5936 # Extract the first word of "as", so it can be a program name with args. 5937set dummy as; ac_word=$2 5938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5939$as_echo_n "checking for $ac_word... " >&6; } 5940if ${ac_cv_prog_ac_ct_AS+:} false; then : 5941 $as_echo_n "(cached) " >&6 5942else 5943 if test -n "$ac_ct_AS"; then 5944 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 5945else 5946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5947for as_dir in $PATH 5948do 5949 IFS=$as_save_IFS 5950 test -z "$as_dir" && as_dir=. 5951 for ac_exec_ext in '' $ac_executable_extensions; do 5952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5953 ac_cv_prog_ac_ct_AS="as" 5954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5955 break 2 5956 fi 5957done 5958 done 5959IFS=$as_save_IFS 5960 5961fi 5962fi 5963ac_ct_AS=$ac_cv_prog_ac_ct_AS 5964if test -n "$ac_ct_AS"; then 5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 5966$as_echo "$ac_ct_AS" >&6; } 5967else 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5969$as_echo "no" >&6; } 5970fi 5971 5972 if test "x$ac_ct_AS" = x; then 5973 AS="false" 5974 else 5975 case $cross_compiling:$ac_tool_warned in 5976yes:) 5977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5979ac_tool_warned=yes ;; 5980esac 5981 AS=$ac_ct_AS 5982 fi 5983else 5984 AS="$ac_cv_prog_AS" 5985fi 5986 5987 if test -n "$ac_tool_prefix"; then 5988 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5989set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5991$as_echo_n "checking for $ac_word... " >&6; } 5992if ${ac_cv_prog_DLLTOOL+:} false; then : 5993 $as_echo_n "(cached) " >&6 5994else 5995 if test -n "$DLLTOOL"; then 5996 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5997else 5998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5999for as_dir in $PATH 6000do 6001 IFS=$as_save_IFS 6002 test -z "$as_dir" && as_dir=. 6003 for ac_exec_ext in '' $ac_executable_extensions; do 6004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6005 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6007 break 2 6008 fi 6009done 6010 done 6011IFS=$as_save_IFS 6012 6013fi 6014fi 6015DLLTOOL=$ac_cv_prog_DLLTOOL 6016if test -n "$DLLTOOL"; then 6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6018$as_echo "$DLLTOOL" >&6; } 6019else 6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6021$as_echo "no" >&6; } 6022fi 6023 6024 6025fi 6026if test -z "$ac_cv_prog_DLLTOOL"; then 6027 ac_ct_DLLTOOL=$DLLTOOL 6028 # Extract the first word of "dlltool", so it can be a program name with args. 6029set dummy dlltool; ac_word=$2 6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6031$as_echo_n "checking for $ac_word... " >&6; } 6032if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6033 $as_echo_n "(cached) " >&6 6034else 6035 if test -n "$ac_ct_DLLTOOL"; then 6036 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6037else 6038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6039for as_dir in $PATH 6040do 6041 IFS=$as_save_IFS 6042 test -z "$as_dir" && as_dir=. 6043 for ac_exec_ext in '' $ac_executable_extensions; do 6044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6045 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6047 break 2 6048 fi 6049done 6050 done 6051IFS=$as_save_IFS 6052 6053fi 6054fi 6055ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6056if test -n "$ac_ct_DLLTOOL"; then 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6058$as_echo "$ac_ct_DLLTOOL" >&6; } 6059else 6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6061$as_echo "no" >&6; } 6062fi 6063 6064 if test "x$ac_ct_DLLTOOL" = x; then 6065 DLLTOOL="false" 6066 else 6067 case $cross_compiling:$ac_tool_warned in 6068yes:) 6069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6071ac_tool_warned=yes ;; 6072esac 6073 DLLTOOL=$ac_ct_DLLTOOL 6074 fi 6075else 6076 DLLTOOL="$ac_cv_prog_DLLTOOL" 6077fi 6078 6079 if test -n "$ac_tool_prefix"; then 6080 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6081set dummy ${ac_tool_prefix}objdump; ac_word=$2 6082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6083$as_echo_n "checking for $ac_word... " >&6; } 6084if ${ac_cv_prog_OBJDUMP+:} false; then : 6085 $as_echo_n "(cached) " >&6 6086else 6087 if test -n "$OBJDUMP"; then 6088 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6089else 6090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6091for as_dir in $PATH 6092do 6093 IFS=$as_save_IFS 6094 test -z "$as_dir" && as_dir=. 6095 for ac_exec_ext in '' $ac_executable_extensions; do 6096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6097 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6099 break 2 6100 fi 6101done 6102 done 6103IFS=$as_save_IFS 6104 6105fi 6106fi 6107OBJDUMP=$ac_cv_prog_OBJDUMP 6108if test -n "$OBJDUMP"; then 6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6110$as_echo "$OBJDUMP" >&6; } 6111else 6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6113$as_echo "no" >&6; } 6114fi 6115 6116 6117fi 6118if test -z "$ac_cv_prog_OBJDUMP"; then 6119 ac_ct_OBJDUMP=$OBJDUMP 6120 # Extract the first word of "objdump", so it can be a program name with args. 6121set dummy objdump; ac_word=$2 6122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6123$as_echo_n "checking for $ac_word... " >&6; } 6124if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6125 $as_echo_n "(cached) " >&6 6126else 6127 if test -n "$ac_ct_OBJDUMP"; then 6128 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6129else 6130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6131for as_dir in $PATH 6132do 6133 IFS=$as_save_IFS 6134 test -z "$as_dir" && as_dir=. 6135 for ac_exec_ext in '' $ac_executable_extensions; do 6136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6137 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6139 break 2 6140 fi 6141done 6142 done 6143IFS=$as_save_IFS 6144 6145fi 6146fi 6147ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6148if test -n "$ac_ct_OBJDUMP"; then 6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6150$as_echo "$ac_ct_OBJDUMP" >&6; } 6151else 6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6153$as_echo "no" >&6; } 6154fi 6155 6156 if test "x$ac_ct_OBJDUMP" = x; then 6157 OBJDUMP="false" 6158 else 6159 case $cross_compiling:$ac_tool_warned in 6160yes:) 6161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6163ac_tool_warned=yes ;; 6164esac 6165 OBJDUMP=$ac_ct_OBJDUMP 6166 fi 6167else 6168 OBJDUMP="$ac_cv_prog_OBJDUMP" 6169fi 6170 6171 ;; 6172esac 6173 6174test -z "$AS" && AS=as 6175 6176 6177 6178 6179 6180test -z "$DLLTOOL" && DLLTOOL=dlltool 6181 6182 6183 6184 6185 6186test -z "$OBJDUMP" && OBJDUMP=objdump 6187 6188 6189 6190 6191 6192 6193 6194case `pwd` in 6195 *\ * | *\ *) 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6197$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6198esac 6199 6200 6201 6202macro_version='2.4' 6203macro_revision='1.3293' 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217ltmain="$ac_aux_dir/ltmain.sh" 6218 6219# Backslashify metacharacters that are still active within 6220# double-quoted strings. 6221sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6222 6223# Same as above, but do not quote variable references. 6224double_quote_subst='s/\(["`\\]\)/\\\1/g' 6225 6226# Sed substitution to delay expansion of an escaped shell variable in a 6227# double_quote_subst'ed string. 6228delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6229 6230# Sed substitution to delay expansion of an escaped single quote. 6231delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6232 6233# Sed substitution to avoid accidental globbing in evaled expressions 6234no_glob_subst='s/\*/\\\*/g' 6235 6236ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6237ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6238ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6239 6240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6241$as_echo_n "checking how to print strings... " >&6; } 6242# Test print first, because it will be a builtin if present. 6243if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6244 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6245 ECHO='print -r --' 6246elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6247 ECHO='printf %s\n' 6248else 6249 # Use this function as a fallback that always works. 6250 func_fallback_echo () 6251 { 6252 eval 'cat <<_LTECHO_EOF 6253$1 6254_LTECHO_EOF' 6255 } 6256 ECHO='func_fallback_echo' 6257fi 6258 6259# func_echo_all arg... 6260# Invoke $ECHO with all args, space-separated. 6261func_echo_all () 6262{ 6263 $ECHO "" 6264} 6265 6266case "$ECHO" in 6267 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6268$as_echo "printf" >&6; } ;; 6269 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6270$as_echo "print -r" >&6; } ;; 6271 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6272$as_echo "cat" >&6; } ;; 6273esac 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6289$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6290if ${ac_cv_path_SED+:} false; then : 6291 $as_echo_n "(cached) " >&6 6292else 6293 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6294 for ac_i in 1 2 3 4 5 6 7; do 6295 ac_script="$ac_script$as_nl$ac_script" 6296 done 6297 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6298 { ac_script=; unset ac_script;} 6299 if test -z "$SED"; then 6300 ac_path_SED_found=false 6301 # Loop through the user's path and test for each of PROGNAME-LIST 6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6303for as_dir in $PATH 6304do 6305 IFS=$as_save_IFS 6306 test -z "$as_dir" && as_dir=. 6307 for ac_prog in sed gsed; do 6308 for ac_exec_ext in '' $ac_executable_extensions; do 6309 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6310 as_fn_executable_p "$ac_path_SED" || continue 6311# Check for GNU ac_path_SED and select it if it is found. 6312 # Check for GNU $ac_path_SED 6313case `"$ac_path_SED" --version 2>&1` in 6314*GNU*) 6315 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6316*) 6317 ac_count=0 6318 $as_echo_n 0123456789 >"conftest.in" 6319 while : 6320 do 6321 cat "conftest.in" "conftest.in" >"conftest.tmp" 6322 mv "conftest.tmp" "conftest.in" 6323 cp "conftest.in" "conftest.nl" 6324 $as_echo '' >> "conftest.nl" 6325 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6326 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6327 as_fn_arith $ac_count + 1 && ac_count=$as_val 6328 if test $ac_count -gt ${ac_path_SED_max-0}; then 6329 # Best one so far, save it but keep looking for a better one 6330 ac_cv_path_SED="$ac_path_SED" 6331 ac_path_SED_max=$ac_count 6332 fi 6333 # 10*(2^10) chars as input seems more than enough 6334 test $ac_count -gt 10 && break 6335 done 6336 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6337esac 6338 6339 $ac_path_SED_found && break 3 6340 done 6341 done 6342 done 6343IFS=$as_save_IFS 6344 if test -z "$ac_cv_path_SED"; then 6345 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6346 fi 6347else 6348 ac_cv_path_SED=$SED 6349fi 6350 6351fi 6352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6353$as_echo "$ac_cv_path_SED" >&6; } 6354 SED="$ac_cv_path_SED" 6355 rm -f conftest.sed 6356 6357test -z "$SED" && SED=sed 6358Xsed="$SED -e 1s/^X//" 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6371$as_echo_n "checking for fgrep... " >&6; } 6372if ${ac_cv_path_FGREP+:} false; then : 6373 $as_echo_n "(cached) " >&6 6374else 6375 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6376 then ac_cv_path_FGREP="$GREP -F" 6377 else 6378 if test -z "$FGREP"; then 6379 ac_path_FGREP_found=false 6380 # Loop through the user's path and test for each of PROGNAME-LIST 6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6382for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6383do 6384 IFS=$as_save_IFS 6385 test -z "$as_dir" && as_dir=. 6386 for ac_prog in fgrep; do 6387 for ac_exec_ext in '' $ac_executable_extensions; do 6388 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6389 as_fn_executable_p "$ac_path_FGREP" || continue 6390# Check for GNU ac_path_FGREP and select it if it is found. 6391 # Check for GNU $ac_path_FGREP 6392case `"$ac_path_FGREP" --version 2>&1` in 6393*GNU*) 6394 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6395*) 6396 ac_count=0 6397 $as_echo_n 0123456789 >"conftest.in" 6398 while : 6399 do 6400 cat "conftest.in" "conftest.in" >"conftest.tmp" 6401 mv "conftest.tmp" "conftest.in" 6402 cp "conftest.in" "conftest.nl" 6403 $as_echo 'FGREP' >> "conftest.nl" 6404 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6405 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6406 as_fn_arith $ac_count + 1 && ac_count=$as_val 6407 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6408 # Best one so far, save it but keep looking for a better one 6409 ac_cv_path_FGREP="$ac_path_FGREP" 6410 ac_path_FGREP_max=$ac_count 6411 fi 6412 # 10*(2^10) chars as input seems more than enough 6413 test $ac_count -gt 10 && break 6414 done 6415 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6416esac 6417 6418 $ac_path_FGREP_found && break 3 6419 done 6420 done 6421 done 6422IFS=$as_save_IFS 6423 if test -z "$ac_cv_path_FGREP"; then 6424 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6425 fi 6426else 6427 ac_cv_path_FGREP=$FGREP 6428fi 6429 6430 fi 6431fi 6432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6433$as_echo "$ac_cv_path_FGREP" >&6; } 6434 FGREP="$ac_cv_path_FGREP" 6435 6436 6437test -z "$GREP" && GREP=grep 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457# Check whether --with-gnu-ld was given. 6458if test "${with_gnu_ld+set}" = set; then : 6459 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6460else 6461 with_gnu_ld=no 6462fi 6463 6464ac_prog=ld 6465if test "$GCC" = yes; then 6466 # Check if gcc -print-prog-name=ld gives a path. 6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6468$as_echo_n "checking for ld used by $CC... " >&6; } 6469 case $host in 6470 *-*-mingw*) 6471 # gcc leaves a trailing carriage return which upsets mingw 6472 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6473 *) 6474 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6475 esac 6476 case $ac_prog in 6477 # Accept absolute paths. 6478 [\\/]* | ?:[\\/]*) 6479 re_direlt='/[^/][^/]*/\.\./' 6480 # Canonicalize the pathname of ld 6481 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6482 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6483 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6484 done 6485 test -z "$LD" && LD="$ac_prog" 6486 ;; 6487 "") 6488 # If it fails, then pretend we aren't using GCC. 6489 ac_prog=ld 6490 ;; 6491 *) 6492 # If it is relative, then search for the first ld in PATH. 6493 with_gnu_ld=unknown 6494 ;; 6495 esac 6496elif test "$with_gnu_ld" = yes; then 6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6498$as_echo_n "checking for GNU ld... " >&6; } 6499else 6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6501$as_echo_n "checking for non-GNU ld... " >&6; } 6502fi 6503if ${lt_cv_path_LD+:} false; then : 6504 $as_echo_n "(cached) " >&6 6505else 6506 if test -z "$LD"; then 6507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6508 for ac_dir in $PATH; do 6509 IFS="$lt_save_ifs" 6510 test -z "$ac_dir" && ac_dir=. 6511 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6512 lt_cv_path_LD="$ac_dir/$ac_prog" 6513 # Check to see if the program is GNU ld. I'd rather use --version, 6514 # but apparently some variants of GNU ld only accept -v. 6515 # Break only if it was the GNU/non-GNU ld that we prefer. 6516 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6517 *GNU* | *'with BFD'*) 6518 test "$with_gnu_ld" != no && break 6519 ;; 6520 *) 6521 test "$with_gnu_ld" != yes && break 6522 ;; 6523 esac 6524 fi 6525 done 6526 IFS="$lt_save_ifs" 6527else 6528 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6529fi 6530fi 6531 6532LD="$lt_cv_path_LD" 6533if test -n "$LD"; then 6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6535$as_echo "$LD" >&6; } 6536else 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6538$as_echo "no" >&6; } 6539fi 6540test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6542$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6543if ${lt_cv_prog_gnu_ld+:} false; then : 6544 $as_echo_n "(cached) " >&6 6545else 6546 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6547case `$LD -v 2>&1 </dev/null` in 6548*GNU* | *'with BFD'*) 6549 lt_cv_prog_gnu_ld=yes 6550 ;; 6551*) 6552 lt_cv_prog_gnu_ld=no 6553 ;; 6554esac 6555fi 6556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6557$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6558with_gnu_ld=$lt_cv_prog_gnu_ld 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6569$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6570if ${lt_cv_path_NM+:} false; then : 6571 $as_echo_n "(cached) " >&6 6572else 6573 if test -n "$NM"; then 6574 # Let the user override the test. 6575 lt_cv_path_NM="$NM" 6576else 6577 lt_nm_to_check="${ac_tool_prefix}nm" 6578 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6579 lt_nm_to_check="$lt_nm_to_check nm" 6580 fi 6581 for lt_tmp_nm in $lt_nm_to_check; do 6582 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6583 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6584 IFS="$lt_save_ifs" 6585 test -z "$ac_dir" && ac_dir=. 6586 tmp_nm="$ac_dir/$lt_tmp_nm" 6587 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6588 # Check to see if the nm accepts a BSD-compat flag. 6589 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6590 # nm: unknown option "B" ignored 6591 # Tru64's nm complains that /dev/null is an invalid object file 6592 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6593 */dev/null* | *'Invalid file or object type'*) 6594 lt_cv_path_NM="$tmp_nm -B" 6595 break 6596 ;; 6597 *) 6598 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6599 */dev/null*) 6600 lt_cv_path_NM="$tmp_nm -p" 6601 break 6602 ;; 6603 *) 6604 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6605 continue # so that we can try to find one that supports BSD flags 6606 ;; 6607 esac 6608 ;; 6609 esac 6610 fi 6611 done 6612 IFS="$lt_save_ifs" 6613 done 6614 : ${lt_cv_path_NM=no} 6615fi 6616fi 6617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6618$as_echo "$lt_cv_path_NM" >&6; } 6619if test "$lt_cv_path_NM" != "no"; then 6620 NM="$lt_cv_path_NM" 6621else 6622 # Didn't find any BSD compatible name lister, look for dumpbin. 6623 if test -n "$DUMPBIN"; then : 6624 # Let the user override the test. 6625 else 6626 if test -n "$ac_tool_prefix"; then 6627 for ac_prog in dumpbin "link -dump" 6628 do 6629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6630set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6632$as_echo_n "checking for $ac_word... " >&6; } 6633if ${ac_cv_prog_DUMPBIN+:} false; then : 6634 $as_echo_n "(cached) " >&6 6635else 6636 if test -n "$DUMPBIN"; then 6637 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6638else 6639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6640for as_dir in $PATH 6641do 6642 IFS=$as_save_IFS 6643 test -z "$as_dir" && as_dir=. 6644 for ac_exec_ext in '' $ac_executable_extensions; do 6645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6646 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6648 break 2 6649 fi 6650done 6651 done 6652IFS=$as_save_IFS 6653 6654fi 6655fi 6656DUMPBIN=$ac_cv_prog_DUMPBIN 6657if test -n "$DUMPBIN"; then 6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6659$as_echo "$DUMPBIN" >&6; } 6660else 6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6662$as_echo "no" >&6; } 6663fi 6664 6665 6666 test -n "$DUMPBIN" && break 6667 done 6668fi 6669if test -z "$DUMPBIN"; then 6670 ac_ct_DUMPBIN=$DUMPBIN 6671 for ac_prog in dumpbin "link -dump" 6672do 6673 # Extract the first word of "$ac_prog", so it can be a program name with args. 6674set dummy $ac_prog; ac_word=$2 6675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6676$as_echo_n "checking for $ac_word... " >&6; } 6677if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6678 $as_echo_n "(cached) " >&6 6679else 6680 if test -n "$ac_ct_DUMPBIN"; then 6681 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6682else 6683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6684for as_dir in $PATH 6685do 6686 IFS=$as_save_IFS 6687 test -z "$as_dir" && as_dir=. 6688 for ac_exec_ext in '' $ac_executable_extensions; do 6689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6690 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6692 break 2 6693 fi 6694done 6695 done 6696IFS=$as_save_IFS 6697 6698fi 6699fi 6700ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6701if test -n "$ac_ct_DUMPBIN"; then 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6703$as_echo "$ac_ct_DUMPBIN" >&6; } 6704else 6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6706$as_echo "no" >&6; } 6707fi 6708 6709 6710 test -n "$ac_ct_DUMPBIN" && break 6711done 6712 6713 if test "x$ac_ct_DUMPBIN" = x; then 6714 DUMPBIN=":" 6715 else 6716 case $cross_compiling:$ac_tool_warned in 6717yes:) 6718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6720ac_tool_warned=yes ;; 6721esac 6722 DUMPBIN=$ac_ct_DUMPBIN 6723 fi 6724fi 6725 6726 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 6727 *COFF*) 6728 DUMPBIN="$DUMPBIN -symbols" 6729 ;; 6730 *) 6731 DUMPBIN=: 6732 ;; 6733 esac 6734 fi 6735 6736 if test "$DUMPBIN" != ":"; then 6737 NM="$DUMPBIN" 6738 fi 6739fi 6740test -z "$NM" && NM=nm 6741 6742 6743 6744 6745 6746 6747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6748$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6749if ${lt_cv_nm_interface+:} false; then : 6750 $as_echo_n "(cached) " >&6 6751else 6752 lt_cv_nm_interface="BSD nm" 6753 echo "int some_variable = 0;" > conftest.$ac_ext 6754 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6755 (eval "$ac_compile" 2>conftest.err) 6756 cat conftest.err >&5 6757 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6758 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6759 cat conftest.err >&5 6760 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6761 cat conftest.out >&5 6762 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6763 lt_cv_nm_interface="MS dumpbin" 6764 fi 6765 rm -f conftest* 6766fi 6767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6768$as_echo "$lt_cv_nm_interface" >&6; } 6769 6770# find the maximum length of command line arguments 6771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6772$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6773if ${lt_cv_sys_max_cmd_len+:} false; then : 6774 $as_echo_n "(cached) " >&6 6775else 6776 i=0 6777 teststring="ABCD" 6778 6779 case $build_os in 6780 msdosdjgpp*) 6781 # On DJGPP, this test can blow up pretty badly due to problems in libc 6782 # (any single argument exceeding 2000 bytes causes a buffer overrun 6783 # during glob expansion). Even if it were fixed, the result of this 6784 # check would be larger than it should be. 6785 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6786 ;; 6787 6788 gnu*) 6789 # Under GNU Hurd, this test is not required because there is 6790 # no limit to the length of command line arguments. 6791 # Libtool will interpret -1 as no limit whatsoever 6792 lt_cv_sys_max_cmd_len=-1; 6793 ;; 6794 6795 cygwin* | mingw* | cegcc*) 6796 # On Win9x/ME, this test blows up -- it succeeds, but takes 6797 # about 5 minutes as the teststring grows exponentially. 6798 # Worse, since 9x/ME are not pre-emptively multitasking, 6799 # you end up with a "frozen" computer, even though with patience 6800 # the test eventually succeeds (with a max line length of 256k). 6801 # Instead, let's just punt: use the minimum linelength reported by 6802 # all of the supported platforms: 8192 (on NT/2K/XP). 6803 lt_cv_sys_max_cmd_len=8192; 6804 ;; 6805 6806 mint*) 6807 # On MiNT this can take a long time and run out of memory. 6808 lt_cv_sys_max_cmd_len=8192; 6809 ;; 6810 6811 amigaos*) 6812 # On AmigaOS with pdksh, this test takes hours, literally. 6813 # So we just punt and use a minimum line length of 8192. 6814 lt_cv_sys_max_cmd_len=8192; 6815 ;; 6816 6817 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6818 # This has been around since 386BSD, at least. Likely further. 6819 if test -x /sbin/sysctl; then 6820 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6821 elif test -x /usr/sbin/sysctl; then 6822 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6823 else 6824 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6825 fi 6826 # And add a safety zone 6827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6828 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6829 ;; 6830 6831 interix*) 6832 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6833 lt_cv_sys_max_cmd_len=196608 6834 ;; 6835 6836 osf*) 6837 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6838 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6839 # nice to cause kernel panics so lets avoid the loop below. 6840 # First set a reasonable default. 6841 lt_cv_sys_max_cmd_len=16384 6842 # 6843 if test -x /sbin/sysconfig; then 6844 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6845 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6846 esac 6847 fi 6848 ;; 6849 sco3.2v5*) 6850 lt_cv_sys_max_cmd_len=102400 6851 ;; 6852 sysv5* | sco5v6* | sysv4.2uw2*) 6853 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6854 if test -n "$kargmax"; then 6855 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6856 else 6857 lt_cv_sys_max_cmd_len=32768 6858 fi 6859 ;; 6860 *) 6861 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6862 if test -n "$lt_cv_sys_max_cmd_len"; then 6863 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6864 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6865 else 6866 # Make teststring a little bigger before we do anything with it. 6867 # a 1K string should be a reasonable start. 6868 for i in 1 2 3 4 5 6 7 8 ; do 6869 teststring=$teststring$teststring 6870 done 6871 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6872 # If test is not a shell built-in, we'll probably end up computing a 6873 # maximum length that is only half of the actual maximum length, but 6874 # we can't tell. 6875 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 6876 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6877 test $i != 17 # 1/2 MB should be enough 6878 do 6879 i=`expr $i + 1` 6880 teststring=$teststring$teststring 6881 done 6882 # Only check the string length outside the loop. 6883 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6884 teststring= 6885 # Add a significant safety factor because C++ compilers can tack on 6886 # massive amounts of additional arguments before passing them to the 6887 # linker. It appears as though 1/2 is a usable value. 6888 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6889 fi 6890 ;; 6891 esac 6892 6893fi 6894 6895if test -n $lt_cv_sys_max_cmd_len ; then 6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6897$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6898else 6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6900$as_echo "none" >&6; } 6901fi 6902max_cmd_len=$lt_cv_sys_max_cmd_len 6903 6904 6905 6906 6907 6908 6909: ${CP="cp -f"} 6910: ${MV="mv -f"} 6911: ${RM="rm -f"} 6912 6913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6914$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6915# Try some XSI features 6916xsi_shell=no 6917( _lt_dummy="a/b/c" 6918 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 6919 = c,a/b,b/c, \ 6920 && eval 'test $(( 1 + 1 )) -eq 2 \ 6921 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6922 && xsi_shell=yes 6923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6924$as_echo "$xsi_shell" >&6; } 6925 6926 6927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6928$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6929lt_shell_append=no 6930( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6931 >/dev/null 2>&1 \ 6932 && lt_shell_append=yes 6933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6934$as_echo "$lt_shell_append" >&6; } 6935 6936 6937if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6938 lt_unset=unset 6939else 6940 lt_unset=false 6941fi 6942 6943 6944 6945 6946 6947# test EBCDIC or ASCII 6948case `echo X|tr X '\101'` in 6949 A) # ASCII based system 6950 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6951 lt_SP2NL='tr \040 \012' 6952 lt_NL2SP='tr \015\012 \040\040' 6953 ;; 6954 *) # EBCDIC based system 6955 lt_SP2NL='tr \100 \n' 6956 lt_NL2SP='tr \r\n \100\100' 6957 ;; 6958esac 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6969$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6970if ${lt_cv_to_host_file_cmd+:} false; then : 6971 $as_echo_n "(cached) " >&6 6972else 6973 case $host in 6974 *-*-mingw* ) 6975 case $build in 6976 *-*-mingw* ) # actually msys 6977 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6978 ;; 6979 *-*-cygwin* ) 6980 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6981 ;; 6982 * ) # otherwise, assume *nix 6983 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6984 ;; 6985 esac 6986 ;; 6987 *-*-cygwin* ) 6988 case $build in 6989 *-*-mingw* ) # actually msys 6990 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6991 ;; 6992 *-*-cygwin* ) 6993 lt_cv_to_host_file_cmd=func_convert_file_noop 6994 ;; 6995 * ) # otherwise, assume *nix 6996 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6997 ;; 6998 esac 6999 ;; 7000 * ) # unhandled hosts (and "normal" native builds) 7001 lt_cv_to_host_file_cmd=func_convert_file_noop 7002 ;; 7003esac 7004 7005fi 7006 7007to_host_file_cmd=$lt_cv_to_host_file_cmd 7008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7009$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7010 7011 7012 7013 7014 7015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7016$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7017if ${lt_cv_to_tool_file_cmd+:} false; then : 7018 $as_echo_n "(cached) " >&6 7019else 7020 #assume ordinary cross tools, or native build. 7021lt_cv_to_tool_file_cmd=func_convert_file_noop 7022case $host in 7023 *-*-mingw* ) 7024 case $build in 7025 *-*-mingw* ) # actually msys 7026 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7027 ;; 7028 esac 7029 ;; 7030esac 7031 7032fi 7033 7034to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7036$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7037 7038 7039 7040 7041 7042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7043$as_echo_n "checking for $LD option to reload object files... " >&6; } 7044if ${lt_cv_ld_reload_flag+:} false; then : 7045 $as_echo_n "(cached) " >&6 7046else 7047 lt_cv_ld_reload_flag='-r' 7048fi 7049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7050$as_echo "$lt_cv_ld_reload_flag" >&6; } 7051reload_flag=$lt_cv_ld_reload_flag 7052case $reload_flag in 7053"" | " "*) ;; 7054*) reload_flag=" $reload_flag" ;; 7055esac 7056reload_cmds='$LD$reload_flag -o $output$reload_objs' 7057case $host_os in 7058 cygwin* | mingw* | pw32* | cegcc*) 7059 if test "$GCC" != yes; then 7060 reload_cmds=false 7061 fi 7062 ;; 7063 darwin*) 7064 if test "$GCC" = yes; then 7065 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7066 else 7067 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7068 fi 7069 ;; 7070esac 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080if test -n "$ac_tool_prefix"; then 7081 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7082set dummy ${ac_tool_prefix}objdump; ac_word=$2 7083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7084$as_echo_n "checking for $ac_word... " >&6; } 7085if ${ac_cv_prog_OBJDUMP+:} false; then : 7086 $as_echo_n "(cached) " >&6 7087else 7088 if test -n "$OBJDUMP"; then 7089 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7090else 7091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7092for as_dir in $PATH 7093do 7094 IFS=$as_save_IFS 7095 test -z "$as_dir" && as_dir=. 7096 for ac_exec_ext in '' $ac_executable_extensions; do 7097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7098 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7100 break 2 7101 fi 7102done 7103 done 7104IFS=$as_save_IFS 7105 7106fi 7107fi 7108OBJDUMP=$ac_cv_prog_OBJDUMP 7109if test -n "$OBJDUMP"; then 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7111$as_echo "$OBJDUMP" >&6; } 7112else 7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7114$as_echo "no" >&6; } 7115fi 7116 7117 7118fi 7119if test -z "$ac_cv_prog_OBJDUMP"; then 7120 ac_ct_OBJDUMP=$OBJDUMP 7121 # Extract the first word of "objdump", so it can be a program name with args. 7122set dummy objdump; ac_word=$2 7123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7124$as_echo_n "checking for $ac_word... " >&6; } 7125if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7126 $as_echo_n "(cached) " >&6 7127else 7128 if test -n "$ac_ct_OBJDUMP"; then 7129 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7130else 7131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7132for as_dir in $PATH 7133do 7134 IFS=$as_save_IFS 7135 test -z "$as_dir" && as_dir=. 7136 for ac_exec_ext in '' $ac_executable_extensions; do 7137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7138 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7140 break 2 7141 fi 7142done 7143 done 7144IFS=$as_save_IFS 7145 7146fi 7147fi 7148ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7149if test -n "$ac_ct_OBJDUMP"; then 7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7151$as_echo "$ac_ct_OBJDUMP" >&6; } 7152else 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7154$as_echo "no" >&6; } 7155fi 7156 7157 if test "x$ac_ct_OBJDUMP" = x; then 7158 OBJDUMP="false" 7159 else 7160 case $cross_compiling:$ac_tool_warned in 7161yes:) 7162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7164ac_tool_warned=yes ;; 7165esac 7166 OBJDUMP=$ac_ct_OBJDUMP 7167 fi 7168else 7169 OBJDUMP="$ac_cv_prog_OBJDUMP" 7170fi 7171 7172test -z "$OBJDUMP" && OBJDUMP=objdump 7173 7174 7175 7176 7177 7178 7179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7180$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7181if ${lt_cv_deplibs_check_method+:} false; then : 7182 $as_echo_n "(cached) " >&6 7183else 7184 lt_cv_file_magic_cmd='$MAGIC_CMD' 7185lt_cv_file_magic_test_file= 7186lt_cv_deplibs_check_method='unknown' 7187# Need to set the preceding variable on all platforms that support 7188# interlibrary dependencies. 7189# 'none' -- dependencies not supported. 7190# `unknown' -- same as none, but documents that we really don't know. 7191# 'pass_all' -- all dependencies passed with no checks. 7192# 'test_compile' -- check by making test program. 7193# 'file_magic [[regex]]' -- check by looking for files in library path 7194# which responds to the $file_magic_cmd with a given extended regex. 7195# If you have `file' or equivalent on your system and you're not sure 7196# whether `pass_all' will *always* work, you probably want this one. 7197 7198case $host_os in 7199aix[4-9]*) 7200 lt_cv_deplibs_check_method=pass_all 7201 ;; 7202 7203beos*) 7204 lt_cv_deplibs_check_method=pass_all 7205 ;; 7206 7207bsdi[45]*) 7208 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7209 lt_cv_file_magic_cmd='/usr/bin/file -L' 7210 lt_cv_file_magic_test_file=/shlib/libc.so 7211 ;; 7212 7213cygwin*) 7214 # func_win32_libid is a shell function defined in ltmain.sh 7215 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7216 lt_cv_file_magic_cmd='func_win32_libid' 7217 ;; 7218 7219mingw* | pw32*) 7220 # Base MSYS/MinGW do not provide the 'file' command needed by 7221 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7222 # unless we find 'file', for example because we are cross-compiling. 7223 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 7224 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 7225 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7226 lt_cv_file_magic_cmd='func_win32_libid' 7227 else 7228 # Keep this pattern in sync with the one in func_win32_libid. 7229 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7230 lt_cv_file_magic_cmd='$OBJDUMP -f' 7231 fi 7232 ;; 7233 7234cegcc*) 7235 # use the weaker test based on 'objdump'. See mingw*. 7236 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7237 lt_cv_file_magic_cmd='$OBJDUMP -f' 7238 ;; 7239 7240darwin* | rhapsody*) 7241 lt_cv_deplibs_check_method=pass_all 7242 ;; 7243 7244freebsd* | dragonfly*) 7245 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7246 case $host_cpu in 7247 i*86 ) 7248 # Not sure whether the presence of OpenBSD here was a mistake. 7249 # Let's accept both of them until this is cleared up. 7250 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7251 lt_cv_file_magic_cmd=/usr/bin/file 7252 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7253 ;; 7254 esac 7255 else 7256 lt_cv_deplibs_check_method=pass_all 7257 fi 7258 ;; 7259 7260gnu*) 7261 lt_cv_deplibs_check_method=pass_all 7262 ;; 7263 7264haiku*) 7265 lt_cv_deplibs_check_method=pass_all 7266 ;; 7267 7268hpux10.20* | hpux11*) 7269 lt_cv_file_magic_cmd=/usr/bin/file 7270 case $host_cpu in 7271 ia64*) 7272 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7273 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7274 ;; 7275 hppa*64*) 7276 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]' 7277 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7278 ;; 7279 *) 7280 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7281 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7282 ;; 7283 esac 7284 ;; 7285 7286interix[3-9]*) 7287 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7288 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7289 ;; 7290 7291irix5* | irix6* | nonstopux*) 7292 case $LD in 7293 *-32|*"-32 ") libmagic=32-bit;; 7294 *-n32|*"-n32 ") libmagic=N32;; 7295 *-64|*"-64 ") libmagic=64-bit;; 7296 *) libmagic=never-match;; 7297 esac 7298 lt_cv_deplibs_check_method=pass_all 7299 ;; 7300 7301# This must be Linux ELF. 7302linux* | k*bsd*-gnu | kopensolaris*-gnu) 7303 lt_cv_deplibs_check_method=pass_all 7304 ;; 7305 7306netbsd*) 7307 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7309 else 7310 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7311 fi 7312 ;; 7313 7314newos6*) 7315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7316 lt_cv_file_magic_cmd=/usr/bin/file 7317 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7318 ;; 7319 7320*nto* | *qnx*) 7321 lt_cv_deplibs_check_method=pass_all 7322 ;; 7323 7324openbsd*) 7325 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7327 else 7328 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7329 fi 7330 ;; 7331 7332osf3* | osf4* | osf5*) 7333 lt_cv_deplibs_check_method=pass_all 7334 ;; 7335 7336rdos*) 7337 lt_cv_deplibs_check_method=pass_all 7338 ;; 7339 7340solaris*) 7341 lt_cv_deplibs_check_method=pass_all 7342 ;; 7343 7344sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7345 lt_cv_deplibs_check_method=pass_all 7346 ;; 7347 7348sysv4 | sysv4.3*) 7349 case $host_vendor in 7350 motorola) 7351 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]' 7352 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7353 ;; 7354 ncr) 7355 lt_cv_deplibs_check_method=pass_all 7356 ;; 7357 sequent) 7358 lt_cv_file_magic_cmd='/bin/file' 7359 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7360 ;; 7361 sni) 7362 lt_cv_file_magic_cmd='/bin/file' 7363 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7364 lt_cv_file_magic_test_file=/lib/libc.so 7365 ;; 7366 siemens) 7367 lt_cv_deplibs_check_method=pass_all 7368 ;; 7369 pc) 7370 lt_cv_deplibs_check_method=pass_all 7371 ;; 7372 esac 7373 ;; 7374 7375tpf*) 7376 lt_cv_deplibs_check_method=pass_all 7377 ;; 7378esac 7379 7380fi 7381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7382$as_echo "$lt_cv_deplibs_check_method" >&6; } 7383 7384file_magic_glob= 7385want_nocaseglob=no 7386if test "$build" = "$host"; then 7387 case $host_os in 7388 mingw* | pw32*) 7389 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7390 want_nocaseglob=yes 7391 else 7392 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7393 fi 7394 ;; 7395 esac 7396fi 7397 7398file_magic_cmd=$lt_cv_file_magic_cmd 7399deplibs_check_method=$lt_cv_deplibs_check_method 7400test -z "$deplibs_check_method" && deplibs_check_method=unknown 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423if test -n "$ac_tool_prefix"; then 7424 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7425set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7427$as_echo_n "checking for $ac_word... " >&6; } 7428if ${ac_cv_prog_DLLTOOL+:} false; then : 7429 $as_echo_n "(cached) " >&6 7430else 7431 if test -n "$DLLTOOL"; then 7432 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7433else 7434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7435for as_dir in $PATH 7436do 7437 IFS=$as_save_IFS 7438 test -z "$as_dir" && as_dir=. 7439 for ac_exec_ext in '' $ac_executable_extensions; do 7440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7441 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7443 break 2 7444 fi 7445done 7446 done 7447IFS=$as_save_IFS 7448 7449fi 7450fi 7451DLLTOOL=$ac_cv_prog_DLLTOOL 7452if test -n "$DLLTOOL"; then 7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7454$as_echo "$DLLTOOL" >&6; } 7455else 7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7457$as_echo "no" >&6; } 7458fi 7459 7460 7461fi 7462if test -z "$ac_cv_prog_DLLTOOL"; then 7463 ac_ct_DLLTOOL=$DLLTOOL 7464 # Extract the first word of "dlltool", so it can be a program name with args. 7465set dummy dlltool; ac_word=$2 7466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7467$as_echo_n "checking for $ac_word... " >&6; } 7468if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7469 $as_echo_n "(cached) " >&6 7470else 7471 if test -n "$ac_ct_DLLTOOL"; then 7472 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7473else 7474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7475for as_dir in $PATH 7476do 7477 IFS=$as_save_IFS 7478 test -z "$as_dir" && as_dir=. 7479 for ac_exec_ext in '' $ac_executable_extensions; do 7480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7481 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7483 break 2 7484 fi 7485done 7486 done 7487IFS=$as_save_IFS 7488 7489fi 7490fi 7491ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7492if test -n "$ac_ct_DLLTOOL"; then 7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7494$as_echo "$ac_ct_DLLTOOL" >&6; } 7495else 7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7497$as_echo "no" >&6; } 7498fi 7499 7500 if test "x$ac_ct_DLLTOOL" = x; then 7501 DLLTOOL="false" 7502 else 7503 case $cross_compiling:$ac_tool_warned in 7504yes:) 7505{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7506$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7507ac_tool_warned=yes ;; 7508esac 7509 DLLTOOL=$ac_ct_DLLTOOL 7510 fi 7511else 7512 DLLTOOL="$ac_cv_prog_DLLTOOL" 7513fi 7514 7515test -z "$DLLTOOL" && DLLTOOL=dlltool 7516 7517 7518 7519 7520 7521 7522 7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7524$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7525if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7526 $as_echo_n "(cached) " >&6 7527else 7528 lt_cv_sharedlib_from_linklib_cmd='unknown' 7529 7530case $host_os in 7531cygwin* | mingw* | pw32* | cegcc*) 7532 # two different shell functions defined in ltmain.sh 7533 # decide which to use based on capabilities of $DLLTOOL 7534 case `$DLLTOOL --help 2>&1` in 7535 *--identify-strict*) 7536 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7537 ;; 7538 *) 7539 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7540 ;; 7541 esac 7542 ;; 7543*) 7544 # fallback: assume linklib IS sharedlib 7545 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 7546 ;; 7547esac 7548 7549fi 7550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7551$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7552sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7553test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7554 7555 7556 7557 7558 7559 7560 7561if test -n "$ac_tool_prefix"; then 7562 for ac_prog in ar 7563 do 7564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7565set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7567$as_echo_n "checking for $ac_word... " >&6; } 7568if ${ac_cv_prog_AR+:} false; then : 7569 $as_echo_n "(cached) " >&6 7570else 7571 if test -n "$AR"; then 7572 ac_cv_prog_AR="$AR" # Let the user override the test. 7573else 7574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7575for as_dir in $PATH 7576do 7577 IFS=$as_save_IFS 7578 test -z "$as_dir" && as_dir=. 7579 for ac_exec_ext in '' $ac_executable_extensions; do 7580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7581 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7583 break 2 7584 fi 7585done 7586 done 7587IFS=$as_save_IFS 7588 7589fi 7590fi 7591AR=$ac_cv_prog_AR 7592if test -n "$AR"; then 7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7594$as_echo "$AR" >&6; } 7595else 7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7597$as_echo "no" >&6; } 7598fi 7599 7600 7601 test -n "$AR" && break 7602 done 7603fi 7604if test -z "$AR"; then 7605 ac_ct_AR=$AR 7606 for ac_prog in ar 7607do 7608 # Extract the first word of "$ac_prog", so it can be a program name with args. 7609set dummy $ac_prog; ac_word=$2 7610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7611$as_echo_n "checking for $ac_word... " >&6; } 7612if ${ac_cv_prog_ac_ct_AR+:} false; then : 7613 $as_echo_n "(cached) " >&6 7614else 7615 if test -n "$ac_ct_AR"; then 7616 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7617else 7618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7619for as_dir in $PATH 7620do 7621 IFS=$as_save_IFS 7622 test -z "$as_dir" && as_dir=. 7623 for ac_exec_ext in '' $ac_executable_extensions; do 7624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7625 ac_cv_prog_ac_ct_AR="$ac_prog" 7626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7627 break 2 7628 fi 7629done 7630 done 7631IFS=$as_save_IFS 7632 7633fi 7634fi 7635ac_ct_AR=$ac_cv_prog_ac_ct_AR 7636if test -n "$ac_ct_AR"; then 7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7638$as_echo "$ac_ct_AR" >&6; } 7639else 7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7641$as_echo "no" >&6; } 7642fi 7643 7644 7645 test -n "$ac_ct_AR" && break 7646done 7647 7648 if test "x$ac_ct_AR" = x; then 7649 AR="false" 7650 else 7651 case $cross_compiling:$ac_tool_warned in 7652yes:) 7653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7655ac_tool_warned=yes ;; 7656esac 7657 AR=$ac_ct_AR 7658 fi 7659fi 7660 7661: ${AR=ar} 7662: ${AR_FLAGS=cru} 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7675$as_echo_n "checking for archiver @FILE support... " >&6; } 7676if ${lt_cv_ar_at_file+:} false; then : 7677 $as_echo_n "(cached) " >&6 7678else 7679 lt_cv_ar_at_file=no 7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7681/* end confdefs.h. */ 7682 7683int 7684main () 7685{ 7686 7687 ; 7688 return 0; 7689} 7690_ACEOF 7691if ac_fn_c_try_compile "$LINENO"; then : 7692 echo conftest.$ac_objext > conftest.lst 7693 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7695 (eval $lt_ar_try) 2>&5 7696 ac_status=$? 7697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7698 test $ac_status = 0; } 7699 if test "$ac_status" -eq 0; then 7700 # Ensure the archiver fails upon bogus file names. 7701 rm -f conftest.$ac_objext libconftest.a 7702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7703 (eval $lt_ar_try) 2>&5 7704 ac_status=$? 7705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7706 test $ac_status = 0; } 7707 if test "$ac_status" -ne 0; then 7708 lt_cv_ar_at_file=@ 7709 fi 7710 fi 7711 rm -f conftest.* libconftest.a 7712 7713fi 7714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7715 7716fi 7717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7718$as_echo "$lt_cv_ar_at_file" >&6; } 7719 7720if test "x$lt_cv_ar_at_file" = xno; then 7721 archiver_list_spec= 7722else 7723 archiver_list_spec=$lt_cv_ar_at_file 7724fi 7725 7726 7727 7728 7729 7730 7731 7732if test -n "$ac_tool_prefix"; then 7733 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7734set dummy ${ac_tool_prefix}strip; ac_word=$2 7735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7736$as_echo_n "checking for $ac_word... " >&6; } 7737if ${ac_cv_prog_STRIP+:} false; then : 7738 $as_echo_n "(cached) " >&6 7739else 7740 if test -n "$STRIP"; then 7741 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7742else 7743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7744for as_dir in $PATH 7745do 7746 IFS=$as_save_IFS 7747 test -z "$as_dir" && as_dir=. 7748 for ac_exec_ext in '' $ac_executable_extensions; do 7749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7750 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7752 break 2 7753 fi 7754done 7755 done 7756IFS=$as_save_IFS 7757 7758fi 7759fi 7760STRIP=$ac_cv_prog_STRIP 7761if test -n "$STRIP"; then 7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7763$as_echo "$STRIP" >&6; } 7764else 7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7766$as_echo "no" >&6; } 7767fi 7768 7769 7770fi 7771if test -z "$ac_cv_prog_STRIP"; then 7772 ac_ct_STRIP=$STRIP 7773 # Extract the first word of "strip", so it can be a program name with args. 7774set dummy strip; ac_word=$2 7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7776$as_echo_n "checking for $ac_word... " >&6; } 7777if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7778 $as_echo_n "(cached) " >&6 7779else 7780 if test -n "$ac_ct_STRIP"; then 7781 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7782else 7783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7784for as_dir in $PATH 7785do 7786 IFS=$as_save_IFS 7787 test -z "$as_dir" && as_dir=. 7788 for ac_exec_ext in '' $ac_executable_extensions; do 7789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7790 ac_cv_prog_ac_ct_STRIP="strip" 7791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7792 break 2 7793 fi 7794done 7795 done 7796IFS=$as_save_IFS 7797 7798fi 7799fi 7800ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7801if test -n "$ac_ct_STRIP"; then 7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7803$as_echo "$ac_ct_STRIP" >&6; } 7804else 7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7806$as_echo "no" >&6; } 7807fi 7808 7809 if test "x$ac_ct_STRIP" = x; then 7810 STRIP=":" 7811 else 7812 case $cross_compiling:$ac_tool_warned in 7813yes:) 7814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7816ac_tool_warned=yes ;; 7817esac 7818 STRIP=$ac_ct_STRIP 7819 fi 7820else 7821 STRIP="$ac_cv_prog_STRIP" 7822fi 7823 7824test -z "$STRIP" && STRIP=: 7825 7826 7827 7828 7829 7830 7831if test -n "$ac_tool_prefix"; then 7832 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7833set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7835$as_echo_n "checking for $ac_word... " >&6; } 7836if ${ac_cv_prog_RANLIB+:} false; then : 7837 $as_echo_n "(cached) " >&6 7838else 7839 if test -n "$RANLIB"; then 7840 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7841else 7842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7843for as_dir in $PATH 7844do 7845 IFS=$as_save_IFS 7846 test -z "$as_dir" && as_dir=. 7847 for ac_exec_ext in '' $ac_executable_extensions; do 7848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7849 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7851 break 2 7852 fi 7853done 7854 done 7855IFS=$as_save_IFS 7856 7857fi 7858fi 7859RANLIB=$ac_cv_prog_RANLIB 7860if test -n "$RANLIB"; then 7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7862$as_echo "$RANLIB" >&6; } 7863else 7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7865$as_echo "no" >&6; } 7866fi 7867 7868 7869fi 7870if test -z "$ac_cv_prog_RANLIB"; then 7871 ac_ct_RANLIB=$RANLIB 7872 # Extract the first word of "ranlib", so it can be a program name with args. 7873set dummy ranlib; ac_word=$2 7874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7875$as_echo_n "checking for $ac_word... " >&6; } 7876if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7877 $as_echo_n "(cached) " >&6 7878else 7879 if test -n "$ac_ct_RANLIB"; then 7880 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7881else 7882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7883for as_dir in $PATH 7884do 7885 IFS=$as_save_IFS 7886 test -z "$as_dir" && as_dir=. 7887 for ac_exec_ext in '' $ac_executable_extensions; do 7888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7889 ac_cv_prog_ac_ct_RANLIB="ranlib" 7890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7891 break 2 7892 fi 7893done 7894 done 7895IFS=$as_save_IFS 7896 7897fi 7898fi 7899ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7900if test -n "$ac_ct_RANLIB"; then 7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7902$as_echo "$ac_ct_RANLIB" >&6; } 7903else 7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7905$as_echo "no" >&6; } 7906fi 7907 7908 if test "x$ac_ct_RANLIB" = x; then 7909 RANLIB=":" 7910 else 7911 case $cross_compiling:$ac_tool_warned in 7912yes:) 7913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7915ac_tool_warned=yes ;; 7916esac 7917 RANLIB=$ac_ct_RANLIB 7918 fi 7919else 7920 RANLIB="$ac_cv_prog_RANLIB" 7921fi 7922 7923test -z "$RANLIB" && RANLIB=: 7924 7925 7926 7927 7928 7929 7930# Determine commands to create old-style static archives. 7931old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7932old_postinstall_cmds='chmod 644 $oldlib' 7933old_postuninstall_cmds= 7934 7935if test -n "$RANLIB"; then 7936 case $host_os in 7937 openbsd*) 7938 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7939 ;; 7940 *) 7941 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7942 ;; 7943 esac 7944 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7945fi 7946 7947case $host_os in 7948 darwin*) 7949 lock_old_archive_extraction=yes ;; 7950 *) 7951 lock_old_archive_extraction=no ;; 7952esac 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992# If no C compiler was specified, use CC. 7993LTCC=${LTCC-"$CC"} 7994 7995# If no C compiler flags were specified, use CFLAGS. 7996LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7997 7998# Allow CC to be a program name with arguments. 7999compiler=$CC 8000 8001 8002# Check for command to grab the raw symbol name followed by C symbol from nm. 8003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8004$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8005if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8006 $as_echo_n "(cached) " >&6 8007else 8008 8009# These are sane defaults that work on at least a few old systems. 8010# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8011 8012# Character class describing NM global symbol codes. 8013symcode='[BCDEGRST]' 8014 8015# Regexp to match symbols that can be accessed directly from C. 8016sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8017 8018# Define system-specific variables. 8019case $host_os in 8020aix*) 8021 symcode='[BCDT]' 8022 ;; 8023cygwin* | mingw* | pw32* | cegcc*) 8024 symcode='[ABCDGISTW]' 8025 ;; 8026hpux*) 8027 if test "$host_cpu" = ia64; then 8028 symcode='[ABCDEGRST]' 8029 fi 8030 ;; 8031irix* | nonstopux*) 8032 symcode='[BCDEGRST]' 8033 ;; 8034osf*) 8035 symcode='[BCDEGQRST]' 8036 ;; 8037solaris*) 8038 symcode='[BDRT]' 8039 ;; 8040sco3.2v5*) 8041 symcode='[DT]' 8042 ;; 8043sysv4.2uw2*) 8044 symcode='[DT]' 8045 ;; 8046sysv5* | sco5v6* | unixware* | OpenUNIX*) 8047 symcode='[ABDT]' 8048 ;; 8049sysv4) 8050 symcode='[DFNSTU]' 8051 ;; 8052esac 8053 8054# If we're using GNU nm, then use its standard symbol codes. 8055case `$NM -V 2>&1` in 8056*GNU* | *'with BFD'*) 8057 symcode='[ABCDGIRSTW]' ;; 8058esac 8059 8060# Transform an extracted symbol line into a proper C declaration. 8061# Some systems (esp. on ia64) link data and code symbols differently, 8062# so use this general approach. 8063lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 8064 8065# Transform an extracted symbol line into symbol name and symbol address 8066lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 8067lt_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'" 8068 8069# Handle CRLF in mingw tool chain 8070opt_cr= 8071case $build_os in 8072mingw*) 8073 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8074 ;; 8075esac 8076 8077# Try without a prefix underscore, then with it. 8078for ac_symprfx in "" "_"; do 8079 8080 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8081 symxfrm="\\1 $ac_symprfx\\2 \\2" 8082 8083 # Write the raw and C identifiers. 8084 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8085 # Fake it for dumpbin and say T for any non-static function 8086 # and D for any global variable. 8087 # Also find C++ and __fastcall symbols from MSVC++, 8088 # which start with @ or ?. 8089 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8090" {last_section=section; section=\$ 3};"\ 8091" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8092" \$ 0!~/External *\|/{next};"\ 8093" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8094" {if(hide[section]) next};"\ 8095" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 8096" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 8097" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 8098" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 8099" ' prfx=^$ac_symprfx" 8100 else 8101 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8102 fi 8103 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8104 8105 # Check to see that the pipe works correctly. 8106 pipe_works=no 8107 8108 rm -f conftest* 8109 cat > conftest.$ac_ext <<_LT_EOF 8110#ifdef __cplusplus 8111extern "C" { 8112#endif 8113char nm_test_var; 8114void nm_test_func(void); 8115void nm_test_func(void){} 8116#ifdef __cplusplus 8117} 8118#endif 8119int main(){nm_test_var='a';nm_test_func();return(0);} 8120_LT_EOF 8121 8122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8123 (eval $ac_compile) 2>&5 8124 ac_status=$? 8125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8126 test $ac_status = 0; }; then 8127 # Now try to grab the symbols. 8128 nlist=conftest.nm 8129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8130 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8131 ac_status=$? 8132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8133 test $ac_status = 0; } && test -s "$nlist"; then 8134 # Try sorting and uniquifying the output. 8135 if sort "$nlist" | uniq > "$nlist"T; then 8136 mv -f "$nlist"T "$nlist" 8137 else 8138 rm -f "$nlist"T 8139 fi 8140 8141 # Make sure that we snagged all the symbols we need. 8142 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8143 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8144 cat <<_LT_EOF > conftest.$ac_ext 8145/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8146#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 8147/* DATA imports from DLLs on WIN32 con't be const, because runtime 8148 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8149# define LT_DLSYM_CONST 8150#elif defined(__osf__) 8151/* This system does not cope well with relocations in const data. */ 8152# define LT_DLSYM_CONST 8153#else 8154# define LT_DLSYM_CONST const 8155#endif 8156 8157#ifdef __cplusplus 8158extern "C" { 8159#endif 8160 8161_LT_EOF 8162 # Now generate the symbol file. 8163 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8164 8165 cat <<_LT_EOF >> conftest.$ac_ext 8166 8167/* The mapping between symbol names and symbols. */ 8168LT_DLSYM_CONST struct { 8169 const char *name; 8170 void *address; 8171} 8172lt__PROGRAM__LTX_preloaded_symbols[] = 8173{ 8174 { "@PROGRAM@", (void *) 0 }, 8175_LT_EOF 8176 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8177 cat <<\_LT_EOF >> conftest.$ac_ext 8178 {0, (void *) 0} 8179}; 8180 8181/* This works around a problem in FreeBSD linker */ 8182#ifdef FREEBSD_WORKAROUND 8183static const void *lt_preloaded_setup() { 8184 return lt__PROGRAM__LTX_preloaded_symbols; 8185} 8186#endif 8187 8188#ifdef __cplusplus 8189} 8190#endif 8191_LT_EOF 8192 # Now try linking the two files. 8193 mv conftest.$ac_objext conftstm.$ac_objext 8194 lt_globsym_save_LIBS=$LIBS 8195 lt_globsym_save_CFLAGS=$CFLAGS 8196 LIBS="conftstm.$ac_objext" 8197 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8199 (eval $ac_link) 2>&5 8200 ac_status=$? 8201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8202 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 8203 pipe_works=yes 8204 fi 8205 LIBS=$lt_globsym_save_LIBS 8206 CFLAGS=$lt_globsym_save_CFLAGS 8207 else 8208 echo "cannot find nm_test_func in $nlist" >&5 8209 fi 8210 else 8211 echo "cannot find nm_test_var in $nlist" >&5 8212 fi 8213 else 8214 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8215 fi 8216 else 8217 echo "$progname: failed program was:" >&5 8218 cat conftest.$ac_ext >&5 8219 fi 8220 rm -rf conftest* conftst* 8221 8222 # Do not use the global_symbol_pipe unless it works. 8223 if test "$pipe_works" = yes; then 8224 break 8225 else 8226 lt_cv_sys_global_symbol_pipe= 8227 fi 8228done 8229 8230fi 8231 8232if test -z "$lt_cv_sys_global_symbol_pipe"; then 8233 lt_cv_sys_global_symbol_to_cdecl= 8234fi 8235if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8237$as_echo "failed" >&6; } 8238else 8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8240$as_echo "ok" >&6; } 8241fi 8242 8243# Response file support. 8244if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8245 nm_file_list_spec='@' 8246elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8247 nm_file_list_spec='@' 8248fi 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8277$as_echo_n "checking for sysroot... " >&6; } 8278 8279# Check whether --with-sysroot was given. 8280if test "${with_sysroot+set}" = set; then : 8281 withval=$with_sysroot; 8282else 8283 with_sysroot=no 8284fi 8285 8286 8287lt_sysroot= 8288case ${with_sysroot} in #( 8289 yes) 8290 if test "$GCC" = yes; then 8291 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8292 fi 8293 ;; #( 8294 /*) 8295 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8296 ;; #( 8297 no|'') 8298 ;; #( 8299 *) 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 8301$as_echo "${with_sysroot}" >&6; } 8302 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8303 ;; 8304esac 8305 8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8307$as_echo "${lt_sysroot:-no}" >&6; } 8308 8309 8310 8311 8312 8313# Check whether --enable-libtool-lock was given. 8314if test "${enable_libtool_lock+set}" = set; then : 8315 enableval=$enable_libtool_lock; 8316fi 8317 8318test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8319 8320# Some flags need to be propagated to the compiler or linker for good 8321# libtool support. 8322case $host in 8323ia64-*-hpux*) 8324 # Find out which ABI we are using. 8325 echo 'int i;' > conftest.$ac_ext 8326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8327 (eval $ac_compile) 2>&5 8328 ac_status=$? 8329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8330 test $ac_status = 0; }; then 8331 case `/usr/bin/file conftest.$ac_objext` in 8332 *ELF-32*) 8333 HPUX_IA64_MODE="32" 8334 ;; 8335 *ELF-64*) 8336 HPUX_IA64_MODE="64" 8337 ;; 8338 esac 8339 fi 8340 rm -rf conftest* 8341 ;; 8342*-*-irix6*) 8343 # Find out which ABI we are using. 8344 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8346 (eval $ac_compile) 2>&5 8347 ac_status=$? 8348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8349 test $ac_status = 0; }; then 8350 if test "$lt_cv_prog_gnu_ld" = yes; then 8351 case `/usr/bin/file conftest.$ac_objext` in 8352 *32-bit*) 8353 LD="${LD-ld} -melf32bsmip" 8354 ;; 8355 *N32*) 8356 LD="${LD-ld} -melf32bmipn32" 8357 ;; 8358 *64-bit*) 8359 LD="${LD-ld} -melf64bmip" 8360 ;; 8361 esac 8362 else 8363 case `/usr/bin/file conftest.$ac_objext` in 8364 *32-bit*) 8365 LD="${LD-ld} -32" 8366 ;; 8367 *N32*) 8368 LD="${LD-ld} -n32" 8369 ;; 8370 *64-bit*) 8371 LD="${LD-ld} -64" 8372 ;; 8373 esac 8374 fi 8375 fi 8376 rm -rf conftest* 8377 ;; 8378 8379x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 8380s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8381 # Find out which ABI we are using. 8382 echo 'int i;' > conftest.$ac_ext 8383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8384 (eval $ac_compile) 2>&5 8385 ac_status=$? 8386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8387 test $ac_status = 0; }; then 8388 case `/usr/bin/file conftest.o` in 8389 *32-bit*) 8390 case $host in 8391 x86_64-*kfreebsd*-gnu) 8392 LD="${LD-ld} -m elf_i386_fbsd" 8393 ;; 8394 x86_64-*linux*) 8395 LD="${LD-ld} -m elf_i386" 8396 ;; 8397 ppc64-*linux*|powerpc64-*linux*) 8398 LD="${LD-ld} -m elf32ppclinux" 8399 ;; 8400 s390x-*linux*) 8401 LD="${LD-ld} -m elf_s390" 8402 ;; 8403 sparc64-*linux*) 8404 LD="${LD-ld} -m elf32_sparc" 8405 ;; 8406 esac 8407 ;; 8408 *64-bit*) 8409 case $host in 8410 x86_64-*kfreebsd*-gnu) 8411 LD="${LD-ld} -m elf_x86_64_fbsd" 8412 ;; 8413 x86_64-*linux*) 8414 LD="${LD-ld} -m elf_x86_64" 8415 ;; 8416 ppc*-*linux*|powerpc*-*linux*) 8417 LD="${LD-ld} -m elf64ppc" 8418 ;; 8419 s390*-*linux*|s390*-*tpf*) 8420 LD="${LD-ld} -m elf64_s390" 8421 ;; 8422 sparc*-*linux*) 8423 LD="${LD-ld} -m elf64_sparc" 8424 ;; 8425 esac 8426 ;; 8427 esac 8428 fi 8429 rm -rf conftest* 8430 ;; 8431 8432*-*-sco3.2v5*) 8433 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8434 SAVE_CFLAGS="$CFLAGS" 8435 CFLAGS="$CFLAGS -belf" 8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8437$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8438if ${lt_cv_cc_needs_belf+:} false; then : 8439 $as_echo_n "(cached) " >&6 8440else 8441 ac_ext=c 8442ac_cpp='$CPP $CPPFLAGS' 8443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8445ac_compiler_gnu=$ac_cv_c_compiler_gnu 8446 8447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8448/* end confdefs.h. */ 8449 8450int 8451main () 8452{ 8453 8454 ; 8455 return 0; 8456} 8457_ACEOF 8458if ac_fn_c_try_link "$LINENO"; then : 8459 lt_cv_cc_needs_belf=yes 8460else 8461 lt_cv_cc_needs_belf=no 8462fi 8463rm -f core conftest.err conftest.$ac_objext \ 8464 conftest$ac_exeext conftest.$ac_ext 8465 ac_ext=c 8466ac_cpp='$CPP $CPPFLAGS' 8467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8469ac_compiler_gnu=$ac_cv_c_compiler_gnu 8470 8471fi 8472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8473$as_echo "$lt_cv_cc_needs_belf" >&6; } 8474 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 8475 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8476 CFLAGS="$SAVE_CFLAGS" 8477 fi 8478 ;; 8479sparc*-*solaris*) 8480 # Find out which ABI we are using. 8481 echo 'int i;' > conftest.$ac_ext 8482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8483 (eval $ac_compile) 2>&5 8484 ac_status=$? 8485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8486 test $ac_status = 0; }; then 8487 case `/usr/bin/file conftest.o` in 8488 *64-bit*) 8489 case $lt_cv_prog_gnu_ld in 8490 yes*) LD="${LD-ld} -m elf64_sparc" ;; 8491 *) 8492 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8493 LD="${LD-ld} -64" 8494 fi 8495 ;; 8496 esac 8497 ;; 8498 esac 8499 fi 8500 rm -rf conftest* 8501 ;; 8502esac 8503 8504need_locks="$enable_libtool_lock" 8505 8506if test -n "$ac_tool_prefix"; then 8507 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8508set dummy ${ac_tool_prefix}mt; ac_word=$2 8509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8510$as_echo_n "checking for $ac_word... " >&6; } 8511if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8512 $as_echo_n "(cached) " >&6 8513else 8514 if test -n "$MANIFEST_TOOL"; then 8515 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8516else 8517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8518for as_dir in $PATH 8519do 8520 IFS=$as_save_IFS 8521 test -z "$as_dir" && as_dir=. 8522 for ac_exec_ext in '' $ac_executable_extensions; do 8523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8524 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8526 break 2 8527 fi 8528done 8529 done 8530IFS=$as_save_IFS 8531 8532fi 8533fi 8534MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8535if test -n "$MANIFEST_TOOL"; then 8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8537$as_echo "$MANIFEST_TOOL" >&6; } 8538else 8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8540$as_echo "no" >&6; } 8541fi 8542 8543 8544fi 8545if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8546 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8547 # Extract the first word of "mt", so it can be a program name with args. 8548set dummy mt; ac_word=$2 8549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8550$as_echo_n "checking for $ac_word... " >&6; } 8551if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8552 $as_echo_n "(cached) " >&6 8553else 8554 if test -n "$ac_ct_MANIFEST_TOOL"; then 8555 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8556else 8557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8558for as_dir in $PATH 8559do 8560 IFS=$as_save_IFS 8561 test -z "$as_dir" && as_dir=. 8562 for ac_exec_ext in '' $ac_executable_extensions; do 8563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8564 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8566 break 2 8567 fi 8568done 8569 done 8570IFS=$as_save_IFS 8571 8572fi 8573fi 8574ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8575if test -n "$ac_ct_MANIFEST_TOOL"; then 8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8577$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8578else 8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8580$as_echo "no" >&6; } 8581fi 8582 8583 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8584 MANIFEST_TOOL=":" 8585 else 8586 case $cross_compiling:$ac_tool_warned in 8587yes:) 8588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8590ac_tool_warned=yes ;; 8591esac 8592 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8593 fi 8594else 8595 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8596fi 8597 8598test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8600$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8601if ${lt_cv_path_mainfest_tool+:} false; then : 8602 $as_echo_n "(cached) " >&6 8603else 8604 lt_cv_path_mainfest_tool=no 8605 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8606 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8607 cat conftest.err >&5 8608 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8609 lt_cv_path_mainfest_tool=yes 8610 fi 8611 rm -f conftest* 8612fi 8613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8614$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8615if test "x$lt_cv_path_mainfest_tool" != xyes; then 8616 MANIFEST_TOOL=: 8617fi 8618 8619 8620 8621 8622 8623 8624 case $host_os in 8625 rhapsody* | darwin*) 8626 if test -n "$ac_tool_prefix"; then 8627 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8628set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8630$as_echo_n "checking for $ac_word... " >&6; } 8631if ${ac_cv_prog_DSYMUTIL+:} false; then : 8632 $as_echo_n "(cached) " >&6 8633else 8634 if test -n "$DSYMUTIL"; then 8635 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8636else 8637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8638for as_dir in $PATH 8639do 8640 IFS=$as_save_IFS 8641 test -z "$as_dir" && as_dir=. 8642 for ac_exec_ext in '' $ac_executable_extensions; do 8643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8644 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8646 break 2 8647 fi 8648done 8649 done 8650IFS=$as_save_IFS 8651 8652fi 8653fi 8654DSYMUTIL=$ac_cv_prog_DSYMUTIL 8655if test -n "$DSYMUTIL"; then 8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8657$as_echo "$DSYMUTIL" >&6; } 8658else 8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8660$as_echo "no" >&6; } 8661fi 8662 8663 8664fi 8665if test -z "$ac_cv_prog_DSYMUTIL"; then 8666 ac_ct_DSYMUTIL=$DSYMUTIL 8667 # Extract the first word of "dsymutil", so it can be a program name with args. 8668set dummy dsymutil; ac_word=$2 8669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8670$as_echo_n "checking for $ac_word... " >&6; } 8671if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8672 $as_echo_n "(cached) " >&6 8673else 8674 if test -n "$ac_ct_DSYMUTIL"; then 8675 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8676else 8677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8678for as_dir in $PATH 8679do 8680 IFS=$as_save_IFS 8681 test -z "$as_dir" && as_dir=. 8682 for ac_exec_ext in '' $ac_executable_extensions; do 8683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8684 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8686 break 2 8687 fi 8688done 8689 done 8690IFS=$as_save_IFS 8691 8692fi 8693fi 8694ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8695if test -n "$ac_ct_DSYMUTIL"; then 8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8697$as_echo "$ac_ct_DSYMUTIL" >&6; } 8698else 8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8700$as_echo "no" >&6; } 8701fi 8702 8703 if test "x$ac_ct_DSYMUTIL" = x; then 8704 DSYMUTIL=":" 8705 else 8706 case $cross_compiling:$ac_tool_warned in 8707yes:) 8708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8710ac_tool_warned=yes ;; 8711esac 8712 DSYMUTIL=$ac_ct_DSYMUTIL 8713 fi 8714else 8715 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8716fi 8717 8718 if test -n "$ac_tool_prefix"; then 8719 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8720set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8722$as_echo_n "checking for $ac_word... " >&6; } 8723if ${ac_cv_prog_NMEDIT+:} false; then : 8724 $as_echo_n "(cached) " >&6 8725else 8726 if test -n "$NMEDIT"; then 8727 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8728else 8729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8730for as_dir in $PATH 8731do 8732 IFS=$as_save_IFS 8733 test -z "$as_dir" && as_dir=. 8734 for ac_exec_ext in '' $ac_executable_extensions; do 8735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8736 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8738 break 2 8739 fi 8740done 8741 done 8742IFS=$as_save_IFS 8743 8744fi 8745fi 8746NMEDIT=$ac_cv_prog_NMEDIT 8747if test -n "$NMEDIT"; then 8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8749$as_echo "$NMEDIT" >&6; } 8750else 8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8752$as_echo "no" >&6; } 8753fi 8754 8755 8756fi 8757if test -z "$ac_cv_prog_NMEDIT"; then 8758 ac_ct_NMEDIT=$NMEDIT 8759 # Extract the first word of "nmedit", so it can be a program name with args. 8760set dummy nmedit; ac_word=$2 8761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8762$as_echo_n "checking for $ac_word... " >&6; } 8763if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8764 $as_echo_n "(cached) " >&6 8765else 8766 if test -n "$ac_ct_NMEDIT"; then 8767 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8768else 8769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8770for as_dir in $PATH 8771do 8772 IFS=$as_save_IFS 8773 test -z "$as_dir" && as_dir=. 8774 for ac_exec_ext in '' $ac_executable_extensions; do 8775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8776 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8778 break 2 8779 fi 8780done 8781 done 8782IFS=$as_save_IFS 8783 8784fi 8785fi 8786ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8787if test -n "$ac_ct_NMEDIT"; then 8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8789$as_echo "$ac_ct_NMEDIT" >&6; } 8790else 8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8792$as_echo "no" >&6; } 8793fi 8794 8795 if test "x$ac_ct_NMEDIT" = x; then 8796 NMEDIT=":" 8797 else 8798 case $cross_compiling:$ac_tool_warned in 8799yes:) 8800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8802ac_tool_warned=yes ;; 8803esac 8804 NMEDIT=$ac_ct_NMEDIT 8805 fi 8806else 8807 NMEDIT="$ac_cv_prog_NMEDIT" 8808fi 8809 8810 if test -n "$ac_tool_prefix"; then 8811 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8812set dummy ${ac_tool_prefix}lipo; ac_word=$2 8813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8814$as_echo_n "checking for $ac_word... " >&6; } 8815if ${ac_cv_prog_LIPO+:} false; then : 8816 $as_echo_n "(cached) " >&6 8817else 8818 if test -n "$LIPO"; then 8819 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8820else 8821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8822for as_dir in $PATH 8823do 8824 IFS=$as_save_IFS 8825 test -z "$as_dir" && as_dir=. 8826 for ac_exec_ext in '' $ac_executable_extensions; do 8827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8828 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8830 break 2 8831 fi 8832done 8833 done 8834IFS=$as_save_IFS 8835 8836fi 8837fi 8838LIPO=$ac_cv_prog_LIPO 8839if test -n "$LIPO"; then 8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8841$as_echo "$LIPO" >&6; } 8842else 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8844$as_echo "no" >&6; } 8845fi 8846 8847 8848fi 8849if test -z "$ac_cv_prog_LIPO"; then 8850 ac_ct_LIPO=$LIPO 8851 # Extract the first word of "lipo", so it can be a program name with args. 8852set dummy lipo; ac_word=$2 8853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8854$as_echo_n "checking for $ac_word... " >&6; } 8855if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8856 $as_echo_n "(cached) " >&6 8857else 8858 if test -n "$ac_ct_LIPO"; then 8859 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8860else 8861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8862for as_dir in $PATH 8863do 8864 IFS=$as_save_IFS 8865 test -z "$as_dir" && as_dir=. 8866 for ac_exec_ext in '' $ac_executable_extensions; do 8867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8868 ac_cv_prog_ac_ct_LIPO="lipo" 8869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8870 break 2 8871 fi 8872done 8873 done 8874IFS=$as_save_IFS 8875 8876fi 8877fi 8878ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8879if test -n "$ac_ct_LIPO"; then 8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8881$as_echo "$ac_ct_LIPO" >&6; } 8882else 8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8884$as_echo "no" >&6; } 8885fi 8886 8887 if test "x$ac_ct_LIPO" = x; then 8888 LIPO=":" 8889 else 8890 case $cross_compiling:$ac_tool_warned in 8891yes:) 8892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8894ac_tool_warned=yes ;; 8895esac 8896 LIPO=$ac_ct_LIPO 8897 fi 8898else 8899 LIPO="$ac_cv_prog_LIPO" 8900fi 8901 8902 if test -n "$ac_tool_prefix"; then 8903 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8904set dummy ${ac_tool_prefix}otool; ac_word=$2 8905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8906$as_echo_n "checking for $ac_word... " >&6; } 8907if ${ac_cv_prog_OTOOL+:} false; then : 8908 $as_echo_n "(cached) " >&6 8909else 8910 if test -n "$OTOOL"; then 8911 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8912else 8913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8914for as_dir in $PATH 8915do 8916 IFS=$as_save_IFS 8917 test -z "$as_dir" && as_dir=. 8918 for ac_exec_ext in '' $ac_executable_extensions; do 8919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8920 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8922 break 2 8923 fi 8924done 8925 done 8926IFS=$as_save_IFS 8927 8928fi 8929fi 8930OTOOL=$ac_cv_prog_OTOOL 8931if test -n "$OTOOL"; then 8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8933$as_echo "$OTOOL" >&6; } 8934else 8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8936$as_echo "no" >&6; } 8937fi 8938 8939 8940fi 8941if test -z "$ac_cv_prog_OTOOL"; then 8942 ac_ct_OTOOL=$OTOOL 8943 # Extract the first word of "otool", so it can be a program name with args. 8944set dummy otool; ac_word=$2 8945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8946$as_echo_n "checking for $ac_word... " >&6; } 8947if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8948 $as_echo_n "(cached) " >&6 8949else 8950 if test -n "$ac_ct_OTOOL"; then 8951 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8952else 8953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8954for as_dir in $PATH 8955do 8956 IFS=$as_save_IFS 8957 test -z "$as_dir" && as_dir=. 8958 for ac_exec_ext in '' $ac_executable_extensions; do 8959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8960 ac_cv_prog_ac_ct_OTOOL="otool" 8961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8962 break 2 8963 fi 8964done 8965 done 8966IFS=$as_save_IFS 8967 8968fi 8969fi 8970ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8971if test -n "$ac_ct_OTOOL"; then 8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8973$as_echo "$ac_ct_OTOOL" >&6; } 8974else 8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8976$as_echo "no" >&6; } 8977fi 8978 8979 if test "x$ac_ct_OTOOL" = x; then 8980 OTOOL=":" 8981 else 8982 case $cross_compiling:$ac_tool_warned in 8983yes:) 8984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8986ac_tool_warned=yes ;; 8987esac 8988 OTOOL=$ac_ct_OTOOL 8989 fi 8990else 8991 OTOOL="$ac_cv_prog_OTOOL" 8992fi 8993 8994 if test -n "$ac_tool_prefix"; then 8995 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8996set dummy ${ac_tool_prefix}otool64; ac_word=$2 8997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8998$as_echo_n "checking for $ac_word... " >&6; } 8999if ${ac_cv_prog_OTOOL64+:} false; then : 9000 $as_echo_n "(cached) " >&6 9001else 9002 if test -n "$OTOOL64"; then 9003 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9004else 9005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9006for as_dir in $PATH 9007do 9008 IFS=$as_save_IFS 9009 test -z "$as_dir" && as_dir=. 9010 for ac_exec_ext in '' $ac_executable_extensions; do 9011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9012 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9014 break 2 9015 fi 9016done 9017 done 9018IFS=$as_save_IFS 9019 9020fi 9021fi 9022OTOOL64=$ac_cv_prog_OTOOL64 9023if test -n "$OTOOL64"; then 9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9025$as_echo "$OTOOL64" >&6; } 9026else 9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9028$as_echo "no" >&6; } 9029fi 9030 9031 9032fi 9033if test -z "$ac_cv_prog_OTOOL64"; then 9034 ac_ct_OTOOL64=$OTOOL64 9035 # Extract the first word of "otool64", so it can be a program name with args. 9036set dummy otool64; ac_word=$2 9037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9038$as_echo_n "checking for $ac_word... " >&6; } 9039if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9040 $as_echo_n "(cached) " >&6 9041else 9042 if test -n "$ac_ct_OTOOL64"; then 9043 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9044else 9045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9046for as_dir in $PATH 9047do 9048 IFS=$as_save_IFS 9049 test -z "$as_dir" && as_dir=. 9050 for ac_exec_ext in '' $ac_executable_extensions; do 9051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9052 ac_cv_prog_ac_ct_OTOOL64="otool64" 9053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9054 break 2 9055 fi 9056done 9057 done 9058IFS=$as_save_IFS 9059 9060fi 9061fi 9062ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9063if test -n "$ac_ct_OTOOL64"; then 9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9065$as_echo "$ac_ct_OTOOL64" >&6; } 9066else 9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9068$as_echo "no" >&6; } 9069fi 9070 9071 if test "x$ac_ct_OTOOL64" = x; then 9072 OTOOL64=":" 9073 else 9074 case $cross_compiling:$ac_tool_warned in 9075yes:) 9076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9078ac_tool_warned=yes ;; 9079esac 9080 OTOOL64=$ac_ct_OTOOL64 9081 fi 9082else 9083 OTOOL64="$ac_cv_prog_OTOOL64" 9084fi 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9113$as_echo_n "checking for -single_module linker flag... " >&6; } 9114if ${lt_cv_apple_cc_single_mod+:} false; then : 9115 $as_echo_n "(cached) " >&6 9116else 9117 lt_cv_apple_cc_single_mod=no 9118 if test -z "${LT_MULTI_MODULE}"; then 9119 # By default we will add the -single_module flag. You can override 9120 # by either setting the environment variable LT_MULTI_MODULE 9121 # non-empty at configure time, or by adding -multi_module to the 9122 # link flags. 9123 rm -rf libconftest.dylib* 9124 echo "int foo(void){return 1;}" > conftest.c 9125 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9126-dynamiclib -Wl,-single_module conftest.c" >&5 9127 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9128 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9129 _lt_result=$? 9130 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 9131 lt_cv_apple_cc_single_mod=yes 9132 else 9133 cat conftest.err >&5 9134 fi 9135 rm -rf libconftest.dylib* 9136 rm -f conftest.* 9137 fi 9138fi 9139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9140$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9142$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9143if ${lt_cv_ld_exported_symbols_list+:} false; then : 9144 $as_echo_n "(cached) " >&6 9145else 9146 lt_cv_ld_exported_symbols_list=no 9147 save_LDFLAGS=$LDFLAGS 9148 echo "_main" > conftest.sym 9149 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9151/* end confdefs.h. */ 9152 9153int 9154main () 9155{ 9156 9157 ; 9158 return 0; 9159} 9160_ACEOF 9161if ac_fn_c_try_link "$LINENO"; then : 9162 lt_cv_ld_exported_symbols_list=yes 9163else 9164 lt_cv_ld_exported_symbols_list=no 9165fi 9166rm -f core conftest.err conftest.$ac_objext \ 9167 conftest$ac_exeext conftest.$ac_ext 9168 LDFLAGS="$save_LDFLAGS" 9169 9170fi 9171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9172$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9174$as_echo_n "checking for -force_load linker flag... " >&6; } 9175if ${lt_cv_ld_force_load+:} false; then : 9176 $as_echo_n "(cached) " >&6 9177else 9178 lt_cv_ld_force_load=no 9179 cat > conftest.c << _LT_EOF 9180int forced_loaded() { return 2;} 9181_LT_EOF 9182 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9183 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9184 echo "$AR cru libconftest.a conftest.o" >&5 9185 $AR cru libconftest.a conftest.o 2>&5 9186 echo "$RANLIB libconftest.a" >&5 9187 $RANLIB libconftest.a 2>&5 9188 cat > conftest.c << _LT_EOF 9189int main() { return 0;} 9190_LT_EOF 9191 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9192 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9193 _lt_result=$? 9194 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 9195 lt_cv_ld_force_load=yes 9196 else 9197 cat conftest.err >&5 9198 fi 9199 rm -f conftest.err libconftest.a conftest conftest.c 9200 rm -rf conftest.dSYM 9201 9202fi 9203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9204$as_echo "$lt_cv_ld_force_load" >&6; } 9205 case $host_os in 9206 rhapsody* | darwin1.[012]) 9207 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 9208 darwin1.*) 9209 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9210 darwin*) # darwin 5.x on 9211 # if running on 10.5 or later, the deployment target defaults 9212 # to the OS version, if on x86, and 10.4, the deployment 9213 # target defaults to 10.4. Don't you love it? 9214 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9215 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9216 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9217 10.[012]*) 9218 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9219 10.*) 9220 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9221 esac 9222 ;; 9223 esac 9224 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 9225 _lt_dar_single_mod='$single_module' 9226 fi 9227 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 9228 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 9229 else 9230 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 9231 fi 9232 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 9233 _lt_dsymutil='~$DSYMUTIL $lib || :' 9234 else 9235 _lt_dsymutil= 9236 fi 9237 ;; 9238 esac 9239 9240for ac_header in dlfcn.h 9241do : 9242 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9243" 9244if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9245 cat >>confdefs.h <<_ACEOF 9246#define HAVE_DLFCN_H 1 9247_ACEOF 9248 9249fi 9250 9251done 9252 9253 9254 9255 9256func_stripname_cnf () 9257{ 9258 case ${2} in 9259 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 9260 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 9261 esac 9262} # func_stripname_cnf 9263 9264 9265 9266 9267 9268# Set options 9269 9270 9271 9272 enable_dlopen=no 9273 9274 9275 9276 # Check whether --enable-shared was given. 9277if test "${enable_shared+set}" = set; then : 9278 enableval=$enable_shared; p=${PACKAGE-default} 9279 case $enableval in 9280 yes) enable_shared=yes ;; 9281 no) enable_shared=no ;; 9282 *) 9283 enable_shared=no 9284 # Look at the argument we got. We use all the common list separators. 9285 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9286 for pkg in $enableval; do 9287 IFS="$lt_save_ifs" 9288 if test "X$pkg" = "X$p"; then 9289 enable_shared=yes 9290 fi 9291 done 9292 IFS="$lt_save_ifs" 9293 ;; 9294 esac 9295else 9296 enable_shared=yes 9297fi 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 # Check whether --enable-static was given. 9308if test "${enable_static+set}" = set; then : 9309 enableval=$enable_static; p=${PACKAGE-default} 9310 case $enableval in 9311 yes) enable_static=yes ;; 9312 no) enable_static=no ;; 9313 *) 9314 enable_static=no 9315 # Look at the argument we got. We use all the common list separators. 9316 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9317 for pkg in $enableval; do 9318 IFS="$lt_save_ifs" 9319 if test "X$pkg" = "X$p"; then 9320 enable_static=yes 9321 fi 9322 done 9323 IFS="$lt_save_ifs" 9324 ;; 9325 esac 9326else 9327 enable_static=yes 9328fi 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339# Check whether --with-pic was given. 9340if test "${with_pic+set}" = set; then : 9341 withval=$with_pic; pic_mode="$withval" 9342else 9343 pic_mode=default 9344fi 9345 9346 9347test -z "$pic_mode" && pic_mode=default 9348 9349 9350 9351 9352 9353 9354 9355 # Check whether --enable-fast-install was given. 9356if test "${enable_fast_install+set}" = set; then : 9357 enableval=$enable_fast_install; p=${PACKAGE-default} 9358 case $enableval in 9359 yes) enable_fast_install=yes ;; 9360 no) enable_fast_install=no ;; 9361 *) 9362 enable_fast_install=no 9363 # Look at the argument we got. We use all the common list separators. 9364 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9365 for pkg in $enableval; do 9366 IFS="$lt_save_ifs" 9367 if test "X$pkg" = "X$p"; then 9368 enable_fast_install=yes 9369 fi 9370 done 9371 IFS="$lt_save_ifs" 9372 ;; 9373 esac 9374else 9375 enable_fast_install=yes 9376fi 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388# This can be used to rebuild libtool when needed 9389LIBTOOL_DEPS="$ltmain" 9390 9391# Always use our own libtool. 9392LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419test -z "$LN_S" && LN_S="ln -s" 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434if test -n "${ZSH_VERSION+set}" ; then 9435 setopt NO_GLOB_SUBST 9436fi 9437 9438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9439$as_echo_n "checking for objdir... " >&6; } 9440if ${lt_cv_objdir+:} false; then : 9441 $as_echo_n "(cached) " >&6 9442else 9443 rm -f .libs 2>/dev/null 9444mkdir .libs 2>/dev/null 9445if test -d .libs; then 9446 lt_cv_objdir=.libs 9447else 9448 # MS-DOS does not allow filenames that begin with a dot. 9449 lt_cv_objdir=_libs 9450fi 9451rmdir .libs 2>/dev/null 9452fi 9453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9454$as_echo "$lt_cv_objdir" >&6; } 9455objdir=$lt_cv_objdir 9456 9457 9458 9459 9460 9461cat >>confdefs.h <<_ACEOF 9462#define LT_OBJDIR "$lt_cv_objdir/" 9463_ACEOF 9464 9465 9466 9467 9468case $host_os in 9469aix3*) 9470 # AIX sometimes has problems with the GCC collect2 program. For some 9471 # reason, if we set the COLLECT_NAMES environment variable, the problems 9472 # vanish in a puff of smoke. 9473 if test "X${COLLECT_NAMES+set}" != Xset; then 9474 COLLECT_NAMES= 9475 export COLLECT_NAMES 9476 fi 9477 ;; 9478esac 9479 9480# Global variables: 9481ofile=libtool 9482can_build_shared=yes 9483 9484# All known linkers require a `.a' archive for static linking (except MSVC, 9485# which needs '.lib'). 9486libext=a 9487 9488with_gnu_ld="$lt_cv_prog_gnu_ld" 9489 9490old_CC="$CC" 9491old_CFLAGS="$CFLAGS" 9492 9493# Set sane defaults for various variables 9494test -z "$CC" && CC=cc 9495test -z "$LTCC" && LTCC=$CC 9496test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9497test -z "$LD" && LD=ld 9498test -z "$ac_objext" && ac_objext=o 9499 9500for cc_temp in $compiler""; do 9501 case $cc_temp in 9502 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9503 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9504 \-*) ;; 9505 *) break;; 9506 esac 9507done 9508cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9509 9510 9511# Only perform the check for file, if the check method requires it 9512test -z "$MAGIC_CMD" && MAGIC_CMD=file 9513case $deplibs_check_method in 9514file_magic*) 9515 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9517$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9518if ${lt_cv_path_MAGIC_CMD+:} false; then : 9519 $as_echo_n "(cached) " >&6 9520else 9521 case $MAGIC_CMD in 9522[\\/*] | ?:[\\/]*) 9523 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9524 ;; 9525*) 9526 lt_save_MAGIC_CMD="$MAGIC_CMD" 9527 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9528 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9529 for ac_dir in $ac_dummy; do 9530 IFS="$lt_save_ifs" 9531 test -z "$ac_dir" && ac_dir=. 9532 if test -f $ac_dir/${ac_tool_prefix}file; then 9533 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 9534 if test -n "$file_magic_test_file"; then 9535 case $deplibs_check_method in 9536 "file_magic "*) 9537 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9538 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9539 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9540 $EGREP "$file_magic_regex" > /dev/null; then 9541 : 9542 else 9543 cat <<_LT_EOF 1>&2 9544 9545*** Warning: the command libtool uses to detect shared libraries, 9546*** $file_magic_cmd, produces output that libtool cannot recognize. 9547*** The result is that libtool may fail to recognize shared libraries 9548*** as such. This will affect the creation of libtool libraries that 9549*** depend on shared libraries, but programs linked with such libtool 9550*** libraries will work regardless of this problem. Nevertheless, you 9551*** may want to report the problem to your system manager and/or to 9552*** bug-libtool@gnu.org 9553 9554_LT_EOF 9555 fi ;; 9556 esac 9557 fi 9558 break 9559 fi 9560 done 9561 IFS="$lt_save_ifs" 9562 MAGIC_CMD="$lt_save_MAGIC_CMD" 9563 ;; 9564esac 9565fi 9566 9567MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9568if test -n "$MAGIC_CMD"; then 9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9570$as_echo "$MAGIC_CMD" >&6; } 9571else 9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9573$as_echo "no" >&6; } 9574fi 9575 9576 9577 9578 9579 9580if test -z "$lt_cv_path_MAGIC_CMD"; then 9581 if test -n "$ac_tool_prefix"; then 9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9583$as_echo_n "checking for file... " >&6; } 9584if ${lt_cv_path_MAGIC_CMD+:} false; then : 9585 $as_echo_n "(cached) " >&6 9586else 9587 case $MAGIC_CMD in 9588[\\/*] | ?:[\\/]*) 9589 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9590 ;; 9591*) 9592 lt_save_MAGIC_CMD="$MAGIC_CMD" 9593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9594 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9595 for ac_dir in $ac_dummy; do 9596 IFS="$lt_save_ifs" 9597 test -z "$ac_dir" && ac_dir=. 9598 if test -f $ac_dir/file; then 9599 lt_cv_path_MAGIC_CMD="$ac_dir/file" 9600 if test -n "$file_magic_test_file"; then 9601 case $deplibs_check_method in 9602 "file_magic "*) 9603 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9604 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9605 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9606 $EGREP "$file_magic_regex" > /dev/null; then 9607 : 9608 else 9609 cat <<_LT_EOF 1>&2 9610 9611*** Warning: the command libtool uses to detect shared libraries, 9612*** $file_magic_cmd, produces output that libtool cannot recognize. 9613*** The result is that libtool may fail to recognize shared libraries 9614*** as such. This will affect the creation of libtool libraries that 9615*** depend on shared libraries, but programs linked with such libtool 9616*** libraries will work regardless of this problem. Nevertheless, you 9617*** may want to report the problem to your system manager and/or to 9618*** bug-libtool@gnu.org 9619 9620_LT_EOF 9621 fi ;; 9622 esac 9623 fi 9624 break 9625 fi 9626 done 9627 IFS="$lt_save_ifs" 9628 MAGIC_CMD="$lt_save_MAGIC_CMD" 9629 ;; 9630esac 9631fi 9632 9633MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9634if test -n "$MAGIC_CMD"; then 9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9636$as_echo "$MAGIC_CMD" >&6; } 9637else 9638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9639$as_echo "no" >&6; } 9640fi 9641 9642 9643 else 9644 MAGIC_CMD=: 9645 fi 9646fi 9647 9648 fi 9649 ;; 9650esac 9651 9652# Use C for the default configuration in the libtool script 9653 9654lt_save_CC="$CC" 9655ac_ext=c 9656ac_cpp='$CPP $CPPFLAGS' 9657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9659ac_compiler_gnu=$ac_cv_c_compiler_gnu 9660 9661 9662# Source file extension for C test sources. 9663ac_ext=c 9664 9665# Object file extension for compiled C test sources. 9666objext=o 9667objext=$objext 9668 9669# Code to be used in simple compile tests 9670lt_simple_compile_test_code="int some_variable = 0;" 9671 9672# Code to be used in simple link tests 9673lt_simple_link_test_code='int main(){return(0);}' 9674 9675 9676 9677 9678 9679 9680 9681# If no C compiler was specified, use CC. 9682LTCC=${LTCC-"$CC"} 9683 9684# If no C compiler flags were specified, use CFLAGS. 9685LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9686 9687# Allow CC to be a program name with arguments. 9688compiler=$CC 9689 9690# Save the default compiler, since it gets overwritten when the other 9691# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9692compiler_DEFAULT=$CC 9693 9694# save warnings/boilerplate of simple test code 9695ac_outfile=conftest.$ac_objext 9696echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9697eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9698_lt_compiler_boilerplate=`cat conftest.err` 9699$RM conftest* 9700 9701ac_outfile=conftest.$ac_objext 9702echo "$lt_simple_link_test_code" >conftest.$ac_ext 9703eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9704_lt_linker_boilerplate=`cat conftest.err` 9705$RM -r conftest* 9706 9707 9708## CAVEAT EMPTOR: 9709## There is no encapsulation within the following macros, do not change 9710## the running order or otherwise move them around unless you know exactly 9711## what you are doing... 9712if test -n "$compiler"; then 9713 9714lt_prog_compiler_no_builtin_flag= 9715 9716if test "$GCC" = yes; then 9717 case $cc_basename in 9718 nvcc*) 9719 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9720 *) 9721 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9722 esac 9723 9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9725$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9726if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9727 $as_echo_n "(cached) " >&6 9728else 9729 lt_cv_prog_compiler_rtti_exceptions=no 9730 ac_outfile=conftest.$ac_objext 9731 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9732 lt_compiler_flag="-fno-rtti -fno-exceptions" 9733 # Insert the option either (1) after the last *FLAGS variable, or 9734 # (2) before a word containing "conftest.", or (3) at the end. 9735 # Note that $ac_compile itself does not contain backslashes and begins 9736 # with a dollar sign (not a hyphen), so the echo should work correctly. 9737 # The option is referenced via a variable to avoid confusing sed. 9738 lt_compile=`echo "$ac_compile" | $SED \ 9739 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9740 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9741 -e 's:$: $lt_compiler_flag:'` 9742 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9743 (eval "$lt_compile" 2>conftest.err) 9744 ac_status=$? 9745 cat conftest.err >&5 9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9747 if (exit $ac_status) && test -s "$ac_outfile"; then 9748 # The compiler can only warn and ignore the option if not recognized 9749 # So say no if there are warnings other than the usual output. 9750 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9751 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9752 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9753 lt_cv_prog_compiler_rtti_exceptions=yes 9754 fi 9755 fi 9756 $RM conftest* 9757 9758fi 9759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9760$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9761 9762if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9763 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9764else 9765 : 9766fi 9767 9768fi 9769 9770 9771 9772 9773 9774 9775 lt_prog_compiler_wl= 9776lt_prog_compiler_pic= 9777lt_prog_compiler_static= 9778 9779 9780 if test "$GCC" = yes; then 9781 lt_prog_compiler_wl='-Wl,' 9782 lt_prog_compiler_static='-static' 9783 9784 case $host_os in 9785 aix*) 9786 # All AIX code is PIC. 9787 if test "$host_cpu" = ia64; then 9788 # AIX 5 now supports IA64 processor 9789 lt_prog_compiler_static='-Bstatic' 9790 fi 9791 ;; 9792 9793 amigaos*) 9794 case $host_cpu in 9795 powerpc) 9796 # see comment about AmigaOS4 .so support 9797 lt_prog_compiler_pic='-fPIC' 9798 ;; 9799 m68k) 9800 # FIXME: we need at least 68020 code to build shared libraries, but 9801 # adding the `-m68020' flag to GCC prevents building anything better, 9802 # like `-m68040'. 9803 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9804 ;; 9805 esac 9806 ;; 9807 9808 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9809 # PIC is the default for these OSes. 9810 ;; 9811 9812 mingw* | cygwin* | pw32* | os2* | cegcc*) 9813 # This hack is so that the source file can tell whether it is being 9814 # built for inclusion in a dll (and should export symbols for example). 9815 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9816 # (--disable-auto-import) libraries 9817 lt_prog_compiler_pic='-DDLL_EXPORT' 9818 ;; 9819 9820 darwin* | rhapsody*) 9821 # PIC is the default on this platform 9822 # Common symbols not allowed in MH_DYLIB files 9823 lt_prog_compiler_pic='-fno-common' 9824 ;; 9825 9826 haiku*) 9827 # PIC is the default for Haiku. 9828 # The "-static" flag exists, but is broken. 9829 lt_prog_compiler_static= 9830 ;; 9831 9832 hpux*) 9833 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9834 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9835 # sets the default TLS model and affects inlining. 9836 case $host_cpu in 9837 hppa*64*) 9838 # +Z the default 9839 ;; 9840 *) 9841 lt_prog_compiler_pic='-fPIC' 9842 ;; 9843 esac 9844 ;; 9845 9846 interix[3-9]*) 9847 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9848 # Instead, we relocate shared libraries at runtime. 9849 ;; 9850 9851 msdosdjgpp*) 9852 # Just because we use GCC doesn't mean we suddenly get shared libraries 9853 # on systems that don't support them. 9854 lt_prog_compiler_can_build_shared=no 9855 enable_shared=no 9856 ;; 9857 9858 *nto* | *qnx*) 9859 # QNX uses GNU C++, but need to define -shared option too, otherwise 9860 # it will coredump. 9861 lt_prog_compiler_pic='-fPIC -shared' 9862 ;; 9863 9864 sysv4*MP*) 9865 if test -d /usr/nec; then 9866 lt_prog_compiler_pic=-Kconform_pic 9867 fi 9868 ;; 9869 9870 *) 9871 lt_prog_compiler_pic='-fPIC' 9872 ;; 9873 esac 9874 9875 case $cc_basename in 9876 nvcc*) # Cuda Compiler Driver 2.2 9877 lt_prog_compiler_wl='-Xlinker ' 9878 lt_prog_compiler_pic='-Xcompiler -fPIC' 9879 ;; 9880 esac 9881 else 9882 # PORTME Check for flag to pass linker flags through the system compiler. 9883 case $host_os in 9884 aix*) 9885 lt_prog_compiler_wl='-Wl,' 9886 if test "$host_cpu" = ia64; then 9887 # AIX 5 now supports IA64 processor 9888 lt_prog_compiler_static='-Bstatic' 9889 else 9890 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9891 fi 9892 ;; 9893 9894 mingw* | cygwin* | pw32* | os2* | cegcc*) 9895 # This hack is so that the source file can tell whether it is being 9896 # built for inclusion in a dll (and should export symbols for example). 9897 lt_prog_compiler_pic='-DDLL_EXPORT' 9898 ;; 9899 9900 hpux9* | hpux10* | hpux11*) 9901 lt_prog_compiler_wl='-Wl,' 9902 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9903 # not for PA HP-UX. 9904 case $host_cpu in 9905 hppa*64*|ia64*) 9906 # +Z the default 9907 ;; 9908 *) 9909 lt_prog_compiler_pic='+Z' 9910 ;; 9911 esac 9912 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9913 lt_prog_compiler_static='${wl}-a ${wl}archive' 9914 ;; 9915 9916 irix5* | irix6* | nonstopux*) 9917 lt_prog_compiler_wl='-Wl,' 9918 # PIC (with -KPIC) is the default. 9919 lt_prog_compiler_static='-non_shared' 9920 ;; 9921 9922 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9923 case $cc_basename in 9924 # old Intel for x86_64 which still supported -KPIC. 9925 ecc*) 9926 lt_prog_compiler_wl='-Wl,' 9927 lt_prog_compiler_pic='-KPIC' 9928 lt_prog_compiler_static='-static' 9929 ;; 9930 # icc used to be incompatible with GCC. 9931 # ICC 10 doesn't accept -KPIC any more. 9932 icc* | ifort*) 9933 lt_prog_compiler_wl='-Wl,' 9934 lt_prog_compiler_pic='-fPIC' 9935 lt_prog_compiler_static='-static' 9936 ;; 9937 # Lahey Fortran 8.1. 9938 lf95*) 9939 lt_prog_compiler_wl='-Wl,' 9940 lt_prog_compiler_pic='--shared' 9941 lt_prog_compiler_static='--static' 9942 ;; 9943 nagfor*) 9944 # NAG Fortran compiler 9945 lt_prog_compiler_wl='-Wl,-Wl,,' 9946 lt_prog_compiler_pic='-PIC' 9947 lt_prog_compiler_static='-Bstatic' 9948 ;; 9949 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9950 # Portland Group compilers (*not* the Pentium gcc compiler, 9951 # which looks to be a dead project) 9952 lt_prog_compiler_wl='-Wl,' 9953 lt_prog_compiler_pic='-fpic' 9954 lt_prog_compiler_static='-Bstatic' 9955 ;; 9956 ccc*) 9957 lt_prog_compiler_wl='-Wl,' 9958 # All Alpha code is PIC. 9959 lt_prog_compiler_static='-non_shared' 9960 ;; 9961 xl* | bgxl* | bgf* | mpixl*) 9962 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9963 lt_prog_compiler_wl='-Wl,' 9964 lt_prog_compiler_pic='-qpic' 9965 lt_prog_compiler_static='-qstaticlink' 9966 ;; 9967 *) 9968 case `$CC -V 2>&1 | sed 5q` in 9969 *Sun\ F* | *Sun*Fortran*) 9970 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9971 lt_prog_compiler_pic='-KPIC' 9972 lt_prog_compiler_static='-Bstatic' 9973 lt_prog_compiler_wl='' 9974 ;; 9975 *Sun\ C*) 9976 # Sun C 5.9 9977 lt_prog_compiler_pic='-KPIC' 9978 lt_prog_compiler_static='-Bstatic' 9979 lt_prog_compiler_wl='-Wl,' 9980 ;; 9981 esac 9982 ;; 9983 esac 9984 ;; 9985 9986 newsos6) 9987 lt_prog_compiler_pic='-KPIC' 9988 lt_prog_compiler_static='-Bstatic' 9989 ;; 9990 9991 *nto* | *qnx*) 9992 # QNX uses GNU C++, but need to define -shared option too, otherwise 9993 # it will coredump. 9994 lt_prog_compiler_pic='-fPIC -shared' 9995 ;; 9996 9997 osf3* | osf4* | osf5*) 9998 lt_prog_compiler_wl='-Wl,' 9999 # All OSF/1 code is PIC. 10000 lt_prog_compiler_static='-non_shared' 10001 ;; 10002 10003 rdos*) 10004 lt_prog_compiler_static='-non_shared' 10005 ;; 10006 10007 solaris*) 10008 lt_prog_compiler_pic='-KPIC' 10009 lt_prog_compiler_static='-Bstatic' 10010 case $cc_basename in 10011 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10012 lt_prog_compiler_wl='-Qoption ld ';; 10013 *) 10014 lt_prog_compiler_wl='-Wl,';; 10015 esac 10016 ;; 10017 10018 sunos4*) 10019 lt_prog_compiler_wl='-Qoption ld ' 10020 lt_prog_compiler_pic='-PIC' 10021 lt_prog_compiler_static='-Bstatic' 10022 ;; 10023 10024 sysv4 | sysv4.2uw2* | sysv4.3*) 10025 lt_prog_compiler_wl='-Wl,' 10026 lt_prog_compiler_pic='-KPIC' 10027 lt_prog_compiler_static='-Bstatic' 10028 ;; 10029 10030 sysv4*MP*) 10031 if test -d /usr/nec ;then 10032 lt_prog_compiler_pic='-Kconform_pic' 10033 lt_prog_compiler_static='-Bstatic' 10034 fi 10035 ;; 10036 10037 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10038 lt_prog_compiler_wl='-Wl,' 10039 lt_prog_compiler_pic='-KPIC' 10040 lt_prog_compiler_static='-Bstatic' 10041 ;; 10042 10043 unicos*) 10044 lt_prog_compiler_wl='-Wl,' 10045 lt_prog_compiler_can_build_shared=no 10046 ;; 10047 10048 uts4*) 10049 lt_prog_compiler_pic='-pic' 10050 lt_prog_compiler_static='-Bstatic' 10051 ;; 10052 10053 *) 10054 lt_prog_compiler_can_build_shared=no 10055 ;; 10056 esac 10057 fi 10058 10059case $host_os in 10060 # For platforms which do not support PIC, -DPIC is meaningless: 10061 *djgpp*) 10062 lt_prog_compiler_pic= 10063 ;; 10064 *) 10065 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10066 ;; 10067esac 10068 10069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10070$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10071if ${lt_cv_prog_compiler_pic+:} false; then : 10072 $as_echo_n "(cached) " >&6 10073else 10074 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10075fi 10076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10077$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10078lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10079 10080# 10081# Check to make sure the PIC flag actually works. 10082# 10083if test -n "$lt_prog_compiler_pic"; then 10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10085$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10086if ${lt_cv_prog_compiler_pic_works+:} false; then : 10087 $as_echo_n "(cached) " >&6 10088else 10089 lt_cv_prog_compiler_pic_works=no 10090 ac_outfile=conftest.$ac_objext 10091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10092 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 10093 # Insert the option either (1) after the last *FLAGS variable, or 10094 # (2) before a word containing "conftest.", or (3) at the end. 10095 # Note that $ac_compile itself does not contain backslashes and begins 10096 # with a dollar sign (not a hyphen), so the echo should work correctly. 10097 # The option is referenced via a variable to avoid confusing sed. 10098 lt_compile=`echo "$ac_compile" | $SED \ 10099 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10100 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10101 -e 's:$: $lt_compiler_flag:'` 10102 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10103 (eval "$lt_compile" 2>conftest.err) 10104 ac_status=$? 10105 cat conftest.err >&5 10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10107 if (exit $ac_status) && test -s "$ac_outfile"; then 10108 # The compiler can only warn and ignore the option if not recognized 10109 # So say no if there are warnings other than the usual output. 10110 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10111 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10112 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10113 lt_cv_prog_compiler_pic_works=yes 10114 fi 10115 fi 10116 $RM conftest* 10117 10118fi 10119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10120$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10121 10122if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 10123 case $lt_prog_compiler_pic in 10124 "" | " "*) ;; 10125 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10126 esac 10127else 10128 lt_prog_compiler_pic= 10129 lt_prog_compiler_can_build_shared=no 10130fi 10131 10132fi 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144# 10145# Check to make sure the static flag actually works. 10146# 10147wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10149$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10150if ${lt_cv_prog_compiler_static_works+:} false; then : 10151 $as_echo_n "(cached) " >&6 10152else 10153 lt_cv_prog_compiler_static_works=no 10154 save_LDFLAGS="$LDFLAGS" 10155 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10156 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10157 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10158 # The linker can only warn and ignore the option if not recognized 10159 # So say no if there are warnings 10160 if test -s conftest.err; then 10161 # Append any errors to the config.log. 10162 cat conftest.err 1>&5 10163 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10164 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10165 if diff conftest.exp conftest.er2 >/dev/null; then 10166 lt_cv_prog_compiler_static_works=yes 10167 fi 10168 else 10169 lt_cv_prog_compiler_static_works=yes 10170 fi 10171 fi 10172 $RM -r conftest* 10173 LDFLAGS="$save_LDFLAGS" 10174 10175fi 10176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10177$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10178 10179if test x"$lt_cv_prog_compiler_static_works" = xyes; then 10180 : 10181else 10182 lt_prog_compiler_static= 10183fi 10184 10185 10186 10187 10188 10189 10190 10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10192$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10193if ${lt_cv_prog_compiler_c_o+:} false; then : 10194 $as_echo_n "(cached) " >&6 10195else 10196 lt_cv_prog_compiler_c_o=no 10197 $RM -r conftest 2>/dev/null 10198 mkdir conftest 10199 cd conftest 10200 mkdir out 10201 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10202 10203 lt_compiler_flag="-o out/conftest2.$ac_objext" 10204 # Insert the option either (1) after the last *FLAGS variable, or 10205 # (2) before a word containing "conftest.", or (3) at the end. 10206 # Note that $ac_compile itself does not contain backslashes and begins 10207 # with a dollar sign (not a hyphen), so the echo should work correctly. 10208 lt_compile=`echo "$ac_compile" | $SED \ 10209 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10210 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10211 -e 's:$: $lt_compiler_flag:'` 10212 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10213 (eval "$lt_compile" 2>out/conftest.err) 10214 ac_status=$? 10215 cat out/conftest.err >&5 10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10217 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10218 then 10219 # The compiler can only warn and ignore the option if not recognized 10220 # So say no if there are warnings 10221 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10222 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10223 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10224 lt_cv_prog_compiler_c_o=yes 10225 fi 10226 fi 10227 chmod u+w . 2>&5 10228 $RM conftest* 10229 # SGI C++ compiler will create directory out/ii_files/ for 10230 # template instantiation 10231 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10232 $RM out/* && rmdir out 10233 cd .. 10234 $RM -r conftest 10235 $RM conftest* 10236 10237fi 10238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10239$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10240 10241 10242 10243 10244 10245 10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10247$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10248if ${lt_cv_prog_compiler_c_o+:} false; then : 10249 $as_echo_n "(cached) " >&6 10250else 10251 lt_cv_prog_compiler_c_o=no 10252 $RM -r conftest 2>/dev/null 10253 mkdir conftest 10254 cd conftest 10255 mkdir out 10256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10257 10258 lt_compiler_flag="-o out/conftest2.$ac_objext" 10259 # Insert the option either (1) after the last *FLAGS variable, or 10260 # (2) before a word containing "conftest.", or (3) at the end. 10261 # Note that $ac_compile itself does not contain backslashes and begins 10262 # with a dollar sign (not a hyphen), so the echo should work correctly. 10263 lt_compile=`echo "$ac_compile" | $SED \ 10264 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10265 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10266 -e 's:$: $lt_compiler_flag:'` 10267 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10268 (eval "$lt_compile" 2>out/conftest.err) 10269 ac_status=$? 10270 cat out/conftest.err >&5 10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10272 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10273 then 10274 # The compiler can only warn and ignore the option if not recognized 10275 # So say no if there are warnings 10276 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10277 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10278 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10279 lt_cv_prog_compiler_c_o=yes 10280 fi 10281 fi 10282 chmod u+w . 2>&5 10283 $RM conftest* 10284 # SGI C++ compiler will create directory out/ii_files/ for 10285 # template instantiation 10286 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10287 $RM out/* && rmdir out 10288 cd .. 10289 $RM -r conftest 10290 $RM conftest* 10291 10292fi 10293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10294$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10295 10296 10297 10298 10299hard_links="nottested" 10300if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 10301 # do not overwrite the value of need_locks provided by the user 10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10303$as_echo_n "checking if we can lock with hard links... " >&6; } 10304 hard_links=yes 10305 $RM conftest* 10306 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10307 touch conftest.a 10308 ln conftest.a conftest.b 2>&5 || hard_links=no 10309 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10311$as_echo "$hard_links" >&6; } 10312 if test "$hard_links" = no; then 10313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10314$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10315 need_locks=warn 10316 fi 10317else 10318 need_locks=no 10319fi 10320 10321 10322 10323 10324 10325 10326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10327$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10328 10329 runpath_var= 10330 allow_undefined_flag= 10331 always_export_symbols=no 10332 archive_cmds= 10333 archive_expsym_cmds= 10334 compiler_needs_object=no 10335 enable_shared_with_static_runtimes=no 10336 export_dynamic_flag_spec= 10337 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10338 hardcode_automatic=no 10339 hardcode_direct=no 10340 hardcode_direct_absolute=no 10341 hardcode_libdir_flag_spec= 10342 hardcode_libdir_flag_spec_ld= 10343 hardcode_libdir_separator= 10344 hardcode_minus_L=no 10345 hardcode_shlibpath_var=unsupported 10346 inherit_rpath=no 10347 link_all_deplibs=unknown 10348 module_cmds= 10349 module_expsym_cmds= 10350 old_archive_from_new_cmds= 10351 old_archive_from_expsyms_cmds= 10352 thread_safe_flag_spec= 10353 whole_archive_flag_spec= 10354 # include_expsyms should be a list of space-separated symbols to be *always* 10355 # included in the symbol list 10356 include_expsyms= 10357 # exclude_expsyms can be an extended regexp of symbols to exclude 10358 # it will be wrapped by ` (' and `)$', so one must not match beginning or 10359 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 10360 # as well as any symbol that contains `d'. 10361 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10362 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10363 # platforms (ab)use it in PIC code, but their linkers get confused if 10364 # the symbol is explicitly referenced. Since portable code cannot 10365 # rely on this symbol name, it's probably fine to never include it in 10366 # preloaded symbol tables. 10367 # Exclude shared library initialization/finalization symbols. 10368 extract_expsyms_cmds= 10369 10370 case $host_os in 10371 cygwin* | mingw* | pw32* | cegcc*) 10372 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10373 # When not using gcc, we currently assume that we are using 10374 # Microsoft Visual C++. 10375 if test "$GCC" != yes; then 10376 with_gnu_ld=no 10377 fi 10378 ;; 10379 interix*) 10380 # we just hope/assume this is gcc and not c89 (= MSVC++) 10381 with_gnu_ld=yes 10382 ;; 10383 openbsd*) 10384 with_gnu_ld=no 10385 ;; 10386 esac 10387 10388 ld_shlibs=yes 10389 10390 # On some targets, GNU ld is compatible enough with the native linker 10391 # that we're better off using the native interface for both. 10392 lt_use_gnu_ld_interface=no 10393 if test "$with_gnu_ld" = yes; then 10394 case $host_os in 10395 aix*) 10396 # The AIX port of GNU ld has always aspired to compatibility 10397 # with the native linker. However, as the warning in the GNU ld 10398 # block says, versions before 2.19.5* couldn't really create working 10399 # shared libraries, regardless of the interface used. 10400 case `$LD -v 2>&1` in 10401 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10402 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10403 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10404 *) 10405 lt_use_gnu_ld_interface=yes 10406 ;; 10407 esac 10408 ;; 10409 *) 10410 lt_use_gnu_ld_interface=yes 10411 ;; 10412 esac 10413 fi 10414 10415 if test "$lt_use_gnu_ld_interface" = yes; then 10416 # If archive_cmds runs LD, not CC, wlarc should be empty 10417 wlarc='${wl}' 10418 10419 # Set some defaults for GNU ld with shared library support. These 10420 # are reset later if shared libraries are not supported. Putting them 10421 # here allows them to be overridden if necessary. 10422 runpath_var=LD_RUN_PATH 10423 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10424 export_dynamic_flag_spec='${wl}--export-dynamic' 10425 # ancient GNU ld didn't support --whole-archive et. al. 10426 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10427 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10428 else 10429 whole_archive_flag_spec= 10430 fi 10431 supports_anon_versioning=no 10432 case `$LD -v 2>&1` in 10433 *GNU\ gold*) supports_anon_versioning=yes ;; 10434 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10435 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10436 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10437 *\ 2.11.*) ;; # other 2.11 versions 10438 *) supports_anon_versioning=yes ;; 10439 esac 10440 10441 # See if GNU ld supports shared libraries. 10442 case $host_os in 10443 aix[3-9]*) 10444 # On AIX/PPC, the GNU linker is very broken 10445 if test "$host_cpu" != ia64; then 10446 ld_shlibs=no 10447 cat <<_LT_EOF 1>&2 10448 10449*** Warning: the GNU linker, at least up to release 2.19, is reported 10450*** to be unable to reliably create shared libraries on AIX. 10451*** Therefore, libtool is disabling shared libraries support. If you 10452*** really care for shared libraries, you may want to install binutils 10453*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10454*** You will then need to restart the configuration process. 10455 10456_LT_EOF 10457 fi 10458 ;; 10459 10460 amigaos*) 10461 case $host_cpu in 10462 powerpc) 10463 # see comment about AmigaOS4 .so support 10464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10465 archive_expsym_cmds='' 10466 ;; 10467 m68k) 10468 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)' 10469 hardcode_libdir_flag_spec='-L$libdir' 10470 hardcode_minus_L=yes 10471 ;; 10472 esac 10473 ;; 10474 10475 beos*) 10476 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10477 allow_undefined_flag=unsupported 10478 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10479 # support --undefined. This deserves some investigation. FIXME 10480 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10481 else 10482 ld_shlibs=no 10483 fi 10484 ;; 10485 10486 cygwin* | mingw* | pw32* | cegcc*) 10487 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10488 # as there is no search path for DLLs. 10489 hardcode_libdir_flag_spec='-L$libdir' 10490 export_dynamic_flag_spec='${wl}--export-all-symbols' 10491 allow_undefined_flag=unsupported 10492 always_export_symbols=no 10493 enable_shared_with_static_runtimes=yes 10494 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' 10495 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10496 10497 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10499 # If the export-symbols file already is a .def file (1st line 10500 # is EXPORTS), use it as is; otherwise, prepend... 10501 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10502 cp $export_symbols $output_objdir/$soname.def; 10503 else 10504 echo EXPORTS > $output_objdir/$soname.def; 10505 cat $export_symbols >> $output_objdir/$soname.def; 10506 fi~ 10507 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10508 else 10509 ld_shlibs=no 10510 fi 10511 ;; 10512 10513 haiku*) 10514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10515 link_all_deplibs=yes 10516 ;; 10517 10518 interix[3-9]*) 10519 hardcode_direct=no 10520 hardcode_shlibpath_var=no 10521 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10522 export_dynamic_flag_spec='${wl}-E' 10523 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10524 # Instead, shared libraries are loaded at an image base (0x10000000 by 10525 # default) and relocated if they conflict, which is a slow very memory 10526 # consuming and fragmenting process. To avoid this, we pick a random, 10527 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10528 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10529 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10530 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' 10531 ;; 10532 10533 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10534 tmp_diet=no 10535 if test "$host_os" = linux-dietlibc; then 10536 case $cc_basename in 10537 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10538 esac 10539 fi 10540 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10541 && test "$tmp_diet" = no 10542 then 10543 tmp_addflag=' $pic_flag' 10544 tmp_sharedflag='-shared' 10545 case $cc_basename,$host_cpu in 10546 pgcc*) # Portland Group C compiler 10547 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' 10548 tmp_addflag=' $pic_flag' 10549 ;; 10550 pgf77* | pgf90* | pgf95* | pgfortran*) 10551 # Portland Group f77 and f90 compilers 10552 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' 10553 tmp_addflag=' $pic_flag -Mnomain' ;; 10554 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10555 tmp_addflag=' -i_dynamic' ;; 10556 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10557 tmp_addflag=' -i_dynamic -nofor_main' ;; 10558 ifc* | ifort*) # Intel Fortran compiler 10559 tmp_addflag=' -nofor_main' ;; 10560 lf95*) # Lahey Fortran 8.1 10561 whole_archive_flag_spec= 10562 tmp_sharedflag='--shared' ;; 10563 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10564 tmp_sharedflag='-qmkshrobj' 10565 tmp_addflag= ;; 10566 nvcc*) # Cuda Compiler Driver 2.2 10567 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' 10568 compiler_needs_object=yes 10569 ;; 10570 esac 10571 case `$CC -V 2>&1 | sed 5q` in 10572 *Sun\ C*) # Sun C 5.9 10573 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' 10574 compiler_needs_object=yes 10575 tmp_sharedflag='-G' ;; 10576 *Sun\ F*) # Sun Fortran 8.3 10577 tmp_sharedflag='-G' ;; 10578 esac 10579 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10580 10581 if test "x$supports_anon_versioning" = xyes; then 10582 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10583 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10584 echo "local: *; };" >> $output_objdir/$libname.ver~ 10585 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 10586 fi 10587 10588 case $cc_basename in 10589 xlf* | bgf* | bgxlf* | mpixlf*) 10590 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10591 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10592 hardcode_libdir_flag_spec= 10593 hardcode_libdir_flag_spec_ld='-rpath $libdir' 10594 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10595 if test "x$supports_anon_versioning" = xyes; then 10596 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10597 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10598 echo "local: *; };" >> $output_objdir/$libname.ver~ 10599 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10600 fi 10601 ;; 10602 esac 10603 else 10604 ld_shlibs=no 10605 fi 10606 ;; 10607 10608 netbsd*) 10609 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10610 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10611 wlarc= 10612 else 10613 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10614 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10615 fi 10616 ;; 10617 10618 solaris*) 10619 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10620 ld_shlibs=no 10621 cat <<_LT_EOF 1>&2 10622 10623*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10624*** create shared libraries on Solaris systems. Therefore, libtool 10625*** is disabling shared libraries support. We urge you to upgrade GNU 10626*** binutils to release 2.9.1 or newer. Another option is to modify 10627*** your PATH or compiler configuration so that the native linker is 10628*** used, and then restart. 10629 10630_LT_EOF 10631 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10632 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10633 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10634 else 10635 ld_shlibs=no 10636 fi 10637 ;; 10638 10639 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10640 case `$LD -v 2>&1` in 10641 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10642 ld_shlibs=no 10643 cat <<_LT_EOF 1>&2 10644 10645*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10646*** reliably create shared libraries on SCO systems. Therefore, libtool 10647*** is disabling shared libraries support. We urge you to upgrade GNU 10648*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10649*** your PATH or compiler configuration so that the native linker is 10650*** used, and then restart. 10651 10652_LT_EOF 10653 ;; 10654 *) 10655 # For security reasons, it is highly recommended that you always 10656 # use absolute paths for naming shared libraries, and exclude the 10657 # DT_RUNPATH tag from executables and libraries. But doing so 10658 # requires that you compile everything twice, which is a pain. 10659 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10660 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10662 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10663 else 10664 ld_shlibs=no 10665 fi 10666 ;; 10667 esac 10668 ;; 10669 10670 sunos4*) 10671 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10672 wlarc= 10673 hardcode_direct=yes 10674 hardcode_shlibpath_var=no 10675 ;; 10676 10677 *) 10678 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10679 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10680 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10681 else 10682 ld_shlibs=no 10683 fi 10684 ;; 10685 esac 10686 10687 if test "$ld_shlibs" = no; then 10688 runpath_var= 10689 hardcode_libdir_flag_spec= 10690 export_dynamic_flag_spec= 10691 whole_archive_flag_spec= 10692 fi 10693 else 10694 # PORTME fill in a description of your system's linker (not GNU ld) 10695 case $host_os in 10696 aix3*) 10697 allow_undefined_flag=unsupported 10698 always_export_symbols=yes 10699 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' 10700 # Note: this linker hardcodes the directories in LIBPATH if there 10701 # are no directories specified by -L. 10702 hardcode_minus_L=yes 10703 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10704 # Neither direct hardcoding nor static linking is supported with a 10705 # broken collect2. 10706 hardcode_direct=unsupported 10707 fi 10708 ;; 10709 10710 aix[4-9]*) 10711 if test "$host_cpu" = ia64; then 10712 # On IA64, the linker does run time linking by default, so we don't 10713 # have to do anything special. 10714 aix_use_runtimelinking=no 10715 exp_sym_flag='-Bexport' 10716 no_entry_flag="" 10717 else 10718 # If we're using GNU nm, then we don't want the "-C" option. 10719 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10720 # Also, AIX nm treats weak defined symbols like other global 10721 # defined symbols, whereas GNU nm marks them as "W". 10722 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10723 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' 10724 else 10725 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' 10726 fi 10727 aix_use_runtimelinking=no 10728 10729 # Test if we are trying to use run time linking or normal 10730 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10731 # need to do runtime linking. 10732 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10733 for ld_flag in $LDFLAGS; do 10734 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10735 aix_use_runtimelinking=yes 10736 break 10737 fi 10738 done 10739 ;; 10740 esac 10741 10742 exp_sym_flag='-bexport' 10743 no_entry_flag='-bnoentry' 10744 fi 10745 10746 # When large executables or shared objects are built, AIX ld can 10747 # have problems creating the table of contents. If linking a library 10748 # or program results in "error TOC overflow" add -mminimal-toc to 10749 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10750 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10751 10752 archive_cmds='' 10753 hardcode_direct=yes 10754 hardcode_direct_absolute=yes 10755 hardcode_libdir_separator=':' 10756 link_all_deplibs=yes 10757 file_list_spec='${wl}-f,' 10758 10759 if test "$GCC" = yes; then 10760 case $host_os in aix4.[012]|aix4.[012].*) 10761 # We only want to do this on AIX 4.2 and lower, the check 10762 # below for broken collect2 doesn't work under 4.3+ 10763 collect2name=`${CC} -print-prog-name=collect2` 10764 if test -f "$collect2name" && 10765 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10766 then 10767 # We have reworked collect2 10768 : 10769 else 10770 # We have old collect2 10771 hardcode_direct=unsupported 10772 # It fails to find uninstalled libraries when the uninstalled 10773 # path is not listed in the libpath. Setting hardcode_minus_L 10774 # to unsupported forces relinking 10775 hardcode_minus_L=yes 10776 hardcode_libdir_flag_spec='-L$libdir' 10777 hardcode_libdir_separator= 10778 fi 10779 ;; 10780 esac 10781 shared_flag='-shared' 10782 if test "$aix_use_runtimelinking" = yes; then 10783 shared_flag="$shared_flag "'${wl}-G' 10784 fi 10785 else 10786 # not using gcc 10787 if test "$host_cpu" = ia64; then 10788 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10789 # chokes on -Wl,-G. The following line is correct: 10790 shared_flag='-G' 10791 else 10792 if test "$aix_use_runtimelinking" = yes; then 10793 shared_flag='${wl}-G' 10794 else 10795 shared_flag='${wl}-bM:SRE' 10796 fi 10797 fi 10798 fi 10799 10800 export_dynamic_flag_spec='${wl}-bexpall' 10801 # It seems that -bexpall does not export symbols beginning with 10802 # underscore (_), so it is better to generate a list of symbols to export. 10803 always_export_symbols=yes 10804 if test "$aix_use_runtimelinking" = yes; then 10805 # Warning - without using the other runtime loading flags (-brtl), 10806 # -berok will link without error, but may produce a broken library. 10807 allow_undefined_flag='-berok' 10808 # Determine the default libpath from the value encoded in an 10809 # empty executable. 10810 if test "${lt_cv_aix_libpath+set}" = set; then 10811 aix_libpath=$lt_cv_aix_libpath 10812else 10813 if ${lt_cv_aix_libpath_+:} false; then : 10814 $as_echo_n "(cached) " >&6 10815else 10816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10817/* end confdefs.h. */ 10818 10819int 10820main () 10821{ 10822 10823 ; 10824 return 0; 10825} 10826_ACEOF 10827if ac_fn_c_try_link "$LINENO"; then : 10828 10829 lt_aix_libpath_sed=' 10830 /Import File Strings/,/^$/ { 10831 /^0/ { 10832 s/^0 *\([^ ]*\) *$/\1/ 10833 p 10834 } 10835 }' 10836 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10837 # Check for a 64-bit object if we didn't find anything. 10838 if test -z "$lt_cv_aix_libpath_"; then 10839 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10840 fi 10841fi 10842rm -f core conftest.err conftest.$ac_objext \ 10843 conftest$ac_exeext conftest.$ac_ext 10844 if test -z "$lt_cv_aix_libpath_"; then 10845 lt_cv_aix_libpath_="/usr/lib:/lib" 10846 fi 10847 10848fi 10849 10850 aix_libpath=$lt_cv_aix_libpath_ 10851fi 10852 10853 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10854 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" 10855 else 10856 if test "$host_cpu" = ia64; then 10857 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10858 allow_undefined_flag="-z nodefs" 10859 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" 10860 else 10861 # Determine the default libpath from the value encoded in an 10862 # empty executable. 10863 if test "${lt_cv_aix_libpath+set}" = set; then 10864 aix_libpath=$lt_cv_aix_libpath 10865else 10866 if ${lt_cv_aix_libpath_+:} false; then : 10867 $as_echo_n "(cached) " >&6 10868else 10869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10870/* end confdefs.h. */ 10871 10872int 10873main () 10874{ 10875 10876 ; 10877 return 0; 10878} 10879_ACEOF 10880if ac_fn_c_try_link "$LINENO"; then : 10881 10882 lt_aix_libpath_sed=' 10883 /Import File Strings/,/^$/ { 10884 /^0/ { 10885 s/^0 *\([^ ]*\) *$/\1/ 10886 p 10887 } 10888 }' 10889 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10890 # Check for a 64-bit object if we didn't find anything. 10891 if test -z "$lt_cv_aix_libpath_"; then 10892 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10893 fi 10894fi 10895rm -f core conftest.err conftest.$ac_objext \ 10896 conftest$ac_exeext conftest.$ac_ext 10897 if test -z "$lt_cv_aix_libpath_"; then 10898 lt_cv_aix_libpath_="/usr/lib:/lib" 10899 fi 10900 10901fi 10902 10903 aix_libpath=$lt_cv_aix_libpath_ 10904fi 10905 10906 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10907 # Warning - without using the other run time loading flags, 10908 # -berok will link without error, but may produce a broken library. 10909 no_undefined_flag=' ${wl}-bernotok' 10910 allow_undefined_flag=' ${wl}-berok' 10911 if test "$with_gnu_ld" = yes; then 10912 # We only use this code for GNU lds that support --whole-archive. 10913 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10914 else 10915 # Exported symbols can be pulled into shared objects from archives 10916 whole_archive_flag_spec='$convenience' 10917 fi 10918 archive_cmds_need_lc=yes 10919 # This is similar to how AIX traditionally builds its shared libraries. 10920 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' 10921 fi 10922 fi 10923 ;; 10924 10925 amigaos*) 10926 case $host_cpu in 10927 powerpc) 10928 # see comment about AmigaOS4 .so support 10929 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10930 archive_expsym_cmds='' 10931 ;; 10932 m68k) 10933 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)' 10934 hardcode_libdir_flag_spec='-L$libdir' 10935 hardcode_minus_L=yes 10936 ;; 10937 esac 10938 ;; 10939 10940 bsdi[45]*) 10941 export_dynamic_flag_spec=-rdynamic 10942 ;; 10943 10944 cygwin* | mingw* | pw32* | cegcc*) 10945 # When not using gcc, we currently assume that we are using 10946 # Microsoft Visual C++. 10947 # hardcode_libdir_flag_spec is actually meaningless, as there is 10948 # no search path for DLLs. 10949 case $cc_basename in 10950 cl*) 10951 # Native MSVC 10952 hardcode_libdir_flag_spec=' ' 10953 allow_undefined_flag=unsupported 10954 always_export_symbols=yes 10955 file_list_spec='@' 10956 # Tell ltmain to make .lib files, not .a files. 10957 libext=lib 10958 # Tell ltmain to make .dll files, not .so files. 10959 shrext_cmds=".dll" 10960 # FIXME: Setting linknames here is a bad hack. 10961 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 10962 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10963 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 10964 else 10965 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 10966 fi~ 10967 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10968 linknames=' 10969 # The linker will not automatically build a static lib if we build a DLL. 10970 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10971 enable_shared_with_static_runtimes=yes 10972 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10973 # Don't use ranlib 10974 old_postinstall_cmds='chmod 644 $oldlib' 10975 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10976 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10977 case $lt_outputfile in 10978 *.exe|*.EXE) ;; 10979 *) 10980 lt_outputfile="$lt_outputfile.exe" 10981 lt_tool_outputfile="$lt_tool_outputfile.exe" 10982 ;; 10983 esac~ 10984 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 10985 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10986 $RM "$lt_outputfile.manifest"; 10987 fi' 10988 ;; 10989 *) 10990 # Assume MSVC wrapper 10991 hardcode_libdir_flag_spec=' ' 10992 allow_undefined_flag=unsupported 10993 # Tell ltmain to make .lib files, not .a files. 10994 libext=lib 10995 # Tell ltmain to make .dll files, not .so files. 10996 shrext_cmds=".dll" 10997 # FIXME: Setting linknames here is a bad hack. 10998 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10999 # The linker will automatically build a .lib file if we build a DLL. 11000 old_archive_from_new_cmds='true' 11001 # FIXME: Should let the user specify the lib program. 11002 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11003 enable_shared_with_static_runtimes=yes 11004 ;; 11005 esac 11006 ;; 11007 11008 darwin* | rhapsody*) 11009 11010 11011 archive_cmds_need_lc=no 11012 hardcode_direct=no 11013 hardcode_automatic=yes 11014 hardcode_shlibpath_var=unsupported 11015 if test "$lt_cv_ld_force_load" = "yes"; then 11016 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\"`' 11017 else 11018 whole_archive_flag_spec='' 11019 fi 11020 link_all_deplibs=yes 11021 allow_undefined_flag="$_lt_dar_allow_undefined" 11022 case $cc_basename in 11023 ifort*) _lt_dar_can_shared=yes ;; 11024 *) _lt_dar_can_shared=$GCC ;; 11025 esac 11026 if test "$_lt_dar_can_shared" = "yes"; then 11027 output_verbose_link_cmd=func_echo_all 11028 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11029 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11030 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}" 11031 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}" 11032 11033 else 11034 ld_shlibs=no 11035 fi 11036 11037 ;; 11038 11039 dgux*) 11040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11041 hardcode_libdir_flag_spec='-L$libdir' 11042 hardcode_shlibpath_var=no 11043 ;; 11044 11045 freebsd1*) 11046 ld_shlibs=no 11047 ;; 11048 11049 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11050 # support. Future versions do this automatically, but an explicit c++rt0.o 11051 # does not break anything, and helps significantly (at the cost of a little 11052 # extra space). 11053 freebsd2.2*) 11054 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11055 hardcode_libdir_flag_spec='-R$libdir' 11056 hardcode_direct=yes 11057 hardcode_shlibpath_var=no 11058 ;; 11059 11060 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11061 freebsd2*) 11062 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11063 hardcode_direct=yes 11064 hardcode_minus_L=yes 11065 hardcode_shlibpath_var=no 11066 ;; 11067 11068 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11069 freebsd* | dragonfly*) 11070 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11071 hardcode_libdir_flag_spec='-R$libdir' 11072 hardcode_direct=yes 11073 hardcode_shlibpath_var=no 11074 ;; 11075 11076 hpux9*) 11077 if test "$GCC" = yes; then 11078 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' 11079 else 11080 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' 11081 fi 11082 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11083 hardcode_libdir_separator=: 11084 hardcode_direct=yes 11085 11086 # hardcode_minus_L: Not really in the search PATH, 11087 # but as the default location of the library. 11088 hardcode_minus_L=yes 11089 export_dynamic_flag_spec='${wl}-E' 11090 ;; 11091 11092 hpux10*) 11093 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11094 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11095 else 11096 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11097 fi 11098 if test "$with_gnu_ld" = no; then 11099 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11100 hardcode_libdir_flag_spec_ld='+b $libdir' 11101 hardcode_libdir_separator=: 11102 hardcode_direct=yes 11103 hardcode_direct_absolute=yes 11104 export_dynamic_flag_spec='${wl}-E' 11105 # hardcode_minus_L: Not really in the search PATH, 11106 # but as the default location of the library. 11107 hardcode_minus_L=yes 11108 fi 11109 ;; 11110 11111 hpux11*) 11112 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11113 case $host_cpu in 11114 hppa*64*) 11115 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11116 ;; 11117 ia64*) 11118 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11119 ;; 11120 *) 11121 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11122 ;; 11123 esac 11124 else 11125 case $host_cpu in 11126 hppa*64*) 11127 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11128 ;; 11129 ia64*) 11130 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11131 ;; 11132 *) 11133 11134 # Older versions of the 11.00 compiler do not understand -b yet 11135 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11137$as_echo_n "checking if $CC understands -b... " >&6; } 11138if ${lt_cv_prog_compiler__b+:} false; then : 11139 $as_echo_n "(cached) " >&6 11140else 11141 lt_cv_prog_compiler__b=no 11142 save_LDFLAGS="$LDFLAGS" 11143 LDFLAGS="$LDFLAGS -b" 11144 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11145 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11146 # The linker can only warn and ignore the option if not recognized 11147 # So say no if there are warnings 11148 if test -s conftest.err; then 11149 # Append any errors to the config.log. 11150 cat conftest.err 1>&5 11151 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11153 if diff conftest.exp conftest.er2 >/dev/null; then 11154 lt_cv_prog_compiler__b=yes 11155 fi 11156 else 11157 lt_cv_prog_compiler__b=yes 11158 fi 11159 fi 11160 $RM -r conftest* 11161 LDFLAGS="$save_LDFLAGS" 11162 11163fi 11164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11165$as_echo "$lt_cv_prog_compiler__b" >&6; } 11166 11167if test x"$lt_cv_prog_compiler__b" = xyes; then 11168 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11169else 11170 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11171fi 11172 11173 ;; 11174 esac 11175 fi 11176 if test "$with_gnu_ld" = no; then 11177 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11178 hardcode_libdir_separator=: 11179 11180 case $host_cpu in 11181 hppa*64*|ia64*) 11182 hardcode_direct=no 11183 hardcode_shlibpath_var=no 11184 ;; 11185 *) 11186 hardcode_direct=yes 11187 hardcode_direct_absolute=yes 11188 export_dynamic_flag_spec='${wl}-E' 11189 11190 # hardcode_minus_L: Not really in the search PATH, 11191 # but as the default location of the library. 11192 hardcode_minus_L=yes 11193 ;; 11194 esac 11195 fi 11196 ;; 11197 11198 irix5* | irix6* | nonstopux*) 11199 if test "$GCC" = yes; then 11200 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' 11201 # Try to use the -exported_symbol ld option, if it does not 11202 # work, assume that -exports_file does not work either and 11203 # implicitly export all symbols. 11204 # This should be the same for all languages, so no per-tag cache variable. 11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11206$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11207if ${lt_cv_irix_exported_symbol+:} false; then : 11208 $as_echo_n "(cached) " >&6 11209else 11210 save_LDFLAGS="$LDFLAGS" 11211 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 11212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11213/* end confdefs.h. */ 11214int foo (void) { return 0; } 11215_ACEOF 11216if ac_fn_c_try_link "$LINENO"; then : 11217 lt_cv_irix_exported_symbol=yes 11218else 11219 lt_cv_irix_exported_symbol=no 11220fi 11221rm -f core conftest.err conftest.$ac_objext \ 11222 conftest$ac_exeext conftest.$ac_ext 11223 LDFLAGS="$save_LDFLAGS" 11224fi 11225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11226$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11227 if test "$lt_cv_irix_exported_symbol" = yes; then 11228 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' 11229 fi 11230 else 11231 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' 11232 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' 11233 fi 11234 archive_cmds_need_lc='no' 11235 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11236 hardcode_libdir_separator=: 11237 inherit_rpath=yes 11238 link_all_deplibs=yes 11239 ;; 11240 11241 netbsd*) 11242 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11243 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11244 else 11245 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11246 fi 11247 hardcode_libdir_flag_spec='-R$libdir' 11248 hardcode_direct=yes 11249 hardcode_shlibpath_var=no 11250 ;; 11251 11252 newsos6) 11253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11254 hardcode_direct=yes 11255 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11256 hardcode_libdir_separator=: 11257 hardcode_shlibpath_var=no 11258 ;; 11259 11260 *nto* | *qnx*) 11261 ;; 11262 11263 openbsd*) 11264 if test -f /usr/libexec/ld.so; then 11265 hardcode_direct=yes 11266 hardcode_shlibpath_var=no 11267 hardcode_direct_absolute=yes 11268 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11269 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11270 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 11271 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11272 export_dynamic_flag_spec='${wl}-E' 11273 else 11274 case $host_os in 11275 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 11276 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11277 hardcode_libdir_flag_spec='-R$libdir' 11278 ;; 11279 *) 11280 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11281 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11282 ;; 11283 esac 11284 fi 11285 else 11286 ld_shlibs=no 11287 fi 11288 ;; 11289 11290 os2*) 11291 hardcode_libdir_flag_spec='-L$libdir' 11292 hardcode_minus_L=yes 11293 allow_undefined_flag=unsupported 11294 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' 11295 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11296 ;; 11297 11298 osf3*) 11299 if test "$GCC" = yes; then 11300 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11301 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' 11302 else 11303 allow_undefined_flag=' -expect_unresolved \*' 11304 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' 11305 fi 11306 archive_cmds_need_lc='no' 11307 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11308 hardcode_libdir_separator=: 11309 ;; 11310 11311 osf4* | osf5*) # as osf3* with the addition of -msym flag 11312 if test "$GCC" = yes; then 11313 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11314 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' 11315 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11316 else 11317 allow_undefined_flag=' -expect_unresolved \*' 11318 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' 11319 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~ 11320 $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' 11321 11322 # Both c and cxx compiler support -rpath directly 11323 hardcode_libdir_flag_spec='-rpath $libdir' 11324 fi 11325 archive_cmds_need_lc='no' 11326 hardcode_libdir_separator=: 11327 ;; 11328 11329 solaris*) 11330 no_undefined_flag=' -z defs' 11331 if test "$GCC" = yes; then 11332 wlarc='${wl}' 11333 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11334 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11335 $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' 11336 else 11337 case `$CC -V 2>&1` in 11338 *"Compilers 5.0"*) 11339 wlarc='' 11340 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 11341 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11342 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11343 ;; 11344 *) 11345 wlarc='${wl}' 11346 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11347 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11348 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11349 ;; 11350 esac 11351 fi 11352 hardcode_libdir_flag_spec='-R$libdir' 11353 hardcode_shlibpath_var=no 11354 case $host_os in 11355 solaris2.[0-5] | solaris2.[0-5].*) ;; 11356 *) 11357 # The compiler driver will combine and reorder linker options, 11358 # but understands `-z linker_flag'. GCC discards it without `$wl', 11359 # but is careful enough not to reorder. 11360 # Supported since Solaris 2.6 (maybe 2.5.1?) 11361 if test "$GCC" = yes; then 11362 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11363 else 11364 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11365 fi 11366 ;; 11367 esac 11368 link_all_deplibs=yes 11369 ;; 11370 11371 sunos4*) 11372 if test "x$host_vendor" = xsequent; then 11373 # Use $CC to link under sequent, because it throws in some extra .o 11374 # files that make .init and .fini sections work. 11375 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11376 else 11377 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11378 fi 11379 hardcode_libdir_flag_spec='-L$libdir' 11380 hardcode_direct=yes 11381 hardcode_minus_L=yes 11382 hardcode_shlibpath_var=no 11383 ;; 11384 11385 sysv4) 11386 case $host_vendor in 11387 sni) 11388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11389 hardcode_direct=yes # is this really true??? 11390 ;; 11391 siemens) 11392 ## LD is ld it makes a PLAMLIB 11393 ## CC just makes a GrossModule. 11394 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11395 reload_cmds='$CC -r -o $output$reload_objs' 11396 hardcode_direct=no 11397 ;; 11398 motorola) 11399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11400 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11401 ;; 11402 esac 11403 runpath_var='LD_RUN_PATH' 11404 hardcode_shlibpath_var=no 11405 ;; 11406 11407 sysv4.3*) 11408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11409 hardcode_shlibpath_var=no 11410 export_dynamic_flag_spec='-Bexport' 11411 ;; 11412 11413 sysv4*MP*) 11414 if test -d /usr/nec; then 11415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11416 hardcode_shlibpath_var=no 11417 runpath_var=LD_RUN_PATH 11418 hardcode_runpath_var=yes 11419 ld_shlibs=yes 11420 fi 11421 ;; 11422 11423 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11424 no_undefined_flag='${wl}-z,text' 11425 archive_cmds_need_lc=no 11426 hardcode_shlibpath_var=no 11427 runpath_var='LD_RUN_PATH' 11428 11429 if test "$GCC" = yes; then 11430 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11431 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11432 else 11433 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11434 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11435 fi 11436 ;; 11437 11438 sysv5* | sco3.2v5* | sco5v6*) 11439 # Note: We can NOT use -z defs as we might desire, because we do not 11440 # link with -lc, and that would cause any symbols used from libc to 11441 # always be unresolved, which means just about no library would 11442 # ever link correctly. If we're not using GNU ld we use -z text 11443 # though, which does catch some bad symbols but isn't as heavy-handed 11444 # as -z defs. 11445 no_undefined_flag='${wl}-z,text' 11446 allow_undefined_flag='${wl}-z,nodefs' 11447 archive_cmds_need_lc=no 11448 hardcode_shlibpath_var=no 11449 hardcode_libdir_flag_spec='${wl}-R,$libdir' 11450 hardcode_libdir_separator=':' 11451 link_all_deplibs=yes 11452 export_dynamic_flag_spec='${wl}-Bexport' 11453 runpath_var='LD_RUN_PATH' 11454 11455 if test "$GCC" = yes; then 11456 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11457 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11458 else 11459 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11460 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11461 fi 11462 ;; 11463 11464 uts4*) 11465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11466 hardcode_libdir_flag_spec='-L$libdir' 11467 hardcode_shlibpath_var=no 11468 ;; 11469 11470 *) 11471 ld_shlibs=no 11472 ;; 11473 esac 11474 11475 if test x$host_vendor = xsni; then 11476 case $host in 11477 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11478 export_dynamic_flag_spec='${wl}-Blargedynsym' 11479 ;; 11480 esac 11481 fi 11482 fi 11483 11484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11485$as_echo "$ld_shlibs" >&6; } 11486test "$ld_shlibs" = no && can_build_shared=no 11487 11488with_gnu_ld=$with_gnu_ld 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504# 11505# Do we need to explicitly link libc? 11506# 11507case "x$archive_cmds_need_lc" in 11508x|xyes) 11509 # Assume -lc should be added 11510 archive_cmds_need_lc=yes 11511 11512 if test "$enable_shared" = yes && test "$GCC" = yes; then 11513 case $archive_cmds in 11514 *'~'*) 11515 # FIXME: we may have to deal with multi-command sequences. 11516 ;; 11517 '$CC '*) 11518 # Test whether the compiler implicitly links with -lc since on some 11519 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11520 # to ld, don't add -lc before -lgcc. 11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11522$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11523if ${lt_cv_archive_cmds_need_lc+:} false; then : 11524 $as_echo_n "(cached) " >&6 11525else 11526 $RM conftest* 11527 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11528 11529 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11530 (eval $ac_compile) 2>&5 11531 ac_status=$? 11532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11533 test $ac_status = 0; } 2>conftest.err; then 11534 soname=conftest 11535 lib=conftest 11536 libobjs=conftest.$ac_objext 11537 deplibs= 11538 wl=$lt_prog_compiler_wl 11539 pic_flag=$lt_prog_compiler_pic 11540 compiler_flags=-v 11541 linker_flags=-v 11542 verstring= 11543 output_objdir=. 11544 libname=conftest 11545 lt_save_allow_undefined_flag=$allow_undefined_flag 11546 allow_undefined_flag= 11547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11548 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11549 ac_status=$? 11550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11551 test $ac_status = 0; } 11552 then 11553 lt_cv_archive_cmds_need_lc=no 11554 else 11555 lt_cv_archive_cmds_need_lc=yes 11556 fi 11557 allow_undefined_flag=$lt_save_allow_undefined_flag 11558 else 11559 cat conftest.err 1>&5 11560 fi 11561 $RM conftest* 11562 11563fi 11564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11565$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11566 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11567 ;; 11568 esac 11569 fi 11570 ;; 11571esac 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11730$as_echo_n "checking dynamic linker characteristics... " >&6; } 11731 11732if test "$GCC" = yes; then 11733 case $host_os in 11734 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11735 *) lt_awk_arg="/^libraries:/" ;; 11736 esac 11737 case $host_os in 11738 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 11739 *) lt_sed_strip_eq="s,=/,/,g" ;; 11740 esac 11741 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11742 case $lt_search_path_spec in 11743 *\;*) 11744 # if the path contains ";" then we assume it to be the separator 11745 # otherwise default to the standard path separator (i.e. ":") - it is 11746 # assumed that no part of a normal pathname contains ";" but that should 11747 # okay in the real world where ";" in dirpaths is itself problematic. 11748 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11749 ;; 11750 *) 11751 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11752 ;; 11753 esac 11754 # Ok, now we have the path, separated by spaces, we can step through it 11755 # and add multilib dir if necessary. 11756 lt_tmp_lt_search_path_spec= 11757 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11758 for lt_sys_path in $lt_search_path_spec; do 11759 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11760 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11761 else 11762 test -d "$lt_sys_path" && \ 11763 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11764 fi 11765 done 11766 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11767BEGIN {RS=" "; FS="/|\n";} { 11768 lt_foo=""; 11769 lt_count=0; 11770 for (lt_i = NF; lt_i > 0; lt_i--) { 11771 if ($lt_i != "" && $lt_i != ".") { 11772 if ($lt_i == "..") { 11773 lt_count++; 11774 } else { 11775 if (lt_count == 0) { 11776 lt_foo="/" $lt_i lt_foo; 11777 } else { 11778 lt_count--; 11779 } 11780 } 11781 } 11782 } 11783 if (lt_foo != "") { lt_freq[lt_foo]++; } 11784 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11785}'` 11786 # AWK program above erroneously prepends '/' to C:/dos/paths 11787 # for these hosts. 11788 case $host_os in 11789 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11790 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 11791 esac 11792 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11793else 11794 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11795fi 11796library_names_spec= 11797libname_spec='lib$name' 11798soname_spec= 11799shrext_cmds=".so" 11800postinstall_cmds= 11801postuninstall_cmds= 11802finish_cmds= 11803finish_eval= 11804shlibpath_var= 11805shlibpath_overrides_runpath=unknown 11806version_type=none 11807dynamic_linker="$host_os ld.so" 11808sys_lib_dlsearch_path_spec="/lib /usr/lib" 11809need_lib_prefix=unknown 11810hardcode_into_libs=no 11811 11812# when you set need_version to no, make sure it does not cause -set_version 11813# flags to be left without arguments 11814need_version=unknown 11815 11816case $host_os in 11817aix3*) 11818 version_type=linux 11819 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11820 shlibpath_var=LIBPATH 11821 11822 # AIX 3 has no versioning support, so we append a major version to the name. 11823 soname_spec='${libname}${release}${shared_ext}$major' 11824 ;; 11825 11826aix[4-9]*) 11827 version_type=linux 11828 need_lib_prefix=no 11829 need_version=no 11830 hardcode_into_libs=yes 11831 if test "$host_cpu" = ia64; then 11832 # AIX 5 supports IA64 11833 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11834 shlibpath_var=LD_LIBRARY_PATH 11835 else 11836 # With GCC up to 2.95.x, collect2 would create an import file 11837 # for dependence libraries. The import file would start with 11838 # the line `#! .'. This would cause the generated library to 11839 # depend on `.', always an invalid library. This was fixed in 11840 # development snapshots of GCC prior to 3.0. 11841 case $host_os in 11842 aix4 | aix4.[01] | aix4.[01].*) 11843 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11844 echo ' yes ' 11845 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11846 : 11847 else 11848 can_build_shared=no 11849 fi 11850 ;; 11851 esac 11852 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11853 # soname into executable. Probably we can add versioning support to 11854 # collect2, so additional links can be useful in future. 11855 if test "$aix_use_runtimelinking" = yes; then 11856 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11857 # instead of lib<name>.a to let people know that these are not 11858 # typical AIX shared libraries. 11859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11860 else 11861 # We preserve .a as extension for shared libraries through AIX4.2 11862 # and later when we are not doing run time linking. 11863 library_names_spec='${libname}${release}.a $libname.a' 11864 soname_spec='${libname}${release}${shared_ext}$major' 11865 fi 11866 shlibpath_var=LIBPATH 11867 fi 11868 ;; 11869 11870amigaos*) 11871 case $host_cpu in 11872 powerpc) 11873 # Since July 2007 AmigaOS4 officially supports .so libraries. 11874 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11876 ;; 11877 m68k) 11878 library_names_spec='$libname.ixlibrary $libname.a' 11879 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11880 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' 11881 ;; 11882 esac 11883 ;; 11884 11885beos*) 11886 library_names_spec='${libname}${shared_ext}' 11887 dynamic_linker="$host_os ld.so" 11888 shlibpath_var=LIBRARY_PATH 11889 ;; 11890 11891bsdi[45]*) 11892 version_type=linux 11893 need_version=no 11894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11895 soname_spec='${libname}${release}${shared_ext}$major' 11896 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11897 shlibpath_var=LD_LIBRARY_PATH 11898 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11899 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11900 # the default ld.so.conf also contains /usr/contrib/lib and 11901 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11902 # libtool to hard-code these into programs 11903 ;; 11904 11905cygwin* | mingw* | pw32* | cegcc*) 11906 version_type=windows 11907 shrext_cmds=".dll" 11908 need_version=no 11909 need_lib_prefix=no 11910 11911 case $GCC,$cc_basename in 11912 yes,*) 11913 # gcc 11914 library_names_spec='$libname.dll.a' 11915 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11916 postinstall_cmds='base_file=`basename \${file}`~ 11917 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11918 dldir=$destdir/`dirname \$dlpath`~ 11919 test -d \$dldir || mkdir -p \$dldir~ 11920 $install_prog $dir/$dlname \$dldir/$dlname~ 11921 chmod a+x \$dldir/$dlname~ 11922 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11923 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11924 fi' 11925 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11926 dlpath=$dir/\$dldll~ 11927 $RM \$dlpath' 11928 shlibpath_overrides_runpath=yes 11929 11930 case $host_os in 11931 cygwin*) 11932 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11933 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11934 11935 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11936 ;; 11937 mingw* | cegcc*) 11938 # MinGW DLLs use traditional 'lib' prefix 11939 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11940 ;; 11941 pw32*) 11942 # pw32 DLLs use 'pw' prefix rather than 'lib' 11943 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11944 ;; 11945 esac 11946 dynamic_linker='Win32 ld.exe' 11947 ;; 11948 11949 *,cl*) 11950 # Native MSVC 11951 libname_spec='$name' 11952 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11953 library_names_spec='${libname}.dll.lib' 11954 11955 case $build_os in 11956 mingw*) 11957 sys_lib_search_path_spec= 11958 lt_save_ifs=$IFS 11959 IFS=';' 11960 for lt_path in $LIB 11961 do 11962 IFS=$lt_save_ifs 11963 # Let DOS variable expansion print the short 8.3 style file name. 11964 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11965 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11966 done 11967 IFS=$lt_save_ifs 11968 # Convert to MSYS style. 11969 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11970 ;; 11971 cygwin*) 11972 # Convert to unix form, then to dos form, then back to unix form 11973 # but this time dos style (no spaces!) so that the unix form looks 11974 # like /cygdrive/c/PROGRA~1:/cygdr... 11975 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11976 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11977 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11978 ;; 11979 *) 11980 sys_lib_search_path_spec="$LIB" 11981 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11982 # It is most probably a Windows format PATH. 11983 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11984 else 11985 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11986 fi 11987 # FIXME: find the short name or the path components, as spaces are 11988 # common. (e.g. "Program Files" -> "PROGRA~1") 11989 ;; 11990 esac 11991 11992 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11993 postinstall_cmds='base_file=`basename \${file}`~ 11994 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11995 dldir=$destdir/`dirname \$dlpath`~ 11996 test -d \$dldir || mkdir -p \$dldir~ 11997 $install_prog $dir/$dlname \$dldir/$dlname' 11998 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11999 dlpath=$dir/\$dldll~ 12000 $RM \$dlpath' 12001 shlibpath_overrides_runpath=yes 12002 dynamic_linker='Win32 link.exe' 12003 ;; 12004 12005 *) 12006 # Assume MSVC wrapper 12007 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12008 dynamic_linker='Win32 ld.exe' 12009 ;; 12010 esac 12011 # FIXME: first we should search . and the directory the executable is in 12012 shlibpath_var=PATH 12013 ;; 12014 12015darwin* | rhapsody*) 12016 dynamic_linker="$host_os dyld" 12017 version_type=darwin 12018 need_lib_prefix=no 12019 need_version=no 12020 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12021 soname_spec='${libname}${release}${major}$shared_ext' 12022 shlibpath_overrides_runpath=yes 12023 shlibpath_var=DYLD_LIBRARY_PATH 12024 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12025 12026 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12027 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12028 ;; 12029 12030dgux*) 12031 version_type=linux 12032 need_lib_prefix=no 12033 need_version=no 12034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12035 soname_spec='${libname}${release}${shared_ext}$major' 12036 shlibpath_var=LD_LIBRARY_PATH 12037 ;; 12038 12039freebsd1*) 12040 dynamic_linker=no 12041 ;; 12042 12043freebsd* | dragonfly*) 12044 # DragonFly does not have aout. When/if they implement a new 12045 # versioning mechanism, adjust this. 12046 if test -x /usr/bin/objformat; then 12047 objformat=`/usr/bin/objformat` 12048 else 12049 case $host_os in 12050 freebsd[123]*) objformat=aout ;; 12051 *) objformat=elf ;; 12052 esac 12053 fi 12054 version_type=freebsd-$objformat 12055 case $version_type in 12056 freebsd-elf*) 12057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12058 need_version=no 12059 need_lib_prefix=no 12060 ;; 12061 freebsd-*) 12062 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12063 need_version=yes 12064 ;; 12065 esac 12066 shlibpath_var=LD_LIBRARY_PATH 12067 case $host_os in 12068 freebsd2*) 12069 shlibpath_overrides_runpath=yes 12070 ;; 12071 freebsd3.[01]* | freebsdelf3.[01]*) 12072 shlibpath_overrides_runpath=yes 12073 hardcode_into_libs=yes 12074 ;; 12075 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12076 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12077 shlibpath_overrides_runpath=no 12078 hardcode_into_libs=yes 12079 ;; 12080 *) # from 4.6 on, and DragonFly 12081 shlibpath_overrides_runpath=yes 12082 hardcode_into_libs=yes 12083 ;; 12084 esac 12085 ;; 12086 12087gnu*) 12088 version_type=linux 12089 need_lib_prefix=no 12090 need_version=no 12091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12092 soname_spec='${libname}${release}${shared_ext}$major' 12093 shlibpath_var=LD_LIBRARY_PATH 12094 hardcode_into_libs=yes 12095 ;; 12096 12097haiku*) 12098 version_type=linux 12099 need_lib_prefix=no 12100 need_version=no 12101 dynamic_linker="$host_os runtime_loader" 12102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12103 soname_spec='${libname}${release}${shared_ext}$major' 12104 shlibpath_var=LIBRARY_PATH 12105 shlibpath_overrides_runpath=yes 12106 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12107 hardcode_into_libs=yes 12108 ;; 12109 12110hpux9* | hpux10* | hpux11*) 12111 # Give a soname corresponding to the major version so that dld.sl refuses to 12112 # link against other versions. 12113 version_type=sunos 12114 need_lib_prefix=no 12115 need_version=no 12116 case $host_cpu in 12117 ia64*) 12118 shrext_cmds='.so' 12119 hardcode_into_libs=yes 12120 dynamic_linker="$host_os dld.so" 12121 shlibpath_var=LD_LIBRARY_PATH 12122 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12124 soname_spec='${libname}${release}${shared_ext}$major' 12125 if test "X$HPUX_IA64_MODE" = X32; then 12126 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12127 else 12128 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12129 fi 12130 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12131 ;; 12132 hppa*64*) 12133 shrext_cmds='.sl' 12134 hardcode_into_libs=yes 12135 dynamic_linker="$host_os dld.sl" 12136 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12137 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12139 soname_spec='${libname}${release}${shared_ext}$major' 12140 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12141 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12142 ;; 12143 *) 12144 shrext_cmds='.sl' 12145 dynamic_linker="$host_os dld.sl" 12146 shlibpath_var=SHLIB_PATH 12147 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12149 soname_spec='${libname}${release}${shared_ext}$major' 12150 ;; 12151 esac 12152 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12153 postinstall_cmds='chmod 555 $lib' 12154 # or fails outright, so override atomically: 12155 install_override_mode=555 12156 ;; 12157 12158interix[3-9]*) 12159 version_type=linux 12160 need_lib_prefix=no 12161 need_version=no 12162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12163 soname_spec='${libname}${release}${shared_ext}$major' 12164 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12165 shlibpath_var=LD_LIBRARY_PATH 12166 shlibpath_overrides_runpath=no 12167 hardcode_into_libs=yes 12168 ;; 12169 12170irix5* | irix6* | nonstopux*) 12171 case $host_os in 12172 nonstopux*) version_type=nonstopux ;; 12173 *) 12174 if test "$lt_cv_prog_gnu_ld" = yes; then 12175 version_type=linux 12176 else 12177 version_type=irix 12178 fi ;; 12179 esac 12180 need_lib_prefix=no 12181 need_version=no 12182 soname_spec='${libname}${release}${shared_ext}$major' 12183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12184 case $host_os in 12185 irix5* | nonstopux*) 12186 libsuff= shlibsuff= 12187 ;; 12188 *) 12189 case $LD in # libtool.m4 will add one of these switches to LD 12190 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12191 libsuff= shlibsuff= libmagic=32-bit;; 12192 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12193 libsuff=32 shlibsuff=N32 libmagic=N32;; 12194 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12195 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12196 *) libsuff= shlibsuff= libmagic=never-match;; 12197 esac 12198 ;; 12199 esac 12200 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12201 shlibpath_overrides_runpath=no 12202 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12203 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12204 hardcode_into_libs=yes 12205 ;; 12206 12207# No shared lib support for Linux oldld, aout, or coff. 12208linux*oldld* | linux*aout* | linux*coff*) 12209 dynamic_linker=no 12210 ;; 12211 12212# This must be Linux ELF. 12213linux* | k*bsd*-gnu | kopensolaris*-gnu) 12214 version_type=linux 12215 need_lib_prefix=no 12216 need_version=no 12217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12218 soname_spec='${libname}${release}${shared_ext}$major' 12219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12220 shlibpath_var=LD_LIBRARY_PATH 12221 shlibpath_overrides_runpath=no 12222 12223 # Some binutils ld are patched to set DT_RUNPATH 12224 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12225 $as_echo_n "(cached) " >&6 12226else 12227 lt_cv_shlibpath_overrides_runpath=no 12228 save_LDFLAGS=$LDFLAGS 12229 save_libdir=$libdir 12230 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12231 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12233/* end confdefs.h. */ 12234 12235int 12236main () 12237{ 12238 12239 ; 12240 return 0; 12241} 12242_ACEOF 12243if ac_fn_c_try_link "$LINENO"; then : 12244 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12245 lt_cv_shlibpath_overrides_runpath=yes 12246fi 12247fi 12248rm -f core conftest.err conftest.$ac_objext \ 12249 conftest$ac_exeext conftest.$ac_ext 12250 LDFLAGS=$save_LDFLAGS 12251 libdir=$save_libdir 12252 12253fi 12254 12255 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12256 12257 # This implies no fast_install, which is unacceptable. 12258 # Some rework will be needed to allow for fast_install 12259 # before this can be enabled. 12260 hardcode_into_libs=yes 12261 12262 # Add ABI-specific directories to the system library path. 12263 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 12264 12265 # Append ld.so.conf contents to the search path 12266 if test -f /etc/ld.so.conf; then 12267 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' ' '` 12268 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 12269 12270 fi 12271 12272 # We used to test for /lib/ld.so.1 and disable shared libraries on 12273 # powerpc, because MkLinux only supported shared libraries with the 12274 # GNU dynamic linker. Since this was broken with cross compilers, 12275 # most powerpc-linux boxes support dynamic linking these days and 12276 # people can always --disable-shared, the test was removed, and we 12277 # assume the GNU/Linux dynamic linker is in use. 12278 dynamic_linker='GNU/Linux ld.so' 12279 ;; 12280 12281netbsd*) 12282 version_type=sunos 12283 need_lib_prefix=no 12284 need_version=no 12285 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12288 dynamic_linker='NetBSD (a.out) ld.so' 12289 else 12290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12291 soname_spec='${libname}${release}${shared_ext}$major' 12292 dynamic_linker='NetBSD ld.elf_so' 12293 fi 12294 shlibpath_var=LD_LIBRARY_PATH 12295 shlibpath_overrides_runpath=yes 12296 hardcode_into_libs=yes 12297 ;; 12298 12299newsos6) 12300 version_type=linux 12301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12302 shlibpath_var=LD_LIBRARY_PATH 12303 shlibpath_overrides_runpath=yes 12304 ;; 12305 12306*nto* | *qnx*) 12307 version_type=qnx 12308 need_lib_prefix=no 12309 need_version=no 12310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12311 soname_spec='${libname}${release}${shared_ext}$major' 12312 shlibpath_var=LD_LIBRARY_PATH 12313 shlibpath_overrides_runpath=no 12314 hardcode_into_libs=yes 12315 dynamic_linker='ldqnx.so' 12316 ;; 12317 12318openbsd*) 12319 version_type=sunos 12320 sys_lib_dlsearch_path_spec="/usr/lib" 12321 need_lib_prefix=no 12322 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12323 case $host_os in 12324 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12325 *) need_version=no ;; 12326 esac 12327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12329 shlibpath_var=LD_LIBRARY_PATH 12330 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12331 case $host_os in 12332 openbsd2.[89] | openbsd2.[89].*) 12333 shlibpath_overrides_runpath=no 12334 ;; 12335 *) 12336 shlibpath_overrides_runpath=yes 12337 ;; 12338 esac 12339 else 12340 shlibpath_overrides_runpath=yes 12341 fi 12342 ;; 12343 12344os2*) 12345 libname_spec='$name' 12346 shrext_cmds=".dll" 12347 need_lib_prefix=no 12348 library_names_spec='$libname${shared_ext} $libname.a' 12349 dynamic_linker='OS/2 ld.exe' 12350 shlibpath_var=LIBPATH 12351 ;; 12352 12353osf3* | osf4* | osf5*) 12354 version_type=osf 12355 need_lib_prefix=no 12356 need_version=no 12357 soname_spec='${libname}${release}${shared_ext}$major' 12358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12359 shlibpath_var=LD_LIBRARY_PATH 12360 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12361 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12362 ;; 12363 12364rdos*) 12365 dynamic_linker=no 12366 ;; 12367 12368solaris*) 12369 version_type=linux 12370 need_lib_prefix=no 12371 need_version=no 12372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12373 soname_spec='${libname}${release}${shared_ext}$major' 12374 shlibpath_var=LD_LIBRARY_PATH 12375 shlibpath_overrides_runpath=yes 12376 hardcode_into_libs=yes 12377 # ldd complains unless libraries are executable 12378 postinstall_cmds='chmod +x $lib' 12379 ;; 12380 12381sunos4*) 12382 version_type=sunos 12383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12384 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12385 shlibpath_var=LD_LIBRARY_PATH 12386 shlibpath_overrides_runpath=yes 12387 if test "$with_gnu_ld" = yes; then 12388 need_lib_prefix=no 12389 fi 12390 need_version=yes 12391 ;; 12392 12393sysv4 | sysv4.3*) 12394 version_type=linux 12395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12396 soname_spec='${libname}${release}${shared_ext}$major' 12397 shlibpath_var=LD_LIBRARY_PATH 12398 case $host_vendor in 12399 sni) 12400 shlibpath_overrides_runpath=no 12401 need_lib_prefix=no 12402 runpath_var=LD_RUN_PATH 12403 ;; 12404 siemens) 12405 need_lib_prefix=no 12406 ;; 12407 motorola) 12408 need_lib_prefix=no 12409 need_version=no 12410 shlibpath_overrides_runpath=no 12411 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12412 ;; 12413 esac 12414 ;; 12415 12416sysv4*MP*) 12417 if test -d /usr/nec ;then 12418 version_type=linux 12419 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12420 soname_spec='$libname${shared_ext}.$major' 12421 shlibpath_var=LD_LIBRARY_PATH 12422 fi 12423 ;; 12424 12425sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12426 version_type=freebsd-elf 12427 need_lib_prefix=no 12428 need_version=no 12429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12430 soname_spec='${libname}${release}${shared_ext}$major' 12431 shlibpath_var=LD_LIBRARY_PATH 12432 shlibpath_overrides_runpath=yes 12433 hardcode_into_libs=yes 12434 if test "$with_gnu_ld" = yes; then 12435 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12436 else 12437 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12438 case $host_os in 12439 sco3.2v5*) 12440 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12441 ;; 12442 esac 12443 fi 12444 sys_lib_dlsearch_path_spec='/usr/lib' 12445 ;; 12446 12447tpf*) 12448 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12449 version_type=linux 12450 need_lib_prefix=no 12451 need_version=no 12452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12453 shlibpath_var=LD_LIBRARY_PATH 12454 shlibpath_overrides_runpath=no 12455 hardcode_into_libs=yes 12456 ;; 12457 12458uts4*) 12459 version_type=linux 12460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12461 soname_spec='${libname}${release}${shared_ext}$major' 12462 shlibpath_var=LD_LIBRARY_PATH 12463 ;; 12464 12465*) 12466 dynamic_linker=no 12467 ;; 12468esac 12469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12470$as_echo "$dynamic_linker" >&6; } 12471test "$dynamic_linker" = no && can_build_shared=no 12472 12473variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12474if test "$GCC" = yes; then 12475 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12476fi 12477 12478if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 12479 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 12480fi 12481if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 12482 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 12483fi 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12577$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12578hardcode_action= 12579if test -n "$hardcode_libdir_flag_spec" || 12580 test -n "$runpath_var" || 12581 test "X$hardcode_automatic" = "Xyes" ; then 12582 12583 # We can hardcode non-existent directories. 12584 if test "$hardcode_direct" != no && 12585 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12586 # have to relink, otherwise we might link with an installed library 12587 # when we should be linking with a yet-to-be-installed one 12588 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 12589 test "$hardcode_minus_L" != no; then 12590 # Linking always hardcodes the temporary library directory. 12591 hardcode_action=relink 12592 else 12593 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12594 hardcode_action=immediate 12595 fi 12596else 12597 # We cannot hardcode anything, or else we can only hardcode existing 12598 # directories. 12599 hardcode_action=unsupported 12600fi 12601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12602$as_echo "$hardcode_action" >&6; } 12603 12604if test "$hardcode_action" = relink || 12605 test "$inherit_rpath" = yes; then 12606 # Fast installation is not supported 12607 enable_fast_install=no 12608elif test "$shlibpath_overrides_runpath" = yes || 12609 test "$enable_shared" = no; then 12610 # Fast installation is not necessary 12611 enable_fast_install=needless 12612fi 12613 12614 12615 12616 12617 12618 12619 if test "x$enable_dlopen" != xyes; then 12620 enable_dlopen=unknown 12621 enable_dlopen_self=unknown 12622 enable_dlopen_self_static=unknown 12623else 12624 lt_cv_dlopen=no 12625 lt_cv_dlopen_libs= 12626 12627 case $host_os in 12628 beos*) 12629 lt_cv_dlopen="load_add_on" 12630 lt_cv_dlopen_libs= 12631 lt_cv_dlopen_self=yes 12632 ;; 12633 12634 mingw* | pw32* | cegcc*) 12635 lt_cv_dlopen="LoadLibrary" 12636 lt_cv_dlopen_libs= 12637 ;; 12638 12639 cygwin*) 12640 lt_cv_dlopen="dlopen" 12641 lt_cv_dlopen_libs= 12642 ;; 12643 12644 darwin*) 12645 # if libdl is installed we need to link against it 12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12647$as_echo_n "checking for dlopen in -ldl... " >&6; } 12648if ${ac_cv_lib_dl_dlopen+:} false; then : 12649 $as_echo_n "(cached) " >&6 12650else 12651 ac_check_lib_save_LIBS=$LIBS 12652LIBS="-ldl $LIBS" 12653cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12654/* end confdefs.h. */ 12655 12656/* Override any GCC internal prototype to avoid an error. 12657 Use char because int might match the return type of a GCC 12658 builtin and then its argument prototype would still apply. */ 12659#ifdef __cplusplus 12660extern "C" 12661#endif 12662char dlopen (); 12663int 12664main () 12665{ 12666return dlopen (); 12667 ; 12668 return 0; 12669} 12670_ACEOF 12671if ac_fn_c_try_link "$LINENO"; then : 12672 ac_cv_lib_dl_dlopen=yes 12673else 12674 ac_cv_lib_dl_dlopen=no 12675fi 12676rm -f core conftest.err conftest.$ac_objext \ 12677 conftest$ac_exeext conftest.$ac_ext 12678LIBS=$ac_check_lib_save_LIBS 12679fi 12680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12681$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12682if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12683 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12684else 12685 12686 lt_cv_dlopen="dyld" 12687 lt_cv_dlopen_libs= 12688 lt_cv_dlopen_self=yes 12689 12690fi 12691 12692 ;; 12693 12694 *) 12695 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12696if test "x$ac_cv_func_shl_load" = xyes; then : 12697 lt_cv_dlopen="shl_load" 12698else 12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12700$as_echo_n "checking for shl_load in -ldld... " >&6; } 12701if ${ac_cv_lib_dld_shl_load+:} false; then : 12702 $as_echo_n "(cached) " >&6 12703else 12704 ac_check_lib_save_LIBS=$LIBS 12705LIBS="-ldld $LIBS" 12706cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12707/* end confdefs.h. */ 12708 12709/* Override any GCC internal prototype to avoid an error. 12710 Use char because int might match the return type of a GCC 12711 builtin and then its argument prototype would still apply. */ 12712#ifdef __cplusplus 12713extern "C" 12714#endif 12715char shl_load (); 12716int 12717main () 12718{ 12719return shl_load (); 12720 ; 12721 return 0; 12722} 12723_ACEOF 12724if ac_fn_c_try_link "$LINENO"; then : 12725 ac_cv_lib_dld_shl_load=yes 12726else 12727 ac_cv_lib_dld_shl_load=no 12728fi 12729rm -f core conftest.err conftest.$ac_objext \ 12730 conftest$ac_exeext conftest.$ac_ext 12731LIBS=$ac_check_lib_save_LIBS 12732fi 12733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12734$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12735if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12736 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12737else 12738 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12739if test "x$ac_cv_func_dlopen" = xyes; then : 12740 lt_cv_dlopen="dlopen" 12741else 12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12743$as_echo_n "checking for dlopen in -ldl... " >&6; } 12744if ${ac_cv_lib_dl_dlopen+:} false; then : 12745 $as_echo_n "(cached) " >&6 12746else 12747 ac_check_lib_save_LIBS=$LIBS 12748LIBS="-ldl $LIBS" 12749cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12750/* end confdefs.h. */ 12751 12752/* Override any GCC internal prototype to avoid an error. 12753 Use char because int might match the return type of a GCC 12754 builtin and then its argument prototype would still apply. */ 12755#ifdef __cplusplus 12756extern "C" 12757#endif 12758char dlopen (); 12759int 12760main () 12761{ 12762return dlopen (); 12763 ; 12764 return 0; 12765} 12766_ACEOF 12767if ac_fn_c_try_link "$LINENO"; then : 12768 ac_cv_lib_dl_dlopen=yes 12769else 12770 ac_cv_lib_dl_dlopen=no 12771fi 12772rm -f core conftest.err conftest.$ac_objext \ 12773 conftest$ac_exeext conftest.$ac_ext 12774LIBS=$ac_check_lib_save_LIBS 12775fi 12776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12777$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12778if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12779 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12780else 12781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12782$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12783if ${ac_cv_lib_svld_dlopen+:} false; then : 12784 $as_echo_n "(cached) " >&6 12785else 12786 ac_check_lib_save_LIBS=$LIBS 12787LIBS="-lsvld $LIBS" 12788cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12789/* end confdefs.h. */ 12790 12791/* Override any GCC internal prototype to avoid an error. 12792 Use char because int might match the return type of a GCC 12793 builtin and then its argument prototype would still apply. */ 12794#ifdef __cplusplus 12795extern "C" 12796#endif 12797char dlopen (); 12798int 12799main () 12800{ 12801return dlopen (); 12802 ; 12803 return 0; 12804} 12805_ACEOF 12806if ac_fn_c_try_link "$LINENO"; then : 12807 ac_cv_lib_svld_dlopen=yes 12808else 12809 ac_cv_lib_svld_dlopen=no 12810fi 12811rm -f core conftest.err conftest.$ac_objext \ 12812 conftest$ac_exeext conftest.$ac_ext 12813LIBS=$ac_check_lib_save_LIBS 12814fi 12815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12816$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12817if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12818 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12819else 12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12821$as_echo_n "checking for dld_link in -ldld... " >&6; } 12822if ${ac_cv_lib_dld_dld_link+:} false; then : 12823 $as_echo_n "(cached) " >&6 12824else 12825 ac_check_lib_save_LIBS=$LIBS 12826LIBS="-ldld $LIBS" 12827cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12828/* end confdefs.h. */ 12829 12830/* Override any GCC internal prototype to avoid an error. 12831 Use char because int might match the return type of a GCC 12832 builtin and then its argument prototype would still apply. */ 12833#ifdef __cplusplus 12834extern "C" 12835#endif 12836char dld_link (); 12837int 12838main () 12839{ 12840return dld_link (); 12841 ; 12842 return 0; 12843} 12844_ACEOF 12845if ac_fn_c_try_link "$LINENO"; then : 12846 ac_cv_lib_dld_dld_link=yes 12847else 12848 ac_cv_lib_dld_dld_link=no 12849fi 12850rm -f core conftest.err conftest.$ac_objext \ 12851 conftest$ac_exeext conftest.$ac_ext 12852LIBS=$ac_check_lib_save_LIBS 12853fi 12854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12855$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12856if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12857 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12858fi 12859 12860 12861fi 12862 12863 12864fi 12865 12866 12867fi 12868 12869 12870fi 12871 12872 12873fi 12874 12875 ;; 12876 esac 12877 12878 if test "x$lt_cv_dlopen" != xno; then 12879 enable_dlopen=yes 12880 else 12881 enable_dlopen=no 12882 fi 12883 12884 case $lt_cv_dlopen in 12885 dlopen) 12886 save_CPPFLAGS="$CPPFLAGS" 12887 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12888 12889 save_LDFLAGS="$LDFLAGS" 12890 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12891 12892 save_LIBS="$LIBS" 12893 LIBS="$lt_cv_dlopen_libs $LIBS" 12894 12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12896$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12897if ${lt_cv_dlopen_self+:} false; then : 12898 $as_echo_n "(cached) " >&6 12899else 12900 if test "$cross_compiling" = yes; then : 12901 lt_cv_dlopen_self=cross 12902else 12903 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12904 lt_status=$lt_dlunknown 12905 cat > conftest.$ac_ext <<_LT_EOF 12906#line $LINENO "configure" 12907#include "confdefs.h" 12908 12909#if HAVE_DLFCN_H 12910#include <dlfcn.h> 12911#endif 12912 12913#include <stdio.h> 12914 12915#ifdef RTLD_GLOBAL 12916# define LT_DLGLOBAL RTLD_GLOBAL 12917#else 12918# ifdef DL_GLOBAL 12919# define LT_DLGLOBAL DL_GLOBAL 12920# else 12921# define LT_DLGLOBAL 0 12922# endif 12923#endif 12924 12925/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12926 find out it does not work in some platform. */ 12927#ifndef LT_DLLAZY_OR_NOW 12928# ifdef RTLD_LAZY 12929# define LT_DLLAZY_OR_NOW RTLD_LAZY 12930# else 12931# ifdef DL_LAZY 12932# define LT_DLLAZY_OR_NOW DL_LAZY 12933# else 12934# ifdef RTLD_NOW 12935# define LT_DLLAZY_OR_NOW RTLD_NOW 12936# else 12937# ifdef DL_NOW 12938# define LT_DLLAZY_OR_NOW DL_NOW 12939# else 12940# define LT_DLLAZY_OR_NOW 0 12941# endif 12942# endif 12943# endif 12944# endif 12945#endif 12946 12947/* When -fvisbility=hidden is used, assume the code has been annotated 12948 correspondingly for the symbols needed. */ 12949#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12950int fnord () __attribute__((visibility("default"))); 12951#endif 12952 12953int fnord () { return 42; } 12954int main () 12955{ 12956 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12957 int status = $lt_dlunknown; 12958 12959 if (self) 12960 { 12961 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12962 else 12963 { 12964 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12965 else puts (dlerror ()); 12966 } 12967 /* dlclose (self); */ 12968 } 12969 else 12970 puts (dlerror ()); 12971 12972 return status; 12973} 12974_LT_EOF 12975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12976 (eval $ac_link) 2>&5 12977 ac_status=$? 12978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12979 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12980 (./conftest; exit; ) >&5 2>/dev/null 12981 lt_status=$? 12982 case x$lt_status in 12983 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12984 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12985 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12986 esac 12987 else : 12988 # compilation failed 12989 lt_cv_dlopen_self=no 12990 fi 12991fi 12992rm -fr conftest* 12993 12994 12995fi 12996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12997$as_echo "$lt_cv_dlopen_self" >&6; } 12998 12999 if test "x$lt_cv_dlopen_self" = xyes; then 13000 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13002$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13003if ${lt_cv_dlopen_self_static+:} false; then : 13004 $as_echo_n "(cached) " >&6 13005else 13006 if test "$cross_compiling" = yes; then : 13007 lt_cv_dlopen_self_static=cross 13008else 13009 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13010 lt_status=$lt_dlunknown 13011 cat > conftest.$ac_ext <<_LT_EOF 13012#line $LINENO "configure" 13013#include "confdefs.h" 13014 13015#if HAVE_DLFCN_H 13016#include <dlfcn.h> 13017#endif 13018 13019#include <stdio.h> 13020 13021#ifdef RTLD_GLOBAL 13022# define LT_DLGLOBAL RTLD_GLOBAL 13023#else 13024# ifdef DL_GLOBAL 13025# define LT_DLGLOBAL DL_GLOBAL 13026# else 13027# define LT_DLGLOBAL 0 13028# endif 13029#endif 13030 13031/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13032 find out it does not work in some platform. */ 13033#ifndef LT_DLLAZY_OR_NOW 13034# ifdef RTLD_LAZY 13035# define LT_DLLAZY_OR_NOW RTLD_LAZY 13036# else 13037# ifdef DL_LAZY 13038# define LT_DLLAZY_OR_NOW DL_LAZY 13039# else 13040# ifdef RTLD_NOW 13041# define LT_DLLAZY_OR_NOW RTLD_NOW 13042# else 13043# ifdef DL_NOW 13044# define LT_DLLAZY_OR_NOW DL_NOW 13045# else 13046# define LT_DLLAZY_OR_NOW 0 13047# endif 13048# endif 13049# endif 13050# endif 13051#endif 13052 13053/* When -fvisbility=hidden is used, assume the code has been annotated 13054 correspondingly for the symbols needed. */ 13055#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13056int fnord () __attribute__((visibility("default"))); 13057#endif 13058 13059int fnord () { return 42; } 13060int main () 13061{ 13062 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13063 int status = $lt_dlunknown; 13064 13065 if (self) 13066 { 13067 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13068 else 13069 { 13070 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13071 else puts (dlerror ()); 13072 } 13073 /* dlclose (self); */ 13074 } 13075 else 13076 puts (dlerror ()); 13077 13078 return status; 13079} 13080_LT_EOF 13081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13082 (eval $ac_link) 2>&5 13083 ac_status=$? 13084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13085 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13086 (./conftest; exit; ) >&5 2>/dev/null 13087 lt_status=$? 13088 case x$lt_status in 13089 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13090 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13091 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13092 esac 13093 else : 13094 # compilation failed 13095 lt_cv_dlopen_self_static=no 13096 fi 13097fi 13098rm -fr conftest* 13099 13100 13101fi 13102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13103$as_echo "$lt_cv_dlopen_self_static" >&6; } 13104 fi 13105 13106 CPPFLAGS="$save_CPPFLAGS" 13107 LDFLAGS="$save_LDFLAGS" 13108 LIBS="$save_LIBS" 13109 ;; 13110 esac 13111 13112 case $lt_cv_dlopen_self in 13113 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13114 *) enable_dlopen_self=unknown ;; 13115 esac 13116 13117 case $lt_cv_dlopen_self_static in 13118 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13119 *) enable_dlopen_self_static=unknown ;; 13120 esac 13121fi 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139striplib= 13140old_striplib= 13141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13142$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13143if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13144 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13145 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13147$as_echo "yes" >&6; } 13148else 13149# FIXME - insert some real tests, host_os isn't really good enough 13150 case $host_os in 13151 darwin*) 13152 if test -n "$STRIP" ; then 13153 striplib="$STRIP -x" 13154 old_striplib="$STRIP -S" 13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13156$as_echo "yes" >&6; } 13157 else 13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13159$as_echo "no" >&6; } 13160 fi 13161 ;; 13162 *) 13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13164$as_echo "no" >&6; } 13165 ;; 13166 esac 13167fi 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 # Report which library types will actually be built 13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13182$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13184$as_echo "$can_build_shared" >&6; } 13185 13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13187$as_echo_n "checking whether to build shared libraries... " >&6; } 13188 test "$can_build_shared" = "no" && enable_shared=no 13189 13190 # On AIX, shared libraries and static libraries use the same namespace, and 13191 # are all built from PIC. 13192 case $host_os in 13193 aix3*) 13194 test "$enable_shared" = yes && enable_static=no 13195 if test -n "$RANLIB"; then 13196 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13197 postinstall_cmds='$RANLIB $lib' 13198 fi 13199 ;; 13200 13201 aix[4-9]*) 13202 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13203 test "$enable_shared" = yes && enable_static=no 13204 fi 13205 ;; 13206 esac 13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13208$as_echo "$enable_shared" >&6; } 13209 13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13211$as_echo_n "checking whether to build static libraries... " >&6; } 13212 # Make sure either enable_shared or enable_static is yes. 13213 test "$enable_shared" = yes || enable_static=yes 13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13215$as_echo "$enable_static" >&6; } 13216 13217 13218 13219 13220fi 13221ac_ext=c 13222ac_cpp='$CPP $CPPFLAGS' 13223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13225ac_compiler_gnu=$ac_cv_c_compiler_gnu 13226 13227CC="$lt_save_CC" 13228 13229 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 13230 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 13231 (test "X$CXX" != "Xg++"))) ; then 13232 ac_ext=cpp 13233ac_cpp='$CXXCPP $CPPFLAGS' 13234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13238$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13239if test -z "$CXXCPP"; then 13240 if ${ac_cv_prog_CXXCPP+:} false; then : 13241 $as_echo_n "(cached) " >&6 13242else 13243 # Double quotes because CXXCPP needs to be expanded 13244 for CXXCPP in "$CXX -E" "/lib/cpp" 13245 do 13246 ac_preproc_ok=false 13247for ac_cxx_preproc_warn_flag in '' yes 13248do 13249 # Use a header file that comes with gcc, so configuring glibc 13250 # with a fresh cross-compiler works. 13251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13252 # <limits.h> exists even on freestanding compilers. 13253 # On the NeXT, cc -E runs the code through the compiler's parser, 13254 # not just through cpp. "Syntax error" is here to catch this case. 13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13256/* end confdefs.h. */ 13257#ifdef __STDC__ 13258# include <limits.h> 13259#else 13260# include <assert.h> 13261#endif 13262 Syntax error 13263_ACEOF 13264if ac_fn_cxx_try_cpp "$LINENO"; then : 13265 13266else 13267 # Broken: fails on valid input. 13268continue 13269fi 13270rm -f conftest.err conftest.i conftest.$ac_ext 13271 13272 # OK, works on sane cases. Now check whether nonexistent headers 13273 # can be detected and how. 13274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13275/* end confdefs.h. */ 13276#include <ac_nonexistent.h> 13277_ACEOF 13278if ac_fn_cxx_try_cpp "$LINENO"; then : 13279 # Broken: success on invalid input. 13280continue 13281else 13282 # Passes both tests. 13283ac_preproc_ok=: 13284break 13285fi 13286rm -f conftest.err conftest.i conftest.$ac_ext 13287 13288done 13289# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13290rm -f conftest.i conftest.err conftest.$ac_ext 13291if $ac_preproc_ok; then : 13292 break 13293fi 13294 13295 done 13296 ac_cv_prog_CXXCPP=$CXXCPP 13297 13298fi 13299 CXXCPP=$ac_cv_prog_CXXCPP 13300else 13301 ac_cv_prog_CXXCPP=$CXXCPP 13302fi 13303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13304$as_echo "$CXXCPP" >&6; } 13305ac_preproc_ok=false 13306for ac_cxx_preproc_warn_flag in '' yes 13307do 13308 # Use a header file that comes with gcc, so configuring glibc 13309 # with a fresh cross-compiler works. 13310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13311 # <limits.h> exists even on freestanding compilers. 13312 # On the NeXT, cc -E runs the code through the compiler's parser, 13313 # not just through cpp. "Syntax error" is here to catch this case. 13314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13315/* end confdefs.h. */ 13316#ifdef __STDC__ 13317# include <limits.h> 13318#else 13319# include <assert.h> 13320#endif 13321 Syntax error 13322_ACEOF 13323if ac_fn_cxx_try_cpp "$LINENO"; then : 13324 13325else 13326 # Broken: fails on valid input. 13327continue 13328fi 13329rm -f conftest.err conftest.i conftest.$ac_ext 13330 13331 # OK, works on sane cases. Now check whether nonexistent headers 13332 # can be detected and how. 13333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13334/* end confdefs.h. */ 13335#include <ac_nonexistent.h> 13336_ACEOF 13337if ac_fn_cxx_try_cpp "$LINENO"; then : 13338 # Broken: success on invalid input. 13339continue 13340else 13341 # Passes both tests. 13342ac_preproc_ok=: 13343break 13344fi 13345rm -f conftest.err conftest.i conftest.$ac_ext 13346 13347done 13348# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13349rm -f conftest.i conftest.err conftest.$ac_ext 13350if $ac_preproc_ok; then : 13351 13352else 13353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13354$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13355as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13356See \`config.log' for more details" "$LINENO" 5; } 13357fi 13358 13359ac_ext=c 13360ac_cpp='$CPP $CPPFLAGS' 13361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13363ac_compiler_gnu=$ac_cv_c_compiler_gnu 13364 13365else 13366 _lt_caught_CXX_error=yes 13367fi 13368 13369ac_ext=cpp 13370ac_cpp='$CXXCPP $CPPFLAGS' 13371ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13372ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13373ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13374 13375archive_cmds_need_lc_CXX=no 13376allow_undefined_flag_CXX= 13377always_export_symbols_CXX=no 13378archive_expsym_cmds_CXX= 13379compiler_needs_object_CXX=no 13380export_dynamic_flag_spec_CXX= 13381hardcode_direct_CXX=no 13382hardcode_direct_absolute_CXX=no 13383hardcode_libdir_flag_spec_CXX= 13384hardcode_libdir_flag_spec_ld_CXX= 13385hardcode_libdir_separator_CXX= 13386hardcode_minus_L_CXX=no 13387hardcode_shlibpath_var_CXX=unsupported 13388hardcode_automatic_CXX=no 13389inherit_rpath_CXX=no 13390module_cmds_CXX= 13391module_expsym_cmds_CXX= 13392link_all_deplibs_CXX=unknown 13393old_archive_cmds_CXX=$old_archive_cmds 13394reload_flag_CXX=$reload_flag 13395reload_cmds_CXX=$reload_cmds 13396no_undefined_flag_CXX= 13397whole_archive_flag_spec_CXX= 13398enable_shared_with_static_runtimes_CXX=no 13399 13400# Source file extension for C++ test sources. 13401ac_ext=cpp 13402 13403# Object file extension for compiled C++ test sources. 13404objext=o 13405objext_CXX=$objext 13406 13407# No sense in running all these tests if we already determined that 13408# the CXX compiler isn't working. Some variables (like enable_shared) 13409# are currently assumed to apply to all compilers on this platform, 13410# and will be corrupted by setting them based on a non-working compiler. 13411if test "$_lt_caught_CXX_error" != yes; then 13412 # Code to be used in simple compile tests 13413 lt_simple_compile_test_code="int some_variable = 0;" 13414 13415 # Code to be used in simple link tests 13416 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13417 13418 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13419 13420 13421 13422 13423 13424 13425# If no C compiler was specified, use CC. 13426LTCC=${LTCC-"$CC"} 13427 13428# If no C compiler flags were specified, use CFLAGS. 13429LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13430 13431# Allow CC to be a program name with arguments. 13432compiler=$CC 13433 13434 13435 # save warnings/boilerplate of simple test code 13436 ac_outfile=conftest.$ac_objext 13437echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13438eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13439_lt_compiler_boilerplate=`cat conftest.err` 13440$RM conftest* 13441 13442 ac_outfile=conftest.$ac_objext 13443echo "$lt_simple_link_test_code" >conftest.$ac_ext 13444eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13445_lt_linker_boilerplate=`cat conftest.err` 13446$RM -r conftest* 13447 13448 13449 # Allow CC to be a program name with arguments. 13450 lt_save_CC=$CC 13451 lt_save_CFLAGS=$CFLAGS 13452 lt_save_LD=$LD 13453 lt_save_GCC=$GCC 13454 GCC=$GXX 13455 lt_save_with_gnu_ld=$with_gnu_ld 13456 lt_save_path_LD=$lt_cv_path_LD 13457 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13458 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13459 else 13460 $as_unset lt_cv_prog_gnu_ld 13461 fi 13462 if test -n "${lt_cv_path_LDCXX+set}"; then 13463 lt_cv_path_LD=$lt_cv_path_LDCXX 13464 else 13465 $as_unset lt_cv_path_LD 13466 fi 13467 test -z "${LDCXX+set}" || LD=$LDCXX 13468 CC=${CXX-"c++"} 13469 CFLAGS=$CXXFLAGS 13470 compiler=$CC 13471 compiler_CXX=$CC 13472 for cc_temp in $compiler""; do 13473 case $cc_temp in 13474 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13475 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13476 \-*) ;; 13477 *) break;; 13478 esac 13479done 13480cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13481 13482 13483 if test -n "$compiler"; then 13484 # We don't want -fno-exception when compiling C++ code, so set the 13485 # no_builtin_flag separately 13486 if test "$GXX" = yes; then 13487 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13488 else 13489 lt_prog_compiler_no_builtin_flag_CXX= 13490 fi 13491 13492 if test "$GXX" = yes; then 13493 # Set up default GNU C++ configuration 13494 13495 13496 13497# Check whether --with-gnu-ld was given. 13498if test "${with_gnu_ld+set}" = set; then : 13499 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 13500else 13501 with_gnu_ld=no 13502fi 13503 13504ac_prog=ld 13505if test "$GCC" = yes; then 13506 # Check if gcc -print-prog-name=ld gives a path. 13507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13508$as_echo_n "checking for ld used by $CC... " >&6; } 13509 case $host in 13510 *-*-mingw*) 13511 # gcc leaves a trailing carriage return which upsets mingw 13512 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13513 *) 13514 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13515 esac 13516 case $ac_prog in 13517 # Accept absolute paths. 13518 [\\/]* | ?:[\\/]*) 13519 re_direlt='/[^/][^/]*/\.\./' 13520 # Canonicalize the pathname of ld 13521 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13522 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13523 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13524 done 13525 test -z "$LD" && LD="$ac_prog" 13526 ;; 13527 "") 13528 # If it fails, then pretend we aren't using GCC. 13529 ac_prog=ld 13530 ;; 13531 *) 13532 # If it is relative, then search for the first ld in PATH. 13533 with_gnu_ld=unknown 13534 ;; 13535 esac 13536elif test "$with_gnu_ld" = yes; then 13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13538$as_echo_n "checking for GNU ld... " >&6; } 13539else 13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13541$as_echo_n "checking for non-GNU ld... " >&6; } 13542fi 13543if ${lt_cv_path_LD+:} false; then : 13544 $as_echo_n "(cached) " >&6 13545else 13546 if test -z "$LD"; then 13547 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13548 for ac_dir in $PATH; do 13549 IFS="$lt_save_ifs" 13550 test -z "$ac_dir" && ac_dir=. 13551 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13552 lt_cv_path_LD="$ac_dir/$ac_prog" 13553 # Check to see if the program is GNU ld. I'd rather use --version, 13554 # but apparently some variants of GNU ld only accept -v. 13555 # Break only if it was the GNU/non-GNU ld that we prefer. 13556 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13557 *GNU* | *'with BFD'*) 13558 test "$with_gnu_ld" != no && break 13559 ;; 13560 *) 13561 test "$with_gnu_ld" != yes && break 13562 ;; 13563 esac 13564 fi 13565 done 13566 IFS="$lt_save_ifs" 13567else 13568 lt_cv_path_LD="$LD" # Let the user override the test with a path. 13569fi 13570fi 13571 13572LD="$lt_cv_path_LD" 13573if test -n "$LD"; then 13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13575$as_echo "$LD" >&6; } 13576else 13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13578$as_echo "no" >&6; } 13579fi 13580test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13582$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13583if ${lt_cv_prog_gnu_ld+:} false; then : 13584 $as_echo_n "(cached) " >&6 13585else 13586 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13587case `$LD -v 2>&1 </dev/null` in 13588*GNU* | *'with BFD'*) 13589 lt_cv_prog_gnu_ld=yes 13590 ;; 13591*) 13592 lt_cv_prog_gnu_ld=no 13593 ;; 13594esac 13595fi 13596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13597$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13598with_gnu_ld=$lt_cv_prog_gnu_ld 13599 13600 13601 13602 13603 13604 13605 13606 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13607 # archiving commands below assume that GNU ld is being used. 13608 if test "$with_gnu_ld" = yes; then 13609 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13610 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' 13611 13612 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13613 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13614 13615 # If archive_cmds runs LD, not CC, wlarc should be empty 13616 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13617 # investigate it a little bit more. (MM) 13618 wlarc='${wl}' 13619 13620 # ancient GNU ld didn't support --whole-archive et. al. 13621 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13622 $GREP 'no-whole-archive' > /dev/null; then 13623 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13624 else 13625 whole_archive_flag_spec_CXX= 13626 fi 13627 else 13628 with_gnu_ld=no 13629 wlarc= 13630 13631 # A generic and very simple default shared library creation 13632 # command for GNU C++ for the case where it uses the native 13633 # linker, instead of GNU ld. If possible, this setting should 13634 # overridden to take advantage of the native linker features on 13635 # the platform it is being used on. 13636 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13637 fi 13638 13639 # Commands to make compiler produce verbose output that lists 13640 # what "hidden" libraries, object files and flags are used when 13641 # linking a shared library. 13642 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13643 13644 else 13645 GXX=no 13646 with_gnu_ld=no 13647 wlarc= 13648 fi 13649 13650 # PORTME: fill in a description of your system's C++ link characteristics 13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13652$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13653 ld_shlibs_CXX=yes 13654 case $host_os in 13655 aix3*) 13656 # FIXME: insert proper C++ library support 13657 ld_shlibs_CXX=no 13658 ;; 13659 aix[4-9]*) 13660 if test "$host_cpu" = ia64; then 13661 # On IA64, the linker does run time linking by default, so we don't 13662 # have to do anything special. 13663 aix_use_runtimelinking=no 13664 exp_sym_flag='-Bexport' 13665 no_entry_flag="" 13666 else 13667 aix_use_runtimelinking=no 13668 13669 # Test if we are trying to use run time linking or normal 13670 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13671 # need to do runtime linking. 13672 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13673 for ld_flag in $LDFLAGS; do 13674 case $ld_flag in 13675 *-brtl*) 13676 aix_use_runtimelinking=yes 13677 break 13678 ;; 13679 esac 13680 done 13681 ;; 13682 esac 13683 13684 exp_sym_flag='-bexport' 13685 no_entry_flag='-bnoentry' 13686 fi 13687 13688 # When large executables or shared objects are built, AIX ld can 13689 # have problems creating the table of contents. If linking a library 13690 # or program results in "error TOC overflow" add -mminimal-toc to 13691 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13692 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13693 13694 archive_cmds_CXX='' 13695 hardcode_direct_CXX=yes 13696 hardcode_direct_absolute_CXX=yes 13697 hardcode_libdir_separator_CXX=':' 13698 link_all_deplibs_CXX=yes 13699 file_list_spec_CXX='${wl}-f,' 13700 13701 if test "$GXX" = yes; then 13702 case $host_os in aix4.[012]|aix4.[012].*) 13703 # We only want to do this on AIX 4.2 and lower, the check 13704 # below for broken collect2 doesn't work under 4.3+ 13705 collect2name=`${CC} -print-prog-name=collect2` 13706 if test -f "$collect2name" && 13707 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13708 then 13709 # We have reworked collect2 13710 : 13711 else 13712 # We have old collect2 13713 hardcode_direct_CXX=unsupported 13714 # It fails to find uninstalled libraries when the uninstalled 13715 # path is not listed in the libpath. Setting hardcode_minus_L 13716 # to unsupported forces relinking 13717 hardcode_minus_L_CXX=yes 13718 hardcode_libdir_flag_spec_CXX='-L$libdir' 13719 hardcode_libdir_separator_CXX= 13720 fi 13721 esac 13722 shared_flag='-shared' 13723 if test "$aix_use_runtimelinking" = yes; then 13724 shared_flag="$shared_flag "'${wl}-G' 13725 fi 13726 else 13727 # not using gcc 13728 if test "$host_cpu" = ia64; then 13729 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13730 # chokes on -Wl,-G. The following line is correct: 13731 shared_flag='-G' 13732 else 13733 if test "$aix_use_runtimelinking" = yes; then 13734 shared_flag='${wl}-G' 13735 else 13736 shared_flag='${wl}-bM:SRE' 13737 fi 13738 fi 13739 fi 13740 13741 export_dynamic_flag_spec_CXX='${wl}-bexpall' 13742 # It seems that -bexpall does not export symbols beginning with 13743 # underscore (_), so it is better to generate a list of symbols to 13744 # export. 13745 always_export_symbols_CXX=yes 13746 if test "$aix_use_runtimelinking" = yes; then 13747 # Warning - without using the other runtime loading flags (-brtl), 13748 # -berok will link without error, but may produce a broken library. 13749 allow_undefined_flag_CXX='-berok' 13750 # Determine the default libpath from the value encoded in an empty 13751 # executable. 13752 if test "${lt_cv_aix_libpath+set}" = set; then 13753 aix_libpath=$lt_cv_aix_libpath 13754else 13755 if ${lt_cv_aix_libpath__CXX+:} false; then : 13756 $as_echo_n "(cached) " >&6 13757else 13758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13759/* end confdefs.h. */ 13760 13761int 13762main () 13763{ 13764 13765 ; 13766 return 0; 13767} 13768_ACEOF 13769if ac_fn_cxx_try_link "$LINENO"; then : 13770 13771 lt_aix_libpath_sed=' 13772 /Import File Strings/,/^$/ { 13773 /^0/ { 13774 s/^0 *\([^ ]*\) *$/\1/ 13775 p 13776 } 13777 }' 13778 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13779 # Check for a 64-bit object if we didn't find anything. 13780 if test -z "$lt_cv_aix_libpath__CXX"; then 13781 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13782 fi 13783fi 13784rm -f core conftest.err conftest.$ac_objext \ 13785 conftest$ac_exeext conftest.$ac_ext 13786 if test -z "$lt_cv_aix_libpath__CXX"; then 13787 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13788 fi 13789 13790fi 13791 13792 aix_libpath=$lt_cv_aix_libpath__CXX 13793fi 13794 13795 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13796 13797 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" 13798 else 13799 if test "$host_cpu" = ia64; then 13800 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13801 allow_undefined_flag_CXX="-z nodefs" 13802 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" 13803 else 13804 # Determine the default libpath from the value encoded in an 13805 # empty executable. 13806 if test "${lt_cv_aix_libpath+set}" = set; then 13807 aix_libpath=$lt_cv_aix_libpath 13808else 13809 if ${lt_cv_aix_libpath__CXX+:} false; then : 13810 $as_echo_n "(cached) " >&6 13811else 13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13813/* end confdefs.h. */ 13814 13815int 13816main () 13817{ 13818 13819 ; 13820 return 0; 13821} 13822_ACEOF 13823if ac_fn_cxx_try_link "$LINENO"; then : 13824 13825 lt_aix_libpath_sed=' 13826 /Import File Strings/,/^$/ { 13827 /^0/ { 13828 s/^0 *\([^ ]*\) *$/\1/ 13829 p 13830 } 13831 }' 13832 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13833 # Check for a 64-bit object if we didn't find anything. 13834 if test -z "$lt_cv_aix_libpath__CXX"; then 13835 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13836 fi 13837fi 13838rm -f core conftest.err conftest.$ac_objext \ 13839 conftest$ac_exeext conftest.$ac_ext 13840 if test -z "$lt_cv_aix_libpath__CXX"; then 13841 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13842 fi 13843 13844fi 13845 13846 aix_libpath=$lt_cv_aix_libpath__CXX 13847fi 13848 13849 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13850 # Warning - without using the other run time loading flags, 13851 # -berok will link without error, but may produce a broken library. 13852 no_undefined_flag_CXX=' ${wl}-bernotok' 13853 allow_undefined_flag_CXX=' ${wl}-berok' 13854 if test "$with_gnu_ld" = yes; then 13855 # We only use this code for GNU lds that support --whole-archive. 13856 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13857 else 13858 # Exported symbols can be pulled into shared objects from archives 13859 whole_archive_flag_spec_CXX='$convenience' 13860 fi 13861 archive_cmds_need_lc_CXX=yes 13862 # This is similar to how AIX traditionally builds its shared 13863 # libraries. 13864 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' 13865 fi 13866 fi 13867 ;; 13868 13869 beos*) 13870 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13871 allow_undefined_flag_CXX=unsupported 13872 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13873 # support --undefined. This deserves some investigation. FIXME 13874 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13875 else 13876 ld_shlibs_CXX=no 13877 fi 13878 ;; 13879 13880 chorus*) 13881 case $cc_basename in 13882 *) 13883 # FIXME: insert proper C++ library support 13884 ld_shlibs_CXX=no 13885 ;; 13886 esac 13887 ;; 13888 13889 cygwin* | mingw* | pw32* | cegcc*) 13890 case $GXX,$cc_basename in 13891 ,cl* | no,cl*) 13892 # Native MSVC 13893 # hardcode_libdir_flag_spec is actually meaningless, as there is 13894 # no search path for DLLs. 13895 hardcode_libdir_flag_spec_CXX=' ' 13896 allow_undefined_flag_CXX=unsupported 13897 always_export_symbols_CXX=yes 13898 file_list_spec_CXX='@' 13899 # Tell ltmain to make .lib files, not .a files. 13900 libext=lib 13901 # Tell ltmain to make .dll files, not .so files. 13902 shrext_cmds=".dll" 13903 # FIXME: Setting linknames here is a bad hack. 13904 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 13905 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13906 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 13907 else 13908 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 13909 fi~ 13910 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13911 linknames=' 13912 # The linker will not automatically build a static lib if we build a DLL. 13913 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13914 enable_shared_with_static_runtimes_CXX=yes 13915 # Don't use ranlib 13916 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13917 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13918 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13919 case $lt_outputfile in 13920 *.exe|*.EXE) ;; 13921 *) 13922 lt_outputfile="$lt_outputfile.exe" 13923 lt_tool_outputfile="$lt_tool_outputfile.exe" 13924 ;; 13925 esac~ 13926 func_to_tool_file "$lt_outputfile"~ 13927 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 13928 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13929 $RM "$lt_outputfile.manifest"; 13930 fi' 13931 ;; 13932 *) 13933 # g++ 13934 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13935 # as there is no search path for DLLs. 13936 hardcode_libdir_flag_spec_CXX='-L$libdir' 13937 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 13938 allow_undefined_flag_CXX=unsupported 13939 always_export_symbols_CXX=no 13940 enable_shared_with_static_runtimes_CXX=yes 13941 13942 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13943 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' 13944 # If the export-symbols file already is a .def file (1st line 13945 # is EXPORTS), use it as is; otherwise, prepend... 13946 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13947 cp $export_symbols $output_objdir/$soname.def; 13948 else 13949 echo EXPORTS > $output_objdir/$soname.def; 13950 cat $export_symbols >> $output_objdir/$soname.def; 13951 fi~ 13952 $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' 13953 else 13954 ld_shlibs_CXX=no 13955 fi 13956 ;; 13957 esac 13958 ;; 13959 darwin* | rhapsody*) 13960 13961 13962 archive_cmds_need_lc_CXX=no 13963 hardcode_direct_CXX=no 13964 hardcode_automatic_CXX=yes 13965 hardcode_shlibpath_var_CXX=unsupported 13966 if test "$lt_cv_ld_force_load" = "yes"; then 13967 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\"`' 13968 else 13969 whole_archive_flag_spec_CXX='' 13970 fi 13971 link_all_deplibs_CXX=yes 13972 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 13973 case $cc_basename in 13974 ifort*) _lt_dar_can_shared=yes ;; 13975 *) _lt_dar_can_shared=$GCC ;; 13976 esac 13977 if test "$_lt_dar_can_shared" = "yes"; then 13978 output_verbose_link_cmd=func_echo_all 13979 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}" 13980 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 13981 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}" 13982 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}" 13983 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 13984 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}" 13985 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}" 13986 fi 13987 13988 else 13989 ld_shlibs_CXX=no 13990 fi 13991 13992 ;; 13993 13994 dgux*) 13995 case $cc_basename in 13996 ec++*) 13997 # FIXME: insert proper C++ library support 13998 ld_shlibs_CXX=no 13999 ;; 14000 ghcx*) 14001 # Green Hills C++ Compiler 14002 # FIXME: insert proper C++ library support 14003 ld_shlibs_CXX=no 14004 ;; 14005 *) 14006 # FIXME: insert proper C++ library support 14007 ld_shlibs_CXX=no 14008 ;; 14009 esac 14010 ;; 14011 14012 freebsd[12]*) 14013 # C++ shared libraries reported to be fairly broken before 14014 # switch to ELF 14015 ld_shlibs_CXX=no 14016 ;; 14017 14018 freebsd-elf*) 14019 archive_cmds_need_lc_CXX=no 14020 ;; 14021 14022 freebsd* | dragonfly*) 14023 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14024 # conventions 14025 ld_shlibs_CXX=yes 14026 ;; 14027 14028 gnu*) 14029 ;; 14030 14031 haiku*) 14032 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14033 link_all_deplibs_CXX=yes 14034 ;; 14035 14036 hpux9*) 14037 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 14038 hardcode_libdir_separator_CXX=: 14039 export_dynamic_flag_spec_CXX='${wl}-E' 14040 hardcode_direct_CXX=yes 14041 hardcode_minus_L_CXX=yes # Not in the search PATH, 14042 # but as the default 14043 # location of the library. 14044 14045 case $cc_basename in 14046 CC*) 14047 # FIXME: insert proper C++ library support 14048 ld_shlibs_CXX=no 14049 ;; 14050 aCC*) 14051 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' 14052 # Commands to make compiler produce verbose output that lists 14053 # what "hidden" libraries, object files and flags are used when 14054 # linking a shared library. 14055 # 14056 # There doesn't appear to be a way to prevent this compiler from 14057 # explicitly linking system object files so we need to strip them 14058 # from the output so that they don't get included in the library 14059 # dependencies. 14060 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"' 14061 ;; 14062 *) 14063 if test "$GXX" = yes; then 14064 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' 14065 else 14066 # FIXME: insert proper C++ library support 14067 ld_shlibs_CXX=no 14068 fi 14069 ;; 14070 esac 14071 ;; 14072 14073 hpux10*|hpux11*) 14074 if test $with_gnu_ld = no; then 14075 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 14076 hardcode_libdir_separator_CXX=: 14077 14078 case $host_cpu in 14079 hppa*64*|ia64*) 14080 ;; 14081 *) 14082 export_dynamic_flag_spec_CXX='${wl}-E' 14083 ;; 14084 esac 14085 fi 14086 case $host_cpu in 14087 hppa*64*|ia64*) 14088 hardcode_direct_CXX=no 14089 hardcode_shlibpath_var_CXX=no 14090 ;; 14091 *) 14092 hardcode_direct_CXX=yes 14093 hardcode_direct_absolute_CXX=yes 14094 hardcode_minus_L_CXX=yes # Not in the search PATH, 14095 # but as the default 14096 # location of the library. 14097 ;; 14098 esac 14099 14100 case $cc_basename in 14101 CC*) 14102 # FIXME: insert proper C++ library support 14103 ld_shlibs_CXX=no 14104 ;; 14105 aCC*) 14106 case $host_cpu in 14107 hppa*64*) 14108 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14109 ;; 14110 ia64*) 14111 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14112 ;; 14113 *) 14114 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14115 ;; 14116 esac 14117 # Commands to make compiler produce verbose output that lists 14118 # what "hidden" libraries, object files and flags are used when 14119 # linking a shared library. 14120 # 14121 # There doesn't appear to be a way to prevent this compiler from 14122 # explicitly linking system object files so we need to strip them 14123 # from the output so that they don't get included in the library 14124 # dependencies. 14125 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"' 14126 ;; 14127 *) 14128 if test "$GXX" = yes; then 14129 if test $with_gnu_ld = no; then 14130 case $host_cpu in 14131 hppa*64*) 14132 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14133 ;; 14134 ia64*) 14135 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14136 ;; 14137 *) 14138 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' 14139 ;; 14140 esac 14141 fi 14142 else 14143 # FIXME: insert proper C++ library support 14144 ld_shlibs_CXX=no 14145 fi 14146 ;; 14147 esac 14148 ;; 14149 14150 interix[3-9]*) 14151 hardcode_direct_CXX=no 14152 hardcode_shlibpath_var_CXX=no 14153 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14154 export_dynamic_flag_spec_CXX='${wl}-E' 14155 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14156 # Instead, shared libraries are loaded at an image base (0x10000000 by 14157 # default) and relocated if they conflict, which is a slow very memory 14158 # consuming and fragmenting process. To avoid this, we pick a random, 14159 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14160 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14161 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' 14162 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' 14163 ;; 14164 irix5* | irix6*) 14165 case $cc_basename in 14166 CC*) 14167 # SGI C++ 14168 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' 14169 14170 # Archives containing C++ object files must be created using 14171 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14172 # necessary to make sure instantiated templates are included 14173 # in the archive. 14174 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14175 ;; 14176 *) 14177 if test "$GXX" = yes; then 14178 if test "$with_gnu_ld" = no; then 14179 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' 14180 else 14181 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' 14182 fi 14183 fi 14184 link_all_deplibs_CXX=yes 14185 ;; 14186 esac 14187 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14188 hardcode_libdir_separator_CXX=: 14189 inherit_rpath_CXX=yes 14190 ;; 14191 14192 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14193 case $cc_basename in 14194 KCC*) 14195 # Kuck and Associates, Inc. (KAI) C++ Compiler 14196 14197 # KCC will only create a shared library if the output file 14198 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14199 # to its proper name (with version) after linking. 14200 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' 14201 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' 14202 # Commands to make compiler produce verbose output that lists 14203 # what "hidden" libraries, object files and flags are used when 14204 # linking a shared library. 14205 # 14206 # There doesn't appear to be a way to prevent this compiler from 14207 # explicitly linking system object files so we need to strip them 14208 # from the output so that they don't get included in the library 14209 # dependencies. 14210 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"' 14211 14212 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14213 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14214 14215 # Archives containing C++ object files must be created using 14216 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14217 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14218 ;; 14219 icpc* | ecpc* ) 14220 # Intel C++ 14221 with_gnu_ld=yes 14222 # version 8.0 and above of icpc choke on multiply defined symbols 14223 # if we add $predep_objects and $postdep_objects, however 7.1 and 14224 # earlier do not add the objects themselves. 14225 case `$CC -V 2>&1` in 14226 *"Version 7."*) 14227 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14228 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' 14229 ;; 14230 *) # Version 8.0 or newer 14231 tmp_idyn= 14232 case $host_cpu in 14233 ia64*) tmp_idyn=' -i_dynamic';; 14234 esac 14235 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14236 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' 14237 ;; 14238 esac 14239 archive_cmds_need_lc_CXX=no 14240 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14241 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14242 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 14243 ;; 14244 pgCC* | pgcpp*) 14245 # Portland Group C++ compiler 14246 case `$CC -V` in 14247 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14248 prelink_cmds_CXX='tpldir=Template.dir~ 14249 rm -rf $tpldir~ 14250 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14251 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14252 old_archive_cmds_CXX='tpldir=Template.dir~ 14253 rm -rf $tpldir~ 14254 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14255 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14256 $RANLIB $oldlib' 14257 archive_cmds_CXX='tpldir=Template.dir~ 14258 rm -rf $tpldir~ 14259 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14260 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 14261 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14262 rm -rf $tpldir~ 14263 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14264 $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' 14265 ;; 14266 *) # Version 6 and above use weak symbols 14267 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 14268 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' 14269 ;; 14270 esac 14271 14272 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 14273 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14274 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' 14275 ;; 14276 cxx*) 14277 # Compaq C++ 14278 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14279 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' 14280 14281 runpath_var=LD_RUN_PATH 14282 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14283 hardcode_libdir_separator_CXX=: 14284 14285 # Commands to make compiler produce verbose output that lists 14286 # what "hidden" libraries, object files and flags are used when 14287 # linking a shared library. 14288 # 14289 # There doesn't appear to be a way to prevent this compiler from 14290 # explicitly linking system object files so we need to strip them 14291 # from the output so that they don't get included in the library 14292 # dependencies. 14293 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' 14294 ;; 14295 xl* | mpixl* | bgxl*) 14296 # IBM XL 8.0 on PPC, with GNU ld 14297 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14298 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14299 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14300 if test "x$supports_anon_versioning" = xyes; then 14301 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14302 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14303 echo "local: *; };" >> $output_objdir/$libname.ver~ 14304 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14305 fi 14306 ;; 14307 *) 14308 case `$CC -V 2>&1 | sed 5q` in 14309 *Sun\ C*) 14310 # Sun C++ 5.9 14311 no_undefined_flag_CXX=' -zdefs' 14312 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14313 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' 14314 hardcode_libdir_flag_spec_CXX='-R$libdir' 14315 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' 14316 compiler_needs_object_CXX=yes 14317 14318 # Not sure whether something based on 14319 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14320 # would be better. 14321 output_verbose_link_cmd='func_echo_all' 14322 14323 # Archives containing C++ object files must be created using 14324 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14325 # necessary to make sure instantiated templates are included 14326 # in the archive. 14327 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14328 ;; 14329 esac 14330 ;; 14331 esac 14332 ;; 14333 14334 lynxos*) 14335 # FIXME: insert proper C++ library support 14336 ld_shlibs_CXX=no 14337 ;; 14338 14339 m88k*) 14340 # FIXME: insert proper C++ library support 14341 ld_shlibs_CXX=no 14342 ;; 14343 14344 mvs*) 14345 case $cc_basename in 14346 cxx*) 14347 # FIXME: insert proper C++ library support 14348 ld_shlibs_CXX=no 14349 ;; 14350 *) 14351 # FIXME: insert proper C++ library support 14352 ld_shlibs_CXX=no 14353 ;; 14354 esac 14355 ;; 14356 14357 netbsd*) 14358 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14359 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14360 wlarc= 14361 hardcode_libdir_flag_spec_CXX='-R$libdir' 14362 hardcode_direct_CXX=yes 14363 hardcode_shlibpath_var_CXX=no 14364 fi 14365 # Workaround some broken pre-1.5 toolchains 14366 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14367 ;; 14368 14369 *nto* | *qnx*) 14370 ld_shlibs_CXX=yes 14371 ;; 14372 14373 openbsd2*) 14374 # C++ shared libraries are fairly broken 14375 ld_shlibs_CXX=no 14376 ;; 14377 14378 openbsd*) 14379 if test -f /usr/libexec/ld.so; then 14380 hardcode_direct_CXX=yes 14381 hardcode_shlibpath_var_CXX=no 14382 hardcode_direct_absolute_CXX=yes 14383 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14384 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14385 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14386 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 14387 export_dynamic_flag_spec_CXX='${wl}-E' 14388 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14389 fi 14390 output_verbose_link_cmd=func_echo_all 14391 else 14392 ld_shlibs_CXX=no 14393 fi 14394 ;; 14395 14396 osf3* | osf4* | osf5*) 14397 case $cc_basename in 14398 KCC*) 14399 # Kuck and Associates, Inc. (KAI) C++ Compiler 14400 14401 # KCC will only create a shared library if the output file 14402 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14403 # to its proper name (with version) after linking. 14404 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' 14405 14406 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14407 hardcode_libdir_separator_CXX=: 14408 14409 # Archives containing C++ object files must be created using 14410 # the KAI C++ compiler. 14411 case $host in 14412 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14413 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14414 esac 14415 ;; 14416 RCC*) 14417 # Rational C++ 2.4.1 14418 # FIXME: insert proper C++ library support 14419 ld_shlibs_CXX=no 14420 ;; 14421 cxx*) 14422 case $host in 14423 osf3*) 14424 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 14425 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' 14426 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14427 ;; 14428 *) 14429 allow_undefined_flag_CXX=' -expect_unresolved \*' 14430 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' 14431 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14432 echo "-hidden">> $lib.exp~ 14433 $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~ 14434 $RM $lib.exp' 14435 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14436 ;; 14437 esac 14438 14439 hardcode_libdir_separator_CXX=: 14440 14441 # Commands to make compiler produce verbose output that lists 14442 # what "hidden" libraries, object files and flags are used when 14443 # linking a shared library. 14444 # 14445 # There doesn't appear to be a way to prevent this compiler from 14446 # explicitly linking system object files so we need to strip them 14447 # from the output so that they don't get included in the library 14448 # dependencies. 14449 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"' 14450 ;; 14451 *) 14452 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14453 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 14454 case $host in 14455 osf3*) 14456 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' 14457 ;; 14458 *) 14459 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' 14460 ;; 14461 esac 14462 14463 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14464 hardcode_libdir_separator_CXX=: 14465 14466 # Commands to make compiler produce verbose output that lists 14467 # what "hidden" libraries, object files and flags are used when 14468 # linking a shared library. 14469 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14470 14471 else 14472 # FIXME: insert proper C++ library support 14473 ld_shlibs_CXX=no 14474 fi 14475 ;; 14476 esac 14477 ;; 14478 14479 psos*) 14480 # FIXME: insert proper C++ library support 14481 ld_shlibs_CXX=no 14482 ;; 14483 14484 sunos4*) 14485 case $cc_basename in 14486 CC*) 14487 # Sun C++ 4.x 14488 # FIXME: insert proper C++ library support 14489 ld_shlibs_CXX=no 14490 ;; 14491 lcc*) 14492 # Lucid 14493 # FIXME: insert proper C++ library support 14494 ld_shlibs_CXX=no 14495 ;; 14496 *) 14497 # FIXME: insert proper C++ library support 14498 ld_shlibs_CXX=no 14499 ;; 14500 esac 14501 ;; 14502 14503 solaris*) 14504 case $cc_basename in 14505 CC* | sunCC*) 14506 # Sun C++ 4.2, 5.x and Centerline C++ 14507 archive_cmds_need_lc_CXX=yes 14508 no_undefined_flag_CXX=' -zdefs' 14509 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14510 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14511 $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' 14512 14513 hardcode_libdir_flag_spec_CXX='-R$libdir' 14514 hardcode_shlibpath_var_CXX=no 14515 case $host_os in 14516 solaris2.[0-5] | solaris2.[0-5].*) ;; 14517 *) 14518 # The compiler driver will combine and reorder linker options, 14519 # but understands `-z linker_flag'. 14520 # Supported since Solaris 2.6 (maybe 2.5.1?) 14521 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14522 ;; 14523 esac 14524 link_all_deplibs_CXX=yes 14525 14526 output_verbose_link_cmd='func_echo_all' 14527 14528 # Archives containing C++ object files must be created using 14529 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14530 # necessary to make sure instantiated templates are included 14531 # in the archive. 14532 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14533 ;; 14534 gcx*) 14535 # Green Hills C++ Compiler 14536 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14537 14538 # The C++ compiler must be used to create the archive. 14539 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14540 ;; 14541 *) 14542 # GNU C++ compiler with Solaris linker 14543 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14544 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 14545 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14546 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14547 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14548 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14549 14550 # Commands to make compiler produce verbose output that lists 14551 # what "hidden" libraries, object files and flags are used when 14552 # linking a shared library. 14553 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14554 else 14555 # g++ 2.7 appears to require `-G' NOT `-shared' on this 14556 # platform. 14557 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14558 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14559 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14560 14561 # Commands to make compiler produce verbose output that lists 14562 # what "hidden" libraries, object files and flags are used when 14563 # linking a shared library. 14564 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14565 fi 14566 14567 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 14568 case $host_os in 14569 solaris2.[0-5] | solaris2.[0-5].*) ;; 14570 *) 14571 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 14572 ;; 14573 esac 14574 fi 14575 ;; 14576 esac 14577 ;; 14578 14579 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14580 no_undefined_flag_CXX='${wl}-z,text' 14581 archive_cmds_need_lc_CXX=no 14582 hardcode_shlibpath_var_CXX=no 14583 runpath_var='LD_RUN_PATH' 14584 14585 case $cc_basename in 14586 CC*) 14587 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14588 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14589 ;; 14590 *) 14591 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14592 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14593 ;; 14594 esac 14595 ;; 14596 14597 sysv5* | sco3.2v5* | sco5v6*) 14598 # Note: We can NOT use -z defs as we might desire, because we do not 14599 # link with -lc, and that would cause any symbols used from libc to 14600 # always be unresolved, which means just about no library would 14601 # ever link correctly. If we're not using GNU ld we use -z text 14602 # though, which does catch some bad symbols but isn't as heavy-handed 14603 # as -z defs. 14604 no_undefined_flag_CXX='${wl}-z,text' 14605 allow_undefined_flag_CXX='${wl}-z,nodefs' 14606 archive_cmds_need_lc_CXX=no 14607 hardcode_shlibpath_var_CXX=no 14608 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 14609 hardcode_libdir_separator_CXX=':' 14610 link_all_deplibs_CXX=yes 14611 export_dynamic_flag_spec_CXX='${wl}-Bexport' 14612 runpath_var='LD_RUN_PATH' 14613 14614 case $cc_basename in 14615 CC*) 14616 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14617 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14618 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14619 '"$old_archive_cmds_CXX" 14620 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14621 '"$reload_cmds_CXX" 14622 ;; 14623 *) 14624 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14625 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14626 ;; 14627 esac 14628 ;; 14629 14630 tandem*) 14631 case $cc_basename in 14632 NCC*) 14633 # NonStop-UX NCC 3.20 14634 # FIXME: insert proper C++ library support 14635 ld_shlibs_CXX=no 14636 ;; 14637 *) 14638 # FIXME: insert proper C++ library support 14639 ld_shlibs_CXX=no 14640 ;; 14641 esac 14642 ;; 14643 14644 vxworks*) 14645 # FIXME: insert proper C++ library support 14646 ld_shlibs_CXX=no 14647 ;; 14648 14649 *) 14650 # FIXME: insert proper C++ library support 14651 ld_shlibs_CXX=no 14652 ;; 14653 esac 14654 14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14656$as_echo "$ld_shlibs_CXX" >&6; } 14657 test "$ld_shlibs_CXX" = no && can_build_shared=no 14658 14659 GCC_CXX="$GXX" 14660 LD_CXX="$LD" 14661 14662 ## CAVEAT EMPTOR: 14663 ## There is no encapsulation within the following macros, do not change 14664 ## the running order or otherwise move them around unless you know exactly 14665 ## what you are doing... 14666 # Dependencies to place before and after the object being linked: 14667predep_objects_CXX= 14668postdep_objects_CXX= 14669predeps_CXX= 14670postdeps_CXX= 14671compiler_lib_search_path_CXX= 14672 14673cat > conftest.$ac_ext <<_LT_EOF 14674class Foo 14675{ 14676public: 14677 Foo (void) { a = 0; } 14678private: 14679 int a; 14680}; 14681_LT_EOF 14682 14683 14684_lt_libdeps_save_CFLAGS=$CFLAGS 14685case "$CC $CFLAGS " in #( 14686*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14687*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14688esac 14689 14690if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14691 (eval $ac_compile) 2>&5 14692 ac_status=$? 14693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14694 test $ac_status = 0; }; then 14695 # Parse the compiler output and extract the necessary 14696 # objects, libraries and library flags. 14697 14698 # Sentinel used to keep track of whether or not we are before 14699 # the conftest object file. 14700 pre_test_object_deps_done=no 14701 14702 for p in `eval "$output_verbose_link_cmd"`; do 14703 case ${prev}${p} in 14704 14705 -L* | -R* | -l*) 14706 # Some compilers place space between "-{L,R}" and the path. 14707 # Remove the space. 14708 if test $p = "-L" || 14709 test $p = "-R"; then 14710 prev=$p 14711 continue 14712 fi 14713 14714 # Expand the sysroot to ease extracting the directories later. 14715 if test -z "$prev"; then 14716 case $p in 14717 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14718 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14719 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14720 esac 14721 fi 14722 case $p in 14723 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14724 esac 14725 if test "$pre_test_object_deps_done" = no; then 14726 case ${prev} in 14727 -L | -R) 14728 # Internal compiler library paths should come after those 14729 # provided the user. The postdeps already come after the 14730 # user supplied libs so there is no need to process them. 14731 if test -z "$compiler_lib_search_path_CXX"; then 14732 compiler_lib_search_path_CXX="${prev}${p}" 14733 else 14734 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 14735 fi 14736 ;; 14737 # The "-l" case would never come before the object being 14738 # linked, so don't bother handling this case. 14739 esac 14740 else 14741 if test -z "$postdeps_CXX"; then 14742 postdeps_CXX="${prev}${p}" 14743 else 14744 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 14745 fi 14746 fi 14747 prev= 14748 ;; 14749 14750 *.lto.$objext) ;; # Ignore GCC LTO objects 14751 *.$objext) 14752 # This assumes that the test object file only shows up 14753 # once in the compiler output. 14754 if test "$p" = "conftest.$objext"; then 14755 pre_test_object_deps_done=yes 14756 continue 14757 fi 14758 14759 if test "$pre_test_object_deps_done" = no; then 14760 if test -z "$predep_objects_CXX"; then 14761 predep_objects_CXX="$p" 14762 else 14763 predep_objects_CXX="$predep_objects_CXX $p" 14764 fi 14765 else 14766 if test -z "$postdep_objects_CXX"; then 14767 postdep_objects_CXX="$p" 14768 else 14769 postdep_objects_CXX="$postdep_objects_CXX $p" 14770 fi 14771 fi 14772 ;; 14773 14774 *) ;; # Ignore the rest. 14775 14776 esac 14777 done 14778 14779 # Clean up. 14780 rm -f a.out a.exe 14781else 14782 echo "libtool.m4: error: problem compiling CXX test program" 14783fi 14784 14785$RM -f confest.$objext 14786CFLAGS=$_lt_libdeps_save_CFLAGS 14787 14788# PORTME: override above test on systems where it is broken 14789case $host_os in 14790interix[3-9]*) 14791 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14792 # hack all around it, let's just trust "g++" to DTRT. 14793 predep_objects_CXX= 14794 postdep_objects_CXX= 14795 postdeps_CXX= 14796 ;; 14797 14798linux*) 14799 case `$CC -V 2>&1 | sed 5q` in 14800 *Sun\ C*) 14801 # Sun C++ 5.9 14802 14803 # The more standards-conforming stlport4 library is 14804 # incompatible with the Cstd library. Avoid specifying 14805 # it if it's in CXXFLAGS. Ignore libCrun as 14806 # -library=stlport4 depends on it. 14807 case " $CXX $CXXFLAGS " in 14808 *" -library=stlport4 "*) 14809 solaris_use_stlport4=yes 14810 ;; 14811 esac 14812 14813 if test "$solaris_use_stlport4" != yes; then 14814 postdeps_CXX='-library=Cstd -library=Crun' 14815 fi 14816 ;; 14817 esac 14818 ;; 14819 14820solaris*) 14821 case $cc_basename in 14822 CC* | sunCC*) 14823 # The more standards-conforming stlport4 library is 14824 # incompatible with the Cstd library. Avoid specifying 14825 # it if it's in CXXFLAGS. Ignore libCrun as 14826 # -library=stlport4 depends on it. 14827 case " $CXX $CXXFLAGS " in 14828 *" -library=stlport4 "*) 14829 solaris_use_stlport4=yes 14830 ;; 14831 esac 14832 14833 # Adding this requires a known-good setup of shared libraries for 14834 # Sun compiler versions before 5.6, else PIC objects from an old 14835 # archive will be linked into the output, leading to subtle bugs. 14836 if test "$solaris_use_stlport4" != yes; then 14837 postdeps_CXX='-library=Cstd -library=Crun' 14838 fi 14839 ;; 14840 esac 14841 ;; 14842esac 14843 14844 14845case " $postdeps_CXX " in 14846*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14847esac 14848 compiler_lib_search_dirs_CXX= 14849if test -n "${compiler_lib_search_path_CXX}"; then 14850 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 14851fi 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 lt_prog_compiler_wl_CXX= 14884lt_prog_compiler_pic_CXX= 14885lt_prog_compiler_static_CXX= 14886 14887 14888 # C++ specific cases for pic, static, wl, etc. 14889 if test "$GXX" = yes; then 14890 lt_prog_compiler_wl_CXX='-Wl,' 14891 lt_prog_compiler_static_CXX='-static' 14892 14893 case $host_os in 14894 aix*) 14895 # All AIX code is PIC. 14896 if test "$host_cpu" = ia64; then 14897 # AIX 5 now supports IA64 processor 14898 lt_prog_compiler_static_CXX='-Bstatic' 14899 fi 14900 ;; 14901 14902 amigaos*) 14903 case $host_cpu in 14904 powerpc) 14905 # see comment about AmigaOS4 .so support 14906 lt_prog_compiler_pic_CXX='-fPIC' 14907 ;; 14908 m68k) 14909 # FIXME: we need at least 68020 code to build shared libraries, but 14910 # adding the `-m68020' flag to GCC prevents building anything better, 14911 # like `-m68040'. 14912 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14913 ;; 14914 esac 14915 ;; 14916 14917 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14918 # PIC is the default for these OSes. 14919 ;; 14920 mingw* | cygwin* | os2* | pw32* | cegcc*) 14921 # This hack is so that the source file can tell whether it is being 14922 # built for inclusion in a dll (and should export symbols for example). 14923 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14924 # (--disable-auto-import) libraries 14925 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14926 ;; 14927 darwin* | rhapsody*) 14928 # PIC is the default on this platform 14929 # Common symbols not allowed in MH_DYLIB files 14930 lt_prog_compiler_pic_CXX='-fno-common' 14931 ;; 14932 *djgpp*) 14933 # DJGPP does not support shared libraries at all 14934 lt_prog_compiler_pic_CXX= 14935 ;; 14936 haiku*) 14937 # PIC is the default for Haiku. 14938 # The "-static" flag exists, but is broken. 14939 lt_prog_compiler_static_CXX= 14940 ;; 14941 interix[3-9]*) 14942 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14943 # Instead, we relocate shared libraries at runtime. 14944 ;; 14945 sysv4*MP*) 14946 if test -d /usr/nec; then 14947 lt_prog_compiler_pic_CXX=-Kconform_pic 14948 fi 14949 ;; 14950 hpux*) 14951 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14952 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14953 # sets the default TLS model and affects inlining. 14954 case $host_cpu in 14955 hppa*64*) 14956 ;; 14957 *) 14958 lt_prog_compiler_pic_CXX='-fPIC' 14959 ;; 14960 esac 14961 ;; 14962 *qnx* | *nto*) 14963 # QNX uses GNU C++, but need to define -shared option too, otherwise 14964 # it will coredump. 14965 lt_prog_compiler_pic_CXX='-fPIC -shared' 14966 ;; 14967 *) 14968 lt_prog_compiler_pic_CXX='-fPIC' 14969 ;; 14970 esac 14971 else 14972 case $host_os in 14973 aix[4-9]*) 14974 # All AIX code is PIC. 14975 if test "$host_cpu" = ia64; then 14976 # AIX 5 now supports IA64 processor 14977 lt_prog_compiler_static_CXX='-Bstatic' 14978 else 14979 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14980 fi 14981 ;; 14982 chorus*) 14983 case $cc_basename in 14984 cxch68*) 14985 # Green Hills C++ Compiler 14986 # _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" 14987 ;; 14988 esac 14989 ;; 14990 mingw* | cygwin* | os2* | pw32* | cegcc*) 14991 # This hack is so that the source file can tell whether it is being 14992 # built for inclusion in a dll (and should export symbols for example). 14993 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14994 ;; 14995 dgux*) 14996 case $cc_basename in 14997 ec++*) 14998 lt_prog_compiler_pic_CXX='-KPIC' 14999 ;; 15000 ghcx*) 15001 # Green Hills C++ Compiler 15002 lt_prog_compiler_pic_CXX='-pic' 15003 ;; 15004 *) 15005 ;; 15006 esac 15007 ;; 15008 freebsd* | dragonfly*) 15009 # FreeBSD uses GNU C++ 15010 ;; 15011 hpux9* | hpux10* | hpux11*) 15012 case $cc_basename in 15013 CC*) 15014 lt_prog_compiler_wl_CXX='-Wl,' 15015 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 15016 if test "$host_cpu" != ia64; then 15017 lt_prog_compiler_pic_CXX='+Z' 15018 fi 15019 ;; 15020 aCC*) 15021 lt_prog_compiler_wl_CXX='-Wl,' 15022 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 15023 case $host_cpu in 15024 hppa*64*|ia64*) 15025 # +Z the default 15026 ;; 15027 *) 15028 lt_prog_compiler_pic_CXX='+Z' 15029 ;; 15030 esac 15031 ;; 15032 *) 15033 ;; 15034 esac 15035 ;; 15036 interix*) 15037 # This is c89, which is MS Visual C++ (no shared libs) 15038 # Anyone wants to do a port? 15039 ;; 15040 irix5* | irix6* | nonstopux*) 15041 case $cc_basename in 15042 CC*) 15043 lt_prog_compiler_wl_CXX='-Wl,' 15044 lt_prog_compiler_static_CXX='-non_shared' 15045 # CC pic flag -KPIC is the default. 15046 ;; 15047 *) 15048 ;; 15049 esac 15050 ;; 15051 linux* | k*bsd*-gnu | kopensolaris*-gnu) 15052 case $cc_basename in 15053 KCC*) 15054 # KAI C++ Compiler 15055 lt_prog_compiler_wl_CXX='--backend -Wl,' 15056 lt_prog_compiler_pic_CXX='-fPIC' 15057 ;; 15058 ecpc* ) 15059 # old Intel C++ for x86_64 which still supported -KPIC. 15060 lt_prog_compiler_wl_CXX='-Wl,' 15061 lt_prog_compiler_pic_CXX='-KPIC' 15062 lt_prog_compiler_static_CXX='-static' 15063 ;; 15064 icpc* ) 15065 # Intel C++, used to be incompatible with GCC. 15066 # ICC 10 doesn't accept -KPIC any more. 15067 lt_prog_compiler_wl_CXX='-Wl,' 15068 lt_prog_compiler_pic_CXX='-fPIC' 15069 lt_prog_compiler_static_CXX='-static' 15070 ;; 15071 pgCC* | pgcpp*) 15072 # Portland Group C++ compiler 15073 lt_prog_compiler_wl_CXX='-Wl,' 15074 lt_prog_compiler_pic_CXX='-fpic' 15075 lt_prog_compiler_static_CXX='-Bstatic' 15076 ;; 15077 cxx*) 15078 # Compaq C++ 15079 # Make sure the PIC flag is empty. It appears that all Alpha 15080 # Linux and Compaq Tru64 Unix objects are PIC. 15081 lt_prog_compiler_pic_CXX= 15082 lt_prog_compiler_static_CXX='-non_shared' 15083 ;; 15084 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15085 # IBM XL 8.0, 9.0 on PPC and BlueGene 15086 lt_prog_compiler_wl_CXX='-Wl,' 15087 lt_prog_compiler_pic_CXX='-qpic' 15088 lt_prog_compiler_static_CXX='-qstaticlink' 15089 ;; 15090 *) 15091 case `$CC -V 2>&1 | sed 5q` in 15092 *Sun\ C*) 15093 # Sun C++ 5.9 15094 lt_prog_compiler_pic_CXX='-KPIC' 15095 lt_prog_compiler_static_CXX='-Bstatic' 15096 lt_prog_compiler_wl_CXX='-Qoption ld ' 15097 ;; 15098 esac 15099 ;; 15100 esac 15101 ;; 15102 lynxos*) 15103 ;; 15104 m88k*) 15105 ;; 15106 mvs*) 15107 case $cc_basename in 15108 cxx*) 15109 lt_prog_compiler_pic_CXX='-W c,exportall' 15110 ;; 15111 *) 15112 ;; 15113 esac 15114 ;; 15115 netbsd*) 15116 ;; 15117 *qnx* | *nto*) 15118 # QNX uses GNU C++, but need to define -shared option too, otherwise 15119 # it will coredump. 15120 lt_prog_compiler_pic_CXX='-fPIC -shared' 15121 ;; 15122 osf3* | osf4* | osf5*) 15123 case $cc_basename in 15124 KCC*) 15125 lt_prog_compiler_wl_CXX='--backend -Wl,' 15126 ;; 15127 RCC*) 15128 # Rational C++ 2.4.1 15129 lt_prog_compiler_pic_CXX='-pic' 15130 ;; 15131 cxx*) 15132 # Digital/Compaq C++ 15133 lt_prog_compiler_wl_CXX='-Wl,' 15134 # Make sure the PIC flag is empty. It appears that all Alpha 15135 # Linux and Compaq Tru64 Unix objects are PIC. 15136 lt_prog_compiler_pic_CXX= 15137 lt_prog_compiler_static_CXX='-non_shared' 15138 ;; 15139 *) 15140 ;; 15141 esac 15142 ;; 15143 psos*) 15144 ;; 15145 solaris*) 15146 case $cc_basename in 15147 CC* | sunCC*) 15148 # Sun C++ 4.2, 5.x and Centerline C++ 15149 lt_prog_compiler_pic_CXX='-KPIC' 15150 lt_prog_compiler_static_CXX='-Bstatic' 15151 lt_prog_compiler_wl_CXX='-Qoption ld ' 15152 ;; 15153 gcx*) 15154 # Green Hills C++ Compiler 15155 lt_prog_compiler_pic_CXX='-PIC' 15156 ;; 15157 *) 15158 ;; 15159 esac 15160 ;; 15161 sunos4*) 15162 case $cc_basename in 15163 CC*) 15164 # Sun C++ 4.x 15165 lt_prog_compiler_pic_CXX='-pic' 15166 lt_prog_compiler_static_CXX='-Bstatic' 15167 ;; 15168 lcc*) 15169 # Lucid 15170 lt_prog_compiler_pic_CXX='-pic' 15171 ;; 15172 *) 15173 ;; 15174 esac 15175 ;; 15176 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15177 case $cc_basename in 15178 CC*) 15179 lt_prog_compiler_wl_CXX='-Wl,' 15180 lt_prog_compiler_pic_CXX='-KPIC' 15181 lt_prog_compiler_static_CXX='-Bstatic' 15182 ;; 15183 esac 15184 ;; 15185 tandem*) 15186 case $cc_basename in 15187 NCC*) 15188 # NonStop-UX NCC 3.20 15189 lt_prog_compiler_pic_CXX='-KPIC' 15190 ;; 15191 *) 15192 ;; 15193 esac 15194 ;; 15195 vxworks*) 15196 ;; 15197 *) 15198 lt_prog_compiler_can_build_shared_CXX=no 15199 ;; 15200 esac 15201 fi 15202 15203case $host_os in 15204 # For platforms which do not support PIC, -DPIC is meaningless: 15205 *djgpp*) 15206 lt_prog_compiler_pic_CXX= 15207 ;; 15208 *) 15209 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15210 ;; 15211esac 15212 15213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15214$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15215if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15216 $as_echo_n "(cached) " >&6 15217else 15218 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15219fi 15220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15221$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15222lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15223 15224# 15225# Check to make sure the PIC flag actually works. 15226# 15227if test -n "$lt_prog_compiler_pic_CXX"; then 15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15229$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15230if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15231 $as_echo_n "(cached) " >&6 15232else 15233 lt_cv_prog_compiler_pic_works_CXX=no 15234 ac_outfile=conftest.$ac_objext 15235 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15236 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 15237 # Insert the option either (1) after the last *FLAGS variable, or 15238 # (2) before a word containing "conftest.", or (3) at the end. 15239 # Note that $ac_compile itself does not contain backslashes and begins 15240 # with a dollar sign (not a hyphen), so the echo should work correctly. 15241 # The option is referenced via a variable to avoid confusing sed. 15242 lt_compile=`echo "$ac_compile" | $SED \ 15243 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15244 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15245 -e 's:$: $lt_compiler_flag:'` 15246 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15247 (eval "$lt_compile" 2>conftest.err) 15248 ac_status=$? 15249 cat conftest.err >&5 15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15251 if (exit $ac_status) && test -s "$ac_outfile"; then 15252 # The compiler can only warn and ignore the option if not recognized 15253 # So say no if there are warnings other than the usual output. 15254 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15255 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15256 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15257 lt_cv_prog_compiler_pic_works_CXX=yes 15258 fi 15259 fi 15260 $RM conftest* 15261 15262fi 15263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15264$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15265 15266if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 15267 case $lt_prog_compiler_pic_CXX in 15268 "" | " "*) ;; 15269 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15270 esac 15271else 15272 lt_prog_compiler_pic_CXX= 15273 lt_prog_compiler_can_build_shared_CXX=no 15274fi 15275 15276fi 15277 15278 15279 15280 15281 15282# 15283# Check to make sure the static flag actually works. 15284# 15285wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15287$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15288if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15289 $as_echo_n "(cached) " >&6 15290else 15291 lt_cv_prog_compiler_static_works_CXX=no 15292 save_LDFLAGS="$LDFLAGS" 15293 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15294 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15295 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15296 # The linker can only warn and ignore the option if not recognized 15297 # So say no if there are warnings 15298 if test -s conftest.err; then 15299 # Append any errors to the config.log. 15300 cat conftest.err 1>&5 15301 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15303 if diff conftest.exp conftest.er2 >/dev/null; then 15304 lt_cv_prog_compiler_static_works_CXX=yes 15305 fi 15306 else 15307 lt_cv_prog_compiler_static_works_CXX=yes 15308 fi 15309 fi 15310 $RM -r conftest* 15311 LDFLAGS="$save_LDFLAGS" 15312 15313fi 15314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15315$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15316 15317if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 15318 : 15319else 15320 lt_prog_compiler_static_CXX= 15321fi 15322 15323 15324 15325 15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15327$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15328if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15329 $as_echo_n "(cached) " >&6 15330else 15331 lt_cv_prog_compiler_c_o_CXX=no 15332 $RM -r conftest 2>/dev/null 15333 mkdir conftest 15334 cd conftest 15335 mkdir out 15336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15337 15338 lt_compiler_flag="-o out/conftest2.$ac_objext" 15339 # Insert the option either (1) after the last *FLAGS variable, or 15340 # (2) before a word containing "conftest.", or (3) at the end. 15341 # Note that $ac_compile itself does not contain backslashes and begins 15342 # with a dollar sign (not a hyphen), so the echo should work correctly. 15343 lt_compile=`echo "$ac_compile" | $SED \ 15344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15346 -e 's:$: $lt_compiler_flag:'` 15347 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15348 (eval "$lt_compile" 2>out/conftest.err) 15349 ac_status=$? 15350 cat out/conftest.err >&5 15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15352 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15353 then 15354 # The compiler can only warn and ignore the option if not recognized 15355 # So say no if there are warnings 15356 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15357 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15358 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15359 lt_cv_prog_compiler_c_o_CXX=yes 15360 fi 15361 fi 15362 chmod u+w . 2>&5 15363 $RM conftest* 15364 # SGI C++ compiler will create directory out/ii_files/ for 15365 # template instantiation 15366 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15367 $RM out/* && rmdir out 15368 cd .. 15369 $RM -r conftest 15370 $RM conftest* 15371 15372fi 15373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15374$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15375 15376 15377 15378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15379$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15380if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15381 $as_echo_n "(cached) " >&6 15382else 15383 lt_cv_prog_compiler_c_o_CXX=no 15384 $RM -r conftest 2>/dev/null 15385 mkdir conftest 15386 cd conftest 15387 mkdir out 15388 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15389 15390 lt_compiler_flag="-o out/conftest2.$ac_objext" 15391 # Insert the option either (1) after the last *FLAGS variable, or 15392 # (2) before a word containing "conftest.", or (3) at the end. 15393 # Note that $ac_compile itself does not contain backslashes and begins 15394 # with a dollar sign (not a hyphen), so the echo should work correctly. 15395 lt_compile=`echo "$ac_compile" | $SED \ 15396 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15397 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15398 -e 's:$: $lt_compiler_flag:'` 15399 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15400 (eval "$lt_compile" 2>out/conftest.err) 15401 ac_status=$? 15402 cat out/conftest.err >&5 15403 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15404 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15405 then 15406 # The compiler can only warn and ignore the option if not recognized 15407 # So say no if there are warnings 15408 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15409 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15410 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15411 lt_cv_prog_compiler_c_o_CXX=yes 15412 fi 15413 fi 15414 chmod u+w . 2>&5 15415 $RM conftest* 15416 # SGI C++ compiler will create directory out/ii_files/ for 15417 # template instantiation 15418 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15419 $RM out/* && rmdir out 15420 cd .. 15421 $RM -r conftest 15422 $RM conftest* 15423 15424fi 15425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15426$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15427 15428 15429 15430 15431hard_links="nottested" 15432if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 15433 # do not overwrite the value of need_locks provided by the user 15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15435$as_echo_n "checking if we can lock with hard links... " >&6; } 15436 hard_links=yes 15437 $RM conftest* 15438 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15439 touch conftest.a 15440 ln conftest.a conftest.b 2>&5 || hard_links=no 15441 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15443$as_echo "$hard_links" >&6; } 15444 if test "$hard_links" = no; then 15445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15446$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15447 need_locks=warn 15448 fi 15449else 15450 need_locks=no 15451fi 15452 15453 15454 15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15456$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15457 15458 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15459 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15460 case $host_os in 15461 aix[4-9]*) 15462 # If we're using GNU nm, then we don't want the "-C" option. 15463 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15464 # Also, AIX nm treats weak defined symbols like other global defined 15465 # symbols, whereas GNU nm marks them as "W". 15466 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15467 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' 15468 else 15469 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' 15470 fi 15471 ;; 15472 pw32*) 15473 export_symbols_cmds_CXX="$ltdll_cmds" 15474 ;; 15475 cygwin* | mingw* | cegcc*) 15476 case $cc_basename in 15477 cl*) ;; 15478 *) 15479 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' 15480 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15481 ;; 15482 esac 15483 ;; 15484 *) 15485 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15486 ;; 15487 esac 15488 15489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15490$as_echo "$ld_shlibs_CXX" >&6; } 15491test "$ld_shlibs_CXX" = no && can_build_shared=no 15492 15493with_gnu_ld_CXX=$with_gnu_ld 15494 15495 15496 15497 15498 15499 15500# 15501# Do we need to explicitly link libc? 15502# 15503case "x$archive_cmds_need_lc_CXX" in 15504x|xyes) 15505 # Assume -lc should be added 15506 archive_cmds_need_lc_CXX=yes 15507 15508 if test "$enable_shared" = yes && test "$GCC" = yes; then 15509 case $archive_cmds_CXX in 15510 *'~'*) 15511 # FIXME: we may have to deal with multi-command sequences. 15512 ;; 15513 '$CC '*) 15514 # Test whether the compiler implicitly links with -lc since on some 15515 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15516 # to ld, don't add -lc before -lgcc. 15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15518$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15519if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15520 $as_echo_n "(cached) " >&6 15521else 15522 $RM conftest* 15523 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15524 15525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15526 (eval $ac_compile) 2>&5 15527 ac_status=$? 15528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15529 test $ac_status = 0; } 2>conftest.err; then 15530 soname=conftest 15531 lib=conftest 15532 libobjs=conftest.$ac_objext 15533 deplibs= 15534 wl=$lt_prog_compiler_wl_CXX 15535 pic_flag=$lt_prog_compiler_pic_CXX 15536 compiler_flags=-v 15537 linker_flags=-v 15538 verstring= 15539 output_objdir=. 15540 libname=conftest 15541 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15542 allow_undefined_flag_CXX= 15543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15544 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15545 ac_status=$? 15546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15547 test $ac_status = 0; } 15548 then 15549 lt_cv_archive_cmds_need_lc_CXX=no 15550 else 15551 lt_cv_archive_cmds_need_lc_CXX=yes 15552 fi 15553 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15554 else 15555 cat conftest.err 1>&5 15556 fi 15557 $RM conftest* 15558 15559fi 15560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15561$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15562 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15563 ;; 15564 esac 15565 fi 15566 ;; 15567esac 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15633$as_echo_n "checking dynamic linker characteristics... " >&6; } 15634 15635library_names_spec= 15636libname_spec='lib$name' 15637soname_spec= 15638shrext_cmds=".so" 15639postinstall_cmds= 15640postuninstall_cmds= 15641finish_cmds= 15642finish_eval= 15643shlibpath_var= 15644shlibpath_overrides_runpath=unknown 15645version_type=none 15646dynamic_linker="$host_os ld.so" 15647sys_lib_dlsearch_path_spec="/lib /usr/lib" 15648need_lib_prefix=unknown 15649hardcode_into_libs=no 15650 15651# when you set need_version to no, make sure it does not cause -set_version 15652# flags to be left without arguments 15653need_version=unknown 15654 15655case $host_os in 15656aix3*) 15657 version_type=linux 15658 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15659 shlibpath_var=LIBPATH 15660 15661 # AIX 3 has no versioning support, so we append a major version to the name. 15662 soname_spec='${libname}${release}${shared_ext}$major' 15663 ;; 15664 15665aix[4-9]*) 15666 version_type=linux 15667 need_lib_prefix=no 15668 need_version=no 15669 hardcode_into_libs=yes 15670 if test "$host_cpu" = ia64; then 15671 # AIX 5 supports IA64 15672 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15673 shlibpath_var=LD_LIBRARY_PATH 15674 else 15675 # With GCC up to 2.95.x, collect2 would create an import file 15676 # for dependence libraries. The import file would start with 15677 # the line `#! .'. This would cause the generated library to 15678 # depend on `.', always an invalid library. This was fixed in 15679 # development snapshots of GCC prior to 3.0. 15680 case $host_os in 15681 aix4 | aix4.[01] | aix4.[01].*) 15682 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15683 echo ' yes ' 15684 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 15685 : 15686 else 15687 can_build_shared=no 15688 fi 15689 ;; 15690 esac 15691 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15692 # soname into executable. Probably we can add versioning support to 15693 # collect2, so additional links can be useful in future. 15694 if test "$aix_use_runtimelinking" = yes; then 15695 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15696 # instead of lib<name>.a to let people know that these are not 15697 # typical AIX shared libraries. 15698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15699 else 15700 # We preserve .a as extension for shared libraries through AIX4.2 15701 # and later when we are not doing run time linking. 15702 library_names_spec='${libname}${release}.a $libname.a' 15703 soname_spec='${libname}${release}${shared_ext}$major' 15704 fi 15705 shlibpath_var=LIBPATH 15706 fi 15707 ;; 15708 15709amigaos*) 15710 case $host_cpu in 15711 powerpc) 15712 # Since July 2007 AmigaOS4 officially supports .so libraries. 15713 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15715 ;; 15716 m68k) 15717 library_names_spec='$libname.ixlibrary $libname.a' 15718 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15719 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' 15720 ;; 15721 esac 15722 ;; 15723 15724beos*) 15725 library_names_spec='${libname}${shared_ext}' 15726 dynamic_linker="$host_os ld.so" 15727 shlibpath_var=LIBRARY_PATH 15728 ;; 15729 15730bsdi[45]*) 15731 version_type=linux 15732 need_version=no 15733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15734 soname_spec='${libname}${release}${shared_ext}$major' 15735 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15736 shlibpath_var=LD_LIBRARY_PATH 15737 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15738 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15739 # the default ld.so.conf also contains /usr/contrib/lib and 15740 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15741 # libtool to hard-code these into programs 15742 ;; 15743 15744cygwin* | mingw* | pw32* | cegcc*) 15745 version_type=windows 15746 shrext_cmds=".dll" 15747 need_version=no 15748 need_lib_prefix=no 15749 15750 case $GCC,$cc_basename in 15751 yes,*) 15752 # gcc 15753 library_names_spec='$libname.dll.a' 15754 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15755 postinstall_cmds='base_file=`basename \${file}`~ 15756 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15757 dldir=$destdir/`dirname \$dlpath`~ 15758 test -d \$dldir || mkdir -p \$dldir~ 15759 $install_prog $dir/$dlname \$dldir/$dlname~ 15760 chmod a+x \$dldir/$dlname~ 15761 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15762 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15763 fi' 15764 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15765 dlpath=$dir/\$dldll~ 15766 $RM \$dlpath' 15767 shlibpath_overrides_runpath=yes 15768 15769 case $host_os in 15770 cygwin*) 15771 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15772 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15773 15774 ;; 15775 mingw* | cegcc*) 15776 # MinGW DLLs use traditional 'lib' prefix 15777 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15778 ;; 15779 pw32*) 15780 # pw32 DLLs use 'pw' prefix rather than 'lib' 15781 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15782 ;; 15783 esac 15784 dynamic_linker='Win32 ld.exe' 15785 ;; 15786 15787 *,cl*) 15788 # Native MSVC 15789 libname_spec='$name' 15790 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15791 library_names_spec='${libname}.dll.lib' 15792 15793 case $build_os in 15794 mingw*) 15795 sys_lib_search_path_spec= 15796 lt_save_ifs=$IFS 15797 IFS=';' 15798 for lt_path in $LIB 15799 do 15800 IFS=$lt_save_ifs 15801 # Let DOS variable expansion print the short 8.3 style file name. 15802 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15803 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15804 done 15805 IFS=$lt_save_ifs 15806 # Convert to MSYS style. 15807 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15808 ;; 15809 cygwin*) 15810 # Convert to unix form, then to dos form, then back to unix form 15811 # but this time dos style (no spaces!) so that the unix form looks 15812 # like /cygdrive/c/PROGRA~1:/cygdr... 15813 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15814 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15815 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15816 ;; 15817 *) 15818 sys_lib_search_path_spec="$LIB" 15819 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15820 # It is most probably a Windows format PATH. 15821 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15822 else 15823 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15824 fi 15825 # FIXME: find the short name or the path components, as spaces are 15826 # common. (e.g. "Program Files" -> "PROGRA~1") 15827 ;; 15828 esac 15829 15830 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15831 postinstall_cmds='base_file=`basename \${file}`~ 15832 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15833 dldir=$destdir/`dirname \$dlpath`~ 15834 test -d \$dldir || mkdir -p \$dldir~ 15835 $install_prog $dir/$dlname \$dldir/$dlname' 15836 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15837 dlpath=$dir/\$dldll~ 15838 $RM \$dlpath' 15839 shlibpath_overrides_runpath=yes 15840 dynamic_linker='Win32 link.exe' 15841 ;; 15842 15843 *) 15844 # Assume MSVC wrapper 15845 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15846 dynamic_linker='Win32 ld.exe' 15847 ;; 15848 esac 15849 # FIXME: first we should search . and the directory the executable is in 15850 shlibpath_var=PATH 15851 ;; 15852 15853darwin* | rhapsody*) 15854 dynamic_linker="$host_os dyld" 15855 version_type=darwin 15856 need_lib_prefix=no 15857 need_version=no 15858 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15859 soname_spec='${libname}${release}${major}$shared_ext' 15860 shlibpath_overrides_runpath=yes 15861 shlibpath_var=DYLD_LIBRARY_PATH 15862 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15863 15864 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15865 ;; 15866 15867dgux*) 15868 version_type=linux 15869 need_lib_prefix=no 15870 need_version=no 15871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15872 soname_spec='${libname}${release}${shared_ext}$major' 15873 shlibpath_var=LD_LIBRARY_PATH 15874 ;; 15875 15876freebsd1*) 15877 dynamic_linker=no 15878 ;; 15879 15880freebsd* | dragonfly*) 15881 # DragonFly does not have aout. When/if they implement a new 15882 # versioning mechanism, adjust this. 15883 if test -x /usr/bin/objformat; then 15884 objformat=`/usr/bin/objformat` 15885 else 15886 case $host_os in 15887 freebsd[123]*) objformat=aout ;; 15888 *) objformat=elf ;; 15889 esac 15890 fi 15891 version_type=freebsd-$objformat 15892 case $version_type in 15893 freebsd-elf*) 15894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15895 need_version=no 15896 need_lib_prefix=no 15897 ;; 15898 freebsd-*) 15899 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15900 need_version=yes 15901 ;; 15902 esac 15903 shlibpath_var=LD_LIBRARY_PATH 15904 case $host_os in 15905 freebsd2*) 15906 shlibpath_overrides_runpath=yes 15907 ;; 15908 freebsd3.[01]* | freebsdelf3.[01]*) 15909 shlibpath_overrides_runpath=yes 15910 hardcode_into_libs=yes 15911 ;; 15912 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15913 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15914 shlibpath_overrides_runpath=no 15915 hardcode_into_libs=yes 15916 ;; 15917 *) # from 4.6 on, and DragonFly 15918 shlibpath_overrides_runpath=yes 15919 hardcode_into_libs=yes 15920 ;; 15921 esac 15922 ;; 15923 15924gnu*) 15925 version_type=linux 15926 need_lib_prefix=no 15927 need_version=no 15928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15929 soname_spec='${libname}${release}${shared_ext}$major' 15930 shlibpath_var=LD_LIBRARY_PATH 15931 hardcode_into_libs=yes 15932 ;; 15933 15934haiku*) 15935 version_type=linux 15936 need_lib_prefix=no 15937 need_version=no 15938 dynamic_linker="$host_os runtime_loader" 15939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15940 soname_spec='${libname}${release}${shared_ext}$major' 15941 shlibpath_var=LIBRARY_PATH 15942 shlibpath_overrides_runpath=yes 15943 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15944 hardcode_into_libs=yes 15945 ;; 15946 15947hpux9* | hpux10* | hpux11*) 15948 # Give a soname corresponding to the major version so that dld.sl refuses to 15949 # link against other versions. 15950 version_type=sunos 15951 need_lib_prefix=no 15952 need_version=no 15953 case $host_cpu in 15954 ia64*) 15955 shrext_cmds='.so' 15956 hardcode_into_libs=yes 15957 dynamic_linker="$host_os dld.so" 15958 shlibpath_var=LD_LIBRARY_PATH 15959 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15961 soname_spec='${libname}${release}${shared_ext}$major' 15962 if test "X$HPUX_IA64_MODE" = X32; then 15963 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15964 else 15965 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15966 fi 15967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15968 ;; 15969 hppa*64*) 15970 shrext_cmds='.sl' 15971 hardcode_into_libs=yes 15972 dynamic_linker="$host_os dld.sl" 15973 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15974 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15976 soname_spec='${libname}${release}${shared_ext}$major' 15977 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15978 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15979 ;; 15980 *) 15981 shrext_cmds='.sl' 15982 dynamic_linker="$host_os dld.sl" 15983 shlibpath_var=SHLIB_PATH 15984 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15986 soname_spec='${libname}${release}${shared_ext}$major' 15987 ;; 15988 esac 15989 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15990 postinstall_cmds='chmod 555 $lib' 15991 # or fails outright, so override atomically: 15992 install_override_mode=555 15993 ;; 15994 15995interix[3-9]*) 15996 version_type=linux 15997 need_lib_prefix=no 15998 need_version=no 15999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16000 soname_spec='${libname}${release}${shared_ext}$major' 16001 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16002 shlibpath_var=LD_LIBRARY_PATH 16003 shlibpath_overrides_runpath=no 16004 hardcode_into_libs=yes 16005 ;; 16006 16007irix5* | irix6* | nonstopux*) 16008 case $host_os in 16009 nonstopux*) version_type=nonstopux ;; 16010 *) 16011 if test "$lt_cv_prog_gnu_ld" = yes; then 16012 version_type=linux 16013 else 16014 version_type=irix 16015 fi ;; 16016 esac 16017 need_lib_prefix=no 16018 need_version=no 16019 soname_spec='${libname}${release}${shared_ext}$major' 16020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16021 case $host_os in 16022 irix5* | nonstopux*) 16023 libsuff= shlibsuff= 16024 ;; 16025 *) 16026 case $LD in # libtool.m4 will add one of these switches to LD 16027 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16028 libsuff= shlibsuff= libmagic=32-bit;; 16029 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16030 libsuff=32 shlibsuff=N32 libmagic=N32;; 16031 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16032 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16033 *) libsuff= shlibsuff= libmagic=never-match;; 16034 esac 16035 ;; 16036 esac 16037 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16038 shlibpath_overrides_runpath=no 16039 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16040 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16041 hardcode_into_libs=yes 16042 ;; 16043 16044# No shared lib support for Linux oldld, aout, or coff. 16045linux*oldld* | linux*aout* | linux*coff*) 16046 dynamic_linker=no 16047 ;; 16048 16049# This must be Linux ELF. 16050linux* | k*bsd*-gnu | kopensolaris*-gnu) 16051 version_type=linux 16052 need_lib_prefix=no 16053 need_version=no 16054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16055 soname_spec='${libname}${release}${shared_ext}$major' 16056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16057 shlibpath_var=LD_LIBRARY_PATH 16058 shlibpath_overrides_runpath=no 16059 16060 # Some binutils ld are patched to set DT_RUNPATH 16061 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16062 $as_echo_n "(cached) " >&6 16063else 16064 lt_cv_shlibpath_overrides_runpath=no 16065 save_LDFLAGS=$LDFLAGS 16066 save_libdir=$libdir 16067 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16068 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16070/* end confdefs.h. */ 16071 16072int 16073main () 16074{ 16075 16076 ; 16077 return 0; 16078} 16079_ACEOF 16080if ac_fn_cxx_try_link "$LINENO"; then : 16081 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16082 lt_cv_shlibpath_overrides_runpath=yes 16083fi 16084fi 16085rm -f core conftest.err conftest.$ac_objext \ 16086 conftest$ac_exeext conftest.$ac_ext 16087 LDFLAGS=$save_LDFLAGS 16088 libdir=$save_libdir 16089 16090fi 16091 16092 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16093 16094 # This implies no fast_install, which is unacceptable. 16095 # Some rework will be needed to allow for fast_install 16096 # before this can be enabled. 16097 hardcode_into_libs=yes 16098 16099 # Add ABI-specific directories to the system library path. 16100 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 16101 16102 # Append ld.so.conf contents to the search path 16103 if test -f /etc/ld.so.conf; then 16104 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' ' '` 16105 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 16106 16107 fi 16108 16109 # We used to test for /lib/ld.so.1 and disable shared libraries on 16110 # powerpc, because MkLinux only supported shared libraries with the 16111 # GNU dynamic linker. Since this was broken with cross compilers, 16112 # most powerpc-linux boxes support dynamic linking these days and 16113 # people can always --disable-shared, the test was removed, and we 16114 # assume the GNU/Linux dynamic linker is in use. 16115 dynamic_linker='GNU/Linux ld.so' 16116 ;; 16117 16118netbsd*) 16119 version_type=sunos 16120 need_lib_prefix=no 16121 need_version=no 16122 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16125 dynamic_linker='NetBSD (a.out) ld.so' 16126 else 16127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16128 soname_spec='${libname}${release}${shared_ext}$major' 16129 dynamic_linker='NetBSD ld.elf_so' 16130 fi 16131 shlibpath_var=LD_LIBRARY_PATH 16132 shlibpath_overrides_runpath=yes 16133 hardcode_into_libs=yes 16134 ;; 16135 16136newsos6) 16137 version_type=linux 16138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16139 shlibpath_var=LD_LIBRARY_PATH 16140 shlibpath_overrides_runpath=yes 16141 ;; 16142 16143*nto* | *qnx*) 16144 version_type=qnx 16145 need_lib_prefix=no 16146 need_version=no 16147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16148 soname_spec='${libname}${release}${shared_ext}$major' 16149 shlibpath_var=LD_LIBRARY_PATH 16150 shlibpath_overrides_runpath=no 16151 hardcode_into_libs=yes 16152 dynamic_linker='ldqnx.so' 16153 ;; 16154 16155openbsd*) 16156 version_type=sunos 16157 sys_lib_dlsearch_path_spec="/usr/lib" 16158 need_lib_prefix=no 16159 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16160 case $host_os in 16161 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16162 *) need_version=no ;; 16163 esac 16164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16166 shlibpath_var=LD_LIBRARY_PATH 16167 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16168 case $host_os in 16169 openbsd2.[89] | openbsd2.[89].*) 16170 shlibpath_overrides_runpath=no 16171 ;; 16172 *) 16173 shlibpath_overrides_runpath=yes 16174 ;; 16175 esac 16176 else 16177 shlibpath_overrides_runpath=yes 16178 fi 16179 ;; 16180 16181os2*) 16182 libname_spec='$name' 16183 shrext_cmds=".dll" 16184 need_lib_prefix=no 16185 library_names_spec='$libname${shared_ext} $libname.a' 16186 dynamic_linker='OS/2 ld.exe' 16187 shlibpath_var=LIBPATH 16188 ;; 16189 16190osf3* | osf4* | osf5*) 16191 version_type=osf 16192 need_lib_prefix=no 16193 need_version=no 16194 soname_spec='${libname}${release}${shared_ext}$major' 16195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16196 shlibpath_var=LD_LIBRARY_PATH 16197 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16198 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16199 ;; 16200 16201rdos*) 16202 dynamic_linker=no 16203 ;; 16204 16205solaris*) 16206 version_type=linux 16207 need_lib_prefix=no 16208 need_version=no 16209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16210 soname_spec='${libname}${release}${shared_ext}$major' 16211 shlibpath_var=LD_LIBRARY_PATH 16212 shlibpath_overrides_runpath=yes 16213 hardcode_into_libs=yes 16214 # ldd complains unless libraries are executable 16215 postinstall_cmds='chmod +x $lib' 16216 ;; 16217 16218sunos4*) 16219 version_type=sunos 16220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16221 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16222 shlibpath_var=LD_LIBRARY_PATH 16223 shlibpath_overrides_runpath=yes 16224 if test "$with_gnu_ld" = yes; then 16225 need_lib_prefix=no 16226 fi 16227 need_version=yes 16228 ;; 16229 16230sysv4 | sysv4.3*) 16231 version_type=linux 16232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16233 soname_spec='${libname}${release}${shared_ext}$major' 16234 shlibpath_var=LD_LIBRARY_PATH 16235 case $host_vendor in 16236 sni) 16237 shlibpath_overrides_runpath=no 16238 need_lib_prefix=no 16239 runpath_var=LD_RUN_PATH 16240 ;; 16241 siemens) 16242 need_lib_prefix=no 16243 ;; 16244 motorola) 16245 need_lib_prefix=no 16246 need_version=no 16247 shlibpath_overrides_runpath=no 16248 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16249 ;; 16250 esac 16251 ;; 16252 16253sysv4*MP*) 16254 if test -d /usr/nec ;then 16255 version_type=linux 16256 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16257 soname_spec='$libname${shared_ext}.$major' 16258 shlibpath_var=LD_LIBRARY_PATH 16259 fi 16260 ;; 16261 16262sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16263 version_type=freebsd-elf 16264 need_lib_prefix=no 16265 need_version=no 16266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16267 soname_spec='${libname}${release}${shared_ext}$major' 16268 shlibpath_var=LD_LIBRARY_PATH 16269 shlibpath_overrides_runpath=yes 16270 hardcode_into_libs=yes 16271 if test "$with_gnu_ld" = yes; then 16272 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16273 else 16274 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16275 case $host_os in 16276 sco3.2v5*) 16277 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16278 ;; 16279 esac 16280 fi 16281 sys_lib_dlsearch_path_spec='/usr/lib' 16282 ;; 16283 16284tpf*) 16285 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16286 version_type=linux 16287 need_lib_prefix=no 16288 need_version=no 16289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16290 shlibpath_var=LD_LIBRARY_PATH 16291 shlibpath_overrides_runpath=no 16292 hardcode_into_libs=yes 16293 ;; 16294 16295uts4*) 16296 version_type=linux 16297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16298 soname_spec='${libname}${release}${shared_ext}$major' 16299 shlibpath_var=LD_LIBRARY_PATH 16300 ;; 16301 16302*) 16303 dynamic_linker=no 16304 ;; 16305esac 16306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16307$as_echo "$dynamic_linker" >&6; } 16308test "$dynamic_linker" = no && can_build_shared=no 16309 16310variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16311if test "$GCC" = yes; then 16312 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16313fi 16314 16315if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16316 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16317fi 16318if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16319 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16320fi 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16360$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16361hardcode_action_CXX= 16362if test -n "$hardcode_libdir_flag_spec_CXX" || 16363 test -n "$runpath_var_CXX" || 16364 test "X$hardcode_automatic_CXX" = "Xyes" ; then 16365 16366 # We can hardcode non-existent directories. 16367 if test "$hardcode_direct_CXX" != no && 16368 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16369 # have to relink, otherwise we might link with an installed library 16370 # when we should be linking with a yet-to-be-installed one 16371 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 16372 test "$hardcode_minus_L_CXX" != no; then 16373 # Linking always hardcodes the temporary library directory. 16374 hardcode_action_CXX=relink 16375 else 16376 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16377 hardcode_action_CXX=immediate 16378 fi 16379else 16380 # We cannot hardcode anything, or else we can only hardcode existing 16381 # directories. 16382 hardcode_action_CXX=unsupported 16383fi 16384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16385$as_echo "$hardcode_action_CXX" >&6; } 16386 16387if test "$hardcode_action_CXX" = relink || 16388 test "$inherit_rpath_CXX" = yes; then 16389 # Fast installation is not supported 16390 enable_fast_install=no 16391elif test "$shlibpath_overrides_runpath" = yes || 16392 test "$enable_shared" = no; then 16393 # Fast installation is not necessary 16394 enable_fast_install=needless 16395fi 16396 16397 16398 16399 16400 16401 16402 16403 fi # test -n "$compiler" 16404 16405 CC=$lt_save_CC 16406 CFLAGS=$lt_save_CFLAGS 16407 LDCXX=$LD 16408 LD=$lt_save_LD 16409 GCC=$lt_save_GCC 16410 with_gnu_ld=$lt_save_with_gnu_ld 16411 lt_cv_path_LDCXX=$lt_cv_path_LD 16412 lt_cv_path_LD=$lt_save_path_LD 16413 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16414 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16415fi # test "$_lt_caught_CXX_error" != yes 16416 16417ac_ext=c 16418ac_cpp='$CPP $CPPFLAGS' 16419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16421ac_compiler_gnu=$ac_cv_c_compiler_gnu 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 ac_config_commands="$ac_config_commands libtool" 16436 16437 16438 16439 16440# Only expand once: 16441 16442 16443 16444# Checks for typedefs, structures, and compiler characteristics. 16445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 16446$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 16447if ${ac_cv_c_const+:} false; then : 16448 $as_echo_n "(cached) " >&6 16449else 16450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16451/* end confdefs.h. */ 16452 16453int 16454main () 16455{ 16456 16457#ifndef __cplusplus 16458 /* Ultrix mips cc rejects this sort of thing. */ 16459 typedef int charset[2]; 16460 const charset cs = { 0, 0 }; 16461 /* SunOS 4.1.1 cc rejects this. */ 16462 char const *const *pcpcc; 16463 char **ppc; 16464 /* NEC SVR4.0.2 mips cc rejects this. */ 16465 struct point {int x, y;}; 16466 static struct point const zero = {0,0}; 16467 /* AIX XL C 1.02.0.0 rejects this. 16468 It does not let you subtract one const X* pointer from another in 16469 an arm of an if-expression whose if-part is not a constant 16470 expression */ 16471 const char *g = "string"; 16472 pcpcc = &g + (g ? g-g : 0); 16473 /* HPUX 7.0 cc rejects these. */ 16474 ++pcpcc; 16475 ppc = (char**) pcpcc; 16476 pcpcc = (char const *const *) ppc; 16477 { /* SCO 3.2v4 cc rejects this sort of thing. */ 16478 char tx; 16479 char *t = &tx; 16480 char const *s = 0 ? (char *) 0 : (char const *) 0; 16481 16482 *t++ = 0; 16483 if (s) return 0; 16484 } 16485 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 16486 int x[] = {25, 17}; 16487 const int *foo = &x[0]; 16488 ++foo; 16489 } 16490 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 16491 typedef const int *iptr; 16492 iptr p = 0; 16493 ++p; 16494 } 16495 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 16496 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 16497 struct s { int j; const int *ap[3]; } bx; 16498 struct s *b = &bx; b->j = 5; 16499 } 16500 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 16501 const int foo = 10; 16502 if (!foo) return 0; 16503 } 16504 return !cs[0] && !zero.x; 16505#endif 16506 16507 ; 16508 return 0; 16509} 16510_ACEOF 16511if ac_fn_c_try_compile "$LINENO"; then : 16512 ac_cv_c_const=yes 16513else 16514 ac_cv_c_const=no 16515fi 16516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16517fi 16518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 16519$as_echo "$ac_cv_c_const" >&6; } 16520if test $ac_cv_c_const = no; then 16521 16522$as_echo "#define const /**/" >>confdefs.h 16523 16524fi 16525 16526ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 16527if test "x$ac_cv_type_off_t" = xyes; then : 16528 16529else 16530 16531cat >>confdefs.h <<_ACEOF 16532#define off_t long int 16533_ACEOF 16534 16535fi 16536 16537ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16538if test "x$ac_cv_type_size_t" = xyes; then : 16539 16540else 16541 16542cat >>confdefs.h <<_ACEOF 16543#define size_t unsigned int 16544_ACEOF 16545 16546fi 16547 16548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 16549$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 16550if ${ac_cv_header_time+:} false; then : 16551 $as_echo_n "(cached) " >&6 16552else 16553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16554/* end confdefs.h. */ 16555#include <sys/types.h> 16556#include <sys/time.h> 16557#include <time.h> 16558 16559int 16560main () 16561{ 16562if ((struct tm *) 0) 16563return 0; 16564 ; 16565 return 0; 16566} 16567_ACEOF 16568if ac_fn_c_try_compile "$LINENO"; then : 16569 ac_cv_header_time=yes 16570else 16571 ac_cv_header_time=no 16572fi 16573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16574fi 16575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 16576$as_echo "$ac_cv_header_time" >&6; } 16577if test $ac_cv_header_time = yes; then 16578 16579$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 16580 16581fi 16582 16583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 16584$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 16585if ${ac_cv_struct_tm+:} false; then : 16586 $as_echo_n "(cached) " >&6 16587else 16588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16589/* end confdefs.h. */ 16590#include <sys/types.h> 16591#include <time.h> 16592 16593int 16594main () 16595{ 16596struct tm tm; 16597 int *p = &tm.tm_sec; 16598 return !p; 16599 ; 16600 return 0; 16601} 16602_ACEOF 16603if ac_fn_c_try_compile "$LINENO"; then : 16604 ac_cv_struct_tm=time.h 16605else 16606 ac_cv_struct_tm=sys/time.h 16607fi 16608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16609fi 16610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 16611$as_echo "$ac_cv_struct_tm" >&6; } 16612if test $ac_cv_struct_tm = sys/time.h; then 16613 16614$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 16615 16616fi 16617 16618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 16619$as_echo_n "checking for working volatile... " >&6; } 16620if ${ac_cv_c_volatile+:} false; then : 16621 $as_echo_n "(cached) " >&6 16622else 16623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16624/* end confdefs.h. */ 16625 16626int 16627main () 16628{ 16629 16630volatile int x; 16631int * volatile y = (int *) 0; 16632return !x && !y; 16633 ; 16634 return 0; 16635} 16636_ACEOF 16637if ac_fn_c_try_compile "$LINENO"; then : 16638 ac_cv_c_volatile=yes 16639else 16640 ac_cv_c_volatile=no 16641fi 16642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16643fi 16644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 16645$as_echo "$ac_cv_c_volatile" >&6; } 16646if test $ac_cv_c_volatile = no; then 16647 16648$as_echo "#define volatile /**/" >>confdefs.h 16649 16650fi 16651 16652 16653# Checks for library functions. 16654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 16655$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 16656if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : 16657 $as_echo_n "(cached) " >&6 16658else 16659 rm -f conftest.sym conftest.file 16660echo >conftest.file 16661if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 16662 if test "$cross_compiling" = yes; then : 16663 ac_cv_func_lstat_dereferences_slashed_symlink=no 16664else 16665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16666/* end confdefs.h. */ 16667$ac_includes_default 16668int 16669main () 16670{ 16671struct stat sbuf; 16672 /* Linux will dereference the symlink and fail, as required by POSIX. 16673 That is better in the sense that it means we will not 16674 have to compile and use the lstat wrapper. */ 16675 return lstat ("conftest.sym/", &sbuf) == 0; 16676 ; 16677 return 0; 16678} 16679_ACEOF 16680if ac_fn_c_try_run "$LINENO"; then : 16681 ac_cv_func_lstat_dereferences_slashed_symlink=yes 16682else 16683 ac_cv_func_lstat_dereferences_slashed_symlink=no 16684fi 16685rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16686 conftest.$ac_objext conftest.beam conftest.$ac_ext 16687fi 16688 16689else 16690 # If the `ln -s' command failed, then we probably don't even 16691 # have an lstat function. 16692 ac_cv_func_lstat_dereferences_slashed_symlink=no 16693fi 16694rm -f conftest.sym conftest.file 16695 16696fi 16697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 16698$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 16699 16700test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 16701 16702cat >>confdefs.h <<_ACEOF 16703#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 16704_ACEOF 16705 16706 16707if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then 16708 case " $LIBOBJS " in 16709 *" lstat.$ac_objext "* ) ;; 16710 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 16711 ;; 16712esac 16713 16714fi 16715 16716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5 16717$as_echo_n "checking whether lstat accepts an empty string... " >&6; } 16718if ${ac_cv_func_lstat_empty_string_bug+:} false; then : 16719 $as_echo_n "(cached) " >&6 16720else 16721 if test "$cross_compiling" = yes; then : 16722 ac_cv_func_lstat_empty_string_bug=yes 16723else 16724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16725/* end confdefs.h. */ 16726$ac_includes_default 16727int 16728main () 16729{ 16730struct stat sbuf; 16731 return lstat ("", &sbuf) == 0; 16732 ; 16733 return 0; 16734} 16735_ACEOF 16736if ac_fn_c_try_run "$LINENO"; then : 16737 ac_cv_func_lstat_empty_string_bug=no 16738else 16739 ac_cv_func_lstat_empty_string_bug=yes 16740fi 16741rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16742 conftest.$ac_objext conftest.beam conftest.$ac_ext 16743fi 16744 16745fi 16746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5 16747$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } 16748if test $ac_cv_func_lstat_empty_string_bug = yes; then 16749 case " $LIBOBJS " in 16750 *" lstat.$ac_objext "* ) ;; 16751 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 16752 ;; 16753esac 16754 16755 16756cat >>confdefs.h <<_ACEOF 16757#define HAVE_LSTAT_EMPTY_STRING_BUG 1 16758_ACEOF 16759 16760fi 16761 16762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 16763$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 16764if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : 16765 $as_echo_n "(cached) " >&6 16766else 16767 rm -f conftest.sym conftest.file 16768echo >conftest.file 16769if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 16770 if test "$cross_compiling" = yes; then : 16771 ac_cv_func_lstat_dereferences_slashed_symlink=no 16772else 16773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16774/* end confdefs.h. */ 16775$ac_includes_default 16776int 16777main () 16778{ 16779struct stat sbuf; 16780 /* Linux will dereference the symlink and fail, as required by POSIX. 16781 That is better in the sense that it means we will not 16782 have to compile and use the lstat wrapper. */ 16783 return lstat ("conftest.sym/", &sbuf) == 0; 16784 ; 16785 return 0; 16786} 16787_ACEOF 16788if ac_fn_c_try_run "$LINENO"; then : 16789 ac_cv_func_lstat_dereferences_slashed_symlink=yes 16790else 16791 ac_cv_func_lstat_dereferences_slashed_symlink=no 16792fi 16793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16794 conftest.$ac_objext conftest.beam conftest.$ac_ext 16795fi 16796 16797else 16798 # If the `ln -s' command failed, then we probably don't even 16799 # have an lstat function. 16800 ac_cv_func_lstat_dereferences_slashed_symlink=no 16801fi 16802rm -f conftest.sym conftest.file 16803 16804fi 16805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 16806$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 16807 16808test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 16809 16810cat >>confdefs.h <<_ACEOF 16811#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 16812_ACEOF 16813 16814 16815if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then 16816 case " $LIBOBJS " in 16817 *" lstat.$ac_objext "* ) ;; 16818 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 16819 ;; 16820esac 16821 16822fi 16823 16824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 16825$as_echo_n "checking for working memcmp... " >&6; } 16826if ${ac_cv_func_memcmp_working+:} false; then : 16827 $as_echo_n "(cached) " >&6 16828else 16829 if test "$cross_compiling" = yes; then : 16830 ac_cv_func_memcmp_working=no 16831else 16832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16833/* end confdefs.h. */ 16834$ac_includes_default 16835int 16836main () 16837{ 16838 16839 /* Some versions of memcmp are not 8-bit clean. */ 16840 char c0 = '\100', c1 = '\200', c2 = '\201'; 16841 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 16842 return 1; 16843 16844 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 16845 or more and with at least one buffer not starting on a 4-byte boundary. 16846 William Lewis provided this test program. */ 16847 { 16848 char foo[21]; 16849 char bar[21]; 16850 int i; 16851 for (i = 0; i < 4; i++) 16852 { 16853 char *a = foo + i; 16854 char *b = bar + i; 16855 strcpy (a, "--------01111111"); 16856 strcpy (b, "--------10000000"); 16857 if (memcmp (a, b, 16) >= 0) 16858 return 1; 16859 } 16860 return 0; 16861 } 16862 16863 ; 16864 return 0; 16865} 16866_ACEOF 16867if ac_fn_c_try_run "$LINENO"; then : 16868 ac_cv_func_memcmp_working=yes 16869else 16870 ac_cv_func_memcmp_working=no 16871fi 16872rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16873 conftest.$ac_objext conftest.beam conftest.$ac_ext 16874fi 16875 16876fi 16877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 16878$as_echo "$ac_cv_func_memcmp_working" >&6; } 16879test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 16880 *" memcmp.$ac_objext "* ) ;; 16881 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 16882 ;; 16883esac 16884 16885 16886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 16887$as_echo_n "checking whether stat accepts an empty string... " >&6; } 16888if ${ac_cv_func_stat_empty_string_bug+:} false; then : 16889 $as_echo_n "(cached) " >&6 16890else 16891 if test "$cross_compiling" = yes; then : 16892 ac_cv_func_stat_empty_string_bug=yes 16893else 16894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16895/* end confdefs.h. */ 16896$ac_includes_default 16897int 16898main () 16899{ 16900struct stat sbuf; 16901 return stat ("", &sbuf) == 0; 16902 ; 16903 return 0; 16904} 16905_ACEOF 16906if ac_fn_c_try_run "$LINENO"; then : 16907 ac_cv_func_stat_empty_string_bug=no 16908else 16909 ac_cv_func_stat_empty_string_bug=yes 16910fi 16911rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16912 conftest.$ac_objext conftest.beam conftest.$ac_ext 16913fi 16914 16915fi 16916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 16917$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } 16918if test $ac_cv_func_stat_empty_string_bug = yes; then 16919 case " $LIBOBJS " in 16920 *" stat.$ac_objext "* ) ;; 16921 *) LIBOBJS="$LIBOBJS stat.$ac_objext" 16922 ;; 16923esac 16924 16925 16926cat >>confdefs.h <<_ACEOF 16927#define HAVE_STAT_EMPTY_STRING_BUG 1 16928_ACEOF 16929 16930fi 16931 16932for ac_func in strftime 16933do : 16934 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 16935if test "x$ac_cv_func_strftime" = xyes; then : 16936 cat >>confdefs.h <<_ACEOF 16937#define HAVE_STRFTIME 1 16938_ACEOF 16939 16940else 16941 # strftime is in -lintl on SCO UNIX. 16942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 16943$as_echo_n "checking for strftime in -lintl... " >&6; } 16944if ${ac_cv_lib_intl_strftime+:} false; then : 16945 $as_echo_n "(cached) " >&6 16946else 16947 ac_check_lib_save_LIBS=$LIBS 16948LIBS="-lintl $LIBS" 16949cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16950/* end confdefs.h. */ 16951 16952/* Override any GCC internal prototype to avoid an error. 16953 Use char because int might match the return type of a GCC 16954 builtin and then its argument prototype would still apply. */ 16955#ifdef __cplusplus 16956extern "C" 16957#endif 16958char strftime (); 16959int 16960main () 16961{ 16962return strftime (); 16963 ; 16964 return 0; 16965} 16966_ACEOF 16967if ac_fn_c_try_link "$LINENO"; then : 16968 ac_cv_lib_intl_strftime=yes 16969else 16970 ac_cv_lib_intl_strftime=no 16971fi 16972rm -f core conftest.err conftest.$ac_objext \ 16973 conftest$ac_exeext conftest.$ac_ext 16974LIBS=$ac_check_lib_save_LIBS 16975fi 16976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 16977$as_echo "$ac_cv_lib_intl_strftime" >&6; } 16978if test "x$ac_cv_lib_intl_strftime" = xyes; then : 16979 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 16980 16981LIBS="-lintl $LIBS" 16982fi 16983 16984fi 16985done 16986 16987for ac_func in sqrt strcasecmp strerror strncasecmp strstr strerror 16988do : 16989 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16990ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16991if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16992 cat >>confdefs.h <<_ACEOF 16993#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16994_ACEOF 16995 16996fi 16997done 16998 16999 17000# gcov support 17001# Check whether --enable-gcov was given. 17002if test "${enable_gcov+set}" = set; then : 17003 enableval=$enable_gcov; 17004fi 17005 17006if test "x$enable_gcov" = "xyes"; then 17007 CFLAGS=$CFLAGS" -fprofile-arcs -ftest-coverage -g" 17008 GCOV_FLAGS="-lgcov" 17009fi 17010 17011ac_config_files="$ac_config_files Makefile headers/Makefile src/Makefile tests/Makefile examples/Makefile Doxyfile readosm.pc" 17012 17013 17014 17015for ac_header in expat.h 17016do : 17017 ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default" 17018if test "x$ac_cv_header_expat_h" = xyes; then : 17019 cat >>confdefs.h <<_ACEOF 17020#define HAVE_EXPAT_H 1 17021_ACEOF 17022 17023else 17024 as_fn_error $? "cannot find expat.h, bailing out" "$LINENO" 5 17025fi 17026 17027done 17028 17029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5 17030$as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; } 17031if ${ac_cv_lib_expat_XML_ParserCreate+:} false; then : 17032 $as_echo_n "(cached) " >&6 17033else 17034 ac_check_lib_save_LIBS=$LIBS 17035LIBS="-lexpat $LIBS" 17036cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17037/* end confdefs.h. */ 17038 17039/* Override any GCC internal prototype to avoid an error. 17040 Use char because int might match the return type of a GCC 17041 builtin and then its argument prototype would still apply. */ 17042#ifdef __cplusplus 17043extern "C" 17044#endif 17045char XML_ParserCreate (); 17046int 17047main () 17048{ 17049return XML_ParserCreate (); 17050 ; 17051 return 0; 17052} 17053_ACEOF 17054if ac_fn_c_try_link "$LINENO"; then : 17055 ac_cv_lib_expat_XML_ParserCreate=yes 17056else 17057 ac_cv_lib_expat_XML_ParserCreate=no 17058fi 17059rm -f core conftest.err conftest.$ac_objext \ 17060 conftest$ac_exeext conftest.$ac_ext 17061LIBS=$ac_check_lib_save_LIBS 17062fi 17063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 17064$as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; } 17065if test "x$ac_cv_lib_expat_XML_ParserCreate" = xyes; then : 17066 cat >>confdefs.h <<_ACEOF 17067#define HAVE_LIBEXPAT 1 17068_ACEOF 17069 17070 LIBS="-lexpat $LIBS" 17071 17072else 17073 as_fn_error $? "'expat' is required but it doesn't seem to be installed on this system." "$LINENO" 5 17074fi 17075 17076for ac_header in zlib.h 17077do : 17078 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 17079if test "x$ac_cv_header_zlib_h" = xyes; then : 17080 cat >>confdefs.h <<_ACEOF 17081#define HAVE_ZLIB_H 1 17082_ACEOF 17083 17084else 17085 as_fn_error $? "cannot find libz.h, bailing out" "$LINENO" 5 17086fi 17087 17088done 17089 17090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 17091$as_echo_n "checking for uncompress in -lz... " >&6; } 17092if ${ac_cv_lib_z_uncompress+:} false; then : 17093 $as_echo_n "(cached) " >&6 17094else 17095 ac_check_lib_save_LIBS=$LIBS 17096LIBS="-lz $LIBS" 17097cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17098/* end confdefs.h. */ 17099 17100/* Override any GCC internal prototype to avoid an error. 17101 Use char because int might match the return type of a GCC 17102 builtin and then its argument prototype would still apply. */ 17103#ifdef __cplusplus 17104extern "C" 17105#endif 17106char uncompress (); 17107int 17108main () 17109{ 17110return uncompress (); 17111 ; 17112 return 0; 17113} 17114_ACEOF 17115if ac_fn_c_try_link "$LINENO"; then : 17116 ac_cv_lib_z_uncompress=yes 17117else 17118 ac_cv_lib_z_uncompress=no 17119fi 17120rm -f core conftest.err conftest.$ac_objext \ 17121 conftest$ac_exeext conftest.$ac_ext 17122LIBS=$ac_check_lib_save_LIBS 17123fi 17124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5 17125$as_echo "$ac_cv_lib_z_uncompress" >&6; } 17126if test "x$ac_cv_lib_z_uncompress" = xyes; then : 17127 cat >>confdefs.h <<_ACEOF 17128#define HAVE_LIBZ 1 17129_ACEOF 17130 17131 LIBS="-lz $LIBS" 17132 17133else 17134 as_fn_error $? "'libz' is required but it doesn't seem to be installed on this system." "$LINENO" 5 17135fi 17136 17137 17138cat >confcache <<\_ACEOF 17139# This file is a shell script that caches the results of configure 17140# tests run on this system so they can be shared between configure 17141# scripts and configure runs, see configure's option --config-cache. 17142# It is not useful on other systems. If it contains results you don't 17143# want to keep, you may remove or edit it. 17144# 17145# config.status only pays attention to the cache file if you give it 17146# the --recheck option to rerun configure. 17147# 17148# `ac_cv_env_foo' variables (set or unset) will be overridden when 17149# loading this file, other *unset* `ac_cv_foo' will be assigned the 17150# following values. 17151 17152_ACEOF 17153 17154# The following way of writing the cache mishandles newlines in values, 17155# but we know of no workaround that is simple, portable, and efficient. 17156# So, we kill variables containing newlines. 17157# Ultrix sh set writes to stderr and can't be redirected directly, 17158# and sets the high bit in the cache file unless we assign to the vars. 17159( 17160 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17161 eval ac_val=\$$ac_var 17162 case $ac_val in #( 17163 *${as_nl}*) 17164 case $ac_var in #( 17165 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17166$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17167 esac 17168 case $ac_var in #( 17169 _ | IFS | as_nl) ;; #( 17170 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17171 *) { eval $ac_var=; unset $ac_var;} ;; 17172 esac ;; 17173 esac 17174 done 17175 17176 (set) 2>&1 | 17177 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17178 *${as_nl}ac_space=\ *) 17179 # `set' does not quote correctly, so add quotes: double-quote 17180 # substitution turns \\\\ into \\, and sed turns \\ into \. 17181 sed -n \ 17182 "s/'/'\\\\''/g; 17183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17184 ;; #( 17185 *) 17186 # `set' quotes correctly as required by POSIX, so do not add quotes. 17187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17188 ;; 17189 esac | 17190 sort 17191) | 17192 sed ' 17193 /^ac_cv_env_/b end 17194 t clear 17195 :clear 17196 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17197 t end 17198 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17199 :end' >>confcache 17200if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17201 if test -w "$cache_file"; then 17202 if test "x$cache_file" != "x/dev/null"; then 17203 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17204$as_echo "$as_me: updating cache $cache_file" >&6;} 17205 if test ! -f "$cache_file" || test -h "$cache_file"; then 17206 cat confcache >"$cache_file" 17207 else 17208 case $cache_file in #( 17209 */* | ?:*) 17210 mv -f confcache "$cache_file"$$ && 17211 mv -f "$cache_file"$$ "$cache_file" ;; #( 17212 *) 17213 mv -f confcache "$cache_file" ;; 17214 esac 17215 fi 17216 fi 17217 else 17218 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17219$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17220 fi 17221fi 17222rm -f confcache 17223 17224test "x$prefix" = xNONE && prefix=$ac_default_prefix 17225# Let make expand exec_prefix. 17226test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17227 17228DEFS=-DHAVE_CONFIG_H 17229 17230ac_libobjs= 17231ac_ltlibobjs= 17232for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17233 # 1. Remove the extension, and $U if already installed. 17234 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17235 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17236 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17237 # will be set to the directory where LIBOBJS objects are built. 17238 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17239 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17240done 17241LIBOBJS=$ac_libobjs 17242 17243LTLIBOBJS=$ac_ltlibobjs 17244 17245 17246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17247$as_echo_n "checking that generated files are newer than configure... " >&6; } 17248 if test -n "$am_sleep_pid"; then 17249 # Hide warnings about reused PIDs. 17250 wait $am_sleep_pid 2>/dev/null 17251 fi 17252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17253$as_echo "done" >&6; } 17254 if test -n "$EXEEXT"; then 17255 am__EXEEXT_TRUE= 17256 am__EXEEXT_FALSE='#' 17257else 17258 am__EXEEXT_TRUE='#' 17259 am__EXEEXT_FALSE= 17260fi 17261 17262if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 17263 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 17264Usually this means the macro was only invoked conditionally." "$LINENO" 5 17265fi 17266if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17267 as_fn_error $? "conditional \"AMDEP\" was never defined. 17268Usually this means the macro was only invoked conditionally." "$LINENO" 5 17269fi 17270if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17271 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17272Usually this means the macro was only invoked conditionally." "$LINENO" 5 17273fi 17274if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17275 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 17276Usually this means the macro was only invoked conditionally." "$LINENO" 5 17277fi 17278if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17279 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17280Usually this means the macro was only invoked conditionally." "$LINENO" 5 17281fi 17282 17283: "${CONFIG_STATUS=./config.status}" 17284ac_write_fail=0 17285ac_clean_files_save=$ac_clean_files 17286ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17287{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17288$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17289as_write_fail=0 17290cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17291#! $SHELL 17292# Generated by $as_me. 17293# Run this file to recreate the current configuration. 17294# Compiler output produced by configure, useful for debugging 17295# configure, is in config.log if it exists. 17296 17297debug=false 17298ac_cs_recheck=false 17299ac_cs_silent=false 17300 17301SHELL=\${CONFIG_SHELL-$SHELL} 17302export SHELL 17303_ASEOF 17304cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17305## -------------------- ## 17306## M4sh Initialization. ## 17307## -------------------- ## 17308 17309# Be more Bourne compatible 17310DUALCASE=1; export DUALCASE # for MKS sh 17311if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17312 emulate sh 17313 NULLCMD=: 17314 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17315 # is contrary to our usage. Disable this feature. 17316 alias -g '${1+"$@"}'='"$@"' 17317 setopt NO_GLOB_SUBST 17318else 17319 case `(set -o) 2>/dev/null` in #( 17320 *posix*) : 17321 set -o posix ;; #( 17322 *) : 17323 ;; 17324esac 17325fi 17326 17327 17328as_nl=' 17329' 17330export as_nl 17331# Printing a long string crashes Solaris 7 /usr/bin/printf. 17332as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17333as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17334as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17335# Prefer a ksh shell builtin over an external printf program on Solaris, 17336# but without wasting forks for bash or zsh. 17337if test -z "$BASH_VERSION$ZSH_VERSION" \ 17338 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17339 as_echo='print -r --' 17340 as_echo_n='print -rn --' 17341elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17342 as_echo='printf %s\n' 17343 as_echo_n='printf %s' 17344else 17345 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17346 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17347 as_echo_n='/usr/ucb/echo -n' 17348 else 17349 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17350 as_echo_n_body='eval 17351 arg=$1; 17352 case $arg in #( 17353 *"$as_nl"*) 17354 expr "X$arg" : "X\\(.*\\)$as_nl"; 17355 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17356 esac; 17357 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17358 ' 17359 export as_echo_n_body 17360 as_echo_n='sh -c $as_echo_n_body as_echo' 17361 fi 17362 export as_echo_body 17363 as_echo='sh -c $as_echo_body as_echo' 17364fi 17365 17366# The user is always right. 17367if test "${PATH_SEPARATOR+set}" != set; then 17368 PATH_SEPARATOR=: 17369 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17370 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17371 PATH_SEPARATOR=';' 17372 } 17373fi 17374 17375 17376# IFS 17377# We need space, tab and new line, in precisely that order. Quoting is 17378# there to prevent editors from complaining about space-tab. 17379# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17380# splitting by setting IFS to empty value.) 17381IFS=" "" $as_nl" 17382 17383# Find who we are. Look in the path if we contain no directory separator. 17384as_myself= 17385case $0 in #(( 17386 *[\\/]* ) as_myself=$0 ;; 17387 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17388for as_dir in $PATH 17389do 17390 IFS=$as_save_IFS 17391 test -z "$as_dir" && as_dir=. 17392 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17393 done 17394IFS=$as_save_IFS 17395 17396 ;; 17397esac 17398# We did not find ourselves, most probably we were run as `sh COMMAND' 17399# in which case we are not to be found in the path. 17400if test "x$as_myself" = x; then 17401 as_myself=$0 17402fi 17403if test ! -f "$as_myself"; then 17404 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17405 exit 1 17406fi 17407 17408# Unset variables that we do not need and which cause bugs (e.g. in 17409# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17410# suppresses any "Segmentation fault" message there. '((' could 17411# trigger a bug in pdksh 5.2.14. 17412for as_var in BASH_ENV ENV MAIL MAILPATH 17413do eval test x\${$as_var+set} = xset \ 17414 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17415done 17416PS1='$ ' 17417PS2='> ' 17418PS4='+ ' 17419 17420# NLS nuisances. 17421LC_ALL=C 17422export LC_ALL 17423LANGUAGE=C 17424export LANGUAGE 17425 17426# CDPATH. 17427(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17428 17429 17430# as_fn_error STATUS ERROR [LINENO LOG_FD] 17431# ---------------------------------------- 17432# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17433# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17434# script with STATUS, using 1 if that was 0. 17435as_fn_error () 17436{ 17437 as_status=$1; test $as_status -eq 0 && as_status=1 17438 if test "$4"; then 17439 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17440 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17441 fi 17442 $as_echo "$as_me: error: $2" >&2 17443 as_fn_exit $as_status 17444} # as_fn_error 17445 17446 17447# as_fn_set_status STATUS 17448# ----------------------- 17449# Set $? to STATUS, without forking. 17450as_fn_set_status () 17451{ 17452 return $1 17453} # as_fn_set_status 17454 17455# as_fn_exit STATUS 17456# ----------------- 17457# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17458as_fn_exit () 17459{ 17460 set +e 17461 as_fn_set_status $1 17462 exit $1 17463} # as_fn_exit 17464 17465# as_fn_unset VAR 17466# --------------- 17467# Portably unset VAR. 17468as_fn_unset () 17469{ 17470 { eval $1=; unset $1;} 17471} 17472as_unset=as_fn_unset 17473# as_fn_append VAR VALUE 17474# ---------------------- 17475# Append the text in VALUE to the end of the definition contained in VAR. Take 17476# advantage of any shell optimizations that allow amortized linear growth over 17477# repeated appends, instead of the typical quadratic growth present in naive 17478# implementations. 17479if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17480 eval 'as_fn_append () 17481 { 17482 eval $1+=\$2 17483 }' 17484else 17485 as_fn_append () 17486 { 17487 eval $1=\$$1\$2 17488 } 17489fi # as_fn_append 17490 17491# as_fn_arith ARG... 17492# ------------------ 17493# Perform arithmetic evaluation on the ARGs, and store the result in the 17494# global $as_val. Take advantage of shells that can avoid forks. The arguments 17495# must be portable across $(()) and expr. 17496if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17497 eval 'as_fn_arith () 17498 { 17499 as_val=$(( $* )) 17500 }' 17501else 17502 as_fn_arith () 17503 { 17504 as_val=`expr "$@" || test $? -eq 1` 17505 } 17506fi # as_fn_arith 17507 17508 17509if expr a : '\(a\)' >/dev/null 2>&1 && 17510 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17511 as_expr=expr 17512else 17513 as_expr=false 17514fi 17515 17516if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17517 as_basename=basename 17518else 17519 as_basename=false 17520fi 17521 17522if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17523 as_dirname=dirname 17524else 17525 as_dirname=false 17526fi 17527 17528as_me=`$as_basename -- "$0" || 17529$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17530 X"$0" : 'X\(//\)$' \| \ 17531 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17532$as_echo X/"$0" | 17533 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17534 s//\1/ 17535 q 17536 } 17537 /^X\/\(\/\/\)$/{ 17538 s//\1/ 17539 q 17540 } 17541 /^X\/\(\/\).*/{ 17542 s//\1/ 17543 q 17544 } 17545 s/.*/./; q'` 17546 17547# Avoid depending upon Character Ranges. 17548as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17549as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17550as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17551as_cr_digits='0123456789' 17552as_cr_alnum=$as_cr_Letters$as_cr_digits 17553 17554ECHO_C= ECHO_N= ECHO_T= 17555case `echo -n x` in #((((( 17556-n*) 17557 case `echo 'xy\c'` in 17558 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17559 xy) ECHO_C='\c';; 17560 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17561 ECHO_T=' ';; 17562 esac;; 17563*) 17564 ECHO_N='-n';; 17565esac 17566 17567rm -f conf$$ conf$$.exe conf$$.file 17568if test -d conf$$.dir; then 17569 rm -f conf$$.dir/conf$$.file 17570else 17571 rm -f conf$$.dir 17572 mkdir conf$$.dir 2>/dev/null 17573fi 17574if (echo >conf$$.file) 2>/dev/null; then 17575 if ln -s conf$$.file conf$$ 2>/dev/null; then 17576 as_ln_s='ln -s' 17577 # ... but there are two gotchas: 17578 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17579 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17580 # In both cases, we have to default to `cp -pR'. 17581 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17582 as_ln_s='cp -pR' 17583 elif ln conf$$.file conf$$ 2>/dev/null; then 17584 as_ln_s=ln 17585 else 17586 as_ln_s='cp -pR' 17587 fi 17588else 17589 as_ln_s='cp -pR' 17590fi 17591rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17592rmdir conf$$.dir 2>/dev/null 17593 17594 17595# as_fn_mkdir_p 17596# ------------- 17597# Create "$as_dir" as a directory, including parents if necessary. 17598as_fn_mkdir_p () 17599{ 17600 17601 case $as_dir in #( 17602 -*) as_dir=./$as_dir;; 17603 esac 17604 test -d "$as_dir" || eval $as_mkdir_p || { 17605 as_dirs= 17606 while :; do 17607 case $as_dir in #( 17608 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17609 *) as_qdir=$as_dir;; 17610 esac 17611 as_dirs="'$as_qdir' $as_dirs" 17612 as_dir=`$as_dirname -- "$as_dir" || 17613$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17614 X"$as_dir" : 'X\(//\)[^/]' \| \ 17615 X"$as_dir" : 'X\(//\)$' \| \ 17616 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17617$as_echo X"$as_dir" | 17618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17619 s//\1/ 17620 q 17621 } 17622 /^X\(\/\/\)[^/].*/{ 17623 s//\1/ 17624 q 17625 } 17626 /^X\(\/\/\)$/{ 17627 s//\1/ 17628 q 17629 } 17630 /^X\(\/\).*/{ 17631 s//\1/ 17632 q 17633 } 17634 s/.*/./; q'` 17635 test -d "$as_dir" && break 17636 done 17637 test -z "$as_dirs" || eval "mkdir $as_dirs" 17638 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17639 17640 17641} # as_fn_mkdir_p 17642if mkdir -p . 2>/dev/null; then 17643 as_mkdir_p='mkdir -p "$as_dir"' 17644else 17645 test -d ./-p && rmdir ./-p 17646 as_mkdir_p=false 17647fi 17648 17649 17650# as_fn_executable_p FILE 17651# ----------------------- 17652# Test if FILE is an executable regular file. 17653as_fn_executable_p () 17654{ 17655 test -f "$1" && test -x "$1" 17656} # as_fn_executable_p 17657as_test_x='test -x' 17658as_executable_p=as_fn_executable_p 17659 17660# Sed expression to map a string onto a valid CPP name. 17661as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17662 17663# Sed expression to map a string onto a valid variable name. 17664as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17665 17666 17667exec 6>&1 17668## ----------------------------------- ## 17669## Main body of $CONFIG_STATUS script. ## 17670## ----------------------------------- ## 17671_ASEOF 17672test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17673 17674cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17675# Save the log message, to keep $0 and so on meaningful, and to 17676# report actual input values of CONFIG_FILES etc. instead of their 17677# values after options handling. 17678ac_log=" 17679This file was extended by readosm $as_me 1.1.0a, which was 17680generated by GNU Autoconf 2.69. Invocation command line was 17681 17682 CONFIG_FILES = $CONFIG_FILES 17683 CONFIG_HEADERS = $CONFIG_HEADERS 17684 CONFIG_LINKS = $CONFIG_LINKS 17685 CONFIG_COMMANDS = $CONFIG_COMMANDS 17686 $ $0 $@ 17687 17688on `(hostname || uname -n) 2>/dev/null | sed 1q` 17689" 17690 17691_ACEOF 17692 17693case $ac_config_files in *" 17694"*) set x $ac_config_files; shift; ac_config_files=$*;; 17695esac 17696 17697case $ac_config_headers in *" 17698"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17699esac 17700 17701 17702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17703# Files that config.status was made for. 17704config_files="$ac_config_files" 17705config_headers="$ac_config_headers" 17706config_commands="$ac_config_commands" 17707 17708_ACEOF 17709 17710cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17711ac_cs_usage="\ 17712\`$as_me' instantiates files and other configuration actions 17713from templates according to the current configuration. Unless the files 17714and actions are specified as TAGs, all are instantiated by default. 17715 17716Usage: $0 [OPTION]... [TAG]... 17717 17718 -h, --help print this help, then exit 17719 -V, --version print version number and configuration settings, then exit 17720 --config print configuration, then exit 17721 -q, --quiet, --silent 17722 do not print progress messages 17723 -d, --debug don't remove temporary files 17724 --recheck update $as_me by reconfiguring in the same conditions 17725 --file=FILE[:TEMPLATE] 17726 instantiate the configuration file FILE 17727 --header=FILE[:TEMPLATE] 17728 instantiate the configuration header FILE 17729 17730Configuration files: 17731$config_files 17732 17733Configuration headers: 17734$config_headers 17735 17736Configuration commands: 17737$config_commands 17738 17739Report bugs to <a.furieri@lqt.it>." 17740 17741_ACEOF 17742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17743ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17744ac_cs_version="\\ 17745readosm config.status 1.1.0a 17746configured by $0, generated by GNU Autoconf 2.69, 17747 with options \\"\$ac_cs_config\\" 17748 17749Copyright (C) 2012 Free Software Foundation, Inc. 17750This config.status script is free software; the Free Software Foundation 17751gives unlimited permission to copy, distribute and modify it." 17752 17753ac_pwd='$ac_pwd' 17754srcdir='$srcdir' 17755INSTALL='$INSTALL' 17756MKDIR_P='$MKDIR_P' 17757AWK='$AWK' 17758test -n "\$AWK" || AWK=awk 17759_ACEOF 17760 17761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17762# The default lists apply if the user does not specify any file. 17763ac_need_defaults=: 17764while test $# != 0 17765do 17766 case $1 in 17767 --*=?*) 17768 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17769 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17770 ac_shift=: 17771 ;; 17772 --*=) 17773 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17774 ac_optarg= 17775 ac_shift=: 17776 ;; 17777 *) 17778 ac_option=$1 17779 ac_optarg=$2 17780 ac_shift=shift 17781 ;; 17782 esac 17783 17784 case $ac_option in 17785 # Handling of the options. 17786 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17787 ac_cs_recheck=: ;; 17788 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17789 $as_echo "$ac_cs_version"; exit ;; 17790 --config | --confi | --conf | --con | --co | --c ) 17791 $as_echo "$ac_cs_config"; exit ;; 17792 --debug | --debu | --deb | --de | --d | -d ) 17793 debug=: ;; 17794 --file | --fil | --fi | --f ) 17795 $ac_shift 17796 case $ac_optarg in 17797 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17798 '') as_fn_error $? "missing file argument" ;; 17799 esac 17800 as_fn_append CONFIG_FILES " '$ac_optarg'" 17801 ac_need_defaults=false;; 17802 --header | --heade | --head | --hea ) 17803 $ac_shift 17804 case $ac_optarg in 17805 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17806 esac 17807 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17808 ac_need_defaults=false;; 17809 --he | --h) 17810 # Conflict between --help and --header 17811 as_fn_error $? "ambiguous option: \`$1' 17812Try \`$0 --help' for more information.";; 17813 --help | --hel | -h ) 17814 $as_echo "$ac_cs_usage"; exit ;; 17815 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17816 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17817 ac_cs_silent=: ;; 17818 17819 # This is an error. 17820 -*) as_fn_error $? "unrecognized option: \`$1' 17821Try \`$0 --help' for more information." ;; 17822 17823 *) as_fn_append ac_config_targets " $1" 17824 ac_need_defaults=false ;; 17825 17826 esac 17827 shift 17828done 17829 17830ac_configure_extra_args= 17831 17832if $ac_cs_silent; then 17833 exec 6>/dev/null 17834 ac_configure_extra_args="$ac_configure_extra_args --silent" 17835fi 17836 17837_ACEOF 17838cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17839if \$ac_cs_recheck; then 17840 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17841 shift 17842 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17843 CONFIG_SHELL='$SHELL' 17844 export CONFIG_SHELL 17845 exec "\$@" 17846fi 17847 17848_ACEOF 17849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17850exec 5>>config.log 17851{ 17852 echo 17853 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17854## Running $as_me. ## 17855_ASBOX 17856 $as_echo "$ac_log" 17857} >&5 17858 17859_ACEOF 17860cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17861# 17862# INIT-COMMANDS 17863# 17864AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 17865 17866 17867# The HP-UX ksh and POSIX shell print the target directory to stdout 17868# if CDPATH is set. 17869(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17870 17871sed_quote_subst='$sed_quote_subst' 17872double_quote_subst='$double_quote_subst' 17873delay_variable_subst='$delay_variable_subst' 17874AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 17875DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17876OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17877macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17878macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17879enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17880enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17881pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17882enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17883SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17884ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17885host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17886host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17887host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17888build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17889build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17890build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17891SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17892Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17893GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17894EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17895FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17896LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17897NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17898LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17899max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17900ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17901exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17902lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17903lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17904lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17905lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17906lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17907reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17908reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17909deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17910file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17911file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17912want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17913sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17914AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17915AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17916archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17917STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17918RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17919old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17920old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17921old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17922lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17923CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17924CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17925compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17926GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17927lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17928lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17929lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17930lt_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"`' 17931nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17932lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17933objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17934MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17935lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17936lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17937lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17938lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17939lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17940need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17941MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17942DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17943NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17944LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17945OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17946OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17947libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17948shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17949extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17950archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17951enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17952export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17953whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17954compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17955old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17956old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17957archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17958archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17959module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17960module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17961with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17962allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17963no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17964hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17965hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 17966hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17967hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17968hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17969hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17970hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17971hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17972inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17973link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17974always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17975export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17976exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17977include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17978prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17979postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17980file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17981variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17982need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17983need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17984version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17985runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17986shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17987shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17988libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17989library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17990soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17991install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17992postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17993postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17994finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17995finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17996hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17997sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17998sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 17999hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18000enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18001enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18002enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18003old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18004striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18005compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 18006predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 18007postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 18008predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 18009postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 18010compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 18011LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 18012reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 18013reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18014old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18015compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 18016GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 18017lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 18018lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 18019lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 18020lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 18021lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 18022archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 18023enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 18024export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18025whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18026compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 18027old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18028old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18029archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18030archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18031module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18032module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18033with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 18034allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18035no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18036hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18037hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 18038hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 18039hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 18040hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 18041hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 18042hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 18043hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 18044inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 18045link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 18046always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 18047export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18048exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18049include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18050prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18051postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18052file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 18053hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 18054compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 18055predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18056postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18057predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 18058postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 18059compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 18060 18061LTCC='$LTCC' 18062LTCFLAGS='$LTCFLAGS' 18063compiler='$compiler_DEFAULT' 18064 18065# A function that is used when there is no print builtin or printf. 18066func_fallback_echo () 18067{ 18068 eval 'cat <<_LTECHO_EOF 18069\$1 18070_LTECHO_EOF' 18071} 18072 18073# Quote evaled strings. 18074for var in AS \ 18075DLLTOOL \ 18076OBJDUMP \ 18077SHELL \ 18078ECHO \ 18079SED \ 18080GREP \ 18081EGREP \ 18082FGREP \ 18083LD \ 18084NM \ 18085LN_S \ 18086lt_SP2NL \ 18087lt_NL2SP \ 18088reload_flag \ 18089deplibs_check_method \ 18090file_magic_cmd \ 18091file_magic_glob \ 18092want_nocaseglob \ 18093sharedlib_from_linklib_cmd \ 18094AR \ 18095AR_FLAGS \ 18096archiver_list_spec \ 18097STRIP \ 18098RANLIB \ 18099CC \ 18100CFLAGS \ 18101compiler \ 18102lt_cv_sys_global_symbol_pipe \ 18103lt_cv_sys_global_symbol_to_cdecl \ 18104lt_cv_sys_global_symbol_to_c_name_address \ 18105lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18106nm_file_list_spec \ 18107lt_prog_compiler_no_builtin_flag \ 18108lt_prog_compiler_pic \ 18109lt_prog_compiler_wl \ 18110lt_prog_compiler_static \ 18111lt_cv_prog_compiler_c_o \ 18112need_locks \ 18113MANIFEST_TOOL \ 18114DSYMUTIL \ 18115NMEDIT \ 18116LIPO \ 18117OTOOL \ 18118OTOOL64 \ 18119shrext_cmds \ 18120export_dynamic_flag_spec \ 18121whole_archive_flag_spec \ 18122compiler_needs_object \ 18123with_gnu_ld \ 18124allow_undefined_flag \ 18125no_undefined_flag \ 18126hardcode_libdir_flag_spec \ 18127hardcode_libdir_flag_spec_ld \ 18128hardcode_libdir_separator \ 18129exclude_expsyms \ 18130include_expsyms \ 18131file_list_spec \ 18132variables_saved_for_relink \ 18133libname_spec \ 18134library_names_spec \ 18135soname_spec \ 18136install_override_mode \ 18137finish_eval \ 18138old_striplib \ 18139striplib \ 18140compiler_lib_search_dirs \ 18141predep_objects \ 18142postdep_objects \ 18143predeps \ 18144postdeps \ 18145compiler_lib_search_path \ 18146LD_CXX \ 18147reload_flag_CXX \ 18148compiler_CXX \ 18149lt_prog_compiler_no_builtin_flag_CXX \ 18150lt_prog_compiler_pic_CXX \ 18151lt_prog_compiler_wl_CXX \ 18152lt_prog_compiler_static_CXX \ 18153lt_cv_prog_compiler_c_o_CXX \ 18154export_dynamic_flag_spec_CXX \ 18155whole_archive_flag_spec_CXX \ 18156compiler_needs_object_CXX \ 18157with_gnu_ld_CXX \ 18158allow_undefined_flag_CXX \ 18159no_undefined_flag_CXX \ 18160hardcode_libdir_flag_spec_CXX \ 18161hardcode_libdir_flag_spec_ld_CXX \ 18162hardcode_libdir_separator_CXX \ 18163exclude_expsyms_CXX \ 18164include_expsyms_CXX \ 18165file_list_spec_CXX \ 18166compiler_lib_search_dirs_CXX \ 18167predep_objects_CXX \ 18168postdep_objects_CXX \ 18169predeps_CXX \ 18170postdeps_CXX \ 18171compiler_lib_search_path_CXX; do 18172 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18173 *[\\\\\\\`\\"\\\$]*) 18174 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18175 ;; 18176 *) 18177 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18178 ;; 18179 esac 18180done 18181 18182# Double-quote double-evaled strings. 18183for var in reload_cmds \ 18184old_postinstall_cmds \ 18185old_postuninstall_cmds \ 18186old_archive_cmds \ 18187extract_expsyms_cmds \ 18188old_archive_from_new_cmds \ 18189old_archive_from_expsyms_cmds \ 18190archive_cmds \ 18191archive_expsym_cmds \ 18192module_cmds \ 18193module_expsym_cmds \ 18194export_symbols_cmds \ 18195prelink_cmds \ 18196postlink_cmds \ 18197postinstall_cmds \ 18198postuninstall_cmds \ 18199finish_cmds \ 18200sys_lib_search_path_spec \ 18201sys_lib_dlsearch_path_spec \ 18202reload_cmds_CXX \ 18203old_archive_cmds_CXX \ 18204old_archive_from_new_cmds_CXX \ 18205old_archive_from_expsyms_cmds_CXX \ 18206archive_cmds_CXX \ 18207archive_expsym_cmds_CXX \ 18208module_cmds_CXX \ 18209module_expsym_cmds_CXX \ 18210export_symbols_cmds_CXX \ 18211prelink_cmds_CXX \ 18212postlink_cmds_CXX; do 18213 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18214 *[\\\\\\\`\\"\\\$]*) 18215 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18216 ;; 18217 *) 18218 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18219 ;; 18220 esac 18221done 18222 18223ac_aux_dir='$ac_aux_dir' 18224xsi_shell='$xsi_shell' 18225lt_shell_append='$lt_shell_append' 18226 18227# See if we are running on zsh, and set the options which allow our 18228# commands through without removal of \ escapes INIT. 18229if test -n "\${ZSH_VERSION+set}" ; then 18230 setopt NO_GLOB_SUBST 18231fi 18232 18233 18234 PACKAGE='$PACKAGE' 18235 VERSION='$VERSION' 18236 TIMESTAMP='$TIMESTAMP' 18237 RM='$RM' 18238 ofile='$ofile' 18239 18240 18241 18242 18243 18244 18245_ACEOF 18246 18247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18248 18249# Handling of arguments. 18250for ac_config_target in $ac_config_targets 18251do 18252 case $ac_config_target in 18253 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18254 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18255 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18256 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18257 "headers/Makefile") CONFIG_FILES="$CONFIG_FILES headers/Makefile" ;; 18258 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18259 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 18260 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 18261 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;; 18262 "readosm.pc") CONFIG_FILES="$CONFIG_FILES readosm.pc" ;; 18263 18264 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18265 esac 18266done 18267 18268 18269# If the user did not use the arguments to specify the items to instantiate, 18270# then the envvar interface is used. Set only those that are not. 18271# We use the long form for the default assignment because of an extremely 18272# bizarre bug on SunOS 4.1.3. 18273if $ac_need_defaults; then 18274 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18275 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18276 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18277fi 18278 18279# Have a temporary directory for convenience. Make it in the build tree 18280# simply because there is no reason against having it here, and in addition, 18281# creating and moving files from /tmp can sometimes cause problems. 18282# Hook for its removal unless debugging. 18283# Note that there is a small window in which the directory will not be cleaned: 18284# after its creation but before its name has been assigned to `$tmp'. 18285$debug || 18286{ 18287 tmp= ac_tmp= 18288 trap 'exit_status=$? 18289 : "${ac_tmp:=$tmp}" 18290 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18291' 0 18292 trap 'as_fn_exit 1' 1 2 13 15 18293} 18294# Create a (secure) tmp directory for tmp files. 18295 18296{ 18297 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18298 test -d "$tmp" 18299} || 18300{ 18301 tmp=./conf$$-$RANDOM 18302 (umask 077 && mkdir "$tmp") 18303} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18304ac_tmp=$tmp 18305 18306# Set up the scripts for CONFIG_FILES section. 18307# No need to generate them if there are no CONFIG_FILES. 18308# This happens for instance with `./config.status config.h'. 18309if test -n "$CONFIG_FILES"; then 18310 18311 18312ac_cr=`echo X | tr X '\015'` 18313# On cygwin, bash can eat \r inside `` if the user requested igncr. 18314# But we know of no other shell where ac_cr would be empty at this 18315# point, so we can use a bashism as a fallback. 18316if test "x$ac_cr" = x; then 18317 eval ac_cr=\$\'\\r\' 18318fi 18319ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18320if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18321 ac_cs_awk_cr='\\r' 18322else 18323 ac_cs_awk_cr=$ac_cr 18324fi 18325 18326echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18327_ACEOF 18328 18329 18330{ 18331 echo "cat >conf$$subs.awk <<_ACEOF" && 18332 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18333 echo "_ACEOF" 18334} >conf$$subs.sh || 18335 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18336ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18337ac_delim='%!_!# ' 18338for ac_last_try in false false false false false :; do 18339 . ./conf$$subs.sh || 18340 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18341 18342 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18343 if test $ac_delim_n = $ac_delim_num; then 18344 break 18345 elif $ac_last_try; then 18346 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18347 else 18348 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18349 fi 18350done 18351rm -f conf$$subs.sh 18352 18353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18354cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18355_ACEOF 18356sed -n ' 18357h 18358s/^/S["/; s/!.*/"]=/ 18359p 18360g 18361s/^[^!]*!// 18362:repl 18363t repl 18364s/'"$ac_delim"'$// 18365t delim 18366:nl 18367h 18368s/\(.\{148\}\)..*/\1/ 18369t more1 18370s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18371p 18372n 18373b repl 18374:more1 18375s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18376p 18377g 18378s/.\{148\}// 18379t nl 18380:delim 18381h 18382s/\(.\{148\}\)..*/\1/ 18383t more2 18384s/["\\]/\\&/g; s/^/"/; s/$/"/ 18385p 18386b 18387:more2 18388s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18389p 18390g 18391s/.\{148\}// 18392t delim 18393' <conf$$subs.awk | sed ' 18394/^[^""]/{ 18395 N 18396 s/\n// 18397} 18398' >>$CONFIG_STATUS || ac_write_fail=1 18399rm -f conf$$subs.awk 18400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18401_ACAWK 18402cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18403 for (key in S) S_is_set[key] = 1 18404 FS = "" 18405 18406} 18407{ 18408 line = $ 0 18409 nfields = split(line, field, "@") 18410 substed = 0 18411 len = length(field[1]) 18412 for (i = 2; i < nfields; i++) { 18413 key = field[i] 18414 keylen = length(key) 18415 if (S_is_set[key]) { 18416 value = S[key] 18417 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18418 len += length(value) + length(field[++i]) 18419 substed = 1 18420 } else 18421 len += 1 + keylen 18422 } 18423 18424 print line 18425} 18426 18427_ACAWK 18428_ACEOF 18429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18430if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18431 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18432else 18433 cat 18434fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18435 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18436_ACEOF 18437 18438# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18439# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18440# trailing colons and then remove the whole line if VPATH becomes empty 18441# (actually we leave an empty line to preserve line numbers). 18442if test "x$srcdir" = x.; then 18443 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18444h 18445s/// 18446s/^/:/ 18447s/[ ]*$/:/ 18448s/:\$(srcdir):/:/g 18449s/:\${srcdir}:/:/g 18450s/:@srcdir@:/:/g 18451s/^:*// 18452s/:*$// 18453x 18454s/\(=[ ]*\).*/\1/ 18455G 18456s/\n// 18457s/^[^=]*=[ ]*$// 18458}' 18459fi 18460 18461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18462fi # test -n "$CONFIG_FILES" 18463 18464# Set up the scripts for CONFIG_HEADERS section. 18465# No need to generate them if there are no CONFIG_HEADERS. 18466# This happens for instance with `./config.status Makefile'. 18467if test -n "$CONFIG_HEADERS"; then 18468cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18469BEGIN { 18470_ACEOF 18471 18472# Transform confdefs.h into an awk script `defines.awk', embedded as 18473# here-document in config.status, that substitutes the proper values into 18474# config.h.in to produce config.h. 18475 18476# Create a delimiter string that does not exist in confdefs.h, to ease 18477# handling of long lines. 18478ac_delim='%!_!# ' 18479for ac_last_try in false false :; do 18480 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18481 if test -z "$ac_tt"; then 18482 break 18483 elif $ac_last_try; then 18484 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18485 else 18486 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18487 fi 18488done 18489 18490# For the awk script, D is an array of macro values keyed by name, 18491# likewise P contains macro parameters if any. Preserve backslash 18492# newline sequences. 18493 18494ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18495sed -n ' 18496s/.\{148\}/&'"$ac_delim"'/g 18497t rset 18498:rset 18499s/^[ ]*#[ ]*define[ ][ ]*/ / 18500t def 18501d 18502:def 18503s/\\$// 18504t bsnl 18505s/["\\]/\\&/g 18506s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18507D["\1"]=" \3"/p 18508s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18509d 18510:bsnl 18511s/["\\]/\\&/g 18512s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18513D["\1"]=" \3\\\\\\n"\\/p 18514t cont 18515s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18516t cont 18517d 18518:cont 18519n 18520s/.\{148\}/&'"$ac_delim"'/g 18521t clear 18522:clear 18523s/\\$// 18524t bsnlc 18525s/["\\]/\\&/g; s/^/"/; s/$/"/p 18526d 18527:bsnlc 18528s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18529b cont 18530' <confdefs.h | sed ' 18531s/'"$ac_delim"'/"\\\ 18532"/g' >>$CONFIG_STATUS || ac_write_fail=1 18533 18534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18535 for (key in D) D_is_set[key] = 1 18536 FS = "" 18537} 18538/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18539 line = \$ 0 18540 split(line, arg, " ") 18541 if (arg[1] == "#") { 18542 defundef = arg[2] 18543 mac1 = arg[3] 18544 } else { 18545 defundef = substr(arg[1], 2) 18546 mac1 = arg[2] 18547 } 18548 split(mac1, mac2, "(") #) 18549 macro = mac2[1] 18550 prefix = substr(line, 1, index(line, defundef) - 1) 18551 if (D_is_set[macro]) { 18552 # Preserve the white space surrounding the "#". 18553 print prefix "define", macro P[macro] D[macro] 18554 next 18555 } else { 18556 # Replace #undef with comments. This is necessary, for example, 18557 # in the case of _POSIX_SOURCE, which is predefined and required 18558 # on some systems where configure will not decide to define it. 18559 if (defundef == "undef") { 18560 print "/*", prefix defundef, macro, "*/" 18561 next 18562 } 18563 } 18564} 18565{ print } 18566_ACAWK 18567_ACEOF 18568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18569 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18570fi # test -n "$CONFIG_HEADERS" 18571 18572 18573eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18574shift 18575for ac_tag 18576do 18577 case $ac_tag in 18578 :[FHLC]) ac_mode=$ac_tag; continue;; 18579 esac 18580 case $ac_mode$ac_tag in 18581 :[FHL]*:*);; 18582 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18583 :[FH]-) ac_tag=-:-;; 18584 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18585 esac 18586 ac_save_IFS=$IFS 18587 IFS=: 18588 set x $ac_tag 18589 IFS=$ac_save_IFS 18590 shift 18591 ac_file=$1 18592 shift 18593 18594 case $ac_mode in 18595 :L) ac_source=$1;; 18596 :[FH]) 18597 ac_file_inputs= 18598 for ac_f 18599 do 18600 case $ac_f in 18601 -) ac_f="$ac_tmp/stdin";; 18602 *) # Look for the file first in the build tree, then in the source tree 18603 # (if the path is not absolute). The absolute path cannot be DOS-style, 18604 # because $ac_f cannot contain `:'. 18605 test -f "$ac_f" || 18606 case $ac_f in 18607 [\\/$]*) false;; 18608 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18609 esac || 18610 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18611 esac 18612 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18613 as_fn_append ac_file_inputs " '$ac_f'" 18614 done 18615 18616 # Let's still pretend it is `configure' which instantiates (i.e., don't 18617 # use $as_me), people would be surprised to read: 18618 # /* config.h. Generated by config.status. */ 18619 configure_input='Generated from '` 18620 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18621 `' by configure.' 18622 if test x"$ac_file" != x-; then 18623 configure_input="$ac_file. $configure_input" 18624 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18625$as_echo "$as_me: creating $ac_file" >&6;} 18626 fi 18627 # Neutralize special characters interpreted by sed in replacement strings. 18628 case $configure_input in #( 18629 *\&* | *\|* | *\\* ) 18630 ac_sed_conf_input=`$as_echo "$configure_input" | 18631 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18632 *) ac_sed_conf_input=$configure_input;; 18633 esac 18634 18635 case $ac_tag in 18636 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18637 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18638 esac 18639 ;; 18640 esac 18641 18642 ac_dir=`$as_dirname -- "$ac_file" || 18643$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18644 X"$ac_file" : 'X\(//\)[^/]' \| \ 18645 X"$ac_file" : 'X\(//\)$' \| \ 18646 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18647$as_echo X"$ac_file" | 18648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18649 s//\1/ 18650 q 18651 } 18652 /^X\(\/\/\)[^/].*/{ 18653 s//\1/ 18654 q 18655 } 18656 /^X\(\/\/\)$/{ 18657 s//\1/ 18658 q 18659 } 18660 /^X\(\/\).*/{ 18661 s//\1/ 18662 q 18663 } 18664 s/.*/./; q'` 18665 as_dir="$ac_dir"; as_fn_mkdir_p 18666 ac_builddir=. 18667 18668case "$ac_dir" in 18669.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18670*) 18671 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18672 # A ".." for each directory in $ac_dir_suffix. 18673 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18674 case $ac_top_builddir_sub in 18675 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18676 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18677 esac ;; 18678esac 18679ac_abs_top_builddir=$ac_pwd 18680ac_abs_builddir=$ac_pwd$ac_dir_suffix 18681# for backward compatibility: 18682ac_top_builddir=$ac_top_build_prefix 18683 18684case $srcdir in 18685 .) # We are building in place. 18686 ac_srcdir=. 18687 ac_top_srcdir=$ac_top_builddir_sub 18688 ac_abs_top_srcdir=$ac_pwd ;; 18689 [\\/]* | ?:[\\/]* ) # Absolute name. 18690 ac_srcdir=$srcdir$ac_dir_suffix; 18691 ac_top_srcdir=$srcdir 18692 ac_abs_top_srcdir=$srcdir ;; 18693 *) # Relative name. 18694 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18695 ac_top_srcdir=$ac_top_build_prefix$srcdir 18696 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18697esac 18698ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18699 18700 18701 case $ac_mode in 18702 :F) 18703 # 18704 # CONFIG_FILE 18705 # 18706 18707 case $INSTALL in 18708 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18709 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18710 esac 18711 ac_MKDIR_P=$MKDIR_P 18712 case $MKDIR_P in 18713 [\\/$]* | ?:[\\/]* ) ;; 18714 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18715 esac 18716_ACEOF 18717 18718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18719# If the template does not know about datarootdir, expand it. 18720# FIXME: This hack should be removed a few years after 2.60. 18721ac_datarootdir_hack=; ac_datarootdir_seen= 18722ac_sed_dataroot=' 18723/datarootdir/ { 18724 p 18725 q 18726} 18727/@datadir@/p 18728/@docdir@/p 18729/@infodir@/p 18730/@localedir@/p 18731/@mandir@/p' 18732case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18733*datarootdir*) ac_datarootdir_seen=yes;; 18734*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18736$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18737_ACEOF 18738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18739 ac_datarootdir_hack=' 18740 s&@datadir@&$datadir&g 18741 s&@docdir@&$docdir&g 18742 s&@infodir@&$infodir&g 18743 s&@localedir@&$localedir&g 18744 s&@mandir@&$mandir&g 18745 s&\\\${datarootdir}&$datarootdir&g' ;; 18746esac 18747_ACEOF 18748 18749# Neutralize VPATH when `$srcdir' = `.'. 18750# Shell code in configure.ac might set extrasub. 18751# FIXME: do we really want to maintain this feature? 18752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18753ac_sed_extra="$ac_vpsub 18754$extrasub 18755_ACEOF 18756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18757:t 18758/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18759s|@configure_input@|$ac_sed_conf_input|;t t 18760s&@top_builddir@&$ac_top_builddir_sub&;t t 18761s&@top_build_prefix@&$ac_top_build_prefix&;t t 18762s&@srcdir@&$ac_srcdir&;t t 18763s&@abs_srcdir@&$ac_abs_srcdir&;t t 18764s&@top_srcdir@&$ac_top_srcdir&;t t 18765s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18766s&@builddir@&$ac_builddir&;t t 18767s&@abs_builddir@&$ac_abs_builddir&;t t 18768s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18769s&@INSTALL@&$ac_INSTALL&;t t 18770s&@MKDIR_P@&$ac_MKDIR_P&;t t 18771$ac_datarootdir_hack 18772" 18773eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18774 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18775 18776test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18777 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18778 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18779 "$ac_tmp/out"`; test -z "$ac_out"; } && 18780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18781which seems to be undefined. Please make sure it is defined" >&5 18782$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18783which seems to be undefined. Please make sure it is defined" >&2;} 18784 18785 rm -f "$ac_tmp/stdin" 18786 case $ac_file in 18787 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18788 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18789 esac \ 18790 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18791 ;; 18792 :H) 18793 # 18794 # CONFIG_HEADER 18795 # 18796 if test x"$ac_file" != x-; then 18797 { 18798 $as_echo "/* $configure_input */" \ 18799 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18800 } >"$ac_tmp/config.h" \ 18801 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18802 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18803 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18804$as_echo "$as_me: $ac_file is unchanged" >&6;} 18805 else 18806 rm -f "$ac_file" 18807 mv "$ac_tmp/config.h" "$ac_file" \ 18808 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18809 fi 18810 else 18811 $as_echo "/* $configure_input */" \ 18812 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18813 || as_fn_error $? "could not create -" "$LINENO" 5 18814 fi 18815# Compute "$ac_file"'s index in $config_headers. 18816_am_arg="$ac_file" 18817_am_stamp_count=1 18818for _am_header in $config_headers :; do 18819 case $_am_header in 18820 $_am_arg | $_am_arg:* ) 18821 break ;; 18822 * ) 18823 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18824 esac 18825done 18826echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18827$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18828 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18829 X"$_am_arg" : 'X\(//\)$' \| \ 18830 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18831$as_echo X"$_am_arg" | 18832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18833 s//\1/ 18834 q 18835 } 18836 /^X\(\/\/\)[^/].*/{ 18837 s//\1/ 18838 q 18839 } 18840 /^X\(\/\/\)$/{ 18841 s//\1/ 18842 q 18843 } 18844 /^X\(\/\).*/{ 18845 s//\1/ 18846 q 18847 } 18848 s/.*/./; q'`/stamp-h$_am_stamp_count 18849 ;; 18850 18851 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18852$as_echo "$as_me: executing $ac_file commands" >&6;} 18853 ;; 18854 esac 18855 18856 18857 case $ac_file$ac_mode in 18858 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18859 # Older Autoconf quotes --file arguments for eval, but not when files 18860 # are listed without --file. Let's play safe and only enable the eval 18861 # if we detect the quoting. 18862 # TODO: see whether this extra hack can be removed once we start 18863 # requiring Autoconf 2.70 or later. 18864 case $CONFIG_FILES in #( 18865 *\'*) : 18866 eval set x "$CONFIG_FILES" ;; #( 18867 *) : 18868 set x $CONFIG_FILES ;; #( 18869 *) : 18870 ;; 18871esac 18872 shift 18873 # Used to flag and report bootstrapping failures. 18874 am_rc=0 18875 for am_mf 18876 do 18877 # Strip MF so we end up with the name of the file. 18878 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 18879 # Check whether this is an Automake generated Makefile which includes 18880 # dependency-tracking related rules and includes. 18881 # Grep'ing the whole file directly is not great: AIX grep has a line 18882 # limit of 2048, but all sed's we know have understand at least 4000. 18883 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 18884 || continue 18885 am_dirpart=`$as_dirname -- "$am_mf" || 18886$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18887 X"$am_mf" : 'X\(//\)[^/]' \| \ 18888 X"$am_mf" : 'X\(//\)$' \| \ 18889 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18890$as_echo X"$am_mf" | 18891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18892 s//\1/ 18893 q 18894 } 18895 /^X\(\/\/\)[^/].*/{ 18896 s//\1/ 18897 q 18898 } 18899 /^X\(\/\/\)$/{ 18900 s//\1/ 18901 q 18902 } 18903 /^X\(\/\).*/{ 18904 s//\1/ 18905 q 18906 } 18907 s/.*/./; q'` 18908 am_filepart=`$as_basename -- "$am_mf" || 18909$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 18910 X"$am_mf" : 'X\(//\)$' \| \ 18911 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18912$as_echo X/"$am_mf" | 18913 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18914 s//\1/ 18915 q 18916 } 18917 /^X\/\(\/\/\)$/{ 18918 s//\1/ 18919 q 18920 } 18921 /^X\/\(\/\).*/{ 18922 s//\1/ 18923 q 18924 } 18925 s/.*/./; q'` 18926 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 18927 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18928 | $MAKE -f - am--depfiles" >&5 18929 (cd "$am_dirpart" \ 18930 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18931 | $MAKE -f - am--depfiles) >&5 2>&5 18932 ac_status=$? 18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18934 (exit $ac_status); } || am_rc=$? 18935 done 18936 if test $am_rc -ne 0; then 18937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18939as_fn_error $? "Something went wrong bootstrapping makefile fragments 18940 for automatic dependency tracking. Try re-running configure with the 18941 '--disable-dependency-tracking' option to at least be able to build 18942 the package (albeit without support for automatic dependency tracking). 18943See \`config.log' for more details" "$LINENO" 5; } 18944 fi 18945 { am_dirpart=; unset am_dirpart;} 18946 { am_filepart=; unset am_filepart;} 18947 { am_mf=; unset am_mf;} 18948 { am_rc=; unset am_rc;} 18949 rm -f conftest-deps.mk 18950} 18951 ;; 18952 "libtool":C) 18953 18954 # See if we are running on zsh, and set the options which allow our 18955 # commands through without removal of \ escapes. 18956 if test -n "${ZSH_VERSION+set}" ; then 18957 setopt NO_GLOB_SUBST 18958 fi 18959 18960 cfgfile="${ofile}T" 18961 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18962 $RM "$cfgfile" 18963 18964 cat <<_LT_EOF >> "$cfgfile" 18965#! $SHELL 18966 18967# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 18968# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 18969# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18970# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18971# 18972# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 18973# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 18974# Inc. 18975# Written by Gordon Matzigkeit, 1996 18976# 18977# This file is part of GNU Libtool. 18978# 18979# GNU Libtool is free software; you can redistribute it and/or 18980# modify it under the terms of the GNU General Public License as 18981# published by the Free Software Foundation; either version 2 of 18982# the License, or (at your option) any later version. 18983# 18984# As a special exception to the GNU General Public License, 18985# if you distribute this file as part of a program or library that 18986# is built using GNU Libtool, you may include this file under the 18987# same distribution terms that you use for the rest of that program. 18988# 18989# GNU Libtool is distributed in the hope that it will be useful, 18990# but WITHOUT ANY WARRANTY; without even the implied warranty of 18991# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18992# GNU General Public License for more details. 18993# 18994# You should have received a copy of the GNU General Public License 18995# along with GNU Libtool; see the file COPYING. If not, a copy 18996# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 18997# obtained by writing to the Free Software Foundation, Inc., 18998# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18999 19000 19001# The names of the tagged configurations supported by this script. 19002available_tags="CXX " 19003 19004# ### BEGIN LIBTOOL CONFIG 19005 19006# Assembler program. 19007AS=$lt_AS 19008 19009# DLL creation program. 19010DLLTOOL=$lt_DLLTOOL 19011 19012# Object dumper program. 19013OBJDUMP=$lt_OBJDUMP 19014 19015# Which release of libtool.m4 was used? 19016macro_version=$macro_version 19017macro_revision=$macro_revision 19018 19019# Whether or not to build shared libraries. 19020build_libtool_libs=$enable_shared 19021 19022# Whether or not to build static libraries. 19023build_old_libs=$enable_static 19024 19025# What type of objects to build. 19026pic_mode=$pic_mode 19027 19028# Whether or not to optimize for fast installation. 19029fast_install=$enable_fast_install 19030 19031# Shell to use when invoking shell scripts. 19032SHELL=$lt_SHELL 19033 19034# An echo program that protects backslashes. 19035ECHO=$lt_ECHO 19036 19037# The host system. 19038host_alias=$host_alias 19039host=$host 19040host_os=$host_os 19041 19042# The build system. 19043build_alias=$build_alias 19044build=$build 19045build_os=$build_os 19046 19047# A sed program that does not truncate output. 19048SED=$lt_SED 19049 19050# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19051Xsed="\$SED -e 1s/^X//" 19052 19053# A grep program that handles long lines. 19054GREP=$lt_GREP 19055 19056# An ERE matcher. 19057EGREP=$lt_EGREP 19058 19059# A literal string matcher. 19060FGREP=$lt_FGREP 19061 19062# A BSD- or MS-compatible name lister. 19063NM=$lt_NM 19064 19065# Whether we need soft or hard links. 19066LN_S=$lt_LN_S 19067 19068# What is the maximum length of a command? 19069max_cmd_len=$max_cmd_len 19070 19071# Object file suffix (normally "o"). 19072objext=$ac_objext 19073 19074# Executable file suffix (normally ""). 19075exeext=$exeext 19076 19077# whether the shell understands "unset". 19078lt_unset=$lt_unset 19079 19080# turn spaces into newlines. 19081SP2NL=$lt_lt_SP2NL 19082 19083# turn newlines into spaces. 19084NL2SP=$lt_lt_NL2SP 19085 19086# convert \$build file names to \$host format. 19087to_host_file_cmd=$lt_cv_to_host_file_cmd 19088 19089# convert \$build files to toolchain format. 19090to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19091 19092# Method to check whether dependent libraries are shared objects. 19093deplibs_check_method=$lt_deplibs_check_method 19094 19095# Command to use when deplibs_check_method = "file_magic". 19096file_magic_cmd=$lt_file_magic_cmd 19097 19098# How to find potential files when deplibs_check_method = "file_magic". 19099file_magic_glob=$lt_file_magic_glob 19100 19101# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19102want_nocaseglob=$lt_want_nocaseglob 19103 19104# Command to associate shared and link libraries. 19105sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19106 19107# The archiver. 19108AR=$lt_AR 19109 19110# Flags to create an archive. 19111AR_FLAGS=$lt_AR_FLAGS 19112 19113# How to feed a file listing to the archiver. 19114archiver_list_spec=$lt_archiver_list_spec 19115 19116# A symbol stripping program. 19117STRIP=$lt_STRIP 19118 19119# Commands used to install an old-style archive. 19120RANLIB=$lt_RANLIB 19121old_postinstall_cmds=$lt_old_postinstall_cmds 19122old_postuninstall_cmds=$lt_old_postuninstall_cmds 19123 19124# Whether to use a lock for old archive extraction. 19125lock_old_archive_extraction=$lock_old_archive_extraction 19126 19127# A C compiler. 19128LTCC=$lt_CC 19129 19130# LTCC compiler flags. 19131LTCFLAGS=$lt_CFLAGS 19132 19133# Take the output of nm and produce a listing of raw symbols and C names. 19134global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19135 19136# Transform the output of nm in a proper C declaration. 19137global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19138 19139# Transform the output of nm in a C name address pair. 19140global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19141 19142# Transform the output of nm in a C name address pair when lib prefix is needed. 19143global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19144 19145# Specify filename containing input files for \$NM. 19146nm_file_list_spec=$lt_nm_file_list_spec 19147 19148# The root where to search for dependent libraries,and in which our libraries should be installed. 19149lt_sysroot=$lt_sysroot 19150 19151# The name of the directory that contains temporary libtool files. 19152objdir=$objdir 19153 19154# Used to examine libraries when file_magic_cmd begins with "file". 19155MAGIC_CMD=$MAGIC_CMD 19156 19157# Must we lock files when doing compilation? 19158need_locks=$lt_need_locks 19159 19160# Manifest tool. 19161MANIFEST_TOOL=$lt_MANIFEST_TOOL 19162 19163# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19164DSYMUTIL=$lt_DSYMUTIL 19165 19166# Tool to change global to local symbols on Mac OS X. 19167NMEDIT=$lt_NMEDIT 19168 19169# Tool to manipulate fat objects and archives on Mac OS X. 19170LIPO=$lt_LIPO 19171 19172# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19173OTOOL=$lt_OTOOL 19174 19175# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19176OTOOL64=$lt_OTOOL64 19177 19178# Old archive suffix (normally "a"). 19179libext=$libext 19180 19181# Shared library suffix (normally ".so"). 19182shrext_cmds=$lt_shrext_cmds 19183 19184# The commands to extract the exported symbol list from a shared archive. 19185extract_expsyms_cmds=$lt_extract_expsyms_cmds 19186 19187# Variables whose values should be saved in libtool wrapper scripts and 19188# restored at link time. 19189variables_saved_for_relink=$lt_variables_saved_for_relink 19190 19191# Do we need the "lib" prefix for modules? 19192need_lib_prefix=$need_lib_prefix 19193 19194# Do we need a version for libraries? 19195need_version=$need_version 19196 19197# Library versioning type. 19198version_type=$version_type 19199 19200# Shared library runtime path variable. 19201runpath_var=$runpath_var 19202 19203# Shared library path variable. 19204shlibpath_var=$shlibpath_var 19205 19206# Is shlibpath searched before the hard-coded library search path? 19207shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19208 19209# Format of library name prefix. 19210libname_spec=$lt_libname_spec 19211 19212# List of archive names. First name is the real one, the rest are links. 19213# The last name is the one that the linker finds with -lNAME 19214library_names_spec=$lt_library_names_spec 19215 19216# The coded name of the library, if different from the real name. 19217soname_spec=$lt_soname_spec 19218 19219# Permission mode override for installation of shared libraries. 19220install_override_mode=$lt_install_override_mode 19221 19222# Command to use after installation of a shared archive. 19223postinstall_cmds=$lt_postinstall_cmds 19224 19225# Command to use after uninstallation of a shared archive. 19226postuninstall_cmds=$lt_postuninstall_cmds 19227 19228# Commands used to finish a libtool library installation in a directory. 19229finish_cmds=$lt_finish_cmds 19230 19231# As "finish_cmds", except a single script fragment to be evaled but 19232# not shown. 19233finish_eval=$lt_finish_eval 19234 19235# Whether we should hardcode library paths into libraries. 19236hardcode_into_libs=$hardcode_into_libs 19237 19238# Compile-time system search path for libraries. 19239sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19240 19241# Run-time system search path for libraries. 19242sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19243 19244# Whether dlopen is supported. 19245dlopen_support=$enable_dlopen 19246 19247# Whether dlopen of programs is supported. 19248dlopen_self=$enable_dlopen_self 19249 19250# Whether dlopen of statically linked programs is supported. 19251dlopen_self_static=$enable_dlopen_self_static 19252 19253# Commands to strip libraries. 19254old_striplib=$lt_old_striplib 19255striplib=$lt_striplib 19256 19257 19258# The linker used to build libraries. 19259LD=$lt_LD 19260 19261# How to create reloadable object files. 19262reload_flag=$lt_reload_flag 19263reload_cmds=$lt_reload_cmds 19264 19265# Commands used to build an old-style archive. 19266old_archive_cmds=$lt_old_archive_cmds 19267 19268# A language specific compiler. 19269CC=$lt_compiler 19270 19271# Is the compiler the GNU compiler? 19272with_gcc=$GCC 19273 19274# Compiler flag to turn off builtin functions. 19275no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19276 19277# Additional compiler flags for building library objects. 19278pic_flag=$lt_lt_prog_compiler_pic 19279 19280# How to pass a linker flag through the compiler. 19281wl=$lt_lt_prog_compiler_wl 19282 19283# Compiler flag to prevent dynamic linking. 19284link_static_flag=$lt_lt_prog_compiler_static 19285 19286# Does compiler simultaneously support -c and -o options? 19287compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19288 19289# Whether or not to add -lc for building shared libraries. 19290build_libtool_need_lc=$archive_cmds_need_lc 19291 19292# Whether or not to disallow shared libs when runtime libs are static. 19293allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19294 19295# Compiler flag to allow reflexive dlopens. 19296export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19297 19298# Compiler flag to generate shared objects directly from archives. 19299whole_archive_flag_spec=$lt_whole_archive_flag_spec 19300 19301# Whether the compiler copes with passing no objects directly. 19302compiler_needs_object=$lt_compiler_needs_object 19303 19304# Create an old-style archive from a shared archive. 19305old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19306 19307# Create a temporary old-style archive to link instead of a shared archive. 19308old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19309 19310# Commands used to build a shared archive. 19311archive_cmds=$lt_archive_cmds 19312archive_expsym_cmds=$lt_archive_expsym_cmds 19313 19314# Commands used to build a loadable module if different from building 19315# a shared archive. 19316module_cmds=$lt_module_cmds 19317module_expsym_cmds=$lt_module_expsym_cmds 19318 19319# Whether we are building with GNU ld or not. 19320with_gnu_ld=$lt_with_gnu_ld 19321 19322# Flag that allows shared libraries with undefined symbols to be built. 19323allow_undefined_flag=$lt_allow_undefined_flag 19324 19325# Flag that enforces no undefined symbols. 19326no_undefined_flag=$lt_no_undefined_flag 19327 19328# Flag to hardcode \$libdir into a binary during linking. 19329# This must work even if \$libdir does not exist 19330hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19331 19332# If ld is used when linking, flag to hardcode \$libdir into a binary 19333# during linking. This must work even if \$libdir does not exist. 19334hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 19335 19336# Whether we need a single "-rpath" flag with a separated argument. 19337hardcode_libdir_separator=$lt_hardcode_libdir_separator 19338 19339# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19340# DIR into the resulting binary. 19341hardcode_direct=$hardcode_direct 19342 19343# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19344# DIR into the resulting binary and the resulting library dependency is 19345# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19346# library is relocated. 19347hardcode_direct_absolute=$hardcode_direct_absolute 19348 19349# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19350# into the resulting binary. 19351hardcode_minus_L=$hardcode_minus_L 19352 19353# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19354# into the resulting binary. 19355hardcode_shlibpath_var=$hardcode_shlibpath_var 19356 19357# Set to "yes" if building a shared library automatically hardcodes DIR 19358# into the library and all subsequent libraries and executables linked 19359# against it. 19360hardcode_automatic=$hardcode_automatic 19361 19362# Set to yes if linker adds runtime paths of dependent libraries 19363# to runtime path list. 19364inherit_rpath=$inherit_rpath 19365 19366# Whether libtool must link a program against all its dependency libraries. 19367link_all_deplibs=$link_all_deplibs 19368 19369# Set to "yes" if exported symbols are required. 19370always_export_symbols=$always_export_symbols 19371 19372# The commands to list exported symbols. 19373export_symbols_cmds=$lt_export_symbols_cmds 19374 19375# Symbols that should not be listed in the preloaded symbols. 19376exclude_expsyms=$lt_exclude_expsyms 19377 19378# Symbols that must always be exported. 19379include_expsyms=$lt_include_expsyms 19380 19381# Commands necessary for linking programs (against libraries) with templates. 19382prelink_cmds=$lt_prelink_cmds 19383 19384# Commands necessary for finishing linking programs. 19385postlink_cmds=$lt_postlink_cmds 19386 19387# Specify filename containing input files. 19388file_list_spec=$lt_file_list_spec 19389 19390# How to hardcode a shared library path into an executable. 19391hardcode_action=$hardcode_action 19392 19393# The directories searched by this compiler when creating a shared library. 19394compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19395 19396# Dependencies to place before and after the objects being linked to 19397# create a shared library. 19398predep_objects=$lt_predep_objects 19399postdep_objects=$lt_postdep_objects 19400predeps=$lt_predeps 19401postdeps=$lt_postdeps 19402 19403# The library search path used internally by the compiler when linking 19404# a shared library. 19405compiler_lib_search_path=$lt_compiler_lib_search_path 19406 19407# ### END LIBTOOL CONFIG 19408 19409_LT_EOF 19410 19411 case $host_os in 19412 aix3*) 19413 cat <<\_LT_EOF >> "$cfgfile" 19414# AIX sometimes has problems with the GCC collect2 program. For some 19415# reason, if we set the COLLECT_NAMES environment variable, the problems 19416# vanish in a puff of smoke. 19417if test "X${COLLECT_NAMES+set}" != Xset; then 19418 COLLECT_NAMES= 19419 export COLLECT_NAMES 19420fi 19421_LT_EOF 19422 ;; 19423 esac 19424 19425 19426ltmain="$ac_aux_dir/ltmain.sh" 19427 19428 19429 # We use sed instead of cat because bash on DJGPP gets confused if 19430 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19431 # text mode, it properly converts lines to CR/LF. This bash problem 19432 # is reportedly fixed, but why not run on old versions too? 19433 sed '$q' "$ltmain" >> "$cfgfile" \ 19434 || (rm -f "$cfgfile"; exit 1) 19435 19436 if test x"$xsi_shell" = xyes; then 19437 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 19438func_dirname ()\ 19439{\ 19440\ case ${1} in\ 19441\ */*) func_dirname_result="${1%/*}${2}" ;;\ 19442\ * ) func_dirname_result="${3}" ;;\ 19443\ esac\ 19444} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 19445 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19446 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19447test 0 -eq $? || _lt_function_replace_fail=: 19448 19449 19450 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 19451func_basename ()\ 19452{\ 19453\ func_basename_result="${1##*/}"\ 19454} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 19455 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19456 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19457test 0 -eq $? || _lt_function_replace_fail=: 19458 19459 19460 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 19461func_dirname_and_basename ()\ 19462{\ 19463\ case ${1} in\ 19464\ */*) func_dirname_result="${1%/*}${2}" ;;\ 19465\ * ) func_dirname_result="${3}" ;;\ 19466\ esac\ 19467\ func_basename_result="${1##*/}"\ 19468} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 19469 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19470 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19471test 0 -eq $? || _lt_function_replace_fail=: 19472 19473 19474 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 19475func_stripname ()\ 19476{\ 19477\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 19478\ # positional parameters, so assign one to ordinary parameter first.\ 19479\ func_stripname_result=${3}\ 19480\ func_stripname_result=${func_stripname_result#"${1}"}\ 19481\ func_stripname_result=${func_stripname_result%"${2}"}\ 19482} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 19483 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19484 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19485test 0 -eq $? || _lt_function_replace_fail=: 19486 19487 19488 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 19489func_split_long_opt ()\ 19490{\ 19491\ func_split_long_opt_name=${1%%=*}\ 19492\ func_split_long_opt_arg=${1#*=}\ 19493} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 19494 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19495 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19496test 0 -eq $? || _lt_function_replace_fail=: 19497 19498 19499 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 19500func_split_short_opt ()\ 19501{\ 19502\ func_split_short_opt_arg=${1#??}\ 19503\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 19504} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 19505 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19506 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19507test 0 -eq $? || _lt_function_replace_fail=: 19508 19509 19510 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 19511func_lo2o ()\ 19512{\ 19513\ case ${1} in\ 19514\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 19515\ *) func_lo2o_result=${1} ;;\ 19516\ esac\ 19517} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 19518 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19519 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19520test 0 -eq $? || _lt_function_replace_fail=: 19521 19522 19523 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 19524func_xform ()\ 19525{\ 19526 func_xform_result=${1%.*}.lo\ 19527} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 19528 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19529 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19530test 0 -eq $? || _lt_function_replace_fail=: 19531 19532 19533 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 19534func_arith ()\ 19535{\ 19536 func_arith_result=$(( $* ))\ 19537} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 19538 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19539 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19540test 0 -eq $? || _lt_function_replace_fail=: 19541 19542 19543 sed -e '/^func_len ()$/,/^} # func_len /c\ 19544func_len ()\ 19545{\ 19546 func_len_result=${#1}\ 19547} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 19548 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19549 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19550test 0 -eq $? || _lt_function_replace_fail=: 19551 19552fi 19553 19554if test x"$lt_shell_append" = xyes; then 19555 sed -e '/^func_append ()$/,/^} # func_append /c\ 19556func_append ()\ 19557{\ 19558 eval "${1}+=\\${2}"\ 19559} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 19560 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19561 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19562test 0 -eq $? || _lt_function_replace_fail=: 19563 19564 19565 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 19566func_append_quoted ()\ 19567{\ 19568\ func_quote_for_eval "${2}"\ 19569\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 19570} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 19571 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19572 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19573test 0 -eq $? || _lt_function_replace_fail=: 19574 19575 19576 # Save a `func_append' function call where possible by direct use of '+=' 19577 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 19578 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19579 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19580 test 0 -eq $? || _lt_function_replace_fail=: 19581else 19582 # Save a `func_append' function call even when '+=' is not available 19583 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 19584 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19585 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19586 test 0 -eq $? || _lt_function_replace_fail=: 19587fi 19588 19589if test x"$_lt_function_replace_fail" = x":"; then 19590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 19591$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 19592fi 19593 19594 19595 mv -f "$cfgfile" "$ofile" || 19596 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19597 chmod +x "$ofile" 19598 19599 19600 cat <<_LT_EOF >> "$ofile" 19601 19602# ### BEGIN LIBTOOL TAG CONFIG: CXX 19603 19604# The linker used to build libraries. 19605LD=$lt_LD_CXX 19606 19607# How to create reloadable object files. 19608reload_flag=$lt_reload_flag_CXX 19609reload_cmds=$lt_reload_cmds_CXX 19610 19611# Commands used to build an old-style archive. 19612old_archive_cmds=$lt_old_archive_cmds_CXX 19613 19614# A language specific compiler. 19615CC=$lt_compiler_CXX 19616 19617# Is the compiler the GNU compiler? 19618with_gcc=$GCC_CXX 19619 19620# Compiler flag to turn off builtin functions. 19621no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 19622 19623# Additional compiler flags for building library objects. 19624pic_flag=$lt_lt_prog_compiler_pic_CXX 19625 19626# How to pass a linker flag through the compiler. 19627wl=$lt_lt_prog_compiler_wl_CXX 19628 19629# Compiler flag to prevent dynamic linking. 19630link_static_flag=$lt_lt_prog_compiler_static_CXX 19631 19632# Does compiler simultaneously support -c and -o options? 19633compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 19634 19635# Whether or not to add -lc for building shared libraries. 19636build_libtool_need_lc=$archive_cmds_need_lc_CXX 19637 19638# Whether or not to disallow shared libs when runtime libs are static. 19639allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 19640 19641# Compiler flag to allow reflexive dlopens. 19642export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 19643 19644# Compiler flag to generate shared objects directly from archives. 19645whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 19646 19647# Whether the compiler copes with passing no objects directly. 19648compiler_needs_object=$lt_compiler_needs_object_CXX 19649 19650# Create an old-style archive from a shared archive. 19651old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 19652 19653# Create a temporary old-style archive to link instead of a shared archive. 19654old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 19655 19656# Commands used to build a shared archive. 19657archive_cmds=$lt_archive_cmds_CXX 19658archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 19659 19660# Commands used to build a loadable module if different from building 19661# a shared archive. 19662module_cmds=$lt_module_cmds_CXX 19663module_expsym_cmds=$lt_module_expsym_cmds_CXX 19664 19665# Whether we are building with GNU ld or not. 19666with_gnu_ld=$lt_with_gnu_ld_CXX 19667 19668# Flag that allows shared libraries with undefined symbols to be built. 19669allow_undefined_flag=$lt_allow_undefined_flag_CXX 19670 19671# Flag that enforces no undefined symbols. 19672no_undefined_flag=$lt_no_undefined_flag_CXX 19673 19674# Flag to hardcode \$libdir into a binary during linking. 19675# This must work even if \$libdir does not exist 19676hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 19677 19678# If ld is used when linking, flag to hardcode \$libdir into a binary 19679# during linking. This must work even if \$libdir does not exist. 19680hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 19681 19682# Whether we need a single "-rpath" flag with a separated argument. 19683hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 19684 19685# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19686# DIR into the resulting binary. 19687hardcode_direct=$hardcode_direct_CXX 19688 19689# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19690# DIR into the resulting binary and the resulting library dependency is 19691# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19692# library is relocated. 19693hardcode_direct_absolute=$hardcode_direct_absolute_CXX 19694 19695# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19696# into the resulting binary. 19697hardcode_minus_L=$hardcode_minus_L_CXX 19698 19699# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19700# into the resulting binary. 19701hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 19702 19703# Set to "yes" if building a shared library automatically hardcodes DIR 19704# into the library and all subsequent libraries and executables linked 19705# against it. 19706hardcode_automatic=$hardcode_automatic_CXX 19707 19708# Set to yes if linker adds runtime paths of dependent libraries 19709# to runtime path list. 19710inherit_rpath=$inherit_rpath_CXX 19711 19712# Whether libtool must link a program against all its dependency libraries. 19713link_all_deplibs=$link_all_deplibs_CXX 19714 19715# Set to "yes" if exported symbols are required. 19716always_export_symbols=$always_export_symbols_CXX 19717 19718# The commands to list exported symbols. 19719export_symbols_cmds=$lt_export_symbols_cmds_CXX 19720 19721# Symbols that should not be listed in the preloaded symbols. 19722exclude_expsyms=$lt_exclude_expsyms_CXX 19723 19724# Symbols that must always be exported. 19725include_expsyms=$lt_include_expsyms_CXX 19726 19727# Commands necessary for linking programs (against libraries) with templates. 19728prelink_cmds=$lt_prelink_cmds_CXX 19729 19730# Commands necessary for finishing linking programs. 19731postlink_cmds=$lt_postlink_cmds_CXX 19732 19733# Specify filename containing input files. 19734file_list_spec=$lt_file_list_spec_CXX 19735 19736# How to hardcode a shared library path into an executable. 19737hardcode_action=$hardcode_action_CXX 19738 19739# The directories searched by this compiler when creating a shared library. 19740compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 19741 19742# Dependencies to place before and after the objects being linked to 19743# create a shared library. 19744predep_objects=$lt_predep_objects_CXX 19745postdep_objects=$lt_postdep_objects_CXX 19746predeps=$lt_predeps_CXX 19747postdeps=$lt_postdeps_CXX 19748 19749# The library search path used internally by the compiler when linking 19750# a shared library. 19751compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 19752 19753# ### END LIBTOOL TAG CONFIG: CXX 19754_LT_EOF 19755 19756 ;; 19757 19758 esac 19759done # for ac_tag 19760 19761 19762as_fn_exit 0 19763_ACEOF 19764ac_clean_files=$ac_clean_files_save 19765 19766test $ac_write_fail = 0 || 19767 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19768 19769 19770# configure is writing to config.log, and then calls config.status. 19771# config.status does its own redirection, appending to config.log. 19772# Unfortunately, on DOS this fails, as config.log is still kept open 19773# by configure, so config.status won't be able to write to it; its 19774# output is simply discarded. So we exec the FD to /dev/null, 19775# effectively closing config.log, so it can be properly (re)opened and 19776# appended to by config.status. When coming back to configure, we 19777# need to make the FD available again. 19778if test "$no_create" != yes; then 19779 ac_cs_success=: 19780 ac_config_status_args= 19781 test "$silent" = yes && 19782 ac_config_status_args="$ac_config_status_args --quiet" 19783 exec 5>/dev/null 19784 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19785 exec 5>>config.log 19786 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19787 # would make configure fail if this is the last instruction. 19788 $ac_cs_success || as_fn_exit 1 19789fi 19790if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19792$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19793fi 19794 19795