1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libmodbus 3.1.6. 4# 5# Report bugs to <https://github.com/stephane/libmodbus/issues>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://github.com/stephane/libmodbus/issues about your 279$0: system, 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='libmodbus' 592PACKAGE_TARNAME='libmodbus' 593PACKAGE_VERSION='3.1.6' 594PACKAGE_STRING='libmodbus 3.1.6' 595PACKAGE_BUGREPORT='https://github.com/stephane/libmodbus/issues' 596PACKAGE_URL='http://libmodbus.org/' 597 598ac_unique_file="src/modbus.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639BUILD_TESTS_FALSE 640BUILD_TESTS_TRUE 641my_CFLAGS 642CXXCPP 643am__fastdepCXX_FALSE 644am__fastdepCXX_TRUE 645CXXDEPMODE 646ac_ct_CXX 647CXXFLAGS 648CXX 649BUILD_DOC_FALSE 650BUILD_DOC_TRUE 651ac_libmodbus_have_xmlto 652ac_libmodbus_have_asciidoc 653LT_SYS_LIBRARY_PATH 654OTOOL64 655OTOOL 656LIPO 657NMEDIT 658DSYMUTIL 659MANIFEST_TOOL 660RANLIB 661ac_ct_AR 662AR 663LN_S 664NM 665ac_ct_DUMPBIN 666DUMPBIN 667LD 668FGREP 669SED 670LIBTOOL 671OBJDUMP 672DLLTOOL 673AS 674OS_QNX_FALSE 675OS_QNX_TRUE 676OS_WIN32_FALSE 677OS_WIN32_TRUE 678host_os 679host_vendor 680host_cpu 681host 682build_os 683build_vendor 684build_cpu 685build 686LIBMODBUS_LT_VERSION_INFO 687LIBMODBUS_VERSION 688LIBMODBUS_VERSION_MICRO 689LIBMODBUS_VERSION_MINOR 690LIBMODBUS_VERSION_MAJOR 691EGREP 692GREP 693CPP 694am__fastdepCC_FALSE 695am__fastdepCC_TRUE 696CCDEPMODE 697am__nodep 698AMDEPBACKSLASH 699AMDEP_FALSE 700AMDEP_TRUE 701am__include 702DEPDIR 703OBJEXT 704EXEEXT 705ac_ct_CC 706CPPFLAGS 707LDFLAGS 708CFLAGS 709CC 710AM_BACKSLASH 711AM_DEFAULT_VERBOSITY 712AM_DEFAULT_V 713AM_V 714am__untar 715am__tar 716AMTAR 717am__leading_dot 718SET_MAKE 719AWK 720mkdir_p 721MKDIR_P 722INSTALL_STRIP_PROGRAM 723STRIP 724install_sh 725MAKEINFO 726AUTOHEADER 727AUTOMAKE 728AUTOCONF 729ACLOCAL 730VERSION 731PACKAGE 732CYGPATH_W 733am__isrc 734INSTALL_DATA 735INSTALL_SCRIPT 736INSTALL_PROGRAM 737target_alias 738host_alias 739build_alias 740LIBS 741ECHO_T 742ECHO_N 743ECHO_C 744DEFS 745mandir 746localedir 747libdir 748psdir 749pdfdir 750dvidir 751htmldir 752infodir 753docdir 754oldincludedir 755includedir 756localstatedir 757sharedstatedir 758sysconfdir 759datadir 760datarootdir 761libexecdir 762sbindir 763bindir 764program_transform_name 765prefix 766exec_prefix 767PACKAGE_URL 768PACKAGE_BUGREPORT 769PACKAGE_STRING 770PACKAGE_VERSION 771PACKAGE_TARNAME 772PACKAGE_NAME 773PATH_SEPARATOR 774SHELL 775am__quote' 776ac_subst_files='' 777ac_user_opts=' 778enable_option_checking 779enable_silent_rules 780enable_dependency_tracking 781enable_largefile 782enable_static 783with_pic 784enable_shared 785enable_fast_install 786with_aix_soname 787with_gnu_ld 788with_sysroot 789enable_libtool_lock 790with_documentation 791enable_tests 792' 793 ac_precious_vars='build_alias 794host_alias 795target_alias 796CC 797CFLAGS 798LDFLAGS 799LIBS 800CPPFLAGS 801CPP 802LT_SYS_LIBRARY_PATH 803CXX 804CXXFLAGS 805CCC 806CXXCPP' 807 808 809# Initialize some variables set by options. 810ac_init_help= 811ac_init_version=false 812ac_unrecognized_opts= 813ac_unrecognized_sep= 814# The variables have the same names as the options, with 815# dashes changed to underlines. 816cache_file=/dev/null 817exec_prefix=NONE 818no_create= 819no_recursion= 820prefix=NONE 821program_prefix=NONE 822program_suffix=NONE 823program_transform_name=s,x,x, 824silent= 825site= 826srcdir= 827verbose= 828x_includes=NONE 829x_libraries=NONE 830 831# Installation directory options. 832# These are left unexpanded so users can "make install exec_prefix=/foo" 833# and all the variables that are supposed to be based on exec_prefix 834# by default will actually change. 835# Use braces instead of parens because sh, perl, etc. also accept them. 836# (The list follows the same order as the GNU Coding Standards.) 837bindir='${exec_prefix}/bin' 838sbindir='${exec_prefix}/sbin' 839libexecdir='${exec_prefix}/libexec' 840datarootdir='${prefix}/share' 841datadir='${datarootdir}' 842sysconfdir='${prefix}/etc' 843sharedstatedir='${prefix}/com' 844localstatedir='${prefix}/var' 845includedir='${prefix}/include' 846oldincludedir='/usr/include' 847docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 848infodir='${datarootdir}/info' 849htmldir='${docdir}' 850dvidir='${docdir}' 851pdfdir='${docdir}' 852psdir='${docdir}' 853libdir='${exec_prefix}/lib' 854localedir='${datarootdir}/locale' 855mandir='${datarootdir}/man' 856 857ac_prev= 858ac_dashdash= 859for ac_option 860do 861 # If the previous option needs an argument, assign it. 862 if test -n "$ac_prev"; then 863 eval $ac_prev=\$ac_option 864 ac_prev= 865 continue 866 fi 867 868 case $ac_option in 869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 870 *=) ac_optarg= ;; 871 *) ac_optarg=yes ;; 872 esac 873 874 # Accept the important Cygnus configure options, so we can diagnose typos. 875 876 case $ac_dashdash$ac_option in 877 --) 878 ac_dashdash=yes ;; 879 880 -bindir | --bindir | --bindi | --bind | --bin | --bi) 881 ac_prev=bindir ;; 882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 883 bindir=$ac_optarg ;; 884 885 -build | --build | --buil | --bui | --bu) 886 ac_prev=build_alias ;; 887 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 888 build_alias=$ac_optarg ;; 889 890 -cache-file | --cache-file | --cache-fil | --cache-fi \ 891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 892 ac_prev=cache_file ;; 893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 895 cache_file=$ac_optarg ;; 896 897 --config-cache | -C) 898 cache_file=config.cache ;; 899 900 -datadir | --datadir | --datadi | --datad) 901 ac_prev=datadir ;; 902 -datadir=* | --datadir=* | --datadi=* | --datad=*) 903 datadir=$ac_optarg ;; 904 905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 906 | --dataroo | --dataro | --datar) 907 ac_prev=datarootdir ;; 908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 910 datarootdir=$ac_optarg ;; 911 912 -disable-* | --disable-*) 913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 914 # Reject names that are not valid shell variable names. 915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 916 as_fn_error $? "invalid feature name: $ac_useropt" 917 ac_useropt_orig=$ac_useropt 918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 919 case $ac_user_opts in 920 *" 921"enable_$ac_useropt" 922"*) ;; 923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 924 ac_unrecognized_sep=', ';; 925 esac 926 eval enable_$ac_useropt=no ;; 927 928 -docdir | --docdir | --docdi | --doc | --do) 929 ac_prev=docdir ;; 930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 931 docdir=$ac_optarg ;; 932 933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 934 ac_prev=dvidir ;; 935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 936 dvidir=$ac_optarg ;; 937 938 -enable-* | --enable-*) 939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 940 # Reject names that are not valid shell variable names. 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 942 as_fn_error $? "invalid feature name: $ac_useropt" 943 ac_useropt_orig=$ac_useropt 944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 945 case $ac_user_opts in 946 *" 947"enable_$ac_useropt" 948"*) ;; 949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 950 ac_unrecognized_sep=', ';; 951 esac 952 eval enable_$ac_useropt=\$ac_optarg ;; 953 954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 956 | --exec | --exe | --ex) 957 ac_prev=exec_prefix ;; 958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 960 | --exec=* | --exe=* | --ex=*) 961 exec_prefix=$ac_optarg ;; 962 963 -gas | --gas | --ga | --g) 964 # Obsolete; use --with-gas. 965 with_gas=yes ;; 966 967 -help | --help | --hel | --he | -h) 968 ac_init_help=long ;; 969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 970 ac_init_help=recursive ;; 971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 972 ac_init_help=short ;; 973 974 -host | --host | --hos | --ho) 975 ac_prev=host_alias ;; 976 -host=* | --host=* | --hos=* | --ho=*) 977 host_alias=$ac_optarg ;; 978 979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 980 ac_prev=htmldir ;; 981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 982 | --ht=*) 983 htmldir=$ac_optarg ;; 984 985 -includedir | --includedir | --includedi | --included | --include \ 986 | --includ | --inclu | --incl | --inc) 987 ac_prev=includedir ;; 988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 989 | --includ=* | --inclu=* | --incl=* | --inc=*) 990 includedir=$ac_optarg ;; 991 992 -infodir | --infodir | --infodi | --infod | --info | --inf) 993 ac_prev=infodir ;; 994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 995 infodir=$ac_optarg ;; 996 997 -libdir | --libdir | --libdi | --libd) 998 ac_prev=libdir ;; 999 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1000 libdir=$ac_optarg ;; 1001 1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1003 | --libexe | --libex | --libe) 1004 ac_prev=libexecdir ;; 1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1006 | --libexe=* | --libex=* | --libe=*) 1007 libexecdir=$ac_optarg ;; 1008 1009 -localedir | --localedir | --localedi | --localed | --locale) 1010 ac_prev=localedir ;; 1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1012 localedir=$ac_optarg ;; 1013 1014 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1015 | --localstate | --localstat | --localsta | --localst | --locals) 1016 ac_prev=localstatedir ;; 1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1019 localstatedir=$ac_optarg ;; 1020 1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1022 ac_prev=mandir ;; 1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1024 mandir=$ac_optarg ;; 1025 1026 -nfp | --nfp | --nf) 1027 # Obsolete; use --without-fp. 1028 with_fp=no ;; 1029 1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1031 | --no-cr | --no-c | -n) 1032 no_create=yes ;; 1033 1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1036 no_recursion=yes ;; 1037 1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1040 | --oldin | --oldi | --old | --ol | --o) 1041 ac_prev=oldincludedir ;; 1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1045 oldincludedir=$ac_optarg ;; 1046 1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1048 ac_prev=prefix ;; 1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1050 prefix=$ac_optarg ;; 1051 1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1053 | --program-pre | --program-pr | --program-p) 1054 ac_prev=program_prefix ;; 1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1057 program_prefix=$ac_optarg ;; 1058 1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1060 | --program-suf | --program-su | --program-s) 1061 ac_prev=program_suffix ;; 1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1064 program_suffix=$ac_optarg ;; 1065 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 ac_prev=program_transform_name ;; 1074 -program-transform-name=* | --program-transform-name=* \ 1075 | --program-transform-nam=* | --program-transform-na=* \ 1076 | --program-transform-n=* | --program-transform-=* \ 1077 | --program-transform=* | --program-transfor=* \ 1078 | --program-transfo=* | --program-transf=* \ 1079 | --program-trans=* | --program-tran=* \ 1080 | --progr-tra=* | --program-tr=* | --program-t=*) 1081 program_transform_name=$ac_optarg ;; 1082 1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1084 ac_prev=pdfdir ;; 1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1086 pdfdir=$ac_optarg ;; 1087 1088 -psdir | --psdir | --psdi | --psd | --ps) 1089 ac_prev=psdir ;; 1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1091 psdir=$ac_optarg ;; 1092 1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1094 | -silent | --silent | --silen | --sile | --sil) 1095 silent=yes ;; 1096 1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1098 ac_prev=sbindir ;; 1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1100 | --sbi=* | --sb=*) 1101 sbindir=$ac_optarg ;; 1102 1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1105 | --sharedst | --shareds | --shared | --share | --shar \ 1106 | --sha | --sh) 1107 ac_prev=sharedstatedir ;; 1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1111 | --sha=* | --sh=*) 1112 sharedstatedir=$ac_optarg ;; 1113 1114 -site | --site | --sit) 1115 ac_prev=site ;; 1116 -site=* | --site=* | --sit=*) 1117 site=$ac_optarg ;; 1118 1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1120 ac_prev=srcdir ;; 1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1122 srcdir=$ac_optarg ;; 1123 1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1125 | --syscon | --sysco | --sysc | --sys | --sy) 1126 ac_prev=sysconfdir ;; 1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1129 sysconfdir=$ac_optarg ;; 1130 1131 -target | --target | --targe | --targ | --tar | --ta | --t) 1132 ac_prev=target_alias ;; 1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1134 target_alias=$ac_optarg ;; 1135 1136 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1137 verbose=yes ;; 1138 1139 -version | --version | --versio | --versi | --vers | -V) 1140 ac_init_version=: ;; 1141 1142 -with-* | --with-*) 1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1144 # Reject names that are not valid shell variable names. 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146 as_fn_error $? "invalid package name: $ac_useropt" 1147 ac_useropt_orig=$ac_useropt 1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1149 case $ac_user_opts in 1150 *" 1151"with_$ac_useropt" 1152"*) ;; 1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1154 ac_unrecognized_sep=', ';; 1155 esac 1156 eval with_$ac_useropt=\$ac_optarg ;; 1157 1158 -without-* | --without-*) 1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1160 # Reject names that are not valid shell variable names. 1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1162 as_fn_error $? "invalid package name: $ac_useropt" 1163 ac_useropt_orig=$ac_useropt 1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1165 case $ac_user_opts in 1166 *" 1167"with_$ac_useropt" 1168"*) ;; 1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1170 ac_unrecognized_sep=', ';; 1171 esac 1172 eval with_$ac_useropt=no ;; 1173 1174 --x) 1175 # Obsolete; use --with-x. 1176 with_x=yes ;; 1177 1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1179 | --x-incl | --x-inc | --x-in | --x-i) 1180 ac_prev=x_includes ;; 1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1183 x_includes=$ac_optarg ;; 1184 1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1187 ac_prev=x_libraries ;; 1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1190 x_libraries=$ac_optarg ;; 1191 1192 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1193Try \`$0 --help' for more information" 1194 ;; 1195 1196 *=*) 1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1198 # Reject names that are not valid shell variable names. 1199 case $ac_envvar in #( 1200 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1202 esac 1203 eval $ac_envvar=\$ac_optarg 1204 export $ac_envvar ;; 1205 1206 *) 1207 # FIXME: should be removed in autoconf 3.0. 1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1212 ;; 1213 1214 esac 1215done 1216 1217if test -n "$ac_prev"; then 1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1219 as_fn_error $? "missing argument to $ac_option" 1220fi 1221 1222if test -n "$ac_unrecognized_opts"; then 1223 case $enable_option_checking in 1224 no) ;; 1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1227 esac 1228fi 1229 1230# Check all directory arguments for consistency. 1231for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1232 datadir sysconfdir sharedstatedir localstatedir includedir \ 1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1234 libdir localedir mandir 1235do 1236 eval ac_val=\$$ac_var 1237 # Remove trailing slashes. 1238 case $ac_val in 1239 */ ) 1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1241 eval $ac_var=\$ac_val;; 1242 esac 1243 # Be sure to have absolute directory names. 1244 case $ac_val in 1245 [\\/$]* | ?:[\\/]* ) continue;; 1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1247 esac 1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1249done 1250 1251# There might be people who depend on the old broken behavior: `$host' 1252# used to hold the argument of --host etc. 1253# FIXME: To remove some day. 1254build=$build_alias 1255host=$host_alias 1256target=$target_alias 1257 1258# FIXME: To remove some day. 1259if test "x$host_alias" != x; then 1260 if test "x$build_alias" = x; then 1261 cross_compiling=maybe 1262 elif test "x$build_alias" != "x$host_alias"; then 1263 cross_compiling=yes 1264 fi 1265fi 1266 1267ac_tool_prefix= 1268test -n "$host_alias" && ac_tool_prefix=$host_alias- 1269 1270test "$silent" = yes && exec 6>/dev/null 1271 1272 1273ac_pwd=`pwd` && test -n "$ac_pwd" && 1274ac_ls_di=`ls -di .` && 1275ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1276 as_fn_error $? "working directory cannot be determined" 1277test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1278 as_fn_error $? "pwd does not report name of working directory" 1279 1280 1281# Find the source files, if location was not specified. 1282if test -z "$srcdir"; then 1283 ac_srcdir_defaulted=yes 1284 # Try the directory containing this script, then the parent directory. 1285 ac_confdir=`$as_dirname -- "$as_myself" || 1286$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1287 X"$as_myself" : 'X\(//\)[^/]' \| \ 1288 X"$as_myself" : 'X\(//\)$' \| \ 1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1290$as_echo X"$as_myself" | 1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1292 s//\1/ 1293 q 1294 } 1295 /^X\(\/\/\)[^/].*/{ 1296 s//\1/ 1297 q 1298 } 1299 /^X\(\/\/\)$/{ 1300 s//\1/ 1301 q 1302 } 1303 /^X\(\/\).*/{ 1304 s//\1/ 1305 q 1306 } 1307 s/.*/./; q'` 1308 srcdir=$ac_confdir 1309 if test ! -r "$srcdir/$ac_unique_file"; then 1310 srcdir=.. 1311 fi 1312else 1313 ac_srcdir_defaulted=no 1314fi 1315if test ! -r "$srcdir/$ac_unique_file"; then 1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1318fi 1319ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1320ac_abs_confdir=`( 1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1322 pwd)` 1323# When building in place, set srcdir=. 1324if test "$ac_abs_confdir" = "$ac_pwd"; then 1325 srcdir=. 1326fi 1327# Remove unnecessary trailing slashes from srcdir. 1328# Double slashes in file names in object file debugging info 1329# mess up M-x gdb in Emacs. 1330case $srcdir in 1331*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1332esac 1333for ac_var in $ac_precious_vars; do 1334 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1335 eval ac_env_${ac_var}_value=\$${ac_var} 1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1337 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1338done 1339 1340# 1341# Report the --help message. 1342# 1343if test "$ac_init_help" = "long"; then 1344 # Omit some internal or obsolete options to make the list less imposing. 1345 # This message is too long to be a string in the A/UX 3.1 sh. 1346 cat <<_ACEOF 1347\`configure' configures libmodbus 3.1.6 to adapt to many kinds of systems. 1348 1349Usage: $0 [OPTION]... [VAR=VALUE]... 1350 1351To assign environment variables (e.g., CC, CFLAGS...), specify them as 1352VAR=VALUE. See below for descriptions of some of the useful variables. 1353 1354Defaults for the options are specified in brackets. 1355 1356Configuration: 1357 -h, --help display this help and exit 1358 --help=short display options specific to this package 1359 --help=recursive display the short help of all the included packages 1360 -V, --version display version information and exit 1361 -q, --quiet, --silent do not print \`checking ...' messages 1362 --cache-file=FILE cache test results in FILE [disabled] 1363 -C, --config-cache alias for \`--cache-file=config.cache' 1364 -n, --no-create do not create output files 1365 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1366 1367Installation directories: 1368 --prefix=PREFIX install architecture-independent files in PREFIX 1369 [$ac_default_prefix] 1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1371 [PREFIX] 1372 1373By default, \`make install' will install all the files in 1374\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1375an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1376for instance \`--prefix=\$HOME'. 1377 1378For better control, use the options below. 1379 1380Fine tuning of the installation directories: 1381 --bindir=DIR user executables [EPREFIX/bin] 1382 --sbindir=DIR system admin executables [EPREFIX/sbin] 1383 --libexecdir=DIR program executables [EPREFIX/libexec] 1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1387 --libdir=DIR object code libraries [EPREFIX/lib] 1388 --includedir=DIR C header files [PREFIX/include] 1389 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1392 --infodir=DIR info documentation [DATAROOTDIR/info] 1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1394 --mandir=DIR man documentation [DATAROOTDIR/man] 1395 --docdir=DIR documentation root [DATAROOTDIR/doc/libmodbus] 1396 --htmldir=DIR html documentation [DOCDIR] 1397 --dvidir=DIR dvi documentation [DOCDIR] 1398 --pdfdir=DIR pdf documentation [DOCDIR] 1399 --psdir=DIR ps documentation [DOCDIR] 1400_ACEOF 1401 1402 cat <<\_ACEOF 1403 1404Program names: 1405 --program-prefix=PREFIX prepend PREFIX to installed program names 1406 --program-suffix=SUFFIX append SUFFIX to installed program names 1407 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1408 1409System types: 1410 --build=BUILD configure for building on BUILD [guessed] 1411 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1412_ACEOF 1413fi 1414 1415if test -n "$ac_init_help"; then 1416 case $ac_init_help in 1417 short | recursive ) echo "Configuration of libmodbus 3.1.6:";; 1418 esac 1419 cat <<\_ACEOF 1420 1421Optional Features: 1422 --disable-option-checking ignore unrecognized --enable/--with options 1423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1425 --enable-silent-rules less verbose build output (undo: "make V=1") 1426 --disable-silent-rules verbose build output (undo: "make V=0") 1427 --enable-dependency-tracking 1428 do not reject slow dependency extractors 1429 --disable-dependency-tracking 1430 speeds up one-time build 1431 --disable-largefile omit support for large files 1432 --enable-static[=PKGS] build static libraries [default=no] 1433 --enable-shared[=PKGS] build shared libraries [default=yes] 1434 --enable-fast-install[=PKGS] 1435 optimize for fast installation [default=yes] 1436 --disable-libtool-lock avoid locking (might break parallel builds) 1437 --disable-tests Build tests (default: yes) 1438 1439Optional Packages: 1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1442 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1443 both] 1444 --with-aix-soname=aix|svr4|both 1445 shared library versioning (aka "SONAME") variant to 1446 provide on AIX, [default=aix]. 1447 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1448 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1449 compiler's sysroot if not specified). 1450 --without-documentation disable documentation build even if asciidoc and 1451 xmlto are present [default=no] 1452 1453Some influential environment variables: 1454 CC C compiler command 1455 CFLAGS C compiler flags 1456 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1457 nonstandard directory <lib dir> 1458 LIBS libraries to pass to the linker, e.g. -l<library> 1459 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1460 you have headers in a nonstandard directory <include dir> 1461 CPP C preprocessor 1462 LT_SYS_LIBRARY_PATH 1463 User-defined run-time library search path. 1464 CXX C++ compiler command 1465 CXXFLAGS C++ compiler flags 1466 CXXCPP C++ preprocessor 1467 1468Use these variables to override the choices made by `configure' or to help 1469it to find libraries and programs with nonstandard names/locations. 1470 1471Report bugs to <https://github.com/stephane/libmodbus/issues>. 1472libmodbus home page: <http://libmodbus.org/>. 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 1535libmodbus configure 3.1.6 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_c_try_compile LINENO 1550# -------------------------- 1551# Try to compile conftest.$ac_ext, and return whether this succeeded. 1552ac_fn_c_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_c_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_c_try_compile 1586 1587# ac_fn_c_try_cpp LINENO 1588# ---------------------- 1589# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1590ac_fn_c_try_cpp () 1591{ 1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1593 if { { ac_try="$ac_cpp conftest.$ac_ext" 1594case "(($ac_try" in 1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1596 *) ac_try_echo=$ac_try;; 1597esac 1598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1599$as_echo "$ac_try_echo"; } >&5 1600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1601 ac_status=$? 1602 if test -s conftest.err; then 1603 grep -v '^ *+' conftest.err >conftest.er1 1604 cat conftest.er1 >&5 1605 mv -f conftest.er1 conftest.err 1606 fi 1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1608 test $ac_status = 0; } > conftest.i && { 1609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1610 test ! -s conftest.err 1611 }; then : 1612 ac_retval=0 1613else 1614 $as_echo "$as_me: failed program was:" >&5 1615sed 's/^/| /' conftest.$ac_ext >&5 1616 1617 ac_retval=1 1618fi 1619 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1620 as_fn_set_status $ac_retval 1621 1622} # ac_fn_c_try_cpp 1623 1624# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1625# ------------------------------------------------------- 1626# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1627# the include files in INCLUDES and setting the cache variable VAR 1628# accordingly. 1629ac_fn_c_check_header_mongrel () 1630{ 1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1632 if eval \${$3+:} false; then : 1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1634$as_echo_n "checking for $2... " >&6; } 1635if eval \${$3+:} false; then : 1636 $as_echo_n "(cached) " >&6 1637fi 1638eval ac_res=\$$3 1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1640$as_echo "$ac_res" >&6; } 1641else 1642 # Is the header compilable? 1643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1644$as_echo_n "checking $2 usability... " >&6; } 1645cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1646/* end confdefs.h. */ 1647$4 1648#include <$2> 1649_ACEOF 1650if ac_fn_c_try_compile "$LINENO"; then : 1651 ac_header_compiler=yes 1652else 1653 ac_header_compiler=no 1654fi 1655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1657$as_echo "$ac_header_compiler" >&6; } 1658 1659# Is the header present? 1660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1661$as_echo_n "checking $2 presence... " >&6; } 1662cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1663/* end confdefs.h. */ 1664#include <$2> 1665_ACEOF 1666if ac_fn_c_try_cpp "$LINENO"; then : 1667 ac_header_preproc=yes 1668else 1669 ac_header_preproc=no 1670fi 1671rm -f conftest.err conftest.i conftest.$ac_ext 1672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1673$as_echo "$ac_header_preproc" >&6; } 1674 1675# So? What about this header? 1676case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1677 yes:no: ) 1678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1679$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1681$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1682 ;; 1683 no:yes:* ) 1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1685$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1687$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1689$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1691$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1693$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1694( $as_echo "## ----------------------------------------------------------- ## 1695## Report this to https://github.com/stephane/libmodbus/issues ## 1696## ----------------------------------------------------------- ##" 1697 ) | sed "s/^/$as_me: WARNING: /" >&2 1698 ;; 1699esac 1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1701$as_echo_n "checking for $2... " >&6; } 1702if eval \${$3+:} false; then : 1703 $as_echo_n "(cached) " >&6 1704else 1705 eval "$3=\$ac_header_compiler" 1706fi 1707eval ac_res=\$$3 1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1709$as_echo "$ac_res" >&6; } 1710fi 1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1712 1713} # ac_fn_c_check_header_mongrel 1714 1715# ac_fn_c_try_run LINENO 1716# ---------------------- 1717# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1718# that executables *can* be run. 1719ac_fn_c_try_run () 1720{ 1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1722 if { { ac_try="$ac_link" 1723case "(($ac_try" in 1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1725 *) ac_try_echo=$ac_try;; 1726esac 1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1728$as_echo "$ac_try_echo"; } >&5 1729 (eval "$ac_link") 2>&5 1730 ac_status=$? 1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1732 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1733 { { case "(($ac_try" in 1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1735 *) ac_try_echo=$ac_try;; 1736esac 1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1738$as_echo "$ac_try_echo"; } >&5 1739 (eval "$ac_try") 2>&5 1740 ac_status=$? 1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1742 test $ac_status = 0; }; }; then : 1743 ac_retval=0 1744else 1745 $as_echo "$as_me: program exited with status $ac_status" >&5 1746 $as_echo "$as_me: failed program was:" >&5 1747sed 's/^/| /' conftest.$ac_ext >&5 1748 1749 ac_retval=$ac_status 1750fi 1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1753 as_fn_set_status $ac_retval 1754 1755} # ac_fn_c_try_run 1756 1757# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1758# ------------------------------------------------------- 1759# Tests whether HEADER exists and can be compiled using the include files in 1760# INCLUDES, setting the cache variable VAR accordingly. 1761ac_fn_c_check_header_compile () 1762{ 1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1765$as_echo_n "checking for $2... " >&6; } 1766if eval \${$3+:} false; then : 1767 $as_echo_n "(cached) " >&6 1768else 1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1770/* end confdefs.h. */ 1771$4 1772#include <$2> 1773_ACEOF 1774if ac_fn_c_try_compile "$LINENO"; then : 1775 eval "$3=yes" 1776else 1777 eval "$3=no" 1778fi 1779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1780fi 1781eval ac_res=\$$3 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1783$as_echo "$ac_res" >&6; } 1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1785 1786} # ac_fn_c_check_header_compile 1787 1788# ac_fn_c_try_link LINENO 1789# ----------------------- 1790# Try to link conftest.$ac_ext, and return whether this succeeded. 1791ac_fn_c_try_link () 1792{ 1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1794 rm -f conftest.$ac_objext conftest$ac_exeext 1795 if { { ac_try="$ac_link" 1796case "(($ac_try" in 1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1798 *) ac_try_echo=$ac_try;; 1799esac 1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1801$as_echo "$ac_try_echo"; } >&5 1802 (eval "$ac_link") 2>conftest.err 1803 ac_status=$? 1804 if test -s conftest.err; then 1805 grep -v '^ *+' conftest.err >conftest.er1 1806 cat conftest.er1 >&5 1807 mv -f conftest.er1 conftest.err 1808 fi 1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1810 test $ac_status = 0; } && { 1811 test -z "$ac_c_werror_flag" || 1812 test ! -s conftest.err 1813 } && test -s conftest$ac_exeext && { 1814 test "$cross_compiling" = yes || 1815 test -x conftest$ac_exeext 1816 }; then : 1817 ac_retval=0 1818else 1819 $as_echo "$as_me: failed program was:" >&5 1820sed 's/^/| /' conftest.$ac_ext >&5 1821 1822 ac_retval=1 1823fi 1824 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1825 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1826 # interfere with the next link command; also delete a directory that is 1827 # left behind by Apple's compiler. We do this before executing the actions. 1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1830 as_fn_set_status $ac_retval 1831 1832} # ac_fn_c_try_link 1833 1834# ac_fn_c_check_func LINENO FUNC VAR 1835# ---------------------------------- 1836# Tests whether FUNC exists, setting the cache variable VAR accordingly 1837ac_fn_c_check_func () 1838{ 1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1841$as_echo_n "checking for $2... " >&6; } 1842if eval \${$3+:} false; then : 1843 $as_echo_n "(cached) " >&6 1844else 1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1846/* end confdefs.h. */ 1847/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1848 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1849#define $2 innocuous_$2 1850 1851/* System header to define __stub macros and hopefully few prototypes, 1852 which can conflict with char $2 (); below. 1853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1854 <limits.h> exists even on freestanding compilers. */ 1855 1856#ifdef __STDC__ 1857# include <limits.h> 1858#else 1859# include <assert.h> 1860#endif 1861 1862#undef $2 1863 1864/* Override any GCC internal prototype to avoid an error. 1865 Use char because int might match the return type of a GCC 1866 builtin and then its argument prototype would still apply. */ 1867#ifdef __cplusplus 1868extern "C" 1869#endif 1870char $2 (); 1871/* The GNU C library defines this for functions which it implements 1872 to always fail with ENOSYS. Some functions are actually named 1873 something starting with __ and the normal name is an alias. */ 1874#if defined __stub_$2 || defined __stub___$2 1875choke me 1876#endif 1877 1878int 1879main () 1880{ 1881return $2 (); 1882 ; 1883 return 0; 1884} 1885_ACEOF 1886if ac_fn_c_try_link "$LINENO"; then : 1887 eval "$3=yes" 1888else 1889 eval "$3=no" 1890fi 1891rm -f core conftest.err conftest.$ac_objext \ 1892 conftest$ac_exeext conftest.$ac_ext 1893fi 1894eval ac_res=\$$3 1895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1896$as_echo "$ac_res" >&6; } 1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1898 1899} # ac_fn_c_check_func 1900 1901# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1902# --------------------------------------------- 1903# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1904# accordingly. 1905ac_fn_c_check_decl () 1906{ 1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1908 as_decl_name=`echo $2|sed 's/ *(.*//'` 1909 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1911$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1912if eval \${$3+:} false; then : 1913 $as_echo_n "(cached) " >&6 1914else 1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1916/* end confdefs.h. */ 1917$4 1918int 1919main () 1920{ 1921#ifndef $as_decl_name 1922#ifdef __cplusplus 1923 (void) $as_decl_use; 1924#else 1925 (void) $as_decl_name; 1926#endif 1927#endif 1928 1929 ; 1930 return 0; 1931} 1932_ACEOF 1933if ac_fn_c_try_compile "$LINENO"; then : 1934 eval "$3=yes" 1935else 1936 eval "$3=no" 1937fi 1938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1939fi 1940eval ac_res=\$$3 1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1942$as_echo "$ac_res" >&6; } 1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1944 1945} # ac_fn_c_check_decl 1946 1947# ac_fn_cxx_try_compile LINENO 1948# ---------------------------- 1949# Try to compile conftest.$ac_ext, and return whether this succeeded. 1950ac_fn_cxx_try_compile () 1951{ 1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1953 rm -f conftest.$ac_objext 1954 if { { ac_try="$ac_compile" 1955case "(($ac_try" in 1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1957 *) ac_try_echo=$ac_try;; 1958esac 1959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1960$as_echo "$ac_try_echo"; } >&5 1961 (eval "$ac_compile") 2>conftest.err 1962 ac_status=$? 1963 if test -s conftest.err; then 1964 grep -v '^ *+' conftest.err >conftest.er1 1965 cat conftest.er1 >&5 1966 mv -f conftest.er1 conftest.err 1967 fi 1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1969 test $ac_status = 0; } && { 1970 test -z "$ac_cxx_werror_flag" || 1971 test ! -s conftest.err 1972 } && test -s conftest.$ac_objext; then : 1973 ac_retval=0 1974else 1975 $as_echo "$as_me: failed program was:" >&5 1976sed 's/^/| /' conftest.$ac_ext >&5 1977 1978 ac_retval=1 1979fi 1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1981 as_fn_set_status $ac_retval 1982 1983} # ac_fn_cxx_try_compile 1984 1985# ac_fn_cxx_try_cpp LINENO 1986# ------------------------ 1987# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1988ac_fn_cxx_try_cpp () 1989{ 1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1991 if { { ac_try="$ac_cpp conftest.$ac_ext" 1992case "(($ac_try" in 1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1994 *) ac_try_echo=$ac_try;; 1995esac 1996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1997$as_echo "$ac_try_echo"; } >&5 1998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1999 ac_status=$? 2000 if test -s conftest.err; then 2001 grep -v '^ *+' conftest.err >conftest.er1 2002 cat conftest.er1 >&5 2003 mv -f conftest.er1 conftest.err 2004 fi 2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2006 test $ac_status = 0; } > conftest.i && { 2007 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2008 test ! -s conftest.err 2009 }; then : 2010 ac_retval=0 2011else 2012 $as_echo "$as_me: failed program was:" >&5 2013sed 's/^/| /' conftest.$ac_ext >&5 2014 2015 ac_retval=1 2016fi 2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2018 as_fn_set_status $ac_retval 2019 2020} # ac_fn_cxx_try_cpp 2021 2022# ac_fn_cxx_try_link LINENO 2023# ------------------------- 2024# Try to link conftest.$ac_ext, and return whether this succeeded. 2025ac_fn_cxx_try_link () 2026{ 2027 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2028 rm -f conftest.$ac_objext conftest$ac_exeext 2029 if { { ac_try="$ac_link" 2030case "(($ac_try" in 2031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2032 *) ac_try_echo=$ac_try;; 2033esac 2034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2035$as_echo "$ac_try_echo"; } >&5 2036 (eval "$ac_link") 2>conftest.err 2037 ac_status=$? 2038 if test -s conftest.err; then 2039 grep -v '^ *+' conftest.err >conftest.er1 2040 cat conftest.er1 >&5 2041 mv -f conftest.er1 conftest.err 2042 fi 2043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2044 test $ac_status = 0; } && { 2045 test -z "$ac_cxx_werror_flag" || 2046 test ! -s conftest.err 2047 } && test -s conftest$ac_exeext && { 2048 test "$cross_compiling" = yes || 2049 test -x conftest$ac_exeext 2050 }; then : 2051 ac_retval=0 2052else 2053 $as_echo "$as_me: failed program was:" >&5 2054sed 's/^/| /' conftest.$ac_ext >&5 2055 2056 ac_retval=1 2057fi 2058 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2059 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2060 # interfere with the next link command; also delete a directory that is 2061 # left behind by Apple's compiler. We do this before executing the actions. 2062 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2064 as_fn_set_status $ac_retval 2065 2066} # ac_fn_cxx_try_link 2067 2068# ac_fn_c_find_intX_t LINENO BITS VAR 2069# ----------------------------------- 2070# Finds a signed integer type with width BITS, setting cache variable VAR 2071# accordingly. 2072ac_fn_c_find_intX_t () 2073{ 2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2076$as_echo_n "checking for int$2_t... " >&6; } 2077if eval \${$3+:} false; then : 2078 $as_echo_n "(cached) " >&6 2079else 2080 eval "$3=no" 2081 # Order is important - never check a type that is potentially smaller 2082 # than half of the expected target width. 2083 for ac_type in int$2_t 'int' 'long int' \ 2084 'long long int' 'short int' 'signed char'; do 2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2086/* end confdefs.h. */ 2087$ac_includes_default 2088 enum { N = $2 / 2 - 1 }; 2089int 2090main () 2091{ 2092static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2093test_array [0] = 0; 2094return test_array [0]; 2095 2096 ; 2097 return 0; 2098} 2099_ACEOF 2100if ac_fn_c_try_compile "$LINENO"; then : 2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2102/* end confdefs.h. */ 2103$ac_includes_default 2104 enum { N = $2 / 2 - 1 }; 2105int 2106main () 2107{ 2108static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2109 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2110test_array [0] = 0; 2111return test_array [0]; 2112 2113 ; 2114 return 0; 2115} 2116_ACEOF 2117if ac_fn_c_try_compile "$LINENO"; then : 2118 2119else 2120 case $ac_type in #( 2121 int$2_t) : 2122 eval "$3=yes" ;; #( 2123 *) : 2124 eval "$3=\$ac_type" ;; 2125esac 2126fi 2127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2128fi 2129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2130 if eval test \"x\$"$3"\" = x"no"; then : 2131 2132else 2133 break 2134fi 2135 done 2136fi 2137eval ac_res=\$$3 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2139$as_echo "$ac_res" >&6; } 2140 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2141 2142} # ac_fn_c_find_intX_t 2143 2144# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2145# ------------------------------------------- 2146# Tests whether TYPE exists after having included INCLUDES, setting cache 2147# variable VAR accordingly. 2148ac_fn_c_check_type () 2149{ 2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2152$as_echo_n "checking for $2... " >&6; } 2153if eval \${$3+:} false; then : 2154 $as_echo_n "(cached) " >&6 2155else 2156 eval "$3=no" 2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2158/* end confdefs.h. */ 2159$4 2160int 2161main () 2162{ 2163if (sizeof ($2)) 2164 return 0; 2165 ; 2166 return 0; 2167} 2168_ACEOF 2169if ac_fn_c_try_compile "$LINENO"; then : 2170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2171/* end confdefs.h. */ 2172$4 2173int 2174main () 2175{ 2176if (sizeof (($2))) 2177 return 0; 2178 ; 2179 return 0; 2180} 2181_ACEOF 2182if ac_fn_c_try_compile "$LINENO"; then : 2183 2184else 2185 eval "$3=yes" 2186fi 2187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2188fi 2189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2190fi 2191eval ac_res=\$$3 2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2193$as_echo "$ac_res" >&6; } 2194 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2195 2196} # ac_fn_c_check_type 2197 2198# ac_fn_c_find_uintX_t LINENO BITS VAR 2199# ------------------------------------ 2200# Finds an unsigned integer type with width BITS, setting cache variable VAR 2201# accordingly. 2202ac_fn_c_find_uintX_t () 2203{ 2204 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2206$as_echo_n "checking for uint$2_t... " >&6; } 2207if eval \${$3+:} false; then : 2208 $as_echo_n "(cached) " >&6 2209else 2210 eval "$3=no" 2211 # Order is important - never check a type that is potentially smaller 2212 # than half of the expected target width. 2213 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2214 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2216/* end confdefs.h. */ 2217$ac_includes_default 2218int 2219main () 2220{ 2221static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2222test_array [0] = 0; 2223return test_array [0]; 2224 2225 ; 2226 return 0; 2227} 2228_ACEOF 2229if ac_fn_c_try_compile "$LINENO"; then : 2230 case $ac_type in #( 2231 uint$2_t) : 2232 eval "$3=yes" ;; #( 2233 *) : 2234 eval "$3=\$ac_type" ;; 2235esac 2236fi 2237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2238 if eval test \"x\$"$3"\" = x"no"; then : 2239 2240else 2241 break 2242fi 2243 done 2244fi 2245eval ac_res=\$$3 2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2247$as_echo "$ac_res" >&6; } 2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2249 2250} # ac_fn_c_find_uintX_t 2251cat >config.log <<_ACEOF 2252This file contains any messages produced by compilers while 2253running configure, to aid debugging if configure makes a mistake. 2254 2255It was created by libmodbus $as_me 3.1.6, which was 2256generated by GNU Autoconf 2.69. Invocation command line was 2257 2258 $ $0 $@ 2259 2260_ACEOF 2261exec 5>>config.log 2262{ 2263cat <<_ASUNAME 2264## --------- ## 2265## Platform. ## 2266## --------- ## 2267 2268hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2269uname -m = `(uname -m) 2>/dev/null || echo unknown` 2270uname -r = `(uname -r) 2>/dev/null || echo unknown` 2271uname -s = `(uname -s) 2>/dev/null || echo unknown` 2272uname -v = `(uname -v) 2>/dev/null || echo unknown` 2273 2274/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2275/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2276 2277/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2278/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2279/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2280/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2281/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2282/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2283/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2284 2285_ASUNAME 2286 2287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2288for as_dir in $PATH 2289do 2290 IFS=$as_save_IFS 2291 test -z "$as_dir" && as_dir=. 2292 $as_echo "PATH: $as_dir" 2293 done 2294IFS=$as_save_IFS 2295 2296} >&5 2297 2298cat >&5 <<_ACEOF 2299 2300 2301## ----------- ## 2302## Core tests. ## 2303## ----------- ## 2304 2305_ACEOF 2306 2307 2308# Keep a trace of the command line. 2309# Strip out --no-create and --no-recursion so they do not pile up. 2310# Strip out --silent because we don't want to record it for future runs. 2311# Also quote any args containing shell meta-characters. 2312# Make two passes to allow for proper duplicate-argument suppression. 2313ac_configure_args= 2314ac_configure_args0= 2315ac_configure_args1= 2316ac_must_keep_next=false 2317for ac_pass in 1 2 2318do 2319 for ac_arg 2320 do 2321 case $ac_arg in 2322 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2324 | -silent | --silent | --silen | --sile | --sil) 2325 continue ;; 2326 *\'*) 2327 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2328 esac 2329 case $ac_pass in 2330 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2331 2) 2332 as_fn_append ac_configure_args1 " '$ac_arg'" 2333 if test $ac_must_keep_next = true; then 2334 ac_must_keep_next=false # Got value, back to normal. 2335 else 2336 case $ac_arg in 2337 *=* | --config-cache | -C | -disable-* | --disable-* \ 2338 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2339 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2340 | -with-* | --with-* | -without-* | --without-* | --x) 2341 case "$ac_configure_args0 " in 2342 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2343 esac 2344 ;; 2345 -* ) ac_must_keep_next=true ;; 2346 esac 2347 fi 2348 as_fn_append ac_configure_args " '$ac_arg'" 2349 ;; 2350 esac 2351 done 2352done 2353{ ac_configure_args0=; unset ac_configure_args0;} 2354{ ac_configure_args1=; unset ac_configure_args1;} 2355 2356# When interrupted or exit'd, cleanup temporary files, and complete 2357# config.log. We remove comments because anyway the quotes in there 2358# would cause problems or look ugly. 2359# WARNING: Use '\'' to represent an apostrophe within the trap. 2360# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2361trap 'exit_status=$? 2362 # Save into config.log some information that might help in debugging. 2363 { 2364 echo 2365 2366 $as_echo "## ---------------- ## 2367## Cache variables. ## 2368## ---------------- ##" 2369 echo 2370 # The following way of writing the cache mishandles newlines in values, 2371( 2372 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2373 eval ac_val=\$$ac_var 2374 case $ac_val in #( 2375 *${as_nl}*) 2376 case $ac_var in #( 2377 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2378$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2379 esac 2380 case $ac_var in #( 2381 _ | IFS | as_nl) ;; #( 2382 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2383 *) { eval $ac_var=; unset $ac_var;} ;; 2384 esac ;; 2385 esac 2386 done 2387 (set) 2>&1 | 2388 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2389 *${as_nl}ac_space=\ *) 2390 sed -n \ 2391 "s/'\''/'\''\\\\'\'''\''/g; 2392 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2393 ;; #( 2394 *) 2395 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2396 ;; 2397 esac | 2398 sort 2399) 2400 echo 2401 2402 $as_echo "## ----------------- ## 2403## Output variables. ## 2404## ----------------- ##" 2405 echo 2406 for ac_var in $ac_subst_vars 2407 do 2408 eval ac_val=\$$ac_var 2409 case $ac_val in 2410 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2411 esac 2412 $as_echo "$ac_var='\''$ac_val'\''" 2413 done | sort 2414 echo 2415 2416 if test -n "$ac_subst_files"; then 2417 $as_echo "## ------------------- ## 2418## File substitutions. ## 2419## ------------------- ##" 2420 echo 2421 for ac_var in $ac_subst_files 2422 do 2423 eval ac_val=\$$ac_var 2424 case $ac_val in 2425 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2426 esac 2427 $as_echo "$ac_var='\''$ac_val'\''" 2428 done | sort 2429 echo 2430 fi 2431 2432 if test -s confdefs.h; then 2433 $as_echo "## ----------- ## 2434## confdefs.h. ## 2435## ----------- ##" 2436 echo 2437 cat confdefs.h 2438 echo 2439 fi 2440 test "$ac_signal" != 0 && 2441 $as_echo "$as_me: caught signal $ac_signal" 2442 $as_echo "$as_me: exit $exit_status" 2443 } >&5 2444 rm -f core *.core core.conftest.* && 2445 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2446 exit $exit_status 2447' 0 2448for ac_signal in 1 2 13 15; do 2449 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2450done 2451ac_signal=0 2452 2453# confdefs.h avoids OS command line length limits that DEFS can exceed. 2454rm -f -r conftest* confdefs.h 2455 2456$as_echo "/* confdefs.h */" > confdefs.h 2457 2458# Predefined preprocessor variables. 2459 2460cat >>confdefs.h <<_ACEOF 2461#define PACKAGE_NAME "$PACKAGE_NAME" 2462_ACEOF 2463 2464cat >>confdefs.h <<_ACEOF 2465#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2466_ACEOF 2467 2468cat >>confdefs.h <<_ACEOF 2469#define PACKAGE_VERSION "$PACKAGE_VERSION" 2470_ACEOF 2471 2472cat >>confdefs.h <<_ACEOF 2473#define PACKAGE_STRING "$PACKAGE_STRING" 2474_ACEOF 2475 2476cat >>confdefs.h <<_ACEOF 2477#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2478_ACEOF 2479 2480cat >>confdefs.h <<_ACEOF 2481#define PACKAGE_URL "$PACKAGE_URL" 2482_ACEOF 2483 2484 2485# Let the site file select an alternate cache file if it wants to. 2486# Prefer an explicitly selected file to automatically selected ones. 2487ac_site_file1=NONE 2488ac_site_file2=NONE 2489if test -n "$CONFIG_SITE"; then 2490 # We do not want a PATH search for config.site. 2491 case $CONFIG_SITE in #(( 2492 -*) ac_site_file1=./$CONFIG_SITE;; 2493 */*) ac_site_file1=$CONFIG_SITE;; 2494 *) ac_site_file1=./$CONFIG_SITE;; 2495 esac 2496elif test "x$prefix" != xNONE; then 2497 ac_site_file1=$prefix/share/config.site 2498 ac_site_file2=$prefix/etc/config.site 2499else 2500 ac_site_file1=$ac_default_prefix/share/config.site 2501 ac_site_file2=$ac_default_prefix/etc/config.site 2502fi 2503for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2504do 2505 test "x$ac_site_file" = xNONE && continue 2506 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2507 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2508$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2509 sed 's/^/| /' "$ac_site_file" >&5 2510 . "$ac_site_file" \ 2511 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2513as_fn_error $? "failed to load site script $ac_site_file 2514See \`config.log' for more details" "$LINENO" 5; } 2515 fi 2516done 2517 2518if test -r "$cache_file"; then 2519 # Some versions of bash will fail to source /dev/null (special files 2520 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2521 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2523$as_echo "$as_me: loading cache $cache_file" >&6;} 2524 case $cache_file in 2525 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2526 *) . "./$cache_file";; 2527 esac 2528 fi 2529else 2530 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2531$as_echo "$as_me: creating cache $cache_file" >&6;} 2532 >$cache_file 2533fi 2534 2535# Check that the precious variables saved in the cache have kept the same 2536# value. 2537ac_cache_corrupted=false 2538for ac_var in $ac_precious_vars; do 2539 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2540 eval ac_new_set=\$ac_env_${ac_var}_set 2541 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2542 eval ac_new_val=\$ac_env_${ac_var}_value 2543 case $ac_old_set,$ac_new_set in 2544 set,) 2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2546$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2547 ac_cache_corrupted=: ;; 2548 ,set) 2549 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2550$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2551 ac_cache_corrupted=: ;; 2552 ,);; 2553 *) 2554 if test "x$ac_old_val" != "x$ac_new_val"; then 2555 # differences in whitespace do not lead to failure. 2556 ac_old_val_w=`echo x $ac_old_val` 2557 ac_new_val_w=`echo x $ac_new_val` 2558 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2560$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2561 ac_cache_corrupted=: 2562 else 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2564$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2565 eval $ac_var=\$ac_old_val 2566 fi 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2568$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2569 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2570$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2571 fi;; 2572 esac 2573 # Pass precious variables to config.status. 2574 if test "$ac_new_set" = set; then 2575 case $ac_new_val in 2576 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2577 *) ac_arg=$ac_var=$ac_new_val ;; 2578 esac 2579 case " $ac_configure_args " in 2580 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2581 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2582 esac 2583 fi 2584done 2585if $ac_cache_corrupted; then 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2589$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2590 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2591fi 2592## -------------------- ## 2593## Main body of script. ## 2594## -------------------- ## 2595 2596ac_ext=c 2597ac_cpp='$CPP $CPPFLAGS' 2598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2600ac_compiler_gnu=$ac_cv_c_compiler_gnu 2601 2602 2603 2604ac_aux_dir= 2605for ac_dir in build-aux "$srcdir"/build-aux; do 2606 if test -f "$ac_dir/install-sh"; then 2607 ac_aux_dir=$ac_dir 2608 ac_install_sh="$ac_aux_dir/install-sh -c" 2609 break 2610 elif test -f "$ac_dir/install.sh"; then 2611 ac_aux_dir=$ac_dir 2612 ac_install_sh="$ac_aux_dir/install.sh -c" 2613 break 2614 elif test -f "$ac_dir/shtool"; then 2615 ac_aux_dir=$ac_dir 2616 ac_install_sh="$ac_aux_dir/shtool install -c" 2617 break 2618 fi 2619done 2620if test -z "$ac_aux_dir"; then 2621 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2622fi 2623 2624# These three variables are undocumented and unsupported, 2625# and are intended to be withdrawn in a future Autoconf release. 2626# They can cause serious problems if a builder's source tree is in a directory 2627# whose full name contains unusual characters. 2628ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2629ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2630ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2631 2632 2633am__api_version='1.16' 2634 2635# Find a good install program. We prefer a C program (faster), 2636# so one script is as good as another. But avoid the broken or 2637# incompatible versions: 2638# SysV /etc/install, /usr/sbin/install 2639# SunOS /usr/etc/install 2640# IRIX /sbin/install 2641# AIX /bin/install 2642# AmigaOS /C/install, which installs bootblocks on floppy discs 2643# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2644# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2645# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2646# OS/2's system install, which has a completely different semantic 2647# ./install, which can be erroneously created by make from ./install.sh. 2648# Reject install programs that cannot install multiple files. 2649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2650$as_echo_n "checking for a BSD-compatible install... " >&6; } 2651if test -z "$INSTALL"; then 2652if ${ac_cv_path_install+:} false; then : 2653 $as_echo_n "(cached) " >&6 2654else 2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2656for as_dir in $PATH 2657do 2658 IFS=$as_save_IFS 2659 test -z "$as_dir" && as_dir=. 2660 # Account for people who put trailing slashes in PATH elements. 2661case $as_dir/ in #(( 2662 ./ | .// | /[cC]/* | \ 2663 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2664 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2665 /usr/ucb/* ) ;; 2666 *) 2667 # OSF1 and SCO ODT 3.0 have their own names for install. 2668 # Don't use installbsd from OSF since it installs stuff as root 2669 # by default. 2670 for ac_prog in ginstall scoinst install; do 2671 for ac_exec_ext in '' $ac_executable_extensions; do 2672 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2673 if test $ac_prog = install && 2674 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2675 # AIX install. It has an incompatible calling convention. 2676 : 2677 elif test $ac_prog = install && 2678 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2679 # program-specific install script used by HP pwplus--don't use. 2680 : 2681 else 2682 rm -rf conftest.one conftest.two conftest.dir 2683 echo one > conftest.one 2684 echo two > conftest.two 2685 mkdir conftest.dir 2686 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2687 test -s conftest.one && test -s conftest.two && 2688 test -s conftest.dir/conftest.one && 2689 test -s conftest.dir/conftest.two 2690 then 2691 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2692 break 3 2693 fi 2694 fi 2695 fi 2696 done 2697 done 2698 ;; 2699esac 2700 2701 done 2702IFS=$as_save_IFS 2703 2704rm -rf conftest.one conftest.two conftest.dir 2705 2706fi 2707 if test "${ac_cv_path_install+set}" = set; then 2708 INSTALL=$ac_cv_path_install 2709 else 2710 # As a last resort, use the slow shell script. Don't cache a 2711 # value for INSTALL within a source directory, because that will 2712 # break other packages using the cache if that directory is 2713 # removed, or if the value is a relative name. 2714 INSTALL=$ac_install_sh 2715 fi 2716fi 2717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2718$as_echo "$INSTALL" >&6; } 2719 2720# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2721# It thinks the first close brace ends the variable substitution. 2722test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2723 2724test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2725 2726test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2727 2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2729$as_echo_n "checking whether build environment is sane... " >&6; } 2730# Reject unsafe characters in $srcdir or the absolute working directory 2731# name. Accept space and tab only in the latter. 2732am_lf=' 2733' 2734case `pwd` in 2735 *[\\\"\#\$\&\'\`$am_lf]*) 2736 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2737esac 2738case $srcdir in 2739 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2740 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2741esac 2742 2743# Do 'set' in a subshell so we don't clobber the current shell's 2744# arguments. Must try -L first in case configure is actually a 2745# symlink; some systems play weird games with the mod time of symlinks 2746# (eg FreeBSD returns the mod time of the symlink's containing 2747# directory). 2748if ( 2749 am_has_slept=no 2750 for am_try in 1 2; do 2751 echo "timestamp, slept: $am_has_slept" > conftest.file 2752 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2753 if test "$*" = "X"; then 2754 # -L didn't work. 2755 set X `ls -t "$srcdir/configure" conftest.file` 2756 fi 2757 if test "$*" != "X $srcdir/configure conftest.file" \ 2758 && test "$*" != "X conftest.file $srcdir/configure"; then 2759 2760 # If neither matched, then we have a broken ls. This can happen 2761 # if, for instance, CONFIG_SHELL is bash and it inherits a 2762 # broken ls alias from the environment. This has actually 2763 # happened. Such a system could not be considered "sane". 2764 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2765 alias in your environment" "$LINENO" 5 2766 fi 2767 if test "$2" = conftest.file || test $am_try -eq 2; then 2768 break 2769 fi 2770 # Just in case. 2771 sleep 1 2772 am_has_slept=yes 2773 done 2774 test "$2" = conftest.file 2775 ) 2776then 2777 # Ok. 2778 : 2779else 2780 as_fn_error $? "newly created file is older than distributed files! 2781Check your system clock" "$LINENO" 5 2782fi 2783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2784$as_echo "yes" >&6; } 2785# If we didn't sleep, we still need to ensure time stamps of config.status and 2786# generated files are strictly newer. 2787am_sleep_pid= 2788if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2789 ( sleep 1 ) & 2790 am_sleep_pid=$! 2791fi 2792 2793rm -f conftest.file 2794 2795test "$program_prefix" != NONE && 2796 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2797# Use a double $ so make ignores it. 2798test "$program_suffix" != NONE && 2799 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2800# Double any \ or $. 2801# By default was `s,x,x', remove it if useless. 2802ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2803program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2804 2805# Expand $ac_aux_dir to an absolute path. 2806am_aux_dir=`cd "$ac_aux_dir" && pwd` 2807 2808if test x"${MISSING+set}" != xset; then 2809 case $am_aux_dir in 2810 *\ * | *\ *) 2811 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2812 *) 2813 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2814 esac 2815fi 2816# Use eval to expand $SHELL 2817if eval "$MISSING --is-lightweight"; then 2818 am_missing_run="$MISSING " 2819else 2820 am_missing_run= 2821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2822$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2823fi 2824 2825if test x"${install_sh+set}" != xset; then 2826 case $am_aux_dir in 2827 *\ * | *\ *) 2828 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2829 *) 2830 install_sh="\${SHELL} $am_aux_dir/install-sh" 2831 esac 2832fi 2833 2834# Installed binaries are usually stripped using 'strip' when the user 2835# run "make install-strip". However 'strip' might not be the right 2836# tool to use in cross-compilation environments, therefore Automake 2837# will honor the 'STRIP' environment variable to overrule this program. 2838if test "$cross_compiling" != no; then 2839 if test -n "$ac_tool_prefix"; then 2840 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2841set dummy ${ac_tool_prefix}strip; ac_word=$2 2842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2843$as_echo_n "checking for $ac_word... " >&6; } 2844if ${ac_cv_prog_STRIP+:} false; then : 2845 $as_echo_n "(cached) " >&6 2846else 2847 if test -n "$STRIP"; then 2848 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2849else 2850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2851for as_dir in $PATH 2852do 2853 IFS=$as_save_IFS 2854 test -z "$as_dir" && as_dir=. 2855 for ac_exec_ext in '' $ac_executable_extensions; do 2856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2857 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2859 break 2 2860 fi 2861done 2862 done 2863IFS=$as_save_IFS 2864 2865fi 2866fi 2867STRIP=$ac_cv_prog_STRIP 2868if test -n "$STRIP"; then 2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2870$as_echo "$STRIP" >&6; } 2871else 2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2873$as_echo "no" >&6; } 2874fi 2875 2876 2877fi 2878if test -z "$ac_cv_prog_STRIP"; then 2879 ac_ct_STRIP=$STRIP 2880 # Extract the first word of "strip", so it can be a program name with args. 2881set dummy strip; ac_word=$2 2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2883$as_echo_n "checking for $ac_word... " >&6; } 2884if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2885 $as_echo_n "(cached) " >&6 2886else 2887 if test -n "$ac_ct_STRIP"; then 2888 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2889else 2890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2891for as_dir in $PATH 2892do 2893 IFS=$as_save_IFS 2894 test -z "$as_dir" && as_dir=. 2895 for ac_exec_ext in '' $ac_executable_extensions; do 2896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2897 ac_cv_prog_ac_ct_STRIP="strip" 2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2899 break 2 2900 fi 2901done 2902 done 2903IFS=$as_save_IFS 2904 2905fi 2906fi 2907ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2908if test -n "$ac_ct_STRIP"; then 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2910$as_echo "$ac_ct_STRIP" >&6; } 2911else 2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2913$as_echo "no" >&6; } 2914fi 2915 2916 if test "x$ac_ct_STRIP" = x; then 2917 STRIP=":" 2918 else 2919 case $cross_compiling:$ac_tool_warned in 2920yes:) 2921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2923ac_tool_warned=yes ;; 2924esac 2925 STRIP=$ac_ct_STRIP 2926 fi 2927else 2928 STRIP="$ac_cv_prog_STRIP" 2929fi 2930 2931fi 2932INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2933 2934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2935$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2936if test -z "$MKDIR_P"; then 2937 if ${ac_cv_path_mkdir+:} false; then : 2938 $as_echo_n "(cached) " >&6 2939else 2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2941for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2942do 2943 IFS=$as_save_IFS 2944 test -z "$as_dir" && as_dir=. 2945 for ac_prog in mkdir gmkdir; do 2946 for ac_exec_ext in '' $ac_executable_extensions; do 2947 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2948 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2949 'mkdir (GNU coreutils) '* | \ 2950 'mkdir (coreutils) '* | \ 2951 'mkdir (fileutils) '4.1*) 2952 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2953 break 3;; 2954 esac 2955 done 2956 done 2957 done 2958IFS=$as_save_IFS 2959 2960fi 2961 2962 test -d ./--version && rmdir ./--version 2963 if test "${ac_cv_path_mkdir+set}" = set; then 2964 MKDIR_P="$ac_cv_path_mkdir -p" 2965 else 2966 # As a last resort, use the slow shell script. Don't cache a 2967 # value for MKDIR_P within a source directory, because that will 2968 # break other packages using the cache if that directory is 2969 # removed, or if the value is a relative name. 2970 MKDIR_P="$ac_install_sh -d" 2971 fi 2972fi 2973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2974$as_echo "$MKDIR_P" >&6; } 2975 2976for ac_prog in gawk mawk nawk awk 2977do 2978 # Extract the first word of "$ac_prog", so it can be a program name with args. 2979set dummy $ac_prog; ac_word=$2 2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2981$as_echo_n "checking for $ac_word... " >&6; } 2982if ${ac_cv_prog_AWK+:} false; then : 2983 $as_echo_n "(cached) " >&6 2984else 2985 if test -n "$AWK"; then 2986 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2987else 2988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2989for as_dir in $PATH 2990do 2991 IFS=$as_save_IFS 2992 test -z "$as_dir" && as_dir=. 2993 for ac_exec_ext in '' $ac_executable_extensions; do 2994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2995 ac_cv_prog_AWK="$ac_prog" 2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2997 break 2 2998 fi 2999done 3000 done 3001IFS=$as_save_IFS 3002 3003fi 3004fi 3005AWK=$ac_cv_prog_AWK 3006if test -n "$AWK"; then 3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3008$as_echo "$AWK" >&6; } 3009else 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3011$as_echo "no" >&6; } 3012fi 3013 3014 3015 test -n "$AWK" && break 3016done 3017 3018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3019$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3020set x ${MAKE-make} 3021ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3022if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3023 $as_echo_n "(cached) " >&6 3024else 3025 cat >conftest.make <<\_ACEOF 3026SHELL = /bin/sh 3027all: 3028 @echo '@@@%%%=$(MAKE)=@@@%%%' 3029_ACEOF 3030# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3031case `${MAKE-make} -f conftest.make 2>/dev/null` in 3032 *@@@%%%=?*=@@@%%%*) 3033 eval ac_cv_prog_make_${ac_make}_set=yes;; 3034 *) 3035 eval ac_cv_prog_make_${ac_make}_set=no;; 3036esac 3037rm -f conftest.make 3038fi 3039if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3041$as_echo "yes" >&6; } 3042 SET_MAKE= 3043else 3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3045$as_echo "no" >&6; } 3046 SET_MAKE="MAKE=${MAKE-make}" 3047fi 3048 3049rm -rf .tst 2>/dev/null 3050mkdir .tst 2>/dev/null 3051if test -d .tst; then 3052 am__leading_dot=. 3053else 3054 am__leading_dot=_ 3055fi 3056rmdir .tst 2>/dev/null 3057 3058# Check whether --enable-silent-rules was given. 3059if test "${enable_silent_rules+set}" = set; then : 3060 enableval=$enable_silent_rules; 3061fi 3062 3063case $enable_silent_rules in # ((( 3064 yes) AM_DEFAULT_VERBOSITY=0;; 3065 no) AM_DEFAULT_VERBOSITY=1;; 3066 *) AM_DEFAULT_VERBOSITY=1;; 3067esac 3068am_make=${MAKE-make} 3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3070$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3071if ${am_cv_make_support_nested_variables+:} false; then : 3072 $as_echo_n "(cached) " >&6 3073else 3074 if $as_echo 'TRUE=$(BAR$(V)) 3075BAR0=false 3076BAR1=true 3077V=1 3078am__doit: 3079 @$(TRUE) 3080.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3081 am_cv_make_support_nested_variables=yes 3082else 3083 am_cv_make_support_nested_variables=no 3084fi 3085fi 3086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3087$as_echo "$am_cv_make_support_nested_variables" >&6; } 3088if test $am_cv_make_support_nested_variables = yes; then 3089 AM_V='$(V)' 3090 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3091else 3092 AM_V=$AM_DEFAULT_VERBOSITY 3093 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3094fi 3095AM_BACKSLASH='\' 3096 3097if test "`cd $srcdir && pwd`" != "`pwd`"; then 3098 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3099 # is not polluted with repeated "-I." 3100 am__isrc=' -I$(srcdir)' 3101 # test to see if srcdir already configured 3102 if test -f $srcdir/config.status; then 3103 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3104 fi 3105fi 3106 3107# test whether we have cygpath 3108if test -z "$CYGPATH_W"; then 3109 if (cygpath --version) >/dev/null 2>/dev/null; then 3110 CYGPATH_W='cygpath -w' 3111 else 3112 CYGPATH_W=echo 3113 fi 3114fi 3115 3116 3117# Define the identity of the package. 3118 PACKAGE='libmodbus' 3119 VERSION='3.1.6' 3120 3121 3122cat >>confdefs.h <<_ACEOF 3123#define PACKAGE "$PACKAGE" 3124_ACEOF 3125 3126 3127cat >>confdefs.h <<_ACEOF 3128#define VERSION "$VERSION" 3129_ACEOF 3130 3131# Some tools Automake needs. 3132 3133ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3134 3135 3136AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3137 3138 3139AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3140 3141 3142AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3143 3144 3145MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3146 3147# For better backward compatibility. To be removed once Automake 1.9.x 3148# dies out for good. For more background, see: 3149# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3150# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3151mkdir_p='$(MKDIR_P)' 3152 3153# We need awk for the "check" target (and possibly the TAP driver). The 3154# system "awk" is bad on some platforms. 3155# Always define AMTAR for backward compatibility. Yes, it's still used 3156# in the wild :-( We should find a proper way to deprecate it ... 3157AMTAR='$${TAR-tar}' 3158 3159 3160# We'll loop over all known methods to create a tar archive until one works. 3161_am_tools='gnutar pax cpio none' 3162 3163 3164 3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5 3166$as_echo_n "checking how to create a pax tar archive... " >&6; } 3167 3168 # Go ahead even if we have the value already cached. We do so because we 3169 # need to set the values for the 'am__tar' and 'am__untar' variables. 3170 _am_tools=${am_cv_prog_tar_pax-$_am_tools} 3171 3172 for _am_tool in $_am_tools; do 3173 case $_am_tool in 3174 gnutar) 3175 for _am_tar in tar gnutar gtar; do 3176 { echo "$as_me:$LINENO: $_am_tar --version" >&5 3177 ($_am_tar --version) >&5 2>&5 3178 ac_status=$? 3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3180 (exit $ac_status); } && break 3181 done 3182 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"' 3183 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"' 3184 am__untar="$_am_tar -xf -" 3185 ;; 3186 plaintar) 3187 # Must skip GNU tar: if it does not support --format= it doesn't create 3188 # ustar tarball either. 3189 (tar --version) >/dev/null 2>&1 && continue 3190 am__tar='tar chf - "$$tardir"' 3191 am__tar_='tar chf - "$tardir"' 3192 am__untar='tar xf -' 3193 ;; 3194 pax) 3195 am__tar='pax -L -x pax -w "$$tardir"' 3196 am__tar_='pax -L -x pax -w "$tardir"' 3197 am__untar='pax -r' 3198 ;; 3199 cpio) 3200 am__tar='find "$$tardir" -print | cpio -o -H pax -L' 3201 am__tar_='find "$tardir" -print | cpio -o -H pax -L' 3202 am__untar='cpio -i -H pax -d' 3203 ;; 3204 none) 3205 am__tar=false 3206 am__tar_=false 3207 am__untar=false 3208 ;; 3209 esac 3210 3211 # If the value was cached, stop now. We just wanted to have am__tar 3212 # and am__untar set. 3213 test -n "${am_cv_prog_tar_pax}" && break 3214 3215 # tar/untar a dummy directory, and stop if the command works. 3216 rm -rf conftest.dir 3217 mkdir conftest.dir 3218 echo GrepMe > conftest.dir/file 3219 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 3220 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 3221 ac_status=$? 3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3223 (exit $ac_status); } 3224 rm -rf conftest.dir 3225 if test -s conftest.tar; then 3226 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 3227 ($am__untar <conftest.tar) >&5 2>&5 3228 ac_status=$? 3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3230 (exit $ac_status); } 3231 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5 3232 (cat conftest.dir/file) >&5 2>&5 3233 ac_status=$? 3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3235 (exit $ac_status); } 3236 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 3237 fi 3238 done 3239 rm -rf conftest.dir 3240 3241 if ${am_cv_prog_tar_pax+:} false; then : 3242 $as_echo_n "(cached) " >&6 3243else 3244 am_cv_prog_tar_pax=$_am_tool 3245fi 3246 3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5 3248$as_echo "$am_cv_prog_tar_pax" >&6; } 3249 3250 3251 3252 3253 3254 3255# POSIX will say in a future version that running "rm -f" with no argument 3256# is OK; and we want to be able to make that assumption in our Makefile 3257# recipes. So use an aggressive probe to check that the usage we want is 3258# actually supported "in the wild" to an acceptable degree. 3259# See automake bug#10828. 3260# To make any issue more visible, cause the running configure to be aborted 3261# by default if the 'rm' program in use doesn't match our expectations; the 3262# user can still override this though. 3263if rm -f && rm -fr && rm -rf; then : OK; else 3264 cat >&2 <<'END' 3265Oops! 3266 3267Your 'rm' program seems unable to run without file operands specified 3268on the command line, even when the '-f' option is present. This is contrary 3269to the behaviour of most rm programs out there, and not conforming with 3270the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3271 3272Please tell bug-automake@gnu.org about your system, including the value 3273of your $PATH and any error possibly output before this message. This 3274can help us improve future automake versions. 3275 3276END 3277 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3278 echo 'Configuration will proceed anyway, since you have set the' >&2 3279 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3280 echo >&2 3281 else 3282 cat >&2 <<'END' 3283Aborting the configuration process, to ensure you take notice of the issue. 3284 3285You can download and install GNU coreutils to get an 'rm' implementation 3286that behaves properly: <https://www.gnu.org/software/coreutils/>. 3287 3288If you want to complete the configuration process using your problematic 3289'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3290to "yes", and re-run configure. 3291 3292END 3293 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3294 fi 3295fi 3296 3297DEPDIR="${am__leading_dot}deps" 3298 3299ac_config_commands="$ac_config_commands depfiles" 3300 3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3302$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3303cat > confinc.mk << 'END' 3304am__doit: 3305 @echo this is the am__doit target >confinc.out 3306.PHONY: am__doit 3307END 3308am__include="#" 3309am__quote= 3310# BSD make does it like this. 3311echo '.include "confinc.mk" # ignored' > confmf.BSD 3312# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3313echo 'include confinc.mk # ignored' > confmf.GNU 3314_am_result=no 3315for s in GNU BSD; do 3316 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3317 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3318 ac_status=$? 3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3320 (exit $ac_status); } 3321 case $?:`cat confinc.out 2>/dev/null` in #( 3322 '0:this is the am__doit target') : 3323 case $s in #( 3324 BSD) : 3325 am__include='.include' am__quote='"' ;; #( 3326 *) : 3327 am__include='include' am__quote='' ;; 3328esac ;; #( 3329 *) : 3330 ;; 3331esac 3332 if test "$am__include" != "#"; then 3333 _am_result="yes ($s style)" 3334 break 3335 fi 3336done 3337rm -f confinc.* confmf.* 3338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3339$as_echo "${_am_result}" >&6; } 3340 3341# Check whether --enable-dependency-tracking was given. 3342if test "${enable_dependency_tracking+set}" = set; then : 3343 enableval=$enable_dependency_tracking; 3344fi 3345 3346if test "x$enable_dependency_tracking" != xno; then 3347 am_depcomp="$ac_aux_dir/depcomp" 3348 AMDEPBACKSLASH='\' 3349 am__nodep='_no' 3350fi 3351 if test "x$enable_dependency_tracking" != xno; then 3352 AMDEP_TRUE= 3353 AMDEP_FALSE='#' 3354else 3355 AMDEP_TRUE='#' 3356 AMDEP_FALSE= 3357fi 3358 3359 3360ac_ext=c 3361ac_cpp='$CPP $CPPFLAGS' 3362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3364ac_compiler_gnu=$ac_cv_c_compiler_gnu 3365if test -n "$ac_tool_prefix"; then 3366 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3367set dummy ${ac_tool_prefix}gcc; ac_word=$2 3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3369$as_echo_n "checking for $ac_word... " >&6; } 3370if ${ac_cv_prog_CC+:} false; then : 3371 $as_echo_n "(cached) " >&6 3372else 3373 if test -n "$CC"; then 3374 ac_cv_prog_CC="$CC" # Let the user override the test. 3375else 3376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3377for as_dir in $PATH 3378do 3379 IFS=$as_save_IFS 3380 test -z "$as_dir" && as_dir=. 3381 for ac_exec_ext in '' $ac_executable_extensions; do 3382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3383 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3385 break 2 3386 fi 3387done 3388 done 3389IFS=$as_save_IFS 3390 3391fi 3392fi 3393CC=$ac_cv_prog_CC 3394if test -n "$CC"; then 3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3396$as_echo "$CC" >&6; } 3397else 3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3399$as_echo "no" >&6; } 3400fi 3401 3402 3403fi 3404if test -z "$ac_cv_prog_CC"; then 3405 ac_ct_CC=$CC 3406 # Extract the first word of "gcc", so it can be a program name with args. 3407set dummy gcc; ac_word=$2 3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3409$as_echo_n "checking for $ac_word... " >&6; } 3410if ${ac_cv_prog_ac_ct_CC+:} false; then : 3411 $as_echo_n "(cached) " >&6 3412else 3413 if test -n "$ac_ct_CC"; then 3414 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3415else 3416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3417for as_dir in $PATH 3418do 3419 IFS=$as_save_IFS 3420 test -z "$as_dir" && as_dir=. 3421 for ac_exec_ext in '' $ac_executable_extensions; do 3422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3423 ac_cv_prog_ac_ct_CC="gcc" 3424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3425 break 2 3426 fi 3427done 3428 done 3429IFS=$as_save_IFS 3430 3431fi 3432fi 3433ac_ct_CC=$ac_cv_prog_ac_ct_CC 3434if test -n "$ac_ct_CC"; then 3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3436$as_echo "$ac_ct_CC" >&6; } 3437else 3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3439$as_echo "no" >&6; } 3440fi 3441 3442 if test "x$ac_ct_CC" = x; then 3443 CC="" 3444 else 3445 case $cross_compiling:$ac_tool_warned in 3446yes:) 3447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3449ac_tool_warned=yes ;; 3450esac 3451 CC=$ac_ct_CC 3452 fi 3453else 3454 CC="$ac_cv_prog_CC" 3455fi 3456 3457if test -z "$CC"; then 3458 if test -n "$ac_tool_prefix"; then 3459 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3460set dummy ${ac_tool_prefix}cc; ac_word=$2 3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3462$as_echo_n "checking for $ac_word... " >&6; } 3463if ${ac_cv_prog_CC+:} false; then : 3464 $as_echo_n "(cached) " >&6 3465else 3466 if test -n "$CC"; then 3467 ac_cv_prog_CC="$CC" # Let the user override the test. 3468else 3469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3470for as_dir in $PATH 3471do 3472 IFS=$as_save_IFS 3473 test -z "$as_dir" && as_dir=. 3474 for ac_exec_ext in '' $ac_executable_extensions; do 3475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3476 ac_cv_prog_CC="${ac_tool_prefix}cc" 3477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3478 break 2 3479 fi 3480done 3481 done 3482IFS=$as_save_IFS 3483 3484fi 3485fi 3486CC=$ac_cv_prog_CC 3487if test -n "$CC"; then 3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3489$as_echo "$CC" >&6; } 3490else 3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3492$as_echo "no" >&6; } 3493fi 3494 3495 3496 fi 3497fi 3498if test -z "$CC"; then 3499 # Extract the first word of "cc", so it can be a program name with args. 3500set dummy cc; ac_word=$2 3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3502$as_echo_n "checking for $ac_word... " >&6; } 3503if ${ac_cv_prog_CC+:} false; then : 3504 $as_echo_n "(cached) " >&6 3505else 3506 if test -n "$CC"; then 3507 ac_cv_prog_CC="$CC" # Let the user override the test. 3508else 3509 ac_prog_rejected=no 3510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3511for as_dir in $PATH 3512do 3513 IFS=$as_save_IFS 3514 test -z "$as_dir" && as_dir=. 3515 for ac_exec_ext in '' $ac_executable_extensions; do 3516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3517 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3518 ac_prog_rejected=yes 3519 continue 3520 fi 3521 ac_cv_prog_CC="cc" 3522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3523 break 2 3524 fi 3525done 3526 done 3527IFS=$as_save_IFS 3528 3529if test $ac_prog_rejected = yes; then 3530 # We found a bogon in the path, so make sure we never use it. 3531 set dummy $ac_cv_prog_CC 3532 shift 3533 if test $# != 0; then 3534 # We chose a different compiler from the bogus one. 3535 # However, it has the same basename, so the bogon will be chosen 3536 # first if we set CC to just the basename; use the full file name. 3537 shift 3538 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3539 fi 3540fi 3541fi 3542fi 3543CC=$ac_cv_prog_CC 3544if test -n "$CC"; then 3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3546$as_echo "$CC" >&6; } 3547else 3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3549$as_echo "no" >&6; } 3550fi 3551 3552 3553fi 3554if test -z "$CC"; then 3555 if test -n "$ac_tool_prefix"; then 3556 for ac_prog in cl.exe 3557 do 3558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3559set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3561$as_echo_n "checking for $ac_word... " >&6; } 3562if ${ac_cv_prog_CC+:} false; then : 3563 $as_echo_n "(cached) " >&6 3564else 3565 if test -n "$CC"; then 3566 ac_cv_prog_CC="$CC" # Let the user override the test. 3567else 3568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3569for as_dir in $PATH 3570do 3571 IFS=$as_save_IFS 3572 test -z "$as_dir" && as_dir=. 3573 for ac_exec_ext in '' $ac_executable_extensions; do 3574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3575 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3577 break 2 3578 fi 3579done 3580 done 3581IFS=$as_save_IFS 3582 3583fi 3584fi 3585CC=$ac_cv_prog_CC 3586if test -n "$CC"; then 3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3588$as_echo "$CC" >&6; } 3589else 3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3591$as_echo "no" >&6; } 3592fi 3593 3594 3595 test -n "$CC" && break 3596 done 3597fi 3598if test -z "$CC"; then 3599 ac_ct_CC=$CC 3600 for ac_prog in cl.exe 3601do 3602 # Extract the first word of "$ac_prog", so it can be a program name with args. 3603set dummy $ac_prog; ac_word=$2 3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3605$as_echo_n "checking for $ac_word... " >&6; } 3606if ${ac_cv_prog_ac_ct_CC+:} false; then : 3607 $as_echo_n "(cached) " >&6 3608else 3609 if test -n "$ac_ct_CC"; then 3610 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3611else 3612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3613for as_dir in $PATH 3614do 3615 IFS=$as_save_IFS 3616 test -z "$as_dir" && as_dir=. 3617 for ac_exec_ext in '' $ac_executable_extensions; do 3618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3619 ac_cv_prog_ac_ct_CC="$ac_prog" 3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3621 break 2 3622 fi 3623done 3624 done 3625IFS=$as_save_IFS 3626 3627fi 3628fi 3629ac_ct_CC=$ac_cv_prog_ac_ct_CC 3630if test -n "$ac_ct_CC"; then 3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3632$as_echo "$ac_ct_CC" >&6; } 3633else 3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3635$as_echo "no" >&6; } 3636fi 3637 3638 3639 test -n "$ac_ct_CC" && break 3640done 3641 3642 if test "x$ac_ct_CC" = x; then 3643 CC="" 3644 else 3645 case $cross_compiling:$ac_tool_warned in 3646yes:) 3647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3649ac_tool_warned=yes ;; 3650esac 3651 CC=$ac_ct_CC 3652 fi 3653fi 3654 3655fi 3656 3657 3658test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3659$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3660as_fn_error $? "no acceptable C compiler found in \$PATH 3661See \`config.log' for more details" "$LINENO" 5; } 3662 3663# Provide some information about the compiler. 3664$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3665set X $ac_compile 3666ac_compiler=$2 3667for ac_option in --version -v -V -qversion; do 3668 { { ac_try="$ac_compiler $ac_option >&5" 3669case "(($ac_try" in 3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3671 *) ac_try_echo=$ac_try;; 3672esac 3673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3674$as_echo "$ac_try_echo"; } >&5 3675 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3676 ac_status=$? 3677 if test -s conftest.err; then 3678 sed '10a\ 3679... rest of stderr output deleted ... 3680 10q' conftest.err >conftest.er1 3681 cat conftest.er1 >&5 3682 fi 3683 rm -f conftest.er1 conftest.err 3684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3685 test $ac_status = 0; } 3686done 3687 3688cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3689/* end confdefs.h. */ 3690 3691int 3692main () 3693{ 3694 3695 ; 3696 return 0; 3697} 3698_ACEOF 3699ac_clean_files_save=$ac_clean_files 3700ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3701# Try to create an executable without -o first, disregard a.out. 3702# It will help us diagnose broken compilers, and finding out an intuition 3703# of exeext. 3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3705$as_echo_n "checking whether the C compiler works... " >&6; } 3706ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3707 3708# The possible output files: 3709ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3710 3711ac_rmfiles= 3712for ac_file in $ac_files 3713do 3714 case $ac_file in 3715 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3716 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3717 esac 3718done 3719rm -f $ac_rmfiles 3720 3721if { { ac_try="$ac_link_default" 3722case "(($ac_try" in 3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3724 *) ac_try_echo=$ac_try;; 3725esac 3726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3727$as_echo "$ac_try_echo"; } >&5 3728 (eval "$ac_link_default") 2>&5 3729 ac_status=$? 3730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3731 test $ac_status = 0; }; then : 3732 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3733# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3734# in a Makefile. We should not override ac_cv_exeext if it was cached, 3735# so that the user can short-circuit this test for compilers unknown to 3736# Autoconf. 3737for ac_file in $ac_files '' 3738do 3739 test -f "$ac_file" || continue 3740 case $ac_file in 3741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3742 ;; 3743 [ab].out ) 3744 # We found the default executable, but exeext='' is most 3745 # certainly right. 3746 break;; 3747 *.* ) 3748 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3749 then :; else 3750 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3751 fi 3752 # We set ac_cv_exeext here because the later test for it is not 3753 # safe: cross compilers may not add the suffix if given an `-o' 3754 # argument, so we may need to know it at that point already. 3755 # Even if this section looks crufty: it has the advantage of 3756 # actually working. 3757 break;; 3758 * ) 3759 break;; 3760 esac 3761done 3762test "$ac_cv_exeext" = no && ac_cv_exeext= 3763 3764else 3765 ac_file='' 3766fi 3767if test -z "$ac_file"; then : 3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3769$as_echo "no" >&6; } 3770$as_echo "$as_me: failed program was:" >&5 3771sed 's/^/| /' conftest.$ac_ext >&5 3772 3773{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3775as_fn_error 77 "C compiler cannot create executables 3776See \`config.log' for more details" "$LINENO" 5; } 3777else 3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3779$as_echo "yes" >&6; } 3780fi 3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3782$as_echo_n "checking for C compiler default output file name... " >&6; } 3783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3784$as_echo "$ac_file" >&6; } 3785ac_exeext=$ac_cv_exeext 3786 3787rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3788ac_clean_files=$ac_clean_files_save 3789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3790$as_echo_n "checking for suffix of executables... " >&6; } 3791if { { ac_try="$ac_link" 3792case "(($ac_try" in 3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3794 *) ac_try_echo=$ac_try;; 3795esac 3796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3797$as_echo "$ac_try_echo"; } >&5 3798 (eval "$ac_link") 2>&5 3799 ac_status=$? 3800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3801 test $ac_status = 0; }; then : 3802 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3803# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3804# work properly (i.e., refer to `conftest.exe'), while it won't with 3805# `rm'. 3806for ac_file in conftest.exe conftest conftest.*; do 3807 test -f "$ac_file" || continue 3808 case $ac_file in 3809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3810 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3811 break;; 3812 * ) break;; 3813 esac 3814done 3815else 3816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3818as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3819See \`config.log' for more details" "$LINENO" 5; } 3820fi 3821rm -f conftest conftest$ac_cv_exeext 3822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3823$as_echo "$ac_cv_exeext" >&6; } 3824 3825rm -f conftest.$ac_ext 3826EXEEXT=$ac_cv_exeext 3827ac_exeext=$EXEEXT 3828cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3829/* end confdefs.h. */ 3830#include <stdio.h> 3831int 3832main () 3833{ 3834FILE *f = fopen ("conftest.out", "w"); 3835 return ferror (f) || fclose (f) != 0; 3836 3837 ; 3838 return 0; 3839} 3840_ACEOF 3841ac_clean_files="$ac_clean_files conftest.out" 3842# Check that the compiler produces executables we can run. If not, either 3843# the compiler is broken, or we cross compile. 3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3845$as_echo_n "checking whether we are cross compiling... " >&6; } 3846if test "$cross_compiling" != yes; then 3847 { { ac_try="$ac_link" 3848case "(($ac_try" in 3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3850 *) ac_try_echo=$ac_try;; 3851esac 3852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3853$as_echo "$ac_try_echo"; } >&5 3854 (eval "$ac_link") 2>&5 3855 ac_status=$? 3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3857 test $ac_status = 0; } 3858 if { ac_try='./conftest$ac_cv_exeext' 3859 { { case "(($ac_try" in 3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3861 *) ac_try_echo=$ac_try;; 3862esac 3863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3864$as_echo "$ac_try_echo"; } >&5 3865 (eval "$ac_try") 2>&5 3866 ac_status=$? 3867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3868 test $ac_status = 0; }; }; then 3869 cross_compiling=no 3870 else 3871 if test "$cross_compiling" = maybe; then 3872 cross_compiling=yes 3873 else 3874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3875$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3876as_fn_error $? "cannot run C compiled programs. 3877If you meant to cross compile, use \`--host'. 3878See \`config.log' for more details" "$LINENO" 5; } 3879 fi 3880 fi 3881fi 3882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3883$as_echo "$cross_compiling" >&6; } 3884 3885rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3886ac_clean_files=$ac_clean_files_save 3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3888$as_echo_n "checking for suffix of object files... " >&6; } 3889if ${ac_cv_objext+:} false; then : 3890 $as_echo_n "(cached) " >&6 3891else 3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3893/* end confdefs.h. */ 3894 3895int 3896main () 3897{ 3898 3899 ; 3900 return 0; 3901} 3902_ACEOF 3903rm -f conftest.o conftest.obj 3904if { { ac_try="$ac_compile" 3905case "(($ac_try" in 3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3907 *) ac_try_echo=$ac_try;; 3908esac 3909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3910$as_echo "$ac_try_echo"; } >&5 3911 (eval "$ac_compile") 2>&5 3912 ac_status=$? 3913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3914 test $ac_status = 0; }; then : 3915 for ac_file in conftest.o conftest.obj conftest.*; do 3916 test -f "$ac_file" || continue; 3917 case $ac_file in 3918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3919 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3920 break;; 3921 esac 3922done 3923else 3924 $as_echo "$as_me: failed program was:" >&5 3925sed 's/^/| /' conftest.$ac_ext >&5 3926 3927{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3929as_fn_error $? "cannot compute suffix of object files: cannot compile 3930See \`config.log' for more details" "$LINENO" 5; } 3931fi 3932rm -f conftest.$ac_cv_objext conftest.$ac_ext 3933fi 3934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3935$as_echo "$ac_cv_objext" >&6; } 3936OBJEXT=$ac_cv_objext 3937ac_objext=$OBJEXT 3938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3939$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3940if ${ac_cv_c_compiler_gnu+:} false; then : 3941 $as_echo_n "(cached) " >&6 3942else 3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3944/* end confdefs.h. */ 3945 3946int 3947main () 3948{ 3949#ifndef __GNUC__ 3950 choke me 3951#endif 3952 3953 ; 3954 return 0; 3955} 3956_ACEOF 3957if ac_fn_c_try_compile "$LINENO"; then : 3958 ac_compiler_gnu=yes 3959else 3960 ac_compiler_gnu=no 3961fi 3962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3963ac_cv_c_compiler_gnu=$ac_compiler_gnu 3964 3965fi 3966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3967$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3968if test $ac_compiler_gnu = yes; then 3969 GCC=yes 3970else 3971 GCC= 3972fi 3973ac_test_CFLAGS=${CFLAGS+set} 3974ac_save_CFLAGS=$CFLAGS 3975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3976$as_echo_n "checking whether $CC accepts -g... " >&6; } 3977if ${ac_cv_prog_cc_g+:} false; then : 3978 $as_echo_n "(cached) " >&6 3979else 3980 ac_save_c_werror_flag=$ac_c_werror_flag 3981 ac_c_werror_flag=yes 3982 ac_cv_prog_cc_g=no 3983 CFLAGS="-g" 3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3985/* end confdefs.h. */ 3986 3987int 3988main () 3989{ 3990 3991 ; 3992 return 0; 3993} 3994_ACEOF 3995if ac_fn_c_try_compile "$LINENO"; then : 3996 ac_cv_prog_cc_g=yes 3997else 3998 CFLAGS="" 3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4000/* end confdefs.h. */ 4001 4002int 4003main () 4004{ 4005 4006 ; 4007 return 0; 4008} 4009_ACEOF 4010if ac_fn_c_try_compile "$LINENO"; then : 4011 4012else 4013 ac_c_werror_flag=$ac_save_c_werror_flag 4014 CFLAGS="-g" 4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4016/* end confdefs.h. */ 4017 4018int 4019main () 4020{ 4021 4022 ; 4023 return 0; 4024} 4025_ACEOF 4026if ac_fn_c_try_compile "$LINENO"; then : 4027 ac_cv_prog_cc_g=yes 4028fi 4029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4030fi 4031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4032fi 4033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4034 ac_c_werror_flag=$ac_save_c_werror_flag 4035fi 4036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4037$as_echo "$ac_cv_prog_cc_g" >&6; } 4038if test "$ac_test_CFLAGS" = set; then 4039 CFLAGS=$ac_save_CFLAGS 4040elif test $ac_cv_prog_cc_g = yes; then 4041 if test "$GCC" = yes; then 4042 CFLAGS="-g -O2" 4043 else 4044 CFLAGS="-g" 4045 fi 4046else 4047 if test "$GCC" = yes; then 4048 CFLAGS="-O2" 4049 else 4050 CFLAGS= 4051 fi 4052fi 4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4054$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4055if ${ac_cv_prog_cc_c89+:} false; then : 4056 $as_echo_n "(cached) " >&6 4057else 4058 ac_cv_prog_cc_c89=no 4059ac_save_CC=$CC 4060cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4061/* end confdefs.h. */ 4062#include <stdarg.h> 4063#include <stdio.h> 4064struct stat; 4065/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4066struct buf { int x; }; 4067FILE * (*rcsopen) (struct buf *, struct stat *, int); 4068static char *e (p, i) 4069 char **p; 4070 int i; 4071{ 4072 return p[i]; 4073} 4074static char *f (char * (*g) (char **, int), char **p, ...) 4075{ 4076 char *s; 4077 va_list v; 4078 va_start (v,p); 4079 s = g (p, va_arg (v,int)); 4080 va_end (v); 4081 return s; 4082} 4083 4084/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4085 function prototypes and stuff, but not '\xHH' hex character constants. 4086 These don't provoke an error unfortunately, instead are silently treated 4087 as 'x'. The following induces an error, until -std is added to get 4088 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4089 array size at least. It's necessary to write '\x00'==0 to get something 4090 that's true only with -std. */ 4091int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4092 4093/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4094 inside strings and character constants. */ 4095#define FOO(x) 'x' 4096int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4097 4098int test (int i, double x); 4099struct s1 {int (*f) (int a);}; 4100struct s2 {int (*f) (double a);}; 4101int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4102int argc; 4103char **argv; 4104int 4105main () 4106{ 4107return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4108 ; 4109 return 0; 4110} 4111_ACEOF 4112for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4113 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4114do 4115 CC="$ac_save_CC $ac_arg" 4116 if ac_fn_c_try_compile "$LINENO"; then : 4117 ac_cv_prog_cc_c89=$ac_arg 4118fi 4119rm -f core conftest.err conftest.$ac_objext 4120 test "x$ac_cv_prog_cc_c89" != "xno" && break 4121done 4122rm -f conftest.$ac_ext 4123CC=$ac_save_CC 4124 4125fi 4126# AC_CACHE_VAL 4127case "x$ac_cv_prog_cc_c89" in 4128 x) 4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4130$as_echo "none needed" >&6; } ;; 4131 xno) 4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4133$as_echo "unsupported" >&6; } ;; 4134 *) 4135 CC="$CC $ac_cv_prog_cc_c89" 4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4137$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4138esac 4139if test "x$ac_cv_prog_cc_c89" != xno; then : 4140 4141fi 4142 4143ac_ext=c 4144ac_cpp='$CPP $CPPFLAGS' 4145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4147ac_compiler_gnu=$ac_cv_c_compiler_gnu 4148 4149ac_ext=c 4150ac_cpp='$CPP $CPPFLAGS' 4151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4153ac_compiler_gnu=$ac_cv_c_compiler_gnu 4154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4155$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4156if ${am_cv_prog_cc_c_o+:} false; then : 4157 $as_echo_n "(cached) " >&6 4158else 4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4160/* end confdefs.h. */ 4161 4162int 4163main () 4164{ 4165 4166 ; 4167 return 0; 4168} 4169_ACEOF 4170 # Make sure it works both with $CC and with simple cc. 4171 # Following AC_PROG_CC_C_O, we do the test twice because some 4172 # compilers refuse to overwrite an existing .o file with -o, 4173 # though they will create one. 4174 am_cv_prog_cc_c_o=yes 4175 for am_i in 1 2; do 4176 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4177 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4178 ac_status=$? 4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4180 (exit $ac_status); } \ 4181 && test -f conftest2.$ac_objext; then 4182 : OK 4183 else 4184 am_cv_prog_cc_c_o=no 4185 break 4186 fi 4187 done 4188 rm -f core conftest* 4189 unset am_i 4190fi 4191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4192$as_echo "$am_cv_prog_cc_c_o" >&6; } 4193if test "$am_cv_prog_cc_c_o" != yes; then 4194 # Losing compiler, so override with the script. 4195 # FIXME: It is wrong to rewrite CC. 4196 # But if we don't then we get into trouble of one sort or another. 4197 # A longer-term fix would be to have automake use am__CC in this case, 4198 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4199 CC="$am_aux_dir/compile $CC" 4200fi 4201ac_ext=c 4202ac_cpp='$CPP $CPPFLAGS' 4203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4205ac_compiler_gnu=$ac_cv_c_compiler_gnu 4206 4207 4208depcc="$CC" am_compiler_list= 4209 4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4211$as_echo_n "checking dependency style of $depcc... " >&6; } 4212if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4213 $as_echo_n "(cached) " >&6 4214else 4215 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4216 # We make a subdir and do the tests there. Otherwise we can end up 4217 # making bogus files that we don't know about and never remove. For 4218 # instance it was reported that on HP-UX the gcc test will end up 4219 # making a dummy file named 'D' -- because '-MD' means "put the output 4220 # in D". 4221 rm -rf conftest.dir 4222 mkdir conftest.dir 4223 # Copy depcomp to subdir because otherwise we won't find it if we're 4224 # using a relative directory. 4225 cp "$am_depcomp" conftest.dir 4226 cd conftest.dir 4227 # We will build objects and dependencies in a subdirectory because 4228 # it helps to detect inapplicable dependency modes. For instance 4229 # both Tru64's cc and ICC support -MD to output dependencies as a 4230 # side effect of compilation, but ICC will put the dependencies in 4231 # the current directory while Tru64 will put them in the object 4232 # directory. 4233 mkdir sub 4234 4235 am_cv_CC_dependencies_compiler_type=none 4236 if test "$am_compiler_list" = ""; then 4237 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4238 fi 4239 am__universal=false 4240 case " $depcc " in #( 4241 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4242 esac 4243 4244 for depmode in $am_compiler_list; do 4245 # Setup a source with many dependencies, because some compilers 4246 # like to wrap large dependency lists on column 80 (with \), and 4247 # we should not choose a depcomp mode which is confused by this. 4248 # 4249 # We need to recreate these files for each test, as the compiler may 4250 # overwrite some of them when testing with obscure command lines. 4251 # This happens at least with the AIX C compiler. 4252 : > sub/conftest.c 4253 for i in 1 2 3 4 5 6; do 4254 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4255 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4256 # Solaris 10 /bin/sh. 4257 echo '/* dummy */' > sub/conftst$i.h 4258 done 4259 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4260 4261 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4262 # mode. It turns out that the SunPro C++ compiler does not properly 4263 # handle '-M -o', and we need to detect this. Also, some Intel 4264 # versions had trouble with output in subdirs. 4265 am__obj=sub/conftest.${OBJEXT-o} 4266 am__minus_obj="-o $am__obj" 4267 case $depmode in 4268 gcc) 4269 # This depmode causes a compiler race in universal mode. 4270 test "$am__universal" = false || continue 4271 ;; 4272 nosideeffect) 4273 # After this tag, mechanisms are not by side-effect, so they'll 4274 # only be used when explicitly requested. 4275 if test "x$enable_dependency_tracking" = xyes; then 4276 continue 4277 else 4278 break 4279 fi 4280 ;; 4281 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4282 # This compiler won't grok '-c -o', but also, the minuso test has 4283 # not run yet. These depmodes are late enough in the game, and 4284 # so weak that their functioning should not be impacted. 4285 am__obj=conftest.${OBJEXT-o} 4286 am__minus_obj= 4287 ;; 4288 none) break ;; 4289 esac 4290 if depmode=$depmode \ 4291 source=sub/conftest.c object=$am__obj \ 4292 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4293 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4294 >/dev/null 2>conftest.err && 4295 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4296 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4297 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4298 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4299 # icc doesn't choke on unknown options, it will just issue warnings 4300 # or remarks (even with -Werror). So we grep stderr for any message 4301 # that says an option was ignored or not supported. 4302 # When given -MP, icc 7.0 and 7.1 complain thusly: 4303 # icc: Command line warning: ignoring option '-M'; no argument required 4304 # The diagnosis changed in icc 8.0: 4305 # icc: Command line remark: option '-MP' not supported 4306 if (grep 'ignoring option' conftest.err || 4307 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4308 am_cv_CC_dependencies_compiler_type=$depmode 4309 break 4310 fi 4311 fi 4312 done 4313 4314 cd .. 4315 rm -rf conftest.dir 4316else 4317 am_cv_CC_dependencies_compiler_type=none 4318fi 4319 4320fi 4321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4322$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4323CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4324 4325 if 4326 test "x$enable_dependency_tracking" != xno \ 4327 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4328 am__fastdepCC_TRUE= 4329 am__fastdepCC_FALSE='#' 4330else 4331 am__fastdepCC_TRUE='#' 4332 am__fastdepCC_FALSE= 4333fi 4334 4335 4336 case $ac_cv_prog_cc_stdc in #( 4337 no) : 4338 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 4339 *) : 4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4341$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4342if ${ac_cv_prog_cc_c99+:} false; then : 4343 $as_echo_n "(cached) " >&6 4344else 4345 ac_cv_prog_cc_c99=no 4346ac_save_CC=$CC 4347cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4348/* end confdefs.h. */ 4349#include <stdarg.h> 4350#include <stdbool.h> 4351#include <stdlib.h> 4352#include <wchar.h> 4353#include <stdio.h> 4354 4355// Check varargs macros. These examples are taken from C99 6.10.3.5. 4356#define debug(...) fprintf (stderr, __VA_ARGS__) 4357#define showlist(...) puts (#__VA_ARGS__) 4358#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4359static void 4360test_varargs_macros (void) 4361{ 4362 int x = 1234; 4363 int y = 5678; 4364 debug ("Flag"); 4365 debug ("X = %d\n", x); 4366 showlist (The first, second, and third items.); 4367 report (x>y, "x is %d but y is %d", x, y); 4368} 4369 4370// Check long long types. 4371#define BIG64 18446744073709551615ull 4372#define BIG32 4294967295ul 4373#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4374#if !BIG_OK 4375 your preprocessor is broken; 4376#endif 4377#if BIG_OK 4378#else 4379 your preprocessor is broken; 4380#endif 4381static long long int bignum = -9223372036854775807LL; 4382static unsigned long long int ubignum = BIG64; 4383 4384struct incomplete_array 4385{ 4386 int datasize; 4387 double data[]; 4388}; 4389 4390struct named_init { 4391 int number; 4392 const wchar_t *name; 4393 double average; 4394}; 4395 4396typedef const char *ccp; 4397 4398static inline int 4399test_restrict (ccp restrict text) 4400{ 4401 // See if C++-style comments work. 4402 // Iterate through items via the restricted pointer. 4403 // Also check for declarations in for loops. 4404 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4405 continue; 4406 return 0; 4407} 4408 4409// Check varargs and va_copy. 4410static void 4411test_varargs (const char *format, ...) 4412{ 4413 va_list args; 4414 va_start (args, format); 4415 va_list args_copy; 4416 va_copy (args_copy, args); 4417 4418 const char *str; 4419 int number; 4420 float fnumber; 4421 4422 while (*format) 4423 { 4424 switch (*format++) 4425 { 4426 case 's': // string 4427 str = va_arg (args_copy, const char *); 4428 break; 4429 case 'd': // int 4430 number = va_arg (args_copy, int); 4431 break; 4432 case 'f': // float 4433 fnumber = va_arg (args_copy, double); 4434 break; 4435 default: 4436 break; 4437 } 4438 } 4439 va_end (args_copy); 4440 va_end (args); 4441} 4442 4443int 4444main () 4445{ 4446 4447 // Check bool. 4448 _Bool success = false; 4449 4450 // Check restrict. 4451 if (test_restrict ("String literal") == 0) 4452 success = true; 4453 char *restrict newvar = "Another string"; 4454 4455 // Check varargs. 4456 test_varargs ("s, d' f .", "string", 65, 34.234); 4457 test_varargs_macros (); 4458 4459 // Check flexible array members. 4460 struct incomplete_array *ia = 4461 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4462 ia->datasize = 10; 4463 for (int i = 0; i < ia->datasize; ++i) 4464 ia->data[i] = i * 1.234; 4465 4466 // Check named initializers. 4467 struct named_init ni = { 4468 .number = 34, 4469 .name = L"Test wide string", 4470 .average = 543.34343, 4471 }; 4472 4473 ni.number = 58; 4474 4475 int dynamic_array[ni.number]; 4476 dynamic_array[ni.number - 1] = 543; 4477 4478 // work around unused variable warnings 4479 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4480 || dynamic_array[ni.number - 1] != 543); 4481 4482 ; 4483 return 0; 4484} 4485_ACEOF 4486for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4487do 4488 CC="$ac_save_CC $ac_arg" 4489 if ac_fn_c_try_compile "$LINENO"; then : 4490 ac_cv_prog_cc_c99=$ac_arg 4491fi 4492rm -f core conftest.err conftest.$ac_objext 4493 test "x$ac_cv_prog_cc_c99" != "xno" && break 4494done 4495rm -f conftest.$ac_ext 4496CC=$ac_save_CC 4497 4498fi 4499# AC_CACHE_VAL 4500case "x$ac_cv_prog_cc_c99" in 4501 x) 4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4503$as_echo "none needed" >&6; } ;; 4504 xno) 4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4506$as_echo "unsupported" >&6; } ;; 4507 *) 4508 CC="$CC $ac_cv_prog_cc_c99" 4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4510$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4511esac 4512if test "x$ac_cv_prog_cc_c99" != xno; then : 4513 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4514else 4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4516$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4517if ${ac_cv_prog_cc_c89+:} false; then : 4518 $as_echo_n "(cached) " >&6 4519else 4520 ac_cv_prog_cc_c89=no 4521ac_save_CC=$CC 4522cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4523/* end confdefs.h. */ 4524#include <stdarg.h> 4525#include <stdio.h> 4526struct stat; 4527/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4528struct buf { int x; }; 4529FILE * (*rcsopen) (struct buf *, struct stat *, int); 4530static char *e (p, i) 4531 char **p; 4532 int i; 4533{ 4534 return p[i]; 4535} 4536static char *f (char * (*g) (char **, int), char **p, ...) 4537{ 4538 char *s; 4539 va_list v; 4540 va_start (v,p); 4541 s = g (p, va_arg (v,int)); 4542 va_end (v); 4543 return s; 4544} 4545 4546/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4547 function prototypes and stuff, but not '\xHH' hex character constants. 4548 These don't provoke an error unfortunately, instead are silently treated 4549 as 'x'. The following induces an error, until -std is added to get 4550 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4551 array size at least. It's necessary to write '\x00'==0 to get something 4552 that's true only with -std. */ 4553int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4554 4555/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4556 inside strings and character constants. */ 4557#define FOO(x) 'x' 4558int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4559 4560int test (int i, double x); 4561struct s1 {int (*f) (int a);}; 4562struct s2 {int (*f) (double a);}; 4563int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4564int argc; 4565char **argv; 4566int 4567main () 4568{ 4569return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4570 ; 4571 return 0; 4572} 4573_ACEOF 4574for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4575 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4576do 4577 CC="$ac_save_CC $ac_arg" 4578 if ac_fn_c_try_compile "$LINENO"; then : 4579 ac_cv_prog_cc_c89=$ac_arg 4580fi 4581rm -f core conftest.err conftest.$ac_objext 4582 test "x$ac_cv_prog_cc_c89" != "xno" && break 4583done 4584rm -f conftest.$ac_ext 4585CC=$ac_save_CC 4586 4587fi 4588# AC_CACHE_VAL 4589case "x$ac_cv_prog_cc_c89" in 4590 x) 4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4592$as_echo "none needed" >&6; } ;; 4593 xno) 4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4595$as_echo "unsupported" >&6; } ;; 4596 *) 4597 CC="$CC $ac_cv_prog_cc_c89" 4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4599$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4600esac 4601if test "x$ac_cv_prog_cc_c89" != xno; then : 4602 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4603else 4604 ac_cv_prog_cc_stdc=no 4605fi 4606 4607fi 4608 ;; 4609esac 4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 4611$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 4612 if ${ac_cv_prog_cc_stdc+:} false; then : 4613 $as_echo_n "(cached) " >&6 4614fi 4615 4616 case $ac_cv_prog_cc_stdc in #( 4617 no) : 4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4619$as_echo "unsupported" >&6; } ;; #( 4620 '') : 4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4622$as_echo "none needed" >&6; } ;; #( 4623 *) : 4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 4625$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 4626esac 4627 4628 4629ac_ext=c 4630ac_cpp='$CPP $CPPFLAGS' 4631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4633ac_compiler_gnu=$ac_cv_c_compiler_gnu 4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4635$as_echo_n "checking how to run the C preprocessor... " >&6; } 4636# On Suns, sometimes $CPP names a directory. 4637if test -n "$CPP" && test -d "$CPP"; then 4638 CPP= 4639fi 4640if test -z "$CPP"; then 4641 if ${ac_cv_prog_CPP+:} false; then : 4642 $as_echo_n "(cached) " >&6 4643else 4644 # Double quotes because CPP needs to be expanded 4645 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4646 do 4647 ac_preproc_ok=false 4648for ac_c_preproc_warn_flag in '' yes 4649do 4650 # Use a header file that comes with gcc, so configuring glibc 4651 # with a fresh cross-compiler works. 4652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4653 # <limits.h> exists even on freestanding compilers. 4654 # On the NeXT, cc -E runs the code through the compiler's parser, 4655 # not just through cpp. "Syntax error" is here to catch this case. 4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4657/* end confdefs.h. */ 4658#ifdef __STDC__ 4659# include <limits.h> 4660#else 4661# include <assert.h> 4662#endif 4663 Syntax error 4664_ACEOF 4665if ac_fn_c_try_cpp "$LINENO"; then : 4666 4667else 4668 # Broken: fails on valid input. 4669continue 4670fi 4671rm -f conftest.err conftest.i conftest.$ac_ext 4672 4673 # OK, works on sane cases. Now check whether nonexistent headers 4674 # can be detected and how. 4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4676/* end confdefs.h. */ 4677#include <ac_nonexistent.h> 4678_ACEOF 4679if ac_fn_c_try_cpp "$LINENO"; then : 4680 # Broken: success on invalid input. 4681continue 4682else 4683 # Passes both tests. 4684ac_preproc_ok=: 4685break 4686fi 4687rm -f conftest.err conftest.i conftest.$ac_ext 4688 4689done 4690# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4691rm -f conftest.i conftest.err conftest.$ac_ext 4692if $ac_preproc_ok; then : 4693 break 4694fi 4695 4696 done 4697 ac_cv_prog_CPP=$CPP 4698 4699fi 4700 CPP=$ac_cv_prog_CPP 4701else 4702 ac_cv_prog_CPP=$CPP 4703fi 4704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4705$as_echo "$CPP" >&6; } 4706ac_preproc_ok=false 4707for ac_c_preproc_warn_flag in '' yes 4708do 4709 # Use a header file that comes with gcc, so configuring glibc 4710 # with a fresh cross-compiler works. 4711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4712 # <limits.h> exists even on freestanding compilers. 4713 # On the NeXT, cc -E runs the code through the compiler's parser, 4714 # not just through cpp. "Syntax error" is here to catch this case. 4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4716/* end confdefs.h. */ 4717#ifdef __STDC__ 4718# include <limits.h> 4719#else 4720# include <assert.h> 4721#endif 4722 Syntax error 4723_ACEOF 4724if ac_fn_c_try_cpp "$LINENO"; then : 4725 4726else 4727 # Broken: fails on valid input. 4728continue 4729fi 4730rm -f conftest.err conftest.i conftest.$ac_ext 4731 4732 # OK, works on sane cases. Now check whether nonexistent headers 4733 # can be detected and how. 4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4735/* end confdefs.h. */ 4736#include <ac_nonexistent.h> 4737_ACEOF 4738if ac_fn_c_try_cpp "$LINENO"; then : 4739 # Broken: success on invalid input. 4740continue 4741else 4742 # Passes both tests. 4743ac_preproc_ok=: 4744break 4745fi 4746rm -f conftest.err conftest.i conftest.$ac_ext 4747 4748done 4749# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4750rm -f conftest.i conftest.err conftest.$ac_ext 4751if $ac_preproc_ok; then : 4752 4753else 4754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4756as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4757See \`config.log' for more details" "$LINENO" 5; } 4758fi 4759 4760ac_ext=c 4761ac_cpp='$CPP $CPPFLAGS' 4762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4764ac_compiler_gnu=$ac_cv_c_compiler_gnu 4765 4766 4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4768$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4769if ${ac_cv_path_GREP+:} false; then : 4770 $as_echo_n "(cached) " >&6 4771else 4772 if test -z "$GREP"; then 4773 ac_path_GREP_found=false 4774 # Loop through the user's path and test for each of PROGNAME-LIST 4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4776for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4777do 4778 IFS=$as_save_IFS 4779 test -z "$as_dir" && as_dir=. 4780 for ac_prog in grep ggrep; do 4781 for ac_exec_ext in '' $ac_executable_extensions; do 4782 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4783 as_fn_executable_p "$ac_path_GREP" || continue 4784# Check for GNU ac_path_GREP and select it if it is found. 4785 # Check for GNU $ac_path_GREP 4786case `"$ac_path_GREP" --version 2>&1` in 4787*GNU*) 4788 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4789*) 4790 ac_count=0 4791 $as_echo_n 0123456789 >"conftest.in" 4792 while : 4793 do 4794 cat "conftest.in" "conftest.in" >"conftest.tmp" 4795 mv "conftest.tmp" "conftest.in" 4796 cp "conftest.in" "conftest.nl" 4797 $as_echo 'GREP' >> "conftest.nl" 4798 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4799 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4800 as_fn_arith $ac_count + 1 && ac_count=$as_val 4801 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4802 # Best one so far, save it but keep looking for a better one 4803 ac_cv_path_GREP="$ac_path_GREP" 4804 ac_path_GREP_max=$ac_count 4805 fi 4806 # 10*(2^10) chars as input seems more than enough 4807 test $ac_count -gt 10 && break 4808 done 4809 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4810esac 4811 4812 $ac_path_GREP_found && break 3 4813 done 4814 done 4815 done 4816IFS=$as_save_IFS 4817 if test -z "$ac_cv_path_GREP"; then 4818 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4819 fi 4820else 4821 ac_cv_path_GREP=$GREP 4822fi 4823 4824fi 4825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4826$as_echo "$ac_cv_path_GREP" >&6; } 4827 GREP="$ac_cv_path_GREP" 4828 4829 4830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4831$as_echo_n "checking for egrep... " >&6; } 4832if ${ac_cv_path_EGREP+:} false; then : 4833 $as_echo_n "(cached) " >&6 4834else 4835 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4836 then ac_cv_path_EGREP="$GREP -E" 4837 else 4838 if test -z "$EGREP"; then 4839 ac_path_EGREP_found=false 4840 # Loop through the user's path and test for each of PROGNAME-LIST 4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4842for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4843do 4844 IFS=$as_save_IFS 4845 test -z "$as_dir" && as_dir=. 4846 for ac_prog in egrep; do 4847 for ac_exec_ext in '' $ac_executable_extensions; do 4848 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4849 as_fn_executable_p "$ac_path_EGREP" || continue 4850# Check for GNU ac_path_EGREP and select it if it is found. 4851 # Check for GNU $ac_path_EGREP 4852case `"$ac_path_EGREP" --version 2>&1` in 4853*GNU*) 4854 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4855*) 4856 ac_count=0 4857 $as_echo_n 0123456789 >"conftest.in" 4858 while : 4859 do 4860 cat "conftest.in" "conftest.in" >"conftest.tmp" 4861 mv "conftest.tmp" "conftest.in" 4862 cp "conftest.in" "conftest.nl" 4863 $as_echo 'EGREP' >> "conftest.nl" 4864 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4865 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4866 as_fn_arith $ac_count + 1 && ac_count=$as_val 4867 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4868 # Best one so far, save it but keep looking for a better one 4869 ac_cv_path_EGREP="$ac_path_EGREP" 4870 ac_path_EGREP_max=$ac_count 4871 fi 4872 # 10*(2^10) chars as input seems more than enough 4873 test $ac_count -gt 10 && break 4874 done 4875 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4876esac 4877 4878 $ac_path_EGREP_found && break 3 4879 done 4880 done 4881 done 4882IFS=$as_save_IFS 4883 if test -z "$ac_cv_path_EGREP"; then 4884 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4885 fi 4886else 4887 ac_cv_path_EGREP=$EGREP 4888fi 4889 4890 fi 4891fi 4892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4893$as_echo "$ac_cv_path_EGREP" >&6; } 4894 EGREP="$ac_cv_path_EGREP" 4895 4896 4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4898$as_echo_n "checking for ANSI C header files... " >&6; } 4899if ${ac_cv_header_stdc+:} false; then : 4900 $as_echo_n "(cached) " >&6 4901else 4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4903/* end confdefs.h. */ 4904#include <stdlib.h> 4905#include <stdarg.h> 4906#include <string.h> 4907#include <float.h> 4908 4909int 4910main () 4911{ 4912 4913 ; 4914 return 0; 4915} 4916_ACEOF 4917if ac_fn_c_try_compile "$LINENO"; then : 4918 ac_cv_header_stdc=yes 4919else 4920 ac_cv_header_stdc=no 4921fi 4922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4923 4924if test $ac_cv_header_stdc = yes; then 4925 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4927/* end confdefs.h. */ 4928#include <string.h> 4929 4930_ACEOF 4931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4932 $EGREP "memchr" >/dev/null 2>&1; then : 4933 4934else 4935 ac_cv_header_stdc=no 4936fi 4937rm -f conftest* 4938 4939fi 4940 4941if test $ac_cv_header_stdc = yes; then 4942 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4944/* end confdefs.h. */ 4945#include <stdlib.h> 4946 4947_ACEOF 4948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4949 $EGREP "free" >/dev/null 2>&1; then : 4950 4951else 4952 ac_cv_header_stdc=no 4953fi 4954rm -f conftest* 4955 4956fi 4957 4958if test $ac_cv_header_stdc = yes; then 4959 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4960 if test "$cross_compiling" = yes; then : 4961 : 4962else 4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4964/* end confdefs.h. */ 4965#include <ctype.h> 4966#include <stdlib.h> 4967#if ((' ' & 0x0FF) == 0x020) 4968# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4969# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4970#else 4971# define ISLOWER(c) \ 4972 (('a' <= (c) && (c) <= 'i') \ 4973 || ('j' <= (c) && (c) <= 'r') \ 4974 || ('s' <= (c) && (c) <= 'z')) 4975# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4976#endif 4977 4978#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4979int 4980main () 4981{ 4982 int i; 4983 for (i = 0; i < 256; i++) 4984 if (XOR (islower (i), ISLOWER (i)) 4985 || toupper (i) != TOUPPER (i)) 4986 return 2; 4987 return 0; 4988} 4989_ACEOF 4990if ac_fn_c_try_run "$LINENO"; then : 4991 4992else 4993 ac_cv_header_stdc=no 4994fi 4995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4996 conftest.$ac_objext conftest.beam conftest.$ac_ext 4997fi 4998 4999fi 5000fi 5001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5002$as_echo "$ac_cv_header_stdc" >&6; } 5003if test $ac_cv_header_stdc = yes; then 5004 5005$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5006 5007fi 5008 5009# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5010for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5011 inttypes.h stdint.h unistd.h 5012do : 5013 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5014ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5015" 5016if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5017 cat >>confdefs.h <<_ACEOF 5018#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5019_ACEOF 5020 5021fi 5022 5023done 5024 5025 5026 5027 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5028if test "x$ac_cv_header_minix_config_h" = xyes; then : 5029 MINIX=yes 5030else 5031 MINIX= 5032fi 5033 5034 5035 if test "$MINIX" = yes; then 5036 5037$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5038 5039 5040$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5041 5042 5043$as_echo "#define _MINIX 1" >>confdefs.h 5044 5045 fi 5046 5047 5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5049$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5050if ${ac_cv_safe_to_define___extensions__+:} false; then : 5051 $as_echo_n "(cached) " >&6 5052else 5053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5054/* end confdefs.h. */ 5055 5056# define __EXTENSIONS__ 1 5057 $ac_includes_default 5058int 5059main () 5060{ 5061 5062 ; 5063 return 0; 5064} 5065_ACEOF 5066if ac_fn_c_try_compile "$LINENO"; then : 5067 ac_cv_safe_to_define___extensions__=yes 5068else 5069 ac_cv_safe_to_define___extensions__=no 5070fi 5071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5072fi 5073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5074$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5075 test $ac_cv_safe_to_define___extensions__ = yes && 5076 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5077 5078 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5079 5080 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5081 5082 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5083 5084 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5085 5086 5087# Check whether --enable-largefile was given. 5088if test "${enable_largefile+set}" = set; then : 5089 enableval=$enable_largefile; 5090fi 5091 5092if test "$enable_largefile" != no; then 5093 5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 5095$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 5096if ${ac_cv_sys_largefile_CC+:} false; then : 5097 $as_echo_n "(cached) " >&6 5098else 5099 ac_cv_sys_largefile_CC=no 5100 if test "$GCC" != yes; then 5101 ac_save_CC=$CC 5102 while :; do 5103 # IRIX 6.2 and later do not support large files by default, 5104 # so use the C compiler's -n32 option if that helps. 5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5106/* end confdefs.h. */ 5107#include <sys/types.h> 5108 /* Check that off_t can represent 2**63 - 1 correctly. 5109 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5110 since some C++ compilers masquerading as C compilers 5111 incorrectly reject 9223372036854775807. */ 5112#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5113 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5114 && LARGE_OFF_T % 2147483647 == 1) 5115 ? 1 : -1]; 5116int 5117main () 5118{ 5119 5120 ; 5121 return 0; 5122} 5123_ACEOF 5124 if ac_fn_c_try_compile "$LINENO"; then : 5125 break 5126fi 5127rm -f core conftest.err conftest.$ac_objext 5128 CC="$CC -n32" 5129 if ac_fn_c_try_compile "$LINENO"; then : 5130 ac_cv_sys_largefile_CC=' -n32'; break 5131fi 5132rm -f core conftest.err conftest.$ac_objext 5133 break 5134 done 5135 CC=$ac_save_CC 5136 rm -f conftest.$ac_ext 5137 fi 5138fi 5139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 5140$as_echo "$ac_cv_sys_largefile_CC" >&6; } 5141 if test "$ac_cv_sys_largefile_CC" != no; then 5142 CC=$CC$ac_cv_sys_largefile_CC 5143 fi 5144 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 5146$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 5147if ${ac_cv_sys_file_offset_bits+:} false; then : 5148 $as_echo_n "(cached) " >&6 5149else 5150 while :; do 5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5152/* end confdefs.h. */ 5153#include <sys/types.h> 5154 /* Check that off_t can represent 2**63 - 1 correctly. 5155 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5156 since some C++ compilers masquerading as C compilers 5157 incorrectly reject 9223372036854775807. */ 5158#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5159 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5160 && LARGE_OFF_T % 2147483647 == 1) 5161 ? 1 : -1]; 5162int 5163main () 5164{ 5165 5166 ; 5167 return 0; 5168} 5169_ACEOF 5170if ac_fn_c_try_compile "$LINENO"; then : 5171 ac_cv_sys_file_offset_bits=no; break 5172fi 5173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5175/* end confdefs.h. */ 5176#define _FILE_OFFSET_BITS 64 5177#include <sys/types.h> 5178 /* Check that off_t can represent 2**63 - 1 correctly. 5179 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5180 since some C++ compilers masquerading as C compilers 5181 incorrectly reject 9223372036854775807. */ 5182#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5183 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5184 && LARGE_OFF_T % 2147483647 == 1) 5185 ? 1 : -1]; 5186int 5187main () 5188{ 5189 5190 ; 5191 return 0; 5192} 5193_ACEOF 5194if ac_fn_c_try_compile "$LINENO"; then : 5195 ac_cv_sys_file_offset_bits=64; break 5196fi 5197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5198 ac_cv_sys_file_offset_bits=unknown 5199 break 5200done 5201fi 5202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 5203$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 5204case $ac_cv_sys_file_offset_bits in #( 5205 no | unknown) ;; 5206 *) 5207cat >>confdefs.h <<_ACEOF 5208#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 5209_ACEOF 5210;; 5211esac 5212rm -rf conftest* 5213 if test $ac_cv_sys_file_offset_bits = unknown; then 5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 5215$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 5216if ${ac_cv_sys_large_files+:} false; then : 5217 $as_echo_n "(cached) " >&6 5218else 5219 while :; do 5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5221/* end confdefs.h. */ 5222#include <sys/types.h> 5223 /* Check that off_t can represent 2**63 - 1 correctly. 5224 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5225 since some C++ compilers masquerading as C compilers 5226 incorrectly reject 9223372036854775807. */ 5227#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5228 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5229 && LARGE_OFF_T % 2147483647 == 1) 5230 ? 1 : -1]; 5231int 5232main () 5233{ 5234 5235 ; 5236 return 0; 5237} 5238_ACEOF 5239if ac_fn_c_try_compile "$LINENO"; then : 5240 ac_cv_sys_large_files=no; break 5241fi 5242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5244/* end confdefs.h. */ 5245#define _LARGE_FILES 1 5246#include <sys/types.h> 5247 /* Check that off_t can represent 2**63 - 1 correctly. 5248 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5249 since some C++ compilers masquerading as C compilers 5250 incorrectly reject 9223372036854775807. */ 5251#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 5252 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 5253 && LARGE_OFF_T % 2147483647 == 1) 5254 ? 1 : -1]; 5255int 5256main () 5257{ 5258 5259 ; 5260 return 0; 5261} 5262_ACEOF 5263if ac_fn_c_try_compile "$LINENO"; then : 5264 ac_cv_sys_large_files=1; break 5265fi 5266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5267 ac_cv_sys_large_files=unknown 5268 break 5269done 5270fi 5271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 5272$as_echo "$ac_cv_sys_large_files" >&6; } 5273case $ac_cv_sys_large_files in #( 5274 no | unknown) ;; 5275 *) 5276cat >>confdefs.h <<_ACEOF 5277#define _LARGE_FILES $ac_cv_sys_large_files 5278_ACEOF 5279;; 5280esac 5281rm -rf conftest* 5282 fi 5283 5284 5285fi 5286 5287 5288# Check whether --enable-silent-rules was given. 5289if test "${enable_silent_rules+set}" = set; then : 5290 enableval=$enable_silent_rules; 5291fi 5292 5293case $enable_silent_rules in # ((( 5294 yes) AM_DEFAULT_VERBOSITY=0;; 5295 no) AM_DEFAULT_VERBOSITY=1;; 5296 *) AM_DEFAULT_VERBOSITY=0;; 5297esac 5298am_make=${MAKE-make} 5299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 5300$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 5301if ${am_cv_make_support_nested_variables+:} false; then : 5302 $as_echo_n "(cached) " >&6 5303else 5304 if $as_echo 'TRUE=$(BAR$(V)) 5305BAR0=false 5306BAR1=true 5307V=1 5308am__doit: 5309 @$(TRUE) 5310.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 5311 am_cv_make_support_nested_variables=yes 5312else 5313 am_cv_make_support_nested_variables=no 5314fi 5315fi 5316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 5317$as_echo "$am_cv_make_support_nested_variables" >&6; } 5318if test $am_cv_make_support_nested_variables = yes; then 5319 AM_V='$(V)' 5320 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 5321else 5322 AM_V=$AM_DEFAULT_VERBOSITY 5323 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 5324fi 5325AM_BACKSLASH='\' 5326 5327 5328LIBMODBUS_VERSION_MAJOR=3 5329LIBMODBUS_VERSION_MINOR=1 5330LIBMODBUS_VERSION_MICRO=6 5331LIBMODBUS_VERSION=3.1.6 5332 5333 5334 5335 5336 5337# ABI version 5338# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html 5339LIBMODBUS_LD_CURRENT=6 5340LIBMODBUS_LD_REVISION=0 5341LIBMODBUS_LD_AGE=1 5342LIBMODBUS_LT_VERSION_INFO=$LIBMODBUS_LD_CURRENT:$LIBMODBUS_LD_REVISION:$LIBMODBUS_LD_AGE 5343 5344 5345# Make sure we can run config.sub. 5346$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5347 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5348 5349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5350$as_echo_n "checking build system type... " >&6; } 5351if ${ac_cv_build+:} false; then : 5352 $as_echo_n "(cached) " >&6 5353else 5354 ac_build_alias=$build_alias 5355test "x$ac_build_alias" = x && 5356 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5357test "x$ac_build_alias" = x && 5358 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5359ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5360 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5361 5362fi 5363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5364$as_echo "$ac_cv_build" >&6; } 5365case $ac_cv_build in 5366*-*-*) ;; 5367*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5368esac 5369build=$ac_cv_build 5370ac_save_IFS=$IFS; IFS='-' 5371set x $ac_cv_build 5372shift 5373build_cpu=$1 5374build_vendor=$2 5375shift; shift 5376# Remember, the first character of IFS is used to create $*, 5377# except with old shells: 5378build_os=$* 5379IFS=$ac_save_IFS 5380case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5381 5382 5383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5384$as_echo_n "checking host system type... " >&6; } 5385if ${ac_cv_host+:} false; then : 5386 $as_echo_n "(cached) " >&6 5387else 5388 if test "x$host_alias" = x; then 5389 ac_cv_host=$ac_cv_build 5390else 5391 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5392 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5393fi 5394 5395fi 5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5397$as_echo "$ac_cv_host" >&6; } 5398case $ac_cv_host in 5399*-*-*) ;; 5400*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5401esac 5402host=$ac_cv_host 5403ac_save_IFS=$IFS; IFS='-' 5404set x $ac_cv_host 5405shift 5406host_cpu=$1 5407host_vendor=$2 5408shift; shift 5409# Remember, the first character of IFS is used to create $*, 5410# except with old shells: 5411host_os=$* 5412IFS=$ac_save_IFS 5413case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5414 5415 5416 5417# OS check 5418os_win32="false" 5419os_cygwin="false" 5420os_qnx="false" 5421case "${host_os}" in 5422 *mingw32*) 5423 os_win32="true" 5424 ;; 5425 *nto-qnx*) 5426 os_qnx="true" 5427 ;; 5428 *cygwin*) 5429 os_cygwin="true" 5430 ;; 5431esac 5432 if test "$os_win32" = "true"; then 5433 OS_WIN32_TRUE= 5434 OS_WIN32_FALSE='#' 5435else 5436 OS_WIN32_TRUE='#' 5437 OS_WIN32_FALSE= 5438fi 5439 5440 if test "$os_qnx" = "true"; then 5441 OS_QNX_TRUE= 5442 OS_QNX_FALSE='#' 5443else 5444 OS_QNX_TRUE='#' 5445 OS_QNX_FALSE= 5446fi 5447 5448 5449case `pwd` in 5450 *\ * | *\ *) 5451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5452$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5453esac 5454 5455 5456 5457macro_version='2.4.6.42-b88ce' 5458macro_revision='2.4.6.42' 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472ltmain=$ac_aux_dir/ltmain.sh 5473 5474# Backslashify metacharacters that are still active within 5475# double-quoted strings. 5476sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5477 5478# Same as above, but do not quote variable references. 5479double_quote_subst='s/\(["`\\]\)/\\\1/g' 5480 5481# Sed substitution to delay expansion of an escaped shell variable in a 5482# double_quote_subst'ed string. 5483delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5484 5485# Sed substitution to delay expansion of an escaped single quote. 5486delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5487 5488# Sed substitution to avoid accidental globbing in evaled expressions 5489no_glob_subst='s/\*/\\\*/g' 5490 5491ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5492ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5493ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5494 5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5496$as_echo_n "checking how to print strings... " >&6; } 5497# Test print first, because it will be a builtin if present. 5498if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5499 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5500 ECHO='print -r --' 5501elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5502 ECHO='printf %s\n' 5503else 5504 # Use this function as a fallback that always works. 5505 func_fallback_echo () 5506 { 5507 eval 'cat <<_LTECHO_EOF 5508$1 5509_LTECHO_EOF' 5510 } 5511 ECHO='func_fallback_echo' 5512fi 5513 5514# func_echo_all arg... 5515# Invoke $ECHO with all args, space-separated. 5516func_echo_all () 5517{ 5518 $ECHO "" 5519} 5520 5521case $ECHO in 5522 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5523$as_echo "printf" >&6; } ;; 5524 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5525$as_echo "print -r" >&6; } ;; 5526 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5527$as_echo "cat" >&6; } ;; 5528esac 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5544$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5545if ${ac_cv_path_SED+:} false; then : 5546 $as_echo_n "(cached) " >&6 5547else 5548 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5549 for ac_i in 1 2 3 4 5 6 7; do 5550 ac_script="$ac_script$as_nl$ac_script" 5551 done 5552 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5553 { ac_script=; unset ac_script;} 5554 if test -z "$SED"; then 5555 ac_path_SED_found=false 5556 # Loop through the user's path and test for each of PROGNAME-LIST 5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5558for as_dir in $PATH 5559do 5560 IFS=$as_save_IFS 5561 test -z "$as_dir" && as_dir=. 5562 for ac_prog in sed gsed; do 5563 for ac_exec_ext in '' $ac_executable_extensions; do 5564 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5565 as_fn_executable_p "$ac_path_SED" || continue 5566# Check for GNU ac_path_SED and select it if it is found. 5567 # Check for GNU $ac_path_SED 5568case `"$ac_path_SED" --version 2>&1` in 5569*GNU*) 5570 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5571*) 5572 ac_count=0 5573 $as_echo_n 0123456789 >"conftest.in" 5574 while : 5575 do 5576 cat "conftest.in" "conftest.in" >"conftest.tmp" 5577 mv "conftest.tmp" "conftest.in" 5578 cp "conftest.in" "conftest.nl" 5579 $as_echo '' >> "conftest.nl" 5580 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5582 as_fn_arith $ac_count + 1 && ac_count=$as_val 5583 if test $ac_count -gt ${ac_path_SED_max-0}; then 5584 # Best one so far, save it but keep looking for a better one 5585 ac_cv_path_SED="$ac_path_SED" 5586 ac_path_SED_max=$ac_count 5587 fi 5588 # 10*(2^10) chars as input seems more than enough 5589 test $ac_count -gt 10 && break 5590 done 5591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5592esac 5593 5594 $ac_path_SED_found && break 3 5595 done 5596 done 5597 done 5598IFS=$as_save_IFS 5599 if test -z "$ac_cv_path_SED"; then 5600 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5601 fi 5602else 5603 ac_cv_path_SED=$SED 5604fi 5605 5606fi 5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5608$as_echo "$ac_cv_path_SED" >&6; } 5609 SED="$ac_cv_path_SED" 5610 rm -f conftest.sed 5611 5612test -z "$SED" && SED=sed 5613Xsed="$SED -e 1s/^X//" 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5626$as_echo_n "checking for fgrep... " >&6; } 5627if ${ac_cv_path_FGREP+:} false; then : 5628 $as_echo_n "(cached) " >&6 5629else 5630 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5631 then ac_cv_path_FGREP="$GREP -F" 5632 else 5633 if test -z "$FGREP"; then 5634 ac_path_FGREP_found=false 5635 # Loop through the user's path and test for each of PROGNAME-LIST 5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5637for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5638do 5639 IFS=$as_save_IFS 5640 test -z "$as_dir" && as_dir=. 5641 for ac_prog in fgrep; do 5642 for ac_exec_ext in '' $ac_executable_extensions; do 5643 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5644 as_fn_executable_p "$ac_path_FGREP" || continue 5645# Check for GNU ac_path_FGREP and select it if it is found. 5646 # Check for GNU $ac_path_FGREP 5647case `"$ac_path_FGREP" --version 2>&1` in 5648*GNU*) 5649 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5650*) 5651 ac_count=0 5652 $as_echo_n 0123456789 >"conftest.in" 5653 while : 5654 do 5655 cat "conftest.in" "conftest.in" >"conftest.tmp" 5656 mv "conftest.tmp" "conftest.in" 5657 cp "conftest.in" "conftest.nl" 5658 $as_echo 'FGREP' >> "conftest.nl" 5659 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5661 as_fn_arith $ac_count + 1 && ac_count=$as_val 5662 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5663 # Best one so far, save it but keep looking for a better one 5664 ac_cv_path_FGREP="$ac_path_FGREP" 5665 ac_path_FGREP_max=$ac_count 5666 fi 5667 # 10*(2^10) chars as input seems more than enough 5668 test $ac_count -gt 10 && break 5669 done 5670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5671esac 5672 5673 $ac_path_FGREP_found && break 3 5674 done 5675 done 5676 done 5677IFS=$as_save_IFS 5678 if test -z "$ac_cv_path_FGREP"; then 5679 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5680 fi 5681else 5682 ac_cv_path_FGREP=$FGREP 5683fi 5684 5685 fi 5686fi 5687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5688$as_echo "$ac_cv_path_FGREP" >&6; } 5689 FGREP="$ac_cv_path_FGREP" 5690 5691 5692test -z "$GREP" && GREP=grep 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712# Check whether --with-gnu-ld was given. 5713if test "${with_gnu_ld+set}" = set; then : 5714 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5715else 5716 with_gnu_ld=no 5717fi 5718 5719ac_prog=ld 5720if test yes = "$GCC"; then 5721 # Check if gcc -print-prog-name=ld gives a path. 5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5723$as_echo_n "checking for ld used by $CC... " >&6; } 5724 case $host in 5725 *-*-mingw*) 5726 # gcc leaves a trailing carriage return, which upsets mingw 5727 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5728 *) 5729 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5730 esac 5731 case $ac_prog in 5732 # Accept absolute paths. 5733 [\\/]* | ?:[\\/]*) 5734 re_direlt='/[^/][^/]*/\.\./' 5735 # Canonicalize the pathname of ld 5736 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5737 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5738 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5739 done 5740 test -z "$LD" && LD=$ac_prog 5741 ;; 5742 "") 5743 # If it fails, then pretend we aren't using GCC. 5744 ac_prog=ld 5745 ;; 5746 *) 5747 # If it is relative, then search for the first ld in PATH. 5748 with_gnu_ld=unknown 5749 ;; 5750 esac 5751elif test yes = "$with_gnu_ld"; then 5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5753$as_echo_n "checking for GNU ld... " >&6; } 5754else 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5756$as_echo_n "checking for non-GNU ld... " >&6; } 5757fi 5758if ${lt_cv_path_LD+:} false; then : 5759 $as_echo_n "(cached) " >&6 5760else 5761 if test -z "$LD"; then 5762 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5763 for ac_dir in $PATH; do 5764 IFS=$lt_save_ifs 5765 test -z "$ac_dir" && ac_dir=. 5766 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5767 lt_cv_path_LD=$ac_dir/$ac_prog 5768 # Check to see if the program is GNU ld. I'd rather use --version, 5769 # but apparently some variants of GNU ld only accept -v. 5770 # Break only if it was the GNU/non-GNU ld that we prefer. 5771 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5772 *GNU* | *'with BFD'*) 5773 test no != "$with_gnu_ld" && break 5774 ;; 5775 *) 5776 test yes != "$with_gnu_ld" && break 5777 ;; 5778 esac 5779 fi 5780 done 5781 IFS=$lt_save_ifs 5782else 5783 lt_cv_path_LD=$LD # Let the user override the test with a path. 5784fi 5785fi 5786 5787LD=$lt_cv_path_LD 5788if test -n "$LD"; then 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5790$as_echo "$LD" >&6; } 5791else 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5793$as_echo "no" >&6; } 5794fi 5795test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5797$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5798if ${lt_cv_prog_gnu_ld+:} false; then : 5799 $as_echo_n "(cached) " >&6 5800else 5801 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5802case `$LD -v 2>&1 </dev/null` in 5803*GNU* | *'with BFD'*) 5804 lt_cv_prog_gnu_ld=yes 5805 ;; 5806*) 5807 lt_cv_prog_gnu_ld=no 5808 ;; 5809esac 5810fi 5811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5812$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5813with_gnu_ld=$lt_cv_prog_gnu_ld 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5824$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5825if ${lt_cv_path_NM+:} false; then : 5826 $as_echo_n "(cached) " >&6 5827else 5828 if test -n "$NM"; then 5829 # Let the user override the test. 5830 lt_cv_path_NM=$NM 5831else 5832 lt_nm_to_check=${ac_tool_prefix}nm 5833 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5834 lt_nm_to_check="$lt_nm_to_check nm" 5835 fi 5836 for lt_tmp_nm in $lt_nm_to_check; do 5837 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5838 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5839 IFS=$lt_save_ifs 5840 test -z "$ac_dir" && ac_dir=. 5841 tmp_nm=$ac_dir/$lt_tmp_nm 5842 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5843 # Check to see if the nm accepts a BSD-compat flag. 5844 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5845 # nm: unknown option "B" ignored 5846 # Tru64's nm complains that /dev/null is an invalid object file 5847 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5848 case $build_os in 5849 mingw*) lt_bad_file=conftest.nm/nofile ;; 5850 *) lt_bad_file=/dev/null ;; 5851 esac 5852 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5853 *$lt_bad_file* | *'Invalid file or object type'*) 5854 lt_cv_path_NM="$tmp_nm -B" 5855 break 2 5856 ;; 5857 *) 5858 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5859 */dev/null*) 5860 lt_cv_path_NM="$tmp_nm -p" 5861 break 2 5862 ;; 5863 *) 5864 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5865 continue # so that we can try to find one that supports BSD flags 5866 ;; 5867 esac 5868 ;; 5869 esac 5870 fi 5871 done 5872 IFS=$lt_save_ifs 5873 done 5874 : ${lt_cv_path_NM=no} 5875fi 5876fi 5877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5878$as_echo "$lt_cv_path_NM" >&6; } 5879if test no != "$lt_cv_path_NM"; then 5880 NM=$lt_cv_path_NM 5881else 5882 # Didn't find any BSD compatible name lister, look for dumpbin. 5883 if test -n "$DUMPBIN"; then : 5884 # Let the user override the test. 5885 else 5886 if test -n "$ac_tool_prefix"; then 5887 for ac_prog in dumpbin "link -dump" 5888 do 5889 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5890set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5892$as_echo_n "checking for $ac_word... " >&6; } 5893if ${ac_cv_prog_DUMPBIN+:} false; then : 5894 $as_echo_n "(cached) " >&6 5895else 5896 if test -n "$DUMPBIN"; then 5897 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5898else 5899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5900for as_dir in $PATH 5901do 5902 IFS=$as_save_IFS 5903 test -z "$as_dir" && as_dir=. 5904 for ac_exec_ext in '' $ac_executable_extensions; do 5905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5906 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5908 break 2 5909 fi 5910done 5911 done 5912IFS=$as_save_IFS 5913 5914fi 5915fi 5916DUMPBIN=$ac_cv_prog_DUMPBIN 5917if test -n "$DUMPBIN"; then 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5919$as_echo "$DUMPBIN" >&6; } 5920else 5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5922$as_echo "no" >&6; } 5923fi 5924 5925 5926 test -n "$DUMPBIN" && break 5927 done 5928fi 5929if test -z "$DUMPBIN"; then 5930 ac_ct_DUMPBIN=$DUMPBIN 5931 for ac_prog in dumpbin "link -dump" 5932do 5933 # Extract the first word of "$ac_prog", so it can be a program name with args. 5934set dummy $ac_prog; ac_word=$2 5935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5936$as_echo_n "checking for $ac_word... " >&6; } 5937if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5938 $as_echo_n "(cached) " >&6 5939else 5940 if test -n "$ac_ct_DUMPBIN"; then 5941 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5942else 5943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5944for as_dir in $PATH 5945do 5946 IFS=$as_save_IFS 5947 test -z "$as_dir" && as_dir=. 5948 for ac_exec_ext in '' $ac_executable_extensions; do 5949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5950 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5952 break 2 5953 fi 5954done 5955 done 5956IFS=$as_save_IFS 5957 5958fi 5959fi 5960ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5961if test -n "$ac_ct_DUMPBIN"; then 5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5963$as_echo "$ac_ct_DUMPBIN" >&6; } 5964else 5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5966$as_echo "no" >&6; } 5967fi 5968 5969 5970 test -n "$ac_ct_DUMPBIN" && break 5971done 5972 5973 if test "x$ac_ct_DUMPBIN" = x; then 5974 DUMPBIN=":" 5975 else 5976 case $cross_compiling:$ac_tool_warned in 5977yes:) 5978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5980ac_tool_warned=yes ;; 5981esac 5982 DUMPBIN=$ac_ct_DUMPBIN 5983 fi 5984fi 5985 5986 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5987 *COFF*) 5988 DUMPBIN="$DUMPBIN -symbols -headers" 5989 ;; 5990 *) 5991 DUMPBIN=: 5992 ;; 5993 esac 5994 fi 5995 5996 if test : != "$DUMPBIN"; then 5997 NM=$DUMPBIN 5998 fi 5999fi 6000test -z "$NM" && NM=nm 6001 6002 6003 6004 6005 6006 6007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6008$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6009if ${lt_cv_nm_interface+:} false; then : 6010 $as_echo_n "(cached) " >&6 6011else 6012 lt_cv_nm_interface="BSD nm" 6013 echo "int some_variable = 0;" > conftest.$ac_ext 6014 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6015 (eval "$ac_compile" 2>conftest.err) 6016 cat conftest.err >&5 6017 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6018 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6019 cat conftest.err >&5 6020 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6021 cat conftest.out >&5 6022 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6023 lt_cv_nm_interface="MS dumpbin" 6024 fi 6025 rm -f conftest* 6026fi 6027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6028$as_echo "$lt_cv_nm_interface" >&6; } 6029 6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6031$as_echo_n "checking whether ln -s works... " >&6; } 6032LN_S=$as_ln_s 6033if test "$LN_S" = "ln -s"; then 6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6035$as_echo "yes" >&6; } 6036else 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6038$as_echo "no, using $LN_S" >&6; } 6039fi 6040 6041# find the maximum length of command line arguments 6042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6043$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6044if ${lt_cv_sys_max_cmd_len+:} false; then : 6045 $as_echo_n "(cached) " >&6 6046else 6047 i=0 6048 teststring=ABCD 6049 6050 case $build_os in 6051 msdosdjgpp*) 6052 # On DJGPP, this test can blow up pretty badly due to problems in libc 6053 # (any single argument exceeding 2000 bytes causes a buffer overrun 6054 # during glob expansion). Even if it were fixed, the result of this 6055 # check would be larger than it should be. 6056 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6057 ;; 6058 6059 gnu*) 6060 # Under GNU Hurd, this test is not required because there is 6061 # no limit to the length of command line arguments. 6062 # Libtool will interpret -1 as no limit whatsoever 6063 lt_cv_sys_max_cmd_len=-1; 6064 ;; 6065 6066 cygwin* | mingw* | cegcc*) 6067 # On Win9x/ME, this test blows up -- it succeeds, but takes 6068 # about 5 minutes as the teststring grows exponentially. 6069 # Worse, since 9x/ME are not pre-emptively multitasking, 6070 # you end up with a "frozen" computer, even though with patience 6071 # the test eventually succeeds (with a max line length of 256k). 6072 # Instead, let's just punt: use the minimum linelength reported by 6073 # all of the supported platforms: 8192 (on NT/2K/XP). 6074 lt_cv_sys_max_cmd_len=8192; 6075 ;; 6076 6077 mint*) 6078 # On MiNT this can take a long time and run out of memory. 6079 lt_cv_sys_max_cmd_len=8192; 6080 ;; 6081 6082 amigaos*) 6083 # On AmigaOS with pdksh, this test takes hours, literally. 6084 # So we just punt and use a minimum line length of 8192. 6085 lt_cv_sys_max_cmd_len=8192; 6086 ;; 6087 6088 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6089 # This has been around since 386BSD, at least. Likely further. 6090 if test -x /sbin/sysctl; then 6091 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6092 elif test -x /usr/sbin/sysctl; then 6093 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6094 else 6095 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6096 fi 6097 # And add a safety zone 6098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6099 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6100 ;; 6101 6102 interix*) 6103 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6104 lt_cv_sys_max_cmd_len=196608 6105 ;; 6106 6107 os2*) 6108 # The test takes a long time on OS/2. 6109 lt_cv_sys_max_cmd_len=8192 6110 ;; 6111 6112 osf*) 6113 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6114 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6115 # nice to cause kernel panics so lets avoid the loop below. 6116 # First set a reasonable default. 6117 lt_cv_sys_max_cmd_len=16384 6118 # 6119 if test -x /sbin/sysconfig; then 6120 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6121 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6122 esac 6123 fi 6124 ;; 6125 sco3.2v5*) 6126 lt_cv_sys_max_cmd_len=102400 6127 ;; 6128 sysv5* | sco5v6* | sysv4.2uw2*) 6129 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6130 if test -n "$kargmax"; then 6131 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6132 else 6133 lt_cv_sys_max_cmd_len=32768 6134 fi 6135 ;; 6136 *) 6137 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6138 if test -n "$lt_cv_sys_max_cmd_len" && \ 6139 test undefined != "$lt_cv_sys_max_cmd_len"; then 6140 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6141 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6142 else 6143 # Make teststring a little bigger before we do anything with it. 6144 # a 1K string should be a reasonable start. 6145 for i in 1 2 3 4 5 6 7 8; do 6146 teststring=$teststring$teststring 6147 done 6148 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6149 # If test is not a shell built-in, we'll probably end up computing a 6150 # maximum length that is only half of the actual maximum length, but 6151 # we can't tell. 6152 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6153 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6154 test 17 != "$i" # 1/2 MB should be enough 6155 do 6156 i=`expr $i + 1` 6157 teststring=$teststring$teststring 6158 done 6159 # Only check the string length outside the loop. 6160 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6161 teststring= 6162 # Add a significant safety factor because C++ compilers can tack on 6163 # massive amounts of additional arguments before passing them to the 6164 # linker. It appears as though 1/2 is a usable value. 6165 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6166 fi 6167 ;; 6168 esac 6169 6170fi 6171 6172if test -n "$lt_cv_sys_max_cmd_len"; then 6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6174$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6175else 6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6177$as_echo "none" >&6; } 6178fi 6179max_cmd_len=$lt_cv_sys_max_cmd_len 6180 6181 6182 6183 6184 6185 6186: ${CP="cp -f"} 6187: ${MV="mv -f"} 6188: ${RM="rm -f"} 6189 6190if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6191 lt_unset=unset 6192else 6193 lt_unset=false 6194fi 6195 6196 6197 6198 6199 6200# test EBCDIC or ASCII 6201case `echo X|tr X '\101'` in 6202 A) # ASCII based system 6203 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6204 lt_SP2NL='tr \040 \012' 6205 lt_NL2SP='tr \015\012 \040\040' 6206 ;; 6207 *) # EBCDIC based system 6208 lt_SP2NL='tr \100 \n' 6209 lt_NL2SP='tr \r\n \100\100' 6210 ;; 6211esac 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6222$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6223if ${lt_cv_to_host_file_cmd+:} false; then : 6224 $as_echo_n "(cached) " >&6 6225else 6226 case $host in 6227 *-*-mingw* ) 6228 case $build in 6229 *-*-mingw* ) # actually msys 6230 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6231 ;; 6232 *-*-cygwin* ) 6233 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6234 ;; 6235 * ) # otherwise, assume *nix 6236 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6237 ;; 6238 esac 6239 ;; 6240 *-*-cygwin* ) 6241 case $build in 6242 *-*-mingw* ) # actually msys 6243 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6244 ;; 6245 *-*-cygwin* ) 6246 lt_cv_to_host_file_cmd=func_convert_file_noop 6247 ;; 6248 * ) # otherwise, assume *nix 6249 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6250 ;; 6251 esac 6252 ;; 6253 * ) # unhandled hosts (and "normal" native builds) 6254 lt_cv_to_host_file_cmd=func_convert_file_noop 6255 ;; 6256esac 6257 6258fi 6259 6260to_host_file_cmd=$lt_cv_to_host_file_cmd 6261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6262$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6263 6264 6265 6266 6267 6268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6269$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6270if ${lt_cv_to_tool_file_cmd+:} false; then : 6271 $as_echo_n "(cached) " >&6 6272else 6273 #assume ordinary cross tools, or native build. 6274lt_cv_to_tool_file_cmd=func_convert_file_noop 6275case $host in 6276 *-*-mingw* ) 6277 case $build in 6278 *-*-mingw* ) # actually msys 6279 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6280 ;; 6281 esac 6282 ;; 6283esac 6284 6285fi 6286 6287to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6289$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6290 6291 6292 6293 6294 6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6296$as_echo_n "checking for $LD option to reload object files... " >&6; } 6297if ${lt_cv_ld_reload_flag+:} false; then : 6298 $as_echo_n "(cached) " >&6 6299else 6300 lt_cv_ld_reload_flag='-r' 6301fi 6302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6303$as_echo "$lt_cv_ld_reload_flag" >&6; } 6304reload_flag=$lt_cv_ld_reload_flag 6305case $reload_flag in 6306"" | " "*) ;; 6307*) reload_flag=" $reload_flag" ;; 6308esac 6309reload_cmds='$LD$reload_flag -o $output$reload_objs' 6310case $host_os in 6311 cygwin* | mingw* | pw32* | cegcc*) 6312 if test yes != "$GCC"; then 6313 reload_cmds=false 6314 fi 6315 ;; 6316 darwin*) 6317 if test yes = "$GCC"; then 6318 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6319 else 6320 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6321 fi 6322 ;; 6323esac 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333if test -n "$ac_tool_prefix"; then 6334 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6335set dummy ${ac_tool_prefix}objdump; ac_word=$2 6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6337$as_echo_n "checking for $ac_word... " >&6; } 6338if ${ac_cv_prog_OBJDUMP+:} false; then : 6339 $as_echo_n "(cached) " >&6 6340else 6341 if test -n "$OBJDUMP"; then 6342 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6343else 6344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6345for as_dir in $PATH 6346do 6347 IFS=$as_save_IFS 6348 test -z "$as_dir" && as_dir=. 6349 for ac_exec_ext in '' $ac_executable_extensions; do 6350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6351 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6353 break 2 6354 fi 6355done 6356 done 6357IFS=$as_save_IFS 6358 6359fi 6360fi 6361OBJDUMP=$ac_cv_prog_OBJDUMP 6362if test -n "$OBJDUMP"; then 6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6364$as_echo "$OBJDUMP" >&6; } 6365else 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6367$as_echo "no" >&6; } 6368fi 6369 6370 6371fi 6372if test -z "$ac_cv_prog_OBJDUMP"; then 6373 ac_ct_OBJDUMP=$OBJDUMP 6374 # Extract the first word of "objdump", so it can be a program name with args. 6375set dummy objdump; ac_word=$2 6376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6377$as_echo_n "checking for $ac_word... " >&6; } 6378if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6379 $as_echo_n "(cached) " >&6 6380else 6381 if test -n "$ac_ct_OBJDUMP"; then 6382 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6383else 6384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6385for as_dir in $PATH 6386do 6387 IFS=$as_save_IFS 6388 test -z "$as_dir" && as_dir=. 6389 for ac_exec_ext in '' $ac_executable_extensions; do 6390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6391 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6393 break 2 6394 fi 6395done 6396 done 6397IFS=$as_save_IFS 6398 6399fi 6400fi 6401ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6402if test -n "$ac_ct_OBJDUMP"; then 6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6404$as_echo "$ac_ct_OBJDUMP" >&6; } 6405else 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6407$as_echo "no" >&6; } 6408fi 6409 6410 if test "x$ac_ct_OBJDUMP" = x; then 6411 OBJDUMP="false" 6412 else 6413 case $cross_compiling:$ac_tool_warned in 6414yes:) 6415{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6416$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6417ac_tool_warned=yes ;; 6418esac 6419 OBJDUMP=$ac_ct_OBJDUMP 6420 fi 6421else 6422 OBJDUMP="$ac_cv_prog_OBJDUMP" 6423fi 6424 6425test -z "$OBJDUMP" && OBJDUMP=objdump 6426 6427 6428 6429 6430 6431 6432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6433$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6434if ${lt_cv_deplibs_check_method+:} false; then : 6435 $as_echo_n "(cached) " >&6 6436else 6437 lt_cv_file_magic_cmd='$MAGIC_CMD' 6438lt_cv_file_magic_test_file= 6439lt_cv_deplibs_check_method='unknown' 6440# Need to set the preceding variable on all platforms that support 6441# interlibrary dependencies. 6442# 'none' -- dependencies not supported. 6443# 'unknown' -- same as none, but documents that we really don't know. 6444# 'pass_all' -- all dependencies passed with no checks. 6445# 'test_compile' -- check by making test program. 6446# 'file_magic [[regex]]' -- check by looking for files in library path 6447# that responds to the $file_magic_cmd with a given extended regex. 6448# If you have 'file' or equivalent on your system and you're not sure 6449# whether 'pass_all' will *always* work, you probably want this one. 6450 6451case $host_os in 6452aix[4-9]*) 6453 lt_cv_deplibs_check_method=pass_all 6454 ;; 6455 6456beos*) 6457 lt_cv_deplibs_check_method=pass_all 6458 ;; 6459 6460bsdi[45]*) 6461 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6462 lt_cv_file_magic_cmd='/usr/bin/file -L' 6463 lt_cv_file_magic_test_file=/shlib/libc.so 6464 ;; 6465 6466cygwin*) 6467 # func_win32_libid is a shell function defined in ltmain.sh 6468 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6469 lt_cv_file_magic_cmd='func_win32_libid' 6470 ;; 6471 6472mingw* | pw32*) 6473 # Base MSYS/MinGW do not provide the 'file' command needed by 6474 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6475 # unless we find 'file', for example because we are cross-compiling. 6476 if ( file / ) >/dev/null 2>&1; then 6477 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6478 lt_cv_file_magic_cmd='func_win32_libid' 6479 else 6480 # Keep this pattern in sync with the one in func_win32_libid. 6481 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6482 lt_cv_file_magic_cmd='$OBJDUMP -f' 6483 fi 6484 ;; 6485 6486cegcc*) 6487 # use the weaker test based on 'objdump'. See mingw*. 6488 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6489 lt_cv_file_magic_cmd='$OBJDUMP -f' 6490 ;; 6491 6492darwin* | rhapsody*) 6493 lt_cv_deplibs_check_method=pass_all 6494 ;; 6495 6496freebsd* | dragonfly*) 6497 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6498 case $host_cpu in 6499 i*86 ) 6500 # Not sure whether the presence of OpenBSD here was a mistake. 6501 # Let's accept both of them until this is cleared up. 6502 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6503 lt_cv_file_magic_cmd=/usr/bin/file 6504 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6505 ;; 6506 esac 6507 else 6508 lt_cv_deplibs_check_method=pass_all 6509 fi 6510 ;; 6511 6512haiku*) 6513 lt_cv_deplibs_check_method=pass_all 6514 ;; 6515 6516hpux10.20* | hpux11*) 6517 lt_cv_file_magic_cmd=/usr/bin/file 6518 case $host_cpu in 6519 ia64*) 6520 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6521 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6522 ;; 6523 hppa*64*) 6524 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]' 6525 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6526 ;; 6527 *) 6528 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6529 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6530 ;; 6531 esac 6532 ;; 6533 6534interix[3-9]*) 6535 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6536 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6537 ;; 6538 6539irix5* | irix6* | nonstopux*) 6540 case $LD in 6541 *-32|*"-32 ") libmagic=32-bit;; 6542 *-n32|*"-n32 ") libmagic=N32;; 6543 *-64|*"-64 ") libmagic=64-bit;; 6544 *) libmagic=never-match;; 6545 esac 6546 lt_cv_deplibs_check_method=pass_all 6547 ;; 6548 6549# This must be glibc/ELF. 6550linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6551 lt_cv_deplibs_check_method=pass_all 6552 ;; 6553 6554netbsd*) 6555 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6556 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6557 else 6558 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6559 fi 6560 ;; 6561 6562newos6*) 6563 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6564 lt_cv_file_magic_cmd=/usr/bin/file 6565 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6566 ;; 6567 6568*nto* | *qnx*) 6569 lt_cv_deplibs_check_method=pass_all 6570 ;; 6571 6572openbsd* | bitrig*) 6573 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6574 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6575 else 6576 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6577 fi 6578 ;; 6579 6580osf3* | osf4* | osf5*) 6581 lt_cv_deplibs_check_method=pass_all 6582 ;; 6583 6584rdos*) 6585 lt_cv_deplibs_check_method=pass_all 6586 ;; 6587 6588solaris*) 6589 lt_cv_deplibs_check_method=pass_all 6590 ;; 6591 6592sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6593 lt_cv_deplibs_check_method=pass_all 6594 ;; 6595 6596sysv4 | sysv4.3*) 6597 case $host_vendor in 6598 motorola) 6599 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]' 6600 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6601 ;; 6602 ncr) 6603 lt_cv_deplibs_check_method=pass_all 6604 ;; 6605 sequent) 6606 lt_cv_file_magic_cmd='/bin/file' 6607 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6608 ;; 6609 sni) 6610 lt_cv_file_magic_cmd='/bin/file' 6611 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6612 lt_cv_file_magic_test_file=/lib/libc.so 6613 ;; 6614 siemens) 6615 lt_cv_deplibs_check_method=pass_all 6616 ;; 6617 pc) 6618 lt_cv_deplibs_check_method=pass_all 6619 ;; 6620 esac 6621 ;; 6622 6623tpf*) 6624 lt_cv_deplibs_check_method=pass_all 6625 ;; 6626os2*) 6627 lt_cv_deplibs_check_method=pass_all 6628 ;; 6629esac 6630 6631fi 6632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6633$as_echo "$lt_cv_deplibs_check_method" >&6; } 6634 6635file_magic_glob= 6636want_nocaseglob=no 6637if test "$build" = "$host"; then 6638 case $host_os in 6639 mingw* | pw32*) 6640 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6641 want_nocaseglob=yes 6642 else 6643 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6644 fi 6645 ;; 6646 esac 6647fi 6648 6649file_magic_cmd=$lt_cv_file_magic_cmd 6650deplibs_check_method=$lt_cv_deplibs_check_method 6651test -z "$deplibs_check_method" && deplibs_check_method=unknown 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674if test -n "$ac_tool_prefix"; then 6675 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6676set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6678$as_echo_n "checking for $ac_word... " >&6; } 6679if ${ac_cv_prog_DLLTOOL+:} false; then : 6680 $as_echo_n "(cached) " >&6 6681else 6682 if test -n "$DLLTOOL"; then 6683 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6684else 6685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6686for as_dir in $PATH 6687do 6688 IFS=$as_save_IFS 6689 test -z "$as_dir" && as_dir=. 6690 for ac_exec_ext in '' $ac_executable_extensions; do 6691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6692 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6694 break 2 6695 fi 6696done 6697 done 6698IFS=$as_save_IFS 6699 6700fi 6701fi 6702DLLTOOL=$ac_cv_prog_DLLTOOL 6703if test -n "$DLLTOOL"; then 6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6705$as_echo "$DLLTOOL" >&6; } 6706else 6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6708$as_echo "no" >&6; } 6709fi 6710 6711 6712fi 6713if test -z "$ac_cv_prog_DLLTOOL"; then 6714 ac_ct_DLLTOOL=$DLLTOOL 6715 # Extract the first word of "dlltool", so it can be a program name with args. 6716set dummy dlltool; ac_word=$2 6717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6718$as_echo_n "checking for $ac_word... " >&6; } 6719if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6720 $as_echo_n "(cached) " >&6 6721else 6722 if test -n "$ac_ct_DLLTOOL"; then 6723 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6724else 6725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6726for as_dir in $PATH 6727do 6728 IFS=$as_save_IFS 6729 test -z "$as_dir" && as_dir=. 6730 for ac_exec_ext in '' $ac_executable_extensions; do 6731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6732 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6734 break 2 6735 fi 6736done 6737 done 6738IFS=$as_save_IFS 6739 6740fi 6741fi 6742ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6743if test -n "$ac_ct_DLLTOOL"; then 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6745$as_echo "$ac_ct_DLLTOOL" >&6; } 6746else 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6748$as_echo "no" >&6; } 6749fi 6750 6751 if test "x$ac_ct_DLLTOOL" = x; then 6752 DLLTOOL="false" 6753 else 6754 case $cross_compiling:$ac_tool_warned in 6755yes:) 6756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6758ac_tool_warned=yes ;; 6759esac 6760 DLLTOOL=$ac_ct_DLLTOOL 6761 fi 6762else 6763 DLLTOOL="$ac_cv_prog_DLLTOOL" 6764fi 6765 6766test -z "$DLLTOOL" && DLLTOOL=dlltool 6767 6768 6769 6770 6771 6772 6773 6774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6775$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6776if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6777 $as_echo_n "(cached) " >&6 6778else 6779 lt_cv_sharedlib_from_linklib_cmd='unknown' 6780 6781case $host_os in 6782cygwin* | mingw* | pw32* | cegcc*) 6783 # two different shell functions defined in ltmain.sh; 6784 # decide which one to use based on capabilities of $DLLTOOL 6785 case `$DLLTOOL --help 2>&1` in 6786 *--identify-strict*) 6787 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6788 ;; 6789 *) 6790 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6791 ;; 6792 esac 6793 ;; 6794*) 6795 # fallback: assume linklib IS sharedlib 6796 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6797 ;; 6798esac 6799 6800fi 6801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6802$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6803sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6804test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6805 6806 6807 6808 6809 6810 6811 6812if test -n "$ac_tool_prefix"; then 6813 for ac_prog in ar 6814 do 6815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6816set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6818$as_echo_n "checking for $ac_word... " >&6; } 6819if ${ac_cv_prog_AR+:} false; then : 6820 $as_echo_n "(cached) " >&6 6821else 6822 if test -n "$AR"; then 6823 ac_cv_prog_AR="$AR" # Let the user override the test. 6824else 6825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6826for as_dir in $PATH 6827do 6828 IFS=$as_save_IFS 6829 test -z "$as_dir" && as_dir=. 6830 for ac_exec_ext in '' $ac_executable_extensions; do 6831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6832 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6834 break 2 6835 fi 6836done 6837 done 6838IFS=$as_save_IFS 6839 6840fi 6841fi 6842AR=$ac_cv_prog_AR 6843if test -n "$AR"; then 6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6845$as_echo "$AR" >&6; } 6846else 6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6848$as_echo "no" >&6; } 6849fi 6850 6851 6852 test -n "$AR" && break 6853 done 6854fi 6855if test -z "$AR"; then 6856 ac_ct_AR=$AR 6857 for ac_prog in ar 6858do 6859 # Extract the first word of "$ac_prog", so it can be a program name with args. 6860set dummy $ac_prog; ac_word=$2 6861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6862$as_echo_n "checking for $ac_word... " >&6; } 6863if ${ac_cv_prog_ac_ct_AR+:} false; then : 6864 $as_echo_n "(cached) " >&6 6865else 6866 if test -n "$ac_ct_AR"; then 6867 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6868else 6869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6870for as_dir in $PATH 6871do 6872 IFS=$as_save_IFS 6873 test -z "$as_dir" && as_dir=. 6874 for ac_exec_ext in '' $ac_executable_extensions; do 6875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6876 ac_cv_prog_ac_ct_AR="$ac_prog" 6877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6878 break 2 6879 fi 6880done 6881 done 6882IFS=$as_save_IFS 6883 6884fi 6885fi 6886ac_ct_AR=$ac_cv_prog_ac_ct_AR 6887if test -n "$ac_ct_AR"; then 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6889$as_echo "$ac_ct_AR" >&6; } 6890else 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6892$as_echo "no" >&6; } 6893fi 6894 6895 6896 test -n "$ac_ct_AR" && break 6897done 6898 6899 if test "x$ac_ct_AR" = x; then 6900 AR="false" 6901 else 6902 case $cross_compiling:$ac_tool_warned in 6903yes:) 6904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6906ac_tool_warned=yes ;; 6907esac 6908 AR=$ac_ct_AR 6909 fi 6910fi 6911 6912: ${AR=ar} 6913 6914 6915 6916 6917 6918 6919# Use ARFLAGS variable as AR's operation code to sync the variable naming with 6920# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 6921# higher priority because thats what people were doing historically (setting 6922# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 6923# variable obsoleted/removed. 6924 6925test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 6926lt_ar_flags=$AR_FLAGS 6927 6928 6929 6930 6931 6932 6933# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 6934# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 6935 6936 6937 6938 6939 6940 6941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6942$as_echo_n "checking for archiver @FILE support... " >&6; } 6943if ${lt_cv_ar_at_file+:} false; then : 6944 $as_echo_n "(cached) " >&6 6945else 6946 lt_cv_ar_at_file=no 6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6948/* end confdefs.h. */ 6949 6950int 6951main () 6952{ 6953 6954 ; 6955 return 0; 6956} 6957_ACEOF 6958if ac_fn_c_try_compile "$LINENO"; then : 6959 echo conftest.$ac_objext > conftest.lst 6960 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6962 (eval $lt_ar_try) 2>&5 6963 ac_status=$? 6964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6965 test $ac_status = 0; } 6966 if test 0 -eq "$ac_status"; then 6967 # Ensure the archiver fails upon bogus file names. 6968 rm -f conftest.$ac_objext libconftest.a 6969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6970 (eval $lt_ar_try) 2>&5 6971 ac_status=$? 6972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6973 test $ac_status = 0; } 6974 if test 0 -ne "$ac_status"; then 6975 lt_cv_ar_at_file=@ 6976 fi 6977 fi 6978 rm -f conftest.* libconftest.a 6979 6980fi 6981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6982 6983fi 6984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6985$as_echo "$lt_cv_ar_at_file" >&6; } 6986 6987if test no = "$lt_cv_ar_at_file"; then 6988 archiver_list_spec= 6989else 6990 archiver_list_spec=$lt_cv_ar_at_file 6991fi 6992 6993 6994 6995 6996 6997 6998 6999if test -n "$ac_tool_prefix"; then 7000 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7001set dummy ${ac_tool_prefix}strip; ac_word=$2 7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7003$as_echo_n "checking for $ac_word... " >&6; } 7004if ${ac_cv_prog_STRIP+:} false; then : 7005 $as_echo_n "(cached) " >&6 7006else 7007 if test -n "$STRIP"; then 7008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7009else 7010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7011for as_dir in $PATH 7012do 7013 IFS=$as_save_IFS 7014 test -z "$as_dir" && as_dir=. 7015 for ac_exec_ext in '' $ac_executable_extensions; do 7016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7017 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7019 break 2 7020 fi 7021done 7022 done 7023IFS=$as_save_IFS 7024 7025fi 7026fi 7027STRIP=$ac_cv_prog_STRIP 7028if test -n "$STRIP"; then 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7030$as_echo "$STRIP" >&6; } 7031else 7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7033$as_echo "no" >&6; } 7034fi 7035 7036 7037fi 7038if test -z "$ac_cv_prog_STRIP"; then 7039 ac_ct_STRIP=$STRIP 7040 # Extract the first word of "strip", so it can be a program name with args. 7041set dummy strip; ac_word=$2 7042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7043$as_echo_n "checking for $ac_word... " >&6; } 7044if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7045 $as_echo_n "(cached) " >&6 7046else 7047 if test -n "$ac_ct_STRIP"; then 7048 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7049else 7050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7051for as_dir in $PATH 7052do 7053 IFS=$as_save_IFS 7054 test -z "$as_dir" && as_dir=. 7055 for ac_exec_ext in '' $ac_executable_extensions; do 7056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7057 ac_cv_prog_ac_ct_STRIP="strip" 7058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7059 break 2 7060 fi 7061done 7062 done 7063IFS=$as_save_IFS 7064 7065fi 7066fi 7067ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7068if test -n "$ac_ct_STRIP"; then 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7070$as_echo "$ac_ct_STRIP" >&6; } 7071else 7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7073$as_echo "no" >&6; } 7074fi 7075 7076 if test "x$ac_ct_STRIP" = x; then 7077 STRIP=":" 7078 else 7079 case $cross_compiling:$ac_tool_warned in 7080yes:) 7081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7083ac_tool_warned=yes ;; 7084esac 7085 STRIP=$ac_ct_STRIP 7086 fi 7087else 7088 STRIP="$ac_cv_prog_STRIP" 7089fi 7090 7091test -z "$STRIP" && STRIP=: 7092 7093 7094 7095 7096 7097 7098if test -n "$ac_tool_prefix"; then 7099 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7100set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7102$as_echo_n "checking for $ac_word... " >&6; } 7103if ${ac_cv_prog_RANLIB+:} false; then : 7104 $as_echo_n "(cached) " >&6 7105else 7106 if test -n "$RANLIB"; then 7107 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7108else 7109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7110for as_dir in $PATH 7111do 7112 IFS=$as_save_IFS 7113 test -z "$as_dir" && as_dir=. 7114 for ac_exec_ext in '' $ac_executable_extensions; do 7115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7116 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7118 break 2 7119 fi 7120done 7121 done 7122IFS=$as_save_IFS 7123 7124fi 7125fi 7126RANLIB=$ac_cv_prog_RANLIB 7127if test -n "$RANLIB"; then 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7129$as_echo "$RANLIB" >&6; } 7130else 7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7132$as_echo "no" >&6; } 7133fi 7134 7135 7136fi 7137if test -z "$ac_cv_prog_RANLIB"; then 7138 ac_ct_RANLIB=$RANLIB 7139 # Extract the first word of "ranlib", so it can be a program name with args. 7140set dummy ranlib; ac_word=$2 7141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7142$as_echo_n "checking for $ac_word... " >&6; } 7143if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7144 $as_echo_n "(cached) " >&6 7145else 7146 if test -n "$ac_ct_RANLIB"; then 7147 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7148else 7149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7150for as_dir in $PATH 7151do 7152 IFS=$as_save_IFS 7153 test -z "$as_dir" && as_dir=. 7154 for ac_exec_ext in '' $ac_executable_extensions; do 7155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7156 ac_cv_prog_ac_ct_RANLIB="ranlib" 7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7158 break 2 7159 fi 7160done 7161 done 7162IFS=$as_save_IFS 7163 7164fi 7165fi 7166ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7167if test -n "$ac_ct_RANLIB"; then 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7169$as_echo "$ac_ct_RANLIB" >&6; } 7170else 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7172$as_echo "no" >&6; } 7173fi 7174 7175 if test "x$ac_ct_RANLIB" = x; then 7176 RANLIB=":" 7177 else 7178 case $cross_compiling:$ac_tool_warned in 7179yes:) 7180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7182ac_tool_warned=yes ;; 7183esac 7184 RANLIB=$ac_ct_RANLIB 7185 fi 7186else 7187 RANLIB="$ac_cv_prog_RANLIB" 7188fi 7189 7190test -z "$RANLIB" && RANLIB=: 7191 7192 7193 7194 7195 7196 7197# Determine commands to create old-style static archives. 7198old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7199old_postinstall_cmds='chmod 644 $oldlib' 7200old_postuninstall_cmds= 7201 7202if test -n "$RANLIB"; then 7203 case $host_os in 7204 bitrig* | openbsd*) 7205 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7206 ;; 7207 *) 7208 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7209 ;; 7210 esac 7211 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7212fi 7213 7214case $host_os in 7215 darwin*) 7216 lock_old_archive_extraction=yes ;; 7217 *) 7218 lock_old_archive_extraction=no ;; 7219esac 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259# If no C compiler was specified, use CC. 7260LTCC=${LTCC-"$CC"} 7261 7262# If no C compiler flags were specified, use CFLAGS. 7263LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7264 7265# Allow CC to be a program name with arguments. 7266compiler=$CC 7267 7268 7269# Check for command to grab the raw symbol name followed by C symbol from nm. 7270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7271$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7272if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7273 $as_echo_n "(cached) " >&6 7274else 7275 7276# These are sane defaults that work on at least a few old systems. 7277# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7278 7279# Character class describing NM global symbol codes. 7280symcode='[BCDEGRST]' 7281 7282# Regexp to match symbols that can be accessed directly from C. 7283sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7284 7285# Define system-specific variables. 7286case $host_os in 7287aix*) 7288 symcode='[BCDT]' 7289 ;; 7290cygwin* | mingw* | pw32* | cegcc*) 7291 symcode='[ABCDGISTW]' 7292 ;; 7293hpux*) 7294 if test ia64 = "$host_cpu"; then 7295 symcode='[ABCDEGRST]' 7296 fi 7297 ;; 7298irix* | nonstopux*) 7299 symcode='[BCDEGRST]' 7300 ;; 7301osf*) 7302 symcode='[BCDEGQRST]' 7303 ;; 7304solaris*) 7305 symcode='[BDRT]' 7306 ;; 7307sco3.2v5*) 7308 symcode='[DT]' 7309 ;; 7310sysv4.2uw2*) 7311 symcode='[DT]' 7312 ;; 7313sysv5* | sco5v6* | unixware* | OpenUNIX*) 7314 symcode='[ABDT]' 7315 ;; 7316sysv4) 7317 symcode='[DFNSTU]' 7318 ;; 7319esac 7320 7321# If we're using GNU nm, then use its standard symbol codes. 7322case `$NM -V 2>&1` in 7323*GNU* | *'with BFD'*) 7324 symcode='[ABCDGIRSTW]' ;; 7325esac 7326 7327if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7328 # Gets list of data symbols to import. 7329 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7330 # Adjust the below global symbol transforms to fixup imported variables. 7331 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7332 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7333 lt_c_name_lib_hook="\ 7334 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7335 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7336else 7337 # Disable hooks by default. 7338 lt_cv_sys_global_symbol_to_import= 7339 lt_cdecl_hook= 7340 lt_c_name_hook= 7341 lt_c_name_lib_hook= 7342fi 7343 7344# Transform an extracted symbol line into a proper C declaration. 7345# Some systems (esp. on ia64) link data and code symbols differently, 7346# so use this general approach. 7347lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7348$lt_cdecl_hook\ 7349" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7350" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7351 7352# Transform an extracted symbol line into symbol name and symbol address 7353lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7354$lt_c_name_hook\ 7355" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7356" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7357 7358# Transform an extracted symbol line into symbol name with lib prefix and 7359# symbol address. 7360lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7361$lt_c_name_lib_hook\ 7362" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7363" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7364" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7365 7366# Handle CRLF in mingw tool chain 7367opt_cr= 7368case $build_os in 7369mingw*) 7370 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7371 ;; 7372esac 7373 7374# Try without a prefix underscore, then with it. 7375for ac_symprfx in "" "_"; do 7376 7377 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7378 symxfrm="\\1 $ac_symprfx\\2 \\2" 7379 7380 # Write the raw and C identifiers. 7381 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7382 # Fake it for dumpbin and say T for any non-static function, 7383 # D for any global variable and I for any imported variable. 7384 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 7385 # which start with @ or ?. 7386 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7387" {last_section=section; section=\$ 3};"\ 7388" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7389" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7390" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7391" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7392" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7393" \$ 0!~/External *\|/{next};"\ 7394" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7395" {if(hide[section]) next};"\ 7396" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7397" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7398" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7399" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7400" ' prfx=^$ac_symprfx" 7401 else 7402 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7403 fi 7404 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7405 7406 # Check to see that the pipe works correctly. 7407 pipe_works=no 7408 7409 rm -f conftest* 7410 cat > conftest.$ac_ext <<_LT_EOF 7411#ifdef __cplusplus 7412extern "C" { 7413#endif 7414char nm_test_var; 7415void nm_test_func(void); 7416void nm_test_func(void){} 7417#ifdef __cplusplus 7418} 7419#endif 7420int main(){nm_test_var='a';nm_test_func();return(0);} 7421_LT_EOF 7422 7423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7424 (eval $ac_compile) 2>&5 7425 ac_status=$? 7426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7427 test $ac_status = 0; }; then 7428 # Now try to grab the symbols. 7429 nlist=conftest.nm 7430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7431 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7432 ac_status=$? 7433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7434 test $ac_status = 0; } && test -s "$nlist"; then 7435 # Try sorting and uniquifying the output. 7436 if sort "$nlist" | uniq > "$nlist"T; then 7437 mv -f "$nlist"T "$nlist" 7438 else 7439 rm -f "$nlist"T 7440 fi 7441 7442 # Make sure that we snagged all the symbols we need. 7443 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7444 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7445 cat <<_LT_EOF > conftest.$ac_ext 7446/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7447#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7448/* DATA imports from DLLs on WIN32 can't be const, because runtime 7449 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7450# define LT_DLSYM_CONST 7451#elif defined __osf__ 7452/* This system does not cope well with relocations in const data. */ 7453# define LT_DLSYM_CONST 7454#else 7455# define LT_DLSYM_CONST const 7456#endif 7457 7458#ifdef __cplusplus 7459extern "C" { 7460#endif 7461 7462_LT_EOF 7463 # Now generate the symbol file. 7464 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7465 7466 cat <<_LT_EOF >> conftest.$ac_ext 7467 7468/* The mapping between symbol names and symbols. */ 7469LT_DLSYM_CONST struct { 7470 const char *name; 7471 void *address; 7472} 7473lt__PROGRAM__LTX_preloaded_symbols[] = 7474{ 7475 { "@PROGRAM@", (void *) 0 }, 7476_LT_EOF 7477 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7478 cat <<\_LT_EOF >> conftest.$ac_ext 7479 {0, (void *) 0} 7480}; 7481 7482/* This works around a problem in FreeBSD linker */ 7483#ifdef FREEBSD_WORKAROUND 7484static const void *lt_preloaded_setup() { 7485 return lt__PROGRAM__LTX_preloaded_symbols; 7486} 7487#endif 7488 7489#ifdef __cplusplus 7490} 7491#endif 7492_LT_EOF 7493 # Now try linking the two files. 7494 mv conftest.$ac_objext conftstm.$ac_objext 7495 lt_globsym_save_LIBS=$LIBS 7496 lt_globsym_save_CFLAGS=$CFLAGS 7497 LIBS=conftstm.$ac_objext 7498 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7500 (eval $ac_link) 2>&5 7501 ac_status=$? 7502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7503 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7504 pipe_works=yes 7505 fi 7506 LIBS=$lt_globsym_save_LIBS 7507 CFLAGS=$lt_globsym_save_CFLAGS 7508 else 7509 echo "cannot find nm_test_func in $nlist" >&5 7510 fi 7511 else 7512 echo "cannot find nm_test_var in $nlist" >&5 7513 fi 7514 else 7515 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7516 fi 7517 else 7518 echo "$progname: failed program was:" >&5 7519 cat conftest.$ac_ext >&5 7520 fi 7521 rm -rf conftest* conftst* 7522 7523 # Do not use the global_symbol_pipe unless it works. 7524 if test yes = "$pipe_works"; then 7525 break 7526 else 7527 lt_cv_sys_global_symbol_pipe= 7528 fi 7529done 7530 7531fi 7532 7533if test -z "$lt_cv_sys_global_symbol_pipe"; then 7534 lt_cv_sys_global_symbol_to_cdecl= 7535fi 7536if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7538$as_echo "failed" >&6; } 7539else 7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7541$as_echo "ok" >&6; } 7542fi 7543 7544# Response file support. 7545if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7546 nm_file_list_spec='@' 7547elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7548 nm_file_list_spec='@' 7549fi 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7588$as_echo_n "checking for sysroot... " >&6; } 7589 7590# Check whether --with-sysroot was given. 7591if test "${with_sysroot+set}" = set; then : 7592 withval=$with_sysroot; 7593else 7594 with_sysroot=no 7595fi 7596 7597 7598lt_sysroot= 7599case $with_sysroot in #( 7600 yes) 7601 if test yes = "$GCC"; then 7602 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7603 fi 7604 ;; #( 7605 /*) 7606 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7607 ;; #( 7608 no|'') 7609 ;; #( 7610 *) 7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7612$as_echo "$with_sysroot" >&6; } 7613 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7614 ;; 7615esac 7616 7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7618$as_echo "${lt_sysroot:-no}" >&6; } 7619 7620 7621 7622 7623 7624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7625$as_echo_n "checking for a working dd... " >&6; } 7626if ${ac_cv_path_lt_DD+:} false; then : 7627 $as_echo_n "(cached) " >&6 7628else 7629 printf 0123456789abcdef0123456789abcdef >conftest.i 7630cat conftest.i conftest.i >conftest2.i 7631: ${lt_DD:=$DD} 7632if test -z "$lt_DD"; then 7633 ac_path_lt_DD_found=false 7634 # Loop through the user's path and test for each of PROGNAME-LIST 7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7636for as_dir in $PATH 7637do 7638 IFS=$as_save_IFS 7639 test -z "$as_dir" && as_dir=. 7640 for ac_prog in dd; do 7641 for ac_exec_ext in '' $ac_executable_extensions; do 7642 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7643 as_fn_executable_p "$ac_path_lt_DD" || continue 7644if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7645 cmp -s conftest.i conftest.out \ 7646 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7647fi 7648 $ac_path_lt_DD_found && break 3 7649 done 7650 done 7651 done 7652IFS=$as_save_IFS 7653 if test -z "$ac_cv_path_lt_DD"; then 7654 : 7655 fi 7656else 7657 ac_cv_path_lt_DD=$lt_DD 7658fi 7659 7660rm -f conftest.i conftest2.i conftest.out 7661fi 7662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7663$as_echo "$ac_cv_path_lt_DD" >&6; } 7664 7665 7666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7667$as_echo_n "checking how to truncate binary pipes... " >&6; } 7668if ${lt_cv_truncate_bin+:} false; then : 7669 $as_echo_n "(cached) " >&6 7670else 7671 printf 0123456789abcdef0123456789abcdef >conftest.i 7672cat conftest.i conftest.i >conftest2.i 7673lt_cv_truncate_bin= 7674if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7675 cmp -s conftest.i conftest.out \ 7676 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7677fi 7678rm -f conftest.i conftest2.i conftest.out 7679test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7680fi 7681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7682$as_echo "$lt_cv_truncate_bin" >&6; } 7683 7684 7685 7686 7687 7688 7689 7690# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7691func_cc_basename () 7692{ 7693 for cc_temp in $*""; do 7694 case $cc_temp in 7695 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7696 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7697 \-*) ;; 7698 *) break;; 7699 esac 7700 done 7701 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7702} 7703 7704# Check whether --enable-libtool-lock was given. 7705if test "${enable_libtool_lock+set}" = set; then : 7706 enableval=$enable_libtool_lock; 7707fi 7708 7709test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7710 7711# Some flags need to be propagated to the compiler or linker for good 7712# libtool support. 7713case $host in 7714ia64-*-hpux*) 7715 # Find out what ABI is being produced by ac_compile, and set mode 7716 # options accordingly. 7717 echo 'int i;' > conftest.$ac_ext 7718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7719 (eval $ac_compile) 2>&5 7720 ac_status=$? 7721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7722 test $ac_status = 0; }; then 7723 case `/usr/bin/file conftest.$ac_objext` in 7724 *ELF-32*) 7725 HPUX_IA64_MODE=32 7726 ;; 7727 *ELF-64*) 7728 HPUX_IA64_MODE=64 7729 ;; 7730 esac 7731 fi 7732 rm -rf conftest* 7733 ;; 7734*-*-irix6*) 7735 # Find out what ABI is being produced by ac_compile, and set linker 7736 # options accordingly. 7737 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7739 (eval $ac_compile) 2>&5 7740 ac_status=$? 7741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7742 test $ac_status = 0; }; then 7743 if test yes = "$lt_cv_prog_gnu_ld"; then 7744 case `/usr/bin/file conftest.$ac_objext` in 7745 *32-bit*) 7746 LD="${LD-ld} -melf32bsmip" 7747 ;; 7748 *N32*) 7749 LD="${LD-ld} -melf32bmipn32" 7750 ;; 7751 *64-bit*) 7752 LD="${LD-ld} -melf64bmip" 7753 ;; 7754 esac 7755 else 7756 case `/usr/bin/file conftest.$ac_objext` in 7757 *32-bit*) 7758 LD="${LD-ld} -32" 7759 ;; 7760 *N32*) 7761 LD="${LD-ld} -n32" 7762 ;; 7763 *64-bit*) 7764 LD="${LD-ld} -64" 7765 ;; 7766 esac 7767 fi 7768 fi 7769 rm -rf conftest* 7770 ;; 7771 7772mips64*-*linux*) 7773 # Find out what ABI is being produced by ac_compile, and set linker 7774 # options accordingly. 7775 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7776 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7777 (eval $ac_compile) 2>&5 7778 ac_status=$? 7779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7780 test $ac_status = 0; }; then 7781 emul=elf 7782 case `/usr/bin/file conftest.$ac_objext` in 7783 *32-bit*) 7784 emul="${emul}32" 7785 ;; 7786 *64-bit*) 7787 emul="${emul}64" 7788 ;; 7789 esac 7790 case `/usr/bin/file conftest.$ac_objext` in 7791 *MSB*) 7792 emul="${emul}btsmip" 7793 ;; 7794 *LSB*) 7795 emul="${emul}ltsmip" 7796 ;; 7797 esac 7798 case `/usr/bin/file conftest.$ac_objext` in 7799 *N32*) 7800 emul="${emul}n32" 7801 ;; 7802 esac 7803 LD="${LD-ld} -m $emul" 7804 fi 7805 rm -rf conftest* 7806 ;; 7807 7808x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7809s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7810 # Find out what ABI is being produced by ac_compile, and set linker 7811 # options accordingly. Note that the listed cases only cover the 7812 # situations where additional linker options are needed (such as when 7813 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7814 # vice versa); the common cases where no linker options are needed do 7815 # not appear in the list. 7816 echo 'int i;' > conftest.$ac_ext 7817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7818 (eval $ac_compile) 2>&5 7819 ac_status=$? 7820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7821 test $ac_status = 0; }; then 7822 case `/usr/bin/file conftest.o` in 7823 *32-bit*) 7824 case $host in 7825 x86_64-*kfreebsd*-gnu) 7826 LD="${LD-ld} -m elf_i386_fbsd" 7827 ;; 7828 x86_64-*linux*) 7829 case `/usr/bin/file conftest.o` in 7830 *x86-64*) 7831 LD="${LD-ld} -m elf32_x86_64" 7832 ;; 7833 *) 7834 LD="${LD-ld} -m elf_i386" 7835 ;; 7836 esac 7837 ;; 7838 powerpc64le-*linux*) 7839 LD="${LD-ld} -m elf32lppclinux" 7840 ;; 7841 powerpc64-*linux*) 7842 LD="${LD-ld} -m elf32ppclinux" 7843 ;; 7844 s390x-*linux*) 7845 LD="${LD-ld} -m elf_s390" 7846 ;; 7847 sparc64-*linux*) 7848 LD="${LD-ld} -m elf32_sparc" 7849 ;; 7850 esac 7851 ;; 7852 *64-bit*) 7853 case $host in 7854 x86_64-*kfreebsd*-gnu) 7855 LD="${LD-ld} -m elf_x86_64_fbsd" 7856 ;; 7857 x86_64-*linux*) 7858 LD="${LD-ld} -m elf_x86_64" 7859 ;; 7860 powerpcle-*linux*) 7861 LD="${LD-ld} -m elf64lppc" 7862 ;; 7863 powerpc-*linux*) 7864 LD="${LD-ld} -m elf64ppc" 7865 ;; 7866 s390*-*linux*|s390*-*tpf*) 7867 LD="${LD-ld} -m elf64_s390" 7868 ;; 7869 sparc*-*linux*) 7870 LD="${LD-ld} -m elf64_sparc" 7871 ;; 7872 esac 7873 ;; 7874 esac 7875 fi 7876 rm -rf conftest* 7877 ;; 7878 7879*-*-sco3.2v5*) 7880 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7881 SAVE_CFLAGS=$CFLAGS 7882 CFLAGS="$CFLAGS -belf" 7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7884$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7885if ${lt_cv_cc_needs_belf+:} false; then : 7886 $as_echo_n "(cached) " >&6 7887else 7888 ac_ext=c 7889ac_cpp='$CPP $CPPFLAGS' 7890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7892ac_compiler_gnu=$ac_cv_c_compiler_gnu 7893 7894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7895/* end confdefs.h. */ 7896 7897int 7898main () 7899{ 7900 7901 ; 7902 return 0; 7903} 7904_ACEOF 7905if ac_fn_c_try_link "$LINENO"; then : 7906 lt_cv_cc_needs_belf=yes 7907else 7908 lt_cv_cc_needs_belf=no 7909fi 7910rm -f core conftest.err conftest.$ac_objext \ 7911 conftest$ac_exeext conftest.$ac_ext 7912 ac_ext=c 7913ac_cpp='$CPP $CPPFLAGS' 7914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7916ac_compiler_gnu=$ac_cv_c_compiler_gnu 7917 7918fi 7919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7920$as_echo "$lt_cv_cc_needs_belf" >&6; } 7921 if test yes != "$lt_cv_cc_needs_belf"; then 7922 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7923 CFLAGS=$SAVE_CFLAGS 7924 fi 7925 ;; 7926*-*solaris*) 7927 # Find out what ABI is being produced by ac_compile, and set linker 7928 # options accordingly. 7929 echo 'int i;' > conftest.$ac_ext 7930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7931 (eval $ac_compile) 2>&5 7932 ac_status=$? 7933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7934 test $ac_status = 0; }; then 7935 case `/usr/bin/file conftest.o` in 7936 *64-bit*) 7937 case $lt_cv_prog_gnu_ld in 7938 yes*) 7939 case $host in 7940 i?86-*-solaris*|x86_64-*-solaris*) 7941 LD="${LD-ld} -m elf_x86_64" 7942 ;; 7943 sparc*-*-solaris*) 7944 LD="${LD-ld} -m elf64_sparc" 7945 ;; 7946 esac 7947 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7948 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7949 LD=${LD-ld}_sol2 7950 fi 7951 ;; 7952 *) 7953 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7954 LD="${LD-ld} -64" 7955 fi 7956 ;; 7957 esac 7958 ;; 7959 esac 7960 fi 7961 rm -rf conftest* 7962 ;; 7963esac 7964 7965need_locks=$enable_libtool_lock 7966 7967if test -n "$ac_tool_prefix"; then 7968 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7969set dummy ${ac_tool_prefix}mt; ac_word=$2 7970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7971$as_echo_n "checking for $ac_word... " >&6; } 7972if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7973 $as_echo_n "(cached) " >&6 7974else 7975 if test -n "$MANIFEST_TOOL"; then 7976 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7977else 7978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7979for as_dir in $PATH 7980do 7981 IFS=$as_save_IFS 7982 test -z "$as_dir" && as_dir=. 7983 for ac_exec_ext in '' $ac_executable_extensions; do 7984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7985 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7987 break 2 7988 fi 7989done 7990 done 7991IFS=$as_save_IFS 7992 7993fi 7994fi 7995MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7996if test -n "$MANIFEST_TOOL"; then 7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7998$as_echo "$MANIFEST_TOOL" >&6; } 7999else 8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8001$as_echo "no" >&6; } 8002fi 8003 8004 8005fi 8006if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8007 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8008 # Extract the first word of "mt", so it can be a program name with args. 8009set dummy mt; ac_word=$2 8010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8011$as_echo_n "checking for $ac_word... " >&6; } 8012if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8013 $as_echo_n "(cached) " >&6 8014else 8015 if test -n "$ac_ct_MANIFEST_TOOL"; then 8016 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8017else 8018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8019for as_dir in $PATH 8020do 8021 IFS=$as_save_IFS 8022 test -z "$as_dir" && as_dir=. 8023 for ac_exec_ext in '' $ac_executable_extensions; do 8024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8025 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8027 break 2 8028 fi 8029done 8030 done 8031IFS=$as_save_IFS 8032 8033fi 8034fi 8035ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8036if test -n "$ac_ct_MANIFEST_TOOL"; then 8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8038$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8039else 8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8041$as_echo "no" >&6; } 8042fi 8043 8044 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8045 MANIFEST_TOOL=":" 8046 else 8047 case $cross_compiling:$ac_tool_warned in 8048yes:) 8049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8051ac_tool_warned=yes ;; 8052esac 8053 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8054 fi 8055else 8056 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8057fi 8058 8059test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8061$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8062if ${lt_cv_path_mainfest_tool+:} false; then : 8063 $as_echo_n "(cached) " >&6 8064else 8065 lt_cv_path_mainfest_tool=no 8066 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8067 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8068 cat conftest.err >&5 8069 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8070 lt_cv_path_mainfest_tool=yes 8071 fi 8072 rm -f conftest* 8073fi 8074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8075$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8076if test yes != "$lt_cv_path_mainfest_tool"; then 8077 MANIFEST_TOOL=: 8078fi 8079 8080 8081 8082 8083 8084 8085 case $host_os in 8086 rhapsody* | darwin*) 8087 if test -n "$ac_tool_prefix"; then 8088 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8089set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8091$as_echo_n "checking for $ac_word... " >&6; } 8092if ${ac_cv_prog_DSYMUTIL+:} false; then : 8093 $as_echo_n "(cached) " >&6 8094else 8095 if test -n "$DSYMUTIL"; then 8096 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8097else 8098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8099for as_dir in $PATH 8100do 8101 IFS=$as_save_IFS 8102 test -z "$as_dir" && as_dir=. 8103 for ac_exec_ext in '' $ac_executable_extensions; do 8104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8105 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8107 break 2 8108 fi 8109done 8110 done 8111IFS=$as_save_IFS 8112 8113fi 8114fi 8115DSYMUTIL=$ac_cv_prog_DSYMUTIL 8116if test -n "$DSYMUTIL"; then 8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8118$as_echo "$DSYMUTIL" >&6; } 8119else 8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8121$as_echo "no" >&6; } 8122fi 8123 8124 8125fi 8126if test -z "$ac_cv_prog_DSYMUTIL"; then 8127 ac_ct_DSYMUTIL=$DSYMUTIL 8128 # Extract the first word of "dsymutil", so it can be a program name with args. 8129set dummy dsymutil; ac_word=$2 8130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8131$as_echo_n "checking for $ac_word... " >&6; } 8132if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8133 $as_echo_n "(cached) " >&6 8134else 8135 if test -n "$ac_ct_DSYMUTIL"; then 8136 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8137else 8138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8139for as_dir in $PATH 8140do 8141 IFS=$as_save_IFS 8142 test -z "$as_dir" && as_dir=. 8143 for ac_exec_ext in '' $ac_executable_extensions; do 8144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8145 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8147 break 2 8148 fi 8149done 8150 done 8151IFS=$as_save_IFS 8152 8153fi 8154fi 8155ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8156if test -n "$ac_ct_DSYMUTIL"; then 8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8158$as_echo "$ac_ct_DSYMUTIL" >&6; } 8159else 8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8161$as_echo "no" >&6; } 8162fi 8163 8164 if test "x$ac_ct_DSYMUTIL" = x; then 8165 DSYMUTIL=":" 8166 else 8167 case $cross_compiling:$ac_tool_warned in 8168yes:) 8169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8171ac_tool_warned=yes ;; 8172esac 8173 DSYMUTIL=$ac_ct_DSYMUTIL 8174 fi 8175else 8176 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8177fi 8178 8179 if test -n "$ac_tool_prefix"; then 8180 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8181set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8183$as_echo_n "checking for $ac_word... " >&6; } 8184if ${ac_cv_prog_NMEDIT+:} false; then : 8185 $as_echo_n "(cached) " >&6 8186else 8187 if test -n "$NMEDIT"; then 8188 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8189else 8190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8191for as_dir in $PATH 8192do 8193 IFS=$as_save_IFS 8194 test -z "$as_dir" && as_dir=. 8195 for ac_exec_ext in '' $ac_executable_extensions; do 8196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8197 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8199 break 2 8200 fi 8201done 8202 done 8203IFS=$as_save_IFS 8204 8205fi 8206fi 8207NMEDIT=$ac_cv_prog_NMEDIT 8208if test -n "$NMEDIT"; then 8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8210$as_echo "$NMEDIT" >&6; } 8211else 8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8213$as_echo "no" >&6; } 8214fi 8215 8216 8217fi 8218if test -z "$ac_cv_prog_NMEDIT"; then 8219 ac_ct_NMEDIT=$NMEDIT 8220 # Extract the first word of "nmedit", so it can be a program name with args. 8221set dummy nmedit; ac_word=$2 8222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8223$as_echo_n "checking for $ac_word... " >&6; } 8224if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8225 $as_echo_n "(cached) " >&6 8226else 8227 if test -n "$ac_ct_NMEDIT"; then 8228 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8229else 8230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8231for as_dir in $PATH 8232do 8233 IFS=$as_save_IFS 8234 test -z "$as_dir" && as_dir=. 8235 for ac_exec_ext in '' $ac_executable_extensions; do 8236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8237 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8239 break 2 8240 fi 8241done 8242 done 8243IFS=$as_save_IFS 8244 8245fi 8246fi 8247ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8248if test -n "$ac_ct_NMEDIT"; then 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8250$as_echo "$ac_ct_NMEDIT" >&6; } 8251else 8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8253$as_echo "no" >&6; } 8254fi 8255 8256 if test "x$ac_ct_NMEDIT" = x; then 8257 NMEDIT=":" 8258 else 8259 case $cross_compiling:$ac_tool_warned in 8260yes:) 8261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8263ac_tool_warned=yes ;; 8264esac 8265 NMEDIT=$ac_ct_NMEDIT 8266 fi 8267else 8268 NMEDIT="$ac_cv_prog_NMEDIT" 8269fi 8270 8271 if test -n "$ac_tool_prefix"; then 8272 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8273set dummy ${ac_tool_prefix}lipo; ac_word=$2 8274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8275$as_echo_n "checking for $ac_word... " >&6; } 8276if ${ac_cv_prog_LIPO+:} false; then : 8277 $as_echo_n "(cached) " >&6 8278else 8279 if test -n "$LIPO"; then 8280 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8281else 8282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8283for as_dir in $PATH 8284do 8285 IFS=$as_save_IFS 8286 test -z "$as_dir" && as_dir=. 8287 for ac_exec_ext in '' $ac_executable_extensions; do 8288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8289 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8291 break 2 8292 fi 8293done 8294 done 8295IFS=$as_save_IFS 8296 8297fi 8298fi 8299LIPO=$ac_cv_prog_LIPO 8300if test -n "$LIPO"; then 8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8302$as_echo "$LIPO" >&6; } 8303else 8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8305$as_echo "no" >&6; } 8306fi 8307 8308 8309fi 8310if test -z "$ac_cv_prog_LIPO"; then 8311 ac_ct_LIPO=$LIPO 8312 # Extract the first word of "lipo", so it can be a program name with args. 8313set dummy lipo; ac_word=$2 8314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8315$as_echo_n "checking for $ac_word... " >&6; } 8316if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8317 $as_echo_n "(cached) " >&6 8318else 8319 if test -n "$ac_ct_LIPO"; then 8320 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8321else 8322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8323for as_dir in $PATH 8324do 8325 IFS=$as_save_IFS 8326 test -z "$as_dir" && as_dir=. 8327 for ac_exec_ext in '' $ac_executable_extensions; do 8328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8329 ac_cv_prog_ac_ct_LIPO="lipo" 8330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8331 break 2 8332 fi 8333done 8334 done 8335IFS=$as_save_IFS 8336 8337fi 8338fi 8339ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8340if test -n "$ac_ct_LIPO"; then 8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8342$as_echo "$ac_ct_LIPO" >&6; } 8343else 8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8345$as_echo "no" >&6; } 8346fi 8347 8348 if test "x$ac_ct_LIPO" = x; then 8349 LIPO=":" 8350 else 8351 case $cross_compiling:$ac_tool_warned in 8352yes:) 8353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8355ac_tool_warned=yes ;; 8356esac 8357 LIPO=$ac_ct_LIPO 8358 fi 8359else 8360 LIPO="$ac_cv_prog_LIPO" 8361fi 8362 8363 if test -n "$ac_tool_prefix"; then 8364 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8365set dummy ${ac_tool_prefix}otool; ac_word=$2 8366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8367$as_echo_n "checking for $ac_word... " >&6; } 8368if ${ac_cv_prog_OTOOL+:} false; then : 8369 $as_echo_n "(cached) " >&6 8370else 8371 if test -n "$OTOOL"; then 8372 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8373else 8374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8375for as_dir in $PATH 8376do 8377 IFS=$as_save_IFS 8378 test -z "$as_dir" && as_dir=. 8379 for ac_exec_ext in '' $ac_executable_extensions; do 8380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8381 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8383 break 2 8384 fi 8385done 8386 done 8387IFS=$as_save_IFS 8388 8389fi 8390fi 8391OTOOL=$ac_cv_prog_OTOOL 8392if test -n "$OTOOL"; then 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8394$as_echo "$OTOOL" >&6; } 8395else 8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8397$as_echo "no" >&6; } 8398fi 8399 8400 8401fi 8402if test -z "$ac_cv_prog_OTOOL"; then 8403 ac_ct_OTOOL=$OTOOL 8404 # Extract the first word of "otool", so it can be a program name with args. 8405set dummy otool; ac_word=$2 8406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8407$as_echo_n "checking for $ac_word... " >&6; } 8408if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8409 $as_echo_n "(cached) " >&6 8410else 8411 if test -n "$ac_ct_OTOOL"; then 8412 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8413else 8414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8415for as_dir in $PATH 8416do 8417 IFS=$as_save_IFS 8418 test -z "$as_dir" && as_dir=. 8419 for ac_exec_ext in '' $ac_executable_extensions; do 8420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8421 ac_cv_prog_ac_ct_OTOOL="otool" 8422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8423 break 2 8424 fi 8425done 8426 done 8427IFS=$as_save_IFS 8428 8429fi 8430fi 8431ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8432if test -n "$ac_ct_OTOOL"; then 8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8434$as_echo "$ac_ct_OTOOL" >&6; } 8435else 8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8437$as_echo "no" >&6; } 8438fi 8439 8440 if test "x$ac_ct_OTOOL" = x; then 8441 OTOOL=":" 8442 else 8443 case $cross_compiling:$ac_tool_warned in 8444yes:) 8445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8447ac_tool_warned=yes ;; 8448esac 8449 OTOOL=$ac_ct_OTOOL 8450 fi 8451else 8452 OTOOL="$ac_cv_prog_OTOOL" 8453fi 8454 8455 if test -n "$ac_tool_prefix"; then 8456 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8457set dummy ${ac_tool_prefix}otool64; ac_word=$2 8458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8459$as_echo_n "checking for $ac_word... " >&6; } 8460if ${ac_cv_prog_OTOOL64+:} false; then : 8461 $as_echo_n "(cached) " >&6 8462else 8463 if test -n "$OTOOL64"; then 8464 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8465else 8466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8467for as_dir in $PATH 8468do 8469 IFS=$as_save_IFS 8470 test -z "$as_dir" && as_dir=. 8471 for ac_exec_ext in '' $ac_executable_extensions; do 8472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8473 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8475 break 2 8476 fi 8477done 8478 done 8479IFS=$as_save_IFS 8480 8481fi 8482fi 8483OTOOL64=$ac_cv_prog_OTOOL64 8484if test -n "$OTOOL64"; then 8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8486$as_echo "$OTOOL64" >&6; } 8487else 8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8489$as_echo "no" >&6; } 8490fi 8491 8492 8493fi 8494if test -z "$ac_cv_prog_OTOOL64"; then 8495 ac_ct_OTOOL64=$OTOOL64 8496 # Extract the first word of "otool64", so it can be a program name with args. 8497set dummy otool64; ac_word=$2 8498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8499$as_echo_n "checking for $ac_word... " >&6; } 8500if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8501 $as_echo_n "(cached) " >&6 8502else 8503 if test -n "$ac_ct_OTOOL64"; then 8504 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8505else 8506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8507for as_dir in $PATH 8508do 8509 IFS=$as_save_IFS 8510 test -z "$as_dir" && as_dir=. 8511 for ac_exec_ext in '' $ac_executable_extensions; do 8512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8513 ac_cv_prog_ac_ct_OTOOL64="otool64" 8514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8515 break 2 8516 fi 8517done 8518 done 8519IFS=$as_save_IFS 8520 8521fi 8522fi 8523ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8524if test -n "$ac_ct_OTOOL64"; then 8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8526$as_echo "$ac_ct_OTOOL64" >&6; } 8527else 8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8529$as_echo "no" >&6; } 8530fi 8531 8532 if test "x$ac_ct_OTOOL64" = x; then 8533 OTOOL64=":" 8534 else 8535 case $cross_compiling:$ac_tool_warned in 8536yes:) 8537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8539ac_tool_warned=yes ;; 8540esac 8541 OTOOL64=$ac_ct_OTOOL64 8542 fi 8543else 8544 OTOOL64="$ac_cv_prog_OTOOL64" 8545fi 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8574$as_echo_n "checking for -single_module linker flag... " >&6; } 8575if ${lt_cv_apple_cc_single_mod+:} false; then : 8576 $as_echo_n "(cached) " >&6 8577else 8578 lt_cv_apple_cc_single_mod=no 8579 if test -z "$LT_MULTI_MODULE"; then 8580 # By default we will add the -single_module flag. You can override 8581 # by either setting the environment variable LT_MULTI_MODULE 8582 # non-empty at configure time, or by adding -multi_module to the 8583 # link flags. 8584 rm -rf libconftest.dylib* 8585 echo "int foo(void){return 1;}" > conftest.c 8586 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8587-dynamiclib -Wl,-single_module conftest.c" >&5 8588 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8589 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8590 _lt_result=$? 8591 # If there is a non-empty error log, and "single_module" 8592 # appears in it, assume the flag caused a linker warning 8593 if test -s conftest.err && $GREP single_module conftest.err; then 8594 cat conftest.err >&5 8595 # Otherwise, if the output was created with a 0 exit code from 8596 # the compiler, it worked. 8597 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8598 lt_cv_apple_cc_single_mod=yes 8599 else 8600 cat conftest.err >&5 8601 fi 8602 rm -rf libconftest.dylib* 8603 rm -f conftest.* 8604 fi 8605fi 8606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8607$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8608 8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8610$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8611if ${lt_cv_ld_exported_symbols_list+:} false; then : 8612 $as_echo_n "(cached) " >&6 8613else 8614 lt_cv_ld_exported_symbols_list=no 8615 save_LDFLAGS=$LDFLAGS 8616 echo "_main" > conftest.sym 8617 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8619/* end confdefs.h. */ 8620 8621int 8622main () 8623{ 8624 8625 ; 8626 return 0; 8627} 8628_ACEOF 8629if ac_fn_c_try_link "$LINENO"; then : 8630 lt_cv_ld_exported_symbols_list=yes 8631else 8632 lt_cv_ld_exported_symbols_list=no 8633fi 8634rm -f core conftest.err conftest.$ac_objext \ 8635 conftest$ac_exeext conftest.$ac_ext 8636 LDFLAGS=$save_LDFLAGS 8637 8638fi 8639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8640$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8641 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8643$as_echo_n "checking for -force_load linker flag... " >&6; } 8644if ${lt_cv_ld_force_load+:} false; then : 8645 $as_echo_n "(cached) " >&6 8646else 8647 lt_cv_ld_force_load=no 8648 cat > conftest.c << _LT_EOF 8649int forced_loaded() { return 2;} 8650_LT_EOF 8651 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8652 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8653 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 8654 $AR $AR_FLAGS libconftest.a conftest.o 2>&5 8655 echo "$RANLIB libconftest.a" >&5 8656 $RANLIB libconftest.a 2>&5 8657 cat > conftest.c << _LT_EOF 8658int main() { return 0;} 8659_LT_EOF 8660 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8661 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8662 _lt_result=$? 8663 if test -s conftest.err && $GREP force_load conftest.err; then 8664 cat conftest.err >&5 8665 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8666 lt_cv_ld_force_load=yes 8667 else 8668 cat conftest.err >&5 8669 fi 8670 rm -f conftest.err libconftest.a conftest conftest.c 8671 rm -rf conftest.dSYM 8672 8673fi 8674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8675$as_echo "$lt_cv_ld_force_load" >&6; } 8676 case $host_os in 8677 rhapsody* | darwin1.[012]) 8678 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8679 darwin1.*) 8680 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8681 darwin*) # darwin 5.x on 8682 # if running on 10.5 or later, the deployment target defaults 8683 # to the OS version, if on x86, and 10.4, the deployment 8684 # target defaults to 10.4. Don't you love it? 8685 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8686 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8687 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8688 10.[012][,.]*) 8689 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8690 10.*) 8691 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8692 esac 8693 ;; 8694 esac 8695 if test yes = "$lt_cv_apple_cc_single_mod"; then 8696 _lt_dar_single_mod='$single_module' 8697 fi 8698 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8699 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8700 else 8701 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8702 fi 8703 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8704 _lt_dsymutil='~$DSYMUTIL $lib || :' 8705 else 8706 _lt_dsymutil= 8707 fi 8708 ;; 8709 esac 8710 8711# func_munge_path_list VARIABLE PATH 8712# ----------------------------------- 8713# VARIABLE is name of variable containing _space_ separated list of 8714# directories to be munged by the contents of PATH, which is string 8715# having a format: 8716# "DIR[:DIR]:" 8717# string "DIR[ DIR]" will be prepended to VARIABLE 8718# ":DIR[:DIR]" 8719# string "DIR[ DIR]" will be appended to VARIABLE 8720# "DIRP[:DIRP]::[DIRA:]DIRA" 8721# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8722# "DIRA[ DIRA]" will be appended to VARIABLE 8723# "DIR[:DIR]" 8724# VARIABLE will be replaced by "DIR[ DIR]" 8725func_munge_path_list () 8726{ 8727 case x$2 in 8728 x) 8729 ;; 8730 *:) 8731 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8732 ;; 8733 x:*) 8734 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8735 ;; 8736 *::*) 8737 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8738 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8739 ;; 8740 *) 8741 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8742 ;; 8743 esac 8744} 8745 8746for ac_header in dlfcn.h 8747do : 8748 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8749" 8750if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8751 cat >>confdefs.h <<_ACEOF 8752#define HAVE_DLFCN_H 1 8753_ACEOF 8754 8755fi 8756 8757done 8758 8759 8760 8761 8762 8763# Set options 8764# Check whether --enable-static was given. 8765if test "${enable_static+set}" = set; then : 8766 enableval=$enable_static; p=${PACKAGE-default} 8767 case $enableval in 8768 yes) enable_static=yes ;; 8769 no) enable_static=no ;; 8770 *) 8771 enable_static=no 8772 # Look at the argument we got. We use all the common list separators. 8773 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8774 for pkg in $enableval; do 8775 IFS=$lt_save_ifs 8776 if test "X$pkg" = "X$p"; then 8777 enable_static=yes 8778 fi 8779 done 8780 IFS=$lt_save_ifs 8781 ;; 8782 esac 8783else 8784 enable_static=no 8785fi 8786 8787 8788 8789 8790 8791 8792 8793enable_win32_dll=yes 8794 8795case $host in 8796*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8797 if test -n "$ac_tool_prefix"; then 8798 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8799set dummy ${ac_tool_prefix}as; ac_word=$2 8800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8801$as_echo_n "checking for $ac_word... " >&6; } 8802if ${ac_cv_prog_AS+:} false; then : 8803 $as_echo_n "(cached) " >&6 8804else 8805 if test -n "$AS"; then 8806 ac_cv_prog_AS="$AS" # Let the user override the test. 8807else 8808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8809for as_dir in $PATH 8810do 8811 IFS=$as_save_IFS 8812 test -z "$as_dir" && as_dir=. 8813 for ac_exec_ext in '' $ac_executable_extensions; do 8814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8815 ac_cv_prog_AS="${ac_tool_prefix}as" 8816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8817 break 2 8818 fi 8819done 8820 done 8821IFS=$as_save_IFS 8822 8823fi 8824fi 8825AS=$ac_cv_prog_AS 8826if test -n "$AS"; then 8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8828$as_echo "$AS" >&6; } 8829else 8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8831$as_echo "no" >&6; } 8832fi 8833 8834 8835fi 8836if test -z "$ac_cv_prog_AS"; then 8837 ac_ct_AS=$AS 8838 # Extract the first word of "as", so it can be a program name with args. 8839set dummy as; ac_word=$2 8840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8841$as_echo_n "checking for $ac_word... " >&6; } 8842if ${ac_cv_prog_ac_ct_AS+:} false; then : 8843 $as_echo_n "(cached) " >&6 8844else 8845 if test -n "$ac_ct_AS"; then 8846 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8847else 8848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8849for as_dir in $PATH 8850do 8851 IFS=$as_save_IFS 8852 test -z "$as_dir" && as_dir=. 8853 for ac_exec_ext in '' $ac_executable_extensions; do 8854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8855 ac_cv_prog_ac_ct_AS="as" 8856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8857 break 2 8858 fi 8859done 8860 done 8861IFS=$as_save_IFS 8862 8863fi 8864fi 8865ac_ct_AS=$ac_cv_prog_ac_ct_AS 8866if test -n "$ac_ct_AS"; then 8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8868$as_echo "$ac_ct_AS" >&6; } 8869else 8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8871$as_echo "no" >&6; } 8872fi 8873 8874 if test "x$ac_ct_AS" = x; then 8875 AS="false" 8876 else 8877 case $cross_compiling:$ac_tool_warned in 8878yes:) 8879{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8880$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8881ac_tool_warned=yes ;; 8882esac 8883 AS=$ac_ct_AS 8884 fi 8885else 8886 AS="$ac_cv_prog_AS" 8887fi 8888 8889 if test -n "$ac_tool_prefix"; then 8890 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8891set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8893$as_echo_n "checking for $ac_word... " >&6; } 8894if ${ac_cv_prog_DLLTOOL+:} false; then : 8895 $as_echo_n "(cached) " >&6 8896else 8897 if test -n "$DLLTOOL"; then 8898 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8899else 8900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8901for as_dir in $PATH 8902do 8903 IFS=$as_save_IFS 8904 test -z "$as_dir" && as_dir=. 8905 for ac_exec_ext in '' $ac_executable_extensions; do 8906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8907 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8909 break 2 8910 fi 8911done 8912 done 8913IFS=$as_save_IFS 8914 8915fi 8916fi 8917DLLTOOL=$ac_cv_prog_DLLTOOL 8918if test -n "$DLLTOOL"; then 8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8920$as_echo "$DLLTOOL" >&6; } 8921else 8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8923$as_echo "no" >&6; } 8924fi 8925 8926 8927fi 8928if test -z "$ac_cv_prog_DLLTOOL"; then 8929 ac_ct_DLLTOOL=$DLLTOOL 8930 # Extract the first word of "dlltool", so it can be a program name with args. 8931set dummy dlltool; ac_word=$2 8932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8933$as_echo_n "checking for $ac_word... " >&6; } 8934if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8935 $as_echo_n "(cached) " >&6 8936else 8937 if test -n "$ac_ct_DLLTOOL"; then 8938 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8939else 8940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8941for as_dir in $PATH 8942do 8943 IFS=$as_save_IFS 8944 test -z "$as_dir" && as_dir=. 8945 for ac_exec_ext in '' $ac_executable_extensions; do 8946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8947 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8949 break 2 8950 fi 8951done 8952 done 8953IFS=$as_save_IFS 8954 8955fi 8956fi 8957ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8958if test -n "$ac_ct_DLLTOOL"; then 8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8960$as_echo "$ac_ct_DLLTOOL" >&6; } 8961else 8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8963$as_echo "no" >&6; } 8964fi 8965 8966 if test "x$ac_ct_DLLTOOL" = x; then 8967 DLLTOOL="false" 8968 else 8969 case $cross_compiling:$ac_tool_warned in 8970yes:) 8971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8973ac_tool_warned=yes ;; 8974esac 8975 DLLTOOL=$ac_ct_DLLTOOL 8976 fi 8977else 8978 DLLTOOL="$ac_cv_prog_DLLTOOL" 8979fi 8980 8981 if test -n "$ac_tool_prefix"; then 8982 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8983set dummy ${ac_tool_prefix}objdump; ac_word=$2 8984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8985$as_echo_n "checking for $ac_word... " >&6; } 8986if ${ac_cv_prog_OBJDUMP+:} false; then : 8987 $as_echo_n "(cached) " >&6 8988else 8989 if test -n "$OBJDUMP"; then 8990 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8991else 8992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8993for as_dir in $PATH 8994do 8995 IFS=$as_save_IFS 8996 test -z "$as_dir" && as_dir=. 8997 for ac_exec_ext in '' $ac_executable_extensions; do 8998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8999 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 9000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9001 break 2 9002 fi 9003done 9004 done 9005IFS=$as_save_IFS 9006 9007fi 9008fi 9009OBJDUMP=$ac_cv_prog_OBJDUMP 9010if test -n "$OBJDUMP"; then 9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 9012$as_echo "$OBJDUMP" >&6; } 9013else 9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9015$as_echo "no" >&6; } 9016fi 9017 9018 9019fi 9020if test -z "$ac_cv_prog_OBJDUMP"; then 9021 ac_ct_OBJDUMP=$OBJDUMP 9022 # Extract the first word of "objdump", so it can be a program name with args. 9023set dummy objdump; ac_word=$2 9024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9025$as_echo_n "checking for $ac_word... " >&6; } 9026if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 9027 $as_echo_n "(cached) " >&6 9028else 9029 if test -n "$ac_ct_OBJDUMP"; then 9030 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 9031else 9032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9033for as_dir in $PATH 9034do 9035 IFS=$as_save_IFS 9036 test -z "$as_dir" && as_dir=. 9037 for ac_exec_ext in '' $ac_executable_extensions; do 9038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9039 ac_cv_prog_ac_ct_OBJDUMP="objdump" 9040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9041 break 2 9042 fi 9043done 9044 done 9045IFS=$as_save_IFS 9046 9047fi 9048fi 9049ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 9050if test -n "$ac_ct_OBJDUMP"; then 9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 9052$as_echo "$ac_ct_OBJDUMP" >&6; } 9053else 9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9055$as_echo "no" >&6; } 9056fi 9057 9058 if test "x$ac_ct_OBJDUMP" = x; then 9059 OBJDUMP="false" 9060 else 9061 case $cross_compiling:$ac_tool_warned in 9062yes:) 9063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9065ac_tool_warned=yes ;; 9066esac 9067 OBJDUMP=$ac_ct_OBJDUMP 9068 fi 9069else 9070 OBJDUMP="$ac_cv_prog_OBJDUMP" 9071fi 9072 9073 ;; 9074esac 9075 9076test -z "$AS" && AS=as 9077 9078 9079 9080 9081 9082test -z "$DLLTOOL" && DLLTOOL=dlltool 9083 9084 9085 9086 9087 9088test -z "$OBJDUMP" && OBJDUMP=objdump 9089 9090 9091 9092 9093 9094# Check whether --with-pic was given. 9095if test "${with_pic+set}" = set; then : 9096 withval=$with_pic; lt_p=${PACKAGE-default} 9097 case $withval in 9098 yes|no) pic_mode=$withval ;; 9099 *) 9100 pic_mode=default 9101 # Look at the argument we got. We use all the common list separators. 9102 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9103 for lt_pkg in $withval; do 9104 IFS=$lt_save_ifs 9105 if test "X$lt_pkg" = "X$lt_p"; then 9106 pic_mode=yes 9107 fi 9108 done 9109 IFS=$lt_save_ifs 9110 ;; 9111 esac 9112else 9113 pic_mode=yes 9114fi 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 enable_dlopen=no 9125 9126 9127 9128 # Check whether --enable-shared was given. 9129if test "${enable_shared+set}" = set; then : 9130 enableval=$enable_shared; p=${PACKAGE-default} 9131 case $enableval in 9132 yes) enable_shared=yes ;; 9133 no) enable_shared=no ;; 9134 *) 9135 enable_shared=no 9136 # Look at the argument we got. We use all the common list separators. 9137 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9138 for pkg in $enableval; do 9139 IFS=$lt_save_ifs 9140 if test "X$pkg" = "X$p"; then 9141 enable_shared=yes 9142 fi 9143 done 9144 IFS=$lt_save_ifs 9145 ;; 9146 esac 9147else 9148 enable_shared=yes 9149fi 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 # Check whether --enable-fast-install was given. 9162if test "${enable_fast_install+set}" = set; then : 9163 enableval=$enable_fast_install; p=${PACKAGE-default} 9164 case $enableval in 9165 yes) enable_fast_install=yes ;; 9166 no) enable_fast_install=no ;; 9167 *) 9168 enable_fast_install=no 9169 # Look at the argument we got. We use all the common list separators. 9170 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9171 for pkg in $enableval; do 9172 IFS=$lt_save_ifs 9173 if test "X$pkg" = "X$p"; then 9174 enable_fast_install=yes 9175 fi 9176 done 9177 IFS=$lt_save_ifs 9178 ;; 9179 esac 9180else 9181 enable_fast_install=yes 9182fi 9183 9184 9185 9186 9187 9188 9189 9190 9191 shared_archive_member_spec= 9192case $host,$enable_shared in 9193power*-*-aix[5-9]*,yes) 9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9195$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9196 9197# Check whether --with-aix-soname was given. 9198if test "${with_aix_soname+set}" = set; then : 9199 withval=$with_aix_soname; case $withval in 9200 aix|svr4|both) 9201 ;; 9202 *) 9203 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9204 ;; 9205 esac 9206 lt_cv_with_aix_soname=$with_aix_soname 9207else 9208 if ${lt_cv_with_aix_soname+:} false; then : 9209 $as_echo_n "(cached) " >&6 9210else 9211 lt_cv_with_aix_soname=aix 9212fi 9213 9214 with_aix_soname=$lt_cv_with_aix_soname 9215fi 9216 9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9218$as_echo "$with_aix_soname" >&6; } 9219 if test aix != "$with_aix_soname"; then 9220 # For the AIX way of multilib, we name the shared archive member 9221 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9222 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9223 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9224 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9225 if test 64 = "${OBJECT_MODE-32}"; then 9226 shared_archive_member_spec=shr_64 9227 else 9228 shared_archive_member_spec=shr 9229 fi 9230 fi 9231 ;; 9232*) 9233 with_aix_soname=aix 9234 ;; 9235esac 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246# This can be used to rebuild libtool when needed 9247LIBTOOL_DEPS=$ltmain 9248 9249# Always use our own libtool. 9250LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281test -z "$LN_S" && LN_S="ln -s" 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296if test -n "${ZSH_VERSION+set}"; then 9297 setopt NO_GLOB_SUBST 9298fi 9299 9300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9301$as_echo_n "checking for objdir... " >&6; } 9302if ${lt_cv_objdir+:} false; then : 9303 $as_echo_n "(cached) " >&6 9304else 9305 rm -f .libs 2>/dev/null 9306mkdir .libs 2>/dev/null 9307if test -d .libs; then 9308 lt_cv_objdir=.libs 9309else 9310 # MS-DOS does not allow filenames that begin with a dot. 9311 lt_cv_objdir=_libs 9312fi 9313rmdir .libs 2>/dev/null 9314fi 9315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9316$as_echo "$lt_cv_objdir" >&6; } 9317objdir=$lt_cv_objdir 9318 9319 9320 9321 9322 9323cat >>confdefs.h <<_ACEOF 9324#define LT_OBJDIR "$lt_cv_objdir/" 9325_ACEOF 9326 9327 9328 9329 9330case $host_os in 9331aix3*) 9332 # AIX sometimes has problems with the GCC collect2 program. For some 9333 # reason, if we set the COLLECT_NAMES environment variable, the problems 9334 # vanish in a puff of smoke. 9335 if test set != "${COLLECT_NAMES+set}"; then 9336 COLLECT_NAMES= 9337 export COLLECT_NAMES 9338 fi 9339 ;; 9340esac 9341 9342# Global variables: 9343ofile=libtool 9344can_build_shared=yes 9345 9346# All known linkers require a '.a' archive for static linking (except MSVC and 9347# ICC, which need '.lib'). 9348libext=a 9349 9350with_gnu_ld=$lt_cv_prog_gnu_ld 9351 9352old_CC=$CC 9353old_CFLAGS=$CFLAGS 9354 9355# Set sane defaults for various variables 9356test -z "$CC" && CC=cc 9357test -z "$LTCC" && LTCC=$CC 9358test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9359test -z "$LD" && LD=ld 9360test -z "$ac_objext" && ac_objext=o 9361 9362func_cc_basename $compiler 9363cc_basename=$func_cc_basename_result 9364 9365 9366# Only perform the check for file, if the check method requires it 9367test -z "$MAGIC_CMD" && MAGIC_CMD=file 9368case $deplibs_check_method in 9369file_magic*) 9370 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9372$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9373if ${lt_cv_path_MAGIC_CMD+:} false; then : 9374 $as_echo_n "(cached) " >&6 9375else 9376 case $MAGIC_CMD in 9377[\\/*] | ?:[\\/]*) 9378 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9379 ;; 9380*) 9381 lt_save_MAGIC_CMD=$MAGIC_CMD 9382 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9383 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9384 for ac_dir in $ac_dummy; do 9385 IFS=$lt_save_ifs 9386 test -z "$ac_dir" && ac_dir=. 9387 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9388 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9389 if test -n "$file_magic_test_file"; then 9390 case $deplibs_check_method in 9391 "file_magic "*) 9392 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9393 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9394 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9395 $EGREP "$file_magic_regex" > /dev/null; then 9396 : 9397 else 9398 cat <<_LT_EOF 1>&2 9399 9400*** Warning: the command libtool uses to detect shared libraries, 9401*** $file_magic_cmd, produces output that libtool cannot recognize. 9402*** The result is that libtool may fail to recognize shared libraries 9403*** as such. This will affect the creation of libtool libraries that 9404*** depend on shared libraries, but programs linked with such libtool 9405*** libraries will work regardless of this problem. Nevertheless, you 9406*** may want to report the problem to your system manager and/or to 9407*** bug-libtool@gnu.org 9408 9409_LT_EOF 9410 fi ;; 9411 esac 9412 fi 9413 break 9414 fi 9415 done 9416 IFS=$lt_save_ifs 9417 MAGIC_CMD=$lt_save_MAGIC_CMD 9418 ;; 9419esac 9420fi 9421 9422MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9423if test -n "$MAGIC_CMD"; then 9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9425$as_echo "$MAGIC_CMD" >&6; } 9426else 9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9428$as_echo "no" >&6; } 9429fi 9430 9431 9432 9433 9434 9435if test -z "$lt_cv_path_MAGIC_CMD"; then 9436 if test -n "$ac_tool_prefix"; then 9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9438$as_echo_n "checking for file... " >&6; } 9439if ${lt_cv_path_MAGIC_CMD+:} false; then : 9440 $as_echo_n "(cached) " >&6 9441else 9442 case $MAGIC_CMD in 9443[\\/*] | ?:[\\/]*) 9444 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9445 ;; 9446*) 9447 lt_save_MAGIC_CMD=$MAGIC_CMD 9448 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9449 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9450 for ac_dir in $ac_dummy; do 9451 IFS=$lt_save_ifs 9452 test -z "$ac_dir" && ac_dir=. 9453 if test -f "$ac_dir/file"; then 9454 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9455 if test -n "$file_magic_test_file"; then 9456 case $deplibs_check_method in 9457 "file_magic "*) 9458 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9459 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9460 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9461 $EGREP "$file_magic_regex" > /dev/null; then 9462 : 9463 else 9464 cat <<_LT_EOF 1>&2 9465 9466*** Warning: the command libtool uses to detect shared libraries, 9467*** $file_magic_cmd, produces output that libtool cannot recognize. 9468*** The result is that libtool may fail to recognize shared libraries 9469*** as such. This will affect the creation of libtool libraries that 9470*** depend on shared libraries, but programs linked with such libtool 9471*** libraries will work regardless of this problem. Nevertheless, you 9472*** may want to report the problem to your system manager and/or to 9473*** bug-libtool@gnu.org 9474 9475_LT_EOF 9476 fi ;; 9477 esac 9478 fi 9479 break 9480 fi 9481 done 9482 IFS=$lt_save_ifs 9483 MAGIC_CMD=$lt_save_MAGIC_CMD 9484 ;; 9485esac 9486fi 9487 9488MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9489if test -n "$MAGIC_CMD"; then 9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9491$as_echo "$MAGIC_CMD" >&6; } 9492else 9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9494$as_echo "no" >&6; } 9495fi 9496 9497 9498 else 9499 MAGIC_CMD=: 9500 fi 9501fi 9502 9503 fi 9504 ;; 9505esac 9506 9507# Use C for the default configuration in the libtool script 9508 9509lt_save_CC=$CC 9510ac_ext=c 9511ac_cpp='$CPP $CPPFLAGS' 9512ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9513ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9514ac_compiler_gnu=$ac_cv_c_compiler_gnu 9515 9516 9517# Source file extension for C test sources. 9518ac_ext=c 9519 9520# Object file extension for compiled C test sources. 9521objext=o 9522objext=$objext 9523 9524# Code to be used in simple compile tests 9525lt_simple_compile_test_code="int some_variable = 0;" 9526 9527# Code to be used in simple link tests 9528lt_simple_link_test_code='int main(){return(0);}' 9529 9530 9531 9532 9533 9534 9535 9536# If no C compiler was specified, use CC. 9537LTCC=${LTCC-"$CC"} 9538 9539# If no C compiler flags were specified, use CFLAGS. 9540LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9541 9542# Allow CC to be a program name with arguments. 9543compiler=$CC 9544 9545# Save the default compiler, since it gets overwritten when the other 9546# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9547compiler_DEFAULT=$CC 9548 9549# save warnings/boilerplate of simple test code 9550ac_outfile=conftest.$ac_objext 9551echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9552eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9553_lt_compiler_boilerplate=`cat conftest.err` 9554$RM conftest* 9555 9556ac_outfile=conftest.$ac_objext 9557echo "$lt_simple_link_test_code" >conftest.$ac_ext 9558eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9559_lt_linker_boilerplate=`cat conftest.err` 9560$RM -r conftest* 9561 9562 9563## CAVEAT EMPTOR: 9564## There is no encapsulation within the following macros, do not change 9565## the running order or otherwise move them around unless you know exactly 9566## what you are doing... 9567if test -n "$compiler"; then 9568 9569lt_prog_compiler_no_builtin_flag= 9570 9571if test yes = "$GCC"; then 9572 case $cc_basename in 9573 nvcc*) 9574 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9575 *) 9576 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9577 esac 9578 9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9580$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9581if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9582 $as_echo_n "(cached) " >&6 9583else 9584 lt_cv_prog_compiler_rtti_exceptions=no 9585 ac_outfile=conftest.$ac_objext 9586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9587 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9588 # Insert the option either (1) after the last *FLAGS variable, or 9589 # (2) before a word containing "conftest.", or (3) at the end. 9590 # Note that $ac_compile itself does not contain backslashes and begins 9591 # with a dollar sign (not a hyphen), so the echo should work correctly. 9592 # The option is referenced via a variable to avoid confusing sed. 9593 lt_compile=`echo "$ac_compile" | $SED \ 9594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9596 -e 's:$: $lt_compiler_flag:'` 9597 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9598 (eval "$lt_compile" 2>conftest.err) 9599 ac_status=$? 9600 cat conftest.err >&5 9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9602 if (exit $ac_status) && test -s "$ac_outfile"; then 9603 # The compiler can only warn and ignore the option if not recognized 9604 # So say no if there are warnings other than the usual output. 9605 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9607 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9608 lt_cv_prog_compiler_rtti_exceptions=yes 9609 fi 9610 fi 9611 $RM conftest* 9612 9613fi 9614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9615$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9616 9617if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9618 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9619else 9620 : 9621fi 9622 9623fi 9624 9625 9626 9627 9628 9629 9630 lt_prog_compiler_wl= 9631lt_prog_compiler_pic= 9632lt_prog_compiler_static= 9633 9634 9635 if test yes = "$GCC"; then 9636 lt_prog_compiler_wl='-Wl,' 9637 lt_prog_compiler_static='-static' 9638 9639 case $host_os in 9640 aix*) 9641 # All AIX code is PIC. 9642 if test ia64 = "$host_cpu"; then 9643 # AIX 5 now supports IA64 processor 9644 lt_prog_compiler_static='-Bstatic' 9645 fi 9646 lt_prog_compiler_pic='-fPIC' 9647 ;; 9648 9649 amigaos*) 9650 case $host_cpu in 9651 powerpc) 9652 # see comment about AmigaOS4 .so support 9653 lt_prog_compiler_pic='-fPIC' 9654 ;; 9655 m68k) 9656 # FIXME: we need at least 68020 code to build shared libraries, but 9657 # adding the '-m68020' flag to GCC prevents building anything better, 9658 # like '-m68040'. 9659 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9660 ;; 9661 esac 9662 ;; 9663 9664 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9665 # PIC is the default for these OSes. 9666 ;; 9667 9668 mingw* | cygwin* | pw32* | os2* | cegcc*) 9669 # This hack is so that the source file can tell whether it is being 9670 # built for inclusion in a dll (and should export symbols for example). 9671 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9672 # (--disable-auto-import) libraries 9673 lt_prog_compiler_pic='-DDLL_EXPORT' 9674 case $host_os in 9675 os2*) 9676 lt_prog_compiler_static='$wl-static' 9677 ;; 9678 esac 9679 ;; 9680 9681 darwin* | rhapsody*) 9682 # PIC is the default on this platform 9683 # Common symbols not allowed in MH_DYLIB files 9684 lt_prog_compiler_pic='-fno-common' 9685 ;; 9686 9687 haiku*) 9688 # PIC is the default for Haiku. 9689 # The "-static" flag exists, but is broken. 9690 lt_prog_compiler_static= 9691 ;; 9692 9693 hpux*) 9694 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9695 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9696 # sets the default TLS model and affects inlining. 9697 case $host_cpu in 9698 hppa*64*) 9699 # +Z the default 9700 ;; 9701 *) 9702 lt_prog_compiler_pic='-fPIC' 9703 ;; 9704 esac 9705 ;; 9706 9707 interix[3-9]*) 9708 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9709 # Instead, we relocate shared libraries at runtime. 9710 ;; 9711 9712 msdosdjgpp*) 9713 # Just because we use GCC doesn't mean we suddenly get shared libraries 9714 # on systems that don't support them. 9715 lt_prog_compiler_can_build_shared=no 9716 enable_shared=no 9717 ;; 9718 9719 *nto* | *qnx*) 9720 # QNX uses GNU C++, but need to define -shared option too, otherwise 9721 # it will coredump. 9722 lt_prog_compiler_pic='-fPIC -shared' 9723 ;; 9724 9725 sysv4*MP*) 9726 if test -d /usr/nec; then 9727 lt_prog_compiler_pic=-Kconform_pic 9728 fi 9729 ;; 9730 9731 *) 9732 lt_prog_compiler_pic='-fPIC' 9733 ;; 9734 esac 9735 9736 case $cc_basename in 9737 nvcc*) # Cuda Compiler Driver 2.2 9738 lt_prog_compiler_wl='-Xlinker ' 9739 if test -n "$lt_prog_compiler_pic"; then 9740 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9741 fi 9742 ;; 9743 esac 9744 else 9745 # PORTME Check for flag to pass linker flags through the system compiler. 9746 case $host_os in 9747 aix*) 9748 lt_prog_compiler_wl='-Wl,' 9749 if test ia64 = "$host_cpu"; then 9750 # AIX 5 now supports IA64 processor 9751 lt_prog_compiler_static='-Bstatic' 9752 else 9753 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9754 fi 9755 ;; 9756 9757 darwin* | rhapsody*) 9758 # PIC is the default on this platform 9759 # Common symbols not allowed in MH_DYLIB files 9760 lt_prog_compiler_pic='-fno-common' 9761 case $cc_basename in 9762 nagfor*) 9763 # NAG Fortran compiler 9764 lt_prog_compiler_wl='-Wl,-Wl,,' 9765 lt_prog_compiler_pic='-PIC' 9766 lt_prog_compiler_static='-Bstatic' 9767 ;; 9768 esac 9769 ;; 9770 9771 mingw* | cygwin* | pw32* | os2* | cegcc*) 9772 # This hack is so that the source file can tell whether it is being 9773 # built for inclusion in a dll (and should export symbols for example). 9774 lt_prog_compiler_pic='-DDLL_EXPORT' 9775 case $host_os in 9776 os2*) 9777 lt_prog_compiler_static='$wl-static' 9778 ;; 9779 esac 9780 ;; 9781 9782 hpux9* | hpux10* | hpux11*) 9783 lt_prog_compiler_wl='-Wl,' 9784 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9785 # not for PA HP-UX. 9786 case $host_cpu in 9787 hppa*64*|ia64*) 9788 # +Z the default 9789 ;; 9790 *) 9791 lt_prog_compiler_pic='+Z' 9792 ;; 9793 esac 9794 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9795 lt_prog_compiler_static='$wl-a ${wl}archive' 9796 ;; 9797 9798 irix5* | irix6* | nonstopux*) 9799 lt_prog_compiler_wl='-Wl,' 9800 # PIC (with -KPIC) is the default. 9801 lt_prog_compiler_static='-non_shared' 9802 ;; 9803 9804 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9805 case $cc_basename in 9806 # old Intel for x86_64, which still supported -KPIC. 9807 ecc*) 9808 lt_prog_compiler_wl='-Wl,' 9809 lt_prog_compiler_pic='-KPIC' 9810 lt_prog_compiler_static='-static' 9811 ;; 9812 # icc used to be incompatible with GCC. 9813 # ICC 10 doesn't accept -KPIC any more. 9814 icc* | ifort*) 9815 lt_prog_compiler_wl='-Wl,' 9816 lt_prog_compiler_pic='-fPIC' 9817 lt_prog_compiler_static='-static' 9818 ;; 9819 # Lahey Fortran 8.1. 9820 lf95*) 9821 lt_prog_compiler_wl='-Wl,' 9822 lt_prog_compiler_pic='--shared' 9823 lt_prog_compiler_static='--static' 9824 ;; 9825 nagfor*) 9826 # NAG Fortran compiler 9827 lt_prog_compiler_wl='-Wl,-Wl,,' 9828 lt_prog_compiler_pic='-PIC' 9829 lt_prog_compiler_static='-Bstatic' 9830 ;; 9831 tcc*) 9832 # Fabrice Bellard et al's Tiny C Compiler 9833 lt_prog_compiler_wl='-Wl,' 9834 lt_prog_compiler_pic='-fPIC' 9835 lt_prog_compiler_static='-static' 9836 ;; 9837 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9838 # Portland Group compilers (*not* the Pentium gcc compiler, 9839 # which looks to be a dead project) 9840 lt_prog_compiler_wl='-Wl,' 9841 lt_prog_compiler_pic='-fpic' 9842 lt_prog_compiler_static='-Bstatic' 9843 ;; 9844 ccc*) 9845 lt_prog_compiler_wl='-Wl,' 9846 # All Alpha code is PIC. 9847 lt_prog_compiler_static='-non_shared' 9848 ;; 9849 xl* | bgxl* | bgf* | mpixl*) 9850 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9851 lt_prog_compiler_wl='-Wl,' 9852 lt_prog_compiler_pic='-qpic' 9853 lt_prog_compiler_static='-qstaticlink' 9854 ;; 9855 *) 9856 case `$CC -V 2>&1 | sed 5q` in 9857 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9858 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9859 lt_prog_compiler_pic='-KPIC' 9860 lt_prog_compiler_static='-Bstatic' 9861 lt_prog_compiler_wl='' 9862 ;; 9863 *Sun\ F* | *Sun*Fortran*) 9864 lt_prog_compiler_pic='-KPIC' 9865 lt_prog_compiler_static='-Bstatic' 9866 lt_prog_compiler_wl='-Qoption ld ' 9867 ;; 9868 *Sun\ C*) 9869 # Sun C 5.9 9870 lt_prog_compiler_pic='-KPIC' 9871 lt_prog_compiler_static='-Bstatic' 9872 lt_prog_compiler_wl='-Wl,' 9873 ;; 9874 *Intel*\ [CF]*Compiler*) 9875 lt_prog_compiler_wl='-Wl,' 9876 lt_prog_compiler_pic='-fPIC' 9877 lt_prog_compiler_static='-static' 9878 ;; 9879 *Portland\ Group*) 9880 lt_prog_compiler_wl='-Wl,' 9881 lt_prog_compiler_pic='-fpic' 9882 lt_prog_compiler_static='-Bstatic' 9883 ;; 9884 esac 9885 ;; 9886 esac 9887 ;; 9888 9889 newsos6) 9890 lt_prog_compiler_pic='-KPIC' 9891 lt_prog_compiler_static='-Bstatic' 9892 ;; 9893 9894 *nto* | *qnx*) 9895 # QNX uses GNU C++, but need to define -shared option too, otherwise 9896 # it will coredump. 9897 lt_prog_compiler_pic='-fPIC -shared' 9898 ;; 9899 9900 osf3* | osf4* | osf5*) 9901 lt_prog_compiler_wl='-Wl,' 9902 # All OSF/1 code is PIC. 9903 lt_prog_compiler_static='-non_shared' 9904 ;; 9905 9906 rdos*) 9907 lt_prog_compiler_static='-non_shared' 9908 ;; 9909 9910 solaris*) 9911 lt_prog_compiler_pic='-KPIC' 9912 lt_prog_compiler_static='-Bstatic' 9913 case $cc_basename in 9914 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9915 lt_prog_compiler_wl='-Qoption ld ';; 9916 *) 9917 lt_prog_compiler_wl='-Wl,';; 9918 esac 9919 ;; 9920 9921 sunos4*) 9922 lt_prog_compiler_wl='-Qoption ld ' 9923 lt_prog_compiler_pic='-PIC' 9924 lt_prog_compiler_static='-Bstatic' 9925 ;; 9926 9927 sysv4 | sysv4.2uw2* | sysv4.3*) 9928 lt_prog_compiler_wl='-Wl,' 9929 lt_prog_compiler_pic='-KPIC' 9930 lt_prog_compiler_static='-Bstatic' 9931 ;; 9932 9933 sysv4*MP*) 9934 if test -d /usr/nec; then 9935 lt_prog_compiler_pic='-Kconform_pic' 9936 lt_prog_compiler_static='-Bstatic' 9937 fi 9938 ;; 9939 9940 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9941 lt_prog_compiler_wl='-Wl,' 9942 lt_prog_compiler_pic='-KPIC' 9943 lt_prog_compiler_static='-Bstatic' 9944 ;; 9945 9946 unicos*) 9947 lt_prog_compiler_wl='-Wl,' 9948 lt_prog_compiler_can_build_shared=no 9949 ;; 9950 9951 uts4*) 9952 lt_prog_compiler_pic='-pic' 9953 lt_prog_compiler_static='-Bstatic' 9954 ;; 9955 9956 *) 9957 lt_prog_compiler_can_build_shared=no 9958 ;; 9959 esac 9960 fi 9961 9962case $host_os in 9963 # For platforms that do not support PIC, -DPIC is meaningless: 9964 *djgpp*) 9965 lt_prog_compiler_pic= 9966 ;; 9967 *) 9968 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9969 ;; 9970esac 9971 9972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9973$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9974if ${lt_cv_prog_compiler_pic+:} false; then : 9975 $as_echo_n "(cached) " >&6 9976else 9977 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9978fi 9979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9980$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9981lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9982 9983# 9984# Check to make sure the PIC flag actually works. 9985# 9986if test -n "$lt_prog_compiler_pic"; then 9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9988$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9989if ${lt_cv_prog_compiler_pic_works+:} false; then : 9990 $as_echo_n "(cached) " >&6 9991else 9992 lt_cv_prog_compiler_pic_works=no 9993 ac_outfile=conftest.$ac_objext 9994 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9995 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9996 # Insert the option either (1) after the last *FLAGS variable, or 9997 # (2) before a word containing "conftest.", or (3) at the end. 9998 # Note that $ac_compile itself does not contain backslashes and begins 9999 # with a dollar sign (not a hyphen), so the echo should work correctly. 10000 # The option is referenced via a variable to avoid confusing sed. 10001 lt_compile=`echo "$ac_compile" | $SED \ 10002 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10004 -e 's:$: $lt_compiler_flag:'` 10005 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10006 (eval "$lt_compile" 2>conftest.err) 10007 ac_status=$? 10008 cat conftest.err >&5 10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10010 if (exit $ac_status) && test -s "$ac_outfile"; then 10011 # The compiler can only warn and ignore the option if not recognized 10012 # So say no if there are warnings other than the usual output. 10013 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10015 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10016 lt_cv_prog_compiler_pic_works=yes 10017 fi 10018 fi 10019 $RM conftest* 10020 10021fi 10022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10023$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10024 10025if test yes = "$lt_cv_prog_compiler_pic_works"; then 10026 case $lt_prog_compiler_pic in 10027 "" | " "*) ;; 10028 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10029 esac 10030else 10031 lt_prog_compiler_pic= 10032 lt_prog_compiler_can_build_shared=no 10033fi 10034 10035fi 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047# 10048# Check to make sure the static flag actually works. 10049# 10050wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10052$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10053if ${lt_cv_prog_compiler_static_works+:} false; then : 10054 $as_echo_n "(cached) " >&6 10055else 10056 lt_cv_prog_compiler_static_works=no 10057 save_LDFLAGS=$LDFLAGS 10058 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10059 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10060 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10061 # The linker can only warn and ignore the option if not recognized 10062 # So say no if there are warnings 10063 if test -s conftest.err; then 10064 # Append any errors to the config.log. 10065 cat conftest.err 1>&5 10066 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10067 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10068 if diff conftest.exp conftest.er2 >/dev/null; then 10069 lt_cv_prog_compiler_static_works=yes 10070 fi 10071 else 10072 lt_cv_prog_compiler_static_works=yes 10073 fi 10074 fi 10075 $RM -r conftest* 10076 LDFLAGS=$save_LDFLAGS 10077 10078fi 10079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10080$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10081 10082if test yes = "$lt_cv_prog_compiler_static_works"; then 10083 : 10084else 10085 lt_prog_compiler_static= 10086fi 10087 10088 10089 10090 10091 10092 10093 10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10095$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10096if ${lt_cv_prog_compiler_c_o+:} false; then : 10097 $as_echo_n "(cached) " >&6 10098else 10099 lt_cv_prog_compiler_c_o=no 10100 $RM -r conftest 2>/dev/null 10101 mkdir conftest 10102 cd conftest 10103 mkdir out 10104 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10105 10106 lt_compiler_flag="-o out/conftest2.$ac_objext" 10107 # Insert the option either (1) after the last *FLAGS variable, or 10108 # (2) before a word containing "conftest.", or (3) at the end. 10109 # Note that $ac_compile itself does not contain backslashes and begins 10110 # with a dollar sign (not a hyphen), so the echo should work correctly. 10111 lt_compile=`echo "$ac_compile" | $SED \ 10112 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10114 -e 's:$: $lt_compiler_flag:'` 10115 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10116 (eval "$lt_compile" 2>out/conftest.err) 10117 ac_status=$? 10118 cat out/conftest.err >&5 10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10120 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10121 then 10122 # The compiler can only warn and ignore the option if not recognized 10123 # So say no if there are warnings 10124 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10125 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10126 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10127 lt_cv_prog_compiler_c_o=yes 10128 fi 10129 fi 10130 chmod u+w . 2>&5 10131 $RM conftest* 10132 # SGI C++ compiler will create directory out/ii_files/ for 10133 # template instantiation 10134 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10135 $RM out/* && rmdir out 10136 cd .. 10137 $RM -r conftest 10138 $RM conftest* 10139 10140fi 10141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10142$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10143 10144 10145 10146 10147 10148 10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10150$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10151if ${lt_cv_prog_compiler_c_o+:} false; then : 10152 $as_echo_n "(cached) " >&6 10153else 10154 lt_cv_prog_compiler_c_o=no 10155 $RM -r conftest 2>/dev/null 10156 mkdir conftest 10157 cd conftest 10158 mkdir out 10159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10160 10161 lt_compiler_flag="-o out/conftest2.$ac_objext" 10162 # Insert the option either (1) after the last *FLAGS variable, or 10163 # (2) before a word containing "conftest.", or (3) at the end. 10164 # Note that $ac_compile itself does not contain backslashes and begins 10165 # with a dollar sign (not a hyphen), so the echo should work correctly. 10166 lt_compile=`echo "$ac_compile" | $SED \ 10167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10169 -e 's:$: $lt_compiler_flag:'` 10170 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10171 (eval "$lt_compile" 2>out/conftest.err) 10172 ac_status=$? 10173 cat out/conftest.err >&5 10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10175 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10176 then 10177 # The compiler can only warn and ignore the option if not recognized 10178 # So say no if there are warnings 10179 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10180 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10181 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10182 lt_cv_prog_compiler_c_o=yes 10183 fi 10184 fi 10185 chmod u+w . 2>&5 10186 $RM conftest* 10187 # SGI C++ compiler will create directory out/ii_files/ for 10188 # template instantiation 10189 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10190 $RM out/* && rmdir out 10191 cd .. 10192 $RM -r conftest 10193 $RM conftest* 10194 10195fi 10196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10197$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10198 10199 10200 10201 10202hard_links=nottested 10203if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10204 # do not overwrite the value of need_locks provided by the user 10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10206$as_echo_n "checking if we can lock with hard links... " >&6; } 10207 hard_links=yes 10208 $RM conftest* 10209 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10210 touch conftest.a 10211 ln conftest.a conftest.b 2>&5 || hard_links=no 10212 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10214$as_echo "$hard_links" >&6; } 10215 if test no = "$hard_links"; then 10216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10217$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10218 need_locks=warn 10219 fi 10220else 10221 need_locks=no 10222fi 10223 10224 10225 10226 10227 10228 10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10230$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10231 10232 runpath_var= 10233 allow_undefined_flag= 10234 always_export_symbols=no 10235 archive_cmds= 10236 archive_expsym_cmds= 10237 compiler_needs_object=no 10238 enable_shared_with_static_runtimes=no 10239 export_dynamic_flag_spec= 10240 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10241 hardcode_automatic=no 10242 hardcode_direct=no 10243 hardcode_direct_absolute=no 10244 hardcode_libdir_flag_spec= 10245 hardcode_libdir_separator= 10246 hardcode_minus_L=no 10247 hardcode_shlibpath_var=unsupported 10248 inherit_rpath=no 10249 link_all_deplibs=unknown 10250 module_cmds= 10251 module_expsym_cmds= 10252 old_archive_from_new_cmds= 10253 old_archive_from_expsyms_cmds= 10254 thread_safe_flag_spec= 10255 whole_archive_flag_spec= 10256 # include_expsyms should be a list of space-separated symbols to be *always* 10257 # included in the symbol list 10258 include_expsyms= 10259 # exclude_expsyms can be an extended regexp of symbols to exclude 10260 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10261 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10262 # as well as any symbol that contains 'd'. 10263 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10264 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10265 # platforms (ab)use it in PIC code, but their linkers get confused if 10266 # the symbol is explicitly referenced. Since portable code cannot 10267 # rely on this symbol name, it's probably fine to never include it in 10268 # preloaded symbol tables. 10269 # Exclude shared library initialization/finalization symbols. 10270 extract_expsyms_cmds= 10271 10272 case $host_os in 10273 cygwin* | mingw* | pw32* | cegcc*) 10274 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 10275 # When not using gcc, we currently assume that we are using 10276 # Microsoft Visual C++ or Intel C++ Compiler. 10277 if test yes != "$GCC"; then 10278 with_gnu_ld=no 10279 fi 10280 ;; 10281 interix*) 10282 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 10283 with_gnu_ld=yes 10284 ;; 10285 openbsd* | bitrig*) 10286 with_gnu_ld=no 10287 ;; 10288 esac 10289 10290 ld_shlibs=yes 10291 10292 # On some targets, GNU ld is compatible enough with the native linker 10293 # that we're better off using the native interface for both. 10294 lt_use_gnu_ld_interface=no 10295 if test yes = "$with_gnu_ld"; then 10296 case $host_os in 10297 aix*) 10298 # The AIX port of GNU ld has always aspired to compatibility 10299 # with the native linker. However, as the warning in the GNU ld 10300 # block says, versions before 2.19.5* couldn't really create working 10301 # shared libraries, regardless of the interface used. 10302 case `$LD -v 2>&1` in 10303 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10304 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10305 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10306 *) 10307 lt_use_gnu_ld_interface=yes 10308 ;; 10309 esac 10310 ;; 10311 *) 10312 lt_use_gnu_ld_interface=yes 10313 ;; 10314 esac 10315 fi 10316 10317 if test yes = "$lt_use_gnu_ld_interface"; then 10318 # If archive_cmds runs LD, not CC, wlarc should be empty 10319 wlarc='$wl' 10320 10321 # Set some defaults for GNU ld with shared library support. These 10322 # are reset later if shared libraries are not supported. Putting them 10323 # here allows them to be overridden if necessary. 10324 runpath_var=LD_RUN_PATH 10325 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10326 export_dynamic_flag_spec='$wl--export-dynamic' 10327 # ancient GNU ld didn't support --whole-archive et. al. 10328 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10329 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10330 else 10331 whole_archive_flag_spec= 10332 fi 10333 supports_anon_versioning=no 10334 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10335 *GNU\ gold*) supports_anon_versioning=yes ;; 10336 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10337 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10338 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10339 *\ 2.11.*) ;; # other 2.11 versions 10340 *) supports_anon_versioning=yes ;; 10341 esac 10342 10343 # See if GNU ld supports shared libraries. 10344 case $host_os in 10345 aix[3-9]*) 10346 # On AIX/PPC, the GNU linker is very broken 10347 if test ia64 != "$host_cpu"; then 10348 ld_shlibs=no 10349 cat <<_LT_EOF 1>&2 10350 10351*** Warning: the GNU linker, at least up to release 2.19, is reported 10352*** to be unable to reliably create shared libraries on AIX. 10353*** Therefore, libtool is disabling shared libraries support. If you 10354*** really care for shared libraries, you may want to install binutils 10355*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10356*** You will then need to restart the configuration process. 10357 10358_LT_EOF 10359 fi 10360 ;; 10361 10362 amigaos*) 10363 case $host_cpu in 10364 powerpc) 10365 # see comment about AmigaOS4 .so support 10366 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10367 archive_expsym_cmds='' 10368 ;; 10369 m68k) 10370 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)' 10371 hardcode_libdir_flag_spec='-L$libdir' 10372 hardcode_minus_L=yes 10373 ;; 10374 esac 10375 ;; 10376 10377 beos*) 10378 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10379 allow_undefined_flag=unsupported 10380 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10381 # support --undefined. This deserves some investigation. FIXME 10382 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10383 else 10384 ld_shlibs=no 10385 fi 10386 ;; 10387 10388 cygwin* | mingw* | pw32* | cegcc*) 10389 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10390 # as there is no search path for DLLs. 10391 hardcode_libdir_flag_spec='-L$libdir' 10392 export_dynamic_flag_spec='$wl--export-all-symbols' 10393 allow_undefined_flag=unsupported 10394 always_export_symbols=no 10395 enable_shared_with_static_runtimes=yes 10396 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' 10397 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10398 10399 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10400 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10401 # If the export-symbols file already is a .def file, use it as 10402 # is; otherwise, prepend EXPORTS... 10403 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10404 cp $export_symbols $output_objdir/$soname.def; 10405 else 10406 echo EXPORTS > $output_objdir/$soname.def; 10407 cat $export_symbols >> $output_objdir/$soname.def; 10408 fi~ 10409 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10410 else 10411 ld_shlibs=no 10412 fi 10413 ;; 10414 10415 haiku*) 10416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10417 link_all_deplibs=yes 10418 ;; 10419 10420 os2*) 10421 hardcode_libdir_flag_spec='-L$libdir' 10422 hardcode_minus_L=yes 10423 allow_undefined_flag=unsupported 10424 shrext_cmds=.dll 10425 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10426 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10427 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10428 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10429 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10430 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10431 emximp -o $lib $output_objdir/$libname.def' 10432 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10433 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10434 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10435 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10436 prefix_cmds="$SED"~ 10437 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10438 prefix_cmds="$prefix_cmds -e 1d"; 10439 fi~ 10440 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10441 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10442 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10443 emximp -o $lib $output_objdir/$libname.def' 10444 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10445 enable_shared_with_static_runtimes=yes 10446 file_list_spec='@' 10447 ;; 10448 10449 interix[3-9]*) 10450 hardcode_direct=no 10451 hardcode_shlibpath_var=no 10452 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10453 export_dynamic_flag_spec='$wl-E' 10454 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10455 # Instead, shared libraries are loaded at an image base (0x10000000 by 10456 # default) and relocated if they conflict, which is a slow very memory 10457 # consuming and fragmenting process. To avoid this, we pick a random, 10458 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10459 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10460 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10461 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' 10462 ;; 10463 10464 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10465 tmp_diet=no 10466 if test linux-dietlibc = "$host_os"; then 10467 case $cc_basename in 10468 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10469 esac 10470 fi 10471 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10472 && test no = "$tmp_diet" 10473 then 10474 tmp_addflag=' $pic_flag' 10475 tmp_sharedflag='-shared' 10476 case $cc_basename,$host_cpu in 10477 pgcc*) # Portland Group C compiler 10478 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' 10479 tmp_addflag=' $pic_flag' 10480 ;; 10481 pgf77* | pgf90* | pgf95* | pgfortran*) 10482 # Portland Group f77 and f90 compilers 10483 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' 10484 tmp_addflag=' $pic_flag -Mnomain' ;; 10485 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10486 tmp_addflag=' -i_dynamic' ;; 10487 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10488 tmp_addflag=' -i_dynamic -nofor_main' ;; 10489 ifc* | ifort*) # Intel Fortran compiler 10490 tmp_addflag=' -nofor_main' ;; 10491 lf95*) # Lahey Fortran 8.1 10492 whole_archive_flag_spec= 10493 tmp_sharedflag='--shared' ;; 10494 nagfor*) # NAGFOR 5.3 10495 tmp_sharedflag='-Wl,-shared' ;; 10496 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10497 tmp_sharedflag='-qmkshrobj' 10498 tmp_addflag= ;; 10499 nvcc*) # Cuda Compiler Driver 2.2 10500 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' 10501 compiler_needs_object=yes 10502 ;; 10503 esac 10504 case `$CC -V 2>&1 | sed 5q` in 10505 *Sun\ C*) # Sun C 5.9 10506 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' 10507 compiler_needs_object=yes 10508 tmp_sharedflag='-G' ;; 10509 *Sun\ F*) # Sun Fortran 8.3 10510 tmp_sharedflag='-G' ;; 10511 esac 10512 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10513 10514 if test yes = "$supports_anon_versioning"; then 10515 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10516 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10517 echo "local: *; };" >> $output_objdir/$libname.ver~ 10518 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10519 fi 10520 10521 case $cc_basename in 10522 tcc*) 10523 export_dynamic_flag_spec='-rdynamic' 10524 ;; 10525 xlf* | bgf* | bgxlf* | mpixlf*) 10526 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10527 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10528 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10529 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10530 if test yes = "$supports_anon_versioning"; then 10531 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10532 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10533 echo "local: *; };" >> $output_objdir/$libname.ver~ 10534 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10535 fi 10536 ;; 10537 esac 10538 else 10539 ld_shlibs=no 10540 fi 10541 ;; 10542 10543 netbsd*) 10544 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10545 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10546 wlarc= 10547 else 10548 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10549 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10550 fi 10551 ;; 10552 10553 solaris*) 10554 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10555 ld_shlibs=no 10556 cat <<_LT_EOF 1>&2 10557 10558*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10559*** create shared libraries on Solaris systems. Therefore, libtool 10560*** is disabling shared libraries support. We urge you to upgrade GNU 10561*** binutils to release 2.9.1 or newer. Another option is to modify 10562*** your PATH or compiler configuration so that the native linker is 10563*** used, and then restart. 10564 10565_LT_EOF 10566 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10567 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10568 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10569 else 10570 ld_shlibs=no 10571 fi 10572 ;; 10573 10574 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10575 case `$LD -v 2>&1` in 10576 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10577 ld_shlibs=no 10578 cat <<_LT_EOF 1>&2 10579 10580*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10581*** reliably create shared libraries on SCO systems. Therefore, libtool 10582*** is disabling shared libraries support. We urge you to upgrade GNU 10583*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10584*** your PATH or compiler configuration so that the native linker is 10585*** used, and then restart. 10586 10587_LT_EOF 10588 ;; 10589 *) 10590 # For security reasons, it is highly recommended that you always 10591 # use absolute paths for naming shared libraries, and exclude the 10592 # DT_RUNPATH tag from executables and libraries. But doing so 10593 # requires that you compile everything twice, which is a pain. 10594 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10595 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10597 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10598 else 10599 ld_shlibs=no 10600 fi 10601 ;; 10602 esac 10603 ;; 10604 10605 sunos4*) 10606 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10607 wlarc= 10608 hardcode_direct=yes 10609 hardcode_shlibpath_var=no 10610 ;; 10611 10612 *) 10613 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10614 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10615 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10616 else 10617 ld_shlibs=no 10618 fi 10619 ;; 10620 esac 10621 10622 if test no = "$ld_shlibs"; then 10623 runpath_var= 10624 hardcode_libdir_flag_spec= 10625 export_dynamic_flag_spec= 10626 whole_archive_flag_spec= 10627 fi 10628 else 10629 # PORTME fill in a description of your system's linker (not GNU ld) 10630 case $host_os in 10631 aix3*) 10632 allow_undefined_flag=unsupported 10633 always_export_symbols=yes 10634 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' 10635 # Note: this linker hardcodes the directories in LIBPATH if there 10636 # are no directories specified by -L. 10637 hardcode_minus_L=yes 10638 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10639 # Neither direct hardcoding nor static linking is supported with a 10640 # broken collect2. 10641 hardcode_direct=unsupported 10642 fi 10643 ;; 10644 10645 aix[4-9]*) 10646 if test ia64 = "$host_cpu"; then 10647 # On IA64, the linker does run time linking by default, so we don't 10648 # have to do anything special. 10649 aix_use_runtimelinking=no 10650 exp_sym_flag='-Bexport' 10651 no_entry_flag= 10652 else 10653 # If we're using GNU nm, then we don't want the "-C" option. 10654 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10655 # Without the "-l" option, or with the "-B" option, AIX nm treats 10656 # weak defined symbols like other global defined symbols, whereas 10657 # GNU nm marks them as "W". 10658 # While the 'weak' keyword is ignored in the Export File, we need 10659 # it in the Import File for the 'aix-soname' feature, so we have 10660 # to replace the "-B" option with "-P" for AIX nm. 10661 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10662 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' 10663 else 10664 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 == "L") || (\$ 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' 10665 fi 10666 aix_use_runtimelinking=no 10667 10668 # Test if we are trying to use run time linking or normal 10669 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10670 # have runtime linking enabled, and use it for executables. 10671 # For shared libraries, we enable/disable runtime linking 10672 # depending on the kind of the shared library created - 10673 # when "with_aix_soname,aix_use_runtimelinking" is: 10674 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10675 # "aix,yes" lib.so shared, rtl:yes, for executables 10676 # lib.a static archive 10677 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10678 # lib.a(lib.so.V) shared, rtl:no, for executables 10679 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10680 # lib.a(lib.so.V) shared, rtl:no 10681 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10682 # lib.a static archive 10683 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10684 for ld_flag in $LDFLAGS; do 10685 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10686 aix_use_runtimelinking=yes 10687 break 10688 fi 10689 done 10690 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10691 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10692 # so we don't have lib.a shared libs to link our executables. 10693 # We have to force runtime linking in this case. 10694 aix_use_runtimelinking=yes 10695 LDFLAGS="$LDFLAGS -Wl,-brtl" 10696 fi 10697 ;; 10698 esac 10699 10700 exp_sym_flag='-bexport' 10701 no_entry_flag='-bnoentry' 10702 fi 10703 10704 # When large executables or shared objects are built, AIX ld can 10705 # have problems creating the table of contents. If linking a library 10706 # or program results in "error TOC overflow" add -mminimal-toc to 10707 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10708 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10709 10710 archive_cmds='' 10711 hardcode_direct=yes 10712 hardcode_direct_absolute=yes 10713 hardcode_libdir_separator=':' 10714 link_all_deplibs=yes 10715 file_list_spec='$wl-f,' 10716 case $with_aix_soname,$aix_use_runtimelinking in 10717 aix,*) ;; # traditional, no import file 10718 svr4,* | *,yes) # use import file 10719 # The Import File defines what to hardcode. 10720 hardcode_direct=no 10721 hardcode_direct_absolute=no 10722 ;; 10723 esac 10724 10725 if test yes = "$GCC"; then 10726 case $host_os in aix4.[012]|aix4.[012].*) 10727 # We only want to do this on AIX 4.2 and lower, the check 10728 # below for broken collect2 doesn't work under 4.3+ 10729 collect2name=`$CC -print-prog-name=collect2` 10730 if test -f "$collect2name" && 10731 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10732 then 10733 # We have reworked collect2 10734 : 10735 else 10736 # We have old collect2 10737 hardcode_direct=unsupported 10738 # It fails to find uninstalled libraries when the uninstalled 10739 # path is not listed in the libpath. Setting hardcode_minus_L 10740 # to unsupported forces relinking 10741 hardcode_minus_L=yes 10742 hardcode_libdir_flag_spec='-L$libdir' 10743 hardcode_libdir_separator= 10744 fi 10745 ;; 10746 esac 10747 shared_flag='-shared' 10748 if test yes = "$aix_use_runtimelinking"; then 10749 shared_flag="$shared_flag "'$wl-G' 10750 fi 10751 # Need to ensure runtime linking is disabled for the traditional 10752 # shared library, or the linker may eventually find shared libraries 10753 # /with/ Import File - we do not want to mix them. 10754 shared_flag_aix='-shared' 10755 shared_flag_svr4='-shared $wl-G' 10756 else 10757 # not using gcc 10758 if test ia64 = "$host_cpu"; then 10759 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10760 # chokes on -Wl,-G. The following line is correct: 10761 shared_flag='-G' 10762 else 10763 if test yes = "$aix_use_runtimelinking"; then 10764 shared_flag='$wl-G' 10765 else 10766 shared_flag='$wl-bM:SRE' 10767 fi 10768 shared_flag_aix='$wl-bM:SRE' 10769 shared_flag_svr4='$wl-G' 10770 fi 10771 fi 10772 10773 export_dynamic_flag_spec='$wl-bexpall' 10774 # It seems that -bexpall does not export symbols beginning with 10775 # underscore (_), so it is better to generate a list of symbols to export. 10776 always_export_symbols=yes 10777 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10778 # Warning - without using the other runtime loading flags (-brtl), 10779 # -berok will link without error, but may produce a broken library. 10780 allow_undefined_flag='-berok' 10781 # Determine the default libpath from the value encoded in an 10782 # empty executable. 10783 if test set = "${lt_cv_aix_libpath+set}"; then 10784 aix_libpath=$lt_cv_aix_libpath 10785else 10786 if ${lt_cv_aix_libpath_+:} false; then : 10787 $as_echo_n "(cached) " >&6 10788else 10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10790/* end confdefs.h. */ 10791 10792int 10793main () 10794{ 10795 10796 ; 10797 return 0; 10798} 10799_ACEOF 10800if ac_fn_c_try_link "$LINENO"; then : 10801 10802 lt_aix_libpath_sed=' 10803 /Import File Strings/,/^$/ { 10804 /^0/ { 10805 s/^0 *\([^ ]*\) *$/\1/ 10806 p 10807 } 10808 }' 10809 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10810 # Check for a 64-bit object if we didn't find anything. 10811 if test -z "$lt_cv_aix_libpath_"; then 10812 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10813 fi 10814fi 10815rm -f core conftest.err conftest.$ac_objext \ 10816 conftest$ac_exeext conftest.$ac_ext 10817 if test -z "$lt_cv_aix_libpath_"; then 10818 lt_cv_aix_libpath_=/usr/lib:/lib 10819 fi 10820 10821fi 10822 10823 aix_libpath=$lt_cv_aix_libpath_ 10824fi 10825 10826 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10827 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 10828 else 10829 if test ia64 = "$host_cpu"; then 10830 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10831 allow_undefined_flag="-z nodefs" 10832 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" 10833 else 10834 # Determine the default libpath from the value encoded in an 10835 # empty executable. 10836 if test set = "${lt_cv_aix_libpath+set}"; then 10837 aix_libpath=$lt_cv_aix_libpath 10838else 10839 if ${lt_cv_aix_libpath_+:} false; then : 10840 $as_echo_n "(cached) " >&6 10841else 10842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10843/* end confdefs.h. */ 10844 10845int 10846main () 10847{ 10848 10849 ; 10850 return 0; 10851} 10852_ACEOF 10853if ac_fn_c_try_link "$LINENO"; then : 10854 10855 lt_aix_libpath_sed=' 10856 /Import File Strings/,/^$/ { 10857 /^0/ { 10858 s/^0 *\([^ ]*\) *$/\1/ 10859 p 10860 } 10861 }' 10862 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10863 # Check for a 64-bit object if we didn't find anything. 10864 if test -z "$lt_cv_aix_libpath_"; then 10865 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10866 fi 10867fi 10868rm -f core conftest.err conftest.$ac_objext \ 10869 conftest$ac_exeext conftest.$ac_ext 10870 if test -z "$lt_cv_aix_libpath_"; then 10871 lt_cv_aix_libpath_=/usr/lib:/lib 10872 fi 10873 10874fi 10875 10876 aix_libpath=$lt_cv_aix_libpath_ 10877fi 10878 10879 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10880 # Warning - without using the other run time loading flags, 10881 # -berok will link without error, but may produce a broken library. 10882 no_undefined_flag=' $wl-bernotok' 10883 allow_undefined_flag=' $wl-berok' 10884 if test yes = "$with_gnu_ld"; then 10885 # We only use this code for GNU lds that support --whole-archive. 10886 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10887 else 10888 # Exported symbols can be pulled into shared objects from archives 10889 whole_archive_flag_spec='$convenience' 10890 fi 10891 archive_cmds_need_lc=yes 10892 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10893 # -brtl affects multiple linker settings, -berok does not and is overridden later 10894 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10895 if test svr4 != "$with_aix_soname"; then 10896 # This is similar to how AIX traditionally builds its shared libraries. 10897 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' 10898 fi 10899 if test aix != "$with_aix_soname"; then 10900 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' 10901 else 10902 # used by -dlpreopen to get the symbols 10903 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10904 fi 10905 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10906 fi 10907 fi 10908 ;; 10909 10910 amigaos*) 10911 case $host_cpu in 10912 powerpc) 10913 # see comment about AmigaOS4 .so support 10914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10915 archive_expsym_cmds='' 10916 ;; 10917 m68k) 10918 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)' 10919 hardcode_libdir_flag_spec='-L$libdir' 10920 hardcode_minus_L=yes 10921 ;; 10922 esac 10923 ;; 10924 10925 bsdi[45]*) 10926 export_dynamic_flag_spec=-rdynamic 10927 ;; 10928 10929 cygwin* | mingw* | pw32* | cegcc*) 10930 # When not using gcc, we currently assume that we are using 10931 # Microsoft Visual C++ or Intel C++ Compiler. 10932 # hardcode_libdir_flag_spec is actually meaningless, as there is 10933 # no search path for DLLs. 10934 case $cc_basename in 10935 cl* | icl*) 10936 # Native MSVC or ICC 10937 hardcode_libdir_flag_spec=' ' 10938 allow_undefined_flag=unsupported 10939 always_export_symbols=yes 10940 file_list_spec='@' 10941 # Tell ltmain to make .lib files, not .a files. 10942 libext=lib 10943 # Tell ltmain to make .dll files, not .so files. 10944 shrext_cmds=.dll 10945 # FIXME: Setting linknames here is a bad hack. 10946 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10947 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10948 cp "$export_symbols" "$output_objdir/$soname.def"; 10949 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10950 else 10951 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10952 fi~ 10953 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10954 linknames=' 10955 # The linker will not automatically build a static lib if we build a DLL. 10956 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10957 enable_shared_with_static_runtimes=yes 10958 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10959 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10960 # Don't use ranlib 10961 old_postinstall_cmds='chmod 644 $oldlib' 10962 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10963 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10964 case $lt_outputfile in 10965 *.exe|*.EXE) ;; 10966 *) 10967 lt_outputfile=$lt_outputfile.exe 10968 lt_tool_outputfile=$lt_tool_outputfile.exe 10969 ;; 10970 esac~ 10971 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10972 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10973 $RM "$lt_outputfile.manifest"; 10974 fi' 10975 ;; 10976 *) 10977 # Assume MSVC and ICC wrapper 10978 hardcode_libdir_flag_spec=' ' 10979 allow_undefined_flag=unsupported 10980 # Tell ltmain to make .lib files, not .a files. 10981 libext=lib 10982 # Tell ltmain to make .dll files, not .so files. 10983 shrext_cmds=.dll 10984 # FIXME: Setting linknames here is a bad hack. 10985 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10986 # The linker will automatically build a .lib file if we build a DLL. 10987 old_archive_from_new_cmds='true' 10988 # FIXME: Should let the user specify the lib program. 10989 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10990 enable_shared_with_static_runtimes=yes 10991 ;; 10992 esac 10993 ;; 10994 10995 darwin* | rhapsody*) 10996 10997 10998 archive_cmds_need_lc=no 10999 hardcode_direct=no 11000 hardcode_automatic=yes 11001 hardcode_shlibpath_var=unsupported 11002 if test yes = "$lt_cv_ld_force_load"; then 11003 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\"`' 11004 11005 else 11006 whole_archive_flag_spec='' 11007 fi 11008 link_all_deplibs=yes 11009 allow_undefined_flag=$_lt_dar_allow_undefined 11010 case $cc_basename in 11011 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11012 *) _lt_dar_can_shared=$GCC ;; 11013 esac 11014 if test yes = "$_lt_dar_can_shared"; then 11015 output_verbose_link_cmd=func_echo_all 11016 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11017 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11018 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" 11019 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" 11020 11021 else 11022 ld_shlibs=no 11023 fi 11024 11025 ;; 11026 11027 dgux*) 11028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11029 hardcode_libdir_flag_spec='-L$libdir' 11030 hardcode_shlibpath_var=no 11031 ;; 11032 11033 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11034 # support. Future versions do this automatically, but an explicit c++rt0.o 11035 # does not break anything, and helps significantly (at the cost of a little 11036 # extra space). 11037 freebsd2.2*) 11038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11039 hardcode_libdir_flag_spec='-R$libdir' 11040 hardcode_direct=yes 11041 hardcode_shlibpath_var=no 11042 ;; 11043 11044 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11045 freebsd2.*) 11046 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11047 hardcode_direct=yes 11048 hardcode_minus_L=yes 11049 hardcode_shlibpath_var=no 11050 ;; 11051 11052 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11053 freebsd* | dragonfly*) 11054 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11055 hardcode_libdir_flag_spec='-R$libdir' 11056 hardcode_direct=yes 11057 hardcode_shlibpath_var=no 11058 ;; 11059 11060 hpux9*) 11061 if test yes = "$GCC"; then 11062 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' 11063 else 11064 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' 11065 fi 11066 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11067 hardcode_libdir_separator=: 11068 hardcode_direct=yes 11069 11070 # hardcode_minus_L: Not really in the search PATH, 11071 # but as the default location of the library. 11072 hardcode_minus_L=yes 11073 export_dynamic_flag_spec='$wl-E' 11074 ;; 11075 11076 hpux10*) 11077 if test yes,no = "$GCC,$with_gnu_ld"; then 11078 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11079 else 11080 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11081 fi 11082 if test no = "$with_gnu_ld"; then 11083 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11084 hardcode_libdir_separator=: 11085 hardcode_direct=yes 11086 hardcode_direct_absolute=yes 11087 export_dynamic_flag_spec='$wl-E' 11088 # hardcode_minus_L: Not really in the search PATH, 11089 # but as the default location of the library. 11090 hardcode_minus_L=yes 11091 fi 11092 ;; 11093 11094 hpux11*) 11095 if test yes,no = "$GCC,$with_gnu_ld"; then 11096 case $host_cpu in 11097 hppa*64*) 11098 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11099 ;; 11100 ia64*) 11101 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11102 ;; 11103 *) 11104 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11105 ;; 11106 esac 11107 else 11108 case $host_cpu in 11109 hppa*64*) 11110 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11111 ;; 11112 ia64*) 11113 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11114 ;; 11115 *) 11116 11117 # Older versions of the 11.00 compiler do not understand -b yet 11118 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11120$as_echo_n "checking if $CC understands -b... " >&6; } 11121if ${lt_cv_prog_compiler__b+:} false; then : 11122 $as_echo_n "(cached) " >&6 11123else 11124 lt_cv_prog_compiler__b=no 11125 save_LDFLAGS=$LDFLAGS 11126 LDFLAGS="$LDFLAGS -b" 11127 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11128 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11129 # The linker can only warn and ignore the option if not recognized 11130 # So say no if there are warnings 11131 if test -s conftest.err; then 11132 # Append any errors to the config.log. 11133 cat conftest.err 1>&5 11134 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11136 if diff conftest.exp conftest.er2 >/dev/null; then 11137 lt_cv_prog_compiler__b=yes 11138 fi 11139 else 11140 lt_cv_prog_compiler__b=yes 11141 fi 11142 fi 11143 $RM -r conftest* 11144 LDFLAGS=$save_LDFLAGS 11145 11146fi 11147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11148$as_echo "$lt_cv_prog_compiler__b" >&6; } 11149 11150if test yes = "$lt_cv_prog_compiler__b"; then 11151 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11152else 11153 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11154fi 11155 11156 ;; 11157 esac 11158 fi 11159 if test no = "$with_gnu_ld"; then 11160 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11161 hardcode_libdir_separator=: 11162 11163 case $host_cpu in 11164 hppa*64*|ia64*) 11165 hardcode_direct=no 11166 hardcode_shlibpath_var=no 11167 ;; 11168 *) 11169 hardcode_direct=yes 11170 hardcode_direct_absolute=yes 11171 export_dynamic_flag_spec='$wl-E' 11172 11173 # hardcode_minus_L: Not really in the search PATH, 11174 # but as the default location of the library. 11175 hardcode_minus_L=yes 11176 ;; 11177 esac 11178 fi 11179 ;; 11180 11181 irix5* | irix6* | nonstopux*) 11182 if test yes = "$GCC"; then 11183 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' 11184 # Try to use the -exported_symbol ld option, if it does not 11185 # work, assume that -exports_file does not work either and 11186 # implicitly export all symbols. 11187 # This should be the same for all languages, so no per-tag cache variable. 11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11189$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11190if ${lt_cv_irix_exported_symbol+:} false; then : 11191 $as_echo_n "(cached) " >&6 11192else 11193 save_LDFLAGS=$LDFLAGS 11194 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11196/* end confdefs.h. */ 11197int foo (void) { return 0; } 11198_ACEOF 11199if ac_fn_c_try_link "$LINENO"; then : 11200 lt_cv_irix_exported_symbol=yes 11201else 11202 lt_cv_irix_exported_symbol=no 11203fi 11204rm -f core conftest.err conftest.$ac_objext \ 11205 conftest$ac_exeext conftest.$ac_ext 11206 LDFLAGS=$save_LDFLAGS 11207fi 11208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11209$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11210 if test yes = "$lt_cv_irix_exported_symbol"; then 11211 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' 11212 fi 11213 else 11214 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' 11215 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' 11216 fi 11217 archive_cmds_need_lc='no' 11218 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11219 hardcode_libdir_separator=: 11220 inherit_rpath=yes 11221 link_all_deplibs=yes 11222 ;; 11223 11224 linux*) 11225 case $cc_basename in 11226 tcc*) 11227 # Fabrice Bellard et al's Tiny C Compiler 11228 ld_shlibs=yes 11229 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11230 ;; 11231 esac 11232 ;; 11233 11234 netbsd*) 11235 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11236 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11237 else 11238 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11239 fi 11240 hardcode_libdir_flag_spec='-R$libdir' 11241 hardcode_direct=yes 11242 hardcode_shlibpath_var=no 11243 ;; 11244 11245 newsos6) 11246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11247 hardcode_direct=yes 11248 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11249 hardcode_libdir_separator=: 11250 hardcode_shlibpath_var=no 11251 ;; 11252 11253 *nto* | *qnx*) 11254 ;; 11255 11256 openbsd* | bitrig*) 11257 if test -f /usr/libexec/ld.so; then 11258 hardcode_direct=yes 11259 hardcode_shlibpath_var=no 11260 hardcode_direct_absolute=yes 11261 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11262 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11263 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11264 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11265 export_dynamic_flag_spec='$wl-E' 11266 else 11267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11268 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11269 fi 11270 else 11271 ld_shlibs=no 11272 fi 11273 ;; 11274 11275 os2*) 11276 hardcode_libdir_flag_spec='-L$libdir' 11277 hardcode_minus_L=yes 11278 allow_undefined_flag=unsupported 11279 shrext_cmds=.dll 11280 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11281 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11282 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11283 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11284 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11285 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11286 emximp -o $lib $output_objdir/$libname.def' 11287 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11288 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11289 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11290 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11291 prefix_cmds="$SED"~ 11292 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11293 prefix_cmds="$prefix_cmds -e 1d"; 11294 fi~ 11295 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11296 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11297 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11298 emximp -o $lib $output_objdir/$libname.def' 11299 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11300 enable_shared_with_static_runtimes=yes 11301 file_list_spec='@' 11302 ;; 11303 11304 osf3*) 11305 if test yes = "$GCC"; then 11306 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11307 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' 11308 else 11309 allow_undefined_flag=' -expect_unresolved \*' 11310 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' 11311 fi 11312 archive_cmds_need_lc='no' 11313 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11314 hardcode_libdir_separator=: 11315 ;; 11316 11317 osf4* | osf5*) # as osf3* with the addition of -msym flag 11318 if test yes = "$GCC"; then 11319 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11320 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' 11321 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11322 else 11323 allow_undefined_flag=' -expect_unresolved \*' 11324 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' 11325 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~ 11326 $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' 11327 11328 # Both c and cxx compiler support -rpath directly 11329 hardcode_libdir_flag_spec='-rpath $libdir' 11330 fi 11331 archive_cmds_need_lc='no' 11332 hardcode_libdir_separator=: 11333 ;; 11334 11335 solaris*) 11336 no_undefined_flag=' -z defs' 11337 if test yes = "$GCC"; then 11338 wlarc='$wl' 11339 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11340 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11341 $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' 11342 else 11343 case `$CC -V 2>&1` in 11344 *"Compilers 5.0"*) 11345 wlarc='' 11346 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11347 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11348 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11349 ;; 11350 *) 11351 wlarc='$wl' 11352 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11353 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11354 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11355 ;; 11356 esac 11357 fi 11358 hardcode_libdir_flag_spec='-R$libdir' 11359 hardcode_shlibpath_var=no 11360 case $host_os in 11361 solaris2.[0-5] | solaris2.[0-5].*) ;; 11362 *) 11363 # The compiler driver will combine and reorder linker options, 11364 # but understands '-z linker_flag'. GCC discards it without '$wl', 11365 # but is careful enough not to reorder. 11366 # Supported since Solaris 2.6 (maybe 2.5.1?) 11367 if test yes = "$GCC"; then 11368 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11369 else 11370 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11371 fi 11372 ;; 11373 esac 11374 link_all_deplibs=yes 11375 ;; 11376 11377 sunos4*) 11378 if test sequent = "$host_vendor"; then 11379 # Use $CC to link under sequent, because it throws in some extra .o 11380 # files that make .init and .fini sections work. 11381 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11382 else 11383 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11384 fi 11385 hardcode_libdir_flag_spec='-L$libdir' 11386 hardcode_direct=yes 11387 hardcode_minus_L=yes 11388 hardcode_shlibpath_var=no 11389 ;; 11390 11391 sysv4) 11392 case $host_vendor in 11393 sni) 11394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11395 hardcode_direct=yes # is this really true??? 11396 ;; 11397 siemens) 11398 ## LD is ld it makes a PLAMLIB 11399 ## CC just makes a GrossModule. 11400 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11401 reload_cmds='$CC -r -o $output$reload_objs' 11402 hardcode_direct=no 11403 ;; 11404 motorola) 11405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11406 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11407 ;; 11408 esac 11409 runpath_var='LD_RUN_PATH' 11410 hardcode_shlibpath_var=no 11411 ;; 11412 11413 sysv4.3*) 11414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11415 hardcode_shlibpath_var=no 11416 export_dynamic_flag_spec='-Bexport' 11417 ;; 11418 11419 sysv4*MP*) 11420 if test -d /usr/nec; then 11421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11422 hardcode_shlibpath_var=no 11423 runpath_var=LD_RUN_PATH 11424 hardcode_runpath_var=yes 11425 ld_shlibs=yes 11426 fi 11427 ;; 11428 11429 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11430 no_undefined_flag='$wl-z,text' 11431 archive_cmds_need_lc=no 11432 hardcode_shlibpath_var=no 11433 runpath_var='LD_RUN_PATH' 11434 11435 if test yes = "$GCC"; then 11436 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11437 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11438 else 11439 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11440 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11441 fi 11442 ;; 11443 11444 sysv5* | sco3.2v5* | sco5v6*) 11445 # Note: We CANNOT use -z defs as we might desire, because we do not 11446 # link with -lc, and that would cause any symbols used from libc to 11447 # always be unresolved, which means just about no library would 11448 # ever link correctly. If we're not using GNU ld we use -z text 11449 # though, which does catch some bad symbols but isn't as heavy-handed 11450 # as -z defs. 11451 no_undefined_flag='$wl-z,text' 11452 allow_undefined_flag='$wl-z,nodefs' 11453 archive_cmds_need_lc=no 11454 hardcode_shlibpath_var=no 11455 hardcode_libdir_flag_spec='$wl-R,$libdir' 11456 hardcode_libdir_separator=':' 11457 link_all_deplibs=yes 11458 export_dynamic_flag_spec='$wl-Bexport' 11459 runpath_var='LD_RUN_PATH' 11460 11461 if test yes = "$GCC"; then 11462 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11463 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11464 else 11465 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11466 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11467 fi 11468 ;; 11469 11470 uts4*) 11471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11472 hardcode_libdir_flag_spec='-L$libdir' 11473 hardcode_shlibpath_var=no 11474 ;; 11475 11476 *) 11477 ld_shlibs=no 11478 ;; 11479 esac 11480 11481 if test sni = "$host_vendor"; then 11482 case $host in 11483 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11484 export_dynamic_flag_spec='$wl-Blargedynsym' 11485 ;; 11486 esac 11487 fi 11488 fi 11489 11490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11491$as_echo "$ld_shlibs" >&6; } 11492test no = "$ld_shlibs" && can_build_shared=no 11493 11494with_gnu_ld=$with_gnu_ld 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510# 11511# Do we need to explicitly link libc? 11512# 11513case "x$archive_cmds_need_lc" in 11514x|xyes) 11515 # Assume -lc should be added 11516 archive_cmds_need_lc=yes 11517 11518 if test yes,yes = "$GCC,$enable_shared"; then 11519 case $archive_cmds in 11520 *'~'*) 11521 # FIXME: we may have to deal with multi-command sequences. 11522 ;; 11523 '$CC '*) 11524 # Test whether the compiler implicitly links with -lc since on some 11525 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11526 # to ld, don't add -lc before -lgcc. 11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11528$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11529if ${lt_cv_archive_cmds_need_lc+:} false; then : 11530 $as_echo_n "(cached) " >&6 11531else 11532 $RM conftest* 11533 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11534 11535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11536 (eval $ac_compile) 2>&5 11537 ac_status=$? 11538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11539 test $ac_status = 0; } 2>conftest.err; then 11540 soname=conftest 11541 lib=conftest 11542 libobjs=conftest.$ac_objext 11543 deplibs= 11544 wl=$lt_prog_compiler_wl 11545 pic_flag=$lt_prog_compiler_pic 11546 compiler_flags=-v 11547 linker_flags=-v 11548 verstring= 11549 output_objdir=. 11550 libname=conftest 11551 lt_save_allow_undefined_flag=$allow_undefined_flag 11552 allow_undefined_flag= 11553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11554 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11555 ac_status=$? 11556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11557 test $ac_status = 0; } 11558 then 11559 lt_cv_archive_cmds_need_lc=no 11560 else 11561 lt_cv_archive_cmds_need_lc=yes 11562 fi 11563 allow_undefined_flag=$lt_save_allow_undefined_flag 11564 else 11565 cat conftest.err 1>&5 11566 fi 11567 $RM conftest* 11568 11569fi 11570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11571$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11572 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11573 ;; 11574 esac 11575 fi 11576 ;; 11577esac 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11731$as_echo_n "checking dynamic linker characteristics... " >&6; } 11732 11733if test yes = "$GCC"; then 11734 case $host_os in 11735 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11736 *) lt_awk_arg='/^libraries:/' ;; 11737 esac 11738 case $host_os in 11739 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11740 *) lt_sed_strip_eq='s|=/|/|g' ;; 11741 esac 11742 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11743 case $lt_search_path_spec in 11744 *\;*) 11745 # if the path contains ";" then we assume it to be the separator 11746 # otherwise default to the standard path separator (i.e. ":") - it is 11747 # assumed that no part of a normal pathname contains ";" but that should 11748 # okay in the real world where ";" in dirpaths is itself problematic. 11749 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11750 ;; 11751 *) 11752 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11753 ;; 11754 esac 11755 # Ok, now we have the path, separated by spaces, we can step through it 11756 # and add multilib dir if necessary... 11757 lt_tmp_lt_search_path_spec= 11758 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11759 # ...but if some path component already ends with the multilib dir we assume 11760 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11761 case "$lt_multi_os_dir; $lt_search_path_spec " in 11762 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11763 lt_multi_os_dir= 11764 ;; 11765 esac 11766 for lt_sys_path in $lt_search_path_spec; do 11767 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11768 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11769 elif test -n "$lt_multi_os_dir"; then 11770 test -d "$lt_sys_path" && \ 11771 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11772 fi 11773 done 11774 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11775BEGIN {RS = " "; FS = "/|\n";} { 11776 lt_foo = ""; 11777 lt_count = 0; 11778 for (lt_i = NF; lt_i > 0; lt_i--) { 11779 if ($lt_i != "" && $lt_i != ".") { 11780 if ($lt_i == "..") { 11781 lt_count++; 11782 } else { 11783 if (lt_count == 0) { 11784 lt_foo = "/" $lt_i lt_foo; 11785 } else { 11786 lt_count--; 11787 } 11788 } 11789 } 11790 } 11791 if (lt_foo != "") { lt_freq[lt_foo]++; } 11792 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11793}'` 11794 # AWK program above erroneously prepends '/' to C:/dos/paths 11795 # for these hosts. 11796 case $host_os in 11797 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11798 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11799 esac 11800 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11801else 11802 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11803fi 11804library_names_spec= 11805libname_spec='lib$name' 11806soname_spec= 11807shrext_cmds=.so 11808postinstall_cmds= 11809postuninstall_cmds= 11810finish_cmds= 11811finish_eval= 11812shlibpath_var= 11813shlibpath_overrides_runpath=unknown 11814version_type=none 11815dynamic_linker="$host_os ld.so" 11816sys_lib_dlsearch_path_spec="/lib /usr/lib" 11817need_lib_prefix=unknown 11818hardcode_into_libs=no 11819 11820# when you set need_version to no, make sure it does not cause -set_version 11821# flags to be left without arguments 11822need_version=unknown 11823 11824 11825 11826case $host_os in 11827aix3*) 11828 version_type=linux # correct to gnu/linux during the next big refactor 11829 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11830 shlibpath_var=LIBPATH 11831 11832 # AIX 3 has no versioning support, so we append a major version to the name. 11833 soname_spec='$libname$release$shared_ext$major' 11834 ;; 11835 11836aix[4-9]*) 11837 version_type=linux # correct to gnu/linux during the next big refactor 11838 need_lib_prefix=no 11839 need_version=no 11840 hardcode_into_libs=yes 11841 if test ia64 = "$host_cpu"; then 11842 # AIX 5 supports IA64 11843 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11844 shlibpath_var=LD_LIBRARY_PATH 11845 else 11846 # With GCC up to 2.95.x, collect2 would create an import file 11847 # for dependence libraries. The import file would start with 11848 # the line '#! .'. This would cause the generated library to 11849 # depend on '.', always an invalid library. This was fixed in 11850 # development snapshots of GCC prior to 3.0. 11851 case $host_os in 11852 aix4 | aix4.[01] | aix4.[01].*) 11853 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11854 echo ' yes ' 11855 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11856 : 11857 else 11858 can_build_shared=no 11859 fi 11860 ;; 11861 esac 11862 # Using Import Files as archive members, it is possible to support 11863 # filename-based versioning of shared library archives on AIX. While 11864 # this would work for both with and without runtime linking, it will 11865 # prevent static linking of such archives. So we do filename-based 11866 # shared library versioning with .so extension only, which is used 11867 # when both runtime linking and shared linking is enabled. 11868 # Unfortunately, runtime linking may impact performance, so we do 11869 # not want this to be the default eventually. Also, we use the 11870 # versioned .so libs for executables only if there is the -brtl 11871 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11872 # To allow for filename-based versioning support, we need to create 11873 # libNAME.so.V as an archive file, containing: 11874 # *) an Import File, referring to the versioned filename of the 11875 # archive as well as the shared archive member, telling the 11876 # bitwidth (32 or 64) of that shared object, and providing the 11877 # list of exported symbols of that shared object, eventually 11878 # decorated with the 'weak' keyword 11879 # *) the shared object with the F_LOADONLY flag set, to really avoid 11880 # it being seen by the linker. 11881 # At run time we better use the real file rather than another symlink, 11882 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11883 11884 case $with_aix_soname,$aix_use_runtimelinking in 11885 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11886 # soname into executable. Probably we can add versioning support to 11887 # collect2, so additional links can be useful in future. 11888 aix,yes) # traditional libtool 11889 dynamic_linker='AIX unversionable lib.so' 11890 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11891 # instead of lib<name>.a to let people know that these are not 11892 # typical AIX shared libraries. 11893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11894 ;; 11895 aix,no) # traditional AIX only 11896 dynamic_linker='AIX lib.a(lib.so.V)' 11897 # We preserve .a as extension for shared libraries through AIX4.2 11898 # and later when we are not doing run time linking. 11899 library_names_spec='$libname$release.a $libname.a' 11900 soname_spec='$libname$release$shared_ext$major' 11901 ;; 11902 svr4,*) # full svr4 only 11903 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11904 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11905 # We do not specify a path in Import Files, so LIBPATH fires. 11906 shlibpath_overrides_runpath=yes 11907 ;; 11908 *,yes) # both, prefer svr4 11909 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11910 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11911 # unpreferred sharedlib libNAME.a needs extra handling 11912 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"' 11913 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"' 11914 # We do not specify a path in Import Files, so LIBPATH fires. 11915 shlibpath_overrides_runpath=yes 11916 ;; 11917 *,no) # both, prefer aix 11918 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11919 library_names_spec='$libname$release.a $libname.a' 11920 soname_spec='$libname$release$shared_ext$major' 11921 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11922 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)' 11923 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"' 11924 ;; 11925 esac 11926 shlibpath_var=LIBPATH 11927 fi 11928 ;; 11929 11930amigaos*) 11931 case $host_cpu in 11932 powerpc) 11933 # Since July 2007 AmigaOS4 officially supports .so libraries. 11934 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11935 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11936 ;; 11937 m68k) 11938 library_names_spec='$libname.ixlibrary $libname.a' 11939 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11940 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' 11941 ;; 11942 esac 11943 ;; 11944 11945beos*) 11946 library_names_spec='$libname$shared_ext' 11947 dynamic_linker="$host_os ld.so" 11948 shlibpath_var=LIBRARY_PATH 11949 ;; 11950 11951bsdi[45]*) 11952 version_type=linux # correct to gnu/linux during the next big refactor 11953 need_version=no 11954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11955 soname_spec='$libname$release$shared_ext$major' 11956 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11957 shlibpath_var=LD_LIBRARY_PATH 11958 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11959 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11960 # the default ld.so.conf also contains /usr/contrib/lib and 11961 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11962 # libtool to hard-code these into programs 11963 ;; 11964 11965cygwin* | mingw* | pw32* | cegcc*) 11966 version_type=windows 11967 shrext_cmds=.dll 11968 need_version=no 11969 need_lib_prefix=no 11970 11971 case $GCC,$cc_basename in 11972 yes,*) 11973 # gcc 11974 library_names_spec='$libname.dll.a' 11975 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11976 postinstall_cmds='base_file=`basename \$file`~ 11977 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11978 dldir=$destdir/`dirname \$dlpath`~ 11979 test -d \$dldir || mkdir -p \$dldir~ 11980 $install_prog $dir/$dlname \$dldir/$dlname~ 11981 chmod a+x \$dldir/$dlname~ 11982 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11983 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11984 fi' 11985 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11986 dlpath=$dir/\$dldll~ 11987 $RM \$dlpath' 11988 shlibpath_overrides_runpath=yes 11989 11990 case $host_os in 11991 cygwin*) 11992 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11993 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11994 11995 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11996 ;; 11997 mingw* | cegcc*) 11998 # MinGW DLLs use traditional 'lib' prefix 11999 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12000 ;; 12001 pw32*) 12002 # pw32 DLLs use 'pw' prefix rather than 'lib' 12003 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12004 ;; 12005 esac 12006 dynamic_linker='Win32 ld.exe' 12007 ;; 12008 12009 *,cl* | *,icl*) 12010 # Native MSVC or ICC 12011 libname_spec='$name' 12012 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12013 library_names_spec='$libname.dll.lib' 12014 12015 case $build_os in 12016 mingw*) 12017 sys_lib_search_path_spec= 12018 lt_save_ifs=$IFS 12019 IFS=';' 12020 for lt_path in $LIB 12021 do 12022 IFS=$lt_save_ifs 12023 # Let DOS variable expansion print the short 8.3 style file name. 12024 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12025 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12026 done 12027 IFS=$lt_save_ifs 12028 # Convert to MSYS style. 12029 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12030 ;; 12031 cygwin*) 12032 # Convert to unix form, then to dos form, then back to unix form 12033 # but this time dos style (no spaces!) so that the unix form looks 12034 # like /cygdrive/c/PROGRA~1:/cygdr... 12035 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12036 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12037 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12038 ;; 12039 *) 12040 sys_lib_search_path_spec=$LIB 12041 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12042 # It is most probably a Windows format PATH. 12043 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12044 else 12045 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12046 fi 12047 # FIXME: find the short name or the path components, as spaces are 12048 # common. (e.g. "Program Files" -> "PROGRA~1") 12049 ;; 12050 esac 12051 12052 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12053 postinstall_cmds='base_file=`basename \$file`~ 12054 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12055 dldir=$destdir/`dirname \$dlpath`~ 12056 test -d \$dldir || mkdir -p \$dldir~ 12057 $install_prog $dir/$dlname \$dldir/$dlname' 12058 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12059 dlpath=$dir/\$dldll~ 12060 $RM \$dlpath' 12061 shlibpath_overrides_runpath=yes 12062 dynamic_linker='Win32 link.exe' 12063 ;; 12064 12065 *) 12066 # Assume MSVC and ICC wrapper 12067 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12068 dynamic_linker='Win32 ld.exe' 12069 ;; 12070 esac 12071 # FIXME: first we should search . and the directory the executable is in 12072 shlibpath_var=PATH 12073 ;; 12074 12075darwin* | rhapsody*) 12076 dynamic_linker="$host_os dyld" 12077 version_type=darwin 12078 need_lib_prefix=no 12079 need_version=no 12080 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12081 soname_spec='$libname$release$major$shared_ext' 12082 shlibpath_overrides_runpath=yes 12083 shlibpath_var=DYLD_LIBRARY_PATH 12084 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12085 12086 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12087 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12088 ;; 12089 12090dgux*) 12091 version_type=linux # correct to gnu/linux during the next big refactor 12092 need_lib_prefix=no 12093 need_version=no 12094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12095 soname_spec='$libname$release$shared_ext$major' 12096 shlibpath_var=LD_LIBRARY_PATH 12097 ;; 12098 12099freebsd* | dragonfly*) 12100 # DragonFly does not have aout. When/if they implement a new 12101 # versioning mechanism, adjust this. 12102 if test -x /usr/bin/objformat; then 12103 objformat=`/usr/bin/objformat` 12104 else 12105 case $host_os in 12106 freebsd[23].*) objformat=aout ;; 12107 *) objformat=elf ;; 12108 esac 12109 fi 12110 version_type=freebsd-$objformat 12111 case $version_type in 12112 freebsd-elf*) 12113 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12114 soname_spec='$libname$release$shared_ext$major' 12115 need_version=no 12116 need_lib_prefix=no 12117 ;; 12118 freebsd-*) 12119 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12120 need_version=yes 12121 ;; 12122 esac 12123 shlibpath_var=LD_LIBRARY_PATH 12124 case $host_os in 12125 freebsd2.*) 12126 shlibpath_overrides_runpath=yes 12127 ;; 12128 freebsd3.[01]* | freebsdelf3.[01]*) 12129 shlibpath_overrides_runpath=yes 12130 hardcode_into_libs=yes 12131 ;; 12132 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12133 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12134 shlibpath_overrides_runpath=no 12135 hardcode_into_libs=yes 12136 ;; 12137 *) # from 4.6 on, and DragonFly 12138 shlibpath_overrides_runpath=yes 12139 hardcode_into_libs=yes 12140 ;; 12141 esac 12142 ;; 12143 12144haiku*) 12145 version_type=linux # correct to gnu/linux during the next big refactor 12146 need_lib_prefix=no 12147 need_version=no 12148 dynamic_linker="$host_os runtime_loader" 12149 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12150 soname_spec='$libname$release$shared_ext$major' 12151 shlibpath_var=LIBRARY_PATH 12152 shlibpath_overrides_runpath=no 12153 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12154 hardcode_into_libs=yes 12155 ;; 12156 12157hpux9* | hpux10* | hpux11*) 12158 # Give a soname corresponding to the major version so that dld.sl refuses to 12159 # link against other versions. 12160 version_type=sunos 12161 need_lib_prefix=no 12162 need_version=no 12163 case $host_cpu in 12164 ia64*) 12165 shrext_cmds='.so' 12166 hardcode_into_libs=yes 12167 dynamic_linker="$host_os dld.so" 12168 shlibpath_var=LD_LIBRARY_PATH 12169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12170 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12171 soname_spec='$libname$release$shared_ext$major' 12172 if test 32 = "$HPUX_IA64_MODE"; then 12173 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12174 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12175 else 12176 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12177 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12178 fi 12179 ;; 12180 hppa*64*) 12181 shrext_cmds='.sl' 12182 hardcode_into_libs=yes 12183 dynamic_linker="$host_os dld.sl" 12184 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12185 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12186 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12187 soname_spec='$libname$release$shared_ext$major' 12188 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12189 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12190 ;; 12191 *) 12192 shrext_cmds='.sl' 12193 dynamic_linker="$host_os dld.sl" 12194 shlibpath_var=SHLIB_PATH 12195 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12196 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12197 soname_spec='$libname$release$shared_ext$major' 12198 ;; 12199 esac 12200 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12201 postinstall_cmds='chmod 555 $lib' 12202 # or fails outright, so override atomically: 12203 install_override_mode=555 12204 ;; 12205 12206interix[3-9]*) 12207 version_type=linux # correct to gnu/linux during the next big refactor 12208 need_lib_prefix=no 12209 need_version=no 12210 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12211 soname_spec='$libname$release$shared_ext$major' 12212 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12213 shlibpath_var=LD_LIBRARY_PATH 12214 shlibpath_overrides_runpath=no 12215 hardcode_into_libs=yes 12216 ;; 12217 12218irix5* | irix6* | nonstopux*) 12219 case $host_os in 12220 nonstopux*) version_type=nonstopux ;; 12221 *) 12222 if test yes = "$lt_cv_prog_gnu_ld"; then 12223 version_type=linux # correct to gnu/linux during the next big refactor 12224 else 12225 version_type=irix 12226 fi ;; 12227 esac 12228 need_lib_prefix=no 12229 need_version=no 12230 soname_spec='$libname$release$shared_ext$major' 12231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12232 case $host_os in 12233 irix5* | nonstopux*) 12234 libsuff= shlibsuff= 12235 ;; 12236 *) 12237 case $LD in # libtool.m4 will add one of these switches to LD 12238 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12239 libsuff= shlibsuff= libmagic=32-bit;; 12240 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12241 libsuff=32 shlibsuff=N32 libmagic=N32;; 12242 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12243 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12244 *) libsuff= shlibsuff= libmagic=never-match;; 12245 esac 12246 ;; 12247 esac 12248 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12249 shlibpath_overrides_runpath=no 12250 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12251 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12252 hardcode_into_libs=yes 12253 ;; 12254 12255# No shared lib support for Linux oldld, aout, or coff. 12256linux*oldld* | linux*aout* | linux*coff*) 12257 dynamic_linker=no 12258 ;; 12259 12260linux*android*) 12261 version_type=none # Android doesn't support versioned libraries. 12262 need_lib_prefix=no 12263 need_version=no 12264 library_names_spec='$libname$release$shared_ext' 12265 soname_spec='$libname$release$shared_ext' 12266 finish_cmds= 12267 shlibpath_var=LD_LIBRARY_PATH 12268 shlibpath_overrides_runpath=yes 12269 12270 # This implies no fast_install, which is unacceptable. 12271 # Some rework will be needed to allow for fast_install 12272 # before this can be enabled. 12273 hardcode_into_libs=yes 12274 12275 dynamic_linker='Android linker' 12276 # Don't embed -rpath directories since the linker doesn't support them. 12277 hardcode_libdir_flag_spec='-L$libdir' 12278 ;; 12279 12280# This must be glibc/ELF. 12281linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12282 version_type=linux # correct to gnu/linux during the next big refactor 12283 need_lib_prefix=no 12284 need_version=no 12285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12286 soname_spec='$libname$release$shared_ext$major' 12287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12288 shlibpath_var=LD_LIBRARY_PATH 12289 shlibpath_overrides_runpath=no 12290 12291 # Some binutils ld are patched to set DT_RUNPATH 12292 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12293 $as_echo_n "(cached) " >&6 12294else 12295 lt_cv_shlibpath_overrides_runpath=no 12296 save_LDFLAGS=$LDFLAGS 12297 save_libdir=$libdir 12298 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12299 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12301/* end confdefs.h. */ 12302 12303int 12304main () 12305{ 12306 12307 ; 12308 return 0; 12309} 12310_ACEOF 12311if ac_fn_c_try_link "$LINENO"; then : 12312 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12313 lt_cv_shlibpath_overrides_runpath=yes 12314fi 12315fi 12316rm -f core conftest.err conftest.$ac_objext \ 12317 conftest$ac_exeext conftest.$ac_ext 12318 LDFLAGS=$save_LDFLAGS 12319 libdir=$save_libdir 12320 12321fi 12322 12323 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12324 12325 # This implies no fast_install, which is unacceptable. 12326 # Some rework will be needed to allow for fast_install 12327 # before this can be enabled. 12328 hardcode_into_libs=yes 12329 12330 # Ideally, we could use ldconfig to report *all* directores which are 12331 # searched for libraries, however this is still not possible. Aside from not 12332 # being certain /sbin/ldconfig is available, command 12333 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12334 # even though it is searched at run-time. Try to do the best guess by 12335 # appending ld.so.conf contents (and includes) to the search path. 12336 if test -f /etc/ld.so.conf; then 12337 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' ' '` 12338 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12339 fi 12340 12341 # We used to test for /lib/ld.so.1 and disable shared libraries on 12342 # powerpc, because MkLinux only supported shared libraries with the 12343 # GNU dynamic linker. Since this was broken with cross compilers, 12344 # most powerpc-linux boxes support dynamic linking these days and 12345 # people can always --disable-shared, the test was removed, and we 12346 # assume the GNU/Linux dynamic linker is in use. 12347 dynamic_linker='GNU/Linux ld.so' 12348 ;; 12349 12350netbsd*) 12351 version_type=sunos 12352 need_lib_prefix=no 12353 need_version=no 12354 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12355 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12357 dynamic_linker='NetBSD (a.out) ld.so' 12358 else 12359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12360 soname_spec='$libname$release$shared_ext$major' 12361 dynamic_linker='NetBSD ld.elf_so' 12362 fi 12363 shlibpath_var=LD_LIBRARY_PATH 12364 shlibpath_overrides_runpath=yes 12365 hardcode_into_libs=yes 12366 ;; 12367 12368newsos6) 12369 version_type=linux # correct to gnu/linux during the next big refactor 12370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12371 shlibpath_var=LD_LIBRARY_PATH 12372 shlibpath_overrides_runpath=yes 12373 ;; 12374 12375*nto* | *qnx*) 12376 version_type=qnx 12377 need_lib_prefix=no 12378 need_version=no 12379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12380 soname_spec='$libname$release$shared_ext$major' 12381 shlibpath_var=LD_LIBRARY_PATH 12382 shlibpath_overrides_runpath=no 12383 hardcode_into_libs=yes 12384 dynamic_linker='ldqnx.so' 12385 ;; 12386 12387openbsd* | bitrig*) 12388 version_type=sunos 12389 sys_lib_dlsearch_path_spec=/usr/lib 12390 need_lib_prefix=no 12391 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12392 need_version=no 12393 else 12394 need_version=yes 12395 fi 12396 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12398 shlibpath_var=LD_LIBRARY_PATH 12399 shlibpath_overrides_runpath=yes 12400 ;; 12401 12402os2*) 12403 libname_spec='$name' 12404 version_type=windows 12405 shrext_cmds=.dll 12406 need_version=no 12407 need_lib_prefix=no 12408 # OS/2 can only load a DLL with a base name of 8 characters or less. 12409 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12410 v=$($ECHO $release$versuffix | tr -d .-); 12411 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12412 $ECHO $n$v`$shared_ext' 12413 library_names_spec='${libname}_dll.$libext' 12414 dynamic_linker='OS/2 ld.exe' 12415 shlibpath_var=BEGINLIBPATH 12416 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12417 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12418 postinstall_cmds='base_file=`basename \$file`~ 12419 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12420 dldir=$destdir/`dirname \$dlpath`~ 12421 test -d \$dldir || mkdir -p \$dldir~ 12422 $install_prog $dir/$dlname \$dldir/$dlname~ 12423 chmod a+x \$dldir/$dlname~ 12424 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12425 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12426 fi' 12427 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12428 dlpath=$dir/\$dldll~ 12429 $RM \$dlpath' 12430 ;; 12431 12432osf3* | osf4* | osf5*) 12433 version_type=osf 12434 need_lib_prefix=no 12435 need_version=no 12436 soname_spec='$libname$release$shared_ext$major' 12437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12438 shlibpath_var=LD_LIBRARY_PATH 12439 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12441 ;; 12442 12443rdos*) 12444 dynamic_linker=no 12445 ;; 12446 12447solaris*) 12448 version_type=linux # correct to gnu/linux during the next big refactor 12449 need_lib_prefix=no 12450 need_version=no 12451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12452 soname_spec='$libname$release$shared_ext$major' 12453 shlibpath_var=LD_LIBRARY_PATH 12454 shlibpath_overrides_runpath=yes 12455 hardcode_into_libs=yes 12456 # ldd complains unless libraries are executable 12457 postinstall_cmds='chmod +x $lib' 12458 ;; 12459 12460sunos4*) 12461 version_type=sunos 12462 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12463 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12464 shlibpath_var=LD_LIBRARY_PATH 12465 shlibpath_overrides_runpath=yes 12466 if test yes = "$with_gnu_ld"; then 12467 need_lib_prefix=no 12468 fi 12469 need_version=yes 12470 ;; 12471 12472sysv4 | sysv4.3*) 12473 version_type=linux # correct to gnu/linux during the next big refactor 12474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12475 soname_spec='$libname$release$shared_ext$major' 12476 shlibpath_var=LD_LIBRARY_PATH 12477 case $host_vendor in 12478 sni) 12479 shlibpath_overrides_runpath=no 12480 need_lib_prefix=no 12481 runpath_var=LD_RUN_PATH 12482 ;; 12483 siemens) 12484 need_lib_prefix=no 12485 ;; 12486 motorola) 12487 need_lib_prefix=no 12488 need_version=no 12489 shlibpath_overrides_runpath=no 12490 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12491 ;; 12492 esac 12493 ;; 12494 12495sysv4*MP*) 12496 if test -d /usr/nec; then 12497 version_type=linux # correct to gnu/linux during the next big refactor 12498 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12499 soname_spec='$libname$shared_ext.$major' 12500 shlibpath_var=LD_LIBRARY_PATH 12501 fi 12502 ;; 12503 12504sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12505 version_type=sco 12506 need_lib_prefix=no 12507 need_version=no 12508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12509 soname_spec='$libname$release$shared_ext$major' 12510 shlibpath_var=LD_LIBRARY_PATH 12511 shlibpath_overrides_runpath=yes 12512 hardcode_into_libs=yes 12513 if test yes = "$with_gnu_ld"; then 12514 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12515 else 12516 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12517 case $host_os in 12518 sco3.2v5*) 12519 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12520 ;; 12521 esac 12522 fi 12523 sys_lib_dlsearch_path_spec='/usr/lib' 12524 ;; 12525 12526tpf*) 12527 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12528 version_type=linux # correct to gnu/linux during the next big refactor 12529 need_lib_prefix=no 12530 need_version=no 12531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12532 shlibpath_var=LD_LIBRARY_PATH 12533 shlibpath_overrides_runpath=no 12534 hardcode_into_libs=yes 12535 ;; 12536 12537uts4*) 12538 version_type=linux # correct to gnu/linux during the next big refactor 12539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12540 soname_spec='$libname$release$shared_ext$major' 12541 shlibpath_var=LD_LIBRARY_PATH 12542 ;; 12543 12544*) 12545 dynamic_linker=no 12546 ;; 12547esac 12548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12549$as_echo "$dynamic_linker" >&6; } 12550test no = "$dynamic_linker" && can_build_shared=no 12551 12552variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12553if test yes = "$GCC"; then 12554 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12555fi 12556 12557if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12558 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12559fi 12560 12561if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12562 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12563fi 12564 12565# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12566configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12567 12568# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12569func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12570 12571# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12572configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12671$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12672hardcode_action= 12673if test -n "$hardcode_libdir_flag_spec" || 12674 test -n "$runpath_var" || 12675 test yes = "$hardcode_automatic"; then 12676 12677 # We can hardcode non-existent directories. 12678 if test no != "$hardcode_direct" && 12679 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12680 # have to relink, otherwise we might link with an installed library 12681 # when we should be linking with a yet-to-be-installed one 12682 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12683 test no != "$hardcode_minus_L"; then 12684 # Linking always hardcodes the temporary library directory. 12685 hardcode_action=relink 12686 else 12687 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12688 hardcode_action=immediate 12689 fi 12690else 12691 # We cannot hardcode anything, or else we can only hardcode existing 12692 # directories. 12693 hardcode_action=unsupported 12694fi 12695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12696$as_echo "$hardcode_action" >&6; } 12697 12698if test relink = "$hardcode_action" || 12699 test yes = "$inherit_rpath"; then 12700 # Fast installation is not supported 12701 enable_fast_install=no 12702elif test yes = "$shlibpath_overrides_runpath" || 12703 test no = "$enable_shared"; then 12704 # Fast installation is not necessary 12705 enable_fast_install=needless 12706fi 12707 12708 12709 12710 12711 12712 12713 if test yes != "$enable_dlopen"; then 12714 enable_dlopen=unknown 12715 enable_dlopen_self=unknown 12716 enable_dlopen_self_static=unknown 12717else 12718 lt_cv_dlopen=no 12719 lt_cv_dlopen_libs= 12720 12721 case $host_os in 12722 beos*) 12723 lt_cv_dlopen=load_add_on 12724 lt_cv_dlopen_libs= 12725 lt_cv_dlopen_self=yes 12726 ;; 12727 12728 mingw* | pw32* | cegcc*) 12729 lt_cv_dlopen=LoadLibrary 12730 lt_cv_dlopen_libs= 12731 ;; 12732 12733 cygwin*) 12734 lt_cv_dlopen=dlopen 12735 lt_cv_dlopen_libs= 12736 ;; 12737 12738 darwin*) 12739 # if libdl is installed we need to link against it 12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12741$as_echo_n "checking for dlopen in -ldl... " >&6; } 12742if ${ac_cv_lib_dl_dlopen+:} false; then : 12743 $as_echo_n "(cached) " >&6 12744else 12745 ac_check_lib_save_LIBS=$LIBS 12746LIBS="-ldl $LIBS" 12747cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12748/* end confdefs.h. */ 12749 12750/* Override any GCC internal prototype to avoid an error. 12751 Use char because int might match the return type of a GCC 12752 builtin and then its argument prototype would still apply. */ 12753#ifdef __cplusplus 12754extern "C" 12755#endif 12756char dlopen (); 12757int 12758main () 12759{ 12760return dlopen (); 12761 ; 12762 return 0; 12763} 12764_ACEOF 12765if ac_fn_c_try_link "$LINENO"; then : 12766 ac_cv_lib_dl_dlopen=yes 12767else 12768 ac_cv_lib_dl_dlopen=no 12769fi 12770rm -f core conftest.err conftest.$ac_objext \ 12771 conftest$ac_exeext conftest.$ac_ext 12772LIBS=$ac_check_lib_save_LIBS 12773fi 12774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12775$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12776if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12777 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12778else 12779 12780 lt_cv_dlopen=dyld 12781 lt_cv_dlopen_libs= 12782 lt_cv_dlopen_self=yes 12783 12784fi 12785 12786 ;; 12787 12788 tpf*) 12789 # Don't try to run any link tests for TPF. We know it's impossible 12790 # because TPF is a cross-compiler, and we know how we open DSOs. 12791 lt_cv_dlopen=dlopen 12792 lt_cv_dlopen_libs= 12793 lt_cv_dlopen_self=no 12794 ;; 12795 12796 *) 12797 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12798if test "x$ac_cv_func_shl_load" = xyes; then : 12799 lt_cv_dlopen=shl_load 12800else 12801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12802$as_echo_n "checking for shl_load in -ldld... " >&6; } 12803if ${ac_cv_lib_dld_shl_load+:} false; then : 12804 $as_echo_n "(cached) " >&6 12805else 12806 ac_check_lib_save_LIBS=$LIBS 12807LIBS="-ldld $LIBS" 12808cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12809/* end confdefs.h. */ 12810 12811/* Override any GCC internal prototype to avoid an error. 12812 Use char because int might match the return type of a GCC 12813 builtin and then its argument prototype would still apply. */ 12814#ifdef __cplusplus 12815extern "C" 12816#endif 12817char shl_load (); 12818int 12819main () 12820{ 12821return shl_load (); 12822 ; 12823 return 0; 12824} 12825_ACEOF 12826if ac_fn_c_try_link "$LINENO"; then : 12827 ac_cv_lib_dld_shl_load=yes 12828else 12829 ac_cv_lib_dld_shl_load=no 12830fi 12831rm -f core conftest.err conftest.$ac_objext \ 12832 conftest$ac_exeext conftest.$ac_ext 12833LIBS=$ac_check_lib_save_LIBS 12834fi 12835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12836$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12837if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12838 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12839else 12840 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12841if test "x$ac_cv_func_dlopen" = xyes; then : 12842 lt_cv_dlopen=dlopen 12843else 12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12845$as_echo_n "checking for dlopen in -ldl... " >&6; } 12846if ${ac_cv_lib_dl_dlopen+:} false; then : 12847 $as_echo_n "(cached) " >&6 12848else 12849 ac_check_lib_save_LIBS=$LIBS 12850LIBS="-ldl $LIBS" 12851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12852/* end confdefs.h. */ 12853 12854/* Override any GCC internal prototype to avoid an error. 12855 Use char because int might match the return type of a GCC 12856 builtin and then its argument prototype would still apply. */ 12857#ifdef __cplusplus 12858extern "C" 12859#endif 12860char dlopen (); 12861int 12862main () 12863{ 12864return dlopen (); 12865 ; 12866 return 0; 12867} 12868_ACEOF 12869if ac_fn_c_try_link "$LINENO"; then : 12870 ac_cv_lib_dl_dlopen=yes 12871else 12872 ac_cv_lib_dl_dlopen=no 12873fi 12874rm -f core conftest.err conftest.$ac_objext \ 12875 conftest$ac_exeext conftest.$ac_ext 12876LIBS=$ac_check_lib_save_LIBS 12877fi 12878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12879$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12880if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12881 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12882else 12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12884$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12885if ${ac_cv_lib_svld_dlopen+:} false; then : 12886 $as_echo_n "(cached) " >&6 12887else 12888 ac_check_lib_save_LIBS=$LIBS 12889LIBS="-lsvld $LIBS" 12890cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12891/* end confdefs.h. */ 12892 12893/* Override any GCC internal prototype to avoid an error. 12894 Use char because int might match the return type of a GCC 12895 builtin and then its argument prototype would still apply. */ 12896#ifdef __cplusplus 12897extern "C" 12898#endif 12899char dlopen (); 12900int 12901main () 12902{ 12903return dlopen (); 12904 ; 12905 return 0; 12906} 12907_ACEOF 12908if ac_fn_c_try_link "$LINENO"; then : 12909 ac_cv_lib_svld_dlopen=yes 12910else 12911 ac_cv_lib_svld_dlopen=no 12912fi 12913rm -f core conftest.err conftest.$ac_objext \ 12914 conftest$ac_exeext conftest.$ac_ext 12915LIBS=$ac_check_lib_save_LIBS 12916fi 12917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12918$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12919if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12920 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12921else 12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12923$as_echo_n "checking for dld_link in -ldld... " >&6; } 12924if ${ac_cv_lib_dld_dld_link+:} false; then : 12925 $as_echo_n "(cached) " >&6 12926else 12927 ac_check_lib_save_LIBS=$LIBS 12928LIBS="-ldld $LIBS" 12929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12930/* end confdefs.h. */ 12931 12932/* Override any GCC internal prototype to avoid an error. 12933 Use char because int might match the return type of a GCC 12934 builtin and then its argument prototype would still apply. */ 12935#ifdef __cplusplus 12936extern "C" 12937#endif 12938char dld_link (); 12939int 12940main () 12941{ 12942return dld_link (); 12943 ; 12944 return 0; 12945} 12946_ACEOF 12947if ac_fn_c_try_link "$LINENO"; then : 12948 ac_cv_lib_dld_dld_link=yes 12949else 12950 ac_cv_lib_dld_dld_link=no 12951fi 12952rm -f core conftest.err conftest.$ac_objext \ 12953 conftest$ac_exeext conftest.$ac_ext 12954LIBS=$ac_check_lib_save_LIBS 12955fi 12956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12957$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12958if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12959 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12960fi 12961 12962 12963fi 12964 12965 12966fi 12967 12968 12969fi 12970 12971 12972fi 12973 12974 12975fi 12976 12977 ;; 12978 esac 12979 12980 if test no = "$lt_cv_dlopen"; then 12981 enable_dlopen=no 12982 else 12983 enable_dlopen=yes 12984 fi 12985 12986 case $lt_cv_dlopen in 12987 dlopen) 12988 save_CPPFLAGS=$CPPFLAGS 12989 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12990 12991 save_LDFLAGS=$LDFLAGS 12992 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12993 12994 save_LIBS=$LIBS 12995 LIBS="$lt_cv_dlopen_libs $LIBS" 12996 12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12998$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12999if ${lt_cv_dlopen_self+:} false; then : 13000 $as_echo_n "(cached) " >&6 13001else 13002 if test yes = "$cross_compiling"; then : 13003 lt_cv_dlopen_self=cross 13004else 13005 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13006 lt_status=$lt_dlunknown 13007 cat > conftest.$ac_ext <<_LT_EOF 13008#line $LINENO "configure" 13009#include "confdefs.h" 13010 13011#if HAVE_DLFCN_H 13012#include <dlfcn.h> 13013#endif 13014 13015#include <stdio.h> 13016 13017#ifdef RTLD_GLOBAL 13018# define LT_DLGLOBAL RTLD_GLOBAL 13019#else 13020# ifdef DL_GLOBAL 13021# define LT_DLGLOBAL DL_GLOBAL 13022# else 13023# define LT_DLGLOBAL 0 13024# endif 13025#endif 13026 13027/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13028 find out it does not work in some platform. */ 13029#ifndef LT_DLLAZY_OR_NOW 13030# ifdef RTLD_LAZY 13031# define LT_DLLAZY_OR_NOW RTLD_LAZY 13032# else 13033# ifdef DL_LAZY 13034# define LT_DLLAZY_OR_NOW DL_LAZY 13035# else 13036# ifdef RTLD_NOW 13037# define LT_DLLAZY_OR_NOW RTLD_NOW 13038# else 13039# ifdef DL_NOW 13040# define LT_DLLAZY_OR_NOW DL_NOW 13041# else 13042# define LT_DLLAZY_OR_NOW 0 13043# endif 13044# endif 13045# endif 13046# endif 13047#endif 13048 13049/* When -fvisibility=hidden is used, assume the code has been annotated 13050 correspondingly for the symbols needed. */ 13051#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13052int fnord () __attribute__((visibility("default"))); 13053#endif 13054 13055int fnord () { return 42; } 13056int main () 13057{ 13058 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13059 int status = $lt_dlunknown; 13060 13061 if (self) 13062 { 13063 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13064 else 13065 { 13066 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13067 else puts (dlerror ()); 13068 } 13069 /* dlclose (self); */ 13070 } 13071 else 13072 puts (dlerror ()); 13073 13074 return status; 13075} 13076_LT_EOF 13077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13078 (eval $ac_link) 2>&5 13079 ac_status=$? 13080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13081 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13082 (./conftest; exit; ) >&5 2>/dev/null 13083 lt_status=$? 13084 case x$lt_status in 13085 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13086 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13087 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13088 esac 13089 else : 13090 # compilation failed 13091 lt_cv_dlopen_self=no 13092 fi 13093fi 13094rm -fr conftest* 13095 13096 13097fi 13098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13099$as_echo "$lt_cv_dlopen_self" >&6; } 13100 13101 if test yes = "$lt_cv_dlopen_self"; then 13102 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13104$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13105if ${lt_cv_dlopen_self_static+:} false; then : 13106 $as_echo_n "(cached) " >&6 13107else 13108 if test yes = "$cross_compiling"; then : 13109 lt_cv_dlopen_self_static=cross 13110else 13111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13112 lt_status=$lt_dlunknown 13113 cat > conftest.$ac_ext <<_LT_EOF 13114#line $LINENO "configure" 13115#include "confdefs.h" 13116 13117#if HAVE_DLFCN_H 13118#include <dlfcn.h> 13119#endif 13120 13121#include <stdio.h> 13122 13123#ifdef RTLD_GLOBAL 13124# define LT_DLGLOBAL RTLD_GLOBAL 13125#else 13126# ifdef DL_GLOBAL 13127# define LT_DLGLOBAL DL_GLOBAL 13128# else 13129# define LT_DLGLOBAL 0 13130# endif 13131#endif 13132 13133/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13134 find out it does not work in some platform. */ 13135#ifndef LT_DLLAZY_OR_NOW 13136# ifdef RTLD_LAZY 13137# define LT_DLLAZY_OR_NOW RTLD_LAZY 13138# else 13139# ifdef DL_LAZY 13140# define LT_DLLAZY_OR_NOW DL_LAZY 13141# else 13142# ifdef RTLD_NOW 13143# define LT_DLLAZY_OR_NOW RTLD_NOW 13144# else 13145# ifdef DL_NOW 13146# define LT_DLLAZY_OR_NOW DL_NOW 13147# else 13148# define LT_DLLAZY_OR_NOW 0 13149# endif 13150# endif 13151# endif 13152# endif 13153#endif 13154 13155/* When -fvisibility=hidden is used, assume the code has been annotated 13156 correspondingly for the symbols needed. */ 13157#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13158int fnord () __attribute__((visibility("default"))); 13159#endif 13160 13161int fnord () { return 42; } 13162int main () 13163{ 13164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13165 int status = $lt_dlunknown; 13166 13167 if (self) 13168 { 13169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13170 else 13171 { 13172 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13173 else puts (dlerror ()); 13174 } 13175 /* dlclose (self); */ 13176 } 13177 else 13178 puts (dlerror ()); 13179 13180 return status; 13181} 13182_LT_EOF 13183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13184 (eval $ac_link) 2>&5 13185 ac_status=$? 13186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13187 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13188 (./conftest; exit; ) >&5 2>/dev/null 13189 lt_status=$? 13190 case x$lt_status in 13191 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13192 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13193 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13194 esac 13195 else : 13196 # compilation failed 13197 lt_cv_dlopen_self_static=no 13198 fi 13199fi 13200rm -fr conftest* 13201 13202 13203fi 13204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13205$as_echo "$lt_cv_dlopen_self_static" >&6; } 13206 fi 13207 13208 CPPFLAGS=$save_CPPFLAGS 13209 LDFLAGS=$save_LDFLAGS 13210 LIBS=$save_LIBS 13211 ;; 13212 esac 13213 13214 case $lt_cv_dlopen_self in 13215 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13216 *) enable_dlopen_self=unknown ;; 13217 esac 13218 13219 case $lt_cv_dlopen_self_static in 13220 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13221 *) enable_dlopen_self_static=unknown ;; 13222 esac 13223fi 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241striplib= 13242old_striplib= 13243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13244$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13245if test -z "$STRIP"; then 13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13247$as_echo "no" >&6; } 13248else 13249 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13250 old_striplib="$STRIP --strip-debug" 13251 striplib="$STRIP --strip-unneeded" 13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13253$as_echo "yes" >&6; } 13254 else 13255 case $host_os in 13256 darwin*) 13257 # FIXME - insert some real tests, host_os isn't really good enough 13258 striplib="$STRIP -x" 13259 old_striplib="$STRIP -S" 13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13261$as_echo "yes" >&6; } 13262 ;; 13263 freebsd*) 13264 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 13265 old_striplib="$STRIP --strip-debug" 13266 striplib="$STRIP --strip-unneeded" 13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13268$as_echo "yes" >&6; } 13269 else 13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13271$as_echo "no" >&6; } 13272 fi 13273 ;; 13274 *) 13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13276$as_echo "no" >&6; } 13277 ;; 13278 esac 13279 fi 13280fi 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 # Report what library types will actually be built 13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13295$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13297$as_echo "$can_build_shared" >&6; } 13298 13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13300$as_echo_n "checking whether to build shared libraries... " >&6; } 13301 test no = "$can_build_shared" && enable_shared=no 13302 13303 # On AIX, shared libraries and static libraries use the same namespace, and 13304 # are all built from PIC. 13305 case $host_os in 13306 aix3*) 13307 test yes = "$enable_shared" && enable_static=no 13308 if test -n "$RANLIB"; then 13309 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13310 postinstall_cmds='$RANLIB $lib' 13311 fi 13312 ;; 13313 13314 aix[4-9]*) 13315 if test ia64 != "$host_cpu"; then 13316 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13317 yes,aix,yes) ;; # shared object as lib.so file only 13318 yes,svr4,*) ;; # shared object as lib.so archive member only 13319 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13320 esac 13321 fi 13322 ;; 13323 esac 13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13325$as_echo "$enable_shared" >&6; } 13326 13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13328$as_echo_n "checking whether to build static libraries... " >&6; } 13329 # Make sure either enable_shared or enable_static is yes. 13330 test yes = "$enable_shared" || enable_static=yes 13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13332$as_echo "$enable_static" >&6; } 13333 13334 13335 13336 13337fi 13338ac_ext=c 13339ac_cpp='$CPP $CPPFLAGS' 13340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13342ac_compiler_gnu=$ac_cv_c_compiler_gnu 13343 13344CC=$lt_save_CC 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 ac_config_commands="$ac_config_commands libtool" 13361 13362 13363 13364 13365# Only expand once: 13366 13367 13368for ac_header in \ 13369 arpa/inet.h \ 13370 byteswap.h \ 13371 errno.h \ 13372 fcntl.h \ 13373 limits.h \ 13374 linux/serial.h \ 13375 netdb.h \ 13376 netinet/in.h \ 13377 netinet/tcp.h \ 13378 sys/ioctl.h \ 13379 sys/params.h \ 13380 sys/socket.h \ 13381 sys/time.h \ 13382 sys/types.h \ 13383 termios.h \ 13384 time.h \ 13385 unistd.h \ 13386 13387do : 13388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13389ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13390if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13391 cat >>confdefs.h <<_ACEOF 13392#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13393_ACEOF 13394 13395fi 13396 13397done 13398 13399 13400# Check whether to build docs / install man pages 13401{ 13402 # Allow user to disable doc build 13403 13404# Check whether --with-documentation was given. 13405if test "${with_documentation+set}" = set; then : 13406 withval=$with_documentation; 13407fi 13408 13409 13410 if test "x$with_documentation" = "xno"; then 13411 ac_libmodbus_build_doc="no" 13412 else 13413 # Determine whether or not documentation should be built and installed. 13414 ac_libmodbus_build_doc="yes" 13415 # Check for asciidoc and xmlto and don't build the docs if these are not installed. 13416 # Extract the first word of "asciidoc", so it can be a program name with args. 13417set dummy asciidoc; ac_word=$2 13418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13419$as_echo_n "checking for $ac_word... " >&6; } 13420if ${ac_cv_prog_ac_libmodbus_have_asciidoc+:} false; then : 13421 $as_echo_n "(cached) " >&6 13422else 13423 if test -n "$ac_libmodbus_have_asciidoc"; then 13424 ac_cv_prog_ac_libmodbus_have_asciidoc="$ac_libmodbus_have_asciidoc" # Let the user override the test. 13425else 13426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13427for as_dir in $PATH 13428do 13429 IFS=$as_save_IFS 13430 test -z "$as_dir" && as_dir=. 13431 for ac_exec_ext in '' $ac_executable_extensions; do 13432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13433 ac_cv_prog_ac_libmodbus_have_asciidoc="yes" 13434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13435 break 2 13436 fi 13437done 13438 done 13439IFS=$as_save_IFS 13440 13441 test -z "$ac_cv_prog_ac_libmodbus_have_asciidoc" && ac_cv_prog_ac_libmodbus_have_asciidoc="no" 13442fi 13443fi 13444ac_libmodbus_have_asciidoc=$ac_cv_prog_ac_libmodbus_have_asciidoc 13445if test -n "$ac_libmodbus_have_asciidoc"; then 13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_libmodbus_have_asciidoc" >&5 13447$as_echo "$ac_libmodbus_have_asciidoc" >&6; } 13448else 13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13450$as_echo "no" >&6; } 13451fi 13452 13453 13454 # Extract the first word of "xmlto", so it can be a program name with args. 13455set dummy xmlto; ac_word=$2 13456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13457$as_echo_n "checking for $ac_word... " >&6; } 13458if ${ac_cv_prog_ac_libmodbus_have_xmlto+:} false; then : 13459 $as_echo_n "(cached) " >&6 13460else 13461 if test -n "$ac_libmodbus_have_xmlto"; then 13462 ac_cv_prog_ac_libmodbus_have_xmlto="$ac_libmodbus_have_xmlto" # Let the user override the test. 13463else 13464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13465for as_dir in $PATH 13466do 13467 IFS=$as_save_IFS 13468 test -z "$as_dir" && as_dir=. 13469 for ac_exec_ext in '' $ac_executable_extensions; do 13470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13471 ac_cv_prog_ac_libmodbus_have_xmlto="yes" 13472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13473 break 2 13474 fi 13475done 13476 done 13477IFS=$as_save_IFS 13478 13479 test -z "$ac_cv_prog_ac_libmodbus_have_xmlto" && ac_cv_prog_ac_libmodbus_have_xmlto="no" 13480fi 13481fi 13482ac_libmodbus_have_xmlto=$ac_cv_prog_ac_libmodbus_have_xmlto 13483if test -n "$ac_libmodbus_have_xmlto"; then 13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_libmodbus_have_xmlto" >&5 13485$as_echo "$ac_libmodbus_have_xmlto" >&6; } 13486else 13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13488$as_echo "no" >&6; } 13489fi 13490 13491 13492 if test "x$ac_libmodbus_have_asciidoc" = "xno" -o "x$ac_libmodbus_have_xmlto" = "xno"; then 13493 ac_libmodbus_build_doc="no" 13494 fi 13495 fi 13496 13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 13498$as_echo_n "checking whether to build documentation... " >&6; } 13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_libmodbus_build_doc" >&5 13500$as_echo "$ac_libmodbus_build_doc" >&6; } 13501 if test "x$ac_libmodbus_build_doc" = "xno"; then 13502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The tools to build the documentation aren't installed" >&5 13503$as_echo "$as_me: WARNING: The tools to build the documentation aren't installed" >&2;} 13504 fi 13505 if test "x$ac_libmodbus_build_doc" = "xyes"; then 13506 BUILD_DOC_TRUE= 13507 BUILD_DOC_FALSE='#' 13508else 13509 BUILD_DOC_TRUE='#' 13510 BUILD_DOC_FALSE= 13511fi 13512 13513} 13514 13515# Cygwin defines IPTOS_LOWDELAY but can't handle that flag so it's necessary to 13516# workaround that problem and Cygwin doesn't define MSG_DONTWAIT. 13517ac_fn_c_check_decl "$LINENO" "__CYGWIN__" "ac_cv_have_decl___CYGWIN__" "$ac_includes_default" 13518if test "x$ac_cv_have_decl___CYGWIN__" = xyes; then : 13519 ac_have_decl=1 13520else 13521 ac_have_decl=0 13522fi 13523 13524cat >>confdefs.h <<_ACEOF 13525#define HAVE_DECL___CYGWIN__ $ac_have_decl 13526_ACEOF 13527 13528 13529# Checks for library functions. 13530for ac_func in accept4 getaddrinfo gettimeofday inet_ntoa select socket strerror strlcpy 13531do : 13532 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13533ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13534if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13535 cat >>confdefs.h <<_ACEOF 13536#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13537_ACEOF 13538 13539fi 13540done 13541 13542 13543# Required for MinGW with GCC v4.8.1 on Win7 13544 13545$as_echo "#define WINVER 0x0501" >>confdefs.h 13546 13547 13548# Required for bswap 13549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 13550$as_echo_n "checking for inline... " >&6; } 13551if ${ac_cv_c_inline+:} false; then : 13552 $as_echo_n "(cached) " >&6 13553else 13554 ac_cv_c_inline=no 13555for ac_kw in inline __inline__ __inline; do 13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13557/* end confdefs.h. */ 13558#ifndef __cplusplus 13559typedef int foo_t; 13560static $ac_kw foo_t static_foo () {return 0; } 13561$ac_kw foo_t foo () {return 0; } 13562#endif 13563 13564_ACEOF 13565if ac_fn_c_try_compile "$LINENO"; then : 13566 ac_cv_c_inline=$ac_kw 13567fi 13568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13569 test "$ac_cv_c_inline" != no && break 13570done 13571 13572fi 13573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 13574$as_echo "$ac_cv_c_inline" >&6; } 13575 13576case $ac_cv_c_inline in 13577 inline | yes) ;; 13578 *) 13579 case $ac_cv_c_inline in 13580 no) ac_val=;; 13581 *) ac_val=$ac_cv_c_inline;; 13582 esac 13583 cat >>confdefs.h <<_ACEOF 13584#ifndef __cplusplus 13585#define inline $ac_val 13586#endif 13587_ACEOF 13588 ;; 13589esac 13590 13591 13592# libtool 13593ac_ext=cpp 13594ac_cpp='$CXXCPP $CPPFLAGS' 13595ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13596ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13597ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13598if test -z "$CXX"; then 13599 if test -n "$CCC"; then 13600 CXX=$CCC 13601 else 13602 if test -n "$ac_tool_prefix"; then 13603 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13604 do 13605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13606set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13608$as_echo_n "checking for $ac_word... " >&6; } 13609if ${ac_cv_prog_CXX+:} false; then : 13610 $as_echo_n "(cached) " >&6 13611else 13612 if test -n "$CXX"; then 13613 ac_cv_prog_CXX="$CXX" # Let the user override the test. 13614else 13615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13616for as_dir in $PATH 13617do 13618 IFS=$as_save_IFS 13619 test -z "$as_dir" && as_dir=. 13620 for ac_exec_ext in '' $ac_executable_extensions; do 13621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13622 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 13623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13624 break 2 13625 fi 13626done 13627 done 13628IFS=$as_save_IFS 13629 13630fi 13631fi 13632CXX=$ac_cv_prog_CXX 13633if test -n "$CXX"; then 13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 13635$as_echo "$CXX" >&6; } 13636else 13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13638$as_echo "no" >&6; } 13639fi 13640 13641 13642 test -n "$CXX" && break 13643 done 13644fi 13645if test -z "$CXX"; then 13646 ac_ct_CXX=$CXX 13647 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13648do 13649 # Extract the first word of "$ac_prog", so it can be a program name with args. 13650set dummy $ac_prog; ac_word=$2 13651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13652$as_echo_n "checking for $ac_word... " >&6; } 13653if ${ac_cv_prog_ac_ct_CXX+:} false; then : 13654 $as_echo_n "(cached) " >&6 13655else 13656 if test -n "$ac_ct_CXX"; then 13657 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 13658else 13659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13660for as_dir in $PATH 13661do 13662 IFS=$as_save_IFS 13663 test -z "$as_dir" && as_dir=. 13664 for ac_exec_ext in '' $ac_executable_extensions; do 13665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13666 ac_cv_prog_ac_ct_CXX="$ac_prog" 13667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13668 break 2 13669 fi 13670done 13671 done 13672IFS=$as_save_IFS 13673 13674fi 13675fi 13676ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 13677if test -n "$ac_ct_CXX"; then 13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 13679$as_echo "$ac_ct_CXX" >&6; } 13680else 13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13682$as_echo "no" >&6; } 13683fi 13684 13685 13686 test -n "$ac_ct_CXX" && break 13687done 13688 13689 if test "x$ac_ct_CXX" = x; then 13690 CXX="g++" 13691 else 13692 case $cross_compiling:$ac_tool_warned in 13693yes:) 13694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13696ac_tool_warned=yes ;; 13697esac 13698 CXX=$ac_ct_CXX 13699 fi 13700fi 13701 13702 fi 13703fi 13704# Provide some information about the compiler. 13705$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 13706set X $ac_compile 13707ac_compiler=$2 13708for ac_option in --version -v -V -qversion; do 13709 { { ac_try="$ac_compiler $ac_option >&5" 13710case "(($ac_try" in 13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13712 *) ac_try_echo=$ac_try;; 13713esac 13714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13715$as_echo "$ac_try_echo"; } >&5 13716 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13717 ac_status=$? 13718 if test -s conftest.err; then 13719 sed '10a\ 13720... rest of stderr output deleted ... 13721 10q' conftest.err >conftest.er1 13722 cat conftest.er1 >&5 13723 fi 13724 rm -f conftest.er1 conftest.err 13725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13726 test $ac_status = 0; } 13727done 13728 13729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 13730$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 13731if ${ac_cv_cxx_compiler_gnu+:} false; then : 13732 $as_echo_n "(cached) " >&6 13733else 13734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13735/* end confdefs.h. */ 13736 13737int 13738main () 13739{ 13740#ifndef __GNUC__ 13741 choke me 13742#endif 13743 13744 ; 13745 return 0; 13746} 13747_ACEOF 13748if ac_fn_cxx_try_compile "$LINENO"; then : 13749 ac_compiler_gnu=yes 13750else 13751 ac_compiler_gnu=no 13752fi 13753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13754ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 13755 13756fi 13757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 13758$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 13759if test $ac_compiler_gnu = yes; then 13760 GXX=yes 13761else 13762 GXX= 13763fi 13764ac_test_CXXFLAGS=${CXXFLAGS+set} 13765ac_save_CXXFLAGS=$CXXFLAGS 13766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 13767$as_echo_n "checking whether $CXX accepts -g... " >&6; } 13768if ${ac_cv_prog_cxx_g+:} false; then : 13769 $as_echo_n "(cached) " >&6 13770else 13771 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 13772 ac_cxx_werror_flag=yes 13773 ac_cv_prog_cxx_g=no 13774 CXXFLAGS="-g" 13775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13776/* end confdefs.h. */ 13777 13778int 13779main () 13780{ 13781 13782 ; 13783 return 0; 13784} 13785_ACEOF 13786if ac_fn_cxx_try_compile "$LINENO"; then : 13787 ac_cv_prog_cxx_g=yes 13788else 13789 CXXFLAGS="" 13790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13791/* end confdefs.h. */ 13792 13793int 13794main () 13795{ 13796 13797 ; 13798 return 0; 13799} 13800_ACEOF 13801if ac_fn_cxx_try_compile "$LINENO"; then : 13802 13803else 13804 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13805 CXXFLAGS="-g" 13806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13807/* end confdefs.h. */ 13808 13809int 13810main () 13811{ 13812 13813 ; 13814 return 0; 13815} 13816_ACEOF 13817if ac_fn_cxx_try_compile "$LINENO"; then : 13818 ac_cv_prog_cxx_g=yes 13819fi 13820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13821fi 13822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13823fi 13824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13825 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13826fi 13827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 13828$as_echo "$ac_cv_prog_cxx_g" >&6; } 13829if test "$ac_test_CXXFLAGS" = set; then 13830 CXXFLAGS=$ac_save_CXXFLAGS 13831elif test $ac_cv_prog_cxx_g = yes; then 13832 if test "$GXX" = yes; then 13833 CXXFLAGS="-g -O2" 13834 else 13835 CXXFLAGS="-g" 13836 fi 13837else 13838 if test "$GXX" = yes; then 13839 CXXFLAGS="-O2" 13840 else 13841 CXXFLAGS= 13842 fi 13843fi 13844ac_ext=c 13845ac_cpp='$CPP $CPPFLAGS' 13846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13848ac_compiler_gnu=$ac_cv_c_compiler_gnu 13849 13850depcc="$CXX" am_compiler_list= 13851 13852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13853$as_echo_n "checking dependency style of $depcc... " >&6; } 13854if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 13855 $as_echo_n "(cached) " >&6 13856else 13857 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13858 # We make a subdir and do the tests there. Otherwise we can end up 13859 # making bogus files that we don't know about and never remove. For 13860 # instance it was reported that on HP-UX the gcc test will end up 13861 # making a dummy file named 'D' -- because '-MD' means "put the output 13862 # in D". 13863 rm -rf conftest.dir 13864 mkdir conftest.dir 13865 # Copy depcomp to subdir because otherwise we won't find it if we're 13866 # using a relative directory. 13867 cp "$am_depcomp" conftest.dir 13868 cd conftest.dir 13869 # We will build objects and dependencies in a subdirectory because 13870 # it helps to detect inapplicable dependency modes. For instance 13871 # both Tru64's cc and ICC support -MD to output dependencies as a 13872 # side effect of compilation, but ICC will put the dependencies in 13873 # the current directory while Tru64 will put them in the object 13874 # directory. 13875 mkdir sub 13876 13877 am_cv_CXX_dependencies_compiler_type=none 13878 if test "$am_compiler_list" = ""; then 13879 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13880 fi 13881 am__universal=false 13882 case " $depcc " in #( 13883 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13884 esac 13885 13886 for depmode in $am_compiler_list; do 13887 # Setup a source with many dependencies, because some compilers 13888 # like to wrap large dependency lists on column 80 (with \), and 13889 # we should not choose a depcomp mode which is confused by this. 13890 # 13891 # We need to recreate these files for each test, as the compiler may 13892 # overwrite some of them when testing with obscure command lines. 13893 # This happens at least with the AIX C compiler. 13894 : > sub/conftest.c 13895 for i in 1 2 3 4 5 6; do 13896 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13897 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13898 # Solaris 10 /bin/sh. 13899 echo '/* dummy */' > sub/conftst$i.h 13900 done 13901 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13902 13903 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13904 # mode. It turns out that the SunPro C++ compiler does not properly 13905 # handle '-M -o', and we need to detect this. Also, some Intel 13906 # versions had trouble with output in subdirs. 13907 am__obj=sub/conftest.${OBJEXT-o} 13908 am__minus_obj="-o $am__obj" 13909 case $depmode in 13910 gcc) 13911 # This depmode causes a compiler race in universal mode. 13912 test "$am__universal" = false || continue 13913 ;; 13914 nosideeffect) 13915 # After this tag, mechanisms are not by side-effect, so they'll 13916 # only be used when explicitly requested. 13917 if test "x$enable_dependency_tracking" = xyes; then 13918 continue 13919 else 13920 break 13921 fi 13922 ;; 13923 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13924 # This compiler won't grok '-c -o', but also, the minuso test has 13925 # not run yet. These depmodes are late enough in the game, and 13926 # so weak that their functioning should not be impacted. 13927 am__obj=conftest.${OBJEXT-o} 13928 am__minus_obj= 13929 ;; 13930 none) break ;; 13931 esac 13932 if depmode=$depmode \ 13933 source=sub/conftest.c object=$am__obj \ 13934 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13935 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13936 >/dev/null 2>conftest.err && 13937 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13938 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13939 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13940 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13941 # icc doesn't choke on unknown options, it will just issue warnings 13942 # or remarks (even with -Werror). So we grep stderr for any message 13943 # that says an option was ignored or not supported. 13944 # When given -MP, icc 7.0 and 7.1 complain thusly: 13945 # icc: Command line warning: ignoring option '-M'; no argument required 13946 # The diagnosis changed in icc 8.0: 13947 # icc: Command line remark: option '-MP' not supported 13948 if (grep 'ignoring option' conftest.err || 13949 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13950 am_cv_CXX_dependencies_compiler_type=$depmode 13951 break 13952 fi 13953 fi 13954 done 13955 13956 cd .. 13957 rm -rf conftest.dir 13958else 13959 am_cv_CXX_dependencies_compiler_type=none 13960fi 13961 13962fi 13963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 13964$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 13965CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 13966 13967 if 13968 test "x$enable_dependency_tracking" != xno \ 13969 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 13970 am__fastdepCXX_TRUE= 13971 am__fastdepCXX_FALSE='#' 13972else 13973 am__fastdepCXX_TRUE='#' 13974 am__fastdepCXX_FALSE= 13975fi 13976 13977 13978 13979 13980func_stripname_cnf () 13981{ 13982 case $2 in 13983 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 13984 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 13985 esac 13986} # func_stripname_cnf 13987 13988 if test -n "$CXX" && ( test no != "$CXX" && 13989 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13990 (test g++ != "$CXX"))); then 13991 ac_ext=cpp 13992ac_cpp='$CXXCPP $CPPFLAGS' 13993ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13994ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13995ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13997$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13998if test -z "$CXXCPP"; then 13999 if ${ac_cv_prog_CXXCPP+:} false; then : 14000 $as_echo_n "(cached) " >&6 14001else 14002 # Double quotes because CXXCPP needs to be expanded 14003 for CXXCPP in "$CXX -E" "/lib/cpp" 14004 do 14005 ac_preproc_ok=false 14006for ac_cxx_preproc_warn_flag in '' yes 14007do 14008 # Use a header file that comes with gcc, so configuring glibc 14009 # with a fresh cross-compiler works. 14010 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14011 # <limits.h> exists even on freestanding compilers. 14012 # On the NeXT, cc -E runs the code through the compiler's parser, 14013 # not just through cpp. "Syntax error" is here to catch this case. 14014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14015/* end confdefs.h. */ 14016#ifdef __STDC__ 14017# include <limits.h> 14018#else 14019# include <assert.h> 14020#endif 14021 Syntax error 14022_ACEOF 14023if ac_fn_cxx_try_cpp "$LINENO"; then : 14024 14025else 14026 # Broken: fails on valid input. 14027continue 14028fi 14029rm -f conftest.err conftest.i conftest.$ac_ext 14030 14031 # OK, works on sane cases. Now check whether nonexistent headers 14032 # can be detected and how. 14033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14034/* end confdefs.h. */ 14035#include <ac_nonexistent.h> 14036_ACEOF 14037if ac_fn_cxx_try_cpp "$LINENO"; then : 14038 # Broken: success on invalid input. 14039continue 14040else 14041 # Passes both tests. 14042ac_preproc_ok=: 14043break 14044fi 14045rm -f conftest.err conftest.i conftest.$ac_ext 14046 14047done 14048# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14049rm -f conftest.i conftest.err conftest.$ac_ext 14050if $ac_preproc_ok; then : 14051 break 14052fi 14053 14054 done 14055 ac_cv_prog_CXXCPP=$CXXCPP 14056 14057fi 14058 CXXCPP=$ac_cv_prog_CXXCPP 14059else 14060 ac_cv_prog_CXXCPP=$CXXCPP 14061fi 14062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 14063$as_echo "$CXXCPP" >&6; } 14064ac_preproc_ok=false 14065for ac_cxx_preproc_warn_flag in '' yes 14066do 14067 # Use a header file that comes with gcc, so configuring glibc 14068 # with a fresh cross-compiler works. 14069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 14070 # <limits.h> exists even on freestanding compilers. 14071 # On the NeXT, cc -E runs the code through the compiler's parser, 14072 # not just through cpp. "Syntax error" is here to catch this case. 14073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14074/* end confdefs.h. */ 14075#ifdef __STDC__ 14076# include <limits.h> 14077#else 14078# include <assert.h> 14079#endif 14080 Syntax error 14081_ACEOF 14082if ac_fn_cxx_try_cpp "$LINENO"; then : 14083 14084else 14085 # Broken: fails on valid input. 14086continue 14087fi 14088rm -f conftest.err conftest.i conftest.$ac_ext 14089 14090 # OK, works on sane cases. Now check whether nonexistent headers 14091 # can be detected and how. 14092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14093/* end confdefs.h. */ 14094#include <ac_nonexistent.h> 14095_ACEOF 14096if ac_fn_cxx_try_cpp "$LINENO"; then : 14097 # Broken: success on invalid input. 14098continue 14099else 14100 # Passes both tests. 14101ac_preproc_ok=: 14102break 14103fi 14104rm -f conftest.err conftest.i conftest.$ac_ext 14105 14106done 14107# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 14108rm -f conftest.i conftest.err conftest.$ac_ext 14109if $ac_preproc_ok; then : 14110 14111else 14112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14114as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 14115See \`config.log' for more details" "$LINENO" 5; } 14116fi 14117 14118ac_ext=c 14119ac_cpp='$CPP $CPPFLAGS' 14120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14122ac_compiler_gnu=$ac_cv_c_compiler_gnu 14123 14124else 14125 _lt_caught_CXX_error=yes 14126fi 14127 14128ac_ext=cpp 14129ac_cpp='$CXXCPP $CPPFLAGS' 14130ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14131ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14132ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 14133 14134archive_cmds_need_lc_CXX=no 14135allow_undefined_flag_CXX= 14136always_export_symbols_CXX=no 14137archive_expsym_cmds_CXX= 14138compiler_needs_object_CXX=no 14139export_dynamic_flag_spec_CXX= 14140hardcode_direct_CXX=no 14141hardcode_direct_absolute_CXX=no 14142hardcode_libdir_flag_spec_CXX= 14143hardcode_libdir_separator_CXX= 14144hardcode_minus_L_CXX=no 14145hardcode_shlibpath_var_CXX=unsupported 14146hardcode_automatic_CXX=no 14147inherit_rpath_CXX=no 14148module_cmds_CXX= 14149module_expsym_cmds_CXX= 14150link_all_deplibs_CXX=unknown 14151old_archive_cmds_CXX=$old_archive_cmds 14152reload_flag_CXX=$reload_flag 14153reload_cmds_CXX=$reload_cmds 14154no_undefined_flag_CXX= 14155whole_archive_flag_spec_CXX= 14156enable_shared_with_static_runtimes_CXX=no 14157 14158# Source file extension for C++ test sources. 14159ac_ext=cpp 14160 14161# Object file extension for compiled C++ test sources. 14162objext=o 14163objext_CXX=$objext 14164 14165# No sense in running all these tests if we already determined that 14166# the CXX compiler isn't working. Some variables (like enable_shared) 14167# are currently assumed to apply to all compilers on this platform, 14168# and will be corrupted by setting them based on a non-working compiler. 14169if test yes != "$_lt_caught_CXX_error"; then 14170 # Code to be used in simple compile tests 14171 lt_simple_compile_test_code="int some_variable = 0;" 14172 14173 # Code to be used in simple link tests 14174 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 14175 14176 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 14177 14178 14179 14180 14181 14182 14183# If no C compiler was specified, use CC. 14184LTCC=${LTCC-"$CC"} 14185 14186# If no C compiler flags were specified, use CFLAGS. 14187LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14188 14189# Allow CC to be a program name with arguments. 14190compiler=$CC 14191 14192 14193 # save warnings/boilerplate of simple test code 14194 ac_outfile=conftest.$ac_objext 14195echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14196eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14197_lt_compiler_boilerplate=`cat conftest.err` 14198$RM conftest* 14199 14200 ac_outfile=conftest.$ac_objext 14201echo "$lt_simple_link_test_code" >conftest.$ac_ext 14202eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14203_lt_linker_boilerplate=`cat conftest.err` 14204$RM -r conftest* 14205 14206 14207 # Allow CC to be a program name with arguments. 14208 lt_save_CC=$CC 14209 lt_save_CFLAGS=$CFLAGS 14210 lt_save_LD=$LD 14211 lt_save_GCC=$GCC 14212 GCC=$GXX 14213 lt_save_with_gnu_ld=$with_gnu_ld 14214 lt_save_path_LD=$lt_cv_path_LD 14215 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 14216 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 14217 else 14218 $as_unset lt_cv_prog_gnu_ld 14219 fi 14220 if test -n "${lt_cv_path_LDCXX+set}"; then 14221 lt_cv_path_LD=$lt_cv_path_LDCXX 14222 else 14223 $as_unset lt_cv_path_LD 14224 fi 14225 test -z "${LDCXX+set}" || LD=$LDCXX 14226 CC=${CXX-"c++"} 14227 CFLAGS=$CXXFLAGS 14228 compiler=$CC 14229 compiler_CXX=$CC 14230 func_cc_basename $compiler 14231cc_basename=$func_cc_basename_result 14232 14233 14234 if test -n "$compiler"; then 14235 # We don't want -fno-exception when compiling C++ code, so set the 14236 # no_builtin_flag separately 14237 if test yes = "$GXX"; then 14238 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 14239 else 14240 lt_prog_compiler_no_builtin_flag_CXX= 14241 fi 14242 14243 if test yes = "$GXX"; then 14244 # Set up default GNU C++ configuration 14245 14246 14247 14248# Check whether --with-gnu-ld was given. 14249if test "${with_gnu_ld+set}" = set; then : 14250 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 14251else 14252 with_gnu_ld=no 14253fi 14254 14255ac_prog=ld 14256if test yes = "$GCC"; then 14257 # Check if gcc -print-prog-name=ld gives a path. 14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 14259$as_echo_n "checking for ld used by $CC... " >&6; } 14260 case $host in 14261 *-*-mingw*) 14262 # gcc leaves a trailing carriage return, which upsets mingw 14263 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 14264 *) 14265 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 14266 esac 14267 case $ac_prog in 14268 # Accept absolute paths. 14269 [\\/]* | ?:[\\/]*) 14270 re_direlt='/[^/][^/]*/\.\./' 14271 # Canonicalize the pathname of ld 14272 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 14273 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 14274 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 14275 done 14276 test -z "$LD" && LD=$ac_prog 14277 ;; 14278 "") 14279 # If it fails, then pretend we aren't using GCC. 14280 ac_prog=ld 14281 ;; 14282 *) 14283 # If it is relative, then search for the first ld in PATH. 14284 with_gnu_ld=unknown 14285 ;; 14286 esac 14287elif test yes = "$with_gnu_ld"; then 14288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 14289$as_echo_n "checking for GNU ld... " >&6; } 14290else 14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 14292$as_echo_n "checking for non-GNU ld... " >&6; } 14293fi 14294if ${lt_cv_path_LD+:} false; then : 14295 $as_echo_n "(cached) " >&6 14296else 14297 if test -z "$LD"; then 14298 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 14299 for ac_dir in $PATH; do 14300 IFS=$lt_save_ifs 14301 test -z "$ac_dir" && ac_dir=. 14302 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 14303 lt_cv_path_LD=$ac_dir/$ac_prog 14304 # Check to see if the program is GNU ld. I'd rather use --version, 14305 # but apparently some variants of GNU ld only accept -v. 14306 # Break only if it was the GNU/non-GNU ld that we prefer. 14307 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 14308 *GNU* | *'with BFD'*) 14309 test no != "$with_gnu_ld" && break 14310 ;; 14311 *) 14312 test yes != "$with_gnu_ld" && break 14313 ;; 14314 esac 14315 fi 14316 done 14317 IFS=$lt_save_ifs 14318else 14319 lt_cv_path_LD=$LD # Let the user override the test with a path. 14320fi 14321fi 14322 14323LD=$lt_cv_path_LD 14324if test -n "$LD"; then 14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14326$as_echo "$LD" >&6; } 14327else 14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14329$as_echo "no" >&6; } 14330fi 14331test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14333$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 14334if ${lt_cv_prog_gnu_ld+:} false; then : 14335 $as_echo_n "(cached) " >&6 14336else 14337 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14338case `$LD -v 2>&1 </dev/null` in 14339*GNU* | *'with BFD'*) 14340 lt_cv_prog_gnu_ld=yes 14341 ;; 14342*) 14343 lt_cv_prog_gnu_ld=no 14344 ;; 14345esac 14346fi 14347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14348$as_echo "$lt_cv_prog_gnu_ld" >&6; } 14349with_gnu_ld=$lt_cv_prog_gnu_ld 14350 14351 14352 14353 14354 14355 14356 14357 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14358 # archiving commands below assume that GNU ld is being used. 14359 if test yes = "$with_gnu_ld"; then 14360 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14361 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' 14362 14363 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14364 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14365 14366 # If archive_cmds runs LD, not CC, wlarc should be empty 14367 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14368 # investigate it a little bit more. (MM) 14369 wlarc='$wl' 14370 14371 # ancient GNU ld didn't support --whole-archive et. al. 14372 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 14373 $GREP 'no-whole-archive' > /dev/null; then 14374 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14375 else 14376 whole_archive_flag_spec_CXX= 14377 fi 14378 else 14379 with_gnu_ld=no 14380 wlarc= 14381 14382 # A generic and very simple default shared library creation 14383 # command for GNU C++ for the case where it uses the native 14384 # linker, instead of GNU ld. If possible, this setting should 14385 # overridden to take advantage of the native linker features on 14386 # the platform it is being used on. 14387 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14388 fi 14389 14390 # Commands to make compiler produce verbose output that lists 14391 # what "hidden" libraries, object files and flags are used when 14392 # linking a shared library. 14393 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14394 14395 else 14396 GXX=no 14397 with_gnu_ld=no 14398 wlarc= 14399 fi 14400 14401 # PORTME: fill in a description of your system's C++ link characteristics 14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14403$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14404 ld_shlibs_CXX=yes 14405 case $host_os in 14406 aix3*) 14407 # FIXME: insert proper C++ library support 14408 ld_shlibs_CXX=no 14409 ;; 14410 aix[4-9]*) 14411 if test ia64 = "$host_cpu"; then 14412 # On IA64, the linker does run time linking by default, so we don't 14413 # have to do anything special. 14414 aix_use_runtimelinking=no 14415 exp_sym_flag='-Bexport' 14416 no_entry_flag= 14417 else 14418 aix_use_runtimelinking=no 14419 14420 # Test if we are trying to use run time linking or normal 14421 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14422 # have runtime linking enabled, and use it for executables. 14423 # For shared libraries, we enable/disable runtime linking 14424 # depending on the kind of the shared library created - 14425 # when "with_aix_soname,aix_use_runtimelinking" is: 14426 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14427 # "aix,yes" lib.so shared, rtl:yes, for executables 14428 # lib.a static archive 14429 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14430 # lib.a(lib.so.V) shared, rtl:no, for executables 14431 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14432 # lib.a(lib.so.V) shared, rtl:no 14433 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14434 # lib.a static archive 14435 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14436 for ld_flag in $LDFLAGS; do 14437 case $ld_flag in 14438 *-brtl*) 14439 aix_use_runtimelinking=yes 14440 break 14441 ;; 14442 esac 14443 done 14444 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14445 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14446 # so we don't have lib.a shared libs to link our executables. 14447 # We have to force runtime linking in this case. 14448 aix_use_runtimelinking=yes 14449 LDFLAGS="$LDFLAGS -Wl,-brtl" 14450 fi 14451 ;; 14452 esac 14453 14454 exp_sym_flag='-bexport' 14455 no_entry_flag='-bnoentry' 14456 fi 14457 14458 # When large executables or shared objects are built, AIX ld can 14459 # have problems creating the table of contents. If linking a library 14460 # or program results in "error TOC overflow" add -mminimal-toc to 14461 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14462 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14463 14464 archive_cmds_CXX='' 14465 hardcode_direct_CXX=yes 14466 hardcode_direct_absolute_CXX=yes 14467 hardcode_libdir_separator_CXX=':' 14468 link_all_deplibs_CXX=yes 14469 file_list_spec_CXX='$wl-f,' 14470 case $with_aix_soname,$aix_use_runtimelinking in 14471 aix,*) ;; # no import file 14472 svr4,* | *,yes) # use import file 14473 # The Import File defines what to hardcode. 14474 hardcode_direct_CXX=no 14475 hardcode_direct_absolute_CXX=no 14476 ;; 14477 esac 14478 14479 if test yes = "$GXX"; then 14480 case $host_os in aix4.[012]|aix4.[012].*) 14481 # We only want to do this on AIX 4.2 and lower, the check 14482 # below for broken collect2 doesn't work under 4.3+ 14483 collect2name=`$CC -print-prog-name=collect2` 14484 if test -f "$collect2name" && 14485 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14486 then 14487 # We have reworked collect2 14488 : 14489 else 14490 # We have old collect2 14491 hardcode_direct_CXX=unsupported 14492 # It fails to find uninstalled libraries when the uninstalled 14493 # path is not listed in the libpath. Setting hardcode_minus_L 14494 # to unsupported forces relinking 14495 hardcode_minus_L_CXX=yes 14496 hardcode_libdir_flag_spec_CXX='-L$libdir' 14497 hardcode_libdir_separator_CXX= 14498 fi 14499 esac 14500 shared_flag='-shared' 14501 if test yes = "$aix_use_runtimelinking"; then 14502 shared_flag=$shared_flag' $wl-G' 14503 fi 14504 # Need to ensure runtime linking is disabled for the traditional 14505 # shared library, or the linker may eventually find shared libraries 14506 # /with/ Import File - we do not want to mix them. 14507 shared_flag_aix='-shared' 14508 shared_flag_svr4='-shared $wl-G' 14509 else 14510 # not using gcc 14511 if test ia64 = "$host_cpu"; then 14512 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14513 # chokes on -Wl,-G. The following line is correct: 14514 shared_flag='-G' 14515 else 14516 if test yes = "$aix_use_runtimelinking"; then 14517 shared_flag='$wl-G' 14518 else 14519 shared_flag='$wl-bM:SRE' 14520 fi 14521 shared_flag_aix='$wl-bM:SRE' 14522 shared_flag_svr4='$wl-G' 14523 fi 14524 fi 14525 14526 export_dynamic_flag_spec_CXX='$wl-bexpall' 14527 # It seems that -bexpall does not export symbols beginning with 14528 # underscore (_), so it is better to generate a list of symbols to 14529 # export. 14530 always_export_symbols_CXX=yes 14531 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14532 # Warning - without using the other runtime loading flags (-brtl), 14533 # -berok will link without error, but may produce a broken library. 14534 # The "-G" linker flag allows undefined symbols. 14535 no_undefined_flag_CXX='-bernotok' 14536 # Determine the default libpath from the value encoded in an empty 14537 # executable. 14538 if test set = "${lt_cv_aix_libpath+set}"; then 14539 aix_libpath=$lt_cv_aix_libpath 14540else 14541 if ${lt_cv_aix_libpath__CXX+:} false; then : 14542 $as_echo_n "(cached) " >&6 14543else 14544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14545/* end confdefs.h. */ 14546 14547int 14548main () 14549{ 14550 14551 ; 14552 return 0; 14553} 14554_ACEOF 14555if ac_fn_cxx_try_link "$LINENO"; then : 14556 14557 lt_aix_libpath_sed=' 14558 /Import File Strings/,/^$/ { 14559 /^0/ { 14560 s/^0 *\([^ ]*\) *$/\1/ 14561 p 14562 } 14563 }' 14564 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14565 # Check for a 64-bit object if we didn't find anything. 14566 if test -z "$lt_cv_aix_libpath__CXX"; then 14567 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14568 fi 14569fi 14570rm -f core conftest.err conftest.$ac_objext \ 14571 conftest$ac_exeext conftest.$ac_ext 14572 if test -z "$lt_cv_aix_libpath__CXX"; then 14573 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14574 fi 14575 14576fi 14577 14578 aix_libpath=$lt_cv_aix_libpath__CXX 14579fi 14580 14581 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14582 14583 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 14584 else 14585 if test ia64 = "$host_cpu"; then 14586 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14587 allow_undefined_flag_CXX="-z nodefs" 14588 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" 14589 else 14590 # Determine the default libpath from the value encoded in an 14591 # empty executable. 14592 if test set = "${lt_cv_aix_libpath+set}"; then 14593 aix_libpath=$lt_cv_aix_libpath 14594else 14595 if ${lt_cv_aix_libpath__CXX+:} false; then : 14596 $as_echo_n "(cached) " >&6 14597else 14598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14599/* end confdefs.h. */ 14600 14601int 14602main () 14603{ 14604 14605 ; 14606 return 0; 14607} 14608_ACEOF 14609if ac_fn_cxx_try_link "$LINENO"; then : 14610 14611 lt_aix_libpath_sed=' 14612 /Import File Strings/,/^$/ { 14613 /^0/ { 14614 s/^0 *\([^ ]*\) *$/\1/ 14615 p 14616 } 14617 }' 14618 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14619 # Check for a 64-bit object if we didn't find anything. 14620 if test -z "$lt_cv_aix_libpath__CXX"; then 14621 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14622 fi 14623fi 14624rm -f core conftest.err conftest.$ac_objext \ 14625 conftest$ac_exeext conftest.$ac_ext 14626 if test -z "$lt_cv_aix_libpath__CXX"; then 14627 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14628 fi 14629 14630fi 14631 14632 aix_libpath=$lt_cv_aix_libpath__CXX 14633fi 14634 14635 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14636 # Warning - without using the other run time loading flags, 14637 # -berok will link without error, but may produce a broken library. 14638 no_undefined_flag_CXX=' $wl-bernotok' 14639 allow_undefined_flag_CXX=' $wl-berok' 14640 if test yes = "$with_gnu_ld"; then 14641 # We only use this code for GNU lds that support --whole-archive. 14642 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14643 else 14644 # Exported symbols can be pulled into shared objects from archives 14645 whole_archive_flag_spec_CXX='$convenience' 14646 fi 14647 archive_cmds_need_lc_CXX=yes 14648 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14649 # -brtl affects multiple linker settings, -berok does not and is overridden later 14650 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14651 if test svr4 != "$with_aix_soname"; then 14652 # This is similar to how AIX traditionally builds its shared 14653 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14654 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' 14655 fi 14656 if test aix != "$with_aix_soname"; then 14657 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' 14658 else 14659 # used by -dlpreopen to get the symbols 14660 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14661 fi 14662 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14663 fi 14664 fi 14665 ;; 14666 14667 beos*) 14668 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14669 allow_undefined_flag_CXX=unsupported 14670 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14671 # support --undefined. This deserves some investigation. FIXME 14672 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14673 else 14674 ld_shlibs_CXX=no 14675 fi 14676 ;; 14677 14678 chorus*) 14679 case $cc_basename in 14680 *) 14681 # FIXME: insert proper C++ library support 14682 ld_shlibs_CXX=no 14683 ;; 14684 esac 14685 ;; 14686 14687 cygwin* | mingw* | pw32* | cegcc*) 14688 case $GXX,$cc_basename in 14689 ,cl* | no,cl* | ,icl* | no,icl*) 14690 # Native MSVC or ICC 14691 # hardcode_libdir_flag_spec is actually meaningless, as there is 14692 # no search path for DLLs. 14693 hardcode_libdir_flag_spec_CXX=' ' 14694 allow_undefined_flag_CXX=unsupported 14695 always_export_symbols_CXX=yes 14696 file_list_spec_CXX='@' 14697 # Tell ltmain to make .lib files, not .a files. 14698 libext=lib 14699 # Tell ltmain to make .dll files, not .so files. 14700 shrext_cmds=.dll 14701 # FIXME: Setting linknames here is a bad hack. 14702 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14703 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14704 cp "$export_symbols" "$output_objdir/$soname.def"; 14705 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14706 else 14707 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14708 fi~ 14709 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14710 linknames=' 14711 # The linker will not automatically build a static lib if we build a DLL. 14712 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14713 enable_shared_with_static_runtimes_CXX=yes 14714 # Don't use ranlib 14715 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14716 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14717 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14718 case $lt_outputfile in 14719 *.exe|*.EXE) ;; 14720 *) 14721 lt_outputfile=$lt_outputfile.exe 14722 lt_tool_outputfile=$lt_tool_outputfile.exe 14723 ;; 14724 esac~ 14725 func_to_tool_file "$lt_outputfile"~ 14726 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14727 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14728 $RM "$lt_outputfile.manifest"; 14729 fi' 14730 ;; 14731 *) 14732 # g++ 14733 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14734 # as there is no search path for DLLs. 14735 hardcode_libdir_flag_spec_CXX='-L$libdir' 14736 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14737 allow_undefined_flag_CXX=unsupported 14738 always_export_symbols_CXX=no 14739 enable_shared_with_static_runtimes_CXX=yes 14740 14741 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14742 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' 14743 # If the export-symbols file already is a .def file, use it as 14744 # is; otherwise, prepend EXPORTS... 14745 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14746 cp $export_symbols $output_objdir/$soname.def; 14747 else 14748 echo EXPORTS > $output_objdir/$soname.def; 14749 cat $export_symbols >> $output_objdir/$soname.def; 14750 fi~ 14751 $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' 14752 else 14753 ld_shlibs_CXX=no 14754 fi 14755 ;; 14756 esac 14757 ;; 14758 darwin* | rhapsody*) 14759 14760 14761 archive_cmds_need_lc_CXX=no 14762 hardcode_direct_CXX=no 14763 hardcode_automatic_CXX=yes 14764 hardcode_shlibpath_var_CXX=unsupported 14765 if test yes = "$lt_cv_ld_force_load"; then 14766 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\"`' 14767 14768 else 14769 whole_archive_flag_spec_CXX='' 14770 fi 14771 link_all_deplibs_CXX=yes 14772 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14773 case $cc_basename in 14774 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14775 *) _lt_dar_can_shared=$GCC ;; 14776 esac 14777 if test yes = "$_lt_dar_can_shared"; then 14778 output_verbose_link_cmd=func_echo_all 14779 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" 14780 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14781 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" 14782 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" 14783 if test yes != "$lt_cv_apple_cc_single_mod"; then 14784 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" 14785 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" 14786 fi 14787 14788 else 14789 ld_shlibs_CXX=no 14790 fi 14791 14792 ;; 14793 14794 os2*) 14795 hardcode_libdir_flag_spec_CXX='-L$libdir' 14796 hardcode_minus_L_CXX=yes 14797 allow_undefined_flag_CXX=unsupported 14798 shrext_cmds=.dll 14799 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14800 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14801 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14802 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14803 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14804 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14805 emximp -o $lib $output_objdir/$libname.def' 14806 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14807 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14808 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14809 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14810 prefix_cmds="$SED"~ 14811 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14812 prefix_cmds="$prefix_cmds -e 1d"; 14813 fi~ 14814 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14815 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14816 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14817 emximp -o $lib $output_objdir/$libname.def' 14818 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14819 enable_shared_with_static_runtimes_CXX=yes 14820 file_list_spec_CXX='@' 14821 ;; 14822 14823 dgux*) 14824 case $cc_basename in 14825 ec++*) 14826 # FIXME: insert proper C++ library support 14827 ld_shlibs_CXX=no 14828 ;; 14829 ghcx*) 14830 # Green Hills C++ Compiler 14831 # FIXME: insert proper C++ library support 14832 ld_shlibs_CXX=no 14833 ;; 14834 *) 14835 # FIXME: insert proper C++ library support 14836 ld_shlibs_CXX=no 14837 ;; 14838 esac 14839 ;; 14840 14841 freebsd2.*) 14842 # C++ shared libraries reported to be fairly broken before 14843 # switch to ELF 14844 ld_shlibs_CXX=no 14845 ;; 14846 14847 freebsd-elf*) 14848 archive_cmds_need_lc_CXX=no 14849 ;; 14850 14851 freebsd* | dragonfly*) 14852 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14853 # conventions 14854 ld_shlibs_CXX=yes 14855 ;; 14856 14857 haiku*) 14858 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14859 link_all_deplibs_CXX=yes 14860 ;; 14861 14862 hpux9*) 14863 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14864 hardcode_libdir_separator_CXX=: 14865 export_dynamic_flag_spec_CXX='$wl-E' 14866 hardcode_direct_CXX=yes 14867 hardcode_minus_L_CXX=yes # Not in the search PATH, 14868 # but as the default 14869 # location of the library. 14870 14871 case $cc_basename in 14872 CC*) 14873 # FIXME: insert proper C++ library support 14874 ld_shlibs_CXX=no 14875 ;; 14876 aCC*) 14877 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' 14878 # Commands to make compiler produce verbose output that lists 14879 # what "hidden" libraries, object files and flags are used when 14880 # linking a shared library. 14881 # 14882 # There doesn't appear to be a way to prevent this compiler from 14883 # explicitly linking system object files so we need to strip them 14884 # from the output so that they don't get included in the library 14885 # dependencies. 14886 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"' 14887 ;; 14888 *) 14889 if test yes = "$GXX"; then 14890 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' 14891 else 14892 # FIXME: insert proper C++ library support 14893 ld_shlibs_CXX=no 14894 fi 14895 ;; 14896 esac 14897 ;; 14898 14899 hpux10*|hpux11*) 14900 if test no = "$with_gnu_ld"; then 14901 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14902 hardcode_libdir_separator_CXX=: 14903 14904 case $host_cpu in 14905 hppa*64*|ia64*) 14906 ;; 14907 *) 14908 export_dynamic_flag_spec_CXX='$wl-E' 14909 ;; 14910 esac 14911 fi 14912 case $host_cpu in 14913 hppa*64*|ia64*) 14914 hardcode_direct_CXX=no 14915 hardcode_shlibpath_var_CXX=no 14916 ;; 14917 *) 14918 hardcode_direct_CXX=yes 14919 hardcode_direct_absolute_CXX=yes 14920 hardcode_minus_L_CXX=yes # Not in the search PATH, 14921 # but as the default 14922 # location of the library. 14923 ;; 14924 esac 14925 14926 case $cc_basename in 14927 CC*) 14928 # FIXME: insert proper C++ library support 14929 ld_shlibs_CXX=no 14930 ;; 14931 aCC*) 14932 case $host_cpu in 14933 hppa*64*) 14934 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14935 ;; 14936 ia64*) 14937 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14938 ;; 14939 *) 14940 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14941 ;; 14942 esac 14943 # Commands to make compiler produce verbose output that lists 14944 # what "hidden" libraries, object files and flags are used when 14945 # linking a shared library. 14946 # 14947 # There doesn't appear to be a way to prevent this compiler from 14948 # explicitly linking system object files so we need to strip them 14949 # from the output so that they don't get included in the library 14950 # dependencies. 14951 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"' 14952 ;; 14953 *) 14954 if test yes = "$GXX"; then 14955 if test no = "$with_gnu_ld"; then 14956 case $host_cpu in 14957 hppa*64*) 14958 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14959 ;; 14960 ia64*) 14961 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14962 ;; 14963 *) 14964 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' 14965 ;; 14966 esac 14967 fi 14968 else 14969 # FIXME: insert proper C++ library support 14970 ld_shlibs_CXX=no 14971 fi 14972 ;; 14973 esac 14974 ;; 14975 14976 interix[3-9]*) 14977 hardcode_direct_CXX=no 14978 hardcode_shlibpath_var_CXX=no 14979 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14980 export_dynamic_flag_spec_CXX='$wl-E' 14981 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14982 # Instead, shared libraries are loaded at an image base (0x10000000 by 14983 # default) and relocated if they conflict, which is a slow very memory 14984 # consuming and fragmenting process. To avoid this, we pick a random, 14985 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14986 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14987 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' 14988 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' 14989 ;; 14990 irix5* | irix6*) 14991 case $cc_basename in 14992 CC*) 14993 # SGI C++ 14994 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' 14995 14996 # Archives containing C++ object files must be created using 14997 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14998 # necessary to make sure instantiated templates are included 14999 # in the archive. 15000 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 15001 ;; 15002 *) 15003 if test yes = "$GXX"; then 15004 if test no = "$with_gnu_ld"; then 15005 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' 15006 else 15007 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' 15008 fi 15009 fi 15010 link_all_deplibs_CXX=yes 15011 ;; 15012 esac 15013 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15014 hardcode_libdir_separator_CXX=: 15015 inherit_rpath_CXX=yes 15016 ;; 15017 15018 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15019 case $cc_basename in 15020 KCC*) 15021 # Kuck and Associates, Inc. (KAI) C++ Compiler 15022 15023 # KCC will only create a shared library if the output file 15024 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15025 # to its proper name (with version) after linking. 15026 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' 15027 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' 15028 # Commands to make compiler produce verbose output that lists 15029 # what "hidden" libraries, object files and flags are used when 15030 # linking a shared library. 15031 # 15032 # There doesn't appear to be a way to prevent this compiler from 15033 # explicitly linking system object files so we need to strip them 15034 # from the output so that they don't get included in the library 15035 # dependencies. 15036 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"' 15037 15038 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15039 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15040 15041 # Archives containing C++ object files must be created using 15042 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 15043 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 15044 ;; 15045 icpc* | ecpc* ) 15046 # Intel C++ 15047 with_gnu_ld=yes 15048 # version 8.0 and above of icpc choke on multiply defined symbols 15049 # if we add $predep_objects and $postdep_objects, however 7.1 and 15050 # earlier do not add the objects themselves. 15051 case `$CC -V 2>&1` in 15052 *"Version 7."*) 15053 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15054 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' 15055 ;; 15056 *) # Version 8.0 or newer 15057 tmp_idyn= 15058 case $host_cpu in 15059 ia64*) tmp_idyn=' -i_dynamic';; 15060 esac 15061 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15062 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' 15063 ;; 15064 esac 15065 archive_cmds_need_lc_CXX=no 15066 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15067 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15068 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 15069 ;; 15070 pgCC* | pgcpp*) 15071 # Portland Group C++ compiler 15072 case `$CC -V` in 15073 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 15074 prelink_cmds_CXX='tpldir=Template.dir~ 15075 rm -rf $tpldir~ 15076 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 15077 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 15078 old_archive_cmds_CXX='tpldir=Template.dir~ 15079 rm -rf $tpldir~ 15080 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 15081 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 15082 $RANLIB $oldlib' 15083 archive_cmds_CXX='tpldir=Template.dir~ 15084 rm -rf $tpldir~ 15085 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15086 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15087 archive_expsym_cmds_CXX='tpldir=Template.dir~ 15088 rm -rf $tpldir~ 15089 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 15090 $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' 15091 ;; 15092 *) # Version 6 and above use weak symbols 15093 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15094 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' 15095 ;; 15096 esac 15097 15098 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 15099 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15100 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' 15101 ;; 15102 cxx*) 15103 # Compaq C++ 15104 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15105 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' 15106 15107 runpath_var=LD_RUN_PATH 15108 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15109 hardcode_libdir_separator_CXX=: 15110 15111 # Commands to make compiler produce verbose output that lists 15112 # what "hidden" libraries, object files and flags are used when 15113 # linking a shared library. 15114 # 15115 # There doesn't appear to be a way to prevent this compiler from 15116 # explicitly linking system object files so we need to strip them 15117 # from the output so that they don't get included in the library 15118 # dependencies. 15119 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' 15120 ;; 15121 xl* | mpixl* | bgxl*) 15122 # IBM XL 8.0 on PPC, with GNU ld 15123 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15124 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15125 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15126 if test yes = "$supports_anon_versioning"; then 15127 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 15128 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15129 echo "local: *; };" >> $output_objdir/$libname.ver~ 15130 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 15131 fi 15132 ;; 15133 *) 15134 case `$CC -V 2>&1 | sed 5q` in 15135 *Sun\ C*) 15136 # Sun C++ 5.9 15137 no_undefined_flag_CXX=' -zdefs' 15138 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15139 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' 15140 hardcode_libdir_flag_spec_CXX='-R$libdir' 15141 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' 15142 compiler_needs_object_CXX=yes 15143 15144 # Not sure whether something based on 15145 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 15146 # would be better. 15147 output_verbose_link_cmd='func_echo_all' 15148 15149 # Archives containing C++ object files must be created using 15150 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15151 # necessary to make sure instantiated templates are included 15152 # in the archive. 15153 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15154 ;; 15155 esac 15156 ;; 15157 esac 15158 ;; 15159 15160 lynxos*) 15161 # FIXME: insert proper C++ library support 15162 ld_shlibs_CXX=no 15163 ;; 15164 15165 m88k*) 15166 # FIXME: insert proper C++ library support 15167 ld_shlibs_CXX=no 15168 ;; 15169 15170 mvs*) 15171 case $cc_basename in 15172 cxx*) 15173 # FIXME: insert proper C++ library support 15174 ld_shlibs_CXX=no 15175 ;; 15176 *) 15177 # FIXME: insert proper C++ library support 15178 ld_shlibs_CXX=no 15179 ;; 15180 esac 15181 ;; 15182 15183 netbsd*) 15184 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15185 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 15186 wlarc= 15187 hardcode_libdir_flag_spec_CXX='-R$libdir' 15188 hardcode_direct_CXX=yes 15189 hardcode_shlibpath_var_CXX=no 15190 fi 15191 # Workaround some broken pre-1.5 toolchains 15192 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 15193 ;; 15194 15195 *nto* | *qnx*) 15196 ld_shlibs_CXX=yes 15197 ;; 15198 15199 openbsd* | bitrig*) 15200 if test -f /usr/libexec/ld.so; then 15201 hardcode_direct_CXX=yes 15202 hardcode_shlibpath_var_CXX=no 15203 hardcode_direct_absolute_CXX=yes 15204 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15205 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15206 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 15207 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 15208 export_dynamic_flag_spec_CXX='$wl-E' 15209 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15210 fi 15211 output_verbose_link_cmd=func_echo_all 15212 else 15213 ld_shlibs_CXX=no 15214 fi 15215 ;; 15216 15217 osf3* | osf4* | osf5*) 15218 case $cc_basename in 15219 KCC*) 15220 # Kuck and Associates, Inc. (KAI) C++ Compiler 15221 15222 # KCC will only create a shared library if the output file 15223 # ends with ".so" (or ".sl" for HP-UX), so rename the library 15224 # to its proper name (with version) after linking. 15225 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' 15226 15227 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 15228 hardcode_libdir_separator_CXX=: 15229 15230 # Archives containing C++ object files must be created using 15231 # the KAI C++ compiler. 15232 case $host in 15233 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 15234 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 15235 esac 15236 ;; 15237 RCC*) 15238 # Rational C++ 2.4.1 15239 # FIXME: insert proper C++ library support 15240 ld_shlibs_CXX=no 15241 ;; 15242 cxx*) 15243 case $host in 15244 osf3*) 15245 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15246 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' 15247 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15248 ;; 15249 *) 15250 allow_undefined_flag_CXX=' -expect_unresolved \*' 15251 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' 15252 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 15253 echo "-hidden">> $lib.exp~ 15254 $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~ 15255 $RM $lib.exp' 15256 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 15257 ;; 15258 esac 15259 15260 hardcode_libdir_separator_CXX=: 15261 15262 # Commands to make compiler produce verbose output that lists 15263 # what "hidden" libraries, object files and flags are used when 15264 # linking a shared library. 15265 # 15266 # There doesn't appear to be a way to prevent this compiler from 15267 # explicitly linking system object files so we need to strip them 15268 # from the output so that they don't get included in the library 15269 # dependencies. 15270 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"' 15271 ;; 15272 *) 15273 if test yes,no = "$GXX,$with_gnu_ld"; then 15274 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 15275 case $host in 15276 osf3*) 15277 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' 15278 ;; 15279 *) 15280 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' 15281 ;; 15282 esac 15283 15284 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15285 hardcode_libdir_separator_CXX=: 15286 15287 # Commands to make compiler produce verbose output that lists 15288 # what "hidden" libraries, object files and flags are used when 15289 # linking a shared library. 15290 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15291 15292 else 15293 # FIXME: insert proper C++ library support 15294 ld_shlibs_CXX=no 15295 fi 15296 ;; 15297 esac 15298 ;; 15299 15300 psos*) 15301 # FIXME: insert proper C++ library support 15302 ld_shlibs_CXX=no 15303 ;; 15304 15305 sunos4*) 15306 case $cc_basename in 15307 CC*) 15308 # Sun C++ 4.x 15309 # FIXME: insert proper C++ library support 15310 ld_shlibs_CXX=no 15311 ;; 15312 lcc*) 15313 # Lucid 15314 # FIXME: insert proper C++ library support 15315 ld_shlibs_CXX=no 15316 ;; 15317 *) 15318 # FIXME: insert proper C++ library support 15319 ld_shlibs_CXX=no 15320 ;; 15321 esac 15322 ;; 15323 15324 solaris*) 15325 case $cc_basename in 15326 CC* | sunCC*) 15327 # Sun C++ 4.2, 5.x and Centerline C++ 15328 archive_cmds_need_lc_CXX=yes 15329 no_undefined_flag_CXX=' -zdefs' 15330 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15331 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15332 $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' 15333 15334 hardcode_libdir_flag_spec_CXX='-R$libdir' 15335 hardcode_shlibpath_var_CXX=no 15336 case $host_os in 15337 solaris2.[0-5] | solaris2.[0-5].*) ;; 15338 *) 15339 # The compiler driver will combine and reorder linker options, 15340 # but understands '-z linker_flag'. 15341 # Supported since Solaris 2.6 (maybe 2.5.1?) 15342 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 15343 ;; 15344 esac 15345 link_all_deplibs_CXX=yes 15346 15347 output_verbose_link_cmd='func_echo_all' 15348 15349 # Archives containing C++ object files must be created using 15350 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15351 # necessary to make sure instantiated templates are included 15352 # in the archive. 15353 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15354 ;; 15355 gcx*) 15356 # Green Hills C++ Compiler 15357 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15358 15359 # The C++ compiler must be used to create the archive. 15360 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15361 ;; 15362 *) 15363 # GNU C++ compiler with Solaris linker 15364 if test yes,no = "$GXX,$with_gnu_ld"; then 15365 no_undefined_flag_CXX=' $wl-z ${wl}defs' 15366 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 15367 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15368 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15369 $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' 15370 15371 # Commands to make compiler produce verbose output that lists 15372 # what "hidden" libraries, object files and flags are used when 15373 # linking a shared library. 15374 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15375 else 15376 # g++ 2.7 appears to require '-G' NOT '-shared' on this 15377 # platform. 15378 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15379 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15380 $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' 15381 15382 # Commands to make compiler produce verbose output that lists 15383 # what "hidden" libraries, object files and flags are used when 15384 # linking a shared library. 15385 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15386 fi 15387 15388 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 15389 case $host_os in 15390 solaris2.[0-5] | solaris2.[0-5].*) ;; 15391 *) 15392 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 15393 ;; 15394 esac 15395 fi 15396 ;; 15397 esac 15398 ;; 15399 15400 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15401 no_undefined_flag_CXX='$wl-z,text' 15402 archive_cmds_need_lc_CXX=no 15403 hardcode_shlibpath_var_CXX=no 15404 runpath_var='LD_RUN_PATH' 15405 15406 case $cc_basename in 15407 CC*) 15408 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15409 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15410 ;; 15411 *) 15412 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15413 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15414 ;; 15415 esac 15416 ;; 15417 15418 sysv5* | sco3.2v5* | sco5v6*) 15419 # Note: We CANNOT use -z defs as we might desire, because we do not 15420 # link with -lc, and that would cause any symbols used from libc to 15421 # always be unresolved, which means just about no library would 15422 # ever link correctly. If we're not using GNU ld we use -z text 15423 # though, which does catch some bad symbols but isn't as heavy-handed 15424 # as -z defs. 15425 no_undefined_flag_CXX='$wl-z,text' 15426 allow_undefined_flag_CXX='$wl-z,nodefs' 15427 archive_cmds_need_lc_CXX=no 15428 hardcode_shlibpath_var_CXX=no 15429 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 15430 hardcode_libdir_separator_CXX=':' 15431 link_all_deplibs_CXX=yes 15432 export_dynamic_flag_spec_CXX='$wl-Bexport' 15433 runpath_var='LD_RUN_PATH' 15434 15435 case $cc_basename in 15436 CC*) 15437 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15438 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15439 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15440 '"$old_archive_cmds_CXX" 15441 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15442 '"$reload_cmds_CXX" 15443 ;; 15444 *) 15445 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15446 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15447 ;; 15448 esac 15449 ;; 15450 15451 tandem*) 15452 case $cc_basename in 15453 NCC*) 15454 # NonStop-UX NCC 3.20 15455 # FIXME: insert proper C++ library support 15456 ld_shlibs_CXX=no 15457 ;; 15458 *) 15459 # FIXME: insert proper C++ library support 15460 ld_shlibs_CXX=no 15461 ;; 15462 esac 15463 ;; 15464 15465 vxworks*) 15466 # FIXME: insert proper C++ library support 15467 ld_shlibs_CXX=no 15468 ;; 15469 15470 *) 15471 # FIXME: insert proper C++ library support 15472 ld_shlibs_CXX=no 15473 ;; 15474 esac 15475 15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15477$as_echo "$ld_shlibs_CXX" >&6; } 15478 test no = "$ld_shlibs_CXX" && can_build_shared=no 15479 15480 GCC_CXX=$GXX 15481 LD_CXX=$LD 15482 15483 ## CAVEAT EMPTOR: 15484 ## There is no encapsulation within the following macros, do not change 15485 ## the running order or otherwise move them around unless you know exactly 15486 ## what you are doing... 15487 # Dependencies to place before and after the object being linked: 15488predep_objects_CXX= 15489postdep_objects_CXX= 15490predeps_CXX= 15491postdeps_CXX= 15492compiler_lib_search_path_CXX= 15493 15494cat > conftest.$ac_ext <<_LT_EOF 15495class Foo 15496{ 15497public: 15498 Foo (void) { a = 0; } 15499private: 15500 int a; 15501}; 15502_LT_EOF 15503 15504 15505_lt_libdeps_save_CFLAGS=$CFLAGS 15506case "$CC $CFLAGS " in #( 15507*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15508*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15509*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15510esac 15511 15512if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15513 (eval $ac_compile) 2>&5 15514 ac_status=$? 15515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15516 test $ac_status = 0; }; then 15517 # Parse the compiler output and extract the necessary 15518 # objects, libraries and library flags. 15519 15520 # Sentinel used to keep track of whether or not we are before 15521 # the conftest object file. 15522 pre_test_object_deps_done=no 15523 15524 for p in `eval "$output_verbose_link_cmd"`; do 15525 case $prev$p in 15526 15527 -L* | -R* | -l*) 15528 # Some compilers place space between "-{L,R}" and the path. 15529 # Remove the space. 15530 if test x-L = "$p" || 15531 test x-R = "$p"; then 15532 prev=$p 15533 continue 15534 fi 15535 15536 # Expand the sysroot to ease extracting the directories later. 15537 if test -z "$prev"; then 15538 case $p in 15539 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15540 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15541 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15542 esac 15543 fi 15544 case $p in 15545 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15546 esac 15547 if test no = "$pre_test_object_deps_done"; then 15548 case $prev in 15549 -L | -R) 15550 # Internal compiler library paths should come after those 15551 # provided the user. The postdeps already come after the 15552 # user supplied libs so there is no need to process them. 15553 if test -z "$compiler_lib_search_path_CXX"; then 15554 compiler_lib_search_path_CXX=$prev$p 15555 else 15556 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15557 fi 15558 ;; 15559 # The "-l" case would never come before the object being 15560 # linked, so don't bother handling this case. 15561 esac 15562 else 15563 if test -z "$postdeps_CXX"; then 15564 postdeps_CXX=$prev$p 15565 else 15566 postdeps_CXX="${postdeps_CXX} $prev$p" 15567 fi 15568 fi 15569 prev= 15570 ;; 15571 15572 *.lto.$objext) ;; # Ignore GCC LTO objects 15573 *.$objext) 15574 # This assumes that the test object file only shows up 15575 # once in the compiler output. 15576 if test "$p" = "conftest.$objext"; then 15577 pre_test_object_deps_done=yes 15578 continue 15579 fi 15580 15581 if test no = "$pre_test_object_deps_done"; then 15582 if test -z "$predep_objects_CXX"; then 15583 predep_objects_CXX=$p 15584 else 15585 predep_objects_CXX="$predep_objects_CXX $p" 15586 fi 15587 else 15588 if test -z "$postdep_objects_CXX"; then 15589 postdep_objects_CXX=$p 15590 else 15591 postdep_objects_CXX="$postdep_objects_CXX $p" 15592 fi 15593 fi 15594 ;; 15595 15596 *) ;; # Ignore the rest. 15597 15598 esac 15599 done 15600 15601 # Clean up. 15602 rm -f a.out a.exe 15603else 15604 echo "libtool.m4: error: problem compiling CXX test program" 15605fi 15606 15607$RM -f confest.$objext 15608CFLAGS=$_lt_libdeps_save_CFLAGS 15609 15610# PORTME: override above test on systems where it is broken 15611case $host_os in 15612interix[3-9]*) 15613 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15614 # hack all around it, let's just trust "g++" to DTRT. 15615 predep_objects_CXX= 15616 postdep_objects_CXX= 15617 postdeps_CXX= 15618 ;; 15619esac 15620 15621 15622case " $postdeps_CXX " in 15623*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15624esac 15625 compiler_lib_search_dirs_CXX= 15626if test -n "${compiler_lib_search_path_CXX}"; then 15627 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15628fi 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 lt_prog_compiler_wl_CXX= 15661lt_prog_compiler_pic_CXX= 15662lt_prog_compiler_static_CXX= 15663 15664 15665 # C++ specific cases for pic, static, wl, etc. 15666 if test yes = "$GXX"; then 15667 lt_prog_compiler_wl_CXX='-Wl,' 15668 lt_prog_compiler_static_CXX='-static' 15669 15670 case $host_os in 15671 aix*) 15672 # All AIX code is PIC. 15673 if test ia64 = "$host_cpu"; then 15674 # AIX 5 now supports IA64 processor 15675 lt_prog_compiler_static_CXX='-Bstatic' 15676 fi 15677 lt_prog_compiler_pic_CXX='-fPIC' 15678 ;; 15679 15680 amigaos*) 15681 case $host_cpu in 15682 powerpc) 15683 # see comment about AmigaOS4 .so support 15684 lt_prog_compiler_pic_CXX='-fPIC' 15685 ;; 15686 m68k) 15687 # FIXME: we need at least 68020 code to build shared libraries, but 15688 # adding the '-m68020' flag to GCC prevents building anything better, 15689 # like '-m68040'. 15690 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15691 ;; 15692 esac 15693 ;; 15694 15695 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15696 # PIC is the default for these OSes. 15697 ;; 15698 mingw* | cygwin* | os2* | pw32* | cegcc*) 15699 # This hack is so that the source file can tell whether it is being 15700 # built for inclusion in a dll (and should export symbols for example). 15701 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15702 # (--disable-auto-import) libraries 15703 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15704 case $host_os in 15705 os2*) 15706 lt_prog_compiler_static_CXX='$wl-static' 15707 ;; 15708 esac 15709 ;; 15710 darwin* | rhapsody*) 15711 # PIC is the default on this platform 15712 # Common symbols not allowed in MH_DYLIB files 15713 lt_prog_compiler_pic_CXX='-fno-common' 15714 ;; 15715 *djgpp*) 15716 # DJGPP does not support shared libraries at all 15717 lt_prog_compiler_pic_CXX= 15718 ;; 15719 haiku*) 15720 # PIC is the default for Haiku. 15721 # The "-static" flag exists, but is broken. 15722 lt_prog_compiler_static_CXX= 15723 ;; 15724 interix[3-9]*) 15725 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15726 # Instead, we relocate shared libraries at runtime. 15727 ;; 15728 sysv4*MP*) 15729 if test -d /usr/nec; then 15730 lt_prog_compiler_pic_CXX=-Kconform_pic 15731 fi 15732 ;; 15733 hpux*) 15734 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15735 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15736 # sets the default TLS model and affects inlining. 15737 case $host_cpu in 15738 hppa*64*) 15739 ;; 15740 *) 15741 lt_prog_compiler_pic_CXX='-fPIC' 15742 ;; 15743 esac 15744 ;; 15745 *qnx* | *nto*) 15746 # QNX uses GNU C++, but need to define -shared option too, otherwise 15747 # it will coredump. 15748 lt_prog_compiler_pic_CXX='-fPIC -shared' 15749 ;; 15750 *) 15751 lt_prog_compiler_pic_CXX='-fPIC' 15752 ;; 15753 esac 15754 else 15755 case $host_os in 15756 aix[4-9]*) 15757 # All AIX code is PIC. 15758 if test ia64 = "$host_cpu"; then 15759 # AIX 5 now supports IA64 processor 15760 lt_prog_compiler_static_CXX='-Bstatic' 15761 else 15762 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15763 fi 15764 ;; 15765 chorus*) 15766 case $cc_basename in 15767 cxch68*) 15768 # Green Hills C++ Compiler 15769 # _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" 15770 ;; 15771 esac 15772 ;; 15773 mingw* | cygwin* | os2* | pw32* | cegcc*) 15774 # This hack is so that the source file can tell whether it is being 15775 # built for inclusion in a dll (and should export symbols for example). 15776 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15777 ;; 15778 dgux*) 15779 case $cc_basename in 15780 ec++*) 15781 lt_prog_compiler_pic_CXX='-KPIC' 15782 ;; 15783 ghcx*) 15784 # Green Hills C++ Compiler 15785 lt_prog_compiler_pic_CXX='-pic' 15786 ;; 15787 *) 15788 ;; 15789 esac 15790 ;; 15791 freebsd* | dragonfly*) 15792 # FreeBSD uses GNU C++ 15793 ;; 15794 hpux9* | hpux10* | hpux11*) 15795 case $cc_basename in 15796 CC*) 15797 lt_prog_compiler_wl_CXX='-Wl,' 15798 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15799 if test ia64 != "$host_cpu"; then 15800 lt_prog_compiler_pic_CXX='+Z' 15801 fi 15802 ;; 15803 aCC*) 15804 lt_prog_compiler_wl_CXX='-Wl,' 15805 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15806 case $host_cpu in 15807 hppa*64*|ia64*) 15808 # +Z the default 15809 ;; 15810 *) 15811 lt_prog_compiler_pic_CXX='+Z' 15812 ;; 15813 esac 15814 ;; 15815 *) 15816 ;; 15817 esac 15818 ;; 15819 interix*) 15820 # This is c89, which is MS Visual C++ (no shared libs) 15821 # Anyone wants to do a port? 15822 ;; 15823 irix5* | irix6* | nonstopux*) 15824 case $cc_basename in 15825 CC*) 15826 lt_prog_compiler_wl_CXX='-Wl,' 15827 lt_prog_compiler_static_CXX='-non_shared' 15828 # CC pic flag -KPIC is the default. 15829 ;; 15830 *) 15831 ;; 15832 esac 15833 ;; 15834 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15835 case $cc_basename in 15836 KCC*) 15837 # KAI C++ Compiler 15838 lt_prog_compiler_wl_CXX='--backend -Wl,' 15839 lt_prog_compiler_pic_CXX='-fPIC' 15840 ;; 15841 ecpc* ) 15842 # old Intel C++ for x86_64, which still supported -KPIC. 15843 lt_prog_compiler_wl_CXX='-Wl,' 15844 lt_prog_compiler_pic_CXX='-KPIC' 15845 lt_prog_compiler_static_CXX='-static' 15846 ;; 15847 icpc* ) 15848 # Intel C++, used to be incompatible with GCC. 15849 # ICC 10 doesn't accept -KPIC any more. 15850 lt_prog_compiler_wl_CXX='-Wl,' 15851 lt_prog_compiler_pic_CXX='-fPIC' 15852 lt_prog_compiler_static_CXX='-static' 15853 ;; 15854 pgCC* | pgcpp*) 15855 # Portland Group C++ compiler 15856 lt_prog_compiler_wl_CXX='-Wl,' 15857 lt_prog_compiler_pic_CXX='-fpic' 15858 lt_prog_compiler_static_CXX='-Bstatic' 15859 ;; 15860 cxx*) 15861 # Compaq C++ 15862 # Make sure the PIC flag is empty. It appears that all Alpha 15863 # Linux and Compaq Tru64 Unix objects are PIC. 15864 lt_prog_compiler_pic_CXX= 15865 lt_prog_compiler_static_CXX='-non_shared' 15866 ;; 15867 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15868 # IBM XL 8.0, 9.0 on PPC and BlueGene 15869 lt_prog_compiler_wl_CXX='-Wl,' 15870 lt_prog_compiler_pic_CXX='-qpic' 15871 lt_prog_compiler_static_CXX='-qstaticlink' 15872 ;; 15873 *) 15874 case `$CC -V 2>&1 | sed 5q` in 15875 *Sun\ C*) 15876 # Sun C++ 5.9 15877 lt_prog_compiler_pic_CXX='-KPIC' 15878 lt_prog_compiler_static_CXX='-Bstatic' 15879 lt_prog_compiler_wl_CXX='-Qoption ld ' 15880 ;; 15881 esac 15882 ;; 15883 esac 15884 ;; 15885 lynxos*) 15886 ;; 15887 m88k*) 15888 ;; 15889 mvs*) 15890 case $cc_basename in 15891 cxx*) 15892 lt_prog_compiler_pic_CXX='-W c,exportall' 15893 ;; 15894 *) 15895 ;; 15896 esac 15897 ;; 15898 netbsd*) 15899 ;; 15900 *qnx* | *nto*) 15901 # QNX uses GNU C++, but need to define -shared option too, otherwise 15902 # it will coredump. 15903 lt_prog_compiler_pic_CXX='-fPIC -shared' 15904 ;; 15905 osf3* | osf4* | osf5*) 15906 case $cc_basename in 15907 KCC*) 15908 lt_prog_compiler_wl_CXX='--backend -Wl,' 15909 ;; 15910 RCC*) 15911 # Rational C++ 2.4.1 15912 lt_prog_compiler_pic_CXX='-pic' 15913 ;; 15914 cxx*) 15915 # Digital/Compaq C++ 15916 lt_prog_compiler_wl_CXX='-Wl,' 15917 # Make sure the PIC flag is empty. It appears that all Alpha 15918 # Linux and Compaq Tru64 Unix objects are PIC. 15919 lt_prog_compiler_pic_CXX= 15920 lt_prog_compiler_static_CXX='-non_shared' 15921 ;; 15922 *) 15923 ;; 15924 esac 15925 ;; 15926 psos*) 15927 ;; 15928 solaris*) 15929 case $cc_basename in 15930 CC* | sunCC*) 15931 # Sun C++ 4.2, 5.x and Centerline C++ 15932 lt_prog_compiler_pic_CXX='-KPIC' 15933 lt_prog_compiler_static_CXX='-Bstatic' 15934 lt_prog_compiler_wl_CXX='-Qoption ld ' 15935 ;; 15936 gcx*) 15937 # Green Hills C++ Compiler 15938 lt_prog_compiler_pic_CXX='-PIC' 15939 ;; 15940 *) 15941 ;; 15942 esac 15943 ;; 15944 sunos4*) 15945 case $cc_basename in 15946 CC*) 15947 # Sun C++ 4.x 15948 lt_prog_compiler_pic_CXX='-pic' 15949 lt_prog_compiler_static_CXX='-Bstatic' 15950 ;; 15951 lcc*) 15952 # Lucid 15953 lt_prog_compiler_pic_CXX='-pic' 15954 ;; 15955 *) 15956 ;; 15957 esac 15958 ;; 15959 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15960 case $cc_basename in 15961 CC*) 15962 lt_prog_compiler_wl_CXX='-Wl,' 15963 lt_prog_compiler_pic_CXX='-KPIC' 15964 lt_prog_compiler_static_CXX='-Bstatic' 15965 ;; 15966 esac 15967 ;; 15968 tandem*) 15969 case $cc_basename in 15970 NCC*) 15971 # NonStop-UX NCC 3.20 15972 lt_prog_compiler_pic_CXX='-KPIC' 15973 ;; 15974 *) 15975 ;; 15976 esac 15977 ;; 15978 vxworks*) 15979 ;; 15980 *) 15981 lt_prog_compiler_can_build_shared_CXX=no 15982 ;; 15983 esac 15984 fi 15985 15986case $host_os in 15987 # For platforms that do not support PIC, -DPIC is meaningless: 15988 *djgpp*) 15989 lt_prog_compiler_pic_CXX= 15990 ;; 15991 *) 15992 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15993 ;; 15994esac 15995 15996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15997$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15998if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15999 $as_echo_n "(cached) " >&6 16000else 16001 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 16002fi 16003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 16004$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 16005lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 16006 16007# 16008# Check to make sure the PIC flag actually works. 16009# 16010if test -n "$lt_prog_compiler_pic_CXX"; then 16011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 16012$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 16013if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 16014 $as_echo_n "(cached) " >&6 16015else 16016 lt_cv_prog_compiler_pic_works_CXX=no 16017 ac_outfile=conftest.$ac_objext 16018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16019 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 16020 # Insert the option either (1) after the last *FLAGS variable, or 16021 # (2) before a word containing "conftest.", or (3) at the end. 16022 # Note that $ac_compile itself does not contain backslashes and begins 16023 # with a dollar sign (not a hyphen), so the echo should work correctly. 16024 # The option is referenced via a variable to avoid confusing sed. 16025 lt_compile=`echo "$ac_compile" | $SED \ 16026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16028 -e 's:$: $lt_compiler_flag:'` 16029 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16030 (eval "$lt_compile" 2>conftest.err) 16031 ac_status=$? 16032 cat conftest.err >&5 16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16034 if (exit $ac_status) && test -s "$ac_outfile"; then 16035 # The compiler can only warn and ignore the option if not recognized 16036 # So say no if there are warnings other than the usual output. 16037 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16038 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16039 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16040 lt_cv_prog_compiler_pic_works_CXX=yes 16041 fi 16042 fi 16043 $RM conftest* 16044 16045fi 16046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 16047$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 16048 16049if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 16050 case $lt_prog_compiler_pic_CXX in 16051 "" | " "*) ;; 16052 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 16053 esac 16054else 16055 lt_prog_compiler_pic_CXX= 16056 lt_prog_compiler_can_build_shared_CXX=no 16057fi 16058 16059fi 16060 16061 16062 16063 16064 16065# 16066# Check to make sure the static flag actually works. 16067# 16068wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 16069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 16070$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 16071if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 16072 $as_echo_n "(cached) " >&6 16073else 16074 lt_cv_prog_compiler_static_works_CXX=no 16075 save_LDFLAGS=$LDFLAGS 16076 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 16077 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16078 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16079 # The linker can only warn and ignore the option if not recognized 16080 # So say no if there are warnings 16081 if test -s conftest.err; then 16082 # Append any errors to the config.log. 16083 cat conftest.err 1>&5 16084 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16085 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16086 if diff conftest.exp conftest.er2 >/dev/null; then 16087 lt_cv_prog_compiler_static_works_CXX=yes 16088 fi 16089 else 16090 lt_cv_prog_compiler_static_works_CXX=yes 16091 fi 16092 fi 16093 $RM -r conftest* 16094 LDFLAGS=$save_LDFLAGS 16095 16096fi 16097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 16098$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 16099 16100if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 16101 : 16102else 16103 lt_prog_compiler_static_CXX= 16104fi 16105 16106 16107 16108 16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16110$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16111if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16112 $as_echo_n "(cached) " >&6 16113else 16114 lt_cv_prog_compiler_c_o_CXX=no 16115 $RM -r conftest 2>/dev/null 16116 mkdir conftest 16117 cd conftest 16118 mkdir out 16119 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16120 16121 lt_compiler_flag="-o out/conftest2.$ac_objext" 16122 # Insert the option either (1) after the last *FLAGS variable, or 16123 # (2) before a word containing "conftest.", or (3) at the end. 16124 # Note that $ac_compile itself does not contain backslashes and begins 16125 # with a dollar sign (not a hyphen), so the echo should work correctly. 16126 lt_compile=`echo "$ac_compile" | $SED \ 16127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16129 -e 's:$: $lt_compiler_flag:'` 16130 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16131 (eval "$lt_compile" 2>out/conftest.err) 16132 ac_status=$? 16133 cat out/conftest.err >&5 16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16135 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16136 then 16137 # The compiler can only warn and ignore the option if not recognized 16138 # So say no if there are warnings 16139 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16140 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16141 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16142 lt_cv_prog_compiler_c_o_CXX=yes 16143 fi 16144 fi 16145 chmod u+w . 2>&5 16146 $RM conftest* 16147 # SGI C++ compiler will create directory out/ii_files/ for 16148 # template instantiation 16149 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16150 $RM out/* && rmdir out 16151 cd .. 16152 $RM -r conftest 16153 $RM conftest* 16154 16155fi 16156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16157$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16158 16159 16160 16161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 16162$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 16163if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 16164 $as_echo_n "(cached) " >&6 16165else 16166 lt_cv_prog_compiler_c_o_CXX=no 16167 $RM -r conftest 2>/dev/null 16168 mkdir conftest 16169 cd conftest 16170 mkdir out 16171 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16172 16173 lt_compiler_flag="-o out/conftest2.$ac_objext" 16174 # Insert the option either (1) after the last *FLAGS variable, or 16175 # (2) before a word containing "conftest.", or (3) at the end. 16176 # Note that $ac_compile itself does not contain backslashes and begins 16177 # with a dollar sign (not a hyphen), so the echo should work correctly. 16178 lt_compile=`echo "$ac_compile" | $SED \ 16179 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16181 -e 's:$: $lt_compiler_flag:'` 16182 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 16183 (eval "$lt_compile" 2>out/conftest.err) 16184 ac_status=$? 16185 cat out/conftest.err >&5 16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16187 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16188 then 16189 # The compiler can only warn and ignore the option if not recognized 16190 # So say no if there are warnings 16191 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 16192 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 16193 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16194 lt_cv_prog_compiler_c_o_CXX=yes 16195 fi 16196 fi 16197 chmod u+w . 2>&5 16198 $RM conftest* 16199 # SGI C++ compiler will create directory out/ii_files/ for 16200 # template instantiation 16201 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 16202 $RM out/* && rmdir out 16203 cd .. 16204 $RM -r conftest 16205 $RM conftest* 16206 16207fi 16208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 16209$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 16210 16211 16212 16213 16214hard_links=nottested 16215if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 16216 # do not overwrite the value of need_locks provided by the user 16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 16218$as_echo_n "checking if we can lock with hard links... " >&6; } 16219 hard_links=yes 16220 $RM conftest* 16221 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16222 touch conftest.a 16223 ln conftest.a conftest.b 2>&5 || hard_links=no 16224 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 16226$as_echo "$hard_links" >&6; } 16227 if test no = "$hard_links"; then 16228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 16229$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 16230 need_locks=warn 16231 fi 16232else 16233 need_locks=no 16234fi 16235 16236 16237 16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16239$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 16240 16241 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16242 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 16243 case $host_os in 16244 aix[4-9]*) 16245 # If we're using GNU nm, then we don't want the "-C" option. 16246 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 16247 # Without the "-l" option, or with the "-B" option, AIX nm treats 16248 # weak defined symbols like other global defined symbols, whereas 16249 # GNU nm marks them as "W". 16250 # While the 'weak' keyword is ignored in the Export File, we need 16251 # it in the Import File for the 'aix-soname' feature, so we have 16252 # to replace the "-B" option with "-P" for AIX nm. 16253 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16254 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' 16255 else 16256 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 == "L") || (\$ 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' 16257 fi 16258 ;; 16259 pw32*) 16260 export_symbols_cmds_CXX=$ltdll_cmds 16261 ;; 16262 cygwin* | mingw* | cegcc*) 16263 case $cc_basename in 16264 cl* | icl*) 16265 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16266 ;; 16267 *) 16268 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' 16269 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 16270 ;; 16271 esac 16272 ;; 16273 *) 16274 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16275 ;; 16276 esac 16277 16278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16279$as_echo "$ld_shlibs_CXX" >&6; } 16280test no = "$ld_shlibs_CXX" && can_build_shared=no 16281 16282with_gnu_ld_CXX=$with_gnu_ld 16283 16284 16285 16286 16287 16288 16289# 16290# Do we need to explicitly link libc? 16291# 16292case "x$archive_cmds_need_lc_CXX" in 16293x|xyes) 16294 # Assume -lc should be added 16295 archive_cmds_need_lc_CXX=yes 16296 16297 if test yes,yes = "$GCC,$enable_shared"; then 16298 case $archive_cmds_CXX in 16299 *'~'*) 16300 # FIXME: we may have to deal with multi-command sequences. 16301 ;; 16302 '$CC '*) 16303 # Test whether the compiler implicitly links with -lc since on some 16304 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16305 # to ld, don't add -lc before -lgcc. 16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16307$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16308if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 16309 $as_echo_n "(cached) " >&6 16310else 16311 $RM conftest* 16312 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16313 16314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16315 (eval $ac_compile) 2>&5 16316 ac_status=$? 16317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16318 test $ac_status = 0; } 2>conftest.err; then 16319 soname=conftest 16320 lib=conftest 16321 libobjs=conftest.$ac_objext 16322 deplibs= 16323 wl=$lt_prog_compiler_wl_CXX 16324 pic_flag=$lt_prog_compiler_pic_CXX 16325 compiler_flags=-v 16326 linker_flags=-v 16327 verstring= 16328 output_objdir=. 16329 libname=conftest 16330 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 16331 allow_undefined_flag_CXX= 16332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16333 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16334 ac_status=$? 16335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16336 test $ac_status = 0; } 16337 then 16338 lt_cv_archive_cmds_need_lc_CXX=no 16339 else 16340 lt_cv_archive_cmds_need_lc_CXX=yes 16341 fi 16342 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16343 else 16344 cat conftest.err 1>&5 16345 fi 16346 $RM conftest* 16347 16348fi 16349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 16350$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 16351 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 16352 ;; 16353 esac 16354 fi 16355 ;; 16356esac 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16420$as_echo_n "checking dynamic linker characteristics... " >&6; } 16421 16422library_names_spec= 16423libname_spec='lib$name' 16424soname_spec= 16425shrext_cmds=.so 16426postinstall_cmds= 16427postuninstall_cmds= 16428finish_cmds= 16429finish_eval= 16430shlibpath_var= 16431shlibpath_overrides_runpath=unknown 16432version_type=none 16433dynamic_linker="$host_os ld.so" 16434sys_lib_dlsearch_path_spec="/lib /usr/lib" 16435need_lib_prefix=unknown 16436hardcode_into_libs=no 16437 16438# when you set need_version to no, make sure it does not cause -set_version 16439# flags to be left without arguments 16440need_version=unknown 16441 16442 16443 16444case $host_os in 16445aix3*) 16446 version_type=linux # correct to gnu/linux during the next big refactor 16447 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16448 shlibpath_var=LIBPATH 16449 16450 # AIX 3 has no versioning support, so we append a major version to the name. 16451 soname_spec='$libname$release$shared_ext$major' 16452 ;; 16453 16454aix[4-9]*) 16455 version_type=linux # correct to gnu/linux during the next big refactor 16456 need_lib_prefix=no 16457 need_version=no 16458 hardcode_into_libs=yes 16459 if test ia64 = "$host_cpu"; then 16460 # AIX 5 supports IA64 16461 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16462 shlibpath_var=LD_LIBRARY_PATH 16463 else 16464 # With GCC up to 2.95.x, collect2 would create an import file 16465 # for dependence libraries. The import file would start with 16466 # the line '#! .'. This would cause the generated library to 16467 # depend on '.', always an invalid library. This was fixed in 16468 # development snapshots of GCC prior to 3.0. 16469 case $host_os in 16470 aix4 | aix4.[01] | aix4.[01].*) 16471 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16472 echo ' yes ' 16473 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16474 : 16475 else 16476 can_build_shared=no 16477 fi 16478 ;; 16479 esac 16480 # Using Import Files as archive members, it is possible to support 16481 # filename-based versioning of shared library archives on AIX. While 16482 # this would work for both with and without runtime linking, it will 16483 # prevent static linking of such archives. So we do filename-based 16484 # shared library versioning with .so extension only, which is used 16485 # when both runtime linking and shared linking is enabled. 16486 # Unfortunately, runtime linking may impact performance, so we do 16487 # not want this to be the default eventually. Also, we use the 16488 # versioned .so libs for executables only if there is the -brtl 16489 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16490 # To allow for filename-based versioning support, we need to create 16491 # libNAME.so.V as an archive file, containing: 16492 # *) an Import File, referring to the versioned filename of the 16493 # archive as well as the shared archive member, telling the 16494 # bitwidth (32 or 64) of that shared object, and providing the 16495 # list of exported symbols of that shared object, eventually 16496 # decorated with the 'weak' keyword 16497 # *) the shared object with the F_LOADONLY flag set, to really avoid 16498 # it being seen by the linker. 16499 # At run time we better use the real file rather than another symlink, 16500 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16501 16502 case $with_aix_soname,$aix_use_runtimelinking in 16503 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16504 # soname into executable. Probably we can add versioning support to 16505 # collect2, so additional links can be useful in future. 16506 aix,yes) # traditional libtool 16507 dynamic_linker='AIX unversionable lib.so' 16508 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16509 # instead of lib<name>.a to let people know that these are not 16510 # typical AIX shared libraries. 16511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16512 ;; 16513 aix,no) # traditional AIX only 16514 dynamic_linker='AIX lib.a(lib.so.V)' 16515 # We preserve .a as extension for shared libraries through AIX4.2 16516 # and later when we are not doing run time linking. 16517 library_names_spec='$libname$release.a $libname.a' 16518 soname_spec='$libname$release$shared_ext$major' 16519 ;; 16520 svr4,*) # full svr4 only 16521 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16522 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16523 # We do not specify a path in Import Files, so LIBPATH fires. 16524 shlibpath_overrides_runpath=yes 16525 ;; 16526 *,yes) # both, prefer svr4 16527 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16528 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16529 # unpreferred sharedlib libNAME.a needs extra handling 16530 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"' 16531 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"' 16532 # We do not specify a path in Import Files, so LIBPATH fires. 16533 shlibpath_overrides_runpath=yes 16534 ;; 16535 *,no) # both, prefer aix 16536 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16537 library_names_spec='$libname$release.a $libname.a' 16538 soname_spec='$libname$release$shared_ext$major' 16539 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16540 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)' 16541 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"' 16542 ;; 16543 esac 16544 shlibpath_var=LIBPATH 16545 fi 16546 ;; 16547 16548amigaos*) 16549 case $host_cpu in 16550 powerpc) 16551 # Since July 2007 AmigaOS4 officially supports .so libraries. 16552 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16554 ;; 16555 m68k) 16556 library_names_spec='$libname.ixlibrary $libname.a' 16557 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16558 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' 16559 ;; 16560 esac 16561 ;; 16562 16563beos*) 16564 library_names_spec='$libname$shared_ext' 16565 dynamic_linker="$host_os ld.so" 16566 shlibpath_var=LIBRARY_PATH 16567 ;; 16568 16569bsdi[45]*) 16570 version_type=linux # correct to gnu/linux during the next big refactor 16571 need_version=no 16572 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16573 soname_spec='$libname$release$shared_ext$major' 16574 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16575 shlibpath_var=LD_LIBRARY_PATH 16576 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16577 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16578 # the default ld.so.conf also contains /usr/contrib/lib and 16579 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16580 # libtool to hard-code these into programs 16581 ;; 16582 16583cygwin* | mingw* | pw32* | cegcc*) 16584 version_type=windows 16585 shrext_cmds=.dll 16586 need_version=no 16587 need_lib_prefix=no 16588 16589 case $GCC,$cc_basename in 16590 yes,*) 16591 # gcc 16592 library_names_spec='$libname.dll.a' 16593 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16594 postinstall_cmds='base_file=`basename \$file`~ 16595 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16596 dldir=$destdir/`dirname \$dlpath`~ 16597 test -d \$dldir || mkdir -p \$dldir~ 16598 $install_prog $dir/$dlname \$dldir/$dlname~ 16599 chmod a+x \$dldir/$dlname~ 16600 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16601 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16602 fi' 16603 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16604 dlpath=$dir/\$dldll~ 16605 $RM \$dlpath' 16606 shlibpath_overrides_runpath=yes 16607 16608 case $host_os in 16609 cygwin*) 16610 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16611 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16612 16613 ;; 16614 mingw* | cegcc*) 16615 # MinGW DLLs use traditional 'lib' prefix 16616 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16617 ;; 16618 pw32*) 16619 # pw32 DLLs use 'pw' prefix rather than 'lib' 16620 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16621 ;; 16622 esac 16623 dynamic_linker='Win32 ld.exe' 16624 ;; 16625 16626 *,cl* | *,icl*) 16627 # Native MSVC or ICC 16628 libname_spec='$name' 16629 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16630 library_names_spec='$libname.dll.lib' 16631 16632 case $build_os in 16633 mingw*) 16634 sys_lib_search_path_spec= 16635 lt_save_ifs=$IFS 16636 IFS=';' 16637 for lt_path in $LIB 16638 do 16639 IFS=$lt_save_ifs 16640 # Let DOS variable expansion print the short 8.3 style file name. 16641 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16642 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16643 done 16644 IFS=$lt_save_ifs 16645 # Convert to MSYS style. 16646 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16647 ;; 16648 cygwin*) 16649 # Convert to unix form, then to dos form, then back to unix form 16650 # but this time dos style (no spaces!) so that the unix form looks 16651 # like /cygdrive/c/PROGRA~1:/cygdr... 16652 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16653 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16654 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16655 ;; 16656 *) 16657 sys_lib_search_path_spec=$LIB 16658 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16659 # It is most probably a Windows format PATH. 16660 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16661 else 16662 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16663 fi 16664 # FIXME: find the short name or the path components, as spaces are 16665 # common. (e.g. "Program Files" -> "PROGRA~1") 16666 ;; 16667 esac 16668 16669 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16670 postinstall_cmds='base_file=`basename \$file`~ 16671 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16672 dldir=$destdir/`dirname \$dlpath`~ 16673 test -d \$dldir || mkdir -p \$dldir~ 16674 $install_prog $dir/$dlname \$dldir/$dlname' 16675 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16676 dlpath=$dir/\$dldll~ 16677 $RM \$dlpath' 16678 shlibpath_overrides_runpath=yes 16679 dynamic_linker='Win32 link.exe' 16680 ;; 16681 16682 *) 16683 # Assume MSVC and ICC wrapper 16684 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16685 dynamic_linker='Win32 ld.exe' 16686 ;; 16687 esac 16688 # FIXME: first we should search . and the directory the executable is in 16689 shlibpath_var=PATH 16690 ;; 16691 16692darwin* | rhapsody*) 16693 dynamic_linker="$host_os dyld" 16694 version_type=darwin 16695 need_lib_prefix=no 16696 need_version=no 16697 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16698 soname_spec='$libname$release$major$shared_ext' 16699 shlibpath_overrides_runpath=yes 16700 shlibpath_var=DYLD_LIBRARY_PATH 16701 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16702 16703 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16704 ;; 16705 16706dgux*) 16707 version_type=linux # correct to gnu/linux during the next big refactor 16708 need_lib_prefix=no 16709 need_version=no 16710 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16711 soname_spec='$libname$release$shared_ext$major' 16712 shlibpath_var=LD_LIBRARY_PATH 16713 ;; 16714 16715freebsd* | dragonfly*) 16716 # DragonFly does not have aout. When/if they implement a new 16717 # versioning mechanism, adjust this. 16718 if test -x /usr/bin/objformat; then 16719 objformat=`/usr/bin/objformat` 16720 else 16721 case $host_os in 16722 freebsd[23].*) objformat=aout ;; 16723 *) objformat=elf ;; 16724 esac 16725 fi 16726 version_type=freebsd-$objformat 16727 case $version_type in 16728 freebsd-elf*) 16729 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16730 soname_spec='$libname$release$shared_ext$major' 16731 need_version=no 16732 need_lib_prefix=no 16733 ;; 16734 freebsd-*) 16735 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16736 need_version=yes 16737 ;; 16738 esac 16739 shlibpath_var=LD_LIBRARY_PATH 16740 case $host_os in 16741 freebsd2.*) 16742 shlibpath_overrides_runpath=yes 16743 ;; 16744 freebsd3.[01]* | freebsdelf3.[01]*) 16745 shlibpath_overrides_runpath=yes 16746 hardcode_into_libs=yes 16747 ;; 16748 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16749 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16750 shlibpath_overrides_runpath=no 16751 hardcode_into_libs=yes 16752 ;; 16753 *) # from 4.6 on, and DragonFly 16754 shlibpath_overrides_runpath=yes 16755 hardcode_into_libs=yes 16756 ;; 16757 esac 16758 ;; 16759 16760haiku*) 16761 version_type=linux # correct to gnu/linux during the next big refactor 16762 need_lib_prefix=no 16763 need_version=no 16764 dynamic_linker="$host_os runtime_loader" 16765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16766 soname_spec='$libname$release$shared_ext$major' 16767 shlibpath_var=LIBRARY_PATH 16768 shlibpath_overrides_runpath=no 16769 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16770 hardcode_into_libs=yes 16771 ;; 16772 16773hpux9* | hpux10* | hpux11*) 16774 # Give a soname corresponding to the major version so that dld.sl refuses to 16775 # link against other versions. 16776 version_type=sunos 16777 need_lib_prefix=no 16778 need_version=no 16779 case $host_cpu in 16780 ia64*) 16781 shrext_cmds='.so' 16782 hardcode_into_libs=yes 16783 dynamic_linker="$host_os dld.so" 16784 shlibpath_var=LD_LIBRARY_PATH 16785 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16786 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16787 soname_spec='$libname$release$shared_ext$major' 16788 if test 32 = "$HPUX_IA64_MODE"; then 16789 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16790 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16791 else 16792 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16793 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16794 fi 16795 ;; 16796 hppa*64*) 16797 shrext_cmds='.sl' 16798 hardcode_into_libs=yes 16799 dynamic_linker="$host_os dld.sl" 16800 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16801 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16802 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16803 soname_spec='$libname$release$shared_ext$major' 16804 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16805 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16806 ;; 16807 *) 16808 shrext_cmds='.sl' 16809 dynamic_linker="$host_os dld.sl" 16810 shlibpath_var=SHLIB_PATH 16811 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16813 soname_spec='$libname$release$shared_ext$major' 16814 ;; 16815 esac 16816 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16817 postinstall_cmds='chmod 555 $lib' 16818 # or fails outright, so override atomically: 16819 install_override_mode=555 16820 ;; 16821 16822interix[3-9]*) 16823 version_type=linux # correct to gnu/linux during the next big refactor 16824 need_lib_prefix=no 16825 need_version=no 16826 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16827 soname_spec='$libname$release$shared_ext$major' 16828 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16829 shlibpath_var=LD_LIBRARY_PATH 16830 shlibpath_overrides_runpath=no 16831 hardcode_into_libs=yes 16832 ;; 16833 16834irix5* | irix6* | nonstopux*) 16835 case $host_os in 16836 nonstopux*) version_type=nonstopux ;; 16837 *) 16838 if test yes = "$lt_cv_prog_gnu_ld"; then 16839 version_type=linux # correct to gnu/linux during the next big refactor 16840 else 16841 version_type=irix 16842 fi ;; 16843 esac 16844 need_lib_prefix=no 16845 need_version=no 16846 soname_spec='$libname$release$shared_ext$major' 16847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16848 case $host_os in 16849 irix5* | nonstopux*) 16850 libsuff= shlibsuff= 16851 ;; 16852 *) 16853 case $LD in # libtool.m4 will add one of these switches to LD 16854 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16855 libsuff= shlibsuff= libmagic=32-bit;; 16856 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16857 libsuff=32 shlibsuff=N32 libmagic=N32;; 16858 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16859 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16860 *) libsuff= shlibsuff= libmagic=never-match;; 16861 esac 16862 ;; 16863 esac 16864 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16865 shlibpath_overrides_runpath=no 16866 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16867 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16868 hardcode_into_libs=yes 16869 ;; 16870 16871# No shared lib support for Linux oldld, aout, or coff. 16872linux*oldld* | linux*aout* | linux*coff*) 16873 dynamic_linker=no 16874 ;; 16875 16876linux*android*) 16877 version_type=none # Android doesn't support versioned libraries. 16878 need_lib_prefix=no 16879 need_version=no 16880 library_names_spec='$libname$release$shared_ext' 16881 soname_spec='$libname$release$shared_ext' 16882 finish_cmds= 16883 shlibpath_var=LD_LIBRARY_PATH 16884 shlibpath_overrides_runpath=yes 16885 16886 # This implies no fast_install, which is unacceptable. 16887 # Some rework will be needed to allow for fast_install 16888 # before this can be enabled. 16889 hardcode_into_libs=yes 16890 16891 dynamic_linker='Android linker' 16892 # Don't embed -rpath directories since the linker doesn't support them. 16893 hardcode_libdir_flag_spec_CXX='-L$libdir' 16894 ;; 16895 16896# This must be glibc/ELF. 16897linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16898 version_type=linux # correct to gnu/linux during the next big refactor 16899 need_lib_prefix=no 16900 need_version=no 16901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16902 soname_spec='$libname$release$shared_ext$major' 16903 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16904 shlibpath_var=LD_LIBRARY_PATH 16905 shlibpath_overrides_runpath=no 16906 16907 # Some binutils ld are patched to set DT_RUNPATH 16908 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16909 $as_echo_n "(cached) " >&6 16910else 16911 lt_cv_shlibpath_overrides_runpath=no 16912 save_LDFLAGS=$LDFLAGS 16913 save_libdir=$libdir 16914 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16915 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16917/* end confdefs.h. */ 16918 16919int 16920main () 16921{ 16922 16923 ; 16924 return 0; 16925} 16926_ACEOF 16927if ac_fn_cxx_try_link "$LINENO"; then : 16928 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16929 lt_cv_shlibpath_overrides_runpath=yes 16930fi 16931fi 16932rm -f core conftest.err conftest.$ac_objext \ 16933 conftest$ac_exeext conftest.$ac_ext 16934 LDFLAGS=$save_LDFLAGS 16935 libdir=$save_libdir 16936 16937fi 16938 16939 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16940 16941 # This implies no fast_install, which is unacceptable. 16942 # Some rework will be needed to allow for fast_install 16943 # before this can be enabled. 16944 hardcode_into_libs=yes 16945 16946 # Ideally, we could use ldconfig to report *all* directores which are 16947 # searched for libraries, however this is still not possible. Aside from not 16948 # being certain /sbin/ldconfig is available, command 16949 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16950 # even though it is searched at run-time. Try to do the best guess by 16951 # appending ld.so.conf contents (and includes) to the search path. 16952 if test -f /etc/ld.so.conf; then 16953 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' ' '` 16954 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16955 fi 16956 16957 # We used to test for /lib/ld.so.1 and disable shared libraries on 16958 # powerpc, because MkLinux only supported shared libraries with the 16959 # GNU dynamic linker. Since this was broken with cross compilers, 16960 # most powerpc-linux boxes support dynamic linking these days and 16961 # people can always --disable-shared, the test was removed, and we 16962 # assume the GNU/Linux dynamic linker is in use. 16963 dynamic_linker='GNU/Linux ld.so' 16964 ;; 16965 16966netbsd*) 16967 version_type=sunos 16968 need_lib_prefix=no 16969 need_version=no 16970 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16971 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16972 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16973 dynamic_linker='NetBSD (a.out) ld.so' 16974 else 16975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16976 soname_spec='$libname$release$shared_ext$major' 16977 dynamic_linker='NetBSD ld.elf_so' 16978 fi 16979 shlibpath_var=LD_LIBRARY_PATH 16980 shlibpath_overrides_runpath=yes 16981 hardcode_into_libs=yes 16982 ;; 16983 16984newsos6) 16985 version_type=linux # correct to gnu/linux during the next big refactor 16986 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16987 shlibpath_var=LD_LIBRARY_PATH 16988 shlibpath_overrides_runpath=yes 16989 ;; 16990 16991*nto* | *qnx*) 16992 version_type=qnx 16993 need_lib_prefix=no 16994 need_version=no 16995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16996 soname_spec='$libname$release$shared_ext$major' 16997 shlibpath_var=LD_LIBRARY_PATH 16998 shlibpath_overrides_runpath=no 16999 hardcode_into_libs=yes 17000 dynamic_linker='ldqnx.so' 17001 ;; 17002 17003openbsd* | bitrig*) 17004 version_type=sunos 17005 sys_lib_dlsearch_path_spec=/usr/lib 17006 need_lib_prefix=no 17007 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 17008 need_version=no 17009 else 17010 need_version=yes 17011 fi 17012 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17013 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17014 shlibpath_var=LD_LIBRARY_PATH 17015 shlibpath_overrides_runpath=yes 17016 ;; 17017 17018os2*) 17019 libname_spec='$name' 17020 version_type=windows 17021 shrext_cmds=.dll 17022 need_version=no 17023 need_lib_prefix=no 17024 # OS/2 can only load a DLL with a base name of 8 characters or less. 17025 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 17026 v=$($ECHO $release$versuffix | tr -d .-); 17027 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 17028 $ECHO $n$v`$shared_ext' 17029 library_names_spec='${libname}_dll.$libext' 17030 dynamic_linker='OS/2 ld.exe' 17031 shlibpath_var=BEGINLIBPATH 17032 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17033 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17034 postinstall_cmds='base_file=`basename \$file`~ 17035 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 17036 dldir=$destdir/`dirname \$dlpath`~ 17037 test -d \$dldir || mkdir -p \$dldir~ 17038 $install_prog $dir/$dlname \$dldir/$dlname~ 17039 chmod a+x \$dldir/$dlname~ 17040 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17041 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17042 fi' 17043 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 17044 dlpath=$dir/\$dldll~ 17045 $RM \$dlpath' 17046 ;; 17047 17048osf3* | osf4* | osf5*) 17049 version_type=osf 17050 need_lib_prefix=no 17051 need_version=no 17052 soname_spec='$libname$release$shared_ext$major' 17053 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17054 shlibpath_var=LD_LIBRARY_PATH 17055 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17056 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17057 ;; 17058 17059rdos*) 17060 dynamic_linker=no 17061 ;; 17062 17063solaris*) 17064 version_type=linux # correct to gnu/linux during the next big refactor 17065 need_lib_prefix=no 17066 need_version=no 17067 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17068 soname_spec='$libname$release$shared_ext$major' 17069 shlibpath_var=LD_LIBRARY_PATH 17070 shlibpath_overrides_runpath=yes 17071 hardcode_into_libs=yes 17072 # ldd complains unless libraries are executable 17073 postinstall_cmds='chmod +x $lib' 17074 ;; 17075 17076sunos4*) 17077 version_type=sunos 17078 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 17079 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17080 shlibpath_var=LD_LIBRARY_PATH 17081 shlibpath_overrides_runpath=yes 17082 if test yes = "$with_gnu_ld"; then 17083 need_lib_prefix=no 17084 fi 17085 need_version=yes 17086 ;; 17087 17088sysv4 | sysv4.3*) 17089 version_type=linux # correct to gnu/linux during the next big refactor 17090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17091 soname_spec='$libname$release$shared_ext$major' 17092 shlibpath_var=LD_LIBRARY_PATH 17093 case $host_vendor in 17094 sni) 17095 shlibpath_overrides_runpath=no 17096 need_lib_prefix=no 17097 runpath_var=LD_RUN_PATH 17098 ;; 17099 siemens) 17100 need_lib_prefix=no 17101 ;; 17102 motorola) 17103 need_lib_prefix=no 17104 need_version=no 17105 shlibpath_overrides_runpath=no 17106 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17107 ;; 17108 esac 17109 ;; 17110 17111sysv4*MP*) 17112 if test -d /usr/nec; then 17113 version_type=linux # correct to gnu/linux during the next big refactor 17114 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 17115 soname_spec='$libname$shared_ext.$major' 17116 shlibpath_var=LD_LIBRARY_PATH 17117 fi 17118 ;; 17119 17120sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17121 version_type=sco 17122 need_lib_prefix=no 17123 need_version=no 17124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 17125 soname_spec='$libname$release$shared_ext$major' 17126 shlibpath_var=LD_LIBRARY_PATH 17127 shlibpath_overrides_runpath=yes 17128 hardcode_into_libs=yes 17129 if test yes = "$with_gnu_ld"; then 17130 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17131 else 17132 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17133 case $host_os in 17134 sco3.2v5*) 17135 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17136 ;; 17137 esac 17138 fi 17139 sys_lib_dlsearch_path_spec='/usr/lib' 17140 ;; 17141 17142tpf*) 17143 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17144 version_type=linux # correct to gnu/linux during the next big refactor 17145 need_lib_prefix=no 17146 need_version=no 17147 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17148 shlibpath_var=LD_LIBRARY_PATH 17149 shlibpath_overrides_runpath=no 17150 hardcode_into_libs=yes 17151 ;; 17152 17153uts4*) 17154 version_type=linux # correct to gnu/linux during the next big refactor 17155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17156 soname_spec='$libname$release$shared_ext$major' 17157 shlibpath_var=LD_LIBRARY_PATH 17158 ;; 17159 17160*) 17161 dynamic_linker=no 17162 ;; 17163esac 17164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17165$as_echo "$dynamic_linker" >&6; } 17166test no = "$dynamic_linker" && can_build_shared=no 17167 17168variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17169if test yes = "$GCC"; then 17170 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17171fi 17172 17173if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 17174 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 17175fi 17176 17177if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 17178 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 17179fi 17180 17181# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 17182configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 17183 17184# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 17185func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 17186 17187# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 17188configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220 17221 17222 17223 17224 17225 17226 17227 17228 17229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17230$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17231hardcode_action_CXX= 17232if test -n "$hardcode_libdir_flag_spec_CXX" || 17233 test -n "$runpath_var_CXX" || 17234 test yes = "$hardcode_automatic_CXX"; then 17235 17236 # We can hardcode non-existent directories. 17237 if test no != "$hardcode_direct_CXX" && 17238 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17239 # have to relink, otherwise we might link with an installed library 17240 # when we should be linking with a yet-to-be-installed one 17241 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 17242 test no != "$hardcode_minus_L_CXX"; then 17243 # Linking always hardcodes the temporary library directory. 17244 hardcode_action_CXX=relink 17245 else 17246 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17247 hardcode_action_CXX=immediate 17248 fi 17249else 17250 # We cannot hardcode anything, or else we can only hardcode existing 17251 # directories. 17252 hardcode_action_CXX=unsupported 17253fi 17254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 17255$as_echo "$hardcode_action_CXX" >&6; } 17256 17257if test relink = "$hardcode_action_CXX" || 17258 test yes = "$inherit_rpath_CXX"; then 17259 # Fast installation is not supported 17260 enable_fast_install=no 17261elif test yes = "$shlibpath_overrides_runpath" || 17262 test no = "$enable_shared"; then 17263 # Fast installation is not necessary 17264 enable_fast_install=needless 17265fi 17266 17267 17268 17269 17270 17271 17272 17273 fi # test -n "$compiler" 17274 17275 CC=$lt_save_CC 17276 CFLAGS=$lt_save_CFLAGS 17277 LDCXX=$LD 17278 LD=$lt_save_LD 17279 GCC=$lt_save_GCC 17280 with_gnu_ld=$lt_save_with_gnu_ld 17281 lt_cv_path_LDCXX=$lt_cv_path_LD 17282 lt_cv_path_LD=$lt_save_path_LD 17283 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 17284 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 17285fi # test yes != "$_lt_caught_CXX_error" 17286 17287ac_ext=c 17288ac_cpp='$CPP $CPPFLAGS' 17289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17291ac_compiler_gnu=$ac_cv_c_compiler_gnu 17292 17293 17294 17295# Various types 17296ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 17297case $ac_cv_c_int64_t in #( 17298 no|yes) ;; #( 17299 *) 17300 17301cat >>confdefs.h <<_ACEOF 17302#define int64_t $ac_cv_c_int64_t 17303_ACEOF 17304;; 17305esac 17306 17307ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 17308if test "x$ac_cv_type_size_t" = xyes; then : 17309 17310else 17311 17312cat >>confdefs.h <<_ACEOF 17313#define size_t unsigned int 17314_ACEOF 17315 17316fi 17317 17318ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 17319if test "x$ac_cv_type_ssize_t" = xyes; then : 17320 17321else 17322 17323cat >>confdefs.h <<_ACEOF 17324#define ssize_t int 17325_ACEOF 17326 17327fi 17328 17329ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 17330case $ac_cv_c_uint16_t in #( 17331 no|yes) ;; #( 17332 *) 17333 17334 17335cat >>confdefs.h <<_ACEOF 17336#define uint16_t $ac_cv_c_uint16_t 17337_ACEOF 17338;; 17339 esac 17340 17341ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 17342case $ac_cv_c_uint32_t in #( 17343 no|yes) ;; #( 17344 *) 17345 17346$as_echo "#define _UINT32_T 1" >>confdefs.h 17347 17348 17349cat >>confdefs.h <<_ACEOF 17350#define uint32_t $ac_cv_c_uint32_t 17351_ACEOF 17352;; 17353 esac 17354 17355ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" 17356case $ac_cv_c_uint8_t in #( 17357 no|yes) ;; #( 17358 *) 17359 17360$as_echo "#define _UINT8_T 1" >>confdefs.h 17361 17362 17363cat >>confdefs.h <<_ACEOF 17364#define uint8_t $ac_cv_c_uint8_t 17365_ACEOF 17366;; 17367 esac 17368 17369 17370if test "$os_cygwin" = "false"; then 17371 # Required for getaddrinfo (TCP IP - IPv6) 17372 for ac_header in winsock2.h 17373do : 17374 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" 17375if test "x$ac_cv_header_winsock2_h" = xyes; then : 17376 cat >>confdefs.h <<_ACEOF 17377#define HAVE_WINSOCK2_H 1 17378_ACEOF 17379 HAVE_WINSOCK2_H=yes 17380fi 17381 17382done 17383 17384 if test "x$HAVE_WINSOCK2_H" = "xyes"; then 17385 LIBS="$LIBS -lws2_32" 17386 17387 fi 17388fi 17389 17390# Check for RS485 support (Linux kernel version 2.6.28+) 17391ac_fn_c_check_decl "$LINENO" "TIOCSRS485" "ac_cv_have_decl_TIOCSRS485" "#include <sys/ioctl.h> 17392" 17393if test "x$ac_cv_have_decl_TIOCSRS485" = xyes; then : 17394 ac_have_decl=1 17395else 17396 ac_have_decl=0 17397fi 17398 17399cat >>confdefs.h <<_ACEOF 17400#define HAVE_DECL_TIOCSRS485 $ac_have_decl 17401_ACEOF 17402 17403# Check for RTS flags 17404ac_fn_c_check_decl "$LINENO" "TIOCM_RTS" "ac_cv_have_decl_TIOCM_RTS" "#include <sys/ioctl.h> 17405" 17406if test "x$ac_cv_have_decl_TIOCM_RTS" = xyes; then : 17407 ac_have_decl=1 17408else 17409 ac_have_decl=0 17410fi 17411 17412cat >>confdefs.h <<_ACEOF 17413#define HAVE_DECL_TIOCM_RTS $ac_have_decl 17414_ACEOF 17415 17416 17417# Wtype-limits is not supported by gcc 4.2 (default on recent Mac OS X) 17418my_CFLAGS="-Wall \ 17419-Wmissing-declarations -Wmissing-prototypes \ 17420-Wnested-externs -Wpointer-arith \ 17421-Wpointer-arith -Wsign-compare -Wchar-subscripts \ 17422-Wstrict-prototypes -Wshadow \ 17423-Wformat-security" 17424 17425 17426# Build options 17427# Check whether --enable-tests was given. 17428if test "${enable_tests+set}" = set; then : 17429 enableval=$enable_tests; 17430else 17431 enable_tests=yes 17432fi 17433 17434 if test $enable_tests != no; then 17435 BUILD_TESTS_TRUE= 17436 BUILD_TESTS_FALSE='#' 17437else 17438 BUILD_TESTS_TRUE='#' 17439 BUILD_TESTS_FALSE= 17440fi 17441 17442 17443ac_config_headers="$ac_config_headers config.h tests/unit-test.h" 17444 17445ac_config_files="$ac_config_files Makefile src/Makefile src/modbus-version.h src/win32/modbus.dll.manifest tests/Makefile doc/Makefile libmodbus.pc" 17446 17447 17448cat >confcache <<\_ACEOF 17449# This file is a shell script that caches the results of configure 17450# tests run on this system so they can be shared between configure 17451# scripts and configure runs, see configure's option --config-cache. 17452# It is not useful on other systems. If it contains results you don't 17453# want to keep, you may remove or edit it. 17454# 17455# config.status only pays attention to the cache file if you give it 17456# the --recheck option to rerun configure. 17457# 17458# `ac_cv_env_foo' variables (set or unset) will be overridden when 17459# loading this file, other *unset* `ac_cv_foo' will be assigned the 17460# following values. 17461 17462_ACEOF 17463 17464# The following way of writing the cache mishandles newlines in values, 17465# but we know of no workaround that is simple, portable, and efficient. 17466# So, we kill variables containing newlines. 17467# Ultrix sh set writes to stderr and can't be redirected directly, 17468# and sets the high bit in the cache file unless we assign to the vars. 17469( 17470 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17471 eval ac_val=\$$ac_var 17472 case $ac_val in #( 17473 *${as_nl}*) 17474 case $ac_var in #( 17475 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17476$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17477 esac 17478 case $ac_var in #( 17479 _ | IFS | as_nl) ;; #( 17480 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17481 *) { eval $ac_var=; unset $ac_var;} ;; 17482 esac ;; 17483 esac 17484 done 17485 17486 (set) 2>&1 | 17487 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17488 *${as_nl}ac_space=\ *) 17489 # `set' does not quote correctly, so add quotes: double-quote 17490 # substitution turns \\\\ into \\, and sed turns \\ into \. 17491 sed -n \ 17492 "s/'/'\\\\''/g; 17493 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17494 ;; #( 17495 *) 17496 # `set' quotes correctly as required by POSIX, so do not add quotes. 17497 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17498 ;; 17499 esac | 17500 sort 17501) | 17502 sed ' 17503 /^ac_cv_env_/b end 17504 t clear 17505 :clear 17506 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17507 t end 17508 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17509 :end' >>confcache 17510if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17511 if test -w "$cache_file"; then 17512 if test "x$cache_file" != "x/dev/null"; then 17513 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17514$as_echo "$as_me: updating cache $cache_file" >&6;} 17515 if test ! -f "$cache_file" || test -h "$cache_file"; then 17516 cat confcache >"$cache_file" 17517 else 17518 case $cache_file in #( 17519 */* | ?:*) 17520 mv -f confcache "$cache_file"$$ && 17521 mv -f "$cache_file"$$ "$cache_file" ;; #( 17522 *) 17523 mv -f confcache "$cache_file" ;; 17524 esac 17525 fi 17526 fi 17527 else 17528 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17529$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17530 fi 17531fi 17532rm -f confcache 17533 17534test "x$prefix" = xNONE && prefix=$ac_default_prefix 17535# Let make expand exec_prefix. 17536test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17537 17538DEFS=-DHAVE_CONFIG_H 17539 17540ac_libobjs= 17541ac_ltlibobjs= 17542U= 17543for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17544 # 1. Remove the extension, and $U if already installed. 17545 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17546 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17547 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17548 # will be set to the directory where LIBOBJS objects are built. 17549 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17550 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17551done 17552LIBOBJS=$ac_libobjs 17553 17554LTLIBOBJS=$ac_ltlibobjs 17555 17556 17557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17558$as_echo_n "checking that generated files are newer than configure... " >&6; } 17559 if test -n "$am_sleep_pid"; then 17560 # Hide warnings about reused PIDs. 17561 wait $am_sleep_pid 2>/dev/null 17562 fi 17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17564$as_echo "done" >&6; } 17565 if test -n "$EXEEXT"; then 17566 am__EXEEXT_TRUE= 17567 am__EXEEXT_FALSE='#' 17568else 17569 am__EXEEXT_TRUE='#' 17570 am__EXEEXT_FALSE= 17571fi 17572 17573if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17574 as_fn_error $? "conditional \"AMDEP\" was never defined. 17575Usually this means the macro was only invoked conditionally." "$LINENO" 5 17576fi 17577if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17578 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17579Usually this means the macro was only invoked conditionally." "$LINENO" 5 17580fi 17581if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then 17582 as_fn_error $? "conditional \"OS_WIN32\" was never defined. 17583Usually this means the macro was only invoked conditionally." "$LINENO" 5 17584fi 17585if test -z "${OS_QNX_TRUE}" && test -z "${OS_QNX_FALSE}"; then 17586 as_fn_error $? "conditional \"OS_QNX\" was never defined. 17587Usually this means the macro was only invoked conditionally." "$LINENO" 5 17588fi 17589if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then 17590 as_fn_error $? "conditional \"BUILD_DOC\" was never defined. 17591Usually this means the macro was only invoked conditionally." "$LINENO" 5 17592fi 17593if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17594 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 17595Usually this means the macro was only invoked conditionally." "$LINENO" 5 17596fi 17597if test -z "${BUILD_TESTS_TRUE}" && test -z "${BUILD_TESTS_FALSE}"; then 17598 as_fn_error $? "conditional \"BUILD_TESTS\" was never defined. 17599Usually this means the macro was only invoked conditionally." "$LINENO" 5 17600fi 17601 17602: "${CONFIG_STATUS=./config.status}" 17603ac_write_fail=0 17604ac_clean_files_save=$ac_clean_files 17605ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17606{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17607$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17608as_write_fail=0 17609cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17610#! $SHELL 17611# Generated by $as_me. 17612# Run this file to recreate the current configuration. 17613# Compiler output produced by configure, useful for debugging 17614# configure, is in config.log if it exists. 17615 17616debug=false 17617ac_cs_recheck=false 17618ac_cs_silent=false 17619 17620SHELL=\${CONFIG_SHELL-$SHELL} 17621export SHELL 17622_ASEOF 17623cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17624## -------------------- ## 17625## M4sh Initialization. ## 17626## -------------------- ## 17627 17628# Be more Bourne compatible 17629DUALCASE=1; export DUALCASE # for MKS sh 17630if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17631 emulate sh 17632 NULLCMD=: 17633 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17634 # is contrary to our usage. Disable this feature. 17635 alias -g '${1+"$@"}'='"$@"' 17636 setopt NO_GLOB_SUBST 17637else 17638 case `(set -o) 2>/dev/null` in #( 17639 *posix*) : 17640 set -o posix ;; #( 17641 *) : 17642 ;; 17643esac 17644fi 17645 17646 17647as_nl=' 17648' 17649export as_nl 17650# Printing a long string crashes Solaris 7 /usr/bin/printf. 17651as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17652as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17653as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17654# Prefer a ksh shell builtin over an external printf program on Solaris, 17655# but without wasting forks for bash or zsh. 17656if test -z "$BASH_VERSION$ZSH_VERSION" \ 17657 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17658 as_echo='print -r --' 17659 as_echo_n='print -rn --' 17660elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17661 as_echo='printf %s\n' 17662 as_echo_n='printf %s' 17663else 17664 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17665 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17666 as_echo_n='/usr/ucb/echo -n' 17667 else 17668 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17669 as_echo_n_body='eval 17670 arg=$1; 17671 case $arg in #( 17672 *"$as_nl"*) 17673 expr "X$arg" : "X\\(.*\\)$as_nl"; 17674 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17675 esac; 17676 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17677 ' 17678 export as_echo_n_body 17679 as_echo_n='sh -c $as_echo_n_body as_echo' 17680 fi 17681 export as_echo_body 17682 as_echo='sh -c $as_echo_body as_echo' 17683fi 17684 17685# The user is always right. 17686if test "${PATH_SEPARATOR+set}" != set; then 17687 PATH_SEPARATOR=: 17688 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17689 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17690 PATH_SEPARATOR=';' 17691 } 17692fi 17693 17694 17695# IFS 17696# We need space, tab and new line, in precisely that order. Quoting is 17697# there to prevent editors from complaining about space-tab. 17698# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17699# splitting by setting IFS to empty value.) 17700IFS=" "" $as_nl" 17701 17702# Find who we are. Look in the path if we contain no directory separator. 17703as_myself= 17704case $0 in #(( 17705 *[\\/]* ) as_myself=$0 ;; 17706 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17707for as_dir in $PATH 17708do 17709 IFS=$as_save_IFS 17710 test -z "$as_dir" && as_dir=. 17711 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17712 done 17713IFS=$as_save_IFS 17714 17715 ;; 17716esac 17717# We did not find ourselves, most probably we were run as `sh COMMAND' 17718# in which case we are not to be found in the path. 17719if test "x$as_myself" = x; then 17720 as_myself=$0 17721fi 17722if test ! -f "$as_myself"; then 17723 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17724 exit 1 17725fi 17726 17727# Unset variables that we do not need and which cause bugs (e.g. in 17728# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17729# suppresses any "Segmentation fault" message there. '((' could 17730# trigger a bug in pdksh 5.2.14. 17731for as_var in BASH_ENV ENV MAIL MAILPATH 17732do eval test x\${$as_var+set} = xset \ 17733 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17734done 17735PS1='$ ' 17736PS2='> ' 17737PS4='+ ' 17738 17739# NLS nuisances. 17740LC_ALL=C 17741export LC_ALL 17742LANGUAGE=C 17743export LANGUAGE 17744 17745# CDPATH. 17746(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17747 17748 17749# as_fn_error STATUS ERROR [LINENO LOG_FD] 17750# ---------------------------------------- 17751# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17752# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17753# script with STATUS, using 1 if that was 0. 17754as_fn_error () 17755{ 17756 as_status=$1; test $as_status -eq 0 && as_status=1 17757 if test "$4"; then 17758 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17759 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17760 fi 17761 $as_echo "$as_me: error: $2" >&2 17762 as_fn_exit $as_status 17763} # as_fn_error 17764 17765 17766# as_fn_set_status STATUS 17767# ----------------------- 17768# Set $? to STATUS, without forking. 17769as_fn_set_status () 17770{ 17771 return $1 17772} # as_fn_set_status 17773 17774# as_fn_exit STATUS 17775# ----------------- 17776# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17777as_fn_exit () 17778{ 17779 set +e 17780 as_fn_set_status $1 17781 exit $1 17782} # as_fn_exit 17783 17784# as_fn_unset VAR 17785# --------------- 17786# Portably unset VAR. 17787as_fn_unset () 17788{ 17789 { eval $1=; unset $1;} 17790} 17791as_unset=as_fn_unset 17792# as_fn_append VAR VALUE 17793# ---------------------- 17794# Append the text in VALUE to the end of the definition contained in VAR. Take 17795# advantage of any shell optimizations that allow amortized linear growth over 17796# repeated appends, instead of the typical quadratic growth present in naive 17797# implementations. 17798if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17799 eval 'as_fn_append () 17800 { 17801 eval $1+=\$2 17802 }' 17803else 17804 as_fn_append () 17805 { 17806 eval $1=\$$1\$2 17807 } 17808fi # as_fn_append 17809 17810# as_fn_arith ARG... 17811# ------------------ 17812# Perform arithmetic evaluation on the ARGs, and store the result in the 17813# global $as_val. Take advantage of shells that can avoid forks. The arguments 17814# must be portable across $(()) and expr. 17815if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17816 eval 'as_fn_arith () 17817 { 17818 as_val=$(( $* )) 17819 }' 17820else 17821 as_fn_arith () 17822 { 17823 as_val=`expr "$@" || test $? -eq 1` 17824 } 17825fi # as_fn_arith 17826 17827 17828if expr a : '\(a\)' >/dev/null 2>&1 && 17829 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17830 as_expr=expr 17831else 17832 as_expr=false 17833fi 17834 17835if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17836 as_basename=basename 17837else 17838 as_basename=false 17839fi 17840 17841if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17842 as_dirname=dirname 17843else 17844 as_dirname=false 17845fi 17846 17847as_me=`$as_basename -- "$0" || 17848$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17849 X"$0" : 'X\(//\)$' \| \ 17850 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17851$as_echo X/"$0" | 17852 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17853 s//\1/ 17854 q 17855 } 17856 /^X\/\(\/\/\)$/{ 17857 s//\1/ 17858 q 17859 } 17860 /^X\/\(\/\).*/{ 17861 s//\1/ 17862 q 17863 } 17864 s/.*/./; q'` 17865 17866# Avoid depending upon Character Ranges. 17867as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17868as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17869as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17870as_cr_digits='0123456789' 17871as_cr_alnum=$as_cr_Letters$as_cr_digits 17872 17873ECHO_C= ECHO_N= ECHO_T= 17874case `echo -n x` in #((((( 17875-n*) 17876 case `echo 'xy\c'` in 17877 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17878 xy) ECHO_C='\c';; 17879 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17880 ECHO_T=' ';; 17881 esac;; 17882*) 17883 ECHO_N='-n';; 17884esac 17885 17886rm -f conf$$ conf$$.exe conf$$.file 17887if test -d conf$$.dir; then 17888 rm -f conf$$.dir/conf$$.file 17889else 17890 rm -f conf$$.dir 17891 mkdir conf$$.dir 2>/dev/null 17892fi 17893if (echo >conf$$.file) 2>/dev/null; then 17894 if ln -s conf$$.file conf$$ 2>/dev/null; then 17895 as_ln_s='ln -s' 17896 # ... but there are two gotchas: 17897 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17898 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17899 # In both cases, we have to default to `cp -pR'. 17900 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17901 as_ln_s='cp -pR' 17902 elif ln conf$$.file conf$$ 2>/dev/null; then 17903 as_ln_s=ln 17904 else 17905 as_ln_s='cp -pR' 17906 fi 17907else 17908 as_ln_s='cp -pR' 17909fi 17910rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17911rmdir conf$$.dir 2>/dev/null 17912 17913 17914# as_fn_mkdir_p 17915# ------------- 17916# Create "$as_dir" as a directory, including parents if necessary. 17917as_fn_mkdir_p () 17918{ 17919 17920 case $as_dir in #( 17921 -*) as_dir=./$as_dir;; 17922 esac 17923 test -d "$as_dir" || eval $as_mkdir_p || { 17924 as_dirs= 17925 while :; do 17926 case $as_dir in #( 17927 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17928 *) as_qdir=$as_dir;; 17929 esac 17930 as_dirs="'$as_qdir' $as_dirs" 17931 as_dir=`$as_dirname -- "$as_dir" || 17932$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17933 X"$as_dir" : 'X\(//\)[^/]' \| \ 17934 X"$as_dir" : 'X\(//\)$' \| \ 17935 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17936$as_echo X"$as_dir" | 17937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17938 s//\1/ 17939 q 17940 } 17941 /^X\(\/\/\)[^/].*/{ 17942 s//\1/ 17943 q 17944 } 17945 /^X\(\/\/\)$/{ 17946 s//\1/ 17947 q 17948 } 17949 /^X\(\/\).*/{ 17950 s//\1/ 17951 q 17952 } 17953 s/.*/./; q'` 17954 test -d "$as_dir" && break 17955 done 17956 test -z "$as_dirs" || eval "mkdir $as_dirs" 17957 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17958 17959 17960} # as_fn_mkdir_p 17961if mkdir -p . 2>/dev/null; then 17962 as_mkdir_p='mkdir -p "$as_dir"' 17963else 17964 test -d ./-p && rmdir ./-p 17965 as_mkdir_p=false 17966fi 17967 17968 17969# as_fn_executable_p FILE 17970# ----------------------- 17971# Test if FILE is an executable regular file. 17972as_fn_executable_p () 17973{ 17974 test -f "$1" && test -x "$1" 17975} # as_fn_executable_p 17976as_test_x='test -x' 17977as_executable_p=as_fn_executable_p 17978 17979# Sed expression to map a string onto a valid CPP name. 17980as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17981 17982# Sed expression to map a string onto a valid variable name. 17983as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17984 17985 17986exec 6>&1 17987## ----------------------------------- ## 17988## Main body of $CONFIG_STATUS script. ## 17989## ----------------------------------- ## 17990_ASEOF 17991test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17992 17993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17994# Save the log message, to keep $0 and so on meaningful, and to 17995# report actual input values of CONFIG_FILES etc. instead of their 17996# values after options handling. 17997ac_log=" 17998This file was extended by libmodbus $as_me 3.1.6, which was 17999generated by GNU Autoconf 2.69. Invocation command line was 18000 18001 CONFIG_FILES = $CONFIG_FILES 18002 CONFIG_HEADERS = $CONFIG_HEADERS 18003 CONFIG_LINKS = $CONFIG_LINKS 18004 CONFIG_COMMANDS = $CONFIG_COMMANDS 18005 $ $0 $@ 18006 18007on `(hostname || uname -n) 2>/dev/null | sed 1q` 18008" 18009 18010_ACEOF 18011 18012case $ac_config_files in *" 18013"*) set x $ac_config_files; shift; ac_config_files=$*;; 18014esac 18015 18016case $ac_config_headers in *" 18017"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18018esac 18019 18020 18021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18022# Files that config.status was made for. 18023config_files="$ac_config_files" 18024config_headers="$ac_config_headers" 18025config_commands="$ac_config_commands" 18026 18027_ACEOF 18028 18029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18030ac_cs_usage="\ 18031\`$as_me' instantiates files and other configuration actions 18032from templates according to the current configuration. Unless the files 18033and actions are specified as TAGs, all are instantiated by default. 18034 18035Usage: $0 [OPTION]... [TAG]... 18036 18037 -h, --help print this help, then exit 18038 -V, --version print version number and configuration settings, then exit 18039 --config print configuration, then exit 18040 -q, --quiet, --silent 18041 do not print progress messages 18042 -d, --debug don't remove temporary files 18043 --recheck update $as_me by reconfiguring in the same conditions 18044 --file=FILE[:TEMPLATE] 18045 instantiate the configuration file FILE 18046 --header=FILE[:TEMPLATE] 18047 instantiate the configuration header FILE 18048 18049Configuration files: 18050$config_files 18051 18052Configuration headers: 18053$config_headers 18054 18055Configuration commands: 18056$config_commands 18057 18058Report bugs to <https://github.com/stephane/libmodbus/issues>. 18059libmodbus home page: <http://libmodbus.org/>." 18060 18061_ACEOF 18062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18063ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18064ac_cs_version="\\ 18065libmodbus config.status 3.1.6 18066configured by $0, generated by GNU Autoconf 2.69, 18067 with options \\"\$ac_cs_config\\" 18068 18069Copyright (C) 2012 Free Software Foundation, Inc. 18070This config.status script is free software; the Free Software Foundation 18071gives unlimited permission to copy, distribute and modify it." 18072 18073ac_pwd='$ac_pwd' 18074srcdir='$srcdir' 18075INSTALL='$INSTALL' 18076MKDIR_P='$MKDIR_P' 18077AWK='$AWK' 18078test -n "\$AWK" || AWK=awk 18079_ACEOF 18080 18081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18082# The default lists apply if the user does not specify any file. 18083ac_need_defaults=: 18084while test $# != 0 18085do 18086 case $1 in 18087 --*=?*) 18088 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18089 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18090 ac_shift=: 18091 ;; 18092 --*=) 18093 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18094 ac_optarg= 18095 ac_shift=: 18096 ;; 18097 *) 18098 ac_option=$1 18099 ac_optarg=$2 18100 ac_shift=shift 18101 ;; 18102 esac 18103 18104 case $ac_option in 18105 # Handling of the options. 18106 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18107 ac_cs_recheck=: ;; 18108 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18109 $as_echo "$ac_cs_version"; exit ;; 18110 --config | --confi | --conf | --con | --co | --c ) 18111 $as_echo "$ac_cs_config"; exit ;; 18112 --debug | --debu | --deb | --de | --d | -d ) 18113 debug=: ;; 18114 --file | --fil | --fi | --f ) 18115 $ac_shift 18116 case $ac_optarg in 18117 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18118 '') as_fn_error $? "missing file argument" ;; 18119 esac 18120 as_fn_append CONFIG_FILES " '$ac_optarg'" 18121 ac_need_defaults=false;; 18122 --header | --heade | --head | --hea ) 18123 $ac_shift 18124 case $ac_optarg in 18125 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18126 esac 18127 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18128 ac_need_defaults=false;; 18129 --he | --h) 18130 # Conflict between --help and --header 18131 as_fn_error $? "ambiguous option: \`$1' 18132Try \`$0 --help' for more information.";; 18133 --help | --hel | -h ) 18134 $as_echo "$ac_cs_usage"; exit ;; 18135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18136 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18137 ac_cs_silent=: ;; 18138 18139 # This is an error. 18140 -*) as_fn_error $? "unrecognized option: \`$1' 18141Try \`$0 --help' for more information." ;; 18142 18143 *) as_fn_append ac_config_targets " $1" 18144 ac_need_defaults=false ;; 18145 18146 esac 18147 shift 18148done 18149 18150ac_configure_extra_args= 18151 18152if $ac_cs_silent; then 18153 exec 6>/dev/null 18154 ac_configure_extra_args="$ac_configure_extra_args --silent" 18155fi 18156 18157_ACEOF 18158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18159if \$ac_cs_recheck; then 18160 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18161 shift 18162 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18163 CONFIG_SHELL='$SHELL' 18164 export CONFIG_SHELL 18165 exec "\$@" 18166fi 18167 18168_ACEOF 18169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18170exec 5>>config.log 18171{ 18172 echo 18173 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18174## Running $as_me. ## 18175_ASBOX 18176 $as_echo "$ac_log" 18177} >&5 18178 18179_ACEOF 18180cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18181# 18182# INIT-COMMANDS 18183# 18184AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 18185 18186 18187# The HP-UX ksh and POSIX shell print the target directory to stdout 18188# if CDPATH is set. 18189(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18190 18191sed_quote_subst='$sed_quote_subst' 18192double_quote_subst='$double_quote_subst' 18193delay_variable_subst='$delay_variable_subst' 18194macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18195macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18196enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18197AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 18198DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18199OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18200pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18201enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18202enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18203shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 18204SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18205ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18206PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18207host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18208host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18209host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18210build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18211build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18212build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18213SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18214Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18215GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18216EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18217FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18218LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18219NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18220LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18221max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18222ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18223exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18224lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18225lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18226lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18227lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18228lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18229reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18230reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18231deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18232file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18233file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18234want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18235sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18236AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18237lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' 18238AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18239archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18240STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18241RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18242old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18243old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18244old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18245lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18246CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18247CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18248compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18249GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18250lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18251lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18252lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 18253lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18254lt_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"`' 18255lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 18256nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18257lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18258lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 18259objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18260MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18261lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18262lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18263lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18264lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18265lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18266need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18267MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18268DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18269NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18270LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18271OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18272OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18273libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18274shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18275extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18276archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18277enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18278export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18279whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18280compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18281old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18282old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18283archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18284archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18285module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18286module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18287with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18288allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18289no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18290hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18291hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18292hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18293hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18294hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18295hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18296hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18297inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18298link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18299always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18300export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18301exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18302include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18303prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18304postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18305file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18306variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18307need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18308need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18309version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18310runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18311shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18312shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18313libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18314library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18315soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18316install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18317postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18318postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18319finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18320finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18321hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18322sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18323configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 18324configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 18325hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18326enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18327enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18328enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18329old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18330striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18331compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 18332predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 18333postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 18334predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 18335postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 18336compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 18337LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 18338reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 18339reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18340old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18341compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 18342GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 18343lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 18344lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 18345lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 18346lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 18347lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 18348archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 18349enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 18350export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18351whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18352compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 18353old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18354old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18355archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18356archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18357module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18358module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18359with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 18360allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18361no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18362hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18363hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 18364hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 18365hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 18366hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 18367hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 18368hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 18369inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 18370link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 18371always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 18372export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18373exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18374include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18375prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18376postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18377file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 18378hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 18379compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 18380predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18381postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18382predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 18383postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 18384compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 18385 18386LTCC='$LTCC' 18387LTCFLAGS='$LTCFLAGS' 18388compiler='$compiler_DEFAULT' 18389 18390# A function that is used when there is no print builtin or printf. 18391func_fallback_echo () 18392{ 18393 eval 'cat <<_LTECHO_EOF 18394\$1 18395_LTECHO_EOF' 18396} 18397 18398# Quote evaled strings. 18399for var in AS \ 18400DLLTOOL \ 18401OBJDUMP \ 18402SHELL \ 18403ECHO \ 18404PATH_SEPARATOR \ 18405SED \ 18406GREP \ 18407EGREP \ 18408FGREP \ 18409LD \ 18410NM \ 18411LN_S \ 18412lt_SP2NL \ 18413lt_NL2SP \ 18414reload_flag \ 18415deplibs_check_method \ 18416file_magic_cmd \ 18417file_magic_glob \ 18418want_nocaseglob \ 18419sharedlib_from_linklib_cmd \ 18420AR \ 18421archiver_list_spec \ 18422STRIP \ 18423RANLIB \ 18424CC \ 18425CFLAGS \ 18426compiler \ 18427lt_cv_sys_global_symbol_pipe \ 18428lt_cv_sys_global_symbol_to_cdecl \ 18429lt_cv_sys_global_symbol_to_import \ 18430lt_cv_sys_global_symbol_to_c_name_address \ 18431lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18432lt_cv_nm_interface \ 18433nm_file_list_spec \ 18434lt_cv_truncate_bin \ 18435lt_prog_compiler_no_builtin_flag \ 18436lt_prog_compiler_pic \ 18437lt_prog_compiler_wl \ 18438lt_prog_compiler_static \ 18439lt_cv_prog_compiler_c_o \ 18440need_locks \ 18441MANIFEST_TOOL \ 18442DSYMUTIL \ 18443NMEDIT \ 18444LIPO \ 18445OTOOL \ 18446OTOOL64 \ 18447shrext_cmds \ 18448export_dynamic_flag_spec \ 18449whole_archive_flag_spec \ 18450compiler_needs_object \ 18451with_gnu_ld \ 18452allow_undefined_flag \ 18453no_undefined_flag \ 18454hardcode_libdir_flag_spec \ 18455hardcode_libdir_separator \ 18456exclude_expsyms \ 18457include_expsyms \ 18458file_list_spec \ 18459variables_saved_for_relink \ 18460libname_spec \ 18461library_names_spec \ 18462soname_spec \ 18463install_override_mode \ 18464finish_eval \ 18465old_striplib \ 18466striplib \ 18467compiler_lib_search_dirs \ 18468predep_objects \ 18469postdep_objects \ 18470predeps \ 18471postdeps \ 18472compiler_lib_search_path \ 18473LD_CXX \ 18474reload_flag_CXX \ 18475compiler_CXX \ 18476lt_prog_compiler_no_builtin_flag_CXX \ 18477lt_prog_compiler_pic_CXX \ 18478lt_prog_compiler_wl_CXX \ 18479lt_prog_compiler_static_CXX \ 18480lt_cv_prog_compiler_c_o_CXX \ 18481export_dynamic_flag_spec_CXX \ 18482whole_archive_flag_spec_CXX \ 18483compiler_needs_object_CXX \ 18484with_gnu_ld_CXX \ 18485allow_undefined_flag_CXX \ 18486no_undefined_flag_CXX \ 18487hardcode_libdir_flag_spec_CXX \ 18488hardcode_libdir_separator_CXX \ 18489exclude_expsyms_CXX \ 18490include_expsyms_CXX \ 18491file_list_spec_CXX \ 18492compiler_lib_search_dirs_CXX \ 18493predep_objects_CXX \ 18494postdep_objects_CXX \ 18495predeps_CXX \ 18496postdeps_CXX \ 18497compiler_lib_search_path_CXX; do 18498 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18499 *[\\\\\\\`\\"\\\$]*) 18500 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18501 ;; 18502 *) 18503 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18504 ;; 18505 esac 18506done 18507 18508# Double-quote double-evaled strings. 18509for var in reload_cmds \ 18510old_postinstall_cmds \ 18511old_postuninstall_cmds \ 18512old_archive_cmds \ 18513extract_expsyms_cmds \ 18514old_archive_from_new_cmds \ 18515old_archive_from_expsyms_cmds \ 18516archive_cmds \ 18517archive_expsym_cmds \ 18518module_cmds \ 18519module_expsym_cmds \ 18520export_symbols_cmds \ 18521prelink_cmds \ 18522postlink_cmds \ 18523postinstall_cmds \ 18524postuninstall_cmds \ 18525finish_cmds \ 18526sys_lib_search_path_spec \ 18527configure_time_dlsearch_path \ 18528configure_time_lt_sys_library_path \ 18529reload_cmds_CXX \ 18530old_archive_cmds_CXX \ 18531old_archive_from_new_cmds_CXX \ 18532old_archive_from_expsyms_cmds_CXX \ 18533archive_cmds_CXX \ 18534archive_expsym_cmds_CXX \ 18535module_cmds_CXX \ 18536module_expsym_cmds_CXX \ 18537export_symbols_cmds_CXX \ 18538prelink_cmds_CXX \ 18539postlink_cmds_CXX; do 18540 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18541 *[\\\\\\\`\\"\\\$]*) 18542 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18543 ;; 18544 *) 18545 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18546 ;; 18547 esac 18548done 18549 18550ac_aux_dir='$ac_aux_dir' 18551 18552# See if we are running on zsh, and set the options that allow our 18553# commands through without removal of \ escapes INIT. 18554if test -n "\${ZSH_VERSION+set}"; then 18555 setopt NO_GLOB_SUBST 18556fi 18557 18558 18559 PACKAGE='$PACKAGE' 18560 VERSION='$VERSION' 18561 RM='$RM' 18562 ofile='$ofile' 18563 18564 18565 18566 18567 18568 18569_ACEOF 18570 18571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18572 18573# Handling of arguments. 18574for ac_config_target in $ac_config_targets 18575do 18576 case $ac_config_target in 18577 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18578 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18579 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18580 "tests/unit-test.h") CONFIG_HEADERS="$CONFIG_HEADERS tests/unit-test.h" ;; 18581 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18582 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18583 "src/modbus-version.h") CONFIG_FILES="$CONFIG_FILES src/modbus-version.h" ;; 18584 "src/win32/modbus.dll.manifest") CONFIG_FILES="$CONFIG_FILES src/win32/modbus.dll.manifest" ;; 18585 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 18586 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 18587 "libmodbus.pc") CONFIG_FILES="$CONFIG_FILES libmodbus.pc" ;; 18588 18589 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18590 esac 18591done 18592 18593 18594# If the user did not use the arguments to specify the items to instantiate, 18595# then the envvar interface is used. Set only those that are not. 18596# We use the long form for the default assignment because of an extremely 18597# bizarre bug on SunOS 4.1.3. 18598if $ac_need_defaults; then 18599 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18600 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18601 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18602fi 18603 18604# Have a temporary directory for convenience. Make it in the build tree 18605# simply because there is no reason against having it here, and in addition, 18606# creating and moving files from /tmp can sometimes cause problems. 18607# Hook for its removal unless debugging. 18608# Note that there is a small window in which the directory will not be cleaned: 18609# after its creation but before its name has been assigned to `$tmp'. 18610$debug || 18611{ 18612 tmp= ac_tmp= 18613 trap 'exit_status=$? 18614 : "${ac_tmp:=$tmp}" 18615 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18616' 0 18617 trap 'as_fn_exit 1' 1 2 13 15 18618} 18619# Create a (secure) tmp directory for tmp files. 18620 18621{ 18622 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18623 test -d "$tmp" 18624} || 18625{ 18626 tmp=./conf$$-$RANDOM 18627 (umask 077 && mkdir "$tmp") 18628} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18629ac_tmp=$tmp 18630 18631# Set up the scripts for CONFIG_FILES section. 18632# No need to generate them if there are no CONFIG_FILES. 18633# This happens for instance with `./config.status config.h'. 18634if test -n "$CONFIG_FILES"; then 18635 18636 18637ac_cr=`echo X | tr X '\015'` 18638# On cygwin, bash can eat \r inside `` if the user requested igncr. 18639# But we know of no other shell where ac_cr would be empty at this 18640# point, so we can use a bashism as a fallback. 18641if test "x$ac_cr" = x; then 18642 eval ac_cr=\$\'\\r\' 18643fi 18644ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18645if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18646 ac_cs_awk_cr='\\r' 18647else 18648 ac_cs_awk_cr=$ac_cr 18649fi 18650 18651echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18652_ACEOF 18653 18654 18655{ 18656 echo "cat >conf$$subs.awk <<_ACEOF" && 18657 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18658 echo "_ACEOF" 18659} >conf$$subs.sh || 18660 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18661ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18662ac_delim='%!_!# ' 18663for ac_last_try in false false false false false :; do 18664 . ./conf$$subs.sh || 18665 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18666 18667 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18668 if test $ac_delim_n = $ac_delim_num; then 18669 break 18670 elif $ac_last_try; then 18671 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18672 else 18673 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18674 fi 18675done 18676rm -f conf$$subs.sh 18677 18678cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18679cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18680_ACEOF 18681sed -n ' 18682h 18683s/^/S["/; s/!.*/"]=/ 18684p 18685g 18686s/^[^!]*!// 18687:repl 18688t repl 18689s/'"$ac_delim"'$// 18690t delim 18691:nl 18692h 18693s/\(.\{148\}\)..*/\1/ 18694t more1 18695s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18696p 18697n 18698b repl 18699:more1 18700s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18701p 18702g 18703s/.\{148\}// 18704t nl 18705:delim 18706h 18707s/\(.\{148\}\)..*/\1/ 18708t more2 18709s/["\\]/\\&/g; s/^/"/; s/$/"/ 18710p 18711b 18712:more2 18713s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18714p 18715g 18716s/.\{148\}// 18717t delim 18718' <conf$$subs.awk | sed ' 18719/^[^""]/{ 18720 N 18721 s/\n// 18722} 18723' >>$CONFIG_STATUS || ac_write_fail=1 18724rm -f conf$$subs.awk 18725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18726_ACAWK 18727cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18728 for (key in S) S_is_set[key] = 1 18729 FS = "" 18730 18731} 18732{ 18733 line = $ 0 18734 nfields = split(line, field, "@") 18735 substed = 0 18736 len = length(field[1]) 18737 for (i = 2; i < nfields; i++) { 18738 key = field[i] 18739 keylen = length(key) 18740 if (S_is_set[key]) { 18741 value = S[key] 18742 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18743 len += length(value) + length(field[++i]) 18744 substed = 1 18745 } else 18746 len += 1 + keylen 18747 } 18748 18749 print line 18750} 18751 18752_ACAWK 18753_ACEOF 18754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18755if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18756 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18757else 18758 cat 18759fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18760 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18761_ACEOF 18762 18763# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18764# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18765# trailing colons and then remove the whole line if VPATH becomes empty 18766# (actually we leave an empty line to preserve line numbers). 18767if test "x$srcdir" = x.; then 18768 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18769h 18770s/// 18771s/^/:/ 18772s/[ ]*$/:/ 18773s/:\$(srcdir):/:/g 18774s/:\${srcdir}:/:/g 18775s/:@srcdir@:/:/g 18776s/^:*// 18777s/:*$// 18778x 18779s/\(=[ ]*\).*/\1/ 18780G 18781s/\n// 18782s/^[^=]*=[ ]*$// 18783}' 18784fi 18785 18786cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18787fi # test -n "$CONFIG_FILES" 18788 18789# Set up the scripts for CONFIG_HEADERS section. 18790# No need to generate them if there are no CONFIG_HEADERS. 18791# This happens for instance with `./config.status Makefile'. 18792if test -n "$CONFIG_HEADERS"; then 18793cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18794BEGIN { 18795_ACEOF 18796 18797# Transform confdefs.h into an awk script `defines.awk', embedded as 18798# here-document in config.status, that substitutes the proper values into 18799# config.h.in to produce config.h. 18800 18801# Create a delimiter string that does not exist in confdefs.h, to ease 18802# handling of long lines. 18803ac_delim='%!_!# ' 18804for ac_last_try in false false :; do 18805 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18806 if test -z "$ac_tt"; then 18807 break 18808 elif $ac_last_try; then 18809 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18810 else 18811 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18812 fi 18813done 18814 18815# For the awk script, D is an array of macro values keyed by name, 18816# likewise P contains macro parameters if any. Preserve backslash 18817# newline sequences. 18818 18819ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18820sed -n ' 18821s/.\{148\}/&'"$ac_delim"'/g 18822t rset 18823:rset 18824s/^[ ]*#[ ]*define[ ][ ]*/ / 18825t def 18826d 18827:def 18828s/\\$// 18829t bsnl 18830s/["\\]/\\&/g 18831s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18832D["\1"]=" \3"/p 18833s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18834d 18835:bsnl 18836s/["\\]/\\&/g 18837s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18838D["\1"]=" \3\\\\\\n"\\/p 18839t cont 18840s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18841t cont 18842d 18843:cont 18844n 18845s/.\{148\}/&'"$ac_delim"'/g 18846t clear 18847:clear 18848s/\\$// 18849t bsnlc 18850s/["\\]/\\&/g; s/^/"/; s/$/"/p 18851d 18852:bsnlc 18853s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18854b cont 18855' <confdefs.h | sed ' 18856s/'"$ac_delim"'/"\\\ 18857"/g' >>$CONFIG_STATUS || ac_write_fail=1 18858 18859cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18860 for (key in D) D_is_set[key] = 1 18861 FS = "" 18862} 18863/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18864 line = \$ 0 18865 split(line, arg, " ") 18866 if (arg[1] == "#") { 18867 defundef = arg[2] 18868 mac1 = arg[3] 18869 } else { 18870 defundef = substr(arg[1], 2) 18871 mac1 = arg[2] 18872 } 18873 split(mac1, mac2, "(") #) 18874 macro = mac2[1] 18875 prefix = substr(line, 1, index(line, defundef) - 1) 18876 if (D_is_set[macro]) { 18877 # Preserve the white space surrounding the "#". 18878 print prefix "define", macro P[macro] D[macro] 18879 next 18880 } else { 18881 # Replace #undef with comments. This is necessary, for example, 18882 # in the case of _POSIX_SOURCE, which is predefined and required 18883 # on some systems where configure will not decide to define it. 18884 if (defundef == "undef") { 18885 print "/*", prefix defundef, macro, "*/" 18886 next 18887 } 18888 } 18889} 18890{ print } 18891_ACAWK 18892_ACEOF 18893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18894 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18895fi # test -n "$CONFIG_HEADERS" 18896 18897 18898eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18899shift 18900for ac_tag 18901do 18902 case $ac_tag in 18903 :[FHLC]) ac_mode=$ac_tag; continue;; 18904 esac 18905 case $ac_mode$ac_tag in 18906 :[FHL]*:*);; 18907 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18908 :[FH]-) ac_tag=-:-;; 18909 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18910 esac 18911 ac_save_IFS=$IFS 18912 IFS=: 18913 set x $ac_tag 18914 IFS=$ac_save_IFS 18915 shift 18916 ac_file=$1 18917 shift 18918 18919 case $ac_mode in 18920 :L) ac_source=$1;; 18921 :[FH]) 18922 ac_file_inputs= 18923 for ac_f 18924 do 18925 case $ac_f in 18926 -) ac_f="$ac_tmp/stdin";; 18927 *) # Look for the file first in the build tree, then in the source tree 18928 # (if the path is not absolute). The absolute path cannot be DOS-style, 18929 # because $ac_f cannot contain `:'. 18930 test -f "$ac_f" || 18931 case $ac_f in 18932 [\\/$]*) false;; 18933 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18934 esac || 18935 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18936 esac 18937 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18938 as_fn_append ac_file_inputs " '$ac_f'" 18939 done 18940 18941 # Let's still pretend it is `configure' which instantiates (i.e., don't 18942 # use $as_me), people would be surprised to read: 18943 # /* config.h. Generated by config.status. */ 18944 configure_input='Generated from '` 18945 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18946 `' by configure.' 18947 if test x"$ac_file" != x-; then 18948 configure_input="$ac_file. $configure_input" 18949 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18950$as_echo "$as_me: creating $ac_file" >&6;} 18951 fi 18952 # Neutralize special characters interpreted by sed in replacement strings. 18953 case $configure_input in #( 18954 *\&* | *\|* | *\\* ) 18955 ac_sed_conf_input=`$as_echo "$configure_input" | 18956 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18957 *) ac_sed_conf_input=$configure_input;; 18958 esac 18959 18960 case $ac_tag in 18961 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18962 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18963 esac 18964 ;; 18965 esac 18966 18967 ac_dir=`$as_dirname -- "$ac_file" || 18968$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18969 X"$ac_file" : 'X\(//\)[^/]' \| \ 18970 X"$ac_file" : 'X\(//\)$' \| \ 18971 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18972$as_echo X"$ac_file" | 18973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18974 s//\1/ 18975 q 18976 } 18977 /^X\(\/\/\)[^/].*/{ 18978 s//\1/ 18979 q 18980 } 18981 /^X\(\/\/\)$/{ 18982 s//\1/ 18983 q 18984 } 18985 /^X\(\/\).*/{ 18986 s//\1/ 18987 q 18988 } 18989 s/.*/./; q'` 18990 as_dir="$ac_dir"; as_fn_mkdir_p 18991 ac_builddir=. 18992 18993case "$ac_dir" in 18994.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18995*) 18996 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18997 # A ".." for each directory in $ac_dir_suffix. 18998 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18999 case $ac_top_builddir_sub in 19000 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19001 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19002 esac ;; 19003esac 19004ac_abs_top_builddir=$ac_pwd 19005ac_abs_builddir=$ac_pwd$ac_dir_suffix 19006# for backward compatibility: 19007ac_top_builddir=$ac_top_build_prefix 19008 19009case $srcdir in 19010 .) # We are building in place. 19011 ac_srcdir=. 19012 ac_top_srcdir=$ac_top_builddir_sub 19013 ac_abs_top_srcdir=$ac_pwd ;; 19014 [\\/]* | ?:[\\/]* ) # Absolute name. 19015 ac_srcdir=$srcdir$ac_dir_suffix; 19016 ac_top_srcdir=$srcdir 19017 ac_abs_top_srcdir=$srcdir ;; 19018 *) # Relative name. 19019 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19020 ac_top_srcdir=$ac_top_build_prefix$srcdir 19021 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19022esac 19023ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19024 19025 19026 case $ac_mode in 19027 :F) 19028 # 19029 # CONFIG_FILE 19030 # 19031 19032 case $INSTALL in 19033 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19034 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19035 esac 19036 ac_MKDIR_P=$MKDIR_P 19037 case $MKDIR_P in 19038 [\\/$]* | ?:[\\/]* ) ;; 19039 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19040 esac 19041_ACEOF 19042 19043cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19044# If the template does not know about datarootdir, expand it. 19045# FIXME: This hack should be removed a few years after 2.60. 19046ac_datarootdir_hack=; ac_datarootdir_seen= 19047ac_sed_dataroot=' 19048/datarootdir/ { 19049 p 19050 q 19051} 19052/@datadir@/p 19053/@docdir@/p 19054/@infodir@/p 19055/@localedir@/p 19056/@mandir@/p' 19057case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19058*datarootdir*) ac_datarootdir_seen=yes;; 19059*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19061$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19062_ACEOF 19063cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19064 ac_datarootdir_hack=' 19065 s&@datadir@&$datadir&g 19066 s&@docdir@&$docdir&g 19067 s&@infodir@&$infodir&g 19068 s&@localedir@&$localedir&g 19069 s&@mandir@&$mandir&g 19070 s&\\\${datarootdir}&$datarootdir&g' ;; 19071esac 19072_ACEOF 19073 19074# Neutralize VPATH when `$srcdir' = `.'. 19075# Shell code in configure.ac might set extrasub. 19076# FIXME: do we really want to maintain this feature? 19077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19078ac_sed_extra="$ac_vpsub 19079$extrasub 19080_ACEOF 19081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19082:t 19083/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19084s|@configure_input@|$ac_sed_conf_input|;t t 19085s&@top_builddir@&$ac_top_builddir_sub&;t t 19086s&@top_build_prefix@&$ac_top_build_prefix&;t t 19087s&@srcdir@&$ac_srcdir&;t t 19088s&@abs_srcdir@&$ac_abs_srcdir&;t t 19089s&@top_srcdir@&$ac_top_srcdir&;t t 19090s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19091s&@builddir@&$ac_builddir&;t t 19092s&@abs_builddir@&$ac_abs_builddir&;t t 19093s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19094s&@INSTALL@&$ac_INSTALL&;t t 19095s&@MKDIR_P@&$ac_MKDIR_P&;t t 19096$ac_datarootdir_hack 19097" 19098eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19099 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19100 19101test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19102 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19103 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19104 "$ac_tmp/out"`; test -z "$ac_out"; } && 19105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19106which seems to be undefined. Please make sure it is defined" >&5 19107$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19108which seems to be undefined. Please make sure it is defined" >&2;} 19109 19110 rm -f "$ac_tmp/stdin" 19111 case $ac_file in 19112 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19113 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19114 esac \ 19115 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19116 ;; 19117 :H) 19118 # 19119 # CONFIG_HEADER 19120 # 19121 if test x"$ac_file" != x-; then 19122 { 19123 $as_echo "/* $configure_input */" \ 19124 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19125 } >"$ac_tmp/config.h" \ 19126 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19127 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19128 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19129$as_echo "$as_me: $ac_file is unchanged" >&6;} 19130 else 19131 rm -f "$ac_file" 19132 mv "$ac_tmp/config.h" "$ac_file" \ 19133 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19134 fi 19135 else 19136 $as_echo "/* $configure_input */" \ 19137 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19138 || as_fn_error $? "could not create -" "$LINENO" 5 19139 fi 19140# Compute "$ac_file"'s index in $config_headers. 19141_am_arg="$ac_file" 19142_am_stamp_count=1 19143for _am_header in $config_headers :; do 19144 case $_am_header in 19145 $_am_arg | $_am_arg:* ) 19146 break ;; 19147 * ) 19148 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19149 esac 19150done 19151echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19152$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19153 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19154 X"$_am_arg" : 'X\(//\)$' \| \ 19155 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19156$as_echo X"$_am_arg" | 19157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19158 s//\1/ 19159 q 19160 } 19161 /^X\(\/\/\)[^/].*/{ 19162 s//\1/ 19163 q 19164 } 19165 /^X\(\/\/\)$/{ 19166 s//\1/ 19167 q 19168 } 19169 /^X\(\/\).*/{ 19170 s//\1/ 19171 q 19172 } 19173 s/.*/./; q'`/stamp-h$_am_stamp_count 19174 ;; 19175 19176 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19177$as_echo "$as_me: executing $ac_file commands" >&6;} 19178 ;; 19179 esac 19180 19181 19182 case $ac_file$ac_mode in 19183 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19184 # Older Autoconf quotes --file arguments for eval, but not when files 19185 # are listed without --file. Let's play safe and only enable the eval 19186 # if we detect the quoting. 19187 # TODO: see whether this extra hack can be removed once we start 19188 # requiring Autoconf 2.70 or later. 19189 case $CONFIG_FILES in #( 19190 *\'*) : 19191 eval set x "$CONFIG_FILES" ;; #( 19192 *) : 19193 set x $CONFIG_FILES ;; #( 19194 *) : 19195 ;; 19196esac 19197 shift 19198 # Used to flag and report bootstrapping failures. 19199 am_rc=0 19200 for am_mf 19201 do 19202 # Strip MF so we end up with the name of the file. 19203 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 19204 # Check whether this is an Automake generated Makefile which includes 19205 # dependency-tracking related rules and includes. 19206 # Grep'ing the whole file directly is not great: AIX grep has a line 19207 # limit of 2048, but all sed's we know have understand at least 4000. 19208 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 19209 || continue 19210 am_dirpart=`$as_dirname -- "$am_mf" || 19211$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19212 X"$am_mf" : 'X\(//\)[^/]' \| \ 19213 X"$am_mf" : 'X\(//\)$' \| \ 19214 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19215$as_echo X"$am_mf" | 19216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19217 s//\1/ 19218 q 19219 } 19220 /^X\(\/\/\)[^/].*/{ 19221 s//\1/ 19222 q 19223 } 19224 /^X\(\/\/\)$/{ 19225 s//\1/ 19226 q 19227 } 19228 /^X\(\/\).*/{ 19229 s//\1/ 19230 q 19231 } 19232 s/.*/./; q'` 19233 am_filepart=`$as_basename -- "$am_mf" || 19234$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 19235 X"$am_mf" : 'X\(//\)$' \| \ 19236 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19237$as_echo X/"$am_mf" | 19238 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19239 s//\1/ 19240 q 19241 } 19242 /^X\/\(\/\/\)$/{ 19243 s//\1/ 19244 q 19245 } 19246 /^X\/\(\/\).*/{ 19247 s//\1/ 19248 q 19249 } 19250 s/.*/./; q'` 19251 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 19252 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19253 | $MAKE -f - am--depfiles" >&5 19254 (cd "$am_dirpart" \ 19255 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19256 | $MAKE -f - am--depfiles) >&5 2>&5 19257 ac_status=$? 19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19259 (exit $ac_status); } || am_rc=$? 19260 done 19261 if test $am_rc -ne 0; then 19262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19264as_fn_error $? "Something went wrong bootstrapping makefile fragments 19265 for automatic dependency tracking. Try re-running configure with the 19266 '--disable-dependency-tracking' option to at least be able to build 19267 the package (albeit without support for automatic dependency tracking). 19268See \`config.log' for more details" "$LINENO" 5; } 19269 fi 19270 { am_dirpart=; unset am_dirpart;} 19271 { am_filepart=; unset am_filepart;} 19272 { am_mf=; unset am_mf;} 19273 { am_rc=; unset am_rc;} 19274 rm -f conftest-deps.mk 19275} 19276 ;; 19277 "libtool":C) 19278 19279 # See if we are running on zsh, and set the options that allow our 19280 # commands through without removal of \ escapes. 19281 if test -n "${ZSH_VERSION+set}"; then 19282 setopt NO_GLOB_SUBST 19283 fi 19284 19285 cfgfile=${ofile}T 19286 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19287 $RM "$cfgfile" 19288 19289 cat <<_LT_EOF >> "$cfgfile" 19290#! $SHELL 19291# Generated automatically by $as_me ($PACKAGE) $VERSION 19292# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19293# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19294 19295# Provide generalized library-building support services. 19296# Written by Gordon Matzigkeit, 1996 19297 19298# Copyright (C) 2014 Free Software Foundation, Inc. 19299# This is free software; see the source for copying conditions. There is NO 19300# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 19301 19302# GNU Libtool is free software; you can redistribute it and/or modify 19303# it under the terms of the GNU General Public License as published by 19304# the Free Software Foundation; either version 2 of of the License, or 19305# (at your option) any later version. 19306# 19307# As a special exception to the GNU General Public License, if you 19308# distribute this file as part of a program or library that is built 19309# using GNU Libtool, you may include this file under the same 19310# distribution terms that you use for the rest of that program. 19311# 19312# GNU Libtool is distributed in the hope that it will be useful, but 19313# WITHOUT ANY WARRANTY; without even the implied warranty of 19314# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19315# GNU General Public License for more details. 19316# 19317# You should have received a copy of the GNU General Public License 19318# along with this program. If not, see <http://www.gnu.org/licenses/>. 19319 19320 19321# The names of the tagged configurations supported by this script. 19322available_tags='CXX ' 19323 19324# Configured defaults for sys_lib_dlsearch_path munging. 19325: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 19326 19327# ### BEGIN LIBTOOL CONFIG 19328 19329# Which release of libtool.m4 was used? 19330macro_version=$macro_version 19331macro_revision=$macro_revision 19332 19333# Whether or not to build static libraries. 19334build_old_libs=$enable_static 19335 19336# Assembler program. 19337AS=$lt_AS 19338 19339# DLL creation program. 19340DLLTOOL=$lt_DLLTOOL 19341 19342# Object dumper program. 19343OBJDUMP=$lt_OBJDUMP 19344 19345# What type of objects to build. 19346pic_mode=$pic_mode 19347 19348# Whether or not to build shared libraries. 19349build_libtool_libs=$enable_shared 19350 19351# Whether or not to optimize for fast installation. 19352fast_install=$enable_fast_install 19353 19354# Shared archive member basename,for filename based shared library versioning on AIX. 19355shared_archive_member_spec=$shared_archive_member_spec 19356 19357# Shell to use when invoking shell scripts. 19358SHELL=$lt_SHELL 19359 19360# An echo program that protects backslashes. 19361ECHO=$lt_ECHO 19362 19363# The PATH separator for the build system. 19364PATH_SEPARATOR=$lt_PATH_SEPARATOR 19365 19366# The host system. 19367host_alias=$host_alias 19368host=$host 19369host_os=$host_os 19370 19371# The build system. 19372build_alias=$build_alias 19373build=$build 19374build_os=$build_os 19375 19376# A sed program that does not truncate output. 19377SED=$lt_SED 19378 19379# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19380Xsed="\$SED -e 1s/^X//" 19381 19382# A grep program that handles long lines. 19383GREP=$lt_GREP 19384 19385# An ERE matcher. 19386EGREP=$lt_EGREP 19387 19388# A literal string matcher. 19389FGREP=$lt_FGREP 19390 19391# A BSD- or MS-compatible name lister. 19392NM=$lt_NM 19393 19394# Whether we need soft or hard links. 19395LN_S=$lt_LN_S 19396 19397# What is the maximum length of a command? 19398max_cmd_len=$max_cmd_len 19399 19400# Object file suffix (normally "o"). 19401objext=$ac_objext 19402 19403# Executable file suffix (normally ""). 19404exeext=$exeext 19405 19406# whether the shell understands "unset". 19407lt_unset=$lt_unset 19408 19409# turn spaces into newlines. 19410SP2NL=$lt_lt_SP2NL 19411 19412# turn newlines into spaces. 19413NL2SP=$lt_lt_NL2SP 19414 19415# convert \$build file names to \$host format. 19416to_host_file_cmd=$lt_cv_to_host_file_cmd 19417 19418# convert \$build files to toolchain format. 19419to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19420 19421# Method to check whether dependent libraries are shared objects. 19422deplibs_check_method=$lt_deplibs_check_method 19423 19424# Command to use when deplibs_check_method = "file_magic". 19425file_magic_cmd=$lt_file_magic_cmd 19426 19427# How to find potential files when deplibs_check_method = "file_magic". 19428file_magic_glob=$lt_file_magic_glob 19429 19430# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19431want_nocaseglob=$lt_want_nocaseglob 19432 19433# Command to associate shared and link libraries. 19434sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19435 19436# The archiver. 19437AR=$lt_AR 19438 19439# Flags to create an archive (by configure). 19440lt_ar_flags=$lt_ar_flags 19441 19442# Flags to create an archive. 19443AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} 19444 19445# How to feed a file listing to the archiver. 19446archiver_list_spec=$lt_archiver_list_spec 19447 19448# A symbol stripping program. 19449STRIP=$lt_STRIP 19450 19451# Commands used to install an old-style archive. 19452RANLIB=$lt_RANLIB 19453old_postinstall_cmds=$lt_old_postinstall_cmds 19454old_postuninstall_cmds=$lt_old_postuninstall_cmds 19455 19456# Whether to use a lock for old archive extraction. 19457lock_old_archive_extraction=$lock_old_archive_extraction 19458 19459# A C compiler. 19460LTCC=$lt_CC 19461 19462# LTCC compiler flags. 19463LTCFLAGS=$lt_CFLAGS 19464 19465# Take the output of nm and produce a listing of raw symbols and C names. 19466global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19467 19468# Transform the output of nm in a proper C declaration. 19469global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19470 19471# Transform the output of nm into a list of symbols to manually relocate. 19472global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 19473 19474# Transform the output of nm in a C name address pair. 19475global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19476 19477# Transform the output of nm in a C name address pair when lib prefix is needed. 19478global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19479 19480# The name lister interface. 19481nm_interface=$lt_lt_cv_nm_interface 19482 19483# Specify filename containing input files for \$NM. 19484nm_file_list_spec=$lt_nm_file_list_spec 19485 19486# The root where to search for dependent libraries,and where our libraries should be installed. 19487lt_sysroot=$lt_sysroot 19488 19489# Command to truncate a binary pipe. 19490lt_truncate_bin=$lt_lt_cv_truncate_bin 19491 19492# The name of the directory that contains temporary libtool files. 19493objdir=$objdir 19494 19495# Used to examine libraries when file_magic_cmd begins with "file". 19496MAGIC_CMD=$MAGIC_CMD 19497 19498# Must we lock files when doing compilation? 19499need_locks=$lt_need_locks 19500 19501# Manifest tool. 19502MANIFEST_TOOL=$lt_MANIFEST_TOOL 19503 19504# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19505DSYMUTIL=$lt_DSYMUTIL 19506 19507# Tool to change global to local symbols on Mac OS X. 19508NMEDIT=$lt_NMEDIT 19509 19510# Tool to manipulate fat objects and archives on Mac OS X. 19511LIPO=$lt_LIPO 19512 19513# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19514OTOOL=$lt_OTOOL 19515 19516# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19517OTOOL64=$lt_OTOOL64 19518 19519# Old archive suffix (normally "a"). 19520libext=$libext 19521 19522# Shared library suffix (normally ".so"). 19523shrext_cmds=$lt_shrext_cmds 19524 19525# The commands to extract the exported symbol list from a shared archive. 19526extract_expsyms_cmds=$lt_extract_expsyms_cmds 19527 19528# Variables whose values should be saved in libtool wrapper scripts and 19529# restored at link time. 19530variables_saved_for_relink=$lt_variables_saved_for_relink 19531 19532# Do we need the "lib" prefix for modules? 19533need_lib_prefix=$need_lib_prefix 19534 19535# Do we need a version for libraries? 19536need_version=$need_version 19537 19538# Library versioning type. 19539version_type=$version_type 19540 19541# Shared library runtime path variable. 19542runpath_var=$runpath_var 19543 19544# Shared library path variable. 19545shlibpath_var=$shlibpath_var 19546 19547# Is shlibpath searched before the hard-coded library search path? 19548shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19549 19550# Format of library name prefix. 19551libname_spec=$lt_libname_spec 19552 19553# List of archive names. First name is the real one, the rest are links. 19554# The last name is the one that the linker finds with -lNAME 19555library_names_spec=$lt_library_names_spec 19556 19557# The coded name of the library, if different from the real name. 19558soname_spec=$lt_soname_spec 19559 19560# Permission mode override for installation of shared libraries. 19561install_override_mode=$lt_install_override_mode 19562 19563# Command to use after installation of a shared archive. 19564postinstall_cmds=$lt_postinstall_cmds 19565 19566# Command to use after uninstallation of a shared archive. 19567postuninstall_cmds=$lt_postuninstall_cmds 19568 19569# Commands used to finish a libtool library installation in a directory. 19570finish_cmds=$lt_finish_cmds 19571 19572# As "finish_cmds", except a single script fragment to be evaled but 19573# not shown. 19574finish_eval=$lt_finish_eval 19575 19576# Whether we should hardcode library paths into libraries. 19577hardcode_into_libs=$hardcode_into_libs 19578 19579# Compile-time system search path for libraries. 19580sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19581 19582# Detected run-time system search path for libraries. 19583sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 19584 19585# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 19586configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 19587 19588# Whether dlopen is supported. 19589dlopen_support=$enable_dlopen 19590 19591# Whether dlopen of programs is supported. 19592dlopen_self=$enable_dlopen_self 19593 19594# Whether dlopen of statically linked programs is supported. 19595dlopen_self_static=$enable_dlopen_self_static 19596 19597# Commands to strip libraries. 19598old_striplib=$lt_old_striplib 19599striplib=$lt_striplib 19600 19601 19602# The linker used to build libraries. 19603LD=$lt_LD 19604 19605# How to create reloadable object files. 19606reload_flag=$lt_reload_flag 19607reload_cmds=$lt_reload_cmds 19608 19609# Commands used to build an old-style archive. 19610old_archive_cmds=$lt_old_archive_cmds 19611 19612# A language specific compiler. 19613CC=$lt_compiler 19614 19615# Is the compiler the GNU compiler? 19616with_gcc=$GCC 19617 19618# Compiler flag to turn off builtin functions. 19619no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19620 19621# Additional compiler flags for building library objects. 19622pic_flag=$lt_lt_prog_compiler_pic 19623 19624# How to pass a linker flag through the compiler. 19625wl=$lt_lt_prog_compiler_wl 19626 19627# Compiler flag to prevent dynamic linking. 19628link_static_flag=$lt_lt_prog_compiler_static 19629 19630# Does compiler simultaneously support -c and -o options? 19631compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19632 19633# Whether or not to add -lc for building shared libraries. 19634build_libtool_need_lc=$archive_cmds_need_lc 19635 19636# Whether or not to disallow shared libs when runtime libs are static. 19637allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19638 19639# Compiler flag to allow reflexive dlopens. 19640export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19641 19642# Compiler flag to generate shared objects directly from archives. 19643whole_archive_flag_spec=$lt_whole_archive_flag_spec 19644 19645# Whether the compiler copes with passing no objects directly. 19646compiler_needs_object=$lt_compiler_needs_object 19647 19648# Create an old-style archive from a shared archive. 19649old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19650 19651# Create a temporary old-style archive to link instead of a shared archive. 19652old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19653 19654# Commands used to build a shared archive. 19655archive_cmds=$lt_archive_cmds 19656archive_expsym_cmds=$lt_archive_expsym_cmds 19657 19658# Commands used to build a loadable module if different from building 19659# a shared archive. 19660module_cmds=$lt_module_cmds 19661module_expsym_cmds=$lt_module_expsym_cmds 19662 19663# Whether we are building with GNU ld or not. 19664with_gnu_ld=$lt_with_gnu_ld 19665 19666# Flag that allows shared libraries with undefined symbols to be built. 19667allow_undefined_flag=$lt_allow_undefined_flag 19668 19669# Flag that enforces no undefined symbols. 19670no_undefined_flag=$lt_no_undefined_flag 19671 19672# Flag to hardcode \$libdir into a binary during linking. 19673# This must work even if \$libdir does not exist 19674hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19675 19676# Whether we need a single "-rpath" flag with a separated argument. 19677hardcode_libdir_separator=$lt_hardcode_libdir_separator 19678 19679# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19680# DIR into the resulting binary. 19681hardcode_direct=$hardcode_direct 19682 19683# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19684# DIR into the resulting binary and the resulting library dependency is 19685# "absolute",i.e impossible to change by setting \$shlibpath_var if the 19686# library is relocated. 19687hardcode_direct_absolute=$hardcode_direct_absolute 19688 19689# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19690# into the resulting binary. 19691hardcode_minus_L=$hardcode_minus_L 19692 19693# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19694# into the resulting binary. 19695hardcode_shlibpath_var=$hardcode_shlibpath_var 19696 19697# Set to "yes" if building a shared library automatically hardcodes DIR 19698# into the library and all subsequent libraries and executables linked 19699# against it. 19700hardcode_automatic=$hardcode_automatic 19701 19702# Set to yes if linker adds runtime paths of dependent libraries 19703# to runtime path list. 19704inherit_rpath=$inherit_rpath 19705 19706# Whether libtool must link a program against all its dependency libraries. 19707link_all_deplibs=$link_all_deplibs 19708 19709# Set to "yes" if exported symbols are required. 19710always_export_symbols=$always_export_symbols 19711 19712# The commands to list exported symbols. 19713export_symbols_cmds=$lt_export_symbols_cmds 19714 19715# Symbols that should not be listed in the preloaded symbols. 19716exclude_expsyms=$lt_exclude_expsyms 19717 19718# Symbols that must always be exported. 19719include_expsyms=$lt_include_expsyms 19720 19721# Commands necessary for linking programs (against libraries) with templates. 19722prelink_cmds=$lt_prelink_cmds 19723 19724# Commands necessary for finishing linking programs. 19725postlink_cmds=$lt_postlink_cmds 19726 19727# Specify filename containing input files. 19728file_list_spec=$lt_file_list_spec 19729 19730# How to hardcode a shared library path into an executable. 19731hardcode_action=$hardcode_action 19732 19733# The directories searched by this compiler when creating a shared library. 19734compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19735 19736# Dependencies to place before and after the objects being linked to 19737# create a shared library. 19738predep_objects=$lt_predep_objects 19739postdep_objects=$lt_postdep_objects 19740predeps=$lt_predeps 19741postdeps=$lt_postdeps 19742 19743# The library search path used internally by the compiler when linking 19744# a shared library. 19745compiler_lib_search_path=$lt_compiler_lib_search_path 19746 19747# ### END LIBTOOL CONFIG 19748 19749_LT_EOF 19750 19751 cat <<'_LT_EOF' >> "$cfgfile" 19752 19753# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 19754 19755# func_munge_path_list VARIABLE PATH 19756# ----------------------------------- 19757# VARIABLE is name of variable containing _space_ separated list of 19758# directories to be munged by the contents of PATH, which is string 19759# having a format: 19760# "DIR[:DIR]:" 19761# string "DIR[ DIR]" will be prepended to VARIABLE 19762# ":DIR[:DIR]" 19763# string "DIR[ DIR]" will be appended to VARIABLE 19764# "DIRP[:DIRP]::[DIRA:]DIRA" 19765# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 19766# "DIRA[ DIRA]" will be appended to VARIABLE 19767# "DIR[:DIR]" 19768# VARIABLE will be replaced by "DIR[ DIR]" 19769func_munge_path_list () 19770{ 19771 case x$2 in 19772 x) 19773 ;; 19774 *:) 19775 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 19776 ;; 19777 x:*) 19778 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 19779 ;; 19780 *::*) 19781 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 19782 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 19783 ;; 19784 *) 19785 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 19786 ;; 19787 esac 19788} 19789 19790 19791# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 19792func_cc_basename () 19793{ 19794 for cc_temp in $*""; do 19795 case $cc_temp in 19796 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19797 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19798 \-*) ;; 19799 *) break;; 19800 esac 19801 done 19802 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 19803} 19804 19805 19806# ### END FUNCTIONS SHARED WITH CONFIGURE 19807 19808_LT_EOF 19809 19810 case $host_os in 19811 aix3*) 19812 cat <<\_LT_EOF >> "$cfgfile" 19813# AIX sometimes has problems with the GCC collect2 program. For some 19814# reason, if we set the COLLECT_NAMES environment variable, the problems 19815# vanish in a puff of smoke. 19816if test set != "${COLLECT_NAMES+set}"; then 19817 COLLECT_NAMES= 19818 export COLLECT_NAMES 19819fi 19820_LT_EOF 19821 ;; 19822 esac 19823 19824 19825ltmain=$ac_aux_dir/ltmain.sh 19826 19827 19828 # We use sed instead of cat because bash on DJGPP gets confused if 19829 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19830 # text mode, it properly converts lines to CR/LF. This bash problem 19831 # is reportedly fixed, but why not run on old versions too? 19832 sed '$q' "$ltmain" >> "$cfgfile" \ 19833 || (rm -f "$cfgfile"; exit 1) 19834 19835 mv -f "$cfgfile" "$ofile" || 19836 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19837 chmod +x "$ofile" 19838 19839 19840 cat <<_LT_EOF >> "$ofile" 19841 19842# ### BEGIN LIBTOOL TAG CONFIG: CXX 19843 19844# The linker used to build libraries. 19845LD=$lt_LD_CXX 19846 19847# How to create reloadable object files. 19848reload_flag=$lt_reload_flag_CXX 19849reload_cmds=$lt_reload_cmds_CXX 19850 19851# Commands used to build an old-style archive. 19852old_archive_cmds=$lt_old_archive_cmds_CXX 19853 19854# A language specific compiler. 19855CC=$lt_compiler_CXX 19856 19857# Is the compiler the GNU compiler? 19858with_gcc=$GCC_CXX 19859 19860# Compiler flag to turn off builtin functions. 19861no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 19862 19863# Additional compiler flags for building library objects. 19864pic_flag=$lt_lt_prog_compiler_pic_CXX 19865 19866# How to pass a linker flag through the compiler. 19867wl=$lt_lt_prog_compiler_wl_CXX 19868 19869# Compiler flag to prevent dynamic linking. 19870link_static_flag=$lt_lt_prog_compiler_static_CXX 19871 19872# Does compiler simultaneously support -c and -o options? 19873compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 19874 19875# Whether or not to add -lc for building shared libraries. 19876build_libtool_need_lc=$archive_cmds_need_lc_CXX 19877 19878# Whether or not to disallow shared libs when runtime libs are static. 19879allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 19880 19881# Compiler flag to allow reflexive dlopens. 19882export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 19883 19884# Compiler flag to generate shared objects directly from archives. 19885whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 19886 19887# Whether the compiler copes with passing no objects directly. 19888compiler_needs_object=$lt_compiler_needs_object_CXX 19889 19890# Create an old-style archive from a shared archive. 19891old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 19892 19893# Create a temporary old-style archive to link instead of a shared archive. 19894old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 19895 19896# Commands used to build a shared archive. 19897archive_cmds=$lt_archive_cmds_CXX 19898archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 19899 19900# Commands used to build a loadable module if different from building 19901# a shared archive. 19902module_cmds=$lt_module_cmds_CXX 19903module_expsym_cmds=$lt_module_expsym_cmds_CXX 19904 19905# Whether we are building with GNU ld or not. 19906with_gnu_ld=$lt_with_gnu_ld_CXX 19907 19908# Flag that allows shared libraries with undefined symbols to be built. 19909allow_undefined_flag=$lt_allow_undefined_flag_CXX 19910 19911# Flag that enforces no undefined symbols. 19912no_undefined_flag=$lt_no_undefined_flag_CXX 19913 19914# Flag to hardcode \$libdir into a binary during linking. 19915# This must work even if \$libdir does not exist 19916hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 19917 19918# Whether we need a single "-rpath" flag with a separated argument. 19919hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 19920 19921# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19922# DIR into the resulting binary. 19923hardcode_direct=$hardcode_direct_CXX 19924 19925# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19926# DIR into the resulting binary and the resulting library dependency is 19927# "absolute",i.e impossible to change by setting \$shlibpath_var if the 19928# library is relocated. 19929hardcode_direct_absolute=$hardcode_direct_absolute_CXX 19930 19931# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19932# into the resulting binary. 19933hardcode_minus_L=$hardcode_minus_L_CXX 19934 19935# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19936# into the resulting binary. 19937hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 19938 19939# Set to "yes" if building a shared library automatically hardcodes DIR 19940# into the library and all subsequent libraries and executables linked 19941# against it. 19942hardcode_automatic=$hardcode_automatic_CXX 19943 19944# Set to yes if linker adds runtime paths of dependent libraries 19945# to runtime path list. 19946inherit_rpath=$inherit_rpath_CXX 19947 19948# Whether libtool must link a program against all its dependency libraries. 19949link_all_deplibs=$link_all_deplibs_CXX 19950 19951# Set to "yes" if exported symbols are required. 19952always_export_symbols=$always_export_symbols_CXX 19953 19954# The commands to list exported symbols. 19955export_symbols_cmds=$lt_export_symbols_cmds_CXX 19956 19957# Symbols that should not be listed in the preloaded symbols. 19958exclude_expsyms=$lt_exclude_expsyms_CXX 19959 19960# Symbols that must always be exported. 19961include_expsyms=$lt_include_expsyms_CXX 19962 19963# Commands necessary for linking programs (against libraries) with templates. 19964prelink_cmds=$lt_prelink_cmds_CXX 19965 19966# Commands necessary for finishing linking programs. 19967postlink_cmds=$lt_postlink_cmds_CXX 19968 19969# Specify filename containing input files. 19970file_list_spec=$lt_file_list_spec_CXX 19971 19972# How to hardcode a shared library path into an executable. 19973hardcode_action=$hardcode_action_CXX 19974 19975# The directories searched by this compiler when creating a shared library. 19976compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 19977 19978# Dependencies to place before and after the objects being linked to 19979# create a shared library. 19980predep_objects=$lt_predep_objects_CXX 19981postdep_objects=$lt_postdep_objects_CXX 19982predeps=$lt_predeps_CXX 19983postdeps=$lt_postdeps_CXX 19984 19985# The library search path used internally by the compiler when linking 19986# a shared library. 19987compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 19988 19989# ### END LIBTOOL TAG CONFIG: CXX 19990_LT_EOF 19991 19992 ;; 19993 19994 esac 19995done # for ac_tag 19996 19997 19998as_fn_exit 0 19999_ACEOF 20000ac_clean_files=$ac_clean_files_save 20001 20002test $ac_write_fail = 0 || 20003 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20004 20005 20006# configure is writing to config.log, and then calls config.status. 20007# config.status does its own redirection, appending to config.log. 20008# Unfortunately, on DOS this fails, as config.log is still kept open 20009# by configure, so config.status won't be able to write to it; its 20010# output is simply discarded. So we exec the FD to /dev/null, 20011# effectively closing config.log, so it can be properly (re)opened and 20012# appended to by config.status. When coming back to configure, we 20013# need to make the FD available again. 20014if test "$no_create" != yes; then 20015 ac_cs_success=: 20016 ac_config_status_args= 20017 test "$silent" = yes && 20018 ac_config_status_args="$ac_config_status_args --quiet" 20019 exec 5>/dev/null 20020 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20021 exec 5>>config.log 20022 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20023 # would make configure fail if this is the last instruction. 20024 $ac_cs_success || as_fn_exit 1 20025fi 20026if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20028$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20029fi 20030 20031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: 20032 $PACKAGE $VERSION 20033 =============== 20034 20035 prefix: ${prefix} 20036 sysconfdir: ${sysconfdir} 20037 libdir: ${libdir} 20038 includedir: ${includedir} 20039 20040 compiler: ${CC} 20041 cflags: ${CFLAGS} 20042 ldflags: ${LDFLAGS} 20043 20044 documentation: ${ac_libmodbus_build_doc} 20045 tests: ${enable_tests} 20046" >&5 20047$as_echo " 20048 $PACKAGE $VERSION 20049 =============== 20050 20051 prefix: ${prefix} 20052 sysconfdir: ${sysconfdir} 20053 libdir: ${libdir} 20054 includedir: ${includedir} 20055 20056 compiler: ${CC} 20057 cflags: ${CFLAGS} 20058 ldflags: ${LDFLAGS} 20059 20060 documentation: ${ac_libmodbus_build_doc} 20061 tests: ${enable_tests} 20062" >&6; } 20063