1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for GeographicLib 1.52. 4# 5# Report bugs to <charles@karney.com>. 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 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || 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 charles@karney.com 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='GeographicLib' 592PACKAGE_TARNAME='geographiclib' 593PACKAGE_VERSION='1.52' 594PACKAGE_STRING='GeographicLib 1.52' 595PACKAGE_BUGREPORT='charles@karney.com' 596PACKAGE_URL='' 597 598ac_unique_file="src/Geodesic.cpp" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639pkgconfigdir 640PKG_CONFIG_LIBDIR 641PKG_CONFIG_PATH 642PKG_CONFIG 643HAVE_PODPROGS_FALSE 644HAVE_PODPROGS_TRUE 645COL 646POD2HTML 647POD2MAN 648HAVE_DOXYGEN_FALSE 649HAVE_DOXYGEN_TRUE 650DOXYGEN 651CXXCPP 652LT_SYS_LIBRARY_PATH 653OTOOL64 654OTOOL 655LIPO 656NMEDIT 657DSYMUTIL 658MANIFEST_TOOL 659RANLIB 660ac_ct_AR 661AR 662DLLTOOL 663OBJDUMP 664LN_S 665NM 666ac_ct_DUMPBIN 667DUMPBIN 668LD 669FGREP 670EGREP 671GREP 672SED 673LIBTOOL 674HAVE_CXX11 675am__fastdepCXX_FALSE 676am__fastdepCXX_TRUE 677CXXDEPMODE 678ac_ct_CXX 679CXXFLAGS 680CXX 681CPP 682am__fastdepCC_FALSE 683am__fastdepCC_TRUE 684CCDEPMODE 685am__nodep 686AMDEPBACKSLASH 687AMDEP_FALSE 688AMDEP_TRUE 689am__include 690DEPDIR 691OBJEXT 692EXEEXT 693ac_ct_CC 694CPPFLAGS 695LDFLAGS 696CFLAGS 697CC 698LT_AGE 699LT_REVISION 700LT_CURRENT 701MAINT 702MAINTAINER_MODE_FALSE 703MAINTAINER_MODE_TRUE 704GEOGRAPHICLIB_VERSION_PATCH 705GEOGRAPHICLIB_VERSION_MINOR 706GEOGRAPHICLIB_VERSION_MAJOR 707AM_BACKSLASH 708AM_DEFAULT_VERBOSITY 709AM_DEFAULT_V 710AM_V 711am__untar 712am__tar 713AMTAR 714am__leading_dot 715SET_MAKE 716AWK 717mkdir_p 718MKDIR_P 719INSTALL_STRIP_PROGRAM 720STRIP 721install_sh 722MAKEINFO 723AUTOHEADER 724AUTOMAKE 725AUTOCONF 726ACLOCAL 727VERSION 728PACKAGE 729CYGPATH_W 730am__isrc 731INSTALL_DATA 732INSTALL_SCRIPT 733INSTALL_PROGRAM 734target_os 735target_vendor 736target_cpu 737target 738host_os 739host_vendor 740host_cpu 741host 742build_os 743build_vendor 744build_cpu 745build 746target_alias 747host_alias 748build_alias 749LIBS 750ECHO_T 751ECHO_N 752ECHO_C 753DEFS 754mandir 755localedir 756libdir 757psdir 758pdfdir 759dvidir 760htmldir 761infodir 762docdir 763oldincludedir 764includedir 765localstatedir 766sharedstatedir 767sysconfdir 768datadir 769datarootdir 770libexecdir 771sbindir 772bindir 773program_transform_name 774prefix 775exec_prefix 776PACKAGE_URL 777PACKAGE_BUGREPORT 778PACKAGE_STRING 779PACKAGE_VERSION 780PACKAGE_TARNAME 781PACKAGE_NAME 782PATH_SEPARATOR 783SHELL 784am__quote' 785ac_subst_files='' 786ac_user_opts=' 787enable_option_checking 788enable_silent_rules 789enable_maintainer_mode 790enable_dependency_tracking 791enable_shared 792enable_static 793with_pic 794enable_fast_install 795with_aix_soname 796with_gnu_ld 797with_sysroot 798enable_libtool_lock 799with_pkgconfigdir 800' 801 ac_precious_vars='build_alias 802host_alias 803target_alias 804CC 805CFLAGS 806LDFLAGS 807LIBS 808CPPFLAGS 809CPP 810CXX 811CXXFLAGS 812CCC 813LT_SYS_LIBRARY_PATH 814CXXCPP 815PKG_CONFIG 816PKG_CONFIG_PATH 817PKG_CONFIG_LIBDIR' 818 819 820# Initialize some variables set by options. 821ac_init_help= 822ac_init_version=false 823ac_unrecognized_opts= 824ac_unrecognized_sep= 825# The variables have the same names as the options, with 826# dashes changed to underlines. 827cache_file=/dev/null 828exec_prefix=NONE 829no_create= 830no_recursion= 831prefix=NONE 832program_prefix=NONE 833program_suffix=NONE 834program_transform_name=s,x,x, 835silent= 836site= 837srcdir= 838verbose= 839x_includes=NONE 840x_libraries=NONE 841 842# Installation directory options. 843# These are left unexpanded so users can "make install exec_prefix=/foo" 844# and all the variables that are supposed to be based on exec_prefix 845# by default will actually change. 846# Use braces instead of parens because sh, perl, etc. also accept them. 847# (The list follows the same order as the GNU Coding Standards.) 848bindir='${exec_prefix}/bin' 849sbindir='${exec_prefix}/sbin' 850libexecdir='${exec_prefix}/libexec' 851datarootdir='${prefix}/share' 852datadir='${datarootdir}' 853sysconfdir='${prefix}/etc' 854sharedstatedir='${prefix}/com' 855localstatedir='${prefix}/var' 856includedir='${prefix}/include' 857oldincludedir='/usr/include' 858docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 859infodir='${datarootdir}/info' 860htmldir='${docdir}' 861dvidir='${docdir}' 862pdfdir='${docdir}' 863psdir='${docdir}' 864libdir='${exec_prefix}/lib' 865localedir='${datarootdir}/locale' 866mandir='${datarootdir}/man' 867 868ac_prev= 869ac_dashdash= 870for ac_option 871do 872 # If the previous option needs an argument, assign it. 873 if test -n "$ac_prev"; then 874 eval $ac_prev=\$ac_option 875 ac_prev= 876 continue 877 fi 878 879 case $ac_option in 880 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 881 *=) ac_optarg= ;; 882 *) ac_optarg=yes ;; 883 esac 884 885 # Accept the important Cygnus configure options, so we can diagnose typos. 886 887 case $ac_dashdash$ac_option in 888 --) 889 ac_dashdash=yes ;; 890 891 -bindir | --bindir | --bindi | --bind | --bin | --bi) 892 ac_prev=bindir ;; 893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 894 bindir=$ac_optarg ;; 895 896 -build | --build | --buil | --bui | --bu) 897 ac_prev=build_alias ;; 898 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 899 build_alias=$ac_optarg ;; 900 901 -cache-file | --cache-file | --cache-fil | --cache-fi \ 902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 903 ac_prev=cache_file ;; 904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 906 cache_file=$ac_optarg ;; 907 908 --config-cache | -C) 909 cache_file=config.cache ;; 910 911 -datadir | --datadir | --datadi | --datad) 912 ac_prev=datadir ;; 913 -datadir=* | --datadir=* | --datadi=* | --datad=*) 914 datadir=$ac_optarg ;; 915 916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 917 | --dataroo | --dataro | --datar) 918 ac_prev=datarootdir ;; 919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 921 datarootdir=$ac_optarg ;; 922 923 -disable-* | --disable-*) 924 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 925 # Reject names that are not valid shell variable names. 926 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 927 as_fn_error $? "invalid feature name: $ac_useropt" 928 ac_useropt_orig=$ac_useropt 929 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 930 case $ac_user_opts in 931 *" 932"enable_$ac_useropt" 933"*) ;; 934 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 935 ac_unrecognized_sep=', ';; 936 esac 937 eval enable_$ac_useropt=no ;; 938 939 -docdir | --docdir | --docdi | --doc | --do) 940 ac_prev=docdir ;; 941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 942 docdir=$ac_optarg ;; 943 944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 945 ac_prev=dvidir ;; 946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 947 dvidir=$ac_optarg ;; 948 949 -enable-* | --enable-*) 950 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 951 # Reject names that are not valid shell variable names. 952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 953 as_fn_error $? "invalid feature name: $ac_useropt" 954 ac_useropt_orig=$ac_useropt 955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 956 case $ac_user_opts in 957 *" 958"enable_$ac_useropt" 959"*) ;; 960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 961 ac_unrecognized_sep=', ';; 962 esac 963 eval enable_$ac_useropt=\$ac_optarg ;; 964 965 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 966 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 967 | --exec | --exe | --ex) 968 ac_prev=exec_prefix ;; 969 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 970 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 971 | --exec=* | --exe=* | --ex=*) 972 exec_prefix=$ac_optarg ;; 973 974 -gas | --gas | --ga | --g) 975 # Obsolete; use --with-gas. 976 with_gas=yes ;; 977 978 -help | --help | --hel | --he | -h) 979 ac_init_help=long ;; 980 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 981 ac_init_help=recursive ;; 982 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 983 ac_init_help=short ;; 984 985 -host | --host | --hos | --ho) 986 ac_prev=host_alias ;; 987 -host=* | --host=* | --hos=* | --ho=*) 988 host_alias=$ac_optarg ;; 989 990 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 991 ac_prev=htmldir ;; 992 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 993 | --ht=*) 994 htmldir=$ac_optarg ;; 995 996 -includedir | --includedir | --includedi | --included | --include \ 997 | --includ | --inclu | --incl | --inc) 998 ac_prev=includedir ;; 999 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1000 | --includ=* | --inclu=* | --incl=* | --inc=*) 1001 includedir=$ac_optarg ;; 1002 1003 -infodir | --infodir | --infodi | --infod | --info | --inf) 1004 ac_prev=infodir ;; 1005 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1006 infodir=$ac_optarg ;; 1007 1008 -libdir | --libdir | --libdi | --libd) 1009 ac_prev=libdir ;; 1010 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1011 libdir=$ac_optarg ;; 1012 1013 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1014 | --libexe | --libex | --libe) 1015 ac_prev=libexecdir ;; 1016 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1017 | --libexe=* | --libex=* | --libe=*) 1018 libexecdir=$ac_optarg ;; 1019 1020 -localedir | --localedir | --localedi | --localed | --locale) 1021 ac_prev=localedir ;; 1022 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1023 localedir=$ac_optarg ;; 1024 1025 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1026 | --localstate | --localstat | --localsta | --localst | --locals) 1027 ac_prev=localstatedir ;; 1028 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1029 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1030 localstatedir=$ac_optarg ;; 1031 1032 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1033 ac_prev=mandir ;; 1034 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1035 mandir=$ac_optarg ;; 1036 1037 -nfp | --nfp | --nf) 1038 # Obsolete; use --without-fp. 1039 with_fp=no ;; 1040 1041 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1042 | --no-cr | --no-c | -n) 1043 no_create=yes ;; 1044 1045 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1046 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1047 no_recursion=yes ;; 1048 1049 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1050 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1051 | --oldin | --oldi | --old | --ol | --o) 1052 ac_prev=oldincludedir ;; 1053 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1054 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1055 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1056 oldincludedir=$ac_optarg ;; 1057 1058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1059 ac_prev=prefix ;; 1060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1061 prefix=$ac_optarg ;; 1062 1063 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1064 | --program-pre | --program-pr | --program-p) 1065 ac_prev=program_prefix ;; 1066 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1067 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1068 program_prefix=$ac_optarg ;; 1069 1070 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1071 | --program-suf | --program-su | --program-s) 1072 ac_prev=program_suffix ;; 1073 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1074 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1075 program_suffix=$ac_optarg ;; 1076 1077 -program-transform-name | --program-transform-name \ 1078 | --program-transform-nam | --program-transform-na \ 1079 | --program-transform-n | --program-transform- \ 1080 | --program-transform | --program-transfor \ 1081 | --program-transfo | --program-transf \ 1082 | --program-trans | --program-tran \ 1083 | --progr-tra | --program-tr | --program-t) 1084 ac_prev=program_transform_name ;; 1085 -program-transform-name=* | --program-transform-name=* \ 1086 | --program-transform-nam=* | --program-transform-na=* \ 1087 | --program-transform-n=* | --program-transform-=* \ 1088 | --program-transform=* | --program-transfor=* \ 1089 | --program-transfo=* | --program-transf=* \ 1090 | --program-trans=* | --program-tran=* \ 1091 | --progr-tra=* | --program-tr=* | --program-t=*) 1092 program_transform_name=$ac_optarg ;; 1093 1094 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1095 ac_prev=pdfdir ;; 1096 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1097 pdfdir=$ac_optarg ;; 1098 1099 -psdir | --psdir | --psdi | --psd | --ps) 1100 ac_prev=psdir ;; 1101 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1102 psdir=$ac_optarg ;; 1103 1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1105 | -silent | --silent | --silen | --sile | --sil) 1106 silent=yes ;; 1107 1108 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1109 ac_prev=sbindir ;; 1110 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1111 | --sbi=* | --sb=*) 1112 sbindir=$ac_optarg ;; 1113 1114 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1115 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1116 | --sharedst | --shareds | --shared | --share | --shar \ 1117 | --sha | --sh) 1118 ac_prev=sharedstatedir ;; 1119 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1120 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1121 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1122 | --sha=* | --sh=*) 1123 sharedstatedir=$ac_optarg ;; 1124 1125 -site | --site | --sit) 1126 ac_prev=site ;; 1127 -site=* | --site=* | --sit=*) 1128 site=$ac_optarg ;; 1129 1130 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1131 ac_prev=srcdir ;; 1132 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1133 srcdir=$ac_optarg ;; 1134 1135 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1136 | --syscon | --sysco | --sysc | --sys | --sy) 1137 ac_prev=sysconfdir ;; 1138 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1139 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1140 sysconfdir=$ac_optarg ;; 1141 1142 -target | --target | --targe | --targ | --tar | --ta | --t) 1143 ac_prev=target_alias ;; 1144 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1145 target_alias=$ac_optarg ;; 1146 1147 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1148 verbose=yes ;; 1149 1150 -version | --version | --versio | --versi | --vers | -V) 1151 ac_init_version=: ;; 1152 1153 -with-* | --with-*) 1154 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1155 # Reject names that are not valid shell variable names. 1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1157 as_fn_error $? "invalid package name: $ac_useropt" 1158 ac_useropt_orig=$ac_useropt 1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1160 case $ac_user_opts in 1161 *" 1162"with_$ac_useropt" 1163"*) ;; 1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1165 ac_unrecognized_sep=', ';; 1166 esac 1167 eval with_$ac_useropt=\$ac_optarg ;; 1168 1169 -without-* | --without-*) 1170 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1171 # Reject names that are not valid shell variable names. 1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1173 as_fn_error $? "invalid package name: $ac_useropt" 1174 ac_useropt_orig=$ac_useropt 1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1176 case $ac_user_opts in 1177 *" 1178"with_$ac_useropt" 1179"*) ;; 1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1181 ac_unrecognized_sep=', ';; 1182 esac 1183 eval with_$ac_useropt=no ;; 1184 1185 --x) 1186 # Obsolete; use --with-x. 1187 with_x=yes ;; 1188 1189 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1190 | --x-incl | --x-inc | --x-in | --x-i) 1191 ac_prev=x_includes ;; 1192 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1193 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1194 x_includes=$ac_optarg ;; 1195 1196 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1197 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1198 ac_prev=x_libraries ;; 1199 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1200 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1201 x_libraries=$ac_optarg ;; 1202 1203 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1204Try \`$0 --help' for more information" 1205 ;; 1206 1207 *=*) 1208 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1209 # Reject names that are not valid shell variable names. 1210 case $ac_envvar in #( 1211 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1212 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1213 esac 1214 eval $ac_envvar=\$ac_optarg 1215 export $ac_envvar ;; 1216 1217 *) 1218 # FIXME: should be removed in autoconf 3.0. 1219 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1220 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1221 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1222 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1223 ;; 1224 1225 esac 1226done 1227 1228if test -n "$ac_prev"; then 1229 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1230 as_fn_error $? "missing argument to $ac_option" 1231fi 1232 1233if test -n "$ac_unrecognized_opts"; then 1234 case $enable_option_checking in 1235 no) ;; 1236 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1237 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1238 esac 1239fi 1240 1241# Check all directory arguments for consistency. 1242for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1243 datadir sysconfdir sharedstatedir localstatedir includedir \ 1244 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1245 libdir localedir mandir 1246do 1247 eval ac_val=\$$ac_var 1248 # Remove trailing slashes. 1249 case $ac_val in 1250 */ ) 1251 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1252 eval $ac_var=\$ac_val;; 1253 esac 1254 # Be sure to have absolute directory names. 1255 case $ac_val in 1256 [\\/$]* | ?:[\\/]* ) continue;; 1257 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1258 esac 1259 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1260done 1261 1262# There might be people who depend on the old broken behavior: `$host' 1263# used to hold the argument of --host etc. 1264# FIXME: To remove some day. 1265build=$build_alias 1266host=$host_alias 1267target=$target_alias 1268 1269# FIXME: To remove some day. 1270if test "x$host_alias" != x; then 1271 if test "x$build_alias" = x; then 1272 cross_compiling=maybe 1273 elif test "x$build_alias" != "x$host_alias"; then 1274 cross_compiling=yes 1275 fi 1276fi 1277 1278ac_tool_prefix= 1279test -n "$host_alias" && ac_tool_prefix=$host_alias- 1280 1281test "$silent" = yes && exec 6>/dev/null 1282 1283 1284ac_pwd=`pwd` && test -n "$ac_pwd" && 1285ac_ls_di=`ls -di .` && 1286ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1287 as_fn_error $? "working directory cannot be determined" 1288test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1289 as_fn_error $? "pwd does not report name of working directory" 1290 1291 1292# Find the source files, if location was not specified. 1293if test -z "$srcdir"; then 1294 ac_srcdir_defaulted=yes 1295 # Try the directory containing this script, then the parent directory. 1296 ac_confdir=`$as_dirname -- "$as_myself" || 1297$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1298 X"$as_myself" : 'X\(//\)[^/]' \| \ 1299 X"$as_myself" : 'X\(//\)$' \| \ 1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1301$as_echo X"$as_myself" | 1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\/\)[^/].*/{ 1307 s//\1/ 1308 q 1309 } 1310 /^X\(\/\/\)$/{ 1311 s//\1/ 1312 q 1313 } 1314 /^X\(\/\).*/{ 1315 s//\1/ 1316 q 1317 } 1318 s/.*/./; q'` 1319 srcdir=$ac_confdir 1320 if test ! -r "$srcdir/$ac_unique_file"; then 1321 srcdir=.. 1322 fi 1323else 1324 ac_srcdir_defaulted=no 1325fi 1326if test ! -r "$srcdir/$ac_unique_file"; then 1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1328 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1329fi 1330ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1331ac_abs_confdir=`( 1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1333 pwd)` 1334# When building in place, set srcdir=. 1335if test "$ac_abs_confdir" = "$ac_pwd"; then 1336 srcdir=. 1337fi 1338# Remove unnecessary trailing slashes from srcdir. 1339# Double slashes in file names in object file debugging info 1340# mess up M-x gdb in Emacs. 1341case $srcdir in 1342*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1343esac 1344for ac_var in $ac_precious_vars; do 1345 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1346 eval ac_env_${ac_var}_value=\$${ac_var} 1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1348 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1349done 1350 1351# 1352# Report the --help message. 1353# 1354if test "$ac_init_help" = "long"; then 1355 # Omit some internal or obsolete options to make the list less imposing. 1356 # This message is too long to be a string in the A/UX 3.1 sh. 1357 cat <<_ACEOF 1358\`configure' configures GeographicLib 1.52 to adapt to many kinds of systems. 1359 1360Usage: $0 [OPTION]... [VAR=VALUE]... 1361 1362To assign environment variables (e.g., CC, CFLAGS...), specify them as 1363VAR=VALUE. See below for descriptions of some of the useful variables. 1364 1365Defaults for the options are specified in brackets. 1366 1367Configuration: 1368 -h, --help display this help and exit 1369 --help=short display options specific to this package 1370 --help=recursive display the short help of all the included packages 1371 -V, --version display version information and exit 1372 -q, --quiet, --silent do not print \`checking ...' messages 1373 --cache-file=FILE cache test results in FILE [disabled] 1374 -C, --config-cache alias for \`--cache-file=config.cache' 1375 -n, --no-create do not create output files 1376 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1377 1378Installation directories: 1379 --prefix=PREFIX install architecture-independent files in PREFIX 1380 [$ac_default_prefix] 1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1382 [PREFIX] 1383 1384By default, \`make install' will install all the files in 1385\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1386an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1387for instance \`--prefix=\$HOME'. 1388 1389For better control, use the options below. 1390 1391Fine tuning of the installation directories: 1392 --bindir=DIR user executables [EPREFIX/bin] 1393 --sbindir=DIR system admin executables [EPREFIX/sbin] 1394 --libexecdir=DIR program executables [EPREFIX/libexec] 1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1398 --libdir=DIR object code libraries [EPREFIX/lib] 1399 --includedir=DIR C header files [PREFIX/include] 1400 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1403 --infodir=DIR info documentation [DATAROOTDIR/info] 1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1405 --mandir=DIR man documentation [DATAROOTDIR/man] 1406 --docdir=DIR documentation root [DATAROOTDIR/doc/geographiclib] 1407 --htmldir=DIR html documentation [DOCDIR] 1408 --dvidir=DIR dvi documentation [DOCDIR] 1409 --pdfdir=DIR pdf documentation [DOCDIR] 1410 --psdir=DIR ps documentation [DOCDIR] 1411_ACEOF 1412 1413 cat <<\_ACEOF 1414 1415Program names: 1416 --program-prefix=PREFIX prepend PREFIX to installed program names 1417 --program-suffix=SUFFIX append SUFFIX to installed program names 1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1419 1420System types: 1421 --build=BUILD configure for building on BUILD [guessed] 1422 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1423 --target=TARGET configure for building compilers for TARGET [HOST] 1424_ACEOF 1425fi 1426 1427if test -n "$ac_init_help"; then 1428 case $ac_init_help in 1429 short | recursive ) echo "Configuration of GeographicLib 1.52:";; 1430 esac 1431 cat <<\_ACEOF 1432 1433Optional Features: 1434 --disable-option-checking ignore unrecognized --enable/--with options 1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1437 --enable-silent-rules less verbose build output (undo: "make V=1") 1438 --disable-silent-rules verbose build output (undo: "make V=0") 1439 --enable-maintainer-mode 1440 enable make rules and dependencies not useful (and 1441 sometimes confusing) to the casual installer 1442 --enable-dependency-tracking 1443 do not reject slow dependency extractors 1444 --disable-dependency-tracking 1445 speeds up one-time build 1446 --enable-shared[=PKGS] build shared libraries [default=yes] 1447 --enable-static[=PKGS] build static libraries [default=yes] 1448 --enable-fast-install[=PKGS] 1449 optimize for fast installation [default=yes] 1450 --disable-libtool-lock avoid locking (might break parallel builds) 1451 1452Optional Packages: 1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1455 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1456 both] 1457 --with-aix-soname=aix|svr4|both 1458 shared library versioning (aka "SONAME") variant to 1459 provide on AIX, [default=aix]. 1460 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1461 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1462 compiler's sysroot if not specified). 1463 --with-pkgconfigdir pkg-config installation directory 1464 ['${libdir}/pkgconfig'] 1465 1466Some influential environment variables: 1467 CC C compiler command 1468 CFLAGS C compiler flags 1469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1470 nonstandard directory <lib dir> 1471 LIBS libraries to pass to the linker, e.g. -l<library> 1472 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1473 you have headers in a nonstandard directory <include dir> 1474 CPP C preprocessor 1475 CXX C++ compiler command 1476 CXXFLAGS C++ compiler flags 1477 LT_SYS_LIBRARY_PATH 1478 User-defined run-time library search path. 1479 CXXCPP C++ preprocessor 1480 PKG_CONFIG path to pkg-config utility 1481 PKG_CONFIG_PATH 1482 directories to add to pkg-config's search path 1483 PKG_CONFIG_LIBDIR 1484 path overriding pkg-config's built-in search path 1485 1486Use these variables to override the choices made by `configure' or to help 1487it to find libraries and programs with nonstandard names/locations. 1488 1489Report bugs to <charles@karney.com>. 1490_ACEOF 1491ac_status=$? 1492fi 1493 1494if test "$ac_init_help" = "recursive"; then 1495 # If there are subdirs, report their specific --help. 1496 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1497 test -d "$ac_dir" || 1498 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1499 continue 1500 ac_builddir=. 1501 1502case "$ac_dir" in 1503.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1504*) 1505 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1506 # A ".." for each directory in $ac_dir_suffix. 1507 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1508 case $ac_top_builddir_sub in 1509 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1510 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1511 esac ;; 1512esac 1513ac_abs_top_builddir=$ac_pwd 1514ac_abs_builddir=$ac_pwd$ac_dir_suffix 1515# for backward compatibility: 1516ac_top_builddir=$ac_top_build_prefix 1517 1518case $srcdir in 1519 .) # We are building in place. 1520 ac_srcdir=. 1521 ac_top_srcdir=$ac_top_builddir_sub 1522 ac_abs_top_srcdir=$ac_pwd ;; 1523 [\\/]* | ?:[\\/]* ) # Absolute name. 1524 ac_srcdir=$srcdir$ac_dir_suffix; 1525 ac_top_srcdir=$srcdir 1526 ac_abs_top_srcdir=$srcdir ;; 1527 *) # Relative name. 1528 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1529 ac_top_srcdir=$ac_top_build_prefix$srcdir 1530 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1531esac 1532ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1533 1534 cd "$ac_dir" || { ac_status=$?; continue; } 1535 # Check for guested configure. 1536 if test -f "$ac_srcdir/configure.gnu"; then 1537 echo && 1538 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1539 elif test -f "$ac_srcdir/configure"; then 1540 echo && 1541 $SHELL "$ac_srcdir/configure" --help=recursive 1542 else 1543 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1544 fi || ac_status=$? 1545 cd "$ac_pwd" || { ac_status=$?; break; } 1546 done 1547fi 1548 1549test -n "$ac_init_help" && exit $ac_status 1550if $ac_init_version; then 1551 cat <<\_ACEOF 1552GeographicLib configure 1.52 1553generated by GNU Autoconf 2.69 1554 1555Copyright (C) 2012 Free Software Foundation, Inc. 1556This configure script is free software; the Free Software Foundation 1557gives unlimited permission to copy, distribute and modify it. 1558_ACEOF 1559 exit 1560fi 1561 1562## ------------------------ ## 1563## Autoconf initialization. ## 1564## ------------------------ ## 1565 1566# ac_fn_c_try_compile LINENO 1567# -------------------------- 1568# Try to compile conftest.$ac_ext, and return whether this succeeded. 1569ac_fn_c_try_compile () 1570{ 1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1572 rm -f conftest.$ac_objext 1573 if { { ac_try="$ac_compile" 1574case "(($ac_try" in 1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1576 *) ac_try_echo=$ac_try;; 1577esac 1578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1579$as_echo "$ac_try_echo"; } >&5 1580 (eval "$ac_compile") 2>conftest.err 1581 ac_status=$? 1582 if test -s conftest.err; then 1583 grep -v '^ *+' conftest.err >conftest.er1 1584 cat conftest.er1 >&5 1585 mv -f conftest.er1 conftest.err 1586 fi 1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1588 test $ac_status = 0; } && { 1589 test -z "$ac_c_werror_flag" || 1590 test ! -s conftest.err 1591 } && test -s conftest.$ac_objext; then : 1592 ac_retval=0 1593else 1594 $as_echo "$as_me: failed program was:" >&5 1595sed 's/^/| /' conftest.$ac_ext >&5 1596 1597 ac_retval=1 1598fi 1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1600 as_fn_set_status $ac_retval 1601 1602} # ac_fn_c_try_compile 1603 1604# ac_fn_c_try_cpp LINENO 1605# ---------------------- 1606# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1607ac_fn_c_try_cpp () 1608{ 1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1610 if { { ac_try="$ac_cpp conftest.$ac_ext" 1611case "(($ac_try" in 1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1613 *) ac_try_echo=$ac_try;; 1614esac 1615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1616$as_echo "$ac_try_echo"; } >&5 1617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1618 ac_status=$? 1619 if test -s conftest.err; then 1620 grep -v '^ *+' conftest.err >conftest.er1 1621 cat conftest.er1 >&5 1622 mv -f conftest.er1 conftest.err 1623 fi 1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1625 test $ac_status = 0; } > conftest.i && { 1626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1627 test ! -s conftest.err 1628 }; then : 1629 ac_retval=0 1630else 1631 $as_echo "$as_me: failed program was:" >&5 1632sed 's/^/| /' conftest.$ac_ext >&5 1633 1634 ac_retval=1 1635fi 1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1637 as_fn_set_status $ac_retval 1638 1639} # ac_fn_c_try_cpp 1640 1641# ac_fn_cxx_try_compile LINENO 1642# ---------------------------- 1643# Try to compile conftest.$ac_ext, and return whether this succeeded. 1644ac_fn_cxx_try_compile () 1645{ 1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1647 rm -f conftest.$ac_objext 1648 if { { ac_try="$ac_compile" 1649case "(($ac_try" in 1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1651 *) ac_try_echo=$ac_try;; 1652esac 1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1654$as_echo "$ac_try_echo"; } >&5 1655 (eval "$ac_compile") 2>conftest.err 1656 ac_status=$? 1657 if test -s conftest.err; then 1658 grep -v '^ *+' conftest.err >conftest.er1 1659 cat conftest.er1 >&5 1660 mv -f conftest.er1 conftest.err 1661 fi 1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1663 test $ac_status = 0; } && { 1664 test -z "$ac_cxx_werror_flag" || 1665 test ! -s conftest.err 1666 } && test -s conftest.$ac_objext; then : 1667 ac_retval=0 1668else 1669 $as_echo "$as_me: failed program was:" >&5 1670sed 's/^/| /' conftest.$ac_ext >&5 1671 1672 ac_retval=1 1673fi 1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1675 as_fn_set_status $ac_retval 1676 1677} # ac_fn_cxx_try_compile 1678 1679# ac_fn_c_try_link LINENO 1680# ----------------------- 1681# Try to link conftest.$ac_ext, and return whether this succeeded. 1682ac_fn_c_try_link () 1683{ 1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1685 rm -f conftest.$ac_objext conftest$ac_exeext 1686 if { { ac_try="$ac_link" 1687case "(($ac_try" in 1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1689 *) ac_try_echo=$ac_try;; 1690esac 1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1692$as_echo "$ac_try_echo"; } >&5 1693 (eval "$ac_link") 2>conftest.err 1694 ac_status=$? 1695 if test -s conftest.err; then 1696 grep -v '^ *+' conftest.err >conftest.er1 1697 cat conftest.er1 >&5 1698 mv -f conftest.er1 conftest.err 1699 fi 1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1701 test $ac_status = 0; } && { 1702 test -z "$ac_c_werror_flag" || 1703 test ! -s conftest.err 1704 } && test -s conftest$ac_exeext && { 1705 test "$cross_compiling" = yes || 1706 test -x conftest$ac_exeext 1707 }; then : 1708 ac_retval=0 1709else 1710 $as_echo "$as_me: failed program was:" >&5 1711sed 's/^/| /' conftest.$ac_ext >&5 1712 1713 ac_retval=1 1714fi 1715 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1716 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1717 # interfere with the next link command; also delete a directory that is 1718 # left behind by Apple's compiler. We do this before executing the actions. 1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1721 as_fn_set_status $ac_retval 1722 1723} # ac_fn_c_try_link 1724 1725# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1726# ------------------------------------------------------- 1727# Tests whether HEADER exists and can be compiled using the include files in 1728# INCLUDES, setting the cache variable VAR accordingly. 1729ac_fn_c_check_header_compile () 1730{ 1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1733$as_echo_n "checking for $2... " >&6; } 1734if eval \${$3+:} false; then : 1735 $as_echo_n "(cached) " >&6 1736else 1737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1738/* end confdefs.h. */ 1739$4 1740#include <$2> 1741_ACEOF 1742if ac_fn_c_try_compile "$LINENO"; then : 1743 eval "$3=yes" 1744else 1745 eval "$3=no" 1746fi 1747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1748fi 1749eval ac_res=\$$3 1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1751$as_echo "$ac_res" >&6; } 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1753 1754} # ac_fn_c_check_header_compile 1755 1756# ac_fn_c_try_run LINENO 1757# ---------------------- 1758# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1759# that executables *can* be run. 1760ac_fn_c_try_run () 1761{ 1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1763 if { { ac_try="$ac_link" 1764case "(($ac_try" in 1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1766 *) ac_try_echo=$ac_try;; 1767esac 1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1769$as_echo "$ac_try_echo"; } >&5 1770 (eval "$ac_link") 2>&5 1771 ac_status=$? 1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1773 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1774 { { case "(($ac_try" in 1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1776 *) ac_try_echo=$ac_try;; 1777esac 1778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1779$as_echo "$ac_try_echo"; } >&5 1780 (eval "$ac_try") 2>&5 1781 ac_status=$? 1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1783 test $ac_status = 0; }; }; then : 1784 ac_retval=0 1785else 1786 $as_echo "$as_me: program exited with status $ac_status" >&5 1787 $as_echo "$as_me: failed program was:" >&5 1788sed 's/^/| /' conftest.$ac_ext >&5 1789 1790 ac_retval=$ac_status 1791fi 1792 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1794 as_fn_set_status $ac_retval 1795 1796} # ac_fn_c_try_run 1797 1798# ac_fn_c_check_func LINENO FUNC VAR 1799# ---------------------------------- 1800# Tests whether FUNC exists, setting the cache variable VAR accordingly 1801ac_fn_c_check_func () 1802{ 1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1805$as_echo_n "checking for $2... " >&6; } 1806if eval \${$3+:} false; then : 1807 $as_echo_n "(cached) " >&6 1808else 1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1810/* end confdefs.h. */ 1811/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1812 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1813#define $2 innocuous_$2 1814 1815/* System header to define __stub macros and hopefully few prototypes, 1816 which can conflict with char $2 (); below. 1817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1818 <limits.h> exists even on freestanding compilers. */ 1819 1820#ifdef __STDC__ 1821# include <limits.h> 1822#else 1823# include <assert.h> 1824#endif 1825 1826#undef $2 1827 1828/* Override any GCC internal prototype to avoid an error. 1829 Use char because int might match the return type of a GCC 1830 builtin and then its argument prototype would still apply. */ 1831#ifdef __cplusplus 1832extern "C" 1833#endif 1834char $2 (); 1835/* The GNU C library defines this for functions which it implements 1836 to always fail with ENOSYS. Some functions are actually named 1837 something starting with __ and the normal name is an alias. */ 1838#if defined __stub_$2 || defined __stub___$2 1839choke me 1840#endif 1841 1842int 1843main () 1844{ 1845return $2 (); 1846 ; 1847 return 0; 1848} 1849_ACEOF 1850if ac_fn_c_try_link "$LINENO"; then : 1851 eval "$3=yes" 1852else 1853 eval "$3=no" 1854fi 1855rm -f core conftest.err conftest.$ac_objext \ 1856 conftest$ac_exeext conftest.$ac_ext 1857fi 1858eval ac_res=\$$3 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1860$as_echo "$ac_res" >&6; } 1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1862 1863} # ac_fn_c_check_func 1864 1865# ac_fn_cxx_try_cpp LINENO 1866# ------------------------ 1867# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1868ac_fn_cxx_try_cpp () 1869{ 1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1871 if { { ac_try="$ac_cpp conftest.$ac_ext" 1872case "(($ac_try" in 1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1874 *) ac_try_echo=$ac_try;; 1875esac 1876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1877$as_echo "$ac_try_echo"; } >&5 1878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1879 ac_status=$? 1880 if test -s conftest.err; then 1881 grep -v '^ *+' conftest.err >conftest.er1 1882 cat conftest.er1 >&5 1883 mv -f conftest.er1 conftest.err 1884 fi 1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1886 test $ac_status = 0; } > conftest.i && { 1887 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1888 test ! -s conftest.err 1889 }; then : 1890 ac_retval=0 1891else 1892 $as_echo "$as_me: failed program was:" >&5 1893sed 's/^/| /' conftest.$ac_ext >&5 1894 1895 ac_retval=1 1896fi 1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1898 as_fn_set_status $ac_retval 1899 1900} # ac_fn_cxx_try_cpp 1901 1902# ac_fn_cxx_try_link LINENO 1903# ------------------------- 1904# Try to link conftest.$ac_ext, and return whether this succeeded. 1905ac_fn_cxx_try_link () 1906{ 1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1908 rm -f conftest.$ac_objext conftest$ac_exeext 1909 if { { ac_try="$ac_link" 1910case "(($ac_try" in 1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1912 *) ac_try_echo=$ac_try;; 1913esac 1914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1915$as_echo "$ac_try_echo"; } >&5 1916 (eval "$ac_link") 2>conftest.err 1917 ac_status=$? 1918 if test -s conftest.err; then 1919 grep -v '^ *+' conftest.err >conftest.er1 1920 cat conftest.er1 >&5 1921 mv -f conftest.er1 conftest.err 1922 fi 1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1924 test $ac_status = 0; } && { 1925 test -z "$ac_cxx_werror_flag" || 1926 test ! -s conftest.err 1927 } && test -s conftest$ac_exeext && { 1928 test "$cross_compiling" = yes || 1929 test -x conftest$ac_exeext 1930 }; then : 1931 ac_retval=0 1932else 1933 $as_echo "$as_me: failed program was:" >&5 1934sed 's/^/| /' conftest.$ac_ext >&5 1935 1936 ac_retval=1 1937fi 1938 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1939 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1940 # interfere with the next link command; also delete a directory that is 1941 # left behind by Apple's compiler. We do this before executing the actions. 1942 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1944 as_fn_set_status $ac_retval 1945 1946} # ac_fn_cxx_try_link 1947 1948# ac_fn_cxx_try_run LINENO 1949# ------------------------ 1950# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1951# that executables *can* be run. 1952ac_fn_cxx_try_run () 1953{ 1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1955 if { { ac_try="$ac_link" 1956case "(($ac_try" in 1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1958 *) ac_try_echo=$ac_try;; 1959esac 1960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1961$as_echo "$ac_try_echo"; } >&5 1962 (eval "$ac_link") 2>&5 1963 ac_status=$? 1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1965 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1966 { { case "(($ac_try" in 1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1968 *) ac_try_echo=$ac_try;; 1969esac 1970eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1971$as_echo "$ac_try_echo"; } >&5 1972 (eval "$ac_try") 2>&5 1973 ac_status=$? 1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1975 test $ac_status = 0; }; }; then : 1976 ac_retval=0 1977else 1978 $as_echo "$as_me: program exited with status $ac_status" >&5 1979 $as_echo "$as_me: failed program was:" >&5 1980sed 's/^/| /' conftest.$ac_ext >&5 1981 1982 ac_retval=$ac_status 1983fi 1984 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1986 as_fn_set_status $ac_retval 1987 1988} # ac_fn_cxx_try_run 1989cat >config.log <<_ACEOF 1990This file contains any messages produced by compilers while 1991running configure, to aid debugging if configure makes a mistake. 1992 1993It was created by GeographicLib $as_me 1.52, which was 1994generated by GNU Autoconf 2.69. Invocation command line was 1995 1996 $ $0 $@ 1997 1998_ACEOF 1999exec 5>>config.log 2000{ 2001cat <<_ASUNAME 2002## --------- ## 2003## Platform. ## 2004## --------- ## 2005 2006hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2007uname -m = `(uname -m) 2>/dev/null || echo unknown` 2008uname -r = `(uname -r) 2>/dev/null || echo unknown` 2009uname -s = `(uname -s) 2>/dev/null || echo unknown` 2010uname -v = `(uname -v) 2>/dev/null || echo unknown` 2011 2012/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2013/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2014 2015/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2016/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2017/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2018/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2019/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2020/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2021/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2022 2023_ASUNAME 2024 2025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2026for as_dir in $PATH 2027do 2028 IFS=$as_save_IFS 2029 test -z "$as_dir" && as_dir=. 2030 $as_echo "PATH: $as_dir" 2031 done 2032IFS=$as_save_IFS 2033 2034} >&5 2035 2036cat >&5 <<_ACEOF 2037 2038 2039## ----------- ## 2040## Core tests. ## 2041## ----------- ## 2042 2043_ACEOF 2044 2045 2046# Keep a trace of the command line. 2047# Strip out --no-create and --no-recursion so they do not pile up. 2048# Strip out --silent because we don't want to record it for future runs. 2049# Also quote any args containing shell meta-characters. 2050# Make two passes to allow for proper duplicate-argument suppression. 2051ac_configure_args= 2052ac_configure_args0= 2053ac_configure_args1= 2054ac_must_keep_next=false 2055for ac_pass in 1 2 2056do 2057 for ac_arg 2058 do 2059 case $ac_arg in 2060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2062 | -silent | --silent | --silen | --sile | --sil) 2063 continue ;; 2064 *\'*) 2065 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2066 esac 2067 case $ac_pass in 2068 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2069 2) 2070 as_fn_append ac_configure_args1 " '$ac_arg'" 2071 if test $ac_must_keep_next = true; then 2072 ac_must_keep_next=false # Got value, back to normal. 2073 else 2074 case $ac_arg in 2075 *=* | --config-cache | -C | -disable-* | --disable-* \ 2076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2078 | -with-* | --with-* | -without-* | --without-* | --x) 2079 case "$ac_configure_args0 " in 2080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2081 esac 2082 ;; 2083 -* ) ac_must_keep_next=true ;; 2084 esac 2085 fi 2086 as_fn_append ac_configure_args " '$ac_arg'" 2087 ;; 2088 esac 2089 done 2090done 2091{ ac_configure_args0=; unset ac_configure_args0;} 2092{ ac_configure_args1=; unset ac_configure_args1;} 2093 2094# When interrupted or exit'd, cleanup temporary files, and complete 2095# config.log. We remove comments because anyway the quotes in there 2096# would cause problems or look ugly. 2097# WARNING: Use '\'' to represent an apostrophe within the trap. 2098# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2099trap 'exit_status=$? 2100 # Save into config.log some information that might help in debugging. 2101 { 2102 echo 2103 2104 $as_echo "## ---------------- ## 2105## Cache variables. ## 2106## ---------------- ##" 2107 echo 2108 # The following way of writing the cache mishandles newlines in values, 2109( 2110 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2111 eval ac_val=\$$ac_var 2112 case $ac_val in #( 2113 *${as_nl}*) 2114 case $ac_var in #( 2115 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2116$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2117 esac 2118 case $ac_var in #( 2119 _ | IFS | as_nl) ;; #( 2120 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2121 *) { eval $ac_var=; unset $ac_var;} ;; 2122 esac ;; 2123 esac 2124 done 2125 (set) 2>&1 | 2126 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2127 *${as_nl}ac_space=\ *) 2128 sed -n \ 2129 "s/'\''/'\''\\\\'\'''\''/g; 2130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2131 ;; #( 2132 *) 2133 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2134 ;; 2135 esac | 2136 sort 2137) 2138 echo 2139 2140 $as_echo "## ----------------- ## 2141## Output variables. ## 2142## ----------------- ##" 2143 echo 2144 for ac_var in $ac_subst_vars 2145 do 2146 eval ac_val=\$$ac_var 2147 case $ac_val in 2148 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2149 esac 2150 $as_echo "$ac_var='\''$ac_val'\''" 2151 done | sort 2152 echo 2153 2154 if test -n "$ac_subst_files"; then 2155 $as_echo "## ------------------- ## 2156## File substitutions. ## 2157## ------------------- ##" 2158 echo 2159 for ac_var in $ac_subst_files 2160 do 2161 eval ac_val=\$$ac_var 2162 case $ac_val in 2163 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2164 esac 2165 $as_echo "$ac_var='\''$ac_val'\''" 2166 done | sort 2167 echo 2168 fi 2169 2170 if test -s confdefs.h; then 2171 $as_echo "## ----------- ## 2172## confdefs.h. ## 2173## ----------- ##" 2174 echo 2175 cat confdefs.h 2176 echo 2177 fi 2178 test "$ac_signal" != 0 && 2179 $as_echo "$as_me: caught signal $ac_signal" 2180 $as_echo "$as_me: exit $exit_status" 2181 } >&5 2182 rm -f core *.core core.conftest.* && 2183 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2184 exit $exit_status 2185' 0 2186for ac_signal in 1 2 13 15; do 2187 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2188done 2189ac_signal=0 2190 2191# confdefs.h avoids OS command line length limits that DEFS can exceed. 2192rm -f -r conftest* confdefs.h 2193 2194$as_echo "/* confdefs.h */" > confdefs.h 2195 2196# Predefined preprocessor variables. 2197 2198cat >>confdefs.h <<_ACEOF 2199#define PACKAGE_NAME "$PACKAGE_NAME" 2200_ACEOF 2201 2202cat >>confdefs.h <<_ACEOF 2203#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2204_ACEOF 2205 2206cat >>confdefs.h <<_ACEOF 2207#define PACKAGE_VERSION "$PACKAGE_VERSION" 2208_ACEOF 2209 2210cat >>confdefs.h <<_ACEOF 2211#define PACKAGE_STRING "$PACKAGE_STRING" 2212_ACEOF 2213 2214cat >>confdefs.h <<_ACEOF 2215#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2216_ACEOF 2217 2218cat >>confdefs.h <<_ACEOF 2219#define PACKAGE_URL "$PACKAGE_URL" 2220_ACEOF 2221 2222 2223# Let the site file select an alternate cache file if it wants to. 2224# Prefer an explicitly selected file to automatically selected ones. 2225ac_site_file1=NONE 2226ac_site_file2=NONE 2227if test -n "$CONFIG_SITE"; then 2228 # We do not want a PATH search for config.site. 2229 case $CONFIG_SITE in #(( 2230 -*) ac_site_file1=./$CONFIG_SITE;; 2231 */*) ac_site_file1=$CONFIG_SITE;; 2232 *) ac_site_file1=./$CONFIG_SITE;; 2233 esac 2234elif test "x$prefix" != xNONE; then 2235 ac_site_file1=$prefix/share/config.site 2236 ac_site_file2=$prefix/etc/config.site 2237else 2238 ac_site_file1=$ac_default_prefix/share/config.site 2239 ac_site_file2=$ac_default_prefix/etc/config.site 2240fi 2241for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2242do 2243 test "x$ac_site_file" = xNONE && continue 2244 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2246$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2247 sed 's/^/| /' "$ac_site_file" >&5 2248 . "$ac_site_file" \ 2249 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2251as_fn_error $? "failed to load site script $ac_site_file 2252See \`config.log' for more details" "$LINENO" 5; } 2253 fi 2254done 2255 2256if test -r "$cache_file"; then 2257 # Some versions of bash will fail to source /dev/null (special files 2258 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2259 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2260 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2261$as_echo "$as_me: loading cache $cache_file" >&6;} 2262 case $cache_file in 2263 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2264 *) . "./$cache_file";; 2265 esac 2266 fi 2267else 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2269$as_echo "$as_me: creating cache $cache_file" >&6;} 2270 >$cache_file 2271fi 2272 2273# Check that the precious variables saved in the cache have kept the same 2274# value. 2275ac_cache_corrupted=false 2276for ac_var in $ac_precious_vars; do 2277 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2278 eval ac_new_set=\$ac_env_${ac_var}_set 2279 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2280 eval ac_new_val=\$ac_env_${ac_var}_value 2281 case $ac_old_set,$ac_new_set in 2282 set,) 2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2284$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2285 ac_cache_corrupted=: ;; 2286 ,set) 2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2288$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2289 ac_cache_corrupted=: ;; 2290 ,);; 2291 *) 2292 if test "x$ac_old_val" != "x$ac_new_val"; then 2293 # differences in whitespace do not lead to failure. 2294 ac_old_val_w=`echo x $ac_old_val` 2295 ac_new_val_w=`echo x $ac_new_val` 2296 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2298$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2299 ac_cache_corrupted=: 2300 else 2301 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2302$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2303 eval $ac_var=\$ac_old_val 2304 fi 2305 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2306$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2307 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2308$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2309 fi;; 2310 esac 2311 # Pass precious variables to config.status. 2312 if test "$ac_new_set" = set; then 2313 case $ac_new_val in 2314 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2315 *) ac_arg=$ac_var=$ac_new_val ;; 2316 esac 2317 case " $ac_configure_args " in 2318 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2319 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2320 esac 2321 fi 2322done 2323if $ac_cache_corrupted; then 2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2327$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2328 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2329fi 2330## -------------------- ## 2331## Main body of script. ## 2332## -------------------- ## 2333 2334ac_ext=c 2335ac_cpp='$CPP $CPPFLAGS' 2336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2338ac_compiler_gnu=$ac_cv_c_compiler_gnu 2339 2340 2341ac_aux_dir= 2342for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2343 if test -f "$ac_dir/install-sh"; then 2344 ac_aux_dir=$ac_dir 2345 ac_install_sh="$ac_aux_dir/install-sh -c" 2346 break 2347 elif test -f "$ac_dir/install.sh"; then 2348 ac_aux_dir=$ac_dir 2349 ac_install_sh="$ac_aux_dir/install.sh -c" 2350 break 2351 elif test -f "$ac_dir/shtool"; then 2352 ac_aux_dir=$ac_dir 2353 ac_install_sh="$ac_aux_dir/shtool install -c" 2354 break 2355 fi 2356done 2357if test -z "$ac_aux_dir"; then 2358 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2359fi 2360 2361# These three variables are undocumented and unsupported, 2362# and are intended to be withdrawn in a future Autoconf release. 2363# They can cause serious problems if a builder's source tree is in a directory 2364# whose full name contains unusual characters. 2365ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2366ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2367ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2368 2369 2370# Make sure we can run config.sub. 2371$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2372 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2373 2374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2375$as_echo_n "checking build system type... " >&6; } 2376if ${ac_cv_build+:} false; then : 2377 $as_echo_n "(cached) " >&6 2378else 2379 ac_build_alias=$build_alias 2380test "x$ac_build_alias" = x && 2381 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2382test "x$ac_build_alias" = x && 2383 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2384ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2385 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2386 2387fi 2388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2389$as_echo "$ac_cv_build" >&6; } 2390case $ac_cv_build in 2391*-*-*) ;; 2392*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2393esac 2394build=$ac_cv_build 2395ac_save_IFS=$IFS; IFS='-' 2396set x $ac_cv_build 2397shift 2398build_cpu=$1 2399build_vendor=$2 2400shift; shift 2401# Remember, the first character of IFS is used to create $*, 2402# except with old shells: 2403build_os=$* 2404IFS=$ac_save_IFS 2405case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2406 2407 2408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2409$as_echo_n "checking host system type... " >&6; } 2410if ${ac_cv_host+:} false; then : 2411 $as_echo_n "(cached) " >&6 2412else 2413 if test "x$host_alias" = x; then 2414 ac_cv_host=$ac_cv_build 2415else 2416 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2417 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2418fi 2419 2420fi 2421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2422$as_echo "$ac_cv_host" >&6; } 2423case $ac_cv_host in 2424*-*-*) ;; 2425*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2426esac 2427host=$ac_cv_host 2428ac_save_IFS=$IFS; IFS='-' 2429set x $ac_cv_host 2430shift 2431host_cpu=$1 2432host_vendor=$2 2433shift; shift 2434# Remember, the first character of IFS is used to create $*, 2435# except with old shells: 2436host_os=$* 2437IFS=$ac_save_IFS 2438case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2439 2440 2441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2442$as_echo_n "checking target system type... " >&6; } 2443if ${ac_cv_target+:} false; then : 2444 $as_echo_n "(cached) " >&6 2445else 2446 if test "x$target_alias" = x; then 2447 ac_cv_target=$ac_cv_host 2448else 2449 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2450 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2451fi 2452 2453fi 2454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2455$as_echo "$ac_cv_target" >&6; } 2456case $ac_cv_target in 2457*-*-*) ;; 2458*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2459esac 2460target=$ac_cv_target 2461ac_save_IFS=$IFS; IFS='-' 2462set x $ac_cv_target 2463shift 2464target_cpu=$1 2465target_vendor=$2 2466shift; shift 2467# Remember, the first character of IFS is used to create $*, 2468# except with old shells: 2469target_os=$* 2470IFS=$ac_save_IFS 2471case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2472 2473 2474# The aliases save the names the user supplied, while $host etc. 2475# will get canonicalized. 2476test -n "$target_alias" && 2477 test "$program_prefix$program_suffix$program_transform_name" = \ 2478 NONENONEs,x,x, && 2479 program_prefix=${target_alias}- 2480 2481 2482 2483 2484am__api_version='1.16' 2485 2486# Find a good install program. We prefer a C program (faster), 2487# so one script is as good as another. But avoid the broken or 2488# incompatible versions: 2489# SysV /etc/install, /usr/sbin/install 2490# SunOS /usr/etc/install 2491# IRIX /sbin/install 2492# AIX /bin/install 2493# AmigaOS /C/install, which installs bootblocks on floppy discs 2494# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2495# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2496# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2497# OS/2's system install, which has a completely different semantic 2498# ./install, which can be erroneously created by make from ./install.sh. 2499# Reject install programs that cannot install multiple files. 2500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2501$as_echo_n "checking for a BSD-compatible install... " >&6; } 2502if test -z "$INSTALL"; then 2503if ${ac_cv_path_install+:} false; then : 2504 $as_echo_n "(cached) " >&6 2505else 2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2507for as_dir in $PATH 2508do 2509 IFS=$as_save_IFS 2510 test -z "$as_dir" && as_dir=. 2511 # Account for people who put trailing slashes in PATH elements. 2512case $as_dir/ in #(( 2513 ./ | .// | /[cC]/* | \ 2514 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2515 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2516 /usr/ucb/* ) ;; 2517 *) 2518 # OSF1 and SCO ODT 3.0 have their own names for install. 2519 # Don't use installbsd from OSF since it installs stuff as root 2520 # by default. 2521 for ac_prog in ginstall scoinst install; do 2522 for ac_exec_ext in '' $ac_executable_extensions; do 2523 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2524 if test $ac_prog = install && 2525 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2526 # AIX install. It has an incompatible calling convention. 2527 : 2528 elif test $ac_prog = install && 2529 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2530 # program-specific install script used by HP pwplus--don't use. 2531 : 2532 else 2533 rm -rf conftest.one conftest.two conftest.dir 2534 echo one > conftest.one 2535 echo two > conftest.two 2536 mkdir conftest.dir 2537 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2538 test -s conftest.one && test -s conftest.two && 2539 test -s conftest.dir/conftest.one && 2540 test -s conftest.dir/conftest.two 2541 then 2542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2543 break 3 2544 fi 2545 fi 2546 fi 2547 done 2548 done 2549 ;; 2550esac 2551 2552 done 2553IFS=$as_save_IFS 2554 2555rm -rf conftest.one conftest.two conftest.dir 2556 2557fi 2558 if test "${ac_cv_path_install+set}" = set; then 2559 INSTALL=$ac_cv_path_install 2560 else 2561 # As a last resort, use the slow shell script. Don't cache a 2562 # value for INSTALL within a source directory, because that will 2563 # break other packages using the cache if that directory is 2564 # removed, or if the value is a relative name. 2565 INSTALL=$ac_install_sh 2566 fi 2567fi 2568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2569$as_echo "$INSTALL" >&6; } 2570 2571# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2572# It thinks the first close brace ends the variable substitution. 2573test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2574 2575test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2576 2577test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2578 2579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2580$as_echo_n "checking whether build environment is sane... " >&6; } 2581# Reject unsafe characters in $srcdir or the absolute working directory 2582# name. Accept space and tab only in the latter. 2583am_lf=' 2584' 2585case `pwd` in 2586 *[\\\"\#\$\&\'\`$am_lf]*) 2587 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2588esac 2589case $srcdir in 2590 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2591 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2592esac 2593 2594# Do 'set' in a subshell so we don't clobber the current shell's 2595# arguments. Must try -L first in case configure is actually a 2596# symlink; some systems play weird games with the mod time of symlinks 2597# (eg FreeBSD returns the mod time of the symlink's containing 2598# directory). 2599if ( 2600 am_has_slept=no 2601 for am_try in 1 2; do 2602 echo "timestamp, slept: $am_has_slept" > conftest.file 2603 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2604 if test "$*" = "X"; then 2605 # -L didn't work. 2606 set X `ls -t "$srcdir/configure" conftest.file` 2607 fi 2608 if test "$*" != "X $srcdir/configure conftest.file" \ 2609 && test "$*" != "X conftest.file $srcdir/configure"; then 2610 2611 # If neither matched, then we have a broken ls. This can happen 2612 # if, for instance, CONFIG_SHELL is bash and it inherits a 2613 # broken ls alias from the environment. This has actually 2614 # happened. Such a system could not be considered "sane". 2615 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2616 alias in your environment" "$LINENO" 5 2617 fi 2618 if test "$2" = conftest.file || test $am_try -eq 2; then 2619 break 2620 fi 2621 # Just in case. 2622 sleep 1 2623 am_has_slept=yes 2624 done 2625 test "$2" = conftest.file 2626 ) 2627then 2628 # Ok. 2629 : 2630else 2631 as_fn_error $? "newly created file is older than distributed files! 2632Check your system clock" "$LINENO" 5 2633fi 2634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2635$as_echo "yes" >&6; } 2636# If we didn't sleep, we still need to ensure time stamps of config.status and 2637# generated files are strictly newer. 2638am_sleep_pid= 2639if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2640 ( sleep 1 ) & 2641 am_sleep_pid=$! 2642fi 2643 2644rm -f conftest.file 2645 2646test "$program_prefix" != NONE && 2647 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2648# Use a double $ so make ignores it. 2649test "$program_suffix" != NONE && 2650 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2651# Double any \ or $. 2652# By default was `s,x,x', remove it if useless. 2653ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2654program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2655 2656# Expand $ac_aux_dir to an absolute path. 2657am_aux_dir=`cd "$ac_aux_dir" && pwd` 2658 2659if test x"${MISSING+set}" != xset; then 2660 case $am_aux_dir in 2661 *\ * | *\ *) 2662 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2663 *) 2664 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2665 esac 2666fi 2667# Use eval to expand $SHELL 2668if eval "$MISSING --is-lightweight"; then 2669 am_missing_run="$MISSING " 2670else 2671 am_missing_run= 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2673$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2674fi 2675 2676if test x"${install_sh+set}" != xset; then 2677 case $am_aux_dir in 2678 *\ * | *\ *) 2679 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2680 *) 2681 install_sh="\${SHELL} $am_aux_dir/install-sh" 2682 esac 2683fi 2684 2685# Installed binaries are usually stripped using 'strip' when the user 2686# run "make install-strip". However 'strip' might not be the right 2687# tool to use in cross-compilation environments, therefore Automake 2688# will honor the 'STRIP' environment variable to overrule this program. 2689if test "$cross_compiling" != no; then 2690 if test -n "$ac_tool_prefix"; then 2691 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2692set dummy ${ac_tool_prefix}strip; ac_word=$2 2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2694$as_echo_n "checking for $ac_word... " >&6; } 2695if ${ac_cv_prog_STRIP+:} false; then : 2696 $as_echo_n "(cached) " >&6 2697else 2698 if test -n "$STRIP"; then 2699 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2700else 2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2702for as_dir in $PATH 2703do 2704 IFS=$as_save_IFS 2705 test -z "$as_dir" && as_dir=. 2706 for ac_exec_ext in '' $ac_executable_extensions; do 2707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2708 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2710 break 2 2711 fi 2712done 2713 done 2714IFS=$as_save_IFS 2715 2716fi 2717fi 2718STRIP=$ac_cv_prog_STRIP 2719if test -n "$STRIP"; then 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2721$as_echo "$STRIP" >&6; } 2722else 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2724$as_echo "no" >&6; } 2725fi 2726 2727 2728fi 2729if test -z "$ac_cv_prog_STRIP"; then 2730 ac_ct_STRIP=$STRIP 2731 # Extract the first word of "strip", so it can be a program name with args. 2732set dummy strip; ac_word=$2 2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2734$as_echo_n "checking for $ac_word... " >&6; } 2735if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2736 $as_echo_n "(cached) " >&6 2737else 2738 if test -n "$ac_ct_STRIP"; then 2739 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2740else 2741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2742for as_dir in $PATH 2743do 2744 IFS=$as_save_IFS 2745 test -z "$as_dir" && as_dir=. 2746 for ac_exec_ext in '' $ac_executable_extensions; do 2747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2748 ac_cv_prog_ac_ct_STRIP="strip" 2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2750 break 2 2751 fi 2752done 2753 done 2754IFS=$as_save_IFS 2755 2756fi 2757fi 2758ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2759if test -n "$ac_ct_STRIP"; then 2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2761$as_echo "$ac_ct_STRIP" >&6; } 2762else 2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2764$as_echo "no" >&6; } 2765fi 2766 2767 if test "x$ac_ct_STRIP" = x; then 2768 STRIP=":" 2769 else 2770 case $cross_compiling:$ac_tool_warned in 2771yes:) 2772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2774ac_tool_warned=yes ;; 2775esac 2776 STRIP=$ac_ct_STRIP 2777 fi 2778else 2779 STRIP="$ac_cv_prog_STRIP" 2780fi 2781 2782fi 2783INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2784 2785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2786$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2787if test -z "$MKDIR_P"; then 2788 if ${ac_cv_path_mkdir+:} false; then : 2789 $as_echo_n "(cached) " >&6 2790else 2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2792for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2793do 2794 IFS=$as_save_IFS 2795 test -z "$as_dir" && as_dir=. 2796 for ac_prog in mkdir gmkdir; do 2797 for ac_exec_ext in '' $ac_executable_extensions; do 2798 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2799 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2800 'mkdir (GNU coreutils) '* | \ 2801 'mkdir (coreutils) '* | \ 2802 'mkdir (fileutils) '4.1*) 2803 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2804 break 3;; 2805 esac 2806 done 2807 done 2808 done 2809IFS=$as_save_IFS 2810 2811fi 2812 2813 test -d ./--version && rmdir ./--version 2814 if test "${ac_cv_path_mkdir+set}" = set; then 2815 MKDIR_P="$ac_cv_path_mkdir -p" 2816 else 2817 # As a last resort, use the slow shell script. Don't cache a 2818 # value for MKDIR_P within a source directory, because that will 2819 # break other packages using the cache if that directory is 2820 # removed, or if the value is a relative name. 2821 MKDIR_P="$ac_install_sh -d" 2822 fi 2823fi 2824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2825$as_echo "$MKDIR_P" >&6; } 2826 2827for ac_prog in gawk mawk nawk awk 2828do 2829 # Extract the first word of "$ac_prog", so it can be a program name with args. 2830set dummy $ac_prog; ac_word=$2 2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2832$as_echo_n "checking for $ac_word... " >&6; } 2833if ${ac_cv_prog_AWK+:} false; then : 2834 $as_echo_n "(cached) " >&6 2835else 2836 if test -n "$AWK"; then 2837 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2838else 2839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2840for as_dir in $PATH 2841do 2842 IFS=$as_save_IFS 2843 test -z "$as_dir" && as_dir=. 2844 for ac_exec_ext in '' $ac_executable_extensions; do 2845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2846 ac_cv_prog_AWK="$ac_prog" 2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2848 break 2 2849 fi 2850done 2851 done 2852IFS=$as_save_IFS 2853 2854fi 2855fi 2856AWK=$ac_cv_prog_AWK 2857if test -n "$AWK"; then 2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2859$as_echo "$AWK" >&6; } 2860else 2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2862$as_echo "no" >&6; } 2863fi 2864 2865 2866 test -n "$AWK" && break 2867done 2868 2869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2870$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2871set x ${MAKE-make} 2872ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2873if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2874 $as_echo_n "(cached) " >&6 2875else 2876 cat >conftest.make <<\_ACEOF 2877SHELL = /bin/sh 2878all: 2879 @echo '@@@%%%=$(MAKE)=@@@%%%' 2880_ACEOF 2881# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2882case `${MAKE-make} -f conftest.make 2>/dev/null` in 2883 *@@@%%%=?*=@@@%%%*) 2884 eval ac_cv_prog_make_${ac_make}_set=yes;; 2885 *) 2886 eval ac_cv_prog_make_${ac_make}_set=no;; 2887esac 2888rm -f conftest.make 2889fi 2890if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2892$as_echo "yes" >&6; } 2893 SET_MAKE= 2894else 2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2896$as_echo "no" >&6; } 2897 SET_MAKE="MAKE=${MAKE-make}" 2898fi 2899 2900rm -rf .tst 2>/dev/null 2901mkdir .tst 2>/dev/null 2902if test -d .tst; then 2903 am__leading_dot=. 2904else 2905 am__leading_dot=_ 2906fi 2907rmdir .tst 2>/dev/null 2908 2909# Check whether --enable-silent-rules was given. 2910if test "${enable_silent_rules+set}" = set; then : 2911 enableval=$enable_silent_rules; 2912fi 2913 2914case $enable_silent_rules in # ((( 2915 yes) AM_DEFAULT_VERBOSITY=0;; 2916 no) AM_DEFAULT_VERBOSITY=1;; 2917 *) AM_DEFAULT_VERBOSITY=1;; 2918esac 2919am_make=${MAKE-make} 2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2921$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2922if ${am_cv_make_support_nested_variables+:} false; then : 2923 $as_echo_n "(cached) " >&6 2924else 2925 if $as_echo 'TRUE=$(BAR$(V)) 2926BAR0=false 2927BAR1=true 2928V=1 2929am__doit: 2930 @$(TRUE) 2931.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2932 am_cv_make_support_nested_variables=yes 2933else 2934 am_cv_make_support_nested_variables=no 2935fi 2936fi 2937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2938$as_echo "$am_cv_make_support_nested_variables" >&6; } 2939if test $am_cv_make_support_nested_variables = yes; then 2940 AM_V='$(V)' 2941 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2942else 2943 AM_V=$AM_DEFAULT_VERBOSITY 2944 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2945fi 2946AM_BACKSLASH='\' 2947 2948if test "`cd $srcdir && pwd`" != "`pwd`"; then 2949 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2950 # is not polluted with repeated "-I." 2951 am__isrc=' -I$(srcdir)' 2952 # test to see if srcdir already configured 2953 if test -f $srcdir/config.status; then 2954 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2955 fi 2956fi 2957 2958# test whether we have cygpath 2959if test -z "$CYGPATH_W"; then 2960 if (cygpath --version) >/dev/null 2>/dev/null; then 2961 CYGPATH_W='cygpath -w' 2962 else 2963 CYGPATH_W=echo 2964 fi 2965fi 2966 2967 2968# Define the identity of the package. 2969 PACKAGE='geographiclib' 2970 VERSION='1.52' 2971 2972 2973cat >>confdefs.h <<_ACEOF 2974#define PACKAGE "$PACKAGE" 2975_ACEOF 2976 2977 2978cat >>confdefs.h <<_ACEOF 2979#define VERSION "$VERSION" 2980_ACEOF 2981 2982# Some tools Automake needs. 2983 2984ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2985 2986 2987AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2988 2989 2990AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2991 2992 2993AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2994 2995 2996MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2997 2998# For better backward compatibility. To be removed once Automake 1.9.x 2999# dies out for good. For more background, see: 3000# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3001# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3002mkdir_p='$(MKDIR_P)' 3003 3004# We need awk for the "check" target (and possibly the TAP driver). The 3005# system "awk" is bad on some platforms. 3006# Always define AMTAR for backward compatibility. Yes, it's still used 3007# in the wild :-( We should find a proper way to deprecate it ... 3008AMTAR='$${TAR-tar}' 3009 3010 3011# We'll loop over all known methods to create a tar archive until one works. 3012_am_tools='gnutar pax cpio none' 3013 3014am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3015 3016 3017 3018 3019 3020 3021# POSIX will say in a future version that running "rm -f" with no argument 3022# is OK; and we want to be able to make that assumption in our Makefile 3023# recipes. So use an aggressive probe to check that the usage we want is 3024# actually supported "in the wild" to an acceptable degree. 3025# See automake bug#10828. 3026# To make any issue more visible, cause the running configure to be aborted 3027# by default if the 'rm' program in use doesn't match our expectations; the 3028# user can still override this though. 3029if rm -f && rm -fr && rm -rf; then : OK; else 3030 cat >&2 <<'END' 3031Oops! 3032 3033Your 'rm' program seems unable to run without file operands specified 3034on the command line, even when the '-f' option is present. This is contrary 3035to the behaviour of most rm programs out there, and not conforming with 3036the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3037 3038Please tell bug-automake@gnu.org about your system, including the value 3039of your $PATH and any error possibly output before this message. This 3040can help us improve future automake versions. 3041 3042END 3043 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3044 echo 'Configuration will proceed anyway, since you have set the' >&2 3045 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3046 echo >&2 3047 else 3048 cat >&2 <<'END' 3049Aborting the configuration process, to ensure you take notice of the issue. 3050 3051You can download and install GNU coreutils to get an 'rm' implementation 3052that behaves properly: <https://www.gnu.org/software/coreutils/>. 3053 3054If you want to complete the configuration process using your problematic 3055'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3056to "yes", and re-run configure. 3057 3058END 3059 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3060 fi 3061fi 3062 3063 3064GEOGRAPHICLIB_VERSION_MAJOR=1 3065GEOGRAPHICLIB_VERSION_MINOR=52 3066GEOGRAPHICLIB_VERSION_PATCH=0 3067 3068cat >>confdefs.h <<_ACEOF 3069#define GEOGRAPHICLIB_VERSION_MAJOR $GEOGRAPHICLIB_VERSION_MAJOR 3070_ACEOF 3071 3072 3073cat >>confdefs.h <<_ACEOF 3074#define GEOGRAPHICLIB_VERSION_MINOR $GEOGRAPHICLIB_VERSION_MINOR 3075_ACEOF 3076 3077 3078cat >>confdefs.h <<_ACEOF 3079#define GEOGRAPHICLIB_VERSION_PATCH $GEOGRAPHICLIB_VERSION_PATCH 3080_ACEOF 3081 3082 3083 3084 3085 3086 3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3088$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3089 # Check whether --enable-maintainer-mode was given. 3090if test "${enable_maintainer_mode+set}" = set; then : 3091 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3092else 3093 USE_MAINTAINER_MODE=no 3094fi 3095 3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3097$as_echo "$USE_MAINTAINER_MODE" >&6; } 3098 if test $USE_MAINTAINER_MODE = yes; then 3099 MAINTAINER_MODE_TRUE= 3100 MAINTAINER_MODE_FALSE='#' 3101else 3102 MAINTAINER_MODE_TRUE='#' 3103 MAINTAINER_MODE_FALSE= 3104fi 3105 3106 MAINT=$MAINTAINER_MODE_TRUE 3107 3108 3109 3110ac_config_headers="$ac_config_headers include/GeographicLib/Config-ac.h" 3111 3112 3113LT_CURRENT=21 3114LT_REVISION=0 3115LT_AGE=2 3116 3117 3118 3119 3120 3121DEPDIR="${am__leading_dot}deps" 3122 3123ac_config_commands="$ac_config_commands depfiles" 3124 3125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3126$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3127cat > confinc.mk << 'END' 3128am__doit: 3129 @echo this is the am__doit target >confinc.out 3130.PHONY: am__doit 3131END 3132am__include="#" 3133am__quote= 3134# BSD make does it like this. 3135echo '.include "confinc.mk" # ignored' > confmf.BSD 3136# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3137echo 'include confinc.mk # ignored' > confmf.GNU 3138_am_result=no 3139for s in GNU BSD; do 3140 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3141 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3142 ac_status=$? 3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3144 (exit $ac_status); } 3145 case $?:`cat confinc.out 2>/dev/null` in #( 3146 '0:this is the am__doit target') : 3147 case $s in #( 3148 BSD) : 3149 am__include='.include' am__quote='"' ;; #( 3150 *) : 3151 am__include='include' am__quote='' ;; 3152esac ;; #( 3153 *) : 3154 ;; 3155esac 3156 if test "$am__include" != "#"; then 3157 _am_result="yes ($s style)" 3158 break 3159 fi 3160done 3161rm -f confinc.* confmf.* 3162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3163$as_echo "${_am_result}" >&6; } 3164 3165# Check whether --enable-dependency-tracking was given. 3166if test "${enable_dependency_tracking+set}" = set; then : 3167 enableval=$enable_dependency_tracking; 3168fi 3169 3170if test "x$enable_dependency_tracking" != xno; then 3171 am_depcomp="$ac_aux_dir/depcomp" 3172 AMDEPBACKSLASH='\' 3173 am__nodep='_no' 3174fi 3175 if test "x$enable_dependency_tracking" != xno; then 3176 AMDEP_TRUE= 3177 AMDEP_FALSE='#' 3178else 3179 AMDEP_TRUE='#' 3180 AMDEP_FALSE= 3181fi 3182 3183 3184ac_ext=c 3185ac_cpp='$CPP $CPPFLAGS' 3186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3188ac_compiler_gnu=$ac_cv_c_compiler_gnu 3189if test -n "$ac_tool_prefix"; then 3190 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3191set dummy ${ac_tool_prefix}gcc; ac_word=$2 3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3193$as_echo_n "checking for $ac_word... " >&6; } 3194if ${ac_cv_prog_CC+:} false; then : 3195 $as_echo_n "(cached) " >&6 3196else 3197 if test -n "$CC"; then 3198 ac_cv_prog_CC="$CC" # Let the user override the test. 3199else 3200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3201for as_dir in $PATH 3202do 3203 IFS=$as_save_IFS 3204 test -z "$as_dir" && as_dir=. 3205 for ac_exec_ext in '' $ac_executable_extensions; do 3206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3207 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3209 break 2 3210 fi 3211done 3212 done 3213IFS=$as_save_IFS 3214 3215fi 3216fi 3217CC=$ac_cv_prog_CC 3218if test -n "$CC"; then 3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3220$as_echo "$CC" >&6; } 3221else 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3223$as_echo "no" >&6; } 3224fi 3225 3226 3227fi 3228if test -z "$ac_cv_prog_CC"; then 3229 ac_ct_CC=$CC 3230 # Extract the first word of "gcc", so it can be a program name with args. 3231set dummy gcc; ac_word=$2 3232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3233$as_echo_n "checking for $ac_word... " >&6; } 3234if ${ac_cv_prog_ac_ct_CC+:} false; then : 3235 $as_echo_n "(cached) " >&6 3236else 3237 if test -n "$ac_ct_CC"; then 3238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3239else 3240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3241for as_dir in $PATH 3242do 3243 IFS=$as_save_IFS 3244 test -z "$as_dir" && as_dir=. 3245 for ac_exec_ext in '' $ac_executable_extensions; do 3246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3247 ac_cv_prog_ac_ct_CC="gcc" 3248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3249 break 2 3250 fi 3251done 3252 done 3253IFS=$as_save_IFS 3254 3255fi 3256fi 3257ac_ct_CC=$ac_cv_prog_ac_ct_CC 3258if test -n "$ac_ct_CC"; then 3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3260$as_echo "$ac_ct_CC" >&6; } 3261else 3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3263$as_echo "no" >&6; } 3264fi 3265 3266 if test "x$ac_ct_CC" = x; then 3267 CC="" 3268 else 3269 case $cross_compiling:$ac_tool_warned in 3270yes:) 3271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3273ac_tool_warned=yes ;; 3274esac 3275 CC=$ac_ct_CC 3276 fi 3277else 3278 CC="$ac_cv_prog_CC" 3279fi 3280 3281if test -z "$CC"; then 3282 if test -n "$ac_tool_prefix"; then 3283 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3284set dummy ${ac_tool_prefix}cc; ac_word=$2 3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3286$as_echo_n "checking for $ac_word... " >&6; } 3287if ${ac_cv_prog_CC+:} false; then : 3288 $as_echo_n "(cached) " >&6 3289else 3290 if test -n "$CC"; then 3291 ac_cv_prog_CC="$CC" # Let the user override the test. 3292else 3293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3294for as_dir in $PATH 3295do 3296 IFS=$as_save_IFS 3297 test -z "$as_dir" && as_dir=. 3298 for ac_exec_ext in '' $ac_executable_extensions; do 3299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3300 ac_cv_prog_CC="${ac_tool_prefix}cc" 3301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3302 break 2 3303 fi 3304done 3305 done 3306IFS=$as_save_IFS 3307 3308fi 3309fi 3310CC=$ac_cv_prog_CC 3311if test -n "$CC"; then 3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3313$as_echo "$CC" >&6; } 3314else 3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3316$as_echo "no" >&6; } 3317fi 3318 3319 3320 fi 3321fi 3322if test -z "$CC"; then 3323 # Extract the first word of "cc", so it can be a program name with args. 3324set dummy cc; ac_word=$2 3325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3326$as_echo_n "checking for $ac_word... " >&6; } 3327if ${ac_cv_prog_CC+:} false; then : 3328 $as_echo_n "(cached) " >&6 3329else 3330 if test -n "$CC"; then 3331 ac_cv_prog_CC="$CC" # Let the user override the test. 3332else 3333 ac_prog_rejected=no 3334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3335for as_dir in $PATH 3336do 3337 IFS=$as_save_IFS 3338 test -z "$as_dir" && as_dir=. 3339 for ac_exec_ext in '' $ac_executable_extensions; do 3340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3341 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3342 ac_prog_rejected=yes 3343 continue 3344 fi 3345 ac_cv_prog_CC="cc" 3346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3347 break 2 3348 fi 3349done 3350 done 3351IFS=$as_save_IFS 3352 3353if test $ac_prog_rejected = yes; then 3354 # We found a bogon in the path, so make sure we never use it. 3355 set dummy $ac_cv_prog_CC 3356 shift 3357 if test $# != 0; then 3358 # We chose a different compiler from the bogus one. 3359 # However, it has the same basename, so the bogon will be chosen 3360 # first if we set CC to just the basename; use the full file name. 3361 shift 3362 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3363 fi 3364fi 3365fi 3366fi 3367CC=$ac_cv_prog_CC 3368if test -n "$CC"; then 3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3370$as_echo "$CC" >&6; } 3371else 3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3373$as_echo "no" >&6; } 3374fi 3375 3376 3377fi 3378if test -z "$CC"; then 3379 if test -n "$ac_tool_prefix"; then 3380 for ac_prog in cl.exe 3381 do 3382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3383set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3385$as_echo_n "checking for $ac_word... " >&6; } 3386if ${ac_cv_prog_CC+:} false; then : 3387 $as_echo_n "(cached) " >&6 3388else 3389 if test -n "$CC"; then 3390 ac_cv_prog_CC="$CC" # Let the user override the test. 3391else 3392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3393for as_dir in $PATH 3394do 3395 IFS=$as_save_IFS 3396 test -z "$as_dir" && as_dir=. 3397 for ac_exec_ext in '' $ac_executable_extensions; do 3398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3399 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3401 break 2 3402 fi 3403done 3404 done 3405IFS=$as_save_IFS 3406 3407fi 3408fi 3409CC=$ac_cv_prog_CC 3410if test -n "$CC"; then 3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3412$as_echo "$CC" >&6; } 3413else 3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3415$as_echo "no" >&6; } 3416fi 3417 3418 3419 test -n "$CC" && break 3420 done 3421fi 3422if test -z "$CC"; then 3423 ac_ct_CC=$CC 3424 for ac_prog in cl.exe 3425do 3426 # Extract the first word of "$ac_prog", so it can be a program name with args. 3427set dummy $ac_prog; ac_word=$2 3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3429$as_echo_n "checking for $ac_word... " >&6; } 3430if ${ac_cv_prog_ac_ct_CC+:} false; then : 3431 $as_echo_n "(cached) " >&6 3432else 3433 if test -n "$ac_ct_CC"; then 3434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3435else 3436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3437for as_dir in $PATH 3438do 3439 IFS=$as_save_IFS 3440 test -z "$as_dir" && as_dir=. 3441 for ac_exec_ext in '' $ac_executable_extensions; do 3442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3443 ac_cv_prog_ac_ct_CC="$ac_prog" 3444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3445 break 2 3446 fi 3447done 3448 done 3449IFS=$as_save_IFS 3450 3451fi 3452fi 3453ac_ct_CC=$ac_cv_prog_ac_ct_CC 3454if test -n "$ac_ct_CC"; then 3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3456$as_echo "$ac_ct_CC" >&6; } 3457else 3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3459$as_echo "no" >&6; } 3460fi 3461 3462 3463 test -n "$ac_ct_CC" && break 3464done 3465 3466 if test "x$ac_ct_CC" = x; then 3467 CC="" 3468 else 3469 case $cross_compiling:$ac_tool_warned in 3470yes:) 3471{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3473ac_tool_warned=yes ;; 3474esac 3475 CC=$ac_ct_CC 3476 fi 3477fi 3478 3479fi 3480 3481 3482test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3484as_fn_error $? "no acceptable C compiler found in \$PATH 3485See \`config.log' for more details" "$LINENO" 5; } 3486 3487# Provide some information about the compiler. 3488$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3489set X $ac_compile 3490ac_compiler=$2 3491for ac_option in --version -v -V -qversion; do 3492 { { ac_try="$ac_compiler $ac_option >&5" 3493case "(($ac_try" in 3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3495 *) ac_try_echo=$ac_try;; 3496esac 3497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3498$as_echo "$ac_try_echo"; } >&5 3499 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3500 ac_status=$? 3501 if test -s conftest.err; then 3502 sed '10a\ 3503... rest of stderr output deleted ... 3504 10q' conftest.err >conftest.er1 3505 cat conftest.er1 >&5 3506 fi 3507 rm -f conftest.er1 conftest.err 3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3509 test $ac_status = 0; } 3510done 3511 3512cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3513/* end confdefs.h. */ 3514 3515int 3516main () 3517{ 3518 3519 ; 3520 return 0; 3521} 3522_ACEOF 3523ac_clean_files_save=$ac_clean_files 3524ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3525# Try to create an executable without -o first, disregard a.out. 3526# It will help us diagnose broken compilers, and finding out an intuition 3527# of exeext. 3528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3529$as_echo_n "checking whether the C compiler works... " >&6; } 3530ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3531 3532# The possible output files: 3533ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3534 3535ac_rmfiles= 3536for ac_file in $ac_files 3537do 3538 case $ac_file in 3539 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3540 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3541 esac 3542done 3543rm -f $ac_rmfiles 3544 3545if { { ac_try="$ac_link_default" 3546case "(($ac_try" in 3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3548 *) ac_try_echo=$ac_try;; 3549esac 3550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3551$as_echo "$ac_try_echo"; } >&5 3552 (eval "$ac_link_default") 2>&5 3553 ac_status=$? 3554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3555 test $ac_status = 0; }; then : 3556 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3557# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3558# in a Makefile. We should not override ac_cv_exeext if it was cached, 3559# so that the user can short-circuit this test for compilers unknown to 3560# Autoconf. 3561for ac_file in $ac_files '' 3562do 3563 test -f "$ac_file" || continue 3564 case $ac_file in 3565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3566 ;; 3567 [ab].out ) 3568 # We found the default executable, but exeext='' is most 3569 # certainly right. 3570 break;; 3571 *.* ) 3572 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3573 then :; else 3574 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3575 fi 3576 # We set ac_cv_exeext here because the later test for it is not 3577 # safe: cross compilers may not add the suffix if given an `-o' 3578 # argument, so we may need to know it at that point already. 3579 # Even if this section looks crufty: it has the advantage of 3580 # actually working. 3581 break;; 3582 * ) 3583 break;; 3584 esac 3585done 3586test "$ac_cv_exeext" = no && ac_cv_exeext= 3587 3588else 3589 ac_file='' 3590fi 3591if test -z "$ac_file"; then : 3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3593$as_echo "no" >&6; } 3594$as_echo "$as_me: failed program was:" >&5 3595sed 's/^/| /' conftest.$ac_ext >&5 3596 3597{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3598$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3599as_fn_error 77 "C compiler cannot create executables 3600See \`config.log' for more details" "$LINENO" 5; } 3601else 3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3603$as_echo "yes" >&6; } 3604fi 3605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3606$as_echo_n "checking for C compiler default output file name... " >&6; } 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3608$as_echo "$ac_file" >&6; } 3609ac_exeext=$ac_cv_exeext 3610 3611rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3612ac_clean_files=$ac_clean_files_save 3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3614$as_echo_n "checking for suffix of executables... " >&6; } 3615if { { ac_try="$ac_link" 3616case "(($ac_try" in 3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3618 *) ac_try_echo=$ac_try;; 3619esac 3620eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3621$as_echo "$ac_try_echo"; } >&5 3622 (eval "$ac_link") 2>&5 3623 ac_status=$? 3624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3625 test $ac_status = 0; }; then : 3626 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3627# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3628# work properly (i.e., refer to `conftest.exe'), while it won't with 3629# `rm'. 3630for ac_file in conftest.exe conftest conftest.*; do 3631 test -f "$ac_file" || continue 3632 case $ac_file in 3633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3634 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3635 break;; 3636 * ) break;; 3637 esac 3638done 3639else 3640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3642as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3643See \`config.log' for more details" "$LINENO" 5; } 3644fi 3645rm -f conftest conftest$ac_cv_exeext 3646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3647$as_echo "$ac_cv_exeext" >&6; } 3648 3649rm -f conftest.$ac_ext 3650EXEEXT=$ac_cv_exeext 3651ac_exeext=$EXEEXT 3652cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3653/* end confdefs.h. */ 3654#include <stdio.h> 3655int 3656main () 3657{ 3658FILE *f = fopen ("conftest.out", "w"); 3659 return ferror (f) || fclose (f) != 0; 3660 3661 ; 3662 return 0; 3663} 3664_ACEOF 3665ac_clean_files="$ac_clean_files conftest.out" 3666# Check that the compiler produces executables we can run. If not, either 3667# the compiler is broken, or we cross compile. 3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3669$as_echo_n "checking whether we are cross compiling... " >&6; } 3670if test "$cross_compiling" != yes; then 3671 { { ac_try="$ac_link" 3672case "(($ac_try" in 3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3674 *) ac_try_echo=$ac_try;; 3675esac 3676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3677$as_echo "$ac_try_echo"; } >&5 3678 (eval "$ac_link") 2>&5 3679 ac_status=$? 3680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3681 test $ac_status = 0; } 3682 if { ac_try='./conftest$ac_cv_exeext' 3683 { { case "(($ac_try" in 3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3685 *) ac_try_echo=$ac_try;; 3686esac 3687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3688$as_echo "$ac_try_echo"; } >&5 3689 (eval "$ac_try") 2>&5 3690 ac_status=$? 3691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3692 test $ac_status = 0; }; }; then 3693 cross_compiling=no 3694 else 3695 if test "$cross_compiling" = maybe; then 3696 cross_compiling=yes 3697 else 3698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3699$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3700as_fn_error $? "cannot run C compiled programs. 3701If you meant to cross compile, use \`--host'. 3702See \`config.log' for more details" "$LINENO" 5; } 3703 fi 3704 fi 3705fi 3706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3707$as_echo "$cross_compiling" >&6; } 3708 3709rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3710ac_clean_files=$ac_clean_files_save 3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3712$as_echo_n "checking for suffix of object files... " >&6; } 3713if ${ac_cv_objext+:} false; then : 3714 $as_echo_n "(cached) " >&6 3715else 3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3717/* end confdefs.h. */ 3718 3719int 3720main () 3721{ 3722 3723 ; 3724 return 0; 3725} 3726_ACEOF 3727rm -f conftest.o conftest.obj 3728if { { ac_try="$ac_compile" 3729case "(($ac_try" in 3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3731 *) ac_try_echo=$ac_try;; 3732esac 3733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3734$as_echo "$ac_try_echo"; } >&5 3735 (eval "$ac_compile") 2>&5 3736 ac_status=$? 3737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3738 test $ac_status = 0; }; then : 3739 for ac_file in conftest.o conftest.obj conftest.*; do 3740 test -f "$ac_file" || continue; 3741 case $ac_file in 3742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3743 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3744 break;; 3745 esac 3746done 3747else 3748 $as_echo "$as_me: failed program was:" >&5 3749sed 's/^/| /' conftest.$ac_ext >&5 3750 3751{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3753as_fn_error $? "cannot compute suffix of object files: cannot compile 3754See \`config.log' for more details" "$LINENO" 5; } 3755fi 3756rm -f conftest.$ac_cv_objext conftest.$ac_ext 3757fi 3758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3759$as_echo "$ac_cv_objext" >&6; } 3760OBJEXT=$ac_cv_objext 3761ac_objext=$OBJEXT 3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3763$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3764if ${ac_cv_c_compiler_gnu+:} false; then : 3765 $as_echo_n "(cached) " >&6 3766else 3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3768/* end confdefs.h. */ 3769 3770int 3771main () 3772{ 3773#ifndef __GNUC__ 3774 choke me 3775#endif 3776 3777 ; 3778 return 0; 3779} 3780_ACEOF 3781if ac_fn_c_try_compile "$LINENO"; then : 3782 ac_compiler_gnu=yes 3783else 3784 ac_compiler_gnu=no 3785fi 3786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3787ac_cv_c_compiler_gnu=$ac_compiler_gnu 3788 3789fi 3790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3791$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3792if test $ac_compiler_gnu = yes; then 3793 GCC=yes 3794else 3795 GCC= 3796fi 3797ac_test_CFLAGS=${CFLAGS+set} 3798ac_save_CFLAGS=$CFLAGS 3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3800$as_echo_n "checking whether $CC accepts -g... " >&6; } 3801if ${ac_cv_prog_cc_g+:} false; then : 3802 $as_echo_n "(cached) " >&6 3803else 3804 ac_save_c_werror_flag=$ac_c_werror_flag 3805 ac_c_werror_flag=yes 3806 ac_cv_prog_cc_g=no 3807 CFLAGS="-g" 3808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3809/* end confdefs.h. */ 3810 3811int 3812main () 3813{ 3814 3815 ; 3816 return 0; 3817} 3818_ACEOF 3819if ac_fn_c_try_compile "$LINENO"; then : 3820 ac_cv_prog_cc_g=yes 3821else 3822 CFLAGS="" 3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3824/* end confdefs.h. */ 3825 3826int 3827main () 3828{ 3829 3830 ; 3831 return 0; 3832} 3833_ACEOF 3834if ac_fn_c_try_compile "$LINENO"; then : 3835 3836else 3837 ac_c_werror_flag=$ac_save_c_werror_flag 3838 CFLAGS="-g" 3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3840/* end confdefs.h. */ 3841 3842int 3843main () 3844{ 3845 3846 ; 3847 return 0; 3848} 3849_ACEOF 3850if ac_fn_c_try_compile "$LINENO"; then : 3851 ac_cv_prog_cc_g=yes 3852fi 3853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3854fi 3855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3856fi 3857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3858 ac_c_werror_flag=$ac_save_c_werror_flag 3859fi 3860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3861$as_echo "$ac_cv_prog_cc_g" >&6; } 3862if test "$ac_test_CFLAGS" = set; then 3863 CFLAGS=$ac_save_CFLAGS 3864elif test $ac_cv_prog_cc_g = yes; then 3865 if test "$GCC" = yes; then 3866 CFLAGS="-g -O2" 3867 else 3868 CFLAGS="-g" 3869 fi 3870else 3871 if test "$GCC" = yes; then 3872 CFLAGS="-O2" 3873 else 3874 CFLAGS= 3875 fi 3876fi 3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3878$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3879if ${ac_cv_prog_cc_c89+:} false; then : 3880 $as_echo_n "(cached) " >&6 3881else 3882 ac_cv_prog_cc_c89=no 3883ac_save_CC=$CC 3884cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3885/* end confdefs.h. */ 3886#include <stdarg.h> 3887#include <stdio.h> 3888struct stat; 3889/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3890struct buf { int x; }; 3891FILE * (*rcsopen) (struct buf *, struct stat *, int); 3892static char *e (p, i) 3893 char **p; 3894 int i; 3895{ 3896 return p[i]; 3897} 3898static char *f (char * (*g) (char **, int), char **p, ...) 3899{ 3900 char *s; 3901 va_list v; 3902 va_start (v,p); 3903 s = g (p, va_arg (v,int)); 3904 va_end (v); 3905 return s; 3906} 3907 3908/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3909 function prototypes and stuff, but not '\xHH' hex character constants. 3910 These don't provoke an error unfortunately, instead are silently treated 3911 as 'x'. The following induces an error, until -std is added to get 3912 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3913 array size at least. It's necessary to write '\x00'==0 to get something 3914 that's true only with -std. */ 3915int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3916 3917/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3918 inside strings and character constants. */ 3919#define FOO(x) 'x' 3920int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3921 3922int test (int i, double x); 3923struct s1 {int (*f) (int a);}; 3924struct s2 {int (*f) (double a);}; 3925int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3926int argc; 3927char **argv; 3928int 3929main () 3930{ 3931return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3932 ; 3933 return 0; 3934} 3935_ACEOF 3936for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3937 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3938do 3939 CC="$ac_save_CC $ac_arg" 3940 if ac_fn_c_try_compile "$LINENO"; then : 3941 ac_cv_prog_cc_c89=$ac_arg 3942fi 3943rm -f core conftest.err conftest.$ac_objext 3944 test "x$ac_cv_prog_cc_c89" != "xno" && break 3945done 3946rm -f conftest.$ac_ext 3947CC=$ac_save_CC 3948 3949fi 3950# AC_CACHE_VAL 3951case "x$ac_cv_prog_cc_c89" in 3952 x) 3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3954$as_echo "none needed" >&6; } ;; 3955 xno) 3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3957$as_echo "unsupported" >&6; } ;; 3958 *) 3959 CC="$CC $ac_cv_prog_cc_c89" 3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3961$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3962esac 3963if test "x$ac_cv_prog_cc_c89" != xno; then : 3964 3965fi 3966 3967ac_ext=c 3968ac_cpp='$CPP $CPPFLAGS' 3969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3971ac_compiler_gnu=$ac_cv_c_compiler_gnu 3972 3973ac_ext=c 3974ac_cpp='$CPP $CPPFLAGS' 3975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3977ac_compiler_gnu=$ac_cv_c_compiler_gnu 3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3979$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3980if ${am_cv_prog_cc_c_o+:} false; then : 3981 $as_echo_n "(cached) " >&6 3982else 3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3984/* end confdefs.h. */ 3985 3986int 3987main () 3988{ 3989 3990 ; 3991 return 0; 3992} 3993_ACEOF 3994 # Make sure it works both with $CC and with simple cc. 3995 # Following AC_PROG_CC_C_O, we do the test twice because some 3996 # compilers refuse to overwrite an existing .o file with -o, 3997 # though they will create one. 3998 am_cv_prog_cc_c_o=yes 3999 for am_i in 1 2; do 4000 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4001 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4002 ac_status=$? 4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4004 (exit $ac_status); } \ 4005 && test -f conftest2.$ac_objext; then 4006 : OK 4007 else 4008 am_cv_prog_cc_c_o=no 4009 break 4010 fi 4011 done 4012 rm -f core conftest* 4013 unset am_i 4014fi 4015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4016$as_echo "$am_cv_prog_cc_c_o" >&6; } 4017if test "$am_cv_prog_cc_c_o" != yes; then 4018 # Losing compiler, so override with the script. 4019 # FIXME: It is wrong to rewrite CC. 4020 # But if we don't then we get into trouble of one sort or another. 4021 # A longer-term fix would be to have automake use am__CC in this case, 4022 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4023 CC="$am_aux_dir/compile $CC" 4024fi 4025ac_ext=c 4026ac_cpp='$CPP $CPPFLAGS' 4027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4029ac_compiler_gnu=$ac_cv_c_compiler_gnu 4030 4031 4032depcc="$CC" am_compiler_list= 4033 4034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4035$as_echo_n "checking dependency style of $depcc... " >&6; } 4036if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4037 $as_echo_n "(cached) " >&6 4038else 4039 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4040 # We make a subdir and do the tests there. Otherwise we can end up 4041 # making bogus files that we don't know about and never remove. For 4042 # instance it was reported that on HP-UX the gcc test will end up 4043 # making a dummy file named 'D' -- because '-MD' means "put the output 4044 # in D". 4045 rm -rf conftest.dir 4046 mkdir conftest.dir 4047 # Copy depcomp to subdir because otherwise we won't find it if we're 4048 # using a relative directory. 4049 cp "$am_depcomp" conftest.dir 4050 cd conftest.dir 4051 # We will build objects and dependencies in a subdirectory because 4052 # it helps to detect inapplicable dependency modes. For instance 4053 # both Tru64's cc and ICC support -MD to output dependencies as a 4054 # side effect of compilation, but ICC will put the dependencies in 4055 # the current directory while Tru64 will put them in the object 4056 # directory. 4057 mkdir sub 4058 4059 am_cv_CC_dependencies_compiler_type=none 4060 if test "$am_compiler_list" = ""; then 4061 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4062 fi 4063 am__universal=false 4064 case " $depcc " in #( 4065 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4066 esac 4067 4068 for depmode in $am_compiler_list; do 4069 # Setup a source with many dependencies, because some compilers 4070 # like to wrap large dependency lists on column 80 (with \), and 4071 # we should not choose a depcomp mode which is confused by this. 4072 # 4073 # We need to recreate these files for each test, as the compiler may 4074 # overwrite some of them when testing with obscure command lines. 4075 # This happens at least with the AIX C compiler. 4076 : > sub/conftest.c 4077 for i in 1 2 3 4 5 6; do 4078 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4079 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4080 # Solaris 10 /bin/sh. 4081 echo '/* dummy */' > sub/conftst$i.h 4082 done 4083 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4084 4085 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4086 # mode. It turns out that the SunPro C++ compiler does not properly 4087 # handle '-M -o', and we need to detect this. Also, some Intel 4088 # versions had trouble with output in subdirs. 4089 am__obj=sub/conftest.${OBJEXT-o} 4090 am__minus_obj="-o $am__obj" 4091 case $depmode in 4092 gcc) 4093 # This depmode causes a compiler race in universal mode. 4094 test "$am__universal" = false || continue 4095 ;; 4096 nosideeffect) 4097 # After this tag, mechanisms are not by side-effect, so they'll 4098 # only be used when explicitly requested. 4099 if test "x$enable_dependency_tracking" = xyes; then 4100 continue 4101 else 4102 break 4103 fi 4104 ;; 4105 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4106 # This compiler won't grok '-c -o', but also, the minuso test has 4107 # not run yet. These depmodes are late enough in the game, and 4108 # so weak that their functioning should not be impacted. 4109 am__obj=conftest.${OBJEXT-o} 4110 am__minus_obj= 4111 ;; 4112 none) break ;; 4113 esac 4114 if depmode=$depmode \ 4115 source=sub/conftest.c object=$am__obj \ 4116 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4117 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4118 >/dev/null 2>conftest.err && 4119 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4120 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4121 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4122 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4123 # icc doesn't choke on unknown options, it will just issue warnings 4124 # or remarks (even with -Werror). So we grep stderr for any message 4125 # that says an option was ignored or not supported. 4126 # When given -MP, icc 7.0 and 7.1 complain thusly: 4127 # icc: Command line warning: ignoring option '-M'; no argument required 4128 # The diagnosis changed in icc 8.0: 4129 # icc: Command line remark: option '-MP' not supported 4130 if (grep 'ignoring option' conftest.err || 4131 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4132 am_cv_CC_dependencies_compiler_type=$depmode 4133 break 4134 fi 4135 fi 4136 done 4137 4138 cd .. 4139 rm -rf conftest.dir 4140else 4141 am_cv_CC_dependencies_compiler_type=none 4142fi 4143 4144fi 4145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4146$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4147CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4148 4149 if 4150 test "x$enable_dependency_tracking" != xno \ 4151 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4152 am__fastdepCC_TRUE= 4153 am__fastdepCC_FALSE='#' 4154else 4155 am__fastdepCC_TRUE='#' 4156 am__fastdepCC_FALSE= 4157fi 4158 4159 4160ac_ext=c 4161ac_cpp='$CPP $CPPFLAGS' 4162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4164ac_compiler_gnu=$ac_cv_c_compiler_gnu 4165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4166$as_echo_n "checking how to run the C preprocessor... " >&6; } 4167# On Suns, sometimes $CPP names a directory. 4168if test -n "$CPP" && test -d "$CPP"; then 4169 CPP= 4170fi 4171if test -z "$CPP"; then 4172 if ${ac_cv_prog_CPP+:} false; then : 4173 $as_echo_n "(cached) " >&6 4174else 4175 # Double quotes because CPP needs to be expanded 4176 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4177 do 4178 ac_preproc_ok=false 4179for ac_c_preproc_warn_flag in '' yes 4180do 4181 # Use a header file that comes with gcc, so configuring glibc 4182 # with a fresh cross-compiler works. 4183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4184 # <limits.h> exists even on freestanding compilers. 4185 # On the NeXT, cc -E runs the code through the compiler's parser, 4186 # not just through cpp. "Syntax error" is here to catch this case. 4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4188/* end confdefs.h. */ 4189#ifdef __STDC__ 4190# include <limits.h> 4191#else 4192# include <assert.h> 4193#endif 4194 Syntax error 4195_ACEOF 4196if ac_fn_c_try_cpp "$LINENO"; then : 4197 4198else 4199 # Broken: fails on valid input. 4200continue 4201fi 4202rm -f conftest.err conftest.i conftest.$ac_ext 4203 4204 # OK, works on sane cases. Now check whether nonexistent headers 4205 # can be detected and how. 4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4207/* end confdefs.h. */ 4208#include <ac_nonexistent.h> 4209_ACEOF 4210if ac_fn_c_try_cpp "$LINENO"; then : 4211 # Broken: success on invalid input. 4212continue 4213else 4214 # Passes both tests. 4215ac_preproc_ok=: 4216break 4217fi 4218rm -f conftest.err conftest.i conftest.$ac_ext 4219 4220done 4221# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4222rm -f conftest.i conftest.err conftest.$ac_ext 4223if $ac_preproc_ok; then : 4224 break 4225fi 4226 4227 done 4228 ac_cv_prog_CPP=$CPP 4229 4230fi 4231 CPP=$ac_cv_prog_CPP 4232else 4233 ac_cv_prog_CPP=$CPP 4234fi 4235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4236$as_echo "$CPP" >&6; } 4237ac_preproc_ok=false 4238for ac_c_preproc_warn_flag in '' yes 4239do 4240 # Use a header file that comes with gcc, so configuring glibc 4241 # with a fresh cross-compiler works. 4242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4243 # <limits.h> exists even on freestanding compilers. 4244 # On the NeXT, cc -E runs the code through the compiler's parser, 4245 # not just through cpp. "Syntax error" is here to catch this case. 4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4247/* end confdefs.h. */ 4248#ifdef __STDC__ 4249# include <limits.h> 4250#else 4251# include <assert.h> 4252#endif 4253 Syntax error 4254_ACEOF 4255if ac_fn_c_try_cpp "$LINENO"; then : 4256 4257else 4258 # Broken: fails on valid input. 4259continue 4260fi 4261rm -f conftest.err conftest.i conftest.$ac_ext 4262 4263 # OK, works on sane cases. Now check whether nonexistent headers 4264 # can be detected and how. 4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4266/* end confdefs.h. */ 4267#include <ac_nonexistent.h> 4268_ACEOF 4269if ac_fn_c_try_cpp "$LINENO"; then : 4270 # Broken: success on invalid input. 4271continue 4272else 4273 # Passes both tests. 4274ac_preproc_ok=: 4275break 4276fi 4277rm -f conftest.err conftest.i conftest.$ac_ext 4278 4279done 4280# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4281rm -f conftest.i conftest.err conftest.$ac_ext 4282if $ac_preproc_ok; then : 4283 4284else 4285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4287as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4288See \`config.log' for more details" "$LINENO" 5; } 4289fi 4290 4291ac_ext=c 4292ac_cpp='$CPP $CPPFLAGS' 4293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4295ac_compiler_gnu=$ac_cv_c_compiler_gnu 4296 4297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4298$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4299set x ${MAKE-make} 4300ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4301if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4302 $as_echo_n "(cached) " >&6 4303else 4304 cat >conftest.make <<\_ACEOF 4305SHELL = /bin/sh 4306all: 4307 @echo '@@@%%%=$(MAKE)=@@@%%%' 4308_ACEOF 4309# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4310case `${MAKE-make} -f conftest.make 2>/dev/null` in 4311 *@@@%%%=?*=@@@%%%*) 4312 eval ac_cv_prog_make_${ac_make}_set=yes;; 4313 *) 4314 eval ac_cv_prog_make_${ac_make}_set=no;; 4315esac 4316rm -f conftest.make 4317fi 4318if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4320$as_echo "yes" >&6; } 4321 SET_MAKE= 4322else 4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4324$as_echo "no" >&6; } 4325 SET_MAKE="MAKE=${MAKE-make}" 4326fi 4327 4328 4329ac_ext=cpp 4330ac_cpp='$CXXCPP $CPPFLAGS' 4331ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4332ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4333ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4334if test -z "$CXX"; then 4335 if test -n "$CCC"; then 4336 CXX=$CCC 4337 else 4338 if test -n "$ac_tool_prefix"; then 4339 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4340 do 4341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4342set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4344$as_echo_n "checking for $ac_word... " >&6; } 4345if ${ac_cv_prog_CXX+:} false; then : 4346 $as_echo_n "(cached) " >&6 4347else 4348 if test -n "$CXX"; then 4349 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4350else 4351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4352for as_dir in $PATH 4353do 4354 IFS=$as_save_IFS 4355 test -z "$as_dir" && as_dir=. 4356 for ac_exec_ext in '' $ac_executable_extensions; do 4357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4358 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4360 break 2 4361 fi 4362done 4363 done 4364IFS=$as_save_IFS 4365 4366fi 4367fi 4368CXX=$ac_cv_prog_CXX 4369if test -n "$CXX"; then 4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4371$as_echo "$CXX" >&6; } 4372else 4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4374$as_echo "no" >&6; } 4375fi 4376 4377 4378 test -n "$CXX" && break 4379 done 4380fi 4381if test -z "$CXX"; then 4382 ac_ct_CXX=$CXX 4383 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4384do 4385 # Extract the first word of "$ac_prog", so it can be a program name with args. 4386set dummy $ac_prog; ac_word=$2 4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4388$as_echo_n "checking for $ac_word... " >&6; } 4389if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4390 $as_echo_n "(cached) " >&6 4391else 4392 if test -n "$ac_ct_CXX"; then 4393 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4394else 4395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4396for as_dir in $PATH 4397do 4398 IFS=$as_save_IFS 4399 test -z "$as_dir" && as_dir=. 4400 for ac_exec_ext in '' $ac_executable_extensions; do 4401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4402 ac_cv_prog_ac_ct_CXX="$ac_prog" 4403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4404 break 2 4405 fi 4406done 4407 done 4408IFS=$as_save_IFS 4409 4410fi 4411fi 4412ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4413if test -n "$ac_ct_CXX"; then 4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4415$as_echo "$ac_ct_CXX" >&6; } 4416else 4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4418$as_echo "no" >&6; } 4419fi 4420 4421 4422 test -n "$ac_ct_CXX" && break 4423done 4424 4425 if test "x$ac_ct_CXX" = x; then 4426 CXX="g++" 4427 else 4428 case $cross_compiling:$ac_tool_warned in 4429yes:) 4430{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4431$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4432ac_tool_warned=yes ;; 4433esac 4434 CXX=$ac_ct_CXX 4435 fi 4436fi 4437 4438 fi 4439fi 4440# Provide some information about the compiler. 4441$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4442set X $ac_compile 4443ac_compiler=$2 4444for ac_option in --version -v -V -qversion; do 4445 { { ac_try="$ac_compiler $ac_option >&5" 4446case "(($ac_try" in 4447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4448 *) ac_try_echo=$ac_try;; 4449esac 4450eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4451$as_echo "$ac_try_echo"; } >&5 4452 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4453 ac_status=$? 4454 if test -s conftest.err; then 4455 sed '10a\ 4456... rest of stderr output deleted ... 4457 10q' conftest.err >conftest.er1 4458 cat conftest.er1 >&5 4459 fi 4460 rm -f conftest.er1 conftest.err 4461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4462 test $ac_status = 0; } 4463done 4464 4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4466$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4467if ${ac_cv_cxx_compiler_gnu+:} false; then : 4468 $as_echo_n "(cached) " >&6 4469else 4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4471/* end confdefs.h. */ 4472 4473int 4474main () 4475{ 4476#ifndef __GNUC__ 4477 choke me 4478#endif 4479 4480 ; 4481 return 0; 4482} 4483_ACEOF 4484if ac_fn_cxx_try_compile "$LINENO"; then : 4485 ac_compiler_gnu=yes 4486else 4487 ac_compiler_gnu=no 4488fi 4489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4490ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4491 4492fi 4493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4494$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4495if test $ac_compiler_gnu = yes; then 4496 GXX=yes 4497else 4498 GXX= 4499fi 4500ac_test_CXXFLAGS=${CXXFLAGS+set} 4501ac_save_CXXFLAGS=$CXXFLAGS 4502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4503$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4504if ${ac_cv_prog_cxx_g+:} false; then : 4505 $as_echo_n "(cached) " >&6 4506else 4507 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4508 ac_cxx_werror_flag=yes 4509 ac_cv_prog_cxx_g=no 4510 CXXFLAGS="-g" 4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4512/* end confdefs.h. */ 4513 4514int 4515main () 4516{ 4517 4518 ; 4519 return 0; 4520} 4521_ACEOF 4522if ac_fn_cxx_try_compile "$LINENO"; then : 4523 ac_cv_prog_cxx_g=yes 4524else 4525 CXXFLAGS="" 4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4527/* end confdefs.h. */ 4528 4529int 4530main () 4531{ 4532 4533 ; 4534 return 0; 4535} 4536_ACEOF 4537if ac_fn_cxx_try_compile "$LINENO"; then : 4538 4539else 4540 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4541 CXXFLAGS="-g" 4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4543/* end confdefs.h. */ 4544 4545int 4546main () 4547{ 4548 4549 ; 4550 return 0; 4551} 4552_ACEOF 4553if ac_fn_cxx_try_compile "$LINENO"; then : 4554 ac_cv_prog_cxx_g=yes 4555fi 4556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4557fi 4558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4559fi 4560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4561 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4562fi 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4564$as_echo "$ac_cv_prog_cxx_g" >&6; } 4565if test "$ac_test_CXXFLAGS" = set; then 4566 CXXFLAGS=$ac_save_CXXFLAGS 4567elif test $ac_cv_prog_cxx_g = yes; then 4568 if test "$GXX" = yes; then 4569 CXXFLAGS="-g -O2" 4570 else 4571 CXXFLAGS="-g" 4572 fi 4573else 4574 if test "$GXX" = yes; then 4575 CXXFLAGS="-O2" 4576 else 4577 CXXFLAGS= 4578 fi 4579fi 4580ac_ext=c 4581ac_cpp='$CPP $CPPFLAGS' 4582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4584ac_compiler_gnu=$ac_cv_c_compiler_gnu 4585 4586depcc="$CXX" am_compiler_list= 4587 4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4589$as_echo_n "checking dependency style of $depcc... " >&6; } 4590if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4591 $as_echo_n "(cached) " >&6 4592else 4593 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4594 # We make a subdir and do the tests there. Otherwise we can end up 4595 # making bogus files that we don't know about and never remove. For 4596 # instance it was reported that on HP-UX the gcc test will end up 4597 # making a dummy file named 'D' -- because '-MD' means "put the output 4598 # in D". 4599 rm -rf conftest.dir 4600 mkdir conftest.dir 4601 # Copy depcomp to subdir because otherwise we won't find it if we're 4602 # using a relative directory. 4603 cp "$am_depcomp" conftest.dir 4604 cd conftest.dir 4605 # We will build objects and dependencies in a subdirectory because 4606 # it helps to detect inapplicable dependency modes. For instance 4607 # both Tru64's cc and ICC support -MD to output dependencies as a 4608 # side effect of compilation, but ICC will put the dependencies in 4609 # the current directory while Tru64 will put them in the object 4610 # directory. 4611 mkdir sub 4612 4613 am_cv_CXX_dependencies_compiler_type=none 4614 if test "$am_compiler_list" = ""; then 4615 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4616 fi 4617 am__universal=false 4618 case " $depcc " in #( 4619 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4620 esac 4621 4622 for depmode in $am_compiler_list; do 4623 # Setup a source with many dependencies, because some compilers 4624 # like to wrap large dependency lists on column 80 (with \), and 4625 # we should not choose a depcomp mode which is confused by this. 4626 # 4627 # We need to recreate these files for each test, as the compiler may 4628 # overwrite some of them when testing with obscure command lines. 4629 # This happens at least with the AIX C compiler. 4630 : > sub/conftest.c 4631 for i in 1 2 3 4 5 6; do 4632 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4633 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4634 # Solaris 10 /bin/sh. 4635 echo '/* dummy */' > sub/conftst$i.h 4636 done 4637 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4638 4639 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4640 # mode. It turns out that the SunPro C++ compiler does not properly 4641 # handle '-M -o', and we need to detect this. Also, some Intel 4642 # versions had trouble with output in subdirs. 4643 am__obj=sub/conftest.${OBJEXT-o} 4644 am__minus_obj="-o $am__obj" 4645 case $depmode in 4646 gcc) 4647 # This depmode causes a compiler race in universal mode. 4648 test "$am__universal" = false || continue 4649 ;; 4650 nosideeffect) 4651 # After this tag, mechanisms are not by side-effect, so they'll 4652 # only be used when explicitly requested. 4653 if test "x$enable_dependency_tracking" = xyes; then 4654 continue 4655 else 4656 break 4657 fi 4658 ;; 4659 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4660 # This compiler won't grok '-c -o', but also, the minuso test has 4661 # not run yet. These depmodes are late enough in the game, and 4662 # so weak that their functioning should not be impacted. 4663 am__obj=conftest.${OBJEXT-o} 4664 am__minus_obj= 4665 ;; 4666 none) break ;; 4667 esac 4668 if depmode=$depmode \ 4669 source=sub/conftest.c object=$am__obj \ 4670 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4671 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4672 >/dev/null 2>conftest.err && 4673 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4674 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4675 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4676 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4677 # icc doesn't choke on unknown options, it will just issue warnings 4678 # or remarks (even with -Werror). So we grep stderr for any message 4679 # that says an option was ignored or not supported. 4680 # When given -MP, icc 7.0 and 7.1 complain thusly: 4681 # icc: Command line warning: ignoring option '-M'; no argument required 4682 # The diagnosis changed in icc 8.0: 4683 # icc: Command line remark: option '-MP' not supported 4684 if (grep 'ignoring option' conftest.err || 4685 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4686 am_cv_CXX_dependencies_compiler_type=$depmode 4687 break 4688 fi 4689 fi 4690 done 4691 4692 cd .. 4693 rm -rf conftest.dir 4694else 4695 am_cv_CXX_dependencies_compiler_type=none 4696fi 4697 4698fi 4699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4700$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4701CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4702 4703 if 4704 test "x$enable_dependency_tracking" != xno \ 4705 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4706 am__fastdepCXX_TRUE= 4707 am__fastdepCXX_FALSE='#' 4708else 4709 am__fastdepCXX_TRUE='#' 4710 am__fastdepCXX_FALSE= 4711fi 4712 4713 4714 4715 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true 4716 ac_ext=cpp 4717ac_cpp='$CXXCPP $CPPFLAGS' 4718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4721 ac_success=no 4722 4723 4724 4725 if test x$ac_success = xno; then 4726 for alternative in ${ax_cxx_compile_alternatives}; do 4727 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do 4728 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` 4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 4730$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } 4731if eval \${$cachevar+:} false; then : 4732 $as_echo_n "(cached) " >&6 4733else 4734 ac_save_CXX="$CXX" 4735 CXX="$CXX $switch" 4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4737/* end confdefs.h. */ 4738 4739 4740// If the compiler admits that it is not ready for C++11, why torture it? 4741// Hopefully, this will speed up the test. 4742 4743#ifndef __cplusplus 4744 4745#error "This is not a C++ compiler" 4746 4747#elif __cplusplus < 201103L 4748 4749#error "This is not a C++11 compiler" 4750 4751#else 4752 4753namespace cxx11 4754{ 4755 4756 namespace test_static_assert 4757 { 4758 4759 template <typename T> 4760 struct check 4761 { 4762 static_assert(sizeof(int) <= sizeof(T), "not big enough"); 4763 }; 4764 4765 } 4766 4767 namespace test_final_override 4768 { 4769 4770 struct Base 4771 { 4772 virtual void f() {} 4773 }; 4774 4775 struct Derived : public Base 4776 { 4777 virtual void f() override {} 4778 }; 4779 4780 } 4781 4782 namespace test_double_right_angle_brackets 4783 { 4784 4785 template < typename T > 4786 struct check {}; 4787 4788 typedef check<void> single_type; 4789 typedef check<check<void>> double_type; 4790 typedef check<check<check<void>>> triple_type; 4791 typedef check<check<check<check<void>>>> quadruple_type; 4792 4793 } 4794 4795 namespace test_decltype 4796 { 4797 4798 int 4799 f() 4800 { 4801 int a = 1; 4802 decltype(a) b = 2; 4803 return a + b; 4804 } 4805 4806 } 4807 4808 namespace test_type_deduction 4809 { 4810 4811 template < typename T1, typename T2 > 4812 struct is_same 4813 { 4814 static const bool value = false; 4815 }; 4816 4817 template < typename T > 4818 struct is_same<T, T> 4819 { 4820 static const bool value = true; 4821 }; 4822 4823 template < typename T1, typename T2 > 4824 auto 4825 add(T1 a1, T2 a2) -> decltype(a1 + a2) 4826 { 4827 return a1 + a2; 4828 } 4829 4830 int 4831 test(const int c, volatile int v) 4832 { 4833 static_assert(is_same<int, decltype(0)>::value == true, ""); 4834 static_assert(is_same<int, decltype(c)>::value == false, ""); 4835 static_assert(is_same<int, decltype(v)>::value == false, ""); 4836 auto ac = c; 4837 auto av = v; 4838 auto sumi = ac + av + 'x'; 4839 auto sumf = ac + av + 1.0; 4840 static_assert(is_same<int, decltype(ac)>::value == true, ""); 4841 static_assert(is_same<int, decltype(av)>::value == true, ""); 4842 static_assert(is_same<int, decltype(sumi)>::value == true, ""); 4843 static_assert(is_same<int, decltype(sumf)>::value == false, ""); 4844 static_assert(is_same<int, decltype(add(c, v))>::value == true, ""); 4845 return (sumf > 0.0) ? sumi : add(c, v); 4846 } 4847 4848 } 4849 4850 namespace test_noexcept 4851 { 4852 4853 int f() { return 0; } 4854 int g() noexcept { return 0; } 4855 4856 static_assert(noexcept(f()) == false, ""); 4857 static_assert(noexcept(g()) == true, ""); 4858 4859 } 4860 4861 namespace test_constexpr 4862 { 4863 4864 template < typename CharT > 4865 unsigned long constexpr 4866 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept 4867 { 4868 return *s ? strlen_c_r(s + 1, acc + 1) : acc; 4869 } 4870 4871 template < typename CharT > 4872 unsigned long constexpr 4873 strlen_c(const CharT *const s) noexcept 4874 { 4875 return strlen_c_r(s, 0UL); 4876 } 4877 4878 static_assert(strlen_c("") == 0UL, ""); 4879 static_assert(strlen_c("1") == 1UL, ""); 4880 static_assert(strlen_c("example") == 7UL, ""); 4881 static_assert(strlen_c("another\0example") == 7UL, ""); 4882 4883 } 4884 4885 namespace test_rvalue_references 4886 { 4887 4888 template < int N > 4889 struct answer 4890 { 4891 static constexpr int value = N; 4892 }; 4893 4894 answer<1> f(int&) { return answer<1>(); } 4895 answer<2> f(const int&) { return answer<2>(); } 4896 answer<3> f(int&&) { return answer<3>(); } 4897 4898 void 4899 test() 4900 { 4901 int i = 0; 4902 const int c = 0; 4903 static_assert(decltype(f(i))::value == 1, ""); 4904 static_assert(decltype(f(c))::value == 2, ""); 4905 static_assert(decltype(f(0))::value == 3, ""); 4906 } 4907 4908 } 4909 4910 namespace test_uniform_initialization 4911 { 4912 4913 struct test 4914 { 4915 static const int zero {}; 4916 static const int one {1}; 4917 }; 4918 4919 static_assert(test::zero == 0, ""); 4920 static_assert(test::one == 1, ""); 4921 4922 } 4923 4924 namespace test_lambdas 4925 { 4926 4927 void 4928 test1() 4929 { 4930 auto lambda1 = [](){}; 4931 auto lambda2 = lambda1; 4932 lambda1(); 4933 lambda2(); 4934 } 4935 4936 int 4937 test2() 4938 { 4939 auto a = [](int i, int j){ return i + j; }(1, 2); 4940 auto b = []() -> int { return '0'; }(); 4941 auto c = [=](){ return a + b; }(); 4942 auto d = [&](){ return c; }(); 4943 auto e = [a, &b](int x) mutable { 4944 const auto identity = [](int y){ return y; }; 4945 for (auto i = 0; i < a; ++i) 4946 a += b--; 4947 return x + identity(a + b); 4948 }(0); 4949 return a + b + c + d + e; 4950 } 4951 4952 int 4953 test3() 4954 { 4955 const auto nullary = [](){ return 0; }; 4956 const auto unary = [](int x){ return x; }; 4957 using nullary_t = decltype(nullary); 4958 using unary_t = decltype(unary); 4959 const auto higher1st = [](nullary_t f){ return f(); }; 4960 const auto higher2nd = [unary](nullary_t f1){ 4961 return [unary, f1](unary_t f2){ return f2(unary(f1())); }; 4962 }; 4963 return higher1st(nullary) + higher2nd(nullary)(unary); 4964 } 4965 4966 } 4967 4968 namespace test_variadic_templates 4969 { 4970 4971 template <int...> 4972 struct sum; 4973 4974 template <int N0, int... N1toN> 4975 struct sum<N0, N1toN...> 4976 { 4977 static constexpr auto value = N0 + sum<N1toN...>::value; 4978 }; 4979 4980 template <> 4981 struct sum<> 4982 { 4983 static constexpr auto value = 0; 4984 }; 4985 4986 static_assert(sum<>::value == 0, ""); 4987 static_assert(sum<1>::value == 1, ""); 4988 static_assert(sum<23>::value == 23, ""); 4989 static_assert(sum<1, 2>::value == 3, ""); 4990 static_assert(sum<5, 5, 11>::value == 21, ""); 4991 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, ""); 4992 4993 } 4994 4995 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae 4996 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function 4997 // because of this. 4998 namespace test_template_alias_sfinae 4999 { 5000 5001 struct foo {}; 5002 5003 template<typename T> 5004 using member = typename T::member_type; 5005 5006 template<typename T> 5007 void func(...) {} 5008 5009 template<typename T> 5010 void func(member<T>*) {} 5011 5012 void test(); 5013 5014 void test() { func<foo>(0); } 5015 5016 } 5017 5018} // namespace cxx11 5019 5020#endif // __cplusplus >= 201103L 5021 5022 5023 5024_ACEOF 5025if ac_fn_cxx_try_compile "$LINENO"; then : 5026 eval $cachevar=yes 5027else 5028 eval $cachevar=no 5029fi 5030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5031 CXX="$ac_save_CXX" 5032fi 5033eval ac_res=\$$cachevar 5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5035$as_echo "$ac_res" >&6; } 5036 if eval test x\$$cachevar = xyes; then 5037 CXX="$CXX $switch" 5038 if test -n "$CXXCPP" ; then 5039 CXXCPP="$CXXCPP $switch" 5040 fi 5041 ac_success=yes 5042 break 5043 fi 5044 done 5045 if test x$ac_success = xyes; then 5046 break 5047 fi 5048 done 5049 fi 5050 ac_ext=c 5051ac_cpp='$CPP $CPPFLAGS' 5052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5054ac_compiler_gnu=$ac_cv_c_compiler_gnu 5055 5056 if test x$ax_cxx_compile_cxx11_required = xtrue; then 5057 if test x$ac_success = xno; then 5058 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 5059 fi 5060 fi 5061 if test x$ac_success = xno; then 5062 HAVE_CXX11=0 5063 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 5064$as_echo "$as_me: No compiler with C++11 support was found" >&6;} 5065 else 5066 HAVE_CXX11=1 5067 5068$as_echo "#define HAVE_CXX11 1" >>confdefs.h 5069 5070 fi 5071 5072 5073case `pwd` in 5074 *\ * | *\ *) 5075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5076$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5077esac 5078 5079 5080 5081macro_version='2.4.6' 5082macro_revision='2.4.6' 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096ltmain=$ac_aux_dir/ltmain.sh 5097 5098# Backslashify metacharacters that are still active within 5099# double-quoted strings. 5100sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5101 5102# Same as above, but do not quote variable references. 5103double_quote_subst='s/\(["`\\]\)/\\\1/g' 5104 5105# Sed substitution to delay expansion of an escaped shell variable in a 5106# double_quote_subst'ed string. 5107delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5108 5109# Sed substitution to delay expansion of an escaped single quote. 5110delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5111 5112# Sed substitution to avoid accidental globbing in evaled expressions 5113no_glob_subst='s/\*/\\\*/g' 5114 5115ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5116ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5117ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5118 5119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5120$as_echo_n "checking how to print strings... " >&6; } 5121# Test print first, because it will be a builtin if present. 5122if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5123 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5124 ECHO='print -r --' 5125elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5126 ECHO='printf %s\n' 5127else 5128 # Use this function as a fallback that always works. 5129 func_fallback_echo () 5130 { 5131 eval 'cat <<_LTECHO_EOF 5132$1 5133_LTECHO_EOF' 5134 } 5135 ECHO='func_fallback_echo' 5136fi 5137 5138# func_echo_all arg... 5139# Invoke $ECHO with all args, space-separated. 5140func_echo_all () 5141{ 5142 $ECHO "" 5143} 5144 5145case $ECHO in 5146 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5147$as_echo "printf" >&6; } ;; 5148 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5149$as_echo "print -r" >&6; } ;; 5150 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5151$as_echo "cat" >&6; } ;; 5152esac 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5168$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5169if ${ac_cv_path_SED+:} false; then : 5170 $as_echo_n "(cached) " >&6 5171else 5172 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5173 for ac_i in 1 2 3 4 5 6 7; do 5174 ac_script="$ac_script$as_nl$ac_script" 5175 done 5176 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5177 { ac_script=; unset ac_script;} 5178 if test -z "$SED"; then 5179 ac_path_SED_found=false 5180 # Loop through the user's path and test for each of PROGNAME-LIST 5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5182for as_dir in $PATH 5183do 5184 IFS=$as_save_IFS 5185 test -z "$as_dir" && as_dir=. 5186 for ac_prog in sed gsed; do 5187 for ac_exec_ext in '' $ac_executable_extensions; do 5188 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5189 as_fn_executable_p "$ac_path_SED" || continue 5190# Check for GNU ac_path_SED and select it if it is found. 5191 # Check for GNU $ac_path_SED 5192case `"$ac_path_SED" --version 2>&1` in 5193*GNU*) 5194 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5195*) 5196 ac_count=0 5197 $as_echo_n 0123456789 >"conftest.in" 5198 while : 5199 do 5200 cat "conftest.in" "conftest.in" >"conftest.tmp" 5201 mv "conftest.tmp" "conftest.in" 5202 cp "conftest.in" "conftest.nl" 5203 $as_echo '' >> "conftest.nl" 5204 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5205 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5206 as_fn_arith $ac_count + 1 && ac_count=$as_val 5207 if test $ac_count -gt ${ac_path_SED_max-0}; then 5208 # Best one so far, save it but keep looking for a better one 5209 ac_cv_path_SED="$ac_path_SED" 5210 ac_path_SED_max=$ac_count 5211 fi 5212 # 10*(2^10) chars as input seems more than enough 5213 test $ac_count -gt 10 && break 5214 done 5215 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5216esac 5217 5218 $ac_path_SED_found && break 3 5219 done 5220 done 5221 done 5222IFS=$as_save_IFS 5223 if test -z "$ac_cv_path_SED"; then 5224 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5225 fi 5226else 5227 ac_cv_path_SED=$SED 5228fi 5229 5230fi 5231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5232$as_echo "$ac_cv_path_SED" >&6; } 5233 SED="$ac_cv_path_SED" 5234 rm -f conftest.sed 5235 5236test -z "$SED" && SED=sed 5237Xsed="$SED -e 1s/^X//" 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5250$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5251if ${ac_cv_path_GREP+:} false; then : 5252 $as_echo_n "(cached) " >&6 5253else 5254 if test -z "$GREP"; then 5255 ac_path_GREP_found=false 5256 # Loop through the user's path and test for each of PROGNAME-LIST 5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5258for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5259do 5260 IFS=$as_save_IFS 5261 test -z "$as_dir" && as_dir=. 5262 for ac_prog in grep ggrep; do 5263 for ac_exec_ext in '' $ac_executable_extensions; do 5264 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5265 as_fn_executable_p "$ac_path_GREP" || continue 5266# Check for GNU ac_path_GREP and select it if it is found. 5267 # Check for GNU $ac_path_GREP 5268case `"$ac_path_GREP" --version 2>&1` in 5269*GNU*) 5270 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5271*) 5272 ac_count=0 5273 $as_echo_n 0123456789 >"conftest.in" 5274 while : 5275 do 5276 cat "conftest.in" "conftest.in" >"conftest.tmp" 5277 mv "conftest.tmp" "conftest.in" 5278 cp "conftest.in" "conftest.nl" 5279 $as_echo 'GREP' >> "conftest.nl" 5280 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5281 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5282 as_fn_arith $ac_count + 1 && ac_count=$as_val 5283 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5284 # Best one so far, save it but keep looking for a better one 5285 ac_cv_path_GREP="$ac_path_GREP" 5286 ac_path_GREP_max=$ac_count 5287 fi 5288 # 10*(2^10) chars as input seems more than enough 5289 test $ac_count -gt 10 && break 5290 done 5291 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5292esac 5293 5294 $ac_path_GREP_found && break 3 5295 done 5296 done 5297 done 5298IFS=$as_save_IFS 5299 if test -z "$ac_cv_path_GREP"; then 5300 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5301 fi 5302else 5303 ac_cv_path_GREP=$GREP 5304fi 5305 5306fi 5307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5308$as_echo "$ac_cv_path_GREP" >&6; } 5309 GREP="$ac_cv_path_GREP" 5310 5311 5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5313$as_echo_n "checking for egrep... " >&6; } 5314if ${ac_cv_path_EGREP+:} false; then : 5315 $as_echo_n "(cached) " >&6 5316else 5317 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5318 then ac_cv_path_EGREP="$GREP -E" 5319 else 5320 if test -z "$EGREP"; then 5321 ac_path_EGREP_found=false 5322 # Loop through the user's path and test for each of PROGNAME-LIST 5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5324for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5325do 5326 IFS=$as_save_IFS 5327 test -z "$as_dir" && as_dir=. 5328 for ac_prog in egrep; do 5329 for ac_exec_ext in '' $ac_executable_extensions; do 5330 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5331 as_fn_executable_p "$ac_path_EGREP" || continue 5332# Check for GNU ac_path_EGREP and select it if it is found. 5333 # Check for GNU $ac_path_EGREP 5334case `"$ac_path_EGREP" --version 2>&1` in 5335*GNU*) 5336 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5337*) 5338 ac_count=0 5339 $as_echo_n 0123456789 >"conftest.in" 5340 while : 5341 do 5342 cat "conftest.in" "conftest.in" >"conftest.tmp" 5343 mv "conftest.tmp" "conftest.in" 5344 cp "conftest.in" "conftest.nl" 5345 $as_echo 'EGREP' >> "conftest.nl" 5346 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5347 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5348 as_fn_arith $ac_count + 1 && ac_count=$as_val 5349 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5350 # Best one so far, save it but keep looking for a better one 5351 ac_cv_path_EGREP="$ac_path_EGREP" 5352 ac_path_EGREP_max=$ac_count 5353 fi 5354 # 10*(2^10) chars as input seems more than enough 5355 test $ac_count -gt 10 && break 5356 done 5357 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5358esac 5359 5360 $ac_path_EGREP_found && break 3 5361 done 5362 done 5363 done 5364IFS=$as_save_IFS 5365 if test -z "$ac_cv_path_EGREP"; then 5366 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5367 fi 5368else 5369 ac_cv_path_EGREP=$EGREP 5370fi 5371 5372 fi 5373fi 5374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5375$as_echo "$ac_cv_path_EGREP" >&6; } 5376 EGREP="$ac_cv_path_EGREP" 5377 5378 5379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5380$as_echo_n "checking for fgrep... " >&6; } 5381if ${ac_cv_path_FGREP+:} false; then : 5382 $as_echo_n "(cached) " >&6 5383else 5384 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5385 then ac_cv_path_FGREP="$GREP -F" 5386 else 5387 if test -z "$FGREP"; then 5388 ac_path_FGREP_found=false 5389 # Loop through the user's path and test for each of PROGNAME-LIST 5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5391for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5392do 5393 IFS=$as_save_IFS 5394 test -z "$as_dir" && as_dir=. 5395 for ac_prog in fgrep; do 5396 for ac_exec_ext in '' $ac_executable_extensions; do 5397 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5398 as_fn_executable_p "$ac_path_FGREP" || continue 5399# Check for GNU ac_path_FGREP and select it if it is found. 5400 # Check for GNU $ac_path_FGREP 5401case `"$ac_path_FGREP" --version 2>&1` in 5402*GNU*) 5403 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5404*) 5405 ac_count=0 5406 $as_echo_n 0123456789 >"conftest.in" 5407 while : 5408 do 5409 cat "conftest.in" "conftest.in" >"conftest.tmp" 5410 mv "conftest.tmp" "conftest.in" 5411 cp "conftest.in" "conftest.nl" 5412 $as_echo 'FGREP' >> "conftest.nl" 5413 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5415 as_fn_arith $ac_count + 1 && ac_count=$as_val 5416 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5417 # Best one so far, save it but keep looking for a better one 5418 ac_cv_path_FGREP="$ac_path_FGREP" 5419 ac_path_FGREP_max=$ac_count 5420 fi 5421 # 10*(2^10) chars as input seems more than enough 5422 test $ac_count -gt 10 && break 5423 done 5424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5425esac 5426 5427 $ac_path_FGREP_found && break 3 5428 done 5429 done 5430 done 5431IFS=$as_save_IFS 5432 if test -z "$ac_cv_path_FGREP"; then 5433 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5434 fi 5435else 5436 ac_cv_path_FGREP=$FGREP 5437fi 5438 5439 fi 5440fi 5441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5442$as_echo "$ac_cv_path_FGREP" >&6; } 5443 FGREP="$ac_cv_path_FGREP" 5444 5445 5446test -z "$GREP" && GREP=grep 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466# Check whether --with-gnu-ld was given. 5467if test "${with_gnu_ld+set}" = set; then : 5468 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5469else 5470 with_gnu_ld=no 5471fi 5472 5473ac_prog=ld 5474if test yes = "$GCC"; then 5475 # Check if gcc -print-prog-name=ld gives a path. 5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5477$as_echo_n "checking for ld used by $CC... " >&6; } 5478 case $host in 5479 *-*-mingw*) 5480 # gcc leaves a trailing carriage return, which upsets mingw 5481 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5482 *) 5483 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5484 esac 5485 case $ac_prog in 5486 # Accept absolute paths. 5487 [\\/]* | ?:[\\/]*) 5488 re_direlt='/[^/][^/]*/\.\./' 5489 # Canonicalize the pathname of ld 5490 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5491 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5492 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5493 done 5494 test -z "$LD" && LD=$ac_prog 5495 ;; 5496 "") 5497 # If it fails, then pretend we aren't using GCC. 5498 ac_prog=ld 5499 ;; 5500 *) 5501 # If it is relative, then search for the first ld in PATH. 5502 with_gnu_ld=unknown 5503 ;; 5504 esac 5505elif test yes = "$with_gnu_ld"; then 5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5507$as_echo_n "checking for GNU ld... " >&6; } 5508else 5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5510$as_echo_n "checking for non-GNU ld... " >&6; } 5511fi 5512if ${lt_cv_path_LD+:} false; then : 5513 $as_echo_n "(cached) " >&6 5514else 5515 if test -z "$LD"; then 5516 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5517 for ac_dir in $PATH; do 5518 IFS=$lt_save_ifs 5519 test -z "$ac_dir" && ac_dir=. 5520 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5521 lt_cv_path_LD=$ac_dir/$ac_prog 5522 # Check to see if the program is GNU ld. I'd rather use --version, 5523 # but apparently some variants of GNU ld only accept -v. 5524 # Break only if it was the GNU/non-GNU ld that we prefer. 5525 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5526 *GNU* | *'with BFD'*) 5527 test no != "$with_gnu_ld" && break 5528 ;; 5529 *) 5530 test yes != "$with_gnu_ld" && break 5531 ;; 5532 esac 5533 fi 5534 done 5535 IFS=$lt_save_ifs 5536else 5537 lt_cv_path_LD=$LD # Let the user override the test with a path. 5538fi 5539fi 5540 5541LD=$lt_cv_path_LD 5542if test -n "$LD"; then 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5544$as_echo "$LD" >&6; } 5545else 5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5547$as_echo "no" >&6; } 5548fi 5549test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5551$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5552if ${lt_cv_prog_gnu_ld+:} false; then : 5553 $as_echo_n "(cached) " >&6 5554else 5555 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5556case `$LD -v 2>&1 </dev/null` in 5557*GNU* | *'with BFD'*) 5558 lt_cv_prog_gnu_ld=yes 5559 ;; 5560*) 5561 lt_cv_prog_gnu_ld=no 5562 ;; 5563esac 5564fi 5565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5566$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5567with_gnu_ld=$lt_cv_prog_gnu_ld 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5578$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5579if ${lt_cv_path_NM+:} false; then : 5580 $as_echo_n "(cached) " >&6 5581else 5582 if test -n "$NM"; then 5583 # Let the user override the test. 5584 lt_cv_path_NM=$NM 5585else 5586 lt_nm_to_check=${ac_tool_prefix}nm 5587 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5588 lt_nm_to_check="$lt_nm_to_check nm" 5589 fi 5590 for lt_tmp_nm in $lt_nm_to_check; do 5591 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5592 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5593 IFS=$lt_save_ifs 5594 test -z "$ac_dir" && ac_dir=. 5595 tmp_nm=$ac_dir/$lt_tmp_nm 5596 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5597 # Check to see if the nm accepts a BSD-compat flag. 5598 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5599 # nm: unknown option "B" ignored 5600 # Tru64's nm complains that /dev/null is an invalid object file 5601 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5602 case $build_os in 5603 mingw*) lt_bad_file=conftest.nm/nofile ;; 5604 *) lt_bad_file=/dev/null ;; 5605 esac 5606 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5607 *$lt_bad_file* | *'Invalid file or object type'*) 5608 lt_cv_path_NM="$tmp_nm -B" 5609 break 2 5610 ;; 5611 *) 5612 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5613 */dev/null*) 5614 lt_cv_path_NM="$tmp_nm -p" 5615 break 2 5616 ;; 5617 *) 5618 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5619 continue # so that we can try to find one that supports BSD flags 5620 ;; 5621 esac 5622 ;; 5623 esac 5624 fi 5625 done 5626 IFS=$lt_save_ifs 5627 done 5628 : ${lt_cv_path_NM=no} 5629fi 5630fi 5631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5632$as_echo "$lt_cv_path_NM" >&6; } 5633if test no != "$lt_cv_path_NM"; then 5634 NM=$lt_cv_path_NM 5635else 5636 # Didn't find any BSD compatible name lister, look for dumpbin. 5637 if test -n "$DUMPBIN"; then : 5638 # Let the user override the test. 5639 else 5640 if test -n "$ac_tool_prefix"; then 5641 for ac_prog in dumpbin "link -dump" 5642 do 5643 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5644set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5646$as_echo_n "checking for $ac_word... " >&6; } 5647if ${ac_cv_prog_DUMPBIN+:} false; then : 5648 $as_echo_n "(cached) " >&6 5649else 5650 if test -n "$DUMPBIN"; then 5651 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5652else 5653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5654for as_dir in $PATH 5655do 5656 IFS=$as_save_IFS 5657 test -z "$as_dir" && as_dir=. 5658 for ac_exec_ext in '' $ac_executable_extensions; do 5659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5660 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5662 break 2 5663 fi 5664done 5665 done 5666IFS=$as_save_IFS 5667 5668fi 5669fi 5670DUMPBIN=$ac_cv_prog_DUMPBIN 5671if test -n "$DUMPBIN"; then 5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5673$as_echo "$DUMPBIN" >&6; } 5674else 5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5676$as_echo "no" >&6; } 5677fi 5678 5679 5680 test -n "$DUMPBIN" && break 5681 done 5682fi 5683if test -z "$DUMPBIN"; then 5684 ac_ct_DUMPBIN=$DUMPBIN 5685 for ac_prog in dumpbin "link -dump" 5686do 5687 # Extract the first word of "$ac_prog", so it can be a program name with args. 5688set dummy $ac_prog; ac_word=$2 5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5690$as_echo_n "checking for $ac_word... " >&6; } 5691if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5692 $as_echo_n "(cached) " >&6 5693else 5694 if test -n "$ac_ct_DUMPBIN"; then 5695 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5696else 5697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5698for as_dir in $PATH 5699do 5700 IFS=$as_save_IFS 5701 test -z "$as_dir" && as_dir=. 5702 for ac_exec_ext in '' $ac_executable_extensions; do 5703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5704 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5706 break 2 5707 fi 5708done 5709 done 5710IFS=$as_save_IFS 5711 5712fi 5713fi 5714ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5715if test -n "$ac_ct_DUMPBIN"; then 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5717$as_echo "$ac_ct_DUMPBIN" >&6; } 5718else 5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5720$as_echo "no" >&6; } 5721fi 5722 5723 5724 test -n "$ac_ct_DUMPBIN" && break 5725done 5726 5727 if test "x$ac_ct_DUMPBIN" = x; then 5728 DUMPBIN=":" 5729 else 5730 case $cross_compiling:$ac_tool_warned in 5731yes:) 5732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5734ac_tool_warned=yes ;; 5735esac 5736 DUMPBIN=$ac_ct_DUMPBIN 5737 fi 5738fi 5739 5740 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5741 *COFF*) 5742 DUMPBIN="$DUMPBIN -symbols -headers" 5743 ;; 5744 *) 5745 DUMPBIN=: 5746 ;; 5747 esac 5748 fi 5749 5750 if test : != "$DUMPBIN"; then 5751 NM=$DUMPBIN 5752 fi 5753fi 5754test -z "$NM" && NM=nm 5755 5756 5757 5758 5759 5760 5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5762$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5763if ${lt_cv_nm_interface+:} false; then : 5764 $as_echo_n "(cached) " >&6 5765else 5766 lt_cv_nm_interface="BSD nm" 5767 echo "int some_variable = 0;" > conftest.$ac_ext 5768 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5769 (eval "$ac_compile" 2>conftest.err) 5770 cat conftest.err >&5 5771 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5772 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5773 cat conftest.err >&5 5774 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5775 cat conftest.out >&5 5776 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5777 lt_cv_nm_interface="MS dumpbin" 5778 fi 5779 rm -f conftest* 5780fi 5781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5782$as_echo "$lt_cv_nm_interface" >&6; } 5783 5784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5785$as_echo_n "checking whether ln -s works... " >&6; } 5786LN_S=$as_ln_s 5787if test "$LN_S" = "ln -s"; then 5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5789$as_echo "yes" >&6; } 5790else 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5792$as_echo "no, using $LN_S" >&6; } 5793fi 5794 5795# find the maximum length of command line arguments 5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5797$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5798if ${lt_cv_sys_max_cmd_len+:} false; then : 5799 $as_echo_n "(cached) " >&6 5800else 5801 i=0 5802 teststring=ABCD 5803 5804 case $build_os in 5805 msdosdjgpp*) 5806 # On DJGPP, this test can blow up pretty badly due to problems in libc 5807 # (any single argument exceeding 2000 bytes causes a buffer overrun 5808 # during glob expansion). Even if it were fixed, the result of this 5809 # check would be larger than it should be. 5810 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5811 ;; 5812 5813 gnu*) 5814 # Under GNU Hurd, this test is not required because there is 5815 # no limit to the length of command line arguments. 5816 # Libtool will interpret -1 as no limit whatsoever 5817 lt_cv_sys_max_cmd_len=-1; 5818 ;; 5819 5820 cygwin* | mingw* | cegcc*) 5821 # On Win9x/ME, this test blows up -- it succeeds, but takes 5822 # about 5 minutes as the teststring grows exponentially. 5823 # Worse, since 9x/ME are not pre-emptively multitasking, 5824 # you end up with a "frozen" computer, even though with patience 5825 # the test eventually succeeds (with a max line length of 256k). 5826 # Instead, let's just punt: use the minimum linelength reported by 5827 # all of the supported platforms: 8192 (on NT/2K/XP). 5828 lt_cv_sys_max_cmd_len=8192; 5829 ;; 5830 5831 mint*) 5832 # On MiNT this can take a long time and run out of memory. 5833 lt_cv_sys_max_cmd_len=8192; 5834 ;; 5835 5836 amigaos*) 5837 # On AmigaOS with pdksh, this test takes hours, literally. 5838 # So we just punt and use a minimum line length of 8192. 5839 lt_cv_sys_max_cmd_len=8192; 5840 ;; 5841 5842 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5843 # This has been around since 386BSD, at least. Likely further. 5844 if test -x /sbin/sysctl; then 5845 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5846 elif test -x /usr/sbin/sysctl; then 5847 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5848 else 5849 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5850 fi 5851 # And add a safety zone 5852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5853 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5854 ;; 5855 5856 interix*) 5857 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5858 lt_cv_sys_max_cmd_len=196608 5859 ;; 5860 5861 os2*) 5862 # The test takes a long time on OS/2. 5863 lt_cv_sys_max_cmd_len=8192 5864 ;; 5865 5866 osf*) 5867 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5868 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5869 # nice to cause kernel panics so lets avoid the loop below. 5870 # First set a reasonable default. 5871 lt_cv_sys_max_cmd_len=16384 5872 # 5873 if test -x /sbin/sysconfig; then 5874 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5875 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5876 esac 5877 fi 5878 ;; 5879 sco3.2v5*) 5880 lt_cv_sys_max_cmd_len=102400 5881 ;; 5882 sysv5* | sco5v6* | sysv4.2uw2*) 5883 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5884 if test -n "$kargmax"; then 5885 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5886 else 5887 lt_cv_sys_max_cmd_len=32768 5888 fi 5889 ;; 5890 *) 5891 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5892 if test -n "$lt_cv_sys_max_cmd_len" && \ 5893 test undefined != "$lt_cv_sys_max_cmd_len"; then 5894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5896 else 5897 # Make teststring a little bigger before we do anything with it. 5898 # a 1K string should be a reasonable start. 5899 for i in 1 2 3 4 5 6 7 8; do 5900 teststring=$teststring$teststring 5901 done 5902 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5903 # If test is not a shell built-in, we'll probably end up computing a 5904 # maximum length that is only half of the actual maximum length, but 5905 # we can't tell. 5906 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5907 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5908 test 17 != "$i" # 1/2 MB should be enough 5909 do 5910 i=`expr $i + 1` 5911 teststring=$teststring$teststring 5912 done 5913 # Only check the string length outside the loop. 5914 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5915 teststring= 5916 # Add a significant safety factor because C++ compilers can tack on 5917 # massive amounts of additional arguments before passing them to the 5918 # linker. It appears as though 1/2 is a usable value. 5919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5920 fi 5921 ;; 5922 esac 5923 5924fi 5925 5926if test -n "$lt_cv_sys_max_cmd_len"; then 5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5928$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5929else 5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5931$as_echo "none" >&6; } 5932fi 5933max_cmd_len=$lt_cv_sys_max_cmd_len 5934 5935 5936 5937 5938 5939 5940: ${CP="cp -f"} 5941: ${MV="mv -f"} 5942: ${RM="rm -f"} 5943 5944if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5945 lt_unset=unset 5946else 5947 lt_unset=false 5948fi 5949 5950 5951 5952 5953 5954# test EBCDIC or ASCII 5955case `echo X|tr X '\101'` in 5956 A) # ASCII based system 5957 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5958 lt_SP2NL='tr \040 \012' 5959 lt_NL2SP='tr \015\012 \040\040' 5960 ;; 5961 *) # EBCDIC based system 5962 lt_SP2NL='tr \100 \n' 5963 lt_NL2SP='tr \r\n \100\100' 5964 ;; 5965esac 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5976$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5977if ${lt_cv_to_host_file_cmd+:} false; then : 5978 $as_echo_n "(cached) " >&6 5979else 5980 case $host in 5981 *-*-mingw* ) 5982 case $build in 5983 *-*-mingw* ) # actually msys 5984 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5985 ;; 5986 *-*-cygwin* ) 5987 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5988 ;; 5989 * ) # otherwise, assume *nix 5990 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5991 ;; 5992 esac 5993 ;; 5994 *-*-cygwin* ) 5995 case $build in 5996 *-*-mingw* ) # actually msys 5997 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5998 ;; 5999 *-*-cygwin* ) 6000 lt_cv_to_host_file_cmd=func_convert_file_noop 6001 ;; 6002 * ) # otherwise, assume *nix 6003 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6004 ;; 6005 esac 6006 ;; 6007 * ) # unhandled hosts (and "normal" native builds) 6008 lt_cv_to_host_file_cmd=func_convert_file_noop 6009 ;; 6010esac 6011 6012fi 6013 6014to_host_file_cmd=$lt_cv_to_host_file_cmd 6015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6016$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6017 6018 6019 6020 6021 6022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6023$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6024if ${lt_cv_to_tool_file_cmd+:} false; then : 6025 $as_echo_n "(cached) " >&6 6026else 6027 #assume ordinary cross tools, or native build. 6028lt_cv_to_tool_file_cmd=func_convert_file_noop 6029case $host in 6030 *-*-mingw* ) 6031 case $build in 6032 *-*-mingw* ) # actually msys 6033 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6034 ;; 6035 esac 6036 ;; 6037esac 6038 6039fi 6040 6041to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6043$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6044 6045 6046 6047 6048 6049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6050$as_echo_n "checking for $LD option to reload object files... " >&6; } 6051if ${lt_cv_ld_reload_flag+:} false; then : 6052 $as_echo_n "(cached) " >&6 6053else 6054 lt_cv_ld_reload_flag='-r' 6055fi 6056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6057$as_echo "$lt_cv_ld_reload_flag" >&6; } 6058reload_flag=$lt_cv_ld_reload_flag 6059case $reload_flag in 6060"" | " "*) ;; 6061*) reload_flag=" $reload_flag" ;; 6062esac 6063reload_cmds='$LD$reload_flag -o $output$reload_objs' 6064case $host_os in 6065 cygwin* | mingw* | pw32* | cegcc*) 6066 if test yes != "$GCC"; then 6067 reload_cmds=false 6068 fi 6069 ;; 6070 darwin*) 6071 if test yes = "$GCC"; then 6072 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6073 else 6074 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6075 fi 6076 ;; 6077esac 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087if test -n "$ac_tool_prefix"; then 6088 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6089set dummy ${ac_tool_prefix}objdump; ac_word=$2 6090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6091$as_echo_n "checking for $ac_word... " >&6; } 6092if ${ac_cv_prog_OBJDUMP+:} false; then : 6093 $as_echo_n "(cached) " >&6 6094else 6095 if test -n "$OBJDUMP"; then 6096 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6097else 6098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6099for as_dir in $PATH 6100do 6101 IFS=$as_save_IFS 6102 test -z "$as_dir" && as_dir=. 6103 for ac_exec_ext in '' $ac_executable_extensions; do 6104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6105 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6107 break 2 6108 fi 6109done 6110 done 6111IFS=$as_save_IFS 6112 6113fi 6114fi 6115OBJDUMP=$ac_cv_prog_OBJDUMP 6116if test -n "$OBJDUMP"; then 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6118$as_echo "$OBJDUMP" >&6; } 6119else 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6121$as_echo "no" >&6; } 6122fi 6123 6124 6125fi 6126if test -z "$ac_cv_prog_OBJDUMP"; then 6127 ac_ct_OBJDUMP=$OBJDUMP 6128 # Extract the first word of "objdump", so it can be a program name with args. 6129set dummy objdump; ac_word=$2 6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6131$as_echo_n "checking for $ac_word... " >&6; } 6132if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6133 $as_echo_n "(cached) " >&6 6134else 6135 if test -n "$ac_ct_OBJDUMP"; then 6136 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6137else 6138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6139for as_dir in $PATH 6140do 6141 IFS=$as_save_IFS 6142 test -z "$as_dir" && as_dir=. 6143 for ac_exec_ext in '' $ac_executable_extensions; do 6144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6145 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6147 break 2 6148 fi 6149done 6150 done 6151IFS=$as_save_IFS 6152 6153fi 6154fi 6155ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6156if test -n "$ac_ct_OBJDUMP"; then 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6158$as_echo "$ac_ct_OBJDUMP" >&6; } 6159else 6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6161$as_echo "no" >&6; } 6162fi 6163 6164 if test "x$ac_ct_OBJDUMP" = x; then 6165 OBJDUMP="false" 6166 else 6167 case $cross_compiling:$ac_tool_warned in 6168yes:) 6169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6171ac_tool_warned=yes ;; 6172esac 6173 OBJDUMP=$ac_ct_OBJDUMP 6174 fi 6175else 6176 OBJDUMP="$ac_cv_prog_OBJDUMP" 6177fi 6178 6179test -z "$OBJDUMP" && OBJDUMP=objdump 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6190$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6191if ${lt_cv_deplibs_check_method+:} false; then : 6192 $as_echo_n "(cached) " >&6 6193else 6194 lt_cv_file_magic_cmd='$MAGIC_CMD' 6195lt_cv_file_magic_test_file= 6196lt_cv_deplibs_check_method='unknown' 6197# Need to set the preceding variable on all platforms that support 6198# interlibrary dependencies. 6199# 'none' -- dependencies not supported. 6200# 'unknown' -- same as none, but documents that we really don't know. 6201# 'pass_all' -- all dependencies passed with no checks. 6202# 'test_compile' -- check by making test program. 6203# 'file_magic [[regex]]' -- check by looking for files in library path 6204# that responds to the $file_magic_cmd with a given extended regex. 6205# If you have 'file' or equivalent on your system and you're not sure 6206# whether 'pass_all' will *always* work, you probably want this one. 6207 6208case $host_os in 6209aix[4-9]*) 6210 lt_cv_deplibs_check_method=pass_all 6211 ;; 6212 6213beos*) 6214 lt_cv_deplibs_check_method=pass_all 6215 ;; 6216 6217bsdi[45]*) 6218 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6219 lt_cv_file_magic_cmd='/usr/bin/file -L' 6220 lt_cv_file_magic_test_file=/shlib/libc.so 6221 ;; 6222 6223cygwin*) 6224 # func_win32_libid is a shell function defined in ltmain.sh 6225 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6226 lt_cv_file_magic_cmd='func_win32_libid' 6227 ;; 6228 6229mingw* | pw32*) 6230 # Base MSYS/MinGW do not provide the 'file' command needed by 6231 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6232 # unless we find 'file', for example because we are cross-compiling. 6233 if ( file / ) >/dev/null 2>&1; then 6234 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6235 lt_cv_file_magic_cmd='func_win32_libid' 6236 else 6237 # Keep this pattern in sync with the one in func_win32_libid. 6238 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6239 lt_cv_file_magic_cmd='$OBJDUMP -f' 6240 fi 6241 ;; 6242 6243cegcc*) 6244 # use the weaker test based on 'objdump'. See mingw*. 6245 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6246 lt_cv_file_magic_cmd='$OBJDUMP -f' 6247 ;; 6248 6249darwin* | rhapsody*) 6250 lt_cv_deplibs_check_method=pass_all 6251 ;; 6252 6253freebsd* | dragonfly*) 6254 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6255 case $host_cpu in 6256 i*86 ) 6257 # Not sure whether the presence of OpenBSD here was a mistake. 6258 # Let's accept both of them until this is cleared up. 6259 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6260 lt_cv_file_magic_cmd=/usr/bin/file 6261 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6262 ;; 6263 esac 6264 else 6265 lt_cv_deplibs_check_method=pass_all 6266 fi 6267 ;; 6268 6269haiku*) 6270 lt_cv_deplibs_check_method=pass_all 6271 ;; 6272 6273hpux10.20* | hpux11*) 6274 lt_cv_file_magic_cmd=/usr/bin/file 6275 case $host_cpu in 6276 ia64*) 6277 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6278 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6279 ;; 6280 hppa*64*) 6281 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]' 6282 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6283 ;; 6284 *) 6285 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6286 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6287 ;; 6288 esac 6289 ;; 6290 6291interix[3-9]*) 6292 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6293 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6294 ;; 6295 6296irix5* | irix6* | nonstopux*) 6297 case $LD in 6298 *-32|*"-32 ") libmagic=32-bit;; 6299 *-n32|*"-n32 ") libmagic=N32;; 6300 *-64|*"-64 ") libmagic=64-bit;; 6301 *) libmagic=never-match;; 6302 esac 6303 lt_cv_deplibs_check_method=pass_all 6304 ;; 6305 6306# This must be glibc/ELF. 6307linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6308 lt_cv_deplibs_check_method=pass_all 6309 ;; 6310 6311netbsd*) 6312 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6313 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6314 else 6315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6316 fi 6317 ;; 6318 6319newos6*) 6320 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6321 lt_cv_file_magic_cmd=/usr/bin/file 6322 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6323 ;; 6324 6325*nto* | *qnx*) 6326 lt_cv_deplibs_check_method=pass_all 6327 ;; 6328 6329openbsd* | bitrig*) 6330 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6331 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6332 else 6333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6334 fi 6335 ;; 6336 6337osf3* | osf4* | osf5*) 6338 lt_cv_deplibs_check_method=pass_all 6339 ;; 6340 6341rdos*) 6342 lt_cv_deplibs_check_method=pass_all 6343 ;; 6344 6345solaris*) 6346 lt_cv_deplibs_check_method=pass_all 6347 ;; 6348 6349sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6350 lt_cv_deplibs_check_method=pass_all 6351 ;; 6352 6353sysv4 | sysv4.3*) 6354 case $host_vendor in 6355 motorola) 6356 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]' 6357 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6358 ;; 6359 ncr) 6360 lt_cv_deplibs_check_method=pass_all 6361 ;; 6362 sequent) 6363 lt_cv_file_magic_cmd='/bin/file' 6364 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6365 ;; 6366 sni) 6367 lt_cv_file_magic_cmd='/bin/file' 6368 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6369 lt_cv_file_magic_test_file=/lib/libc.so 6370 ;; 6371 siemens) 6372 lt_cv_deplibs_check_method=pass_all 6373 ;; 6374 pc) 6375 lt_cv_deplibs_check_method=pass_all 6376 ;; 6377 esac 6378 ;; 6379 6380tpf*) 6381 lt_cv_deplibs_check_method=pass_all 6382 ;; 6383os2*) 6384 lt_cv_deplibs_check_method=pass_all 6385 ;; 6386esac 6387 6388fi 6389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6390$as_echo "$lt_cv_deplibs_check_method" >&6; } 6391 6392file_magic_glob= 6393want_nocaseglob=no 6394if test "$build" = "$host"; then 6395 case $host_os in 6396 mingw* | pw32*) 6397 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6398 want_nocaseglob=yes 6399 else 6400 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6401 fi 6402 ;; 6403 esac 6404fi 6405 6406file_magic_cmd=$lt_cv_file_magic_cmd 6407deplibs_check_method=$lt_cv_deplibs_check_method 6408test -z "$deplibs_check_method" && deplibs_check_method=unknown 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431if test -n "$ac_tool_prefix"; then 6432 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6433set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6435$as_echo_n "checking for $ac_word... " >&6; } 6436if ${ac_cv_prog_DLLTOOL+:} false; then : 6437 $as_echo_n "(cached) " >&6 6438else 6439 if test -n "$DLLTOOL"; then 6440 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6441else 6442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6443for as_dir in $PATH 6444do 6445 IFS=$as_save_IFS 6446 test -z "$as_dir" && as_dir=. 6447 for ac_exec_ext in '' $ac_executable_extensions; do 6448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6449 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6451 break 2 6452 fi 6453done 6454 done 6455IFS=$as_save_IFS 6456 6457fi 6458fi 6459DLLTOOL=$ac_cv_prog_DLLTOOL 6460if test -n "$DLLTOOL"; then 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6462$as_echo "$DLLTOOL" >&6; } 6463else 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6465$as_echo "no" >&6; } 6466fi 6467 6468 6469fi 6470if test -z "$ac_cv_prog_DLLTOOL"; then 6471 ac_ct_DLLTOOL=$DLLTOOL 6472 # Extract the first word of "dlltool", so it can be a program name with args. 6473set dummy dlltool; ac_word=$2 6474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6475$as_echo_n "checking for $ac_word... " >&6; } 6476if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6477 $as_echo_n "(cached) " >&6 6478else 6479 if test -n "$ac_ct_DLLTOOL"; then 6480 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6481else 6482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6483for as_dir in $PATH 6484do 6485 IFS=$as_save_IFS 6486 test -z "$as_dir" && as_dir=. 6487 for ac_exec_ext in '' $ac_executable_extensions; do 6488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6489 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6491 break 2 6492 fi 6493done 6494 done 6495IFS=$as_save_IFS 6496 6497fi 6498fi 6499ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6500if test -n "$ac_ct_DLLTOOL"; then 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6502$as_echo "$ac_ct_DLLTOOL" >&6; } 6503else 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6505$as_echo "no" >&6; } 6506fi 6507 6508 if test "x$ac_ct_DLLTOOL" = x; then 6509 DLLTOOL="false" 6510 else 6511 case $cross_compiling:$ac_tool_warned in 6512yes:) 6513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6515ac_tool_warned=yes ;; 6516esac 6517 DLLTOOL=$ac_ct_DLLTOOL 6518 fi 6519else 6520 DLLTOOL="$ac_cv_prog_DLLTOOL" 6521fi 6522 6523test -z "$DLLTOOL" && DLLTOOL=dlltool 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6535$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6536if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6537 $as_echo_n "(cached) " >&6 6538else 6539 lt_cv_sharedlib_from_linklib_cmd='unknown' 6540 6541case $host_os in 6542cygwin* | mingw* | pw32* | cegcc*) 6543 # two different shell functions defined in ltmain.sh; 6544 # decide which one to use based on capabilities of $DLLTOOL 6545 case `$DLLTOOL --help 2>&1` in 6546 *--identify-strict*) 6547 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6548 ;; 6549 *) 6550 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6551 ;; 6552 esac 6553 ;; 6554*) 6555 # fallback: assume linklib IS sharedlib 6556 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6557 ;; 6558esac 6559 6560fi 6561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6562$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6563sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6564test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6565 6566 6567 6568 6569 6570 6571 6572 6573if test -n "$ac_tool_prefix"; then 6574 for ac_prog in ar 6575 do 6576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6577set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6579$as_echo_n "checking for $ac_word... " >&6; } 6580if ${ac_cv_prog_AR+:} false; then : 6581 $as_echo_n "(cached) " >&6 6582else 6583 if test -n "$AR"; then 6584 ac_cv_prog_AR="$AR" # Let the user override the test. 6585else 6586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6587for as_dir in $PATH 6588do 6589 IFS=$as_save_IFS 6590 test -z "$as_dir" && as_dir=. 6591 for ac_exec_ext in '' $ac_executable_extensions; do 6592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6593 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6595 break 2 6596 fi 6597done 6598 done 6599IFS=$as_save_IFS 6600 6601fi 6602fi 6603AR=$ac_cv_prog_AR 6604if test -n "$AR"; then 6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6606$as_echo "$AR" >&6; } 6607else 6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6609$as_echo "no" >&6; } 6610fi 6611 6612 6613 test -n "$AR" && break 6614 done 6615fi 6616if test -z "$AR"; then 6617 ac_ct_AR=$AR 6618 for ac_prog in ar 6619do 6620 # Extract the first word of "$ac_prog", so it can be a program name with args. 6621set dummy $ac_prog; ac_word=$2 6622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6623$as_echo_n "checking for $ac_word... " >&6; } 6624if ${ac_cv_prog_ac_ct_AR+:} false; then : 6625 $as_echo_n "(cached) " >&6 6626else 6627 if test -n "$ac_ct_AR"; then 6628 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6629else 6630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6631for as_dir in $PATH 6632do 6633 IFS=$as_save_IFS 6634 test -z "$as_dir" && as_dir=. 6635 for ac_exec_ext in '' $ac_executable_extensions; do 6636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6637 ac_cv_prog_ac_ct_AR="$ac_prog" 6638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6639 break 2 6640 fi 6641done 6642 done 6643IFS=$as_save_IFS 6644 6645fi 6646fi 6647ac_ct_AR=$ac_cv_prog_ac_ct_AR 6648if test -n "$ac_ct_AR"; then 6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6650$as_echo "$ac_ct_AR" >&6; } 6651else 6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6653$as_echo "no" >&6; } 6654fi 6655 6656 6657 test -n "$ac_ct_AR" && break 6658done 6659 6660 if test "x$ac_ct_AR" = x; then 6661 AR="false" 6662 else 6663 case $cross_compiling:$ac_tool_warned in 6664yes:) 6665{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6666$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6667ac_tool_warned=yes ;; 6668esac 6669 AR=$ac_ct_AR 6670 fi 6671fi 6672 6673: ${AR=ar} 6674: ${AR_FLAGS=cru} 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6687$as_echo_n "checking for archiver @FILE support... " >&6; } 6688if ${lt_cv_ar_at_file+:} false; then : 6689 $as_echo_n "(cached) " >&6 6690else 6691 lt_cv_ar_at_file=no 6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6693/* end confdefs.h. */ 6694 6695int 6696main () 6697{ 6698 6699 ; 6700 return 0; 6701} 6702_ACEOF 6703if ac_fn_c_try_compile "$LINENO"; then : 6704 echo conftest.$ac_objext > conftest.lst 6705 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6707 (eval $lt_ar_try) 2>&5 6708 ac_status=$? 6709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6710 test $ac_status = 0; } 6711 if test 0 -eq "$ac_status"; then 6712 # Ensure the archiver fails upon bogus file names. 6713 rm -f conftest.$ac_objext libconftest.a 6714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6715 (eval $lt_ar_try) 2>&5 6716 ac_status=$? 6717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6718 test $ac_status = 0; } 6719 if test 0 -ne "$ac_status"; then 6720 lt_cv_ar_at_file=@ 6721 fi 6722 fi 6723 rm -f conftest.* libconftest.a 6724 6725fi 6726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6727 6728fi 6729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6730$as_echo "$lt_cv_ar_at_file" >&6; } 6731 6732if test no = "$lt_cv_ar_at_file"; then 6733 archiver_list_spec= 6734else 6735 archiver_list_spec=$lt_cv_ar_at_file 6736fi 6737 6738 6739 6740 6741 6742 6743 6744if test -n "$ac_tool_prefix"; then 6745 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6746set dummy ${ac_tool_prefix}strip; ac_word=$2 6747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6748$as_echo_n "checking for $ac_word... " >&6; } 6749if ${ac_cv_prog_STRIP+:} false; then : 6750 $as_echo_n "(cached) " >&6 6751else 6752 if test -n "$STRIP"; then 6753 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6754else 6755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6756for as_dir in $PATH 6757do 6758 IFS=$as_save_IFS 6759 test -z "$as_dir" && as_dir=. 6760 for ac_exec_ext in '' $ac_executable_extensions; do 6761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6762 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6764 break 2 6765 fi 6766done 6767 done 6768IFS=$as_save_IFS 6769 6770fi 6771fi 6772STRIP=$ac_cv_prog_STRIP 6773if test -n "$STRIP"; then 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6775$as_echo "$STRIP" >&6; } 6776else 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6778$as_echo "no" >&6; } 6779fi 6780 6781 6782fi 6783if test -z "$ac_cv_prog_STRIP"; then 6784 ac_ct_STRIP=$STRIP 6785 # Extract the first word of "strip", so it can be a program name with args. 6786set dummy strip; ac_word=$2 6787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6788$as_echo_n "checking for $ac_word... " >&6; } 6789if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6790 $as_echo_n "(cached) " >&6 6791else 6792 if test -n "$ac_ct_STRIP"; then 6793 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6794else 6795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6796for as_dir in $PATH 6797do 6798 IFS=$as_save_IFS 6799 test -z "$as_dir" && as_dir=. 6800 for ac_exec_ext in '' $ac_executable_extensions; do 6801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6802 ac_cv_prog_ac_ct_STRIP="strip" 6803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6804 break 2 6805 fi 6806done 6807 done 6808IFS=$as_save_IFS 6809 6810fi 6811fi 6812ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6813if test -n "$ac_ct_STRIP"; then 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6815$as_echo "$ac_ct_STRIP" >&6; } 6816else 6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6818$as_echo "no" >&6; } 6819fi 6820 6821 if test "x$ac_ct_STRIP" = x; then 6822 STRIP=":" 6823 else 6824 case $cross_compiling:$ac_tool_warned in 6825yes:) 6826{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6827$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6828ac_tool_warned=yes ;; 6829esac 6830 STRIP=$ac_ct_STRIP 6831 fi 6832else 6833 STRIP="$ac_cv_prog_STRIP" 6834fi 6835 6836test -z "$STRIP" && STRIP=: 6837 6838 6839 6840 6841 6842 6843if test -n "$ac_tool_prefix"; then 6844 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6845set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6847$as_echo_n "checking for $ac_word... " >&6; } 6848if ${ac_cv_prog_RANLIB+:} false; then : 6849 $as_echo_n "(cached) " >&6 6850else 6851 if test -n "$RANLIB"; then 6852 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6853else 6854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6855for as_dir in $PATH 6856do 6857 IFS=$as_save_IFS 6858 test -z "$as_dir" && as_dir=. 6859 for ac_exec_ext in '' $ac_executable_extensions; do 6860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6861 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6863 break 2 6864 fi 6865done 6866 done 6867IFS=$as_save_IFS 6868 6869fi 6870fi 6871RANLIB=$ac_cv_prog_RANLIB 6872if test -n "$RANLIB"; then 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6874$as_echo "$RANLIB" >&6; } 6875else 6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6877$as_echo "no" >&6; } 6878fi 6879 6880 6881fi 6882if test -z "$ac_cv_prog_RANLIB"; then 6883 ac_ct_RANLIB=$RANLIB 6884 # Extract the first word of "ranlib", so it can be a program name with args. 6885set dummy ranlib; ac_word=$2 6886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6887$as_echo_n "checking for $ac_word... " >&6; } 6888if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6889 $as_echo_n "(cached) " >&6 6890else 6891 if test -n "$ac_ct_RANLIB"; then 6892 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6893else 6894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6895for as_dir in $PATH 6896do 6897 IFS=$as_save_IFS 6898 test -z "$as_dir" && as_dir=. 6899 for ac_exec_ext in '' $ac_executable_extensions; do 6900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6901 ac_cv_prog_ac_ct_RANLIB="ranlib" 6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6903 break 2 6904 fi 6905done 6906 done 6907IFS=$as_save_IFS 6908 6909fi 6910fi 6911ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6912if test -n "$ac_ct_RANLIB"; then 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6914$as_echo "$ac_ct_RANLIB" >&6; } 6915else 6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6917$as_echo "no" >&6; } 6918fi 6919 6920 if test "x$ac_ct_RANLIB" = x; then 6921 RANLIB=":" 6922 else 6923 case $cross_compiling:$ac_tool_warned in 6924yes:) 6925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6927ac_tool_warned=yes ;; 6928esac 6929 RANLIB=$ac_ct_RANLIB 6930 fi 6931else 6932 RANLIB="$ac_cv_prog_RANLIB" 6933fi 6934 6935test -z "$RANLIB" && RANLIB=: 6936 6937 6938 6939 6940 6941 6942# Determine commands to create old-style static archives. 6943old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6944old_postinstall_cmds='chmod 644 $oldlib' 6945old_postuninstall_cmds= 6946 6947if test -n "$RANLIB"; then 6948 case $host_os in 6949 bitrig* | openbsd*) 6950 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6951 ;; 6952 *) 6953 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6954 ;; 6955 esac 6956 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6957fi 6958 6959case $host_os in 6960 darwin*) 6961 lock_old_archive_extraction=yes ;; 6962 *) 6963 lock_old_archive_extraction=no ;; 6964esac 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004# If no C compiler was specified, use CC. 7005LTCC=${LTCC-"$CC"} 7006 7007# If no C compiler flags were specified, use CFLAGS. 7008LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7009 7010# Allow CC to be a program name with arguments. 7011compiler=$CC 7012 7013 7014# Check for command to grab the raw symbol name followed by C symbol from nm. 7015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7016$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7017if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7018 $as_echo_n "(cached) " >&6 7019else 7020 7021# These are sane defaults that work on at least a few old systems. 7022# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7023 7024# Character class describing NM global symbol codes. 7025symcode='[BCDEGRST]' 7026 7027# Regexp to match symbols that can be accessed directly from C. 7028sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7029 7030# Define system-specific variables. 7031case $host_os in 7032aix*) 7033 symcode='[BCDT]' 7034 ;; 7035cygwin* | mingw* | pw32* | cegcc*) 7036 symcode='[ABCDGISTW]' 7037 ;; 7038hpux*) 7039 if test ia64 = "$host_cpu"; then 7040 symcode='[ABCDEGRST]' 7041 fi 7042 ;; 7043irix* | nonstopux*) 7044 symcode='[BCDEGRST]' 7045 ;; 7046osf*) 7047 symcode='[BCDEGQRST]' 7048 ;; 7049solaris*) 7050 symcode='[BDRT]' 7051 ;; 7052sco3.2v5*) 7053 symcode='[DT]' 7054 ;; 7055sysv4.2uw2*) 7056 symcode='[DT]' 7057 ;; 7058sysv5* | sco5v6* | unixware* | OpenUNIX*) 7059 symcode='[ABDT]' 7060 ;; 7061sysv4) 7062 symcode='[DFNSTU]' 7063 ;; 7064esac 7065 7066# If we're using GNU nm, then use its standard symbol codes. 7067case `$NM -V 2>&1` in 7068*GNU* | *'with BFD'*) 7069 symcode='[ABCDGIRSTW]' ;; 7070esac 7071 7072if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7073 # Gets list of data symbols to import. 7074 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7075 # Adjust the below global symbol transforms to fixup imported variables. 7076 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7077 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7078 lt_c_name_lib_hook="\ 7079 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7080 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7081else 7082 # Disable hooks by default. 7083 lt_cv_sys_global_symbol_to_import= 7084 lt_cdecl_hook= 7085 lt_c_name_hook= 7086 lt_c_name_lib_hook= 7087fi 7088 7089# Transform an extracted symbol line into a proper C declaration. 7090# Some systems (esp. on ia64) link data and code symbols differently, 7091# so use this general approach. 7092lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7093$lt_cdecl_hook\ 7094" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7095" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7096 7097# Transform an extracted symbol line into symbol name and symbol address 7098lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7099$lt_c_name_hook\ 7100" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7101" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7102 7103# Transform an extracted symbol line into symbol name with lib prefix and 7104# symbol address. 7105lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7106$lt_c_name_lib_hook\ 7107" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7108" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7109" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7110 7111# Handle CRLF in mingw tool chain 7112opt_cr= 7113case $build_os in 7114mingw*) 7115 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7116 ;; 7117esac 7118 7119# Try without a prefix underscore, then with it. 7120for ac_symprfx in "" "_"; do 7121 7122 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7123 symxfrm="\\1 $ac_symprfx\\2 \\2" 7124 7125 # Write the raw and C identifiers. 7126 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7127 # Fake it for dumpbin and say T for any non-static function, 7128 # D for any global variable and I for any imported variable. 7129 # Also find C++ and __fastcall symbols from MSVC++, 7130 # which start with @ or ?. 7131 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7132" {last_section=section; section=\$ 3};"\ 7133" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7134" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7135" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7136" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7137" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7138" \$ 0!~/External *\|/{next};"\ 7139" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7140" {if(hide[section]) next};"\ 7141" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7142" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7143" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7144" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7145" ' prfx=^$ac_symprfx" 7146 else 7147 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7148 fi 7149 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7150 7151 # Check to see that the pipe works correctly. 7152 pipe_works=no 7153 7154 rm -f conftest* 7155 cat > conftest.$ac_ext <<_LT_EOF 7156#ifdef __cplusplus 7157extern "C" { 7158#endif 7159char nm_test_var; 7160void nm_test_func(void); 7161void nm_test_func(void){} 7162#ifdef __cplusplus 7163} 7164#endif 7165int main(){nm_test_var='a';nm_test_func();return(0);} 7166_LT_EOF 7167 7168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7169 (eval $ac_compile) 2>&5 7170 ac_status=$? 7171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7172 test $ac_status = 0; }; then 7173 # Now try to grab the symbols. 7174 nlist=conftest.nm 7175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7176 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7177 ac_status=$? 7178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7179 test $ac_status = 0; } && test -s "$nlist"; then 7180 # Try sorting and uniquifying the output. 7181 if sort "$nlist" | uniq > "$nlist"T; then 7182 mv -f "$nlist"T "$nlist" 7183 else 7184 rm -f "$nlist"T 7185 fi 7186 7187 # Make sure that we snagged all the symbols we need. 7188 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7189 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7190 cat <<_LT_EOF > conftest.$ac_ext 7191/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7192#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7193/* DATA imports from DLLs on WIN32 can't be const, because runtime 7194 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7195# define LT_DLSYM_CONST 7196#elif defined __osf__ 7197/* This system does not cope well with relocations in const data. */ 7198# define LT_DLSYM_CONST 7199#else 7200# define LT_DLSYM_CONST const 7201#endif 7202 7203#ifdef __cplusplus 7204extern "C" { 7205#endif 7206 7207_LT_EOF 7208 # Now generate the symbol file. 7209 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7210 7211 cat <<_LT_EOF >> conftest.$ac_ext 7212 7213/* The mapping between symbol names and symbols. */ 7214LT_DLSYM_CONST struct { 7215 const char *name; 7216 void *address; 7217} 7218lt__PROGRAM__LTX_preloaded_symbols[] = 7219{ 7220 { "@PROGRAM@", (void *) 0 }, 7221_LT_EOF 7222 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7223 cat <<\_LT_EOF >> conftest.$ac_ext 7224 {0, (void *) 0} 7225}; 7226 7227/* This works around a problem in FreeBSD linker */ 7228#ifdef FREEBSD_WORKAROUND 7229static const void *lt_preloaded_setup() { 7230 return lt__PROGRAM__LTX_preloaded_symbols; 7231} 7232#endif 7233 7234#ifdef __cplusplus 7235} 7236#endif 7237_LT_EOF 7238 # Now try linking the two files. 7239 mv conftest.$ac_objext conftstm.$ac_objext 7240 lt_globsym_save_LIBS=$LIBS 7241 lt_globsym_save_CFLAGS=$CFLAGS 7242 LIBS=conftstm.$ac_objext 7243 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7245 (eval $ac_link) 2>&5 7246 ac_status=$? 7247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7248 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7249 pipe_works=yes 7250 fi 7251 LIBS=$lt_globsym_save_LIBS 7252 CFLAGS=$lt_globsym_save_CFLAGS 7253 else 7254 echo "cannot find nm_test_func in $nlist" >&5 7255 fi 7256 else 7257 echo "cannot find nm_test_var in $nlist" >&5 7258 fi 7259 else 7260 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7261 fi 7262 else 7263 echo "$progname: failed program was:" >&5 7264 cat conftest.$ac_ext >&5 7265 fi 7266 rm -rf conftest* conftst* 7267 7268 # Do not use the global_symbol_pipe unless it works. 7269 if test yes = "$pipe_works"; then 7270 break 7271 else 7272 lt_cv_sys_global_symbol_pipe= 7273 fi 7274done 7275 7276fi 7277 7278if test -z "$lt_cv_sys_global_symbol_pipe"; then 7279 lt_cv_sys_global_symbol_to_cdecl= 7280fi 7281if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7283$as_echo "failed" >&6; } 7284else 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7286$as_echo "ok" >&6; } 7287fi 7288 7289# Response file support. 7290if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7291 nm_file_list_spec='@' 7292elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7293 nm_file_list_spec='@' 7294fi 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7333$as_echo_n "checking for sysroot... " >&6; } 7334 7335# Check whether --with-sysroot was given. 7336if test "${with_sysroot+set}" = set; then : 7337 withval=$with_sysroot; 7338else 7339 with_sysroot=no 7340fi 7341 7342 7343lt_sysroot= 7344case $with_sysroot in #( 7345 yes) 7346 if test yes = "$GCC"; then 7347 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7348 fi 7349 ;; #( 7350 /*) 7351 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7352 ;; #( 7353 no|'') 7354 ;; #( 7355 *) 7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7357$as_echo "$with_sysroot" >&6; } 7358 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7359 ;; 7360esac 7361 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7363$as_echo "${lt_sysroot:-no}" >&6; } 7364 7365 7366 7367 7368 7369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7370$as_echo_n "checking for a working dd... " >&6; } 7371if ${ac_cv_path_lt_DD+:} false; then : 7372 $as_echo_n "(cached) " >&6 7373else 7374 printf 0123456789abcdef0123456789abcdef >conftest.i 7375cat conftest.i conftest.i >conftest2.i 7376: ${lt_DD:=$DD} 7377if test -z "$lt_DD"; then 7378 ac_path_lt_DD_found=false 7379 # Loop through the user's path and test for each of PROGNAME-LIST 7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7381for as_dir in $PATH 7382do 7383 IFS=$as_save_IFS 7384 test -z "$as_dir" && as_dir=. 7385 for ac_prog in dd; do 7386 for ac_exec_ext in '' $ac_executable_extensions; do 7387 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7388 as_fn_executable_p "$ac_path_lt_DD" || continue 7389if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7390 cmp -s conftest.i conftest.out \ 7391 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7392fi 7393 $ac_path_lt_DD_found && break 3 7394 done 7395 done 7396 done 7397IFS=$as_save_IFS 7398 if test -z "$ac_cv_path_lt_DD"; then 7399 : 7400 fi 7401else 7402 ac_cv_path_lt_DD=$lt_DD 7403fi 7404 7405rm -f conftest.i conftest2.i conftest.out 7406fi 7407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7408$as_echo "$ac_cv_path_lt_DD" >&6; } 7409 7410 7411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7412$as_echo_n "checking how to truncate binary pipes... " >&6; } 7413if ${lt_cv_truncate_bin+:} false; then : 7414 $as_echo_n "(cached) " >&6 7415else 7416 printf 0123456789abcdef0123456789abcdef >conftest.i 7417cat conftest.i conftest.i >conftest2.i 7418lt_cv_truncate_bin= 7419if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7420 cmp -s conftest.i conftest.out \ 7421 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7422fi 7423rm -f conftest.i conftest2.i conftest.out 7424test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7425fi 7426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7427$as_echo "$lt_cv_truncate_bin" >&6; } 7428 7429 7430 7431 7432 7433 7434 7435# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7436func_cc_basename () 7437{ 7438 for cc_temp in $*""; do 7439 case $cc_temp in 7440 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7441 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7442 \-*) ;; 7443 *) break;; 7444 esac 7445 done 7446 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7447} 7448 7449# Check whether --enable-libtool-lock was given. 7450if test "${enable_libtool_lock+set}" = set; then : 7451 enableval=$enable_libtool_lock; 7452fi 7453 7454test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7455 7456# Some flags need to be propagated to the compiler or linker for good 7457# libtool support. 7458case $host in 7459ia64-*-hpux*) 7460 # Find out what ABI is being produced by ac_compile, and set mode 7461 # options accordingly. 7462 echo 'int i;' > conftest.$ac_ext 7463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7464 (eval $ac_compile) 2>&5 7465 ac_status=$? 7466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7467 test $ac_status = 0; }; then 7468 case `/usr/bin/file conftest.$ac_objext` in 7469 *ELF-32*) 7470 HPUX_IA64_MODE=32 7471 ;; 7472 *ELF-64*) 7473 HPUX_IA64_MODE=64 7474 ;; 7475 esac 7476 fi 7477 rm -rf conftest* 7478 ;; 7479*-*-irix6*) 7480 # Find out what ABI is being produced by ac_compile, and set linker 7481 # options accordingly. 7482 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7484 (eval $ac_compile) 2>&5 7485 ac_status=$? 7486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7487 test $ac_status = 0; }; then 7488 if test yes = "$lt_cv_prog_gnu_ld"; then 7489 case `/usr/bin/file conftest.$ac_objext` in 7490 *32-bit*) 7491 LD="${LD-ld} -melf32bsmip" 7492 ;; 7493 *N32*) 7494 LD="${LD-ld} -melf32bmipn32" 7495 ;; 7496 *64-bit*) 7497 LD="${LD-ld} -melf64bmip" 7498 ;; 7499 esac 7500 else 7501 case `/usr/bin/file conftest.$ac_objext` in 7502 *32-bit*) 7503 LD="${LD-ld} -32" 7504 ;; 7505 *N32*) 7506 LD="${LD-ld} -n32" 7507 ;; 7508 *64-bit*) 7509 LD="${LD-ld} -64" 7510 ;; 7511 esac 7512 fi 7513 fi 7514 rm -rf conftest* 7515 ;; 7516 7517mips64*-*linux*) 7518 # Find out what ABI is being produced by ac_compile, and set linker 7519 # options accordingly. 7520 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7522 (eval $ac_compile) 2>&5 7523 ac_status=$? 7524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7525 test $ac_status = 0; }; then 7526 emul=elf 7527 case `/usr/bin/file conftest.$ac_objext` in 7528 *32-bit*) 7529 emul="${emul}32" 7530 ;; 7531 *64-bit*) 7532 emul="${emul}64" 7533 ;; 7534 esac 7535 case `/usr/bin/file conftest.$ac_objext` in 7536 *MSB*) 7537 emul="${emul}btsmip" 7538 ;; 7539 *LSB*) 7540 emul="${emul}ltsmip" 7541 ;; 7542 esac 7543 case `/usr/bin/file conftest.$ac_objext` in 7544 *N32*) 7545 emul="${emul}n32" 7546 ;; 7547 esac 7548 LD="${LD-ld} -m $emul" 7549 fi 7550 rm -rf conftest* 7551 ;; 7552 7553x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7554s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7555 # Find out what ABI is being produced by ac_compile, and set linker 7556 # options accordingly. Note that the listed cases only cover the 7557 # situations where additional linker options are needed (such as when 7558 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7559 # vice versa); the common cases where no linker options are needed do 7560 # not appear in the list. 7561 echo 'int i;' > conftest.$ac_ext 7562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7563 (eval $ac_compile) 2>&5 7564 ac_status=$? 7565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7566 test $ac_status = 0; }; then 7567 case `/usr/bin/file conftest.o` in 7568 *32-bit*) 7569 case $host in 7570 x86_64-*kfreebsd*-gnu) 7571 LD="${LD-ld} -m elf_i386_fbsd" 7572 ;; 7573 x86_64-*linux*) 7574 case `/usr/bin/file conftest.o` in 7575 *x86-64*) 7576 LD="${LD-ld} -m elf32_x86_64" 7577 ;; 7578 *) 7579 LD="${LD-ld} -m elf_i386" 7580 ;; 7581 esac 7582 ;; 7583 powerpc64le-*linux*) 7584 LD="${LD-ld} -m elf32lppclinux" 7585 ;; 7586 powerpc64-*linux*) 7587 LD="${LD-ld} -m elf32ppclinux" 7588 ;; 7589 s390x-*linux*) 7590 LD="${LD-ld} -m elf_s390" 7591 ;; 7592 sparc64-*linux*) 7593 LD="${LD-ld} -m elf32_sparc" 7594 ;; 7595 esac 7596 ;; 7597 *64-bit*) 7598 case $host in 7599 x86_64-*kfreebsd*-gnu) 7600 LD="${LD-ld} -m elf_x86_64_fbsd" 7601 ;; 7602 x86_64-*linux*) 7603 LD="${LD-ld} -m elf_x86_64" 7604 ;; 7605 powerpcle-*linux*) 7606 LD="${LD-ld} -m elf64lppc" 7607 ;; 7608 powerpc-*linux*) 7609 LD="${LD-ld} -m elf64ppc" 7610 ;; 7611 s390*-*linux*|s390*-*tpf*) 7612 LD="${LD-ld} -m elf64_s390" 7613 ;; 7614 sparc*-*linux*) 7615 LD="${LD-ld} -m elf64_sparc" 7616 ;; 7617 esac 7618 ;; 7619 esac 7620 fi 7621 rm -rf conftest* 7622 ;; 7623 7624*-*-sco3.2v5*) 7625 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7626 SAVE_CFLAGS=$CFLAGS 7627 CFLAGS="$CFLAGS -belf" 7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7629$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7630if ${lt_cv_cc_needs_belf+:} false; then : 7631 $as_echo_n "(cached) " >&6 7632else 7633 ac_ext=c 7634ac_cpp='$CPP $CPPFLAGS' 7635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7637ac_compiler_gnu=$ac_cv_c_compiler_gnu 7638 7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7640/* end confdefs.h. */ 7641 7642int 7643main () 7644{ 7645 7646 ; 7647 return 0; 7648} 7649_ACEOF 7650if ac_fn_c_try_link "$LINENO"; then : 7651 lt_cv_cc_needs_belf=yes 7652else 7653 lt_cv_cc_needs_belf=no 7654fi 7655rm -f core conftest.err conftest.$ac_objext \ 7656 conftest$ac_exeext conftest.$ac_ext 7657 ac_ext=c 7658ac_cpp='$CPP $CPPFLAGS' 7659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7661ac_compiler_gnu=$ac_cv_c_compiler_gnu 7662 7663fi 7664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7665$as_echo "$lt_cv_cc_needs_belf" >&6; } 7666 if test yes != "$lt_cv_cc_needs_belf"; then 7667 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7668 CFLAGS=$SAVE_CFLAGS 7669 fi 7670 ;; 7671*-*solaris*) 7672 # Find out what ABI is being produced by ac_compile, and set linker 7673 # options accordingly. 7674 echo 'int i;' > conftest.$ac_ext 7675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7676 (eval $ac_compile) 2>&5 7677 ac_status=$? 7678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7679 test $ac_status = 0; }; then 7680 case `/usr/bin/file conftest.o` in 7681 *64-bit*) 7682 case $lt_cv_prog_gnu_ld in 7683 yes*) 7684 case $host in 7685 i?86-*-solaris*|x86_64-*-solaris*) 7686 LD="${LD-ld} -m elf_x86_64" 7687 ;; 7688 sparc*-*-solaris*) 7689 LD="${LD-ld} -m elf64_sparc" 7690 ;; 7691 esac 7692 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7693 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7694 LD=${LD-ld}_sol2 7695 fi 7696 ;; 7697 *) 7698 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7699 LD="${LD-ld} -64" 7700 fi 7701 ;; 7702 esac 7703 ;; 7704 esac 7705 fi 7706 rm -rf conftest* 7707 ;; 7708esac 7709 7710need_locks=$enable_libtool_lock 7711 7712if test -n "$ac_tool_prefix"; then 7713 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7714set dummy ${ac_tool_prefix}mt; ac_word=$2 7715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7716$as_echo_n "checking for $ac_word... " >&6; } 7717if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7718 $as_echo_n "(cached) " >&6 7719else 7720 if test -n "$MANIFEST_TOOL"; then 7721 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7722else 7723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7724for as_dir in $PATH 7725do 7726 IFS=$as_save_IFS 7727 test -z "$as_dir" && as_dir=. 7728 for ac_exec_ext in '' $ac_executable_extensions; do 7729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7730 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7732 break 2 7733 fi 7734done 7735 done 7736IFS=$as_save_IFS 7737 7738fi 7739fi 7740MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7741if test -n "$MANIFEST_TOOL"; then 7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7743$as_echo "$MANIFEST_TOOL" >&6; } 7744else 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7746$as_echo "no" >&6; } 7747fi 7748 7749 7750fi 7751if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7752 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7753 # Extract the first word of "mt", so it can be a program name with args. 7754set dummy mt; ac_word=$2 7755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7756$as_echo_n "checking for $ac_word... " >&6; } 7757if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7758 $as_echo_n "(cached) " >&6 7759else 7760 if test -n "$ac_ct_MANIFEST_TOOL"; then 7761 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7762else 7763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7764for as_dir in $PATH 7765do 7766 IFS=$as_save_IFS 7767 test -z "$as_dir" && as_dir=. 7768 for ac_exec_ext in '' $ac_executable_extensions; do 7769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7770 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7772 break 2 7773 fi 7774done 7775 done 7776IFS=$as_save_IFS 7777 7778fi 7779fi 7780ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7781if test -n "$ac_ct_MANIFEST_TOOL"; then 7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7783$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7784else 7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7786$as_echo "no" >&6; } 7787fi 7788 7789 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7790 MANIFEST_TOOL=":" 7791 else 7792 case $cross_compiling:$ac_tool_warned in 7793yes:) 7794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7796ac_tool_warned=yes ;; 7797esac 7798 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7799 fi 7800else 7801 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7802fi 7803 7804test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7806$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7807if ${lt_cv_path_mainfest_tool+:} false; then : 7808 $as_echo_n "(cached) " >&6 7809else 7810 lt_cv_path_mainfest_tool=no 7811 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7812 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7813 cat conftest.err >&5 7814 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7815 lt_cv_path_mainfest_tool=yes 7816 fi 7817 rm -f conftest* 7818fi 7819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7820$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7821if test yes != "$lt_cv_path_mainfest_tool"; then 7822 MANIFEST_TOOL=: 7823fi 7824 7825 7826 7827 7828 7829 7830 case $host_os in 7831 rhapsody* | darwin*) 7832 if test -n "$ac_tool_prefix"; then 7833 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7834set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7836$as_echo_n "checking for $ac_word... " >&6; } 7837if ${ac_cv_prog_DSYMUTIL+:} false; then : 7838 $as_echo_n "(cached) " >&6 7839else 7840 if test -n "$DSYMUTIL"; then 7841 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7842else 7843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7844for as_dir in $PATH 7845do 7846 IFS=$as_save_IFS 7847 test -z "$as_dir" && as_dir=. 7848 for ac_exec_ext in '' $ac_executable_extensions; do 7849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7850 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7852 break 2 7853 fi 7854done 7855 done 7856IFS=$as_save_IFS 7857 7858fi 7859fi 7860DSYMUTIL=$ac_cv_prog_DSYMUTIL 7861if test -n "$DSYMUTIL"; then 7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7863$as_echo "$DSYMUTIL" >&6; } 7864else 7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7866$as_echo "no" >&6; } 7867fi 7868 7869 7870fi 7871if test -z "$ac_cv_prog_DSYMUTIL"; then 7872 ac_ct_DSYMUTIL=$DSYMUTIL 7873 # Extract the first word of "dsymutil", so it can be a program name with args. 7874set dummy dsymutil; ac_word=$2 7875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7876$as_echo_n "checking for $ac_word... " >&6; } 7877if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7878 $as_echo_n "(cached) " >&6 7879else 7880 if test -n "$ac_ct_DSYMUTIL"; then 7881 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7882else 7883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7884for as_dir in $PATH 7885do 7886 IFS=$as_save_IFS 7887 test -z "$as_dir" && as_dir=. 7888 for ac_exec_ext in '' $ac_executable_extensions; do 7889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7890 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7892 break 2 7893 fi 7894done 7895 done 7896IFS=$as_save_IFS 7897 7898fi 7899fi 7900ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7901if test -n "$ac_ct_DSYMUTIL"; then 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7903$as_echo "$ac_ct_DSYMUTIL" >&6; } 7904else 7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7906$as_echo "no" >&6; } 7907fi 7908 7909 if test "x$ac_ct_DSYMUTIL" = x; then 7910 DSYMUTIL=":" 7911 else 7912 case $cross_compiling:$ac_tool_warned in 7913yes:) 7914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7916ac_tool_warned=yes ;; 7917esac 7918 DSYMUTIL=$ac_ct_DSYMUTIL 7919 fi 7920else 7921 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7922fi 7923 7924 if test -n "$ac_tool_prefix"; then 7925 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7926set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7928$as_echo_n "checking for $ac_word... " >&6; } 7929if ${ac_cv_prog_NMEDIT+:} false; then : 7930 $as_echo_n "(cached) " >&6 7931else 7932 if test -n "$NMEDIT"; then 7933 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7934else 7935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7936for as_dir in $PATH 7937do 7938 IFS=$as_save_IFS 7939 test -z "$as_dir" && as_dir=. 7940 for ac_exec_ext in '' $ac_executable_extensions; do 7941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7942 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7944 break 2 7945 fi 7946done 7947 done 7948IFS=$as_save_IFS 7949 7950fi 7951fi 7952NMEDIT=$ac_cv_prog_NMEDIT 7953if test -n "$NMEDIT"; then 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7955$as_echo "$NMEDIT" >&6; } 7956else 7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7958$as_echo "no" >&6; } 7959fi 7960 7961 7962fi 7963if test -z "$ac_cv_prog_NMEDIT"; then 7964 ac_ct_NMEDIT=$NMEDIT 7965 # Extract the first word of "nmedit", so it can be a program name with args. 7966set dummy nmedit; ac_word=$2 7967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7968$as_echo_n "checking for $ac_word... " >&6; } 7969if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7970 $as_echo_n "(cached) " >&6 7971else 7972 if test -n "$ac_ct_NMEDIT"; then 7973 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7974else 7975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7976for as_dir in $PATH 7977do 7978 IFS=$as_save_IFS 7979 test -z "$as_dir" && as_dir=. 7980 for ac_exec_ext in '' $ac_executable_extensions; do 7981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7982 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7984 break 2 7985 fi 7986done 7987 done 7988IFS=$as_save_IFS 7989 7990fi 7991fi 7992ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7993if test -n "$ac_ct_NMEDIT"; then 7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7995$as_echo "$ac_ct_NMEDIT" >&6; } 7996else 7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7998$as_echo "no" >&6; } 7999fi 8000 8001 if test "x$ac_ct_NMEDIT" = x; then 8002 NMEDIT=":" 8003 else 8004 case $cross_compiling:$ac_tool_warned in 8005yes:) 8006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8008ac_tool_warned=yes ;; 8009esac 8010 NMEDIT=$ac_ct_NMEDIT 8011 fi 8012else 8013 NMEDIT="$ac_cv_prog_NMEDIT" 8014fi 8015 8016 if test -n "$ac_tool_prefix"; then 8017 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8018set dummy ${ac_tool_prefix}lipo; ac_word=$2 8019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8020$as_echo_n "checking for $ac_word... " >&6; } 8021if ${ac_cv_prog_LIPO+:} false; then : 8022 $as_echo_n "(cached) " >&6 8023else 8024 if test -n "$LIPO"; then 8025 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8026else 8027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8028for as_dir in $PATH 8029do 8030 IFS=$as_save_IFS 8031 test -z "$as_dir" && as_dir=. 8032 for ac_exec_ext in '' $ac_executable_extensions; do 8033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8034 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8036 break 2 8037 fi 8038done 8039 done 8040IFS=$as_save_IFS 8041 8042fi 8043fi 8044LIPO=$ac_cv_prog_LIPO 8045if test -n "$LIPO"; then 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8047$as_echo "$LIPO" >&6; } 8048else 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8050$as_echo "no" >&6; } 8051fi 8052 8053 8054fi 8055if test -z "$ac_cv_prog_LIPO"; then 8056 ac_ct_LIPO=$LIPO 8057 # Extract the first word of "lipo", so it can be a program name with args. 8058set dummy lipo; ac_word=$2 8059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8060$as_echo_n "checking for $ac_word... " >&6; } 8061if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8062 $as_echo_n "(cached) " >&6 8063else 8064 if test -n "$ac_ct_LIPO"; then 8065 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8066else 8067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8068for as_dir in $PATH 8069do 8070 IFS=$as_save_IFS 8071 test -z "$as_dir" && as_dir=. 8072 for ac_exec_ext in '' $ac_executable_extensions; do 8073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8074 ac_cv_prog_ac_ct_LIPO="lipo" 8075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8076 break 2 8077 fi 8078done 8079 done 8080IFS=$as_save_IFS 8081 8082fi 8083fi 8084ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8085if test -n "$ac_ct_LIPO"; then 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8087$as_echo "$ac_ct_LIPO" >&6; } 8088else 8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8090$as_echo "no" >&6; } 8091fi 8092 8093 if test "x$ac_ct_LIPO" = x; then 8094 LIPO=":" 8095 else 8096 case $cross_compiling:$ac_tool_warned in 8097yes:) 8098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8100ac_tool_warned=yes ;; 8101esac 8102 LIPO=$ac_ct_LIPO 8103 fi 8104else 8105 LIPO="$ac_cv_prog_LIPO" 8106fi 8107 8108 if test -n "$ac_tool_prefix"; then 8109 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8110set dummy ${ac_tool_prefix}otool; ac_word=$2 8111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8112$as_echo_n "checking for $ac_word... " >&6; } 8113if ${ac_cv_prog_OTOOL+:} false; then : 8114 $as_echo_n "(cached) " >&6 8115else 8116 if test -n "$OTOOL"; then 8117 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8118else 8119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8120for as_dir in $PATH 8121do 8122 IFS=$as_save_IFS 8123 test -z "$as_dir" && as_dir=. 8124 for ac_exec_ext in '' $ac_executable_extensions; do 8125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8126 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8128 break 2 8129 fi 8130done 8131 done 8132IFS=$as_save_IFS 8133 8134fi 8135fi 8136OTOOL=$ac_cv_prog_OTOOL 8137if test -n "$OTOOL"; then 8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8139$as_echo "$OTOOL" >&6; } 8140else 8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8142$as_echo "no" >&6; } 8143fi 8144 8145 8146fi 8147if test -z "$ac_cv_prog_OTOOL"; then 8148 ac_ct_OTOOL=$OTOOL 8149 # Extract the first word of "otool", so it can be a program name with args. 8150set dummy otool; ac_word=$2 8151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8152$as_echo_n "checking for $ac_word... " >&6; } 8153if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8154 $as_echo_n "(cached) " >&6 8155else 8156 if test -n "$ac_ct_OTOOL"; then 8157 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8158else 8159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8160for as_dir in $PATH 8161do 8162 IFS=$as_save_IFS 8163 test -z "$as_dir" && as_dir=. 8164 for ac_exec_ext in '' $ac_executable_extensions; do 8165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8166 ac_cv_prog_ac_ct_OTOOL="otool" 8167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8168 break 2 8169 fi 8170done 8171 done 8172IFS=$as_save_IFS 8173 8174fi 8175fi 8176ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8177if test -n "$ac_ct_OTOOL"; then 8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8179$as_echo "$ac_ct_OTOOL" >&6; } 8180else 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8182$as_echo "no" >&6; } 8183fi 8184 8185 if test "x$ac_ct_OTOOL" = x; then 8186 OTOOL=":" 8187 else 8188 case $cross_compiling:$ac_tool_warned in 8189yes:) 8190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8192ac_tool_warned=yes ;; 8193esac 8194 OTOOL=$ac_ct_OTOOL 8195 fi 8196else 8197 OTOOL="$ac_cv_prog_OTOOL" 8198fi 8199 8200 if test -n "$ac_tool_prefix"; then 8201 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8202set dummy ${ac_tool_prefix}otool64; ac_word=$2 8203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8204$as_echo_n "checking for $ac_word... " >&6; } 8205if ${ac_cv_prog_OTOOL64+:} false; then : 8206 $as_echo_n "(cached) " >&6 8207else 8208 if test -n "$OTOOL64"; then 8209 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8210else 8211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8212for as_dir in $PATH 8213do 8214 IFS=$as_save_IFS 8215 test -z "$as_dir" && as_dir=. 8216 for ac_exec_ext in '' $ac_executable_extensions; do 8217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8218 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8220 break 2 8221 fi 8222done 8223 done 8224IFS=$as_save_IFS 8225 8226fi 8227fi 8228OTOOL64=$ac_cv_prog_OTOOL64 8229if test -n "$OTOOL64"; then 8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8231$as_echo "$OTOOL64" >&6; } 8232else 8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8234$as_echo "no" >&6; } 8235fi 8236 8237 8238fi 8239if test -z "$ac_cv_prog_OTOOL64"; then 8240 ac_ct_OTOOL64=$OTOOL64 8241 # Extract the first word of "otool64", so it can be a program name with args. 8242set dummy otool64; ac_word=$2 8243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8244$as_echo_n "checking for $ac_word... " >&6; } 8245if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8246 $as_echo_n "(cached) " >&6 8247else 8248 if test -n "$ac_ct_OTOOL64"; then 8249 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8250else 8251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8252for as_dir in $PATH 8253do 8254 IFS=$as_save_IFS 8255 test -z "$as_dir" && as_dir=. 8256 for ac_exec_ext in '' $ac_executable_extensions; do 8257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8258 ac_cv_prog_ac_ct_OTOOL64="otool64" 8259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8260 break 2 8261 fi 8262done 8263 done 8264IFS=$as_save_IFS 8265 8266fi 8267fi 8268ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8269if test -n "$ac_ct_OTOOL64"; then 8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8271$as_echo "$ac_ct_OTOOL64" >&6; } 8272else 8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8274$as_echo "no" >&6; } 8275fi 8276 8277 if test "x$ac_ct_OTOOL64" = x; then 8278 OTOOL64=":" 8279 else 8280 case $cross_compiling:$ac_tool_warned in 8281yes:) 8282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8284ac_tool_warned=yes ;; 8285esac 8286 OTOOL64=$ac_ct_OTOOL64 8287 fi 8288else 8289 OTOOL64="$ac_cv_prog_OTOOL64" 8290fi 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8319$as_echo_n "checking for -single_module linker flag... " >&6; } 8320if ${lt_cv_apple_cc_single_mod+:} false; then : 8321 $as_echo_n "(cached) " >&6 8322else 8323 lt_cv_apple_cc_single_mod=no 8324 if test -z "$LT_MULTI_MODULE"; then 8325 # By default we will add the -single_module flag. You can override 8326 # by either setting the environment variable LT_MULTI_MODULE 8327 # non-empty at configure time, or by adding -multi_module to the 8328 # link flags. 8329 rm -rf libconftest.dylib* 8330 echo "int foo(void){return 1;}" > conftest.c 8331 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8332-dynamiclib -Wl,-single_module conftest.c" >&5 8333 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8334 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8335 _lt_result=$? 8336 # If there is a non-empty error log, and "single_module" 8337 # appears in it, assume the flag caused a linker warning 8338 if test -s conftest.err && $GREP single_module conftest.err; then 8339 cat conftest.err >&5 8340 # Otherwise, if the output was created with a 0 exit code from 8341 # the compiler, it worked. 8342 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8343 lt_cv_apple_cc_single_mod=yes 8344 else 8345 cat conftest.err >&5 8346 fi 8347 rm -rf libconftest.dylib* 8348 rm -f conftest.* 8349 fi 8350fi 8351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8352$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8353 8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8355$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8356if ${lt_cv_ld_exported_symbols_list+:} false; then : 8357 $as_echo_n "(cached) " >&6 8358else 8359 lt_cv_ld_exported_symbols_list=no 8360 save_LDFLAGS=$LDFLAGS 8361 echo "_main" > conftest.sym 8362 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8364/* end confdefs.h. */ 8365 8366int 8367main () 8368{ 8369 8370 ; 8371 return 0; 8372} 8373_ACEOF 8374if ac_fn_c_try_link "$LINENO"; then : 8375 lt_cv_ld_exported_symbols_list=yes 8376else 8377 lt_cv_ld_exported_symbols_list=no 8378fi 8379rm -f core conftest.err conftest.$ac_objext \ 8380 conftest$ac_exeext conftest.$ac_ext 8381 LDFLAGS=$save_LDFLAGS 8382 8383fi 8384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8385$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8386 8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8388$as_echo_n "checking for -force_load linker flag... " >&6; } 8389if ${lt_cv_ld_force_load+:} false; then : 8390 $as_echo_n "(cached) " >&6 8391else 8392 lt_cv_ld_force_load=no 8393 cat > conftest.c << _LT_EOF 8394int forced_loaded() { return 2;} 8395_LT_EOF 8396 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8397 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8398 echo "$AR cru libconftest.a conftest.o" >&5 8399 $AR cru libconftest.a conftest.o 2>&5 8400 echo "$RANLIB libconftest.a" >&5 8401 $RANLIB libconftest.a 2>&5 8402 cat > conftest.c << _LT_EOF 8403int main() { return 0;} 8404_LT_EOF 8405 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8406 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8407 _lt_result=$? 8408 if test -s conftest.err && $GREP force_load conftest.err; then 8409 cat conftest.err >&5 8410 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8411 lt_cv_ld_force_load=yes 8412 else 8413 cat conftest.err >&5 8414 fi 8415 rm -f conftest.err libconftest.a conftest conftest.c 8416 rm -rf conftest.dSYM 8417 8418fi 8419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8420$as_echo "$lt_cv_ld_force_load" >&6; } 8421 case $host_os in 8422 rhapsody* | darwin1.[012]) 8423 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8424 darwin1.*) 8425 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8426 darwin*) # darwin 5.x on 8427 # if running on 10.5 or later, the deployment target defaults 8428 # to the OS version, if on x86, and 10.4, the deployment 8429 # target defaults to 10.4. Don't you love it? 8430 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8431 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8432 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8433 10.[012][,.]*) 8434 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8435 10.*) 8436 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8437 esac 8438 ;; 8439 esac 8440 if test yes = "$lt_cv_apple_cc_single_mod"; then 8441 _lt_dar_single_mod='$single_module' 8442 fi 8443 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8444 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8445 else 8446 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8447 fi 8448 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8449 _lt_dsymutil='~$DSYMUTIL $lib || :' 8450 else 8451 _lt_dsymutil= 8452 fi 8453 ;; 8454 esac 8455 8456# func_munge_path_list VARIABLE PATH 8457# ----------------------------------- 8458# VARIABLE is name of variable containing _space_ separated list of 8459# directories to be munged by the contents of PATH, which is string 8460# having a format: 8461# "DIR[:DIR]:" 8462# string "DIR[ DIR]" will be prepended to VARIABLE 8463# ":DIR[:DIR]" 8464# string "DIR[ DIR]" will be appended to VARIABLE 8465# "DIRP[:DIRP]::[DIRA:]DIRA" 8466# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8467# "DIRA[ DIRA]" will be appended to VARIABLE 8468# "DIR[:DIR]" 8469# VARIABLE will be replaced by "DIR[ DIR]" 8470func_munge_path_list () 8471{ 8472 case x$2 in 8473 x) 8474 ;; 8475 *:) 8476 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8477 ;; 8478 x:*) 8479 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8480 ;; 8481 *::*) 8482 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8483 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8484 ;; 8485 *) 8486 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8487 ;; 8488 esac 8489} 8490 8491 8492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8493$as_echo_n "checking for ANSI C header files... " >&6; } 8494if ${ac_cv_header_stdc+:} false; then : 8495 $as_echo_n "(cached) " >&6 8496else 8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8498/* end confdefs.h. */ 8499#include <stdlib.h> 8500#include <stdarg.h> 8501#include <string.h> 8502#include <float.h> 8503 8504int 8505main () 8506{ 8507 8508 ; 8509 return 0; 8510} 8511_ACEOF 8512if ac_fn_c_try_compile "$LINENO"; then : 8513 ac_cv_header_stdc=yes 8514else 8515 ac_cv_header_stdc=no 8516fi 8517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8518 8519if test $ac_cv_header_stdc = yes; then 8520 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8522/* end confdefs.h. */ 8523#include <string.h> 8524 8525_ACEOF 8526if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8527 $EGREP "memchr" >/dev/null 2>&1; then : 8528 8529else 8530 ac_cv_header_stdc=no 8531fi 8532rm -f conftest* 8533 8534fi 8535 8536if test $ac_cv_header_stdc = yes; then 8537 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8539/* end confdefs.h. */ 8540#include <stdlib.h> 8541 8542_ACEOF 8543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8544 $EGREP "free" >/dev/null 2>&1; then : 8545 8546else 8547 ac_cv_header_stdc=no 8548fi 8549rm -f conftest* 8550 8551fi 8552 8553if test $ac_cv_header_stdc = yes; then 8554 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8555 if test "$cross_compiling" = yes; then : 8556 : 8557else 8558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8559/* end confdefs.h. */ 8560#include <ctype.h> 8561#include <stdlib.h> 8562#if ((' ' & 0x0FF) == 0x020) 8563# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8564# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8565#else 8566# define ISLOWER(c) \ 8567 (('a' <= (c) && (c) <= 'i') \ 8568 || ('j' <= (c) && (c) <= 'r') \ 8569 || ('s' <= (c) && (c) <= 'z')) 8570# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8571#endif 8572 8573#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8574int 8575main () 8576{ 8577 int i; 8578 for (i = 0; i < 256; i++) 8579 if (XOR (islower (i), ISLOWER (i)) 8580 || toupper (i) != TOUPPER (i)) 8581 return 2; 8582 return 0; 8583} 8584_ACEOF 8585if ac_fn_c_try_run "$LINENO"; then : 8586 8587else 8588 ac_cv_header_stdc=no 8589fi 8590rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8591 conftest.$ac_objext conftest.beam conftest.$ac_ext 8592fi 8593 8594fi 8595fi 8596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8597$as_echo "$ac_cv_header_stdc" >&6; } 8598if test $ac_cv_header_stdc = yes; then 8599 8600$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8601 8602fi 8603 8604# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8605for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8606 inttypes.h stdint.h unistd.h 8607do : 8608 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8609ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8610" 8611if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8612 cat >>confdefs.h <<_ACEOF 8613#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8614_ACEOF 8615 8616fi 8617 8618done 8619 8620 8621for ac_header in dlfcn.h 8622do : 8623 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8624" 8625if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8626 cat >>confdefs.h <<_ACEOF 8627#define HAVE_DLFCN_H 1 8628_ACEOF 8629 8630fi 8631 8632done 8633 8634 8635 8636func_stripname_cnf () 8637{ 8638 case $2 in 8639 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 8640 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 8641 esac 8642} # func_stripname_cnf 8643 8644 8645 8646 8647 8648# Set options 8649 8650 8651 8652 enable_dlopen=no 8653 8654 8655 enable_win32_dll=no 8656 8657 8658 # Check whether --enable-shared was given. 8659if test "${enable_shared+set}" = set; then : 8660 enableval=$enable_shared; p=${PACKAGE-default} 8661 case $enableval in 8662 yes) enable_shared=yes ;; 8663 no) enable_shared=no ;; 8664 *) 8665 enable_shared=no 8666 # Look at the argument we got. We use all the common list separators. 8667 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8668 for pkg in $enableval; do 8669 IFS=$lt_save_ifs 8670 if test "X$pkg" = "X$p"; then 8671 enable_shared=yes 8672 fi 8673 done 8674 IFS=$lt_save_ifs 8675 ;; 8676 esac 8677else 8678 enable_shared=yes 8679fi 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 # Check whether --enable-static was given. 8690if test "${enable_static+set}" = set; then : 8691 enableval=$enable_static; p=${PACKAGE-default} 8692 case $enableval in 8693 yes) enable_static=yes ;; 8694 no) enable_static=no ;; 8695 *) 8696 enable_static=no 8697 # Look at the argument we got. We use all the common list separators. 8698 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8699 for pkg in $enableval; do 8700 IFS=$lt_save_ifs 8701 if test "X$pkg" = "X$p"; then 8702 enable_static=yes 8703 fi 8704 done 8705 IFS=$lt_save_ifs 8706 ;; 8707 esac 8708else 8709 enable_static=yes 8710fi 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721# Check whether --with-pic was given. 8722if test "${with_pic+set}" = set; then : 8723 withval=$with_pic; lt_p=${PACKAGE-default} 8724 case $withval in 8725 yes|no) pic_mode=$withval ;; 8726 *) 8727 pic_mode=default 8728 # Look at the argument we got. We use all the common list separators. 8729 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8730 for lt_pkg in $withval; do 8731 IFS=$lt_save_ifs 8732 if test "X$lt_pkg" = "X$lt_p"; then 8733 pic_mode=yes 8734 fi 8735 done 8736 IFS=$lt_save_ifs 8737 ;; 8738 esac 8739else 8740 pic_mode=default 8741fi 8742 8743 8744 8745 8746 8747 8748 8749 8750 # Check whether --enable-fast-install was given. 8751if test "${enable_fast_install+set}" = set; then : 8752 enableval=$enable_fast_install; p=${PACKAGE-default} 8753 case $enableval in 8754 yes) enable_fast_install=yes ;; 8755 no) enable_fast_install=no ;; 8756 *) 8757 enable_fast_install=no 8758 # Look at the argument we got. We use all the common list separators. 8759 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8760 for pkg in $enableval; do 8761 IFS=$lt_save_ifs 8762 if test "X$pkg" = "X$p"; then 8763 enable_fast_install=yes 8764 fi 8765 done 8766 IFS=$lt_save_ifs 8767 ;; 8768 esac 8769else 8770 enable_fast_install=yes 8771fi 8772 8773 8774 8775 8776 8777 8778 8779 8780 shared_archive_member_spec= 8781case $host,$enable_shared in 8782power*-*-aix[5-9]*,yes) 8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8784$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8785 8786# Check whether --with-aix-soname was given. 8787if test "${with_aix_soname+set}" = set; then : 8788 withval=$with_aix_soname; case $withval in 8789 aix|svr4|both) 8790 ;; 8791 *) 8792 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8793 ;; 8794 esac 8795 lt_cv_with_aix_soname=$with_aix_soname 8796else 8797 if ${lt_cv_with_aix_soname+:} false; then : 8798 $as_echo_n "(cached) " >&6 8799else 8800 lt_cv_with_aix_soname=aix 8801fi 8802 8803 with_aix_soname=$lt_cv_with_aix_soname 8804fi 8805 8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8807$as_echo "$with_aix_soname" >&6; } 8808 if test aix != "$with_aix_soname"; then 8809 # For the AIX way of multilib, we name the shared archive member 8810 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8811 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8812 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8813 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8814 if test 64 = "${OBJECT_MODE-32}"; then 8815 shared_archive_member_spec=shr_64 8816 else 8817 shared_archive_member_spec=shr 8818 fi 8819 fi 8820 ;; 8821*) 8822 with_aix_soname=aix 8823 ;; 8824esac 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835# This can be used to rebuild libtool when needed 8836LIBTOOL_DEPS=$ltmain 8837 8838# Always use our own libtool. 8839LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870test -z "$LN_S" && LN_S="ln -s" 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885if test -n "${ZSH_VERSION+set}"; then 8886 setopt NO_GLOB_SUBST 8887fi 8888 8889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8890$as_echo_n "checking for objdir... " >&6; } 8891if ${lt_cv_objdir+:} false; then : 8892 $as_echo_n "(cached) " >&6 8893else 8894 rm -f .libs 2>/dev/null 8895mkdir .libs 2>/dev/null 8896if test -d .libs; then 8897 lt_cv_objdir=.libs 8898else 8899 # MS-DOS does not allow filenames that begin with a dot. 8900 lt_cv_objdir=_libs 8901fi 8902rmdir .libs 2>/dev/null 8903fi 8904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8905$as_echo "$lt_cv_objdir" >&6; } 8906objdir=$lt_cv_objdir 8907 8908 8909 8910 8911 8912cat >>confdefs.h <<_ACEOF 8913#define LT_OBJDIR "$lt_cv_objdir/" 8914_ACEOF 8915 8916 8917 8918 8919case $host_os in 8920aix3*) 8921 # AIX sometimes has problems with the GCC collect2 program. For some 8922 # reason, if we set the COLLECT_NAMES environment variable, the problems 8923 # vanish in a puff of smoke. 8924 if test set != "${COLLECT_NAMES+set}"; then 8925 COLLECT_NAMES= 8926 export COLLECT_NAMES 8927 fi 8928 ;; 8929esac 8930 8931# Global variables: 8932ofile=libtool 8933can_build_shared=yes 8934 8935# All known linkers require a '.a' archive for static linking (except MSVC, 8936# which needs '.lib'). 8937libext=a 8938 8939with_gnu_ld=$lt_cv_prog_gnu_ld 8940 8941old_CC=$CC 8942old_CFLAGS=$CFLAGS 8943 8944# Set sane defaults for various variables 8945test -z "$CC" && CC=cc 8946test -z "$LTCC" && LTCC=$CC 8947test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8948test -z "$LD" && LD=ld 8949test -z "$ac_objext" && ac_objext=o 8950 8951func_cc_basename $compiler 8952cc_basename=$func_cc_basename_result 8953 8954 8955# Only perform the check for file, if the check method requires it 8956test -z "$MAGIC_CMD" && MAGIC_CMD=file 8957case $deplibs_check_method in 8958file_magic*) 8959 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8961$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8962if ${lt_cv_path_MAGIC_CMD+:} false; then : 8963 $as_echo_n "(cached) " >&6 8964else 8965 case $MAGIC_CMD in 8966[\\/*] | ?:[\\/]*) 8967 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8968 ;; 8969*) 8970 lt_save_MAGIC_CMD=$MAGIC_CMD 8971 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8972 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8973 for ac_dir in $ac_dummy; do 8974 IFS=$lt_save_ifs 8975 test -z "$ac_dir" && ac_dir=. 8976 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8977 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8978 if test -n "$file_magic_test_file"; then 8979 case $deplibs_check_method in 8980 "file_magic "*) 8981 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8982 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8983 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8984 $EGREP "$file_magic_regex" > /dev/null; then 8985 : 8986 else 8987 cat <<_LT_EOF 1>&2 8988 8989*** Warning: the command libtool uses to detect shared libraries, 8990*** $file_magic_cmd, produces output that libtool cannot recognize. 8991*** The result is that libtool may fail to recognize shared libraries 8992*** as such. This will affect the creation of libtool libraries that 8993*** depend on shared libraries, but programs linked with such libtool 8994*** libraries will work regardless of this problem. Nevertheless, you 8995*** may want to report the problem to your system manager and/or to 8996*** bug-libtool@gnu.org 8997 8998_LT_EOF 8999 fi ;; 9000 esac 9001 fi 9002 break 9003 fi 9004 done 9005 IFS=$lt_save_ifs 9006 MAGIC_CMD=$lt_save_MAGIC_CMD 9007 ;; 9008esac 9009fi 9010 9011MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9012if test -n "$MAGIC_CMD"; then 9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9014$as_echo "$MAGIC_CMD" >&6; } 9015else 9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9017$as_echo "no" >&6; } 9018fi 9019 9020 9021 9022 9023 9024if test -z "$lt_cv_path_MAGIC_CMD"; then 9025 if test -n "$ac_tool_prefix"; then 9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9027$as_echo_n "checking for file... " >&6; } 9028if ${lt_cv_path_MAGIC_CMD+:} false; then : 9029 $as_echo_n "(cached) " >&6 9030else 9031 case $MAGIC_CMD in 9032[\\/*] | ?:[\\/]*) 9033 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9034 ;; 9035*) 9036 lt_save_MAGIC_CMD=$MAGIC_CMD 9037 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9038 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9039 for ac_dir in $ac_dummy; do 9040 IFS=$lt_save_ifs 9041 test -z "$ac_dir" && ac_dir=. 9042 if test -f "$ac_dir/file"; then 9043 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9044 if test -n "$file_magic_test_file"; then 9045 case $deplibs_check_method in 9046 "file_magic "*) 9047 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9048 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9049 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9050 $EGREP "$file_magic_regex" > /dev/null; then 9051 : 9052 else 9053 cat <<_LT_EOF 1>&2 9054 9055*** Warning: the command libtool uses to detect shared libraries, 9056*** $file_magic_cmd, produces output that libtool cannot recognize. 9057*** The result is that libtool may fail to recognize shared libraries 9058*** as such. This will affect the creation of libtool libraries that 9059*** depend on shared libraries, but programs linked with such libtool 9060*** libraries will work regardless of this problem. Nevertheless, you 9061*** may want to report the problem to your system manager and/or to 9062*** bug-libtool@gnu.org 9063 9064_LT_EOF 9065 fi ;; 9066 esac 9067 fi 9068 break 9069 fi 9070 done 9071 IFS=$lt_save_ifs 9072 MAGIC_CMD=$lt_save_MAGIC_CMD 9073 ;; 9074esac 9075fi 9076 9077MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9078if test -n "$MAGIC_CMD"; then 9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9080$as_echo "$MAGIC_CMD" >&6; } 9081else 9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9083$as_echo "no" >&6; } 9084fi 9085 9086 9087 else 9088 MAGIC_CMD=: 9089 fi 9090fi 9091 9092 fi 9093 ;; 9094esac 9095 9096# Use C for the default configuration in the libtool script 9097 9098lt_save_CC=$CC 9099ac_ext=c 9100ac_cpp='$CPP $CPPFLAGS' 9101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9103ac_compiler_gnu=$ac_cv_c_compiler_gnu 9104 9105 9106# Source file extension for C test sources. 9107ac_ext=c 9108 9109# Object file extension for compiled C test sources. 9110objext=o 9111objext=$objext 9112 9113# Code to be used in simple compile tests 9114lt_simple_compile_test_code="int some_variable = 0;" 9115 9116# Code to be used in simple link tests 9117lt_simple_link_test_code='int main(){return(0);}' 9118 9119 9120 9121 9122 9123 9124 9125# If no C compiler was specified, use CC. 9126LTCC=${LTCC-"$CC"} 9127 9128# If no C compiler flags were specified, use CFLAGS. 9129LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9130 9131# Allow CC to be a program name with arguments. 9132compiler=$CC 9133 9134# Save the default compiler, since it gets overwritten when the other 9135# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9136compiler_DEFAULT=$CC 9137 9138# save warnings/boilerplate of simple test code 9139ac_outfile=conftest.$ac_objext 9140echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9141eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9142_lt_compiler_boilerplate=`cat conftest.err` 9143$RM conftest* 9144 9145ac_outfile=conftest.$ac_objext 9146echo "$lt_simple_link_test_code" >conftest.$ac_ext 9147eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9148_lt_linker_boilerplate=`cat conftest.err` 9149$RM -r conftest* 9150 9151 9152## CAVEAT EMPTOR: 9153## There is no encapsulation within the following macros, do not change 9154## the running order or otherwise move them around unless you know exactly 9155## what you are doing... 9156if test -n "$compiler"; then 9157 9158lt_prog_compiler_no_builtin_flag= 9159 9160if test yes = "$GCC"; then 9161 case $cc_basename in 9162 nvcc*) 9163 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9164 *) 9165 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9166 esac 9167 9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9169$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9170if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9171 $as_echo_n "(cached) " >&6 9172else 9173 lt_cv_prog_compiler_rtti_exceptions=no 9174 ac_outfile=conftest.$ac_objext 9175 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9176 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9177 # Insert the option either (1) after the last *FLAGS variable, or 9178 # (2) before a word containing "conftest.", or (3) at the end. 9179 # Note that $ac_compile itself does not contain backslashes and begins 9180 # with a dollar sign (not a hyphen), so the echo should work correctly. 9181 # The option is referenced via a variable to avoid confusing sed. 9182 lt_compile=`echo "$ac_compile" | $SED \ 9183 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9184 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9185 -e 's:$: $lt_compiler_flag:'` 9186 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9187 (eval "$lt_compile" 2>conftest.err) 9188 ac_status=$? 9189 cat conftest.err >&5 9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9191 if (exit $ac_status) && test -s "$ac_outfile"; then 9192 # The compiler can only warn and ignore the option if not recognized 9193 # So say no if there are warnings other than the usual output. 9194 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9195 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9196 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9197 lt_cv_prog_compiler_rtti_exceptions=yes 9198 fi 9199 fi 9200 $RM conftest* 9201 9202fi 9203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9204$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9205 9206if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9207 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9208else 9209 : 9210fi 9211 9212fi 9213 9214 9215 9216 9217 9218 9219 lt_prog_compiler_wl= 9220lt_prog_compiler_pic= 9221lt_prog_compiler_static= 9222 9223 9224 if test yes = "$GCC"; then 9225 lt_prog_compiler_wl='-Wl,' 9226 lt_prog_compiler_static='-static' 9227 9228 case $host_os in 9229 aix*) 9230 # All AIX code is PIC. 9231 if test ia64 = "$host_cpu"; then 9232 # AIX 5 now supports IA64 processor 9233 lt_prog_compiler_static='-Bstatic' 9234 fi 9235 lt_prog_compiler_pic='-fPIC' 9236 ;; 9237 9238 amigaos*) 9239 case $host_cpu in 9240 powerpc) 9241 # see comment about AmigaOS4 .so support 9242 lt_prog_compiler_pic='-fPIC' 9243 ;; 9244 m68k) 9245 # FIXME: we need at least 68020 code to build shared libraries, but 9246 # adding the '-m68020' flag to GCC prevents building anything better, 9247 # like '-m68040'. 9248 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9249 ;; 9250 esac 9251 ;; 9252 9253 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9254 # PIC is the default for these OSes. 9255 ;; 9256 9257 mingw* | cygwin* | pw32* | os2* | cegcc*) 9258 # This hack is so that the source file can tell whether it is being 9259 # built for inclusion in a dll (and should export symbols for example). 9260 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9261 # (--disable-auto-import) libraries 9262 lt_prog_compiler_pic='-DDLL_EXPORT' 9263 case $host_os in 9264 os2*) 9265 lt_prog_compiler_static='$wl-static' 9266 ;; 9267 esac 9268 ;; 9269 9270 darwin* | rhapsody*) 9271 # PIC is the default on this platform 9272 # Common symbols not allowed in MH_DYLIB files 9273 lt_prog_compiler_pic='-fno-common' 9274 ;; 9275 9276 haiku*) 9277 # PIC is the default for Haiku. 9278 # The "-static" flag exists, but is broken. 9279 lt_prog_compiler_static= 9280 ;; 9281 9282 hpux*) 9283 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9284 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9285 # sets the default TLS model and affects inlining. 9286 case $host_cpu in 9287 hppa*64*) 9288 # +Z the default 9289 ;; 9290 *) 9291 lt_prog_compiler_pic='-fPIC' 9292 ;; 9293 esac 9294 ;; 9295 9296 interix[3-9]*) 9297 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9298 # Instead, we relocate shared libraries at runtime. 9299 ;; 9300 9301 msdosdjgpp*) 9302 # Just because we use GCC doesn't mean we suddenly get shared libraries 9303 # on systems that don't support them. 9304 lt_prog_compiler_can_build_shared=no 9305 enable_shared=no 9306 ;; 9307 9308 *nto* | *qnx*) 9309 # QNX uses GNU C++, but need to define -shared option too, otherwise 9310 # it will coredump. 9311 lt_prog_compiler_pic='-fPIC -shared' 9312 ;; 9313 9314 sysv4*MP*) 9315 if test -d /usr/nec; then 9316 lt_prog_compiler_pic=-Kconform_pic 9317 fi 9318 ;; 9319 9320 *) 9321 lt_prog_compiler_pic='-fPIC' 9322 ;; 9323 esac 9324 9325 case $cc_basename in 9326 nvcc*) # Cuda Compiler Driver 2.2 9327 lt_prog_compiler_wl='-Xlinker ' 9328 if test -n "$lt_prog_compiler_pic"; then 9329 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9330 fi 9331 ;; 9332 esac 9333 else 9334 # PORTME Check for flag to pass linker flags through the system compiler. 9335 case $host_os in 9336 aix*) 9337 lt_prog_compiler_wl='-Wl,' 9338 if test ia64 = "$host_cpu"; then 9339 # AIX 5 now supports IA64 processor 9340 lt_prog_compiler_static='-Bstatic' 9341 else 9342 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9343 fi 9344 ;; 9345 9346 darwin* | rhapsody*) 9347 # PIC is the default on this platform 9348 # Common symbols not allowed in MH_DYLIB files 9349 lt_prog_compiler_pic='-fno-common' 9350 case $cc_basename in 9351 nagfor*) 9352 # NAG Fortran compiler 9353 lt_prog_compiler_wl='-Wl,-Wl,,' 9354 lt_prog_compiler_pic='-PIC' 9355 lt_prog_compiler_static='-Bstatic' 9356 ;; 9357 esac 9358 ;; 9359 9360 mingw* | cygwin* | pw32* | os2* | cegcc*) 9361 # This hack is so that the source file can tell whether it is being 9362 # built for inclusion in a dll (and should export symbols for example). 9363 lt_prog_compiler_pic='-DDLL_EXPORT' 9364 case $host_os in 9365 os2*) 9366 lt_prog_compiler_static='$wl-static' 9367 ;; 9368 esac 9369 ;; 9370 9371 hpux9* | hpux10* | hpux11*) 9372 lt_prog_compiler_wl='-Wl,' 9373 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9374 # not for PA HP-UX. 9375 case $host_cpu in 9376 hppa*64*|ia64*) 9377 # +Z the default 9378 ;; 9379 *) 9380 lt_prog_compiler_pic='+Z' 9381 ;; 9382 esac 9383 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9384 lt_prog_compiler_static='$wl-a ${wl}archive' 9385 ;; 9386 9387 irix5* | irix6* | nonstopux*) 9388 lt_prog_compiler_wl='-Wl,' 9389 # PIC (with -KPIC) is the default. 9390 lt_prog_compiler_static='-non_shared' 9391 ;; 9392 9393 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9394 case $cc_basename in 9395 # old Intel for x86_64, which still supported -KPIC. 9396 ecc*) 9397 lt_prog_compiler_wl='-Wl,' 9398 lt_prog_compiler_pic='-KPIC' 9399 lt_prog_compiler_static='-static' 9400 ;; 9401 # icc used to be incompatible with GCC. 9402 # ICC 10 doesn't accept -KPIC any more. 9403 icc* | ifort*) 9404 lt_prog_compiler_wl='-Wl,' 9405 lt_prog_compiler_pic='-fPIC' 9406 lt_prog_compiler_static='-static' 9407 ;; 9408 # Lahey Fortran 8.1. 9409 lf95*) 9410 lt_prog_compiler_wl='-Wl,' 9411 lt_prog_compiler_pic='--shared' 9412 lt_prog_compiler_static='--static' 9413 ;; 9414 nagfor*) 9415 # NAG Fortran compiler 9416 lt_prog_compiler_wl='-Wl,-Wl,,' 9417 lt_prog_compiler_pic='-PIC' 9418 lt_prog_compiler_static='-Bstatic' 9419 ;; 9420 tcc*) 9421 # Fabrice Bellard et al's Tiny C Compiler 9422 lt_prog_compiler_wl='-Wl,' 9423 lt_prog_compiler_pic='-fPIC' 9424 lt_prog_compiler_static='-static' 9425 ;; 9426 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9427 # Portland Group compilers (*not* the Pentium gcc compiler, 9428 # which looks to be a dead project) 9429 lt_prog_compiler_wl='-Wl,' 9430 lt_prog_compiler_pic='-fpic' 9431 lt_prog_compiler_static='-Bstatic' 9432 ;; 9433 ccc*) 9434 lt_prog_compiler_wl='-Wl,' 9435 # All Alpha code is PIC. 9436 lt_prog_compiler_static='-non_shared' 9437 ;; 9438 xl* | bgxl* | bgf* | mpixl*) 9439 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9440 lt_prog_compiler_wl='-Wl,' 9441 lt_prog_compiler_pic='-qpic' 9442 lt_prog_compiler_static='-qstaticlink' 9443 ;; 9444 *) 9445 case `$CC -V 2>&1 | sed 5q` in 9446 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9447 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9448 lt_prog_compiler_pic='-KPIC' 9449 lt_prog_compiler_static='-Bstatic' 9450 lt_prog_compiler_wl='' 9451 ;; 9452 *Sun\ F* | *Sun*Fortran*) 9453 lt_prog_compiler_pic='-KPIC' 9454 lt_prog_compiler_static='-Bstatic' 9455 lt_prog_compiler_wl='-Qoption ld ' 9456 ;; 9457 *Sun\ C*) 9458 # Sun C 5.9 9459 lt_prog_compiler_pic='-KPIC' 9460 lt_prog_compiler_static='-Bstatic' 9461 lt_prog_compiler_wl='-Wl,' 9462 ;; 9463 *Intel*\ [CF]*Compiler*) 9464 lt_prog_compiler_wl='-Wl,' 9465 lt_prog_compiler_pic='-fPIC' 9466 lt_prog_compiler_static='-static' 9467 ;; 9468 *Portland\ Group*) 9469 lt_prog_compiler_wl='-Wl,' 9470 lt_prog_compiler_pic='-fpic' 9471 lt_prog_compiler_static='-Bstatic' 9472 ;; 9473 esac 9474 ;; 9475 esac 9476 ;; 9477 9478 newsos6) 9479 lt_prog_compiler_pic='-KPIC' 9480 lt_prog_compiler_static='-Bstatic' 9481 ;; 9482 9483 *nto* | *qnx*) 9484 # QNX uses GNU C++, but need to define -shared option too, otherwise 9485 # it will coredump. 9486 lt_prog_compiler_pic='-fPIC -shared' 9487 ;; 9488 9489 osf3* | osf4* | osf5*) 9490 lt_prog_compiler_wl='-Wl,' 9491 # All OSF/1 code is PIC. 9492 lt_prog_compiler_static='-non_shared' 9493 ;; 9494 9495 rdos*) 9496 lt_prog_compiler_static='-non_shared' 9497 ;; 9498 9499 solaris*) 9500 lt_prog_compiler_pic='-KPIC' 9501 lt_prog_compiler_static='-Bstatic' 9502 case $cc_basename in 9503 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9504 lt_prog_compiler_wl='-Qoption ld ';; 9505 *) 9506 lt_prog_compiler_wl='-Wl,';; 9507 esac 9508 ;; 9509 9510 sunos4*) 9511 lt_prog_compiler_wl='-Qoption ld ' 9512 lt_prog_compiler_pic='-PIC' 9513 lt_prog_compiler_static='-Bstatic' 9514 ;; 9515 9516 sysv4 | sysv4.2uw2* | sysv4.3*) 9517 lt_prog_compiler_wl='-Wl,' 9518 lt_prog_compiler_pic='-KPIC' 9519 lt_prog_compiler_static='-Bstatic' 9520 ;; 9521 9522 sysv4*MP*) 9523 if test -d /usr/nec; then 9524 lt_prog_compiler_pic='-Kconform_pic' 9525 lt_prog_compiler_static='-Bstatic' 9526 fi 9527 ;; 9528 9529 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9530 lt_prog_compiler_wl='-Wl,' 9531 lt_prog_compiler_pic='-KPIC' 9532 lt_prog_compiler_static='-Bstatic' 9533 ;; 9534 9535 unicos*) 9536 lt_prog_compiler_wl='-Wl,' 9537 lt_prog_compiler_can_build_shared=no 9538 ;; 9539 9540 uts4*) 9541 lt_prog_compiler_pic='-pic' 9542 lt_prog_compiler_static='-Bstatic' 9543 ;; 9544 9545 *) 9546 lt_prog_compiler_can_build_shared=no 9547 ;; 9548 esac 9549 fi 9550 9551case $host_os in 9552 # For platforms that do not support PIC, -DPIC is meaningless: 9553 *djgpp*) 9554 lt_prog_compiler_pic= 9555 ;; 9556 *) 9557 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9558 ;; 9559esac 9560 9561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9562$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9563if ${lt_cv_prog_compiler_pic+:} false; then : 9564 $as_echo_n "(cached) " >&6 9565else 9566 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9567fi 9568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9569$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9570lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9571 9572# 9573# Check to make sure the PIC flag actually works. 9574# 9575if test -n "$lt_prog_compiler_pic"; then 9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9577$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9578if ${lt_cv_prog_compiler_pic_works+:} false; then : 9579 $as_echo_n "(cached) " >&6 9580else 9581 lt_cv_prog_compiler_pic_works=no 9582 ac_outfile=conftest.$ac_objext 9583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9584 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9585 # Insert the option either (1) after the last *FLAGS variable, or 9586 # (2) before a word containing "conftest.", or (3) at the end. 9587 # Note that $ac_compile itself does not contain backslashes and begins 9588 # with a dollar sign (not a hyphen), so the echo should work correctly. 9589 # The option is referenced via a variable to avoid confusing sed. 9590 lt_compile=`echo "$ac_compile" | $SED \ 9591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9593 -e 's:$: $lt_compiler_flag:'` 9594 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9595 (eval "$lt_compile" 2>conftest.err) 9596 ac_status=$? 9597 cat conftest.err >&5 9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9599 if (exit $ac_status) && test -s "$ac_outfile"; then 9600 # The compiler can only warn and ignore the option if not recognized 9601 # So say no if there are warnings other than the usual output. 9602 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9603 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9604 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9605 lt_cv_prog_compiler_pic_works=yes 9606 fi 9607 fi 9608 $RM conftest* 9609 9610fi 9611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9612$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9613 9614if test yes = "$lt_cv_prog_compiler_pic_works"; then 9615 case $lt_prog_compiler_pic in 9616 "" | " "*) ;; 9617 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9618 esac 9619else 9620 lt_prog_compiler_pic= 9621 lt_prog_compiler_can_build_shared=no 9622fi 9623 9624fi 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636# 9637# Check to make sure the static flag actually works. 9638# 9639wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9641$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9642if ${lt_cv_prog_compiler_static_works+:} false; then : 9643 $as_echo_n "(cached) " >&6 9644else 9645 lt_cv_prog_compiler_static_works=no 9646 save_LDFLAGS=$LDFLAGS 9647 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9648 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9649 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9650 # The linker can only warn and ignore the option if not recognized 9651 # So say no if there are warnings 9652 if test -s conftest.err; then 9653 # Append any errors to the config.log. 9654 cat conftest.err 1>&5 9655 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9657 if diff conftest.exp conftest.er2 >/dev/null; then 9658 lt_cv_prog_compiler_static_works=yes 9659 fi 9660 else 9661 lt_cv_prog_compiler_static_works=yes 9662 fi 9663 fi 9664 $RM -r conftest* 9665 LDFLAGS=$save_LDFLAGS 9666 9667fi 9668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9669$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9670 9671if test yes = "$lt_cv_prog_compiler_static_works"; then 9672 : 9673else 9674 lt_prog_compiler_static= 9675fi 9676 9677 9678 9679 9680 9681 9682 9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9684$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9685if ${lt_cv_prog_compiler_c_o+:} false; then : 9686 $as_echo_n "(cached) " >&6 9687else 9688 lt_cv_prog_compiler_c_o=no 9689 $RM -r conftest 2>/dev/null 9690 mkdir conftest 9691 cd conftest 9692 mkdir out 9693 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9694 9695 lt_compiler_flag="-o out/conftest2.$ac_objext" 9696 # Insert the option either (1) after the last *FLAGS variable, or 9697 # (2) before a word containing "conftest.", or (3) at the end. 9698 # Note that $ac_compile itself does not contain backslashes and begins 9699 # with a dollar sign (not a hyphen), so the echo should work correctly. 9700 lt_compile=`echo "$ac_compile" | $SED \ 9701 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9702 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9703 -e 's:$: $lt_compiler_flag:'` 9704 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9705 (eval "$lt_compile" 2>out/conftest.err) 9706 ac_status=$? 9707 cat out/conftest.err >&5 9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9709 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9710 then 9711 # The compiler can only warn and ignore the option if not recognized 9712 # So say no if there are warnings 9713 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9714 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9715 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9716 lt_cv_prog_compiler_c_o=yes 9717 fi 9718 fi 9719 chmod u+w . 2>&5 9720 $RM conftest* 9721 # SGI C++ compiler will create directory out/ii_files/ for 9722 # template instantiation 9723 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9724 $RM out/* && rmdir out 9725 cd .. 9726 $RM -r conftest 9727 $RM conftest* 9728 9729fi 9730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9731$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9732 9733 9734 9735 9736 9737 9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9739$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9740if ${lt_cv_prog_compiler_c_o+:} false; then : 9741 $as_echo_n "(cached) " >&6 9742else 9743 lt_cv_prog_compiler_c_o=no 9744 $RM -r conftest 2>/dev/null 9745 mkdir conftest 9746 cd conftest 9747 mkdir out 9748 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9749 9750 lt_compiler_flag="-o out/conftest2.$ac_objext" 9751 # Insert the option either (1) after the last *FLAGS variable, or 9752 # (2) before a word containing "conftest.", or (3) at the end. 9753 # Note that $ac_compile itself does not contain backslashes and begins 9754 # with a dollar sign (not a hyphen), so the echo should work correctly. 9755 lt_compile=`echo "$ac_compile" | $SED \ 9756 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9758 -e 's:$: $lt_compiler_flag:'` 9759 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9760 (eval "$lt_compile" 2>out/conftest.err) 9761 ac_status=$? 9762 cat out/conftest.err >&5 9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9764 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9765 then 9766 # The compiler can only warn and ignore the option if not recognized 9767 # So say no if there are warnings 9768 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9769 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9770 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9771 lt_cv_prog_compiler_c_o=yes 9772 fi 9773 fi 9774 chmod u+w . 2>&5 9775 $RM conftest* 9776 # SGI C++ compiler will create directory out/ii_files/ for 9777 # template instantiation 9778 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9779 $RM out/* && rmdir out 9780 cd .. 9781 $RM -r conftest 9782 $RM conftest* 9783 9784fi 9785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9786$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9787 9788 9789 9790 9791hard_links=nottested 9792if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9793 # do not overwrite the value of need_locks provided by the user 9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9795$as_echo_n "checking if we can lock with hard links... " >&6; } 9796 hard_links=yes 9797 $RM conftest* 9798 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9799 touch conftest.a 9800 ln conftest.a conftest.b 2>&5 || hard_links=no 9801 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9803$as_echo "$hard_links" >&6; } 9804 if test no = "$hard_links"; then 9805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9806$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9807 need_locks=warn 9808 fi 9809else 9810 need_locks=no 9811fi 9812 9813 9814 9815 9816 9817 9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9819$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9820 9821 runpath_var= 9822 allow_undefined_flag= 9823 always_export_symbols=no 9824 archive_cmds= 9825 archive_expsym_cmds= 9826 compiler_needs_object=no 9827 enable_shared_with_static_runtimes=no 9828 export_dynamic_flag_spec= 9829 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9830 hardcode_automatic=no 9831 hardcode_direct=no 9832 hardcode_direct_absolute=no 9833 hardcode_libdir_flag_spec= 9834 hardcode_libdir_separator= 9835 hardcode_minus_L=no 9836 hardcode_shlibpath_var=unsupported 9837 inherit_rpath=no 9838 link_all_deplibs=unknown 9839 module_cmds= 9840 module_expsym_cmds= 9841 old_archive_from_new_cmds= 9842 old_archive_from_expsyms_cmds= 9843 thread_safe_flag_spec= 9844 whole_archive_flag_spec= 9845 # include_expsyms should be a list of space-separated symbols to be *always* 9846 # included in the symbol list 9847 include_expsyms= 9848 # exclude_expsyms can be an extended regexp of symbols to exclude 9849 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9850 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9851 # as well as any symbol that contains 'd'. 9852 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9853 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9854 # platforms (ab)use it in PIC code, but their linkers get confused if 9855 # the symbol is explicitly referenced. Since portable code cannot 9856 # rely on this symbol name, it's probably fine to never include it in 9857 # preloaded symbol tables. 9858 # Exclude shared library initialization/finalization symbols. 9859 extract_expsyms_cmds= 9860 9861 case $host_os in 9862 cygwin* | mingw* | pw32* | cegcc*) 9863 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9864 # When not using gcc, we currently assume that we are using 9865 # Microsoft Visual C++. 9866 if test yes != "$GCC"; then 9867 with_gnu_ld=no 9868 fi 9869 ;; 9870 interix*) 9871 # we just hope/assume this is gcc and not c89 (= MSVC++) 9872 with_gnu_ld=yes 9873 ;; 9874 openbsd* | bitrig*) 9875 with_gnu_ld=no 9876 ;; 9877 esac 9878 9879 ld_shlibs=yes 9880 9881 # On some targets, GNU ld is compatible enough with the native linker 9882 # that we're better off using the native interface for both. 9883 lt_use_gnu_ld_interface=no 9884 if test yes = "$with_gnu_ld"; then 9885 case $host_os in 9886 aix*) 9887 # The AIX port of GNU ld has always aspired to compatibility 9888 # with the native linker. However, as the warning in the GNU ld 9889 # block says, versions before 2.19.5* couldn't really create working 9890 # shared libraries, regardless of the interface used. 9891 case `$LD -v 2>&1` in 9892 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9893 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9894 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9895 *) 9896 lt_use_gnu_ld_interface=yes 9897 ;; 9898 esac 9899 ;; 9900 *) 9901 lt_use_gnu_ld_interface=yes 9902 ;; 9903 esac 9904 fi 9905 9906 if test yes = "$lt_use_gnu_ld_interface"; then 9907 # If archive_cmds runs LD, not CC, wlarc should be empty 9908 wlarc='$wl' 9909 9910 # Set some defaults for GNU ld with shared library support. These 9911 # are reset later if shared libraries are not supported. Putting them 9912 # here allows them to be overridden if necessary. 9913 runpath_var=LD_RUN_PATH 9914 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9915 export_dynamic_flag_spec='$wl--export-dynamic' 9916 # ancient GNU ld didn't support --whole-archive et. al. 9917 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9918 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9919 else 9920 whole_archive_flag_spec= 9921 fi 9922 supports_anon_versioning=no 9923 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9924 *GNU\ gold*) supports_anon_versioning=yes ;; 9925 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9926 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9927 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9928 *\ 2.11.*) ;; # other 2.11 versions 9929 *) supports_anon_versioning=yes ;; 9930 esac 9931 9932 # See if GNU ld supports shared libraries. 9933 case $host_os in 9934 aix[3-9]*) 9935 # On AIX/PPC, the GNU linker is very broken 9936 if test ia64 != "$host_cpu"; then 9937 ld_shlibs=no 9938 cat <<_LT_EOF 1>&2 9939 9940*** Warning: the GNU linker, at least up to release 2.19, is reported 9941*** to be unable to reliably create shared libraries on AIX. 9942*** Therefore, libtool is disabling shared libraries support. If you 9943*** really care for shared libraries, you may want to install binutils 9944*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9945*** You will then need to restart the configuration process. 9946 9947_LT_EOF 9948 fi 9949 ;; 9950 9951 amigaos*) 9952 case $host_cpu in 9953 powerpc) 9954 # see comment about AmigaOS4 .so support 9955 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9956 archive_expsym_cmds='' 9957 ;; 9958 m68k) 9959 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)' 9960 hardcode_libdir_flag_spec='-L$libdir' 9961 hardcode_minus_L=yes 9962 ;; 9963 esac 9964 ;; 9965 9966 beos*) 9967 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9968 allow_undefined_flag=unsupported 9969 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9970 # support --undefined. This deserves some investigation. FIXME 9971 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9972 else 9973 ld_shlibs=no 9974 fi 9975 ;; 9976 9977 cygwin* | mingw* | pw32* | cegcc*) 9978 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9979 # as there is no search path for DLLs. 9980 hardcode_libdir_flag_spec='-L$libdir' 9981 export_dynamic_flag_spec='$wl--export-all-symbols' 9982 allow_undefined_flag=unsupported 9983 always_export_symbols=no 9984 enable_shared_with_static_runtimes=yes 9985 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' 9986 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9987 9988 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9990 # If the export-symbols file already is a .def file, use it as 9991 # is; otherwise, prepend EXPORTS... 9992 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9993 cp $export_symbols $output_objdir/$soname.def; 9994 else 9995 echo EXPORTS > $output_objdir/$soname.def; 9996 cat $export_symbols >> $output_objdir/$soname.def; 9997 fi~ 9998 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9999 else 10000 ld_shlibs=no 10001 fi 10002 ;; 10003 10004 haiku*) 10005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10006 link_all_deplibs=yes 10007 ;; 10008 10009 os2*) 10010 hardcode_libdir_flag_spec='-L$libdir' 10011 hardcode_minus_L=yes 10012 allow_undefined_flag=unsupported 10013 shrext_cmds=.dll 10014 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10015 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10016 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10017 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10018 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10019 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10020 emximp -o $lib $output_objdir/$libname.def' 10021 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10022 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10023 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10024 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10025 prefix_cmds="$SED"~ 10026 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10027 prefix_cmds="$prefix_cmds -e 1d"; 10028 fi~ 10029 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10030 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10031 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10032 emximp -o $lib $output_objdir/$libname.def' 10033 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10034 enable_shared_with_static_runtimes=yes 10035 ;; 10036 10037 interix[3-9]*) 10038 hardcode_direct=no 10039 hardcode_shlibpath_var=no 10040 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10041 export_dynamic_flag_spec='$wl-E' 10042 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10043 # Instead, shared libraries are loaded at an image base (0x10000000 by 10044 # default) and relocated if they conflict, which is a slow very memory 10045 # consuming and fragmenting process. To avoid this, we pick a random, 10046 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10047 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10048 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10049 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' 10050 ;; 10051 10052 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10053 tmp_diet=no 10054 if test linux-dietlibc = "$host_os"; then 10055 case $cc_basename in 10056 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10057 esac 10058 fi 10059 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10060 && test no = "$tmp_diet" 10061 then 10062 tmp_addflag=' $pic_flag' 10063 tmp_sharedflag='-shared' 10064 case $cc_basename,$host_cpu in 10065 pgcc*) # Portland Group C compiler 10066 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' 10067 tmp_addflag=' $pic_flag' 10068 ;; 10069 pgf77* | pgf90* | pgf95* | pgfortran*) 10070 # Portland Group f77 and f90 compilers 10071 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' 10072 tmp_addflag=' $pic_flag -Mnomain' ;; 10073 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10074 tmp_addflag=' -i_dynamic' ;; 10075 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10076 tmp_addflag=' -i_dynamic -nofor_main' ;; 10077 ifc* | ifort*) # Intel Fortran compiler 10078 tmp_addflag=' -nofor_main' ;; 10079 lf95*) # Lahey Fortran 8.1 10080 whole_archive_flag_spec= 10081 tmp_sharedflag='--shared' ;; 10082 nagfor*) # NAGFOR 5.3 10083 tmp_sharedflag='-Wl,-shared' ;; 10084 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10085 tmp_sharedflag='-qmkshrobj' 10086 tmp_addflag= ;; 10087 nvcc*) # Cuda Compiler Driver 2.2 10088 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' 10089 compiler_needs_object=yes 10090 ;; 10091 esac 10092 case `$CC -V 2>&1 | sed 5q` in 10093 *Sun\ C*) # Sun C 5.9 10094 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' 10095 compiler_needs_object=yes 10096 tmp_sharedflag='-G' ;; 10097 *Sun\ F*) # Sun Fortran 8.3 10098 tmp_sharedflag='-G' ;; 10099 esac 10100 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10101 10102 if test yes = "$supports_anon_versioning"; then 10103 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10104 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10105 echo "local: *; };" >> $output_objdir/$libname.ver~ 10106 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10107 fi 10108 10109 case $cc_basename in 10110 tcc*) 10111 export_dynamic_flag_spec='-rdynamic' 10112 ;; 10113 xlf* | bgf* | bgxlf* | mpixlf*) 10114 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10115 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10116 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10117 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10118 if test yes = "$supports_anon_versioning"; then 10119 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10120 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10121 echo "local: *; };" >> $output_objdir/$libname.ver~ 10122 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10123 fi 10124 ;; 10125 esac 10126 else 10127 ld_shlibs=no 10128 fi 10129 ;; 10130 10131 netbsd*) 10132 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10133 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10134 wlarc= 10135 else 10136 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10137 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10138 fi 10139 ;; 10140 10141 solaris*) 10142 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10143 ld_shlibs=no 10144 cat <<_LT_EOF 1>&2 10145 10146*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10147*** create shared libraries on Solaris systems. Therefore, libtool 10148*** is disabling shared libraries support. We urge you to upgrade GNU 10149*** binutils to release 2.9.1 or newer. Another option is to modify 10150*** your PATH or compiler configuration so that the native linker is 10151*** used, and then restart. 10152 10153_LT_EOF 10154 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10155 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10156 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10157 else 10158 ld_shlibs=no 10159 fi 10160 ;; 10161 10162 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10163 case `$LD -v 2>&1` in 10164 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10165 ld_shlibs=no 10166 cat <<_LT_EOF 1>&2 10167 10168*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10169*** reliably create shared libraries on SCO systems. Therefore, libtool 10170*** is disabling shared libraries support. We urge you to upgrade GNU 10171*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10172*** your PATH or compiler configuration so that the native linker is 10173*** used, and then restart. 10174 10175_LT_EOF 10176 ;; 10177 *) 10178 # For security reasons, it is highly recommended that you always 10179 # use absolute paths for naming shared libraries, and exclude the 10180 # DT_RUNPATH tag from executables and libraries. But doing so 10181 # requires that you compile everything twice, which is a pain. 10182 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10183 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10185 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10186 else 10187 ld_shlibs=no 10188 fi 10189 ;; 10190 esac 10191 ;; 10192 10193 sunos4*) 10194 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10195 wlarc= 10196 hardcode_direct=yes 10197 hardcode_shlibpath_var=no 10198 ;; 10199 10200 *) 10201 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10202 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10203 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10204 else 10205 ld_shlibs=no 10206 fi 10207 ;; 10208 esac 10209 10210 if test no = "$ld_shlibs"; then 10211 runpath_var= 10212 hardcode_libdir_flag_spec= 10213 export_dynamic_flag_spec= 10214 whole_archive_flag_spec= 10215 fi 10216 else 10217 # PORTME fill in a description of your system's linker (not GNU ld) 10218 case $host_os in 10219 aix3*) 10220 allow_undefined_flag=unsupported 10221 always_export_symbols=yes 10222 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' 10223 # Note: this linker hardcodes the directories in LIBPATH if there 10224 # are no directories specified by -L. 10225 hardcode_minus_L=yes 10226 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10227 # Neither direct hardcoding nor static linking is supported with a 10228 # broken collect2. 10229 hardcode_direct=unsupported 10230 fi 10231 ;; 10232 10233 aix[4-9]*) 10234 if test ia64 = "$host_cpu"; then 10235 # On IA64, the linker does run time linking by default, so we don't 10236 # have to do anything special. 10237 aix_use_runtimelinking=no 10238 exp_sym_flag='-Bexport' 10239 no_entry_flag= 10240 else 10241 # If we're using GNU nm, then we don't want the "-C" option. 10242 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10243 # Without the "-l" option, or with the "-B" option, AIX nm treats 10244 # weak defined symbols like other global defined symbols, whereas 10245 # GNU nm marks them as "W". 10246 # While the 'weak' keyword is ignored in the Export File, we need 10247 # it in the Import File for the 'aix-soname' feature, so we have 10248 # to replace the "-B" option with "-P" for AIX nm. 10249 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10250 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10251 else 10252 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10253 fi 10254 aix_use_runtimelinking=no 10255 10256 # Test if we are trying to use run time linking or normal 10257 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10258 # have runtime linking enabled, and use it for executables. 10259 # For shared libraries, we enable/disable runtime linking 10260 # depending on the kind of the shared library created - 10261 # when "with_aix_soname,aix_use_runtimelinking" is: 10262 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10263 # "aix,yes" lib.so shared, rtl:yes, for executables 10264 # lib.a static archive 10265 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10266 # lib.a(lib.so.V) shared, rtl:no, for executables 10267 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10268 # lib.a(lib.so.V) shared, rtl:no 10269 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10270 # lib.a static archive 10271 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10272 for ld_flag in $LDFLAGS; do 10273 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10274 aix_use_runtimelinking=yes 10275 break 10276 fi 10277 done 10278 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10279 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10280 # so we don't have lib.a shared libs to link our executables. 10281 # We have to force runtime linking in this case. 10282 aix_use_runtimelinking=yes 10283 LDFLAGS="$LDFLAGS -Wl,-brtl" 10284 fi 10285 ;; 10286 esac 10287 10288 exp_sym_flag='-bexport' 10289 no_entry_flag='-bnoentry' 10290 fi 10291 10292 # When large executables or shared objects are built, AIX ld can 10293 # have problems creating the table of contents. If linking a library 10294 # or program results in "error TOC overflow" add -mminimal-toc to 10295 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10296 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10297 10298 archive_cmds='' 10299 hardcode_direct=yes 10300 hardcode_direct_absolute=yes 10301 hardcode_libdir_separator=':' 10302 link_all_deplibs=yes 10303 file_list_spec='$wl-f,' 10304 case $with_aix_soname,$aix_use_runtimelinking in 10305 aix,*) ;; # traditional, no import file 10306 svr4,* | *,yes) # use import file 10307 # The Import File defines what to hardcode. 10308 hardcode_direct=no 10309 hardcode_direct_absolute=no 10310 ;; 10311 esac 10312 10313 if test yes = "$GCC"; then 10314 case $host_os in aix4.[012]|aix4.[012].*) 10315 # We only want to do this on AIX 4.2 and lower, the check 10316 # below for broken collect2 doesn't work under 4.3+ 10317 collect2name=`$CC -print-prog-name=collect2` 10318 if test -f "$collect2name" && 10319 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10320 then 10321 # We have reworked collect2 10322 : 10323 else 10324 # We have old collect2 10325 hardcode_direct=unsupported 10326 # It fails to find uninstalled libraries when the uninstalled 10327 # path is not listed in the libpath. Setting hardcode_minus_L 10328 # to unsupported forces relinking 10329 hardcode_minus_L=yes 10330 hardcode_libdir_flag_spec='-L$libdir' 10331 hardcode_libdir_separator= 10332 fi 10333 ;; 10334 esac 10335 shared_flag='-shared' 10336 if test yes = "$aix_use_runtimelinking"; then 10337 shared_flag="$shared_flag "'$wl-G' 10338 fi 10339 # Need to ensure runtime linking is disabled for the traditional 10340 # shared library, or the linker may eventually find shared libraries 10341 # /with/ Import File - we do not want to mix them. 10342 shared_flag_aix='-shared' 10343 shared_flag_svr4='-shared $wl-G' 10344 else 10345 # not using gcc 10346 if test ia64 = "$host_cpu"; then 10347 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10348 # chokes on -Wl,-G. The following line is correct: 10349 shared_flag='-G' 10350 else 10351 if test yes = "$aix_use_runtimelinking"; then 10352 shared_flag='$wl-G' 10353 else 10354 shared_flag='$wl-bM:SRE' 10355 fi 10356 shared_flag_aix='$wl-bM:SRE' 10357 shared_flag_svr4='$wl-G' 10358 fi 10359 fi 10360 10361 export_dynamic_flag_spec='$wl-bexpall' 10362 # It seems that -bexpall does not export symbols beginning with 10363 # underscore (_), so it is better to generate a list of symbols to export. 10364 always_export_symbols=yes 10365 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10366 # Warning - without using the other runtime loading flags (-brtl), 10367 # -berok will link without error, but may produce a broken library. 10368 allow_undefined_flag='-berok' 10369 # Determine the default libpath from the value encoded in an 10370 # empty executable. 10371 if test set = "${lt_cv_aix_libpath+set}"; then 10372 aix_libpath=$lt_cv_aix_libpath 10373else 10374 if ${lt_cv_aix_libpath_+:} false; then : 10375 $as_echo_n "(cached) " >&6 10376else 10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10378/* end confdefs.h. */ 10379 10380int 10381main () 10382{ 10383 10384 ; 10385 return 0; 10386} 10387_ACEOF 10388if ac_fn_c_try_link "$LINENO"; then : 10389 10390 lt_aix_libpath_sed=' 10391 /Import File Strings/,/^$/ { 10392 /^0/ { 10393 s/^0 *\([^ ]*\) *$/\1/ 10394 p 10395 } 10396 }' 10397 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10398 # Check for a 64-bit object if we didn't find anything. 10399 if test -z "$lt_cv_aix_libpath_"; then 10400 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10401 fi 10402fi 10403rm -f core conftest.err conftest.$ac_objext \ 10404 conftest$ac_exeext conftest.$ac_ext 10405 if test -z "$lt_cv_aix_libpath_"; then 10406 lt_cv_aix_libpath_=/usr/lib:/lib 10407 fi 10408 10409fi 10410 10411 aix_libpath=$lt_cv_aix_libpath_ 10412fi 10413 10414 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10415 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10416 else 10417 if test ia64 = "$host_cpu"; then 10418 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10419 allow_undefined_flag="-z nodefs" 10420 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" 10421 else 10422 # Determine the default libpath from the value encoded in an 10423 # empty executable. 10424 if test set = "${lt_cv_aix_libpath+set}"; then 10425 aix_libpath=$lt_cv_aix_libpath 10426else 10427 if ${lt_cv_aix_libpath_+:} false; then : 10428 $as_echo_n "(cached) " >&6 10429else 10430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10431/* end confdefs.h. */ 10432 10433int 10434main () 10435{ 10436 10437 ; 10438 return 0; 10439} 10440_ACEOF 10441if ac_fn_c_try_link "$LINENO"; then : 10442 10443 lt_aix_libpath_sed=' 10444 /Import File Strings/,/^$/ { 10445 /^0/ { 10446 s/^0 *\([^ ]*\) *$/\1/ 10447 p 10448 } 10449 }' 10450 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10451 # Check for a 64-bit object if we didn't find anything. 10452 if test -z "$lt_cv_aix_libpath_"; then 10453 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10454 fi 10455fi 10456rm -f core conftest.err conftest.$ac_objext \ 10457 conftest$ac_exeext conftest.$ac_ext 10458 if test -z "$lt_cv_aix_libpath_"; then 10459 lt_cv_aix_libpath_=/usr/lib:/lib 10460 fi 10461 10462fi 10463 10464 aix_libpath=$lt_cv_aix_libpath_ 10465fi 10466 10467 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10468 # Warning - without using the other run time loading flags, 10469 # -berok will link without error, but may produce a broken library. 10470 no_undefined_flag=' $wl-bernotok' 10471 allow_undefined_flag=' $wl-berok' 10472 if test yes = "$with_gnu_ld"; then 10473 # We only use this code for GNU lds that support --whole-archive. 10474 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10475 else 10476 # Exported symbols can be pulled into shared objects from archives 10477 whole_archive_flag_spec='$convenience' 10478 fi 10479 archive_cmds_need_lc=yes 10480 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10481 # -brtl affects multiple linker settings, -berok does not and is overridden later 10482 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10483 if test svr4 != "$with_aix_soname"; then 10484 # This is similar to how AIX traditionally builds its shared libraries. 10485 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10486 fi 10487 if test aix != "$with_aix_soname"; then 10488 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10489 else 10490 # used by -dlpreopen to get the symbols 10491 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10492 fi 10493 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10494 fi 10495 fi 10496 ;; 10497 10498 amigaos*) 10499 case $host_cpu in 10500 powerpc) 10501 # see comment about AmigaOS4 .so support 10502 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10503 archive_expsym_cmds='' 10504 ;; 10505 m68k) 10506 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)' 10507 hardcode_libdir_flag_spec='-L$libdir' 10508 hardcode_minus_L=yes 10509 ;; 10510 esac 10511 ;; 10512 10513 bsdi[45]*) 10514 export_dynamic_flag_spec=-rdynamic 10515 ;; 10516 10517 cygwin* | mingw* | pw32* | cegcc*) 10518 # When not using gcc, we currently assume that we are using 10519 # Microsoft Visual C++. 10520 # hardcode_libdir_flag_spec is actually meaningless, as there is 10521 # no search path for DLLs. 10522 case $cc_basename in 10523 cl*) 10524 # Native MSVC 10525 hardcode_libdir_flag_spec=' ' 10526 allow_undefined_flag=unsupported 10527 always_export_symbols=yes 10528 file_list_spec='@' 10529 # Tell ltmain to make .lib files, not .a files. 10530 libext=lib 10531 # Tell ltmain to make .dll files, not .so files. 10532 shrext_cmds=.dll 10533 # FIXME: Setting linknames here is a bad hack. 10534 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10535 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10536 cp "$export_symbols" "$output_objdir/$soname.def"; 10537 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10538 else 10539 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10540 fi~ 10541 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10542 linknames=' 10543 # The linker will not automatically build a static lib if we build a DLL. 10544 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10545 enable_shared_with_static_runtimes=yes 10546 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10547 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10548 # Don't use ranlib 10549 old_postinstall_cmds='chmod 644 $oldlib' 10550 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10551 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10552 case $lt_outputfile in 10553 *.exe|*.EXE) ;; 10554 *) 10555 lt_outputfile=$lt_outputfile.exe 10556 lt_tool_outputfile=$lt_tool_outputfile.exe 10557 ;; 10558 esac~ 10559 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10560 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10561 $RM "$lt_outputfile.manifest"; 10562 fi' 10563 ;; 10564 *) 10565 # Assume MSVC wrapper 10566 hardcode_libdir_flag_spec=' ' 10567 allow_undefined_flag=unsupported 10568 # Tell ltmain to make .lib files, not .a files. 10569 libext=lib 10570 # Tell ltmain to make .dll files, not .so files. 10571 shrext_cmds=.dll 10572 # FIXME: Setting linknames here is a bad hack. 10573 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10574 # The linker will automatically build a .lib file if we build a DLL. 10575 old_archive_from_new_cmds='true' 10576 # FIXME: Should let the user specify the lib program. 10577 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10578 enable_shared_with_static_runtimes=yes 10579 ;; 10580 esac 10581 ;; 10582 10583 darwin* | rhapsody*) 10584 10585 10586 archive_cmds_need_lc=no 10587 hardcode_direct=no 10588 hardcode_automatic=yes 10589 hardcode_shlibpath_var=unsupported 10590 if test yes = "$lt_cv_ld_force_load"; then 10591 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\"`' 10592 10593 else 10594 whole_archive_flag_spec='' 10595 fi 10596 link_all_deplibs=yes 10597 allow_undefined_flag=$_lt_dar_allow_undefined 10598 case $cc_basename in 10599 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10600 *) _lt_dar_can_shared=$GCC ;; 10601 esac 10602 if test yes = "$_lt_dar_can_shared"; then 10603 output_verbose_link_cmd=func_echo_all 10604 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10605 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10606 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" 10607 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" 10608 10609 else 10610 ld_shlibs=no 10611 fi 10612 10613 ;; 10614 10615 dgux*) 10616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10617 hardcode_libdir_flag_spec='-L$libdir' 10618 hardcode_shlibpath_var=no 10619 ;; 10620 10621 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10622 # support. Future versions do this automatically, but an explicit c++rt0.o 10623 # does not break anything, and helps significantly (at the cost of a little 10624 # extra space). 10625 freebsd2.2*) 10626 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10627 hardcode_libdir_flag_spec='-R$libdir' 10628 hardcode_direct=yes 10629 hardcode_shlibpath_var=no 10630 ;; 10631 10632 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10633 freebsd2.*) 10634 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10635 hardcode_direct=yes 10636 hardcode_minus_L=yes 10637 hardcode_shlibpath_var=no 10638 ;; 10639 10640 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10641 freebsd* | dragonfly*) 10642 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10643 hardcode_libdir_flag_spec='-R$libdir' 10644 hardcode_direct=yes 10645 hardcode_shlibpath_var=no 10646 ;; 10647 10648 hpux9*) 10649 if test yes = "$GCC"; then 10650 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10651 else 10652 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10653 fi 10654 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10655 hardcode_libdir_separator=: 10656 hardcode_direct=yes 10657 10658 # hardcode_minus_L: Not really in the search PATH, 10659 # but as the default location of the library. 10660 hardcode_minus_L=yes 10661 export_dynamic_flag_spec='$wl-E' 10662 ;; 10663 10664 hpux10*) 10665 if test yes,no = "$GCC,$with_gnu_ld"; then 10666 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10667 else 10668 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10669 fi 10670 if test no = "$with_gnu_ld"; then 10671 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10672 hardcode_libdir_separator=: 10673 hardcode_direct=yes 10674 hardcode_direct_absolute=yes 10675 export_dynamic_flag_spec='$wl-E' 10676 # hardcode_minus_L: Not really in the search PATH, 10677 # but as the default location of the library. 10678 hardcode_minus_L=yes 10679 fi 10680 ;; 10681 10682 hpux11*) 10683 if test yes,no = "$GCC,$with_gnu_ld"; then 10684 case $host_cpu in 10685 hppa*64*) 10686 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10687 ;; 10688 ia64*) 10689 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10690 ;; 10691 *) 10692 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10693 ;; 10694 esac 10695 else 10696 case $host_cpu in 10697 hppa*64*) 10698 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10699 ;; 10700 ia64*) 10701 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10702 ;; 10703 *) 10704 10705 # Older versions of the 11.00 compiler do not understand -b yet 10706 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10708$as_echo_n "checking if $CC understands -b... " >&6; } 10709if ${lt_cv_prog_compiler__b+:} false; then : 10710 $as_echo_n "(cached) " >&6 10711else 10712 lt_cv_prog_compiler__b=no 10713 save_LDFLAGS=$LDFLAGS 10714 LDFLAGS="$LDFLAGS -b" 10715 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10716 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10717 # The linker can only warn and ignore the option if not recognized 10718 # So say no if there are warnings 10719 if test -s conftest.err; then 10720 # Append any errors to the config.log. 10721 cat conftest.err 1>&5 10722 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10724 if diff conftest.exp conftest.er2 >/dev/null; then 10725 lt_cv_prog_compiler__b=yes 10726 fi 10727 else 10728 lt_cv_prog_compiler__b=yes 10729 fi 10730 fi 10731 $RM -r conftest* 10732 LDFLAGS=$save_LDFLAGS 10733 10734fi 10735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10736$as_echo "$lt_cv_prog_compiler__b" >&6; } 10737 10738if test yes = "$lt_cv_prog_compiler__b"; then 10739 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10740else 10741 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10742fi 10743 10744 ;; 10745 esac 10746 fi 10747 if test no = "$with_gnu_ld"; then 10748 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10749 hardcode_libdir_separator=: 10750 10751 case $host_cpu in 10752 hppa*64*|ia64*) 10753 hardcode_direct=no 10754 hardcode_shlibpath_var=no 10755 ;; 10756 *) 10757 hardcode_direct=yes 10758 hardcode_direct_absolute=yes 10759 export_dynamic_flag_spec='$wl-E' 10760 10761 # hardcode_minus_L: Not really in the search PATH, 10762 # but as the default location of the library. 10763 hardcode_minus_L=yes 10764 ;; 10765 esac 10766 fi 10767 ;; 10768 10769 irix5* | irix6* | nonstopux*) 10770 if test yes = "$GCC"; then 10771 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' 10772 # Try to use the -exported_symbol ld option, if it does not 10773 # work, assume that -exports_file does not work either and 10774 # implicitly export all symbols. 10775 # This should be the same for all languages, so no per-tag cache variable. 10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10777$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10778if ${lt_cv_irix_exported_symbol+:} false; then : 10779 $as_echo_n "(cached) " >&6 10780else 10781 save_LDFLAGS=$LDFLAGS 10782 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10784/* end confdefs.h. */ 10785int foo (void) { return 0; } 10786_ACEOF 10787if ac_fn_c_try_link "$LINENO"; then : 10788 lt_cv_irix_exported_symbol=yes 10789else 10790 lt_cv_irix_exported_symbol=no 10791fi 10792rm -f core conftest.err conftest.$ac_objext \ 10793 conftest$ac_exeext conftest.$ac_ext 10794 LDFLAGS=$save_LDFLAGS 10795fi 10796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10797$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10798 if test yes = "$lt_cv_irix_exported_symbol"; then 10799 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' 10800 fi 10801 else 10802 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' 10803 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' 10804 fi 10805 archive_cmds_need_lc='no' 10806 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10807 hardcode_libdir_separator=: 10808 inherit_rpath=yes 10809 link_all_deplibs=yes 10810 ;; 10811 10812 linux*) 10813 case $cc_basename in 10814 tcc*) 10815 # Fabrice Bellard et al's Tiny C Compiler 10816 ld_shlibs=yes 10817 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10818 ;; 10819 esac 10820 ;; 10821 10822 netbsd*) 10823 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10824 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10825 else 10826 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10827 fi 10828 hardcode_libdir_flag_spec='-R$libdir' 10829 hardcode_direct=yes 10830 hardcode_shlibpath_var=no 10831 ;; 10832 10833 newsos6) 10834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10835 hardcode_direct=yes 10836 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10837 hardcode_libdir_separator=: 10838 hardcode_shlibpath_var=no 10839 ;; 10840 10841 *nto* | *qnx*) 10842 ;; 10843 10844 openbsd* | bitrig*) 10845 if test -f /usr/libexec/ld.so; then 10846 hardcode_direct=yes 10847 hardcode_shlibpath_var=no 10848 hardcode_direct_absolute=yes 10849 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10850 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10851 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10852 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10853 export_dynamic_flag_spec='$wl-E' 10854 else 10855 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10856 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10857 fi 10858 else 10859 ld_shlibs=no 10860 fi 10861 ;; 10862 10863 os2*) 10864 hardcode_libdir_flag_spec='-L$libdir' 10865 hardcode_minus_L=yes 10866 allow_undefined_flag=unsupported 10867 shrext_cmds=.dll 10868 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10869 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10870 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10871 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10872 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10873 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10874 emximp -o $lib $output_objdir/$libname.def' 10875 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10876 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10877 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10878 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10879 prefix_cmds="$SED"~ 10880 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10881 prefix_cmds="$prefix_cmds -e 1d"; 10882 fi~ 10883 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10884 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10885 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10886 emximp -o $lib $output_objdir/$libname.def' 10887 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10888 enable_shared_with_static_runtimes=yes 10889 ;; 10890 10891 osf3*) 10892 if test yes = "$GCC"; then 10893 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10894 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' 10895 else 10896 allow_undefined_flag=' -expect_unresolved \*' 10897 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' 10898 fi 10899 archive_cmds_need_lc='no' 10900 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10901 hardcode_libdir_separator=: 10902 ;; 10903 10904 osf4* | osf5*) # as osf3* with the addition of -msym flag 10905 if test yes = "$GCC"; then 10906 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10907 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' 10908 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10909 else 10910 allow_undefined_flag=' -expect_unresolved \*' 10911 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' 10912 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~ 10913 $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' 10914 10915 # Both c and cxx compiler support -rpath directly 10916 hardcode_libdir_flag_spec='-rpath $libdir' 10917 fi 10918 archive_cmds_need_lc='no' 10919 hardcode_libdir_separator=: 10920 ;; 10921 10922 solaris*) 10923 no_undefined_flag=' -z defs' 10924 if test yes = "$GCC"; then 10925 wlarc='$wl' 10926 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10927 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10928 $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' 10929 else 10930 case `$CC -V 2>&1` in 10931 *"Compilers 5.0"*) 10932 wlarc='' 10933 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10934 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10935 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10936 ;; 10937 *) 10938 wlarc='$wl' 10939 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10940 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10941 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10942 ;; 10943 esac 10944 fi 10945 hardcode_libdir_flag_spec='-R$libdir' 10946 hardcode_shlibpath_var=no 10947 case $host_os in 10948 solaris2.[0-5] | solaris2.[0-5].*) ;; 10949 *) 10950 # The compiler driver will combine and reorder linker options, 10951 # but understands '-z linker_flag'. GCC discards it without '$wl', 10952 # but is careful enough not to reorder. 10953 # Supported since Solaris 2.6 (maybe 2.5.1?) 10954 if test yes = "$GCC"; then 10955 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10956 else 10957 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10958 fi 10959 ;; 10960 esac 10961 link_all_deplibs=yes 10962 ;; 10963 10964 sunos4*) 10965 if test sequent = "$host_vendor"; then 10966 # Use $CC to link under sequent, because it throws in some extra .o 10967 # files that make .init and .fini sections work. 10968 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10969 else 10970 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10971 fi 10972 hardcode_libdir_flag_spec='-L$libdir' 10973 hardcode_direct=yes 10974 hardcode_minus_L=yes 10975 hardcode_shlibpath_var=no 10976 ;; 10977 10978 sysv4) 10979 case $host_vendor in 10980 sni) 10981 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10982 hardcode_direct=yes # is this really true??? 10983 ;; 10984 siemens) 10985 ## LD is ld it makes a PLAMLIB 10986 ## CC just makes a GrossModule. 10987 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10988 reload_cmds='$CC -r -o $output$reload_objs' 10989 hardcode_direct=no 10990 ;; 10991 motorola) 10992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10993 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10994 ;; 10995 esac 10996 runpath_var='LD_RUN_PATH' 10997 hardcode_shlibpath_var=no 10998 ;; 10999 11000 sysv4.3*) 11001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11002 hardcode_shlibpath_var=no 11003 export_dynamic_flag_spec='-Bexport' 11004 ;; 11005 11006 sysv4*MP*) 11007 if test -d /usr/nec; then 11008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11009 hardcode_shlibpath_var=no 11010 runpath_var=LD_RUN_PATH 11011 hardcode_runpath_var=yes 11012 ld_shlibs=yes 11013 fi 11014 ;; 11015 11016 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11017 no_undefined_flag='$wl-z,text' 11018 archive_cmds_need_lc=no 11019 hardcode_shlibpath_var=no 11020 runpath_var='LD_RUN_PATH' 11021 11022 if test yes = "$GCC"; then 11023 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11024 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11025 else 11026 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11027 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11028 fi 11029 ;; 11030 11031 sysv5* | sco3.2v5* | sco5v6*) 11032 # Note: We CANNOT use -z defs as we might desire, because we do not 11033 # link with -lc, and that would cause any symbols used from libc to 11034 # always be unresolved, which means just about no library would 11035 # ever link correctly. If we're not using GNU ld we use -z text 11036 # though, which does catch some bad symbols but isn't as heavy-handed 11037 # as -z defs. 11038 no_undefined_flag='$wl-z,text' 11039 allow_undefined_flag='$wl-z,nodefs' 11040 archive_cmds_need_lc=no 11041 hardcode_shlibpath_var=no 11042 hardcode_libdir_flag_spec='$wl-R,$libdir' 11043 hardcode_libdir_separator=':' 11044 link_all_deplibs=yes 11045 export_dynamic_flag_spec='$wl-Bexport' 11046 runpath_var='LD_RUN_PATH' 11047 11048 if test yes = "$GCC"; then 11049 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11050 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11051 else 11052 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11053 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11054 fi 11055 ;; 11056 11057 uts4*) 11058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11059 hardcode_libdir_flag_spec='-L$libdir' 11060 hardcode_shlibpath_var=no 11061 ;; 11062 11063 *) 11064 ld_shlibs=no 11065 ;; 11066 esac 11067 11068 if test sni = "$host_vendor"; then 11069 case $host in 11070 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11071 export_dynamic_flag_spec='$wl-Blargedynsym' 11072 ;; 11073 esac 11074 fi 11075 fi 11076 11077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11078$as_echo "$ld_shlibs" >&6; } 11079test no = "$ld_shlibs" && can_build_shared=no 11080 11081with_gnu_ld=$with_gnu_ld 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097# 11098# Do we need to explicitly link libc? 11099# 11100case "x$archive_cmds_need_lc" in 11101x|xyes) 11102 # Assume -lc should be added 11103 archive_cmds_need_lc=yes 11104 11105 if test yes,yes = "$GCC,$enable_shared"; then 11106 case $archive_cmds in 11107 *'~'*) 11108 # FIXME: we may have to deal with multi-command sequences. 11109 ;; 11110 '$CC '*) 11111 # Test whether the compiler implicitly links with -lc since on some 11112 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11113 # to ld, don't add -lc before -lgcc. 11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11115$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11116if ${lt_cv_archive_cmds_need_lc+:} false; then : 11117 $as_echo_n "(cached) " >&6 11118else 11119 $RM conftest* 11120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11121 11122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11123 (eval $ac_compile) 2>&5 11124 ac_status=$? 11125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11126 test $ac_status = 0; } 2>conftest.err; then 11127 soname=conftest 11128 lib=conftest 11129 libobjs=conftest.$ac_objext 11130 deplibs= 11131 wl=$lt_prog_compiler_wl 11132 pic_flag=$lt_prog_compiler_pic 11133 compiler_flags=-v 11134 linker_flags=-v 11135 verstring= 11136 output_objdir=. 11137 libname=conftest 11138 lt_save_allow_undefined_flag=$allow_undefined_flag 11139 allow_undefined_flag= 11140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11141 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11142 ac_status=$? 11143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11144 test $ac_status = 0; } 11145 then 11146 lt_cv_archive_cmds_need_lc=no 11147 else 11148 lt_cv_archive_cmds_need_lc=yes 11149 fi 11150 allow_undefined_flag=$lt_save_allow_undefined_flag 11151 else 11152 cat conftest.err 1>&5 11153 fi 11154 $RM conftest* 11155 11156fi 11157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11158$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11159 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11160 ;; 11161 esac 11162 fi 11163 ;; 11164esac 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11318$as_echo_n "checking dynamic linker characteristics... " >&6; } 11319 11320if test yes = "$GCC"; then 11321 case $host_os in 11322 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11323 *) lt_awk_arg='/^libraries:/' ;; 11324 esac 11325 case $host_os in 11326 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11327 *) lt_sed_strip_eq='s|=/|/|g' ;; 11328 esac 11329 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11330 case $lt_search_path_spec in 11331 *\;*) 11332 # if the path contains ";" then we assume it to be the separator 11333 # otherwise default to the standard path separator (i.e. ":") - it is 11334 # assumed that no part of a normal pathname contains ";" but that should 11335 # okay in the real world where ";" in dirpaths is itself problematic. 11336 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11337 ;; 11338 *) 11339 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11340 ;; 11341 esac 11342 # Ok, now we have the path, separated by spaces, we can step through it 11343 # and add multilib dir if necessary... 11344 lt_tmp_lt_search_path_spec= 11345 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11346 # ...but if some path component already ends with the multilib dir we assume 11347 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11348 case "$lt_multi_os_dir; $lt_search_path_spec " in 11349 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11350 lt_multi_os_dir= 11351 ;; 11352 esac 11353 for lt_sys_path in $lt_search_path_spec; do 11354 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11355 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11356 elif test -n "$lt_multi_os_dir"; then 11357 test -d "$lt_sys_path" && \ 11358 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11359 fi 11360 done 11361 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11362BEGIN {RS = " "; FS = "/|\n";} { 11363 lt_foo = ""; 11364 lt_count = 0; 11365 for (lt_i = NF; lt_i > 0; lt_i--) { 11366 if ($lt_i != "" && $lt_i != ".") { 11367 if ($lt_i == "..") { 11368 lt_count++; 11369 } else { 11370 if (lt_count == 0) { 11371 lt_foo = "/" $lt_i lt_foo; 11372 } else { 11373 lt_count--; 11374 } 11375 } 11376 } 11377 } 11378 if (lt_foo != "") { lt_freq[lt_foo]++; } 11379 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11380}'` 11381 # AWK program above erroneously prepends '/' to C:/dos/paths 11382 # for these hosts. 11383 case $host_os in 11384 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11385 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11386 esac 11387 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11388else 11389 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11390fi 11391library_names_spec= 11392libname_spec='lib$name' 11393soname_spec= 11394shrext_cmds=.so 11395postinstall_cmds= 11396postuninstall_cmds= 11397finish_cmds= 11398finish_eval= 11399shlibpath_var= 11400shlibpath_overrides_runpath=unknown 11401version_type=none 11402dynamic_linker="$host_os ld.so" 11403sys_lib_dlsearch_path_spec="/lib /usr/lib" 11404need_lib_prefix=unknown 11405hardcode_into_libs=no 11406 11407# when you set need_version to no, make sure it does not cause -set_version 11408# flags to be left without arguments 11409need_version=unknown 11410 11411 11412 11413case $host_os in 11414aix3*) 11415 version_type=linux # correct to gnu/linux during the next big refactor 11416 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11417 shlibpath_var=LIBPATH 11418 11419 # AIX 3 has no versioning support, so we append a major version to the name. 11420 soname_spec='$libname$release$shared_ext$major' 11421 ;; 11422 11423aix[4-9]*) 11424 version_type=linux # correct to gnu/linux during the next big refactor 11425 need_lib_prefix=no 11426 need_version=no 11427 hardcode_into_libs=yes 11428 if test ia64 = "$host_cpu"; then 11429 # AIX 5 supports IA64 11430 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11431 shlibpath_var=LD_LIBRARY_PATH 11432 else 11433 # With GCC up to 2.95.x, collect2 would create an import file 11434 # for dependence libraries. The import file would start with 11435 # the line '#! .'. This would cause the generated library to 11436 # depend on '.', always an invalid library. This was fixed in 11437 # development snapshots of GCC prior to 3.0. 11438 case $host_os in 11439 aix4 | aix4.[01] | aix4.[01].*) 11440 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11441 echo ' yes ' 11442 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11443 : 11444 else 11445 can_build_shared=no 11446 fi 11447 ;; 11448 esac 11449 # Using Import Files as archive members, it is possible to support 11450 # filename-based versioning of shared library archives on AIX. While 11451 # this would work for both with and without runtime linking, it will 11452 # prevent static linking of such archives. So we do filename-based 11453 # shared library versioning with .so extension only, which is used 11454 # when both runtime linking and shared linking is enabled. 11455 # Unfortunately, runtime linking may impact performance, so we do 11456 # not want this to be the default eventually. Also, we use the 11457 # versioned .so libs for executables only if there is the -brtl 11458 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11459 # To allow for filename-based versioning support, we need to create 11460 # libNAME.so.V as an archive file, containing: 11461 # *) an Import File, referring to the versioned filename of the 11462 # archive as well as the shared archive member, telling the 11463 # bitwidth (32 or 64) of that shared object, and providing the 11464 # list of exported symbols of that shared object, eventually 11465 # decorated with the 'weak' keyword 11466 # *) the shared object with the F_LOADONLY flag set, to really avoid 11467 # it being seen by the linker. 11468 # At run time we better use the real file rather than another symlink, 11469 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11470 11471 case $with_aix_soname,$aix_use_runtimelinking in 11472 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11473 # soname into executable. Probably we can add versioning support to 11474 # collect2, so additional links can be useful in future. 11475 aix,yes) # traditional libtool 11476 dynamic_linker='AIX unversionable lib.so' 11477 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11478 # instead of lib<name>.a to let people know that these are not 11479 # typical AIX shared libraries. 11480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11481 ;; 11482 aix,no) # traditional AIX only 11483 dynamic_linker='AIX lib.a(lib.so.V)' 11484 # We preserve .a as extension for shared libraries through AIX4.2 11485 # and later when we are not doing run time linking. 11486 library_names_spec='$libname$release.a $libname.a' 11487 soname_spec='$libname$release$shared_ext$major' 11488 ;; 11489 svr4,*) # full svr4 only 11490 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11491 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11492 # We do not specify a path in Import Files, so LIBPATH fires. 11493 shlibpath_overrides_runpath=yes 11494 ;; 11495 *,yes) # both, prefer svr4 11496 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11497 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11498 # unpreferred sharedlib libNAME.a needs extra handling 11499 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11500 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11501 # We do not specify a path in Import Files, so LIBPATH fires. 11502 shlibpath_overrides_runpath=yes 11503 ;; 11504 *,no) # both, prefer aix 11505 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11506 library_names_spec='$libname$release.a $libname.a' 11507 soname_spec='$libname$release$shared_ext$major' 11508 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11509 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11510 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11511 ;; 11512 esac 11513 shlibpath_var=LIBPATH 11514 fi 11515 ;; 11516 11517amigaos*) 11518 case $host_cpu in 11519 powerpc) 11520 # Since July 2007 AmigaOS4 officially supports .so libraries. 11521 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11522 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11523 ;; 11524 m68k) 11525 library_names_spec='$libname.ixlibrary $libname.a' 11526 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11527 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 11528 ;; 11529 esac 11530 ;; 11531 11532beos*) 11533 library_names_spec='$libname$shared_ext' 11534 dynamic_linker="$host_os ld.so" 11535 shlibpath_var=LIBRARY_PATH 11536 ;; 11537 11538bsdi[45]*) 11539 version_type=linux # correct to gnu/linux during the next big refactor 11540 need_version=no 11541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11542 soname_spec='$libname$release$shared_ext$major' 11543 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11544 shlibpath_var=LD_LIBRARY_PATH 11545 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11546 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11547 # the default ld.so.conf also contains /usr/contrib/lib and 11548 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11549 # libtool to hard-code these into programs 11550 ;; 11551 11552cygwin* | mingw* | pw32* | cegcc*) 11553 version_type=windows 11554 shrext_cmds=.dll 11555 need_version=no 11556 need_lib_prefix=no 11557 11558 case $GCC,$cc_basename in 11559 yes,*) 11560 # gcc 11561 library_names_spec='$libname.dll.a' 11562 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11563 postinstall_cmds='base_file=`basename \$file`~ 11564 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11565 dldir=$destdir/`dirname \$dlpath`~ 11566 test -d \$dldir || mkdir -p \$dldir~ 11567 $install_prog $dir/$dlname \$dldir/$dlname~ 11568 chmod a+x \$dldir/$dlname~ 11569 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11570 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11571 fi' 11572 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11573 dlpath=$dir/\$dldll~ 11574 $RM \$dlpath' 11575 shlibpath_overrides_runpath=yes 11576 11577 case $host_os in 11578 cygwin*) 11579 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11580 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11581 11582 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11583 ;; 11584 mingw* | cegcc*) 11585 # MinGW DLLs use traditional 'lib' prefix 11586 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11587 ;; 11588 pw32*) 11589 # pw32 DLLs use 'pw' prefix rather than 'lib' 11590 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11591 ;; 11592 esac 11593 dynamic_linker='Win32 ld.exe' 11594 ;; 11595 11596 *,cl*) 11597 # Native MSVC 11598 libname_spec='$name' 11599 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11600 library_names_spec='$libname.dll.lib' 11601 11602 case $build_os in 11603 mingw*) 11604 sys_lib_search_path_spec= 11605 lt_save_ifs=$IFS 11606 IFS=';' 11607 for lt_path in $LIB 11608 do 11609 IFS=$lt_save_ifs 11610 # Let DOS variable expansion print the short 8.3 style file name. 11611 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11612 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11613 done 11614 IFS=$lt_save_ifs 11615 # Convert to MSYS style. 11616 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11617 ;; 11618 cygwin*) 11619 # Convert to unix form, then to dos form, then back to unix form 11620 # but this time dos style (no spaces!) so that the unix form looks 11621 # like /cygdrive/c/PROGRA~1:/cygdr... 11622 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11623 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11624 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11625 ;; 11626 *) 11627 sys_lib_search_path_spec=$LIB 11628 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11629 # It is most probably a Windows format PATH. 11630 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11631 else 11632 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11633 fi 11634 # FIXME: find the short name or the path components, as spaces are 11635 # common. (e.g. "Program Files" -> "PROGRA~1") 11636 ;; 11637 esac 11638 11639 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11640 postinstall_cmds='base_file=`basename \$file`~ 11641 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11642 dldir=$destdir/`dirname \$dlpath`~ 11643 test -d \$dldir || mkdir -p \$dldir~ 11644 $install_prog $dir/$dlname \$dldir/$dlname' 11645 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11646 dlpath=$dir/\$dldll~ 11647 $RM \$dlpath' 11648 shlibpath_overrides_runpath=yes 11649 dynamic_linker='Win32 link.exe' 11650 ;; 11651 11652 *) 11653 # Assume MSVC wrapper 11654 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11655 dynamic_linker='Win32 ld.exe' 11656 ;; 11657 esac 11658 # FIXME: first we should search . and the directory the executable is in 11659 shlibpath_var=PATH 11660 ;; 11661 11662darwin* | rhapsody*) 11663 dynamic_linker="$host_os dyld" 11664 version_type=darwin 11665 need_lib_prefix=no 11666 need_version=no 11667 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11668 soname_spec='$libname$release$major$shared_ext' 11669 shlibpath_overrides_runpath=yes 11670 shlibpath_var=DYLD_LIBRARY_PATH 11671 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11672 11673 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11674 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11675 ;; 11676 11677dgux*) 11678 version_type=linux # correct to gnu/linux during the next big refactor 11679 need_lib_prefix=no 11680 need_version=no 11681 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11682 soname_spec='$libname$release$shared_ext$major' 11683 shlibpath_var=LD_LIBRARY_PATH 11684 ;; 11685 11686freebsd* | dragonfly*) 11687 # DragonFly does not have aout. When/if they implement a new 11688 # versioning mechanism, adjust this. 11689 if test -x /usr/bin/objformat; then 11690 objformat=`/usr/bin/objformat` 11691 else 11692 case $host_os in 11693 freebsd[23].*) objformat=aout ;; 11694 *) objformat=elf ;; 11695 esac 11696 fi 11697 version_type=freebsd-$objformat 11698 case $version_type in 11699 freebsd-elf*) 11700 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11701 soname_spec='$libname$release$shared_ext$major' 11702 need_version=no 11703 need_lib_prefix=no 11704 ;; 11705 freebsd-*) 11706 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11707 need_version=yes 11708 ;; 11709 esac 11710 shlibpath_var=LD_LIBRARY_PATH 11711 case $host_os in 11712 freebsd2.*) 11713 shlibpath_overrides_runpath=yes 11714 ;; 11715 freebsd3.[01]* | freebsdelf3.[01]*) 11716 shlibpath_overrides_runpath=yes 11717 hardcode_into_libs=yes 11718 ;; 11719 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11720 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11721 shlibpath_overrides_runpath=no 11722 hardcode_into_libs=yes 11723 ;; 11724 *) # from 4.6 on, and DragonFly 11725 shlibpath_overrides_runpath=yes 11726 hardcode_into_libs=yes 11727 ;; 11728 esac 11729 ;; 11730 11731haiku*) 11732 version_type=linux # correct to gnu/linux during the next big refactor 11733 need_lib_prefix=no 11734 need_version=no 11735 dynamic_linker="$host_os runtime_loader" 11736 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11737 soname_spec='$libname$release$shared_ext$major' 11738 shlibpath_var=LIBRARY_PATH 11739 shlibpath_overrides_runpath=no 11740 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11741 hardcode_into_libs=yes 11742 ;; 11743 11744hpux9* | hpux10* | hpux11*) 11745 # Give a soname corresponding to the major version so that dld.sl refuses to 11746 # link against other versions. 11747 version_type=sunos 11748 need_lib_prefix=no 11749 need_version=no 11750 case $host_cpu in 11751 ia64*) 11752 shrext_cmds='.so' 11753 hardcode_into_libs=yes 11754 dynamic_linker="$host_os dld.so" 11755 shlibpath_var=LD_LIBRARY_PATH 11756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11757 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11758 soname_spec='$libname$release$shared_ext$major' 11759 if test 32 = "$HPUX_IA64_MODE"; then 11760 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11761 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11762 else 11763 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11764 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11765 fi 11766 ;; 11767 hppa*64*) 11768 shrext_cmds='.sl' 11769 hardcode_into_libs=yes 11770 dynamic_linker="$host_os dld.sl" 11771 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11772 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11774 soname_spec='$libname$release$shared_ext$major' 11775 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11776 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11777 ;; 11778 *) 11779 shrext_cmds='.sl' 11780 dynamic_linker="$host_os dld.sl" 11781 shlibpath_var=SHLIB_PATH 11782 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11784 soname_spec='$libname$release$shared_ext$major' 11785 ;; 11786 esac 11787 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11788 postinstall_cmds='chmod 555 $lib' 11789 # or fails outright, so override atomically: 11790 install_override_mode=555 11791 ;; 11792 11793interix[3-9]*) 11794 version_type=linux # correct to gnu/linux during the next big refactor 11795 need_lib_prefix=no 11796 need_version=no 11797 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11798 soname_spec='$libname$release$shared_ext$major' 11799 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11800 shlibpath_var=LD_LIBRARY_PATH 11801 shlibpath_overrides_runpath=no 11802 hardcode_into_libs=yes 11803 ;; 11804 11805irix5* | irix6* | nonstopux*) 11806 case $host_os in 11807 nonstopux*) version_type=nonstopux ;; 11808 *) 11809 if test yes = "$lt_cv_prog_gnu_ld"; then 11810 version_type=linux # correct to gnu/linux during the next big refactor 11811 else 11812 version_type=irix 11813 fi ;; 11814 esac 11815 need_lib_prefix=no 11816 need_version=no 11817 soname_spec='$libname$release$shared_ext$major' 11818 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11819 case $host_os in 11820 irix5* | nonstopux*) 11821 libsuff= shlibsuff= 11822 ;; 11823 *) 11824 case $LD in # libtool.m4 will add one of these switches to LD 11825 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11826 libsuff= shlibsuff= libmagic=32-bit;; 11827 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11828 libsuff=32 shlibsuff=N32 libmagic=N32;; 11829 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11830 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11831 *) libsuff= shlibsuff= libmagic=never-match;; 11832 esac 11833 ;; 11834 esac 11835 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11836 shlibpath_overrides_runpath=no 11837 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11838 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11839 hardcode_into_libs=yes 11840 ;; 11841 11842# No shared lib support for Linux oldld, aout, or coff. 11843linux*oldld* | linux*aout* | linux*coff*) 11844 dynamic_linker=no 11845 ;; 11846 11847linux*android*) 11848 version_type=none # Android doesn't support versioned libraries. 11849 need_lib_prefix=no 11850 need_version=no 11851 library_names_spec='$libname$release$shared_ext' 11852 soname_spec='$libname$release$shared_ext' 11853 finish_cmds= 11854 shlibpath_var=LD_LIBRARY_PATH 11855 shlibpath_overrides_runpath=yes 11856 11857 # This implies no fast_install, which is unacceptable. 11858 # Some rework will be needed to allow for fast_install 11859 # before this can be enabled. 11860 hardcode_into_libs=yes 11861 11862 dynamic_linker='Android linker' 11863 # Don't embed -rpath directories since the linker doesn't support them. 11864 hardcode_libdir_flag_spec='-L$libdir' 11865 ;; 11866 11867# This must be glibc/ELF. 11868linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11869 version_type=linux # correct to gnu/linux during the next big refactor 11870 need_lib_prefix=no 11871 need_version=no 11872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11873 soname_spec='$libname$release$shared_ext$major' 11874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11875 shlibpath_var=LD_LIBRARY_PATH 11876 shlibpath_overrides_runpath=no 11877 11878 # Some binutils ld are patched to set DT_RUNPATH 11879 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11880 $as_echo_n "(cached) " >&6 11881else 11882 lt_cv_shlibpath_overrides_runpath=no 11883 save_LDFLAGS=$LDFLAGS 11884 save_libdir=$libdir 11885 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11886 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11888/* end confdefs.h. */ 11889 11890int 11891main () 11892{ 11893 11894 ; 11895 return 0; 11896} 11897_ACEOF 11898if ac_fn_c_try_link "$LINENO"; then : 11899 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11900 lt_cv_shlibpath_overrides_runpath=yes 11901fi 11902fi 11903rm -f core conftest.err conftest.$ac_objext \ 11904 conftest$ac_exeext conftest.$ac_ext 11905 LDFLAGS=$save_LDFLAGS 11906 libdir=$save_libdir 11907 11908fi 11909 11910 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11911 11912 # This implies no fast_install, which is unacceptable. 11913 # Some rework will be needed to allow for fast_install 11914 # before this can be enabled. 11915 hardcode_into_libs=yes 11916 11917 # Add ABI-specific directories to the system library path. 11918 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11919 11920 # Ideally, we could use ldconfig to report *all* directores which are 11921 # searched for libraries, however this is still not possible. Aside from not 11922 # being certain /sbin/ldconfig is available, command 11923 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11924 # even though it is searched at run-time. Try to do the best guess by 11925 # appending ld.so.conf contents (and includes) to the search path. 11926 if test -f /etc/ld.so.conf; then 11927 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' ' '` 11928 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11929 fi 11930 11931 # We used to test for /lib/ld.so.1 and disable shared libraries on 11932 # powerpc, because MkLinux only supported shared libraries with the 11933 # GNU dynamic linker. Since this was broken with cross compilers, 11934 # most powerpc-linux boxes support dynamic linking these days and 11935 # people can always --disable-shared, the test was removed, and we 11936 # assume the GNU/Linux dynamic linker is in use. 11937 dynamic_linker='GNU/Linux ld.so' 11938 ;; 11939 11940netbsd*) 11941 version_type=sunos 11942 need_lib_prefix=no 11943 need_version=no 11944 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11945 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11947 dynamic_linker='NetBSD (a.out) ld.so' 11948 else 11949 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11950 soname_spec='$libname$release$shared_ext$major' 11951 dynamic_linker='NetBSD ld.elf_so' 11952 fi 11953 shlibpath_var=LD_LIBRARY_PATH 11954 shlibpath_overrides_runpath=yes 11955 hardcode_into_libs=yes 11956 ;; 11957 11958newsos6) 11959 version_type=linux # correct to gnu/linux during the next big refactor 11960 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11961 shlibpath_var=LD_LIBRARY_PATH 11962 shlibpath_overrides_runpath=yes 11963 ;; 11964 11965*nto* | *qnx*) 11966 version_type=qnx 11967 need_lib_prefix=no 11968 need_version=no 11969 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11970 soname_spec='$libname$release$shared_ext$major' 11971 shlibpath_var=LD_LIBRARY_PATH 11972 shlibpath_overrides_runpath=no 11973 hardcode_into_libs=yes 11974 dynamic_linker='ldqnx.so' 11975 ;; 11976 11977openbsd* | bitrig*) 11978 version_type=sunos 11979 sys_lib_dlsearch_path_spec=/usr/lib 11980 need_lib_prefix=no 11981 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11982 need_version=no 11983 else 11984 need_version=yes 11985 fi 11986 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11988 shlibpath_var=LD_LIBRARY_PATH 11989 shlibpath_overrides_runpath=yes 11990 ;; 11991 11992os2*) 11993 libname_spec='$name' 11994 version_type=windows 11995 shrext_cmds=.dll 11996 need_version=no 11997 need_lib_prefix=no 11998 # OS/2 can only load a DLL with a base name of 8 characters or less. 11999 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12000 v=$($ECHO $release$versuffix | tr -d .-); 12001 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12002 $ECHO $n$v`$shared_ext' 12003 library_names_spec='${libname}_dll.$libext' 12004 dynamic_linker='OS/2 ld.exe' 12005 shlibpath_var=BEGINLIBPATH 12006 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12007 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12008 postinstall_cmds='base_file=`basename \$file`~ 12009 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12010 dldir=$destdir/`dirname \$dlpath`~ 12011 test -d \$dldir || mkdir -p \$dldir~ 12012 $install_prog $dir/$dlname \$dldir/$dlname~ 12013 chmod a+x \$dldir/$dlname~ 12014 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12015 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12016 fi' 12017 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12018 dlpath=$dir/\$dldll~ 12019 $RM \$dlpath' 12020 ;; 12021 12022osf3* | osf4* | osf5*) 12023 version_type=osf 12024 need_lib_prefix=no 12025 need_version=no 12026 soname_spec='$libname$release$shared_ext$major' 12027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12028 shlibpath_var=LD_LIBRARY_PATH 12029 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12030 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12031 ;; 12032 12033rdos*) 12034 dynamic_linker=no 12035 ;; 12036 12037solaris*) 12038 version_type=linux # correct to gnu/linux during the next big refactor 12039 need_lib_prefix=no 12040 need_version=no 12041 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12042 soname_spec='$libname$release$shared_ext$major' 12043 shlibpath_var=LD_LIBRARY_PATH 12044 shlibpath_overrides_runpath=yes 12045 hardcode_into_libs=yes 12046 # ldd complains unless libraries are executable 12047 postinstall_cmds='chmod +x $lib' 12048 ;; 12049 12050sunos4*) 12051 version_type=sunos 12052 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12053 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12054 shlibpath_var=LD_LIBRARY_PATH 12055 shlibpath_overrides_runpath=yes 12056 if test yes = "$with_gnu_ld"; then 12057 need_lib_prefix=no 12058 fi 12059 need_version=yes 12060 ;; 12061 12062sysv4 | sysv4.3*) 12063 version_type=linux # correct to gnu/linux during the next big refactor 12064 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12065 soname_spec='$libname$release$shared_ext$major' 12066 shlibpath_var=LD_LIBRARY_PATH 12067 case $host_vendor in 12068 sni) 12069 shlibpath_overrides_runpath=no 12070 need_lib_prefix=no 12071 runpath_var=LD_RUN_PATH 12072 ;; 12073 siemens) 12074 need_lib_prefix=no 12075 ;; 12076 motorola) 12077 need_lib_prefix=no 12078 need_version=no 12079 shlibpath_overrides_runpath=no 12080 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12081 ;; 12082 esac 12083 ;; 12084 12085sysv4*MP*) 12086 if test -d /usr/nec; then 12087 version_type=linux # correct to gnu/linux during the next big refactor 12088 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12089 soname_spec='$libname$shared_ext.$major' 12090 shlibpath_var=LD_LIBRARY_PATH 12091 fi 12092 ;; 12093 12094sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12095 version_type=sco 12096 need_lib_prefix=no 12097 need_version=no 12098 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12099 soname_spec='$libname$release$shared_ext$major' 12100 shlibpath_var=LD_LIBRARY_PATH 12101 shlibpath_overrides_runpath=yes 12102 hardcode_into_libs=yes 12103 if test yes = "$with_gnu_ld"; then 12104 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12105 else 12106 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12107 case $host_os in 12108 sco3.2v5*) 12109 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12110 ;; 12111 esac 12112 fi 12113 sys_lib_dlsearch_path_spec='/usr/lib' 12114 ;; 12115 12116tpf*) 12117 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12118 version_type=linux # correct to gnu/linux during the next big refactor 12119 need_lib_prefix=no 12120 need_version=no 12121 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12122 shlibpath_var=LD_LIBRARY_PATH 12123 shlibpath_overrides_runpath=no 12124 hardcode_into_libs=yes 12125 ;; 12126 12127uts4*) 12128 version_type=linux # correct to gnu/linux during the next big refactor 12129 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12130 soname_spec='$libname$release$shared_ext$major' 12131 shlibpath_var=LD_LIBRARY_PATH 12132 ;; 12133 12134*) 12135 dynamic_linker=no 12136 ;; 12137esac 12138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12139$as_echo "$dynamic_linker" >&6; } 12140test no = "$dynamic_linker" && can_build_shared=no 12141 12142variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12143if test yes = "$GCC"; then 12144 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12145fi 12146 12147if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12148 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12149fi 12150 12151if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12152 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12153fi 12154 12155# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12156configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12157 12158# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12159func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12160 12161# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12162configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12261$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12262hardcode_action= 12263if test -n "$hardcode_libdir_flag_spec" || 12264 test -n "$runpath_var" || 12265 test yes = "$hardcode_automatic"; then 12266 12267 # We can hardcode non-existent directories. 12268 if test no != "$hardcode_direct" && 12269 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12270 # have to relink, otherwise we might link with an installed library 12271 # when we should be linking with a yet-to-be-installed one 12272 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12273 test no != "$hardcode_minus_L"; then 12274 # Linking always hardcodes the temporary library directory. 12275 hardcode_action=relink 12276 else 12277 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12278 hardcode_action=immediate 12279 fi 12280else 12281 # We cannot hardcode anything, or else we can only hardcode existing 12282 # directories. 12283 hardcode_action=unsupported 12284fi 12285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12286$as_echo "$hardcode_action" >&6; } 12287 12288if test relink = "$hardcode_action" || 12289 test yes = "$inherit_rpath"; then 12290 # Fast installation is not supported 12291 enable_fast_install=no 12292elif test yes = "$shlibpath_overrides_runpath" || 12293 test no = "$enable_shared"; then 12294 # Fast installation is not necessary 12295 enable_fast_install=needless 12296fi 12297 12298 12299 12300 12301 12302 12303 if test yes != "$enable_dlopen"; then 12304 enable_dlopen=unknown 12305 enable_dlopen_self=unknown 12306 enable_dlopen_self_static=unknown 12307else 12308 lt_cv_dlopen=no 12309 lt_cv_dlopen_libs= 12310 12311 case $host_os in 12312 beos*) 12313 lt_cv_dlopen=load_add_on 12314 lt_cv_dlopen_libs= 12315 lt_cv_dlopen_self=yes 12316 ;; 12317 12318 mingw* | pw32* | cegcc*) 12319 lt_cv_dlopen=LoadLibrary 12320 lt_cv_dlopen_libs= 12321 ;; 12322 12323 cygwin*) 12324 lt_cv_dlopen=dlopen 12325 lt_cv_dlopen_libs= 12326 ;; 12327 12328 darwin*) 12329 # if libdl is installed we need to link against it 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12331$as_echo_n "checking for dlopen in -ldl... " >&6; } 12332if ${ac_cv_lib_dl_dlopen+:} false; then : 12333 $as_echo_n "(cached) " >&6 12334else 12335 ac_check_lib_save_LIBS=$LIBS 12336LIBS="-ldl $LIBS" 12337cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12338/* end confdefs.h. */ 12339 12340/* Override any GCC internal prototype to avoid an error. 12341 Use char because int might match the return type of a GCC 12342 builtin and then its argument prototype would still apply. */ 12343#ifdef __cplusplus 12344extern "C" 12345#endif 12346char dlopen (); 12347int 12348main () 12349{ 12350return dlopen (); 12351 ; 12352 return 0; 12353} 12354_ACEOF 12355if ac_fn_c_try_link "$LINENO"; then : 12356 ac_cv_lib_dl_dlopen=yes 12357else 12358 ac_cv_lib_dl_dlopen=no 12359fi 12360rm -f core conftest.err conftest.$ac_objext \ 12361 conftest$ac_exeext conftest.$ac_ext 12362LIBS=$ac_check_lib_save_LIBS 12363fi 12364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12365$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12366if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12367 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12368else 12369 12370 lt_cv_dlopen=dyld 12371 lt_cv_dlopen_libs= 12372 lt_cv_dlopen_self=yes 12373 12374fi 12375 12376 ;; 12377 12378 tpf*) 12379 # Don't try to run any link tests for TPF. We know it's impossible 12380 # because TPF is a cross-compiler, and we know how we open DSOs. 12381 lt_cv_dlopen=dlopen 12382 lt_cv_dlopen_libs= 12383 lt_cv_dlopen_self=no 12384 ;; 12385 12386 *) 12387 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12388if test "x$ac_cv_func_shl_load" = xyes; then : 12389 lt_cv_dlopen=shl_load 12390else 12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12392$as_echo_n "checking for shl_load in -ldld... " >&6; } 12393if ${ac_cv_lib_dld_shl_load+:} false; then : 12394 $as_echo_n "(cached) " >&6 12395else 12396 ac_check_lib_save_LIBS=$LIBS 12397LIBS="-ldld $LIBS" 12398cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12399/* end confdefs.h. */ 12400 12401/* Override any GCC internal prototype to avoid an error. 12402 Use char because int might match the return type of a GCC 12403 builtin and then its argument prototype would still apply. */ 12404#ifdef __cplusplus 12405extern "C" 12406#endif 12407char shl_load (); 12408int 12409main () 12410{ 12411return shl_load (); 12412 ; 12413 return 0; 12414} 12415_ACEOF 12416if ac_fn_c_try_link "$LINENO"; then : 12417 ac_cv_lib_dld_shl_load=yes 12418else 12419 ac_cv_lib_dld_shl_load=no 12420fi 12421rm -f core conftest.err conftest.$ac_objext \ 12422 conftest$ac_exeext conftest.$ac_ext 12423LIBS=$ac_check_lib_save_LIBS 12424fi 12425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12426$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12427if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12428 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12429else 12430 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12431if test "x$ac_cv_func_dlopen" = xyes; then : 12432 lt_cv_dlopen=dlopen 12433else 12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12435$as_echo_n "checking for dlopen in -ldl... " >&6; } 12436if ${ac_cv_lib_dl_dlopen+:} false; then : 12437 $as_echo_n "(cached) " >&6 12438else 12439 ac_check_lib_save_LIBS=$LIBS 12440LIBS="-ldl $LIBS" 12441cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12442/* end confdefs.h. */ 12443 12444/* Override any GCC internal prototype to avoid an error. 12445 Use char because int might match the return type of a GCC 12446 builtin and then its argument prototype would still apply. */ 12447#ifdef __cplusplus 12448extern "C" 12449#endif 12450char dlopen (); 12451int 12452main () 12453{ 12454return dlopen (); 12455 ; 12456 return 0; 12457} 12458_ACEOF 12459if ac_fn_c_try_link "$LINENO"; then : 12460 ac_cv_lib_dl_dlopen=yes 12461else 12462 ac_cv_lib_dl_dlopen=no 12463fi 12464rm -f core conftest.err conftest.$ac_objext \ 12465 conftest$ac_exeext conftest.$ac_ext 12466LIBS=$ac_check_lib_save_LIBS 12467fi 12468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12469$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12470if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12471 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12472else 12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12474$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12475if ${ac_cv_lib_svld_dlopen+:} false; then : 12476 $as_echo_n "(cached) " >&6 12477else 12478 ac_check_lib_save_LIBS=$LIBS 12479LIBS="-lsvld $LIBS" 12480cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12481/* end confdefs.h. */ 12482 12483/* Override any GCC internal prototype to avoid an error. 12484 Use char because int might match the return type of a GCC 12485 builtin and then its argument prototype would still apply. */ 12486#ifdef __cplusplus 12487extern "C" 12488#endif 12489char dlopen (); 12490int 12491main () 12492{ 12493return dlopen (); 12494 ; 12495 return 0; 12496} 12497_ACEOF 12498if ac_fn_c_try_link "$LINENO"; then : 12499 ac_cv_lib_svld_dlopen=yes 12500else 12501 ac_cv_lib_svld_dlopen=no 12502fi 12503rm -f core conftest.err conftest.$ac_objext \ 12504 conftest$ac_exeext conftest.$ac_ext 12505LIBS=$ac_check_lib_save_LIBS 12506fi 12507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12508$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12509if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12510 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12511else 12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12513$as_echo_n "checking for dld_link in -ldld... " >&6; } 12514if ${ac_cv_lib_dld_dld_link+:} false; then : 12515 $as_echo_n "(cached) " >&6 12516else 12517 ac_check_lib_save_LIBS=$LIBS 12518LIBS="-ldld $LIBS" 12519cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12520/* end confdefs.h. */ 12521 12522/* Override any GCC internal prototype to avoid an error. 12523 Use char because int might match the return type of a GCC 12524 builtin and then its argument prototype would still apply. */ 12525#ifdef __cplusplus 12526extern "C" 12527#endif 12528char dld_link (); 12529int 12530main () 12531{ 12532return dld_link (); 12533 ; 12534 return 0; 12535} 12536_ACEOF 12537if ac_fn_c_try_link "$LINENO"; then : 12538 ac_cv_lib_dld_dld_link=yes 12539else 12540 ac_cv_lib_dld_dld_link=no 12541fi 12542rm -f core conftest.err conftest.$ac_objext \ 12543 conftest$ac_exeext conftest.$ac_ext 12544LIBS=$ac_check_lib_save_LIBS 12545fi 12546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12547$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12548if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12549 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12550fi 12551 12552 12553fi 12554 12555 12556fi 12557 12558 12559fi 12560 12561 12562fi 12563 12564 12565fi 12566 12567 ;; 12568 esac 12569 12570 if test no = "$lt_cv_dlopen"; then 12571 enable_dlopen=no 12572 else 12573 enable_dlopen=yes 12574 fi 12575 12576 case $lt_cv_dlopen in 12577 dlopen) 12578 save_CPPFLAGS=$CPPFLAGS 12579 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12580 12581 save_LDFLAGS=$LDFLAGS 12582 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12583 12584 save_LIBS=$LIBS 12585 LIBS="$lt_cv_dlopen_libs $LIBS" 12586 12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12588$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12589if ${lt_cv_dlopen_self+:} false; then : 12590 $as_echo_n "(cached) " >&6 12591else 12592 if test yes = "$cross_compiling"; then : 12593 lt_cv_dlopen_self=cross 12594else 12595 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12596 lt_status=$lt_dlunknown 12597 cat > conftest.$ac_ext <<_LT_EOF 12598#line $LINENO "configure" 12599#include "confdefs.h" 12600 12601#if HAVE_DLFCN_H 12602#include <dlfcn.h> 12603#endif 12604 12605#include <stdio.h> 12606 12607#ifdef RTLD_GLOBAL 12608# define LT_DLGLOBAL RTLD_GLOBAL 12609#else 12610# ifdef DL_GLOBAL 12611# define LT_DLGLOBAL DL_GLOBAL 12612# else 12613# define LT_DLGLOBAL 0 12614# endif 12615#endif 12616 12617/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12618 find out it does not work in some platform. */ 12619#ifndef LT_DLLAZY_OR_NOW 12620# ifdef RTLD_LAZY 12621# define LT_DLLAZY_OR_NOW RTLD_LAZY 12622# else 12623# ifdef DL_LAZY 12624# define LT_DLLAZY_OR_NOW DL_LAZY 12625# else 12626# ifdef RTLD_NOW 12627# define LT_DLLAZY_OR_NOW RTLD_NOW 12628# else 12629# ifdef DL_NOW 12630# define LT_DLLAZY_OR_NOW DL_NOW 12631# else 12632# define LT_DLLAZY_OR_NOW 0 12633# endif 12634# endif 12635# endif 12636# endif 12637#endif 12638 12639/* When -fvisibility=hidden is used, assume the code has been annotated 12640 correspondingly for the symbols needed. */ 12641#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12642int fnord () __attribute__((visibility("default"))); 12643#endif 12644 12645int fnord () { return 42; } 12646int main () 12647{ 12648 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12649 int status = $lt_dlunknown; 12650 12651 if (self) 12652 { 12653 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12654 else 12655 { 12656 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12657 else puts (dlerror ()); 12658 } 12659 /* dlclose (self); */ 12660 } 12661 else 12662 puts (dlerror ()); 12663 12664 return status; 12665} 12666_LT_EOF 12667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12668 (eval $ac_link) 2>&5 12669 ac_status=$? 12670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12671 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12672 (./conftest; exit; ) >&5 2>/dev/null 12673 lt_status=$? 12674 case x$lt_status in 12675 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12676 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12677 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12678 esac 12679 else : 12680 # compilation failed 12681 lt_cv_dlopen_self=no 12682 fi 12683fi 12684rm -fr conftest* 12685 12686 12687fi 12688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12689$as_echo "$lt_cv_dlopen_self" >&6; } 12690 12691 if test yes = "$lt_cv_dlopen_self"; then 12692 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12694$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12695if ${lt_cv_dlopen_self_static+:} false; then : 12696 $as_echo_n "(cached) " >&6 12697else 12698 if test yes = "$cross_compiling"; then : 12699 lt_cv_dlopen_self_static=cross 12700else 12701 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12702 lt_status=$lt_dlunknown 12703 cat > conftest.$ac_ext <<_LT_EOF 12704#line $LINENO "configure" 12705#include "confdefs.h" 12706 12707#if HAVE_DLFCN_H 12708#include <dlfcn.h> 12709#endif 12710 12711#include <stdio.h> 12712 12713#ifdef RTLD_GLOBAL 12714# define LT_DLGLOBAL RTLD_GLOBAL 12715#else 12716# ifdef DL_GLOBAL 12717# define LT_DLGLOBAL DL_GLOBAL 12718# else 12719# define LT_DLGLOBAL 0 12720# endif 12721#endif 12722 12723/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12724 find out it does not work in some platform. */ 12725#ifndef LT_DLLAZY_OR_NOW 12726# ifdef RTLD_LAZY 12727# define LT_DLLAZY_OR_NOW RTLD_LAZY 12728# else 12729# ifdef DL_LAZY 12730# define LT_DLLAZY_OR_NOW DL_LAZY 12731# else 12732# ifdef RTLD_NOW 12733# define LT_DLLAZY_OR_NOW RTLD_NOW 12734# else 12735# ifdef DL_NOW 12736# define LT_DLLAZY_OR_NOW DL_NOW 12737# else 12738# define LT_DLLAZY_OR_NOW 0 12739# endif 12740# endif 12741# endif 12742# endif 12743#endif 12744 12745/* When -fvisibility=hidden is used, assume the code has been annotated 12746 correspondingly for the symbols needed. */ 12747#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12748int fnord () __attribute__((visibility("default"))); 12749#endif 12750 12751int fnord () { return 42; } 12752int main () 12753{ 12754 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12755 int status = $lt_dlunknown; 12756 12757 if (self) 12758 { 12759 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12760 else 12761 { 12762 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12763 else puts (dlerror ()); 12764 } 12765 /* dlclose (self); */ 12766 } 12767 else 12768 puts (dlerror ()); 12769 12770 return status; 12771} 12772_LT_EOF 12773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12774 (eval $ac_link) 2>&5 12775 ac_status=$? 12776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12777 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12778 (./conftest; exit; ) >&5 2>/dev/null 12779 lt_status=$? 12780 case x$lt_status in 12781 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12782 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12783 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12784 esac 12785 else : 12786 # compilation failed 12787 lt_cv_dlopen_self_static=no 12788 fi 12789fi 12790rm -fr conftest* 12791 12792 12793fi 12794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12795$as_echo "$lt_cv_dlopen_self_static" >&6; } 12796 fi 12797 12798 CPPFLAGS=$save_CPPFLAGS 12799 LDFLAGS=$save_LDFLAGS 12800 LIBS=$save_LIBS 12801 ;; 12802 esac 12803 12804 case $lt_cv_dlopen_self in 12805 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12806 *) enable_dlopen_self=unknown ;; 12807 esac 12808 12809 case $lt_cv_dlopen_self_static in 12810 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12811 *) enable_dlopen_self_static=unknown ;; 12812 esac 12813fi 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831striplib= 12832old_striplib= 12833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12834$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12835if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12836 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12837 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12839$as_echo "yes" >&6; } 12840else 12841# FIXME - insert some real tests, host_os isn't really good enough 12842 case $host_os in 12843 darwin*) 12844 if test -n "$STRIP"; then 12845 striplib="$STRIP -x" 12846 old_striplib="$STRIP -S" 12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12848$as_echo "yes" >&6; } 12849 else 12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12851$as_echo "no" >&6; } 12852 fi 12853 ;; 12854 *) 12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12856$as_echo "no" >&6; } 12857 ;; 12858 esac 12859fi 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 # Report what library types will actually be built 12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12874$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12876$as_echo "$can_build_shared" >&6; } 12877 12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12879$as_echo_n "checking whether to build shared libraries... " >&6; } 12880 test no = "$can_build_shared" && enable_shared=no 12881 12882 # On AIX, shared libraries and static libraries use the same namespace, and 12883 # are all built from PIC. 12884 case $host_os in 12885 aix3*) 12886 test yes = "$enable_shared" && enable_static=no 12887 if test -n "$RANLIB"; then 12888 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12889 postinstall_cmds='$RANLIB $lib' 12890 fi 12891 ;; 12892 12893 aix[4-9]*) 12894 if test ia64 != "$host_cpu"; then 12895 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12896 yes,aix,yes) ;; # shared object as lib.so file only 12897 yes,svr4,*) ;; # shared object as lib.so archive member only 12898 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12899 esac 12900 fi 12901 ;; 12902 esac 12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12904$as_echo "$enable_shared" >&6; } 12905 12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12907$as_echo_n "checking whether to build static libraries... " >&6; } 12908 # Make sure either enable_shared or enable_static is yes. 12909 test yes = "$enable_shared" || enable_static=yes 12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12911$as_echo "$enable_static" >&6; } 12912 12913 12914 12915 12916fi 12917ac_ext=c 12918ac_cpp='$CPP $CPPFLAGS' 12919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12921ac_compiler_gnu=$ac_cv_c_compiler_gnu 12922 12923CC=$lt_save_CC 12924 12925 if test -n "$CXX" && ( test no != "$CXX" && 12926 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 12927 (test g++ != "$CXX"))); then 12928 ac_ext=cpp 12929ac_cpp='$CXXCPP $CPPFLAGS' 12930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12934$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12935if test -z "$CXXCPP"; then 12936 if ${ac_cv_prog_CXXCPP+:} false; then : 12937 $as_echo_n "(cached) " >&6 12938else 12939 # Double quotes because CXXCPP needs to be expanded 12940 for CXXCPP in "$CXX -E" "/lib/cpp" 12941 do 12942 ac_preproc_ok=false 12943for ac_cxx_preproc_warn_flag in '' yes 12944do 12945 # Use a header file that comes with gcc, so configuring glibc 12946 # with a fresh cross-compiler works. 12947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12948 # <limits.h> exists even on freestanding compilers. 12949 # On the NeXT, cc -E runs the code through the compiler's parser, 12950 # not just through cpp. "Syntax error" is here to catch this case. 12951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12952/* end confdefs.h. */ 12953#ifdef __STDC__ 12954# include <limits.h> 12955#else 12956# include <assert.h> 12957#endif 12958 Syntax error 12959_ACEOF 12960if ac_fn_cxx_try_cpp "$LINENO"; then : 12961 12962else 12963 # Broken: fails on valid input. 12964continue 12965fi 12966rm -f conftest.err conftest.i conftest.$ac_ext 12967 12968 # OK, works on sane cases. Now check whether nonexistent headers 12969 # can be detected and how. 12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12971/* end confdefs.h. */ 12972#include <ac_nonexistent.h> 12973_ACEOF 12974if ac_fn_cxx_try_cpp "$LINENO"; then : 12975 # Broken: success on invalid input. 12976continue 12977else 12978 # Passes both tests. 12979ac_preproc_ok=: 12980break 12981fi 12982rm -f conftest.err conftest.i conftest.$ac_ext 12983 12984done 12985# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12986rm -f conftest.i conftest.err conftest.$ac_ext 12987if $ac_preproc_ok; then : 12988 break 12989fi 12990 12991 done 12992 ac_cv_prog_CXXCPP=$CXXCPP 12993 12994fi 12995 CXXCPP=$ac_cv_prog_CXXCPP 12996else 12997 ac_cv_prog_CXXCPP=$CXXCPP 12998fi 12999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13000$as_echo "$CXXCPP" >&6; } 13001ac_preproc_ok=false 13002for ac_cxx_preproc_warn_flag in '' yes 13003do 13004 # Use a header file that comes with gcc, so configuring glibc 13005 # with a fresh cross-compiler works. 13006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13007 # <limits.h> exists even on freestanding compilers. 13008 # On the NeXT, cc -E runs the code through the compiler's parser, 13009 # not just through cpp. "Syntax error" is here to catch this case. 13010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13011/* end confdefs.h. */ 13012#ifdef __STDC__ 13013# include <limits.h> 13014#else 13015# include <assert.h> 13016#endif 13017 Syntax error 13018_ACEOF 13019if ac_fn_cxx_try_cpp "$LINENO"; then : 13020 13021else 13022 # Broken: fails on valid input. 13023continue 13024fi 13025rm -f conftest.err conftest.i conftest.$ac_ext 13026 13027 # OK, works on sane cases. Now check whether nonexistent headers 13028 # can be detected and how. 13029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13030/* end confdefs.h. */ 13031#include <ac_nonexistent.h> 13032_ACEOF 13033if ac_fn_cxx_try_cpp "$LINENO"; then : 13034 # Broken: success on invalid input. 13035continue 13036else 13037 # Passes both tests. 13038ac_preproc_ok=: 13039break 13040fi 13041rm -f conftest.err conftest.i conftest.$ac_ext 13042 13043done 13044# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13045rm -f conftest.i conftest.err conftest.$ac_ext 13046if $ac_preproc_ok; then : 13047 13048else 13049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13051as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13052See \`config.log' for more details" "$LINENO" 5; } 13053fi 13054 13055ac_ext=c 13056ac_cpp='$CPP $CPPFLAGS' 13057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13059ac_compiler_gnu=$ac_cv_c_compiler_gnu 13060 13061else 13062 _lt_caught_CXX_error=yes 13063fi 13064 13065ac_ext=cpp 13066ac_cpp='$CXXCPP $CPPFLAGS' 13067ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13068ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13069ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13070 13071archive_cmds_need_lc_CXX=no 13072allow_undefined_flag_CXX= 13073always_export_symbols_CXX=no 13074archive_expsym_cmds_CXX= 13075compiler_needs_object_CXX=no 13076export_dynamic_flag_spec_CXX= 13077hardcode_direct_CXX=no 13078hardcode_direct_absolute_CXX=no 13079hardcode_libdir_flag_spec_CXX= 13080hardcode_libdir_separator_CXX= 13081hardcode_minus_L_CXX=no 13082hardcode_shlibpath_var_CXX=unsupported 13083hardcode_automatic_CXX=no 13084inherit_rpath_CXX=no 13085module_cmds_CXX= 13086module_expsym_cmds_CXX= 13087link_all_deplibs_CXX=unknown 13088old_archive_cmds_CXX=$old_archive_cmds 13089reload_flag_CXX=$reload_flag 13090reload_cmds_CXX=$reload_cmds 13091no_undefined_flag_CXX= 13092whole_archive_flag_spec_CXX= 13093enable_shared_with_static_runtimes_CXX=no 13094 13095# Source file extension for C++ test sources. 13096ac_ext=cpp 13097 13098# Object file extension for compiled C++ test sources. 13099objext=o 13100objext_CXX=$objext 13101 13102# No sense in running all these tests if we already determined that 13103# the CXX compiler isn't working. Some variables (like enable_shared) 13104# are currently assumed to apply to all compilers on this platform, 13105# and will be corrupted by setting them based on a non-working compiler. 13106if test yes != "$_lt_caught_CXX_error"; then 13107 # Code to be used in simple compile tests 13108 lt_simple_compile_test_code="int some_variable = 0;" 13109 13110 # Code to be used in simple link tests 13111 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13112 13113 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13114 13115 13116 13117 13118 13119 13120# If no C compiler was specified, use CC. 13121LTCC=${LTCC-"$CC"} 13122 13123# If no C compiler flags were specified, use CFLAGS. 13124LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13125 13126# Allow CC to be a program name with arguments. 13127compiler=$CC 13128 13129 13130 # save warnings/boilerplate of simple test code 13131 ac_outfile=conftest.$ac_objext 13132echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13133eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13134_lt_compiler_boilerplate=`cat conftest.err` 13135$RM conftest* 13136 13137 ac_outfile=conftest.$ac_objext 13138echo "$lt_simple_link_test_code" >conftest.$ac_ext 13139eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13140_lt_linker_boilerplate=`cat conftest.err` 13141$RM -r conftest* 13142 13143 13144 # Allow CC to be a program name with arguments. 13145 lt_save_CC=$CC 13146 lt_save_CFLAGS=$CFLAGS 13147 lt_save_LD=$LD 13148 lt_save_GCC=$GCC 13149 GCC=$GXX 13150 lt_save_with_gnu_ld=$with_gnu_ld 13151 lt_save_path_LD=$lt_cv_path_LD 13152 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13153 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13154 else 13155 $as_unset lt_cv_prog_gnu_ld 13156 fi 13157 if test -n "${lt_cv_path_LDCXX+set}"; then 13158 lt_cv_path_LD=$lt_cv_path_LDCXX 13159 else 13160 $as_unset lt_cv_path_LD 13161 fi 13162 test -z "${LDCXX+set}" || LD=$LDCXX 13163 CC=${CXX-"c++"} 13164 CFLAGS=$CXXFLAGS 13165 compiler=$CC 13166 compiler_CXX=$CC 13167 func_cc_basename $compiler 13168cc_basename=$func_cc_basename_result 13169 13170 13171 if test -n "$compiler"; then 13172 # We don't want -fno-exception when compiling C++ code, so set the 13173 # no_builtin_flag separately 13174 if test yes = "$GXX"; then 13175 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13176 else 13177 lt_prog_compiler_no_builtin_flag_CXX= 13178 fi 13179 13180 if test yes = "$GXX"; then 13181 # Set up default GNU C++ configuration 13182 13183 13184 13185# Check whether --with-gnu-ld was given. 13186if test "${with_gnu_ld+set}" = set; then : 13187 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13188else 13189 with_gnu_ld=no 13190fi 13191 13192ac_prog=ld 13193if test yes = "$GCC"; then 13194 # Check if gcc -print-prog-name=ld gives a path. 13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13196$as_echo_n "checking for ld used by $CC... " >&6; } 13197 case $host in 13198 *-*-mingw*) 13199 # gcc leaves a trailing carriage return, which upsets mingw 13200 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13201 *) 13202 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13203 esac 13204 case $ac_prog in 13205 # Accept absolute paths. 13206 [\\/]* | ?:[\\/]*) 13207 re_direlt='/[^/][^/]*/\.\./' 13208 # Canonicalize the pathname of ld 13209 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13210 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13211 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13212 done 13213 test -z "$LD" && LD=$ac_prog 13214 ;; 13215 "") 13216 # If it fails, then pretend we aren't using GCC. 13217 ac_prog=ld 13218 ;; 13219 *) 13220 # If it is relative, then search for the first ld in PATH. 13221 with_gnu_ld=unknown 13222 ;; 13223 esac 13224elif test yes = "$with_gnu_ld"; then 13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13226$as_echo_n "checking for GNU ld... " >&6; } 13227else 13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13229$as_echo_n "checking for non-GNU ld... " >&6; } 13230fi 13231if ${lt_cv_path_LD+:} false; then : 13232 $as_echo_n "(cached) " >&6 13233else 13234 if test -z "$LD"; then 13235 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13236 for ac_dir in $PATH; do 13237 IFS=$lt_save_ifs 13238 test -z "$ac_dir" && ac_dir=. 13239 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13240 lt_cv_path_LD=$ac_dir/$ac_prog 13241 # Check to see if the program is GNU ld. I'd rather use --version, 13242 # but apparently some variants of GNU ld only accept -v. 13243 # Break only if it was the GNU/non-GNU ld that we prefer. 13244 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13245 *GNU* | *'with BFD'*) 13246 test no != "$with_gnu_ld" && break 13247 ;; 13248 *) 13249 test yes != "$with_gnu_ld" && break 13250 ;; 13251 esac 13252 fi 13253 done 13254 IFS=$lt_save_ifs 13255else 13256 lt_cv_path_LD=$LD # Let the user override the test with a path. 13257fi 13258fi 13259 13260LD=$lt_cv_path_LD 13261if test -n "$LD"; then 13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13263$as_echo "$LD" >&6; } 13264else 13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13266$as_echo "no" >&6; } 13267fi 13268test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13270$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13271if ${lt_cv_prog_gnu_ld+:} false; then : 13272 $as_echo_n "(cached) " >&6 13273else 13274 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13275case `$LD -v 2>&1 </dev/null` in 13276*GNU* | *'with BFD'*) 13277 lt_cv_prog_gnu_ld=yes 13278 ;; 13279*) 13280 lt_cv_prog_gnu_ld=no 13281 ;; 13282esac 13283fi 13284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13285$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13286with_gnu_ld=$lt_cv_prog_gnu_ld 13287 13288 13289 13290 13291 13292 13293 13294 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13295 # archiving commands below assume that GNU ld is being used. 13296 if test yes = "$with_gnu_ld"; then 13297 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13298 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' 13299 13300 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13301 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13302 13303 # If archive_cmds runs LD, not CC, wlarc should be empty 13304 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13305 # investigate it a little bit more. (MM) 13306 wlarc='$wl' 13307 13308 # ancient GNU ld didn't support --whole-archive et. al. 13309 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13310 $GREP 'no-whole-archive' > /dev/null; then 13311 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13312 else 13313 whole_archive_flag_spec_CXX= 13314 fi 13315 else 13316 with_gnu_ld=no 13317 wlarc= 13318 13319 # A generic and very simple default shared library creation 13320 # command for GNU C++ for the case where it uses the native 13321 # linker, instead of GNU ld. If possible, this setting should 13322 # overridden to take advantage of the native linker features on 13323 # the platform it is being used on. 13324 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13325 fi 13326 13327 # Commands to make compiler produce verbose output that lists 13328 # what "hidden" libraries, object files and flags are used when 13329 # linking a shared library. 13330 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13331 13332 else 13333 GXX=no 13334 with_gnu_ld=no 13335 wlarc= 13336 fi 13337 13338 # PORTME: fill in a description of your system's C++ link characteristics 13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13340$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13341 ld_shlibs_CXX=yes 13342 case $host_os in 13343 aix3*) 13344 # FIXME: insert proper C++ library support 13345 ld_shlibs_CXX=no 13346 ;; 13347 aix[4-9]*) 13348 if test ia64 = "$host_cpu"; then 13349 # On IA64, the linker does run time linking by default, so we don't 13350 # have to do anything special. 13351 aix_use_runtimelinking=no 13352 exp_sym_flag='-Bexport' 13353 no_entry_flag= 13354 else 13355 aix_use_runtimelinking=no 13356 13357 # Test if we are trying to use run time linking or normal 13358 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13359 # have runtime linking enabled, and use it for executables. 13360 # For shared libraries, we enable/disable runtime linking 13361 # depending on the kind of the shared library created - 13362 # when "with_aix_soname,aix_use_runtimelinking" is: 13363 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13364 # "aix,yes" lib.so shared, rtl:yes, for executables 13365 # lib.a static archive 13366 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13367 # lib.a(lib.so.V) shared, rtl:no, for executables 13368 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13369 # lib.a(lib.so.V) shared, rtl:no 13370 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13371 # lib.a static archive 13372 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13373 for ld_flag in $LDFLAGS; do 13374 case $ld_flag in 13375 *-brtl*) 13376 aix_use_runtimelinking=yes 13377 break 13378 ;; 13379 esac 13380 done 13381 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13382 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13383 # so we don't have lib.a shared libs to link our executables. 13384 # We have to force runtime linking in this case. 13385 aix_use_runtimelinking=yes 13386 LDFLAGS="$LDFLAGS -Wl,-brtl" 13387 fi 13388 ;; 13389 esac 13390 13391 exp_sym_flag='-bexport' 13392 no_entry_flag='-bnoentry' 13393 fi 13394 13395 # When large executables or shared objects are built, AIX ld can 13396 # have problems creating the table of contents. If linking a library 13397 # or program results in "error TOC overflow" add -mminimal-toc to 13398 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13399 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13400 13401 archive_cmds_CXX='' 13402 hardcode_direct_CXX=yes 13403 hardcode_direct_absolute_CXX=yes 13404 hardcode_libdir_separator_CXX=':' 13405 link_all_deplibs_CXX=yes 13406 file_list_spec_CXX='$wl-f,' 13407 case $with_aix_soname,$aix_use_runtimelinking in 13408 aix,*) ;; # no import file 13409 svr4,* | *,yes) # use import file 13410 # The Import File defines what to hardcode. 13411 hardcode_direct_CXX=no 13412 hardcode_direct_absolute_CXX=no 13413 ;; 13414 esac 13415 13416 if test yes = "$GXX"; then 13417 case $host_os in aix4.[012]|aix4.[012].*) 13418 # We only want to do this on AIX 4.2 and lower, the check 13419 # below for broken collect2 doesn't work under 4.3+ 13420 collect2name=`$CC -print-prog-name=collect2` 13421 if test -f "$collect2name" && 13422 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13423 then 13424 # We have reworked collect2 13425 : 13426 else 13427 # We have old collect2 13428 hardcode_direct_CXX=unsupported 13429 # It fails to find uninstalled libraries when the uninstalled 13430 # path is not listed in the libpath. Setting hardcode_minus_L 13431 # to unsupported forces relinking 13432 hardcode_minus_L_CXX=yes 13433 hardcode_libdir_flag_spec_CXX='-L$libdir' 13434 hardcode_libdir_separator_CXX= 13435 fi 13436 esac 13437 shared_flag='-shared' 13438 if test yes = "$aix_use_runtimelinking"; then 13439 shared_flag=$shared_flag' $wl-G' 13440 fi 13441 # Need to ensure runtime linking is disabled for the traditional 13442 # shared library, or the linker may eventually find shared libraries 13443 # /with/ Import File - we do not want to mix them. 13444 shared_flag_aix='-shared' 13445 shared_flag_svr4='-shared $wl-G' 13446 else 13447 # not using gcc 13448 if test ia64 = "$host_cpu"; then 13449 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13450 # chokes on -Wl,-G. The following line is correct: 13451 shared_flag='-G' 13452 else 13453 if test yes = "$aix_use_runtimelinking"; then 13454 shared_flag='$wl-G' 13455 else 13456 shared_flag='$wl-bM:SRE' 13457 fi 13458 shared_flag_aix='$wl-bM:SRE' 13459 shared_flag_svr4='$wl-G' 13460 fi 13461 fi 13462 13463 export_dynamic_flag_spec_CXX='$wl-bexpall' 13464 # It seems that -bexpall does not export symbols beginning with 13465 # underscore (_), so it is better to generate a list of symbols to 13466 # export. 13467 always_export_symbols_CXX=yes 13468 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13469 # Warning - without using the other runtime loading flags (-brtl), 13470 # -berok will link without error, but may produce a broken library. 13471 # The "-G" linker flag allows undefined symbols. 13472 no_undefined_flag_CXX='-bernotok' 13473 # Determine the default libpath from the value encoded in an empty 13474 # executable. 13475 if test set = "${lt_cv_aix_libpath+set}"; then 13476 aix_libpath=$lt_cv_aix_libpath 13477else 13478 if ${lt_cv_aix_libpath__CXX+:} false; then : 13479 $as_echo_n "(cached) " >&6 13480else 13481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13482/* end confdefs.h. */ 13483 13484int 13485main () 13486{ 13487 13488 ; 13489 return 0; 13490} 13491_ACEOF 13492if ac_fn_cxx_try_link "$LINENO"; then : 13493 13494 lt_aix_libpath_sed=' 13495 /Import File Strings/,/^$/ { 13496 /^0/ { 13497 s/^0 *\([^ ]*\) *$/\1/ 13498 p 13499 } 13500 }' 13501 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13502 # Check for a 64-bit object if we didn't find anything. 13503 if test -z "$lt_cv_aix_libpath__CXX"; then 13504 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13505 fi 13506fi 13507rm -f core conftest.err conftest.$ac_objext \ 13508 conftest$ac_exeext conftest.$ac_ext 13509 if test -z "$lt_cv_aix_libpath__CXX"; then 13510 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13511 fi 13512 13513fi 13514 13515 aix_libpath=$lt_cv_aix_libpath__CXX 13516fi 13517 13518 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13519 13520 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 13521 else 13522 if test ia64 = "$host_cpu"; then 13523 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13524 allow_undefined_flag_CXX="-z nodefs" 13525 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" 13526 else 13527 # Determine the default libpath from the value encoded in an 13528 # empty executable. 13529 if test set = "${lt_cv_aix_libpath+set}"; then 13530 aix_libpath=$lt_cv_aix_libpath 13531else 13532 if ${lt_cv_aix_libpath__CXX+:} false; then : 13533 $as_echo_n "(cached) " >&6 13534else 13535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13536/* end confdefs.h. */ 13537 13538int 13539main () 13540{ 13541 13542 ; 13543 return 0; 13544} 13545_ACEOF 13546if ac_fn_cxx_try_link "$LINENO"; then : 13547 13548 lt_aix_libpath_sed=' 13549 /Import File Strings/,/^$/ { 13550 /^0/ { 13551 s/^0 *\([^ ]*\) *$/\1/ 13552 p 13553 } 13554 }' 13555 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13556 # Check for a 64-bit object if we didn't find anything. 13557 if test -z "$lt_cv_aix_libpath__CXX"; then 13558 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13559 fi 13560fi 13561rm -f core conftest.err conftest.$ac_objext \ 13562 conftest$ac_exeext conftest.$ac_ext 13563 if test -z "$lt_cv_aix_libpath__CXX"; then 13564 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13565 fi 13566 13567fi 13568 13569 aix_libpath=$lt_cv_aix_libpath__CXX 13570fi 13571 13572 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13573 # Warning - without using the other run time loading flags, 13574 # -berok will link without error, but may produce a broken library. 13575 no_undefined_flag_CXX=' $wl-bernotok' 13576 allow_undefined_flag_CXX=' $wl-berok' 13577 if test yes = "$with_gnu_ld"; then 13578 # We only use this code for GNU lds that support --whole-archive. 13579 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13580 else 13581 # Exported symbols can be pulled into shared objects from archives 13582 whole_archive_flag_spec_CXX='$convenience' 13583 fi 13584 archive_cmds_need_lc_CXX=yes 13585 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13586 # -brtl affects multiple linker settings, -berok does not and is overridden later 13587 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13588 if test svr4 != "$with_aix_soname"; then 13589 # This is similar to how AIX traditionally builds its shared 13590 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13591 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 13592 fi 13593 if test aix != "$with_aix_soname"; then 13594 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 13595 else 13596 # used by -dlpreopen to get the symbols 13597 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13598 fi 13599 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 13600 fi 13601 fi 13602 ;; 13603 13604 beos*) 13605 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13606 allow_undefined_flag_CXX=unsupported 13607 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13608 # support --undefined. This deserves some investigation. FIXME 13609 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13610 else 13611 ld_shlibs_CXX=no 13612 fi 13613 ;; 13614 13615 chorus*) 13616 case $cc_basename in 13617 *) 13618 # FIXME: insert proper C++ library support 13619 ld_shlibs_CXX=no 13620 ;; 13621 esac 13622 ;; 13623 13624 cygwin* | mingw* | pw32* | cegcc*) 13625 case $GXX,$cc_basename in 13626 ,cl* | no,cl*) 13627 # Native MSVC 13628 # hardcode_libdir_flag_spec is actually meaningless, as there is 13629 # no search path for DLLs. 13630 hardcode_libdir_flag_spec_CXX=' ' 13631 allow_undefined_flag_CXX=unsupported 13632 always_export_symbols_CXX=yes 13633 file_list_spec_CXX='@' 13634 # Tell ltmain to make .lib files, not .a files. 13635 libext=lib 13636 # Tell ltmain to make .dll files, not .so files. 13637 shrext_cmds=.dll 13638 # FIXME: Setting linknames here is a bad hack. 13639 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13640 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13641 cp "$export_symbols" "$output_objdir/$soname.def"; 13642 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13643 else 13644 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13645 fi~ 13646 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13647 linknames=' 13648 # The linker will not automatically build a static lib if we build a DLL. 13649 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13650 enable_shared_with_static_runtimes_CXX=yes 13651 # Don't use ranlib 13652 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13653 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13654 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13655 case $lt_outputfile in 13656 *.exe|*.EXE) ;; 13657 *) 13658 lt_outputfile=$lt_outputfile.exe 13659 lt_tool_outputfile=$lt_tool_outputfile.exe 13660 ;; 13661 esac~ 13662 func_to_tool_file "$lt_outputfile"~ 13663 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13664 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13665 $RM "$lt_outputfile.manifest"; 13666 fi' 13667 ;; 13668 *) 13669 # g++ 13670 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13671 # as there is no search path for DLLs. 13672 hardcode_libdir_flag_spec_CXX='-L$libdir' 13673 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 13674 allow_undefined_flag_CXX=unsupported 13675 always_export_symbols_CXX=no 13676 enable_shared_with_static_runtimes_CXX=yes 13677 13678 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13679 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' 13680 # If the export-symbols file already is a .def file, use it as 13681 # is; otherwise, prepend EXPORTS... 13682 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13683 cp $export_symbols $output_objdir/$soname.def; 13684 else 13685 echo EXPORTS > $output_objdir/$soname.def; 13686 cat $export_symbols >> $output_objdir/$soname.def; 13687 fi~ 13688 $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' 13689 else 13690 ld_shlibs_CXX=no 13691 fi 13692 ;; 13693 esac 13694 ;; 13695 darwin* | rhapsody*) 13696 13697 13698 archive_cmds_need_lc_CXX=no 13699 hardcode_direct_CXX=no 13700 hardcode_automatic_CXX=yes 13701 hardcode_shlibpath_var_CXX=unsupported 13702 if test yes = "$lt_cv_ld_force_load"; then 13703 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\"`' 13704 13705 else 13706 whole_archive_flag_spec_CXX='' 13707 fi 13708 link_all_deplibs_CXX=yes 13709 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 13710 case $cc_basename in 13711 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13712 *) _lt_dar_can_shared=$GCC ;; 13713 esac 13714 if test yes = "$_lt_dar_can_shared"; then 13715 output_verbose_link_cmd=func_echo_all 13716 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" 13717 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13718 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" 13719 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" 13720 if test yes != "$lt_cv_apple_cc_single_mod"; then 13721 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" 13722 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" 13723 fi 13724 13725 else 13726 ld_shlibs_CXX=no 13727 fi 13728 13729 ;; 13730 13731 os2*) 13732 hardcode_libdir_flag_spec_CXX='-L$libdir' 13733 hardcode_minus_L_CXX=yes 13734 allow_undefined_flag_CXX=unsupported 13735 shrext_cmds=.dll 13736 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13737 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13738 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13739 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13740 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13741 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13742 emximp -o $lib $output_objdir/$libname.def' 13743 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13744 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13745 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13746 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13747 prefix_cmds="$SED"~ 13748 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13749 prefix_cmds="$prefix_cmds -e 1d"; 13750 fi~ 13751 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13752 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13753 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13754 emximp -o $lib $output_objdir/$libname.def' 13755 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13756 enable_shared_with_static_runtimes_CXX=yes 13757 ;; 13758 13759 dgux*) 13760 case $cc_basename in 13761 ec++*) 13762 # FIXME: insert proper C++ library support 13763 ld_shlibs_CXX=no 13764 ;; 13765 ghcx*) 13766 # Green Hills C++ Compiler 13767 # FIXME: insert proper C++ library support 13768 ld_shlibs_CXX=no 13769 ;; 13770 *) 13771 # FIXME: insert proper C++ library support 13772 ld_shlibs_CXX=no 13773 ;; 13774 esac 13775 ;; 13776 13777 freebsd2.*) 13778 # C++ shared libraries reported to be fairly broken before 13779 # switch to ELF 13780 ld_shlibs_CXX=no 13781 ;; 13782 13783 freebsd-elf*) 13784 archive_cmds_need_lc_CXX=no 13785 ;; 13786 13787 freebsd* | dragonfly*) 13788 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13789 # conventions 13790 ld_shlibs_CXX=yes 13791 ;; 13792 13793 haiku*) 13794 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13795 link_all_deplibs_CXX=yes 13796 ;; 13797 13798 hpux9*) 13799 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13800 hardcode_libdir_separator_CXX=: 13801 export_dynamic_flag_spec_CXX='$wl-E' 13802 hardcode_direct_CXX=yes 13803 hardcode_minus_L_CXX=yes # Not in the search PATH, 13804 # but as the default 13805 # location of the library. 13806 13807 case $cc_basename in 13808 CC*) 13809 # FIXME: insert proper C++ library support 13810 ld_shlibs_CXX=no 13811 ;; 13812 aCC*) 13813 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13814 # Commands to make compiler produce verbose output that lists 13815 # what "hidden" libraries, object files and flags are used when 13816 # linking a shared library. 13817 # 13818 # There doesn't appear to be a way to prevent this compiler from 13819 # explicitly linking system object files so we need to strip them 13820 # from the output so that they don't get included in the library 13821 # dependencies. 13822 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"' 13823 ;; 13824 *) 13825 if test yes = "$GXX"; then 13826 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 13827 else 13828 # FIXME: insert proper C++ library support 13829 ld_shlibs_CXX=no 13830 fi 13831 ;; 13832 esac 13833 ;; 13834 13835 hpux10*|hpux11*) 13836 if test no = "$with_gnu_ld"; then 13837 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13838 hardcode_libdir_separator_CXX=: 13839 13840 case $host_cpu in 13841 hppa*64*|ia64*) 13842 ;; 13843 *) 13844 export_dynamic_flag_spec_CXX='$wl-E' 13845 ;; 13846 esac 13847 fi 13848 case $host_cpu in 13849 hppa*64*|ia64*) 13850 hardcode_direct_CXX=no 13851 hardcode_shlibpath_var_CXX=no 13852 ;; 13853 *) 13854 hardcode_direct_CXX=yes 13855 hardcode_direct_absolute_CXX=yes 13856 hardcode_minus_L_CXX=yes # Not in the search PATH, 13857 # but as the default 13858 # location of the library. 13859 ;; 13860 esac 13861 13862 case $cc_basename in 13863 CC*) 13864 # FIXME: insert proper C++ library support 13865 ld_shlibs_CXX=no 13866 ;; 13867 aCC*) 13868 case $host_cpu in 13869 hppa*64*) 13870 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13871 ;; 13872 ia64*) 13873 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13874 ;; 13875 *) 13876 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13877 ;; 13878 esac 13879 # Commands to make compiler produce verbose output that lists 13880 # what "hidden" libraries, object files and flags are used when 13881 # linking a shared library. 13882 # 13883 # There doesn't appear to be a way to prevent this compiler from 13884 # explicitly linking system object files so we need to strip them 13885 # from the output so that they don't get included in the library 13886 # dependencies. 13887 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"' 13888 ;; 13889 *) 13890 if test yes = "$GXX"; then 13891 if test no = "$with_gnu_ld"; then 13892 case $host_cpu in 13893 hppa*64*) 13894 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13895 ;; 13896 ia64*) 13897 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13898 ;; 13899 *) 13900 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' 13901 ;; 13902 esac 13903 fi 13904 else 13905 # FIXME: insert proper C++ library support 13906 ld_shlibs_CXX=no 13907 fi 13908 ;; 13909 esac 13910 ;; 13911 13912 interix[3-9]*) 13913 hardcode_direct_CXX=no 13914 hardcode_shlibpath_var_CXX=no 13915 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13916 export_dynamic_flag_spec_CXX='$wl-E' 13917 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13918 # Instead, shared libraries are loaded at an image base (0x10000000 by 13919 # default) and relocated if they conflict, which is a slow very memory 13920 # consuming and fragmenting process. To avoid this, we pick a random, 13921 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13922 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13923 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' 13924 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' 13925 ;; 13926 irix5* | irix6*) 13927 case $cc_basename in 13928 CC*) 13929 # SGI C++ 13930 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' 13931 13932 # Archives containing C++ object files must be created using 13933 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13934 # necessary to make sure instantiated templates are included 13935 # in the archive. 13936 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13937 ;; 13938 *) 13939 if test yes = "$GXX"; then 13940 if test no = "$with_gnu_ld"; then 13941 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' 13942 else 13943 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' 13944 fi 13945 fi 13946 link_all_deplibs_CXX=yes 13947 ;; 13948 esac 13949 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13950 hardcode_libdir_separator_CXX=: 13951 inherit_rpath_CXX=yes 13952 ;; 13953 13954 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13955 case $cc_basename in 13956 KCC*) 13957 # Kuck and Associates, Inc. (KAI) C++ Compiler 13958 13959 # KCC will only create a shared library if the output file 13960 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13961 # to its proper name (with version) after linking. 13962 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' 13963 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' 13964 # Commands to make compiler produce verbose output that lists 13965 # what "hidden" libraries, object files and flags are used when 13966 # linking a shared library. 13967 # 13968 # There doesn't appear to be a way to prevent this compiler from 13969 # explicitly linking system object files so we need to strip them 13970 # from the output so that they don't get included in the library 13971 # dependencies. 13972 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"' 13973 13974 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13975 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13976 13977 # Archives containing C++ object files must be created using 13978 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13979 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13980 ;; 13981 icpc* | ecpc* ) 13982 # Intel C++ 13983 with_gnu_ld=yes 13984 # version 8.0 and above of icpc choke on multiply defined symbols 13985 # if we add $predep_objects and $postdep_objects, however 7.1 and 13986 # earlier do not add the objects themselves. 13987 case `$CC -V 2>&1` in 13988 *"Version 7."*) 13989 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13990 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' 13991 ;; 13992 *) # Version 8.0 or newer 13993 tmp_idyn= 13994 case $host_cpu in 13995 ia64*) tmp_idyn=' -i_dynamic';; 13996 esac 13997 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13998 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' 13999 ;; 14000 esac 14001 archive_cmds_need_lc_CXX=no 14002 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14003 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14004 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14005 ;; 14006 pgCC* | pgcpp*) 14007 # Portland Group C++ compiler 14008 case `$CC -V` in 14009 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14010 prelink_cmds_CXX='tpldir=Template.dir~ 14011 rm -rf $tpldir~ 14012 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14013 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14014 old_archive_cmds_CXX='tpldir=Template.dir~ 14015 rm -rf $tpldir~ 14016 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14017 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14018 $RANLIB $oldlib' 14019 archive_cmds_CXX='tpldir=Template.dir~ 14020 rm -rf $tpldir~ 14021 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14022 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14023 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14024 rm -rf $tpldir~ 14025 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14026 $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' 14027 ;; 14028 *) # Version 6 and above use weak symbols 14029 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14030 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' 14031 ;; 14032 esac 14033 14034 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14035 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14036 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' 14037 ;; 14038 cxx*) 14039 # Compaq C++ 14040 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14041 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' 14042 14043 runpath_var=LD_RUN_PATH 14044 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14045 hardcode_libdir_separator_CXX=: 14046 14047 # Commands to make compiler produce verbose output that lists 14048 # what "hidden" libraries, object files and flags are used when 14049 # linking a shared library. 14050 # 14051 # There doesn't appear to be a way to prevent this compiler from 14052 # explicitly linking system object files so we need to strip them 14053 # from the output so that they don't get included in the library 14054 # dependencies. 14055 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' 14056 ;; 14057 xl* | mpixl* | bgxl*) 14058 # IBM XL 8.0 on PPC, with GNU ld 14059 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14060 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14061 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14062 if test yes = "$supports_anon_versioning"; then 14063 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14064 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14065 echo "local: *; };" >> $output_objdir/$libname.ver~ 14066 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14067 fi 14068 ;; 14069 *) 14070 case `$CC -V 2>&1 | sed 5q` in 14071 *Sun\ C*) 14072 # Sun C++ 5.9 14073 no_undefined_flag_CXX=' -zdefs' 14074 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14075 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' 14076 hardcode_libdir_flag_spec_CXX='-R$libdir' 14077 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' 14078 compiler_needs_object_CXX=yes 14079 14080 # Not sure whether something based on 14081 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14082 # would be better. 14083 output_verbose_link_cmd='func_echo_all' 14084 14085 # Archives containing C++ object files must be created using 14086 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14087 # necessary to make sure instantiated templates are included 14088 # in the archive. 14089 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14090 ;; 14091 esac 14092 ;; 14093 esac 14094 ;; 14095 14096 lynxos*) 14097 # FIXME: insert proper C++ library support 14098 ld_shlibs_CXX=no 14099 ;; 14100 14101 m88k*) 14102 # FIXME: insert proper C++ library support 14103 ld_shlibs_CXX=no 14104 ;; 14105 14106 mvs*) 14107 case $cc_basename in 14108 cxx*) 14109 # FIXME: insert proper C++ library support 14110 ld_shlibs_CXX=no 14111 ;; 14112 *) 14113 # FIXME: insert proper C++ library support 14114 ld_shlibs_CXX=no 14115 ;; 14116 esac 14117 ;; 14118 14119 netbsd*) 14120 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14121 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14122 wlarc= 14123 hardcode_libdir_flag_spec_CXX='-R$libdir' 14124 hardcode_direct_CXX=yes 14125 hardcode_shlibpath_var_CXX=no 14126 fi 14127 # Workaround some broken pre-1.5 toolchains 14128 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14129 ;; 14130 14131 *nto* | *qnx*) 14132 ld_shlibs_CXX=yes 14133 ;; 14134 14135 openbsd* | bitrig*) 14136 if test -f /usr/libexec/ld.so; then 14137 hardcode_direct_CXX=yes 14138 hardcode_shlibpath_var_CXX=no 14139 hardcode_direct_absolute_CXX=yes 14140 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14141 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14142 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14143 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14144 export_dynamic_flag_spec_CXX='$wl-E' 14145 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14146 fi 14147 output_verbose_link_cmd=func_echo_all 14148 else 14149 ld_shlibs_CXX=no 14150 fi 14151 ;; 14152 14153 osf3* | osf4* | osf5*) 14154 case $cc_basename in 14155 KCC*) 14156 # Kuck and Associates, Inc. (KAI) C++ Compiler 14157 14158 # KCC will only create a shared library if the output file 14159 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14160 # to its proper name (with version) after linking. 14161 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' 14162 14163 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14164 hardcode_libdir_separator_CXX=: 14165 14166 # Archives containing C++ object files must be created using 14167 # the KAI C++ compiler. 14168 case $host in 14169 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14170 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14171 esac 14172 ;; 14173 RCC*) 14174 # Rational C++ 2.4.1 14175 # FIXME: insert proper C++ library support 14176 ld_shlibs_CXX=no 14177 ;; 14178 cxx*) 14179 case $host in 14180 osf3*) 14181 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14182 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' 14183 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14184 ;; 14185 *) 14186 allow_undefined_flag_CXX=' -expect_unresolved \*' 14187 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' 14188 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14189 echo "-hidden">> $lib.exp~ 14190 $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~ 14191 $RM $lib.exp' 14192 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14193 ;; 14194 esac 14195 14196 hardcode_libdir_separator_CXX=: 14197 14198 # Commands to make compiler produce verbose output that lists 14199 # what "hidden" libraries, object files and flags are used when 14200 # linking a shared library. 14201 # 14202 # There doesn't appear to be a way to prevent this compiler from 14203 # explicitly linking system object files so we need to strip them 14204 # from the output so that they don't get included in the library 14205 # dependencies. 14206 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"' 14207 ;; 14208 *) 14209 if test yes,no = "$GXX,$with_gnu_ld"; then 14210 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14211 case $host in 14212 osf3*) 14213 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' 14214 ;; 14215 *) 14216 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' 14217 ;; 14218 esac 14219 14220 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14221 hardcode_libdir_separator_CXX=: 14222 14223 # Commands to make compiler produce verbose output that lists 14224 # what "hidden" libraries, object files and flags are used when 14225 # linking a shared library. 14226 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14227 14228 else 14229 # FIXME: insert proper C++ library support 14230 ld_shlibs_CXX=no 14231 fi 14232 ;; 14233 esac 14234 ;; 14235 14236 psos*) 14237 # FIXME: insert proper C++ library support 14238 ld_shlibs_CXX=no 14239 ;; 14240 14241 sunos4*) 14242 case $cc_basename in 14243 CC*) 14244 # Sun C++ 4.x 14245 # FIXME: insert proper C++ library support 14246 ld_shlibs_CXX=no 14247 ;; 14248 lcc*) 14249 # Lucid 14250 # FIXME: insert proper C++ library support 14251 ld_shlibs_CXX=no 14252 ;; 14253 *) 14254 # FIXME: insert proper C++ library support 14255 ld_shlibs_CXX=no 14256 ;; 14257 esac 14258 ;; 14259 14260 solaris*) 14261 case $cc_basename in 14262 CC* | sunCC*) 14263 # Sun C++ 4.2, 5.x and Centerline C++ 14264 archive_cmds_need_lc_CXX=yes 14265 no_undefined_flag_CXX=' -zdefs' 14266 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14267 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14268 $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' 14269 14270 hardcode_libdir_flag_spec_CXX='-R$libdir' 14271 hardcode_shlibpath_var_CXX=no 14272 case $host_os in 14273 solaris2.[0-5] | solaris2.[0-5].*) ;; 14274 *) 14275 # The compiler driver will combine and reorder linker options, 14276 # but understands '-z linker_flag'. 14277 # Supported since Solaris 2.6 (maybe 2.5.1?) 14278 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14279 ;; 14280 esac 14281 link_all_deplibs_CXX=yes 14282 14283 output_verbose_link_cmd='func_echo_all' 14284 14285 # Archives containing C++ object files must be created using 14286 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14287 # necessary to make sure instantiated templates are included 14288 # in the archive. 14289 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14290 ;; 14291 gcx*) 14292 # Green Hills C++ Compiler 14293 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14294 14295 # The C++ compiler must be used to create the archive. 14296 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14297 ;; 14298 *) 14299 # GNU C++ compiler with Solaris linker 14300 if test yes,no = "$GXX,$with_gnu_ld"; then 14301 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14302 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14303 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14304 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14305 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14306 14307 # Commands to make compiler produce verbose output that lists 14308 # what "hidden" libraries, object files and flags are used when 14309 # linking a shared library. 14310 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14311 else 14312 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14313 # platform. 14314 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14315 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14316 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14317 14318 # Commands to make compiler produce verbose output that lists 14319 # what "hidden" libraries, object files and flags are used when 14320 # linking a shared library. 14321 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14322 fi 14323 14324 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14325 case $host_os in 14326 solaris2.[0-5] | solaris2.[0-5].*) ;; 14327 *) 14328 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14329 ;; 14330 esac 14331 fi 14332 ;; 14333 esac 14334 ;; 14335 14336 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14337 no_undefined_flag_CXX='$wl-z,text' 14338 archive_cmds_need_lc_CXX=no 14339 hardcode_shlibpath_var_CXX=no 14340 runpath_var='LD_RUN_PATH' 14341 14342 case $cc_basename in 14343 CC*) 14344 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14345 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14346 ;; 14347 *) 14348 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14349 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14350 ;; 14351 esac 14352 ;; 14353 14354 sysv5* | sco3.2v5* | sco5v6*) 14355 # Note: We CANNOT use -z defs as we might desire, because we do not 14356 # link with -lc, and that would cause any symbols used from libc to 14357 # always be unresolved, which means just about no library would 14358 # ever link correctly. If we're not using GNU ld we use -z text 14359 # though, which does catch some bad symbols but isn't as heavy-handed 14360 # as -z defs. 14361 no_undefined_flag_CXX='$wl-z,text' 14362 allow_undefined_flag_CXX='$wl-z,nodefs' 14363 archive_cmds_need_lc_CXX=no 14364 hardcode_shlibpath_var_CXX=no 14365 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14366 hardcode_libdir_separator_CXX=':' 14367 link_all_deplibs_CXX=yes 14368 export_dynamic_flag_spec_CXX='$wl-Bexport' 14369 runpath_var='LD_RUN_PATH' 14370 14371 case $cc_basename in 14372 CC*) 14373 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14374 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14375 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14376 '"$old_archive_cmds_CXX" 14377 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14378 '"$reload_cmds_CXX" 14379 ;; 14380 *) 14381 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14382 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14383 ;; 14384 esac 14385 ;; 14386 14387 tandem*) 14388 case $cc_basename in 14389 NCC*) 14390 # NonStop-UX NCC 3.20 14391 # FIXME: insert proper C++ library support 14392 ld_shlibs_CXX=no 14393 ;; 14394 *) 14395 # FIXME: insert proper C++ library support 14396 ld_shlibs_CXX=no 14397 ;; 14398 esac 14399 ;; 14400 14401 vxworks*) 14402 # FIXME: insert proper C++ library support 14403 ld_shlibs_CXX=no 14404 ;; 14405 14406 *) 14407 # FIXME: insert proper C++ library support 14408 ld_shlibs_CXX=no 14409 ;; 14410 esac 14411 14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14413$as_echo "$ld_shlibs_CXX" >&6; } 14414 test no = "$ld_shlibs_CXX" && can_build_shared=no 14415 14416 GCC_CXX=$GXX 14417 LD_CXX=$LD 14418 14419 ## CAVEAT EMPTOR: 14420 ## There is no encapsulation within the following macros, do not change 14421 ## the running order or otherwise move them around unless you know exactly 14422 ## what you are doing... 14423 # Dependencies to place before and after the object being linked: 14424predep_objects_CXX= 14425postdep_objects_CXX= 14426predeps_CXX= 14427postdeps_CXX= 14428compiler_lib_search_path_CXX= 14429 14430cat > conftest.$ac_ext <<_LT_EOF 14431class Foo 14432{ 14433public: 14434 Foo (void) { a = 0; } 14435private: 14436 int a; 14437}; 14438_LT_EOF 14439 14440 14441_lt_libdeps_save_CFLAGS=$CFLAGS 14442case "$CC $CFLAGS " in #( 14443*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14444*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14445*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14446esac 14447 14448if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14449 (eval $ac_compile) 2>&5 14450 ac_status=$? 14451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14452 test $ac_status = 0; }; then 14453 # Parse the compiler output and extract the necessary 14454 # objects, libraries and library flags. 14455 14456 # Sentinel used to keep track of whether or not we are before 14457 # the conftest object file. 14458 pre_test_object_deps_done=no 14459 14460 for p in `eval "$output_verbose_link_cmd"`; do 14461 case $prev$p in 14462 14463 -L* | -R* | -l*) 14464 # Some compilers place space between "-{L,R}" and the path. 14465 # Remove the space. 14466 if test x-L = "$p" || 14467 test x-R = "$p"; then 14468 prev=$p 14469 continue 14470 fi 14471 14472 # Expand the sysroot to ease extracting the directories later. 14473 if test -z "$prev"; then 14474 case $p in 14475 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14476 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14477 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14478 esac 14479 fi 14480 case $p in 14481 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14482 esac 14483 if test no = "$pre_test_object_deps_done"; then 14484 case $prev in 14485 -L | -R) 14486 # Internal compiler library paths should come after those 14487 # provided the user. The postdeps already come after the 14488 # user supplied libs so there is no need to process them. 14489 if test -z "$compiler_lib_search_path_CXX"; then 14490 compiler_lib_search_path_CXX=$prev$p 14491 else 14492 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14493 fi 14494 ;; 14495 # The "-l" case would never come before the object being 14496 # linked, so don't bother handling this case. 14497 esac 14498 else 14499 if test -z "$postdeps_CXX"; then 14500 postdeps_CXX=$prev$p 14501 else 14502 postdeps_CXX="${postdeps_CXX} $prev$p" 14503 fi 14504 fi 14505 prev= 14506 ;; 14507 14508 *.lto.$objext) ;; # Ignore GCC LTO objects 14509 *.$objext) 14510 # This assumes that the test object file only shows up 14511 # once in the compiler output. 14512 if test "$p" = "conftest.$objext"; then 14513 pre_test_object_deps_done=yes 14514 continue 14515 fi 14516 14517 if test no = "$pre_test_object_deps_done"; then 14518 if test -z "$predep_objects_CXX"; then 14519 predep_objects_CXX=$p 14520 else 14521 predep_objects_CXX="$predep_objects_CXX $p" 14522 fi 14523 else 14524 if test -z "$postdep_objects_CXX"; then 14525 postdep_objects_CXX=$p 14526 else 14527 postdep_objects_CXX="$postdep_objects_CXX $p" 14528 fi 14529 fi 14530 ;; 14531 14532 *) ;; # Ignore the rest. 14533 14534 esac 14535 done 14536 14537 # Clean up. 14538 rm -f a.out a.exe 14539else 14540 echo "libtool.m4: error: problem compiling CXX test program" 14541fi 14542 14543$RM -f confest.$objext 14544CFLAGS=$_lt_libdeps_save_CFLAGS 14545 14546# PORTME: override above test on systems where it is broken 14547case $host_os in 14548interix[3-9]*) 14549 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14550 # hack all around it, let's just trust "g++" to DTRT. 14551 predep_objects_CXX= 14552 postdep_objects_CXX= 14553 postdeps_CXX= 14554 ;; 14555esac 14556 14557 14558case " $postdeps_CXX " in 14559*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14560esac 14561 compiler_lib_search_dirs_CXX= 14562if test -n "${compiler_lib_search_path_CXX}"; then 14563 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14564fi 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 lt_prog_compiler_wl_CXX= 14597lt_prog_compiler_pic_CXX= 14598lt_prog_compiler_static_CXX= 14599 14600 14601 # C++ specific cases for pic, static, wl, etc. 14602 if test yes = "$GXX"; then 14603 lt_prog_compiler_wl_CXX='-Wl,' 14604 lt_prog_compiler_static_CXX='-static' 14605 14606 case $host_os in 14607 aix*) 14608 # All AIX code is PIC. 14609 if test ia64 = "$host_cpu"; then 14610 # AIX 5 now supports IA64 processor 14611 lt_prog_compiler_static_CXX='-Bstatic' 14612 fi 14613 lt_prog_compiler_pic_CXX='-fPIC' 14614 ;; 14615 14616 amigaos*) 14617 case $host_cpu in 14618 powerpc) 14619 # see comment about AmigaOS4 .so support 14620 lt_prog_compiler_pic_CXX='-fPIC' 14621 ;; 14622 m68k) 14623 # FIXME: we need at least 68020 code to build shared libraries, but 14624 # adding the '-m68020' flag to GCC prevents building anything better, 14625 # like '-m68040'. 14626 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14627 ;; 14628 esac 14629 ;; 14630 14631 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14632 # PIC is the default for these OSes. 14633 ;; 14634 mingw* | cygwin* | os2* | pw32* | cegcc*) 14635 # This hack is so that the source file can tell whether it is being 14636 # built for inclusion in a dll (and should export symbols for example). 14637 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14638 # (--disable-auto-import) libraries 14639 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14640 case $host_os in 14641 os2*) 14642 lt_prog_compiler_static_CXX='$wl-static' 14643 ;; 14644 esac 14645 ;; 14646 darwin* | rhapsody*) 14647 # PIC is the default on this platform 14648 # Common symbols not allowed in MH_DYLIB files 14649 lt_prog_compiler_pic_CXX='-fno-common' 14650 ;; 14651 *djgpp*) 14652 # DJGPP does not support shared libraries at all 14653 lt_prog_compiler_pic_CXX= 14654 ;; 14655 haiku*) 14656 # PIC is the default for Haiku. 14657 # The "-static" flag exists, but is broken. 14658 lt_prog_compiler_static_CXX= 14659 ;; 14660 interix[3-9]*) 14661 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14662 # Instead, we relocate shared libraries at runtime. 14663 ;; 14664 sysv4*MP*) 14665 if test -d /usr/nec; then 14666 lt_prog_compiler_pic_CXX=-Kconform_pic 14667 fi 14668 ;; 14669 hpux*) 14670 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14671 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14672 # sets the default TLS model and affects inlining. 14673 case $host_cpu in 14674 hppa*64*) 14675 ;; 14676 *) 14677 lt_prog_compiler_pic_CXX='-fPIC' 14678 ;; 14679 esac 14680 ;; 14681 *qnx* | *nto*) 14682 # QNX uses GNU C++, but need to define -shared option too, otherwise 14683 # it will coredump. 14684 lt_prog_compiler_pic_CXX='-fPIC -shared' 14685 ;; 14686 *) 14687 lt_prog_compiler_pic_CXX='-fPIC' 14688 ;; 14689 esac 14690 else 14691 case $host_os in 14692 aix[4-9]*) 14693 # All AIX code is PIC. 14694 if test ia64 = "$host_cpu"; then 14695 # AIX 5 now supports IA64 processor 14696 lt_prog_compiler_static_CXX='-Bstatic' 14697 else 14698 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14699 fi 14700 ;; 14701 chorus*) 14702 case $cc_basename in 14703 cxch68*) 14704 # Green Hills C++ Compiler 14705 # _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" 14706 ;; 14707 esac 14708 ;; 14709 mingw* | cygwin* | os2* | pw32* | cegcc*) 14710 # This hack is so that the source file can tell whether it is being 14711 # built for inclusion in a dll (and should export symbols for example). 14712 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14713 ;; 14714 dgux*) 14715 case $cc_basename in 14716 ec++*) 14717 lt_prog_compiler_pic_CXX='-KPIC' 14718 ;; 14719 ghcx*) 14720 # Green Hills C++ Compiler 14721 lt_prog_compiler_pic_CXX='-pic' 14722 ;; 14723 *) 14724 ;; 14725 esac 14726 ;; 14727 freebsd* | dragonfly*) 14728 # FreeBSD uses GNU C++ 14729 ;; 14730 hpux9* | hpux10* | hpux11*) 14731 case $cc_basename in 14732 CC*) 14733 lt_prog_compiler_wl_CXX='-Wl,' 14734 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14735 if test ia64 != "$host_cpu"; then 14736 lt_prog_compiler_pic_CXX='+Z' 14737 fi 14738 ;; 14739 aCC*) 14740 lt_prog_compiler_wl_CXX='-Wl,' 14741 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14742 case $host_cpu in 14743 hppa*64*|ia64*) 14744 # +Z the default 14745 ;; 14746 *) 14747 lt_prog_compiler_pic_CXX='+Z' 14748 ;; 14749 esac 14750 ;; 14751 *) 14752 ;; 14753 esac 14754 ;; 14755 interix*) 14756 # This is c89, which is MS Visual C++ (no shared libs) 14757 # Anyone wants to do a port? 14758 ;; 14759 irix5* | irix6* | nonstopux*) 14760 case $cc_basename in 14761 CC*) 14762 lt_prog_compiler_wl_CXX='-Wl,' 14763 lt_prog_compiler_static_CXX='-non_shared' 14764 # CC pic flag -KPIC is the default. 14765 ;; 14766 *) 14767 ;; 14768 esac 14769 ;; 14770 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14771 case $cc_basename in 14772 KCC*) 14773 # KAI C++ Compiler 14774 lt_prog_compiler_wl_CXX='--backend -Wl,' 14775 lt_prog_compiler_pic_CXX='-fPIC' 14776 ;; 14777 ecpc* ) 14778 # old Intel C++ for x86_64, which still supported -KPIC. 14779 lt_prog_compiler_wl_CXX='-Wl,' 14780 lt_prog_compiler_pic_CXX='-KPIC' 14781 lt_prog_compiler_static_CXX='-static' 14782 ;; 14783 icpc* ) 14784 # Intel C++, used to be incompatible with GCC. 14785 # ICC 10 doesn't accept -KPIC any more. 14786 lt_prog_compiler_wl_CXX='-Wl,' 14787 lt_prog_compiler_pic_CXX='-fPIC' 14788 lt_prog_compiler_static_CXX='-static' 14789 ;; 14790 pgCC* | pgcpp*) 14791 # Portland Group C++ compiler 14792 lt_prog_compiler_wl_CXX='-Wl,' 14793 lt_prog_compiler_pic_CXX='-fpic' 14794 lt_prog_compiler_static_CXX='-Bstatic' 14795 ;; 14796 cxx*) 14797 # Compaq C++ 14798 # Make sure the PIC flag is empty. It appears that all Alpha 14799 # Linux and Compaq Tru64 Unix objects are PIC. 14800 lt_prog_compiler_pic_CXX= 14801 lt_prog_compiler_static_CXX='-non_shared' 14802 ;; 14803 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14804 # IBM XL 8.0, 9.0 on PPC and BlueGene 14805 lt_prog_compiler_wl_CXX='-Wl,' 14806 lt_prog_compiler_pic_CXX='-qpic' 14807 lt_prog_compiler_static_CXX='-qstaticlink' 14808 ;; 14809 *) 14810 case `$CC -V 2>&1 | sed 5q` in 14811 *Sun\ C*) 14812 # Sun C++ 5.9 14813 lt_prog_compiler_pic_CXX='-KPIC' 14814 lt_prog_compiler_static_CXX='-Bstatic' 14815 lt_prog_compiler_wl_CXX='-Qoption ld ' 14816 ;; 14817 esac 14818 ;; 14819 esac 14820 ;; 14821 lynxos*) 14822 ;; 14823 m88k*) 14824 ;; 14825 mvs*) 14826 case $cc_basename in 14827 cxx*) 14828 lt_prog_compiler_pic_CXX='-W c,exportall' 14829 ;; 14830 *) 14831 ;; 14832 esac 14833 ;; 14834 netbsd*) 14835 ;; 14836 *qnx* | *nto*) 14837 # QNX uses GNU C++, but need to define -shared option too, otherwise 14838 # it will coredump. 14839 lt_prog_compiler_pic_CXX='-fPIC -shared' 14840 ;; 14841 osf3* | osf4* | osf5*) 14842 case $cc_basename in 14843 KCC*) 14844 lt_prog_compiler_wl_CXX='--backend -Wl,' 14845 ;; 14846 RCC*) 14847 # Rational C++ 2.4.1 14848 lt_prog_compiler_pic_CXX='-pic' 14849 ;; 14850 cxx*) 14851 # Digital/Compaq C++ 14852 lt_prog_compiler_wl_CXX='-Wl,' 14853 # Make sure the PIC flag is empty. It appears that all Alpha 14854 # Linux and Compaq Tru64 Unix objects are PIC. 14855 lt_prog_compiler_pic_CXX= 14856 lt_prog_compiler_static_CXX='-non_shared' 14857 ;; 14858 *) 14859 ;; 14860 esac 14861 ;; 14862 psos*) 14863 ;; 14864 solaris*) 14865 case $cc_basename in 14866 CC* | sunCC*) 14867 # Sun C++ 4.2, 5.x and Centerline C++ 14868 lt_prog_compiler_pic_CXX='-KPIC' 14869 lt_prog_compiler_static_CXX='-Bstatic' 14870 lt_prog_compiler_wl_CXX='-Qoption ld ' 14871 ;; 14872 gcx*) 14873 # Green Hills C++ Compiler 14874 lt_prog_compiler_pic_CXX='-PIC' 14875 ;; 14876 *) 14877 ;; 14878 esac 14879 ;; 14880 sunos4*) 14881 case $cc_basename in 14882 CC*) 14883 # Sun C++ 4.x 14884 lt_prog_compiler_pic_CXX='-pic' 14885 lt_prog_compiler_static_CXX='-Bstatic' 14886 ;; 14887 lcc*) 14888 # Lucid 14889 lt_prog_compiler_pic_CXX='-pic' 14890 ;; 14891 *) 14892 ;; 14893 esac 14894 ;; 14895 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14896 case $cc_basename in 14897 CC*) 14898 lt_prog_compiler_wl_CXX='-Wl,' 14899 lt_prog_compiler_pic_CXX='-KPIC' 14900 lt_prog_compiler_static_CXX='-Bstatic' 14901 ;; 14902 esac 14903 ;; 14904 tandem*) 14905 case $cc_basename in 14906 NCC*) 14907 # NonStop-UX NCC 3.20 14908 lt_prog_compiler_pic_CXX='-KPIC' 14909 ;; 14910 *) 14911 ;; 14912 esac 14913 ;; 14914 vxworks*) 14915 ;; 14916 *) 14917 lt_prog_compiler_can_build_shared_CXX=no 14918 ;; 14919 esac 14920 fi 14921 14922case $host_os in 14923 # For platforms that do not support PIC, -DPIC is meaningless: 14924 *djgpp*) 14925 lt_prog_compiler_pic_CXX= 14926 ;; 14927 *) 14928 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14929 ;; 14930esac 14931 14932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14933$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14934if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14935 $as_echo_n "(cached) " >&6 14936else 14937 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14938fi 14939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14940$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14941lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14942 14943# 14944# Check to make sure the PIC flag actually works. 14945# 14946if test -n "$lt_prog_compiler_pic_CXX"; then 14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14948$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14949if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14950 $as_echo_n "(cached) " >&6 14951else 14952 lt_cv_prog_compiler_pic_works_CXX=no 14953 ac_outfile=conftest.$ac_objext 14954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14955 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 14956 # Insert the option either (1) after the last *FLAGS variable, or 14957 # (2) before a word containing "conftest.", or (3) at the end. 14958 # Note that $ac_compile itself does not contain backslashes and begins 14959 # with a dollar sign (not a hyphen), so the echo should work correctly. 14960 # The option is referenced via a variable to avoid confusing sed. 14961 lt_compile=`echo "$ac_compile" | $SED \ 14962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14964 -e 's:$: $lt_compiler_flag:'` 14965 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14966 (eval "$lt_compile" 2>conftest.err) 14967 ac_status=$? 14968 cat conftest.err >&5 14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14970 if (exit $ac_status) && test -s "$ac_outfile"; then 14971 # The compiler can only warn and ignore the option if not recognized 14972 # So say no if there are warnings other than the usual output. 14973 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14974 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14975 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14976 lt_cv_prog_compiler_pic_works_CXX=yes 14977 fi 14978 fi 14979 $RM conftest* 14980 14981fi 14982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14983$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14984 14985if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 14986 case $lt_prog_compiler_pic_CXX in 14987 "" | " "*) ;; 14988 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14989 esac 14990else 14991 lt_prog_compiler_pic_CXX= 14992 lt_prog_compiler_can_build_shared_CXX=no 14993fi 14994 14995fi 14996 14997 14998 14999 15000 15001# 15002# Check to make sure the static flag actually works. 15003# 15004wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15006$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15007if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15008 $as_echo_n "(cached) " >&6 15009else 15010 lt_cv_prog_compiler_static_works_CXX=no 15011 save_LDFLAGS=$LDFLAGS 15012 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15013 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15014 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15015 # The linker can only warn and ignore the option if not recognized 15016 # So say no if there are warnings 15017 if test -s conftest.err; then 15018 # Append any errors to the config.log. 15019 cat conftest.err 1>&5 15020 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15021 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15022 if diff conftest.exp conftest.er2 >/dev/null; then 15023 lt_cv_prog_compiler_static_works_CXX=yes 15024 fi 15025 else 15026 lt_cv_prog_compiler_static_works_CXX=yes 15027 fi 15028 fi 15029 $RM -r conftest* 15030 LDFLAGS=$save_LDFLAGS 15031 15032fi 15033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15034$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15035 15036if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15037 : 15038else 15039 lt_prog_compiler_static_CXX= 15040fi 15041 15042 15043 15044 15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15046$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15047if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15048 $as_echo_n "(cached) " >&6 15049else 15050 lt_cv_prog_compiler_c_o_CXX=no 15051 $RM -r conftest 2>/dev/null 15052 mkdir conftest 15053 cd conftest 15054 mkdir out 15055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15056 15057 lt_compiler_flag="-o out/conftest2.$ac_objext" 15058 # Insert the option either (1) after the last *FLAGS variable, or 15059 # (2) before a word containing "conftest.", or (3) at the end. 15060 # Note that $ac_compile itself does not contain backslashes and begins 15061 # with a dollar sign (not a hyphen), so the echo should work correctly. 15062 lt_compile=`echo "$ac_compile" | $SED \ 15063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15065 -e 's:$: $lt_compiler_flag:'` 15066 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15067 (eval "$lt_compile" 2>out/conftest.err) 15068 ac_status=$? 15069 cat out/conftest.err >&5 15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15071 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15072 then 15073 # The compiler can only warn and ignore the option if not recognized 15074 # So say no if there are warnings 15075 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15076 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15077 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15078 lt_cv_prog_compiler_c_o_CXX=yes 15079 fi 15080 fi 15081 chmod u+w . 2>&5 15082 $RM conftest* 15083 # SGI C++ compiler will create directory out/ii_files/ for 15084 # template instantiation 15085 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15086 $RM out/* && rmdir out 15087 cd .. 15088 $RM -r conftest 15089 $RM conftest* 15090 15091fi 15092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15093$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15094 15095 15096 15097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15098$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15099if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15100 $as_echo_n "(cached) " >&6 15101else 15102 lt_cv_prog_compiler_c_o_CXX=no 15103 $RM -r conftest 2>/dev/null 15104 mkdir conftest 15105 cd conftest 15106 mkdir out 15107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15108 15109 lt_compiler_flag="-o out/conftest2.$ac_objext" 15110 # Insert the option either (1) after the last *FLAGS variable, or 15111 # (2) before a word containing "conftest.", or (3) at the end. 15112 # Note that $ac_compile itself does not contain backslashes and begins 15113 # with a dollar sign (not a hyphen), so the echo should work correctly. 15114 lt_compile=`echo "$ac_compile" | $SED \ 15115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15117 -e 's:$: $lt_compiler_flag:'` 15118 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15119 (eval "$lt_compile" 2>out/conftest.err) 15120 ac_status=$? 15121 cat out/conftest.err >&5 15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15123 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15124 then 15125 # The compiler can only warn and ignore the option if not recognized 15126 # So say no if there are warnings 15127 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15128 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15129 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15130 lt_cv_prog_compiler_c_o_CXX=yes 15131 fi 15132 fi 15133 chmod u+w . 2>&5 15134 $RM conftest* 15135 # SGI C++ compiler will create directory out/ii_files/ for 15136 # template instantiation 15137 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15138 $RM out/* && rmdir out 15139 cd .. 15140 $RM -r conftest 15141 $RM conftest* 15142 15143fi 15144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15145$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15146 15147 15148 15149 15150hard_links=nottested 15151if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15152 # do not overwrite the value of need_locks provided by the user 15153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15154$as_echo_n "checking if we can lock with hard links... " >&6; } 15155 hard_links=yes 15156 $RM conftest* 15157 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15158 touch conftest.a 15159 ln conftest.a conftest.b 2>&5 || hard_links=no 15160 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15162$as_echo "$hard_links" >&6; } 15163 if test no = "$hard_links"; then 15164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15165$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15166 need_locks=warn 15167 fi 15168else 15169 need_locks=no 15170fi 15171 15172 15173 15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15175$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15176 15177 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15178 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15179 case $host_os in 15180 aix[4-9]*) 15181 # If we're using GNU nm, then we don't want the "-C" option. 15182 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15183 # Without the "-l" option, or with the "-B" option, AIX nm treats 15184 # weak defined symbols like other global defined symbols, whereas 15185 # GNU nm marks them as "W". 15186 # While the 'weak' keyword is ignored in the Export File, we need 15187 # it in the Import File for the 'aix-soname' feature, so we have 15188 # to replace the "-B" option with "-P" for AIX nm. 15189 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15190 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 15191 else 15192 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 15193 fi 15194 ;; 15195 pw32*) 15196 export_symbols_cmds_CXX=$ltdll_cmds 15197 ;; 15198 cygwin* | mingw* | cegcc*) 15199 case $cc_basename in 15200 cl*) 15201 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15202 ;; 15203 *) 15204 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' 15205 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15206 ;; 15207 esac 15208 ;; 15209 *) 15210 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15211 ;; 15212 esac 15213 15214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15215$as_echo "$ld_shlibs_CXX" >&6; } 15216test no = "$ld_shlibs_CXX" && can_build_shared=no 15217 15218with_gnu_ld_CXX=$with_gnu_ld 15219 15220 15221 15222 15223 15224 15225# 15226# Do we need to explicitly link libc? 15227# 15228case "x$archive_cmds_need_lc_CXX" in 15229x|xyes) 15230 # Assume -lc should be added 15231 archive_cmds_need_lc_CXX=yes 15232 15233 if test yes,yes = "$GCC,$enable_shared"; then 15234 case $archive_cmds_CXX in 15235 *'~'*) 15236 # FIXME: we may have to deal with multi-command sequences. 15237 ;; 15238 '$CC '*) 15239 # Test whether the compiler implicitly links with -lc since on some 15240 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15241 # to ld, don't add -lc before -lgcc. 15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15243$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15244if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15245 $as_echo_n "(cached) " >&6 15246else 15247 $RM conftest* 15248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15249 15250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15251 (eval $ac_compile) 2>&5 15252 ac_status=$? 15253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15254 test $ac_status = 0; } 2>conftest.err; then 15255 soname=conftest 15256 lib=conftest 15257 libobjs=conftest.$ac_objext 15258 deplibs= 15259 wl=$lt_prog_compiler_wl_CXX 15260 pic_flag=$lt_prog_compiler_pic_CXX 15261 compiler_flags=-v 15262 linker_flags=-v 15263 verstring= 15264 output_objdir=. 15265 libname=conftest 15266 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15267 allow_undefined_flag_CXX= 15268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15269 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15270 ac_status=$? 15271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15272 test $ac_status = 0; } 15273 then 15274 lt_cv_archive_cmds_need_lc_CXX=no 15275 else 15276 lt_cv_archive_cmds_need_lc_CXX=yes 15277 fi 15278 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15279 else 15280 cat conftest.err 1>&5 15281 fi 15282 $RM conftest* 15283 15284fi 15285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15286$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15287 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15288 ;; 15289 esac 15290 fi 15291 ;; 15292esac 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15356$as_echo_n "checking dynamic linker characteristics... " >&6; } 15357 15358library_names_spec= 15359libname_spec='lib$name' 15360soname_spec= 15361shrext_cmds=.so 15362postinstall_cmds= 15363postuninstall_cmds= 15364finish_cmds= 15365finish_eval= 15366shlibpath_var= 15367shlibpath_overrides_runpath=unknown 15368version_type=none 15369dynamic_linker="$host_os ld.so" 15370sys_lib_dlsearch_path_spec="/lib /usr/lib" 15371need_lib_prefix=unknown 15372hardcode_into_libs=no 15373 15374# when you set need_version to no, make sure it does not cause -set_version 15375# flags to be left without arguments 15376need_version=unknown 15377 15378 15379 15380case $host_os in 15381aix3*) 15382 version_type=linux # correct to gnu/linux during the next big refactor 15383 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15384 shlibpath_var=LIBPATH 15385 15386 # AIX 3 has no versioning support, so we append a major version to the name. 15387 soname_spec='$libname$release$shared_ext$major' 15388 ;; 15389 15390aix[4-9]*) 15391 version_type=linux # correct to gnu/linux during the next big refactor 15392 need_lib_prefix=no 15393 need_version=no 15394 hardcode_into_libs=yes 15395 if test ia64 = "$host_cpu"; then 15396 # AIX 5 supports IA64 15397 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15398 shlibpath_var=LD_LIBRARY_PATH 15399 else 15400 # With GCC up to 2.95.x, collect2 would create an import file 15401 # for dependence libraries. The import file would start with 15402 # the line '#! .'. This would cause the generated library to 15403 # depend on '.', always an invalid library. This was fixed in 15404 # development snapshots of GCC prior to 3.0. 15405 case $host_os in 15406 aix4 | aix4.[01] | aix4.[01].*) 15407 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15408 echo ' yes ' 15409 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15410 : 15411 else 15412 can_build_shared=no 15413 fi 15414 ;; 15415 esac 15416 # Using Import Files as archive members, it is possible to support 15417 # filename-based versioning of shared library archives on AIX. While 15418 # this would work for both with and without runtime linking, it will 15419 # prevent static linking of such archives. So we do filename-based 15420 # shared library versioning with .so extension only, which is used 15421 # when both runtime linking and shared linking is enabled. 15422 # Unfortunately, runtime linking may impact performance, so we do 15423 # not want this to be the default eventually. Also, we use the 15424 # versioned .so libs for executables only if there is the -brtl 15425 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15426 # To allow for filename-based versioning support, we need to create 15427 # libNAME.so.V as an archive file, containing: 15428 # *) an Import File, referring to the versioned filename of the 15429 # archive as well as the shared archive member, telling the 15430 # bitwidth (32 or 64) of that shared object, and providing the 15431 # list of exported symbols of that shared object, eventually 15432 # decorated with the 'weak' keyword 15433 # *) the shared object with the F_LOADONLY flag set, to really avoid 15434 # it being seen by the linker. 15435 # At run time we better use the real file rather than another symlink, 15436 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15437 15438 case $with_aix_soname,$aix_use_runtimelinking in 15439 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15440 # soname into executable. Probably we can add versioning support to 15441 # collect2, so additional links can be useful in future. 15442 aix,yes) # traditional libtool 15443 dynamic_linker='AIX unversionable lib.so' 15444 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15445 # instead of lib<name>.a to let people know that these are not 15446 # typical AIX shared libraries. 15447 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15448 ;; 15449 aix,no) # traditional AIX only 15450 dynamic_linker='AIX lib.a(lib.so.V)' 15451 # We preserve .a as extension for shared libraries through AIX4.2 15452 # and later when we are not doing run time linking. 15453 library_names_spec='$libname$release.a $libname.a' 15454 soname_spec='$libname$release$shared_ext$major' 15455 ;; 15456 svr4,*) # full svr4 only 15457 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15458 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15459 # We do not specify a path in Import Files, so LIBPATH fires. 15460 shlibpath_overrides_runpath=yes 15461 ;; 15462 *,yes) # both, prefer svr4 15463 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15464 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15465 # unpreferred sharedlib libNAME.a needs extra handling 15466 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 15467 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 15468 # We do not specify a path in Import Files, so LIBPATH fires. 15469 shlibpath_overrides_runpath=yes 15470 ;; 15471 *,no) # both, prefer aix 15472 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15473 library_names_spec='$libname$release.a $libname.a' 15474 soname_spec='$libname$release$shared_ext$major' 15475 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15476 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 15477 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 15478 ;; 15479 esac 15480 shlibpath_var=LIBPATH 15481 fi 15482 ;; 15483 15484amigaos*) 15485 case $host_cpu in 15486 powerpc) 15487 # Since July 2007 AmigaOS4 officially supports .so libraries. 15488 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15489 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15490 ;; 15491 m68k) 15492 library_names_spec='$libname.ixlibrary $libname.a' 15493 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15494 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 15495 ;; 15496 esac 15497 ;; 15498 15499beos*) 15500 library_names_spec='$libname$shared_ext' 15501 dynamic_linker="$host_os ld.so" 15502 shlibpath_var=LIBRARY_PATH 15503 ;; 15504 15505bsdi[45]*) 15506 version_type=linux # correct to gnu/linux during the next big refactor 15507 need_version=no 15508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15509 soname_spec='$libname$release$shared_ext$major' 15510 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15511 shlibpath_var=LD_LIBRARY_PATH 15512 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15513 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15514 # the default ld.so.conf also contains /usr/contrib/lib and 15515 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15516 # libtool to hard-code these into programs 15517 ;; 15518 15519cygwin* | mingw* | pw32* | cegcc*) 15520 version_type=windows 15521 shrext_cmds=.dll 15522 need_version=no 15523 need_lib_prefix=no 15524 15525 case $GCC,$cc_basename in 15526 yes,*) 15527 # gcc 15528 library_names_spec='$libname.dll.a' 15529 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15530 postinstall_cmds='base_file=`basename \$file`~ 15531 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15532 dldir=$destdir/`dirname \$dlpath`~ 15533 test -d \$dldir || mkdir -p \$dldir~ 15534 $install_prog $dir/$dlname \$dldir/$dlname~ 15535 chmod a+x \$dldir/$dlname~ 15536 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15537 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15538 fi' 15539 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15540 dlpath=$dir/\$dldll~ 15541 $RM \$dlpath' 15542 shlibpath_overrides_runpath=yes 15543 15544 case $host_os in 15545 cygwin*) 15546 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15547 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15548 15549 ;; 15550 mingw* | cegcc*) 15551 # MinGW DLLs use traditional 'lib' prefix 15552 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15553 ;; 15554 pw32*) 15555 # pw32 DLLs use 'pw' prefix rather than 'lib' 15556 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15557 ;; 15558 esac 15559 dynamic_linker='Win32 ld.exe' 15560 ;; 15561 15562 *,cl*) 15563 # Native MSVC 15564 libname_spec='$name' 15565 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15566 library_names_spec='$libname.dll.lib' 15567 15568 case $build_os in 15569 mingw*) 15570 sys_lib_search_path_spec= 15571 lt_save_ifs=$IFS 15572 IFS=';' 15573 for lt_path in $LIB 15574 do 15575 IFS=$lt_save_ifs 15576 # Let DOS variable expansion print the short 8.3 style file name. 15577 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15578 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15579 done 15580 IFS=$lt_save_ifs 15581 # Convert to MSYS style. 15582 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15583 ;; 15584 cygwin*) 15585 # Convert to unix form, then to dos form, then back to unix form 15586 # but this time dos style (no spaces!) so that the unix form looks 15587 # like /cygdrive/c/PROGRA~1:/cygdr... 15588 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15589 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15590 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15591 ;; 15592 *) 15593 sys_lib_search_path_spec=$LIB 15594 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15595 # It is most probably a Windows format PATH. 15596 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15597 else 15598 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15599 fi 15600 # FIXME: find the short name or the path components, as spaces are 15601 # common. (e.g. "Program Files" -> "PROGRA~1") 15602 ;; 15603 esac 15604 15605 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15606 postinstall_cmds='base_file=`basename \$file`~ 15607 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15608 dldir=$destdir/`dirname \$dlpath`~ 15609 test -d \$dldir || mkdir -p \$dldir~ 15610 $install_prog $dir/$dlname \$dldir/$dlname' 15611 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15612 dlpath=$dir/\$dldll~ 15613 $RM \$dlpath' 15614 shlibpath_overrides_runpath=yes 15615 dynamic_linker='Win32 link.exe' 15616 ;; 15617 15618 *) 15619 # Assume MSVC wrapper 15620 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15621 dynamic_linker='Win32 ld.exe' 15622 ;; 15623 esac 15624 # FIXME: first we should search . and the directory the executable is in 15625 shlibpath_var=PATH 15626 ;; 15627 15628darwin* | rhapsody*) 15629 dynamic_linker="$host_os dyld" 15630 version_type=darwin 15631 need_lib_prefix=no 15632 need_version=no 15633 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15634 soname_spec='$libname$release$major$shared_ext' 15635 shlibpath_overrides_runpath=yes 15636 shlibpath_var=DYLD_LIBRARY_PATH 15637 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15638 15639 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15640 ;; 15641 15642dgux*) 15643 version_type=linux # correct to gnu/linux during the next big refactor 15644 need_lib_prefix=no 15645 need_version=no 15646 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15647 soname_spec='$libname$release$shared_ext$major' 15648 shlibpath_var=LD_LIBRARY_PATH 15649 ;; 15650 15651freebsd* | dragonfly*) 15652 # DragonFly does not have aout. When/if they implement a new 15653 # versioning mechanism, adjust this. 15654 if test -x /usr/bin/objformat; then 15655 objformat=`/usr/bin/objformat` 15656 else 15657 case $host_os in 15658 freebsd[23].*) objformat=aout ;; 15659 *) objformat=elf ;; 15660 esac 15661 fi 15662 version_type=freebsd-$objformat 15663 case $version_type in 15664 freebsd-elf*) 15665 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15666 soname_spec='$libname$release$shared_ext$major' 15667 need_version=no 15668 need_lib_prefix=no 15669 ;; 15670 freebsd-*) 15671 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15672 need_version=yes 15673 ;; 15674 esac 15675 shlibpath_var=LD_LIBRARY_PATH 15676 case $host_os in 15677 freebsd2.*) 15678 shlibpath_overrides_runpath=yes 15679 ;; 15680 freebsd3.[01]* | freebsdelf3.[01]*) 15681 shlibpath_overrides_runpath=yes 15682 hardcode_into_libs=yes 15683 ;; 15684 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15685 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15686 shlibpath_overrides_runpath=no 15687 hardcode_into_libs=yes 15688 ;; 15689 *) # from 4.6 on, and DragonFly 15690 shlibpath_overrides_runpath=yes 15691 hardcode_into_libs=yes 15692 ;; 15693 esac 15694 ;; 15695 15696haiku*) 15697 version_type=linux # correct to gnu/linux during the next big refactor 15698 need_lib_prefix=no 15699 need_version=no 15700 dynamic_linker="$host_os runtime_loader" 15701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15702 soname_spec='$libname$release$shared_ext$major' 15703 shlibpath_var=LIBRARY_PATH 15704 shlibpath_overrides_runpath=no 15705 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15706 hardcode_into_libs=yes 15707 ;; 15708 15709hpux9* | hpux10* | hpux11*) 15710 # Give a soname corresponding to the major version so that dld.sl refuses to 15711 # link against other versions. 15712 version_type=sunos 15713 need_lib_prefix=no 15714 need_version=no 15715 case $host_cpu in 15716 ia64*) 15717 shrext_cmds='.so' 15718 hardcode_into_libs=yes 15719 dynamic_linker="$host_os dld.so" 15720 shlibpath_var=LD_LIBRARY_PATH 15721 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15722 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15723 soname_spec='$libname$release$shared_ext$major' 15724 if test 32 = "$HPUX_IA64_MODE"; then 15725 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15726 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15727 else 15728 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15729 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15730 fi 15731 ;; 15732 hppa*64*) 15733 shrext_cmds='.sl' 15734 hardcode_into_libs=yes 15735 dynamic_linker="$host_os dld.sl" 15736 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15738 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15739 soname_spec='$libname$release$shared_ext$major' 15740 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15742 ;; 15743 *) 15744 shrext_cmds='.sl' 15745 dynamic_linker="$host_os dld.sl" 15746 shlibpath_var=SHLIB_PATH 15747 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15748 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15749 soname_spec='$libname$release$shared_ext$major' 15750 ;; 15751 esac 15752 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15753 postinstall_cmds='chmod 555 $lib' 15754 # or fails outright, so override atomically: 15755 install_override_mode=555 15756 ;; 15757 15758interix[3-9]*) 15759 version_type=linux # correct to gnu/linux during the next big refactor 15760 need_lib_prefix=no 15761 need_version=no 15762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15763 soname_spec='$libname$release$shared_ext$major' 15764 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15765 shlibpath_var=LD_LIBRARY_PATH 15766 shlibpath_overrides_runpath=no 15767 hardcode_into_libs=yes 15768 ;; 15769 15770irix5* | irix6* | nonstopux*) 15771 case $host_os in 15772 nonstopux*) version_type=nonstopux ;; 15773 *) 15774 if test yes = "$lt_cv_prog_gnu_ld"; then 15775 version_type=linux # correct to gnu/linux during the next big refactor 15776 else 15777 version_type=irix 15778 fi ;; 15779 esac 15780 need_lib_prefix=no 15781 need_version=no 15782 soname_spec='$libname$release$shared_ext$major' 15783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15784 case $host_os in 15785 irix5* | nonstopux*) 15786 libsuff= shlibsuff= 15787 ;; 15788 *) 15789 case $LD in # libtool.m4 will add one of these switches to LD 15790 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15791 libsuff= shlibsuff= libmagic=32-bit;; 15792 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15793 libsuff=32 shlibsuff=N32 libmagic=N32;; 15794 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15795 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15796 *) libsuff= shlibsuff= libmagic=never-match;; 15797 esac 15798 ;; 15799 esac 15800 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15801 shlibpath_overrides_runpath=no 15802 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15803 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15804 hardcode_into_libs=yes 15805 ;; 15806 15807# No shared lib support for Linux oldld, aout, or coff. 15808linux*oldld* | linux*aout* | linux*coff*) 15809 dynamic_linker=no 15810 ;; 15811 15812linux*android*) 15813 version_type=none # Android doesn't support versioned libraries. 15814 need_lib_prefix=no 15815 need_version=no 15816 library_names_spec='$libname$release$shared_ext' 15817 soname_spec='$libname$release$shared_ext' 15818 finish_cmds= 15819 shlibpath_var=LD_LIBRARY_PATH 15820 shlibpath_overrides_runpath=yes 15821 15822 # This implies no fast_install, which is unacceptable. 15823 # Some rework will be needed to allow for fast_install 15824 # before this can be enabled. 15825 hardcode_into_libs=yes 15826 15827 dynamic_linker='Android linker' 15828 # Don't embed -rpath directories since the linker doesn't support them. 15829 hardcode_libdir_flag_spec_CXX='-L$libdir' 15830 ;; 15831 15832# This must be glibc/ELF. 15833linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15834 version_type=linux # correct to gnu/linux during the next big refactor 15835 need_lib_prefix=no 15836 need_version=no 15837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15838 soname_spec='$libname$release$shared_ext$major' 15839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15840 shlibpath_var=LD_LIBRARY_PATH 15841 shlibpath_overrides_runpath=no 15842 15843 # Some binutils ld are patched to set DT_RUNPATH 15844 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15845 $as_echo_n "(cached) " >&6 15846else 15847 lt_cv_shlibpath_overrides_runpath=no 15848 save_LDFLAGS=$LDFLAGS 15849 save_libdir=$libdir 15850 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15851 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15853/* end confdefs.h. */ 15854 15855int 15856main () 15857{ 15858 15859 ; 15860 return 0; 15861} 15862_ACEOF 15863if ac_fn_cxx_try_link "$LINENO"; then : 15864 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15865 lt_cv_shlibpath_overrides_runpath=yes 15866fi 15867fi 15868rm -f core conftest.err conftest.$ac_objext \ 15869 conftest$ac_exeext conftest.$ac_ext 15870 LDFLAGS=$save_LDFLAGS 15871 libdir=$save_libdir 15872 15873fi 15874 15875 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15876 15877 # This implies no fast_install, which is unacceptable. 15878 # Some rework will be needed to allow for fast_install 15879 # before this can be enabled. 15880 hardcode_into_libs=yes 15881 15882 # Add ABI-specific directories to the system library path. 15883 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 15884 15885 # Ideally, we could use ldconfig to report *all* directores which are 15886 # searched for libraries, however this is still not possible. Aside from not 15887 # being certain /sbin/ldconfig is available, command 15888 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15889 # even though it is searched at run-time. Try to do the best guess by 15890 # appending ld.so.conf contents (and includes) to the search path. 15891 if test -f /etc/ld.so.conf; then 15892 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' ' '` 15893 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 15894 fi 15895 15896 # We used to test for /lib/ld.so.1 and disable shared libraries on 15897 # powerpc, because MkLinux only supported shared libraries with the 15898 # GNU dynamic linker. Since this was broken with cross compilers, 15899 # most powerpc-linux boxes support dynamic linking these days and 15900 # people can always --disable-shared, the test was removed, and we 15901 # assume the GNU/Linux dynamic linker is in use. 15902 dynamic_linker='GNU/Linux ld.so' 15903 ;; 15904 15905netbsd*) 15906 version_type=sunos 15907 need_lib_prefix=no 15908 need_version=no 15909 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15910 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15912 dynamic_linker='NetBSD (a.out) ld.so' 15913 else 15914 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15915 soname_spec='$libname$release$shared_ext$major' 15916 dynamic_linker='NetBSD ld.elf_so' 15917 fi 15918 shlibpath_var=LD_LIBRARY_PATH 15919 shlibpath_overrides_runpath=yes 15920 hardcode_into_libs=yes 15921 ;; 15922 15923newsos6) 15924 version_type=linux # correct to gnu/linux during the next big refactor 15925 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15926 shlibpath_var=LD_LIBRARY_PATH 15927 shlibpath_overrides_runpath=yes 15928 ;; 15929 15930*nto* | *qnx*) 15931 version_type=qnx 15932 need_lib_prefix=no 15933 need_version=no 15934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15935 soname_spec='$libname$release$shared_ext$major' 15936 shlibpath_var=LD_LIBRARY_PATH 15937 shlibpath_overrides_runpath=no 15938 hardcode_into_libs=yes 15939 dynamic_linker='ldqnx.so' 15940 ;; 15941 15942openbsd* | bitrig*) 15943 version_type=sunos 15944 sys_lib_dlsearch_path_spec=/usr/lib 15945 need_lib_prefix=no 15946 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15947 need_version=no 15948 else 15949 need_version=yes 15950 fi 15951 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15953 shlibpath_var=LD_LIBRARY_PATH 15954 shlibpath_overrides_runpath=yes 15955 ;; 15956 15957os2*) 15958 libname_spec='$name' 15959 version_type=windows 15960 shrext_cmds=.dll 15961 need_version=no 15962 need_lib_prefix=no 15963 # OS/2 can only load a DLL with a base name of 8 characters or less. 15964 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 15965 v=$($ECHO $release$versuffix | tr -d .-); 15966 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 15967 $ECHO $n$v`$shared_ext' 15968 library_names_spec='${libname}_dll.$libext' 15969 dynamic_linker='OS/2 ld.exe' 15970 shlibpath_var=BEGINLIBPATH 15971 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15972 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15973 postinstall_cmds='base_file=`basename \$file`~ 15974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 15975 dldir=$destdir/`dirname \$dlpath`~ 15976 test -d \$dldir || mkdir -p \$dldir~ 15977 $install_prog $dir/$dlname \$dldir/$dlname~ 15978 chmod a+x \$dldir/$dlname~ 15979 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15980 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15981 fi' 15982 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 15983 dlpath=$dir/\$dldll~ 15984 $RM \$dlpath' 15985 ;; 15986 15987osf3* | osf4* | osf5*) 15988 version_type=osf 15989 need_lib_prefix=no 15990 need_version=no 15991 soname_spec='$libname$release$shared_ext$major' 15992 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15993 shlibpath_var=LD_LIBRARY_PATH 15994 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15995 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15996 ;; 15997 15998rdos*) 15999 dynamic_linker=no 16000 ;; 16001 16002solaris*) 16003 version_type=linux # correct to gnu/linux during the next big refactor 16004 need_lib_prefix=no 16005 need_version=no 16006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16007 soname_spec='$libname$release$shared_ext$major' 16008 shlibpath_var=LD_LIBRARY_PATH 16009 shlibpath_overrides_runpath=yes 16010 hardcode_into_libs=yes 16011 # ldd complains unless libraries are executable 16012 postinstall_cmds='chmod +x $lib' 16013 ;; 16014 16015sunos4*) 16016 version_type=sunos 16017 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16018 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16019 shlibpath_var=LD_LIBRARY_PATH 16020 shlibpath_overrides_runpath=yes 16021 if test yes = "$with_gnu_ld"; then 16022 need_lib_prefix=no 16023 fi 16024 need_version=yes 16025 ;; 16026 16027sysv4 | sysv4.3*) 16028 version_type=linux # correct to gnu/linux during the next big refactor 16029 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16030 soname_spec='$libname$release$shared_ext$major' 16031 shlibpath_var=LD_LIBRARY_PATH 16032 case $host_vendor in 16033 sni) 16034 shlibpath_overrides_runpath=no 16035 need_lib_prefix=no 16036 runpath_var=LD_RUN_PATH 16037 ;; 16038 siemens) 16039 need_lib_prefix=no 16040 ;; 16041 motorola) 16042 need_lib_prefix=no 16043 need_version=no 16044 shlibpath_overrides_runpath=no 16045 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16046 ;; 16047 esac 16048 ;; 16049 16050sysv4*MP*) 16051 if test -d /usr/nec; then 16052 version_type=linux # correct to gnu/linux during the next big refactor 16053 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16054 soname_spec='$libname$shared_ext.$major' 16055 shlibpath_var=LD_LIBRARY_PATH 16056 fi 16057 ;; 16058 16059sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16060 version_type=sco 16061 need_lib_prefix=no 16062 need_version=no 16063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16064 soname_spec='$libname$release$shared_ext$major' 16065 shlibpath_var=LD_LIBRARY_PATH 16066 shlibpath_overrides_runpath=yes 16067 hardcode_into_libs=yes 16068 if test yes = "$with_gnu_ld"; then 16069 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16070 else 16071 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16072 case $host_os in 16073 sco3.2v5*) 16074 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16075 ;; 16076 esac 16077 fi 16078 sys_lib_dlsearch_path_spec='/usr/lib' 16079 ;; 16080 16081tpf*) 16082 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16083 version_type=linux # correct to gnu/linux during the next big refactor 16084 need_lib_prefix=no 16085 need_version=no 16086 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16087 shlibpath_var=LD_LIBRARY_PATH 16088 shlibpath_overrides_runpath=no 16089 hardcode_into_libs=yes 16090 ;; 16091 16092uts4*) 16093 version_type=linux # correct to gnu/linux during the next big refactor 16094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16095 soname_spec='$libname$release$shared_ext$major' 16096 shlibpath_var=LD_LIBRARY_PATH 16097 ;; 16098 16099*) 16100 dynamic_linker=no 16101 ;; 16102esac 16103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16104$as_echo "$dynamic_linker" >&6; } 16105test no = "$dynamic_linker" && can_build_shared=no 16106 16107variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16108if test yes = "$GCC"; then 16109 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16110fi 16111 16112if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16113 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16114fi 16115 16116if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16117 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16118fi 16119 16120# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16121configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16122 16123# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16124func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16125 16126# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16127configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16169$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16170hardcode_action_CXX= 16171if test -n "$hardcode_libdir_flag_spec_CXX" || 16172 test -n "$runpath_var_CXX" || 16173 test yes = "$hardcode_automatic_CXX"; then 16174 16175 # We can hardcode non-existent directories. 16176 if test no != "$hardcode_direct_CXX" && 16177 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16178 # have to relink, otherwise we might link with an installed library 16179 # when we should be linking with a yet-to-be-installed one 16180 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16181 test no != "$hardcode_minus_L_CXX"; then 16182 # Linking always hardcodes the temporary library directory. 16183 hardcode_action_CXX=relink 16184 else 16185 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16186 hardcode_action_CXX=immediate 16187 fi 16188else 16189 # We cannot hardcode anything, or else we can only hardcode existing 16190 # directories. 16191 hardcode_action_CXX=unsupported 16192fi 16193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16194$as_echo "$hardcode_action_CXX" >&6; } 16195 16196if test relink = "$hardcode_action_CXX" || 16197 test yes = "$inherit_rpath_CXX"; then 16198 # Fast installation is not supported 16199 enable_fast_install=no 16200elif test yes = "$shlibpath_overrides_runpath" || 16201 test no = "$enable_shared"; then 16202 # Fast installation is not necessary 16203 enable_fast_install=needless 16204fi 16205 16206 16207 16208 16209 16210 16211 16212 fi # test -n "$compiler" 16213 16214 CC=$lt_save_CC 16215 CFLAGS=$lt_save_CFLAGS 16216 LDCXX=$LD 16217 LD=$lt_save_LD 16218 GCC=$lt_save_GCC 16219 with_gnu_ld=$lt_save_with_gnu_ld 16220 lt_cv_path_LDCXX=$lt_cv_path_LD 16221 lt_cv_path_LD=$lt_save_path_LD 16222 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16223 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16224fi # test yes != "$_lt_caught_CXX_error" 16225 16226ac_ext=c 16227ac_cpp='$CPP $CPPFLAGS' 16228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16230ac_compiler_gnu=$ac_cv_c_compiler_gnu 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 ac_config_commands="$ac_config_commands libtool" 16247 16248 16249 16250 16251# Only expand once: 16252 16253 16254ac_ext=cpp 16255ac_cpp='$CXXCPP $CPPFLAGS' 16256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16259 16260 16261# Checks for long double 16262 16263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 16264$as_echo_n "checking for long double... " >&6; } 16265if ${ac_cv_type_long_double+:} false; then : 16266 $as_echo_n "(cached) " >&6 16267else 16268 if test "$GCC" = yes; then 16269 ac_cv_type_long_double=yes 16270 else 16271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16272/* end confdefs.h. */ 16273/* The Stardent Vistra knows sizeof (long double), but does 16274 not support it. */ 16275 long double foo = 0.0L; 16276int 16277main () 16278{ 16279static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 16280 sizeof (double) <= sizeof (long double))]; 16281test_array [0] = 0; 16282return test_array [0]; 16283 16284 ; 16285 return 0; 16286} 16287_ACEOF 16288if ac_fn_cxx_try_compile "$LINENO"; then : 16289 ac_cv_type_long_double=yes 16290else 16291 ac_cv_type_long_double=no 16292fi 16293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16294 fi 16295fi 16296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 16297$as_echo "$ac_cv_type_long_double" >&6; } 16298 if test $ac_cv_type_long_double = yes; then 16299 16300$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 16301 16302 fi 16303 16304 16305# Check endianness 16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 16307$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 16308if ${ac_cv_c_bigendian+:} false; then : 16309 $as_echo_n "(cached) " >&6 16310else 16311 ac_cv_c_bigendian=unknown 16312 # See if we're dealing with a universal compiler. 16313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16314/* end confdefs.h. */ 16315#ifndef __APPLE_CC__ 16316 not a universal capable compiler 16317 #endif 16318 typedef int dummy; 16319 16320_ACEOF 16321if ac_fn_cxx_try_compile "$LINENO"; then : 16322 16323 # Check for potential -arch flags. It is not universal unless 16324 # there are at least two -arch flags with different values. 16325 ac_arch= 16326 ac_prev= 16327 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 16328 if test -n "$ac_prev"; then 16329 case $ac_word in 16330 i?86 | x86_64 | ppc | ppc64) 16331 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 16332 ac_arch=$ac_word 16333 else 16334 ac_cv_c_bigendian=universal 16335 break 16336 fi 16337 ;; 16338 esac 16339 ac_prev= 16340 elif test "x$ac_word" = "x-arch"; then 16341 ac_prev=arch 16342 fi 16343 done 16344fi 16345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16346 if test $ac_cv_c_bigendian = unknown; then 16347 # See if sys/param.h defines the BYTE_ORDER macro. 16348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16349/* end confdefs.h. */ 16350#include <sys/types.h> 16351 #include <sys/param.h> 16352 16353int 16354main () 16355{ 16356#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 16357 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 16358 && LITTLE_ENDIAN) 16359 bogus endian macros 16360 #endif 16361 16362 ; 16363 return 0; 16364} 16365_ACEOF 16366if ac_fn_cxx_try_compile "$LINENO"; then : 16367 # It does; now see whether it defined to BIG_ENDIAN or not. 16368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16369/* end confdefs.h. */ 16370#include <sys/types.h> 16371 #include <sys/param.h> 16372 16373int 16374main () 16375{ 16376#if BYTE_ORDER != BIG_ENDIAN 16377 not big endian 16378 #endif 16379 16380 ; 16381 return 0; 16382} 16383_ACEOF 16384if ac_fn_cxx_try_compile "$LINENO"; then : 16385 ac_cv_c_bigendian=yes 16386else 16387 ac_cv_c_bigendian=no 16388fi 16389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16390fi 16391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16392 fi 16393 if test $ac_cv_c_bigendian = unknown; then 16394 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 16395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16396/* end confdefs.h. */ 16397#include <limits.h> 16398 16399int 16400main () 16401{ 16402#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 16403 bogus endian macros 16404 #endif 16405 16406 ; 16407 return 0; 16408} 16409_ACEOF 16410if ac_fn_cxx_try_compile "$LINENO"; then : 16411 # It does; now see whether it defined to _BIG_ENDIAN or not. 16412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16413/* end confdefs.h. */ 16414#include <limits.h> 16415 16416int 16417main () 16418{ 16419#ifndef _BIG_ENDIAN 16420 not big endian 16421 #endif 16422 16423 ; 16424 return 0; 16425} 16426_ACEOF 16427if ac_fn_cxx_try_compile "$LINENO"; then : 16428 ac_cv_c_bigendian=yes 16429else 16430 ac_cv_c_bigendian=no 16431fi 16432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16433fi 16434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16435 fi 16436 if test $ac_cv_c_bigendian = unknown; then 16437 # Compile a test program. 16438 if test "$cross_compiling" = yes; then : 16439 # Try to guess by grepping values from an object file. 16440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16441/* end confdefs.h. */ 16442short int ascii_mm[] = 16443 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 16444 short int ascii_ii[] = 16445 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 16446 int use_ascii (int i) { 16447 return ascii_mm[i] + ascii_ii[i]; 16448 } 16449 short int ebcdic_ii[] = 16450 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 16451 short int ebcdic_mm[] = 16452 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 16453 int use_ebcdic (int i) { 16454 return ebcdic_mm[i] + ebcdic_ii[i]; 16455 } 16456 extern int foo; 16457 16458int 16459main () 16460{ 16461return use_ascii (foo) == use_ebcdic (foo); 16462 ; 16463 return 0; 16464} 16465_ACEOF 16466if ac_fn_cxx_try_compile "$LINENO"; then : 16467 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 16468 ac_cv_c_bigendian=yes 16469 fi 16470 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 16471 if test "$ac_cv_c_bigendian" = unknown; then 16472 ac_cv_c_bigendian=no 16473 else 16474 # finding both strings is unlikely to happen, but who knows? 16475 ac_cv_c_bigendian=unknown 16476 fi 16477 fi 16478fi 16479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16480else 16481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16482/* end confdefs.h. */ 16483$ac_includes_default 16484int 16485main () 16486{ 16487 16488 /* Are we little or big endian? From Harbison&Steele. */ 16489 union 16490 { 16491 long int l; 16492 char c[sizeof (long int)]; 16493 } u; 16494 u.l = 1; 16495 return u.c[sizeof (long int) - 1] == 1; 16496 16497 ; 16498 return 0; 16499} 16500_ACEOF 16501if ac_fn_cxx_try_run "$LINENO"; then : 16502 ac_cv_c_bigendian=no 16503else 16504 ac_cv_c_bigendian=yes 16505fi 16506rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16507 conftest.$ac_objext conftest.beam conftest.$ac_ext 16508fi 16509 16510 fi 16511fi 16512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 16513$as_echo "$ac_cv_c_bigendian" >&6; } 16514 case $ac_cv_c_bigendian in #( 16515 yes) 16516 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 16517;; #( 16518 no) 16519 ;; #( 16520 universal) 16521 16522$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 16523 16524 ;; #( 16525 *) 16526 as_fn_error $? "unknown endianness 16527 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 16528 esac 16529 16530 16531# Check flag for accurate arithmetic with Intel compiler. This is 16532# needed to stop the compiler from ignoring parentheses in expressions 16533# like (a + b) + c and from simplifying 0.0 + x to x (which is wrong if 16534# x = -0.0). 16535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -fp-model precise -diag-disable=11074,11076" >&5 16536$as_echo_n "checking whether C++ compiler accepts -fp-model precise -diag-disable=11074,11076... " >&6; } 16537if ${ax_cv_check_cxxflags__Werror__fp_model_precise__diag_disable_11074_11076+:} false; then : 16538 $as_echo_n "(cached) " >&6 16539else 16540 16541 ax_check_save_flags=$CXXFLAGS 16542 CXXFLAGS="$CXXFLAGS -Werror -fp-model precise -diag-disable=11074,11076" 16543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16544/* end confdefs.h. */ 16545 16546int 16547main () 16548{ 16549 16550 ; 16551 return 0; 16552} 16553_ACEOF 16554if ac_fn_cxx_try_compile "$LINENO"; then : 16555 ax_cv_check_cxxflags__Werror__fp_model_precise__diag_disable_11074_11076=yes 16556else 16557 ax_cv_check_cxxflags__Werror__fp_model_precise__diag_disable_11074_11076=no 16558fi 16559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16560 CXXFLAGS=$ax_check_save_flags 16561fi 16562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags__Werror__fp_model_precise__diag_disable_11074_11076" >&5 16563$as_echo "$ax_cv_check_cxxflags__Werror__fp_model_precise__diag_disable_11074_11076" >&6; } 16564if test "x$ax_cv_check_cxxflags__Werror__fp_model_precise__diag_disable_11074_11076" = xyes; then : 16565 CXXFLAGS="$CXXFLAGS -fp-model precise -diag-disable=11074,11076" 16566else 16567 : 16568fi 16569 16570 16571# Check for doxygen. Version 1.8.7 or later needed for … 16572for ac_prog in doxygen 16573do 16574 # Extract the first word of "$ac_prog", so it can be a program name with args. 16575set dummy $ac_prog; ac_word=$2 16576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16577$as_echo_n "checking for $ac_word... " >&6; } 16578if ${ac_cv_prog_DOXYGEN+:} false; then : 16579 $as_echo_n "(cached) " >&6 16580else 16581 if test -n "$DOXYGEN"; then 16582 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. 16583else 16584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16585for as_dir in $PATH 16586do 16587 IFS=$as_save_IFS 16588 test -z "$as_dir" && as_dir=. 16589 for ac_exec_ext in '' $ac_executable_extensions; do 16590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16591 ac_cv_prog_DOXYGEN="$ac_prog" 16592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16593 break 2 16594 fi 16595done 16596 done 16597IFS=$as_save_IFS 16598 16599fi 16600fi 16601DOXYGEN=$ac_cv_prog_DOXYGEN 16602if test -n "$DOXYGEN"; then 16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 16604$as_echo "$DOXYGEN" >&6; } 16605else 16606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16607$as_echo "no" >&6; } 16608fi 16609 16610 16611 test -n "$DOXYGEN" && break 16612done 16613 16614 if test "$DOXYGEN" && test `"$DOXYGEN" --version | 16615 sed 's/\b\([0-9]\)\b/0\1/g'` '>' 01.08.06.99; then 16616 HAVE_DOXYGEN_TRUE= 16617 HAVE_DOXYGEN_FALSE='#' 16618else 16619 HAVE_DOXYGEN_TRUE='#' 16620 HAVE_DOXYGEN_FALSE= 16621fi 16622 16623 16624for ac_prog in pod2man 16625do 16626 # Extract the first word of "$ac_prog", so it can be a program name with args. 16627set dummy $ac_prog; ac_word=$2 16628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16629$as_echo_n "checking for $ac_word... " >&6; } 16630if ${ac_cv_prog_POD2MAN+:} false; then : 16631 $as_echo_n "(cached) " >&6 16632else 16633 if test -n "$POD2MAN"; then 16634 ac_cv_prog_POD2MAN="$POD2MAN" # Let the user override the test. 16635else 16636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16637for as_dir in $PATH 16638do 16639 IFS=$as_save_IFS 16640 test -z "$as_dir" && as_dir=. 16641 for ac_exec_ext in '' $ac_executable_extensions; do 16642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16643 ac_cv_prog_POD2MAN="$ac_prog" 16644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16645 break 2 16646 fi 16647done 16648 done 16649IFS=$as_save_IFS 16650 16651fi 16652fi 16653POD2MAN=$ac_cv_prog_POD2MAN 16654if test -n "$POD2MAN"; then 16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5 16656$as_echo "$POD2MAN" >&6; } 16657else 16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16659$as_echo "no" >&6; } 16660fi 16661 16662 16663 test -n "$POD2MAN" && break 16664done 16665 16666for ac_prog in pod2html 16667do 16668 # Extract the first word of "$ac_prog", so it can be a program name with args. 16669set dummy $ac_prog; ac_word=$2 16670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16671$as_echo_n "checking for $ac_word... " >&6; } 16672if ${ac_cv_prog_POD2HTML+:} false; then : 16673 $as_echo_n "(cached) " >&6 16674else 16675 if test -n "$POD2HTML"; then 16676 ac_cv_prog_POD2HTML="$POD2HTML" # Let the user override the test. 16677else 16678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16679for as_dir in $PATH 16680do 16681 IFS=$as_save_IFS 16682 test -z "$as_dir" && as_dir=. 16683 for ac_exec_ext in '' $ac_executable_extensions; do 16684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16685 ac_cv_prog_POD2HTML="$ac_prog" 16686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16687 break 2 16688 fi 16689done 16690 done 16691IFS=$as_save_IFS 16692 16693fi 16694fi 16695POD2HTML=$ac_cv_prog_POD2HTML 16696if test -n "$POD2HTML"; then 16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2HTML" >&5 16698$as_echo "$POD2HTML" >&6; } 16699else 16700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16701$as_echo "no" >&6; } 16702fi 16703 16704 16705 test -n "$POD2HTML" && break 16706done 16707 16708for ac_prog in col 16709do 16710 # Extract the first word of "$ac_prog", so it can be a program name with args. 16711set dummy $ac_prog; ac_word=$2 16712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16713$as_echo_n "checking for $ac_word... " >&6; } 16714if ${ac_cv_prog_COL+:} false; then : 16715 $as_echo_n "(cached) " >&6 16716else 16717 if test -n "$COL"; then 16718 ac_cv_prog_COL="$COL" # Let the user override the test. 16719else 16720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16721for as_dir in $PATH 16722do 16723 IFS=$as_save_IFS 16724 test -z "$as_dir" && as_dir=. 16725 for ac_exec_ext in '' $ac_executable_extensions; do 16726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16727 ac_cv_prog_COL="$ac_prog" 16728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16729 break 2 16730 fi 16731done 16732 done 16733IFS=$as_save_IFS 16734 16735fi 16736fi 16737COL=$ac_cv_prog_COL 16738if test -n "$COL"; then 16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COL" >&5 16740$as_echo "$COL" >&6; } 16741else 16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16743$as_echo "no" >&6; } 16744fi 16745 16746 16747 test -n "$COL" && break 16748done 16749 16750 if test "$POD2MAN" -a "$POD2HTML" -a "$COL"; then 16751 HAVE_PODPROGS_TRUE= 16752 HAVE_PODPROGS_FALSE='#' 16753else 16754 HAVE_PODPROGS_TRUE='#' 16755 HAVE_PODPROGS_FALSE= 16756fi 16757 16758 16759ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile tools/Makefile doc/Makefile js/Makefile man/Makefile matlab/Makefile python/Makefile cmake/Makefile examples/Makefile" 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 16770 if test -n "$ac_tool_prefix"; then 16771 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 16772set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 16773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16774$as_echo_n "checking for $ac_word... " >&6; } 16775if ${ac_cv_path_PKG_CONFIG+:} false; then : 16776 $as_echo_n "(cached) " >&6 16777else 16778 case $PKG_CONFIG in 16779 [\\/]* | ?:[\\/]*) 16780 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 16781 ;; 16782 *) 16783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16784for as_dir in $PATH 16785do 16786 IFS=$as_save_IFS 16787 test -z "$as_dir" && as_dir=. 16788 for ac_exec_ext in '' $ac_executable_extensions; do 16789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16790 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 16791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16792 break 2 16793 fi 16794done 16795 done 16796IFS=$as_save_IFS 16797 16798 ;; 16799esac 16800fi 16801PKG_CONFIG=$ac_cv_path_PKG_CONFIG 16802if test -n "$PKG_CONFIG"; then 16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 16804$as_echo "$PKG_CONFIG" >&6; } 16805else 16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16807$as_echo "no" >&6; } 16808fi 16809 16810 16811fi 16812if test -z "$ac_cv_path_PKG_CONFIG"; then 16813 ac_pt_PKG_CONFIG=$PKG_CONFIG 16814 # Extract the first word of "pkg-config", so it can be a program name with args. 16815set dummy pkg-config; ac_word=$2 16816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16817$as_echo_n "checking for $ac_word... " >&6; } 16818if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 16819 $as_echo_n "(cached) " >&6 16820else 16821 case $ac_pt_PKG_CONFIG in 16822 [\\/]* | ?:[\\/]*) 16823 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 16824 ;; 16825 *) 16826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16827for as_dir in $PATH 16828do 16829 IFS=$as_save_IFS 16830 test -z "$as_dir" && as_dir=. 16831 for ac_exec_ext in '' $ac_executable_extensions; do 16832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16833 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 16834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16835 break 2 16836 fi 16837done 16838 done 16839IFS=$as_save_IFS 16840 16841 ;; 16842esac 16843fi 16844ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 16845if test -n "$ac_pt_PKG_CONFIG"; then 16846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 16847$as_echo "$ac_pt_PKG_CONFIG" >&6; } 16848else 16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16850$as_echo "no" >&6; } 16851fi 16852 16853 if test "x$ac_pt_PKG_CONFIG" = x; then 16854 PKG_CONFIG="" 16855 else 16856 case $cross_compiling:$ac_tool_warned in 16857yes:) 16858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16860ac_tool_warned=yes ;; 16861esac 16862 PKG_CONFIG=$ac_pt_PKG_CONFIG 16863 fi 16864else 16865 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 16866fi 16867 16868fi 16869if test -n "$PKG_CONFIG"; then 16870 _pkg_min_version=0.9.0 16871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 16872$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 16873 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16875$as_echo "yes" >&6; } 16876 else 16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16878$as_echo "no" >&6; } 16879 PKG_CONFIG="" 16880 fi 16881fi 16882 16883 16884 16885# Check whether --with-pkgconfigdir was given. 16886if test "${with_pkgconfigdir+set}" = set; then : 16887 withval=$with_pkgconfigdir; 16888else 16889 with_pkgconfigdir='${libdir}/pkgconfig' 16890fi 16891 16892pkgconfigdir=$with_pkgconfigdir 16893 16894 16895 16896 16897 16898ac_config_files="$ac_config_files cmake/geographiclib.pc:cmake/project.pc.in" 16899 16900 16901cat >confcache <<\_ACEOF 16902# This file is a shell script that caches the results of configure 16903# tests run on this system so they can be shared between configure 16904# scripts and configure runs, see configure's option --config-cache. 16905# It is not useful on other systems. If it contains results you don't 16906# want to keep, you may remove or edit it. 16907# 16908# config.status only pays attention to the cache file if you give it 16909# the --recheck option to rerun configure. 16910# 16911# `ac_cv_env_foo' variables (set or unset) will be overridden when 16912# loading this file, other *unset* `ac_cv_foo' will be assigned the 16913# following values. 16914 16915_ACEOF 16916 16917# The following way of writing the cache mishandles newlines in values, 16918# but we know of no workaround that is simple, portable, and efficient. 16919# So, we kill variables containing newlines. 16920# Ultrix sh set writes to stderr and can't be redirected directly, 16921# and sets the high bit in the cache file unless we assign to the vars. 16922( 16923 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16924 eval ac_val=\$$ac_var 16925 case $ac_val in #( 16926 *${as_nl}*) 16927 case $ac_var in #( 16928 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16929$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16930 esac 16931 case $ac_var in #( 16932 _ | IFS | as_nl) ;; #( 16933 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16934 *) { eval $ac_var=; unset $ac_var;} ;; 16935 esac ;; 16936 esac 16937 done 16938 16939 (set) 2>&1 | 16940 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16941 *${as_nl}ac_space=\ *) 16942 # `set' does not quote correctly, so add quotes: double-quote 16943 # substitution turns \\\\ into \\, and sed turns \\ into \. 16944 sed -n \ 16945 "s/'/'\\\\''/g; 16946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16947 ;; #( 16948 *) 16949 # `set' quotes correctly as required by POSIX, so do not add quotes. 16950 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16951 ;; 16952 esac | 16953 sort 16954) | 16955 sed ' 16956 /^ac_cv_env_/b end 16957 t clear 16958 :clear 16959 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16960 t end 16961 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16962 :end' >>confcache 16963if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16964 if test -w "$cache_file"; then 16965 if test "x$cache_file" != "x/dev/null"; then 16966 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16967$as_echo "$as_me: updating cache $cache_file" >&6;} 16968 if test ! -f "$cache_file" || test -h "$cache_file"; then 16969 cat confcache >"$cache_file" 16970 else 16971 case $cache_file in #( 16972 */* | ?:*) 16973 mv -f confcache "$cache_file"$$ && 16974 mv -f "$cache_file"$$ "$cache_file" ;; #( 16975 *) 16976 mv -f confcache "$cache_file" ;; 16977 esac 16978 fi 16979 fi 16980 else 16981 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16982$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16983 fi 16984fi 16985rm -f confcache 16986 16987test "x$prefix" = xNONE && prefix=$ac_default_prefix 16988# Let make expand exec_prefix. 16989test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16990 16991DEFS=-DHAVE_CONFIG_H 16992 16993ac_libobjs= 16994ac_ltlibobjs= 16995U= 16996for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16997 # 1. Remove the extension, and $U if already installed. 16998 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16999 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17000 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17001 # will be set to the directory where LIBOBJS objects are built. 17002 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17003 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17004done 17005LIBOBJS=$ac_libobjs 17006 17007LTLIBOBJS=$ac_ltlibobjs 17008 17009 17010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17011$as_echo_n "checking that generated files are newer than configure... " >&6; } 17012 if test -n "$am_sleep_pid"; then 17013 # Hide warnings about reused PIDs. 17014 wait $am_sleep_pid 2>/dev/null 17015 fi 17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17017$as_echo "done" >&6; } 17018 if test -n "$EXEEXT"; then 17019 am__EXEEXT_TRUE= 17020 am__EXEEXT_FALSE='#' 17021else 17022 am__EXEEXT_TRUE='#' 17023 am__EXEEXT_FALSE= 17024fi 17025 17026if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 17027 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 17028Usually this means the macro was only invoked conditionally." "$LINENO" 5 17029fi 17030if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17031 as_fn_error $? "conditional \"AMDEP\" was never defined. 17032Usually this means the macro was only invoked conditionally." "$LINENO" 5 17033fi 17034if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17035 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17036Usually this means the macro was only invoked conditionally." "$LINENO" 5 17037fi 17038if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17039 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 17040Usually this means the macro was only invoked conditionally." "$LINENO" 5 17041fi 17042 17043if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 17044 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 17045Usually this means the macro was only invoked conditionally." "$LINENO" 5 17046fi 17047if test -z "${HAVE_PODPROGS_TRUE}" && test -z "${HAVE_PODPROGS_FALSE}"; then 17048 as_fn_error $? "conditional \"HAVE_PODPROGS\" was never defined. 17049Usually this means the macro was only invoked conditionally." "$LINENO" 5 17050fi 17051 17052: "${CONFIG_STATUS=./config.status}" 17053ac_write_fail=0 17054ac_clean_files_save=$ac_clean_files 17055ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17056{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17057$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17058as_write_fail=0 17059cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17060#! $SHELL 17061# Generated by $as_me. 17062# Run this file to recreate the current configuration. 17063# Compiler output produced by configure, useful for debugging 17064# configure, is in config.log if it exists. 17065 17066debug=false 17067ac_cs_recheck=false 17068ac_cs_silent=false 17069 17070SHELL=\${CONFIG_SHELL-$SHELL} 17071export SHELL 17072_ASEOF 17073cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17074## -------------------- ## 17075## M4sh Initialization. ## 17076## -------------------- ## 17077 17078# Be more Bourne compatible 17079DUALCASE=1; export DUALCASE # for MKS sh 17080if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17081 emulate sh 17082 NULLCMD=: 17083 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17084 # is contrary to our usage. Disable this feature. 17085 alias -g '${1+"$@"}'='"$@"' 17086 setopt NO_GLOB_SUBST 17087else 17088 case `(set -o) 2>/dev/null` in #( 17089 *posix*) : 17090 set -o posix ;; #( 17091 *) : 17092 ;; 17093esac 17094fi 17095 17096 17097as_nl=' 17098' 17099export as_nl 17100# Printing a long string crashes Solaris 7 /usr/bin/printf. 17101as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17102as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17103as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17104# Prefer a ksh shell builtin over an external printf program on Solaris, 17105# but without wasting forks for bash or zsh. 17106if test -z "$BASH_VERSION$ZSH_VERSION" \ 17107 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17108 as_echo='print -r --' 17109 as_echo_n='print -rn --' 17110elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17111 as_echo='printf %s\n' 17112 as_echo_n='printf %s' 17113else 17114 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17115 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17116 as_echo_n='/usr/ucb/echo -n' 17117 else 17118 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17119 as_echo_n_body='eval 17120 arg=$1; 17121 case $arg in #( 17122 *"$as_nl"*) 17123 expr "X$arg" : "X\\(.*\\)$as_nl"; 17124 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17125 esac; 17126 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17127 ' 17128 export as_echo_n_body 17129 as_echo_n='sh -c $as_echo_n_body as_echo' 17130 fi 17131 export as_echo_body 17132 as_echo='sh -c $as_echo_body as_echo' 17133fi 17134 17135# The user is always right. 17136if test "${PATH_SEPARATOR+set}" != set; then 17137 PATH_SEPARATOR=: 17138 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17139 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17140 PATH_SEPARATOR=';' 17141 } 17142fi 17143 17144 17145# IFS 17146# We need space, tab and new line, in precisely that order. Quoting is 17147# there to prevent editors from complaining about space-tab. 17148# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17149# splitting by setting IFS to empty value.) 17150IFS=" "" $as_nl" 17151 17152# Find who we are. Look in the path if we contain no directory separator. 17153as_myself= 17154case $0 in #(( 17155 *[\\/]* ) as_myself=$0 ;; 17156 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17157for as_dir in $PATH 17158do 17159 IFS=$as_save_IFS 17160 test -z "$as_dir" && as_dir=. 17161 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17162 done 17163IFS=$as_save_IFS 17164 17165 ;; 17166esac 17167# We did not find ourselves, most probably we were run as `sh COMMAND' 17168# in which case we are not to be found in the path. 17169if test "x$as_myself" = x; then 17170 as_myself=$0 17171fi 17172if test ! -f "$as_myself"; then 17173 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17174 exit 1 17175fi 17176 17177# Unset variables that we do not need and which cause bugs (e.g. in 17178# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17179# suppresses any "Segmentation fault" message there. '((' could 17180# trigger a bug in pdksh 5.2.14. 17181for as_var in BASH_ENV ENV MAIL MAILPATH 17182do eval test x\${$as_var+set} = xset \ 17183 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17184done 17185PS1='$ ' 17186PS2='> ' 17187PS4='+ ' 17188 17189# NLS nuisances. 17190LC_ALL=C 17191export LC_ALL 17192LANGUAGE=C 17193export LANGUAGE 17194 17195# CDPATH. 17196(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17197 17198 17199# as_fn_error STATUS ERROR [LINENO LOG_FD] 17200# ---------------------------------------- 17201# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17202# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17203# script with STATUS, using 1 if that was 0. 17204as_fn_error () 17205{ 17206 as_status=$1; test $as_status -eq 0 && as_status=1 17207 if test "$4"; then 17208 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17209 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17210 fi 17211 $as_echo "$as_me: error: $2" >&2 17212 as_fn_exit $as_status 17213} # as_fn_error 17214 17215 17216# as_fn_set_status STATUS 17217# ----------------------- 17218# Set $? to STATUS, without forking. 17219as_fn_set_status () 17220{ 17221 return $1 17222} # as_fn_set_status 17223 17224# as_fn_exit STATUS 17225# ----------------- 17226# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17227as_fn_exit () 17228{ 17229 set +e 17230 as_fn_set_status $1 17231 exit $1 17232} # as_fn_exit 17233 17234# as_fn_unset VAR 17235# --------------- 17236# Portably unset VAR. 17237as_fn_unset () 17238{ 17239 { eval $1=; unset $1;} 17240} 17241as_unset=as_fn_unset 17242# as_fn_append VAR VALUE 17243# ---------------------- 17244# Append the text in VALUE to the end of the definition contained in VAR. Take 17245# advantage of any shell optimizations that allow amortized linear growth over 17246# repeated appends, instead of the typical quadratic growth present in naive 17247# implementations. 17248if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17249 eval 'as_fn_append () 17250 { 17251 eval $1+=\$2 17252 }' 17253else 17254 as_fn_append () 17255 { 17256 eval $1=\$$1\$2 17257 } 17258fi # as_fn_append 17259 17260# as_fn_arith ARG... 17261# ------------------ 17262# Perform arithmetic evaluation on the ARGs, and store the result in the 17263# global $as_val. Take advantage of shells that can avoid forks. The arguments 17264# must be portable across $(()) and expr. 17265if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17266 eval 'as_fn_arith () 17267 { 17268 as_val=$(( $* )) 17269 }' 17270else 17271 as_fn_arith () 17272 { 17273 as_val=`expr "$@" || test $? -eq 1` 17274 } 17275fi # as_fn_arith 17276 17277 17278if expr a : '\(a\)' >/dev/null 2>&1 && 17279 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17280 as_expr=expr 17281else 17282 as_expr=false 17283fi 17284 17285if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17286 as_basename=basename 17287else 17288 as_basename=false 17289fi 17290 17291if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17292 as_dirname=dirname 17293else 17294 as_dirname=false 17295fi 17296 17297as_me=`$as_basename -- "$0" || 17298$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17299 X"$0" : 'X\(//\)$' \| \ 17300 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17301$as_echo X/"$0" | 17302 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17303 s//\1/ 17304 q 17305 } 17306 /^X\/\(\/\/\)$/{ 17307 s//\1/ 17308 q 17309 } 17310 /^X\/\(\/\).*/{ 17311 s//\1/ 17312 q 17313 } 17314 s/.*/./; q'` 17315 17316# Avoid depending upon Character Ranges. 17317as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17318as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17319as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17320as_cr_digits='0123456789' 17321as_cr_alnum=$as_cr_Letters$as_cr_digits 17322 17323ECHO_C= ECHO_N= ECHO_T= 17324case `echo -n x` in #((((( 17325-n*) 17326 case `echo 'xy\c'` in 17327 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17328 xy) ECHO_C='\c';; 17329 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17330 ECHO_T=' ';; 17331 esac;; 17332*) 17333 ECHO_N='-n';; 17334esac 17335 17336rm -f conf$$ conf$$.exe conf$$.file 17337if test -d conf$$.dir; then 17338 rm -f conf$$.dir/conf$$.file 17339else 17340 rm -f conf$$.dir 17341 mkdir conf$$.dir 2>/dev/null 17342fi 17343if (echo >conf$$.file) 2>/dev/null; then 17344 if ln -s conf$$.file conf$$ 2>/dev/null; then 17345 as_ln_s='ln -s' 17346 # ... but there are two gotchas: 17347 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17348 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17349 # In both cases, we have to default to `cp -pR'. 17350 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17351 as_ln_s='cp -pR' 17352 elif ln conf$$.file conf$$ 2>/dev/null; then 17353 as_ln_s=ln 17354 else 17355 as_ln_s='cp -pR' 17356 fi 17357else 17358 as_ln_s='cp -pR' 17359fi 17360rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17361rmdir conf$$.dir 2>/dev/null 17362 17363 17364# as_fn_mkdir_p 17365# ------------- 17366# Create "$as_dir" as a directory, including parents if necessary. 17367as_fn_mkdir_p () 17368{ 17369 17370 case $as_dir in #( 17371 -*) as_dir=./$as_dir;; 17372 esac 17373 test -d "$as_dir" || eval $as_mkdir_p || { 17374 as_dirs= 17375 while :; do 17376 case $as_dir in #( 17377 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17378 *) as_qdir=$as_dir;; 17379 esac 17380 as_dirs="'$as_qdir' $as_dirs" 17381 as_dir=`$as_dirname -- "$as_dir" || 17382$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17383 X"$as_dir" : 'X\(//\)[^/]' \| \ 17384 X"$as_dir" : 'X\(//\)$' \| \ 17385 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17386$as_echo X"$as_dir" | 17387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17388 s//\1/ 17389 q 17390 } 17391 /^X\(\/\/\)[^/].*/{ 17392 s//\1/ 17393 q 17394 } 17395 /^X\(\/\/\)$/{ 17396 s//\1/ 17397 q 17398 } 17399 /^X\(\/\).*/{ 17400 s//\1/ 17401 q 17402 } 17403 s/.*/./; q'` 17404 test -d "$as_dir" && break 17405 done 17406 test -z "$as_dirs" || eval "mkdir $as_dirs" 17407 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17408 17409 17410} # as_fn_mkdir_p 17411if mkdir -p . 2>/dev/null; then 17412 as_mkdir_p='mkdir -p "$as_dir"' 17413else 17414 test -d ./-p && rmdir ./-p 17415 as_mkdir_p=false 17416fi 17417 17418 17419# as_fn_executable_p FILE 17420# ----------------------- 17421# Test if FILE is an executable regular file. 17422as_fn_executable_p () 17423{ 17424 test -f "$1" && test -x "$1" 17425} # as_fn_executable_p 17426as_test_x='test -x' 17427as_executable_p=as_fn_executable_p 17428 17429# Sed expression to map a string onto a valid CPP name. 17430as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17431 17432# Sed expression to map a string onto a valid variable name. 17433as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17434 17435 17436exec 6>&1 17437## ----------------------------------- ## 17438## Main body of $CONFIG_STATUS script. ## 17439## ----------------------------------- ## 17440_ASEOF 17441test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17442 17443cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17444# Save the log message, to keep $0 and so on meaningful, and to 17445# report actual input values of CONFIG_FILES etc. instead of their 17446# values after options handling. 17447ac_log=" 17448This file was extended by GeographicLib $as_me 1.52, which was 17449generated by GNU Autoconf 2.69. Invocation command line was 17450 17451 CONFIG_FILES = $CONFIG_FILES 17452 CONFIG_HEADERS = $CONFIG_HEADERS 17453 CONFIG_LINKS = $CONFIG_LINKS 17454 CONFIG_COMMANDS = $CONFIG_COMMANDS 17455 $ $0 $@ 17456 17457on `(hostname || uname -n) 2>/dev/null | sed 1q` 17458" 17459 17460_ACEOF 17461 17462case $ac_config_files in *" 17463"*) set x $ac_config_files; shift; ac_config_files=$*;; 17464esac 17465 17466case $ac_config_headers in *" 17467"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17468esac 17469 17470 17471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17472# Files that config.status was made for. 17473config_files="$ac_config_files" 17474config_headers="$ac_config_headers" 17475config_commands="$ac_config_commands" 17476 17477_ACEOF 17478 17479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17480ac_cs_usage="\ 17481\`$as_me' instantiates files and other configuration actions 17482from templates according to the current configuration. Unless the files 17483and actions are specified as TAGs, all are instantiated by default. 17484 17485Usage: $0 [OPTION]... [TAG]... 17486 17487 -h, --help print this help, then exit 17488 -V, --version print version number and configuration settings, then exit 17489 --config print configuration, then exit 17490 -q, --quiet, --silent 17491 do not print progress messages 17492 -d, --debug don't remove temporary files 17493 --recheck update $as_me by reconfiguring in the same conditions 17494 --file=FILE[:TEMPLATE] 17495 instantiate the configuration file FILE 17496 --header=FILE[:TEMPLATE] 17497 instantiate the configuration header FILE 17498 17499Configuration files: 17500$config_files 17501 17502Configuration headers: 17503$config_headers 17504 17505Configuration commands: 17506$config_commands 17507 17508Report bugs to <charles@karney.com>." 17509 17510_ACEOF 17511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17512ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17513ac_cs_version="\\ 17514GeographicLib config.status 1.52 17515configured by $0, generated by GNU Autoconf 2.69, 17516 with options \\"\$ac_cs_config\\" 17517 17518Copyright (C) 2012 Free Software Foundation, Inc. 17519This config.status script is free software; the Free Software Foundation 17520gives unlimited permission to copy, distribute and modify it." 17521 17522ac_pwd='$ac_pwd' 17523srcdir='$srcdir' 17524INSTALL='$INSTALL' 17525MKDIR_P='$MKDIR_P' 17526AWK='$AWK' 17527test -n "\$AWK" || AWK=awk 17528_ACEOF 17529 17530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17531# The default lists apply if the user does not specify any file. 17532ac_need_defaults=: 17533while test $# != 0 17534do 17535 case $1 in 17536 --*=?*) 17537 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17538 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17539 ac_shift=: 17540 ;; 17541 --*=) 17542 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17543 ac_optarg= 17544 ac_shift=: 17545 ;; 17546 *) 17547 ac_option=$1 17548 ac_optarg=$2 17549 ac_shift=shift 17550 ;; 17551 esac 17552 17553 case $ac_option in 17554 # Handling of the options. 17555 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17556 ac_cs_recheck=: ;; 17557 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17558 $as_echo "$ac_cs_version"; exit ;; 17559 --config | --confi | --conf | --con | --co | --c ) 17560 $as_echo "$ac_cs_config"; exit ;; 17561 --debug | --debu | --deb | --de | --d | -d ) 17562 debug=: ;; 17563 --file | --fil | --fi | --f ) 17564 $ac_shift 17565 case $ac_optarg in 17566 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17567 '') as_fn_error $? "missing file argument" ;; 17568 esac 17569 as_fn_append CONFIG_FILES " '$ac_optarg'" 17570 ac_need_defaults=false;; 17571 --header | --heade | --head | --hea ) 17572 $ac_shift 17573 case $ac_optarg in 17574 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17575 esac 17576 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17577 ac_need_defaults=false;; 17578 --he | --h) 17579 # Conflict between --help and --header 17580 as_fn_error $? "ambiguous option: \`$1' 17581Try \`$0 --help' for more information.";; 17582 --help | --hel | -h ) 17583 $as_echo "$ac_cs_usage"; exit ;; 17584 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17585 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17586 ac_cs_silent=: ;; 17587 17588 # This is an error. 17589 -*) as_fn_error $? "unrecognized option: \`$1' 17590Try \`$0 --help' for more information." ;; 17591 17592 *) as_fn_append ac_config_targets " $1" 17593 ac_need_defaults=false ;; 17594 17595 esac 17596 shift 17597done 17598 17599ac_configure_extra_args= 17600 17601if $ac_cs_silent; then 17602 exec 6>/dev/null 17603 ac_configure_extra_args="$ac_configure_extra_args --silent" 17604fi 17605 17606_ACEOF 17607cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17608if \$ac_cs_recheck; then 17609 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17610 shift 17611 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17612 CONFIG_SHELL='$SHELL' 17613 export CONFIG_SHELL 17614 exec "\$@" 17615fi 17616 17617_ACEOF 17618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17619exec 5>>config.log 17620{ 17621 echo 17622 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17623## Running $as_me. ## 17624_ASBOX 17625 $as_echo "$ac_log" 17626} >&5 17627 17628_ACEOF 17629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17630# 17631# INIT-COMMANDS 17632# 17633AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 17634 17635 17636# The HP-UX ksh and POSIX shell print the target directory to stdout 17637# if CDPATH is set. 17638(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17639 17640sed_quote_subst='$sed_quote_subst' 17641double_quote_subst='$double_quote_subst' 17642delay_variable_subst='$delay_variable_subst' 17643macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17644macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17645enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17646enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17647pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17648enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17649shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17650SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17651ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17652PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17653host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17654host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17655host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17656build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17657build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17658build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17659SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17660Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17661GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17662EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17663FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17664LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17665NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17666LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17667max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17668ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17669exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17670lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17671lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17672lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17673lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17674lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17675reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17676reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17677OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17678deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17679file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17680file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17681want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17682DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17683sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17684AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17685AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17686archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17687STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17688RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17689old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17690old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17691old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17692lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17693CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17694CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17695compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17696GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17697lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17698lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17699lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17700lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17701lt_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"`' 17702lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17703nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17704lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17705lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17706objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17707MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17708lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17709lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17710lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17711lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17712lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17713need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17714MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17715DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17716NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17717LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17718OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17719OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17720libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17721shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17722extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17723archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17724enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17725export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17726whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17727compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17728old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17729old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17730archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17731archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17732module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17733module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17734with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17735allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17736no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17737hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17738hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17739hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17740hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17741hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17742hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17743hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17744inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17745link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17746always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17747export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17748exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17749include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17750prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17751postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17752file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17753variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17754need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17755need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17756version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17757runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17758shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17759shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17760libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17761library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17762soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17763install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17764postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17765postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17766finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17767finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17768hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17769sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17770configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17771configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17772hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17773enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17774enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17775enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17776old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17777striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17778compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 17779predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 17780postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 17781predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 17782postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 17783compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 17784LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 17785reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 17786reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17787old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17788compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 17789GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 17790lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 17791lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 17792lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 17793lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 17794lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 17795archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 17796enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 17797export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17798whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17799compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 17800old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17801old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17802archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17803archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17804module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17805module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17806with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 17807allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17808no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17809hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17810hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 17811hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 17812hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 17813hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 17814hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 17815hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 17816inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 17817link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 17818always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 17819export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17820exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17821include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17822prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17823postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17824file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 17825hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 17826compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 17827predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17828postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17829predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 17830postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 17831compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 17832 17833LTCC='$LTCC' 17834LTCFLAGS='$LTCFLAGS' 17835compiler='$compiler_DEFAULT' 17836 17837# A function that is used when there is no print builtin or printf. 17838func_fallback_echo () 17839{ 17840 eval 'cat <<_LTECHO_EOF 17841\$1 17842_LTECHO_EOF' 17843} 17844 17845# Quote evaled strings. 17846for var in SHELL \ 17847ECHO \ 17848PATH_SEPARATOR \ 17849SED \ 17850GREP \ 17851EGREP \ 17852FGREP \ 17853LD \ 17854NM \ 17855LN_S \ 17856lt_SP2NL \ 17857lt_NL2SP \ 17858reload_flag \ 17859OBJDUMP \ 17860deplibs_check_method \ 17861file_magic_cmd \ 17862file_magic_glob \ 17863want_nocaseglob \ 17864DLLTOOL \ 17865sharedlib_from_linklib_cmd \ 17866AR \ 17867AR_FLAGS \ 17868archiver_list_spec \ 17869STRIP \ 17870RANLIB \ 17871CC \ 17872CFLAGS \ 17873compiler \ 17874lt_cv_sys_global_symbol_pipe \ 17875lt_cv_sys_global_symbol_to_cdecl \ 17876lt_cv_sys_global_symbol_to_import \ 17877lt_cv_sys_global_symbol_to_c_name_address \ 17878lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17879lt_cv_nm_interface \ 17880nm_file_list_spec \ 17881lt_cv_truncate_bin \ 17882lt_prog_compiler_no_builtin_flag \ 17883lt_prog_compiler_pic \ 17884lt_prog_compiler_wl \ 17885lt_prog_compiler_static \ 17886lt_cv_prog_compiler_c_o \ 17887need_locks \ 17888MANIFEST_TOOL \ 17889DSYMUTIL \ 17890NMEDIT \ 17891LIPO \ 17892OTOOL \ 17893OTOOL64 \ 17894shrext_cmds \ 17895export_dynamic_flag_spec \ 17896whole_archive_flag_spec \ 17897compiler_needs_object \ 17898with_gnu_ld \ 17899allow_undefined_flag \ 17900no_undefined_flag \ 17901hardcode_libdir_flag_spec \ 17902hardcode_libdir_separator \ 17903exclude_expsyms \ 17904include_expsyms \ 17905file_list_spec \ 17906variables_saved_for_relink \ 17907libname_spec \ 17908library_names_spec \ 17909soname_spec \ 17910install_override_mode \ 17911finish_eval \ 17912old_striplib \ 17913striplib \ 17914compiler_lib_search_dirs \ 17915predep_objects \ 17916postdep_objects \ 17917predeps \ 17918postdeps \ 17919compiler_lib_search_path \ 17920LD_CXX \ 17921reload_flag_CXX \ 17922compiler_CXX \ 17923lt_prog_compiler_no_builtin_flag_CXX \ 17924lt_prog_compiler_pic_CXX \ 17925lt_prog_compiler_wl_CXX \ 17926lt_prog_compiler_static_CXX \ 17927lt_cv_prog_compiler_c_o_CXX \ 17928export_dynamic_flag_spec_CXX \ 17929whole_archive_flag_spec_CXX \ 17930compiler_needs_object_CXX \ 17931with_gnu_ld_CXX \ 17932allow_undefined_flag_CXX \ 17933no_undefined_flag_CXX \ 17934hardcode_libdir_flag_spec_CXX \ 17935hardcode_libdir_separator_CXX \ 17936exclude_expsyms_CXX \ 17937include_expsyms_CXX \ 17938file_list_spec_CXX \ 17939compiler_lib_search_dirs_CXX \ 17940predep_objects_CXX \ 17941postdep_objects_CXX \ 17942predeps_CXX \ 17943postdeps_CXX \ 17944compiler_lib_search_path_CXX; do 17945 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17946 *[\\\\\\\`\\"\\\$]*) 17947 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17948 ;; 17949 *) 17950 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17951 ;; 17952 esac 17953done 17954 17955# Double-quote double-evaled strings. 17956for var in reload_cmds \ 17957old_postinstall_cmds \ 17958old_postuninstall_cmds \ 17959old_archive_cmds \ 17960extract_expsyms_cmds \ 17961old_archive_from_new_cmds \ 17962old_archive_from_expsyms_cmds \ 17963archive_cmds \ 17964archive_expsym_cmds \ 17965module_cmds \ 17966module_expsym_cmds \ 17967export_symbols_cmds \ 17968prelink_cmds \ 17969postlink_cmds \ 17970postinstall_cmds \ 17971postuninstall_cmds \ 17972finish_cmds \ 17973sys_lib_search_path_spec \ 17974configure_time_dlsearch_path \ 17975configure_time_lt_sys_library_path \ 17976reload_cmds_CXX \ 17977old_archive_cmds_CXX \ 17978old_archive_from_new_cmds_CXX \ 17979old_archive_from_expsyms_cmds_CXX \ 17980archive_cmds_CXX \ 17981archive_expsym_cmds_CXX \ 17982module_cmds_CXX \ 17983module_expsym_cmds_CXX \ 17984export_symbols_cmds_CXX \ 17985prelink_cmds_CXX \ 17986postlink_cmds_CXX; do 17987 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17988 *[\\\\\\\`\\"\\\$]*) 17989 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17990 ;; 17991 *) 17992 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17993 ;; 17994 esac 17995done 17996 17997ac_aux_dir='$ac_aux_dir' 17998 17999# See if we are running on zsh, and set the options that allow our 18000# commands through without removal of \ escapes INIT. 18001if test -n "\${ZSH_VERSION+set}"; then 18002 setopt NO_GLOB_SUBST 18003fi 18004 18005 18006 PACKAGE='$PACKAGE' 18007 VERSION='$VERSION' 18008 RM='$RM' 18009 ofile='$ofile' 18010 18011 18012 18013 18014 18015 18016_ACEOF 18017 18018cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18019 18020# Handling of arguments. 18021for ac_config_target in $ac_config_targets 18022do 18023 case $ac_config_target in 18024 "include/GeographicLib/Config-ac.h") CONFIG_HEADERS="$CONFIG_HEADERS include/GeographicLib/Config-ac.h" ;; 18025 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18026 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18027 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18028 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18029 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 18030 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 18031 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 18032 "js/Makefile") CONFIG_FILES="$CONFIG_FILES js/Makefile" ;; 18033 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 18034 "matlab/Makefile") CONFIG_FILES="$CONFIG_FILES matlab/Makefile" ;; 18035 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;; 18036 "cmake/Makefile") CONFIG_FILES="$CONFIG_FILES cmake/Makefile" ;; 18037 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 18038 "cmake/geographiclib.pc") CONFIG_FILES="$CONFIG_FILES cmake/geographiclib.pc:cmake/project.pc.in" ;; 18039 18040 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18041 esac 18042done 18043 18044 18045# If the user did not use the arguments to specify the items to instantiate, 18046# then the envvar interface is used. Set only those that are not. 18047# We use the long form for the default assignment because of an extremely 18048# bizarre bug on SunOS 4.1.3. 18049if $ac_need_defaults; then 18050 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18051 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18052 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18053fi 18054 18055# Have a temporary directory for convenience. Make it in the build tree 18056# simply because there is no reason against having it here, and in addition, 18057# creating and moving files from /tmp can sometimes cause problems. 18058# Hook for its removal unless debugging. 18059# Note that there is a small window in which the directory will not be cleaned: 18060# after its creation but before its name has been assigned to `$tmp'. 18061$debug || 18062{ 18063 tmp= ac_tmp= 18064 trap 'exit_status=$? 18065 : "${ac_tmp:=$tmp}" 18066 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18067' 0 18068 trap 'as_fn_exit 1' 1 2 13 15 18069} 18070# Create a (secure) tmp directory for tmp files. 18071 18072{ 18073 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18074 test -d "$tmp" 18075} || 18076{ 18077 tmp=./conf$$-$RANDOM 18078 (umask 077 && mkdir "$tmp") 18079} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18080ac_tmp=$tmp 18081 18082# Set up the scripts for CONFIG_FILES section. 18083# No need to generate them if there are no CONFIG_FILES. 18084# This happens for instance with `./config.status config.h'. 18085if test -n "$CONFIG_FILES"; then 18086 18087 18088ac_cr=`echo X | tr X '\015'` 18089# On cygwin, bash can eat \r inside `` if the user requested igncr. 18090# But we know of no other shell where ac_cr would be empty at this 18091# point, so we can use a bashism as a fallback. 18092if test "x$ac_cr" = x; then 18093 eval ac_cr=\$\'\\r\' 18094fi 18095ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18096if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18097 ac_cs_awk_cr='\\r' 18098else 18099 ac_cs_awk_cr=$ac_cr 18100fi 18101 18102echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18103_ACEOF 18104 18105 18106{ 18107 echo "cat >conf$$subs.awk <<_ACEOF" && 18108 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18109 echo "_ACEOF" 18110} >conf$$subs.sh || 18111 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18112ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18113ac_delim='%!_!# ' 18114for ac_last_try in false false false false false :; do 18115 . ./conf$$subs.sh || 18116 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18117 18118 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18119 if test $ac_delim_n = $ac_delim_num; then 18120 break 18121 elif $ac_last_try; then 18122 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18123 else 18124 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18125 fi 18126done 18127rm -f conf$$subs.sh 18128 18129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18130cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18131_ACEOF 18132sed -n ' 18133h 18134s/^/S["/; s/!.*/"]=/ 18135p 18136g 18137s/^[^!]*!// 18138:repl 18139t repl 18140s/'"$ac_delim"'$// 18141t delim 18142:nl 18143h 18144s/\(.\{148\}\)..*/\1/ 18145t more1 18146s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18147p 18148n 18149b repl 18150:more1 18151s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18152p 18153g 18154s/.\{148\}// 18155t nl 18156:delim 18157h 18158s/\(.\{148\}\)..*/\1/ 18159t more2 18160s/["\\]/\\&/g; s/^/"/; s/$/"/ 18161p 18162b 18163:more2 18164s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18165p 18166g 18167s/.\{148\}// 18168t delim 18169' <conf$$subs.awk | sed ' 18170/^[^""]/{ 18171 N 18172 s/\n// 18173} 18174' >>$CONFIG_STATUS || ac_write_fail=1 18175rm -f conf$$subs.awk 18176cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18177_ACAWK 18178cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18179 for (key in S) S_is_set[key] = 1 18180 FS = "" 18181 18182} 18183{ 18184 line = $ 0 18185 nfields = split(line, field, "@") 18186 substed = 0 18187 len = length(field[1]) 18188 for (i = 2; i < nfields; i++) { 18189 key = field[i] 18190 keylen = length(key) 18191 if (S_is_set[key]) { 18192 value = S[key] 18193 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18194 len += length(value) + length(field[++i]) 18195 substed = 1 18196 } else 18197 len += 1 + keylen 18198 } 18199 18200 print line 18201} 18202 18203_ACAWK 18204_ACEOF 18205cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18206if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18207 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18208else 18209 cat 18210fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18211 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18212_ACEOF 18213 18214# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18215# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18216# trailing colons and then remove the whole line if VPATH becomes empty 18217# (actually we leave an empty line to preserve line numbers). 18218if test "x$srcdir" = x.; then 18219 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18220h 18221s/// 18222s/^/:/ 18223s/[ ]*$/:/ 18224s/:\$(srcdir):/:/g 18225s/:\${srcdir}:/:/g 18226s/:@srcdir@:/:/g 18227s/^:*// 18228s/:*$// 18229x 18230s/\(=[ ]*\).*/\1/ 18231G 18232s/\n// 18233s/^[^=]*=[ ]*$// 18234}' 18235fi 18236 18237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18238fi # test -n "$CONFIG_FILES" 18239 18240# Set up the scripts for CONFIG_HEADERS section. 18241# No need to generate them if there are no CONFIG_HEADERS. 18242# This happens for instance with `./config.status Makefile'. 18243if test -n "$CONFIG_HEADERS"; then 18244cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18245BEGIN { 18246_ACEOF 18247 18248# Transform confdefs.h into an awk script `defines.awk', embedded as 18249# here-document in config.status, that substitutes the proper values into 18250# config.h.in to produce config.h. 18251 18252# Create a delimiter string that does not exist in confdefs.h, to ease 18253# handling of long lines. 18254ac_delim='%!_!# ' 18255for ac_last_try in false false :; do 18256 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18257 if test -z "$ac_tt"; then 18258 break 18259 elif $ac_last_try; then 18260 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18261 else 18262 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18263 fi 18264done 18265 18266# For the awk script, D is an array of macro values keyed by name, 18267# likewise P contains macro parameters if any. Preserve backslash 18268# newline sequences. 18269 18270ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18271sed -n ' 18272s/.\{148\}/&'"$ac_delim"'/g 18273t rset 18274:rset 18275s/^[ ]*#[ ]*define[ ][ ]*/ / 18276t def 18277d 18278:def 18279s/\\$// 18280t bsnl 18281s/["\\]/\\&/g 18282s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18283D["\1"]=" \3"/p 18284s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18285d 18286:bsnl 18287s/["\\]/\\&/g 18288s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18289D["\1"]=" \3\\\\\\n"\\/p 18290t cont 18291s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18292t cont 18293d 18294:cont 18295n 18296s/.\{148\}/&'"$ac_delim"'/g 18297t clear 18298:clear 18299s/\\$// 18300t bsnlc 18301s/["\\]/\\&/g; s/^/"/; s/$/"/p 18302d 18303:bsnlc 18304s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18305b cont 18306' <confdefs.h | sed ' 18307s/'"$ac_delim"'/"\\\ 18308"/g' >>$CONFIG_STATUS || ac_write_fail=1 18309 18310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18311 for (key in D) D_is_set[key] = 1 18312 FS = "" 18313} 18314/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18315 line = \$ 0 18316 split(line, arg, " ") 18317 if (arg[1] == "#") { 18318 defundef = arg[2] 18319 mac1 = arg[3] 18320 } else { 18321 defundef = substr(arg[1], 2) 18322 mac1 = arg[2] 18323 } 18324 split(mac1, mac2, "(") #) 18325 macro = mac2[1] 18326 prefix = substr(line, 1, index(line, defundef) - 1) 18327 if (D_is_set[macro]) { 18328 # Preserve the white space surrounding the "#". 18329 print prefix "define", macro P[macro] D[macro] 18330 next 18331 } else { 18332 # Replace #undef with comments. This is necessary, for example, 18333 # in the case of _POSIX_SOURCE, which is predefined and required 18334 # on some systems where configure will not decide to define it. 18335 if (defundef == "undef") { 18336 print "/*", prefix defundef, macro, "*/" 18337 next 18338 } 18339 } 18340} 18341{ print } 18342_ACAWK 18343_ACEOF 18344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18345 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18346fi # test -n "$CONFIG_HEADERS" 18347 18348 18349eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18350shift 18351for ac_tag 18352do 18353 case $ac_tag in 18354 :[FHLC]) ac_mode=$ac_tag; continue;; 18355 esac 18356 case $ac_mode$ac_tag in 18357 :[FHL]*:*);; 18358 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18359 :[FH]-) ac_tag=-:-;; 18360 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18361 esac 18362 ac_save_IFS=$IFS 18363 IFS=: 18364 set x $ac_tag 18365 IFS=$ac_save_IFS 18366 shift 18367 ac_file=$1 18368 shift 18369 18370 case $ac_mode in 18371 :L) ac_source=$1;; 18372 :[FH]) 18373 ac_file_inputs= 18374 for ac_f 18375 do 18376 case $ac_f in 18377 -) ac_f="$ac_tmp/stdin";; 18378 *) # Look for the file first in the build tree, then in the source tree 18379 # (if the path is not absolute). The absolute path cannot be DOS-style, 18380 # because $ac_f cannot contain `:'. 18381 test -f "$ac_f" || 18382 case $ac_f in 18383 [\\/$]*) false;; 18384 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18385 esac || 18386 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18387 esac 18388 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18389 as_fn_append ac_file_inputs " '$ac_f'" 18390 done 18391 18392 # Let's still pretend it is `configure' which instantiates (i.e., don't 18393 # use $as_me), people would be surprised to read: 18394 # /* config.h. Generated by config.status. */ 18395 configure_input='Generated from '` 18396 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18397 `' by configure.' 18398 if test x"$ac_file" != x-; then 18399 configure_input="$ac_file. $configure_input" 18400 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18401$as_echo "$as_me: creating $ac_file" >&6;} 18402 fi 18403 # Neutralize special characters interpreted by sed in replacement strings. 18404 case $configure_input in #( 18405 *\&* | *\|* | *\\* ) 18406 ac_sed_conf_input=`$as_echo "$configure_input" | 18407 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18408 *) ac_sed_conf_input=$configure_input;; 18409 esac 18410 18411 case $ac_tag in 18412 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18413 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18414 esac 18415 ;; 18416 esac 18417 18418 ac_dir=`$as_dirname -- "$ac_file" || 18419$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18420 X"$ac_file" : 'X\(//\)[^/]' \| \ 18421 X"$ac_file" : 'X\(//\)$' \| \ 18422 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18423$as_echo X"$ac_file" | 18424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18425 s//\1/ 18426 q 18427 } 18428 /^X\(\/\/\)[^/].*/{ 18429 s//\1/ 18430 q 18431 } 18432 /^X\(\/\/\)$/{ 18433 s//\1/ 18434 q 18435 } 18436 /^X\(\/\).*/{ 18437 s//\1/ 18438 q 18439 } 18440 s/.*/./; q'` 18441 as_dir="$ac_dir"; as_fn_mkdir_p 18442 ac_builddir=. 18443 18444case "$ac_dir" in 18445.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18446*) 18447 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18448 # A ".." for each directory in $ac_dir_suffix. 18449 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18450 case $ac_top_builddir_sub in 18451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18453 esac ;; 18454esac 18455ac_abs_top_builddir=$ac_pwd 18456ac_abs_builddir=$ac_pwd$ac_dir_suffix 18457# for backward compatibility: 18458ac_top_builddir=$ac_top_build_prefix 18459 18460case $srcdir in 18461 .) # We are building in place. 18462 ac_srcdir=. 18463 ac_top_srcdir=$ac_top_builddir_sub 18464 ac_abs_top_srcdir=$ac_pwd ;; 18465 [\\/]* | ?:[\\/]* ) # Absolute name. 18466 ac_srcdir=$srcdir$ac_dir_suffix; 18467 ac_top_srcdir=$srcdir 18468 ac_abs_top_srcdir=$srcdir ;; 18469 *) # Relative name. 18470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18471 ac_top_srcdir=$ac_top_build_prefix$srcdir 18472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18473esac 18474ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18475 18476 18477 case $ac_mode in 18478 :F) 18479 # 18480 # CONFIG_FILE 18481 # 18482 18483 case $INSTALL in 18484 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18485 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18486 esac 18487 ac_MKDIR_P=$MKDIR_P 18488 case $MKDIR_P in 18489 [\\/$]* | ?:[\\/]* ) ;; 18490 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18491 esac 18492_ACEOF 18493 18494cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18495# If the template does not know about datarootdir, expand it. 18496# FIXME: This hack should be removed a few years after 2.60. 18497ac_datarootdir_hack=; ac_datarootdir_seen= 18498ac_sed_dataroot=' 18499/datarootdir/ { 18500 p 18501 q 18502} 18503/@datadir@/p 18504/@docdir@/p 18505/@infodir@/p 18506/@localedir@/p 18507/@mandir@/p' 18508case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18509*datarootdir*) ac_datarootdir_seen=yes;; 18510*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18512$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18513_ACEOF 18514cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18515 ac_datarootdir_hack=' 18516 s&@datadir@&$datadir&g 18517 s&@docdir@&$docdir&g 18518 s&@infodir@&$infodir&g 18519 s&@localedir@&$localedir&g 18520 s&@mandir@&$mandir&g 18521 s&\\\${datarootdir}&$datarootdir&g' ;; 18522esac 18523_ACEOF 18524 18525# Neutralize VPATH when `$srcdir' = `.'. 18526# Shell code in configure.ac might set extrasub. 18527# FIXME: do we really want to maintain this feature? 18528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18529ac_sed_extra="$ac_vpsub 18530$extrasub 18531_ACEOF 18532cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18533:t 18534/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18535s|@configure_input@|$ac_sed_conf_input|;t t 18536s&@top_builddir@&$ac_top_builddir_sub&;t t 18537s&@top_build_prefix@&$ac_top_build_prefix&;t t 18538s&@srcdir@&$ac_srcdir&;t t 18539s&@abs_srcdir@&$ac_abs_srcdir&;t t 18540s&@top_srcdir@&$ac_top_srcdir&;t t 18541s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18542s&@builddir@&$ac_builddir&;t t 18543s&@abs_builddir@&$ac_abs_builddir&;t t 18544s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18545s&@INSTALL@&$ac_INSTALL&;t t 18546s&@MKDIR_P@&$ac_MKDIR_P&;t t 18547$ac_datarootdir_hack 18548" 18549eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18550 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18551 18552test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18553 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18554 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18555 "$ac_tmp/out"`; test -z "$ac_out"; } && 18556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18557which seems to be undefined. Please make sure it is defined" >&5 18558$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18559which seems to be undefined. Please make sure it is defined" >&2;} 18560 18561 rm -f "$ac_tmp/stdin" 18562 case $ac_file in 18563 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18564 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18565 esac \ 18566 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18567 ;; 18568 :H) 18569 # 18570 # CONFIG_HEADER 18571 # 18572 if test x"$ac_file" != x-; then 18573 { 18574 $as_echo "/* $configure_input */" \ 18575 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18576 } >"$ac_tmp/config.h" \ 18577 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18578 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18579 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18580$as_echo "$as_me: $ac_file is unchanged" >&6;} 18581 else 18582 rm -f "$ac_file" 18583 mv "$ac_tmp/config.h" "$ac_file" \ 18584 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18585 fi 18586 else 18587 $as_echo "/* $configure_input */" \ 18588 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18589 || as_fn_error $? "could not create -" "$LINENO" 5 18590 fi 18591# Compute "$ac_file"'s index in $config_headers. 18592_am_arg="$ac_file" 18593_am_stamp_count=1 18594for _am_header in $config_headers :; do 18595 case $_am_header in 18596 $_am_arg | $_am_arg:* ) 18597 break ;; 18598 * ) 18599 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18600 esac 18601done 18602echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18603$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18604 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18605 X"$_am_arg" : 'X\(//\)$' \| \ 18606 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18607$as_echo X"$_am_arg" | 18608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18609 s//\1/ 18610 q 18611 } 18612 /^X\(\/\/\)[^/].*/{ 18613 s//\1/ 18614 q 18615 } 18616 /^X\(\/\/\)$/{ 18617 s//\1/ 18618 q 18619 } 18620 /^X\(\/\).*/{ 18621 s//\1/ 18622 q 18623 } 18624 s/.*/./; q'`/stamp-h$_am_stamp_count 18625 ;; 18626 18627 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18628$as_echo "$as_me: executing $ac_file commands" >&6;} 18629 ;; 18630 esac 18631 18632 18633 case $ac_file$ac_mode in 18634 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18635 # Older Autoconf quotes --file arguments for eval, but not when files 18636 # are listed without --file. Let's play safe and only enable the eval 18637 # if we detect the quoting. 18638 # TODO: see whether this extra hack can be removed once we start 18639 # requiring Autoconf 2.70 or later. 18640 case $CONFIG_FILES in #( 18641 *\'*) : 18642 eval set x "$CONFIG_FILES" ;; #( 18643 *) : 18644 set x $CONFIG_FILES ;; #( 18645 *) : 18646 ;; 18647esac 18648 shift 18649 # Used to flag and report bootstrapping failures. 18650 am_rc=0 18651 for am_mf 18652 do 18653 # Strip MF so we end up with the name of the file. 18654 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 18655 # Check whether this is an Automake generated Makefile which includes 18656 # dependency-tracking related rules and includes. 18657 # Grep'ing the whole file directly is not great: AIX grep has a line 18658 # limit of 2048, but all sed's we know have understand at least 4000. 18659 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 18660 || continue 18661 am_dirpart=`$as_dirname -- "$am_mf" || 18662$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18663 X"$am_mf" : 'X\(//\)[^/]' \| \ 18664 X"$am_mf" : 'X\(//\)$' \| \ 18665 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18666$as_echo X"$am_mf" | 18667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18668 s//\1/ 18669 q 18670 } 18671 /^X\(\/\/\)[^/].*/{ 18672 s//\1/ 18673 q 18674 } 18675 /^X\(\/\/\)$/{ 18676 s//\1/ 18677 q 18678 } 18679 /^X\(\/\).*/{ 18680 s//\1/ 18681 q 18682 } 18683 s/.*/./; q'` 18684 am_filepart=`$as_basename -- "$am_mf" || 18685$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 18686 X"$am_mf" : 'X\(//\)$' \| \ 18687 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 18688$as_echo X/"$am_mf" | 18689 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18690 s//\1/ 18691 q 18692 } 18693 /^X\/\(\/\/\)$/{ 18694 s//\1/ 18695 q 18696 } 18697 /^X\/\(\/\).*/{ 18698 s//\1/ 18699 q 18700 } 18701 s/.*/./; q'` 18702 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 18703 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18704 | $MAKE -f - am--depfiles" >&5 18705 (cd "$am_dirpart" \ 18706 && sed -e '/# am--include-marker/d' "$am_filepart" \ 18707 | $MAKE -f - am--depfiles) >&5 2>&5 18708 ac_status=$? 18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18710 (exit $ac_status); } || am_rc=$? 18711 done 18712 if test $am_rc -ne 0; then 18713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18714$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18715as_fn_error $? "Something went wrong bootstrapping makefile fragments 18716 for automatic dependency tracking. If GNU make was not used, consider 18717 re-running the configure script with MAKE=\"gmake\" (or whatever is 18718 necessary). You can also try re-running configure with the 18719 '--disable-dependency-tracking' option to at least be able to build 18720 the package (albeit without support for automatic dependency tracking). 18721See \`config.log' for more details" "$LINENO" 5; } 18722 fi 18723 { am_dirpart=; unset am_dirpart;} 18724 { am_filepart=; unset am_filepart;} 18725 { am_mf=; unset am_mf;} 18726 { am_rc=; unset am_rc;} 18727 rm -f conftest-deps.mk 18728} 18729 ;; 18730 "libtool":C) 18731 18732 # See if we are running on zsh, and set the options that allow our 18733 # commands through without removal of \ escapes. 18734 if test -n "${ZSH_VERSION+set}"; then 18735 setopt NO_GLOB_SUBST 18736 fi 18737 18738 cfgfile=${ofile}T 18739 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18740 $RM "$cfgfile" 18741 18742 cat <<_LT_EOF >> "$cfgfile" 18743#! $SHELL 18744# Generated automatically by $as_me ($PACKAGE) $VERSION 18745# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18746# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18747 18748# Provide generalized library-building support services. 18749# Written by Gordon Matzigkeit, 1996 18750 18751# Copyright (C) 2014 Free Software Foundation, Inc. 18752# This is free software; see the source for copying conditions. There is NO 18753# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18754 18755# GNU Libtool is free software; you can redistribute it and/or modify 18756# it under the terms of the GNU General Public License as published by 18757# the Free Software Foundation; either version 2 of of the License, or 18758# (at your option) any later version. 18759# 18760# As a special exception to the GNU General Public License, if you 18761# distribute this file as part of a program or library that is built 18762# using GNU Libtool, you may include this file under the same 18763# distribution terms that you use for the rest of that program. 18764# 18765# GNU Libtool is distributed in the hope that it will be useful, but 18766# WITHOUT ANY WARRANTY; without even the implied warranty of 18767# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18768# GNU General Public License for more details. 18769# 18770# You should have received a copy of the GNU General Public License 18771# along with this program. If not, see <http://www.gnu.org/licenses/>. 18772 18773 18774# The names of the tagged configurations supported by this script. 18775available_tags='CXX ' 18776 18777# Configured defaults for sys_lib_dlsearch_path munging. 18778: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18779 18780# ### BEGIN LIBTOOL CONFIG 18781 18782# Which release of libtool.m4 was used? 18783macro_version=$macro_version 18784macro_revision=$macro_revision 18785 18786# Whether or not to build shared libraries. 18787build_libtool_libs=$enable_shared 18788 18789# Whether or not to build static libraries. 18790build_old_libs=$enable_static 18791 18792# What type of objects to build. 18793pic_mode=$pic_mode 18794 18795# Whether or not to optimize for fast installation. 18796fast_install=$enable_fast_install 18797 18798# Shared archive member basename,for filename based shared library versioning on AIX. 18799shared_archive_member_spec=$shared_archive_member_spec 18800 18801# Shell to use when invoking shell scripts. 18802SHELL=$lt_SHELL 18803 18804# An echo program that protects backslashes. 18805ECHO=$lt_ECHO 18806 18807# The PATH separator for the build system. 18808PATH_SEPARATOR=$lt_PATH_SEPARATOR 18809 18810# The host system. 18811host_alias=$host_alias 18812host=$host 18813host_os=$host_os 18814 18815# The build system. 18816build_alias=$build_alias 18817build=$build 18818build_os=$build_os 18819 18820# A sed program that does not truncate output. 18821SED=$lt_SED 18822 18823# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18824Xsed="\$SED -e 1s/^X//" 18825 18826# A grep program that handles long lines. 18827GREP=$lt_GREP 18828 18829# An ERE matcher. 18830EGREP=$lt_EGREP 18831 18832# A literal string matcher. 18833FGREP=$lt_FGREP 18834 18835# A BSD- or MS-compatible name lister. 18836NM=$lt_NM 18837 18838# Whether we need soft or hard links. 18839LN_S=$lt_LN_S 18840 18841# What is the maximum length of a command? 18842max_cmd_len=$max_cmd_len 18843 18844# Object file suffix (normally "o"). 18845objext=$ac_objext 18846 18847# Executable file suffix (normally ""). 18848exeext=$exeext 18849 18850# whether the shell understands "unset". 18851lt_unset=$lt_unset 18852 18853# turn spaces into newlines. 18854SP2NL=$lt_lt_SP2NL 18855 18856# turn newlines into spaces. 18857NL2SP=$lt_lt_NL2SP 18858 18859# convert \$build file names to \$host format. 18860to_host_file_cmd=$lt_cv_to_host_file_cmd 18861 18862# convert \$build files to toolchain format. 18863to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18864 18865# An object symbol dumper. 18866OBJDUMP=$lt_OBJDUMP 18867 18868# Method to check whether dependent libraries are shared objects. 18869deplibs_check_method=$lt_deplibs_check_method 18870 18871# Command to use when deplibs_check_method = "file_magic". 18872file_magic_cmd=$lt_file_magic_cmd 18873 18874# How to find potential files when deplibs_check_method = "file_magic". 18875file_magic_glob=$lt_file_magic_glob 18876 18877# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18878want_nocaseglob=$lt_want_nocaseglob 18879 18880# DLL creation program. 18881DLLTOOL=$lt_DLLTOOL 18882 18883# Command to associate shared and link libraries. 18884sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18885 18886# The archiver. 18887AR=$lt_AR 18888 18889# Flags to create an archive. 18890AR_FLAGS=$lt_AR_FLAGS 18891 18892# How to feed a file listing to the archiver. 18893archiver_list_spec=$lt_archiver_list_spec 18894 18895# A symbol stripping program. 18896STRIP=$lt_STRIP 18897 18898# Commands used to install an old-style archive. 18899RANLIB=$lt_RANLIB 18900old_postinstall_cmds=$lt_old_postinstall_cmds 18901old_postuninstall_cmds=$lt_old_postuninstall_cmds 18902 18903# Whether to use a lock for old archive extraction. 18904lock_old_archive_extraction=$lock_old_archive_extraction 18905 18906# A C compiler. 18907LTCC=$lt_CC 18908 18909# LTCC compiler flags. 18910LTCFLAGS=$lt_CFLAGS 18911 18912# Take the output of nm and produce a listing of raw symbols and C names. 18913global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18914 18915# Transform the output of nm in a proper C declaration. 18916global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18917 18918# Transform the output of nm into a list of symbols to manually relocate. 18919global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18920 18921# Transform the output of nm in a C name address pair. 18922global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18923 18924# Transform the output of nm in a C name address pair when lib prefix is needed. 18925global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18926 18927# The name lister interface. 18928nm_interface=$lt_lt_cv_nm_interface 18929 18930# Specify filename containing input files for \$NM. 18931nm_file_list_spec=$lt_nm_file_list_spec 18932 18933# The root where to search for dependent libraries,and where our libraries should be installed. 18934lt_sysroot=$lt_sysroot 18935 18936# Command to truncate a binary pipe. 18937lt_truncate_bin=$lt_lt_cv_truncate_bin 18938 18939# The name of the directory that contains temporary libtool files. 18940objdir=$objdir 18941 18942# Used to examine libraries when file_magic_cmd begins with "file". 18943MAGIC_CMD=$MAGIC_CMD 18944 18945# Must we lock files when doing compilation? 18946need_locks=$lt_need_locks 18947 18948# Manifest tool. 18949MANIFEST_TOOL=$lt_MANIFEST_TOOL 18950 18951# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18952DSYMUTIL=$lt_DSYMUTIL 18953 18954# Tool to change global to local symbols on Mac OS X. 18955NMEDIT=$lt_NMEDIT 18956 18957# Tool to manipulate fat objects and archives on Mac OS X. 18958LIPO=$lt_LIPO 18959 18960# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18961OTOOL=$lt_OTOOL 18962 18963# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18964OTOOL64=$lt_OTOOL64 18965 18966# Old archive suffix (normally "a"). 18967libext=$libext 18968 18969# Shared library suffix (normally ".so"). 18970shrext_cmds=$lt_shrext_cmds 18971 18972# The commands to extract the exported symbol list from a shared archive. 18973extract_expsyms_cmds=$lt_extract_expsyms_cmds 18974 18975# Variables whose values should be saved in libtool wrapper scripts and 18976# restored at link time. 18977variables_saved_for_relink=$lt_variables_saved_for_relink 18978 18979# Do we need the "lib" prefix for modules? 18980need_lib_prefix=$need_lib_prefix 18981 18982# Do we need a version for libraries? 18983need_version=$need_version 18984 18985# Library versioning type. 18986version_type=$version_type 18987 18988# Shared library runtime path variable. 18989runpath_var=$runpath_var 18990 18991# Shared library path variable. 18992shlibpath_var=$shlibpath_var 18993 18994# Is shlibpath searched before the hard-coded library search path? 18995shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18996 18997# Format of library name prefix. 18998libname_spec=$lt_libname_spec 18999 19000# List of archive names. First name is the real one, the rest are links. 19001# The last name is the one that the linker finds with -lNAME 19002library_names_spec=$lt_library_names_spec 19003 19004# The coded name of the library, if different from the real name. 19005soname_spec=$lt_soname_spec 19006 19007# Permission mode override for installation of shared libraries. 19008install_override_mode=$lt_install_override_mode 19009 19010# Command to use after installation of a shared archive. 19011postinstall_cmds=$lt_postinstall_cmds 19012 19013# Command to use after uninstallation of a shared archive. 19014postuninstall_cmds=$lt_postuninstall_cmds 19015 19016# Commands used to finish a libtool library installation in a directory. 19017finish_cmds=$lt_finish_cmds 19018 19019# As "finish_cmds", except a single script fragment to be evaled but 19020# not shown. 19021finish_eval=$lt_finish_eval 19022 19023# Whether we should hardcode library paths into libraries. 19024hardcode_into_libs=$hardcode_into_libs 19025 19026# Compile-time system search path for libraries. 19027sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19028 19029# Detected run-time system search path for libraries. 19030sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 19031 19032# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 19033configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 19034 19035# Whether dlopen is supported. 19036dlopen_support=$enable_dlopen 19037 19038# Whether dlopen of programs is supported. 19039dlopen_self=$enable_dlopen_self 19040 19041# Whether dlopen of statically linked programs is supported. 19042dlopen_self_static=$enable_dlopen_self_static 19043 19044# Commands to strip libraries. 19045old_striplib=$lt_old_striplib 19046striplib=$lt_striplib 19047 19048 19049# The linker used to build libraries. 19050LD=$lt_LD 19051 19052# How to create reloadable object files. 19053reload_flag=$lt_reload_flag 19054reload_cmds=$lt_reload_cmds 19055 19056# Commands used to build an old-style archive. 19057old_archive_cmds=$lt_old_archive_cmds 19058 19059# A language specific compiler. 19060CC=$lt_compiler 19061 19062# Is the compiler the GNU compiler? 19063with_gcc=$GCC 19064 19065# Compiler flag to turn off builtin functions. 19066no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19067 19068# Additional compiler flags for building library objects. 19069pic_flag=$lt_lt_prog_compiler_pic 19070 19071# How to pass a linker flag through the compiler. 19072wl=$lt_lt_prog_compiler_wl 19073 19074# Compiler flag to prevent dynamic linking. 19075link_static_flag=$lt_lt_prog_compiler_static 19076 19077# Does compiler simultaneously support -c and -o options? 19078compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19079 19080# Whether or not to add -lc for building shared libraries. 19081build_libtool_need_lc=$archive_cmds_need_lc 19082 19083# Whether or not to disallow shared libs when runtime libs are static. 19084allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19085 19086# Compiler flag to allow reflexive dlopens. 19087export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19088 19089# Compiler flag to generate shared objects directly from archives. 19090whole_archive_flag_spec=$lt_whole_archive_flag_spec 19091 19092# Whether the compiler copes with passing no objects directly. 19093compiler_needs_object=$lt_compiler_needs_object 19094 19095# Create an old-style archive from a shared archive. 19096old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19097 19098# Create a temporary old-style archive to link instead of a shared archive. 19099old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19100 19101# Commands used to build a shared archive. 19102archive_cmds=$lt_archive_cmds 19103archive_expsym_cmds=$lt_archive_expsym_cmds 19104 19105# Commands used to build a loadable module if different from building 19106# a shared archive. 19107module_cmds=$lt_module_cmds 19108module_expsym_cmds=$lt_module_expsym_cmds 19109 19110# Whether we are building with GNU ld or not. 19111with_gnu_ld=$lt_with_gnu_ld 19112 19113# Flag that allows shared libraries with undefined symbols to be built. 19114allow_undefined_flag=$lt_allow_undefined_flag 19115 19116# Flag that enforces no undefined symbols. 19117no_undefined_flag=$lt_no_undefined_flag 19118 19119# Flag to hardcode \$libdir into a binary during linking. 19120# This must work even if \$libdir does not exist 19121hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19122 19123# Whether we need a single "-rpath" flag with a separated argument. 19124hardcode_libdir_separator=$lt_hardcode_libdir_separator 19125 19126# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19127# DIR into the resulting binary. 19128hardcode_direct=$hardcode_direct 19129 19130# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19131# DIR into the resulting binary and the resulting library dependency is 19132# "absolute",i.e impossible to change by setting \$shlibpath_var if the 19133# library is relocated. 19134hardcode_direct_absolute=$hardcode_direct_absolute 19135 19136# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19137# into the resulting binary. 19138hardcode_minus_L=$hardcode_minus_L 19139 19140# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19141# into the resulting binary. 19142hardcode_shlibpath_var=$hardcode_shlibpath_var 19143 19144# Set to "yes" if building a shared library automatically hardcodes DIR 19145# into the library and all subsequent libraries and executables linked 19146# against it. 19147hardcode_automatic=$hardcode_automatic 19148 19149# Set to yes if linker adds runtime paths of dependent libraries 19150# to runtime path list. 19151inherit_rpath=$inherit_rpath 19152 19153# Whether libtool must link a program against all its dependency libraries. 19154link_all_deplibs=$link_all_deplibs 19155 19156# Set to "yes" if exported symbols are required. 19157always_export_symbols=$always_export_symbols 19158 19159# The commands to list exported symbols. 19160export_symbols_cmds=$lt_export_symbols_cmds 19161 19162# Symbols that should not be listed in the preloaded symbols. 19163exclude_expsyms=$lt_exclude_expsyms 19164 19165# Symbols that must always be exported. 19166include_expsyms=$lt_include_expsyms 19167 19168# Commands necessary for linking programs (against libraries) with templates. 19169prelink_cmds=$lt_prelink_cmds 19170 19171# Commands necessary for finishing linking programs. 19172postlink_cmds=$lt_postlink_cmds 19173 19174# Specify filename containing input files. 19175file_list_spec=$lt_file_list_spec 19176 19177# How to hardcode a shared library path into an executable. 19178hardcode_action=$hardcode_action 19179 19180# The directories searched by this compiler when creating a shared library. 19181compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19182 19183# Dependencies to place before and after the objects being linked to 19184# create a shared library. 19185predep_objects=$lt_predep_objects 19186postdep_objects=$lt_postdep_objects 19187predeps=$lt_predeps 19188postdeps=$lt_postdeps 19189 19190# The library search path used internally by the compiler when linking 19191# a shared library. 19192compiler_lib_search_path=$lt_compiler_lib_search_path 19193 19194# ### END LIBTOOL CONFIG 19195 19196_LT_EOF 19197 19198 cat <<'_LT_EOF' >> "$cfgfile" 19199 19200# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 19201 19202# func_munge_path_list VARIABLE PATH 19203# ----------------------------------- 19204# VARIABLE is name of variable containing _space_ separated list of 19205# directories to be munged by the contents of PATH, which is string 19206# having a format: 19207# "DIR[:DIR]:" 19208# string "DIR[ DIR]" will be prepended to VARIABLE 19209# ":DIR[:DIR]" 19210# string "DIR[ DIR]" will be appended to VARIABLE 19211# "DIRP[:DIRP]::[DIRA:]DIRA" 19212# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 19213# "DIRA[ DIRA]" will be appended to VARIABLE 19214# "DIR[:DIR]" 19215# VARIABLE will be replaced by "DIR[ DIR]" 19216func_munge_path_list () 19217{ 19218 case x$2 in 19219 x) 19220 ;; 19221 *:) 19222 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 19223 ;; 19224 x:*) 19225 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 19226 ;; 19227 *::*) 19228 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 19229 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 19230 ;; 19231 *) 19232 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 19233 ;; 19234 esac 19235} 19236 19237 19238# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 19239func_cc_basename () 19240{ 19241 for cc_temp in $*""; do 19242 case $cc_temp in 19243 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19244 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19245 \-*) ;; 19246 *) break;; 19247 esac 19248 done 19249 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 19250} 19251 19252 19253# ### END FUNCTIONS SHARED WITH CONFIGURE 19254 19255_LT_EOF 19256 19257 case $host_os in 19258 aix3*) 19259 cat <<\_LT_EOF >> "$cfgfile" 19260# AIX sometimes has problems with the GCC collect2 program. For some 19261# reason, if we set the COLLECT_NAMES environment variable, the problems 19262# vanish in a puff of smoke. 19263if test set != "${COLLECT_NAMES+set}"; then 19264 COLLECT_NAMES= 19265 export COLLECT_NAMES 19266fi 19267_LT_EOF 19268 ;; 19269 esac 19270 19271 19272ltmain=$ac_aux_dir/ltmain.sh 19273 19274 19275 # We use sed instead of cat because bash on DJGPP gets confused if 19276 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19277 # text mode, it properly converts lines to CR/LF. This bash problem 19278 # is reportedly fixed, but why not run on old versions too? 19279 sed '$q' "$ltmain" >> "$cfgfile" \ 19280 || (rm -f "$cfgfile"; exit 1) 19281 19282 mv -f "$cfgfile" "$ofile" || 19283 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19284 chmod +x "$ofile" 19285 19286 19287 cat <<_LT_EOF >> "$ofile" 19288 19289# ### BEGIN LIBTOOL TAG CONFIG: CXX 19290 19291# The linker used to build libraries. 19292LD=$lt_LD_CXX 19293 19294# How to create reloadable object files. 19295reload_flag=$lt_reload_flag_CXX 19296reload_cmds=$lt_reload_cmds_CXX 19297 19298# Commands used to build an old-style archive. 19299old_archive_cmds=$lt_old_archive_cmds_CXX 19300 19301# A language specific compiler. 19302CC=$lt_compiler_CXX 19303 19304# Is the compiler the GNU compiler? 19305with_gcc=$GCC_CXX 19306 19307# Compiler flag to turn off builtin functions. 19308no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 19309 19310# Additional compiler flags for building library objects. 19311pic_flag=$lt_lt_prog_compiler_pic_CXX 19312 19313# How to pass a linker flag through the compiler. 19314wl=$lt_lt_prog_compiler_wl_CXX 19315 19316# Compiler flag to prevent dynamic linking. 19317link_static_flag=$lt_lt_prog_compiler_static_CXX 19318 19319# Does compiler simultaneously support -c and -o options? 19320compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 19321 19322# Whether or not to add -lc for building shared libraries. 19323build_libtool_need_lc=$archive_cmds_need_lc_CXX 19324 19325# Whether or not to disallow shared libs when runtime libs are static. 19326allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 19327 19328# Compiler flag to allow reflexive dlopens. 19329export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 19330 19331# Compiler flag to generate shared objects directly from archives. 19332whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 19333 19334# Whether the compiler copes with passing no objects directly. 19335compiler_needs_object=$lt_compiler_needs_object_CXX 19336 19337# Create an old-style archive from a shared archive. 19338old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 19339 19340# Create a temporary old-style archive to link instead of a shared archive. 19341old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 19342 19343# Commands used to build a shared archive. 19344archive_cmds=$lt_archive_cmds_CXX 19345archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 19346 19347# Commands used to build a loadable module if different from building 19348# a shared archive. 19349module_cmds=$lt_module_cmds_CXX 19350module_expsym_cmds=$lt_module_expsym_cmds_CXX 19351 19352# Whether we are building with GNU ld or not. 19353with_gnu_ld=$lt_with_gnu_ld_CXX 19354 19355# Flag that allows shared libraries with undefined symbols to be built. 19356allow_undefined_flag=$lt_allow_undefined_flag_CXX 19357 19358# Flag that enforces no undefined symbols. 19359no_undefined_flag=$lt_no_undefined_flag_CXX 19360 19361# Flag to hardcode \$libdir into a binary during linking. 19362# This must work even if \$libdir does not exist 19363hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 19364 19365# Whether we need a single "-rpath" flag with a separated argument. 19366hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 19367 19368# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19369# DIR into the resulting binary. 19370hardcode_direct=$hardcode_direct_CXX 19371 19372# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19373# DIR into the resulting binary and the resulting library dependency is 19374# "absolute",i.e impossible to change by setting \$shlibpath_var if the 19375# library is relocated. 19376hardcode_direct_absolute=$hardcode_direct_absolute_CXX 19377 19378# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19379# into the resulting binary. 19380hardcode_minus_L=$hardcode_minus_L_CXX 19381 19382# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19383# into the resulting binary. 19384hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 19385 19386# Set to "yes" if building a shared library automatically hardcodes DIR 19387# into the library and all subsequent libraries and executables linked 19388# against it. 19389hardcode_automatic=$hardcode_automatic_CXX 19390 19391# Set to yes if linker adds runtime paths of dependent libraries 19392# to runtime path list. 19393inherit_rpath=$inherit_rpath_CXX 19394 19395# Whether libtool must link a program against all its dependency libraries. 19396link_all_deplibs=$link_all_deplibs_CXX 19397 19398# Set to "yes" if exported symbols are required. 19399always_export_symbols=$always_export_symbols_CXX 19400 19401# The commands to list exported symbols. 19402export_symbols_cmds=$lt_export_symbols_cmds_CXX 19403 19404# Symbols that should not be listed in the preloaded symbols. 19405exclude_expsyms=$lt_exclude_expsyms_CXX 19406 19407# Symbols that must always be exported. 19408include_expsyms=$lt_include_expsyms_CXX 19409 19410# Commands necessary for linking programs (against libraries) with templates. 19411prelink_cmds=$lt_prelink_cmds_CXX 19412 19413# Commands necessary for finishing linking programs. 19414postlink_cmds=$lt_postlink_cmds_CXX 19415 19416# Specify filename containing input files. 19417file_list_spec=$lt_file_list_spec_CXX 19418 19419# How to hardcode a shared library path into an executable. 19420hardcode_action=$hardcode_action_CXX 19421 19422# The directories searched by this compiler when creating a shared library. 19423compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 19424 19425# Dependencies to place before and after the objects being linked to 19426# create a shared library. 19427predep_objects=$lt_predep_objects_CXX 19428postdep_objects=$lt_postdep_objects_CXX 19429predeps=$lt_predeps_CXX 19430postdeps=$lt_postdeps_CXX 19431 19432# The library search path used internally by the compiler when linking 19433# a shared library. 19434compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 19435 19436# ### END LIBTOOL TAG CONFIG: CXX 19437_LT_EOF 19438 19439 ;; 19440 19441 esac 19442done # for ac_tag 19443 19444 19445as_fn_exit 0 19446_ACEOF 19447ac_clean_files=$ac_clean_files_save 19448 19449test $ac_write_fail = 0 || 19450 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19451 19452 19453# configure is writing to config.log, and then calls config.status. 19454# config.status does its own redirection, appending to config.log. 19455# Unfortunately, on DOS this fails, as config.log is still kept open 19456# by configure, so config.status won't be able to write to it; its 19457# output is simply discarded. So we exec the FD to /dev/null, 19458# effectively closing config.log, so it can be properly (re)opened and 19459# appended to by config.status. When coming back to configure, we 19460# need to make the FD available again. 19461if test "$no_create" != yes; then 19462 ac_cs_success=: 19463 ac_config_status_args= 19464 test "$silent" = yes && 19465 ac_config_status_args="$ac_config_status_args --quiet" 19466 exec 5>/dev/null 19467 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19468 exec 5>>config.log 19469 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19470 # would make configure fail if this is the last instruction. 19471 $ac_cs_success || as_fn_exit 1 19472fi 19473if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19475$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19476fi 19477 19478