1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libEMF 1.0.13. 4# 5# Report bugs to <dallenbarnett@users.sourceforge.net>. 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 278$0: dallenbarnett@users.sourceforge.net about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do 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='libEMF' 592PACKAGE_TARNAME='libemf' 593PACKAGE_VERSION='1.0.13' 594PACKAGE_STRING='libEMF 1.0.13' 595PACKAGE_BUGREPORT='dallenbarnett@users.sourceforge.net' 596PACKAGE_URL='' 597 598ac_unique_file="include/libEMF/emf.h" 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 638ENABLE_EDITING_FALSE 639ENABLE_EDITING_TRUE 640HAVE_THREADS_FALSE 641HAVE_THREADS_TRUE 642LIBEMF_DEBUG_FALSE 643LIBEMF_DEBUG_TRUE 644THREAD_LIBS 645LIBOBJS 646CXXCPP 647CPP 648LT_SYS_LIBRARY_PATH 649OTOOL64 650OTOOL 651LIPO 652NMEDIT 653DSYMUTIL 654MANIFEST_TOOL 655RANLIB 656ac_ct_AR 657AR 658DLLTOOL 659OBJDUMP 660LN_S 661NM 662ac_ct_DUMPBIN 663DUMPBIN 664LD 665FGREP 666EGREP 667GREP 668SED 669host_os 670host_vendor 671host_cpu 672host 673build_os 674build_vendor 675build_cpu 676build 677LIBTOOL 678am__fastdepCC_FALSE 679am__fastdepCC_TRUE 680CCDEPMODE 681ac_ct_CC 682CFLAGS 683CC 684am__fastdepCXX_FALSE 685am__fastdepCXX_TRUE 686CXXDEPMODE 687am__nodep 688AMDEPBACKSLASH 689AMDEP_FALSE 690AMDEP_TRUE 691am__quote 692am__include 693DEPDIR 694OBJEXT 695EXEEXT 696ac_ct_CXX 697CPPFLAGS 698LDFLAGS 699CXXFLAGS 700CXX 701AM_BACKSLASH 702AM_DEFAULT_VERBOSITY 703AM_DEFAULT_V 704AM_V 705am__untar 706am__tar 707AMTAR 708am__leading_dot 709SET_MAKE 710AWK 711mkdir_p 712MKDIR_P 713INSTALL_STRIP_PROGRAM 714STRIP 715install_sh 716MAKEINFO 717AUTOHEADER 718AUTOMAKE 719AUTOCONF 720ACLOCAL 721VERSION 722PACKAGE 723CYGPATH_W 724am__isrc 725INSTALL_DATA 726INSTALL_SCRIPT 727INSTALL_PROGRAM 728target_alias 729host_alias 730build_alias 731LIBS 732ECHO_T 733ECHO_N 734ECHO_C 735DEFS 736mandir 737localedir 738libdir 739psdir 740pdfdir 741dvidir 742htmldir 743infodir 744docdir 745oldincludedir 746includedir 747runstatedir 748localstatedir 749sharedstatedir 750sysconfdir 751datadir 752datarootdir 753libexecdir 754sbindir 755bindir 756program_transform_name 757prefix 758exec_prefix 759PACKAGE_URL 760PACKAGE_BUGREPORT 761PACKAGE_STRING 762PACKAGE_VERSION 763PACKAGE_TARNAME 764PACKAGE_NAME 765PATH_SEPARATOR 766SHELL' 767ac_subst_files='' 768ac_user_opts=' 769enable_option_checking 770enable_silent_rules 771enable_dependency_tracking 772enable_shared 773enable_static 774with_pic 775enable_fast_install 776with_aix_soname 777with_gnu_ld 778with_sysroot 779enable_libtool_lock 780enable_debug 781enable_threads 782enable_editing 783' 784 ac_precious_vars='build_alias 785host_alias 786target_alias 787CXX 788CXXFLAGS 789LDFLAGS 790LIBS 791CPPFLAGS 792CCC 793CC 794CFLAGS 795LT_SYS_LIBRARY_PATH 796CPP 797CXXCPP' 798 799 800# Initialize some variables set by options. 801ac_init_help= 802ac_init_version=false 803ac_unrecognized_opts= 804ac_unrecognized_sep= 805# The variables have the same names as the options, with 806# dashes changed to underlines. 807cache_file=/dev/null 808exec_prefix=NONE 809no_create= 810no_recursion= 811prefix=NONE 812program_prefix=NONE 813program_suffix=NONE 814program_transform_name=s,x,x, 815silent= 816site= 817srcdir= 818verbose= 819x_includes=NONE 820x_libraries=NONE 821 822# Installation directory options. 823# These are left unexpanded so users can "make install exec_prefix=/foo" 824# and all the variables that are supposed to be based on exec_prefix 825# by default will actually change. 826# Use braces instead of parens because sh, perl, etc. also accept them. 827# (The list follows the same order as the GNU Coding Standards.) 828bindir='${exec_prefix}/bin' 829sbindir='${exec_prefix}/sbin' 830libexecdir='${exec_prefix}/libexec' 831datarootdir='${prefix}/share' 832datadir='${datarootdir}' 833sysconfdir='${prefix}/etc' 834sharedstatedir='${prefix}/com' 835localstatedir='${prefix}/var' 836runstatedir='${localstatedir}/run' 837includedir='${prefix}/include' 838oldincludedir='/usr/include' 839docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 840infodir='${datarootdir}/info' 841htmldir='${docdir}' 842dvidir='${docdir}' 843pdfdir='${docdir}' 844psdir='${docdir}' 845libdir='${exec_prefix}/lib' 846localedir='${datarootdir}/locale' 847mandir='${datarootdir}/man' 848 849ac_prev= 850ac_dashdash= 851for ac_option 852do 853 # If the previous option needs an argument, assign it. 854 if test -n "$ac_prev"; then 855 eval $ac_prev=\$ac_option 856 ac_prev= 857 continue 858 fi 859 860 case $ac_option in 861 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 862 *=) ac_optarg= ;; 863 *) ac_optarg=yes ;; 864 esac 865 866 # Accept the important Cygnus configure options, so we can diagnose typos. 867 868 case $ac_dashdash$ac_option in 869 --) 870 ac_dashdash=yes ;; 871 872 -bindir | --bindir | --bindi | --bind | --bin | --bi) 873 ac_prev=bindir ;; 874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 875 bindir=$ac_optarg ;; 876 877 -build | --build | --buil | --bui | --bu) 878 ac_prev=build_alias ;; 879 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 880 build_alias=$ac_optarg ;; 881 882 -cache-file | --cache-file | --cache-fil | --cache-fi \ 883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 884 ac_prev=cache_file ;; 885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 887 cache_file=$ac_optarg ;; 888 889 --config-cache | -C) 890 cache_file=config.cache ;; 891 892 -datadir | --datadir | --datadi | --datad) 893 ac_prev=datadir ;; 894 -datadir=* | --datadir=* | --datadi=* | --datad=*) 895 datadir=$ac_optarg ;; 896 897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 898 | --dataroo | --dataro | --datar) 899 ac_prev=datarootdir ;; 900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 902 datarootdir=$ac_optarg ;; 903 904 -disable-* | --disable-*) 905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 906 # Reject names that are not valid shell variable names. 907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 908 as_fn_error $? "invalid feature name: $ac_useropt" 909 ac_useropt_orig=$ac_useropt 910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 911 case $ac_user_opts in 912 *" 913"enable_$ac_useropt" 914"*) ;; 915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 916 ac_unrecognized_sep=', ';; 917 esac 918 eval enable_$ac_useropt=no ;; 919 920 -docdir | --docdir | --docdi | --doc | --do) 921 ac_prev=docdir ;; 922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 923 docdir=$ac_optarg ;; 924 925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 926 ac_prev=dvidir ;; 927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 928 dvidir=$ac_optarg ;; 929 930 -enable-* | --enable-*) 931 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 932 # Reject names that are not valid shell variable names. 933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 934 as_fn_error $? "invalid feature name: $ac_useropt" 935 ac_useropt_orig=$ac_useropt 936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 937 case $ac_user_opts in 938 *" 939"enable_$ac_useropt" 940"*) ;; 941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 942 ac_unrecognized_sep=', ';; 943 esac 944 eval enable_$ac_useropt=\$ac_optarg ;; 945 946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 948 | --exec | --exe | --ex) 949 ac_prev=exec_prefix ;; 950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 952 | --exec=* | --exe=* | --ex=*) 953 exec_prefix=$ac_optarg ;; 954 955 -gas | --gas | --ga | --g) 956 # Obsolete; use --with-gas. 957 with_gas=yes ;; 958 959 -help | --help | --hel | --he | -h) 960 ac_init_help=long ;; 961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 962 ac_init_help=recursive ;; 963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 964 ac_init_help=short ;; 965 966 -host | --host | --hos | --ho) 967 ac_prev=host_alias ;; 968 -host=* | --host=* | --hos=* | --ho=*) 969 host_alias=$ac_optarg ;; 970 971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 972 ac_prev=htmldir ;; 973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 974 | --ht=*) 975 htmldir=$ac_optarg ;; 976 977 -includedir | --includedir | --includedi | --included | --include \ 978 | --includ | --inclu | --incl | --inc) 979 ac_prev=includedir ;; 980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 981 | --includ=* | --inclu=* | --incl=* | --inc=*) 982 includedir=$ac_optarg ;; 983 984 -infodir | --infodir | --infodi | --infod | --info | --inf) 985 ac_prev=infodir ;; 986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 987 infodir=$ac_optarg ;; 988 989 -libdir | --libdir | --libdi | --libd) 990 ac_prev=libdir ;; 991 -libdir=* | --libdir=* | --libdi=* | --libd=*) 992 libdir=$ac_optarg ;; 993 994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 995 | --libexe | --libex | --libe) 996 ac_prev=libexecdir ;; 997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 998 | --libexe=* | --libex=* | --libe=*) 999 libexecdir=$ac_optarg ;; 1000 1001 -localedir | --localedir | --localedi | --localed | --locale) 1002 ac_prev=localedir ;; 1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1004 localedir=$ac_optarg ;; 1005 1006 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1007 | --localstate | --localstat | --localsta | --localst | --locals) 1008 ac_prev=localstatedir ;; 1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1011 localstatedir=$ac_optarg ;; 1012 1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1014 ac_prev=mandir ;; 1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1016 mandir=$ac_optarg ;; 1017 1018 -nfp | --nfp | --nf) 1019 # Obsolete; use --without-fp. 1020 with_fp=no ;; 1021 1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1023 | --no-cr | --no-c | -n) 1024 no_create=yes ;; 1025 1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1028 no_recursion=yes ;; 1029 1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1032 | --oldin | --oldi | --old | --ol | --o) 1033 ac_prev=oldincludedir ;; 1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1037 oldincludedir=$ac_optarg ;; 1038 1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1040 ac_prev=prefix ;; 1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1042 prefix=$ac_optarg ;; 1043 1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1045 | --program-pre | --program-pr | --program-p) 1046 ac_prev=program_prefix ;; 1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1049 program_prefix=$ac_optarg ;; 1050 1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1052 | --program-suf | --program-su | --program-s) 1053 ac_prev=program_suffix ;; 1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1056 program_suffix=$ac_optarg ;; 1057 1058 -program-transform-name | --program-transform-name \ 1059 | --program-transform-nam | --program-transform-na \ 1060 | --program-transform-n | --program-transform- \ 1061 | --program-transform | --program-transfor \ 1062 | --program-transfo | --program-transf \ 1063 | --program-trans | --program-tran \ 1064 | --progr-tra | --program-tr | --program-t) 1065 ac_prev=program_transform_name ;; 1066 -program-transform-name=* | --program-transform-name=* \ 1067 | --program-transform-nam=* | --program-transform-na=* \ 1068 | --program-transform-n=* | --program-transform-=* \ 1069 | --program-transform=* | --program-transfor=* \ 1070 | --program-transfo=* | --program-transf=* \ 1071 | --program-trans=* | --program-tran=* \ 1072 | --progr-tra=* | --program-tr=* | --program-t=*) 1073 program_transform_name=$ac_optarg ;; 1074 1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1076 ac_prev=pdfdir ;; 1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1078 pdfdir=$ac_optarg ;; 1079 1080 -psdir | --psdir | --psdi | --psd | --ps) 1081 ac_prev=psdir ;; 1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1083 psdir=$ac_optarg ;; 1084 1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1086 | -silent | --silent | --silen | --sile | --sil) 1087 silent=yes ;; 1088 1089 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1090 | --runstate | --runstat | --runsta | --runst | --runs \ 1091 | --run | --ru | --r) 1092 ac_prev=runstatedir ;; 1093 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1094 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1095 | --run=* | --ru=* | --r=*) 1096 runstatedir=$ac_optarg ;; 1097 1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1099 ac_prev=sbindir ;; 1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1101 | --sbi=* | --sb=*) 1102 sbindir=$ac_optarg ;; 1103 1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1106 | --sharedst | --shareds | --shared | --share | --shar \ 1107 | --sha | --sh) 1108 ac_prev=sharedstatedir ;; 1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1112 | --sha=* | --sh=*) 1113 sharedstatedir=$ac_optarg ;; 1114 1115 -site | --site | --sit) 1116 ac_prev=site ;; 1117 -site=* | --site=* | --sit=*) 1118 site=$ac_optarg ;; 1119 1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1121 ac_prev=srcdir ;; 1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1123 srcdir=$ac_optarg ;; 1124 1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1126 | --syscon | --sysco | --sysc | --sys | --sy) 1127 ac_prev=sysconfdir ;; 1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1130 sysconfdir=$ac_optarg ;; 1131 1132 -target | --target | --targe | --targ | --tar | --ta | --t) 1133 ac_prev=target_alias ;; 1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1135 target_alias=$ac_optarg ;; 1136 1137 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1138 verbose=yes ;; 1139 1140 -version | --version | --versio | --versi | --vers | -V) 1141 ac_init_version=: ;; 1142 1143 -with-* | --with-*) 1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1145 # Reject names that are not valid shell variable names. 1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1147 as_fn_error $? "invalid package name: $ac_useropt" 1148 ac_useropt_orig=$ac_useropt 1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1150 case $ac_user_opts in 1151 *" 1152"with_$ac_useropt" 1153"*) ;; 1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1155 ac_unrecognized_sep=', ';; 1156 esac 1157 eval with_$ac_useropt=\$ac_optarg ;; 1158 1159 -without-* | --without-*) 1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1161 # Reject names that are not valid shell variable names. 1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1163 as_fn_error $? "invalid package name: $ac_useropt" 1164 ac_useropt_orig=$ac_useropt 1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1166 case $ac_user_opts in 1167 *" 1168"with_$ac_useropt" 1169"*) ;; 1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1171 ac_unrecognized_sep=', ';; 1172 esac 1173 eval with_$ac_useropt=no ;; 1174 1175 --x) 1176 # Obsolete; use --with-x. 1177 with_x=yes ;; 1178 1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1180 | --x-incl | --x-inc | --x-in | --x-i) 1181 ac_prev=x_includes ;; 1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1184 x_includes=$ac_optarg ;; 1185 1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1188 ac_prev=x_libraries ;; 1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1191 x_libraries=$ac_optarg ;; 1192 1193 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1194Try \`$0 --help' for more information" 1195 ;; 1196 1197 *=*) 1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1199 # Reject names that are not valid shell variable names. 1200 case $ac_envvar in #( 1201 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1202 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1203 esac 1204 eval $ac_envvar=\$ac_optarg 1205 export $ac_envvar ;; 1206 1207 *) 1208 # FIXME: should be removed in autoconf 3.0. 1209 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1211 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1212 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1213 ;; 1214 1215 esac 1216done 1217 1218if test -n "$ac_prev"; then 1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1220 as_fn_error $? "missing argument to $ac_option" 1221fi 1222 1223if test -n "$ac_unrecognized_opts"; then 1224 case $enable_option_checking in 1225 no) ;; 1226 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1228 esac 1229fi 1230 1231# Check all directory arguments for consistency. 1232for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1233 datadir sysconfdir sharedstatedir localstatedir includedir \ 1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1235 libdir localedir mandir runstatedir 1236do 1237 eval ac_val=\$$ac_var 1238 # Remove trailing slashes. 1239 case $ac_val in 1240 */ ) 1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1242 eval $ac_var=\$ac_val;; 1243 esac 1244 # Be sure to have absolute directory names. 1245 case $ac_val in 1246 [\\/$]* | ?:[\\/]* ) continue;; 1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1248 esac 1249 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1250done 1251 1252# There might be people who depend on the old broken behavior: `$host' 1253# used to hold the argument of --host etc. 1254# FIXME: To remove some day. 1255build=$build_alias 1256host=$host_alias 1257target=$target_alias 1258 1259# FIXME: To remove some day. 1260if test "x$host_alias" != x; then 1261 if test "x$build_alias" = x; then 1262 cross_compiling=maybe 1263 elif test "x$build_alias" != "x$host_alias"; then 1264 cross_compiling=yes 1265 fi 1266fi 1267 1268ac_tool_prefix= 1269test -n "$host_alias" && ac_tool_prefix=$host_alias- 1270 1271test "$silent" = yes && exec 6>/dev/null 1272 1273 1274ac_pwd=`pwd` && test -n "$ac_pwd" && 1275ac_ls_di=`ls -di .` && 1276ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1277 as_fn_error $? "working directory cannot be determined" 1278test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1279 as_fn_error $? "pwd does not report name of working directory" 1280 1281 1282# Find the source files, if location was not specified. 1283if test -z "$srcdir"; then 1284 ac_srcdir_defaulted=yes 1285 # Try the directory containing this script, then the parent directory. 1286 ac_confdir=`$as_dirname -- "$as_myself" || 1287$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1288 X"$as_myself" : 'X\(//\)[^/]' \| \ 1289 X"$as_myself" : 'X\(//\)$' \| \ 1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1291$as_echo X"$as_myself" | 1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1293 s//\1/ 1294 q 1295 } 1296 /^X\(\/\/\)[^/].*/{ 1297 s//\1/ 1298 q 1299 } 1300 /^X\(\/\/\)$/{ 1301 s//\1/ 1302 q 1303 } 1304 /^X\(\/\).*/{ 1305 s//\1/ 1306 q 1307 } 1308 s/.*/./; q'` 1309 srcdir=$ac_confdir 1310 if test ! -r "$srcdir/$ac_unique_file"; then 1311 srcdir=.. 1312 fi 1313else 1314 ac_srcdir_defaulted=no 1315fi 1316if test ! -r "$srcdir/$ac_unique_file"; then 1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1318 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1319fi 1320ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1321ac_abs_confdir=`( 1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1323 pwd)` 1324# When building in place, set srcdir=. 1325if test "$ac_abs_confdir" = "$ac_pwd"; then 1326 srcdir=. 1327fi 1328# Remove unnecessary trailing slashes from srcdir. 1329# Double slashes in file names in object file debugging info 1330# mess up M-x gdb in Emacs. 1331case $srcdir in 1332*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1333esac 1334for ac_var in $ac_precious_vars; do 1335 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1336 eval ac_env_${ac_var}_value=\$${ac_var} 1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1338 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1339done 1340 1341# 1342# Report the --help message. 1343# 1344if test "$ac_init_help" = "long"; then 1345 # Omit some internal or obsolete options to make the list less imposing. 1346 # This message is too long to be a string in the A/UX 3.1 sh. 1347 cat <<_ACEOF 1348\`configure' configures libEMF 1.0.13 to adapt to many kinds of systems. 1349 1350Usage: $0 [OPTION]... [VAR=VALUE]... 1351 1352To assign environment variables (e.g., CC, CFLAGS...), specify them as 1353VAR=VALUE. See below for descriptions of some of the useful variables. 1354 1355Defaults for the options are specified in brackets. 1356 1357Configuration: 1358 -h, --help display this help and exit 1359 --help=short display options specific to this package 1360 --help=recursive display the short help of all the included packages 1361 -V, --version display version information and exit 1362 -q, --quiet, --silent do not print \`checking ...' messages 1363 --cache-file=FILE cache test results in FILE [disabled] 1364 -C, --config-cache alias for \`--cache-file=config.cache' 1365 -n, --no-create do not create output files 1366 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1367 1368Installation directories: 1369 --prefix=PREFIX install architecture-independent files in PREFIX 1370 [$ac_default_prefix] 1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1372 [PREFIX] 1373 1374By default, \`make install' will install all the files in 1375\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1376an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1377for instance \`--prefix=\$HOME'. 1378 1379For better control, use the options below. 1380 1381Fine tuning of the installation directories: 1382 --bindir=DIR user executables [EPREFIX/bin] 1383 --sbindir=DIR system admin executables [EPREFIX/sbin] 1384 --libexecdir=DIR program executables [EPREFIX/libexec] 1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1388 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1389 --libdir=DIR object code libraries [EPREFIX/lib] 1390 --includedir=DIR C header files [PREFIX/include] 1391 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1394 --infodir=DIR info documentation [DATAROOTDIR/info] 1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1396 --mandir=DIR man documentation [DATAROOTDIR/man] 1397 --docdir=DIR documentation root [DATAROOTDIR/doc/libemf] 1398 --htmldir=DIR html documentation [DOCDIR] 1399 --dvidir=DIR dvi documentation [DOCDIR] 1400 --pdfdir=DIR pdf documentation [DOCDIR] 1401 --psdir=DIR ps documentation [DOCDIR] 1402_ACEOF 1403 1404 cat <<\_ACEOF 1405 1406Program names: 1407 --program-prefix=PREFIX prepend PREFIX to installed program names 1408 --program-suffix=SUFFIX append SUFFIX to installed program names 1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1410 1411System types: 1412 --build=BUILD configure for building on BUILD [guessed] 1413 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1414_ACEOF 1415fi 1416 1417if test -n "$ac_init_help"; then 1418 case $ac_init_help in 1419 short | recursive ) echo "Configuration of libEMF 1.0.13:";; 1420 esac 1421 cat <<\_ACEOF 1422 1423Optional Features: 1424 --disable-option-checking ignore unrecognized --enable/--with options 1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1427 --enable-silent-rules less verbose build output (undo: "make V=1") 1428 --disable-silent-rules verbose build output (undo: "make V=0") 1429 --enable-dependency-tracking 1430 do not reject slow dependency extractors 1431 --disable-dependency-tracking 1432 speeds up one-time build 1433 --enable-shared[=PKGS] build shared libraries [default=yes] 1434 --enable-static[=PKGS] build static libraries [default=yes] 1435 --enable-fast-install[=PKGS] 1436 optimize for fast installation [default=yes] 1437 --disable-libtool-lock avoid locking (might break parallel builds) 1438 --enable-debug enable libEMF debugging default=no 1439 --enable-threads enable threads default=yes 1440 --enable-editing enable EditEnhMetaFile() function default=no 1441 1442Optional Packages: 1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1445 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1446 both] 1447 --with-aix-soname=aix|svr4|both 1448 shared library versioning (aka "SONAME") variant to 1449 provide on AIX, [default=aix]. 1450 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1451 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1452 compiler's sysroot if not specified). 1453 1454Some influential environment variables: 1455 CXX C++ compiler command 1456 CXXFLAGS C++ compiler flags 1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1458 nonstandard directory <lib dir> 1459 LIBS libraries to pass to the linker, e.g. -l<library> 1460 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1461 you have headers in a nonstandard directory <include dir> 1462 CC C compiler command 1463 CFLAGS C compiler flags 1464 LT_SYS_LIBRARY_PATH 1465 User-defined run-time library search path. 1466 CPP C preprocessor 1467 CXXCPP C++ preprocessor 1468 1469Use these variables to override the choices made by `configure' or to help 1470it to find libraries and programs with nonstandard names/locations. 1471 1472Report bugs to <dallenbarnett@users.sourceforge.net>. 1473_ACEOF 1474ac_status=$? 1475fi 1476 1477if test "$ac_init_help" = "recursive"; then 1478 # If there are subdirs, report their specific --help. 1479 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1480 test -d "$ac_dir" || 1481 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1482 continue 1483 ac_builddir=. 1484 1485case "$ac_dir" in 1486.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1487*) 1488 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1489 # A ".." for each directory in $ac_dir_suffix. 1490 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1491 case $ac_top_builddir_sub in 1492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1494 esac ;; 1495esac 1496ac_abs_top_builddir=$ac_pwd 1497ac_abs_builddir=$ac_pwd$ac_dir_suffix 1498# for backward compatibility: 1499ac_top_builddir=$ac_top_build_prefix 1500 1501case $srcdir in 1502 .) # We are building in place. 1503 ac_srcdir=. 1504 ac_top_srcdir=$ac_top_builddir_sub 1505 ac_abs_top_srcdir=$ac_pwd ;; 1506 [\\/]* | ?:[\\/]* ) # Absolute name. 1507 ac_srcdir=$srcdir$ac_dir_suffix; 1508 ac_top_srcdir=$srcdir 1509 ac_abs_top_srcdir=$srcdir ;; 1510 *) # Relative name. 1511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1512 ac_top_srcdir=$ac_top_build_prefix$srcdir 1513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1514esac 1515ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1516 1517 cd "$ac_dir" || { ac_status=$?; continue; } 1518 # Check for guested configure. 1519 if test -f "$ac_srcdir/configure.gnu"; then 1520 echo && 1521 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1522 elif test -f "$ac_srcdir/configure"; then 1523 echo && 1524 $SHELL "$ac_srcdir/configure" --help=recursive 1525 else 1526 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1527 fi || ac_status=$? 1528 cd "$ac_pwd" || { ac_status=$?; break; } 1529 done 1530fi 1531 1532test -n "$ac_init_help" && exit $ac_status 1533if $ac_init_version; then 1534 cat <<\_ACEOF 1535libEMF configure 1.0.13 1536generated by GNU Autoconf 2.69 1537 1538Copyright (C) 2012 Free Software Foundation, Inc. 1539This configure script is free software; the Free Software Foundation 1540gives unlimited permission to copy, distribute and modify it. 1541_ACEOF 1542 exit 1543fi 1544 1545## ------------------------ ## 1546## Autoconf initialization. ## 1547## ------------------------ ## 1548 1549# ac_fn_cxx_try_compile LINENO 1550# ---------------------------- 1551# Try to compile conftest.$ac_ext, and return whether this succeeded. 1552ac_fn_cxx_try_compile () 1553{ 1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1555 rm -f conftest.$ac_objext 1556 if { { ac_try="$ac_compile" 1557case "(($ac_try" in 1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1559 *) ac_try_echo=$ac_try;; 1560esac 1561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1562$as_echo "$ac_try_echo"; } >&5 1563 (eval "$ac_compile") 2>conftest.err 1564 ac_status=$? 1565 if test -s conftest.err; then 1566 grep -v '^ *+' conftest.err >conftest.er1 1567 cat conftest.er1 >&5 1568 mv -f conftest.er1 conftest.err 1569 fi 1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1571 test $ac_status = 0; } && { 1572 test -z "$ac_cxx_werror_flag" || 1573 test ! -s conftest.err 1574 } && test -s conftest.$ac_objext; then : 1575 ac_retval=0 1576else 1577 $as_echo "$as_me: failed program was:" >&5 1578sed 's/^/| /' conftest.$ac_ext >&5 1579 1580 ac_retval=1 1581fi 1582 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1583 as_fn_set_status $ac_retval 1584 1585} # ac_fn_cxx_try_compile 1586 1587# ac_fn_c_try_compile LINENO 1588# -------------------------- 1589# Try to compile conftest.$ac_ext, and return whether this succeeded. 1590ac_fn_c_try_compile () 1591{ 1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1593 rm -f conftest.$ac_objext 1594 if { { ac_try="$ac_compile" 1595case "(($ac_try" in 1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1597 *) ac_try_echo=$ac_try;; 1598esac 1599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1600$as_echo "$ac_try_echo"; } >&5 1601 (eval "$ac_compile") 2>conftest.err 1602 ac_status=$? 1603 if test -s conftest.err; then 1604 grep -v '^ *+' conftest.err >conftest.er1 1605 cat conftest.er1 >&5 1606 mv -f conftest.er1 conftest.err 1607 fi 1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1609 test $ac_status = 0; } && { 1610 test -z "$ac_c_werror_flag" || 1611 test ! -s conftest.err 1612 } && test -s conftest.$ac_objext; then : 1613 ac_retval=0 1614else 1615 $as_echo "$as_me: failed program was:" >&5 1616sed 's/^/| /' conftest.$ac_ext >&5 1617 1618 ac_retval=1 1619fi 1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1621 as_fn_set_status $ac_retval 1622 1623} # ac_fn_c_try_compile 1624 1625# ac_fn_c_try_link LINENO 1626# ----------------------- 1627# Try to link conftest.$ac_ext, and return whether this succeeded. 1628ac_fn_c_try_link () 1629{ 1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1631 rm -f conftest.$ac_objext conftest$ac_exeext 1632 if { { ac_try="$ac_link" 1633case "(($ac_try" in 1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1635 *) ac_try_echo=$ac_try;; 1636esac 1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1638$as_echo "$ac_try_echo"; } >&5 1639 (eval "$ac_link") 2>conftest.err 1640 ac_status=$? 1641 if test -s conftest.err; then 1642 grep -v '^ *+' conftest.err >conftest.er1 1643 cat conftest.er1 >&5 1644 mv -f conftest.er1 conftest.err 1645 fi 1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1647 test $ac_status = 0; } && { 1648 test -z "$ac_c_werror_flag" || 1649 test ! -s conftest.err 1650 } && test -s conftest$ac_exeext && { 1651 test "$cross_compiling" = yes || 1652 test -x conftest$ac_exeext 1653 }; then : 1654 ac_retval=0 1655else 1656 $as_echo "$as_me: failed program was:" >&5 1657sed 's/^/| /' conftest.$ac_ext >&5 1658 1659 ac_retval=1 1660fi 1661 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1662 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1663 # interfere with the next link command; also delete a directory that is 1664 # left behind by Apple's compiler. We do this before executing the actions. 1665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1667 as_fn_set_status $ac_retval 1668 1669} # ac_fn_c_try_link 1670 1671# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1672# ------------------------------------------------------- 1673# Tests whether HEADER exists and can be compiled using the include files in 1674# INCLUDES, setting the cache variable VAR accordingly. 1675ac_fn_c_check_header_compile () 1676{ 1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1679$as_echo_n "checking for $2... " >&6; } 1680if eval \${$3+:} false; then : 1681 $as_echo_n "(cached) " >&6 1682else 1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1684/* end confdefs.h. */ 1685$4 1686#include <$2> 1687_ACEOF 1688if ac_fn_c_try_compile "$LINENO"; then : 1689 eval "$3=yes" 1690else 1691 eval "$3=no" 1692fi 1693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1694fi 1695eval ac_res=\$$3 1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1697$as_echo "$ac_res" >&6; } 1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1699 1700} # ac_fn_c_check_header_compile 1701 1702# ac_fn_c_try_cpp LINENO 1703# ---------------------- 1704# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1705ac_fn_c_try_cpp () 1706{ 1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1708 if { { ac_try="$ac_cpp conftest.$ac_ext" 1709case "(($ac_try" in 1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1711 *) ac_try_echo=$ac_try;; 1712esac 1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1714$as_echo "$ac_try_echo"; } >&5 1715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1716 ac_status=$? 1717 if test -s conftest.err; then 1718 grep -v '^ *+' conftest.err >conftest.er1 1719 cat conftest.er1 >&5 1720 mv -f conftest.er1 conftest.err 1721 fi 1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1723 test $ac_status = 0; } > conftest.i && { 1724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1725 test ! -s conftest.err 1726 }; then : 1727 ac_retval=0 1728else 1729 $as_echo "$as_me: failed program was:" >&5 1730sed 's/^/| /' conftest.$ac_ext >&5 1731 1732 ac_retval=1 1733fi 1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1735 as_fn_set_status $ac_retval 1736 1737} # ac_fn_c_try_cpp 1738 1739# ac_fn_c_try_run LINENO 1740# ---------------------- 1741# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1742# that executables *can* be run. 1743ac_fn_c_try_run () 1744{ 1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1746 if { { ac_try="$ac_link" 1747case "(($ac_try" in 1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1749 *) ac_try_echo=$ac_try;; 1750esac 1751eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1752$as_echo "$ac_try_echo"; } >&5 1753 (eval "$ac_link") 2>&5 1754 ac_status=$? 1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1756 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1757 { { case "(($ac_try" in 1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1759 *) ac_try_echo=$ac_try;; 1760esac 1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1762$as_echo "$ac_try_echo"; } >&5 1763 (eval "$ac_try") 2>&5 1764 ac_status=$? 1765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1766 test $ac_status = 0; }; }; then : 1767 ac_retval=0 1768else 1769 $as_echo "$as_me: program exited with status $ac_status" >&5 1770 $as_echo "$as_me: failed program was:" >&5 1771sed 's/^/| /' conftest.$ac_ext >&5 1772 1773 ac_retval=$ac_status 1774fi 1775 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1777 as_fn_set_status $ac_retval 1778 1779} # ac_fn_c_try_run 1780 1781# ac_fn_c_check_func LINENO FUNC VAR 1782# ---------------------------------- 1783# Tests whether FUNC exists, setting the cache variable VAR accordingly 1784ac_fn_c_check_func () 1785{ 1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1788$as_echo_n "checking for $2... " >&6; } 1789if eval \${$3+:} false; then : 1790 $as_echo_n "(cached) " >&6 1791else 1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1793/* end confdefs.h. */ 1794/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1795 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1796#define $2 innocuous_$2 1797 1798/* System header to define __stub macros and hopefully few prototypes, 1799 which can conflict with char $2 (); below. 1800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1801 <limits.h> exists even on freestanding compilers. */ 1802 1803#ifdef __STDC__ 1804# include <limits.h> 1805#else 1806# include <assert.h> 1807#endif 1808 1809#undef $2 1810 1811/* Override any GCC internal prototype to avoid an error. 1812 Use char because int might match the return type of a GCC 1813 builtin and then its argument prototype would still apply. */ 1814#ifdef __cplusplus 1815extern "C" 1816#endif 1817char $2 (); 1818/* The GNU C library defines this for functions which it implements 1819 to always fail with ENOSYS. Some functions are actually named 1820 something starting with __ and the normal name is an alias. */ 1821#if defined __stub_$2 || defined __stub___$2 1822choke me 1823#endif 1824 1825int 1826main () 1827{ 1828return $2 (); 1829 ; 1830 return 0; 1831} 1832_ACEOF 1833if ac_fn_c_try_link "$LINENO"; then : 1834 eval "$3=yes" 1835else 1836 eval "$3=no" 1837fi 1838rm -f core conftest.err conftest.$ac_objext \ 1839 conftest$ac_exeext conftest.$ac_ext 1840fi 1841eval ac_res=\$$3 1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1843$as_echo "$ac_res" >&6; } 1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1845 1846} # ac_fn_c_check_func 1847 1848# ac_fn_cxx_try_cpp LINENO 1849# ------------------------ 1850# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1851ac_fn_cxx_try_cpp () 1852{ 1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1854 if { { ac_try="$ac_cpp conftest.$ac_ext" 1855case "(($ac_try" in 1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1857 *) ac_try_echo=$ac_try;; 1858esac 1859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1860$as_echo "$ac_try_echo"; } >&5 1861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1862 ac_status=$? 1863 if test -s conftest.err; then 1864 grep -v '^ *+' conftest.err >conftest.er1 1865 cat conftest.er1 >&5 1866 mv -f conftest.er1 conftest.err 1867 fi 1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1869 test $ac_status = 0; } > conftest.i && { 1870 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1871 test ! -s conftest.err 1872 }; then : 1873 ac_retval=0 1874else 1875 $as_echo "$as_me: failed program was:" >&5 1876sed 's/^/| /' conftest.$ac_ext >&5 1877 1878 ac_retval=1 1879fi 1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1881 as_fn_set_status $ac_retval 1882 1883} # ac_fn_cxx_try_cpp 1884 1885# ac_fn_cxx_try_link LINENO 1886# ------------------------- 1887# Try to link conftest.$ac_ext, and return whether this succeeded. 1888ac_fn_cxx_try_link () 1889{ 1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1891 rm -f conftest.$ac_objext conftest$ac_exeext 1892 if { { ac_try="$ac_link" 1893case "(($ac_try" in 1894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1895 *) ac_try_echo=$ac_try;; 1896esac 1897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1898$as_echo "$ac_try_echo"; } >&5 1899 (eval "$ac_link") 2>conftest.err 1900 ac_status=$? 1901 if test -s conftest.err; then 1902 grep -v '^ *+' conftest.err >conftest.er1 1903 cat conftest.er1 >&5 1904 mv -f conftest.er1 conftest.err 1905 fi 1906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1907 test $ac_status = 0; } && { 1908 test -z "$ac_cxx_werror_flag" || 1909 test ! -s conftest.err 1910 } && test -s conftest$ac_exeext && { 1911 test "$cross_compiling" = yes || 1912 test -x conftest$ac_exeext 1913 }; then : 1914 ac_retval=0 1915else 1916 $as_echo "$as_me: failed program was:" >&5 1917sed 's/^/| /' conftest.$ac_ext >&5 1918 1919 ac_retval=1 1920fi 1921 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1922 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1923 # interfere with the next link command; also delete a directory that is 1924 # left behind by Apple's compiler. We do this before executing the actions. 1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1927 as_fn_set_status $ac_retval 1928 1929} # ac_fn_cxx_try_link 1930 1931# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1932# ------------------------------------------------------- 1933# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1934# the include files in INCLUDES and setting the cache variable VAR 1935# accordingly. 1936ac_fn_c_check_header_mongrel () 1937{ 1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1939 if eval \${$3+:} false; then : 1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1941$as_echo_n "checking for $2... " >&6; } 1942if eval \${$3+:} false; then : 1943 $as_echo_n "(cached) " >&6 1944fi 1945eval ac_res=\$$3 1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1947$as_echo "$ac_res" >&6; } 1948else 1949 # Is the header compilable? 1950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1951$as_echo_n "checking $2 usability... " >&6; } 1952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1953/* end confdefs.h. */ 1954$4 1955#include <$2> 1956_ACEOF 1957if ac_fn_c_try_compile "$LINENO"; then : 1958 ac_header_compiler=yes 1959else 1960 ac_header_compiler=no 1961fi 1962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1964$as_echo "$ac_header_compiler" >&6; } 1965 1966# Is the header present? 1967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1968$as_echo_n "checking $2 presence... " >&6; } 1969cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1970/* end confdefs.h. */ 1971#include <$2> 1972_ACEOF 1973if ac_fn_c_try_cpp "$LINENO"; then : 1974 ac_header_preproc=yes 1975else 1976 ac_header_preproc=no 1977fi 1978rm -f conftest.err conftest.i conftest.$ac_ext 1979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1980$as_echo "$ac_header_preproc" >&6; } 1981 1982# So? What about this header? 1983case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1984 yes:no: ) 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1986$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1988$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1989 ;; 1990 no:yes:* ) 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1992$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1994$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1996$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1998$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2000$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2001( $as_echo "## -------------------------------------------------- ## 2002## Report this to dallenbarnett@users.sourceforge.net ## 2003## -------------------------------------------------- ##" 2004 ) | sed "s/^/$as_me: WARNING: /" >&2 2005 ;; 2006esac 2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2008$as_echo_n "checking for $2... " >&6; } 2009if eval \${$3+:} false; then : 2010 $as_echo_n "(cached) " >&6 2011else 2012 eval "$3=\$ac_header_compiler" 2013fi 2014eval ac_res=\$$3 2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2016$as_echo "$ac_res" >&6; } 2017fi 2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2019 2020} # ac_fn_c_check_header_mongrel 2021 2022# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2023# ------------------------------------------- 2024# Tests whether TYPE exists after having included INCLUDES, setting cache 2025# variable VAR accordingly. 2026ac_fn_c_check_type () 2027{ 2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2030$as_echo_n "checking for $2... " >&6; } 2031if eval \${$3+:} false; then : 2032 $as_echo_n "(cached) " >&6 2033else 2034 eval "$3=no" 2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2036/* end confdefs.h. */ 2037$4 2038int 2039main () 2040{ 2041if (sizeof ($2)) 2042 return 0; 2043 ; 2044 return 0; 2045} 2046_ACEOF 2047if ac_fn_c_try_compile "$LINENO"; then : 2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2049/* end confdefs.h. */ 2050$4 2051int 2052main () 2053{ 2054if (sizeof (($2))) 2055 return 0; 2056 ; 2057 return 0; 2058} 2059_ACEOF 2060if ac_fn_c_try_compile "$LINENO"; then : 2061 2062else 2063 eval "$3=yes" 2064fi 2065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2066fi 2067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2068fi 2069eval ac_res=\$$3 2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2071$as_echo "$ac_res" >&6; } 2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2073 2074} # ac_fn_c_check_type 2075cat >config.log <<_ACEOF 2076This file contains any messages produced by compilers while 2077running configure, to aid debugging if configure makes a mistake. 2078 2079It was created by libEMF $as_me 1.0.13, which was 2080generated by GNU Autoconf 2.69. Invocation command line was 2081 2082 $ $0 $@ 2083 2084_ACEOF 2085exec 5>>config.log 2086{ 2087cat <<_ASUNAME 2088## --------- ## 2089## Platform. ## 2090## --------- ## 2091 2092hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2093uname -m = `(uname -m) 2>/dev/null || echo unknown` 2094uname -r = `(uname -r) 2>/dev/null || echo unknown` 2095uname -s = `(uname -s) 2>/dev/null || echo unknown` 2096uname -v = `(uname -v) 2>/dev/null || echo unknown` 2097 2098/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2099/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2100 2101/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2102/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2103/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2104/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2105/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2106/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2107/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2108 2109_ASUNAME 2110 2111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2112for as_dir in $PATH 2113do 2114 IFS=$as_save_IFS 2115 test -z "$as_dir" && as_dir=. 2116 $as_echo "PATH: $as_dir" 2117 done 2118IFS=$as_save_IFS 2119 2120} >&5 2121 2122cat >&5 <<_ACEOF 2123 2124 2125## ----------- ## 2126## Core tests. ## 2127## ----------- ## 2128 2129_ACEOF 2130 2131 2132# Keep a trace of the command line. 2133# Strip out --no-create and --no-recursion so they do not pile up. 2134# Strip out --silent because we don't want to record it for future runs. 2135# Also quote any args containing shell meta-characters. 2136# Make two passes to allow for proper duplicate-argument suppression. 2137ac_configure_args= 2138ac_configure_args0= 2139ac_configure_args1= 2140ac_must_keep_next=false 2141for ac_pass in 1 2 2142do 2143 for ac_arg 2144 do 2145 case $ac_arg in 2146 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2148 | -silent | --silent | --silen | --sile | --sil) 2149 continue ;; 2150 *\'*) 2151 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2152 esac 2153 case $ac_pass in 2154 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2155 2) 2156 as_fn_append ac_configure_args1 " '$ac_arg'" 2157 if test $ac_must_keep_next = true; then 2158 ac_must_keep_next=false # Got value, back to normal. 2159 else 2160 case $ac_arg in 2161 *=* | --config-cache | -C | -disable-* | --disable-* \ 2162 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2163 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2164 | -with-* | --with-* | -without-* | --without-* | --x) 2165 case "$ac_configure_args0 " in 2166 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2167 esac 2168 ;; 2169 -* ) ac_must_keep_next=true ;; 2170 esac 2171 fi 2172 as_fn_append ac_configure_args " '$ac_arg'" 2173 ;; 2174 esac 2175 done 2176done 2177{ ac_configure_args0=; unset ac_configure_args0;} 2178{ ac_configure_args1=; unset ac_configure_args1;} 2179 2180# When interrupted or exit'd, cleanup temporary files, and complete 2181# config.log. We remove comments because anyway the quotes in there 2182# would cause problems or look ugly. 2183# WARNING: Use '\'' to represent an apostrophe within the trap. 2184# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2185trap 'exit_status=$? 2186 # Save into config.log some information that might help in debugging. 2187 { 2188 echo 2189 2190 $as_echo "## ---------------- ## 2191## Cache variables. ## 2192## ---------------- ##" 2193 echo 2194 # The following way of writing the cache mishandles newlines in values, 2195( 2196 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2197 eval ac_val=\$$ac_var 2198 case $ac_val in #( 2199 *${as_nl}*) 2200 case $ac_var in #( 2201 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2202$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2203 esac 2204 case $ac_var in #( 2205 _ | IFS | as_nl) ;; #( 2206 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2207 *) { eval $ac_var=; unset $ac_var;} ;; 2208 esac ;; 2209 esac 2210 done 2211 (set) 2>&1 | 2212 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2213 *${as_nl}ac_space=\ *) 2214 sed -n \ 2215 "s/'\''/'\''\\\\'\'''\''/g; 2216 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2217 ;; #( 2218 *) 2219 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2220 ;; 2221 esac | 2222 sort 2223) 2224 echo 2225 2226 $as_echo "## ----------------- ## 2227## Output variables. ## 2228## ----------------- ##" 2229 echo 2230 for ac_var in $ac_subst_vars 2231 do 2232 eval ac_val=\$$ac_var 2233 case $ac_val in 2234 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2235 esac 2236 $as_echo "$ac_var='\''$ac_val'\''" 2237 done | sort 2238 echo 2239 2240 if test -n "$ac_subst_files"; then 2241 $as_echo "## ------------------- ## 2242## File substitutions. ## 2243## ------------------- ##" 2244 echo 2245 for ac_var in $ac_subst_files 2246 do 2247 eval ac_val=\$$ac_var 2248 case $ac_val in 2249 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2250 esac 2251 $as_echo "$ac_var='\''$ac_val'\''" 2252 done | sort 2253 echo 2254 fi 2255 2256 if test -s confdefs.h; then 2257 $as_echo "## ----------- ## 2258## confdefs.h. ## 2259## ----------- ##" 2260 echo 2261 cat confdefs.h 2262 echo 2263 fi 2264 test "$ac_signal" != 0 && 2265 $as_echo "$as_me: caught signal $ac_signal" 2266 $as_echo "$as_me: exit $exit_status" 2267 } >&5 2268 rm -f core *.core core.conftest.* && 2269 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2270 exit $exit_status 2271' 0 2272for ac_signal in 1 2 13 15; do 2273 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2274done 2275ac_signal=0 2276 2277# confdefs.h avoids OS command line length limits that DEFS can exceed. 2278rm -f -r conftest* confdefs.h 2279 2280$as_echo "/* confdefs.h */" > confdefs.h 2281 2282# Predefined preprocessor variables. 2283 2284cat >>confdefs.h <<_ACEOF 2285#define PACKAGE_NAME "$PACKAGE_NAME" 2286_ACEOF 2287 2288cat >>confdefs.h <<_ACEOF 2289#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2290_ACEOF 2291 2292cat >>confdefs.h <<_ACEOF 2293#define PACKAGE_VERSION "$PACKAGE_VERSION" 2294_ACEOF 2295 2296cat >>confdefs.h <<_ACEOF 2297#define PACKAGE_STRING "$PACKAGE_STRING" 2298_ACEOF 2299 2300cat >>confdefs.h <<_ACEOF 2301#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2302_ACEOF 2303 2304cat >>confdefs.h <<_ACEOF 2305#define PACKAGE_URL "$PACKAGE_URL" 2306_ACEOF 2307 2308 2309# Let the site file select an alternate cache file if it wants to. 2310# Prefer an explicitly selected file to automatically selected ones. 2311ac_site_file1=NONE 2312ac_site_file2=NONE 2313if test -n "$CONFIG_SITE"; then 2314 # We do not want a PATH search for config.site. 2315 case $CONFIG_SITE in #(( 2316 -*) ac_site_file1=./$CONFIG_SITE;; 2317 */*) ac_site_file1=$CONFIG_SITE;; 2318 *) ac_site_file1=./$CONFIG_SITE;; 2319 esac 2320elif test "x$prefix" != xNONE; then 2321 ac_site_file1=$prefix/share/config.site 2322 ac_site_file2=$prefix/etc/config.site 2323else 2324 ac_site_file1=$ac_default_prefix/share/config.site 2325 ac_site_file2=$ac_default_prefix/etc/config.site 2326fi 2327for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2328do 2329 test "x$ac_site_file" = xNONE && continue 2330 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2332$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2333 sed 's/^/| /' "$ac_site_file" >&5 2334 . "$ac_site_file" \ 2335 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2337as_fn_error $? "failed to load site script $ac_site_file 2338See \`config.log' for more details" "$LINENO" 5; } 2339 fi 2340done 2341 2342if test -r "$cache_file"; then 2343 # Some versions of bash will fail to source /dev/null (special files 2344 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2345 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2346 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2347$as_echo "$as_me: loading cache $cache_file" >&6;} 2348 case $cache_file in 2349 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2350 *) . "./$cache_file";; 2351 esac 2352 fi 2353else 2354 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2355$as_echo "$as_me: creating cache $cache_file" >&6;} 2356 >$cache_file 2357fi 2358 2359# Check that the precious variables saved in the cache have kept the same 2360# value. 2361ac_cache_corrupted=false 2362for ac_var in $ac_precious_vars; do 2363 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2364 eval ac_new_set=\$ac_env_${ac_var}_set 2365 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2366 eval ac_new_val=\$ac_env_${ac_var}_value 2367 case $ac_old_set,$ac_new_set in 2368 set,) 2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2370$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2371 ac_cache_corrupted=: ;; 2372 ,set) 2373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2374$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2375 ac_cache_corrupted=: ;; 2376 ,);; 2377 *) 2378 if test "x$ac_old_val" != "x$ac_new_val"; then 2379 # differences in whitespace do not lead to failure. 2380 ac_old_val_w=`echo x $ac_old_val` 2381 ac_new_val_w=`echo x $ac_new_val` 2382 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2384$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2385 ac_cache_corrupted=: 2386 else 2387 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2388$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2389 eval $ac_var=\$ac_old_val 2390 fi 2391 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2392$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2393 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2394$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2395 fi;; 2396 esac 2397 # Pass precious variables to config.status. 2398 if test "$ac_new_set" = set; then 2399 case $ac_new_val in 2400 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2401 *) ac_arg=$ac_var=$ac_new_val ;; 2402 esac 2403 case " $ac_configure_args " in 2404 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2405 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2406 esac 2407 fi 2408done 2409if $ac_cache_corrupted; then 2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2413$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2414 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2415fi 2416## -------------------- ## 2417## Main body of script. ## 2418## -------------------- ## 2419 2420ac_ext=c 2421ac_cpp='$CPP $CPPFLAGS' 2422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2424ac_compiler_gnu=$ac_cv_c_compiler_gnu 2425 2426 2427ac_aux_dir= 2428for ac_dir in config "$srcdir"/config; do 2429 if test -f "$ac_dir/install-sh"; then 2430 ac_aux_dir=$ac_dir 2431 ac_install_sh="$ac_aux_dir/install-sh -c" 2432 break 2433 elif test -f "$ac_dir/install.sh"; then 2434 ac_aux_dir=$ac_dir 2435 ac_install_sh="$ac_aux_dir/install.sh -c" 2436 break 2437 elif test -f "$ac_dir/shtool"; then 2438 ac_aux_dir=$ac_dir 2439 ac_install_sh="$ac_aux_dir/shtool install -c" 2440 break 2441 fi 2442done 2443if test -z "$ac_aux_dir"; then 2444 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2445fi 2446 2447# These three variables are undocumented and unsupported, 2448# and are intended to be withdrawn in a future Autoconf release. 2449# They can cause serious problems if a builder's source tree is in a directory 2450# whose full name contains unusual characters. 2451ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2452ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2453ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2454 2455 2456ac_config_headers="$ac_config_headers config/config.h" 2457 2458 2459am__api_version='1.15' 2460 2461# Find a good install program. We prefer a C program (faster), 2462# so one script is as good as another. But avoid the broken or 2463# incompatible versions: 2464# SysV /etc/install, /usr/sbin/install 2465# SunOS /usr/etc/install 2466# IRIX /sbin/install 2467# AIX /bin/install 2468# AmigaOS /C/install, which installs bootblocks on floppy discs 2469# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2470# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2471# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2472# OS/2's system install, which has a completely different semantic 2473# ./install, which can be erroneously created by make from ./install.sh. 2474# Reject install programs that cannot install multiple files. 2475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2476$as_echo_n "checking for a BSD-compatible install... " >&6; } 2477if test -z "$INSTALL"; then 2478if ${ac_cv_path_install+:} false; then : 2479 $as_echo_n "(cached) " >&6 2480else 2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2482for as_dir in $PATH 2483do 2484 IFS=$as_save_IFS 2485 test -z "$as_dir" && as_dir=. 2486 # Account for people who put trailing slashes in PATH elements. 2487case $as_dir/ in #(( 2488 ./ | .// | /[cC]/* | \ 2489 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2490 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2491 /usr/ucb/* ) ;; 2492 *) 2493 # OSF1 and SCO ODT 3.0 have their own names for install. 2494 # Don't use installbsd from OSF since it installs stuff as root 2495 # by default. 2496 for ac_prog in ginstall scoinst install; do 2497 for ac_exec_ext in '' $ac_executable_extensions; do 2498 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2499 if test $ac_prog = install && 2500 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2501 # AIX install. It has an incompatible calling convention. 2502 : 2503 elif test $ac_prog = install && 2504 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2505 # program-specific install script used by HP pwplus--don't use. 2506 : 2507 else 2508 rm -rf conftest.one conftest.two conftest.dir 2509 echo one > conftest.one 2510 echo two > conftest.two 2511 mkdir conftest.dir 2512 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2513 test -s conftest.one && test -s conftest.two && 2514 test -s conftest.dir/conftest.one && 2515 test -s conftest.dir/conftest.two 2516 then 2517 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2518 break 3 2519 fi 2520 fi 2521 fi 2522 done 2523 done 2524 ;; 2525esac 2526 2527 done 2528IFS=$as_save_IFS 2529 2530rm -rf conftest.one conftest.two conftest.dir 2531 2532fi 2533 if test "${ac_cv_path_install+set}" = set; then 2534 INSTALL=$ac_cv_path_install 2535 else 2536 # As a last resort, use the slow shell script. Don't cache a 2537 # value for INSTALL within a source directory, because that will 2538 # break other packages using the cache if that directory is 2539 # removed, or if the value is a relative name. 2540 INSTALL=$ac_install_sh 2541 fi 2542fi 2543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2544$as_echo "$INSTALL" >&6; } 2545 2546# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2547# It thinks the first close brace ends the variable substitution. 2548test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2549 2550test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2551 2552test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2553 2554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2555$as_echo_n "checking whether build environment is sane... " >&6; } 2556# Reject unsafe characters in $srcdir or the absolute working directory 2557# name. Accept space and tab only in the latter. 2558am_lf=' 2559' 2560case `pwd` in 2561 *[\\\"\#\$\&\'\`$am_lf]*) 2562 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2563esac 2564case $srcdir in 2565 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2566 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2567esac 2568 2569# Do 'set' in a subshell so we don't clobber the current shell's 2570# arguments. Must try -L first in case configure is actually a 2571# symlink; some systems play weird games with the mod time of symlinks 2572# (eg FreeBSD returns the mod time of the symlink's containing 2573# directory). 2574if ( 2575 am_has_slept=no 2576 for am_try in 1 2; do 2577 echo "timestamp, slept: $am_has_slept" > conftest.file 2578 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2579 if test "$*" = "X"; then 2580 # -L didn't work. 2581 set X `ls -t "$srcdir/configure" conftest.file` 2582 fi 2583 if test "$*" != "X $srcdir/configure conftest.file" \ 2584 && test "$*" != "X conftest.file $srcdir/configure"; then 2585 2586 # If neither matched, then we have a broken ls. This can happen 2587 # if, for instance, CONFIG_SHELL is bash and it inherits a 2588 # broken ls alias from the environment. This has actually 2589 # happened. Such a system could not be considered "sane". 2590 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2591 alias in your environment" "$LINENO" 5 2592 fi 2593 if test "$2" = conftest.file || test $am_try -eq 2; then 2594 break 2595 fi 2596 # Just in case. 2597 sleep 1 2598 am_has_slept=yes 2599 done 2600 test "$2" = conftest.file 2601 ) 2602then 2603 # Ok. 2604 : 2605else 2606 as_fn_error $? "newly created file is older than distributed files! 2607Check your system clock" "$LINENO" 5 2608fi 2609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2610$as_echo "yes" >&6; } 2611# If we didn't sleep, we still need to ensure time stamps of config.status and 2612# generated files are strictly newer. 2613am_sleep_pid= 2614if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2615 ( sleep 1 ) & 2616 am_sleep_pid=$! 2617fi 2618 2619rm -f conftest.file 2620 2621test "$program_prefix" != NONE && 2622 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2623# Use a double $ so make ignores it. 2624test "$program_suffix" != NONE && 2625 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2626# Double any \ or $. 2627# By default was `s,x,x', remove it if useless. 2628ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2629program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2630 2631# Expand $ac_aux_dir to an absolute path. 2632am_aux_dir=`cd "$ac_aux_dir" && pwd` 2633 2634if test x"${MISSING+set}" != xset; then 2635 case $am_aux_dir in 2636 *\ * | *\ *) 2637 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2638 *) 2639 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2640 esac 2641fi 2642# Use eval to expand $SHELL 2643if eval "$MISSING --is-lightweight"; then 2644 am_missing_run="$MISSING " 2645else 2646 am_missing_run= 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2648$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2649fi 2650 2651if test x"${install_sh+set}" != xset; then 2652 case $am_aux_dir in 2653 *\ * | *\ *) 2654 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2655 *) 2656 install_sh="\${SHELL} $am_aux_dir/install-sh" 2657 esac 2658fi 2659 2660# Installed binaries are usually stripped using 'strip' when the user 2661# run "make install-strip". However 'strip' might not be the right 2662# tool to use in cross-compilation environments, therefore Automake 2663# will honor the 'STRIP' environment variable to overrule this program. 2664if test "$cross_compiling" != no; then 2665 if test -n "$ac_tool_prefix"; then 2666 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2667set dummy ${ac_tool_prefix}strip; ac_word=$2 2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2669$as_echo_n "checking for $ac_word... " >&6; } 2670if ${ac_cv_prog_STRIP+:} false; then : 2671 $as_echo_n "(cached) " >&6 2672else 2673 if test -n "$STRIP"; then 2674 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2675else 2676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2677for as_dir in $PATH 2678do 2679 IFS=$as_save_IFS 2680 test -z "$as_dir" && as_dir=. 2681 for ac_exec_ext in '' $ac_executable_extensions; do 2682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2683 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2685 break 2 2686 fi 2687done 2688 done 2689IFS=$as_save_IFS 2690 2691fi 2692fi 2693STRIP=$ac_cv_prog_STRIP 2694if test -n "$STRIP"; then 2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2696$as_echo "$STRIP" >&6; } 2697else 2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2699$as_echo "no" >&6; } 2700fi 2701 2702 2703fi 2704if test -z "$ac_cv_prog_STRIP"; then 2705 ac_ct_STRIP=$STRIP 2706 # Extract the first word of "strip", so it can be a program name with args. 2707set dummy strip; ac_word=$2 2708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2709$as_echo_n "checking for $ac_word... " >&6; } 2710if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2711 $as_echo_n "(cached) " >&6 2712else 2713 if test -n "$ac_ct_STRIP"; then 2714 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2715else 2716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2717for as_dir in $PATH 2718do 2719 IFS=$as_save_IFS 2720 test -z "$as_dir" && as_dir=. 2721 for ac_exec_ext in '' $ac_executable_extensions; do 2722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2723 ac_cv_prog_ac_ct_STRIP="strip" 2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2725 break 2 2726 fi 2727done 2728 done 2729IFS=$as_save_IFS 2730 2731fi 2732fi 2733ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2734if test -n "$ac_ct_STRIP"; then 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2736$as_echo "$ac_ct_STRIP" >&6; } 2737else 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2739$as_echo "no" >&6; } 2740fi 2741 2742 if test "x$ac_ct_STRIP" = x; then 2743 STRIP=":" 2744 else 2745 case $cross_compiling:$ac_tool_warned in 2746yes:) 2747{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2748$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2749ac_tool_warned=yes ;; 2750esac 2751 STRIP=$ac_ct_STRIP 2752 fi 2753else 2754 STRIP="$ac_cv_prog_STRIP" 2755fi 2756 2757fi 2758INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2759 2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2761$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2762if test -z "$MKDIR_P"; then 2763 if ${ac_cv_path_mkdir+:} false; then : 2764 $as_echo_n "(cached) " >&6 2765else 2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2767for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2768do 2769 IFS=$as_save_IFS 2770 test -z "$as_dir" && as_dir=. 2771 for ac_prog in mkdir gmkdir; do 2772 for ac_exec_ext in '' $ac_executable_extensions; do 2773 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2774 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2775 'mkdir (GNU coreutils) '* | \ 2776 'mkdir (coreutils) '* | \ 2777 'mkdir (fileutils) '4.1*) 2778 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2779 break 3;; 2780 esac 2781 done 2782 done 2783 done 2784IFS=$as_save_IFS 2785 2786fi 2787 2788 test -d ./--version && rmdir ./--version 2789 if test "${ac_cv_path_mkdir+set}" = set; then 2790 MKDIR_P="$ac_cv_path_mkdir -p" 2791 else 2792 # As a last resort, use the slow shell script. Don't cache a 2793 # value for MKDIR_P within a source directory, because that will 2794 # break other packages using the cache if that directory is 2795 # removed, or if the value is a relative name. 2796 MKDIR_P="$ac_install_sh -d" 2797 fi 2798fi 2799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2800$as_echo "$MKDIR_P" >&6; } 2801 2802for ac_prog in gawk mawk nawk awk 2803do 2804 # Extract the first word of "$ac_prog", so it can be a program name with args. 2805set dummy $ac_prog; ac_word=$2 2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2807$as_echo_n "checking for $ac_word... " >&6; } 2808if ${ac_cv_prog_AWK+:} false; then : 2809 $as_echo_n "(cached) " >&6 2810else 2811 if test -n "$AWK"; then 2812 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2813else 2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2815for as_dir in $PATH 2816do 2817 IFS=$as_save_IFS 2818 test -z "$as_dir" && as_dir=. 2819 for ac_exec_ext in '' $ac_executable_extensions; do 2820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2821 ac_cv_prog_AWK="$ac_prog" 2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2823 break 2 2824 fi 2825done 2826 done 2827IFS=$as_save_IFS 2828 2829fi 2830fi 2831AWK=$ac_cv_prog_AWK 2832if test -n "$AWK"; then 2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2834$as_echo "$AWK" >&6; } 2835else 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2837$as_echo "no" >&6; } 2838fi 2839 2840 2841 test -n "$AWK" && break 2842done 2843 2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2845$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2846set x ${MAKE-make} 2847ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2848if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2849 $as_echo_n "(cached) " >&6 2850else 2851 cat >conftest.make <<\_ACEOF 2852SHELL = /bin/sh 2853all: 2854 @echo '@@@%%%=$(MAKE)=@@@%%%' 2855_ACEOF 2856# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2857case `${MAKE-make} -f conftest.make 2>/dev/null` in 2858 *@@@%%%=?*=@@@%%%*) 2859 eval ac_cv_prog_make_${ac_make}_set=yes;; 2860 *) 2861 eval ac_cv_prog_make_${ac_make}_set=no;; 2862esac 2863rm -f conftest.make 2864fi 2865if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2867$as_echo "yes" >&6; } 2868 SET_MAKE= 2869else 2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2871$as_echo "no" >&6; } 2872 SET_MAKE="MAKE=${MAKE-make}" 2873fi 2874 2875rm -rf .tst 2>/dev/null 2876mkdir .tst 2>/dev/null 2877if test -d .tst; then 2878 am__leading_dot=. 2879else 2880 am__leading_dot=_ 2881fi 2882rmdir .tst 2>/dev/null 2883 2884# Check whether --enable-silent-rules was given. 2885if test "${enable_silent_rules+set}" = set; then : 2886 enableval=$enable_silent_rules; 2887fi 2888 2889case $enable_silent_rules in # ((( 2890 yes) AM_DEFAULT_VERBOSITY=0;; 2891 no) AM_DEFAULT_VERBOSITY=1;; 2892 *) AM_DEFAULT_VERBOSITY=1;; 2893esac 2894am_make=${MAKE-make} 2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2896$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2897if ${am_cv_make_support_nested_variables+:} false; then : 2898 $as_echo_n "(cached) " >&6 2899else 2900 if $as_echo 'TRUE=$(BAR$(V)) 2901BAR0=false 2902BAR1=true 2903V=1 2904am__doit: 2905 @$(TRUE) 2906.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2907 am_cv_make_support_nested_variables=yes 2908else 2909 am_cv_make_support_nested_variables=no 2910fi 2911fi 2912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2913$as_echo "$am_cv_make_support_nested_variables" >&6; } 2914if test $am_cv_make_support_nested_variables = yes; then 2915 AM_V='$(V)' 2916 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2917else 2918 AM_V=$AM_DEFAULT_VERBOSITY 2919 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2920fi 2921AM_BACKSLASH='\' 2922 2923if test "`cd $srcdir && pwd`" != "`pwd`"; then 2924 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2925 # is not polluted with repeated "-I." 2926 am__isrc=' -I$(srcdir)' 2927 # test to see if srcdir already configured 2928 if test -f $srcdir/config.status; then 2929 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2930 fi 2931fi 2932 2933# test whether we have cygpath 2934if test -z "$CYGPATH_W"; then 2935 if (cygpath --version) >/dev/null 2>/dev/null; then 2936 CYGPATH_W='cygpath -w' 2937 else 2938 CYGPATH_W=echo 2939 fi 2940fi 2941 2942 2943# Define the identity of the package. 2944 PACKAGE='libemf' 2945 VERSION='1.0.13' 2946 2947 2948cat >>confdefs.h <<_ACEOF 2949#define PACKAGE "$PACKAGE" 2950_ACEOF 2951 2952 2953cat >>confdefs.h <<_ACEOF 2954#define VERSION "$VERSION" 2955_ACEOF 2956 2957# Some tools Automake needs. 2958 2959ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2960 2961 2962AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2963 2964 2965AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2966 2967 2968AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2969 2970 2971MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2972 2973# For better backward compatibility. To be removed once Automake 1.9.x 2974# dies out for good. For more background, see: 2975# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2976# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2977mkdir_p='$(MKDIR_P)' 2978 2979# We need awk for the "check" target (and possibly the TAP driver). The 2980# system "awk" is bad on some platforms. 2981# Always define AMTAR for backward compatibility. Yes, it's still used 2982# in the wild :-( We should find a proper way to deprecate it ... 2983AMTAR='$${TAR-tar}' 2984 2985 2986# We'll loop over all known methods to create a tar archive until one works. 2987_am_tools='gnutar pax cpio none' 2988 2989am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2990 2991 2992 2993 2994 2995 2996# POSIX will say in a future version that running "rm -f" with no argument 2997# is OK; and we want to be able to make that assumption in our Makefile 2998# recipes. So use an aggressive probe to check that the usage we want is 2999# actually supported "in the wild" to an acceptable degree. 3000# See automake bug#10828. 3001# To make any issue more visible, cause the running configure to be aborted 3002# by default if the 'rm' program in use doesn't match our expectations; the 3003# user can still override this though. 3004if rm -f && rm -fr && rm -rf; then : OK; else 3005 cat >&2 <<'END' 3006Oops! 3007 3008Your 'rm' program seems unable to run without file operands specified 3009on the command line, even when the '-f' option is present. This is contrary 3010to the behaviour of most rm programs out there, and not conforming with 3011the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3012 3013Please tell bug-automake@gnu.org about your system, including the value 3014of your $PATH and any error possibly output before this message. This 3015can help us improve future automake versions. 3016 3017END 3018 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3019 echo 'Configuration will proceed anyway, since you have set the' >&2 3020 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3021 echo >&2 3022 else 3023 cat >&2 <<'END' 3024Aborting the configuration process, to ensure you take notice of the issue. 3025 3026You can download and install GNU coreutils to get an 'rm' implementation 3027that behaves properly: <http://www.gnu.org/software/coreutils/>. 3028 3029If you want to complete the configuration process using your problematic 3030'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3031to "yes", and re-run configure. 3032 3033END 3034 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3035 fi 3036fi 3037 3038 3039# Checks for programs. 3040ac_ext=cpp 3041ac_cpp='$CXXCPP $CPPFLAGS' 3042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3045if test -z "$CXX"; then 3046 if test -n "$CCC"; then 3047 CXX=$CCC 3048 else 3049 if test -n "$ac_tool_prefix"; then 3050 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3051 do 3052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3053set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3055$as_echo_n "checking for $ac_word... " >&6; } 3056if ${ac_cv_prog_CXX+:} false; then : 3057 $as_echo_n "(cached) " >&6 3058else 3059 if test -n "$CXX"; then 3060 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3061else 3062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3063for as_dir in $PATH 3064do 3065 IFS=$as_save_IFS 3066 test -z "$as_dir" && as_dir=. 3067 for ac_exec_ext in '' $ac_executable_extensions; do 3068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3069 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3071 break 2 3072 fi 3073done 3074 done 3075IFS=$as_save_IFS 3076 3077fi 3078fi 3079CXX=$ac_cv_prog_CXX 3080if test -n "$CXX"; then 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3082$as_echo "$CXX" >&6; } 3083else 3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3085$as_echo "no" >&6; } 3086fi 3087 3088 3089 test -n "$CXX" && break 3090 done 3091fi 3092if test -z "$CXX"; then 3093 ac_ct_CXX=$CXX 3094 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3095do 3096 # Extract the first word of "$ac_prog", so it can be a program name with args. 3097set dummy $ac_prog; ac_word=$2 3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3099$as_echo_n "checking for $ac_word... " >&6; } 3100if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3101 $as_echo_n "(cached) " >&6 3102else 3103 if test -n "$ac_ct_CXX"; then 3104 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3105else 3106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3107for as_dir in $PATH 3108do 3109 IFS=$as_save_IFS 3110 test -z "$as_dir" && as_dir=. 3111 for ac_exec_ext in '' $ac_executable_extensions; do 3112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3113 ac_cv_prog_ac_ct_CXX="$ac_prog" 3114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3115 break 2 3116 fi 3117done 3118 done 3119IFS=$as_save_IFS 3120 3121fi 3122fi 3123ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3124if test -n "$ac_ct_CXX"; then 3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 3126$as_echo "$ac_ct_CXX" >&6; } 3127else 3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3129$as_echo "no" >&6; } 3130fi 3131 3132 3133 test -n "$ac_ct_CXX" && break 3134done 3135 3136 if test "x$ac_ct_CXX" = x; then 3137 CXX="g++" 3138 else 3139 case $cross_compiling:$ac_tool_warned in 3140yes:) 3141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3143ac_tool_warned=yes ;; 3144esac 3145 CXX=$ac_ct_CXX 3146 fi 3147fi 3148 3149 fi 3150fi 3151# Provide some information about the compiler. 3152$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3153set X $ac_compile 3154ac_compiler=$2 3155for ac_option in --version -v -V -qversion; do 3156 { { ac_try="$ac_compiler $ac_option >&5" 3157case "(($ac_try" in 3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3159 *) ac_try_echo=$ac_try;; 3160esac 3161eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3162$as_echo "$ac_try_echo"; } >&5 3163 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3164 ac_status=$? 3165 if test -s conftest.err; then 3166 sed '10a\ 3167... rest of stderr output deleted ... 3168 10q' conftest.err >conftest.er1 3169 cat conftest.er1 >&5 3170 fi 3171 rm -f conftest.er1 conftest.err 3172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3173 test $ac_status = 0; } 3174done 3175 3176cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3177/* end confdefs.h. */ 3178 3179int 3180main () 3181{ 3182 3183 ; 3184 return 0; 3185} 3186_ACEOF 3187ac_clean_files_save=$ac_clean_files 3188ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3189# Try to create an executable without -o first, disregard a.out. 3190# It will help us diagnose broken compilers, and finding out an intuition 3191# of exeext. 3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 3193$as_echo_n "checking whether the C++ compiler works... " >&6; } 3194ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3195 3196# The possible output files: 3197ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3198 3199ac_rmfiles= 3200for ac_file in $ac_files 3201do 3202 case $ac_file in 3203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3204 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3205 esac 3206done 3207rm -f $ac_rmfiles 3208 3209if { { ac_try="$ac_link_default" 3210case "(($ac_try" in 3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3212 *) ac_try_echo=$ac_try;; 3213esac 3214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3215$as_echo "$ac_try_echo"; } >&5 3216 (eval "$ac_link_default") 2>&5 3217 ac_status=$? 3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3219 test $ac_status = 0; }; then : 3220 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3221# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3222# in a Makefile. We should not override ac_cv_exeext if it was cached, 3223# so that the user can short-circuit this test for compilers unknown to 3224# Autoconf. 3225for ac_file in $ac_files '' 3226do 3227 test -f "$ac_file" || continue 3228 case $ac_file in 3229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3230 ;; 3231 [ab].out ) 3232 # We found the default executable, but exeext='' is most 3233 # certainly right. 3234 break;; 3235 *.* ) 3236 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3237 then :; else 3238 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3239 fi 3240 # We set ac_cv_exeext here because the later test for it is not 3241 # safe: cross compilers may not add the suffix if given an `-o' 3242 # argument, so we may need to know it at that point already. 3243 # Even if this section looks crufty: it has the advantage of 3244 # actually working. 3245 break;; 3246 * ) 3247 break;; 3248 esac 3249done 3250test "$ac_cv_exeext" = no && ac_cv_exeext= 3251 3252else 3253 ac_file='' 3254fi 3255if test -z "$ac_file"; then : 3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3257$as_echo "no" >&6; } 3258$as_echo "$as_me: failed program was:" >&5 3259sed 's/^/| /' conftest.$ac_ext >&5 3260 3261{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3263as_fn_error 77 "C++ compiler cannot create executables 3264See \`config.log' for more details" "$LINENO" 5; } 3265else 3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3267$as_echo "yes" >&6; } 3268fi 3269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 3270$as_echo_n "checking for C++ compiler default output file name... " >&6; } 3271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3272$as_echo "$ac_file" >&6; } 3273ac_exeext=$ac_cv_exeext 3274 3275rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3276ac_clean_files=$ac_clean_files_save 3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3278$as_echo_n "checking for suffix of executables... " >&6; } 3279if { { ac_try="$ac_link" 3280case "(($ac_try" in 3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3282 *) ac_try_echo=$ac_try;; 3283esac 3284eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3285$as_echo "$ac_try_echo"; } >&5 3286 (eval "$ac_link") 2>&5 3287 ac_status=$? 3288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3289 test $ac_status = 0; }; then : 3290 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3291# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3292# work properly (i.e., refer to `conftest.exe'), while it won't with 3293# `rm'. 3294for ac_file in conftest.exe conftest conftest.*; do 3295 test -f "$ac_file" || continue 3296 case $ac_file in 3297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3298 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3299 break;; 3300 * ) break;; 3301 esac 3302done 3303else 3304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3306as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3307See \`config.log' for more details" "$LINENO" 5; } 3308fi 3309rm -f conftest conftest$ac_cv_exeext 3310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3311$as_echo "$ac_cv_exeext" >&6; } 3312 3313rm -f conftest.$ac_ext 3314EXEEXT=$ac_cv_exeext 3315ac_exeext=$EXEEXT 3316cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3317/* end confdefs.h. */ 3318#include <stdio.h> 3319int 3320main () 3321{ 3322FILE *f = fopen ("conftest.out", "w"); 3323 return ferror (f) || fclose (f) != 0; 3324 3325 ; 3326 return 0; 3327} 3328_ACEOF 3329ac_clean_files="$ac_clean_files conftest.out" 3330# Check that the compiler produces executables we can run. If not, either 3331# the compiler is broken, or we cross compile. 3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3333$as_echo_n "checking whether we are cross compiling... " >&6; } 3334if test "$cross_compiling" != yes; then 3335 { { ac_try="$ac_link" 3336case "(($ac_try" in 3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3338 *) ac_try_echo=$ac_try;; 3339esac 3340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3341$as_echo "$ac_try_echo"; } >&5 3342 (eval "$ac_link") 2>&5 3343 ac_status=$? 3344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3345 test $ac_status = 0; } 3346 if { ac_try='./conftest$ac_cv_exeext' 3347 { { case "(($ac_try" in 3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3349 *) ac_try_echo=$ac_try;; 3350esac 3351eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3352$as_echo "$ac_try_echo"; } >&5 3353 (eval "$ac_try") 2>&5 3354 ac_status=$? 3355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3356 test $ac_status = 0; }; }; then 3357 cross_compiling=no 3358 else 3359 if test "$cross_compiling" = maybe; then 3360 cross_compiling=yes 3361 else 3362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3364as_fn_error $? "cannot run C++ compiled programs. 3365If you meant to cross compile, use \`--host'. 3366See \`config.log' for more details" "$LINENO" 5; } 3367 fi 3368 fi 3369fi 3370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3371$as_echo "$cross_compiling" >&6; } 3372 3373rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3374ac_clean_files=$ac_clean_files_save 3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3376$as_echo_n "checking for suffix of object files... " >&6; } 3377if ${ac_cv_objext+:} false; then : 3378 $as_echo_n "(cached) " >&6 3379else 3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3381/* end confdefs.h. */ 3382 3383int 3384main () 3385{ 3386 3387 ; 3388 return 0; 3389} 3390_ACEOF 3391rm -f conftest.o conftest.obj 3392if { { ac_try="$ac_compile" 3393case "(($ac_try" in 3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3395 *) ac_try_echo=$ac_try;; 3396esac 3397eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3398$as_echo "$ac_try_echo"; } >&5 3399 (eval "$ac_compile") 2>&5 3400 ac_status=$? 3401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3402 test $ac_status = 0; }; then : 3403 for ac_file in conftest.o conftest.obj conftest.*; do 3404 test -f "$ac_file" || continue; 3405 case $ac_file in 3406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3407 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3408 break;; 3409 esac 3410done 3411else 3412 $as_echo "$as_me: failed program was:" >&5 3413sed 's/^/| /' conftest.$ac_ext >&5 3414 3415{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3416$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3417as_fn_error $? "cannot compute suffix of object files: cannot compile 3418See \`config.log' for more details" "$LINENO" 5; } 3419fi 3420rm -f conftest.$ac_cv_objext conftest.$ac_ext 3421fi 3422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3423$as_echo "$ac_cv_objext" >&6; } 3424OBJEXT=$ac_cv_objext 3425ac_objext=$OBJEXT 3426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3427$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3428if ${ac_cv_cxx_compiler_gnu+:} false; then : 3429 $as_echo_n "(cached) " >&6 3430else 3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3432/* end confdefs.h. */ 3433 3434int 3435main () 3436{ 3437#ifndef __GNUC__ 3438 choke me 3439#endif 3440 3441 ; 3442 return 0; 3443} 3444_ACEOF 3445if ac_fn_cxx_try_compile "$LINENO"; then : 3446 ac_compiler_gnu=yes 3447else 3448 ac_compiler_gnu=no 3449fi 3450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3451ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3452 3453fi 3454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3455$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3456if test $ac_compiler_gnu = yes; then 3457 GXX=yes 3458else 3459 GXX= 3460fi 3461ac_test_CXXFLAGS=${CXXFLAGS+set} 3462ac_save_CXXFLAGS=$CXXFLAGS 3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3464$as_echo_n "checking whether $CXX accepts -g... " >&6; } 3465if ${ac_cv_prog_cxx_g+:} false; then : 3466 $as_echo_n "(cached) " >&6 3467else 3468 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3469 ac_cxx_werror_flag=yes 3470 ac_cv_prog_cxx_g=no 3471 CXXFLAGS="-g" 3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3473/* end confdefs.h. */ 3474 3475int 3476main () 3477{ 3478 3479 ; 3480 return 0; 3481} 3482_ACEOF 3483if ac_fn_cxx_try_compile "$LINENO"; then : 3484 ac_cv_prog_cxx_g=yes 3485else 3486 CXXFLAGS="" 3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3488/* end confdefs.h. */ 3489 3490int 3491main () 3492{ 3493 3494 ; 3495 return 0; 3496} 3497_ACEOF 3498if ac_fn_cxx_try_compile "$LINENO"; then : 3499 3500else 3501 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3502 CXXFLAGS="-g" 3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3504/* end confdefs.h. */ 3505 3506int 3507main () 3508{ 3509 3510 ; 3511 return 0; 3512} 3513_ACEOF 3514if ac_fn_cxx_try_compile "$LINENO"; then : 3515 ac_cv_prog_cxx_g=yes 3516fi 3517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3518fi 3519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3520fi 3521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3522 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3523fi 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3525$as_echo "$ac_cv_prog_cxx_g" >&6; } 3526if test "$ac_test_CXXFLAGS" = set; then 3527 CXXFLAGS=$ac_save_CXXFLAGS 3528elif test $ac_cv_prog_cxx_g = yes; then 3529 if test "$GXX" = yes; then 3530 CXXFLAGS="-g -O2" 3531 else 3532 CXXFLAGS="-g" 3533 fi 3534else 3535 if test "$GXX" = yes; then 3536 CXXFLAGS="-O2" 3537 else 3538 CXXFLAGS= 3539 fi 3540fi 3541ac_ext=c 3542ac_cpp='$CPP $CPPFLAGS' 3543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3545ac_compiler_gnu=$ac_cv_c_compiler_gnu 3546DEPDIR="${am__leading_dot}deps" 3547 3548ac_config_commands="$ac_config_commands depfiles" 3549 3550 3551am_make=${MAKE-make} 3552cat > confinc << 'END' 3553am__doit: 3554 @echo this is the am__doit target 3555.PHONY: am__doit 3556END 3557# If we don't find an include directive, just comment out the code. 3558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3559$as_echo_n "checking for style of include used by $am_make... " >&6; } 3560am__include="#" 3561am__quote= 3562_am_result=none 3563# First try GNU make style include. 3564echo "include confinc" > confmf 3565# Ignore all kinds of additional output from 'make'. 3566case `$am_make -s -f confmf 2> /dev/null` in #( 3567*the\ am__doit\ target*) 3568 am__include=include 3569 am__quote= 3570 _am_result=GNU 3571 ;; 3572esac 3573# Now try BSD make style include. 3574if test "$am__include" = "#"; then 3575 echo '.include "confinc"' > confmf 3576 case `$am_make -s -f confmf 2> /dev/null` in #( 3577 *the\ am__doit\ target*) 3578 am__include=.include 3579 am__quote="\"" 3580 _am_result=BSD 3581 ;; 3582 esac 3583fi 3584 3585 3586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3587$as_echo "$_am_result" >&6; } 3588rm -f confinc confmf 3589 3590# Check whether --enable-dependency-tracking was given. 3591if test "${enable_dependency_tracking+set}" = set; then : 3592 enableval=$enable_dependency_tracking; 3593fi 3594 3595if test "x$enable_dependency_tracking" != xno; then 3596 am_depcomp="$ac_aux_dir/depcomp" 3597 AMDEPBACKSLASH='\' 3598 am__nodep='_no' 3599fi 3600 if test "x$enable_dependency_tracking" != xno; then 3601 AMDEP_TRUE= 3602 AMDEP_FALSE='#' 3603else 3604 AMDEP_TRUE='#' 3605 AMDEP_FALSE= 3606fi 3607 3608 3609 3610depcc="$CXX" am_compiler_list= 3611 3612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3613$as_echo_n "checking dependency style of $depcc... " >&6; } 3614if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 3615 $as_echo_n "(cached) " >&6 3616else 3617 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3618 # We make a subdir and do the tests there. Otherwise we can end up 3619 # making bogus files that we don't know about and never remove. For 3620 # instance it was reported that on HP-UX the gcc test will end up 3621 # making a dummy file named 'D' -- because '-MD' means "put the output 3622 # in D". 3623 rm -rf conftest.dir 3624 mkdir conftest.dir 3625 # Copy depcomp to subdir because otherwise we won't find it if we're 3626 # using a relative directory. 3627 cp "$am_depcomp" conftest.dir 3628 cd conftest.dir 3629 # We will build objects and dependencies in a subdirectory because 3630 # it helps to detect inapplicable dependency modes. For instance 3631 # both Tru64's cc and ICC support -MD to output dependencies as a 3632 # side effect of compilation, but ICC will put the dependencies in 3633 # the current directory while Tru64 will put them in the object 3634 # directory. 3635 mkdir sub 3636 3637 am_cv_CXX_dependencies_compiler_type=none 3638 if test "$am_compiler_list" = ""; then 3639 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3640 fi 3641 am__universal=false 3642 case " $depcc " in #( 3643 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3644 esac 3645 3646 for depmode in $am_compiler_list; do 3647 # Setup a source with many dependencies, because some compilers 3648 # like to wrap large dependency lists on column 80 (with \), and 3649 # we should not choose a depcomp mode which is confused by this. 3650 # 3651 # We need to recreate these files for each test, as the compiler may 3652 # overwrite some of them when testing with obscure command lines. 3653 # This happens at least with the AIX C compiler. 3654 : > sub/conftest.c 3655 for i in 1 2 3 4 5 6; do 3656 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3657 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3658 # Solaris 10 /bin/sh. 3659 echo '/* dummy */' > sub/conftst$i.h 3660 done 3661 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3662 3663 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3664 # mode. It turns out that the SunPro C++ compiler does not properly 3665 # handle '-M -o', and we need to detect this. Also, some Intel 3666 # versions had trouble with output in subdirs. 3667 am__obj=sub/conftest.${OBJEXT-o} 3668 am__minus_obj="-o $am__obj" 3669 case $depmode in 3670 gcc) 3671 # This depmode causes a compiler race in universal mode. 3672 test "$am__universal" = false || continue 3673 ;; 3674 nosideeffect) 3675 # After this tag, mechanisms are not by side-effect, so they'll 3676 # only be used when explicitly requested. 3677 if test "x$enable_dependency_tracking" = xyes; then 3678 continue 3679 else 3680 break 3681 fi 3682 ;; 3683 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3684 # This compiler won't grok '-c -o', but also, the minuso test has 3685 # not run yet. These depmodes are late enough in the game, and 3686 # so weak that their functioning should not be impacted. 3687 am__obj=conftest.${OBJEXT-o} 3688 am__minus_obj= 3689 ;; 3690 none) break ;; 3691 esac 3692 if depmode=$depmode \ 3693 source=sub/conftest.c object=$am__obj \ 3694 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3695 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3696 >/dev/null 2>conftest.err && 3697 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3698 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3699 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3700 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3701 # icc doesn't choke on unknown options, it will just issue warnings 3702 # or remarks (even with -Werror). So we grep stderr for any message 3703 # that says an option was ignored or not supported. 3704 # When given -MP, icc 7.0 and 7.1 complain thusly: 3705 # icc: Command line warning: ignoring option '-M'; no argument required 3706 # The diagnosis changed in icc 8.0: 3707 # icc: Command line remark: option '-MP' not supported 3708 if (grep 'ignoring option' conftest.err || 3709 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3710 am_cv_CXX_dependencies_compiler_type=$depmode 3711 break 3712 fi 3713 fi 3714 done 3715 3716 cd .. 3717 rm -rf conftest.dir 3718else 3719 am_cv_CXX_dependencies_compiler_type=none 3720fi 3721 3722fi 3723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 3724$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 3725CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3726 3727 if 3728 test "x$enable_dependency_tracking" != xno \ 3729 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3730 am__fastdepCXX_TRUE= 3731 am__fastdepCXX_FALSE='#' 3732else 3733 am__fastdepCXX_TRUE='#' 3734 am__fastdepCXX_FALSE= 3735fi 3736 3737 3738ac_ext=c 3739ac_cpp='$CPP $CPPFLAGS' 3740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3742ac_compiler_gnu=$ac_cv_c_compiler_gnu 3743if test -n "$ac_tool_prefix"; then 3744 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3745set dummy ${ac_tool_prefix}gcc; ac_word=$2 3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3747$as_echo_n "checking for $ac_word... " >&6; } 3748if ${ac_cv_prog_CC+:} false; then : 3749 $as_echo_n "(cached) " >&6 3750else 3751 if test -n "$CC"; then 3752 ac_cv_prog_CC="$CC" # Let the user override the test. 3753else 3754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3755for as_dir in $PATH 3756do 3757 IFS=$as_save_IFS 3758 test -z "$as_dir" && as_dir=. 3759 for ac_exec_ext in '' $ac_executable_extensions; do 3760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3761 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3763 break 2 3764 fi 3765done 3766 done 3767IFS=$as_save_IFS 3768 3769fi 3770fi 3771CC=$ac_cv_prog_CC 3772if test -n "$CC"; then 3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3774$as_echo "$CC" >&6; } 3775else 3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3777$as_echo "no" >&6; } 3778fi 3779 3780 3781fi 3782if test -z "$ac_cv_prog_CC"; then 3783 ac_ct_CC=$CC 3784 # Extract the first word of "gcc", so it can be a program name with args. 3785set dummy gcc; ac_word=$2 3786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3787$as_echo_n "checking for $ac_word... " >&6; } 3788if ${ac_cv_prog_ac_ct_CC+:} false; then : 3789 $as_echo_n "(cached) " >&6 3790else 3791 if test -n "$ac_ct_CC"; then 3792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3793else 3794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3795for as_dir in $PATH 3796do 3797 IFS=$as_save_IFS 3798 test -z "$as_dir" && as_dir=. 3799 for ac_exec_ext in '' $ac_executable_extensions; do 3800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3801 ac_cv_prog_ac_ct_CC="gcc" 3802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3803 break 2 3804 fi 3805done 3806 done 3807IFS=$as_save_IFS 3808 3809fi 3810fi 3811ac_ct_CC=$ac_cv_prog_ac_ct_CC 3812if test -n "$ac_ct_CC"; then 3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3814$as_echo "$ac_ct_CC" >&6; } 3815else 3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3817$as_echo "no" >&6; } 3818fi 3819 3820 if test "x$ac_ct_CC" = x; then 3821 CC="" 3822 else 3823 case $cross_compiling:$ac_tool_warned in 3824yes:) 3825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3827ac_tool_warned=yes ;; 3828esac 3829 CC=$ac_ct_CC 3830 fi 3831else 3832 CC="$ac_cv_prog_CC" 3833fi 3834 3835if test -z "$CC"; then 3836 if test -n "$ac_tool_prefix"; then 3837 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3838set dummy ${ac_tool_prefix}cc; ac_word=$2 3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3840$as_echo_n "checking for $ac_word... " >&6; } 3841if ${ac_cv_prog_CC+:} false; then : 3842 $as_echo_n "(cached) " >&6 3843else 3844 if test -n "$CC"; then 3845 ac_cv_prog_CC="$CC" # Let the user override the test. 3846else 3847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3848for as_dir in $PATH 3849do 3850 IFS=$as_save_IFS 3851 test -z "$as_dir" && as_dir=. 3852 for ac_exec_ext in '' $ac_executable_extensions; do 3853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3854 ac_cv_prog_CC="${ac_tool_prefix}cc" 3855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3856 break 2 3857 fi 3858done 3859 done 3860IFS=$as_save_IFS 3861 3862fi 3863fi 3864CC=$ac_cv_prog_CC 3865if test -n "$CC"; then 3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3867$as_echo "$CC" >&6; } 3868else 3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3870$as_echo "no" >&6; } 3871fi 3872 3873 3874 fi 3875fi 3876if test -z "$CC"; then 3877 # Extract the first word of "cc", so it can be a program name with args. 3878set dummy cc; ac_word=$2 3879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3880$as_echo_n "checking for $ac_word... " >&6; } 3881if ${ac_cv_prog_CC+:} false; then : 3882 $as_echo_n "(cached) " >&6 3883else 3884 if test -n "$CC"; then 3885 ac_cv_prog_CC="$CC" # Let the user override the test. 3886else 3887 ac_prog_rejected=no 3888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3889for as_dir in $PATH 3890do 3891 IFS=$as_save_IFS 3892 test -z "$as_dir" && as_dir=. 3893 for ac_exec_ext in '' $ac_executable_extensions; do 3894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3895 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3896 ac_prog_rejected=yes 3897 continue 3898 fi 3899 ac_cv_prog_CC="cc" 3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3901 break 2 3902 fi 3903done 3904 done 3905IFS=$as_save_IFS 3906 3907if test $ac_prog_rejected = yes; then 3908 # We found a bogon in the path, so make sure we never use it. 3909 set dummy $ac_cv_prog_CC 3910 shift 3911 if test $# != 0; then 3912 # We chose a different compiler from the bogus one. 3913 # However, it has the same basename, so the bogon will be chosen 3914 # first if we set CC to just the basename; use the full file name. 3915 shift 3916 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3917 fi 3918fi 3919fi 3920fi 3921CC=$ac_cv_prog_CC 3922if test -n "$CC"; then 3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3924$as_echo "$CC" >&6; } 3925else 3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3927$as_echo "no" >&6; } 3928fi 3929 3930 3931fi 3932if test -z "$CC"; then 3933 if test -n "$ac_tool_prefix"; then 3934 for ac_prog in cl.exe 3935 do 3936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3937set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3939$as_echo_n "checking for $ac_word... " >&6; } 3940if ${ac_cv_prog_CC+:} false; then : 3941 $as_echo_n "(cached) " >&6 3942else 3943 if test -n "$CC"; then 3944 ac_cv_prog_CC="$CC" # Let the user override the test. 3945else 3946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3947for as_dir in $PATH 3948do 3949 IFS=$as_save_IFS 3950 test -z "$as_dir" && as_dir=. 3951 for ac_exec_ext in '' $ac_executable_extensions; do 3952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3953 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3955 break 2 3956 fi 3957done 3958 done 3959IFS=$as_save_IFS 3960 3961fi 3962fi 3963CC=$ac_cv_prog_CC 3964if test -n "$CC"; then 3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3966$as_echo "$CC" >&6; } 3967else 3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3969$as_echo "no" >&6; } 3970fi 3971 3972 3973 test -n "$CC" && break 3974 done 3975fi 3976if test -z "$CC"; then 3977 ac_ct_CC=$CC 3978 for ac_prog in cl.exe 3979do 3980 # Extract the first word of "$ac_prog", so it can be a program name with args. 3981set dummy $ac_prog; ac_word=$2 3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3983$as_echo_n "checking for $ac_word... " >&6; } 3984if ${ac_cv_prog_ac_ct_CC+:} false; then : 3985 $as_echo_n "(cached) " >&6 3986else 3987 if test -n "$ac_ct_CC"; then 3988 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3989else 3990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3991for as_dir in $PATH 3992do 3993 IFS=$as_save_IFS 3994 test -z "$as_dir" && as_dir=. 3995 for ac_exec_ext in '' $ac_executable_extensions; do 3996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3997 ac_cv_prog_ac_ct_CC="$ac_prog" 3998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3999 break 2 4000 fi 4001done 4002 done 4003IFS=$as_save_IFS 4004 4005fi 4006fi 4007ac_ct_CC=$ac_cv_prog_ac_ct_CC 4008if test -n "$ac_ct_CC"; then 4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4010$as_echo "$ac_ct_CC" >&6; } 4011else 4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4013$as_echo "no" >&6; } 4014fi 4015 4016 4017 test -n "$ac_ct_CC" && break 4018done 4019 4020 if test "x$ac_ct_CC" = x; then 4021 CC="" 4022 else 4023 case $cross_compiling:$ac_tool_warned in 4024yes:) 4025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4027ac_tool_warned=yes ;; 4028esac 4029 CC=$ac_ct_CC 4030 fi 4031fi 4032 4033fi 4034 4035 4036test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4038as_fn_error $? "no acceptable C compiler found in \$PATH 4039See \`config.log' for more details" "$LINENO" 5; } 4040 4041# Provide some information about the compiler. 4042$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4043set X $ac_compile 4044ac_compiler=$2 4045for ac_option in --version -v -V -qversion; do 4046 { { ac_try="$ac_compiler $ac_option >&5" 4047case "(($ac_try" in 4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4049 *) ac_try_echo=$ac_try;; 4050esac 4051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4052$as_echo "$ac_try_echo"; } >&5 4053 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4054 ac_status=$? 4055 if test -s conftest.err; then 4056 sed '10a\ 4057... rest of stderr output deleted ... 4058 10q' conftest.err >conftest.er1 4059 cat conftest.er1 >&5 4060 fi 4061 rm -f conftest.er1 conftest.err 4062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4063 test $ac_status = 0; } 4064done 4065 4066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4067$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4068if ${ac_cv_c_compiler_gnu+:} false; then : 4069 $as_echo_n "(cached) " >&6 4070else 4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4072/* end confdefs.h. */ 4073 4074int 4075main () 4076{ 4077#ifndef __GNUC__ 4078 choke me 4079#endif 4080 4081 ; 4082 return 0; 4083} 4084_ACEOF 4085if ac_fn_c_try_compile "$LINENO"; then : 4086 ac_compiler_gnu=yes 4087else 4088 ac_compiler_gnu=no 4089fi 4090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4091ac_cv_c_compiler_gnu=$ac_compiler_gnu 4092 4093fi 4094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4095$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4096if test $ac_compiler_gnu = yes; then 4097 GCC=yes 4098else 4099 GCC= 4100fi 4101ac_test_CFLAGS=${CFLAGS+set} 4102ac_save_CFLAGS=$CFLAGS 4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4104$as_echo_n "checking whether $CC accepts -g... " >&6; } 4105if ${ac_cv_prog_cc_g+:} false; then : 4106 $as_echo_n "(cached) " >&6 4107else 4108 ac_save_c_werror_flag=$ac_c_werror_flag 4109 ac_c_werror_flag=yes 4110 ac_cv_prog_cc_g=no 4111 CFLAGS="-g" 4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4113/* end confdefs.h. */ 4114 4115int 4116main () 4117{ 4118 4119 ; 4120 return 0; 4121} 4122_ACEOF 4123if ac_fn_c_try_compile "$LINENO"; then : 4124 ac_cv_prog_cc_g=yes 4125else 4126 CFLAGS="" 4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4128/* end confdefs.h. */ 4129 4130int 4131main () 4132{ 4133 4134 ; 4135 return 0; 4136} 4137_ACEOF 4138if ac_fn_c_try_compile "$LINENO"; then : 4139 4140else 4141 ac_c_werror_flag=$ac_save_c_werror_flag 4142 CFLAGS="-g" 4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4144/* end confdefs.h. */ 4145 4146int 4147main () 4148{ 4149 4150 ; 4151 return 0; 4152} 4153_ACEOF 4154if ac_fn_c_try_compile "$LINENO"; then : 4155 ac_cv_prog_cc_g=yes 4156fi 4157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4158fi 4159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4160fi 4161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4162 ac_c_werror_flag=$ac_save_c_werror_flag 4163fi 4164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4165$as_echo "$ac_cv_prog_cc_g" >&6; } 4166if test "$ac_test_CFLAGS" = set; then 4167 CFLAGS=$ac_save_CFLAGS 4168elif test $ac_cv_prog_cc_g = yes; then 4169 if test "$GCC" = yes; then 4170 CFLAGS="-g -O2" 4171 else 4172 CFLAGS="-g" 4173 fi 4174else 4175 if test "$GCC" = yes; then 4176 CFLAGS="-O2" 4177 else 4178 CFLAGS= 4179 fi 4180fi 4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4182$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4183if ${ac_cv_prog_cc_c89+:} false; then : 4184 $as_echo_n "(cached) " >&6 4185else 4186 ac_cv_prog_cc_c89=no 4187ac_save_CC=$CC 4188cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4189/* end confdefs.h. */ 4190#include <stdarg.h> 4191#include <stdio.h> 4192struct stat; 4193/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4194struct buf { int x; }; 4195FILE * (*rcsopen) (struct buf *, struct stat *, int); 4196static char *e (p, i) 4197 char **p; 4198 int i; 4199{ 4200 return p[i]; 4201} 4202static char *f (char * (*g) (char **, int), char **p, ...) 4203{ 4204 char *s; 4205 va_list v; 4206 va_start (v,p); 4207 s = g (p, va_arg (v,int)); 4208 va_end (v); 4209 return s; 4210} 4211 4212/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4213 function prototypes and stuff, but not '\xHH' hex character constants. 4214 These don't provoke an error unfortunately, instead are silently treated 4215 as 'x'. The following induces an error, until -std is added to get 4216 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4217 array size at least. It's necessary to write '\x00'==0 to get something 4218 that's true only with -std. */ 4219int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4220 4221/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4222 inside strings and character constants. */ 4223#define FOO(x) 'x' 4224int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4225 4226int test (int i, double x); 4227struct s1 {int (*f) (int a);}; 4228struct s2 {int (*f) (double a);}; 4229int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4230int argc; 4231char **argv; 4232int 4233main () 4234{ 4235return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4236 ; 4237 return 0; 4238} 4239_ACEOF 4240for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4241 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4242do 4243 CC="$ac_save_CC $ac_arg" 4244 if ac_fn_c_try_compile "$LINENO"; then : 4245 ac_cv_prog_cc_c89=$ac_arg 4246fi 4247rm -f core conftest.err conftest.$ac_objext 4248 test "x$ac_cv_prog_cc_c89" != "xno" && break 4249done 4250rm -f conftest.$ac_ext 4251CC=$ac_save_CC 4252 4253fi 4254# AC_CACHE_VAL 4255case "x$ac_cv_prog_cc_c89" in 4256 x) 4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4258$as_echo "none needed" >&6; } ;; 4259 xno) 4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4261$as_echo "unsupported" >&6; } ;; 4262 *) 4263 CC="$CC $ac_cv_prog_cc_c89" 4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4265$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4266esac 4267if test "x$ac_cv_prog_cc_c89" != xno; then : 4268 4269fi 4270 4271ac_ext=c 4272ac_cpp='$CPP $CPPFLAGS' 4273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4275ac_compiler_gnu=$ac_cv_c_compiler_gnu 4276 4277ac_ext=c 4278ac_cpp='$CPP $CPPFLAGS' 4279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4281ac_compiler_gnu=$ac_cv_c_compiler_gnu 4282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4283$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4284if ${am_cv_prog_cc_c_o+:} false; then : 4285 $as_echo_n "(cached) " >&6 4286else 4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4288/* end confdefs.h. */ 4289 4290int 4291main () 4292{ 4293 4294 ; 4295 return 0; 4296} 4297_ACEOF 4298 # Make sure it works both with $CC and with simple cc. 4299 # Following AC_PROG_CC_C_O, we do the test twice because some 4300 # compilers refuse to overwrite an existing .o file with -o, 4301 # though they will create one. 4302 am_cv_prog_cc_c_o=yes 4303 for am_i in 1 2; do 4304 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4305 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4306 ac_status=$? 4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4308 (exit $ac_status); } \ 4309 && test -f conftest2.$ac_objext; then 4310 : OK 4311 else 4312 am_cv_prog_cc_c_o=no 4313 break 4314 fi 4315 done 4316 rm -f core conftest* 4317 unset am_i 4318fi 4319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4320$as_echo "$am_cv_prog_cc_c_o" >&6; } 4321if test "$am_cv_prog_cc_c_o" != yes; then 4322 # Losing compiler, so override with the script. 4323 # FIXME: It is wrong to rewrite CC. 4324 # But if we don't then we get into trouble of one sort or another. 4325 # A longer-term fix would be to have automake use am__CC in this case, 4326 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4327 CC="$am_aux_dir/compile $CC" 4328fi 4329ac_ext=c 4330ac_cpp='$CPP $CPPFLAGS' 4331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4333ac_compiler_gnu=$ac_cv_c_compiler_gnu 4334 4335 4336depcc="$CC" am_compiler_list= 4337 4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4339$as_echo_n "checking dependency style of $depcc... " >&6; } 4340if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4341 $as_echo_n "(cached) " >&6 4342else 4343 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4344 # We make a subdir and do the tests there. Otherwise we can end up 4345 # making bogus files that we don't know about and never remove. For 4346 # instance it was reported that on HP-UX the gcc test will end up 4347 # making a dummy file named 'D' -- because '-MD' means "put the output 4348 # in D". 4349 rm -rf conftest.dir 4350 mkdir conftest.dir 4351 # Copy depcomp to subdir because otherwise we won't find it if we're 4352 # using a relative directory. 4353 cp "$am_depcomp" conftest.dir 4354 cd conftest.dir 4355 # We will build objects and dependencies in a subdirectory because 4356 # it helps to detect inapplicable dependency modes. For instance 4357 # both Tru64's cc and ICC support -MD to output dependencies as a 4358 # side effect of compilation, but ICC will put the dependencies in 4359 # the current directory while Tru64 will put them in the object 4360 # directory. 4361 mkdir sub 4362 4363 am_cv_CC_dependencies_compiler_type=none 4364 if test "$am_compiler_list" = ""; then 4365 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4366 fi 4367 am__universal=false 4368 case " $depcc " in #( 4369 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4370 esac 4371 4372 for depmode in $am_compiler_list; do 4373 # Setup a source with many dependencies, because some compilers 4374 # like to wrap large dependency lists on column 80 (with \), and 4375 # we should not choose a depcomp mode which is confused by this. 4376 # 4377 # We need to recreate these files for each test, as the compiler may 4378 # overwrite some of them when testing with obscure command lines. 4379 # This happens at least with the AIX C compiler. 4380 : > sub/conftest.c 4381 for i in 1 2 3 4 5 6; do 4382 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4383 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4384 # Solaris 10 /bin/sh. 4385 echo '/* dummy */' > sub/conftst$i.h 4386 done 4387 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4388 4389 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4390 # mode. It turns out that the SunPro C++ compiler does not properly 4391 # handle '-M -o', and we need to detect this. Also, some Intel 4392 # versions had trouble with output in subdirs. 4393 am__obj=sub/conftest.${OBJEXT-o} 4394 am__minus_obj="-o $am__obj" 4395 case $depmode in 4396 gcc) 4397 # This depmode causes a compiler race in universal mode. 4398 test "$am__universal" = false || continue 4399 ;; 4400 nosideeffect) 4401 # After this tag, mechanisms are not by side-effect, so they'll 4402 # only be used when explicitly requested. 4403 if test "x$enable_dependency_tracking" = xyes; then 4404 continue 4405 else 4406 break 4407 fi 4408 ;; 4409 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4410 # This compiler won't grok '-c -o', but also, the minuso test has 4411 # not run yet. These depmodes are late enough in the game, and 4412 # so weak that their functioning should not be impacted. 4413 am__obj=conftest.${OBJEXT-o} 4414 am__minus_obj= 4415 ;; 4416 none) break ;; 4417 esac 4418 if depmode=$depmode \ 4419 source=sub/conftest.c object=$am__obj \ 4420 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4421 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4422 >/dev/null 2>conftest.err && 4423 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4424 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4425 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4426 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4427 # icc doesn't choke on unknown options, it will just issue warnings 4428 # or remarks (even with -Werror). So we grep stderr for any message 4429 # that says an option was ignored or not supported. 4430 # When given -MP, icc 7.0 and 7.1 complain thusly: 4431 # icc: Command line warning: ignoring option '-M'; no argument required 4432 # The diagnosis changed in icc 8.0: 4433 # icc: Command line remark: option '-MP' not supported 4434 if (grep 'ignoring option' conftest.err || 4435 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4436 am_cv_CC_dependencies_compiler_type=$depmode 4437 break 4438 fi 4439 fi 4440 done 4441 4442 cd .. 4443 rm -rf conftest.dir 4444else 4445 am_cv_CC_dependencies_compiler_type=none 4446fi 4447 4448fi 4449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4450$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4451CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4452 4453 if 4454 test "x$enable_dependency_tracking" != xno \ 4455 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4456 am__fastdepCC_TRUE= 4457 am__fastdepCC_FALSE='#' 4458else 4459 am__fastdepCC_TRUE='#' 4460 am__fastdepCC_FALSE= 4461fi 4462 4463 4464 4465#AC_PROG_LIBTOOL 4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4467$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4468set x ${MAKE-make} 4469ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4470if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4471 $as_echo_n "(cached) " >&6 4472else 4473 cat >conftest.make <<\_ACEOF 4474SHELL = /bin/sh 4475all: 4476 @echo '@@@%%%=$(MAKE)=@@@%%%' 4477_ACEOF 4478# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4479case `${MAKE-make} -f conftest.make 2>/dev/null` in 4480 *@@@%%%=?*=@@@%%%*) 4481 eval ac_cv_prog_make_${ac_make}_set=yes;; 4482 *) 4483 eval ac_cv_prog_make_${ac_make}_set=no;; 4484esac 4485rm -f conftest.make 4486fi 4487if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4489$as_echo "yes" >&6; } 4490 SET_MAKE= 4491else 4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4493$as_echo "no" >&6; } 4494 SET_MAKE="MAKE=${MAKE-make}" 4495fi 4496 4497 4498case `pwd` in 4499 *\ * | *\ *) 4500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4501$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4502esac 4503 4504 4505 4506macro_version='2.4.6' 4507macro_revision='2.4.6' 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521ltmain=$ac_aux_dir/ltmain.sh 4522 4523# Make sure we can run config.sub. 4524$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4525 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4526 4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4528$as_echo_n "checking build system type... " >&6; } 4529if ${ac_cv_build+:} false; then : 4530 $as_echo_n "(cached) " >&6 4531else 4532 ac_build_alias=$build_alias 4533test "x$ac_build_alias" = x && 4534 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4535test "x$ac_build_alias" = x && 4536 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4537ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4538 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4539 4540fi 4541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4542$as_echo "$ac_cv_build" >&6; } 4543case $ac_cv_build in 4544*-*-*) ;; 4545*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4546esac 4547build=$ac_cv_build 4548ac_save_IFS=$IFS; IFS='-' 4549set x $ac_cv_build 4550shift 4551build_cpu=$1 4552build_vendor=$2 4553shift; shift 4554# Remember, the first character of IFS is used to create $*, 4555# except with old shells: 4556build_os=$* 4557IFS=$ac_save_IFS 4558case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4559 4560 4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4562$as_echo_n "checking host system type... " >&6; } 4563if ${ac_cv_host+:} false; then : 4564 $as_echo_n "(cached) " >&6 4565else 4566 if test "x$host_alias" = x; then 4567 ac_cv_host=$ac_cv_build 4568else 4569 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4570 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4571fi 4572 4573fi 4574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4575$as_echo "$ac_cv_host" >&6; } 4576case $ac_cv_host in 4577*-*-*) ;; 4578*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4579esac 4580host=$ac_cv_host 4581ac_save_IFS=$IFS; IFS='-' 4582set x $ac_cv_host 4583shift 4584host_cpu=$1 4585host_vendor=$2 4586shift; shift 4587# Remember, the first character of IFS is used to create $*, 4588# except with old shells: 4589host_os=$* 4590IFS=$ac_save_IFS 4591case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4592 4593 4594# Backslashify metacharacters that are still active within 4595# double-quoted strings. 4596sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4597 4598# Same as above, but do not quote variable references. 4599double_quote_subst='s/\(["`\\]\)/\\\1/g' 4600 4601# Sed substitution to delay expansion of an escaped shell variable in a 4602# double_quote_subst'ed string. 4603delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4604 4605# Sed substitution to delay expansion of an escaped single quote. 4606delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4607 4608# Sed substitution to avoid accidental globbing in evaled expressions 4609no_glob_subst='s/\*/\\\*/g' 4610 4611ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4612ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4613ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4614 4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4616$as_echo_n "checking how to print strings... " >&6; } 4617# Test print first, because it will be a builtin if present. 4618if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4619 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4620 ECHO='print -r --' 4621elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4622 ECHO='printf %s\n' 4623else 4624 # Use this function as a fallback that always works. 4625 func_fallback_echo () 4626 { 4627 eval 'cat <<_LTECHO_EOF 4628$1 4629_LTECHO_EOF' 4630 } 4631 ECHO='func_fallback_echo' 4632fi 4633 4634# func_echo_all arg... 4635# Invoke $ECHO with all args, space-separated. 4636func_echo_all () 4637{ 4638 $ECHO "" 4639} 4640 4641case $ECHO in 4642 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4643$as_echo "printf" >&6; } ;; 4644 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4645$as_echo "print -r" >&6; } ;; 4646 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4647$as_echo "cat" >&6; } ;; 4648esac 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4664$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4665if ${ac_cv_path_SED+:} false; then : 4666 $as_echo_n "(cached) " >&6 4667else 4668 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4669 for ac_i in 1 2 3 4 5 6 7; do 4670 ac_script="$ac_script$as_nl$ac_script" 4671 done 4672 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4673 { ac_script=; unset ac_script;} 4674 if test -z "$SED"; then 4675 ac_path_SED_found=false 4676 # Loop through the user's path and test for each of PROGNAME-LIST 4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4678for as_dir in $PATH 4679do 4680 IFS=$as_save_IFS 4681 test -z "$as_dir" && as_dir=. 4682 for ac_prog in sed gsed; do 4683 for ac_exec_ext in '' $ac_executable_extensions; do 4684 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4685 as_fn_executable_p "$ac_path_SED" || continue 4686# Check for GNU ac_path_SED and select it if it is found. 4687 # Check for GNU $ac_path_SED 4688case `"$ac_path_SED" --version 2>&1` in 4689*GNU*) 4690 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4691*) 4692 ac_count=0 4693 $as_echo_n 0123456789 >"conftest.in" 4694 while : 4695 do 4696 cat "conftest.in" "conftest.in" >"conftest.tmp" 4697 mv "conftest.tmp" "conftest.in" 4698 cp "conftest.in" "conftest.nl" 4699 $as_echo '' >> "conftest.nl" 4700 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4701 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4702 as_fn_arith $ac_count + 1 && ac_count=$as_val 4703 if test $ac_count -gt ${ac_path_SED_max-0}; then 4704 # Best one so far, save it but keep looking for a better one 4705 ac_cv_path_SED="$ac_path_SED" 4706 ac_path_SED_max=$ac_count 4707 fi 4708 # 10*(2^10) chars as input seems more than enough 4709 test $ac_count -gt 10 && break 4710 done 4711 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4712esac 4713 4714 $ac_path_SED_found && break 3 4715 done 4716 done 4717 done 4718IFS=$as_save_IFS 4719 if test -z "$ac_cv_path_SED"; then 4720 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4721 fi 4722else 4723 ac_cv_path_SED=$SED 4724fi 4725 4726fi 4727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4728$as_echo "$ac_cv_path_SED" >&6; } 4729 SED="$ac_cv_path_SED" 4730 rm -f conftest.sed 4731 4732test -z "$SED" && SED=sed 4733Xsed="$SED -e 1s/^X//" 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4746$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4747if ${ac_cv_path_GREP+:} false; then : 4748 $as_echo_n "(cached) " >&6 4749else 4750 if test -z "$GREP"; then 4751 ac_path_GREP_found=false 4752 # Loop through the user's path and test for each of PROGNAME-LIST 4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4754for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4755do 4756 IFS=$as_save_IFS 4757 test -z "$as_dir" && as_dir=. 4758 for ac_prog in grep ggrep; do 4759 for ac_exec_ext in '' $ac_executable_extensions; do 4760 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4761 as_fn_executable_p "$ac_path_GREP" || continue 4762# Check for GNU ac_path_GREP and select it if it is found. 4763 # Check for GNU $ac_path_GREP 4764case `"$ac_path_GREP" --version 2>&1` in 4765*GNU*) 4766 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4767*) 4768 ac_count=0 4769 $as_echo_n 0123456789 >"conftest.in" 4770 while : 4771 do 4772 cat "conftest.in" "conftest.in" >"conftest.tmp" 4773 mv "conftest.tmp" "conftest.in" 4774 cp "conftest.in" "conftest.nl" 4775 $as_echo 'GREP' >> "conftest.nl" 4776 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4778 as_fn_arith $ac_count + 1 && ac_count=$as_val 4779 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4780 # Best one so far, save it but keep looking for a better one 4781 ac_cv_path_GREP="$ac_path_GREP" 4782 ac_path_GREP_max=$ac_count 4783 fi 4784 # 10*(2^10) chars as input seems more than enough 4785 test $ac_count -gt 10 && break 4786 done 4787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4788esac 4789 4790 $ac_path_GREP_found && break 3 4791 done 4792 done 4793 done 4794IFS=$as_save_IFS 4795 if test -z "$ac_cv_path_GREP"; then 4796 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4797 fi 4798else 4799 ac_cv_path_GREP=$GREP 4800fi 4801 4802fi 4803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4804$as_echo "$ac_cv_path_GREP" >&6; } 4805 GREP="$ac_cv_path_GREP" 4806 4807 4808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4809$as_echo_n "checking for egrep... " >&6; } 4810if ${ac_cv_path_EGREP+:} false; then : 4811 $as_echo_n "(cached) " >&6 4812else 4813 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4814 then ac_cv_path_EGREP="$GREP -E" 4815 else 4816 if test -z "$EGREP"; then 4817 ac_path_EGREP_found=false 4818 # Loop through the user's path and test for each of PROGNAME-LIST 4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4820for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4821do 4822 IFS=$as_save_IFS 4823 test -z "$as_dir" && as_dir=. 4824 for ac_prog in egrep; do 4825 for ac_exec_ext in '' $ac_executable_extensions; do 4826 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4827 as_fn_executable_p "$ac_path_EGREP" || continue 4828# Check for GNU ac_path_EGREP and select it if it is found. 4829 # Check for GNU $ac_path_EGREP 4830case `"$ac_path_EGREP" --version 2>&1` in 4831*GNU*) 4832 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4833*) 4834 ac_count=0 4835 $as_echo_n 0123456789 >"conftest.in" 4836 while : 4837 do 4838 cat "conftest.in" "conftest.in" >"conftest.tmp" 4839 mv "conftest.tmp" "conftest.in" 4840 cp "conftest.in" "conftest.nl" 4841 $as_echo 'EGREP' >> "conftest.nl" 4842 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4843 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4844 as_fn_arith $ac_count + 1 && ac_count=$as_val 4845 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4846 # Best one so far, save it but keep looking for a better one 4847 ac_cv_path_EGREP="$ac_path_EGREP" 4848 ac_path_EGREP_max=$ac_count 4849 fi 4850 # 10*(2^10) chars as input seems more than enough 4851 test $ac_count -gt 10 && break 4852 done 4853 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4854esac 4855 4856 $ac_path_EGREP_found && break 3 4857 done 4858 done 4859 done 4860IFS=$as_save_IFS 4861 if test -z "$ac_cv_path_EGREP"; then 4862 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4863 fi 4864else 4865 ac_cv_path_EGREP=$EGREP 4866fi 4867 4868 fi 4869fi 4870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4871$as_echo "$ac_cv_path_EGREP" >&6; } 4872 EGREP="$ac_cv_path_EGREP" 4873 4874 4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4876$as_echo_n "checking for fgrep... " >&6; } 4877if ${ac_cv_path_FGREP+:} false; then : 4878 $as_echo_n "(cached) " >&6 4879else 4880 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4881 then ac_cv_path_FGREP="$GREP -F" 4882 else 4883 if test -z "$FGREP"; then 4884 ac_path_FGREP_found=false 4885 # Loop through the user's path and test for each of PROGNAME-LIST 4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4887for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4888do 4889 IFS=$as_save_IFS 4890 test -z "$as_dir" && as_dir=. 4891 for ac_prog in fgrep; do 4892 for ac_exec_ext in '' $ac_executable_extensions; do 4893 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4894 as_fn_executable_p "$ac_path_FGREP" || continue 4895# Check for GNU ac_path_FGREP and select it if it is found. 4896 # Check for GNU $ac_path_FGREP 4897case `"$ac_path_FGREP" --version 2>&1` in 4898*GNU*) 4899 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4900*) 4901 ac_count=0 4902 $as_echo_n 0123456789 >"conftest.in" 4903 while : 4904 do 4905 cat "conftest.in" "conftest.in" >"conftest.tmp" 4906 mv "conftest.tmp" "conftest.in" 4907 cp "conftest.in" "conftest.nl" 4908 $as_echo 'FGREP' >> "conftest.nl" 4909 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4910 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4911 as_fn_arith $ac_count + 1 && ac_count=$as_val 4912 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4913 # Best one so far, save it but keep looking for a better one 4914 ac_cv_path_FGREP="$ac_path_FGREP" 4915 ac_path_FGREP_max=$ac_count 4916 fi 4917 # 10*(2^10) chars as input seems more than enough 4918 test $ac_count -gt 10 && break 4919 done 4920 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4921esac 4922 4923 $ac_path_FGREP_found && break 3 4924 done 4925 done 4926 done 4927IFS=$as_save_IFS 4928 if test -z "$ac_cv_path_FGREP"; then 4929 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4930 fi 4931else 4932 ac_cv_path_FGREP=$FGREP 4933fi 4934 4935 fi 4936fi 4937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4938$as_echo "$ac_cv_path_FGREP" >&6; } 4939 FGREP="$ac_cv_path_FGREP" 4940 4941 4942test -z "$GREP" && GREP=grep 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962# Check whether --with-gnu-ld was given. 4963if test "${with_gnu_ld+set}" = set; then : 4964 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4965else 4966 with_gnu_ld=no 4967fi 4968 4969ac_prog=ld 4970if test yes = "$GCC"; then 4971 # Check if gcc -print-prog-name=ld gives a path. 4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4973$as_echo_n "checking for ld used by $CC... " >&6; } 4974 case $host in 4975 *-*-mingw*) 4976 # gcc leaves a trailing carriage return, which upsets mingw 4977 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4978 *) 4979 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4980 esac 4981 case $ac_prog in 4982 # Accept absolute paths. 4983 [\\/]* | ?:[\\/]*) 4984 re_direlt='/[^/][^/]*/\.\./' 4985 # Canonicalize the pathname of ld 4986 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4987 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4988 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4989 done 4990 test -z "$LD" && LD=$ac_prog 4991 ;; 4992 "") 4993 # If it fails, then pretend we aren't using GCC. 4994 ac_prog=ld 4995 ;; 4996 *) 4997 # If it is relative, then search for the first ld in PATH. 4998 with_gnu_ld=unknown 4999 ;; 5000 esac 5001elif test yes = "$with_gnu_ld"; then 5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5003$as_echo_n "checking for GNU ld... " >&6; } 5004else 5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5006$as_echo_n "checking for non-GNU ld... " >&6; } 5007fi 5008if ${lt_cv_path_LD+:} false; then : 5009 $as_echo_n "(cached) " >&6 5010else 5011 if test -z "$LD"; then 5012 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5013 for ac_dir in $PATH; do 5014 IFS=$lt_save_ifs 5015 test -z "$ac_dir" && ac_dir=. 5016 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5017 lt_cv_path_LD=$ac_dir/$ac_prog 5018 # Check to see if the program is GNU ld. I'd rather use --version, 5019 # but apparently some variants of GNU ld only accept -v. 5020 # Break only if it was the GNU/non-GNU ld that we prefer. 5021 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5022 *GNU* | *'with BFD'*) 5023 test no != "$with_gnu_ld" && break 5024 ;; 5025 *) 5026 test yes != "$with_gnu_ld" && break 5027 ;; 5028 esac 5029 fi 5030 done 5031 IFS=$lt_save_ifs 5032else 5033 lt_cv_path_LD=$LD # Let the user override the test with a path. 5034fi 5035fi 5036 5037LD=$lt_cv_path_LD 5038if test -n "$LD"; then 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5040$as_echo "$LD" >&6; } 5041else 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5043$as_echo "no" >&6; } 5044fi 5045test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5047$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5048if ${lt_cv_prog_gnu_ld+:} false; then : 5049 $as_echo_n "(cached) " >&6 5050else 5051 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5052case `$LD -v 2>&1 </dev/null` in 5053*GNU* | *'with BFD'*) 5054 lt_cv_prog_gnu_ld=yes 5055 ;; 5056*) 5057 lt_cv_prog_gnu_ld=no 5058 ;; 5059esac 5060fi 5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5062$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5063with_gnu_ld=$lt_cv_prog_gnu_ld 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5074$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5075if ${lt_cv_path_NM+:} false; then : 5076 $as_echo_n "(cached) " >&6 5077else 5078 if test -n "$NM"; then 5079 # Let the user override the test. 5080 lt_cv_path_NM=$NM 5081else 5082 lt_nm_to_check=${ac_tool_prefix}nm 5083 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5084 lt_nm_to_check="$lt_nm_to_check nm" 5085 fi 5086 for lt_tmp_nm in $lt_nm_to_check; do 5087 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5088 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5089 IFS=$lt_save_ifs 5090 test -z "$ac_dir" && ac_dir=. 5091 tmp_nm=$ac_dir/$lt_tmp_nm 5092 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5093 # Check to see if the nm accepts a BSD-compat flag. 5094 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5095 # nm: unknown option "B" ignored 5096 # Tru64's nm complains that /dev/null is an invalid object file 5097 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5098 case $build_os in 5099 mingw*) lt_bad_file=conftest.nm/nofile ;; 5100 *) lt_bad_file=/dev/null ;; 5101 esac 5102 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5103 *$lt_bad_file* | *'Invalid file or object type'*) 5104 lt_cv_path_NM="$tmp_nm -B" 5105 break 2 5106 ;; 5107 *) 5108 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5109 */dev/null*) 5110 lt_cv_path_NM="$tmp_nm -p" 5111 break 2 5112 ;; 5113 *) 5114 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5115 continue # so that we can try to find one that supports BSD flags 5116 ;; 5117 esac 5118 ;; 5119 esac 5120 fi 5121 done 5122 IFS=$lt_save_ifs 5123 done 5124 : ${lt_cv_path_NM=no} 5125fi 5126fi 5127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5128$as_echo "$lt_cv_path_NM" >&6; } 5129if test no != "$lt_cv_path_NM"; then 5130 NM=$lt_cv_path_NM 5131else 5132 # Didn't find any BSD compatible name lister, look for dumpbin. 5133 if test -n "$DUMPBIN"; then : 5134 # Let the user override the test. 5135 else 5136 if test -n "$ac_tool_prefix"; then 5137 for ac_prog in dumpbin "link -dump" 5138 do 5139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5140set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5142$as_echo_n "checking for $ac_word... " >&6; } 5143if ${ac_cv_prog_DUMPBIN+:} false; then : 5144 $as_echo_n "(cached) " >&6 5145else 5146 if test -n "$DUMPBIN"; then 5147 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5148else 5149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5150for as_dir in $PATH 5151do 5152 IFS=$as_save_IFS 5153 test -z "$as_dir" && as_dir=. 5154 for ac_exec_ext in '' $ac_executable_extensions; do 5155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5156 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5158 break 2 5159 fi 5160done 5161 done 5162IFS=$as_save_IFS 5163 5164fi 5165fi 5166DUMPBIN=$ac_cv_prog_DUMPBIN 5167if test -n "$DUMPBIN"; then 5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5169$as_echo "$DUMPBIN" >&6; } 5170else 5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5172$as_echo "no" >&6; } 5173fi 5174 5175 5176 test -n "$DUMPBIN" && break 5177 done 5178fi 5179if test -z "$DUMPBIN"; then 5180 ac_ct_DUMPBIN=$DUMPBIN 5181 for ac_prog in dumpbin "link -dump" 5182do 5183 # Extract the first word of "$ac_prog", so it can be a program name with args. 5184set dummy $ac_prog; ac_word=$2 5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5186$as_echo_n "checking for $ac_word... " >&6; } 5187if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5188 $as_echo_n "(cached) " >&6 5189else 5190 if test -n "$ac_ct_DUMPBIN"; then 5191 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5192else 5193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5194for as_dir in $PATH 5195do 5196 IFS=$as_save_IFS 5197 test -z "$as_dir" && as_dir=. 5198 for ac_exec_ext in '' $ac_executable_extensions; do 5199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5200 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5202 break 2 5203 fi 5204done 5205 done 5206IFS=$as_save_IFS 5207 5208fi 5209fi 5210ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5211if test -n "$ac_ct_DUMPBIN"; then 5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5213$as_echo "$ac_ct_DUMPBIN" >&6; } 5214else 5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5216$as_echo "no" >&6; } 5217fi 5218 5219 5220 test -n "$ac_ct_DUMPBIN" && break 5221done 5222 5223 if test "x$ac_ct_DUMPBIN" = x; then 5224 DUMPBIN=":" 5225 else 5226 case $cross_compiling:$ac_tool_warned in 5227yes:) 5228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5230ac_tool_warned=yes ;; 5231esac 5232 DUMPBIN=$ac_ct_DUMPBIN 5233 fi 5234fi 5235 5236 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5237 *COFF*) 5238 DUMPBIN="$DUMPBIN -symbols -headers" 5239 ;; 5240 *) 5241 DUMPBIN=: 5242 ;; 5243 esac 5244 fi 5245 5246 if test : != "$DUMPBIN"; then 5247 NM=$DUMPBIN 5248 fi 5249fi 5250test -z "$NM" && NM=nm 5251 5252 5253 5254 5255 5256 5257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5258$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5259if ${lt_cv_nm_interface+:} false; then : 5260 $as_echo_n "(cached) " >&6 5261else 5262 lt_cv_nm_interface="BSD nm" 5263 echo "int some_variable = 0;" > conftest.$ac_ext 5264 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5265 (eval "$ac_compile" 2>conftest.err) 5266 cat conftest.err >&5 5267 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5268 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5269 cat conftest.err >&5 5270 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5271 cat conftest.out >&5 5272 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5273 lt_cv_nm_interface="MS dumpbin" 5274 fi 5275 rm -f conftest* 5276fi 5277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5278$as_echo "$lt_cv_nm_interface" >&6; } 5279 5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5281$as_echo_n "checking whether ln -s works... " >&6; } 5282LN_S=$as_ln_s 5283if test "$LN_S" = "ln -s"; then 5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5285$as_echo "yes" >&6; } 5286else 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5288$as_echo "no, using $LN_S" >&6; } 5289fi 5290 5291# find the maximum length of command line arguments 5292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5293$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5294if ${lt_cv_sys_max_cmd_len+:} false; then : 5295 $as_echo_n "(cached) " >&6 5296else 5297 i=0 5298 teststring=ABCD 5299 5300 case $build_os in 5301 msdosdjgpp*) 5302 # On DJGPP, this test can blow up pretty badly due to problems in libc 5303 # (any single argument exceeding 2000 bytes causes a buffer overrun 5304 # during glob expansion). Even if it were fixed, the result of this 5305 # check would be larger than it should be. 5306 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5307 ;; 5308 5309 gnu*) 5310 # Under GNU Hurd, this test is not required because there is 5311 # no limit to the length of command line arguments. 5312 # Libtool will interpret -1 as no limit whatsoever 5313 lt_cv_sys_max_cmd_len=-1; 5314 ;; 5315 5316 cygwin* | mingw* | cegcc*) 5317 # On Win9x/ME, this test blows up -- it succeeds, but takes 5318 # about 5 minutes as the teststring grows exponentially. 5319 # Worse, since 9x/ME are not pre-emptively multitasking, 5320 # you end up with a "frozen" computer, even though with patience 5321 # the test eventually succeeds (with a max line length of 256k). 5322 # Instead, let's just punt: use the minimum linelength reported by 5323 # all of the supported platforms: 8192 (on NT/2K/XP). 5324 lt_cv_sys_max_cmd_len=8192; 5325 ;; 5326 5327 mint*) 5328 # On MiNT this can take a long time and run out of memory. 5329 lt_cv_sys_max_cmd_len=8192; 5330 ;; 5331 5332 amigaos*) 5333 # On AmigaOS with pdksh, this test takes hours, literally. 5334 # So we just punt and use a minimum line length of 8192. 5335 lt_cv_sys_max_cmd_len=8192; 5336 ;; 5337 5338 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5339 # This has been around since 386BSD, at least. Likely further. 5340 if test -x /sbin/sysctl; then 5341 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5342 elif test -x /usr/sbin/sysctl; then 5343 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5344 else 5345 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5346 fi 5347 # And add a safety zone 5348 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5349 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5350 ;; 5351 5352 interix*) 5353 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5354 lt_cv_sys_max_cmd_len=196608 5355 ;; 5356 5357 os2*) 5358 # The test takes a long time on OS/2. 5359 lt_cv_sys_max_cmd_len=8192 5360 ;; 5361 5362 osf*) 5363 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5364 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5365 # nice to cause kernel panics so lets avoid the loop below. 5366 # First set a reasonable default. 5367 lt_cv_sys_max_cmd_len=16384 5368 # 5369 if test -x /sbin/sysconfig; then 5370 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5371 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5372 esac 5373 fi 5374 ;; 5375 sco3.2v5*) 5376 lt_cv_sys_max_cmd_len=102400 5377 ;; 5378 sysv5* | sco5v6* | sysv4.2uw2*) 5379 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5380 if test -n "$kargmax"; then 5381 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5382 else 5383 lt_cv_sys_max_cmd_len=32768 5384 fi 5385 ;; 5386 *) 5387 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5388 if test -n "$lt_cv_sys_max_cmd_len" && \ 5389 test undefined != "$lt_cv_sys_max_cmd_len"; then 5390 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5391 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5392 else 5393 # Make teststring a little bigger before we do anything with it. 5394 # a 1K string should be a reasonable start. 5395 for i in 1 2 3 4 5 6 7 8; do 5396 teststring=$teststring$teststring 5397 done 5398 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5399 # If test is not a shell built-in, we'll probably end up computing a 5400 # maximum length that is only half of the actual maximum length, but 5401 # we can't tell. 5402 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5403 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5404 test 17 != "$i" # 1/2 MB should be enough 5405 do 5406 i=`expr $i + 1` 5407 teststring=$teststring$teststring 5408 done 5409 # Only check the string length outside the loop. 5410 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5411 teststring= 5412 # Add a significant safety factor because C++ compilers can tack on 5413 # massive amounts of additional arguments before passing them to the 5414 # linker. It appears as though 1/2 is a usable value. 5415 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5416 fi 5417 ;; 5418 esac 5419 5420fi 5421 5422if test -n "$lt_cv_sys_max_cmd_len"; then 5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5424$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5425else 5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5427$as_echo "none" >&6; } 5428fi 5429max_cmd_len=$lt_cv_sys_max_cmd_len 5430 5431 5432 5433 5434 5435 5436: ${CP="cp -f"} 5437: ${MV="mv -f"} 5438: ${RM="rm -f"} 5439 5440if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5441 lt_unset=unset 5442else 5443 lt_unset=false 5444fi 5445 5446 5447 5448 5449 5450# test EBCDIC or ASCII 5451case `echo X|tr X '\101'` in 5452 A) # ASCII based system 5453 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5454 lt_SP2NL='tr \040 \012' 5455 lt_NL2SP='tr \015\012 \040\040' 5456 ;; 5457 *) # EBCDIC based system 5458 lt_SP2NL='tr \100 \n' 5459 lt_NL2SP='tr \r\n \100\100' 5460 ;; 5461esac 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5472$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5473if ${lt_cv_to_host_file_cmd+:} false; then : 5474 $as_echo_n "(cached) " >&6 5475else 5476 case $host in 5477 *-*-mingw* ) 5478 case $build in 5479 *-*-mingw* ) # actually msys 5480 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5481 ;; 5482 *-*-cygwin* ) 5483 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5484 ;; 5485 * ) # otherwise, assume *nix 5486 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5487 ;; 5488 esac 5489 ;; 5490 *-*-cygwin* ) 5491 case $build in 5492 *-*-mingw* ) # actually msys 5493 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5494 ;; 5495 *-*-cygwin* ) 5496 lt_cv_to_host_file_cmd=func_convert_file_noop 5497 ;; 5498 * ) # otherwise, assume *nix 5499 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5500 ;; 5501 esac 5502 ;; 5503 * ) # unhandled hosts (and "normal" native builds) 5504 lt_cv_to_host_file_cmd=func_convert_file_noop 5505 ;; 5506esac 5507 5508fi 5509 5510to_host_file_cmd=$lt_cv_to_host_file_cmd 5511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5512$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5513 5514 5515 5516 5517 5518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5519$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5520if ${lt_cv_to_tool_file_cmd+:} false; then : 5521 $as_echo_n "(cached) " >&6 5522else 5523 #assume ordinary cross tools, or native build. 5524lt_cv_to_tool_file_cmd=func_convert_file_noop 5525case $host in 5526 *-*-mingw* ) 5527 case $build in 5528 *-*-mingw* ) # actually msys 5529 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5530 ;; 5531 esac 5532 ;; 5533esac 5534 5535fi 5536 5537to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5539$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5540 5541 5542 5543 5544 5545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5546$as_echo_n "checking for $LD option to reload object files... " >&6; } 5547if ${lt_cv_ld_reload_flag+:} false; then : 5548 $as_echo_n "(cached) " >&6 5549else 5550 lt_cv_ld_reload_flag='-r' 5551fi 5552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5553$as_echo "$lt_cv_ld_reload_flag" >&6; } 5554reload_flag=$lt_cv_ld_reload_flag 5555case $reload_flag in 5556"" | " "*) ;; 5557*) reload_flag=" $reload_flag" ;; 5558esac 5559reload_cmds='$LD$reload_flag -o $output$reload_objs' 5560case $host_os in 5561 cygwin* | mingw* | pw32* | cegcc*) 5562 if test yes != "$GCC"; then 5563 reload_cmds=false 5564 fi 5565 ;; 5566 darwin*) 5567 if test yes = "$GCC"; then 5568 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5569 else 5570 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5571 fi 5572 ;; 5573esac 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583if test -n "$ac_tool_prefix"; then 5584 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5585set dummy ${ac_tool_prefix}objdump; ac_word=$2 5586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5587$as_echo_n "checking for $ac_word... " >&6; } 5588if ${ac_cv_prog_OBJDUMP+:} false; then : 5589 $as_echo_n "(cached) " >&6 5590else 5591 if test -n "$OBJDUMP"; then 5592 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5593else 5594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5595for as_dir in $PATH 5596do 5597 IFS=$as_save_IFS 5598 test -z "$as_dir" && as_dir=. 5599 for ac_exec_ext in '' $ac_executable_extensions; do 5600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5601 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5603 break 2 5604 fi 5605done 5606 done 5607IFS=$as_save_IFS 5608 5609fi 5610fi 5611OBJDUMP=$ac_cv_prog_OBJDUMP 5612if test -n "$OBJDUMP"; then 5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5614$as_echo "$OBJDUMP" >&6; } 5615else 5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5617$as_echo "no" >&6; } 5618fi 5619 5620 5621fi 5622if test -z "$ac_cv_prog_OBJDUMP"; then 5623 ac_ct_OBJDUMP=$OBJDUMP 5624 # Extract the first word of "objdump", so it can be a program name with args. 5625set dummy objdump; ac_word=$2 5626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5627$as_echo_n "checking for $ac_word... " >&6; } 5628if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5629 $as_echo_n "(cached) " >&6 5630else 5631 if test -n "$ac_ct_OBJDUMP"; then 5632 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5633else 5634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5635for as_dir in $PATH 5636do 5637 IFS=$as_save_IFS 5638 test -z "$as_dir" && as_dir=. 5639 for ac_exec_ext in '' $ac_executable_extensions; do 5640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5641 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5643 break 2 5644 fi 5645done 5646 done 5647IFS=$as_save_IFS 5648 5649fi 5650fi 5651ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5652if test -n "$ac_ct_OBJDUMP"; then 5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5654$as_echo "$ac_ct_OBJDUMP" >&6; } 5655else 5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5657$as_echo "no" >&6; } 5658fi 5659 5660 if test "x$ac_ct_OBJDUMP" = x; then 5661 OBJDUMP="false" 5662 else 5663 case $cross_compiling:$ac_tool_warned in 5664yes:) 5665{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5666$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5667ac_tool_warned=yes ;; 5668esac 5669 OBJDUMP=$ac_ct_OBJDUMP 5670 fi 5671else 5672 OBJDUMP="$ac_cv_prog_OBJDUMP" 5673fi 5674 5675test -z "$OBJDUMP" && OBJDUMP=objdump 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5686$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5687if ${lt_cv_deplibs_check_method+:} false; then : 5688 $as_echo_n "(cached) " >&6 5689else 5690 lt_cv_file_magic_cmd='$MAGIC_CMD' 5691lt_cv_file_magic_test_file= 5692lt_cv_deplibs_check_method='unknown' 5693# Need to set the preceding variable on all platforms that support 5694# interlibrary dependencies. 5695# 'none' -- dependencies not supported. 5696# 'unknown' -- same as none, but documents that we really don't know. 5697# 'pass_all' -- all dependencies passed with no checks. 5698# 'test_compile' -- check by making test program. 5699# 'file_magic [[regex]]' -- check by looking for files in library path 5700# that responds to the $file_magic_cmd with a given extended regex. 5701# If you have 'file' or equivalent on your system and you're not sure 5702# whether 'pass_all' will *always* work, you probably want this one. 5703 5704case $host_os in 5705aix[4-9]*) 5706 lt_cv_deplibs_check_method=pass_all 5707 ;; 5708 5709beos*) 5710 lt_cv_deplibs_check_method=pass_all 5711 ;; 5712 5713bsdi[45]*) 5714 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5715 lt_cv_file_magic_cmd='/usr/bin/file -L' 5716 lt_cv_file_magic_test_file=/shlib/libc.so 5717 ;; 5718 5719cygwin*) 5720 # func_win32_libid is a shell function defined in ltmain.sh 5721 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5722 lt_cv_file_magic_cmd='func_win32_libid' 5723 ;; 5724 5725mingw* | pw32*) 5726 # Base MSYS/MinGW do not provide the 'file' command needed by 5727 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5728 # unless we find 'file', for example because we are cross-compiling. 5729 if ( file / ) >/dev/null 2>&1; then 5730 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5731 lt_cv_file_magic_cmd='func_win32_libid' 5732 else 5733 # Keep this pattern in sync with the one in func_win32_libid. 5734 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5735 lt_cv_file_magic_cmd='$OBJDUMP -f' 5736 fi 5737 ;; 5738 5739cegcc*) 5740 # use the weaker test based on 'objdump'. See mingw*. 5741 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5742 lt_cv_file_magic_cmd='$OBJDUMP -f' 5743 ;; 5744 5745darwin* | rhapsody*) 5746 lt_cv_deplibs_check_method=pass_all 5747 ;; 5748 5749freebsd* | dragonfly*) 5750 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5751 case $host_cpu in 5752 i*86 ) 5753 # Not sure whether the presence of OpenBSD here was a mistake. 5754 # Let's accept both of them until this is cleared up. 5755 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5756 lt_cv_file_magic_cmd=/usr/bin/file 5757 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5758 ;; 5759 esac 5760 else 5761 lt_cv_deplibs_check_method=pass_all 5762 fi 5763 ;; 5764 5765haiku*) 5766 lt_cv_deplibs_check_method=pass_all 5767 ;; 5768 5769hpux10.20* | hpux11*) 5770 lt_cv_file_magic_cmd=/usr/bin/file 5771 case $host_cpu in 5772 ia64*) 5773 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5774 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5775 ;; 5776 hppa*64*) 5777 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]' 5778 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5779 ;; 5780 *) 5781 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5782 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5783 ;; 5784 esac 5785 ;; 5786 5787interix[3-9]*) 5788 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5789 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5790 ;; 5791 5792irix5* | irix6* | nonstopux*) 5793 case $LD in 5794 *-32|*"-32 ") libmagic=32-bit;; 5795 *-n32|*"-n32 ") libmagic=N32;; 5796 *-64|*"-64 ") libmagic=64-bit;; 5797 *) libmagic=never-match;; 5798 esac 5799 lt_cv_deplibs_check_method=pass_all 5800 ;; 5801 5802# This must be glibc/ELF. 5803linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5804 lt_cv_deplibs_check_method=pass_all 5805 ;; 5806 5807netbsd* | netbsdelf*-gnu) 5808 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5809 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5810 else 5811 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5812 fi 5813 ;; 5814 5815newos6*) 5816 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5817 lt_cv_file_magic_cmd=/usr/bin/file 5818 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5819 ;; 5820 5821*nto* | *qnx*) 5822 lt_cv_deplibs_check_method=pass_all 5823 ;; 5824 5825openbsd* | bitrig*) 5826 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5827 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5828 else 5829 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5830 fi 5831 ;; 5832 5833osf3* | osf4* | osf5*) 5834 lt_cv_deplibs_check_method=pass_all 5835 ;; 5836 5837rdos*) 5838 lt_cv_deplibs_check_method=pass_all 5839 ;; 5840 5841solaris*) 5842 lt_cv_deplibs_check_method=pass_all 5843 ;; 5844 5845sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5846 lt_cv_deplibs_check_method=pass_all 5847 ;; 5848 5849sysv4 | sysv4.3*) 5850 case $host_vendor in 5851 motorola) 5852 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]' 5853 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5854 ;; 5855 ncr) 5856 lt_cv_deplibs_check_method=pass_all 5857 ;; 5858 sequent) 5859 lt_cv_file_magic_cmd='/bin/file' 5860 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5861 ;; 5862 sni) 5863 lt_cv_file_magic_cmd='/bin/file' 5864 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5865 lt_cv_file_magic_test_file=/lib/libc.so 5866 ;; 5867 siemens) 5868 lt_cv_deplibs_check_method=pass_all 5869 ;; 5870 pc) 5871 lt_cv_deplibs_check_method=pass_all 5872 ;; 5873 esac 5874 ;; 5875 5876tpf*) 5877 lt_cv_deplibs_check_method=pass_all 5878 ;; 5879os2*) 5880 lt_cv_deplibs_check_method=pass_all 5881 ;; 5882esac 5883 5884fi 5885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5886$as_echo "$lt_cv_deplibs_check_method" >&6; } 5887 5888file_magic_glob= 5889want_nocaseglob=no 5890if test "$build" = "$host"; then 5891 case $host_os in 5892 mingw* | pw32*) 5893 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5894 want_nocaseglob=yes 5895 else 5896 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5897 fi 5898 ;; 5899 esac 5900fi 5901 5902file_magic_cmd=$lt_cv_file_magic_cmd 5903deplibs_check_method=$lt_cv_deplibs_check_method 5904test -z "$deplibs_check_method" && deplibs_check_method=unknown 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927if test -n "$ac_tool_prefix"; then 5928 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5929set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5931$as_echo_n "checking for $ac_word... " >&6; } 5932if ${ac_cv_prog_DLLTOOL+:} false; then : 5933 $as_echo_n "(cached) " >&6 5934else 5935 if test -n "$DLLTOOL"; then 5936 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5937else 5938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5939for as_dir in $PATH 5940do 5941 IFS=$as_save_IFS 5942 test -z "$as_dir" && as_dir=. 5943 for ac_exec_ext in '' $ac_executable_extensions; do 5944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5945 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5947 break 2 5948 fi 5949done 5950 done 5951IFS=$as_save_IFS 5952 5953fi 5954fi 5955DLLTOOL=$ac_cv_prog_DLLTOOL 5956if test -n "$DLLTOOL"; then 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5958$as_echo "$DLLTOOL" >&6; } 5959else 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5961$as_echo "no" >&6; } 5962fi 5963 5964 5965fi 5966if test -z "$ac_cv_prog_DLLTOOL"; then 5967 ac_ct_DLLTOOL=$DLLTOOL 5968 # Extract the first word of "dlltool", so it can be a program name with args. 5969set dummy dlltool; ac_word=$2 5970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5971$as_echo_n "checking for $ac_word... " >&6; } 5972if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5973 $as_echo_n "(cached) " >&6 5974else 5975 if test -n "$ac_ct_DLLTOOL"; then 5976 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5977else 5978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5979for as_dir in $PATH 5980do 5981 IFS=$as_save_IFS 5982 test -z "$as_dir" && as_dir=. 5983 for ac_exec_ext in '' $ac_executable_extensions; do 5984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5985 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5987 break 2 5988 fi 5989done 5990 done 5991IFS=$as_save_IFS 5992 5993fi 5994fi 5995ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5996if test -n "$ac_ct_DLLTOOL"; then 5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5998$as_echo "$ac_ct_DLLTOOL" >&6; } 5999else 6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6001$as_echo "no" >&6; } 6002fi 6003 6004 if test "x$ac_ct_DLLTOOL" = x; then 6005 DLLTOOL="false" 6006 else 6007 case $cross_compiling:$ac_tool_warned in 6008yes:) 6009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6011ac_tool_warned=yes ;; 6012esac 6013 DLLTOOL=$ac_ct_DLLTOOL 6014 fi 6015else 6016 DLLTOOL="$ac_cv_prog_DLLTOOL" 6017fi 6018 6019test -z "$DLLTOOL" && DLLTOOL=dlltool 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6031$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6032if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6033 $as_echo_n "(cached) " >&6 6034else 6035 lt_cv_sharedlib_from_linklib_cmd='unknown' 6036 6037case $host_os in 6038cygwin* | mingw* | pw32* | cegcc*) 6039 # two different shell functions defined in ltmain.sh; 6040 # decide which one to use based on capabilities of $DLLTOOL 6041 case `$DLLTOOL --help 2>&1` in 6042 *--identify-strict*) 6043 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6044 ;; 6045 *) 6046 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6047 ;; 6048 esac 6049 ;; 6050*) 6051 # fallback: assume linklib IS sharedlib 6052 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6053 ;; 6054esac 6055 6056fi 6057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6058$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6059sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6060test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6061 6062 6063 6064 6065 6066 6067 6068 6069if test -n "$ac_tool_prefix"; then 6070 for ac_prog in ar 6071 do 6072 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6073set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6075$as_echo_n "checking for $ac_word... " >&6; } 6076if ${ac_cv_prog_AR+:} false; then : 6077 $as_echo_n "(cached) " >&6 6078else 6079 if test -n "$AR"; then 6080 ac_cv_prog_AR="$AR" # Let the user override the test. 6081else 6082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6083for as_dir in $PATH 6084do 6085 IFS=$as_save_IFS 6086 test -z "$as_dir" && as_dir=. 6087 for ac_exec_ext in '' $ac_executable_extensions; do 6088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6089 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6091 break 2 6092 fi 6093done 6094 done 6095IFS=$as_save_IFS 6096 6097fi 6098fi 6099AR=$ac_cv_prog_AR 6100if test -n "$AR"; then 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6102$as_echo "$AR" >&6; } 6103else 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6105$as_echo "no" >&6; } 6106fi 6107 6108 6109 test -n "$AR" && break 6110 done 6111fi 6112if test -z "$AR"; then 6113 ac_ct_AR=$AR 6114 for ac_prog in ar 6115do 6116 # Extract the first word of "$ac_prog", so it can be a program name with args. 6117set dummy $ac_prog; ac_word=$2 6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6119$as_echo_n "checking for $ac_word... " >&6; } 6120if ${ac_cv_prog_ac_ct_AR+:} false; then : 6121 $as_echo_n "(cached) " >&6 6122else 6123 if test -n "$ac_ct_AR"; then 6124 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6125else 6126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6127for as_dir in $PATH 6128do 6129 IFS=$as_save_IFS 6130 test -z "$as_dir" && as_dir=. 6131 for ac_exec_ext in '' $ac_executable_extensions; do 6132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6133 ac_cv_prog_ac_ct_AR="$ac_prog" 6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6135 break 2 6136 fi 6137done 6138 done 6139IFS=$as_save_IFS 6140 6141fi 6142fi 6143ac_ct_AR=$ac_cv_prog_ac_ct_AR 6144if test -n "$ac_ct_AR"; then 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6146$as_echo "$ac_ct_AR" >&6; } 6147else 6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6149$as_echo "no" >&6; } 6150fi 6151 6152 6153 test -n "$ac_ct_AR" && break 6154done 6155 6156 if test "x$ac_ct_AR" = x; then 6157 AR="false" 6158 else 6159 case $cross_compiling:$ac_tool_warned in 6160yes:) 6161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6163ac_tool_warned=yes ;; 6164esac 6165 AR=$ac_ct_AR 6166 fi 6167fi 6168 6169: ${AR=ar} 6170: ${AR_FLAGS=cru} 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6183$as_echo_n "checking for archiver @FILE support... " >&6; } 6184if ${lt_cv_ar_at_file+:} false; then : 6185 $as_echo_n "(cached) " >&6 6186else 6187 lt_cv_ar_at_file=no 6188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6189/* end confdefs.h. */ 6190 6191int 6192main () 6193{ 6194 6195 ; 6196 return 0; 6197} 6198_ACEOF 6199if ac_fn_c_try_compile "$LINENO"; then : 6200 echo conftest.$ac_objext > conftest.lst 6201 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6203 (eval $lt_ar_try) 2>&5 6204 ac_status=$? 6205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6206 test $ac_status = 0; } 6207 if test 0 -eq "$ac_status"; then 6208 # Ensure the archiver fails upon bogus file names. 6209 rm -f conftest.$ac_objext libconftest.a 6210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6211 (eval $lt_ar_try) 2>&5 6212 ac_status=$? 6213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6214 test $ac_status = 0; } 6215 if test 0 -ne "$ac_status"; then 6216 lt_cv_ar_at_file=@ 6217 fi 6218 fi 6219 rm -f conftest.* libconftest.a 6220 6221fi 6222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6223 6224fi 6225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6226$as_echo "$lt_cv_ar_at_file" >&6; } 6227 6228if test no = "$lt_cv_ar_at_file"; then 6229 archiver_list_spec= 6230else 6231 archiver_list_spec=$lt_cv_ar_at_file 6232fi 6233 6234 6235 6236 6237 6238 6239 6240if test -n "$ac_tool_prefix"; then 6241 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6242set dummy ${ac_tool_prefix}strip; ac_word=$2 6243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6244$as_echo_n "checking for $ac_word... " >&6; } 6245if ${ac_cv_prog_STRIP+:} false; then : 6246 $as_echo_n "(cached) " >&6 6247else 6248 if test -n "$STRIP"; then 6249 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6250else 6251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6252for as_dir in $PATH 6253do 6254 IFS=$as_save_IFS 6255 test -z "$as_dir" && as_dir=. 6256 for ac_exec_ext in '' $ac_executable_extensions; do 6257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6258 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6260 break 2 6261 fi 6262done 6263 done 6264IFS=$as_save_IFS 6265 6266fi 6267fi 6268STRIP=$ac_cv_prog_STRIP 6269if test -n "$STRIP"; then 6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6271$as_echo "$STRIP" >&6; } 6272else 6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6274$as_echo "no" >&6; } 6275fi 6276 6277 6278fi 6279if test -z "$ac_cv_prog_STRIP"; then 6280 ac_ct_STRIP=$STRIP 6281 # Extract the first word of "strip", so it can be a program name with args. 6282set dummy strip; ac_word=$2 6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6284$as_echo_n "checking for $ac_word... " >&6; } 6285if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6286 $as_echo_n "(cached) " >&6 6287else 6288 if test -n "$ac_ct_STRIP"; then 6289 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6290else 6291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6292for as_dir in $PATH 6293do 6294 IFS=$as_save_IFS 6295 test -z "$as_dir" && as_dir=. 6296 for ac_exec_ext in '' $ac_executable_extensions; do 6297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6298 ac_cv_prog_ac_ct_STRIP="strip" 6299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6300 break 2 6301 fi 6302done 6303 done 6304IFS=$as_save_IFS 6305 6306fi 6307fi 6308ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6309if test -n "$ac_ct_STRIP"; then 6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6311$as_echo "$ac_ct_STRIP" >&6; } 6312else 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6314$as_echo "no" >&6; } 6315fi 6316 6317 if test "x$ac_ct_STRIP" = x; then 6318 STRIP=":" 6319 else 6320 case $cross_compiling:$ac_tool_warned in 6321yes:) 6322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6324ac_tool_warned=yes ;; 6325esac 6326 STRIP=$ac_ct_STRIP 6327 fi 6328else 6329 STRIP="$ac_cv_prog_STRIP" 6330fi 6331 6332test -z "$STRIP" && STRIP=: 6333 6334 6335 6336 6337 6338 6339if test -n "$ac_tool_prefix"; then 6340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6341set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6343$as_echo_n "checking for $ac_word... " >&6; } 6344if ${ac_cv_prog_RANLIB+:} false; then : 6345 $as_echo_n "(cached) " >&6 6346else 6347 if test -n "$RANLIB"; then 6348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6349else 6350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6351for as_dir in $PATH 6352do 6353 IFS=$as_save_IFS 6354 test -z "$as_dir" && as_dir=. 6355 for ac_exec_ext in '' $ac_executable_extensions; do 6356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6359 break 2 6360 fi 6361done 6362 done 6363IFS=$as_save_IFS 6364 6365fi 6366fi 6367RANLIB=$ac_cv_prog_RANLIB 6368if test -n "$RANLIB"; then 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6370$as_echo "$RANLIB" >&6; } 6371else 6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6373$as_echo "no" >&6; } 6374fi 6375 6376 6377fi 6378if test -z "$ac_cv_prog_RANLIB"; then 6379 ac_ct_RANLIB=$RANLIB 6380 # Extract the first word of "ranlib", so it can be a program name with args. 6381set dummy ranlib; ac_word=$2 6382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6383$as_echo_n "checking for $ac_word... " >&6; } 6384if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6385 $as_echo_n "(cached) " >&6 6386else 6387 if test -n "$ac_ct_RANLIB"; then 6388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6389else 6390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6391for as_dir in $PATH 6392do 6393 IFS=$as_save_IFS 6394 test -z "$as_dir" && as_dir=. 6395 for ac_exec_ext in '' $ac_executable_extensions; do 6396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6397 ac_cv_prog_ac_ct_RANLIB="ranlib" 6398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6399 break 2 6400 fi 6401done 6402 done 6403IFS=$as_save_IFS 6404 6405fi 6406fi 6407ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6408if test -n "$ac_ct_RANLIB"; then 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6410$as_echo "$ac_ct_RANLIB" >&6; } 6411else 6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6413$as_echo "no" >&6; } 6414fi 6415 6416 if test "x$ac_ct_RANLIB" = x; then 6417 RANLIB=":" 6418 else 6419 case $cross_compiling:$ac_tool_warned in 6420yes:) 6421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6423ac_tool_warned=yes ;; 6424esac 6425 RANLIB=$ac_ct_RANLIB 6426 fi 6427else 6428 RANLIB="$ac_cv_prog_RANLIB" 6429fi 6430 6431test -z "$RANLIB" && RANLIB=: 6432 6433 6434 6435 6436 6437 6438# Determine commands to create old-style static archives. 6439old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6440old_postinstall_cmds='chmod 644 $oldlib' 6441old_postuninstall_cmds= 6442 6443if test -n "$RANLIB"; then 6444 case $host_os in 6445 bitrig* | openbsd*) 6446 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6447 ;; 6448 *) 6449 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6450 ;; 6451 esac 6452 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6453fi 6454 6455case $host_os in 6456 darwin*) 6457 lock_old_archive_extraction=yes ;; 6458 *) 6459 lock_old_archive_extraction=no ;; 6460esac 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500# If no C compiler was specified, use CC. 6501LTCC=${LTCC-"$CC"} 6502 6503# If no C compiler flags were specified, use CFLAGS. 6504LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6505 6506# Allow CC to be a program name with arguments. 6507compiler=$CC 6508 6509 6510# Check for command to grab the raw symbol name followed by C symbol from nm. 6511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6512$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6513if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6514 $as_echo_n "(cached) " >&6 6515else 6516 6517# These are sane defaults that work on at least a few old systems. 6518# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6519 6520# Character class describing NM global symbol codes. 6521symcode='[BCDEGRST]' 6522 6523# Regexp to match symbols that can be accessed directly from C. 6524sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6525 6526# Define system-specific variables. 6527case $host_os in 6528aix*) 6529 symcode='[BCDT]' 6530 ;; 6531cygwin* | mingw* | pw32* | cegcc*) 6532 symcode='[ABCDGISTW]' 6533 ;; 6534hpux*) 6535 if test ia64 = "$host_cpu"; then 6536 symcode='[ABCDEGRST]' 6537 fi 6538 ;; 6539irix* | nonstopux*) 6540 symcode='[BCDEGRST]' 6541 ;; 6542osf*) 6543 symcode='[BCDEGQRST]' 6544 ;; 6545solaris*) 6546 symcode='[BDRT]' 6547 ;; 6548sco3.2v5*) 6549 symcode='[DT]' 6550 ;; 6551sysv4.2uw2*) 6552 symcode='[DT]' 6553 ;; 6554sysv5* | sco5v6* | unixware* | OpenUNIX*) 6555 symcode='[ABDT]' 6556 ;; 6557sysv4) 6558 symcode='[DFNSTU]' 6559 ;; 6560esac 6561 6562# If we're using GNU nm, then use its standard symbol codes. 6563case `$NM -V 2>&1` in 6564*GNU* | *'with BFD'*) 6565 symcode='[ABCDGIRSTW]' ;; 6566esac 6567 6568if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6569 # Gets list of data symbols to import. 6570 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6571 # Adjust the below global symbol transforms to fixup imported variables. 6572 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6573 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6574 lt_c_name_lib_hook="\ 6575 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6576 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6577else 6578 # Disable hooks by default. 6579 lt_cv_sys_global_symbol_to_import= 6580 lt_cdecl_hook= 6581 lt_c_name_hook= 6582 lt_c_name_lib_hook= 6583fi 6584 6585# Transform an extracted symbol line into a proper C declaration. 6586# Some systems (esp. on ia64) link data and code symbols differently, 6587# so use this general approach. 6588lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6589$lt_cdecl_hook\ 6590" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6591" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6592 6593# Transform an extracted symbol line into symbol name and symbol address 6594lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6595$lt_c_name_hook\ 6596" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6597" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6598 6599# Transform an extracted symbol line into symbol name with lib prefix and 6600# symbol address. 6601lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6602$lt_c_name_lib_hook\ 6603" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6604" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6605" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6606 6607# Handle CRLF in mingw tool chain 6608opt_cr= 6609case $build_os in 6610mingw*) 6611 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6612 ;; 6613esac 6614 6615# Try without a prefix underscore, then with it. 6616for ac_symprfx in "" "_"; do 6617 6618 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6619 symxfrm="\\1 $ac_symprfx\\2 \\2" 6620 6621 # Write the raw and C identifiers. 6622 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6623 # Fake it for dumpbin and say T for any non-static function, 6624 # D for any global variable and I for any imported variable. 6625 # Also find C++ and __fastcall symbols from MSVC++, 6626 # which start with @ or ?. 6627 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6628" {last_section=section; section=\$ 3};"\ 6629" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6630" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6631" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6632" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6633" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6634" \$ 0!~/External *\|/{next};"\ 6635" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6636" {if(hide[section]) next};"\ 6637" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6638" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6639" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6640" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6641" ' prfx=^$ac_symprfx" 6642 else 6643 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6644 fi 6645 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6646 6647 # Check to see that the pipe works correctly. 6648 pipe_works=no 6649 6650 rm -f conftest* 6651 cat > conftest.$ac_ext <<_LT_EOF 6652#ifdef __cplusplus 6653extern "C" { 6654#endif 6655char nm_test_var; 6656void nm_test_func(void); 6657void nm_test_func(void){} 6658#ifdef __cplusplus 6659} 6660#endif 6661int main(){nm_test_var='a';nm_test_func();return(0);} 6662_LT_EOF 6663 6664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6665 (eval $ac_compile) 2>&5 6666 ac_status=$? 6667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6668 test $ac_status = 0; }; then 6669 # Now try to grab the symbols. 6670 nlist=conftest.nm 6671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6672 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6673 ac_status=$? 6674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6675 test $ac_status = 0; } && test -s "$nlist"; then 6676 # Try sorting and uniquifying the output. 6677 if sort "$nlist" | uniq > "$nlist"T; then 6678 mv -f "$nlist"T "$nlist" 6679 else 6680 rm -f "$nlist"T 6681 fi 6682 6683 # Make sure that we snagged all the symbols we need. 6684 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6685 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6686 cat <<_LT_EOF > conftest.$ac_ext 6687/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6688#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6689/* DATA imports from DLLs on WIN32 can't be const, because runtime 6690 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6691# define LT_DLSYM_CONST 6692#elif defined __osf__ 6693/* This system does not cope well with relocations in const data. */ 6694# define LT_DLSYM_CONST 6695#else 6696# define LT_DLSYM_CONST const 6697#endif 6698 6699#ifdef __cplusplus 6700extern "C" { 6701#endif 6702 6703_LT_EOF 6704 # Now generate the symbol file. 6705 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6706 6707 cat <<_LT_EOF >> conftest.$ac_ext 6708 6709/* The mapping between symbol names and symbols. */ 6710LT_DLSYM_CONST struct { 6711 const char *name; 6712 void *address; 6713} 6714lt__PROGRAM__LTX_preloaded_symbols[] = 6715{ 6716 { "@PROGRAM@", (void *) 0 }, 6717_LT_EOF 6718 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6719 cat <<\_LT_EOF >> conftest.$ac_ext 6720 {0, (void *) 0} 6721}; 6722 6723/* This works around a problem in FreeBSD linker */ 6724#ifdef FREEBSD_WORKAROUND 6725static const void *lt_preloaded_setup() { 6726 return lt__PROGRAM__LTX_preloaded_symbols; 6727} 6728#endif 6729 6730#ifdef __cplusplus 6731} 6732#endif 6733_LT_EOF 6734 # Now try linking the two files. 6735 mv conftest.$ac_objext conftstm.$ac_objext 6736 lt_globsym_save_LIBS=$LIBS 6737 lt_globsym_save_CFLAGS=$CFLAGS 6738 LIBS=conftstm.$ac_objext 6739 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6741 (eval $ac_link) 2>&5 6742 ac_status=$? 6743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6744 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6745 pipe_works=yes 6746 fi 6747 LIBS=$lt_globsym_save_LIBS 6748 CFLAGS=$lt_globsym_save_CFLAGS 6749 else 6750 echo "cannot find nm_test_func in $nlist" >&5 6751 fi 6752 else 6753 echo "cannot find nm_test_var in $nlist" >&5 6754 fi 6755 else 6756 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6757 fi 6758 else 6759 echo "$progname: failed program was:" >&5 6760 cat conftest.$ac_ext >&5 6761 fi 6762 rm -rf conftest* conftst* 6763 6764 # Do not use the global_symbol_pipe unless it works. 6765 if test yes = "$pipe_works"; then 6766 break 6767 else 6768 lt_cv_sys_global_symbol_pipe= 6769 fi 6770done 6771 6772fi 6773 6774if test -z "$lt_cv_sys_global_symbol_pipe"; then 6775 lt_cv_sys_global_symbol_to_cdecl= 6776fi 6777if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6779$as_echo "failed" >&6; } 6780else 6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6782$as_echo "ok" >&6; } 6783fi 6784 6785# Response file support. 6786if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6787 nm_file_list_spec='@' 6788elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6789 nm_file_list_spec='@' 6790fi 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6829$as_echo_n "checking for sysroot... " >&6; } 6830 6831# Check whether --with-sysroot was given. 6832if test "${with_sysroot+set}" = set; then : 6833 withval=$with_sysroot; 6834else 6835 with_sysroot=no 6836fi 6837 6838 6839lt_sysroot= 6840case $with_sysroot in #( 6841 yes) 6842 if test yes = "$GCC"; then 6843 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6844 fi 6845 ;; #( 6846 /*) 6847 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6848 ;; #( 6849 no|'') 6850 ;; #( 6851 *) 6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6853$as_echo "$with_sysroot" >&6; } 6854 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6855 ;; 6856esac 6857 6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6859$as_echo "${lt_sysroot:-no}" >&6; } 6860 6861 6862 6863 6864 6865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6866$as_echo_n "checking for a working dd... " >&6; } 6867if ${ac_cv_path_lt_DD+:} false; then : 6868 $as_echo_n "(cached) " >&6 6869else 6870 printf 0123456789abcdef0123456789abcdef >conftest.i 6871cat conftest.i conftest.i >conftest2.i 6872: ${lt_DD:=$DD} 6873if test -z "$lt_DD"; then 6874 ac_path_lt_DD_found=false 6875 # Loop through the user's path and test for each of PROGNAME-LIST 6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6877for as_dir in $PATH 6878do 6879 IFS=$as_save_IFS 6880 test -z "$as_dir" && as_dir=. 6881 for ac_prog in dd; do 6882 for ac_exec_ext in '' $ac_executable_extensions; do 6883 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6884 as_fn_executable_p "$ac_path_lt_DD" || continue 6885if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6886 cmp -s conftest.i conftest.out \ 6887 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6888fi 6889 $ac_path_lt_DD_found && break 3 6890 done 6891 done 6892 done 6893IFS=$as_save_IFS 6894 if test -z "$ac_cv_path_lt_DD"; then 6895 : 6896 fi 6897else 6898 ac_cv_path_lt_DD=$lt_DD 6899fi 6900 6901rm -f conftest.i conftest2.i conftest.out 6902fi 6903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6904$as_echo "$ac_cv_path_lt_DD" >&6; } 6905 6906 6907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6908$as_echo_n "checking how to truncate binary pipes... " >&6; } 6909if ${lt_cv_truncate_bin+:} false; then : 6910 $as_echo_n "(cached) " >&6 6911else 6912 printf 0123456789abcdef0123456789abcdef >conftest.i 6913cat conftest.i conftest.i >conftest2.i 6914lt_cv_truncate_bin= 6915if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6916 cmp -s conftest.i conftest.out \ 6917 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6918fi 6919rm -f conftest.i conftest2.i conftest.out 6920test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6921fi 6922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6923$as_echo "$lt_cv_truncate_bin" >&6; } 6924 6925 6926 6927 6928 6929 6930 6931# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6932func_cc_basename () 6933{ 6934 for cc_temp in $*""; do 6935 case $cc_temp in 6936 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6937 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6938 \-*) ;; 6939 *) break;; 6940 esac 6941 done 6942 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6943} 6944 6945# Check whether --enable-libtool-lock was given. 6946if test "${enable_libtool_lock+set}" = set; then : 6947 enableval=$enable_libtool_lock; 6948fi 6949 6950test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6951 6952# Some flags need to be propagated to the compiler or linker for good 6953# libtool support. 6954case $host in 6955ia64-*-hpux*) 6956 # Find out what ABI is being produced by ac_compile, and set mode 6957 # options accordingly. 6958 echo 'int i;' > conftest.$ac_ext 6959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6960 (eval $ac_compile) 2>&5 6961 ac_status=$? 6962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6963 test $ac_status = 0; }; then 6964 case `/usr/bin/file conftest.$ac_objext` in 6965 *ELF-32*) 6966 HPUX_IA64_MODE=32 6967 ;; 6968 *ELF-64*) 6969 HPUX_IA64_MODE=64 6970 ;; 6971 esac 6972 fi 6973 rm -rf conftest* 6974 ;; 6975*-*-irix6*) 6976 # Find out what ABI is being produced by ac_compile, and set linker 6977 # options accordingly. 6978 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6980 (eval $ac_compile) 2>&5 6981 ac_status=$? 6982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6983 test $ac_status = 0; }; then 6984 if test yes = "$lt_cv_prog_gnu_ld"; then 6985 case `/usr/bin/file conftest.$ac_objext` in 6986 *32-bit*) 6987 LD="${LD-ld} -melf32bsmip" 6988 ;; 6989 *N32*) 6990 LD="${LD-ld} -melf32bmipn32" 6991 ;; 6992 *64-bit*) 6993 LD="${LD-ld} -melf64bmip" 6994 ;; 6995 esac 6996 else 6997 case `/usr/bin/file conftest.$ac_objext` in 6998 *32-bit*) 6999 LD="${LD-ld} -32" 7000 ;; 7001 *N32*) 7002 LD="${LD-ld} -n32" 7003 ;; 7004 *64-bit*) 7005 LD="${LD-ld} -64" 7006 ;; 7007 esac 7008 fi 7009 fi 7010 rm -rf conftest* 7011 ;; 7012 7013mips64*-*linux*) 7014 # Find out what ABI is being produced by ac_compile, and set linker 7015 # options accordingly. 7016 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7017 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7018 (eval $ac_compile) 2>&5 7019 ac_status=$? 7020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7021 test $ac_status = 0; }; then 7022 emul=elf 7023 case `/usr/bin/file conftest.$ac_objext` in 7024 *32-bit*) 7025 emul="${emul}32" 7026 ;; 7027 *64-bit*) 7028 emul="${emul}64" 7029 ;; 7030 esac 7031 case `/usr/bin/file conftest.$ac_objext` in 7032 *MSB*) 7033 emul="${emul}btsmip" 7034 ;; 7035 *LSB*) 7036 emul="${emul}ltsmip" 7037 ;; 7038 esac 7039 case `/usr/bin/file conftest.$ac_objext` in 7040 *N32*) 7041 emul="${emul}n32" 7042 ;; 7043 esac 7044 LD="${LD-ld} -m $emul" 7045 fi 7046 rm -rf conftest* 7047 ;; 7048 7049x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7050s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7051 # Find out what ABI is being produced by ac_compile, and set linker 7052 # options accordingly. Note that the listed cases only cover the 7053 # situations where additional linker options are needed (such as when 7054 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7055 # vice versa); the common cases where no linker options are needed do 7056 # not appear in the list. 7057 echo 'int i;' > conftest.$ac_ext 7058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7059 (eval $ac_compile) 2>&5 7060 ac_status=$? 7061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7062 test $ac_status = 0; }; then 7063 case `/usr/bin/file conftest.o` in 7064 *32-bit*) 7065 case $host in 7066 x86_64-*kfreebsd*-gnu) 7067 LD="${LD-ld} -m elf_i386_fbsd" 7068 ;; 7069 x86_64-*linux*) 7070 case `/usr/bin/file conftest.o` in 7071 *x86-64*) 7072 LD="${LD-ld} -m elf32_x86_64" 7073 ;; 7074 *) 7075 LD="${LD-ld} -m elf_i386" 7076 ;; 7077 esac 7078 ;; 7079 powerpc64le-*linux*) 7080 LD="${LD-ld} -m elf32lppclinux" 7081 ;; 7082 powerpc64-*linux*) 7083 LD="${LD-ld} -m elf32ppclinux" 7084 ;; 7085 s390x-*linux*) 7086 LD="${LD-ld} -m elf_s390" 7087 ;; 7088 sparc64-*linux*) 7089 LD="${LD-ld} -m elf32_sparc" 7090 ;; 7091 esac 7092 ;; 7093 *64-bit*) 7094 case $host in 7095 x86_64-*kfreebsd*-gnu) 7096 LD="${LD-ld} -m elf_x86_64_fbsd" 7097 ;; 7098 x86_64-*linux*) 7099 LD="${LD-ld} -m elf_x86_64" 7100 ;; 7101 powerpcle-*linux*) 7102 LD="${LD-ld} -m elf64lppc" 7103 ;; 7104 powerpc-*linux*) 7105 LD="${LD-ld} -m elf64ppc" 7106 ;; 7107 s390*-*linux*|s390*-*tpf*) 7108 LD="${LD-ld} -m elf64_s390" 7109 ;; 7110 sparc*-*linux*) 7111 LD="${LD-ld} -m elf64_sparc" 7112 ;; 7113 esac 7114 ;; 7115 esac 7116 fi 7117 rm -rf conftest* 7118 ;; 7119 7120*-*-sco3.2v5*) 7121 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7122 SAVE_CFLAGS=$CFLAGS 7123 CFLAGS="$CFLAGS -belf" 7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7125$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7126if ${lt_cv_cc_needs_belf+:} false; then : 7127 $as_echo_n "(cached) " >&6 7128else 7129 ac_ext=c 7130ac_cpp='$CPP $CPPFLAGS' 7131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7133ac_compiler_gnu=$ac_cv_c_compiler_gnu 7134 7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7136/* end confdefs.h. */ 7137 7138int 7139main () 7140{ 7141 7142 ; 7143 return 0; 7144} 7145_ACEOF 7146if ac_fn_c_try_link "$LINENO"; then : 7147 lt_cv_cc_needs_belf=yes 7148else 7149 lt_cv_cc_needs_belf=no 7150fi 7151rm -f core conftest.err conftest.$ac_objext \ 7152 conftest$ac_exeext conftest.$ac_ext 7153 ac_ext=c 7154ac_cpp='$CPP $CPPFLAGS' 7155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7157ac_compiler_gnu=$ac_cv_c_compiler_gnu 7158 7159fi 7160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7161$as_echo "$lt_cv_cc_needs_belf" >&6; } 7162 if test yes != "$lt_cv_cc_needs_belf"; then 7163 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7164 CFLAGS=$SAVE_CFLAGS 7165 fi 7166 ;; 7167*-*solaris*) 7168 # Find out what ABI is being produced by ac_compile, and set linker 7169 # options accordingly. 7170 echo 'int i;' > conftest.$ac_ext 7171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7172 (eval $ac_compile) 2>&5 7173 ac_status=$? 7174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7175 test $ac_status = 0; }; then 7176 case `/usr/bin/file conftest.o` in 7177 *64-bit*) 7178 case $lt_cv_prog_gnu_ld in 7179 yes*) 7180 case $host in 7181 i?86-*-solaris*|x86_64-*-solaris*) 7182 LD="${LD-ld} -m elf_x86_64" 7183 ;; 7184 sparc*-*-solaris*) 7185 LD="${LD-ld} -m elf64_sparc" 7186 ;; 7187 esac 7188 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7189 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7190 LD=${LD-ld}_sol2 7191 fi 7192 ;; 7193 *) 7194 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7195 LD="${LD-ld} -64" 7196 fi 7197 ;; 7198 esac 7199 ;; 7200 esac 7201 fi 7202 rm -rf conftest* 7203 ;; 7204esac 7205 7206need_locks=$enable_libtool_lock 7207 7208if test -n "$ac_tool_prefix"; then 7209 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7210set dummy ${ac_tool_prefix}mt; ac_word=$2 7211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7212$as_echo_n "checking for $ac_word... " >&6; } 7213if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7214 $as_echo_n "(cached) " >&6 7215else 7216 if test -n "$MANIFEST_TOOL"; then 7217 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7218else 7219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7220for as_dir in $PATH 7221do 7222 IFS=$as_save_IFS 7223 test -z "$as_dir" && as_dir=. 7224 for ac_exec_ext in '' $ac_executable_extensions; do 7225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7226 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7228 break 2 7229 fi 7230done 7231 done 7232IFS=$as_save_IFS 7233 7234fi 7235fi 7236MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7237if test -n "$MANIFEST_TOOL"; then 7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7239$as_echo "$MANIFEST_TOOL" >&6; } 7240else 7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7242$as_echo "no" >&6; } 7243fi 7244 7245 7246fi 7247if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7248 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7249 # Extract the first word of "mt", so it can be a program name with args. 7250set dummy mt; ac_word=$2 7251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7252$as_echo_n "checking for $ac_word... " >&6; } 7253if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7254 $as_echo_n "(cached) " >&6 7255else 7256 if test -n "$ac_ct_MANIFEST_TOOL"; then 7257 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7258else 7259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7260for as_dir in $PATH 7261do 7262 IFS=$as_save_IFS 7263 test -z "$as_dir" && as_dir=. 7264 for ac_exec_ext in '' $ac_executable_extensions; do 7265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7266 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7268 break 2 7269 fi 7270done 7271 done 7272IFS=$as_save_IFS 7273 7274fi 7275fi 7276ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7277if test -n "$ac_ct_MANIFEST_TOOL"; then 7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7279$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7280else 7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7282$as_echo "no" >&6; } 7283fi 7284 7285 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7286 MANIFEST_TOOL=":" 7287 else 7288 case $cross_compiling:$ac_tool_warned in 7289yes:) 7290{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7291$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7292ac_tool_warned=yes ;; 7293esac 7294 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7295 fi 7296else 7297 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7298fi 7299 7300test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7302$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7303if ${lt_cv_path_mainfest_tool+:} false; then : 7304 $as_echo_n "(cached) " >&6 7305else 7306 lt_cv_path_mainfest_tool=no 7307 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7308 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7309 cat conftest.err >&5 7310 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7311 lt_cv_path_mainfest_tool=yes 7312 fi 7313 rm -f conftest* 7314fi 7315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7316$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7317if test yes != "$lt_cv_path_mainfest_tool"; then 7318 MANIFEST_TOOL=: 7319fi 7320 7321 7322 7323 7324 7325 7326 case $host_os in 7327 rhapsody* | darwin*) 7328 if test -n "$ac_tool_prefix"; then 7329 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7330set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7332$as_echo_n "checking for $ac_word... " >&6; } 7333if ${ac_cv_prog_DSYMUTIL+:} false; then : 7334 $as_echo_n "(cached) " >&6 7335else 7336 if test -n "$DSYMUTIL"; then 7337 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7338else 7339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7340for as_dir in $PATH 7341do 7342 IFS=$as_save_IFS 7343 test -z "$as_dir" && as_dir=. 7344 for ac_exec_ext in '' $ac_executable_extensions; do 7345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7346 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7348 break 2 7349 fi 7350done 7351 done 7352IFS=$as_save_IFS 7353 7354fi 7355fi 7356DSYMUTIL=$ac_cv_prog_DSYMUTIL 7357if test -n "$DSYMUTIL"; then 7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7359$as_echo "$DSYMUTIL" >&6; } 7360else 7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7362$as_echo "no" >&6; } 7363fi 7364 7365 7366fi 7367if test -z "$ac_cv_prog_DSYMUTIL"; then 7368 ac_ct_DSYMUTIL=$DSYMUTIL 7369 # Extract the first word of "dsymutil", so it can be a program name with args. 7370set dummy dsymutil; ac_word=$2 7371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7372$as_echo_n "checking for $ac_word... " >&6; } 7373if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7374 $as_echo_n "(cached) " >&6 7375else 7376 if test -n "$ac_ct_DSYMUTIL"; then 7377 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7378else 7379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7380for as_dir in $PATH 7381do 7382 IFS=$as_save_IFS 7383 test -z "$as_dir" && as_dir=. 7384 for ac_exec_ext in '' $ac_executable_extensions; do 7385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7386 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7388 break 2 7389 fi 7390done 7391 done 7392IFS=$as_save_IFS 7393 7394fi 7395fi 7396ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7397if test -n "$ac_ct_DSYMUTIL"; then 7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7399$as_echo "$ac_ct_DSYMUTIL" >&6; } 7400else 7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7402$as_echo "no" >&6; } 7403fi 7404 7405 if test "x$ac_ct_DSYMUTIL" = x; then 7406 DSYMUTIL=":" 7407 else 7408 case $cross_compiling:$ac_tool_warned in 7409yes:) 7410{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7411$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7412ac_tool_warned=yes ;; 7413esac 7414 DSYMUTIL=$ac_ct_DSYMUTIL 7415 fi 7416else 7417 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7418fi 7419 7420 if test -n "$ac_tool_prefix"; then 7421 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7422set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7424$as_echo_n "checking for $ac_word... " >&6; } 7425if ${ac_cv_prog_NMEDIT+:} false; then : 7426 $as_echo_n "(cached) " >&6 7427else 7428 if test -n "$NMEDIT"; then 7429 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7430else 7431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7432for as_dir in $PATH 7433do 7434 IFS=$as_save_IFS 7435 test -z "$as_dir" && as_dir=. 7436 for ac_exec_ext in '' $ac_executable_extensions; do 7437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7438 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7440 break 2 7441 fi 7442done 7443 done 7444IFS=$as_save_IFS 7445 7446fi 7447fi 7448NMEDIT=$ac_cv_prog_NMEDIT 7449if test -n "$NMEDIT"; then 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7451$as_echo "$NMEDIT" >&6; } 7452else 7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7454$as_echo "no" >&6; } 7455fi 7456 7457 7458fi 7459if test -z "$ac_cv_prog_NMEDIT"; then 7460 ac_ct_NMEDIT=$NMEDIT 7461 # Extract the first word of "nmedit", so it can be a program name with args. 7462set dummy nmedit; ac_word=$2 7463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7464$as_echo_n "checking for $ac_word... " >&6; } 7465if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7466 $as_echo_n "(cached) " >&6 7467else 7468 if test -n "$ac_ct_NMEDIT"; then 7469 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7470else 7471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7472for as_dir in $PATH 7473do 7474 IFS=$as_save_IFS 7475 test -z "$as_dir" && as_dir=. 7476 for ac_exec_ext in '' $ac_executable_extensions; do 7477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7478 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7480 break 2 7481 fi 7482done 7483 done 7484IFS=$as_save_IFS 7485 7486fi 7487fi 7488ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7489if test -n "$ac_ct_NMEDIT"; then 7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7491$as_echo "$ac_ct_NMEDIT" >&6; } 7492else 7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7494$as_echo "no" >&6; } 7495fi 7496 7497 if test "x$ac_ct_NMEDIT" = x; then 7498 NMEDIT=":" 7499 else 7500 case $cross_compiling:$ac_tool_warned in 7501yes:) 7502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7504ac_tool_warned=yes ;; 7505esac 7506 NMEDIT=$ac_ct_NMEDIT 7507 fi 7508else 7509 NMEDIT="$ac_cv_prog_NMEDIT" 7510fi 7511 7512 if test -n "$ac_tool_prefix"; then 7513 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7514set dummy ${ac_tool_prefix}lipo; ac_word=$2 7515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7516$as_echo_n "checking for $ac_word... " >&6; } 7517if ${ac_cv_prog_LIPO+:} false; then : 7518 $as_echo_n "(cached) " >&6 7519else 7520 if test -n "$LIPO"; then 7521 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7522else 7523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7524for as_dir in $PATH 7525do 7526 IFS=$as_save_IFS 7527 test -z "$as_dir" && as_dir=. 7528 for ac_exec_ext in '' $ac_executable_extensions; do 7529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7530 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7532 break 2 7533 fi 7534done 7535 done 7536IFS=$as_save_IFS 7537 7538fi 7539fi 7540LIPO=$ac_cv_prog_LIPO 7541if test -n "$LIPO"; then 7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7543$as_echo "$LIPO" >&6; } 7544else 7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7546$as_echo "no" >&6; } 7547fi 7548 7549 7550fi 7551if test -z "$ac_cv_prog_LIPO"; then 7552 ac_ct_LIPO=$LIPO 7553 # Extract the first word of "lipo", so it can be a program name with args. 7554set dummy lipo; ac_word=$2 7555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7556$as_echo_n "checking for $ac_word... " >&6; } 7557if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7558 $as_echo_n "(cached) " >&6 7559else 7560 if test -n "$ac_ct_LIPO"; then 7561 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7562else 7563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7564for as_dir in $PATH 7565do 7566 IFS=$as_save_IFS 7567 test -z "$as_dir" && as_dir=. 7568 for ac_exec_ext in '' $ac_executable_extensions; do 7569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7570 ac_cv_prog_ac_ct_LIPO="lipo" 7571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7572 break 2 7573 fi 7574done 7575 done 7576IFS=$as_save_IFS 7577 7578fi 7579fi 7580ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7581if test -n "$ac_ct_LIPO"; then 7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7583$as_echo "$ac_ct_LIPO" >&6; } 7584else 7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7586$as_echo "no" >&6; } 7587fi 7588 7589 if test "x$ac_ct_LIPO" = x; then 7590 LIPO=":" 7591 else 7592 case $cross_compiling:$ac_tool_warned in 7593yes:) 7594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7596ac_tool_warned=yes ;; 7597esac 7598 LIPO=$ac_ct_LIPO 7599 fi 7600else 7601 LIPO="$ac_cv_prog_LIPO" 7602fi 7603 7604 if test -n "$ac_tool_prefix"; then 7605 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7606set dummy ${ac_tool_prefix}otool; ac_word=$2 7607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7608$as_echo_n "checking for $ac_word... " >&6; } 7609if ${ac_cv_prog_OTOOL+:} false; then : 7610 $as_echo_n "(cached) " >&6 7611else 7612 if test -n "$OTOOL"; then 7613 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7614else 7615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7616for as_dir in $PATH 7617do 7618 IFS=$as_save_IFS 7619 test -z "$as_dir" && as_dir=. 7620 for ac_exec_ext in '' $ac_executable_extensions; do 7621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7622 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7624 break 2 7625 fi 7626done 7627 done 7628IFS=$as_save_IFS 7629 7630fi 7631fi 7632OTOOL=$ac_cv_prog_OTOOL 7633if test -n "$OTOOL"; then 7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7635$as_echo "$OTOOL" >&6; } 7636else 7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7638$as_echo "no" >&6; } 7639fi 7640 7641 7642fi 7643if test -z "$ac_cv_prog_OTOOL"; then 7644 ac_ct_OTOOL=$OTOOL 7645 # Extract the first word of "otool", so it can be a program name with args. 7646set dummy otool; ac_word=$2 7647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7648$as_echo_n "checking for $ac_word... " >&6; } 7649if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7650 $as_echo_n "(cached) " >&6 7651else 7652 if test -n "$ac_ct_OTOOL"; then 7653 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7654else 7655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7656for as_dir in $PATH 7657do 7658 IFS=$as_save_IFS 7659 test -z "$as_dir" && as_dir=. 7660 for ac_exec_ext in '' $ac_executable_extensions; do 7661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7662 ac_cv_prog_ac_ct_OTOOL="otool" 7663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7664 break 2 7665 fi 7666done 7667 done 7668IFS=$as_save_IFS 7669 7670fi 7671fi 7672ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7673if test -n "$ac_ct_OTOOL"; then 7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7675$as_echo "$ac_ct_OTOOL" >&6; } 7676else 7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7678$as_echo "no" >&6; } 7679fi 7680 7681 if test "x$ac_ct_OTOOL" = x; then 7682 OTOOL=":" 7683 else 7684 case $cross_compiling:$ac_tool_warned in 7685yes:) 7686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7688ac_tool_warned=yes ;; 7689esac 7690 OTOOL=$ac_ct_OTOOL 7691 fi 7692else 7693 OTOOL="$ac_cv_prog_OTOOL" 7694fi 7695 7696 if test -n "$ac_tool_prefix"; then 7697 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7698set dummy ${ac_tool_prefix}otool64; ac_word=$2 7699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7700$as_echo_n "checking for $ac_word... " >&6; } 7701if ${ac_cv_prog_OTOOL64+:} false; then : 7702 $as_echo_n "(cached) " >&6 7703else 7704 if test -n "$OTOOL64"; then 7705 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7706else 7707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7708for as_dir in $PATH 7709do 7710 IFS=$as_save_IFS 7711 test -z "$as_dir" && as_dir=. 7712 for ac_exec_ext in '' $ac_executable_extensions; do 7713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7714 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7716 break 2 7717 fi 7718done 7719 done 7720IFS=$as_save_IFS 7721 7722fi 7723fi 7724OTOOL64=$ac_cv_prog_OTOOL64 7725if test -n "$OTOOL64"; then 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7727$as_echo "$OTOOL64" >&6; } 7728else 7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7730$as_echo "no" >&6; } 7731fi 7732 7733 7734fi 7735if test -z "$ac_cv_prog_OTOOL64"; then 7736 ac_ct_OTOOL64=$OTOOL64 7737 # Extract the first word of "otool64", so it can be a program name with args. 7738set dummy otool64; ac_word=$2 7739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7740$as_echo_n "checking for $ac_word... " >&6; } 7741if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7742 $as_echo_n "(cached) " >&6 7743else 7744 if test -n "$ac_ct_OTOOL64"; then 7745 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7746else 7747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7748for as_dir in $PATH 7749do 7750 IFS=$as_save_IFS 7751 test -z "$as_dir" && as_dir=. 7752 for ac_exec_ext in '' $ac_executable_extensions; do 7753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7754 ac_cv_prog_ac_ct_OTOOL64="otool64" 7755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7756 break 2 7757 fi 7758done 7759 done 7760IFS=$as_save_IFS 7761 7762fi 7763fi 7764ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7765if test -n "$ac_ct_OTOOL64"; then 7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7767$as_echo "$ac_ct_OTOOL64" >&6; } 7768else 7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7770$as_echo "no" >&6; } 7771fi 7772 7773 if test "x$ac_ct_OTOOL64" = x; then 7774 OTOOL64=":" 7775 else 7776 case $cross_compiling:$ac_tool_warned in 7777yes:) 7778{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7780ac_tool_warned=yes ;; 7781esac 7782 OTOOL64=$ac_ct_OTOOL64 7783 fi 7784else 7785 OTOOL64="$ac_cv_prog_OTOOL64" 7786fi 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7815$as_echo_n "checking for -single_module linker flag... " >&6; } 7816if ${lt_cv_apple_cc_single_mod+:} false; then : 7817 $as_echo_n "(cached) " >&6 7818else 7819 lt_cv_apple_cc_single_mod=no 7820 if test -z "$LT_MULTI_MODULE"; then 7821 # By default we will add the -single_module flag. You can override 7822 # by either setting the environment variable LT_MULTI_MODULE 7823 # non-empty at configure time, or by adding -multi_module to the 7824 # link flags. 7825 rm -rf libconftest.dylib* 7826 echo "int foo(void){return 1;}" > conftest.c 7827 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7828-dynamiclib -Wl,-single_module conftest.c" >&5 7829 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7830 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7831 _lt_result=$? 7832 # If there is a non-empty error log, and "single_module" 7833 # appears in it, assume the flag caused a linker warning 7834 if test -s conftest.err && $GREP single_module conftest.err; then 7835 cat conftest.err >&5 7836 # Otherwise, if the output was created with a 0 exit code from 7837 # the compiler, it worked. 7838 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7839 lt_cv_apple_cc_single_mod=yes 7840 else 7841 cat conftest.err >&5 7842 fi 7843 rm -rf libconftest.dylib* 7844 rm -f conftest.* 7845 fi 7846fi 7847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7848$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7849 7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7851$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7852if ${lt_cv_ld_exported_symbols_list+:} false; then : 7853 $as_echo_n "(cached) " >&6 7854else 7855 lt_cv_ld_exported_symbols_list=no 7856 save_LDFLAGS=$LDFLAGS 7857 echo "_main" > conftest.sym 7858 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7860/* end confdefs.h. */ 7861 7862int 7863main () 7864{ 7865 7866 ; 7867 return 0; 7868} 7869_ACEOF 7870if ac_fn_c_try_link "$LINENO"; then : 7871 lt_cv_ld_exported_symbols_list=yes 7872else 7873 lt_cv_ld_exported_symbols_list=no 7874fi 7875rm -f core conftest.err conftest.$ac_objext \ 7876 conftest$ac_exeext conftest.$ac_ext 7877 LDFLAGS=$save_LDFLAGS 7878 7879fi 7880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7881$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7882 7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7884$as_echo_n "checking for -force_load linker flag... " >&6; } 7885if ${lt_cv_ld_force_load+:} false; then : 7886 $as_echo_n "(cached) " >&6 7887else 7888 lt_cv_ld_force_load=no 7889 cat > conftest.c << _LT_EOF 7890int forced_loaded() { return 2;} 7891_LT_EOF 7892 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7893 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7894 echo "$AR cru libconftest.a conftest.o" >&5 7895 $AR cru libconftest.a conftest.o 2>&5 7896 echo "$RANLIB libconftest.a" >&5 7897 $RANLIB libconftest.a 2>&5 7898 cat > conftest.c << _LT_EOF 7899int main() { return 0;} 7900_LT_EOF 7901 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7902 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7903 _lt_result=$? 7904 if test -s conftest.err && $GREP force_load conftest.err; then 7905 cat conftest.err >&5 7906 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7907 lt_cv_ld_force_load=yes 7908 else 7909 cat conftest.err >&5 7910 fi 7911 rm -f conftest.err libconftest.a conftest conftest.c 7912 rm -rf conftest.dSYM 7913 7914fi 7915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7916$as_echo "$lt_cv_ld_force_load" >&6; } 7917 case $host_os in 7918 rhapsody* | darwin1.[012]) 7919 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7920 darwin1.*) 7921 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7922 darwin*) # darwin 5.x on 7923 # if running on 10.5 or later, the deployment target defaults 7924 # to the OS version, if on x86, and 10.4, the deployment 7925 # target defaults to 10.4. Don't you love it? 7926 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7927 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7928 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7929 10.[012][,.]*) 7930 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7931 10.*) 7932 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7933 esac 7934 ;; 7935 esac 7936 if test yes = "$lt_cv_apple_cc_single_mod"; then 7937 _lt_dar_single_mod='$single_module' 7938 fi 7939 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7940 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7941 else 7942 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7943 fi 7944 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7945 _lt_dsymutil='~$DSYMUTIL $lib || :' 7946 else 7947 _lt_dsymutil= 7948 fi 7949 ;; 7950 esac 7951 7952# func_munge_path_list VARIABLE PATH 7953# ----------------------------------- 7954# VARIABLE is name of variable containing _space_ separated list of 7955# directories to be munged by the contents of PATH, which is string 7956# having a format: 7957# "DIR[:DIR]:" 7958# string "DIR[ DIR]" will be prepended to VARIABLE 7959# ":DIR[:DIR]" 7960# string "DIR[ DIR]" will be appended to VARIABLE 7961# "DIRP[:DIRP]::[DIRA:]DIRA" 7962# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7963# "DIRA[ DIRA]" will be appended to VARIABLE 7964# "DIR[:DIR]" 7965# VARIABLE will be replaced by "DIR[ DIR]" 7966func_munge_path_list () 7967{ 7968 case x$2 in 7969 x) 7970 ;; 7971 *:) 7972 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7973 ;; 7974 x:*) 7975 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7976 ;; 7977 *::*) 7978 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7979 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7980 ;; 7981 *) 7982 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7983 ;; 7984 esac 7985} 7986 7987ac_ext=c 7988ac_cpp='$CPP $CPPFLAGS' 7989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7991ac_compiler_gnu=$ac_cv_c_compiler_gnu 7992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7993$as_echo_n "checking how to run the C preprocessor... " >&6; } 7994# On Suns, sometimes $CPP names a directory. 7995if test -n "$CPP" && test -d "$CPP"; then 7996 CPP= 7997fi 7998if test -z "$CPP"; then 7999 if ${ac_cv_prog_CPP+:} false; then : 8000 $as_echo_n "(cached) " >&6 8001else 8002 # Double quotes because CPP needs to be expanded 8003 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8004 do 8005 ac_preproc_ok=false 8006for ac_c_preproc_warn_flag in '' yes 8007do 8008 # Use a header file that comes with gcc, so configuring glibc 8009 # with a fresh cross-compiler works. 8010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8011 # <limits.h> exists even on freestanding compilers. 8012 # On the NeXT, cc -E runs the code through the compiler's parser, 8013 # not just through cpp. "Syntax error" is here to catch this case. 8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8015/* end confdefs.h. */ 8016#ifdef __STDC__ 8017# include <limits.h> 8018#else 8019# include <assert.h> 8020#endif 8021 Syntax error 8022_ACEOF 8023if ac_fn_c_try_cpp "$LINENO"; then : 8024 8025else 8026 # Broken: fails on valid input. 8027continue 8028fi 8029rm -f conftest.err conftest.i conftest.$ac_ext 8030 8031 # OK, works on sane cases. Now check whether nonexistent headers 8032 # can be detected and how. 8033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8034/* end confdefs.h. */ 8035#include <ac_nonexistent.h> 8036_ACEOF 8037if ac_fn_c_try_cpp "$LINENO"; then : 8038 # Broken: success on invalid input. 8039continue 8040else 8041 # Passes both tests. 8042ac_preproc_ok=: 8043break 8044fi 8045rm -f conftest.err conftest.i conftest.$ac_ext 8046 8047done 8048# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8049rm -f conftest.i conftest.err conftest.$ac_ext 8050if $ac_preproc_ok; then : 8051 break 8052fi 8053 8054 done 8055 ac_cv_prog_CPP=$CPP 8056 8057fi 8058 CPP=$ac_cv_prog_CPP 8059else 8060 ac_cv_prog_CPP=$CPP 8061fi 8062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 8063$as_echo "$CPP" >&6; } 8064ac_preproc_ok=false 8065for ac_c_preproc_warn_flag in '' yes 8066do 8067 # Use a header file that comes with gcc, so configuring glibc 8068 # with a fresh cross-compiler works. 8069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8070 # <limits.h> exists even on freestanding compilers. 8071 # On the NeXT, cc -E runs the code through the compiler's parser, 8072 # not just through cpp. "Syntax error" is here to catch this case. 8073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8074/* end confdefs.h. */ 8075#ifdef __STDC__ 8076# include <limits.h> 8077#else 8078# include <assert.h> 8079#endif 8080 Syntax error 8081_ACEOF 8082if ac_fn_c_try_cpp "$LINENO"; then : 8083 8084else 8085 # Broken: fails on valid input. 8086continue 8087fi 8088rm -f conftest.err conftest.i conftest.$ac_ext 8089 8090 # OK, works on sane cases. Now check whether nonexistent headers 8091 # can be detected and how. 8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8093/* end confdefs.h. */ 8094#include <ac_nonexistent.h> 8095_ACEOF 8096if ac_fn_c_try_cpp "$LINENO"; then : 8097 # Broken: success on invalid input. 8098continue 8099else 8100 # Passes both tests. 8101ac_preproc_ok=: 8102break 8103fi 8104rm -f conftest.err conftest.i conftest.$ac_ext 8105 8106done 8107# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8108rm -f conftest.i conftest.err conftest.$ac_ext 8109if $ac_preproc_ok; then : 8110 8111else 8112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8114as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8115See \`config.log' for more details" "$LINENO" 5; } 8116fi 8117 8118ac_ext=c 8119ac_cpp='$CPP $CPPFLAGS' 8120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8122ac_compiler_gnu=$ac_cv_c_compiler_gnu 8123 8124 8125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8126$as_echo_n "checking for ANSI C header files... " >&6; } 8127if ${ac_cv_header_stdc+:} false; then : 8128 $as_echo_n "(cached) " >&6 8129else 8130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8131/* end confdefs.h. */ 8132#include <stdlib.h> 8133#include <stdarg.h> 8134#include <string.h> 8135#include <float.h> 8136 8137int 8138main () 8139{ 8140 8141 ; 8142 return 0; 8143} 8144_ACEOF 8145if ac_fn_c_try_compile "$LINENO"; then : 8146 ac_cv_header_stdc=yes 8147else 8148 ac_cv_header_stdc=no 8149fi 8150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8151 8152if test $ac_cv_header_stdc = yes; then 8153 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8155/* end confdefs.h. */ 8156#include <string.h> 8157 8158_ACEOF 8159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8160 $EGREP "memchr" >/dev/null 2>&1; then : 8161 8162else 8163 ac_cv_header_stdc=no 8164fi 8165rm -f conftest* 8166 8167fi 8168 8169if test $ac_cv_header_stdc = yes; then 8170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8172/* end confdefs.h. */ 8173#include <stdlib.h> 8174 8175_ACEOF 8176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8177 $EGREP "free" >/dev/null 2>&1; then : 8178 8179else 8180 ac_cv_header_stdc=no 8181fi 8182rm -f conftest* 8183 8184fi 8185 8186if test $ac_cv_header_stdc = yes; then 8187 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8188 if test "$cross_compiling" = yes; then : 8189 : 8190else 8191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8192/* end confdefs.h. */ 8193#include <ctype.h> 8194#include <stdlib.h> 8195#if ((' ' & 0x0FF) == 0x020) 8196# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8197# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8198#else 8199# define ISLOWER(c) \ 8200 (('a' <= (c) && (c) <= 'i') \ 8201 || ('j' <= (c) && (c) <= 'r') \ 8202 || ('s' <= (c) && (c) <= 'z')) 8203# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8204#endif 8205 8206#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8207int 8208main () 8209{ 8210 int i; 8211 for (i = 0; i < 256; i++) 8212 if (XOR (islower (i), ISLOWER (i)) 8213 || toupper (i) != TOUPPER (i)) 8214 return 2; 8215 return 0; 8216} 8217_ACEOF 8218if ac_fn_c_try_run "$LINENO"; then : 8219 8220else 8221 ac_cv_header_stdc=no 8222fi 8223rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8224 conftest.$ac_objext conftest.beam conftest.$ac_ext 8225fi 8226 8227fi 8228fi 8229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8230$as_echo "$ac_cv_header_stdc" >&6; } 8231if test $ac_cv_header_stdc = yes; then 8232 8233$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8234 8235fi 8236 8237# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8238for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8239 inttypes.h stdint.h unistd.h 8240do : 8241 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8242ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8243" 8244if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8245 cat >>confdefs.h <<_ACEOF 8246#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8247_ACEOF 8248 8249fi 8250 8251done 8252 8253 8254for ac_header in dlfcn.h 8255do : 8256 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8257" 8258if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8259 cat >>confdefs.h <<_ACEOF 8260#define HAVE_DLFCN_H 1 8261_ACEOF 8262 8263fi 8264 8265done 8266 8267 8268 8269 8270func_stripname_cnf () 8271{ 8272 case $2 in 8273 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 8274 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 8275 esac 8276} # func_stripname_cnf 8277 8278 8279 8280 8281 8282# Set options 8283 8284 8285 8286 enable_dlopen=no 8287 8288 8289 enable_win32_dll=no 8290 8291 8292 # Check whether --enable-shared was given. 8293if test "${enable_shared+set}" = set; then : 8294 enableval=$enable_shared; p=${PACKAGE-default} 8295 case $enableval in 8296 yes) enable_shared=yes ;; 8297 no) enable_shared=no ;; 8298 *) 8299 enable_shared=no 8300 # Look at the argument we got. We use all the common list separators. 8301 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8302 for pkg in $enableval; do 8303 IFS=$lt_save_ifs 8304 if test "X$pkg" = "X$p"; then 8305 enable_shared=yes 8306 fi 8307 done 8308 IFS=$lt_save_ifs 8309 ;; 8310 esac 8311else 8312 enable_shared=yes 8313fi 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 # Check whether --enable-static was given. 8324if test "${enable_static+set}" = set; then : 8325 enableval=$enable_static; p=${PACKAGE-default} 8326 case $enableval in 8327 yes) enable_static=yes ;; 8328 no) enable_static=no ;; 8329 *) 8330 enable_static=no 8331 # Look at the argument we got. We use all the common list separators. 8332 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8333 for pkg in $enableval; do 8334 IFS=$lt_save_ifs 8335 if test "X$pkg" = "X$p"; then 8336 enable_static=yes 8337 fi 8338 done 8339 IFS=$lt_save_ifs 8340 ;; 8341 esac 8342else 8343 enable_static=yes 8344fi 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355# Check whether --with-pic was given. 8356if test "${with_pic+set}" = set; then : 8357 withval=$with_pic; lt_p=${PACKAGE-default} 8358 case $withval in 8359 yes|no) pic_mode=$withval ;; 8360 *) 8361 pic_mode=default 8362 # Look at the argument we got. We use all the common list separators. 8363 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8364 for lt_pkg in $withval; do 8365 IFS=$lt_save_ifs 8366 if test "X$lt_pkg" = "X$lt_p"; then 8367 pic_mode=yes 8368 fi 8369 done 8370 IFS=$lt_save_ifs 8371 ;; 8372 esac 8373else 8374 pic_mode=default 8375fi 8376 8377 8378 8379 8380 8381 8382 8383 8384 # Check whether --enable-fast-install was given. 8385if test "${enable_fast_install+set}" = set; then : 8386 enableval=$enable_fast_install; p=${PACKAGE-default} 8387 case $enableval in 8388 yes) enable_fast_install=yes ;; 8389 no) enable_fast_install=no ;; 8390 *) 8391 enable_fast_install=no 8392 # Look at the argument we got. We use all the common list separators. 8393 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8394 for pkg in $enableval; do 8395 IFS=$lt_save_ifs 8396 if test "X$pkg" = "X$p"; then 8397 enable_fast_install=yes 8398 fi 8399 done 8400 IFS=$lt_save_ifs 8401 ;; 8402 esac 8403else 8404 enable_fast_install=yes 8405fi 8406 8407 8408 8409 8410 8411 8412 8413 8414 shared_archive_member_spec= 8415case $host,$enable_shared in 8416power*-*-aix[5-9]*,yes) 8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8418$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8419 8420# Check whether --with-aix-soname was given. 8421if test "${with_aix_soname+set}" = set; then : 8422 withval=$with_aix_soname; case $withval in 8423 aix|svr4|both) 8424 ;; 8425 *) 8426 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8427 ;; 8428 esac 8429 lt_cv_with_aix_soname=$with_aix_soname 8430else 8431 if ${lt_cv_with_aix_soname+:} false; then : 8432 $as_echo_n "(cached) " >&6 8433else 8434 lt_cv_with_aix_soname=aix 8435fi 8436 8437 with_aix_soname=$lt_cv_with_aix_soname 8438fi 8439 8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8441$as_echo "$with_aix_soname" >&6; } 8442 if test aix != "$with_aix_soname"; then 8443 # For the AIX way of multilib, we name the shared archive member 8444 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8445 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8446 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8447 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8448 if test 64 = "${OBJECT_MODE-32}"; then 8449 shared_archive_member_spec=shr_64 8450 else 8451 shared_archive_member_spec=shr 8452 fi 8453 fi 8454 ;; 8455*) 8456 with_aix_soname=aix 8457 ;; 8458esac 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469# This can be used to rebuild libtool when needed 8470LIBTOOL_DEPS=$ltmain 8471 8472# Always use our own libtool. 8473LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504test -z "$LN_S" && LN_S="ln -s" 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519if test -n "${ZSH_VERSION+set}"; then 8520 setopt NO_GLOB_SUBST 8521fi 8522 8523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8524$as_echo_n "checking for objdir... " >&6; } 8525if ${lt_cv_objdir+:} false; then : 8526 $as_echo_n "(cached) " >&6 8527else 8528 rm -f .libs 2>/dev/null 8529mkdir .libs 2>/dev/null 8530if test -d .libs; then 8531 lt_cv_objdir=.libs 8532else 8533 # MS-DOS does not allow filenames that begin with a dot. 8534 lt_cv_objdir=_libs 8535fi 8536rmdir .libs 2>/dev/null 8537fi 8538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8539$as_echo "$lt_cv_objdir" >&6; } 8540objdir=$lt_cv_objdir 8541 8542 8543 8544 8545 8546cat >>confdefs.h <<_ACEOF 8547#define LT_OBJDIR "$lt_cv_objdir/" 8548_ACEOF 8549 8550 8551 8552 8553case $host_os in 8554aix3*) 8555 # AIX sometimes has problems with the GCC collect2 program. For some 8556 # reason, if we set the COLLECT_NAMES environment variable, the problems 8557 # vanish in a puff of smoke. 8558 if test set != "${COLLECT_NAMES+set}"; then 8559 COLLECT_NAMES= 8560 export COLLECT_NAMES 8561 fi 8562 ;; 8563esac 8564 8565# Global variables: 8566ofile=libtool 8567can_build_shared=yes 8568 8569# All known linkers require a '.a' archive for static linking (except MSVC, 8570# which needs '.lib'). 8571libext=a 8572 8573with_gnu_ld=$lt_cv_prog_gnu_ld 8574 8575old_CC=$CC 8576old_CFLAGS=$CFLAGS 8577 8578# Set sane defaults for various variables 8579test -z "$CC" && CC=cc 8580test -z "$LTCC" && LTCC=$CC 8581test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8582test -z "$LD" && LD=ld 8583test -z "$ac_objext" && ac_objext=o 8584 8585func_cc_basename $compiler 8586cc_basename=$func_cc_basename_result 8587 8588 8589# Only perform the check for file, if the check method requires it 8590test -z "$MAGIC_CMD" && MAGIC_CMD=file 8591case $deplibs_check_method in 8592file_magic*) 8593 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8595$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8596if ${lt_cv_path_MAGIC_CMD+:} false; then : 8597 $as_echo_n "(cached) " >&6 8598else 8599 case $MAGIC_CMD in 8600[\\/*] | ?:[\\/]*) 8601 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8602 ;; 8603*) 8604 lt_save_MAGIC_CMD=$MAGIC_CMD 8605 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8606 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8607 for ac_dir in $ac_dummy; do 8608 IFS=$lt_save_ifs 8609 test -z "$ac_dir" && ac_dir=. 8610 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8611 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8612 if test -n "$file_magic_test_file"; then 8613 case $deplibs_check_method in 8614 "file_magic "*) 8615 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8616 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8617 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8618 $EGREP "$file_magic_regex" > /dev/null; then 8619 : 8620 else 8621 cat <<_LT_EOF 1>&2 8622 8623*** Warning: the command libtool uses to detect shared libraries, 8624*** $file_magic_cmd, produces output that libtool cannot recognize. 8625*** The result is that libtool may fail to recognize shared libraries 8626*** as such. This will affect the creation of libtool libraries that 8627*** depend on shared libraries, but programs linked with such libtool 8628*** libraries will work regardless of this problem. Nevertheless, you 8629*** may want to report the problem to your system manager and/or to 8630*** bug-libtool@gnu.org 8631 8632_LT_EOF 8633 fi ;; 8634 esac 8635 fi 8636 break 8637 fi 8638 done 8639 IFS=$lt_save_ifs 8640 MAGIC_CMD=$lt_save_MAGIC_CMD 8641 ;; 8642esac 8643fi 8644 8645MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8646if test -n "$MAGIC_CMD"; then 8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8648$as_echo "$MAGIC_CMD" >&6; } 8649else 8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8651$as_echo "no" >&6; } 8652fi 8653 8654 8655 8656 8657 8658if test -z "$lt_cv_path_MAGIC_CMD"; then 8659 if test -n "$ac_tool_prefix"; then 8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8661$as_echo_n "checking for file... " >&6; } 8662if ${lt_cv_path_MAGIC_CMD+:} false; then : 8663 $as_echo_n "(cached) " >&6 8664else 8665 case $MAGIC_CMD in 8666[\\/*] | ?:[\\/]*) 8667 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8668 ;; 8669*) 8670 lt_save_MAGIC_CMD=$MAGIC_CMD 8671 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8672 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8673 for ac_dir in $ac_dummy; do 8674 IFS=$lt_save_ifs 8675 test -z "$ac_dir" && ac_dir=. 8676 if test -f "$ac_dir/file"; then 8677 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8678 if test -n "$file_magic_test_file"; then 8679 case $deplibs_check_method in 8680 "file_magic "*) 8681 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8682 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8683 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8684 $EGREP "$file_magic_regex" > /dev/null; then 8685 : 8686 else 8687 cat <<_LT_EOF 1>&2 8688 8689*** Warning: the command libtool uses to detect shared libraries, 8690*** $file_magic_cmd, produces output that libtool cannot recognize. 8691*** The result is that libtool may fail to recognize shared libraries 8692*** as such. This will affect the creation of libtool libraries that 8693*** depend on shared libraries, but programs linked with such libtool 8694*** libraries will work regardless of this problem. Nevertheless, you 8695*** may want to report the problem to your system manager and/or to 8696*** bug-libtool@gnu.org 8697 8698_LT_EOF 8699 fi ;; 8700 esac 8701 fi 8702 break 8703 fi 8704 done 8705 IFS=$lt_save_ifs 8706 MAGIC_CMD=$lt_save_MAGIC_CMD 8707 ;; 8708esac 8709fi 8710 8711MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8712if test -n "$MAGIC_CMD"; then 8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8714$as_echo "$MAGIC_CMD" >&6; } 8715else 8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8717$as_echo "no" >&6; } 8718fi 8719 8720 8721 else 8722 MAGIC_CMD=: 8723 fi 8724fi 8725 8726 fi 8727 ;; 8728esac 8729 8730# Use C for the default configuration in the libtool script 8731 8732lt_save_CC=$CC 8733ac_ext=c 8734ac_cpp='$CPP $CPPFLAGS' 8735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8737ac_compiler_gnu=$ac_cv_c_compiler_gnu 8738 8739 8740# Source file extension for C test sources. 8741ac_ext=c 8742 8743# Object file extension for compiled C test sources. 8744objext=o 8745objext=$objext 8746 8747# Code to be used in simple compile tests 8748lt_simple_compile_test_code="int some_variable = 0;" 8749 8750# Code to be used in simple link tests 8751lt_simple_link_test_code='int main(){return(0);}' 8752 8753 8754 8755 8756 8757 8758 8759# If no C compiler was specified, use CC. 8760LTCC=${LTCC-"$CC"} 8761 8762# If no C compiler flags were specified, use CFLAGS. 8763LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8764 8765# Allow CC to be a program name with arguments. 8766compiler=$CC 8767 8768# Save the default compiler, since it gets overwritten when the other 8769# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8770compiler_DEFAULT=$CC 8771 8772# save warnings/boilerplate of simple test code 8773ac_outfile=conftest.$ac_objext 8774echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8775eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8776_lt_compiler_boilerplate=`cat conftest.err` 8777$RM conftest* 8778 8779ac_outfile=conftest.$ac_objext 8780echo "$lt_simple_link_test_code" >conftest.$ac_ext 8781eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8782_lt_linker_boilerplate=`cat conftest.err` 8783$RM -r conftest* 8784 8785 8786if test -n "$compiler"; then 8787 8788lt_prog_compiler_no_builtin_flag= 8789 8790if test yes = "$GCC"; then 8791 case $cc_basename in 8792 nvcc*) 8793 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8794 *) 8795 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8796 esac 8797 8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8799$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8800if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8801 $as_echo_n "(cached) " >&6 8802else 8803 lt_cv_prog_compiler_rtti_exceptions=no 8804 ac_outfile=conftest.$ac_objext 8805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8806 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8807 # Insert the option either (1) after the last *FLAGS variable, or 8808 # (2) before a word containing "conftest.", or (3) at the end. 8809 # Note that $ac_compile itself does not contain backslashes and begins 8810 # with a dollar sign (not a hyphen), so the echo should work correctly. 8811 # The option is referenced via a variable to avoid confusing sed. 8812 lt_compile=`echo "$ac_compile" | $SED \ 8813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8815 -e 's:$: $lt_compiler_flag:'` 8816 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8817 (eval "$lt_compile" 2>conftest.err) 8818 ac_status=$? 8819 cat conftest.err >&5 8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8821 if (exit $ac_status) && test -s "$ac_outfile"; then 8822 # The compiler can only warn and ignore the option if not recognized 8823 # So say no if there are warnings other than the usual output. 8824 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8826 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8827 lt_cv_prog_compiler_rtti_exceptions=yes 8828 fi 8829 fi 8830 $RM conftest* 8831 8832fi 8833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8834$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8835 8836if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8837 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8838else 8839 : 8840fi 8841 8842fi 8843 8844 8845 8846 8847 8848 8849 lt_prog_compiler_wl= 8850lt_prog_compiler_pic= 8851lt_prog_compiler_static= 8852 8853 8854 if test yes = "$GCC"; then 8855 lt_prog_compiler_wl='-Wl,' 8856 lt_prog_compiler_static='-static' 8857 8858 case $host_os in 8859 aix*) 8860 # All AIX code is PIC. 8861 if test ia64 = "$host_cpu"; then 8862 # AIX 5 now supports IA64 processor 8863 lt_prog_compiler_static='-Bstatic' 8864 fi 8865 lt_prog_compiler_pic='-fPIC' 8866 ;; 8867 8868 amigaos*) 8869 case $host_cpu in 8870 powerpc) 8871 # see comment about AmigaOS4 .so support 8872 lt_prog_compiler_pic='-fPIC' 8873 ;; 8874 m68k) 8875 # FIXME: we need at least 68020 code to build shared libraries, but 8876 # adding the '-m68020' flag to GCC prevents building anything better, 8877 # like '-m68040'. 8878 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8879 ;; 8880 esac 8881 ;; 8882 8883 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8884 # PIC is the default for these OSes. 8885 ;; 8886 8887 mingw* | cygwin* | pw32* | os2* | cegcc*) 8888 # This hack is so that the source file can tell whether it is being 8889 # built for inclusion in a dll (and should export symbols for example). 8890 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8891 # (--disable-auto-import) libraries 8892 lt_prog_compiler_pic='-DDLL_EXPORT' 8893 case $host_os in 8894 os2*) 8895 lt_prog_compiler_static='$wl-static' 8896 ;; 8897 esac 8898 ;; 8899 8900 darwin* | rhapsody*) 8901 # PIC is the default on this platform 8902 # Common symbols not allowed in MH_DYLIB files 8903 lt_prog_compiler_pic='-fno-common' 8904 ;; 8905 8906 haiku*) 8907 # PIC is the default for Haiku. 8908 # The "-static" flag exists, but is broken. 8909 lt_prog_compiler_static= 8910 ;; 8911 8912 hpux*) 8913 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8914 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8915 # sets the default TLS model and affects inlining. 8916 case $host_cpu in 8917 hppa*64*) 8918 # +Z the default 8919 ;; 8920 *) 8921 lt_prog_compiler_pic='-fPIC' 8922 ;; 8923 esac 8924 ;; 8925 8926 interix[3-9]*) 8927 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8928 # Instead, we relocate shared libraries at runtime. 8929 ;; 8930 8931 msdosdjgpp*) 8932 # Just because we use GCC doesn't mean we suddenly get shared libraries 8933 # on systems that don't support them. 8934 lt_prog_compiler_can_build_shared=no 8935 enable_shared=no 8936 ;; 8937 8938 *nto* | *qnx*) 8939 # QNX uses GNU C++, but need to define -shared option too, otherwise 8940 # it will coredump. 8941 lt_prog_compiler_pic='-fPIC -shared' 8942 ;; 8943 8944 sysv4*MP*) 8945 if test -d /usr/nec; then 8946 lt_prog_compiler_pic=-Kconform_pic 8947 fi 8948 ;; 8949 8950 *) 8951 lt_prog_compiler_pic='-fPIC' 8952 ;; 8953 esac 8954 8955 case $cc_basename in 8956 nvcc*) # Cuda Compiler Driver 2.2 8957 lt_prog_compiler_wl='-Xlinker ' 8958 if test -n "$lt_prog_compiler_pic"; then 8959 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8960 fi 8961 ;; 8962 esac 8963 else 8964 # PORTME Check for flag to pass linker flags through the system compiler. 8965 case $host_os in 8966 aix*) 8967 lt_prog_compiler_wl='-Wl,' 8968 if test ia64 = "$host_cpu"; then 8969 # AIX 5 now supports IA64 processor 8970 lt_prog_compiler_static='-Bstatic' 8971 else 8972 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8973 fi 8974 ;; 8975 8976 darwin* | rhapsody*) 8977 # PIC is the default on this platform 8978 # Common symbols not allowed in MH_DYLIB files 8979 lt_prog_compiler_pic='-fno-common' 8980 case $cc_basename in 8981 nagfor*) 8982 # NAG Fortran compiler 8983 lt_prog_compiler_wl='-Wl,-Wl,,' 8984 lt_prog_compiler_pic='-PIC' 8985 lt_prog_compiler_static='-Bstatic' 8986 ;; 8987 esac 8988 ;; 8989 8990 mingw* | cygwin* | pw32* | os2* | cegcc*) 8991 # This hack is so that the source file can tell whether it is being 8992 # built for inclusion in a dll (and should export symbols for example). 8993 lt_prog_compiler_pic='-DDLL_EXPORT' 8994 case $host_os in 8995 os2*) 8996 lt_prog_compiler_static='$wl-static' 8997 ;; 8998 esac 8999 ;; 9000 9001 hpux9* | hpux10* | hpux11*) 9002 lt_prog_compiler_wl='-Wl,' 9003 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9004 # not for PA HP-UX. 9005 case $host_cpu in 9006 hppa*64*|ia64*) 9007 # +Z the default 9008 ;; 9009 *) 9010 lt_prog_compiler_pic='+Z' 9011 ;; 9012 esac 9013 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9014 lt_prog_compiler_static='$wl-a ${wl}archive' 9015 ;; 9016 9017 irix5* | irix6* | nonstopux*) 9018 lt_prog_compiler_wl='-Wl,' 9019 # PIC (with -KPIC) is the default. 9020 lt_prog_compiler_static='-non_shared' 9021 ;; 9022 9023 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9024 case $cc_basename in 9025 # old Intel for x86_64, which still supported -KPIC. 9026 ecc*) 9027 lt_prog_compiler_wl='-Wl,' 9028 lt_prog_compiler_pic='-KPIC' 9029 lt_prog_compiler_static='-static' 9030 ;; 9031 # icc used to be incompatible with GCC. 9032 # ICC 10 doesn't accept -KPIC any more. 9033 icc* | ifort*) 9034 lt_prog_compiler_wl='-Wl,' 9035 lt_prog_compiler_pic='-fPIC' 9036 lt_prog_compiler_static='-static' 9037 ;; 9038 # Lahey Fortran 8.1. 9039 lf95*) 9040 lt_prog_compiler_wl='-Wl,' 9041 lt_prog_compiler_pic='--shared' 9042 lt_prog_compiler_static='--static' 9043 ;; 9044 nagfor*) 9045 # NAG Fortran compiler 9046 lt_prog_compiler_wl='-Wl,-Wl,,' 9047 lt_prog_compiler_pic='-PIC' 9048 lt_prog_compiler_static='-Bstatic' 9049 ;; 9050 tcc*) 9051 # Fabrice Bellard et al's Tiny C Compiler 9052 lt_prog_compiler_wl='-Wl,' 9053 lt_prog_compiler_pic='-fPIC' 9054 lt_prog_compiler_static='-static' 9055 ;; 9056 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9057 # Portland Group compilers (*not* the Pentium gcc compiler, 9058 # which looks to be a dead project) 9059 lt_prog_compiler_wl='-Wl,' 9060 lt_prog_compiler_pic='-fpic' 9061 lt_prog_compiler_static='-Bstatic' 9062 ;; 9063 ccc*) 9064 lt_prog_compiler_wl='-Wl,' 9065 # All Alpha code is PIC. 9066 lt_prog_compiler_static='-non_shared' 9067 ;; 9068 xl* | bgxl* | bgf* | mpixl*) 9069 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9070 lt_prog_compiler_wl='-Wl,' 9071 lt_prog_compiler_pic='-qpic' 9072 lt_prog_compiler_static='-qstaticlink' 9073 ;; 9074 *) 9075 case `$CC -V 2>&1 | sed 5q` in 9076 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9077 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9078 lt_prog_compiler_pic='-KPIC' 9079 lt_prog_compiler_static='-Bstatic' 9080 lt_prog_compiler_wl='' 9081 ;; 9082 *Sun\ F* | *Sun*Fortran*) 9083 lt_prog_compiler_pic='-KPIC' 9084 lt_prog_compiler_static='-Bstatic' 9085 lt_prog_compiler_wl='-Qoption ld ' 9086 ;; 9087 *Sun\ C*) 9088 # Sun C 5.9 9089 lt_prog_compiler_pic='-KPIC' 9090 lt_prog_compiler_static='-Bstatic' 9091 lt_prog_compiler_wl='-Wl,' 9092 ;; 9093 *Intel*\ [CF]*Compiler*) 9094 lt_prog_compiler_wl='-Wl,' 9095 lt_prog_compiler_pic='-fPIC' 9096 lt_prog_compiler_static='-static' 9097 ;; 9098 *Portland\ Group*) 9099 lt_prog_compiler_wl='-Wl,' 9100 lt_prog_compiler_pic='-fpic' 9101 lt_prog_compiler_static='-Bstatic' 9102 ;; 9103 esac 9104 ;; 9105 esac 9106 ;; 9107 9108 newsos6) 9109 lt_prog_compiler_pic='-KPIC' 9110 lt_prog_compiler_static='-Bstatic' 9111 ;; 9112 9113 *nto* | *qnx*) 9114 # QNX uses GNU C++, but need to define -shared option too, otherwise 9115 # it will coredump. 9116 lt_prog_compiler_pic='-fPIC -shared' 9117 ;; 9118 9119 osf3* | osf4* | osf5*) 9120 lt_prog_compiler_wl='-Wl,' 9121 # All OSF/1 code is PIC. 9122 lt_prog_compiler_static='-non_shared' 9123 ;; 9124 9125 rdos*) 9126 lt_prog_compiler_static='-non_shared' 9127 ;; 9128 9129 solaris*) 9130 lt_prog_compiler_pic='-KPIC' 9131 lt_prog_compiler_static='-Bstatic' 9132 case $cc_basename in 9133 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9134 lt_prog_compiler_wl='-Qoption ld ';; 9135 *) 9136 lt_prog_compiler_wl='-Wl,';; 9137 esac 9138 ;; 9139 9140 sunos4*) 9141 lt_prog_compiler_wl='-Qoption ld ' 9142 lt_prog_compiler_pic='-PIC' 9143 lt_prog_compiler_static='-Bstatic' 9144 ;; 9145 9146 sysv4 | sysv4.2uw2* | sysv4.3*) 9147 lt_prog_compiler_wl='-Wl,' 9148 lt_prog_compiler_pic='-KPIC' 9149 lt_prog_compiler_static='-Bstatic' 9150 ;; 9151 9152 sysv4*MP*) 9153 if test -d /usr/nec; then 9154 lt_prog_compiler_pic='-Kconform_pic' 9155 lt_prog_compiler_static='-Bstatic' 9156 fi 9157 ;; 9158 9159 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9160 lt_prog_compiler_wl='-Wl,' 9161 lt_prog_compiler_pic='-KPIC' 9162 lt_prog_compiler_static='-Bstatic' 9163 ;; 9164 9165 unicos*) 9166 lt_prog_compiler_wl='-Wl,' 9167 lt_prog_compiler_can_build_shared=no 9168 ;; 9169 9170 uts4*) 9171 lt_prog_compiler_pic='-pic' 9172 lt_prog_compiler_static='-Bstatic' 9173 ;; 9174 9175 *) 9176 lt_prog_compiler_can_build_shared=no 9177 ;; 9178 esac 9179 fi 9180 9181case $host_os in 9182 # For platforms that do not support PIC, -DPIC is meaningless: 9183 *djgpp*) 9184 lt_prog_compiler_pic= 9185 ;; 9186 *) 9187 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9188 ;; 9189esac 9190 9191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9192$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9193if ${lt_cv_prog_compiler_pic+:} false; then : 9194 $as_echo_n "(cached) " >&6 9195else 9196 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9197fi 9198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9199$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9200lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9201 9202# 9203# Check to make sure the PIC flag actually works. 9204# 9205if test -n "$lt_prog_compiler_pic"; then 9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9207$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9208if ${lt_cv_prog_compiler_pic_works+:} false; then : 9209 $as_echo_n "(cached) " >&6 9210else 9211 lt_cv_prog_compiler_pic_works=no 9212 ac_outfile=conftest.$ac_objext 9213 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9214 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9215 # Insert the option either (1) after the last *FLAGS variable, or 9216 # (2) before a word containing "conftest.", or (3) at the end. 9217 # Note that $ac_compile itself does not contain backslashes and begins 9218 # with a dollar sign (not a hyphen), so the echo should work correctly. 9219 # The option is referenced via a variable to avoid confusing sed. 9220 lt_compile=`echo "$ac_compile" | $SED \ 9221 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9222 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9223 -e 's:$: $lt_compiler_flag:'` 9224 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9225 (eval "$lt_compile" 2>conftest.err) 9226 ac_status=$? 9227 cat conftest.err >&5 9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9229 if (exit $ac_status) && test -s "$ac_outfile"; then 9230 # The compiler can only warn and ignore the option if not recognized 9231 # So say no if there are warnings other than the usual output. 9232 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9233 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9234 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9235 lt_cv_prog_compiler_pic_works=yes 9236 fi 9237 fi 9238 $RM conftest* 9239 9240fi 9241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9242$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9243 9244if test yes = "$lt_cv_prog_compiler_pic_works"; then 9245 case $lt_prog_compiler_pic in 9246 "" | " "*) ;; 9247 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9248 esac 9249else 9250 lt_prog_compiler_pic= 9251 lt_prog_compiler_can_build_shared=no 9252fi 9253 9254fi 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266# 9267# Check to make sure the static flag actually works. 9268# 9269wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9271$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9272if ${lt_cv_prog_compiler_static_works+:} false; then : 9273 $as_echo_n "(cached) " >&6 9274else 9275 lt_cv_prog_compiler_static_works=no 9276 save_LDFLAGS=$LDFLAGS 9277 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9278 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9279 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9280 # The linker can only warn and ignore the option if not recognized 9281 # So say no if there are warnings 9282 if test -s conftest.err; then 9283 # Append any errors to the config.log. 9284 cat conftest.err 1>&5 9285 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9287 if diff conftest.exp conftest.er2 >/dev/null; then 9288 lt_cv_prog_compiler_static_works=yes 9289 fi 9290 else 9291 lt_cv_prog_compiler_static_works=yes 9292 fi 9293 fi 9294 $RM -r conftest* 9295 LDFLAGS=$save_LDFLAGS 9296 9297fi 9298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9299$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9300 9301if test yes = "$lt_cv_prog_compiler_static_works"; then 9302 : 9303else 9304 lt_prog_compiler_static= 9305fi 9306 9307 9308 9309 9310 9311 9312 9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9314$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9315if ${lt_cv_prog_compiler_c_o+:} false; then : 9316 $as_echo_n "(cached) " >&6 9317else 9318 lt_cv_prog_compiler_c_o=no 9319 $RM -r conftest 2>/dev/null 9320 mkdir conftest 9321 cd conftest 9322 mkdir out 9323 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9324 9325 lt_compiler_flag="-o out/conftest2.$ac_objext" 9326 # Insert the option either (1) after the last *FLAGS variable, or 9327 # (2) before a word containing "conftest.", or (3) at the end. 9328 # Note that $ac_compile itself does not contain backslashes and begins 9329 # with a dollar sign (not a hyphen), so the echo should work correctly. 9330 lt_compile=`echo "$ac_compile" | $SED \ 9331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9333 -e 's:$: $lt_compiler_flag:'` 9334 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9335 (eval "$lt_compile" 2>out/conftest.err) 9336 ac_status=$? 9337 cat out/conftest.err >&5 9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9339 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9340 then 9341 # The compiler can only warn and ignore the option if not recognized 9342 # So say no if there are warnings 9343 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9344 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9345 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9346 lt_cv_prog_compiler_c_o=yes 9347 fi 9348 fi 9349 chmod u+w . 2>&5 9350 $RM conftest* 9351 # SGI C++ compiler will create directory out/ii_files/ for 9352 # template instantiation 9353 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9354 $RM out/* && rmdir out 9355 cd .. 9356 $RM -r conftest 9357 $RM conftest* 9358 9359fi 9360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9361$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9362 9363 9364 9365 9366 9367 9368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9369$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9370if ${lt_cv_prog_compiler_c_o+:} false; then : 9371 $as_echo_n "(cached) " >&6 9372else 9373 lt_cv_prog_compiler_c_o=no 9374 $RM -r conftest 2>/dev/null 9375 mkdir conftest 9376 cd conftest 9377 mkdir out 9378 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9379 9380 lt_compiler_flag="-o out/conftest2.$ac_objext" 9381 # Insert the option either (1) after the last *FLAGS variable, or 9382 # (2) before a word containing "conftest.", or (3) at the end. 9383 # Note that $ac_compile itself does not contain backslashes and begins 9384 # with a dollar sign (not a hyphen), so the echo should work correctly. 9385 lt_compile=`echo "$ac_compile" | $SED \ 9386 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9388 -e 's:$: $lt_compiler_flag:'` 9389 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9390 (eval "$lt_compile" 2>out/conftest.err) 9391 ac_status=$? 9392 cat out/conftest.err >&5 9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9394 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9395 then 9396 # The compiler can only warn and ignore the option if not recognized 9397 # So say no if there are warnings 9398 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9399 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9400 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9401 lt_cv_prog_compiler_c_o=yes 9402 fi 9403 fi 9404 chmod u+w . 2>&5 9405 $RM conftest* 9406 # SGI C++ compiler will create directory out/ii_files/ for 9407 # template instantiation 9408 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9409 $RM out/* && rmdir out 9410 cd .. 9411 $RM -r conftest 9412 $RM conftest* 9413 9414fi 9415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9416$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9417 9418 9419 9420 9421hard_links=nottested 9422if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9423 # do not overwrite the value of need_locks provided by the user 9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9425$as_echo_n "checking if we can lock with hard links... " >&6; } 9426 hard_links=yes 9427 $RM conftest* 9428 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9429 touch conftest.a 9430 ln conftest.a conftest.b 2>&5 || hard_links=no 9431 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9433$as_echo "$hard_links" >&6; } 9434 if test no = "$hard_links"; then 9435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9436$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9437 need_locks=warn 9438 fi 9439else 9440 need_locks=no 9441fi 9442 9443 9444 9445 9446 9447 9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9449$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9450 9451 runpath_var= 9452 allow_undefined_flag= 9453 always_export_symbols=no 9454 archive_cmds= 9455 archive_expsym_cmds= 9456 compiler_needs_object=no 9457 enable_shared_with_static_runtimes=no 9458 export_dynamic_flag_spec= 9459 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9460 hardcode_automatic=no 9461 hardcode_direct=no 9462 hardcode_direct_absolute=no 9463 hardcode_libdir_flag_spec= 9464 hardcode_libdir_separator= 9465 hardcode_minus_L=no 9466 hardcode_shlibpath_var=unsupported 9467 inherit_rpath=no 9468 link_all_deplibs=unknown 9469 module_cmds= 9470 module_expsym_cmds= 9471 old_archive_from_new_cmds= 9472 old_archive_from_expsyms_cmds= 9473 thread_safe_flag_spec= 9474 whole_archive_flag_spec= 9475 # include_expsyms should be a list of space-separated symbols to be *always* 9476 # included in the symbol list 9477 include_expsyms= 9478 # exclude_expsyms can be an extended regexp of symbols to exclude 9479 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9480 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9481 # as well as any symbol that contains 'd'. 9482 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9483 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9484 # platforms (ab)use it in PIC code, but their linkers get confused if 9485 # the symbol is explicitly referenced. Since portable code cannot 9486 # rely on this symbol name, it's probably fine to never include it in 9487 # preloaded symbol tables. 9488 # Exclude shared library initialization/finalization symbols. 9489 extract_expsyms_cmds= 9490 9491 case $host_os in 9492 cygwin* | mingw* | pw32* | cegcc*) 9493 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9494 # When not using gcc, we currently assume that we are using 9495 # Microsoft Visual C++. 9496 if test yes != "$GCC"; then 9497 with_gnu_ld=no 9498 fi 9499 ;; 9500 interix*) 9501 # we just hope/assume this is gcc and not c89 (= MSVC++) 9502 with_gnu_ld=yes 9503 ;; 9504 openbsd* | bitrig*) 9505 with_gnu_ld=no 9506 ;; 9507 linux* | k*bsd*-gnu | gnu*) 9508 link_all_deplibs=no 9509 ;; 9510 esac 9511 9512 ld_shlibs=yes 9513 9514 # On some targets, GNU ld is compatible enough with the native linker 9515 # that we're better off using the native interface for both. 9516 lt_use_gnu_ld_interface=no 9517 if test yes = "$with_gnu_ld"; then 9518 case $host_os in 9519 aix*) 9520 # The AIX port of GNU ld has always aspired to compatibility 9521 # with the native linker. However, as the warning in the GNU ld 9522 # block says, versions before 2.19.5* couldn't really create working 9523 # shared libraries, regardless of the interface used. 9524 case `$LD -v 2>&1` in 9525 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9526 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9527 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9528 *) 9529 lt_use_gnu_ld_interface=yes 9530 ;; 9531 esac 9532 ;; 9533 *) 9534 lt_use_gnu_ld_interface=yes 9535 ;; 9536 esac 9537 fi 9538 9539 if test yes = "$lt_use_gnu_ld_interface"; then 9540 # If archive_cmds runs LD, not CC, wlarc should be empty 9541 wlarc='$wl' 9542 9543 # Set some defaults for GNU ld with shared library support. These 9544 # are reset later if shared libraries are not supported. Putting them 9545 # here allows them to be overridden if necessary. 9546 runpath_var=LD_RUN_PATH 9547 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9548 export_dynamic_flag_spec='$wl--export-dynamic' 9549 # ancient GNU ld didn't support --whole-archive et. al. 9550 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9551 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9552 else 9553 whole_archive_flag_spec= 9554 fi 9555 supports_anon_versioning=no 9556 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9557 *GNU\ gold*) supports_anon_versioning=yes ;; 9558 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9559 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9560 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9561 *\ 2.11.*) ;; # other 2.11 versions 9562 *) supports_anon_versioning=yes ;; 9563 esac 9564 9565 # See if GNU ld supports shared libraries. 9566 case $host_os in 9567 aix[3-9]*) 9568 # On AIX/PPC, the GNU linker is very broken 9569 if test ia64 != "$host_cpu"; then 9570 ld_shlibs=no 9571 cat <<_LT_EOF 1>&2 9572 9573*** Warning: the GNU linker, at least up to release 2.19, is reported 9574*** to be unable to reliably create shared libraries on AIX. 9575*** Therefore, libtool is disabling shared libraries support. If you 9576*** really care for shared libraries, you may want to install binutils 9577*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9578*** You will then need to restart the configuration process. 9579 9580_LT_EOF 9581 fi 9582 ;; 9583 9584 amigaos*) 9585 case $host_cpu in 9586 powerpc) 9587 # see comment about AmigaOS4 .so support 9588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9589 archive_expsym_cmds='' 9590 ;; 9591 m68k) 9592 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)' 9593 hardcode_libdir_flag_spec='-L$libdir' 9594 hardcode_minus_L=yes 9595 ;; 9596 esac 9597 ;; 9598 9599 beos*) 9600 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9601 allow_undefined_flag=unsupported 9602 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9603 # support --undefined. This deserves some investigation. FIXME 9604 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9605 else 9606 ld_shlibs=no 9607 fi 9608 ;; 9609 9610 cygwin* | mingw* | pw32* | cegcc*) 9611 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9612 # as there is no search path for DLLs. 9613 hardcode_libdir_flag_spec='-L$libdir' 9614 export_dynamic_flag_spec='$wl--export-all-symbols' 9615 allow_undefined_flag=unsupported 9616 always_export_symbols=no 9617 enable_shared_with_static_runtimes=yes 9618 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' 9619 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9620 9621 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9623 # If the export-symbols file already is a .def file, use it as 9624 # is; otherwise, prepend EXPORTS... 9625 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9626 cp $export_symbols $output_objdir/$soname.def; 9627 else 9628 echo EXPORTS > $output_objdir/$soname.def; 9629 cat $export_symbols >> $output_objdir/$soname.def; 9630 fi~ 9631 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9632 else 9633 ld_shlibs=no 9634 fi 9635 ;; 9636 9637 haiku*) 9638 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9639 link_all_deplibs=yes 9640 ;; 9641 9642 os2*) 9643 hardcode_libdir_flag_spec='-L$libdir' 9644 hardcode_minus_L=yes 9645 allow_undefined_flag=unsupported 9646 shrext_cmds=.dll 9647 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9648 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9649 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9650 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9651 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9652 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9653 emximp -o $lib $output_objdir/$libname.def' 9654 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9655 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9656 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9657 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9658 prefix_cmds="$SED"~ 9659 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9660 prefix_cmds="$prefix_cmds -e 1d"; 9661 fi~ 9662 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9663 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9664 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9665 emximp -o $lib $output_objdir/$libname.def' 9666 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9667 enable_shared_with_static_runtimes=yes 9668 ;; 9669 9670 interix[3-9]*) 9671 hardcode_direct=no 9672 hardcode_shlibpath_var=no 9673 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9674 export_dynamic_flag_spec='$wl-E' 9675 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9676 # Instead, shared libraries are loaded at an image base (0x10000000 by 9677 # default) and relocated if they conflict, which is a slow very memory 9678 # consuming and fragmenting process. To avoid this, we pick a random, 9679 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9680 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9681 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9682 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' 9683 ;; 9684 9685 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9686 tmp_diet=no 9687 if test linux-dietlibc = "$host_os"; then 9688 case $cc_basename in 9689 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9690 esac 9691 fi 9692 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9693 && test no = "$tmp_diet" 9694 then 9695 tmp_addflag=' $pic_flag' 9696 tmp_sharedflag='-shared' 9697 case $cc_basename,$host_cpu in 9698 pgcc*) # Portland Group C compiler 9699 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' 9700 tmp_addflag=' $pic_flag' 9701 ;; 9702 pgf77* | pgf90* | pgf95* | pgfortran*) 9703 # Portland Group f77 and f90 compilers 9704 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' 9705 tmp_addflag=' $pic_flag -Mnomain' ;; 9706 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9707 tmp_addflag=' -i_dynamic' ;; 9708 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9709 tmp_addflag=' -i_dynamic -nofor_main' ;; 9710 ifc* | ifort*) # Intel Fortran compiler 9711 tmp_addflag=' -nofor_main' ;; 9712 lf95*) # Lahey Fortran 8.1 9713 whole_archive_flag_spec= 9714 tmp_sharedflag='--shared' ;; 9715 nagfor*) # NAGFOR 5.3 9716 tmp_sharedflag='-Wl,-shared' ;; 9717 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9718 tmp_sharedflag='-qmkshrobj' 9719 tmp_addflag= ;; 9720 nvcc*) # Cuda Compiler Driver 2.2 9721 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' 9722 compiler_needs_object=yes 9723 ;; 9724 esac 9725 case `$CC -V 2>&1 | sed 5q` in 9726 *Sun\ C*) # Sun C 5.9 9727 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' 9728 compiler_needs_object=yes 9729 tmp_sharedflag='-G' ;; 9730 *Sun\ F*) # Sun Fortran 8.3 9731 tmp_sharedflag='-G' ;; 9732 esac 9733 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9734 9735 if test yes = "$supports_anon_versioning"; then 9736 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9737 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9738 echo "local: *; };" >> $output_objdir/$libname.ver~ 9739 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9740 fi 9741 9742 case $cc_basename in 9743 tcc*) 9744 export_dynamic_flag_spec='-rdynamic' 9745 ;; 9746 xlf* | bgf* | bgxlf* | mpixlf*) 9747 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9748 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9749 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9750 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9751 if test yes = "$supports_anon_versioning"; then 9752 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9753 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9754 echo "local: *; };" >> $output_objdir/$libname.ver~ 9755 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9756 fi 9757 ;; 9758 esac 9759 else 9760 ld_shlibs=no 9761 fi 9762 ;; 9763 9764 netbsd* | netbsdelf*-gnu) 9765 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9766 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9767 wlarc= 9768 else 9769 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9770 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9771 fi 9772 ;; 9773 9774 solaris*) 9775 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9776 ld_shlibs=no 9777 cat <<_LT_EOF 1>&2 9778 9779*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9780*** create shared libraries on Solaris systems. Therefore, libtool 9781*** is disabling shared libraries support. We urge you to upgrade GNU 9782*** binutils to release 2.9.1 or newer. Another option is to modify 9783*** your PATH or compiler configuration so that the native linker is 9784*** used, and then restart. 9785 9786_LT_EOF 9787 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9788 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9789 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9790 else 9791 ld_shlibs=no 9792 fi 9793 ;; 9794 9795 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9796 case `$LD -v 2>&1` in 9797 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9798 ld_shlibs=no 9799 cat <<_LT_EOF 1>&2 9800 9801*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9802*** reliably create shared libraries on SCO systems. Therefore, libtool 9803*** is disabling shared libraries support. We urge you to upgrade GNU 9804*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9805*** your PATH or compiler configuration so that the native linker is 9806*** used, and then restart. 9807 9808_LT_EOF 9809 ;; 9810 *) 9811 # For security reasons, it is highly recommended that you always 9812 # use absolute paths for naming shared libraries, and exclude the 9813 # DT_RUNPATH tag from executables and libraries. But doing so 9814 # requires that you compile everything twice, which is a pain. 9815 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9816 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9818 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9819 else 9820 ld_shlibs=no 9821 fi 9822 ;; 9823 esac 9824 ;; 9825 9826 sunos4*) 9827 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9828 wlarc= 9829 hardcode_direct=yes 9830 hardcode_shlibpath_var=no 9831 ;; 9832 9833 *) 9834 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9835 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9836 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9837 else 9838 ld_shlibs=no 9839 fi 9840 ;; 9841 esac 9842 9843 if test no = "$ld_shlibs"; then 9844 runpath_var= 9845 hardcode_libdir_flag_spec= 9846 export_dynamic_flag_spec= 9847 whole_archive_flag_spec= 9848 fi 9849 else 9850 # PORTME fill in a description of your system's linker (not GNU ld) 9851 case $host_os in 9852 aix3*) 9853 allow_undefined_flag=unsupported 9854 always_export_symbols=yes 9855 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' 9856 # Note: this linker hardcodes the directories in LIBPATH if there 9857 # are no directories specified by -L. 9858 hardcode_minus_L=yes 9859 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9860 # Neither direct hardcoding nor static linking is supported with a 9861 # broken collect2. 9862 hardcode_direct=unsupported 9863 fi 9864 ;; 9865 9866 aix[4-9]*) 9867 if test ia64 = "$host_cpu"; then 9868 # On IA64, the linker does run time linking by default, so we don't 9869 # have to do anything special. 9870 aix_use_runtimelinking=no 9871 exp_sym_flag='-Bexport' 9872 no_entry_flag= 9873 else 9874 # If we're using GNU nm, then we don't want the "-C" option. 9875 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9876 # Without the "-l" option, or with the "-B" option, AIX nm treats 9877 # weak defined symbols like other global defined symbols, whereas 9878 # GNU nm marks them as "W". 9879 # While the 'weak' keyword is ignored in the Export File, we need 9880 # it in the Import File for the 'aix-soname' feature, so we have 9881 # to replace the "-B" option with "-P" for AIX nm. 9882 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9883 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' 9884 else 9885 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' 9886 fi 9887 aix_use_runtimelinking=no 9888 9889 # Test if we are trying to use run time linking or normal 9890 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9891 # have runtime linking enabled, and use it for executables. 9892 # For shared libraries, we enable/disable runtime linking 9893 # depending on the kind of the shared library created - 9894 # when "with_aix_soname,aix_use_runtimelinking" is: 9895 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9896 # "aix,yes" lib.so shared, rtl:yes, for executables 9897 # lib.a static archive 9898 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9899 # lib.a(lib.so.V) shared, rtl:no, for executables 9900 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9901 # lib.a(lib.so.V) shared, rtl:no 9902 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9903 # lib.a static archive 9904 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9905 for ld_flag in $LDFLAGS; do 9906 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9907 aix_use_runtimelinking=yes 9908 break 9909 fi 9910 done 9911 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9912 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9913 # so we don't have lib.a shared libs to link our executables. 9914 # We have to force runtime linking in this case. 9915 aix_use_runtimelinking=yes 9916 LDFLAGS="$LDFLAGS -Wl,-brtl" 9917 fi 9918 ;; 9919 esac 9920 9921 exp_sym_flag='-bexport' 9922 no_entry_flag='-bnoentry' 9923 fi 9924 9925 # When large executables or shared objects are built, AIX ld can 9926 # have problems creating the table of contents. If linking a library 9927 # or program results in "error TOC overflow" add -mminimal-toc to 9928 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9929 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9930 9931 archive_cmds='' 9932 hardcode_direct=yes 9933 hardcode_direct_absolute=yes 9934 hardcode_libdir_separator=':' 9935 link_all_deplibs=yes 9936 file_list_spec='$wl-f,' 9937 case $with_aix_soname,$aix_use_runtimelinking in 9938 aix,*) ;; # traditional, no import file 9939 svr4,* | *,yes) # use import file 9940 # The Import File defines what to hardcode. 9941 hardcode_direct=no 9942 hardcode_direct_absolute=no 9943 ;; 9944 esac 9945 9946 if test yes = "$GCC"; then 9947 case $host_os in aix4.[012]|aix4.[012].*) 9948 # We only want to do this on AIX 4.2 and lower, the check 9949 # below for broken collect2 doesn't work under 4.3+ 9950 collect2name=`$CC -print-prog-name=collect2` 9951 if test -f "$collect2name" && 9952 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9953 then 9954 # We have reworked collect2 9955 : 9956 else 9957 # We have old collect2 9958 hardcode_direct=unsupported 9959 # It fails to find uninstalled libraries when the uninstalled 9960 # path is not listed in the libpath. Setting hardcode_minus_L 9961 # to unsupported forces relinking 9962 hardcode_minus_L=yes 9963 hardcode_libdir_flag_spec='-L$libdir' 9964 hardcode_libdir_separator= 9965 fi 9966 ;; 9967 esac 9968 shared_flag='-shared' 9969 if test yes = "$aix_use_runtimelinking"; then 9970 shared_flag="$shared_flag "'$wl-G' 9971 fi 9972 # Need to ensure runtime linking is disabled for the traditional 9973 # shared library, or the linker may eventually find shared libraries 9974 # /with/ Import File - we do not want to mix them. 9975 shared_flag_aix='-shared' 9976 shared_flag_svr4='-shared $wl-G' 9977 else 9978 # not using gcc 9979 if test ia64 = "$host_cpu"; then 9980 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9981 # chokes on -Wl,-G. The following line is correct: 9982 shared_flag='-G' 9983 else 9984 if test yes = "$aix_use_runtimelinking"; then 9985 shared_flag='$wl-G' 9986 else 9987 shared_flag='$wl-bM:SRE' 9988 fi 9989 shared_flag_aix='$wl-bM:SRE' 9990 shared_flag_svr4='$wl-G' 9991 fi 9992 fi 9993 9994 export_dynamic_flag_spec='$wl-bexpall' 9995 # It seems that -bexpall does not export symbols beginning with 9996 # underscore (_), so it is better to generate a list of symbols to export. 9997 always_export_symbols=yes 9998 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9999 # Warning - without using the other runtime loading flags (-brtl), 10000 # -berok will link without error, but may produce a broken library. 10001 allow_undefined_flag='-berok' 10002 # Determine the default libpath from the value encoded in an 10003 # empty executable. 10004 if test set = "${lt_cv_aix_libpath+set}"; then 10005 aix_libpath=$lt_cv_aix_libpath 10006else 10007 if ${lt_cv_aix_libpath_+:} false; then : 10008 $as_echo_n "(cached) " >&6 10009else 10010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10011/* end confdefs.h. */ 10012 10013int 10014main () 10015{ 10016 10017 ; 10018 return 0; 10019} 10020_ACEOF 10021if ac_fn_c_try_link "$LINENO"; then : 10022 10023 lt_aix_libpath_sed=' 10024 /Import File Strings/,/^$/ { 10025 /^0/ { 10026 s/^0 *\([^ ]*\) *$/\1/ 10027 p 10028 } 10029 }' 10030 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10031 # Check for a 64-bit object if we didn't find anything. 10032 if test -z "$lt_cv_aix_libpath_"; then 10033 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10034 fi 10035fi 10036rm -f core conftest.err conftest.$ac_objext \ 10037 conftest$ac_exeext conftest.$ac_ext 10038 if test -z "$lt_cv_aix_libpath_"; then 10039 lt_cv_aix_libpath_=/usr/lib:/lib 10040 fi 10041 10042fi 10043 10044 aix_libpath=$lt_cv_aix_libpath_ 10045fi 10046 10047 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10048 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 10049 else 10050 if test ia64 = "$host_cpu"; then 10051 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10052 allow_undefined_flag="-z nodefs" 10053 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" 10054 else 10055 # Determine the default libpath from the value encoded in an 10056 # empty executable. 10057 if test set = "${lt_cv_aix_libpath+set}"; then 10058 aix_libpath=$lt_cv_aix_libpath 10059else 10060 if ${lt_cv_aix_libpath_+:} false; then : 10061 $as_echo_n "(cached) " >&6 10062else 10063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10064/* end confdefs.h. */ 10065 10066int 10067main () 10068{ 10069 10070 ; 10071 return 0; 10072} 10073_ACEOF 10074if ac_fn_c_try_link "$LINENO"; then : 10075 10076 lt_aix_libpath_sed=' 10077 /Import File Strings/,/^$/ { 10078 /^0/ { 10079 s/^0 *\([^ ]*\) *$/\1/ 10080 p 10081 } 10082 }' 10083 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10084 # Check for a 64-bit object if we didn't find anything. 10085 if test -z "$lt_cv_aix_libpath_"; then 10086 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10087 fi 10088fi 10089rm -f core conftest.err conftest.$ac_objext \ 10090 conftest$ac_exeext conftest.$ac_ext 10091 if test -z "$lt_cv_aix_libpath_"; then 10092 lt_cv_aix_libpath_=/usr/lib:/lib 10093 fi 10094 10095fi 10096 10097 aix_libpath=$lt_cv_aix_libpath_ 10098fi 10099 10100 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10101 # Warning - without using the other run time loading flags, 10102 # -berok will link without error, but may produce a broken library. 10103 no_undefined_flag=' $wl-bernotok' 10104 allow_undefined_flag=' $wl-berok' 10105 if test yes = "$with_gnu_ld"; then 10106 # We only use this code for GNU lds that support --whole-archive. 10107 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10108 else 10109 # Exported symbols can be pulled into shared objects from archives 10110 whole_archive_flag_spec='$convenience' 10111 fi 10112 archive_cmds_need_lc=yes 10113 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10114 # -brtl affects multiple linker settings, -berok does not and is overridden later 10115 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10116 if test svr4 != "$with_aix_soname"; then 10117 # This is similar to how AIX traditionally builds its shared libraries. 10118 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' 10119 fi 10120 if test aix != "$with_aix_soname"; then 10121 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' 10122 else 10123 # used by -dlpreopen to get the symbols 10124 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10125 fi 10126 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10127 fi 10128 fi 10129 ;; 10130 10131 amigaos*) 10132 case $host_cpu in 10133 powerpc) 10134 # see comment about AmigaOS4 .so support 10135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10136 archive_expsym_cmds='' 10137 ;; 10138 m68k) 10139 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)' 10140 hardcode_libdir_flag_spec='-L$libdir' 10141 hardcode_minus_L=yes 10142 ;; 10143 esac 10144 ;; 10145 10146 bsdi[45]*) 10147 export_dynamic_flag_spec=-rdynamic 10148 ;; 10149 10150 cygwin* | mingw* | pw32* | cegcc*) 10151 # When not using gcc, we currently assume that we are using 10152 # Microsoft Visual C++. 10153 # hardcode_libdir_flag_spec is actually meaningless, as there is 10154 # no search path for DLLs. 10155 case $cc_basename in 10156 cl*) 10157 # Native MSVC 10158 hardcode_libdir_flag_spec=' ' 10159 allow_undefined_flag=unsupported 10160 always_export_symbols=yes 10161 file_list_spec='@' 10162 # Tell ltmain to make .lib files, not .a files. 10163 libext=lib 10164 # Tell ltmain to make .dll files, not .so files. 10165 shrext_cmds=.dll 10166 # FIXME: Setting linknames here is a bad hack. 10167 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10168 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10169 cp "$export_symbols" "$output_objdir/$soname.def"; 10170 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10171 else 10172 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10173 fi~ 10174 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10175 linknames=' 10176 # The linker will not automatically build a static lib if we build a DLL. 10177 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10178 enable_shared_with_static_runtimes=yes 10179 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10180 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10181 # Don't use ranlib 10182 old_postinstall_cmds='chmod 644 $oldlib' 10183 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10184 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10185 case $lt_outputfile in 10186 *.exe|*.EXE) ;; 10187 *) 10188 lt_outputfile=$lt_outputfile.exe 10189 lt_tool_outputfile=$lt_tool_outputfile.exe 10190 ;; 10191 esac~ 10192 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10193 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10194 $RM "$lt_outputfile.manifest"; 10195 fi' 10196 ;; 10197 *) 10198 # Assume MSVC wrapper 10199 hardcode_libdir_flag_spec=' ' 10200 allow_undefined_flag=unsupported 10201 # Tell ltmain to make .lib files, not .a files. 10202 libext=lib 10203 # Tell ltmain to make .dll files, not .so files. 10204 shrext_cmds=.dll 10205 # FIXME: Setting linknames here is a bad hack. 10206 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10207 # The linker will automatically build a .lib file if we build a DLL. 10208 old_archive_from_new_cmds='true' 10209 # FIXME: Should let the user specify the lib program. 10210 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10211 enable_shared_with_static_runtimes=yes 10212 ;; 10213 esac 10214 ;; 10215 10216 darwin* | rhapsody*) 10217 10218 10219 archive_cmds_need_lc=no 10220 hardcode_direct=no 10221 hardcode_automatic=yes 10222 hardcode_shlibpath_var=unsupported 10223 if test yes = "$lt_cv_ld_force_load"; then 10224 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\"`' 10225 10226 else 10227 whole_archive_flag_spec='' 10228 fi 10229 link_all_deplibs=yes 10230 allow_undefined_flag=$_lt_dar_allow_undefined 10231 case $cc_basename in 10232 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10233 *) _lt_dar_can_shared=$GCC ;; 10234 esac 10235 if test yes = "$_lt_dar_can_shared"; then 10236 output_verbose_link_cmd=func_echo_all 10237 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10238 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10239 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" 10240 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" 10241 10242 else 10243 ld_shlibs=no 10244 fi 10245 10246 ;; 10247 10248 dgux*) 10249 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10250 hardcode_libdir_flag_spec='-L$libdir' 10251 hardcode_shlibpath_var=no 10252 ;; 10253 10254 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10255 # support. Future versions do this automatically, but an explicit c++rt0.o 10256 # does not break anything, and helps significantly (at the cost of a little 10257 # extra space). 10258 freebsd2.2*) 10259 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10260 hardcode_libdir_flag_spec='-R$libdir' 10261 hardcode_direct=yes 10262 hardcode_shlibpath_var=no 10263 ;; 10264 10265 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10266 freebsd2.*) 10267 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10268 hardcode_direct=yes 10269 hardcode_minus_L=yes 10270 hardcode_shlibpath_var=no 10271 ;; 10272 10273 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10274 freebsd* | dragonfly*) 10275 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10276 hardcode_libdir_flag_spec='-R$libdir' 10277 hardcode_direct=yes 10278 hardcode_shlibpath_var=no 10279 ;; 10280 10281 hpux9*) 10282 if test yes = "$GCC"; then 10283 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' 10284 else 10285 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' 10286 fi 10287 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10288 hardcode_libdir_separator=: 10289 hardcode_direct=yes 10290 10291 # hardcode_minus_L: Not really in the search PATH, 10292 # but as the default location of the library. 10293 hardcode_minus_L=yes 10294 export_dynamic_flag_spec='$wl-E' 10295 ;; 10296 10297 hpux10*) 10298 if test yes,no = "$GCC,$with_gnu_ld"; then 10299 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10300 else 10301 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10302 fi 10303 if test no = "$with_gnu_ld"; then 10304 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10305 hardcode_libdir_separator=: 10306 hardcode_direct=yes 10307 hardcode_direct_absolute=yes 10308 export_dynamic_flag_spec='$wl-E' 10309 # hardcode_minus_L: Not really in the search PATH, 10310 # but as the default location of the library. 10311 hardcode_minus_L=yes 10312 fi 10313 ;; 10314 10315 hpux11*) 10316 if test yes,no = "$GCC,$with_gnu_ld"; then 10317 case $host_cpu in 10318 hppa*64*) 10319 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10320 ;; 10321 ia64*) 10322 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10323 ;; 10324 *) 10325 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10326 ;; 10327 esac 10328 else 10329 case $host_cpu in 10330 hppa*64*) 10331 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10332 ;; 10333 ia64*) 10334 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10335 ;; 10336 *) 10337 10338 # Older versions of the 11.00 compiler do not understand -b yet 10339 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10341$as_echo_n "checking if $CC understands -b... " >&6; } 10342if ${lt_cv_prog_compiler__b+:} false; then : 10343 $as_echo_n "(cached) " >&6 10344else 10345 lt_cv_prog_compiler__b=no 10346 save_LDFLAGS=$LDFLAGS 10347 LDFLAGS="$LDFLAGS -b" 10348 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10349 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10350 # The linker can only warn and ignore the option if not recognized 10351 # So say no if there are warnings 10352 if test -s conftest.err; then 10353 # Append any errors to the config.log. 10354 cat conftest.err 1>&5 10355 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10356 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10357 if diff conftest.exp conftest.er2 >/dev/null; then 10358 lt_cv_prog_compiler__b=yes 10359 fi 10360 else 10361 lt_cv_prog_compiler__b=yes 10362 fi 10363 fi 10364 $RM -r conftest* 10365 LDFLAGS=$save_LDFLAGS 10366 10367fi 10368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10369$as_echo "$lt_cv_prog_compiler__b" >&6; } 10370 10371if test yes = "$lt_cv_prog_compiler__b"; then 10372 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10373else 10374 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10375fi 10376 10377 ;; 10378 esac 10379 fi 10380 if test no = "$with_gnu_ld"; then 10381 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10382 hardcode_libdir_separator=: 10383 10384 case $host_cpu in 10385 hppa*64*|ia64*) 10386 hardcode_direct=no 10387 hardcode_shlibpath_var=no 10388 ;; 10389 *) 10390 hardcode_direct=yes 10391 hardcode_direct_absolute=yes 10392 export_dynamic_flag_spec='$wl-E' 10393 10394 # hardcode_minus_L: Not really in the search PATH, 10395 # but as the default location of the library. 10396 hardcode_minus_L=yes 10397 ;; 10398 esac 10399 fi 10400 ;; 10401 10402 irix5* | irix6* | nonstopux*) 10403 if test yes = "$GCC"; then 10404 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' 10405 # Try to use the -exported_symbol ld option, if it does not 10406 # work, assume that -exports_file does not work either and 10407 # implicitly export all symbols. 10408 # This should be the same for all languages, so no per-tag cache variable. 10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10410$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10411if ${lt_cv_irix_exported_symbol+:} false; then : 10412 $as_echo_n "(cached) " >&6 10413else 10414 save_LDFLAGS=$LDFLAGS 10415 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10417/* end confdefs.h. */ 10418int foo (void) { return 0; } 10419_ACEOF 10420if ac_fn_c_try_link "$LINENO"; then : 10421 lt_cv_irix_exported_symbol=yes 10422else 10423 lt_cv_irix_exported_symbol=no 10424fi 10425rm -f core conftest.err conftest.$ac_objext \ 10426 conftest$ac_exeext conftest.$ac_ext 10427 LDFLAGS=$save_LDFLAGS 10428fi 10429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10430$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10431 if test yes = "$lt_cv_irix_exported_symbol"; then 10432 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' 10433 fi 10434 link_all_deplibs=no 10435 else 10436 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' 10437 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' 10438 fi 10439 archive_cmds_need_lc='no' 10440 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10441 hardcode_libdir_separator=: 10442 inherit_rpath=yes 10443 link_all_deplibs=yes 10444 ;; 10445 10446 linux*) 10447 case $cc_basename in 10448 tcc*) 10449 # Fabrice Bellard et al's Tiny C Compiler 10450 ld_shlibs=yes 10451 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10452 ;; 10453 esac 10454 ;; 10455 10456 netbsd* | netbsdelf*-gnu) 10457 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10458 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10459 else 10460 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10461 fi 10462 hardcode_libdir_flag_spec='-R$libdir' 10463 hardcode_direct=yes 10464 hardcode_shlibpath_var=no 10465 ;; 10466 10467 newsos6) 10468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10469 hardcode_direct=yes 10470 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10471 hardcode_libdir_separator=: 10472 hardcode_shlibpath_var=no 10473 ;; 10474 10475 *nto* | *qnx*) 10476 ;; 10477 10478 openbsd* | bitrig*) 10479 if test -f /usr/libexec/ld.so; then 10480 hardcode_direct=yes 10481 hardcode_shlibpath_var=no 10482 hardcode_direct_absolute=yes 10483 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10484 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10485 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10486 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10487 export_dynamic_flag_spec='$wl-E' 10488 else 10489 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10490 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10491 fi 10492 else 10493 ld_shlibs=no 10494 fi 10495 ;; 10496 10497 os2*) 10498 hardcode_libdir_flag_spec='-L$libdir' 10499 hardcode_minus_L=yes 10500 allow_undefined_flag=unsupported 10501 shrext_cmds=.dll 10502 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10503 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10504 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10505 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10506 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10507 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10508 emximp -o $lib $output_objdir/$libname.def' 10509 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10510 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10511 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10512 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10513 prefix_cmds="$SED"~ 10514 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10515 prefix_cmds="$prefix_cmds -e 1d"; 10516 fi~ 10517 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10518 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10519 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10520 emximp -o $lib $output_objdir/$libname.def' 10521 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10522 enable_shared_with_static_runtimes=yes 10523 ;; 10524 10525 osf3*) 10526 if test yes = "$GCC"; then 10527 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10528 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' 10529 else 10530 allow_undefined_flag=' -expect_unresolved \*' 10531 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' 10532 fi 10533 archive_cmds_need_lc='no' 10534 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10535 hardcode_libdir_separator=: 10536 ;; 10537 10538 osf4* | osf5*) # as osf3* with the addition of -msym flag 10539 if test yes = "$GCC"; then 10540 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10541 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' 10542 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10543 else 10544 allow_undefined_flag=' -expect_unresolved \*' 10545 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' 10546 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~ 10547 $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' 10548 10549 # Both c and cxx compiler support -rpath directly 10550 hardcode_libdir_flag_spec='-rpath $libdir' 10551 fi 10552 archive_cmds_need_lc='no' 10553 hardcode_libdir_separator=: 10554 ;; 10555 10556 solaris*) 10557 no_undefined_flag=' -z defs' 10558 if test yes = "$GCC"; then 10559 wlarc='$wl' 10560 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10561 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10562 $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' 10563 else 10564 case `$CC -V 2>&1` in 10565 *"Compilers 5.0"*) 10566 wlarc='' 10567 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10568 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10569 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10570 ;; 10571 *) 10572 wlarc='$wl' 10573 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10574 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10575 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10576 ;; 10577 esac 10578 fi 10579 hardcode_libdir_flag_spec='-R$libdir' 10580 hardcode_shlibpath_var=no 10581 case $host_os in 10582 solaris2.[0-5] | solaris2.[0-5].*) ;; 10583 *) 10584 # The compiler driver will combine and reorder linker options, 10585 # but understands '-z linker_flag'. GCC discards it without '$wl', 10586 # but is careful enough not to reorder. 10587 # Supported since Solaris 2.6 (maybe 2.5.1?) 10588 if test yes = "$GCC"; then 10589 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10590 else 10591 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10592 fi 10593 ;; 10594 esac 10595 link_all_deplibs=yes 10596 ;; 10597 10598 sunos4*) 10599 if test sequent = "$host_vendor"; then 10600 # Use $CC to link under sequent, because it throws in some extra .o 10601 # files that make .init and .fini sections work. 10602 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10603 else 10604 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10605 fi 10606 hardcode_libdir_flag_spec='-L$libdir' 10607 hardcode_direct=yes 10608 hardcode_minus_L=yes 10609 hardcode_shlibpath_var=no 10610 ;; 10611 10612 sysv4) 10613 case $host_vendor in 10614 sni) 10615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10616 hardcode_direct=yes # is this really true??? 10617 ;; 10618 siemens) 10619 ## LD is ld it makes a PLAMLIB 10620 ## CC just makes a GrossModule. 10621 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10622 reload_cmds='$CC -r -o $output$reload_objs' 10623 hardcode_direct=no 10624 ;; 10625 motorola) 10626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10627 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10628 ;; 10629 esac 10630 runpath_var='LD_RUN_PATH' 10631 hardcode_shlibpath_var=no 10632 ;; 10633 10634 sysv4.3*) 10635 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10636 hardcode_shlibpath_var=no 10637 export_dynamic_flag_spec='-Bexport' 10638 ;; 10639 10640 sysv4*MP*) 10641 if test -d /usr/nec; then 10642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10643 hardcode_shlibpath_var=no 10644 runpath_var=LD_RUN_PATH 10645 hardcode_runpath_var=yes 10646 ld_shlibs=yes 10647 fi 10648 ;; 10649 10650 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10651 no_undefined_flag='$wl-z,text' 10652 archive_cmds_need_lc=no 10653 hardcode_shlibpath_var=no 10654 runpath_var='LD_RUN_PATH' 10655 10656 if test yes = "$GCC"; then 10657 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10658 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10659 else 10660 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10661 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10662 fi 10663 ;; 10664 10665 sysv5* | sco3.2v5* | sco5v6*) 10666 # Note: We CANNOT use -z defs as we might desire, because we do not 10667 # link with -lc, and that would cause any symbols used from libc to 10668 # always be unresolved, which means just about no library would 10669 # ever link correctly. If we're not using GNU ld we use -z text 10670 # though, which does catch some bad symbols but isn't as heavy-handed 10671 # as -z defs. 10672 no_undefined_flag='$wl-z,text' 10673 allow_undefined_flag='$wl-z,nodefs' 10674 archive_cmds_need_lc=no 10675 hardcode_shlibpath_var=no 10676 hardcode_libdir_flag_spec='$wl-R,$libdir' 10677 hardcode_libdir_separator=':' 10678 link_all_deplibs=yes 10679 export_dynamic_flag_spec='$wl-Bexport' 10680 runpath_var='LD_RUN_PATH' 10681 10682 if test yes = "$GCC"; then 10683 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10684 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10685 else 10686 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10687 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10688 fi 10689 ;; 10690 10691 uts4*) 10692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10693 hardcode_libdir_flag_spec='-L$libdir' 10694 hardcode_shlibpath_var=no 10695 ;; 10696 10697 *) 10698 ld_shlibs=no 10699 ;; 10700 esac 10701 10702 if test sni = "$host_vendor"; then 10703 case $host in 10704 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10705 export_dynamic_flag_spec='$wl-Blargedynsym' 10706 ;; 10707 esac 10708 fi 10709 fi 10710 10711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10712$as_echo "$ld_shlibs" >&6; } 10713test no = "$ld_shlibs" && can_build_shared=no 10714 10715with_gnu_ld=$with_gnu_ld 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731# 10732# Do we need to explicitly link libc? 10733# 10734case "x$archive_cmds_need_lc" in 10735x|xyes) 10736 # Assume -lc should be added 10737 archive_cmds_need_lc=yes 10738 10739 if test yes,yes = "$GCC,$enable_shared"; then 10740 case $archive_cmds in 10741 *'~'*) 10742 # FIXME: we may have to deal with multi-command sequences. 10743 ;; 10744 '$CC '*) 10745 # Test whether the compiler implicitly links with -lc since on some 10746 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10747 # to ld, don't add -lc before -lgcc. 10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10749$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10750if ${lt_cv_archive_cmds_need_lc+:} false; then : 10751 $as_echo_n "(cached) " >&6 10752else 10753 $RM conftest* 10754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10755 10756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10757 (eval $ac_compile) 2>&5 10758 ac_status=$? 10759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10760 test $ac_status = 0; } 2>conftest.err; then 10761 soname=conftest 10762 lib=conftest 10763 libobjs=conftest.$ac_objext 10764 deplibs= 10765 wl=$lt_prog_compiler_wl 10766 pic_flag=$lt_prog_compiler_pic 10767 compiler_flags=-v 10768 linker_flags=-v 10769 verstring= 10770 output_objdir=. 10771 libname=conftest 10772 lt_save_allow_undefined_flag=$allow_undefined_flag 10773 allow_undefined_flag= 10774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10775 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10776 ac_status=$? 10777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10778 test $ac_status = 0; } 10779 then 10780 lt_cv_archive_cmds_need_lc=no 10781 else 10782 lt_cv_archive_cmds_need_lc=yes 10783 fi 10784 allow_undefined_flag=$lt_save_allow_undefined_flag 10785 else 10786 cat conftest.err 1>&5 10787 fi 10788 $RM conftest* 10789 10790fi 10791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10792$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10793 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10794 ;; 10795 esac 10796 fi 10797 ;; 10798esac 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10952$as_echo_n "checking dynamic linker characteristics... " >&6; } 10953 10954if test yes = "$GCC"; then 10955 case $host_os in 10956 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10957 *) lt_awk_arg='/^libraries:/' ;; 10958 esac 10959 case $host_os in 10960 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10961 *) lt_sed_strip_eq='s|=/|/|g' ;; 10962 esac 10963 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10964 case $lt_search_path_spec in 10965 *\;*) 10966 # if the path contains ";" then we assume it to be the separator 10967 # otherwise default to the standard path separator (i.e. ":") - it is 10968 # assumed that no part of a normal pathname contains ";" but that should 10969 # okay in the real world where ";" in dirpaths is itself problematic. 10970 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10971 ;; 10972 *) 10973 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10974 ;; 10975 esac 10976 # Ok, now we have the path, separated by spaces, we can step through it 10977 # and add multilib dir if necessary... 10978 lt_tmp_lt_search_path_spec= 10979 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10980 # ...but if some path component already ends with the multilib dir we assume 10981 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10982 case "$lt_multi_os_dir; $lt_search_path_spec " in 10983 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10984 lt_multi_os_dir= 10985 ;; 10986 esac 10987 for lt_sys_path in $lt_search_path_spec; do 10988 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10989 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10990 elif test -n "$lt_multi_os_dir"; then 10991 test -d "$lt_sys_path" && \ 10992 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10993 fi 10994 done 10995 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10996BEGIN {RS = " "; FS = "/|\n";} { 10997 lt_foo = ""; 10998 lt_count = 0; 10999 for (lt_i = NF; lt_i > 0; lt_i--) { 11000 if ($lt_i != "" && $lt_i != ".") { 11001 if ($lt_i == "..") { 11002 lt_count++; 11003 } else { 11004 if (lt_count == 0) { 11005 lt_foo = "/" $lt_i lt_foo; 11006 } else { 11007 lt_count--; 11008 } 11009 } 11010 } 11011 } 11012 if (lt_foo != "") { lt_freq[lt_foo]++; } 11013 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11014}'` 11015 # AWK program above erroneously prepends '/' to C:/dos/paths 11016 # for these hosts. 11017 case $host_os in 11018 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11019 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11020 esac 11021 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11022else 11023 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11024fi 11025library_names_spec= 11026libname_spec='lib$name' 11027soname_spec= 11028shrext_cmds=.so 11029postinstall_cmds= 11030postuninstall_cmds= 11031finish_cmds= 11032finish_eval= 11033shlibpath_var= 11034shlibpath_overrides_runpath=unknown 11035version_type=none 11036dynamic_linker="$host_os ld.so" 11037sys_lib_dlsearch_path_spec="/lib /usr/lib" 11038need_lib_prefix=unknown 11039hardcode_into_libs=no 11040 11041# when you set need_version to no, make sure it does not cause -set_version 11042# flags to be left without arguments 11043need_version=unknown 11044 11045 11046 11047case $host_os in 11048aix3*) 11049 version_type=linux # correct to gnu/linux during the next big refactor 11050 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11051 shlibpath_var=LIBPATH 11052 11053 # AIX 3 has no versioning support, so we append a major version to the name. 11054 soname_spec='$libname$release$shared_ext$major' 11055 ;; 11056 11057aix[4-9]*) 11058 version_type=linux # correct to gnu/linux during the next big refactor 11059 need_lib_prefix=no 11060 need_version=no 11061 hardcode_into_libs=yes 11062 if test ia64 = "$host_cpu"; then 11063 # AIX 5 supports IA64 11064 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11065 shlibpath_var=LD_LIBRARY_PATH 11066 else 11067 # With GCC up to 2.95.x, collect2 would create an import file 11068 # for dependence libraries. The import file would start with 11069 # the line '#! .'. This would cause the generated library to 11070 # depend on '.', always an invalid library. This was fixed in 11071 # development snapshots of GCC prior to 3.0. 11072 case $host_os in 11073 aix4 | aix4.[01] | aix4.[01].*) 11074 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11075 echo ' yes ' 11076 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11077 : 11078 else 11079 can_build_shared=no 11080 fi 11081 ;; 11082 esac 11083 # Using Import Files as archive members, it is possible to support 11084 # filename-based versioning of shared library archives on AIX. While 11085 # this would work for both with and without runtime linking, it will 11086 # prevent static linking of such archives. So we do filename-based 11087 # shared library versioning with .so extension only, which is used 11088 # when both runtime linking and shared linking is enabled. 11089 # Unfortunately, runtime linking may impact performance, so we do 11090 # not want this to be the default eventually. Also, we use the 11091 # versioned .so libs for executables only if there is the -brtl 11092 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11093 # To allow for filename-based versioning support, we need to create 11094 # libNAME.so.V as an archive file, containing: 11095 # *) an Import File, referring to the versioned filename of the 11096 # archive as well as the shared archive member, telling the 11097 # bitwidth (32 or 64) of that shared object, and providing the 11098 # list of exported symbols of that shared object, eventually 11099 # decorated with the 'weak' keyword 11100 # *) the shared object with the F_LOADONLY flag set, to really avoid 11101 # it being seen by the linker. 11102 # At run time we better use the real file rather than another symlink, 11103 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11104 11105 case $with_aix_soname,$aix_use_runtimelinking in 11106 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11107 # soname into executable. Probably we can add versioning support to 11108 # collect2, so additional links can be useful in future. 11109 aix,yes) # traditional libtool 11110 dynamic_linker='AIX unversionable lib.so' 11111 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11112 # instead of lib<name>.a to let people know that these are not 11113 # typical AIX shared libraries. 11114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11115 ;; 11116 aix,no) # traditional AIX only 11117 dynamic_linker='AIX lib.a(lib.so.V)' 11118 # We preserve .a as extension for shared libraries through AIX4.2 11119 # and later when we are not doing run time linking. 11120 library_names_spec='$libname$release.a $libname.a' 11121 soname_spec='$libname$release$shared_ext$major' 11122 ;; 11123 svr4,*) # full svr4 only 11124 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11125 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11126 # We do not specify a path in Import Files, so LIBPATH fires. 11127 shlibpath_overrides_runpath=yes 11128 ;; 11129 *,yes) # both, prefer svr4 11130 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11131 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11132 # unpreferred sharedlib libNAME.a needs extra handling 11133 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"' 11134 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"' 11135 # We do not specify a path in Import Files, so LIBPATH fires. 11136 shlibpath_overrides_runpath=yes 11137 ;; 11138 *,no) # both, prefer aix 11139 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11140 library_names_spec='$libname$release.a $libname.a' 11141 soname_spec='$libname$release$shared_ext$major' 11142 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11143 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)' 11144 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"' 11145 ;; 11146 esac 11147 shlibpath_var=LIBPATH 11148 fi 11149 ;; 11150 11151amigaos*) 11152 case $host_cpu in 11153 powerpc) 11154 # Since July 2007 AmigaOS4 officially supports .so libraries. 11155 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11156 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11157 ;; 11158 m68k) 11159 library_names_spec='$libname.ixlibrary $libname.a' 11160 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11161 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' 11162 ;; 11163 esac 11164 ;; 11165 11166beos*) 11167 library_names_spec='$libname$shared_ext' 11168 dynamic_linker="$host_os ld.so" 11169 shlibpath_var=LIBRARY_PATH 11170 ;; 11171 11172bsdi[45]*) 11173 version_type=linux # correct to gnu/linux during the next big refactor 11174 need_version=no 11175 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11176 soname_spec='$libname$release$shared_ext$major' 11177 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11178 shlibpath_var=LD_LIBRARY_PATH 11179 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11180 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11181 # the default ld.so.conf also contains /usr/contrib/lib and 11182 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11183 # libtool to hard-code these into programs 11184 ;; 11185 11186cygwin* | mingw* | pw32* | cegcc*) 11187 version_type=windows 11188 shrext_cmds=.dll 11189 need_version=no 11190 need_lib_prefix=no 11191 11192 case $GCC,$cc_basename in 11193 yes,*) 11194 # gcc 11195 library_names_spec='$libname.dll.a' 11196 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11197 postinstall_cmds='base_file=`basename \$file`~ 11198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11199 dldir=$destdir/`dirname \$dlpath`~ 11200 test -d \$dldir || mkdir -p \$dldir~ 11201 $install_prog $dir/$dlname \$dldir/$dlname~ 11202 chmod a+x \$dldir/$dlname~ 11203 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11204 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11205 fi' 11206 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11207 dlpath=$dir/\$dldll~ 11208 $RM \$dlpath' 11209 shlibpath_overrides_runpath=yes 11210 11211 case $host_os in 11212 cygwin*) 11213 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11214 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11215 11216 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11217 ;; 11218 mingw* | cegcc*) 11219 # MinGW DLLs use traditional 'lib' prefix 11220 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11221 ;; 11222 pw32*) 11223 # pw32 DLLs use 'pw' prefix rather than 'lib' 11224 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11225 ;; 11226 esac 11227 dynamic_linker='Win32 ld.exe' 11228 ;; 11229 11230 *,cl*) 11231 # Native MSVC 11232 libname_spec='$name' 11233 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11234 library_names_spec='$libname.dll.lib' 11235 11236 case $build_os in 11237 mingw*) 11238 sys_lib_search_path_spec= 11239 lt_save_ifs=$IFS 11240 IFS=';' 11241 for lt_path in $LIB 11242 do 11243 IFS=$lt_save_ifs 11244 # Let DOS variable expansion print the short 8.3 style file name. 11245 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11246 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11247 done 11248 IFS=$lt_save_ifs 11249 # Convert to MSYS style. 11250 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11251 ;; 11252 cygwin*) 11253 # Convert to unix form, then to dos form, then back to unix form 11254 # but this time dos style (no spaces!) so that the unix form looks 11255 # like /cygdrive/c/PROGRA~1:/cygdr... 11256 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11257 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11258 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11259 ;; 11260 *) 11261 sys_lib_search_path_spec=$LIB 11262 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11263 # It is most probably a Windows format PATH. 11264 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11265 else 11266 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11267 fi 11268 # FIXME: find the short name or the path components, as spaces are 11269 # common. (e.g. "Program Files" -> "PROGRA~1") 11270 ;; 11271 esac 11272 11273 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11274 postinstall_cmds='base_file=`basename \$file`~ 11275 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11276 dldir=$destdir/`dirname \$dlpath`~ 11277 test -d \$dldir || mkdir -p \$dldir~ 11278 $install_prog $dir/$dlname \$dldir/$dlname' 11279 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11280 dlpath=$dir/\$dldll~ 11281 $RM \$dlpath' 11282 shlibpath_overrides_runpath=yes 11283 dynamic_linker='Win32 link.exe' 11284 ;; 11285 11286 *) 11287 # Assume MSVC wrapper 11288 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11289 dynamic_linker='Win32 ld.exe' 11290 ;; 11291 esac 11292 # FIXME: first we should search . and the directory the executable is in 11293 shlibpath_var=PATH 11294 ;; 11295 11296darwin* | rhapsody*) 11297 dynamic_linker="$host_os dyld" 11298 version_type=darwin 11299 need_lib_prefix=no 11300 need_version=no 11301 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11302 soname_spec='$libname$release$major$shared_ext' 11303 shlibpath_overrides_runpath=yes 11304 shlibpath_var=DYLD_LIBRARY_PATH 11305 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11306 11307 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11308 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11309 ;; 11310 11311dgux*) 11312 version_type=linux # correct to gnu/linux during the next big refactor 11313 need_lib_prefix=no 11314 need_version=no 11315 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11316 soname_spec='$libname$release$shared_ext$major' 11317 shlibpath_var=LD_LIBRARY_PATH 11318 ;; 11319 11320freebsd* | dragonfly*) 11321 # DragonFly does not have aout. When/if they implement a new 11322 # versioning mechanism, adjust this. 11323 if test -x /usr/bin/objformat; then 11324 objformat=`/usr/bin/objformat` 11325 else 11326 case $host_os in 11327 freebsd[23].*) objformat=aout ;; 11328 *) objformat=elf ;; 11329 esac 11330 fi 11331 version_type=freebsd-$objformat 11332 case $version_type in 11333 freebsd-elf*) 11334 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11335 soname_spec='$libname$release$shared_ext$major' 11336 need_version=no 11337 need_lib_prefix=no 11338 ;; 11339 freebsd-*) 11340 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11341 need_version=yes 11342 ;; 11343 esac 11344 shlibpath_var=LD_LIBRARY_PATH 11345 case $host_os in 11346 freebsd2.*) 11347 shlibpath_overrides_runpath=yes 11348 ;; 11349 freebsd3.[01]* | freebsdelf3.[01]*) 11350 shlibpath_overrides_runpath=yes 11351 hardcode_into_libs=yes 11352 ;; 11353 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11354 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11355 shlibpath_overrides_runpath=no 11356 hardcode_into_libs=yes 11357 ;; 11358 *) # from 4.6 on, and DragonFly 11359 shlibpath_overrides_runpath=yes 11360 hardcode_into_libs=yes 11361 ;; 11362 esac 11363 ;; 11364 11365haiku*) 11366 version_type=linux # correct to gnu/linux during the next big refactor 11367 need_lib_prefix=no 11368 need_version=no 11369 dynamic_linker="$host_os runtime_loader" 11370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11371 soname_spec='$libname$release$shared_ext$major' 11372 shlibpath_var=LIBRARY_PATH 11373 shlibpath_overrides_runpath=no 11374 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11375 hardcode_into_libs=yes 11376 ;; 11377 11378hpux9* | hpux10* | hpux11*) 11379 # Give a soname corresponding to the major version so that dld.sl refuses to 11380 # link against other versions. 11381 version_type=sunos 11382 need_lib_prefix=no 11383 need_version=no 11384 case $host_cpu in 11385 ia64*) 11386 shrext_cmds='.so' 11387 hardcode_into_libs=yes 11388 dynamic_linker="$host_os dld.so" 11389 shlibpath_var=LD_LIBRARY_PATH 11390 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11392 soname_spec='$libname$release$shared_ext$major' 11393 if test 32 = "$HPUX_IA64_MODE"; then 11394 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11395 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11396 else 11397 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11398 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11399 fi 11400 ;; 11401 hppa*64*) 11402 shrext_cmds='.sl' 11403 hardcode_into_libs=yes 11404 dynamic_linker="$host_os dld.sl" 11405 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11406 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11407 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11408 soname_spec='$libname$release$shared_ext$major' 11409 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11410 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11411 ;; 11412 *) 11413 shrext_cmds='.sl' 11414 dynamic_linker="$host_os dld.sl" 11415 shlibpath_var=SHLIB_PATH 11416 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11417 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11418 soname_spec='$libname$release$shared_ext$major' 11419 ;; 11420 esac 11421 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11422 postinstall_cmds='chmod 555 $lib' 11423 # or fails outright, so override atomically: 11424 install_override_mode=555 11425 ;; 11426 11427interix[3-9]*) 11428 version_type=linux # correct to gnu/linux during the next big refactor 11429 need_lib_prefix=no 11430 need_version=no 11431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11432 soname_spec='$libname$release$shared_ext$major' 11433 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11434 shlibpath_var=LD_LIBRARY_PATH 11435 shlibpath_overrides_runpath=no 11436 hardcode_into_libs=yes 11437 ;; 11438 11439irix5* | irix6* | nonstopux*) 11440 case $host_os in 11441 nonstopux*) version_type=nonstopux ;; 11442 *) 11443 if test yes = "$lt_cv_prog_gnu_ld"; then 11444 version_type=linux # correct to gnu/linux during the next big refactor 11445 else 11446 version_type=irix 11447 fi ;; 11448 esac 11449 need_lib_prefix=no 11450 need_version=no 11451 soname_spec='$libname$release$shared_ext$major' 11452 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11453 case $host_os in 11454 irix5* | nonstopux*) 11455 libsuff= shlibsuff= 11456 ;; 11457 *) 11458 case $LD in # libtool.m4 will add one of these switches to LD 11459 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11460 libsuff= shlibsuff= libmagic=32-bit;; 11461 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11462 libsuff=32 shlibsuff=N32 libmagic=N32;; 11463 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11464 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11465 *) libsuff= shlibsuff= libmagic=never-match;; 11466 esac 11467 ;; 11468 esac 11469 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11470 shlibpath_overrides_runpath=no 11471 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11472 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11473 hardcode_into_libs=yes 11474 ;; 11475 11476# No shared lib support for Linux oldld, aout, or coff. 11477linux*oldld* | linux*aout* | linux*coff*) 11478 dynamic_linker=no 11479 ;; 11480 11481linux*android*) 11482 version_type=none # Android doesn't support versioned libraries. 11483 need_lib_prefix=no 11484 need_version=no 11485 library_names_spec='$libname$release$shared_ext' 11486 soname_spec='$libname$release$shared_ext' 11487 finish_cmds= 11488 shlibpath_var=LD_LIBRARY_PATH 11489 shlibpath_overrides_runpath=yes 11490 11491 # This implies no fast_install, which is unacceptable. 11492 # Some rework will be needed to allow for fast_install 11493 # before this can be enabled. 11494 hardcode_into_libs=yes 11495 11496 dynamic_linker='Android linker' 11497 # Don't embed -rpath directories since the linker doesn't support them. 11498 hardcode_libdir_flag_spec='-L$libdir' 11499 ;; 11500 11501# This must be glibc/ELF. 11502linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11503 version_type=linux # correct to gnu/linux during the next big refactor 11504 need_lib_prefix=no 11505 need_version=no 11506 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11507 soname_spec='$libname$release$shared_ext$major' 11508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11509 shlibpath_var=LD_LIBRARY_PATH 11510 shlibpath_overrides_runpath=no 11511 11512 # Some binutils ld are patched to set DT_RUNPATH 11513 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11514 $as_echo_n "(cached) " >&6 11515else 11516 lt_cv_shlibpath_overrides_runpath=no 11517 save_LDFLAGS=$LDFLAGS 11518 save_libdir=$libdir 11519 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11520 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11522/* end confdefs.h. */ 11523 11524int 11525main () 11526{ 11527 11528 ; 11529 return 0; 11530} 11531_ACEOF 11532if ac_fn_c_try_link "$LINENO"; then : 11533 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11534 lt_cv_shlibpath_overrides_runpath=yes 11535fi 11536fi 11537rm -f core conftest.err conftest.$ac_objext \ 11538 conftest$ac_exeext conftest.$ac_ext 11539 LDFLAGS=$save_LDFLAGS 11540 libdir=$save_libdir 11541 11542fi 11543 11544 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11545 11546 # This implies no fast_install, which is unacceptable. 11547 # Some rework will be needed to allow for fast_install 11548 # before this can be enabled. 11549 hardcode_into_libs=yes 11550 11551 # Ideally, we could use ldconfig to report *all* directores which are 11552 # searched for libraries, however this is still not possible. Aside from not 11553 # being certain /sbin/ldconfig is available, command 11554 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11555 # even though it is searched at run-time. Try to do the best guess by 11556 # appending ld.so.conf contents (and includes) to the search path. 11557 if test -f /etc/ld.so.conf; then 11558 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' ' '` 11559 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11560 fi 11561 11562 # We used to test for /lib/ld.so.1 and disable shared libraries on 11563 # powerpc, because MkLinux only supported shared libraries with the 11564 # GNU dynamic linker. Since this was broken with cross compilers, 11565 # most powerpc-linux boxes support dynamic linking these days and 11566 # people can always --disable-shared, the test was removed, and we 11567 # assume the GNU/Linux dynamic linker is in use. 11568 dynamic_linker='GNU/Linux ld.so' 11569 ;; 11570 11571netbsdelf*-gnu) 11572 version_type=linux 11573 need_lib_prefix=no 11574 need_version=no 11575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11576 soname_spec='${libname}${release}${shared_ext}$major' 11577 shlibpath_var=LD_LIBRARY_PATH 11578 shlibpath_overrides_runpath=no 11579 hardcode_into_libs=yes 11580 dynamic_linker='NetBSD ld.elf_so' 11581 ;; 11582 11583netbsd*) 11584 version_type=sunos 11585 need_lib_prefix=no 11586 need_version=no 11587 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11588 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11590 dynamic_linker='NetBSD (a.out) ld.so' 11591 else 11592 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11593 soname_spec='$libname$release$shared_ext$major' 11594 dynamic_linker='NetBSD ld.elf_so' 11595 fi 11596 shlibpath_var=LD_LIBRARY_PATH 11597 shlibpath_overrides_runpath=yes 11598 hardcode_into_libs=yes 11599 ;; 11600 11601newsos6) 11602 version_type=linux # correct to gnu/linux during the next big refactor 11603 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11604 shlibpath_var=LD_LIBRARY_PATH 11605 shlibpath_overrides_runpath=yes 11606 ;; 11607 11608*nto* | *qnx*) 11609 version_type=qnx 11610 need_lib_prefix=no 11611 need_version=no 11612 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11613 soname_spec='$libname$release$shared_ext$major' 11614 shlibpath_var=LD_LIBRARY_PATH 11615 shlibpath_overrides_runpath=no 11616 hardcode_into_libs=yes 11617 dynamic_linker='ldqnx.so' 11618 ;; 11619 11620openbsd* | bitrig*) 11621 version_type=sunos 11622 sys_lib_dlsearch_path_spec=/usr/lib 11623 need_lib_prefix=no 11624 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11625 need_version=no 11626 else 11627 need_version=yes 11628 fi 11629 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11631 shlibpath_var=LD_LIBRARY_PATH 11632 shlibpath_overrides_runpath=yes 11633 ;; 11634 11635os2*) 11636 libname_spec='$name' 11637 version_type=windows 11638 shrext_cmds=.dll 11639 need_version=no 11640 need_lib_prefix=no 11641 # OS/2 can only load a DLL with a base name of 8 characters or less. 11642 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11643 v=$($ECHO $release$versuffix | tr -d .-); 11644 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11645 $ECHO $n$v`$shared_ext' 11646 library_names_spec='${libname}_dll.$libext' 11647 dynamic_linker='OS/2 ld.exe' 11648 shlibpath_var=BEGINLIBPATH 11649 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11650 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11651 postinstall_cmds='base_file=`basename \$file`~ 11652 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11653 dldir=$destdir/`dirname \$dlpath`~ 11654 test -d \$dldir || mkdir -p \$dldir~ 11655 $install_prog $dir/$dlname \$dldir/$dlname~ 11656 chmod a+x \$dldir/$dlname~ 11657 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11658 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11659 fi' 11660 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11661 dlpath=$dir/\$dldll~ 11662 $RM \$dlpath' 11663 ;; 11664 11665osf3* | osf4* | osf5*) 11666 version_type=osf 11667 need_lib_prefix=no 11668 need_version=no 11669 soname_spec='$libname$release$shared_ext$major' 11670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11671 shlibpath_var=LD_LIBRARY_PATH 11672 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11673 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11674 ;; 11675 11676rdos*) 11677 dynamic_linker=no 11678 ;; 11679 11680solaris*) 11681 version_type=linux # correct to gnu/linux during the next big refactor 11682 need_lib_prefix=no 11683 need_version=no 11684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11685 soname_spec='$libname$release$shared_ext$major' 11686 shlibpath_var=LD_LIBRARY_PATH 11687 shlibpath_overrides_runpath=yes 11688 hardcode_into_libs=yes 11689 # ldd complains unless libraries are executable 11690 postinstall_cmds='chmod +x $lib' 11691 ;; 11692 11693sunos4*) 11694 version_type=sunos 11695 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11696 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11697 shlibpath_var=LD_LIBRARY_PATH 11698 shlibpath_overrides_runpath=yes 11699 if test yes = "$with_gnu_ld"; then 11700 need_lib_prefix=no 11701 fi 11702 need_version=yes 11703 ;; 11704 11705sysv4 | sysv4.3*) 11706 version_type=linux # correct to gnu/linux during the next big refactor 11707 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11708 soname_spec='$libname$release$shared_ext$major' 11709 shlibpath_var=LD_LIBRARY_PATH 11710 case $host_vendor in 11711 sni) 11712 shlibpath_overrides_runpath=no 11713 need_lib_prefix=no 11714 runpath_var=LD_RUN_PATH 11715 ;; 11716 siemens) 11717 need_lib_prefix=no 11718 ;; 11719 motorola) 11720 need_lib_prefix=no 11721 need_version=no 11722 shlibpath_overrides_runpath=no 11723 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11724 ;; 11725 esac 11726 ;; 11727 11728sysv4*MP*) 11729 if test -d /usr/nec; then 11730 version_type=linux # correct to gnu/linux during the next big refactor 11731 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11732 soname_spec='$libname$shared_ext.$major' 11733 shlibpath_var=LD_LIBRARY_PATH 11734 fi 11735 ;; 11736 11737sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11738 version_type=sco 11739 need_lib_prefix=no 11740 need_version=no 11741 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11742 soname_spec='$libname$release$shared_ext$major' 11743 shlibpath_var=LD_LIBRARY_PATH 11744 shlibpath_overrides_runpath=yes 11745 hardcode_into_libs=yes 11746 if test yes = "$with_gnu_ld"; then 11747 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11748 else 11749 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11750 case $host_os in 11751 sco3.2v5*) 11752 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11753 ;; 11754 esac 11755 fi 11756 sys_lib_dlsearch_path_spec='/usr/lib' 11757 ;; 11758 11759tpf*) 11760 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11761 version_type=linux # correct to gnu/linux during the next big refactor 11762 need_lib_prefix=no 11763 need_version=no 11764 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11765 shlibpath_var=LD_LIBRARY_PATH 11766 shlibpath_overrides_runpath=no 11767 hardcode_into_libs=yes 11768 ;; 11769 11770uts4*) 11771 version_type=linux # correct to gnu/linux during the next big refactor 11772 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11773 soname_spec='$libname$release$shared_ext$major' 11774 shlibpath_var=LD_LIBRARY_PATH 11775 ;; 11776 11777*) 11778 dynamic_linker=no 11779 ;; 11780esac 11781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11782$as_echo "$dynamic_linker" >&6; } 11783test no = "$dynamic_linker" && can_build_shared=no 11784 11785variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11786if test yes = "$GCC"; then 11787 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11788fi 11789 11790if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11791 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11792fi 11793 11794if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11795 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11796fi 11797 11798# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11799configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11800 11801# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11802func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11803 11804# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11805configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11904$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11905hardcode_action= 11906if test -n "$hardcode_libdir_flag_spec" || 11907 test -n "$runpath_var" || 11908 test yes = "$hardcode_automatic"; then 11909 11910 # We can hardcode non-existent directories. 11911 if test no != "$hardcode_direct" && 11912 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11913 # have to relink, otherwise we might link with an installed library 11914 # when we should be linking with a yet-to-be-installed one 11915 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11916 test no != "$hardcode_minus_L"; then 11917 # Linking always hardcodes the temporary library directory. 11918 hardcode_action=relink 11919 else 11920 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11921 hardcode_action=immediate 11922 fi 11923else 11924 # We cannot hardcode anything, or else we can only hardcode existing 11925 # directories. 11926 hardcode_action=unsupported 11927fi 11928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11929$as_echo "$hardcode_action" >&6; } 11930 11931if test relink = "$hardcode_action" || 11932 test yes = "$inherit_rpath"; then 11933 # Fast installation is not supported 11934 enable_fast_install=no 11935elif test yes = "$shlibpath_overrides_runpath" || 11936 test no = "$enable_shared"; then 11937 # Fast installation is not necessary 11938 enable_fast_install=needless 11939fi 11940 11941 11942 11943 11944 11945 11946 if test yes != "$enable_dlopen"; then 11947 enable_dlopen=unknown 11948 enable_dlopen_self=unknown 11949 enable_dlopen_self_static=unknown 11950else 11951 lt_cv_dlopen=no 11952 lt_cv_dlopen_libs= 11953 11954 case $host_os in 11955 beos*) 11956 lt_cv_dlopen=load_add_on 11957 lt_cv_dlopen_libs= 11958 lt_cv_dlopen_self=yes 11959 ;; 11960 11961 mingw* | pw32* | cegcc*) 11962 lt_cv_dlopen=LoadLibrary 11963 lt_cv_dlopen_libs= 11964 ;; 11965 11966 cygwin*) 11967 lt_cv_dlopen=dlopen 11968 lt_cv_dlopen_libs= 11969 ;; 11970 11971 darwin*) 11972 # if libdl is installed we need to link against it 11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11974$as_echo_n "checking for dlopen in -ldl... " >&6; } 11975if ${ac_cv_lib_dl_dlopen+:} false; then : 11976 $as_echo_n "(cached) " >&6 11977else 11978 ac_check_lib_save_LIBS=$LIBS 11979LIBS="-ldl $LIBS" 11980cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11981/* end confdefs.h. */ 11982 11983/* Override any GCC internal prototype to avoid an error. 11984 Use char because int might match the return type of a GCC 11985 builtin and then its argument prototype would still apply. */ 11986#ifdef __cplusplus 11987extern "C" 11988#endif 11989char dlopen (); 11990int 11991main () 11992{ 11993return dlopen (); 11994 ; 11995 return 0; 11996} 11997_ACEOF 11998if ac_fn_c_try_link "$LINENO"; then : 11999 ac_cv_lib_dl_dlopen=yes 12000else 12001 ac_cv_lib_dl_dlopen=no 12002fi 12003rm -f core conftest.err conftest.$ac_objext \ 12004 conftest$ac_exeext conftest.$ac_ext 12005LIBS=$ac_check_lib_save_LIBS 12006fi 12007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12008$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12009if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12010 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12011else 12012 12013 lt_cv_dlopen=dyld 12014 lt_cv_dlopen_libs= 12015 lt_cv_dlopen_self=yes 12016 12017fi 12018 12019 ;; 12020 12021 tpf*) 12022 # Don't try to run any link tests for TPF. We know it's impossible 12023 # because TPF is a cross-compiler, and we know how we open DSOs. 12024 lt_cv_dlopen=dlopen 12025 lt_cv_dlopen_libs= 12026 lt_cv_dlopen_self=no 12027 ;; 12028 12029 *) 12030 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12031if test "x$ac_cv_func_shl_load" = xyes; then : 12032 lt_cv_dlopen=shl_load 12033else 12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12035$as_echo_n "checking for shl_load in -ldld... " >&6; } 12036if ${ac_cv_lib_dld_shl_load+:} false; then : 12037 $as_echo_n "(cached) " >&6 12038else 12039 ac_check_lib_save_LIBS=$LIBS 12040LIBS="-ldld $LIBS" 12041cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12042/* end confdefs.h. */ 12043 12044/* Override any GCC internal prototype to avoid an error. 12045 Use char because int might match the return type of a GCC 12046 builtin and then its argument prototype would still apply. */ 12047#ifdef __cplusplus 12048extern "C" 12049#endif 12050char shl_load (); 12051int 12052main () 12053{ 12054return shl_load (); 12055 ; 12056 return 0; 12057} 12058_ACEOF 12059if ac_fn_c_try_link "$LINENO"; then : 12060 ac_cv_lib_dld_shl_load=yes 12061else 12062 ac_cv_lib_dld_shl_load=no 12063fi 12064rm -f core conftest.err conftest.$ac_objext \ 12065 conftest$ac_exeext conftest.$ac_ext 12066LIBS=$ac_check_lib_save_LIBS 12067fi 12068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12069$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12070if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12071 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12072else 12073 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12074if test "x$ac_cv_func_dlopen" = xyes; then : 12075 lt_cv_dlopen=dlopen 12076else 12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12078$as_echo_n "checking for dlopen in -ldl... " >&6; } 12079if ${ac_cv_lib_dl_dlopen+:} false; then : 12080 $as_echo_n "(cached) " >&6 12081else 12082 ac_check_lib_save_LIBS=$LIBS 12083LIBS="-ldl $LIBS" 12084cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12085/* end confdefs.h. */ 12086 12087/* Override any GCC internal prototype to avoid an error. 12088 Use char because int might match the return type of a GCC 12089 builtin and then its argument prototype would still apply. */ 12090#ifdef __cplusplus 12091extern "C" 12092#endif 12093char dlopen (); 12094int 12095main () 12096{ 12097return dlopen (); 12098 ; 12099 return 0; 12100} 12101_ACEOF 12102if ac_fn_c_try_link "$LINENO"; then : 12103 ac_cv_lib_dl_dlopen=yes 12104else 12105 ac_cv_lib_dl_dlopen=no 12106fi 12107rm -f core conftest.err conftest.$ac_objext \ 12108 conftest$ac_exeext conftest.$ac_ext 12109LIBS=$ac_check_lib_save_LIBS 12110fi 12111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12112$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12113if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12114 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12115else 12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12117$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12118if ${ac_cv_lib_svld_dlopen+:} false; then : 12119 $as_echo_n "(cached) " >&6 12120else 12121 ac_check_lib_save_LIBS=$LIBS 12122LIBS="-lsvld $LIBS" 12123cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12124/* end confdefs.h. */ 12125 12126/* Override any GCC internal prototype to avoid an error. 12127 Use char because int might match the return type of a GCC 12128 builtin and then its argument prototype would still apply. */ 12129#ifdef __cplusplus 12130extern "C" 12131#endif 12132char dlopen (); 12133int 12134main () 12135{ 12136return dlopen (); 12137 ; 12138 return 0; 12139} 12140_ACEOF 12141if ac_fn_c_try_link "$LINENO"; then : 12142 ac_cv_lib_svld_dlopen=yes 12143else 12144 ac_cv_lib_svld_dlopen=no 12145fi 12146rm -f core conftest.err conftest.$ac_objext \ 12147 conftest$ac_exeext conftest.$ac_ext 12148LIBS=$ac_check_lib_save_LIBS 12149fi 12150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12151$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12152if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12153 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12154else 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12156$as_echo_n "checking for dld_link in -ldld... " >&6; } 12157if ${ac_cv_lib_dld_dld_link+:} false; then : 12158 $as_echo_n "(cached) " >&6 12159else 12160 ac_check_lib_save_LIBS=$LIBS 12161LIBS="-ldld $LIBS" 12162cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12163/* end confdefs.h. */ 12164 12165/* Override any GCC internal prototype to avoid an error. 12166 Use char because int might match the return type of a GCC 12167 builtin and then its argument prototype would still apply. */ 12168#ifdef __cplusplus 12169extern "C" 12170#endif 12171char dld_link (); 12172int 12173main () 12174{ 12175return dld_link (); 12176 ; 12177 return 0; 12178} 12179_ACEOF 12180if ac_fn_c_try_link "$LINENO"; then : 12181 ac_cv_lib_dld_dld_link=yes 12182else 12183 ac_cv_lib_dld_dld_link=no 12184fi 12185rm -f core conftest.err conftest.$ac_objext \ 12186 conftest$ac_exeext conftest.$ac_ext 12187LIBS=$ac_check_lib_save_LIBS 12188fi 12189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12190$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12191if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12192 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12193fi 12194 12195 12196fi 12197 12198 12199fi 12200 12201 12202fi 12203 12204 12205fi 12206 12207 12208fi 12209 12210 ;; 12211 esac 12212 12213 if test no = "$lt_cv_dlopen"; then 12214 enable_dlopen=no 12215 else 12216 enable_dlopen=yes 12217 fi 12218 12219 case $lt_cv_dlopen in 12220 dlopen) 12221 save_CPPFLAGS=$CPPFLAGS 12222 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12223 12224 save_LDFLAGS=$LDFLAGS 12225 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12226 12227 save_LIBS=$LIBS 12228 LIBS="$lt_cv_dlopen_libs $LIBS" 12229 12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12231$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12232if ${lt_cv_dlopen_self+:} false; then : 12233 $as_echo_n "(cached) " >&6 12234else 12235 if test yes = "$cross_compiling"; then : 12236 lt_cv_dlopen_self=cross 12237else 12238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12239 lt_status=$lt_dlunknown 12240 cat > conftest.$ac_ext <<_LT_EOF 12241#line $LINENO "configure" 12242#include "confdefs.h" 12243 12244#if HAVE_DLFCN_H 12245#include <dlfcn.h> 12246#endif 12247 12248#include <stdio.h> 12249 12250#ifdef RTLD_GLOBAL 12251# define LT_DLGLOBAL RTLD_GLOBAL 12252#else 12253# ifdef DL_GLOBAL 12254# define LT_DLGLOBAL DL_GLOBAL 12255# else 12256# define LT_DLGLOBAL 0 12257# endif 12258#endif 12259 12260/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12261 find out it does not work in some platform. */ 12262#ifndef LT_DLLAZY_OR_NOW 12263# ifdef RTLD_LAZY 12264# define LT_DLLAZY_OR_NOW RTLD_LAZY 12265# else 12266# ifdef DL_LAZY 12267# define LT_DLLAZY_OR_NOW DL_LAZY 12268# else 12269# ifdef RTLD_NOW 12270# define LT_DLLAZY_OR_NOW RTLD_NOW 12271# else 12272# ifdef DL_NOW 12273# define LT_DLLAZY_OR_NOW DL_NOW 12274# else 12275# define LT_DLLAZY_OR_NOW 0 12276# endif 12277# endif 12278# endif 12279# endif 12280#endif 12281 12282/* When -fvisibility=hidden is used, assume the code has been annotated 12283 correspondingly for the symbols needed. */ 12284#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12285int fnord () __attribute__((visibility("default"))); 12286#endif 12287 12288int fnord () { return 42; } 12289int main () 12290{ 12291 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12292 int status = $lt_dlunknown; 12293 12294 if (self) 12295 { 12296 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12297 else 12298 { 12299 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12300 else puts (dlerror ()); 12301 } 12302 /* dlclose (self); */ 12303 } 12304 else 12305 puts (dlerror ()); 12306 12307 return status; 12308} 12309_LT_EOF 12310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12311 (eval $ac_link) 2>&5 12312 ac_status=$? 12313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12314 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12315 (./conftest; exit; ) >&5 2>/dev/null 12316 lt_status=$? 12317 case x$lt_status in 12318 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12319 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12320 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12321 esac 12322 else : 12323 # compilation failed 12324 lt_cv_dlopen_self=no 12325 fi 12326fi 12327rm -fr conftest* 12328 12329 12330fi 12331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12332$as_echo "$lt_cv_dlopen_self" >&6; } 12333 12334 if test yes = "$lt_cv_dlopen_self"; then 12335 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12337$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12338if ${lt_cv_dlopen_self_static+:} false; then : 12339 $as_echo_n "(cached) " >&6 12340else 12341 if test yes = "$cross_compiling"; then : 12342 lt_cv_dlopen_self_static=cross 12343else 12344 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12345 lt_status=$lt_dlunknown 12346 cat > conftest.$ac_ext <<_LT_EOF 12347#line $LINENO "configure" 12348#include "confdefs.h" 12349 12350#if HAVE_DLFCN_H 12351#include <dlfcn.h> 12352#endif 12353 12354#include <stdio.h> 12355 12356#ifdef RTLD_GLOBAL 12357# define LT_DLGLOBAL RTLD_GLOBAL 12358#else 12359# ifdef DL_GLOBAL 12360# define LT_DLGLOBAL DL_GLOBAL 12361# else 12362# define LT_DLGLOBAL 0 12363# endif 12364#endif 12365 12366/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12367 find out it does not work in some platform. */ 12368#ifndef LT_DLLAZY_OR_NOW 12369# ifdef RTLD_LAZY 12370# define LT_DLLAZY_OR_NOW RTLD_LAZY 12371# else 12372# ifdef DL_LAZY 12373# define LT_DLLAZY_OR_NOW DL_LAZY 12374# else 12375# ifdef RTLD_NOW 12376# define LT_DLLAZY_OR_NOW RTLD_NOW 12377# else 12378# ifdef DL_NOW 12379# define LT_DLLAZY_OR_NOW DL_NOW 12380# else 12381# define LT_DLLAZY_OR_NOW 0 12382# endif 12383# endif 12384# endif 12385# endif 12386#endif 12387 12388/* When -fvisibility=hidden is used, assume the code has been annotated 12389 correspondingly for the symbols needed. */ 12390#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12391int fnord () __attribute__((visibility("default"))); 12392#endif 12393 12394int fnord () { return 42; } 12395int main () 12396{ 12397 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12398 int status = $lt_dlunknown; 12399 12400 if (self) 12401 { 12402 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12403 else 12404 { 12405 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12406 else puts (dlerror ()); 12407 } 12408 /* dlclose (self); */ 12409 } 12410 else 12411 puts (dlerror ()); 12412 12413 return status; 12414} 12415_LT_EOF 12416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12417 (eval $ac_link) 2>&5 12418 ac_status=$? 12419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12420 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12421 (./conftest; exit; ) >&5 2>/dev/null 12422 lt_status=$? 12423 case x$lt_status in 12424 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12425 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12426 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12427 esac 12428 else : 12429 # compilation failed 12430 lt_cv_dlopen_self_static=no 12431 fi 12432fi 12433rm -fr conftest* 12434 12435 12436fi 12437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12438$as_echo "$lt_cv_dlopen_self_static" >&6; } 12439 fi 12440 12441 CPPFLAGS=$save_CPPFLAGS 12442 LDFLAGS=$save_LDFLAGS 12443 LIBS=$save_LIBS 12444 ;; 12445 esac 12446 12447 case $lt_cv_dlopen_self in 12448 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12449 *) enable_dlopen_self=unknown ;; 12450 esac 12451 12452 case $lt_cv_dlopen_self_static in 12453 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12454 *) enable_dlopen_self_static=unknown ;; 12455 esac 12456fi 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474striplib= 12475old_striplib= 12476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12477$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12478if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12479 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12480 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12482$as_echo "yes" >&6; } 12483else 12484# FIXME - insert some real tests, host_os isn't really good enough 12485 case $host_os in 12486 darwin*) 12487 if test -n "$STRIP"; then 12488 striplib="$STRIP -x" 12489 old_striplib="$STRIP -S" 12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12491$as_echo "yes" >&6; } 12492 else 12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12494$as_echo "no" >&6; } 12495 fi 12496 ;; 12497 *) 12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12499$as_echo "no" >&6; } 12500 ;; 12501 esac 12502fi 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 # Report what library types will actually be built 12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12517$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12519$as_echo "$can_build_shared" >&6; } 12520 12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12522$as_echo_n "checking whether to build shared libraries... " >&6; } 12523 test no = "$can_build_shared" && enable_shared=no 12524 12525 # On AIX, shared libraries and static libraries use the same namespace, and 12526 # are all built from PIC. 12527 case $host_os in 12528 aix3*) 12529 test yes = "$enable_shared" && enable_static=no 12530 if test -n "$RANLIB"; then 12531 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12532 postinstall_cmds='$RANLIB $lib' 12533 fi 12534 ;; 12535 12536 aix[4-9]*) 12537 if test ia64 != "$host_cpu"; then 12538 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12539 yes,aix,yes) ;; # shared object as lib.so file only 12540 yes,svr4,*) ;; # shared object as lib.so archive member only 12541 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12542 esac 12543 fi 12544 ;; 12545 esac 12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12547$as_echo "$enable_shared" >&6; } 12548 12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12550$as_echo_n "checking whether to build static libraries... " >&6; } 12551 # Make sure either enable_shared or enable_static is yes. 12552 test yes = "$enable_shared" || enable_static=yes 12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12554$as_echo "$enable_static" >&6; } 12555 12556 12557 12558 12559fi 12560ac_ext=c 12561ac_cpp='$CPP $CPPFLAGS' 12562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12564ac_compiler_gnu=$ac_cv_c_compiler_gnu 12565 12566CC=$lt_save_CC 12567 12568 if test -n "$CXX" && ( test no != "$CXX" && 12569 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 12570 (test g++ != "$CXX"))); then 12571 ac_ext=cpp 12572ac_cpp='$CXXCPP $CPPFLAGS' 12573ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12574ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12575ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12577$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12578if test -z "$CXXCPP"; then 12579 if ${ac_cv_prog_CXXCPP+:} false; then : 12580 $as_echo_n "(cached) " >&6 12581else 12582 # Double quotes because CXXCPP needs to be expanded 12583 for CXXCPP in "$CXX -E" "/lib/cpp" 12584 do 12585 ac_preproc_ok=false 12586for ac_cxx_preproc_warn_flag in '' yes 12587do 12588 # Use a header file that comes with gcc, so configuring glibc 12589 # with a fresh cross-compiler works. 12590 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12591 # <limits.h> exists even on freestanding compilers. 12592 # On the NeXT, cc -E runs the code through the compiler's parser, 12593 # not just through cpp. "Syntax error" is here to catch this case. 12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12595/* end confdefs.h. */ 12596#ifdef __STDC__ 12597# include <limits.h> 12598#else 12599# include <assert.h> 12600#endif 12601 Syntax error 12602_ACEOF 12603if ac_fn_cxx_try_cpp "$LINENO"; then : 12604 12605else 12606 # Broken: fails on valid input. 12607continue 12608fi 12609rm -f conftest.err conftest.i conftest.$ac_ext 12610 12611 # OK, works on sane cases. Now check whether nonexistent headers 12612 # can be detected and how. 12613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12614/* end confdefs.h. */ 12615#include <ac_nonexistent.h> 12616_ACEOF 12617if ac_fn_cxx_try_cpp "$LINENO"; then : 12618 # Broken: success on invalid input. 12619continue 12620else 12621 # Passes both tests. 12622ac_preproc_ok=: 12623break 12624fi 12625rm -f conftest.err conftest.i conftest.$ac_ext 12626 12627done 12628# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12629rm -f conftest.i conftest.err conftest.$ac_ext 12630if $ac_preproc_ok; then : 12631 break 12632fi 12633 12634 done 12635 ac_cv_prog_CXXCPP=$CXXCPP 12636 12637fi 12638 CXXCPP=$ac_cv_prog_CXXCPP 12639else 12640 ac_cv_prog_CXXCPP=$CXXCPP 12641fi 12642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12643$as_echo "$CXXCPP" >&6; } 12644ac_preproc_ok=false 12645for ac_cxx_preproc_warn_flag in '' yes 12646do 12647 # Use a header file that comes with gcc, so configuring glibc 12648 # with a fresh cross-compiler works. 12649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12650 # <limits.h> exists even on freestanding compilers. 12651 # On the NeXT, cc -E runs the code through the compiler's parser, 12652 # not just through cpp. "Syntax error" is here to catch this case. 12653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12654/* end confdefs.h. */ 12655#ifdef __STDC__ 12656# include <limits.h> 12657#else 12658# include <assert.h> 12659#endif 12660 Syntax error 12661_ACEOF 12662if ac_fn_cxx_try_cpp "$LINENO"; then : 12663 12664else 12665 # Broken: fails on valid input. 12666continue 12667fi 12668rm -f conftest.err conftest.i conftest.$ac_ext 12669 12670 # OK, works on sane cases. Now check whether nonexistent headers 12671 # can be detected and how. 12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12673/* end confdefs.h. */ 12674#include <ac_nonexistent.h> 12675_ACEOF 12676if ac_fn_cxx_try_cpp "$LINENO"; then : 12677 # Broken: success on invalid input. 12678continue 12679else 12680 # Passes both tests. 12681ac_preproc_ok=: 12682break 12683fi 12684rm -f conftest.err conftest.i conftest.$ac_ext 12685 12686done 12687# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12688rm -f conftest.i conftest.err conftest.$ac_ext 12689if $ac_preproc_ok; then : 12690 12691else 12692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12694as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12695See \`config.log' for more details" "$LINENO" 5; } 12696fi 12697 12698ac_ext=c 12699ac_cpp='$CPP $CPPFLAGS' 12700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12702ac_compiler_gnu=$ac_cv_c_compiler_gnu 12703 12704else 12705 _lt_caught_CXX_error=yes 12706fi 12707 12708ac_ext=cpp 12709ac_cpp='$CXXCPP $CPPFLAGS' 12710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12713 12714archive_cmds_need_lc_CXX=no 12715allow_undefined_flag_CXX= 12716always_export_symbols_CXX=no 12717archive_expsym_cmds_CXX= 12718compiler_needs_object_CXX=no 12719export_dynamic_flag_spec_CXX= 12720hardcode_direct_CXX=no 12721hardcode_direct_absolute_CXX=no 12722hardcode_libdir_flag_spec_CXX= 12723hardcode_libdir_separator_CXX= 12724hardcode_minus_L_CXX=no 12725hardcode_shlibpath_var_CXX=unsupported 12726hardcode_automatic_CXX=no 12727inherit_rpath_CXX=no 12728module_cmds_CXX= 12729module_expsym_cmds_CXX= 12730link_all_deplibs_CXX=unknown 12731old_archive_cmds_CXX=$old_archive_cmds 12732reload_flag_CXX=$reload_flag 12733reload_cmds_CXX=$reload_cmds 12734no_undefined_flag_CXX= 12735whole_archive_flag_spec_CXX= 12736enable_shared_with_static_runtimes_CXX=no 12737 12738# Source file extension for C++ test sources. 12739ac_ext=cpp 12740 12741# Object file extension for compiled C++ test sources. 12742objext=o 12743objext_CXX=$objext 12744 12745# No sense in running all these tests if we already determined that 12746# the CXX compiler isn't working. Some variables (like enable_shared) 12747# are currently assumed to apply to all compilers on this platform, 12748# and will be corrupted by setting them based on a non-working compiler. 12749if test yes != "$_lt_caught_CXX_error"; then 12750 # Code to be used in simple compile tests 12751 lt_simple_compile_test_code="int some_variable = 0;" 12752 12753 # Code to be used in simple link tests 12754 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12755 12756 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12757 12758 12759 12760 12761 12762 12763# If no C compiler was specified, use CC. 12764LTCC=${LTCC-"$CC"} 12765 12766# If no C compiler flags were specified, use CFLAGS. 12767LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12768 12769# Allow CC to be a program name with arguments. 12770compiler=$CC 12771 12772 12773 # save warnings/boilerplate of simple test code 12774 ac_outfile=conftest.$ac_objext 12775echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12776eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12777_lt_compiler_boilerplate=`cat conftest.err` 12778$RM conftest* 12779 12780 ac_outfile=conftest.$ac_objext 12781echo "$lt_simple_link_test_code" >conftest.$ac_ext 12782eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12783_lt_linker_boilerplate=`cat conftest.err` 12784$RM -r conftest* 12785 12786 12787 # Allow CC to be a program name with arguments. 12788 lt_save_CC=$CC 12789 lt_save_CFLAGS=$CFLAGS 12790 lt_save_LD=$LD 12791 lt_save_GCC=$GCC 12792 GCC=$GXX 12793 lt_save_with_gnu_ld=$with_gnu_ld 12794 lt_save_path_LD=$lt_cv_path_LD 12795 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12796 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12797 else 12798 $as_unset lt_cv_prog_gnu_ld 12799 fi 12800 if test -n "${lt_cv_path_LDCXX+set}"; then 12801 lt_cv_path_LD=$lt_cv_path_LDCXX 12802 else 12803 $as_unset lt_cv_path_LD 12804 fi 12805 test -z "${LDCXX+set}" || LD=$LDCXX 12806 CC=${CXX-"c++"} 12807 CFLAGS=$CXXFLAGS 12808 compiler=$CC 12809 compiler_CXX=$CC 12810 func_cc_basename $compiler 12811cc_basename=$func_cc_basename_result 12812 12813 12814 if test -n "$compiler"; then 12815 # We don't want -fno-exception when compiling C++ code, so set the 12816 # no_builtin_flag separately 12817 if test yes = "$GXX"; then 12818 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12819 else 12820 lt_prog_compiler_no_builtin_flag_CXX= 12821 fi 12822 12823 if test yes = "$GXX"; then 12824 # Set up default GNU C++ configuration 12825 12826 12827 12828# Check whether --with-gnu-ld was given. 12829if test "${with_gnu_ld+set}" = set; then : 12830 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 12831else 12832 with_gnu_ld=no 12833fi 12834 12835ac_prog=ld 12836if test yes = "$GCC"; then 12837 # Check if gcc -print-prog-name=ld gives a path. 12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12839$as_echo_n "checking for ld used by $CC... " >&6; } 12840 case $host in 12841 *-*-mingw*) 12842 # gcc leaves a trailing carriage return, which upsets mingw 12843 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12844 *) 12845 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12846 esac 12847 case $ac_prog in 12848 # Accept absolute paths. 12849 [\\/]* | ?:[\\/]*) 12850 re_direlt='/[^/][^/]*/\.\./' 12851 # Canonicalize the pathname of ld 12852 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12853 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12854 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12855 done 12856 test -z "$LD" && LD=$ac_prog 12857 ;; 12858 "") 12859 # If it fails, then pretend we aren't using GCC. 12860 ac_prog=ld 12861 ;; 12862 *) 12863 # If it is relative, then search for the first ld in PATH. 12864 with_gnu_ld=unknown 12865 ;; 12866 esac 12867elif test yes = "$with_gnu_ld"; then 12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12869$as_echo_n "checking for GNU ld... " >&6; } 12870else 12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12872$as_echo_n "checking for non-GNU ld... " >&6; } 12873fi 12874if ${lt_cv_path_LD+:} false; then : 12875 $as_echo_n "(cached) " >&6 12876else 12877 if test -z "$LD"; then 12878 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 12879 for ac_dir in $PATH; do 12880 IFS=$lt_save_ifs 12881 test -z "$ac_dir" && ac_dir=. 12882 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12883 lt_cv_path_LD=$ac_dir/$ac_prog 12884 # Check to see if the program is GNU ld. I'd rather use --version, 12885 # but apparently some variants of GNU ld only accept -v. 12886 # Break only if it was the GNU/non-GNU ld that we prefer. 12887 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12888 *GNU* | *'with BFD'*) 12889 test no != "$with_gnu_ld" && break 12890 ;; 12891 *) 12892 test yes != "$with_gnu_ld" && break 12893 ;; 12894 esac 12895 fi 12896 done 12897 IFS=$lt_save_ifs 12898else 12899 lt_cv_path_LD=$LD # Let the user override the test with a path. 12900fi 12901fi 12902 12903LD=$lt_cv_path_LD 12904if test -n "$LD"; then 12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12906$as_echo "$LD" >&6; } 12907else 12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12909$as_echo "no" >&6; } 12910fi 12911test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12913$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12914if ${lt_cv_prog_gnu_ld+:} false; then : 12915 $as_echo_n "(cached) " >&6 12916else 12917 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12918case `$LD -v 2>&1 </dev/null` in 12919*GNU* | *'with BFD'*) 12920 lt_cv_prog_gnu_ld=yes 12921 ;; 12922*) 12923 lt_cv_prog_gnu_ld=no 12924 ;; 12925esac 12926fi 12927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12928$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12929with_gnu_ld=$lt_cv_prog_gnu_ld 12930 12931 12932 12933 12934 12935 12936 12937 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12938 # archiving commands below assume that GNU ld is being used. 12939 if test yes = "$with_gnu_ld"; then 12940 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 12941 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' 12942 12943 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 12944 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 12945 12946 # If archive_cmds runs LD, not CC, wlarc should be empty 12947 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12948 # investigate it a little bit more. (MM) 12949 wlarc='$wl' 12950 12951 # ancient GNU ld didn't support --whole-archive et. al. 12952 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12953 $GREP 'no-whole-archive' > /dev/null; then 12954 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 12955 else 12956 whole_archive_flag_spec_CXX= 12957 fi 12958 else 12959 with_gnu_ld=no 12960 wlarc= 12961 12962 # A generic and very simple default shared library creation 12963 # command for GNU C++ for the case where it uses the native 12964 # linker, instead of GNU ld. If possible, this setting should 12965 # overridden to take advantage of the native linker features on 12966 # the platform it is being used on. 12967 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12968 fi 12969 12970 # Commands to make compiler produce verbose output that lists 12971 # what "hidden" libraries, object files and flags are used when 12972 # linking a shared library. 12973 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12974 12975 else 12976 GXX=no 12977 with_gnu_ld=no 12978 wlarc= 12979 fi 12980 12981 # PORTME: fill in a description of your system's C++ link characteristics 12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12983$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12984 ld_shlibs_CXX=yes 12985 case $host_os in 12986 aix3*) 12987 # FIXME: insert proper C++ library support 12988 ld_shlibs_CXX=no 12989 ;; 12990 aix[4-9]*) 12991 if test ia64 = "$host_cpu"; then 12992 # On IA64, the linker does run time linking by default, so we don't 12993 # have to do anything special. 12994 aix_use_runtimelinking=no 12995 exp_sym_flag='-Bexport' 12996 no_entry_flag= 12997 else 12998 aix_use_runtimelinking=no 12999 13000 # Test if we are trying to use run time linking or normal 13001 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13002 # have runtime linking enabled, and use it for executables. 13003 # For shared libraries, we enable/disable runtime linking 13004 # depending on the kind of the shared library created - 13005 # when "with_aix_soname,aix_use_runtimelinking" is: 13006 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13007 # "aix,yes" lib.so shared, rtl:yes, for executables 13008 # lib.a static archive 13009 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13010 # lib.a(lib.so.V) shared, rtl:no, for executables 13011 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13012 # lib.a(lib.so.V) shared, rtl:no 13013 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13014 # lib.a static archive 13015 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13016 for ld_flag in $LDFLAGS; do 13017 case $ld_flag in 13018 *-brtl*) 13019 aix_use_runtimelinking=yes 13020 break 13021 ;; 13022 esac 13023 done 13024 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13025 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13026 # so we don't have lib.a shared libs to link our executables. 13027 # We have to force runtime linking in this case. 13028 aix_use_runtimelinking=yes 13029 LDFLAGS="$LDFLAGS -Wl,-brtl" 13030 fi 13031 ;; 13032 esac 13033 13034 exp_sym_flag='-bexport' 13035 no_entry_flag='-bnoentry' 13036 fi 13037 13038 # When large executables or shared objects are built, AIX ld can 13039 # have problems creating the table of contents. If linking a library 13040 # or program results in "error TOC overflow" add -mminimal-toc to 13041 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13042 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13043 13044 archive_cmds_CXX='' 13045 hardcode_direct_CXX=yes 13046 hardcode_direct_absolute_CXX=yes 13047 hardcode_libdir_separator_CXX=':' 13048 link_all_deplibs_CXX=yes 13049 file_list_spec_CXX='$wl-f,' 13050 case $with_aix_soname,$aix_use_runtimelinking in 13051 aix,*) ;; # no import file 13052 svr4,* | *,yes) # use import file 13053 # The Import File defines what to hardcode. 13054 hardcode_direct_CXX=no 13055 hardcode_direct_absolute_CXX=no 13056 ;; 13057 esac 13058 13059 if test yes = "$GXX"; then 13060 case $host_os in aix4.[012]|aix4.[012].*) 13061 # We only want to do this on AIX 4.2 and lower, the check 13062 # below for broken collect2 doesn't work under 4.3+ 13063 collect2name=`$CC -print-prog-name=collect2` 13064 if test -f "$collect2name" && 13065 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13066 then 13067 # We have reworked collect2 13068 : 13069 else 13070 # We have old collect2 13071 hardcode_direct_CXX=unsupported 13072 # It fails to find uninstalled libraries when the uninstalled 13073 # path is not listed in the libpath. Setting hardcode_minus_L 13074 # to unsupported forces relinking 13075 hardcode_minus_L_CXX=yes 13076 hardcode_libdir_flag_spec_CXX='-L$libdir' 13077 hardcode_libdir_separator_CXX= 13078 fi 13079 esac 13080 shared_flag='-shared' 13081 if test yes = "$aix_use_runtimelinking"; then 13082 shared_flag=$shared_flag' $wl-G' 13083 fi 13084 # Need to ensure runtime linking is disabled for the traditional 13085 # shared library, or the linker may eventually find shared libraries 13086 # /with/ Import File - we do not want to mix them. 13087 shared_flag_aix='-shared' 13088 shared_flag_svr4='-shared $wl-G' 13089 else 13090 # not using gcc 13091 if test ia64 = "$host_cpu"; then 13092 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13093 # chokes on -Wl,-G. The following line is correct: 13094 shared_flag='-G' 13095 else 13096 if test yes = "$aix_use_runtimelinking"; then 13097 shared_flag='$wl-G' 13098 else 13099 shared_flag='$wl-bM:SRE' 13100 fi 13101 shared_flag_aix='$wl-bM:SRE' 13102 shared_flag_svr4='$wl-G' 13103 fi 13104 fi 13105 13106 export_dynamic_flag_spec_CXX='$wl-bexpall' 13107 # It seems that -bexpall does not export symbols beginning with 13108 # underscore (_), so it is better to generate a list of symbols to 13109 # export. 13110 always_export_symbols_CXX=yes 13111 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13112 # Warning - without using the other runtime loading flags (-brtl), 13113 # -berok will link without error, but may produce a broken library. 13114 # The "-G" linker flag allows undefined symbols. 13115 no_undefined_flag_CXX='-bernotok' 13116 # Determine the default libpath from the value encoded in an empty 13117 # executable. 13118 if test set = "${lt_cv_aix_libpath+set}"; then 13119 aix_libpath=$lt_cv_aix_libpath 13120else 13121 if ${lt_cv_aix_libpath__CXX+:} false; then : 13122 $as_echo_n "(cached) " >&6 13123else 13124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13125/* end confdefs.h. */ 13126 13127int 13128main () 13129{ 13130 13131 ; 13132 return 0; 13133} 13134_ACEOF 13135if ac_fn_cxx_try_link "$LINENO"; then : 13136 13137 lt_aix_libpath_sed=' 13138 /Import File Strings/,/^$/ { 13139 /^0/ { 13140 s/^0 *\([^ ]*\) *$/\1/ 13141 p 13142 } 13143 }' 13144 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13145 # Check for a 64-bit object if we didn't find anything. 13146 if test -z "$lt_cv_aix_libpath__CXX"; then 13147 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13148 fi 13149fi 13150rm -f core conftest.err conftest.$ac_objext \ 13151 conftest$ac_exeext conftest.$ac_ext 13152 if test -z "$lt_cv_aix_libpath__CXX"; then 13153 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13154 fi 13155 13156fi 13157 13158 aix_libpath=$lt_cv_aix_libpath__CXX 13159fi 13160 13161 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13162 13163 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 13164 else 13165 if test ia64 = "$host_cpu"; then 13166 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13167 allow_undefined_flag_CXX="-z nodefs" 13168 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" 13169 else 13170 # Determine the default libpath from the value encoded in an 13171 # empty executable. 13172 if test set = "${lt_cv_aix_libpath+set}"; then 13173 aix_libpath=$lt_cv_aix_libpath 13174else 13175 if ${lt_cv_aix_libpath__CXX+:} false; then : 13176 $as_echo_n "(cached) " >&6 13177else 13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13179/* end confdefs.h. */ 13180 13181int 13182main () 13183{ 13184 13185 ; 13186 return 0; 13187} 13188_ACEOF 13189if ac_fn_cxx_try_link "$LINENO"; then : 13190 13191 lt_aix_libpath_sed=' 13192 /Import File Strings/,/^$/ { 13193 /^0/ { 13194 s/^0 *\([^ ]*\) *$/\1/ 13195 p 13196 } 13197 }' 13198 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13199 # Check for a 64-bit object if we didn't find anything. 13200 if test -z "$lt_cv_aix_libpath__CXX"; then 13201 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13202 fi 13203fi 13204rm -f core conftest.err conftest.$ac_objext \ 13205 conftest$ac_exeext conftest.$ac_ext 13206 if test -z "$lt_cv_aix_libpath__CXX"; then 13207 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13208 fi 13209 13210fi 13211 13212 aix_libpath=$lt_cv_aix_libpath__CXX 13213fi 13214 13215 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13216 # Warning - without using the other run time loading flags, 13217 # -berok will link without error, but may produce a broken library. 13218 no_undefined_flag_CXX=' $wl-bernotok' 13219 allow_undefined_flag_CXX=' $wl-berok' 13220 if test yes = "$with_gnu_ld"; then 13221 # We only use this code for GNU lds that support --whole-archive. 13222 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13223 else 13224 # Exported symbols can be pulled into shared objects from archives 13225 whole_archive_flag_spec_CXX='$convenience' 13226 fi 13227 archive_cmds_need_lc_CXX=yes 13228 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13229 # -brtl affects multiple linker settings, -berok does not and is overridden later 13230 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13231 if test svr4 != "$with_aix_soname"; then 13232 # This is similar to how AIX traditionally builds its shared 13233 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13234 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' 13235 fi 13236 if test aix != "$with_aix_soname"; then 13237 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' 13238 else 13239 # used by -dlpreopen to get the symbols 13240 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13241 fi 13242 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 13243 fi 13244 fi 13245 ;; 13246 13247 beos*) 13248 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13249 allow_undefined_flag_CXX=unsupported 13250 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13251 # support --undefined. This deserves some investigation. FIXME 13252 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13253 else 13254 ld_shlibs_CXX=no 13255 fi 13256 ;; 13257 13258 chorus*) 13259 case $cc_basename in 13260 *) 13261 # FIXME: insert proper C++ library support 13262 ld_shlibs_CXX=no 13263 ;; 13264 esac 13265 ;; 13266 13267 cygwin* | mingw* | pw32* | cegcc*) 13268 case $GXX,$cc_basename in 13269 ,cl* | no,cl*) 13270 # Native MSVC 13271 # hardcode_libdir_flag_spec is actually meaningless, as there is 13272 # no search path for DLLs. 13273 hardcode_libdir_flag_spec_CXX=' ' 13274 allow_undefined_flag_CXX=unsupported 13275 always_export_symbols_CXX=yes 13276 file_list_spec_CXX='@' 13277 # Tell ltmain to make .lib files, not .a files. 13278 libext=lib 13279 # Tell ltmain to make .dll files, not .so files. 13280 shrext_cmds=.dll 13281 # FIXME: Setting linknames here is a bad hack. 13282 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13283 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13284 cp "$export_symbols" "$output_objdir/$soname.def"; 13285 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13286 else 13287 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13288 fi~ 13289 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13290 linknames=' 13291 # The linker will not automatically build a static lib if we build a DLL. 13292 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13293 enable_shared_with_static_runtimes_CXX=yes 13294 # Don't use ranlib 13295 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13296 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13297 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13298 case $lt_outputfile in 13299 *.exe|*.EXE) ;; 13300 *) 13301 lt_outputfile=$lt_outputfile.exe 13302 lt_tool_outputfile=$lt_tool_outputfile.exe 13303 ;; 13304 esac~ 13305 func_to_tool_file "$lt_outputfile"~ 13306 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13307 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13308 $RM "$lt_outputfile.manifest"; 13309 fi' 13310 ;; 13311 *) 13312 # g++ 13313 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13314 # as there is no search path for DLLs. 13315 hardcode_libdir_flag_spec_CXX='-L$libdir' 13316 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 13317 allow_undefined_flag_CXX=unsupported 13318 always_export_symbols_CXX=no 13319 enable_shared_with_static_runtimes_CXX=yes 13320 13321 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13322 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' 13323 # If the export-symbols file already is a .def file, use it as 13324 # is; otherwise, prepend EXPORTS... 13325 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13326 cp $export_symbols $output_objdir/$soname.def; 13327 else 13328 echo EXPORTS > $output_objdir/$soname.def; 13329 cat $export_symbols >> $output_objdir/$soname.def; 13330 fi~ 13331 $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' 13332 else 13333 ld_shlibs_CXX=no 13334 fi 13335 ;; 13336 esac 13337 ;; 13338 darwin* | rhapsody*) 13339 13340 13341 archive_cmds_need_lc_CXX=no 13342 hardcode_direct_CXX=no 13343 hardcode_automatic_CXX=yes 13344 hardcode_shlibpath_var_CXX=unsupported 13345 if test yes = "$lt_cv_ld_force_load"; then 13346 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\"`' 13347 13348 else 13349 whole_archive_flag_spec_CXX='' 13350 fi 13351 link_all_deplibs_CXX=yes 13352 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 13353 case $cc_basename in 13354 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13355 *) _lt_dar_can_shared=$GCC ;; 13356 esac 13357 if test yes = "$_lt_dar_can_shared"; then 13358 output_verbose_link_cmd=func_echo_all 13359 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" 13360 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13361 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" 13362 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" 13363 if test yes != "$lt_cv_apple_cc_single_mod"; then 13364 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" 13365 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" 13366 fi 13367 13368 else 13369 ld_shlibs_CXX=no 13370 fi 13371 13372 ;; 13373 13374 os2*) 13375 hardcode_libdir_flag_spec_CXX='-L$libdir' 13376 hardcode_minus_L_CXX=yes 13377 allow_undefined_flag_CXX=unsupported 13378 shrext_cmds=.dll 13379 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13380 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13381 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13382 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13383 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13384 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13385 emximp -o $lib $output_objdir/$libname.def' 13386 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13387 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13388 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13389 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13390 prefix_cmds="$SED"~ 13391 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13392 prefix_cmds="$prefix_cmds -e 1d"; 13393 fi~ 13394 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13395 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13396 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13397 emximp -o $lib $output_objdir/$libname.def' 13398 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13399 enable_shared_with_static_runtimes_CXX=yes 13400 ;; 13401 13402 dgux*) 13403 case $cc_basename in 13404 ec++*) 13405 # FIXME: insert proper C++ library support 13406 ld_shlibs_CXX=no 13407 ;; 13408 ghcx*) 13409 # Green Hills C++ Compiler 13410 # FIXME: insert proper C++ library support 13411 ld_shlibs_CXX=no 13412 ;; 13413 *) 13414 # FIXME: insert proper C++ library support 13415 ld_shlibs_CXX=no 13416 ;; 13417 esac 13418 ;; 13419 13420 freebsd2.*) 13421 # C++ shared libraries reported to be fairly broken before 13422 # switch to ELF 13423 ld_shlibs_CXX=no 13424 ;; 13425 13426 freebsd-elf*) 13427 archive_cmds_need_lc_CXX=no 13428 ;; 13429 13430 freebsd* | dragonfly*) 13431 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13432 # conventions 13433 ld_shlibs_CXX=yes 13434 ;; 13435 13436 haiku*) 13437 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13438 link_all_deplibs_CXX=yes 13439 ;; 13440 13441 hpux9*) 13442 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13443 hardcode_libdir_separator_CXX=: 13444 export_dynamic_flag_spec_CXX='$wl-E' 13445 hardcode_direct_CXX=yes 13446 hardcode_minus_L_CXX=yes # Not in the search PATH, 13447 # but as the default 13448 # location of the library. 13449 13450 case $cc_basename in 13451 CC*) 13452 # FIXME: insert proper C++ library support 13453 ld_shlibs_CXX=no 13454 ;; 13455 aCC*) 13456 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' 13457 # Commands to make compiler produce verbose output that lists 13458 # what "hidden" libraries, object files and flags are used when 13459 # linking a shared library. 13460 # 13461 # There doesn't appear to be a way to prevent this compiler from 13462 # explicitly linking system object files so we need to strip them 13463 # from the output so that they don't get included in the library 13464 # dependencies. 13465 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"' 13466 ;; 13467 *) 13468 if test yes = "$GXX"; then 13469 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' 13470 else 13471 # FIXME: insert proper C++ library support 13472 ld_shlibs_CXX=no 13473 fi 13474 ;; 13475 esac 13476 ;; 13477 13478 hpux10*|hpux11*) 13479 if test no = "$with_gnu_ld"; then 13480 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13481 hardcode_libdir_separator_CXX=: 13482 13483 case $host_cpu in 13484 hppa*64*|ia64*) 13485 ;; 13486 *) 13487 export_dynamic_flag_spec_CXX='$wl-E' 13488 ;; 13489 esac 13490 fi 13491 case $host_cpu in 13492 hppa*64*|ia64*) 13493 hardcode_direct_CXX=no 13494 hardcode_shlibpath_var_CXX=no 13495 ;; 13496 *) 13497 hardcode_direct_CXX=yes 13498 hardcode_direct_absolute_CXX=yes 13499 hardcode_minus_L_CXX=yes # Not in the search PATH, 13500 # but as the default 13501 # location of the library. 13502 ;; 13503 esac 13504 13505 case $cc_basename in 13506 CC*) 13507 # FIXME: insert proper C++ library support 13508 ld_shlibs_CXX=no 13509 ;; 13510 aCC*) 13511 case $host_cpu in 13512 hppa*64*) 13513 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13514 ;; 13515 ia64*) 13516 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13517 ;; 13518 *) 13519 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13520 ;; 13521 esac 13522 # Commands to make compiler produce verbose output that lists 13523 # what "hidden" libraries, object files and flags are used when 13524 # linking a shared library. 13525 # 13526 # There doesn't appear to be a way to prevent this compiler from 13527 # explicitly linking system object files so we need to strip them 13528 # from the output so that they don't get included in the library 13529 # dependencies. 13530 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"' 13531 ;; 13532 *) 13533 if test yes = "$GXX"; then 13534 if test no = "$with_gnu_ld"; then 13535 case $host_cpu in 13536 hppa*64*) 13537 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13538 ;; 13539 ia64*) 13540 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13541 ;; 13542 *) 13543 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' 13544 ;; 13545 esac 13546 fi 13547 else 13548 # FIXME: insert proper C++ library support 13549 ld_shlibs_CXX=no 13550 fi 13551 ;; 13552 esac 13553 ;; 13554 13555 interix[3-9]*) 13556 hardcode_direct_CXX=no 13557 hardcode_shlibpath_var_CXX=no 13558 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13559 export_dynamic_flag_spec_CXX='$wl-E' 13560 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13561 # Instead, shared libraries are loaded at an image base (0x10000000 by 13562 # default) and relocated if they conflict, which is a slow very memory 13563 # consuming and fragmenting process. To avoid this, we pick a random, 13564 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13565 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13566 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' 13567 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' 13568 ;; 13569 irix5* | irix6*) 13570 case $cc_basename in 13571 CC*) 13572 # SGI C++ 13573 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' 13574 13575 # Archives containing C++ object files must be created using 13576 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13577 # necessary to make sure instantiated templates are included 13578 # in the archive. 13579 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13580 ;; 13581 *) 13582 if test yes = "$GXX"; then 13583 if test no = "$with_gnu_ld"; then 13584 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' 13585 else 13586 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' 13587 fi 13588 fi 13589 link_all_deplibs_CXX=yes 13590 ;; 13591 esac 13592 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13593 hardcode_libdir_separator_CXX=: 13594 inherit_rpath_CXX=yes 13595 ;; 13596 13597 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13598 case $cc_basename in 13599 KCC*) 13600 # Kuck and Associates, Inc. (KAI) C++ Compiler 13601 13602 # KCC will only create a shared library if the output file 13603 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13604 # to its proper name (with version) after linking. 13605 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' 13606 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' 13607 # Commands to make compiler produce verbose output that lists 13608 # what "hidden" libraries, object files and flags are used when 13609 # linking a shared library. 13610 # 13611 # There doesn't appear to be a way to prevent this compiler from 13612 # explicitly linking system object files so we need to strip them 13613 # from the output so that they don't get included in the library 13614 # dependencies. 13615 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"' 13616 13617 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13618 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13619 13620 # Archives containing C++ object files must be created using 13621 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13622 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13623 ;; 13624 icpc* | ecpc* ) 13625 # Intel C++ 13626 with_gnu_ld=yes 13627 # version 8.0 and above of icpc choke on multiply defined symbols 13628 # if we add $predep_objects and $postdep_objects, however 7.1 and 13629 # earlier do not add the objects themselves. 13630 case `$CC -V 2>&1` in 13631 *"Version 7."*) 13632 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13633 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' 13634 ;; 13635 *) # Version 8.0 or newer 13636 tmp_idyn= 13637 case $host_cpu in 13638 ia64*) tmp_idyn=' -i_dynamic';; 13639 esac 13640 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13641 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' 13642 ;; 13643 esac 13644 archive_cmds_need_lc_CXX=no 13645 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13646 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13647 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13648 ;; 13649 pgCC* | pgcpp*) 13650 # Portland Group C++ compiler 13651 case `$CC -V` in 13652 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13653 prelink_cmds_CXX='tpldir=Template.dir~ 13654 rm -rf $tpldir~ 13655 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13656 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13657 old_archive_cmds_CXX='tpldir=Template.dir~ 13658 rm -rf $tpldir~ 13659 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13660 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13661 $RANLIB $oldlib' 13662 archive_cmds_CXX='tpldir=Template.dir~ 13663 rm -rf $tpldir~ 13664 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13665 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13666 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13667 rm -rf $tpldir~ 13668 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13669 $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' 13670 ;; 13671 *) # Version 6 and above use weak symbols 13672 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13673 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' 13674 ;; 13675 esac 13676 13677 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 13678 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13679 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' 13680 ;; 13681 cxx*) 13682 # Compaq C++ 13683 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13684 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' 13685 13686 runpath_var=LD_RUN_PATH 13687 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13688 hardcode_libdir_separator_CXX=: 13689 13690 # Commands to make compiler produce verbose output that lists 13691 # what "hidden" libraries, object files and flags are used when 13692 # linking a shared library. 13693 # 13694 # There doesn't appear to be a way to prevent this compiler from 13695 # explicitly linking system object files so we need to strip them 13696 # from the output so that they don't get included in the library 13697 # dependencies. 13698 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' 13699 ;; 13700 xl* | mpixl* | bgxl*) 13701 # IBM XL 8.0 on PPC, with GNU ld 13702 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13703 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13704 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13705 if test yes = "$supports_anon_versioning"; then 13706 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 13707 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13708 echo "local: *; };" >> $output_objdir/$libname.ver~ 13709 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 13710 fi 13711 ;; 13712 *) 13713 case `$CC -V 2>&1 | sed 5q` in 13714 *Sun\ C*) 13715 # Sun C++ 5.9 13716 no_undefined_flag_CXX=' -zdefs' 13717 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13718 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' 13719 hardcode_libdir_flag_spec_CXX='-R$libdir' 13720 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' 13721 compiler_needs_object_CXX=yes 13722 13723 # Not sure whether something based on 13724 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 13725 # would be better. 13726 output_verbose_link_cmd='func_echo_all' 13727 13728 # Archives containing C++ object files must be created using 13729 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13730 # necessary to make sure instantiated templates are included 13731 # in the archive. 13732 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13733 ;; 13734 esac 13735 ;; 13736 esac 13737 ;; 13738 13739 lynxos*) 13740 # FIXME: insert proper C++ library support 13741 ld_shlibs_CXX=no 13742 ;; 13743 13744 m88k*) 13745 # FIXME: insert proper C++ library support 13746 ld_shlibs_CXX=no 13747 ;; 13748 13749 mvs*) 13750 case $cc_basename in 13751 cxx*) 13752 # FIXME: insert proper C++ library support 13753 ld_shlibs_CXX=no 13754 ;; 13755 *) 13756 # FIXME: insert proper C++ library support 13757 ld_shlibs_CXX=no 13758 ;; 13759 esac 13760 ;; 13761 13762 netbsd*) 13763 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13764 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13765 wlarc= 13766 hardcode_libdir_flag_spec_CXX='-R$libdir' 13767 hardcode_direct_CXX=yes 13768 hardcode_shlibpath_var_CXX=no 13769 fi 13770 # Workaround some broken pre-1.5 toolchains 13771 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13772 ;; 13773 13774 *nto* | *qnx*) 13775 ld_shlibs_CXX=yes 13776 ;; 13777 13778 openbsd* | bitrig*) 13779 if test -f /usr/libexec/ld.so; then 13780 hardcode_direct_CXX=yes 13781 hardcode_shlibpath_var_CXX=no 13782 hardcode_direct_absolute_CXX=yes 13783 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13784 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13785 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 13786 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 13787 export_dynamic_flag_spec_CXX='$wl-E' 13788 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13789 fi 13790 output_verbose_link_cmd=func_echo_all 13791 else 13792 ld_shlibs_CXX=no 13793 fi 13794 ;; 13795 13796 osf3* | osf4* | osf5*) 13797 case $cc_basename in 13798 KCC*) 13799 # Kuck and Associates, Inc. (KAI) C++ Compiler 13800 13801 # KCC will only create a shared library if the output file 13802 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13803 # to its proper name (with version) after linking. 13804 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' 13805 13806 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13807 hardcode_libdir_separator_CXX=: 13808 13809 # Archives containing C++ object files must be created using 13810 # the KAI C++ compiler. 13811 case $host in 13812 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13813 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13814 esac 13815 ;; 13816 RCC*) 13817 # Rational C++ 2.4.1 13818 # FIXME: insert proper C++ library support 13819 ld_shlibs_CXX=no 13820 ;; 13821 cxx*) 13822 case $host in 13823 osf3*) 13824 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 13825 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' 13826 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13827 ;; 13828 *) 13829 allow_undefined_flag_CXX=' -expect_unresolved \*' 13830 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' 13831 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13832 echo "-hidden">> $lib.exp~ 13833 $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~ 13834 $RM $lib.exp' 13835 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13836 ;; 13837 esac 13838 13839 hardcode_libdir_separator_CXX=: 13840 13841 # Commands to make compiler produce verbose output that lists 13842 # what "hidden" libraries, object files and flags are used when 13843 # linking a shared library. 13844 # 13845 # There doesn't appear to be a way to prevent this compiler from 13846 # explicitly linking system object files so we need to strip them 13847 # from the output so that they don't get included in the library 13848 # dependencies. 13849 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"' 13850 ;; 13851 *) 13852 if test yes,no = "$GXX,$with_gnu_ld"; then 13853 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 13854 case $host in 13855 osf3*) 13856 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' 13857 ;; 13858 *) 13859 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' 13860 ;; 13861 esac 13862 13863 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13864 hardcode_libdir_separator_CXX=: 13865 13866 # Commands to make compiler produce verbose output that lists 13867 # what "hidden" libraries, object files and flags are used when 13868 # linking a shared library. 13869 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13870 13871 else 13872 # FIXME: insert proper C++ library support 13873 ld_shlibs_CXX=no 13874 fi 13875 ;; 13876 esac 13877 ;; 13878 13879 psos*) 13880 # FIXME: insert proper C++ library support 13881 ld_shlibs_CXX=no 13882 ;; 13883 13884 sunos4*) 13885 case $cc_basename in 13886 CC*) 13887 # Sun C++ 4.x 13888 # FIXME: insert proper C++ library support 13889 ld_shlibs_CXX=no 13890 ;; 13891 lcc*) 13892 # Lucid 13893 # FIXME: insert proper C++ library support 13894 ld_shlibs_CXX=no 13895 ;; 13896 *) 13897 # FIXME: insert proper C++ library support 13898 ld_shlibs_CXX=no 13899 ;; 13900 esac 13901 ;; 13902 13903 solaris*) 13904 case $cc_basename in 13905 CC* | sunCC*) 13906 # Sun C++ 4.2, 5.x and Centerline C++ 13907 archive_cmds_need_lc_CXX=yes 13908 no_undefined_flag_CXX=' -zdefs' 13909 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13910 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13911 $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' 13912 13913 hardcode_libdir_flag_spec_CXX='-R$libdir' 13914 hardcode_shlibpath_var_CXX=no 13915 case $host_os in 13916 solaris2.[0-5] | solaris2.[0-5].*) ;; 13917 *) 13918 # The compiler driver will combine and reorder linker options, 13919 # but understands '-z linker_flag'. 13920 # Supported since Solaris 2.6 (maybe 2.5.1?) 13921 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13922 ;; 13923 esac 13924 link_all_deplibs_CXX=yes 13925 13926 output_verbose_link_cmd='func_echo_all' 13927 13928 # Archives containing C++ object files must be created using 13929 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13930 # necessary to make sure instantiated templates are included 13931 # in the archive. 13932 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13933 ;; 13934 gcx*) 13935 # Green Hills C++ Compiler 13936 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13937 13938 # The C++ compiler must be used to create the archive. 13939 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13940 ;; 13941 *) 13942 # GNU C++ compiler with Solaris linker 13943 if test yes,no = "$GXX,$with_gnu_ld"; then 13944 no_undefined_flag_CXX=' $wl-z ${wl}defs' 13945 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13946 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13947 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13948 $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' 13949 13950 # Commands to make compiler produce verbose output that lists 13951 # what "hidden" libraries, object files and flags are used when 13952 # linking a shared library. 13953 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13954 else 13955 # g++ 2.7 appears to require '-G' NOT '-shared' on this 13956 # platform. 13957 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 13958 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13959 $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' 13960 13961 # Commands to make compiler produce verbose output that lists 13962 # what "hidden" libraries, object files and flags are used when 13963 # linking a shared library. 13964 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13965 fi 13966 13967 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 13968 case $host_os in 13969 solaris2.[0-5] | solaris2.[0-5].*) ;; 13970 *) 13971 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 13972 ;; 13973 esac 13974 fi 13975 ;; 13976 esac 13977 ;; 13978 13979 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13980 no_undefined_flag_CXX='$wl-z,text' 13981 archive_cmds_need_lc_CXX=no 13982 hardcode_shlibpath_var_CXX=no 13983 runpath_var='LD_RUN_PATH' 13984 13985 case $cc_basename in 13986 CC*) 13987 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13988 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13989 ;; 13990 *) 13991 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13992 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13993 ;; 13994 esac 13995 ;; 13996 13997 sysv5* | sco3.2v5* | sco5v6*) 13998 # Note: We CANNOT use -z defs as we might desire, because we do not 13999 # link with -lc, and that would cause any symbols used from libc to 14000 # always be unresolved, which means just about no library would 14001 # ever link correctly. If we're not using GNU ld we use -z text 14002 # though, which does catch some bad symbols but isn't as heavy-handed 14003 # as -z defs. 14004 no_undefined_flag_CXX='$wl-z,text' 14005 allow_undefined_flag_CXX='$wl-z,nodefs' 14006 archive_cmds_need_lc_CXX=no 14007 hardcode_shlibpath_var_CXX=no 14008 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14009 hardcode_libdir_separator_CXX=':' 14010 link_all_deplibs_CXX=yes 14011 export_dynamic_flag_spec_CXX='$wl-Bexport' 14012 runpath_var='LD_RUN_PATH' 14013 14014 case $cc_basename in 14015 CC*) 14016 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14017 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14018 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14019 '"$old_archive_cmds_CXX" 14020 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14021 '"$reload_cmds_CXX" 14022 ;; 14023 *) 14024 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14025 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14026 ;; 14027 esac 14028 ;; 14029 14030 tandem*) 14031 case $cc_basename in 14032 NCC*) 14033 # NonStop-UX NCC 3.20 14034 # FIXME: insert proper C++ library support 14035 ld_shlibs_CXX=no 14036 ;; 14037 *) 14038 # FIXME: insert proper C++ library support 14039 ld_shlibs_CXX=no 14040 ;; 14041 esac 14042 ;; 14043 14044 vxworks*) 14045 # FIXME: insert proper C++ library support 14046 ld_shlibs_CXX=no 14047 ;; 14048 14049 *) 14050 # FIXME: insert proper C++ library support 14051 ld_shlibs_CXX=no 14052 ;; 14053 esac 14054 14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14056$as_echo "$ld_shlibs_CXX" >&6; } 14057 test no = "$ld_shlibs_CXX" && can_build_shared=no 14058 14059 GCC_CXX=$GXX 14060 LD_CXX=$LD 14061 14062 ## CAVEAT EMPTOR: 14063 ## There is no encapsulation within the following macros, do not change 14064 ## the running order or otherwise move them around unless you know exactly 14065 ## what you are doing... 14066 # Dependencies to place before and after the object being linked: 14067predep_objects_CXX= 14068postdep_objects_CXX= 14069predeps_CXX= 14070postdeps_CXX= 14071compiler_lib_search_path_CXX= 14072 14073cat > conftest.$ac_ext <<_LT_EOF 14074class Foo 14075{ 14076public: 14077 Foo (void) { a = 0; } 14078private: 14079 int a; 14080}; 14081_LT_EOF 14082 14083 14084_lt_libdeps_save_CFLAGS=$CFLAGS 14085case "$CC $CFLAGS " in #( 14086*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14087*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14088*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14089esac 14090 14091if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14092 (eval $ac_compile) 2>&5 14093 ac_status=$? 14094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14095 test $ac_status = 0; }; then 14096 # Parse the compiler output and extract the necessary 14097 # objects, libraries and library flags. 14098 14099 # Sentinel used to keep track of whether or not we are before 14100 # the conftest object file. 14101 pre_test_object_deps_done=no 14102 14103 for p in `eval "$output_verbose_link_cmd"`; do 14104 case $prev$p in 14105 14106 -L* | -R* | -l*) 14107 # Some compilers place space between "-{L,R}" and the path. 14108 # Remove the space. 14109 if test x-L = "$p" || 14110 test x-R = "$p"; then 14111 prev=$p 14112 continue 14113 fi 14114 14115 # Expand the sysroot to ease extracting the directories later. 14116 if test -z "$prev"; then 14117 case $p in 14118 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14119 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14120 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14121 esac 14122 fi 14123 case $p in 14124 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14125 esac 14126 if test no = "$pre_test_object_deps_done"; then 14127 case $prev in 14128 -L | -R) 14129 # Internal compiler library paths should come after those 14130 # provided the user. The postdeps already come after the 14131 # user supplied libs so there is no need to process them. 14132 if test -z "$compiler_lib_search_path_CXX"; then 14133 compiler_lib_search_path_CXX=$prev$p 14134 else 14135 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14136 fi 14137 ;; 14138 # The "-l" case would never come before the object being 14139 # linked, so don't bother handling this case. 14140 esac 14141 else 14142 if test -z "$postdeps_CXX"; then 14143 postdeps_CXX=$prev$p 14144 else 14145 postdeps_CXX="${postdeps_CXX} $prev$p" 14146 fi 14147 fi 14148 prev= 14149 ;; 14150 14151 *.lto.$objext) ;; # Ignore GCC LTO objects 14152 *.$objext) 14153 # This assumes that the test object file only shows up 14154 # once in the compiler output. 14155 if test "$p" = "conftest.$objext"; then 14156 pre_test_object_deps_done=yes 14157 continue 14158 fi 14159 14160 if test no = "$pre_test_object_deps_done"; then 14161 if test -z "$predep_objects_CXX"; then 14162 predep_objects_CXX=$p 14163 else 14164 predep_objects_CXX="$predep_objects_CXX $p" 14165 fi 14166 else 14167 if test -z "$postdep_objects_CXX"; then 14168 postdep_objects_CXX=$p 14169 else 14170 postdep_objects_CXX="$postdep_objects_CXX $p" 14171 fi 14172 fi 14173 ;; 14174 14175 *) ;; # Ignore the rest. 14176 14177 esac 14178 done 14179 14180 # Clean up. 14181 rm -f a.out a.exe 14182else 14183 echo "libtool.m4: error: problem compiling CXX test program" 14184fi 14185 14186$RM -f confest.$objext 14187CFLAGS=$_lt_libdeps_save_CFLAGS 14188 14189# PORTME: override above test on systems where it is broken 14190case $host_os in 14191interix[3-9]*) 14192 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14193 # hack all around it, let's just trust "g++" to DTRT. 14194 predep_objects_CXX= 14195 postdep_objects_CXX= 14196 postdeps_CXX= 14197 ;; 14198esac 14199 14200 14201case " $postdeps_CXX " in 14202*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14203esac 14204 compiler_lib_search_dirs_CXX= 14205if test -n "${compiler_lib_search_path_CXX}"; then 14206 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14207fi 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 lt_prog_compiler_wl_CXX= 14240lt_prog_compiler_pic_CXX= 14241lt_prog_compiler_static_CXX= 14242 14243 14244 # C++ specific cases for pic, static, wl, etc. 14245 if test yes = "$GXX"; then 14246 lt_prog_compiler_wl_CXX='-Wl,' 14247 lt_prog_compiler_static_CXX='-static' 14248 14249 case $host_os in 14250 aix*) 14251 # All AIX code is PIC. 14252 if test ia64 = "$host_cpu"; then 14253 # AIX 5 now supports IA64 processor 14254 lt_prog_compiler_static_CXX='-Bstatic' 14255 fi 14256 lt_prog_compiler_pic_CXX='-fPIC' 14257 ;; 14258 14259 amigaos*) 14260 case $host_cpu in 14261 powerpc) 14262 # see comment about AmigaOS4 .so support 14263 lt_prog_compiler_pic_CXX='-fPIC' 14264 ;; 14265 m68k) 14266 # FIXME: we need at least 68020 code to build shared libraries, but 14267 # adding the '-m68020' flag to GCC prevents building anything better, 14268 # like '-m68040'. 14269 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14270 ;; 14271 esac 14272 ;; 14273 14274 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14275 # PIC is the default for these OSes. 14276 ;; 14277 mingw* | cygwin* | os2* | pw32* | cegcc*) 14278 # This hack is so that the source file can tell whether it is being 14279 # built for inclusion in a dll (and should export symbols for example). 14280 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14281 # (--disable-auto-import) libraries 14282 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14283 case $host_os in 14284 os2*) 14285 lt_prog_compiler_static_CXX='$wl-static' 14286 ;; 14287 esac 14288 ;; 14289 darwin* | rhapsody*) 14290 # PIC is the default on this platform 14291 # Common symbols not allowed in MH_DYLIB files 14292 lt_prog_compiler_pic_CXX='-fno-common' 14293 ;; 14294 *djgpp*) 14295 # DJGPP does not support shared libraries at all 14296 lt_prog_compiler_pic_CXX= 14297 ;; 14298 haiku*) 14299 # PIC is the default for Haiku. 14300 # The "-static" flag exists, but is broken. 14301 lt_prog_compiler_static_CXX= 14302 ;; 14303 interix[3-9]*) 14304 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14305 # Instead, we relocate shared libraries at runtime. 14306 ;; 14307 sysv4*MP*) 14308 if test -d /usr/nec; then 14309 lt_prog_compiler_pic_CXX=-Kconform_pic 14310 fi 14311 ;; 14312 hpux*) 14313 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14314 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14315 # sets the default TLS model and affects inlining. 14316 case $host_cpu in 14317 hppa*64*) 14318 ;; 14319 *) 14320 lt_prog_compiler_pic_CXX='-fPIC' 14321 ;; 14322 esac 14323 ;; 14324 *qnx* | *nto*) 14325 # QNX uses GNU C++, but need to define -shared option too, otherwise 14326 # it will coredump. 14327 lt_prog_compiler_pic_CXX='-fPIC -shared' 14328 ;; 14329 *) 14330 lt_prog_compiler_pic_CXX='-fPIC' 14331 ;; 14332 esac 14333 else 14334 case $host_os in 14335 aix[4-9]*) 14336 # All AIX code is PIC. 14337 if test ia64 = "$host_cpu"; then 14338 # AIX 5 now supports IA64 processor 14339 lt_prog_compiler_static_CXX='-Bstatic' 14340 else 14341 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14342 fi 14343 ;; 14344 chorus*) 14345 case $cc_basename in 14346 cxch68*) 14347 # Green Hills C++ Compiler 14348 # _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" 14349 ;; 14350 esac 14351 ;; 14352 mingw* | cygwin* | os2* | pw32* | cegcc*) 14353 # This hack is so that the source file can tell whether it is being 14354 # built for inclusion in a dll (and should export symbols for example). 14355 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14356 ;; 14357 dgux*) 14358 case $cc_basename in 14359 ec++*) 14360 lt_prog_compiler_pic_CXX='-KPIC' 14361 ;; 14362 ghcx*) 14363 # Green Hills C++ Compiler 14364 lt_prog_compiler_pic_CXX='-pic' 14365 ;; 14366 *) 14367 ;; 14368 esac 14369 ;; 14370 freebsd* | dragonfly*) 14371 # FreeBSD uses GNU C++ 14372 ;; 14373 hpux9* | hpux10* | hpux11*) 14374 case $cc_basename in 14375 CC*) 14376 lt_prog_compiler_wl_CXX='-Wl,' 14377 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14378 if test ia64 != "$host_cpu"; then 14379 lt_prog_compiler_pic_CXX='+Z' 14380 fi 14381 ;; 14382 aCC*) 14383 lt_prog_compiler_wl_CXX='-Wl,' 14384 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14385 case $host_cpu in 14386 hppa*64*|ia64*) 14387 # +Z the default 14388 ;; 14389 *) 14390 lt_prog_compiler_pic_CXX='+Z' 14391 ;; 14392 esac 14393 ;; 14394 *) 14395 ;; 14396 esac 14397 ;; 14398 interix*) 14399 # This is c89, which is MS Visual C++ (no shared libs) 14400 # Anyone wants to do a port? 14401 ;; 14402 irix5* | irix6* | nonstopux*) 14403 case $cc_basename in 14404 CC*) 14405 lt_prog_compiler_wl_CXX='-Wl,' 14406 lt_prog_compiler_static_CXX='-non_shared' 14407 # CC pic flag -KPIC is the default. 14408 ;; 14409 *) 14410 ;; 14411 esac 14412 ;; 14413 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14414 case $cc_basename in 14415 KCC*) 14416 # KAI C++ Compiler 14417 lt_prog_compiler_wl_CXX='--backend -Wl,' 14418 lt_prog_compiler_pic_CXX='-fPIC' 14419 ;; 14420 ecpc* ) 14421 # old Intel C++ for x86_64, which still supported -KPIC. 14422 lt_prog_compiler_wl_CXX='-Wl,' 14423 lt_prog_compiler_pic_CXX='-KPIC' 14424 lt_prog_compiler_static_CXX='-static' 14425 ;; 14426 icpc* ) 14427 # Intel C++, used to be incompatible with GCC. 14428 # ICC 10 doesn't accept -KPIC any more. 14429 lt_prog_compiler_wl_CXX='-Wl,' 14430 lt_prog_compiler_pic_CXX='-fPIC' 14431 lt_prog_compiler_static_CXX='-static' 14432 ;; 14433 pgCC* | pgcpp*) 14434 # Portland Group C++ compiler 14435 lt_prog_compiler_wl_CXX='-Wl,' 14436 lt_prog_compiler_pic_CXX='-fpic' 14437 lt_prog_compiler_static_CXX='-Bstatic' 14438 ;; 14439 cxx*) 14440 # Compaq C++ 14441 # Make sure the PIC flag is empty. It appears that all Alpha 14442 # Linux and Compaq Tru64 Unix objects are PIC. 14443 lt_prog_compiler_pic_CXX= 14444 lt_prog_compiler_static_CXX='-non_shared' 14445 ;; 14446 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14447 # IBM XL 8.0, 9.0 on PPC and BlueGene 14448 lt_prog_compiler_wl_CXX='-Wl,' 14449 lt_prog_compiler_pic_CXX='-qpic' 14450 lt_prog_compiler_static_CXX='-qstaticlink' 14451 ;; 14452 *) 14453 case `$CC -V 2>&1 | sed 5q` in 14454 *Sun\ C*) 14455 # Sun C++ 5.9 14456 lt_prog_compiler_pic_CXX='-KPIC' 14457 lt_prog_compiler_static_CXX='-Bstatic' 14458 lt_prog_compiler_wl_CXX='-Qoption ld ' 14459 ;; 14460 esac 14461 ;; 14462 esac 14463 ;; 14464 lynxos*) 14465 ;; 14466 m88k*) 14467 ;; 14468 mvs*) 14469 case $cc_basename in 14470 cxx*) 14471 lt_prog_compiler_pic_CXX='-W c,exportall' 14472 ;; 14473 *) 14474 ;; 14475 esac 14476 ;; 14477 netbsd* | netbsdelf*-gnu) 14478 ;; 14479 *qnx* | *nto*) 14480 # QNX uses GNU C++, but need to define -shared option too, otherwise 14481 # it will coredump. 14482 lt_prog_compiler_pic_CXX='-fPIC -shared' 14483 ;; 14484 osf3* | osf4* | osf5*) 14485 case $cc_basename in 14486 KCC*) 14487 lt_prog_compiler_wl_CXX='--backend -Wl,' 14488 ;; 14489 RCC*) 14490 # Rational C++ 2.4.1 14491 lt_prog_compiler_pic_CXX='-pic' 14492 ;; 14493 cxx*) 14494 # Digital/Compaq C++ 14495 lt_prog_compiler_wl_CXX='-Wl,' 14496 # Make sure the PIC flag is empty. It appears that all Alpha 14497 # Linux and Compaq Tru64 Unix objects are PIC. 14498 lt_prog_compiler_pic_CXX= 14499 lt_prog_compiler_static_CXX='-non_shared' 14500 ;; 14501 *) 14502 ;; 14503 esac 14504 ;; 14505 psos*) 14506 ;; 14507 solaris*) 14508 case $cc_basename in 14509 CC* | sunCC*) 14510 # Sun C++ 4.2, 5.x and Centerline C++ 14511 lt_prog_compiler_pic_CXX='-KPIC' 14512 lt_prog_compiler_static_CXX='-Bstatic' 14513 lt_prog_compiler_wl_CXX='-Qoption ld ' 14514 ;; 14515 gcx*) 14516 # Green Hills C++ Compiler 14517 lt_prog_compiler_pic_CXX='-PIC' 14518 ;; 14519 *) 14520 ;; 14521 esac 14522 ;; 14523 sunos4*) 14524 case $cc_basename in 14525 CC*) 14526 # Sun C++ 4.x 14527 lt_prog_compiler_pic_CXX='-pic' 14528 lt_prog_compiler_static_CXX='-Bstatic' 14529 ;; 14530 lcc*) 14531 # Lucid 14532 lt_prog_compiler_pic_CXX='-pic' 14533 ;; 14534 *) 14535 ;; 14536 esac 14537 ;; 14538 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14539 case $cc_basename in 14540 CC*) 14541 lt_prog_compiler_wl_CXX='-Wl,' 14542 lt_prog_compiler_pic_CXX='-KPIC' 14543 lt_prog_compiler_static_CXX='-Bstatic' 14544 ;; 14545 esac 14546 ;; 14547 tandem*) 14548 case $cc_basename in 14549 NCC*) 14550 # NonStop-UX NCC 3.20 14551 lt_prog_compiler_pic_CXX='-KPIC' 14552 ;; 14553 *) 14554 ;; 14555 esac 14556 ;; 14557 vxworks*) 14558 ;; 14559 *) 14560 lt_prog_compiler_can_build_shared_CXX=no 14561 ;; 14562 esac 14563 fi 14564 14565case $host_os in 14566 # For platforms that do not support PIC, -DPIC is meaningless: 14567 *djgpp*) 14568 lt_prog_compiler_pic_CXX= 14569 ;; 14570 *) 14571 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14572 ;; 14573esac 14574 14575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14576$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14577if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14578 $as_echo_n "(cached) " >&6 14579else 14580 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14581fi 14582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14583$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14584lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14585 14586# 14587# Check to make sure the PIC flag actually works. 14588# 14589if test -n "$lt_prog_compiler_pic_CXX"; then 14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14591$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14592if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14593 $as_echo_n "(cached) " >&6 14594else 14595 lt_cv_prog_compiler_pic_works_CXX=no 14596 ac_outfile=conftest.$ac_objext 14597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14598 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 14599 # Insert the option either (1) after the last *FLAGS variable, or 14600 # (2) before a word containing "conftest.", or (3) at the end. 14601 # Note that $ac_compile itself does not contain backslashes and begins 14602 # with a dollar sign (not a hyphen), so the echo should work correctly. 14603 # The option is referenced via a variable to avoid confusing sed. 14604 lt_compile=`echo "$ac_compile" | $SED \ 14605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14607 -e 's:$: $lt_compiler_flag:'` 14608 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14609 (eval "$lt_compile" 2>conftest.err) 14610 ac_status=$? 14611 cat conftest.err >&5 14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14613 if (exit $ac_status) && test -s "$ac_outfile"; then 14614 # The compiler can only warn and ignore the option if not recognized 14615 # So say no if there are warnings other than the usual output. 14616 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14617 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14618 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14619 lt_cv_prog_compiler_pic_works_CXX=yes 14620 fi 14621 fi 14622 $RM conftest* 14623 14624fi 14625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14626$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14627 14628if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 14629 case $lt_prog_compiler_pic_CXX in 14630 "" | " "*) ;; 14631 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14632 esac 14633else 14634 lt_prog_compiler_pic_CXX= 14635 lt_prog_compiler_can_build_shared_CXX=no 14636fi 14637 14638fi 14639 14640 14641 14642 14643 14644# 14645# Check to make sure the static flag actually works. 14646# 14647wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14649$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14650if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14651 $as_echo_n "(cached) " >&6 14652else 14653 lt_cv_prog_compiler_static_works_CXX=no 14654 save_LDFLAGS=$LDFLAGS 14655 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14656 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14657 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14658 # The linker can only warn and ignore the option if not recognized 14659 # So say no if there are warnings 14660 if test -s conftest.err; then 14661 # Append any errors to the config.log. 14662 cat conftest.err 1>&5 14663 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14664 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14665 if diff conftest.exp conftest.er2 >/dev/null; then 14666 lt_cv_prog_compiler_static_works_CXX=yes 14667 fi 14668 else 14669 lt_cv_prog_compiler_static_works_CXX=yes 14670 fi 14671 fi 14672 $RM -r conftest* 14673 LDFLAGS=$save_LDFLAGS 14674 14675fi 14676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14677$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14678 14679if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 14680 : 14681else 14682 lt_prog_compiler_static_CXX= 14683fi 14684 14685 14686 14687 14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14689$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14690if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14691 $as_echo_n "(cached) " >&6 14692else 14693 lt_cv_prog_compiler_c_o_CXX=no 14694 $RM -r conftest 2>/dev/null 14695 mkdir conftest 14696 cd conftest 14697 mkdir out 14698 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14699 14700 lt_compiler_flag="-o out/conftest2.$ac_objext" 14701 # Insert the option either (1) after the last *FLAGS variable, or 14702 # (2) before a word containing "conftest.", or (3) at the end. 14703 # Note that $ac_compile itself does not contain backslashes and begins 14704 # with a dollar sign (not a hyphen), so the echo should work correctly. 14705 lt_compile=`echo "$ac_compile" | $SED \ 14706 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14708 -e 's:$: $lt_compiler_flag:'` 14709 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14710 (eval "$lt_compile" 2>out/conftest.err) 14711 ac_status=$? 14712 cat out/conftest.err >&5 14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14714 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14715 then 14716 # The compiler can only warn and ignore the option if not recognized 14717 # So say no if there are warnings 14718 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14719 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14720 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14721 lt_cv_prog_compiler_c_o_CXX=yes 14722 fi 14723 fi 14724 chmod u+w . 2>&5 14725 $RM conftest* 14726 # SGI C++ compiler will create directory out/ii_files/ for 14727 # template instantiation 14728 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14729 $RM out/* && rmdir out 14730 cd .. 14731 $RM -r conftest 14732 $RM conftest* 14733 14734fi 14735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14736$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14737 14738 14739 14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14741$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14742if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14743 $as_echo_n "(cached) " >&6 14744else 14745 lt_cv_prog_compiler_c_o_CXX=no 14746 $RM -r conftest 2>/dev/null 14747 mkdir conftest 14748 cd conftest 14749 mkdir out 14750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14751 14752 lt_compiler_flag="-o out/conftest2.$ac_objext" 14753 # Insert the option either (1) after the last *FLAGS variable, or 14754 # (2) before a word containing "conftest.", or (3) at the end. 14755 # Note that $ac_compile itself does not contain backslashes and begins 14756 # with a dollar sign (not a hyphen), so the echo should work correctly. 14757 lt_compile=`echo "$ac_compile" | $SED \ 14758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14760 -e 's:$: $lt_compiler_flag:'` 14761 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14762 (eval "$lt_compile" 2>out/conftest.err) 14763 ac_status=$? 14764 cat out/conftest.err >&5 14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14766 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14767 then 14768 # The compiler can only warn and ignore the option if not recognized 14769 # So say no if there are warnings 14770 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14771 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14772 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14773 lt_cv_prog_compiler_c_o_CXX=yes 14774 fi 14775 fi 14776 chmod u+w . 2>&5 14777 $RM conftest* 14778 # SGI C++ compiler will create directory out/ii_files/ for 14779 # template instantiation 14780 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14781 $RM out/* && rmdir out 14782 cd .. 14783 $RM -r conftest 14784 $RM conftest* 14785 14786fi 14787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14788$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14789 14790 14791 14792 14793hard_links=nottested 14794if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 14795 # do not overwrite the value of need_locks provided by the user 14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14797$as_echo_n "checking if we can lock with hard links... " >&6; } 14798 hard_links=yes 14799 $RM conftest* 14800 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14801 touch conftest.a 14802 ln conftest.a conftest.b 2>&5 || hard_links=no 14803 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14805$as_echo "$hard_links" >&6; } 14806 if test no = "$hard_links"; then 14807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 14808$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 14809 need_locks=warn 14810 fi 14811else 14812 need_locks=no 14813fi 14814 14815 14816 14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14818$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14819 14820 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14821 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14822 case $host_os in 14823 aix[4-9]*) 14824 # If we're using GNU nm, then we don't want the "-C" option. 14825 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 14826 # Without the "-l" option, or with the "-B" option, AIX nm treats 14827 # weak defined symbols like other global defined symbols, whereas 14828 # GNU nm marks them as "W". 14829 # While the 'weak' keyword is ignored in the Export File, we need 14830 # it in the Import File for the 'aix-soname' feature, so we have 14831 # to replace the "-B" option with "-P" for AIX nm. 14832 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14833 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' 14834 else 14835 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' 14836 fi 14837 ;; 14838 pw32*) 14839 export_symbols_cmds_CXX=$ltdll_cmds 14840 ;; 14841 cygwin* | mingw* | cegcc*) 14842 case $cc_basename in 14843 cl*) 14844 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 14845 ;; 14846 *) 14847 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' 14848 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14849 ;; 14850 esac 14851 ;; 14852 linux* | k*bsd*-gnu | gnu*) 14853 link_all_deplibs_CXX=no 14854 ;; 14855 *) 14856 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14857 ;; 14858 esac 14859 14860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14861$as_echo "$ld_shlibs_CXX" >&6; } 14862test no = "$ld_shlibs_CXX" && can_build_shared=no 14863 14864with_gnu_ld_CXX=$with_gnu_ld 14865 14866 14867 14868 14869 14870 14871# 14872# Do we need to explicitly link libc? 14873# 14874case "x$archive_cmds_need_lc_CXX" in 14875x|xyes) 14876 # Assume -lc should be added 14877 archive_cmds_need_lc_CXX=yes 14878 14879 if test yes,yes = "$GCC,$enable_shared"; then 14880 case $archive_cmds_CXX in 14881 *'~'*) 14882 # FIXME: we may have to deal with multi-command sequences. 14883 ;; 14884 '$CC '*) 14885 # Test whether the compiler implicitly links with -lc since on some 14886 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14887 # to ld, don't add -lc before -lgcc. 14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14889$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14890if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 14891 $as_echo_n "(cached) " >&6 14892else 14893 $RM conftest* 14894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14895 14896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14897 (eval $ac_compile) 2>&5 14898 ac_status=$? 14899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14900 test $ac_status = 0; } 2>conftest.err; then 14901 soname=conftest 14902 lib=conftest 14903 libobjs=conftest.$ac_objext 14904 deplibs= 14905 wl=$lt_prog_compiler_wl_CXX 14906 pic_flag=$lt_prog_compiler_pic_CXX 14907 compiler_flags=-v 14908 linker_flags=-v 14909 verstring= 14910 output_objdir=. 14911 libname=conftest 14912 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14913 allow_undefined_flag_CXX= 14914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14915 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14916 ac_status=$? 14917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14918 test $ac_status = 0; } 14919 then 14920 lt_cv_archive_cmds_need_lc_CXX=no 14921 else 14922 lt_cv_archive_cmds_need_lc_CXX=yes 14923 fi 14924 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14925 else 14926 cat conftest.err 1>&5 14927 fi 14928 $RM conftest* 14929 14930fi 14931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14932$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14933 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14934 ;; 14935 esac 14936 fi 14937 ;; 14938esac 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15002$as_echo_n "checking dynamic linker characteristics... " >&6; } 15003 15004library_names_spec= 15005libname_spec='lib$name' 15006soname_spec= 15007shrext_cmds=.so 15008postinstall_cmds= 15009postuninstall_cmds= 15010finish_cmds= 15011finish_eval= 15012shlibpath_var= 15013shlibpath_overrides_runpath=unknown 15014version_type=none 15015dynamic_linker="$host_os ld.so" 15016sys_lib_dlsearch_path_spec="/lib /usr/lib" 15017need_lib_prefix=unknown 15018hardcode_into_libs=no 15019 15020# when you set need_version to no, make sure it does not cause -set_version 15021# flags to be left without arguments 15022need_version=unknown 15023 15024 15025 15026case $host_os in 15027aix3*) 15028 version_type=linux # correct to gnu/linux during the next big refactor 15029 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15030 shlibpath_var=LIBPATH 15031 15032 # AIX 3 has no versioning support, so we append a major version to the name. 15033 soname_spec='$libname$release$shared_ext$major' 15034 ;; 15035 15036aix[4-9]*) 15037 version_type=linux # correct to gnu/linux during the next big refactor 15038 need_lib_prefix=no 15039 need_version=no 15040 hardcode_into_libs=yes 15041 if test ia64 = "$host_cpu"; then 15042 # AIX 5 supports IA64 15043 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15044 shlibpath_var=LD_LIBRARY_PATH 15045 else 15046 # With GCC up to 2.95.x, collect2 would create an import file 15047 # for dependence libraries. The import file would start with 15048 # the line '#! .'. This would cause the generated library to 15049 # depend on '.', always an invalid library. This was fixed in 15050 # development snapshots of GCC prior to 3.0. 15051 case $host_os in 15052 aix4 | aix4.[01] | aix4.[01].*) 15053 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15054 echo ' yes ' 15055 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15056 : 15057 else 15058 can_build_shared=no 15059 fi 15060 ;; 15061 esac 15062 # Using Import Files as archive members, it is possible to support 15063 # filename-based versioning of shared library archives on AIX. While 15064 # this would work for both with and without runtime linking, it will 15065 # prevent static linking of such archives. So we do filename-based 15066 # shared library versioning with .so extension only, which is used 15067 # when both runtime linking and shared linking is enabled. 15068 # Unfortunately, runtime linking may impact performance, so we do 15069 # not want this to be the default eventually. Also, we use the 15070 # versioned .so libs for executables only if there is the -brtl 15071 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15072 # To allow for filename-based versioning support, we need to create 15073 # libNAME.so.V as an archive file, containing: 15074 # *) an Import File, referring to the versioned filename of the 15075 # archive as well as the shared archive member, telling the 15076 # bitwidth (32 or 64) of that shared object, and providing the 15077 # list of exported symbols of that shared object, eventually 15078 # decorated with the 'weak' keyword 15079 # *) the shared object with the F_LOADONLY flag set, to really avoid 15080 # it being seen by the linker. 15081 # At run time we better use the real file rather than another symlink, 15082 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15083 15084 case $with_aix_soname,$aix_use_runtimelinking in 15085 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15086 # soname into executable. Probably we can add versioning support to 15087 # collect2, so additional links can be useful in future. 15088 aix,yes) # traditional libtool 15089 dynamic_linker='AIX unversionable lib.so' 15090 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15091 # instead of lib<name>.a to let people know that these are not 15092 # typical AIX shared libraries. 15093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15094 ;; 15095 aix,no) # traditional AIX only 15096 dynamic_linker='AIX lib.a(lib.so.V)' 15097 # We preserve .a as extension for shared libraries through AIX4.2 15098 # and later when we are not doing run time linking. 15099 library_names_spec='$libname$release.a $libname.a' 15100 soname_spec='$libname$release$shared_ext$major' 15101 ;; 15102 svr4,*) # full svr4 only 15103 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15104 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15105 # We do not specify a path in Import Files, so LIBPATH fires. 15106 shlibpath_overrides_runpath=yes 15107 ;; 15108 *,yes) # both, prefer svr4 15109 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15110 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15111 # unpreferred sharedlib libNAME.a needs extra handling 15112 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"' 15113 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"' 15114 # We do not specify a path in Import Files, so LIBPATH fires. 15115 shlibpath_overrides_runpath=yes 15116 ;; 15117 *,no) # both, prefer aix 15118 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15119 library_names_spec='$libname$release.a $libname.a' 15120 soname_spec='$libname$release$shared_ext$major' 15121 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15122 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)' 15123 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"' 15124 ;; 15125 esac 15126 shlibpath_var=LIBPATH 15127 fi 15128 ;; 15129 15130amigaos*) 15131 case $host_cpu in 15132 powerpc) 15133 # Since July 2007 AmigaOS4 officially supports .so libraries. 15134 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15135 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15136 ;; 15137 m68k) 15138 library_names_spec='$libname.ixlibrary $libname.a' 15139 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15140 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' 15141 ;; 15142 esac 15143 ;; 15144 15145beos*) 15146 library_names_spec='$libname$shared_ext' 15147 dynamic_linker="$host_os ld.so" 15148 shlibpath_var=LIBRARY_PATH 15149 ;; 15150 15151bsdi[45]*) 15152 version_type=linux # correct to gnu/linux during the next big refactor 15153 need_version=no 15154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15155 soname_spec='$libname$release$shared_ext$major' 15156 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15157 shlibpath_var=LD_LIBRARY_PATH 15158 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15159 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15160 # the default ld.so.conf also contains /usr/contrib/lib and 15161 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15162 # libtool to hard-code these into programs 15163 ;; 15164 15165cygwin* | mingw* | pw32* | cegcc*) 15166 version_type=windows 15167 shrext_cmds=.dll 15168 need_version=no 15169 need_lib_prefix=no 15170 15171 case $GCC,$cc_basename in 15172 yes,*) 15173 # gcc 15174 library_names_spec='$libname.dll.a' 15175 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15176 postinstall_cmds='base_file=`basename \$file`~ 15177 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15178 dldir=$destdir/`dirname \$dlpath`~ 15179 test -d \$dldir || mkdir -p \$dldir~ 15180 $install_prog $dir/$dlname \$dldir/$dlname~ 15181 chmod a+x \$dldir/$dlname~ 15182 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15183 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15184 fi' 15185 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15186 dlpath=$dir/\$dldll~ 15187 $RM \$dlpath' 15188 shlibpath_overrides_runpath=yes 15189 15190 case $host_os in 15191 cygwin*) 15192 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15193 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15194 15195 ;; 15196 mingw* | cegcc*) 15197 # MinGW DLLs use traditional 'lib' prefix 15198 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15199 ;; 15200 pw32*) 15201 # pw32 DLLs use 'pw' prefix rather than 'lib' 15202 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15203 ;; 15204 esac 15205 dynamic_linker='Win32 ld.exe' 15206 ;; 15207 15208 *,cl*) 15209 # Native MSVC 15210 libname_spec='$name' 15211 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15212 library_names_spec='$libname.dll.lib' 15213 15214 case $build_os in 15215 mingw*) 15216 sys_lib_search_path_spec= 15217 lt_save_ifs=$IFS 15218 IFS=';' 15219 for lt_path in $LIB 15220 do 15221 IFS=$lt_save_ifs 15222 # Let DOS variable expansion print the short 8.3 style file name. 15223 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15224 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15225 done 15226 IFS=$lt_save_ifs 15227 # Convert to MSYS style. 15228 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15229 ;; 15230 cygwin*) 15231 # Convert to unix form, then to dos form, then back to unix form 15232 # but this time dos style (no spaces!) so that the unix form looks 15233 # like /cygdrive/c/PROGRA~1:/cygdr... 15234 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15235 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15236 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15237 ;; 15238 *) 15239 sys_lib_search_path_spec=$LIB 15240 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15241 # It is most probably a Windows format PATH. 15242 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15243 else 15244 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15245 fi 15246 # FIXME: find the short name or the path components, as spaces are 15247 # common. (e.g. "Program Files" -> "PROGRA~1") 15248 ;; 15249 esac 15250 15251 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15252 postinstall_cmds='base_file=`basename \$file`~ 15253 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15254 dldir=$destdir/`dirname \$dlpath`~ 15255 test -d \$dldir || mkdir -p \$dldir~ 15256 $install_prog $dir/$dlname \$dldir/$dlname' 15257 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15258 dlpath=$dir/\$dldll~ 15259 $RM \$dlpath' 15260 shlibpath_overrides_runpath=yes 15261 dynamic_linker='Win32 link.exe' 15262 ;; 15263 15264 *) 15265 # Assume MSVC wrapper 15266 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15267 dynamic_linker='Win32 ld.exe' 15268 ;; 15269 esac 15270 # FIXME: first we should search . and the directory the executable is in 15271 shlibpath_var=PATH 15272 ;; 15273 15274darwin* | rhapsody*) 15275 dynamic_linker="$host_os dyld" 15276 version_type=darwin 15277 need_lib_prefix=no 15278 need_version=no 15279 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15280 soname_spec='$libname$release$major$shared_ext' 15281 shlibpath_overrides_runpath=yes 15282 shlibpath_var=DYLD_LIBRARY_PATH 15283 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15284 15285 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15286 ;; 15287 15288dgux*) 15289 version_type=linux # correct to gnu/linux during the next big refactor 15290 need_lib_prefix=no 15291 need_version=no 15292 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15293 soname_spec='$libname$release$shared_ext$major' 15294 shlibpath_var=LD_LIBRARY_PATH 15295 ;; 15296 15297freebsd* | dragonfly*) 15298 # DragonFly does not have aout. When/if they implement a new 15299 # versioning mechanism, adjust this. 15300 if test -x /usr/bin/objformat; then 15301 objformat=`/usr/bin/objformat` 15302 else 15303 case $host_os in 15304 freebsd[23].*) objformat=aout ;; 15305 *) objformat=elf ;; 15306 esac 15307 fi 15308 version_type=freebsd-$objformat 15309 case $version_type in 15310 freebsd-elf*) 15311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15312 soname_spec='$libname$release$shared_ext$major' 15313 need_version=no 15314 need_lib_prefix=no 15315 ;; 15316 freebsd-*) 15317 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15318 need_version=yes 15319 ;; 15320 esac 15321 shlibpath_var=LD_LIBRARY_PATH 15322 case $host_os in 15323 freebsd2.*) 15324 shlibpath_overrides_runpath=yes 15325 ;; 15326 freebsd3.[01]* | freebsdelf3.[01]*) 15327 shlibpath_overrides_runpath=yes 15328 hardcode_into_libs=yes 15329 ;; 15330 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15331 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15332 shlibpath_overrides_runpath=no 15333 hardcode_into_libs=yes 15334 ;; 15335 *) # from 4.6 on, and DragonFly 15336 shlibpath_overrides_runpath=yes 15337 hardcode_into_libs=yes 15338 ;; 15339 esac 15340 ;; 15341 15342haiku*) 15343 version_type=linux # correct to gnu/linux during the next big refactor 15344 need_lib_prefix=no 15345 need_version=no 15346 dynamic_linker="$host_os runtime_loader" 15347 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15348 soname_spec='$libname$release$shared_ext$major' 15349 shlibpath_var=LIBRARY_PATH 15350 shlibpath_overrides_runpath=no 15351 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15352 hardcode_into_libs=yes 15353 ;; 15354 15355hpux9* | hpux10* | hpux11*) 15356 # Give a soname corresponding to the major version so that dld.sl refuses to 15357 # link against other versions. 15358 version_type=sunos 15359 need_lib_prefix=no 15360 need_version=no 15361 case $host_cpu in 15362 ia64*) 15363 shrext_cmds='.so' 15364 hardcode_into_libs=yes 15365 dynamic_linker="$host_os dld.so" 15366 shlibpath_var=LD_LIBRARY_PATH 15367 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15369 soname_spec='$libname$release$shared_ext$major' 15370 if test 32 = "$HPUX_IA64_MODE"; then 15371 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15372 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15373 else 15374 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15375 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15376 fi 15377 ;; 15378 hppa*64*) 15379 shrext_cmds='.sl' 15380 hardcode_into_libs=yes 15381 dynamic_linker="$host_os dld.sl" 15382 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15383 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15384 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15385 soname_spec='$libname$release$shared_ext$major' 15386 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15387 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15388 ;; 15389 *) 15390 shrext_cmds='.sl' 15391 dynamic_linker="$host_os dld.sl" 15392 shlibpath_var=SHLIB_PATH 15393 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15394 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15395 soname_spec='$libname$release$shared_ext$major' 15396 ;; 15397 esac 15398 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15399 postinstall_cmds='chmod 555 $lib' 15400 # or fails outright, so override atomically: 15401 install_override_mode=555 15402 ;; 15403 15404interix[3-9]*) 15405 version_type=linux # correct to gnu/linux during the next big refactor 15406 need_lib_prefix=no 15407 need_version=no 15408 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15409 soname_spec='$libname$release$shared_ext$major' 15410 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15411 shlibpath_var=LD_LIBRARY_PATH 15412 shlibpath_overrides_runpath=no 15413 hardcode_into_libs=yes 15414 ;; 15415 15416irix5* | irix6* | nonstopux*) 15417 case $host_os in 15418 nonstopux*) version_type=nonstopux ;; 15419 *) 15420 if test yes = "$lt_cv_prog_gnu_ld"; then 15421 version_type=linux # correct to gnu/linux during the next big refactor 15422 else 15423 version_type=irix 15424 fi ;; 15425 esac 15426 need_lib_prefix=no 15427 need_version=no 15428 soname_spec='$libname$release$shared_ext$major' 15429 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15430 case $host_os in 15431 irix5* | nonstopux*) 15432 libsuff= shlibsuff= 15433 ;; 15434 *) 15435 case $LD in # libtool.m4 will add one of these switches to LD 15436 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15437 libsuff= shlibsuff= libmagic=32-bit;; 15438 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15439 libsuff=32 shlibsuff=N32 libmagic=N32;; 15440 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15441 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15442 *) libsuff= shlibsuff= libmagic=never-match;; 15443 esac 15444 ;; 15445 esac 15446 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15447 shlibpath_overrides_runpath=no 15448 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15449 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15450 hardcode_into_libs=yes 15451 ;; 15452 15453# No shared lib support for Linux oldld, aout, or coff. 15454linux*oldld* | linux*aout* | linux*coff*) 15455 dynamic_linker=no 15456 ;; 15457 15458linux*android*) 15459 version_type=none # Android doesn't support versioned libraries. 15460 need_lib_prefix=no 15461 need_version=no 15462 library_names_spec='$libname$release$shared_ext' 15463 soname_spec='$libname$release$shared_ext' 15464 finish_cmds= 15465 shlibpath_var=LD_LIBRARY_PATH 15466 shlibpath_overrides_runpath=yes 15467 15468 # This implies no fast_install, which is unacceptable. 15469 # Some rework will be needed to allow for fast_install 15470 # before this can be enabled. 15471 hardcode_into_libs=yes 15472 15473 dynamic_linker='Android linker' 15474 # Don't embed -rpath directories since the linker doesn't support them. 15475 hardcode_libdir_flag_spec_CXX='-L$libdir' 15476 ;; 15477 15478# This must be glibc/ELF. 15479linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15480 version_type=linux # correct to gnu/linux during the next big refactor 15481 need_lib_prefix=no 15482 need_version=no 15483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15484 soname_spec='$libname$release$shared_ext$major' 15485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15486 shlibpath_var=LD_LIBRARY_PATH 15487 shlibpath_overrides_runpath=no 15488 15489 # Some binutils ld are patched to set DT_RUNPATH 15490 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15491 $as_echo_n "(cached) " >&6 15492else 15493 lt_cv_shlibpath_overrides_runpath=no 15494 save_LDFLAGS=$LDFLAGS 15495 save_libdir=$libdir 15496 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15497 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15499/* end confdefs.h. */ 15500 15501int 15502main () 15503{ 15504 15505 ; 15506 return 0; 15507} 15508_ACEOF 15509if ac_fn_cxx_try_link "$LINENO"; then : 15510 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15511 lt_cv_shlibpath_overrides_runpath=yes 15512fi 15513fi 15514rm -f core conftest.err conftest.$ac_objext \ 15515 conftest$ac_exeext conftest.$ac_ext 15516 LDFLAGS=$save_LDFLAGS 15517 libdir=$save_libdir 15518 15519fi 15520 15521 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15522 15523 # This implies no fast_install, which is unacceptable. 15524 # Some rework will be needed to allow for fast_install 15525 # before this can be enabled. 15526 hardcode_into_libs=yes 15527 15528 # Ideally, we could use ldconfig to report *all* directores which are 15529 # searched for libraries, however this is still not possible. Aside from not 15530 # being certain /sbin/ldconfig is available, command 15531 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15532 # even though it is searched at run-time. Try to do the best guess by 15533 # appending ld.so.conf contents (and includes) to the search path. 15534 if test -f /etc/ld.so.conf; then 15535 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' ' '` 15536 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15537 fi 15538 15539 # We used to test for /lib/ld.so.1 and disable shared libraries on 15540 # powerpc, because MkLinux only supported shared libraries with the 15541 # GNU dynamic linker. Since this was broken with cross compilers, 15542 # most powerpc-linux boxes support dynamic linking these days and 15543 # people can always --disable-shared, the test was removed, and we 15544 # assume the GNU/Linux dynamic linker is in use. 15545 dynamic_linker='GNU/Linux ld.so' 15546 ;; 15547 15548netbsdelf*-gnu) 15549 version_type=linux 15550 need_lib_prefix=no 15551 need_version=no 15552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15553 soname_spec='${libname}${release}${shared_ext}$major' 15554 shlibpath_var=LD_LIBRARY_PATH 15555 shlibpath_overrides_runpath=no 15556 hardcode_into_libs=yes 15557 dynamic_linker='NetBSD ld.elf_so' 15558 ;; 15559 15560netbsd*) 15561 version_type=sunos 15562 need_lib_prefix=no 15563 need_version=no 15564 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15565 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15566 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15567 dynamic_linker='NetBSD (a.out) ld.so' 15568 else 15569 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15570 soname_spec='$libname$release$shared_ext$major' 15571 dynamic_linker='NetBSD ld.elf_so' 15572 fi 15573 shlibpath_var=LD_LIBRARY_PATH 15574 shlibpath_overrides_runpath=yes 15575 hardcode_into_libs=yes 15576 ;; 15577 15578newsos6) 15579 version_type=linux # correct to gnu/linux during the next big refactor 15580 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15581 shlibpath_var=LD_LIBRARY_PATH 15582 shlibpath_overrides_runpath=yes 15583 ;; 15584 15585*nto* | *qnx*) 15586 version_type=qnx 15587 need_lib_prefix=no 15588 need_version=no 15589 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15590 soname_spec='$libname$release$shared_ext$major' 15591 shlibpath_var=LD_LIBRARY_PATH 15592 shlibpath_overrides_runpath=no 15593 hardcode_into_libs=yes 15594 dynamic_linker='ldqnx.so' 15595 ;; 15596 15597openbsd* | bitrig*) 15598 version_type=sunos 15599 sys_lib_dlsearch_path_spec=/usr/lib 15600 need_lib_prefix=no 15601 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15602 need_version=no 15603 else 15604 need_version=yes 15605 fi 15606 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15608 shlibpath_var=LD_LIBRARY_PATH 15609 shlibpath_overrides_runpath=yes 15610 ;; 15611 15612os2*) 15613 libname_spec='$name' 15614 version_type=windows 15615 shrext_cmds=.dll 15616 need_version=no 15617 need_lib_prefix=no 15618 # OS/2 can only load a DLL with a base name of 8 characters or less. 15619 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 15620 v=$($ECHO $release$versuffix | tr -d .-); 15621 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 15622 $ECHO $n$v`$shared_ext' 15623 library_names_spec='${libname}_dll.$libext' 15624 dynamic_linker='OS/2 ld.exe' 15625 shlibpath_var=BEGINLIBPATH 15626 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15627 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15628 postinstall_cmds='base_file=`basename \$file`~ 15629 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 15630 dldir=$destdir/`dirname \$dlpath`~ 15631 test -d \$dldir || mkdir -p \$dldir~ 15632 $install_prog $dir/$dlname \$dldir/$dlname~ 15633 chmod a+x \$dldir/$dlname~ 15634 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15635 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15636 fi' 15637 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 15638 dlpath=$dir/\$dldll~ 15639 $RM \$dlpath' 15640 ;; 15641 15642osf3* | osf4* | osf5*) 15643 version_type=osf 15644 need_lib_prefix=no 15645 need_version=no 15646 soname_spec='$libname$release$shared_ext$major' 15647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15648 shlibpath_var=LD_LIBRARY_PATH 15649 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15650 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15651 ;; 15652 15653rdos*) 15654 dynamic_linker=no 15655 ;; 15656 15657solaris*) 15658 version_type=linux # correct to gnu/linux during the next big refactor 15659 need_lib_prefix=no 15660 need_version=no 15661 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15662 soname_spec='$libname$release$shared_ext$major' 15663 shlibpath_var=LD_LIBRARY_PATH 15664 shlibpath_overrides_runpath=yes 15665 hardcode_into_libs=yes 15666 # ldd complains unless libraries are executable 15667 postinstall_cmds='chmod +x $lib' 15668 ;; 15669 15670sunos4*) 15671 version_type=sunos 15672 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15673 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15674 shlibpath_var=LD_LIBRARY_PATH 15675 shlibpath_overrides_runpath=yes 15676 if test yes = "$with_gnu_ld"; then 15677 need_lib_prefix=no 15678 fi 15679 need_version=yes 15680 ;; 15681 15682sysv4 | sysv4.3*) 15683 version_type=linux # correct to gnu/linux during the next big refactor 15684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15685 soname_spec='$libname$release$shared_ext$major' 15686 shlibpath_var=LD_LIBRARY_PATH 15687 case $host_vendor in 15688 sni) 15689 shlibpath_overrides_runpath=no 15690 need_lib_prefix=no 15691 runpath_var=LD_RUN_PATH 15692 ;; 15693 siemens) 15694 need_lib_prefix=no 15695 ;; 15696 motorola) 15697 need_lib_prefix=no 15698 need_version=no 15699 shlibpath_overrides_runpath=no 15700 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15701 ;; 15702 esac 15703 ;; 15704 15705sysv4*MP*) 15706 if test -d /usr/nec; then 15707 version_type=linux # correct to gnu/linux during the next big refactor 15708 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 15709 soname_spec='$libname$shared_ext.$major' 15710 shlibpath_var=LD_LIBRARY_PATH 15711 fi 15712 ;; 15713 15714sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 15715 version_type=sco 15716 need_lib_prefix=no 15717 need_version=no 15718 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 15719 soname_spec='$libname$release$shared_ext$major' 15720 shlibpath_var=LD_LIBRARY_PATH 15721 shlibpath_overrides_runpath=yes 15722 hardcode_into_libs=yes 15723 if test yes = "$with_gnu_ld"; then 15724 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 15725 else 15726 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 15727 case $host_os in 15728 sco3.2v5*) 15729 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 15730 ;; 15731 esac 15732 fi 15733 sys_lib_dlsearch_path_spec='/usr/lib' 15734 ;; 15735 15736tpf*) 15737 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 15738 version_type=linux # correct to gnu/linux during the next big refactor 15739 need_lib_prefix=no 15740 need_version=no 15741 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15742 shlibpath_var=LD_LIBRARY_PATH 15743 shlibpath_overrides_runpath=no 15744 hardcode_into_libs=yes 15745 ;; 15746 15747uts4*) 15748 version_type=linux # correct to gnu/linux during the next big refactor 15749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15750 soname_spec='$libname$release$shared_ext$major' 15751 shlibpath_var=LD_LIBRARY_PATH 15752 ;; 15753 15754*) 15755 dynamic_linker=no 15756 ;; 15757esac 15758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 15759$as_echo "$dynamic_linker" >&6; } 15760test no = "$dynamic_linker" && can_build_shared=no 15761 15762variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 15763if test yes = "$GCC"; then 15764 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 15765fi 15766 15767if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 15768 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 15769fi 15770 15771if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 15772 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 15773fi 15774 15775# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 15776configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 15777 15778# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 15779func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 15780 15781# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 15782configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 15824$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 15825hardcode_action_CXX= 15826if test -n "$hardcode_libdir_flag_spec_CXX" || 15827 test -n "$runpath_var_CXX" || 15828 test yes = "$hardcode_automatic_CXX"; then 15829 15830 # We can hardcode non-existent directories. 15831 if test no != "$hardcode_direct_CXX" && 15832 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15833 # have to relink, otherwise we might link with an installed library 15834 # when we should be linking with a yet-to-be-installed one 15835 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 15836 test no != "$hardcode_minus_L_CXX"; then 15837 # Linking always hardcodes the temporary library directory. 15838 hardcode_action_CXX=relink 15839 else 15840 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15841 hardcode_action_CXX=immediate 15842 fi 15843else 15844 # We cannot hardcode anything, or else we can only hardcode existing 15845 # directories. 15846 hardcode_action_CXX=unsupported 15847fi 15848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 15849$as_echo "$hardcode_action_CXX" >&6; } 15850 15851if test relink = "$hardcode_action_CXX" || 15852 test yes = "$inherit_rpath_CXX"; then 15853 # Fast installation is not supported 15854 enable_fast_install=no 15855elif test yes = "$shlibpath_overrides_runpath" || 15856 test no = "$enable_shared"; then 15857 # Fast installation is not necessary 15858 enable_fast_install=needless 15859fi 15860 15861 15862 15863 15864 15865 15866 15867 fi # test -n "$compiler" 15868 15869 CC=$lt_save_CC 15870 CFLAGS=$lt_save_CFLAGS 15871 LDCXX=$LD 15872 LD=$lt_save_LD 15873 GCC=$lt_save_GCC 15874 with_gnu_ld=$lt_save_with_gnu_ld 15875 lt_cv_path_LDCXX=$lt_cv_path_LD 15876 lt_cv_path_LD=$lt_save_path_LD 15877 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 15878 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 15879fi # test yes != "$_lt_caught_CXX_error" 15880 15881ac_ext=c 15882ac_cpp='$CPP $CPPFLAGS' 15883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15885ac_compiler_gnu=$ac_cv_c_compiler_gnu 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 ac_config_commands="$ac_config_commands libtool" 15902 15903 15904 15905 15906# Only expand once: 15907 15908 15909 15910# Checks for libraries. 15911 15912# Checks for header files. 15913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 15914$as_echo_n "checking for ANSI C header files... " >&6; } 15915if ${ac_cv_header_stdc+:} false; then : 15916 $as_echo_n "(cached) " >&6 15917else 15918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15919/* end confdefs.h. */ 15920#include <stdlib.h> 15921#include <stdarg.h> 15922#include <string.h> 15923#include <float.h> 15924 15925int 15926main () 15927{ 15928 15929 ; 15930 return 0; 15931} 15932_ACEOF 15933if ac_fn_c_try_compile "$LINENO"; then : 15934 ac_cv_header_stdc=yes 15935else 15936 ac_cv_header_stdc=no 15937fi 15938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15939 15940if test $ac_cv_header_stdc = yes; then 15941 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 15942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15943/* end confdefs.h. */ 15944#include <string.h> 15945 15946_ACEOF 15947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15948 $EGREP "memchr" >/dev/null 2>&1; then : 15949 15950else 15951 ac_cv_header_stdc=no 15952fi 15953rm -f conftest* 15954 15955fi 15956 15957if test $ac_cv_header_stdc = yes; then 15958 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 15959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15960/* end confdefs.h. */ 15961#include <stdlib.h> 15962 15963_ACEOF 15964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15965 $EGREP "free" >/dev/null 2>&1; then : 15966 15967else 15968 ac_cv_header_stdc=no 15969fi 15970rm -f conftest* 15971 15972fi 15973 15974if test $ac_cv_header_stdc = yes; then 15975 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 15976 if test "$cross_compiling" = yes; then : 15977 : 15978else 15979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15980/* end confdefs.h. */ 15981#include <ctype.h> 15982#include <stdlib.h> 15983#if ((' ' & 0x0FF) == 0x020) 15984# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 15985# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 15986#else 15987# define ISLOWER(c) \ 15988 (('a' <= (c) && (c) <= 'i') \ 15989 || ('j' <= (c) && (c) <= 'r') \ 15990 || ('s' <= (c) && (c) <= 'z')) 15991# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 15992#endif 15993 15994#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 15995int 15996main () 15997{ 15998 int i; 15999 for (i = 0; i < 256; i++) 16000 if (XOR (islower (i), ISLOWER (i)) 16001 || toupper (i) != TOUPPER (i)) 16002 return 2; 16003 return 0; 16004} 16005_ACEOF 16006if ac_fn_c_try_run "$LINENO"; then : 16007 16008else 16009 ac_cv_header_stdc=no 16010fi 16011rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16012 conftest.$ac_objext conftest.beam conftest.$ac_ext 16013fi 16014 16015fi 16016fi 16017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 16018$as_echo "$ac_cv_header_stdc" >&6; } 16019if test $ac_cv_header_stdc = yes; then 16020 16021$as_echo "#define STDC_HEADERS 1" >>confdefs.h 16022 16023fi 16024 16025for ac_header in errno.h stddef.h stdlib.h string.h unistd.h limits.h 16026do : 16027 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16028ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16029if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16030 cat >>confdefs.h <<_ACEOF 16031#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16032_ACEOF 16033 16034fi 16035 16036done 16037 16038 16039# Checks for typedefs, structures, and compiler characteristics. 16040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 16041$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 16042if ${ac_cv_c_const+:} false; then : 16043 $as_echo_n "(cached) " >&6 16044else 16045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16046/* end confdefs.h. */ 16047 16048int 16049main () 16050{ 16051 16052#ifndef __cplusplus 16053 /* Ultrix mips cc rejects this sort of thing. */ 16054 typedef int charset[2]; 16055 const charset cs = { 0, 0 }; 16056 /* SunOS 4.1.1 cc rejects this. */ 16057 char const *const *pcpcc; 16058 char **ppc; 16059 /* NEC SVR4.0.2 mips cc rejects this. */ 16060 struct point {int x, y;}; 16061 static struct point const zero = {0,0}; 16062 /* AIX XL C 1.02.0.0 rejects this. 16063 It does not let you subtract one const X* pointer from another in 16064 an arm of an if-expression whose if-part is not a constant 16065 expression */ 16066 const char *g = "string"; 16067 pcpcc = &g + (g ? g-g : 0); 16068 /* HPUX 7.0 cc rejects these. */ 16069 ++pcpcc; 16070 ppc = (char**) pcpcc; 16071 pcpcc = (char const *const *) ppc; 16072 { /* SCO 3.2v4 cc rejects this sort of thing. */ 16073 char tx; 16074 char *t = &tx; 16075 char const *s = 0 ? (char *) 0 : (char const *) 0; 16076 16077 *t++ = 0; 16078 if (s) return 0; 16079 } 16080 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 16081 int x[] = {25, 17}; 16082 const int *foo = &x[0]; 16083 ++foo; 16084 } 16085 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 16086 typedef const int *iptr; 16087 iptr p = 0; 16088 ++p; 16089 } 16090 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 16091 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 16092 struct s { int j; const int *ap[3]; } bx; 16093 struct s *b = &bx; b->j = 5; 16094 } 16095 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 16096 const int foo = 10; 16097 if (!foo) return 0; 16098 } 16099 return !cs[0] && !zero.x; 16100#endif 16101 16102 ; 16103 return 0; 16104} 16105_ACEOF 16106if ac_fn_c_try_compile "$LINENO"; then : 16107 ac_cv_c_const=yes 16108else 16109 ac_cv_c_const=no 16110fi 16111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16112fi 16113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 16114$as_echo "$ac_cv_c_const" >&6; } 16115if test $ac_cv_c_const = no; then 16116 16117$as_echo "#define const /**/" >>confdefs.h 16118 16119fi 16120 16121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 16122$as_echo_n "checking for inline... " >&6; } 16123if ${ac_cv_c_inline+:} false; then : 16124 $as_echo_n "(cached) " >&6 16125else 16126 ac_cv_c_inline=no 16127for ac_kw in inline __inline__ __inline; do 16128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16129/* end confdefs.h. */ 16130#ifndef __cplusplus 16131typedef int foo_t; 16132static $ac_kw foo_t static_foo () {return 0; } 16133$ac_kw foo_t foo () {return 0; } 16134#endif 16135 16136_ACEOF 16137if ac_fn_c_try_compile "$LINENO"; then : 16138 ac_cv_c_inline=$ac_kw 16139fi 16140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16141 test "$ac_cv_c_inline" != no && break 16142done 16143 16144fi 16145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 16146$as_echo "$ac_cv_c_inline" >&6; } 16147 16148case $ac_cv_c_inline in 16149 inline | yes) ;; 16150 *) 16151 case $ac_cv_c_inline in 16152 no) ac_val=;; 16153 *) ac_val=$ac_cv_c_inline;; 16154 esac 16155 cat >>confdefs.h <<_ACEOF 16156#ifndef __cplusplus 16157#define inline $ac_val 16158#endif 16159_ACEOF 16160 ;; 16161esac 16162 16163ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16164if test "x$ac_cv_type_size_t" = xyes; then : 16165 16166else 16167 16168cat >>confdefs.h <<_ACEOF 16169#define size_t unsigned int 16170_ACEOF 16171 16172fi 16173 16174 16175# Checks for library functions. 16176for ac_header in stdlib.h 16177do : 16178 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 16179if test "x$ac_cv_header_stdlib_h" = xyes; then : 16180 cat >>confdefs.h <<_ACEOF 16181#define HAVE_STDLIB_H 1 16182_ACEOF 16183 16184fi 16185 16186done 16187 16188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 16189$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 16190if ${ac_cv_func_malloc_0_nonnull+:} false; then : 16191 $as_echo_n "(cached) " >&6 16192else 16193 if test "$cross_compiling" = yes; then : 16194 ac_cv_func_malloc_0_nonnull=no 16195else 16196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16197/* end confdefs.h. */ 16198#if defined STDC_HEADERS || defined HAVE_STDLIB_H 16199# include <stdlib.h> 16200#else 16201char *malloc (); 16202#endif 16203 16204int 16205main () 16206{ 16207return ! malloc (0); 16208 ; 16209 return 0; 16210} 16211_ACEOF 16212if ac_fn_c_try_run "$LINENO"; then : 16213 ac_cv_func_malloc_0_nonnull=yes 16214else 16215 ac_cv_func_malloc_0_nonnull=no 16216fi 16217rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16218 conftest.$ac_objext conftest.beam conftest.$ac_ext 16219fi 16220 16221fi 16222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 16223$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 16224if test $ac_cv_func_malloc_0_nonnull = yes; then : 16225 16226$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 16227 16228else 16229 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 16230 16231 case " $LIBOBJS " in 16232 *" malloc.$ac_objext "* ) ;; 16233 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 16234 ;; 16235esac 16236 16237 16238$as_echo "#define malloc rpl_malloc" >>confdefs.h 16239 16240fi 16241 16242 16243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 16244$as_echo_n "checking for working memcmp... " >&6; } 16245if ${ac_cv_func_memcmp_working+:} false; then : 16246 $as_echo_n "(cached) " >&6 16247else 16248 if test "$cross_compiling" = yes; then : 16249 ac_cv_func_memcmp_working=no 16250else 16251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16252/* end confdefs.h. */ 16253$ac_includes_default 16254int 16255main () 16256{ 16257 16258 /* Some versions of memcmp are not 8-bit clean. */ 16259 char c0 = '\100', c1 = '\200', c2 = '\201'; 16260 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 16261 return 1; 16262 16263 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 16264 or more and with at least one buffer not starting on a 4-byte boundary. 16265 William Lewis provided this test program. */ 16266 { 16267 char foo[21]; 16268 char bar[21]; 16269 int i; 16270 for (i = 0; i < 4; i++) 16271 { 16272 char *a = foo + i; 16273 char *b = bar + i; 16274 strcpy (a, "--------01111111"); 16275 strcpy (b, "--------10000000"); 16276 if (memcmp (a, b, 16) >= 0) 16277 return 1; 16278 } 16279 return 0; 16280 } 16281 16282 ; 16283 return 0; 16284} 16285_ACEOF 16286if ac_fn_c_try_run "$LINENO"; then : 16287 ac_cv_func_memcmp_working=yes 16288else 16289 ac_cv_func_memcmp_working=no 16290fi 16291rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16292 conftest.$ac_objext conftest.beam conftest.$ac_ext 16293fi 16294 16295fi 16296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 16297$as_echo "$ac_cv_func_memcmp_working" >&6; } 16298test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 16299 *" memcmp.$ac_objext "* ) ;; 16300 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 16301 ;; 16302esac 16303 16304 16305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil in -lm" >&5 16306$as_echo_n "checking for ceil in -lm... " >&6; } 16307if ${ac_cv_lib_m_ceil+:} false; then : 16308 $as_echo_n "(cached) " >&6 16309else 16310 ac_check_lib_save_LIBS=$LIBS 16311LIBS="-lm $LIBS" 16312cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16313/* end confdefs.h. */ 16314 16315/* Override any GCC internal prototype to avoid an error. 16316 Use char because int might match the return type of a GCC 16317 builtin and then its argument prototype would still apply. */ 16318#ifdef __cplusplus 16319extern "C" 16320#endif 16321char ceil (); 16322int 16323main () 16324{ 16325return ceil (); 16326 ; 16327 return 0; 16328} 16329_ACEOF 16330if ac_fn_c_try_link "$LINENO"; then : 16331 ac_cv_lib_m_ceil=yes 16332else 16333 ac_cv_lib_m_ceil=no 16334fi 16335rm -f core conftest.err conftest.$ac_objext \ 16336 conftest$ac_exeext conftest.$ac_ext 16337LIBS=$ac_check_lib_save_LIBS 16338fi 16339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceil" >&5 16340$as_echo "$ac_cv_lib_m_ceil" >&6; } 16341if test "x$ac_cv_lib_m_ceil" = xyes; then : 16342 cat >>confdefs.h <<_ACEOF 16343#define HAVE_LIBM 1 16344_ACEOF 16345 16346 LIBS="-lm $LIBS" 16347 16348fi 16349 16350for ac_func in floor memset select 16351do : 16352 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16353ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16354if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16355 cat >>confdefs.h <<_ACEOF 16356#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16357_ACEOF 16358 16359fi 16360done 16361 16362 16363# Autoheader seems to complain about a lack of these (perhaps rightly) 16364 16365 16366 16367# If you want to use Checker, then you have to enable debugging and 16368# disable threads 16369 16370# Check whether --enable-debug was given. 16371if test "${enable_debug+set}" = set; then : 16372 enableval=$enable_debug; enable_debug=$enableval 16373else 16374 enable_debug=no 16375fi 16376 16377if test "x$enable_debug" = xyes; then 16378 $as_echo "#define LIBEMF_DEBUG 1" >>confdefs.h 16379 16380 if test "x$GCC" = xyes; then 16381 CFLAGS="$CFLAGS -g -O0 -Wall -W" 16382 CXXFLAGS="$CXXFLAGS -g -O0 -Wall -W" 16383 else 16384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler unknown, please disable optimizations manually in \ 16385your CFLAGS" >&5 16386$as_echo "$as_me: WARNING: compiler unknown, please disable optimizations manually in \ 16387your CFLAGS" >&2;} 16388 fi 16389fi 16390 16391# Check whether --enable-threads was given. 16392if test "${enable_threads+set}" = set; then : 16393 enableval=$enable_threads; have_threads=$enableval 16394else 16395 have_threads=yes 16396fi 16397 16398if test "x$have_threads" = xyes; then 16399THREAD_LIBS= 16400for ac_header in pthread.h 16401do : 16402 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 16403if test "x$ac_cv_header_pthread_h" = xyes; then : 16404 cat >>confdefs.h <<_ACEOF 16405#define HAVE_PTHREAD_H 1 16406_ACEOF 16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 16408$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 16409 16410 save_LIBS=$LIBS 16411 LIBS="$LIBS -lpthread" 16412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16413/* end confdefs.h. */ 16414#include <pthread.h> 16415int 16416main () 16417{ 16418 16419pthread_create (NULL, NULL, NULL, NULL) 16420 ; 16421 return 0; 16422} 16423_ACEOF 16424if ac_fn_c_try_link "$LINENO"; then : 16425 16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16427$as_echo "yes" >&6; } 16428 CFLAGS="$CFLAGS -D_REENTRANT -DPTHREADS" 16429 CXXFLAGS="$CXXFLAGS -D_REENTRANT -DPTHREADS" 16430 THREAD_LIBS="$THREAD_LIBS -lpthread" 16431else 16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16433$as_echo "no" >&6; } 16434fi 16435rm -f core conftest.err conftest.$ac_objext \ 16436 conftest$ac_exeext conftest.$ac_ext 16437fi 16438 16439done 16440 16441 LIBS=$save_LIBS 16442 16443else 16444 CFLAGS="$CFLAGS -D_NOTHREADS" 16445 CXXFLAGS="$CXXFLAGS -D_NOTHREADS" 16446fi 16447 16448# You can turn on (human readable) editing of metafile if desired. 16449# Adds a lot of code and data to the library, though. 16450 16451# Check whether --enable-editing was given. 16452if test "${enable_editing+set}" = set; then : 16453 enableval=$enable_editing; enable_editing=$enableval 16454else 16455 enable_editing=no 16456fi 16457 16458if test "x$enable_editing" = xyes; then 16459 $as_echo "#define ENABLE_EDITING 1" >>confdefs.h 16460 16461fi 16462 16463 if test $enable_debug = yes; then 16464 LIBEMF_DEBUG_TRUE= 16465 LIBEMF_DEBUG_FALSE='#' 16466else 16467 LIBEMF_DEBUG_TRUE='#' 16468 LIBEMF_DEBUG_FALSE= 16469fi 16470 16471 if test $have_threads = yes; then 16472 HAVE_THREADS_TRUE= 16473 HAVE_THREADS_FALSE='#' 16474else 16475 HAVE_THREADS_TRUE='#' 16476 HAVE_THREADS_FALSE= 16477fi 16478 16479 if test $enable_editing = no; then 16480 ENABLE_EDITING_TRUE= 16481 ENABLE_EDITING_FALSE='#' 16482else 16483 ENABLE_EDITING_TRUE='#' 16484 ENABLE_EDITING_FALSE= 16485fi 16486 16487 16488ac_config_files="$ac_config_files Makefile include/Makefile libemf/Makefile src/Makefile doc/Makefile tests/Makefile" 16489 16490 16491cat >confcache <<\_ACEOF 16492# This file is a shell script that caches the results of configure 16493# tests run on this system so they can be shared between configure 16494# scripts and configure runs, see configure's option --config-cache. 16495# It is not useful on other systems. If it contains results you don't 16496# want to keep, you may remove or edit it. 16497# 16498# config.status only pays attention to the cache file if you give it 16499# the --recheck option to rerun configure. 16500# 16501# `ac_cv_env_foo' variables (set or unset) will be overridden when 16502# loading this file, other *unset* `ac_cv_foo' will be assigned the 16503# following values. 16504 16505_ACEOF 16506 16507# The following way of writing the cache mishandles newlines in values, 16508# but we know of no workaround that is simple, portable, and efficient. 16509# So, we kill variables containing newlines. 16510# Ultrix sh set writes to stderr and can't be redirected directly, 16511# and sets the high bit in the cache file unless we assign to the vars. 16512( 16513 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16514 eval ac_val=\$$ac_var 16515 case $ac_val in #( 16516 *${as_nl}*) 16517 case $ac_var in #( 16518 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16519$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16520 esac 16521 case $ac_var in #( 16522 _ | IFS | as_nl) ;; #( 16523 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16524 *) { eval $ac_var=; unset $ac_var;} ;; 16525 esac ;; 16526 esac 16527 done 16528 16529 (set) 2>&1 | 16530 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16531 *${as_nl}ac_space=\ *) 16532 # `set' does not quote correctly, so add quotes: double-quote 16533 # substitution turns \\\\ into \\, and sed turns \\ into \. 16534 sed -n \ 16535 "s/'/'\\\\''/g; 16536 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16537 ;; #( 16538 *) 16539 # `set' quotes correctly as required by POSIX, so do not add quotes. 16540 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 16541 ;; 16542 esac | 16543 sort 16544) | 16545 sed ' 16546 /^ac_cv_env_/b end 16547 t clear 16548 :clear 16549 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16550 t end 16551 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16552 :end' >>confcache 16553if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 16554 if test -w "$cache_file"; then 16555 if test "x$cache_file" != "x/dev/null"; then 16556 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 16557$as_echo "$as_me: updating cache $cache_file" >&6;} 16558 if test ! -f "$cache_file" || test -h "$cache_file"; then 16559 cat confcache >"$cache_file" 16560 else 16561 case $cache_file in #( 16562 */* | ?:*) 16563 mv -f confcache "$cache_file"$$ && 16564 mv -f "$cache_file"$$ "$cache_file" ;; #( 16565 *) 16566 mv -f confcache "$cache_file" ;; 16567 esac 16568 fi 16569 fi 16570 else 16571 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 16572$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 16573 fi 16574fi 16575rm -f confcache 16576 16577test "x$prefix" = xNONE && prefix=$ac_default_prefix 16578# Let make expand exec_prefix. 16579test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16580 16581DEFS=-DHAVE_CONFIG_H 16582 16583ac_libobjs= 16584ac_ltlibobjs= 16585for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16586 # 1. Remove the extension, and $U if already installed. 16587 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 16588 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 16589 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 16590 # will be set to the directory where LIBOBJS objects are built. 16591 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 16592 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 16593done 16594LIBOBJS=$ac_libobjs 16595 16596LTLIBOBJS=$ac_ltlibobjs 16597 16598 16599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 16600$as_echo_n "checking that generated files are newer than configure... " >&6; } 16601 if test -n "$am_sleep_pid"; then 16602 # Hide warnings about reused PIDs. 16603 wait $am_sleep_pid 2>/dev/null 16604 fi 16605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16606$as_echo "done" >&6; } 16607 if test -n "$EXEEXT"; then 16608 am__EXEEXT_TRUE= 16609 am__EXEEXT_FALSE='#' 16610else 16611 am__EXEEXT_TRUE='#' 16612 am__EXEEXT_FALSE= 16613fi 16614 16615if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16616 as_fn_error $? "conditional \"AMDEP\" was never defined. 16617Usually this means the macro was only invoked conditionally." "$LINENO" 5 16618fi 16619if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 16620 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 16621Usually this means the macro was only invoked conditionally." "$LINENO" 5 16622fi 16623if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 16624 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 16625Usually this means the macro was only invoked conditionally." "$LINENO" 5 16626fi 16627if test -z "${LIBEMF_DEBUG_TRUE}" && test -z "${LIBEMF_DEBUG_FALSE}"; then 16628 as_fn_error $? "conditional \"LIBEMF_DEBUG\" was never defined. 16629Usually this means the macro was only invoked conditionally." "$LINENO" 5 16630fi 16631if test -z "${HAVE_THREADS_TRUE}" && test -z "${HAVE_THREADS_FALSE}"; then 16632 as_fn_error $? "conditional \"HAVE_THREADS\" was never defined. 16633Usually this means the macro was only invoked conditionally." "$LINENO" 5 16634fi 16635if test -z "${ENABLE_EDITING_TRUE}" && test -z "${ENABLE_EDITING_FALSE}"; then 16636 as_fn_error $? "conditional \"ENABLE_EDITING\" was never defined. 16637Usually this means the macro was only invoked conditionally." "$LINENO" 5 16638fi 16639 16640: "${CONFIG_STATUS=./config.status}" 16641ac_write_fail=0 16642ac_clean_files_save=$ac_clean_files 16643ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16644{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 16645$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 16646as_write_fail=0 16647cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 16648#! $SHELL 16649# Generated by $as_me. 16650# Run this file to recreate the current configuration. 16651# Compiler output produced by configure, useful for debugging 16652# configure, is in config.log if it exists. 16653 16654debug=false 16655ac_cs_recheck=false 16656ac_cs_silent=false 16657 16658SHELL=\${CONFIG_SHELL-$SHELL} 16659export SHELL 16660_ASEOF 16661cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 16662## -------------------- ## 16663## M4sh Initialization. ## 16664## -------------------- ## 16665 16666# Be more Bourne compatible 16667DUALCASE=1; export DUALCASE # for MKS sh 16668if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 16669 emulate sh 16670 NULLCMD=: 16671 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 16672 # is contrary to our usage. Disable this feature. 16673 alias -g '${1+"$@"}'='"$@"' 16674 setopt NO_GLOB_SUBST 16675else 16676 case `(set -o) 2>/dev/null` in #( 16677 *posix*) : 16678 set -o posix ;; #( 16679 *) : 16680 ;; 16681esac 16682fi 16683 16684 16685as_nl=' 16686' 16687export as_nl 16688# Printing a long string crashes Solaris 7 /usr/bin/printf. 16689as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 16690as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 16691as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 16692# Prefer a ksh shell builtin over an external printf program on Solaris, 16693# but without wasting forks for bash or zsh. 16694if test -z "$BASH_VERSION$ZSH_VERSION" \ 16695 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 16696 as_echo='print -r --' 16697 as_echo_n='print -rn --' 16698elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 16699 as_echo='printf %s\n' 16700 as_echo_n='printf %s' 16701else 16702 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 16703 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 16704 as_echo_n='/usr/ucb/echo -n' 16705 else 16706 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 16707 as_echo_n_body='eval 16708 arg=$1; 16709 case $arg in #( 16710 *"$as_nl"*) 16711 expr "X$arg" : "X\\(.*\\)$as_nl"; 16712 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 16713 esac; 16714 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 16715 ' 16716 export as_echo_n_body 16717 as_echo_n='sh -c $as_echo_n_body as_echo' 16718 fi 16719 export as_echo_body 16720 as_echo='sh -c $as_echo_body as_echo' 16721fi 16722 16723# The user is always right. 16724if test "${PATH_SEPARATOR+set}" != set; then 16725 PATH_SEPARATOR=: 16726 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 16727 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 16728 PATH_SEPARATOR=';' 16729 } 16730fi 16731 16732 16733# IFS 16734# We need space, tab and new line, in precisely that order. Quoting is 16735# there to prevent editors from complaining about space-tab. 16736# (If _AS_PATH_WALK were called with IFS unset, it would disable word 16737# splitting by setting IFS to empty value.) 16738IFS=" "" $as_nl" 16739 16740# Find who we are. Look in the path if we contain no directory separator. 16741as_myself= 16742case $0 in #(( 16743 *[\\/]* ) as_myself=$0 ;; 16744 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16745for as_dir in $PATH 16746do 16747 IFS=$as_save_IFS 16748 test -z "$as_dir" && as_dir=. 16749 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16750 done 16751IFS=$as_save_IFS 16752 16753 ;; 16754esac 16755# We did not find ourselves, most probably we were run as `sh COMMAND' 16756# in which case we are not to be found in the path. 16757if test "x$as_myself" = x; then 16758 as_myself=$0 16759fi 16760if test ! -f "$as_myself"; then 16761 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 16762 exit 1 16763fi 16764 16765# Unset variables that we do not need and which cause bugs (e.g. in 16766# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 16767# suppresses any "Segmentation fault" message there. '((' could 16768# trigger a bug in pdksh 5.2.14. 16769for as_var in BASH_ENV ENV MAIL MAILPATH 16770do eval test x\${$as_var+set} = xset \ 16771 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 16772done 16773PS1='$ ' 16774PS2='> ' 16775PS4='+ ' 16776 16777# NLS nuisances. 16778LC_ALL=C 16779export LC_ALL 16780LANGUAGE=C 16781export LANGUAGE 16782 16783# CDPATH. 16784(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 16785 16786 16787# as_fn_error STATUS ERROR [LINENO LOG_FD] 16788# ---------------------------------------- 16789# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 16790# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 16791# script with STATUS, using 1 if that was 0. 16792as_fn_error () 16793{ 16794 as_status=$1; test $as_status -eq 0 && as_status=1 16795 if test "$4"; then 16796 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 16797 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 16798 fi 16799 $as_echo "$as_me: error: $2" >&2 16800 as_fn_exit $as_status 16801} # as_fn_error 16802 16803 16804# as_fn_set_status STATUS 16805# ----------------------- 16806# Set $? to STATUS, without forking. 16807as_fn_set_status () 16808{ 16809 return $1 16810} # as_fn_set_status 16811 16812# as_fn_exit STATUS 16813# ----------------- 16814# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 16815as_fn_exit () 16816{ 16817 set +e 16818 as_fn_set_status $1 16819 exit $1 16820} # as_fn_exit 16821 16822# as_fn_unset VAR 16823# --------------- 16824# Portably unset VAR. 16825as_fn_unset () 16826{ 16827 { eval $1=; unset $1;} 16828} 16829as_unset=as_fn_unset 16830# as_fn_append VAR VALUE 16831# ---------------------- 16832# Append the text in VALUE to the end of the definition contained in VAR. Take 16833# advantage of any shell optimizations that allow amortized linear growth over 16834# repeated appends, instead of the typical quadratic growth present in naive 16835# implementations. 16836if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 16837 eval 'as_fn_append () 16838 { 16839 eval $1+=\$2 16840 }' 16841else 16842 as_fn_append () 16843 { 16844 eval $1=\$$1\$2 16845 } 16846fi # as_fn_append 16847 16848# as_fn_arith ARG... 16849# ------------------ 16850# Perform arithmetic evaluation on the ARGs, and store the result in the 16851# global $as_val. Take advantage of shells that can avoid forks. The arguments 16852# must be portable across $(()) and expr. 16853if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 16854 eval 'as_fn_arith () 16855 { 16856 as_val=$(( $* )) 16857 }' 16858else 16859 as_fn_arith () 16860 { 16861 as_val=`expr "$@" || test $? -eq 1` 16862 } 16863fi # as_fn_arith 16864 16865 16866if expr a : '\(a\)' >/dev/null 2>&1 && 16867 test "X`expr 00001 : '.*\(...\)'`" = X001; then 16868 as_expr=expr 16869else 16870 as_expr=false 16871fi 16872 16873if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 16874 as_basename=basename 16875else 16876 as_basename=false 16877fi 16878 16879if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 16880 as_dirname=dirname 16881else 16882 as_dirname=false 16883fi 16884 16885as_me=`$as_basename -- "$0" || 16886$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16887 X"$0" : 'X\(//\)$' \| \ 16888 X"$0" : 'X\(/\)' \| . 2>/dev/null || 16889$as_echo X/"$0" | 16890 sed '/^.*\/\([^/][^/]*\)\/*$/{ 16891 s//\1/ 16892 q 16893 } 16894 /^X\/\(\/\/\)$/{ 16895 s//\1/ 16896 q 16897 } 16898 /^X\/\(\/\).*/{ 16899 s//\1/ 16900 q 16901 } 16902 s/.*/./; q'` 16903 16904# Avoid depending upon Character Ranges. 16905as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16906as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16907as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16908as_cr_digits='0123456789' 16909as_cr_alnum=$as_cr_Letters$as_cr_digits 16910 16911ECHO_C= ECHO_N= ECHO_T= 16912case `echo -n x` in #((((( 16913-n*) 16914 case `echo 'xy\c'` in 16915 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 16916 xy) ECHO_C='\c';; 16917 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 16918 ECHO_T=' ';; 16919 esac;; 16920*) 16921 ECHO_N='-n';; 16922esac 16923 16924rm -f conf$$ conf$$.exe conf$$.file 16925if test -d conf$$.dir; then 16926 rm -f conf$$.dir/conf$$.file 16927else 16928 rm -f conf$$.dir 16929 mkdir conf$$.dir 2>/dev/null 16930fi 16931if (echo >conf$$.file) 2>/dev/null; then 16932 if ln -s conf$$.file conf$$ 2>/dev/null; then 16933 as_ln_s='ln -s' 16934 # ... but there are two gotchas: 16935 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 16936 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 16937 # In both cases, we have to default to `cp -pR'. 16938 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 16939 as_ln_s='cp -pR' 16940 elif ln conf$$.file conf$$ 2>/dev/null; then 16941 as_ln_s=ln 16942 else 16943 as_ln_s='cp -pR' 16944 fi 16945else 16946 as_ln_s='cp -pR' 16947fi 16948rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 16949rmdir conf$$.dir 2>/dev/null 16950 16951 16952# as_fn_mkdir_p 16953# ------------- 16954# Create "$as_dir" as a directory, including parents if necessary. 16955as_fn_mkdir_p () 16956{ 16957 16958 case $as_dir in #( 16959 -*) as_dir=./$as_dir;; 16960 esac 16961 test -d "$as_dir" || eval $as_mkdir_p || { 16962 as_dirs= 16963 while :; do 16964 case $as_dir in #( 16965 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 16966 *) as_qdir=$as_dir;; 16967 esac 16968 as_dirs="'$as_qdir' $as_dirs" 16969 as_dir=`$as_dirname -- "$as_dir" || 16970$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16971 X"$as_dir" : 'X\(//\)[^/]' \| \ 16972 X"$as_dir" : 'X\(//\)$' \| \ 16973 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 16974$as_echo X"$as_dir" | 16975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16976 s//\1/ 16977 q 16978 } 16979 /^X\(\/\/\)[^/].*/{ 16980 s//\1/ 16981 q 16982 } 16983 /^X\(\/\/\)$/{ 16984 s//\1/ 16985 q 16986 } 16987 /^X\(\/\).*/{ 16988 s//\1/ 16989 q 16990 } 16991 s/.*/./; q'` 16992 test -d "$as_dir" && break 16993 done 16994 test -z "$as_dirs" || eval "mkdir $as_dirs" 16995 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 16996 16997 16998} # as_fn_mkdir_p 16999if mkdir -p . 2>/dev/null; then 17000 as_mkdir_p='mkdir -p "$as_dir"' 17001else 17002 test -d ./-p && rmdir ./-p 17003 as_mkdir_p=false 17004fi 17005 17006 17007# as_fn_executable_p FILE 17008# ----------------------- 17009# Test if FILE is an executable regular file. 17010as_fn_executable_p () 17011{ 17012 test -f "$1" && test -x "$1" 17013} # as_fn_executable_p 17014as_test_x='test -x' 17015as_executable_p=as_fn_executable_p 17016 17017# Sed expression to map a string onto a valid CPP name. 17018as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17019 17020# Sed expression to map a string onto a valid variable name. 17021as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17022 17023 17024exec 6>&1 17025## ----------------------------------- ## 17026## Main body of $CONFIG_STATUS script. ## 17027## ----------------------------------- ## 17028_ASEOF 17029test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17030 17031cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17032# Save the log message, to keep $0 and so on meaningful, and to 17033# report actual input values of CONFIG_FILES etc. instead of their 17034# values after options handling. 17035ac_log=" 17036This file was extended by libEMF $as_me 1.0.13, which was 17037generated by GNU Autoconf 2.69. Invocation command line was 17038 17039 CONFIG_FILES = $CONFIG_FILES 17040 CONFIG_HEADERS = $CONFIG_HEADERS 17041 CONFIG_LINKS = $CONFIG_LINKS 17042 CONFIG_COMMANDS = $CONFIG_COMMANDS 17043 $ $0 $@ 17044 17045on `(hostname || uname -n) 2>/dev/null | sed 1q` 17046" 17047 17048_ACEOF 17049 17050case $ac_config_files in *" 17051"*) set x $ac_config_files; shift; ac_config_files=$*;; 17052esac 17053 17054case $ac_config_headers in *" 17055"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17056esac 17057 17058 17059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17060# Files that config.status was made for. 17061config_files="$ac_config_files" 17062config_headers="$ac_config_headers" 17063config_commands="$ac_config_commands" 17064 17065_ACEOF 17066 17067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17068ac_cs_usage="\ 17069\`$as_me' instantiates files and other configuration actions 17070from templates according to the current configuration. Unless the files 17071and actions are specified as TAGs, all are instantiated by default. 17072 17073Usage: $0 [OPTION]... [TAG]... 17074 17075 -h, --help print this help, then exit 17076 -V, --version print version number and configuration settings, then exit 17077 --config print configuration, then exit 17078 -q, --quiet, --silent 17079 do not print progress messages 17080 -d, --debug don't remove temporary files 17081 --recheck update $as_me by reconfiguring in the same conditions 17082 --file=FILE[:TEMPLATE] 17083 instantiate the configuration file FILE 17084 --header=FILE[:TEMPLATE] 17085 instantiate the configuration header FILE 17086 17087Configuration files: 17088$config_files 17089 17090Configuration headers: 17091$config_headers 17092 17093Configuration commands: 17094$config_commands 17095 17096Report bugs to <dallenbarnett@users.sourceforge.net>." 17097 17098_ACEOF 17099cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17100ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17101ac_cs_version="\\ 17102libEMF config.status 1.0.13 17103configured by $0, generated by GNU Autoconf 2.69, 17104 with options \\"\$ac_cs_config\\" 17105 17106Copyright (C) 2012 Free Software Foundation, Inc. 17107This config.status script is free software; the Free Software Foundation 17108gives unlimited permission to copy, distribute and modify it." 17109 17110ac_pwd='$ac_pwd' 17111srcdir='$srcdir' 17112INSTALL='$INSTALL' 17113MKDIR_P='$MKDIR_P' 17114AWK='$AWK' 17115test -n "\$AWK" || AWK=awk 17116_ACEOF 17117 17118cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17119# The default lists apply if the user does not specify any file. 17120ac_need_defaults=: 17121while test $# != 0 17122do 17123 case $1 in 17124 --*=?*) 17125 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17126 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17127 ac_shift=: 17128 ;; 17129 --*=) 17130 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17131 ac_optarg= 17132 ac_shift=: 17133 ;; 17134 *) 17135 ac_option=$1 17136 ac_optarg=$2 17137 ac_shift=shift 17138 ;; 17139 esac 17140 17141 case $ac_option in 17142 # Handling of the options. 17143 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17144 ac_cs_recheck=: ;; 17145 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17146 $as_echo "$ac_cs_version"; exit ;; 17147 --config | --confi | --conf | --con | --co | --c ) 17148 $as_echo "$ac_cs_config"; exit ;; 17149 --debug | --debu | --deb | --de | --d | -d ) 17150 debug=: ;; 17151 --file | --fil | --fi | --f ) 17152 $ac_shift 17153 case $ac_optarg in 17154 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17155 '') as_fn_error $? "missing file argument" ;; 17156 esac 17157 as_fn_append CONFIG_FILES " '$ac_optarg'" 17158 ac_need_defaults=false;; 17159 --header | --heade | --head | --hea ) 17160 $ac_shift 17161 case $ac_optarg in 17162 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17163 esac 17164 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17165 ac_need_defaults=false;; 17166 --he | --h) 17167 # Conflict between --help and --header 17168 as_fn_error $? "ambiguous option: \`$1' 17169Try \`$0 --help' for more information.";; 17170 --help | --hel | -h ) 17171 $as_echo "$ac_cs_usage"; exit ;; 17172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17173 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17174 ac_cs_silent=: ;; 17175 17176 # This is an error. 17177 -*) as_fn_error $? "unrecognized option: \`$1' 17178Try \`$0 --help' for more information." ;; 17179 17180 *) as_fn_append ac_config_targets " $1" 17181 ac_need_defaults=false ;; 17182 17183 esac 17184 shift 17185done 17186 17187ac_configure_extra_args= 17188 17189if $ac_cs_silent; then 17190 exec 6>/dev/null 17191 ac_configure_extra_args="$ac_configure_extra_args --silent" 17192fi 17193 17194_ACEOF 17195cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17196if \$ac_cs_recheck; then 17197 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17198 shift 17199 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17200 CONFIG_SHELL='$SHELL' 17201 export CONFIG_SHELL 17202 exec "\$@" 17203fi 17204 17205_ACEOF 17206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17207exec 5>>config.log 17208{ 17209 echo 17210 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17211## Running $as_me. ## 17212_ASBOX 17213 $as_echo "$ac_log" 17214} >&5 17215 17216_ACEOF 17217cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17218# 17219# INIT-COMMANDS 17220# 17221AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17222 17223 17224# The HP-UX ksh and POSIX shell print the target directory to stdout 17225# if CDPATH is set. 17226(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17227 17228sed_quote_subst='$sed_quote_subst' 17229double_quote_subst='$double_quote_subst' 17230delay_variable_subst='$delay_variable_subst' 17231macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17232macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17233enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17234enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17235pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17236enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17237shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 17238SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17239ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17240PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 17241host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17242host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17243host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17244build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17245build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17246build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17247SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17248Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17249GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17250EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17251FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17252LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17253NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17254LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17255max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17256ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17257exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17258lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17259lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17260lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17261lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 17262lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 17263reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17264reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17265OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17266deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17267file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17268file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 17269want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 17270DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 17271sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 17272AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17273AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17274archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 17275STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17276RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17277old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17278old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17279old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17280lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17281CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17282CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17283compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17284GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17285lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17286lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17287lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 17288lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17289lt_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"`' 17290lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 17291nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 17292lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 17293lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 17294objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17295MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17296lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17297lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17298lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17299lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17300lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17301need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17302MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 17303DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17304NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17305LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17306OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17307OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17308libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17309shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17310extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17311archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17312enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17313export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17314whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17315compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17316old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17317old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17318archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17319archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17320module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17321module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17322with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17323allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17324no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17325hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17326hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17327hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17328hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17329hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17330hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17331hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17332inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17333link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17334always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17335export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17336exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17337include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17338prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17339postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 17340file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17341variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17342need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17343need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17344version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17345runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17346shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17347shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17348libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17349library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17350soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17351install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17352postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17353postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17354finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17355finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17356hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17357sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17358configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 17359configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 17360hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17361enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17362enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17363enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17364old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17365striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17366compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 17367predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 17368postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 17369predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 17370postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 17371compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 17372LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 17373reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 17374reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17375old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17376compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 17377GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 17378lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 17379lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 17380lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 17381lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 17382lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 17383archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 17384enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 17385export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17386whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17387compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 17388old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17389old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17390archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17391archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17392module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17393module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17394with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 17395allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17396no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17397hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17398hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 17399hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 17400hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 17401hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 17402hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 17403hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 17404inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 17405link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 17406always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 17407export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17408exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17409include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17410prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17411postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17412file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 17413hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 17414compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 17415predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17416postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17417predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 17418postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 17419compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 17420 17421LTCC='$LTCC' 17422LTCFLAGS='$LTCFLAGS' 17423compiler='$compiler_DEFAULT' 17424 17425# A function that is used when there is no print builtin or printf. 17426func_fallback_echo () 17427{ 17428 eval 'cat <<_LTECHO_EOF 17429\$1 17430_LTECHO_EOF' 17431} 17432 17433# Quote evaled strings. 17434for var in SHELL \ 17435ECHO \ 17436PATH_SEPARATOR \ 17437SED \ 17438GREP \ 17439EGREP \ 17440FGREP \ 17441LD \ 17442NM \ 17443LN_S \ 17444lt_SP2NL \ 17445lt_NL2SP \ 17446reload_flag \ 17447OBJDUMP \ 17448deplibs_check_method \ 17449file_magic_cmd \ 17450file_magic_glob \ 17451want_nocaseglob \ 17452DLLTOOL \ 17453sharedlib_from_linklib_cmd \ 17454AR \ 17455AR_FLAGS \ 17456archiver_list_spec \ 17457STRIP \ 17458RANLIB \ 17459CC \ 17460CFLAGS \ 17461compiler \ 17462lt_cv_sys_global_symbol_pipe \ 17463lt_cv_sys_global_symbol_to_cdecl \ 17464lt_cv_sys_global_symbol_to_import \ 17465lt_cv_sys_global_symbol_to_c_name_address \ 17466lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17467lt_cv_nm_interface \ 17468nm_file_list_spec \ 17469lt_cv_truncate_bin \ 17470lt_prog_compiler_no_builtin_flag \ 17471lt_prog_compiler_pic \ 17472lt_prog_compiler_wl \ 17473lt_prog_compiler_static \ 17474lt_cv_prog_compiler_c_o \ 17475need_locks \ 17476MANIFEST_TOOL \ 17477DSYMUTIL \ 17478NMEDIT \ 17479LIPO \ 17480OTOOL \ 17481OTOOL64 \ 17482shrext_cmds \ 17483export_dynamic_flag_spec \ 17484whole_archive_flag_spec \ 17485compiler_needs_object \ 17486with_gnu_ld \ 17487allow_undefined_flag \ 17488no_undefined_flag \ 17489hardcode_libdir_flag_spec \ 17490hardcode_libdir_separator \ 17491exclude_expsyms \ 17492include_expsyms \ 17493file_list_spec \ 17494variables_saved_for_relink \ 17495libname_spec \ 17496library_names_spec \ 17497soname_spec \ 17498install_override_mode \ 17499finish_eval \ 17500old_striplib \ 17501striplib \ 17502compiler_lib_search_dirs \ 17503predep_objects \ 17504postdep_objects \ 17505predeps \ 17506postdeps \ 17507compiler_lib_search_path \ 17508LD_CXX \ 17509reload_flag_CXX \ 17510compiler_CXX \ 17511lt_prog_compiler_no_builtin_flag_CXX \ 17512lt_prog_compiler_pic_CXX \ 17513lt_prog_compiler_wl_CXX \ 17514lt_prog_compiler_static_CXX \ 17515lt_cv_prog_compiler_c_o_CXX \ 17516export_dynamic_flag_spec_CXX \ 17517whole_archive_flag_spec_CXX \ 17518compiler_needs_object_CXX \ 17519with_gnu_ld_CXX \ 17520allow_undefined_flag_CXX \ 17521no_undefined_flag_CXX \ 17522hardcode_libdir_flag_spec_CXX \ 17523hardcode_libdir_separator_CXX \ 17524exclude_expsyms_CXX \ 17525include_expsyms_CXX \ 17526file_list_spec_CXX \ 17527compiler_lib_search_dirs_CXX \ 17528predep_objects_CXX \ 17529postdep_objects_CXX \ 17530predeps_CXX \ 17531postdeps_CXX \ 17532compiler_lib_search_path_CXX; do 17533 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17534 *[\\\\\\\`\\"\\\$]*) 17535 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17536 ;; 17537 *) 17538 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17539 ;; 17540 esac 17541done 17542 17543# Double-quote double-evaled strings. 17544for var in reload_cmds \ 17545old_postinstall_cmds \ 17546old_postuninstall_cmds \ 17547old_archive_cmds \ 17548extract_expsyms_cmds \ 17549old_archive_from_new_cmds \ 17550old_archive_from_expsyms_cmds \ 17551archive_cmds \ 17552archive_expsym_cmds \ 17553module_cmds \ 17554module_expsym_cmds \ 17555export_symbols_cmds \ 17556prelink_cmds \ 17557postlink_cmds \ 17558postinstall_cmds \ 17559postuninstall_cmds \ 17560finish_cmds \ 17561sys_lib_search_path_spec \ 17562configure_time_dlsearch_path \ 17563configure_time_lt_sys_library_path \ 17564reload_cmds_CXX \ 17565old_archive_cmds_CXX \ 17566old_archive_from_new_cmds_CXX \ 17567old_archive_from_expsyms_cmds_CXX \ 17568archive_cmds_CXX \ 17569archive_expsym_cmds_CXX \ 17570module_cmds_CXX \ 17571module_expsym_cmds_CXX \ 17572export_symbols_cmds_CXX \ 17573prelink_cmds_CXX \ 17574postlink_cmds_CXX; do 17575 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17576 *[\\\\\\\`\\"\\\$]*) 17577 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 17578 ;; 17579 *) 17580 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17581 ;; 17582 esac 17583done 17584 17585ac_aux_dir='$ac_aux_dir' 17586 17587# See if we are running on zsh, and set the options that allow our 17588# commands through without removal of \ escapes INIT. 17589if test -n "\${ZSH_VERSION+set}"; then 17590 setopt NO_GLOB_SUBST 17591fi 17592 17593 17594 PACKAGE='$PACKAGE' 17595 VERSION='$VERSION' 17596 RM='$RM' 17597 ofile='$ofile' 17598 17599 17600 17601 17602 17603 17604_ACEOF 17605 17606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17607 17608# Handling of arguments. 17609for ac_config_target in $ac_config_targets 17610do 17611 case $ac_config_target in 17612 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;; 17613 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17614 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 17615 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17616 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 17617 "libemf/Makefile") CONFIG_FILES="$CONFIG_FILES libemf/Makefile" ;; 17618 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 17619 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 17620 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 17621 17622 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 17623 esac 17624done 17625 17626 17627# If the user did not use the arguments to specify the items to instantiate, 17628# then the envvar interface is used. Set only those that are not. 17629# We use the long form for the default assignment because of an extremely 17630# bizarre bug on SunOS 4.1.3. 17631if $ac_need_defaults; then 17632 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 17633 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 17634 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 17635fi 17636 17637# Have a temporary directory for convenience. Make it in the build tree 17638# simply because there is no reason against having it here, and in addition, 17639# creating and moving files from /tmp can sometimes cause problems. 17640# Hook for its removal unless debugging. 17641# Note that there is a small window in which the directory will not be cleaned: 17642# after its creation but before its name has been assigned to `$tmp'. 17643$debug || 17644{ 17645 tmp= ac_tmp= 17646 trap 'exit_status=$? 17647 : "${ac_tmp:=$tmp}" 17648 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 17649' 0 17650 trap 'as_fn_exit 1' 1 2 13 15 17651} 17652# Create a (secure) tmp directory for tmp files. 17653 17654{ 17655 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 17656 test -d "$tmp" 17657} || 17658{ 17659 tmp=./conf$$-$RANDOM 17660 (umask 077 && mkdir "$tmp") 17661} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 17662ac_tmp=$tmp 17663 17664# Set up the scripts for CONFIG_FILES section. 17665# No need to generate them if there are no CONFIG_FILES. 17666# This happens for instance with `./config.status config.h'. 17667if test -n "$CONFIG_FILES"; then 17668 17669 17670ac_cr=`echo X | tr X '\015'` 17671# On cygwin, bash can eat \r inside `` if the user requested igncr. 17672# But we know of no other shell where ac_cr would be empty at this 17673# point, so we can use a bashism as a fallback. 17674if test "x$ac_cr" = x; then 17675 eval ac_cr=\$\'\\r\' 17676fi 17677ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 17678if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 17679 ac_cs_awk_cr='\\r' 17680else 17681 ac_cs_awk_cr=$ac_cr 17682fi 17683 17684echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 17685_ACEOF 17686 17687 17688{ 17689 echo "cat >conf$$subs.awk <<_ACEOF" && 17690 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 17691 echo "_ACEOF" 17692} >conf$$subs.sh || 17693 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17694ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 17695ac_delim='%!_!# ' 17696for ac_last_try in false false false false false :; do 17697 . ./conf$$subs.sh || 17698 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17699 17700 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 17701 if test $ac_delim_n = $ac_delim_num; then 17702 break 17703 elif $ac_last_try; then 17704 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 17705 else 17706 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17707 fi 17708done 17709rm -f conf$$subs.sh 17710 17711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17712cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 17713_ACEOF 17714sed -n ' 17715h 17716s/^/S["/; s/!.*/"]=/ 17717p 17718g 17719s/^[^!]*!// 17720:repl 17721t repl 17722s/'"$ac_delim"'$// 17723t delim 17724:nl 17725h 17726s/\(.\{148\}\)..*/\1/ 17727t more1 17728s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 17729p 17730n 17731b repl 17732:more1 17733s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17734p 17735g 17736s/.\{148\}// 17737t nl 17738:delim 17739h 17740s/\(.\{148\}\)..*/\1/ 17741t more2 17742s/["\\]/\\&/g; s/^/"/; s/$/"/ 17743p 17744b 17745:more2 17746s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 17747p 17748g 17749s/.\{148\}// 17750t delim 17751' <conf$$subs.awk | sed ' 17752/^[^""]/{ 17753 N 17754 s/\n// 17755} 17756' >>$CONFIG_STATUS || ac_write_fail=1 17757rm -f conf$$subs.awk 17758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17759_ACAWK 17760cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 17761 for (key in S) S_is_set[key] = 1 17762 FS = "" 17763 17764} 17765{ 17766 line = $ 0 17767 nfields = split(line, field, "@") 17768 substed = 0 17769 len = length(field[1]) 17770 for (i = 2; i < nfields; i++) { 17771 key = field[i] 17772 keylen = length(key) 17773 if (S_is_set[key]) { 17774 value = S[key] 17775 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 17776 len += length(value) + length(field[++i]) 17777 substed = 1 17778 } else 17779 len += 1 + keylen 17780 } 17781 17782 print line 17783} 17784 17785_ACAWK 17786_ACEOF 17787cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17788if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 17789 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 17790else 17791 cat 17792fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 17793 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 17794_ACEOF 17795 17796# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 17797# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 17798# trailing colons and then remove the whole line if VPATH becomes empty 17799# (actually we leave an empty line to preserve line numbers). 17800if test "x$srcdir" = x.; then 17801 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 17802h 17803s/// 17804s/^/:/ 17805s/[ ]*$/:/ 17806s/:\$(srcdir):/:/g 17807s/:\${srcdir}:/:/g 17808s/:@srcdir@:/:/g 17809s/^:*// 17810s/:*$// 17811x 17812s/\(=[ ]*\).*/\1/ 17813G 17814s/\n// 17815s/^[^=]*=[ ]*$// 17816}' 17817fi 17818 17819cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17820fi # test -n "$CONFIG_FILES" 17821 17822# Set up the scripts for CONFIG_HEADERS section. 17823# No need to generate them if there are no CONFIG_HEADERS. 17824# This happens for instance with `./config.status Makefile'. 17825if test -n "$CONFIG_HEADERS"; then 17826cat >"$ac_tmp/defines.awk" <<\_ACAWK || 17827BEGIN { 17828_ACEOF 17829 17830# Transform confdefs.h into an awk script `defines.awk', embedded as 17831# here-document in config.status, that substitutes the proper values into 17832# config.h.in to produce config.h. 17833 17834# Create a delimiter string that does not exist in confdefs.h, to ease 17835# handling of long lines. 17836ac_delim='%!_!# ' 17837for ac_last_try in false false :; do 17838 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 17839 if test -z "$ac_tt"; then 17840 break 17841 elif $ac_last_try; then 17842 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 17843 else 17844 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 17845 fi 17846done 17847 17848# For the awk script, D is an array of macro values keyed by name, 17849# likewise P contains macro parameters if any. Preserve backslash 17850# newline sequences. 17851 17852ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 17853sed -n ' 17854s/.\{148\}/&'"$ac_delim"'/g 17855t rset 17856:rset 17857s/^[ ]*#[ ]*define[ ][ ]*/ / 17858t def 17859d 17860:def 17861s/\\$// 17862t bsnl 17863s/["\\]/\\&/g 17864s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17865D["\1"]=" \3"/p 17866s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 17867d 17868:bsnl 17869s/["\\]/\\&/g 17870s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 17871D["\1"]=" \3\\\\\\n"\\/p 17872t cont 17873s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 17874t cont 17875d 17876:cont 17877n 17878s/.\{148\}/&'"$ac_delim"'/g 17879t clear 17880:clear 17881s/\\$// 17882t bsnlc 17883s/["\\]/\\&/g; s/^/"/; s/$/"/p 17884d 17885:bsnlc 17886s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 17887b cont 17888' <confdefs.h | sed ' 17889s/'"$ac_delim"'/"\\\ 17890"/g' >>$CONFIG_STATUS || ac_write_fail=1 17891 17892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17893 for (key in D) D_is_set[key] = 1 17894 FS = "" 17895} 17896/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 17897 line = \$ 0 17898 split(line, arg, " ") 17899 if (arg[1] == "#") { 17900 defundef = arg[2] 17901 mac1 = arg[3] 17902 } else { 17903 defundef = substr(arg[1], 2) 17904 mac1 = arg[2] 17905 } 17906 split(mac1, mac2, "(") #) 17907 macro = mac2[1] 17908 prefix = substr(line, 1, index(line, defundef) - 1) 17909 if (D_is_set[macro]) { 17910 # Preserve the white space surrounding the "#". 17911 print prefix "define", macro P[macro] D[macro] 17912 next 17913 } else { 17914 # Replace #undef with comments. This is necessary, for example, 17915 # in the case of _POSIX_SOURCE, which is predefined and required 17916 # on some systems where configure will not decide to define it. 17917 if (defundef == "undef") { 17918 print "/*", prefix defundef, macro, "*/" 17919 next 17920 } 17921 } 17922} 17923{ print } 17924_ACAWK 17925_ACEOF 17926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17927 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 17928fi # test -n "$CONFIG_HEADERS" 17929 17930 17931eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 17932shift 17933for ac_tag 17934do 17935 case $ac_tag in 17936 :[FHLC]) ac_mode=$ac_tag; continue;; 17937 esac 17938 case $ac_mode$ac_tag in 17939 :[FHL]*:*);; 17940 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 17941 :[FH]-) ac_tag=-:-;; 17942 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 17943 esac 17944 ac_save_IFS=$IFS 17945 IFS=: 17946 set x $ac_tag 17947 IFS=$ac_save_IFS 17948 shift 17949 ac_file=$1 17950 shift 17951 17952 case $ac_mode in 17953 :L) ac_source=$1;; 17954 :[FH]) 17955 ac_file_inputs= 17956 for ac_f 17957 do 17958 case $ac_f in 17959 -) ac_f="$ac_tmp/stdin";; 17960 *) # Look for the file first in the build tree, then in the source tree 17961 # (if the path is not absolute). The absolute path cannot be DOS-style, 17962 # because $ac_f cannot contain `:'. 17963 test -f "$ac_f" || 17964 case $ac_f in 17965 [\\/$]*) false;; 17966 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 17967 esac || 17968 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 17969 esac 17970 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 17971 as_fn_append ac_file_inputs " '$ac_f'" 17972 done 17973 17974 # Let's still pretend it is `configure' which instantiates (i.e., don't 17975 # use $as_me), people would be surprised to read: 17976 # /* config.h. Generated by config.status. */ 17977 configure_input='Generated from '` 17978 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 17979 `' by configure.' 17980 if test x"$ac_file" != x-; then 17981 configure_input="$ac_file. $configure_input" 17982 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 17983$as_echo "$as_me: creating $ac_file" >&6;} 17984 fi 17985 # Neutralize special characters interpreted by sed in replacement strings. 17986 case $configure_input in #( 17987 *\&* | *\|* | *\\* ) 17988 ac_sed_conf_input=`$as_echo "$configure_input" | 17989 sed 's/[\\\\&|]/\\\\&/g'`;; #( 17990 *) ac_sed_conf_input=$configure_input;; 17991 esac 17992 17993 case $ac_tag in 17994 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 17995 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 17996 esac 17997 ;; 17998 esac 17999 18000 ac_dir=`$as_dirname -- "$ac_file" || 18001$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18002 X"$ac_file" : 'X\(//\)[^/]' \| \ 18003 X"$ac_file" : 'X\(//\)$' \| \ 18004 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18005$as_echo X"$ac_file" | 18006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18007 s//\1/ 18008 q 18009 } 18010 /^X\(\/\/\)[^/].*/{ 18011 s//\1/ 18012 q 18013 } 18014 /^X\(\/\/\)$/{ 18015 s//\1/ 18016 q 18017 } 18018 /^X\(\/\).*/{ 18019 s//\1/ 18020 q 18021 } 18022 s/.*/./; q'` 18023 as_dir="$ac_dir"; as_fn_mkdir_p 18024 ac_builddir=. 18025 18026case "$ac_dir" in 18027.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18028*) 18029 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18030 # A ".." for each directory in $ac_dir_suffix. 18031 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18032 case $ac_top_builddir_sub in 18033 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18034 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18035 esac ;; 18036esac 18037ac_abs_top_builddir=$ac_pwd 18038ac_abs_builddir=$ac_pwd$ac_dir_suffix 18039# for backward compatibility: 18040ac_top_builddir=$ac_top_build_prefix 18041 18042case $srcdir in 18043 .) # We are building in place. 18044 ac_srcdir=. 18045 ac_top_srcdir=$ac_top_builddir_sub 18046 ac_abs_top_srcdir=$ac_pwd ;; 18047 [\\/]* | ?:[\\/]* ) # Absolute name. 18048 ac_srcdir=$srcdir$ac_dir_suffix; 18049 ac_top_srcdir=$srcdir 18050 ac_abs_top_srcdir=$srcdir ;; 18051 *) # Relative name. 18052 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18053 ac_top_srcdir=$ac_top_build_prefix$srcdir 18054 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18055esac 18056ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18057 18058 18059 case $ac_mode in 18060 :F) 18061 # 18062 # CONFIG_FILE 18063 # 18064 18065 case $INSTALL in 18066 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18067 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18068 esac 18069 ac_MKDIR_P=$MKDIR_P 18070 case $MKDIR_P in 18071 [\\/$]* | ?:[\\/]* ) ;; 18072 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18073 esac 18074_ACEOF 18075 18076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18077# If the template does not know about datarootdir, expand it. 18078# FIXME: This hack should be removed a few years after 2.60. 18079ac_datarootdir_hack=; ac_datarootdir_seen= 18080ac_sed_dataroot=' 18081/datarootdir/ { 18082 p 18083 q 18084} 18085/@datadir@/p 18086/@docdir@/p 18087/@infodir@/p 18088/@localedir@/p 18089/@mandir@/p' 18090case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18091*datarootdir*) ac_datarootdir_seen=yes;; 18092*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18094$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18095_ACEOF 18096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18097 ac_datarootdir_hack=' 18098 s&@datadir@&$datadir&g 18099 s&@docdir@&$docdir&g 18100 s&@infodir@&$infodir&g 18101 s&@localedir@&$localedir&g 18102 s&@mandir@&$mandir&g 18103 s&\\\${datarootdir}&$datarootdir&g' ;; 18104esac 18105_ACEOF 18106 18107# Neutralize VPATH when `$srcdir' = `.'. 18108# Shell code in configure.ac might set extrasub. 18109# FIXME: do we really want to maintain this feature? 18110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18111ac_sed_extra="$ac_vpsub 18112$extrasub 18113_ACEOF 18114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18115:t 18116/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18117s|@configure_input@|$ac_sed_conf_input|;t t 18118s&@top_builddir@&$ac_top_builddir_sub&;t t 18119s&@top_build_prefix@&$ac_top_build_prefix&;t t 18120s&@srcdir@&$ac_srcdir&;t t 18121s&@abs_srcdir@&$ac_abs_srcdir&;t t 18122s&@top_srcdir@&$ac_top_srcdir&;t t 18123s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18124s&@builddir@&$ac_builddir&;t t 18125s&@abs_builddir@&$ac_abs_builddir&;t t 18126s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18127s&@INSTALL@&$ac_INSTALL&;t t 18128s&@MKDIR_P@&$ac_MKDIR_P&;t t 18129$ac_datarootdir_hack 18130" 18131eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18132 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18133 18134test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18135 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18136 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18137 "$ac_tmp/out"`; test -z "$ac_out"; } && 18138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18139which seems to be undefined. Please make sure it is defined" >&5 18140$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18141which seems to be undefined. Please make sure it is defined" >&2;} 18142 18143 rm -f "$ac_tmp/stdin" 18144 case $ac_file in 18145 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18146 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18147 esac \ 18148 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18149 ;; 18150 :H) 18151 # 18152 # CONFIG_HEADER 18153 # 18154 if test x"$ac_file" != x-; then 18155 { 18156 $as_echo "/* $configure_input */" \ 18157 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18158 } >"$ac_tmp/config.h" \ 18159 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18160 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18161 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18162$as_echo "$as_me: $ac_file is unchanged" >&6;} 18163 else 18164 rm -f "$ac_file" 18165 mv "$ac_tmp/config.h" "$ac_file" \ 18166 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18167 fi 18168 else 18169 $as_echo "/* $configure_input */" \ 18170 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18171 || as_fn_error $? "could not create -" "$LINENO" 5 18172 fi 18173# Compute "$ac_file"'s index in $config_headers. 18174_am_arg="$ac_file" 18175_am_stamp_count=1 18176for _am_header in $config_headers :; do 18177 case $_am_header in 18178 $_am_arg | $_am_arg:* ) 18179 break ;; 18180 * ) 18181 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18182 esac 18183done 18184echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18185$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18186 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18187 X"$_am_arg" : 'X\(//\)$' \| \ 18188 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18189$as_echo X"$_am_arg" | 18190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18191 s//\1/ 18192 q 18193 } 18194 /^X\(\/\/\)[^/].*/{ 18195 s//\1/ 18196 q 18197 } 18198 /^X\(\/\/\)$/{ 18199 s//\1/ 18200 q 18201 } 18202 /^X\(\/\).*/{ 18203 s//\1/ 18204 q 18205 } 18206 s/.*/./; q'`/stamp-h$_am_stamp_count 18207 ;; 18208 18209 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18210$as_echo "$as_me: executing $ac_file commands" >&6;} 18211 ;; 18212 esac 18213 18214 18215 case $ac_file$ac_mode in 18216 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18217 # Older Autoconf quotes --file arguments for eval, but not when files 18218 # are listed without --file. Let's play safe and only enable the eval 18219 # if we detect the quoting. 18220 case $CONFIG_FILES in 18221 *\'*) eval set x "$CONFIG_FILES" ;; 18222 *) set x $CONFIG_FILES ;; 18223 esac 18224 shift 18225 for mf 18226 do 18227 # Strip MF so we end up with the name of the file. 18228 mf=`echo "$mf" | sed -e 's/:.*$//'` 18229 # Check whether this is an Automake generated Makefile or not. 18230 # We used to match only the files named 'Makefile.in', but 18231 # some people rename them; so instead we look at the file content. 18232 # Grep'ing the first line is not enough: some people post-process 18233 # each Makefile.in and add a new line on top of each file to say so. 18234 # Grep'ing the whole file is not good either: AIX grep has a line 18235 # limit of 2048, but all sed's we know have understand at least 4000. 18236 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18237 dirpart=`$as_dirname -- "$mf" || 18238$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18239 X"$mf" : 'X\(//\)[^/]' \| \ 18240 X"$mf" : 'X\(//\)$' \| \ 18241 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18242$as_echo X"$mf" | 18243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18244 s//\1/ 18245 q 18246 } 18247 /^X\(\/\/\)[^/].*/{ 18248 s//\1/ 18249 q 18250 } 18251 /^X\(\/\/\)$/{ 18252 s//\1/ 18253 q 18254 } 18255 /^X\(\/\).*/{ 18256 s//\1/ 18257 q 18258 } 18259 s/.*/./; q'` 18260 else 18261 continue 18262 fi 18263 # Extract the definition of DEPDIR, am__include, and am__quote 18264 # from the Makefile without running 'make'. 18265 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18266 test -z "$DEPDIR" && continue 18267 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18268 test -z "$am__include" && continue 18269 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18270 # Find all dependency output files, they are included files with 18271 # $(DEPDIR) in their names. We invoke sed twice because it is the 18272 # simplest approach to changing $(DEPDIR) to its actual value in the 18273 # expansion. 18274 for file in `sed -n " 18275 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18276 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 18277 # Make sure the directory exists. 18278 test -f "$dirpart/$file" && continue 18279 fdir=`$as_dirname -- "$file" || 18280$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18281 X"$file" : 'X\(//\)[^/]' \| \ 18282 X"$file" : 'X\(//\)$' \| \ 18283 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18284$as_echo X"$file" | 18285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18286 s//\1/ 18287 q 18288 } 18289 /^X\(\/\/\)[^/].*/{ 18290 s//\1/ 18291 q 18292 } 18293 /^X\(\/\/\)$/{ 18294 s//\1/ 18295 q 18296 } 18297 /^X\(\/\).*/{ 18298 s//\1/ 18299 q 18300 } 18301 s/.*/./; q'` 18302 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18303 # echo "creating $dirpart/$file" 18304 echo '# dummy' > "$dirpart/$file" 18305 done 18306 done 18307} 18308 ;; 18309 "libtool":C) 18310 18311 # See if we are running on zsh, and set the options that allow our 18312 # commands through without removal of \ escapes. 18313 if test -n "${ZSH_VERSION+set}"; then 18314 setopt NO_GLOB_SUBST 18315 fi 18316 18317 cfgfile=${ofile}T 18318 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18319 $RM "$cfgfile" 18320 18321 cat <<_LT_EOF >> "$cfgfile" 18322#! $SHELL 18323# Generated automatically by $as_me ($PACKAGE) $VERSION 18324# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18325 18326# Provide generalized library-building support services. 18327# Written by Gordon Matzigkeit, 1996 18328 18329# Copyright (C) 2014 Free Software Foundation, Inc. 18330# This is free software; see the source for copying conditions. There is NO 18331# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 18332 18333# GNU Libtool is free software; you can redistribute it and/or modify 18334# it under the terms of the GNU General Public License as published by 18335# the Free Software Foundation; either version 2 of of the License, or 18336# (at your option) any later version. 18337# 18338# As a special exception to the GNU General Public License, if you 18339# distribute this file as part of a program or library that is built 18340# using GNU Libtool, you may include this file under the same 18341# distribution terms that you use for the rest of that program. 18342# 18343# GNU Libtool is distributed in the hope that it will be useful, but 18344# WITHOUT ANY WARRANTY; without even the implied warranty of 18345# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18346# GNU General Public License for more details. 18347# 18348# You should have received a copy of the GNU General Public License 18349# along with this program. If not, see <http://www.gnu.org/licenses/>. 18350 18351 18352# The names of the tagged configurations supported by this script. 18353available_tags='CXX ' 18354 18355# Configured defaults for sys_lib_dlsearch_path munging. 18356: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 18357 18358# ### BEGIN LIBTOOL CONFIG 18359 18360# Which release of libtool.m4 was used? 18361macro_version=$macro_version 18362macro_revision=$macro_revision 18363 18364# Whether or not to build shared libraries. 18365build_libtool_libs=$enable_shared 18366 18367# Whether or not to build static libraries. 18368build_old_libs=$enable_static 18369 18370# What type of objects to build. 18371pic_mode=$pic_mode 18372 18373# Whether or not to optimize for fast installation. 18374fast_install=$enable_fast_install 18375 18376# Shared archive member basename,for filename based shared library versioning on AIX. 18377shared_archive_member_spec=$shared_archive_member_spec 18378 18379# Shell to use when invoking shell scripts. 18380SHELL=$lt_SHELL 18381 18382# An echo program that protects backslashes. 18383ECHO=$lt_ECHO 18384 18385# The PATH separator for the build system. 18386PATH_SEPARATOR=$lt_PATH_SEPARATOR 18387 18388# The host system. 18389host_alias=$host_alias 18390host=$host 18391host_os=$host_os 18392 18393# The build system. 18394build_alias=$build_alias 18395build=$build 18396build_os=$build_os 18397 18398# A sed program that does not truncate output. 18399SED=$lt_SED 18400 18401# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18402Xsed="\$SED -e 1s/^X//" 18403 18404# A grep program that handles long lines. 18405GREP=$lt_GREP 18406 18407# An ERE matcher. 18408EGREP=$lt_EGREP 18409 18410# A literal string matcher. 18411FGREP=$lt_FGREP 18412 18413# A BSD- or MS-compatible name lister. 18414NM=$lt_NM 18415 18416# Whether we need soft or hard links. 18417LN_S=$lt_LN_S 18418 18419# What is the maximum length of a command? 18420max_cmd_len=$max_cmd_len 18421 18422# Object file suffix (normally "o"). 18423objext=$ac_objext 18424 18425# Executable file suffix (normally ""). 18426exeext=$exeext 18427 18428# whether the shell understands "unset". 18429lt_unset=$lt_unset 18430 18431# turn spaces into newlines. 18432SP2NL=$lt_lt_SP2NL 18433 18434# turn newlines into spaces. 18435NL2SP=$lt_lt_NL2SP 18436 18437# convert \$build file names to \$host format. 18438to_host_file_cmd=$lt_cv_to_host_file_cmd 18439 18440# convert \$build files to toolchain format. 18441to_tool_file_cmd=$lt_cv_to_tool_file_cmd 18442 18443# An object symbol dumper. 18444OBJDUMP=$lt_OBJDUMP 18445 18446# Method to check whether dependent libraries are shared objects. 18447deplibs_check_method=$lt_deplibs_check_method 18448 18449# Command to use when deplibs_check_method = "file_magic". 18450file_magic_cmd=$lt_file_magic_cmd 18451 18452# How to find potential files when deplibs_check_method = "file_magic". 18453file_magic_glob=$lt_file_magic_glob 18454 18455# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 18456want_nocaseglob=$lt_want_nocaseglob 18457 18458# DLL creation program. 18459DLLTOOL=$lt_DLLTOOL 18460 18461# Command to associate shared and link libraries. 18462sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 18463 18464# The archiver. 18465AR=$lt_AR 18466 18467# Flags to create an archive. 18468AR_FLAGS=$lt_AR_FLAGS 18469 18470# How to feed a file listing to the archiver. 18471archiver_list_spec=$lt_archiver_list_spec 18472 18473# A symbol stripping program. 18474STRIP=$lt_STRIP 18475 18476# Commands used to install an old-style archive. 18477RANLIB=$lt_RANLIB 18478old_postinstall_cmds=$lt_old_postinstall_cmds 18479old_postuninstall_cmds=$lt_old_postuninstall_cmds 18480 18481# Whether to use a lock for old archive extraction. 18482lock_old_archive_extraction=$lock_old_archive_extraction 18483 18484# A C compiler. 18485LTCC=$lt_CC 18486 18487# LTCC compiler flags. 18488LTCFLAGS=$lt_CFLAGS 18489 18490# Take the output of nm and produce a listing of raw symbols and C names. 18491global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18492 18493# Transform the output of nm in a proper C declaration. 18494global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18495 18496# Transform the output of nm into a list of symbols to manually relocate. 18497global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 18498 18499# Transform the output of nm in a C name address pair. 18500global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18501 18502# Transform the output of nm in a C name address pair when lib prefix is needed. 18503global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18504 18505# The name lister interface. 18506nm_interface=$lt_lt_cv_nm_interface 18507 18508# Specify filename containing input files for \$NM. 18509nm_file_list_spec=$lt_nm_file_list_spec 18510 18511# The root where to search for dependent libraries,and where our libraries should be installed. 18512lt_sysroot=$lt_sysroot 18513 18514# Command to truncate a binary pipe. 18515lt_truncate_bin=$lt_lt_cv_truncate_bin 18516 18517# The name of the directory that contains temporary libtool files. 18518objdir=$objdir 18519 18520# Used to examine libraries when file_magic_cmd begins with "file". 18521MAGIC_CMD=$MAGIC_CMD 18522 18523# Must we lock files when doing compilation? 18524need_locks=$lt_need_locks 18525 18526# Manifest tool. 18527MANIFEST_TOOL=$lt_MANIFEST_TOOL 18528 18529# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18530DSYMUTIL=$lt_DSYMUTIL 18531 18532# Tool to change global to local symbols on Mac OS X. 18533NMEDIT=$lt_NMEDIT 18534 18535# Tool to manipulate fat objects and archives on Mac OS X. 18536LIPO=$lt_LIPO 18537 18538# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18539OTOOL=$lt_OTOOL 18540 18541# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18542OTOOL64=$lt_OTOOL64 18543 18544# Old archive suffix (normally "a"). 18545libext=$libext 18546 18547# Shared library suffix (normally ".so"). 18548shrext_cmds=$lt_shrext_cmds 18549 18550# The commands to extract the exported symbol list from a shared archive. 18551extract_expsyms_cmds=$lt_extract_expsyms_cmds 18552 18553# Variables whose values should be saved in libtool wrapper scripts and 18554# restored at link time. 18555variables_saved_for_relink=$lt_variables_saved_for_relink 18556 18557# Do we need the "lib" prefix for modules? 18558need_lib_prefix=$need_lib_prefix 18559 18560# Do we need a version for libraries? 18561need_version=$need_version 18562 18563# Library versioning type. 18564version_type=$version_type 18565 18566# Shared library runtime path variable. 18567runpath_var=$runpath_var 18568 18569# Shared library path variable. 18570shlibpath_var=$shlibpath_var 18571 18572# Is shlibpath searched before the hard-coded library search path? 18573shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18574 18575# Format of library name prefix. 18576libname_spec=$lt_libname_spec 18577 18578# List of archive names. First name is the real one, the rest are links. 18579# The last name is the one that the linker finds with -lNAME 18580library_names_spec=$lt_library_names_spec 18581 18582# The coded name of the library, if different from the real name. 18583soname_spec=$lt_soname_spec 18584 18585# Permission mode override for installation of shared libraries. 18586install_override_mode=$lt_install_override_mode 18587 18588# Command to use after installation of a shared archive. 18589postinstall_cmds=$lt_postinstall_cmds 18590 18591# Command to use after uninstallation of a shared archive. 18592postuninstall_cmds=$lt_postuninstall_cmds 18593 18594# Commands used to finish a libtool library installation in a directory. 18595finish_cmds=$lt_finish_cmds 18596 18597# As "finish_cmds", except a single script fragment to be evaled but 18598# not shown. 18599finish_eval=$lt_finish_eval 18600 18601# Whether we should hardcode library paths into libraries. 18602hardcode_into_libs=$hardcode_into_libs 18603 18604# Compile-time system search path for libraries. 18605sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18606 18607# Detected run-time system search path for libraries. 18608sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 18609 18610# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 18611configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 18612 18613# Whether dlopen is supported. 18614dlopen_support=$enable_dlopen 18615 18616# Whether dlopen of programs is supported. 18617dlopen_self=$enable_dlopen_self 18618 18619# Whether dlopen of statically linked programs is supported. 18620dlopen_self_static=$enable_dlopen_self_static 18621 18622# Commands to strip libraries. 18623old_striplib=$lt_old_striplib 18624striplib=$lt_striplib 18625 18626 18627# The linker used to build libraries. 18628LD=$lt_LD 18629 18630# How to create reloadable object files. 18631reload_flag=$lt_reload_flag 18632reload_cmds=$lt_reload_cmds 18633 18634# Commands used to build an old-style archive. 18635old_archive_cmds=$lt_old_archive_cmds 18636 18637# A language specific compiler. 18638CC=$lt_compiler 18639 18640# Is the compiler the GNU compiler? 18641with_gcc=$GCC 18642 18643# Compiler flag to turn off builtin functions. 18644no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 18645 18646# Additional compiler flags for building library objects. 18647pic_flag=$lt_lt_prog_compiler_pic 18648 18649# How to pass a linker flag through the compiler. 18650wl=$lt_lt_prog_compiler_wl 18651 18652# Compiler flag to prevent dynamic linking. 18653link_static_flag=$lt_lt_prog_compiler_static 18654 18655# Does compiler simultaneously support -c and -o options? 18656compiler_c_o=$lt_lt_cv_prog_compiler_c_o 18657 18658# Whether or not to add -lc for building shared libraries. 18659build_libtool_need_lc=$archive_cmds_need_lc 18660 18661# Whether or not to disallow shared libs when runtime libs are static. 18662allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 18663 18664# Compiler flag to allow reflexive dlopens. 18665export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 18666 18667# Compiler flag to generate shared objects directly from archives. 18668whole_archive_flag_spec=$lt_whole_archive_flag_spec 18669 18670# Whether the compiler copes with passing no objects directly. 18671compiler_needs_object=$lt_compiler_needs_object 18672 18673# Create an old-style archive from a shared archive. 18674old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 18675 18676# Create a temporary old-style archive to link instead of a shared archive. 18677old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 18678 18679# Commands used to build a shared archive. 18680archive_cmds=$lt_archive_cmds 18681archive_expsym_cmds=$lt_archive_expsym_cmds 18682 18683# Commands used to build a loadable module if different from building 18684# a shared archive. 18685module_cmds=$lt_module_cmds 18686module_expsym_cmds=$lt_module_expsym_cmds 18687 18688# Whether we are building with GNU ld or not. 18689with_gnu_ld=$lt_with_gnu_ld 18690 18691# Flag that allows shared libraries with undefined symbols to be built. 18692allow_undefined_flag=$lt_allow_undefined_flag 18693 18694# Flag that enforces no undefined symbols. 18695no_undefined_flag=$lt_no_undefined_flag 18696 18697# Flag to hardcode \$libdir into a binary during linking. 18698# This must work even if \$libdir does not exist 18699hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 18700 18701# Whether we need a single "-rpath" flag with a separated argument. 18702hardcode_libdir_separator=$lt_hardcode_libdir_separator 18703 18704# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18705# DIR into the resulting binary. 18706hardcode_direct=$hardcode_direct 18707 18708# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18709# DIR into the resulting binary and the resulting library dependency is 18710# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18711# library is relocated. 18712hardcode_direct_absolute=$hardcode_direct_absolute 18713 18714# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18715# into the resulting binary. 18716hardcode_minus_L=$hardcode_minus_L 18717 18718# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18719# into the resulting binary. 18720hardcode_shlibpath_var=$hardcode_shlibpath_var 18721 18722# Set to "yes" if building a shared library automatically hardcodes DIR 18723# into the library and all subsequent libraries and executables linked 18724# against it. 18725hardcode_automatic=$hardcode_automatic 18726 18727# Set to yes if linker adds runtime paths of dependent libraries 18728# to runtime path list. 18729inherit_rpath=$inherit_rpath 18730 18731# Whether libtool must link a program against all its dependency libraries. 18732link_all_deplibs=$link_all_deplibs 18733 18734# Set to "yes" if exported symbols are required. 18735always_export_symbols=$always_export_symbols 18736 18737# The commands to list exported symbols. 18738export_symbols_cmds=$lt_export_symbols_cmds 18739 18740# Symbols that should not be listed in the preloaded symbols. 18741exclude_expsyms=$lt_exclude_expsyms 18742 18743# Symbols that must always be exported. 18744include_expsyms=$lt_include_expsyms 18745 18746# Commands necessary for linking programs (against libraries) with templates. 18747prelink_cmds=$lt_prelink_cmds 18748 18749# Commands necessary for finishing linking programs. 18750postlink_cmds=$lt_postlink_cmds 18751 18752# Specify filename containing input files. 18753file_list_spec=$lt_file_list_spec 18754 18755# How to hardcode a shared library path into an executable. 18756hardcode_action=$hardcode_action 18757 18758# The directories searched by this compiler when creating a shared library. 18759compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 18760 18761# Dependencies to place before and after the objects being linked to 18762# create a shared library. 18763predep_objects=$lt_predep_objects 18764postdep_objects=$lt_postdep_objects 18765predeps=$lt_predeps 18766postdeps=$lt_postdeps 18767 18768# The library search path used internally by the compiler when linking 18769# a shared library. 18770compiler_lib_search_path=$lt_compiler_lib_search_path 18771 18772# ### END LIBTOOL CONFIG 18773 18774_LT_EOF 18775 18776 cat <<'_LT_EOF' >> "$cfgfile" 18777 18778# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 18779 18780# func_munge_path_list VARIABLE PATH 18781# ----------------------------------- 18782# VARIABLE is name of variable containing _space_ separated list of 18783# directories to be munged by the contents of PATH, which is string 18784# having a format: 18785# "DIR[:DIR]:" 18786# string "DIR[ DIR]" will be prepended to VARIABLE 18787# ":DIR[:DIR]" 18788# string "DIR[ DIR]" will be appended to VARIABLE 18789# "DIRP[:DIRP]::[DIRA:]DIRA" 18790# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 18791# "DIRA[ DIRA]" will be appended to VARIABLE 18792# "DIR[:DIR]" 18793# VARIABLE will be replaced by "DIR[ DIR]" 18794func_munge_path_list () 18795{ 18796 case x$2 in 18797 x) 18798 ;; 18799 *:) 18800 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 18801 ;; 18802 x:*) 18803 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 18804 ;; 18805 *::*) 18806 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 18807 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 18808 ;; 18809 *) 18810 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 18811 ;; 18812 esac 18813} 18814 18815 18816# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 18817func_cc_basename () 18818{ 18819 for cc_temp in $*""; do 18820 case $cc_temp in 18821 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18822 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18823 \-*) ;; 18824 *) break;; 18825 esac 18826 done 18827 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18828} 18829 18830 18831# ### END FUNCTIONS SHARED WITH CONFIGURE 18832 18833_LT_EOF 18834 18835 case $host_os in 18836 aix3*) 18837 cat <<\_LT_EOF >> "$cfgfile" 18838# AIX sometimes has problems with the GCC collect2 program. For some 18839# reason, if we set the COLLECT_NAMES environment variable, the problems 18840# vanish in a puff of smoke. 18841if test set != "${COLLECT_NAMES+set}"; then 18842 COLLECT_NAMES= 18843 export COLLECT_NAMES 18844fi 18845_LT_EOF 18846 ;; 18847 esac 18848 18849 18850ltmain=$ac_aux_dir/ltmain.sh 18851 18852 18853 # We use sed instead of cat because bash on DJGPP gets confused if 18854 # if finds mixed CR/LF and LF-only lines. Since sed operates in 18855 # text mode, it properly converts lines to CR/LF. This bash problem 18856 # is reportedly fixed, but why not run on old versions too? 18857 sed '$q' "$ltmain" >> "$cfgfile" \ 18858 || (rm -f "$cfgfile"; exit 1) 18859 18860 mv -f "$cfgfile" "$ofile" || 18861 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 18862 chmod +x "$ofile" 18863 18864 18865 cat <<_LT_EOF >> "$ofile" 18866 18867# ### BEGIN LIBTOOL TAG CONFIG: CXX 18868 18869# The linker used to build libraries. 18870LD=$lt_LD_CXX 18871 18872# How to create reloadable object files. 18873reload_flag=$lt_reload_flag_CXX 18874reload_cmds=$lt_reload_cmds_CXX 18875 18876# Commands used to build an old-style archive. 18877old_archive_cmds=$lt_old_archive_cmds_CXX 18878 18879# A language specific compiler. 18880CC=$lt_compiler_CXX 18881 18882# Is the compiler the GNU compiler? 18883with_gcc=$GCC_CXX 18884 18885# Compiler flag to turn off builtin functions. 18886no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 18887 18888# Additional compiler flags for building library objects. 18889pic_flag=$lt_lt_prog_compiler_pic_CXX 18890 18891# How to pass a linker flag through the compiler. 18892wl=$lt_lt_prog_compiler_wl_CXX 18893 18894# Compiler flag to prevent dynamic linking. 18895link_static_flag=$lt_lt_prog_compiler_static_CXX 18896 18897# Does compiler simultaneously support -c and -o options? 18898compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 18899 18900# Whether or not to add -lc for building shared libraries. 18901build_libtool_need_lc=$archive_cmds_need_lc_CXX 18902 18903# Whether or not to disallow shared libs when runtime libs are static. 18904allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 18905 18906# Compiler flag to allow reflexive dlopens. 18907export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 18908 18909# Compiler flag to generate shared objects directly from archives. 18910whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 18911 18912# Whether the compiler copes with passing no objects directly. 18913compiler_needs_object=$lt_compiler_needs_object_CXX 18914 18915# Create an old-style archive from a shared archive. 18916old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 18917 18918# Create a temporary old-style archive to link instead of a shared archive. 18919old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 18920 18921# Commands used to build a shared archive. 18922archive_cmds=$lt_archive_cmds_CXX 18923archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 18924 18925# Commands used to build a loadable module if different from building 18926# a shared archive. 18927module_cmds=$lt_module_cmds_CXX 18928module_expsym_cmds=$lt_module_expsym_cmds_CXX 18929 18930# Whether we are building with GNU ld or not. 18931with_gnu_ld=$lt_with_gnu_ld_CXX 18932 18933# Flag that allows shared libraries with undefined symbols to be built. 18934allow_undefined_flag=$lt_allow_undefined_flag_CXX 18935 18936# Flag that enforces no undefined symbols. 18937no_undefined_flag=$lt_no_undefined_flag_CXX 18938 18939# Flag to hardcode \$libdir into a binary during linking. 18940# This must work even if \$libdir does not exist 18941hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 18942 18943# Whether we need a single "-rpath" flag with a separated argument. 18944hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 18945 18946# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18947# DIR into the resulting binary. 18948hardcode_direct=$hardcode_direct_CXX 18949 18950# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 18951# DIR into the resulting binary and the resulting library dependency is 18952# "absolute",i.e impossible to change by setting \$shlibpath_var if the 18953# library is relocated. 18954hardcode_direct_absolute=$hardcode_direct_absolute_CXX 18955 18956# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 18957# into the resulting binary. 18958hardcode_minus_L=$hardcode_minus_L_CXX 18959 18960# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 18961# into the resulting binary. 18962hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 18963 18964# Set to "yes" if building a shared library automatically hardcodes DIR 18965# into the library and all subsequent libraries and executables linked 18966# against it. 18967hardcode_automatic=$hardcode_automatic_CXX 18968 18969# Set to yes if linker adds runtime paths of dependent libraries 18970# to runtime path list. 18971inherit_rpath=$inherit_rpath_CXX 18972 18973# Whether libtool must link a program against all its dependency libraries. 18974link_all_deplibs=$link_all_deplibs_CXX 18975 18976# Set to "yes" if exported symbols are required. 18977always_export_symbols=$always_export_symbols_CXX 18978 18979# The commands to list exported symbols. 18980export_symbols_cmds=$lt_export_symbols_cmds_CXX 18981 18982# Symbols that should not be listed in the preloaded symbols. 18983exclude_expsyms=$lt_exclude_expsyms_CXX 18984 18985# Symbols that must always be exported. 18986include_expsyms=$lt_include_expsyms_CXX 18987 18988# Commands necessary for linking programs (against libraries) with templates. 18989prelink_cmds=$lt_prelink_cmds_CXX 18990 18991# Commands necessary for finishing linking programs. 18992postlink_cmds=$lt_postlink_cmds_CXX 18993 18994# Specify filename containing input files. 18995file_list_spec=$lt_file_list_spec_CXX 18996 18997# How to hardcode a shared library path into an executable. 18998hardcode_action=$hardcode_action_CXX 18999 19000# The directories searched by this compiler when creating a shared library. 19001compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 19002 19003# Dependencies to place before and after the objects being linked to 19004# create a shared library. 19005predep_objects=$lt_predep_objects_CXX 19006postdep_objects=$lt_postdep_objects_CXX 19007predeps=$lt_predeps_CXX 19008postdeps=$lt_postdeps_CXX 19009 19010# The library search path used internally by the compiler when linking 19011# a shared library. 19012compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 19013 19014# ### END LIBTOOL TAG CONFIG: CXX 19015_LT_EOF 19016 19017 ;; 19018 19019 esac 19020done # for ac_tag 19021 19022 19023as_fn_exit 0 19024_ACEOF 19025ac_clean_files=$ac_clean_files_save 19026 19027test $ac_write_fail = 0 || 19028 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19029 19030 19031# configure is writing to config.log, and then calls config.status. 19032# config.status does its own redirection, appending to config.log. 19033# Unfortunately, on DOS this fails, as config.log is still kept open 19034# by configure, so config.status won't be able to write to it; its 19035# output is simply discarded. So we exec the FD to /dev/null, 19036# effectively closing config.log, so it can be properly (re)opened and 19037# appended to by config.status. When coming back to configure, we 19038# need to make the FD available again. 19039if test "$no_create" != yes; then 19040 ac_cs_success=: 19041 ac_config_status_args= 19042 test "$silent" = yes && 19043 ac_config_status_args="$ac_config_status_args --quiet" 19044 exec 5>/dev/null 19045 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19046 exec 5>>config.log 19047 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19048 # would make configure fail if this is the last instruction. 19049 $ac_cs_success || as_fn_exit 1 19050fi 19051if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19053$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19054fi 19055 19056