1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libnpupnp 4.1.5. 4# 5# Report bugs to <jfd@recoll.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and jfd@recoll.org 278$0: about your system, including any error possibly output 279$0: before this message. Then install a modern shell, or 280$0: manually run the script under such a shell if you do 281$0: have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='libnpupnp' 592PACKAGE_TARNAME='libnpupnp' 593PACKAGE_VERSION='4.1.5' 594PACKAGE_STRING='libnpupnp 4.1.5' 595PACKAGE_BUGREPORT='jfd@recoll.org' 596PACKAGE_URL='' 597 598ac_unique_file="inc/upnp.h" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639LIBNPUPNP_LIBS 640EXPAT_LIBS 641EXPAT_CFLAGS 642COND_EXPAT_FALSE 643COND_EXPAT_TRUE 644MICROHTTPD_LIBS 645MICROHTTPD_CFLAGS 646CURL_LIBS 647CURL_CFLAGS 648PKG_CONFIG_LIBDIR 649PKG_CONFIG_PATH 650PKG_CONFIG 651COND_TESTPROGS_FALSE 652COND_TESTPROGS_TRUE 653ENABLE_TOOLS_FALSE 654ENABLE_TOOLS_TRUE 655ENABLE_UUID_FALSE 656ENABLE_UUID_TRUE 657ENABLE_GENA_FALSE 658ENABLE_GENA_TRUE 659ENABLE_SOAP_FALSE 660ENABLE_SOAP_TRUE 661ENABLE_SSDP_FALSE 662ENABLE_SSDP_TRUE 663ENABLE_WEBSERVER_FALSE 664ENABLE_WEBSERVER_TRUE 665ENABLE_DEBUG_FALSE 666ENABLE_DEBUG_TRUE 667pkg_config 668CXXCPP 669am__fastdepCXX_FALSE 670am__fastdepCXX_TRUE 671CXXDEPMODE 672ac_ct_CXX 673CXXFLAGS 674CXX 675CPP 676LT_SYS_LIBRARY_PATH 677OTOOL64 678OTOOL 679LIPO 680NMEDIT 681DSYMUTIL 682MANIFEST_TOOL 683RANLIB 684DLLTOOL 685OBJDUMP 686LN_S 687NM 688ac_ct_DUMPBIN 689DUMPBIN 690LD 691FGREP 692EGREP 693GREP 694SED 695LIBTOOL 696am__fastdepCC_FALSE 697am__fastdepCC_TRUE 698CCDEPMODE 699am__nodep 700AMDEPBACKSLASH 701AMDEP_FALSE 702AMDEP_TRUE 703am__include 704DEPDIR 705OBJEXT 706EXEEXT 707ac_ct_CC 708CPPFLAGS 709LDFLAGS 710CFLAGS 711CC 712ac_ct_AR 713AR 714AM_BACKSLASH 715AM_DEFAULT_VERBOSITY 716AM_DEFAULT_V 717AM_V 718am__untar 719am__tar 720AMTAR 721am__leading_dot 722SET_MAKE 723AWK 724mkdir_p 725MKDIR_P 726INSTALL_STRIP_PROGRAM 727STRIP 728install_sh 729MAKEINFO 730AUTOHEADER 731AUTOMAKE 732AUTOCONF 733ACLOCAL 734VERSION 735PACKAGE 736CYGPATH_W 737am__isrc 738INSTALL_DATA 739INSTALL_SCRIPT 740INSTALL_PROGRAM 741MINGW_FALSE 742MINGW_TRUE 743FREEBSD_FALSE 744FREEBSD_TRUE 745OSX_FALSE 746OSX_TRUE 747LINUX_FALSE 748LINUX_TRUE 749host_os 750host_vendor 751host_cpu 752host 753build_os 754build_vendor 755build_cpu 756build 757LT_VERSION_NPUPNP 758target_alias 759host_alias 760build_alias 761LIBS 762ECHO_T 763ECHO_N 764ECHO_C 765DEFS 766mandir 767localedir 768libdir 769psdir 770pdfdir 771dvidir 772htmldir 773infodir 774docdir 775oldincludedir 776includedir 777runstatedir 778localstatedir 779sharedstatedir 780sysconfdir 781datadir 782datarootdir 783libexecdir 784sbindir 785bindir 786program_transform_name 787prefix 788exec_prefix 789PACKAGE_URL 790PACKAGE_BUGREPORT 791PACKAGE_STRING 792PACKAGE_VERSION 793PACKAGE_TARNAME 794PACKAGE_NAME 795PATH_SEPARATOR 796SHELL 797am__quote' 798ac_subst_files='' 799ac_user_opts=' 800enable_option_checking 801enable_silent_rules 802enable_dependency_tracking 803enable_static 804enable_shared 805with_pic 806enable_fast_install 807with_aix_soname 808with_gnu_ld 809with_sysroot 810enable_libtool_lock 811enable_debug 812enable_client 813enable_device 814enable_webserver 815enable_ssdp 816enable_optssdp 817enable_soap 818enable_gena 819enable_tools 820enable_unspecified_server 821enable_ipv6 822enable_reuseaddr 823enable_testprogs 824enable_expat 825' 826 ac_precious_vars='build_alias 827host_alias 828target_alias 829CC 830CFLAGS 831LDFLAGS 832LIBS 833CPPFLAGS 834LT_SYS_LIBRARY_PATH 835CPP 836CXX 837CXXFLAGS 838CCC 839CXXCPP 840PKG_CONFIG 841PKG_CONFIG_PATH 842PKG_CONFIG_LIBDIR 843CURL_CFLAGS 844CURL_LIBS 845MICROHTTPD_CFLAGS 846MICROHTTPD_LIBS 847EXPAT_CFLAGS 848EXPAT_LIBS' 849 850 851# Initialize some variables set by options. 852ac_init_help= 853ac_init_version=false 854ac_unrecognized_opts= 855ac_unrecognized_sep= 856# The variables have the same names as the options, with 857# dashes changed to underlines. 858cache_file=/dev/null 859exec_prefix=NONE 860no_create= 861no_recursion= 862prefix=NONE 863program_prefix=NONE 864program_suffix=NONE 865program_transform_name=s,x,x, 866silent= 867site= 868srcdir= 869verbose= 870x_includes=NONE 871x_libraries=NONE 872 873# Installation directory options. 874# These are left unexpanded so users can "make install exec_prefix=/foo" 875# and all the variables that are supposed to be based on exec_prefix 876# by default will actually change. 877# Use braces instead of parens because sh, perl, etc. also accept them. 878# (The list follows the same order as the GNU Coding Standards.) 879bindir='${exec_prefix}/bin' 880sbindir='${exec_prefix}/sbin' 881libexecdir='${exec_prefix}/libexec' 882datarootdir='${prefix}/share' 883datadir='${datarootdir}' 884sysconfdir='${prefix}/etc' 885sharedstatedir='${prefix}/com' 886localstatedir='${prefix}/var' 887runstatedir='${localstatedir}/run' 888includedir='${prefix}/include' 889oldincludedir='/usr/include' 890docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 891infodir='${datarootdir}/info' 892htmldir='${docdir}' 893dvidir='${docdir}' 894pdfdir='${docdir}' 895psdir='${docdir}' 896libdir='${exec_prefix}/lib' 897localedir='${datarootdir}/locale' 898mandir='${datarootdir}/man' 899 900ac_prev= 901ac_dashdash= 902for ac_option 903do 904 # If the previous option needs an argument, assign it. 905 if test -n "$ac_prev"; then 906 eval $ac_prev=\$ac_option 907 ac_prev= 908 continue 909 fi 910 911 case $ac_option in 912 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 913 *=) ac_optarg= ;; 914 *) ac_optarg=yes ;; 915 esac 916 917 # Accept the important Cygnus configure options, so we can diagnose typos. 918 919 case $ac_dashdash$ac_option in 920 --) 921 ac_dashdash=yes ;; 922 923 -bindir | --bindir | --bindi | --bind | --bin | --bi) 924 ac_prev=bindir ;; 925 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 926 bindir=$ac_optarg ;; 927 928 -build | --build | --buil | --bui | --bu) 929 ac_prev=build_alias ;; 930 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 931 build_alias=$ac_optarg ;; 932 933 -cache-file | --cache-file | --cache-fil | --cache-fi \ 934 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 935 ac_prev=cache_file ;; 936 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 937 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 938 cache_file=$ac_optarg ;; 939 940 --config-cache | -C) 941 cache_file=config.cache ;; 942 943 -datadir | --datadir | --datadi | --datad) 944 ac_prev=datadir ;; 945 -datadir=* | --datadir=* | --datadi=* | --datad=*) 946 datadir=$ac_optarg ;; 947 948 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 949 | --dataroo | --dataro | --datar) 950 ac_prev=datarootdir ;; 951 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 952 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 953 datarootdir=$ac_optarg ;; 954 955 -disable-* | --disable-*) 956 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 957 # Reject names that are not valid shell variable names. 958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 959 as_fn_error $? "invalid feature name: $ac_useropt" 960 ac_useropt_orig=$ac_useropt 961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 962 case $ac_user_opts in 963 *" 964"enable_$ac_useropt" 965"*) ;; 966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 967 ac_unrecognized_sep=', ';; 968 esac 969 eval enable_$ac_useropt=no ;; 970 971 -docdir | --docdir | --docdi | --doc | --do) 972 ac_prev=docdir ;; 973 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 974 docdir=$ac_optarg ;; 975 976 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 977 ac_prev=dvidir ;; 978 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 979 dvidir=$ac_optarg ;; 980 981 -enable-* | --enable-*) 982 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 983 # Reject names that are not valid shell variable names. 984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 985 as_fn_error $? "invalid feature name: $ac_useropt" 986 ac_useropt_orig=$ac_useropt 987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 988 case $ac_user_opts in 989 *" 990"enable_$ac_useropt" 991"*) ;; 992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 993 ac_unrecognized_sep=', ';; 994 esac 995 eval enable_$ac_useropt=\$ac_optarg ;; 996 997 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 998 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 999 | --exec | --exe | --ex) 1000 ac_prev=exec_prefix ;; 1001 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1002 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1003 | --exec=* | --exe=* | --ex=*) 1004 exec_prefix=$ac_optarg ;; 1005 1006 -gas | --gas | --ga | --g) 1007 # Obsolete; use --with-gas. 1008 with_gas=yes ;; 1009 1010 -help | --help | --hel | --he | -h) 1011 ac_init_help=long ;; 1012 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1013 ac_init_help=recursive ;; 1014 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1015 ac_init_help=short ;; 1016 1017 -host | --host | --hos | --ho) 1018 ac_prev=host_alias ;; 1019 -host=* | --host=* | --hos=* | --ho=*) 1020 host_alias=$ac_optarg ;; 1021 1022 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1023 ac_prev=htmldir ;; 1024 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1025 | --ht=*) 1026 htmldir=$ac_optarg ;; 1027 1028 -includedir | --includedir | --includedi | --included | --include \ 1029 | --includ | --inclu | --incl | --inc) 1030 ac_prev=includedir ;; 1031 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1032 | --includ=* | --inclu=* | --incl=* | --inc=*) 1033 includedir=$ac_optarg ;; 1034 1035 -infodir | --infodir | --infodi | --infod | --info | --inf) 1036 ac_prev=infodir ;; 1037 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1038 infodir=$ac_optarg ;; 1039 1040 -libdir | --libdir | --libdi | --libd) 1041 ac_prev=libdir ;; 1042 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1043 libdir=$ac_optarg ;; 1044 1045 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1046 | --libexe | --libex | --libe) 1047 ac_prev=libexecdir ;; 1048 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1049 | --libexe=* | --libex=* | --libe=*) 1050 libexecdir=$ac_optarg ;; 1051 1052 -localedir | --localedir | --localedi | --localed | --locale) 1053 ac_prev=localedir ;; 1054 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1055 localedir=$ac_optarg ;; 1056 1057 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1058 | --localstate | --localstat | --localsta | --localst | --locals) 1059 ac_prev=localstatedir ;; 1060 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1061 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1062 localstatedir=$ac_optarg ;; 1063 1064 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1065 ac_prev=mandir ;; 1066 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1067 mandir=$ac_optarg ;; 1068 1069 -nfp | --nfp | --nf) 1070 # Obsolete; use --without-fp. 1071 with_fp=no ;; 1072 1073 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1074 | --no-cr | --no-c | -n) 1075 no_create=yes ;; 1076 1077 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1078 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1079 no_recursion=yes ;; 1080 1081 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1082 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1083 | --oldin | --oldi | --old | --ol | --o) 1084 ac_prev=oldincludedir ;; 1085 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1086 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1087 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1088 oldincludedir=$ac_optarg ;; 1089 1090 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1091 ac_prev=prefix ;; 1092 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1093 prefix=$ac_optarg ;; 1094 1095 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1096 | --program-pre | --program-pr | --program-p) 1097 ac_prev=program_prefix ;; 1098 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1099 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1100 program_prefix=$ac_optarg ;; 1101 1102 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1103 | --program-suf | --program-su | --program-s) 1104 ac_prev=program_suffix ;; 1105 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1106 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1107 program_suffix=$ac_optarg ;; 1108 1109 -program-transform-name | --program-transform-name \ 1110 | --program-transform-nam | --program-transform-na \ 1111 | --program-transform-n | --program-transform- \ 1112 | --program-transform | --program-transfor \ 1113 | --program-transfo | --program-transf \ 1114 | --program-trans | --program-tran \ 1115 | --progr-tra | --program-tr | --program-t) 1116 ac_prev=program_transform_name ;; 1117 -program-transform-name=* | --program-transform-name=* \ 1118 | --program-transform-nam=* | --program-transform-na=* \ 1119 | --program-transform-n=* | --program-transform-=* \ 1120 | --program-transform=* | --program-transfor=* \ 1121 | --program-transfo=* | --program-transf=* \ 1122 | --program-trans=* | --program-tran=* \ 1123 | --progr-tra=* | --program-tr=* | --program-t=*) 1124 program_transform_name=$ac_optarg ;; 1125 1126 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1127 ac_prev=pdfdir ;; 1128 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1129 pdfdir=$ac_optarg ;; 1130 1131 -psdir | --psdir | --psdi | --psd | --ps) 1132 ac_prev=psdir ;; 1133 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1134 psdir=$ac_optarg ;; 1135 1136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1137 | -silent | --silent | --silen | --sile | --sil) 1138 silent=yes ;; 1139 1140 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1141 | --runstate | --runstat | --runsta | --runst | --runs \ 1142 | --run | --ru | --r) 1143 ac_prev=runstatedir ;; 1144 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1145 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1146 | --run=* | --ru=* | --r=*) 1147 runstatedir=$ac_optarg ;; 1148 1149 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1150 ac_prev=sbindir ;; 1151 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1152 | --sbi=* | --sb=*) 1153 sbindir=$ac_optarg ;; 1154 1155 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1156 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1157 | --sharedst | --shareds | --shared | --share | --shar \ 1158 | --sha | --sh) 1159 ac_prev=sharedstatedir ;; 1160 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1161 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1162 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1163 | --sha=* | --sh=*) 1164 sharedstatedir=$ac_optarg ;; 1165 1166 -site | --site | --sit) 1167 ac_prev=site ;; 1168 -site=* | --site=* | --sit=*) 1169 site=$ac_optarg ;; 1170 1171 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1172 ac_prev=srcdir ;; 1173 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1174 srcdir=$ac_optarg ;; 1175 1176 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1177 | --syscon | --sysco | --sysc | --sys | --sy) 1178 ac_prev=sysconfdir ;; 1179 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1180 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1181 sysconfdir=$ac_optarg ;; 1182 1183 -target | --target | --targe | --targ | --tar | --ta | --t) 1184 ac_prev=target_alias ;; 1185 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1186 target_alias=$ac_optarg ;; 1187 1188 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1189 verbose=yes ;; 1190 1191 -version | --version | --versio | --versi | --vers | -V) 1192 ac_init_version=: ;; 1193 1194 -with-* | --with-*) 1195 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1196 # Reject names that are not valid shell variable names. 1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1198 as_fn_error $? "invalid package name: $ac_useropt" 1199 ac_useropt_orig=$ac_useropt 1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1201 case $ac_user_opts in 1202 *" 1203"with_$ac_useropt" 1204"*) ;; 1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1206 ac_unrecognized_sep=', ';; 1207 esac 1208 eval with_$ac_useropt=\$ac_optarg ;; 1209 1210 -without-* | --without-*) 1211 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1212 # Reject names that are not valid shell variable names. 1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1214 as_fn_error $? "invalid package name: $ac_useropt" 1215 ac_useropt_orig=$ac_useropt 1216 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1217 case $ac_user_opts in 1218 *" 1219"with_$ac_useropt" 1220"*) ;; 1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1222 ac_unrecognized_sep=', ';; 1223 esac 1224 eval with_$ac_useropt=no ;; 1225 1226 --x) 1227 # Obsolete; use --with-x. 1228 with_x=yes ;; 1229 1230 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1231 | --x-incl | --x-inc | --x-in | --x-i) 1232 ac_prev=x_includes ;; 1233 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1234 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1235 x_includes=$ac_optarg ;; 1236 1237 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1238 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1239 ac_prev=x_libraries ;; 1240 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1241 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1242 x_libraries=$ac_optarg ;; 1243 1244 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1245Try \`$0 --help' for more information" 1246 ;; 1247 1248 *=*) 1249 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1250 # Reject names that are not valid shell variable names. 1251 case $ac_envvar in #( 1252 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1253 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1254 esac 1255 eval $ac_envvar=\$ac_optarg 1256 export $ac_envvar ;; 1257 1258 *) 1259 # FIXME: should be removed in autoconf 3.0. 1260 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1261 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1262 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1263 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1264 ;; 1265 1266 esac 1267done 1268 1269if test -n "$ac_prev"; then 1270 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1271 as_fn_error $? "missing argument to $ac_option" 1272fi 1273 1274if test -n "$ac_unrecognized_opts"; then 1275 case $enable_option_checking in 1276 no) ;; 1277 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1278 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1279 esac 1280fi 1281 1282# Check all directory arguments for consistency. 1283for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1284 datadir sysconfdir sharedstatedir localstatedir includedir \ 1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1286 libdir localedir mandir runstatedir 1287do 1288 eval ac_val=\$$ac_var 1289 # Remove trailing slashes. 1290 case $ac_val in 1291 */ ) 1292 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1293 eval $ac_var=\$ac_val;; 1294 esac 1295 # Be sure to have absolute directory names. 1296 case $ac_val in 1297 [\\/$]* | ?:[\\/]* ) continue;; 1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1299 esac 1300 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1301done 1302 1303# There might be people who depend on the old broken behavior: `$host' 1304# used to hold the argument of --host etc. 1305# FIXME: To remove some day. 1306build=$build_alias 1307host=$host_alias 1308target=$target_alias 1309 1310# FIXME: To remove some day. 1311if test "x$host_alias" != x; then 1312 if test "x$build_alias" = x; then 1313 cross_compiling=maybe 1314 elif test "x$build_alias" != "x$host_alias"; then 1315 cross_compiling=yes 1316 fi 1317fi 1318 1319ac_tool_prefix= 1320test -n "$host_alias" && ac_tool_prefix=$host_alias- 1321 1322test "$silent" = yes && exec 6>/dev/null 1323 1324 1325ac_pwd=`pwd` && test -n "$ac_pwd" && 1326ac_ls_di=`ls -di .` && 1327ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1328 as_fn_error $? "working directory cannot be determined" 1329test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1330 as_fn_error $? "pwd does not report name of working directory" 1331 1332 1333# Find the source files, if location was not specified. 1334if test -z "$srcdir"; then 1335 ac_srcdir_defaulted=yes 1336 # Try the directory containing this script, then the parent directory. 1337 ac_confdir=`$as_dirname -- "$as_myself" || 1338$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1339 X"$as_myself" : 'X\(//\)[^/]' \| \ 1340 X"$as_myself" : 'X\(//\)$' \| \ 1341 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1342$as_echo X"$as_myself" | 1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1344 s//\1/ 1345 q 1346 } 1347 /^X\(\/\/\)[^/].*/{ 1348 s//\1/ 1349 q 1350 } 1351 /^X\(\/\/\)$/{ 1352 s//\1/ 1353 q 1354 } 1355 /^X\(\/\).*/{ 1356 s//\1/ 1357 q 1358 } 1359 s/.*/./; q'` 1360 srcdir=$ac_confdir 1361 if test ! -r "$srcdir/$ac_unique_file"; then 1362 srcdir=.. 1363 fi 1364else 1365 ac_srcdir_defaulted=no 1366fi 1367if test ! -r "$srcdir/$ac_unique_file"; then 1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1369 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1370fi 1371ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1372ac_abs_confdir=`( 1373 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1374 pwd)` 1375# When building in place, set srcdir=. 1376if test "$ac_abs_confdir" = "$ac_pwd"; then 1377 srcdir=. 1378fi 1379# Remove unnecessary trailing slashes from srcdir. 1380# Double slashes in file names in object file debugging info 1381# mess up M-x gdb in Emacs. 1382case $srcdir in 1383*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1384esac 1385for ac_var in $ac_precious_vars; do 1386 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1387 eval ac_env_${ac_var}_value=\$${ac_var} 1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1389 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1390done 1391 1392# 1393# Report the --help message. 1394# 1395if test "$ac_init_help" = "long"; then 1396 # Omit some internal or obsolete options to make the list less imposing. 1397 # This message is too long to be a string in the A/UX 3.1 sh. 1398 cat <<_ACEOF 1399\`configure' configures libnpupnp 4.1.5 to adapt to many kinds of systems. 1400 1401Usage: $0 [OPTION]... [VAR=VALUE]... 1402 1403To assign environment variables (e.g., CC, CFLAGS...), specify them as 1404VAR=VALUE. See below for descriptions of some of the useful variables. 1405 1406Defaults for the options are specified in brackets. 1407 1408Configuration: 1409 -h, --help display this help and exit 1410 --help=short display options specific to this package 1411 --help=recursive display the short help of all the included packages 1412 -V, --version display version information and exit 1413 -q, --quiet, --silent do not print \`checking ...' messages 1414 --cache-file=FILE cache test results in FILE [disabled] 1415 -C, --config-cache alias for \`--cache-file=config.cache' 1416 -n, --no-create do not create output files 1417 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1418 1419Installation directories: 1420 --prefix=PREFIX install architecture-independent files in PREFIX 1421 [$ac_default_prefix] 1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1423 [PREFIX] 1424 1425By default, \`make install' will install all the files in 1426\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1427an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1428for instance \`--prefix=\$HOME'. 1429 1430For better control, use the options below. 1431 1432Fine tuning of the installation directories: 1433 --bindir=DIR user executables [EPREFIX/bin] 1434 --sbindir=DIR system admin executables [EPREFIX/sbin] 1435 --libexecdir=DIR program executables [EPREFIX/libexec] 1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1439 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1440 --libdir=DIR object code libraries [EPREFIX/lib] 1441 --includedir=DIR C header files [PREFIX/include] 1442 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1445 --infodir=DIR info documentation [DATAROOTDIR/info] 1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1447 --mandir=DIR man documentation [DATAROOTDIR/man] 1448 --docdir=DIR documentation root [DATAROOTDIR/doc/libnpupnp] 1449 --htmldir=DIR html documentation [DOCDIR] 1450 --dvidir=DIR dvi documentation [DOCDIR] 1451 --pdfdir=DIR pdf documentation [DOCDIR] 1452 --psdir=DIR ps documentation [DOCDIR] 1453_ACEOF 1454 1455 cat <<\_ACEOF 1456 1457Program names: 1458 --program-prefix=PREFIX prepend PREFIX to installed program names 1459 --program-suffix=SUFFIX append SUFFIX to installed program names 1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1461 1462System types: 1463 --build=BUILD configure for building on BUILD [guessed] 1464 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1465_ACEOF 1466fi 1467 1468if test -n "$ac_init_help"; then 1469 case $ac_init_help in 1470 short | recursive ) echo "Configuration of libnpupnp 4.1.5:";; 1471 esac 1472 cat <<\_ACEOF 1473 1474Optional Features: 1475 --disable-option-checking ignore unrecognized --enable/--with options 1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1478 --enable-silent-rules less verbose build output (undo: "make V=1") 1479 --disable-silent-rules verbose build output (undo: "make V=0") 1480 --enable-dependency-tracking 1481 do not reject slow dependency extractors 1482 --disable-dependency-tracking 1483 speeds up one-time build 1484 --enable-static[=PKGS] build static libraries [default=no] 1485 --enable-shared[=PKGS] build shared libraries [default=yes] 1486 --enable-fast-install[=PKGS] 1487 optimize for fast installation [default=yes] 1488 --disable-libtool-lock avoid locking (might break parallel builds) 1489extra debugging code 1490 control point code (client) 1491 1492device specific code (implies --disable-webserver if disabled) 1493integrated web server 1494SSDP part 1495optional SSDP headers support) 1496SOAP part 1497GENA part 1498helper APIs in upnptools.h 1499unspecified SERVER header 1500--disable-ipv6 disable ipv6 support. 1501--disable-reuseaddr do not bind the miniserver socket with reuseaddr. 1502 --enable-testprogs Enable building small test drivers. These are not 1503 unit tests. 1504 --disable-expat Use a small internal module for parsing XML instead 1505 of libexpat. 1506 1507Optional Packages: 1508 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1509 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1510 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1511 both] 1512 --with-aix-soname=aix|svr4|both 1513 shared library versioning (aka "SONAME") variant to 1514 provide on AIX, [default=aix]. 1515 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1516 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1517 compiler's sysroot if not specified). 1518 1519Some influential environment variables: 1520 CC C compiler command 1521 CFLAGS C compiler flags 1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1523 nonstandard directory <lib dir> 1524 LIBS libraries to pass to the linker, e.g. -l<library> 1525 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1526 you have headers in a nonstandard directory <include dir> 1527 LT_SYS_LIBRARY_PATH 1528 User-defined run-time library search path. 1529 CPP C preprocessor 1530 CXX C++ compiler command 1531 CXXFLAGS C++ compiler flags 1532 CXXCPP C++ preprocessor 1533 PKG_CONFIG path to pkg-config utility 1534 PKG_CONFIG_PATH 1535 directories to add to pkg-config's search path 1536 PKG_CONFIG_LIBDIR 1537 path overriding pkg-config's built-in search path 1538 CURL_CFLAGS C compiler flags for CURL, overriding pkg-config 1539 CURL_LIBS linker flags for CURL, overriding pkg-config 1540 MICROHTTPD_CFLAGS 1541 C compiler flags for MICROHTTPD, overriding pkg-config 1542 MICROHTTPD_LIBS 1543 linker flags for MICROHTTPD, overriding pkg-config 1544 EXPAT_CFLAGS 1545 C compiler flags for EXPAT, overriding pkg-config 1546 EXPAT_LIBS linker flags for EXPAT, overriding pkg-config 1547 1548Use these variables to override the choices made by `configure' or to help 1549it to find libraries and programs with nonstandard names/locations. 1550 1551Report bugs to <jfd@recoll.org>. 1552_ACEOF 1553ac_status=$? 1554fi 1555 1556if test "$ac_init_help" = "recursive"; then 1557 # If there are subdirs, report their specific --help. 1558 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1559 test -d "$ac_dir" || 1560 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1561 continue 1562 ac_builddir=. 1563 1564case "$ac_dir" in 1565.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1566*) 1567 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1568 # A ".." for each directory in $ac_dir_suffix. 1569 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1570 case $ac_top_builddir_sub in 1571 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1572 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1573 esac ;; 1574esac 1575ac_abs_top_builddir=$ac_pwd 1576ac_abs_builddir=$ac_pwd$ac_dir_suffix 1577# for backward compatibility: 1578ac_top_builddir=$ac_top_build_prefix 1579 1580case $srcdir in 1581 .) # We are building in place. 1582 ac_srcdir=. 1583 ac_top_srcdir=$ac_top_builddir_sub 1584 ac_abs_top_srcdir=$ac_pwd ;; 1585 [\\/]* | ?:[\\/]* ) # Absolute name. 1586 ac_srcdir=$srcdir$ac_dir_suffix; 1587 ac_top_srcdir=$srcdir 1588 ac_abs_top_srcdir=$srcdir ;; 1589 *) # Relative name. 1590 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1591 ac_top_srcdir=$ac_top_build_prefix$srcdir 1592 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1593esac 1594ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1595 1596 cd "$ac_dir" || { ac_status=$?; continue; } 1597 # Check for guested configure. 1598 if test -f "$ac_srcdir/configure.gnu"; then 1599 echo && 1600 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1601 elif test -f "$ac_srcdir/configure"; then 1602 echo && 1603 $SHELL "$ac_srcdir/configure" --help=recursive 1604 else 1605 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1606 fi || ac_status=$? 1607 cd "$ac_pwd" || { ac_status=$?; break; } 1608 done 1609fi 1610 1611test -n "$ac_init_help" && exit $ac_status 1612if $ac_init_version; then 1613 cat <<\_ACEOF 1614libnpupnp configure 4.1.5 1615generated by GNU Autoconf 2.69 1616 1617Copyright (C) 2012 Free Software Foundation, Inc. 1618This configure script is free software; the Free Software Foundation 1619gives unlimited permission to copy, distribute and modify it. 1620_ACEOF 1621 exit 1622fi 1623 1624## ------------------------ ## 1625## Autoconf initialization. ## 1626## ------------------------ ## 1627 1628# ac_fn_c_try_compile LINENO 1629# -------------------------- 1630# Try to compile conftest.$ac_ext, and return whether this succeeded. 1631ac_fn_c_try_compile () 1632{ 1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1634 rm -f conftest.$ac_objext 1635 if { { ac_try="$ac_compile" 1636case "(($ac_try" in 1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1638 *) ac_try_echo=$ac_try;; 1639esac 1640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1641$as_echo "$ac_try_echo"; } >&5 1642 (eval "$ac_compile") 2>conftest.err 1643 ac_status=$? 1644 if test -s conftest.err; then 1645 grep -v '^ *+' conftest.err >conftest.er1 1646 cat conftest.er1 >&5 1647 mv -f conftest.er1 conftest.err 1648 fi 1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1650 test $ac_status = 0; } && { 1651 test -z "$ac_c_werror_flag" || 1652 test ! -s conftest.err 1653 } && test -s conftest.$ac_objext; then : 1654 ac_retval=0 1655else 1656 $as_echo "$as_me: failed program was:" >&5 1657sed 's/^/| /' conftest.$ac_ext >&5 1658 1659 ac_retval=1 1660fi 1661 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1662 as_fn_set_status $ac_retval 1663 1664} # ac_fn_c_try_compile 1665 1666# ac_fn_c_try_link LINENO 1667# ----------------------- 1668# Try to link conftest.$ac_ext, and return whether this succeeded. 1669ac_fn_c_try_link () 1670{ 1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1672 rm -f conftest.$ac_objext conftest$ac_exeext 1673 if { { ac_try="$ac_link" 1674case "(($ac_try" in 1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1676 *) ac_try_echo=$ac_try;; 1677esac 1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1679$as_echo "$ac_try_echo"; } >&5 1680 (eval "$ac_link") 2>conftest.err 1681 ac_status=$? 1682 if test -s conftest.err; then 1683 grep -v '^ *+' conftest.err >conftest.er1 1684 cat conftest.er1 >&5 1685 mv -f conftest.er1 conftest.err 1686 fi 1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1688 test $ac_status = 0; } && { 1689 test -z "$ac_c_werror_flag" || 1690 test ! -s conftest.err 1691 } && test -s conftest$ac_exeext && { 1692 test "$cross_compiling" = yes || 1693 test -x conftest$ac_exeext 1694 }; then : 1695 ac_retval=0 1696else 1697 $as_echo "$as_me: failed program was:" >&5 1698sed 's/^/| /' conftest.$ac_ext >&5 1699 1700 ac_retval=1 1701fi 1702 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1703 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1704 # interfere with the next link command; also delete a directory that is 1705 # left behind by Apple's compiler. We do this before executing the actions. 1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1708 as_fn_set_status $ac_retval 1709 1710} # ac_fn_c_try_link 1711 1712# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1713# ------------------------------------------------------- 1714# Tests whether HEADER exists and can be compiled using the include files in 1715# INCLUDES, setting the cache variable VAR accordingly. 1716ac_fn_c_check_header_compile () 1717{ 1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1720$as_echo_n "checking for $2... " >&6; } 1721if eval \${$3+:} false; then : 1722 $as_echo_n "(cached) " >&6 1723else 1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1725/* end confdefs.h. */ 1726$4 1727#include <$2> 1728_ACEOF 1729if ac_fn_c_try_compile "$LINENO"; then : 1730 eval "$3=yes" 1731else 1732 eval "$3=no" 1733fi 1734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1735fi 1736eval ac_res=\$$3 1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1738$as_echo "$ac_res" >&6; } 1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1740 1741} # ac_fn_c_check_header_compile 1742 1743# ac_fn_c_try_cpp LINENO 1744# ---------------------- 1745# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1746ac_fn_c_try_cpp () 1747{ 1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1749 if { { ac_try="$ac_cpp conftest.$ac_ext" 1750case "(($ac_try" in 1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1752 *) ac_try_echo=$ac_try;; 1753esac 1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1755$as_echo "$ac_try_echo"; } >&5 1756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1757 ac_status=$? 1758 if test -s conftest.err; then 1759 grep -v '^ *+' conftest.err >conftest.er1 1760 cat conftest.er1 >&5 1761 mv -f conftest.er1 conftest.err 1762 fi 1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1764 test $ac_status = 0; } > conftest.i && { 1765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1766 test ! -s conftest.err 1767 }; then : 1768 ac_retval=0 1769else 1770 $as_echo "$as_me: failed program was:" >&5 1771sed 's/^/| /' conftest.$ac_ext >&5 1772 1773 ac_retval=1 1774fi 1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1776 as_fn_set_status $ac_retval 1777 1778} # ac_fn_c_try_cpp 1779 1780# ac_fn_c_try_run LINENO 1781# ---------------------- 1782# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1783# that executables *can* be run. 1784ac_fn_c_try_run () 1785{ 1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1787 if { { ac_try="$ac_link" 1788case "(($ac_try" in 1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1790 *) ac_try_echo=$ac_try;; 1791esac 1792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1793$as_echo "$ac_try_echo"; } >&5 1794 (eval "$ac_link") 2>&5 1795 ac_status=$? 1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1797 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1798 { { case "(($ac_try" in 1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1800 *) ac_try_echo=$ac_try;; 1801esac 1802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1803$as_echo "$ac_try_echo"; } >&5 1804 (eval "$ac_try") 2>&5 1805 ac_status=$? 1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1807 test $ac_status = 0; }; }; then : 1808 ac_retval=0 1809else 1810 $as_echo "$as_me: program exited with status $ac_status" >&5 1811 $as_echo "$as_me: failed program was:" >&5 1812sed 's/^/| /' conftest.$ac_ext >&5 1813 1814 ac_retval=$ac_status 1815fi 1816 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1818 as_fn_set_status $ac_retval 1819 1820} # ac_fn_c_try_run 1821 1822# ac_fn_c_check_func LINENO FUNC VAR 1823# ---------------------------------- 1824# Tests whether FUNC exists, setting the cache variable VAR accordingly 1825ac_fn_c_check_func () 1826{ 1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1829$as_echo_n "checking for $2... " >&6; } 1830if eval \${$3+:} false; then : 1831 $as_echo_n "(cached) " >&6 1832else 1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1834/* end confdefs.h. */ 1835/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1836 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1837#define $2 innocuous_$2 1838 1839/* System header to define __stub macros and hopefully few prototypes, 1840 which can conflict with char $2 (); below. 1841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1842 <limits.h> exists even on freestanding compilers. */ 1843 1844#ifdef __STDC__ 1845# include <limits.h> 1846#else 1847# include <assert.h> 1848#endif 1849 1850#undef $2 1851 1852/* Override any GCC internal prototype to avoid an error. 1853 Use char because int might match the return type of a GCC 1854 builtin and then its argument prototype would still apply. */ 1855#ifdef __cplusplus 1856extern "C" 1857#endif 1858char $2 (); 1859/* The GNU C library defines this for functions which it implements 1860 to always fail with ENOSYS. Some functions are actually named 1861 something starting with __ and the normal name is an alias. */ 1862#if defined __stub_$2 || defined __stub___$2 1863choke me 1864#endif 1865 1866int 1867main () 1868{ 1869return $2 (); 1870 ; 1871 return 0; 1872} 1873_ACEOF 1874if ac_fn_c_try_link "$LINENO"; then : 1875 eval "$3=yes" 1876else 1877 eval "$3=no" 1878fi 1879rm -f core conftest.err conftest.$ac_objext \ 1880 conftest$ac_exeext conftest.$ac_ext 1881fi 1882eval ac_res=\$$3 1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1884$as_echo "$ac_res" >&6; } 1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1886 1887} # ac_fn_c_check_func 1888 1889# ac_fn_cxx_try_compile LINENO 1890# ---------------------------- 1891# Try to compile conftest.$ac_ext, and return whether this succeeded. 1892ac_fn_cxx_try_compile () 1893{ 1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1895 rm -f conftest.$ac_objext 1896 if { { ac_try="$ac_compile" 1897case "(($ac_try" in 1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1899 *) ac_try_echo=$ac_try;; 1900esac 1901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1902$as_echo "$ac_try_echo"; } >&5 1903 (eval "$ac_compile") 2>conftest.err 1904 ac_status=$? 1905 if test -s conftest.err; then 1906 grep -v '^ *+' conftest.err >conftest.er1 1907 cat conftest.er1 >&5 1908 mv -f conftest.er1 conftest.err 1909 fi 1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1911 test $ac_status = 0; } && { 1912 test -z "$ac_cxx_werror_flag" || 1913 test ! -s conftest.err 1914 } && test -s conftest.$ac_objext; then : 1915 ac_retval=0 1916else 1917 $as_echo "$as_me: failed program was:" >&5 1918sed 's/^/| /' conftest.$ac_ext >&5 1919 1920 ac_retval=1 1921fi 1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1923 as_fn_set_status $ac_retval 1924 1925} # ac_fn_cxx_try_compile 1926 1927# ac_fn_cxx_try_cpp LINENO 1928# ------------------------ 1929# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1930ac_fn_cxx_try_cpp () 1931{ 1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1933 if { { ac_try="$ac_cpp conftest.$ac_ext" 1934case "(($ac_try" in 1935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1936 *) ac_try_echo=$ac_try;; 1937esac 1938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1939$as_echo "$ac_try_echo"; } >&5 1940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1941 ac_status=$? 1942 if test -s conftest.err; then 1943 grep -v '^ *+' conftest.err >conftest.er1 1944 cat conftest.er1 >&5 1945 mv -f conftest.er1 conftest.err 1946 fi 1947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1948 test $ac_status = 0; } > conftest.i && { 1949 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1950 test ! -s conftest.err 1951 }; then : 1952 ac_retval=0 1953else 1954 $as_echo "$as_me: failed program was:" >&5 1955sed 's/^/| /' conftest.$ac_ext >&5 1956 1957 ac_retval=1 1958fi 1959 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1960 as_fn_set_status $ac_retval 1961 1962} # ac_fn_cxx_try_cpp 1963 1964# ac_fn_cxx_try_link LINENO 1965# ------------------------- 1966# Try to link conftest.$ac_ext, and return whether this succeeded. 1967ac_fn_cxx_try_link () 1968{ 1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1970 rm -f conftest.$ac_objext conftest$ac_exeext 1971 if { { ac_try="$ac_link" 1972case "(($ac_try" in 1973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1974 *) ac_try_echo=$ac_try;; 1975esac 1976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1977$as_echo "$ac_try_echo"; } >&5 1978 (eval "$ac_link") 2>conftest.err 1979 ac_status=$? 1980 if test -s conftest.err; then 1981 grep -v '^ *+' conftest.err >conftest.er1 1982 cat conftest.er1 >&5 1983 mv -f conftest.er1 conftest.err 1984 fi 1985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1986 test $ac_status = 0; } && { 1987 test -z "$ac_cxx_werror_flag" || 1988 test ! -s conftest.err 1989 } && test -s conftest$ac_exeext && { 1990 test "$cross_compiling" = yes || 1991 test -x conftest$ac_exeext 1992 }; then : 1993 ac_retval=0 1994else 1995 $as_echo "$as_me: failed program was:" >&5 1996sed 's/^/| /' conftest.$ac_ext >&5 1997 1998 ac_retval=1 1999fi 2000 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2001 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2002 # interfere with the next link command; also delete a directory that is 2003 # left behind by Apple's compiler. We do this before executing the actions. 2004 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2006 as_fn_set_status $ac_retval 2007 2008} # ac_fn_cxx_try_link 2009 2010# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2011# ------------------------------------------- 2012# Tests whether TYPE exists after having included INCLUDES, setting cache 2013# variable VAR accordingly. 2014ac_fn_c_check_type () 2015{ 2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2018$as_echo_n "checking for $2... " >&6; } 2019if eval \${$3+:} false; then : 2020 $as_echo_n "(cached) " >&6 2021else 2022 eval "$3=no" 2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2024/* end confdefs.h. */ 2025$4 2026int 2027main () 2028{ 2029if (sizeof ($2)) 2030 return 0; 2031 ; 2032 return 0; 2033} 2034_ACEOF 2035if ac_fn_c_try_compile "$LINENO"; then : 2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2037/* end confdefs.h. */ 2038$4 2039int 2040main () 2041{ 2042if (sizeof (($2))) 2043 return 0; 2044 ; 2045 return 0; 2046} 2047_ACEOF 2048if ac_fn_c_try_compile "$LINENO"; then : 2049 2050else 2051 eval "$3=yes" 2052fi 2053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2054fi 2055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2056fi 2057eval ac_res=\$$3 2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2059$as_echo "$ac_res" >&6; } 2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2061 2062} # ac_fn_c_check_type 2063 2064# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2065# ------------------------------------------------------- 2066# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2067# the include files in INCLUDES and setting the cache variable VAR 2068# accordingly. 2069ac_fn_c_check_header_mongrel () 2070{ 2071 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2072 if eval \${$3+:} false; then : 2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2074$as_echo_n "checking for $2... " >&6; } 2075if eval \${$3+:} false; then : 2076 $as_echo_n "(cached) " >&6 2077fi 2078eval ac_res=\$$3 2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2080$as_echo "$ac_res" >&6; } 2081else 2082 # Is the header compilable? 2083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2084$as_echo_n "checking $2 usability... " >&6; } 2085cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2086/* end confdefs.h. */ 2087$4 2088#include <$2> 2089_ACEOF 2090if ac_fn_c_try_compile "$LINENO"; then : 2091 ac_header_compiler=yes 2092else 2093 ac_header_compiler=no 2094fi 2095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2097$as_echo "$ac_header_compiler" >&6; } 2098 2099# Is the header present? 2100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2101$as_echo_n "checking $2 presence... " >&6; } 2102cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2103/* end confdefs.h. */ 2104#include <$2> 2105_ACEOF 2106if ac_fn_c_try_cpp "$LINENO"; then : 2107 ac_header_preproc=yes 2108else 2109 ac_header_preproc=no 2110fi 2111rm -f conftest.err conftest.i conftest.$ac_ext 2112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2113$as_echo "$ac_header_preproc" >&6; } 2114 2115# So? What about this header? 2116case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2117 yes:no: ) 2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2119$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2121$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2122 ;; 2123 no:yes:* ) 2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2125$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2127$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2129$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2131$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2133$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2134( $as_echo "## ----------------------------- ## 2135## Report this to jfd@recoll.org ## 2136## ----------------------------- ##" 2137 ) | sed "s/^/$as_me: WARNING: /" >&2 2138 ;; 2139esac 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2141$as_echo_n "checking for $2... " >&6; } 2142if eval \${$3+:} false; then : 2143 $as_echo_n "(cached) " >&6 2144else 2145 eval "$3=\$ac_header_compiler" 2146fi 2147eval ac_res=\$$3 2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2149$as_echo "$ac_res" >&6; } 2150fi 2151 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2152 2153} # ac_fn_c_check_header_mongrel 2154cat >config.log <<_ACEOF 2155This file contains any messages produced by compilers while 2156running configure, to aid debugging if configure makes a mistake. 2157 2158It was created by libnpupnp $as_me 4.1.5, which was 2159generated by GNU Autoconf 2.69. Invocation command line was 2160 2161 $ $0 $@ 2162 2163_ACEOF 2164exec 5>>config.log 2165{ 2166cat <<_ASUNAME 2167## --------- ## 2168## Platform. ## 2169## --------- ## 2170 2171hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2172uname -m = `(uname -m) 2>/dev/null || echo unknown` 2173uname -r = `(uname -r) 2>/dev/null || echo unknown` 2174uname -s = `(uname -s) 2>/dev/null || echo unknown` 2175uname -v = `(uname -v) 2>/dev/null || echo unknown` 2176 2177/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2178/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2179 2180/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2181/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2182/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2183/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2184/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2185/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2186/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2187 2188_ASUNAME 2189 2190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2191for as_dir in $PATH 2192do 2193 IFS=$as_save_IFS 2194 test -z "$as_dir" && as_dir=. 2195 $as_echo "PATH: $as_dir" 2196 done 2197IFS=$as_save_IFS 2198 2199} >&5 2200 2201cat >&5 <<_ACEOF 2202 2203 2204## ----------- ## 2205## Core tests. ## 2206## ----------- ## 2207 2208_ACEOF 2209 2210 2211# Keep a trace of the command line. 2212# Strip out --no-create and --no-recursion so they do not pile up. 2213# Strip out --silent because we don't want to record it for future runs. 2214# Also quote any args containing shell meta-characters. 2215# Make two passes to allow for proper duplicate-argument suppression. 2216ac_configure_args= 2217ac_configure_args0= 2218ac_configure_args1= 2219ac_must_keep_next=false 2220for ac_pass in 1 2 2221do 2222 for ac_arg 2223 do 2224 case $ac_arg in 2225 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2227 | -silent | --silent | --silen | --sile | --sil) 2228 continue ;; 2229 *\'*) 2230 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2231 esac 2232 case $ac_pass in 2233 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2234 2) 2235 as_fn_append ac_configure_args1 " '$ac_arg'" 2236 if test $ac_must_keep_next = true; then 2237 ac_must_keep_next=false # Got value, back to normal. 2238 else 2239 case $ac_arg in 2240 *=* | --config-cache | -C | -disable-* | --disable-* \ 2241 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2242 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2243 | -with-* | --with-* | -without-* | --without-* | --x) 2244 case "$ac_configure_args0 " in 2245 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2246 esac 2247 ;; 2248 -* ) ac_must_keep_next=true ;; 2249 esac 2250 fi 2251 as_fn_append ac_configure_args " '$ac_arg'" 2252 ;; 2253 esac 2254 done 2255done 2256{ ac_configure_args0=; unset ac_configure_args0;} 2257{ ac_configure_args1=; unset ac_configure_args1;} 2258 2259# When interrupted or exit'd, cleanup temporary files, and complete 2260# config.log. We remove comments because anyway the quotes in there 2261# would cause problems or look ugly. 2262# WARNING: Use '\'' to represent an apostrophe within the trap. 2263# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2264trap 'exit_status=$? 2265 # Save into config.log some information that might help in debugging. 2266 { 2267 echo 2268 2269 $as_echo "## ---------------- ## 2270## Cache variables. ## 2271## ---------------- ##" 2272 echo 2273 # The following way of writing the cache mishandles newlines in values, 2274( 2275 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2276 eval ac_val=\$$ac_var 2277 case $ac_val in #( 2278 *${as_nl}*) 2279 case $ac_var in #( 2280 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2281$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2282 esac 2283 case $ac_var in #( 2284 _ | IFS | as_nl) ;; #( 2285 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2286 *) { eval $ac_var=; unset $ac_var;} ;; 2287 esac ;; 2288 esac 2289 done 2290 (set) 2>&1 | 2291 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2292 *${as_nl}ac_space=\ *) 2293 sed -n \ 2294 "s/'\''/'\''\\\\'\'''\''/g; 2295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2296 ;; #( 2297 *) 2298 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2299 ;; 2300 esac | 2301 sort 2302) 2303 echo 2304 2305 $as_echo "## ----------------- ## 2306## Output variables. ## 2307## ----------------- ##" 2308 echo 2309 for ac_var in $ac_subst_vars 2310 do 2311 eval ac_val=\$$ac_var 2312 case $ac_val in 2313 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2314 esac 2315 $as_echo "$ac_var='\''$ac_val'\''" 2316 done | sort 2317 echo 2318 2319 if test -n "$ac_subst_files"; then 2320 $as_echo "## ------------------- ## 2321## File substitutions. ## 2322## ------------------- ##" 2323 echo 2324 for ac_var in $ac_subst_files 2325 do 2326 eval ac_val=\$$ac_var 2327 case $ac_val in 2328 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2329 esac 2330 $as_echo "$ac_var='\''$ac_val'\''" 2331 done | sort 2332 echo 2333 fi 2334 2335 if test -s confdefs.h; then 2336 $as_echo "## ----------- ## 2337## confdefs.h. ## 2338## ----------- ##" 2339 echo 2340 cat confdefs.h 2341 echo 2342 fi 2343 test "$ac_signal" != 0 && 2344 $as_echo "$as_me: caught signal $ac_signal" 2345 $as_echo "$as_me: exit $exit_status" 2346 } >&5 2347 rm -f core *.core core.conftest.* && 2348 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2349 exit $exit_status 2350' 0 2351for ac_signal in 1 2 13 15; do 2352 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2353done 2354ac_signal=0 2355 2356# confdefs.h avoids OS command line length limits that DEFS can exceed. 2357rm -f -r conftest* confdefs.h 2358 2359$as_echo "/* confdefs.h */" > confdefs.h 2360 2361# Predefined preprocessor variables. 2362 2363cat >>confdefs.h <<_ACEOF 2364#define PACKAGE_NAME "$PACKAGE_NAME" 2365_ACEOF 2366 2367cat >>confdefs.h <<_ACEOF 2368#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2369_ACEOF 2370 2371cat >>confdefs.h <<_ACEOF 2372#define PACKAGE_VERSION "$PACKAGE_VERSION" 2373_ACEOF 2374 2375cat >>confdefs.h <<_ACEOF 2376#define PACKAGE_STRING "$PACKAGE_STRING" 2377_ACEOF 2378 2379cat >>confdefs.h <<_ACEOF 2380#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2381_ACEOF 2382 2383cat >>confdefs.h <<_ACEOF 2384#define PACKAGE_URL "$PACKAGE_URL" 2385_ACEOF 2386 2387 2388# Let the site file select an alternate cache file if it wants to. 2389# Prefer an explicitly selected file to automatically selected ones. 2390ac_site_file1=NONE 2391ac_site_file2=NONE 2392if test -n "$CONFIG_SITE"; then 2393 # We do not want a PATH search for config.site. 2394 case $CONFIG_SITE in #(( 2395 -*) ac_site_file1=./$CONFIG_SITE;; 2396 */*) ac_site_file1=$CONFIG_SITE;; 2397 *) ac_site_file1=./$CONFIG_SITE;; 2398 esac 2399elif test "x$prefix" != xNONE; then 2400 ac_site_file1=$prefix/share/config.site 2401 ac_site_file2=$prefix/etc/config.site 2402else 2403 ac_site_file1=$ac_default_prefix/share/config.site 2404 ac_site_file2=$ac_default_prefix/etc/config.site 2405fi 2406for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2407do 2408 test "x$ac_site_file" = xNONE && continue 2409 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2410 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2411$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2412 sed 's/^/| /' "$ac_site_file" >&5 2413 . "$ac_site_file" \ 2414 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2415$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2416as_fn_error $? "failed to load site script $ac_site_file 2417See \`config.log' for more details" "$LINENO" 5; } 2418 fi 2419done 2420 2421if test -r "$cache_file"; then 2422 # Some versions of bash will fail to source /dev/null (special files 2423 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2424 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2425 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2426$as_echo "$as_me: loading cache $cache_file" >&6;} 2427 case $cache_file in 2428 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2429 *) . "./$cache_file";; 2430 esac 2431 fi 2432else 2433 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2434$as_echo "$as_me: creating cache $cache_file" >&6;} 2435 >$cache_file 2436fi 2437 2438# Check that the precious variables saved in the cache have kept the same 2439# value. 2440ac_cache_corrupted=false 2441for ac_var in $ac_precious_vars; do 2442 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2443 eval ac_new_set=\$ac_env_${ac_var}_set 2444 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2445 eval ac_new_val=\$ac_env_${ac_var}_value 2446 case $ac_old_set,$ac_new_set in 2447 set,) 2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2449$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2450 ac_cache_corrupted=: ;; 2451 ,set) 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2453$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2454 ac_cache_corrupted=: ;; 2455 ,);; 2456 *) 2457 if test "x$ac_old_val" != "x$ac_new_val"; then 2458 # differences in whitespace do not lead to failure. 2459 ac_old_val_w=`echo x $ac_old_val` 2460 ac_new_val_w=`echo x $ac_new_val` 2461 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2463$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2464 ac_cache_corrupted=: 2465 else 2466 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2467$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2468 eval $ac_var=\$ac_old_val 2469 fi 2470 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2471$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2472 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2473$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2474 fi;; 2475 esac 2476 # Pass precious variables to config.status. 2477 if test "$ac_new_set" = set; then 2478 case $ac_new_val in 2479 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2480 *) ac_arg=$ac_var=$ac_new_val ;; 2481 esac 2482 case " $ac_configure_args " in 2483 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2484 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2485 esac 2486 fi 2487done 2488if $ac_cache_corrupted; then 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2492$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2493 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2494fi 2495## -------------------- ## 2496## Main body of script. ## 2497## -------------------- ## 2498 2499ac_ext=c 2500ac_cpp='$CPP $CPPFLAGS' 2501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2503ac_compiler_gnu=$ac_cv_c_compiler_gnu 2504 2505 2506 2507# - Start with version information of ‘0:0:0’ for each libtool library. 2508# - Update the version information only immediately before a public release 2509# - If the library source code has changed at all since the last update, then 2510# increment revision (‘c:r:a’ becomes ‘c:r+1:a’). 2511# - If any interfaces have been added, removed, or changed since the last 2512# update, increment current, and set revision to 0. 2513# - If any interfaces have been added since the last public release, then 2514# increment age. 2515# - If any interfaces have been removed or changed since the last public 2516# release, then set age to 0. Change package name if it is needed to have 2517# several installed versions of the lib. 2518# npupnp packages will be named libupnpX at some point, where X is the .so 2519# major number (c-a). This will allow packages for multiple incompatible ABIs 2520# to be installed. Not necessary for now. 2521LT_VERSION_NPUPNP=6:1:2 2522 2523 2524ac_aux_dir= 2525for ac_dir in build-aux "$srcdir"/build-aux; do 2526 if test -f "$ac_dir/install-sh"; then 2527 ac_aux_dir=$ac_dir 2528 ac_install_sh="$ac_aux_dir/install-sh -c" 2529 break 2530 elif test -f "$ac_dir/install.sh"; then 2531 ac_aux_dir=$ac_dir 2532 ac_install_sh="$ac_aux_dir/install.sh -c" 2533 break 2534 elif test -f "$ac_dir/shtool"; then 2535 ac_aux_dir=$ac_dir 2536 ac_install_sh="$ac_aux_dir/shtool install -c" 2537 break 2538 fi 2539done 2540if test -z "$ac_aux_dir"; then 2541 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2542fi 2543 2544# These three variables are undocumented and unsupported, 2545# and are intended to be withdrawn in a future Autoconf release. 2546# They can cause serious problems if a builder's source tree is in a directory 2547# whose full name contains unusual characters. 2548ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2549ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2550ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2551 2552 2553 2554 2555 2556# Make sure we can run config.sub. 2557$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2558 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2559 2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2561$as_echo_n "checking build system type... " >&6; } 2562if ${ac_cv_build+:} false; then : 2563 $as_echo_n "(cached) " >&6 2564else 2565 ac_build_alias=$build_alias 2566test "x$ac_build_alias" = x && 2567 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2568test "x$ac_build_alias" = x && 2569 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2570ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2571 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2572 2573fi 2574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2575$as_echo "$ac_cv_build" >&6; } 2576case $ac_cv_build in 2577*-*-*) ;; 2578*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2579esac 2580build=$ac_cv_build 2581ac_save_IFS=$IFS; IFS='-' 2582set x $ac_cv_build 2583shift 2584build_cpu=$1 2585build_vendor=$2 2586shift; shift 2587# Remember, the first character of IFS is used to create $*, 2588# except with old shells: 2589build_os=$* 2590IFS=$ac_save_IFS 2591case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2592 2593 2594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2595$as_echo_n "checking host system type... " >&6; } 2596if ${ac_cv_host+:} false; then : 2597 $as_echo_n "(cached) " >&6 2598else 2599 if test "x$host_alias" = x; then 2600 ac_cv_host=$ac_cv_build 2601else 2602 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2603 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2604fi 2605 2606fi 2607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2608$as_echo "$ac_cv_host" >&6; } 2609case $ac_cv_host in 2610*-*-*) ;; 2611*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2612esac 2613host=$ac_cv_host 2614ac_save_IFS=$IFS; IFS='-' 2615set x $ac_cv_host 2616shift 2617host_cpu=$1 2618host_vendor=$2 2619shift; shift 2620# Remember, the first character of IFS is used to create $*, 2621# except with old shells: 2622host_os=$* 2623IFS=$ac_save_IFS 2624case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2625 2626 2627# Detect the target system 2628case "${host_os}" in 2629 linux*|uclinux*) build_linux=yes;; 2630 darwin*) build_mac=yes;; 2631 *freebsd*) build_freebsd=yes;; 2632 *mingw*) build_mingw=yes;; 2633 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"OS $host_os is unknown\"" >&5 2634$as_echo "$as_me: WARNING: \"OS $host_os is unknown\"" >&2;};; 2635esac 2636# Pass the conditionals to automake 2637 if test "$build_linux" = "yes"; then 2638 LINUX_TRUE= 2639 LINUX_FALSE='#' 2640else 2641 LINUX_TRUE='#' 2642 LINUX_FALSE= 2643fi 2644 2645 if test "$build_mac" = "yes"; then 2646 OSX_TRUE= 2647 OSX_FALSE='#' 2648else 2649 OSX_TRUE='#' 2650 OSX_FALSE= 2651fi 2652 2653 if test "$build_freebsd" = "yes"; then 2654 FREEBSD_TRUE= 2655 FREEBSD_FALSE='#' 2656else 2657 FREEBSD_TRUE='#' 2658 FREEBSD_FALSE= 2659fi 2660 2661 if test "$build_mingw" = "yes"; then 2662 MINGW_TRUE= 2663 MINGW_FALSE='#' 2664else 2665 MINGW_TRUE='#' 2666 MINGW_FALSE= 2667fi 2668 2669 2670am__api_version='1.16' 2671 2672# Find a good install program. We prefer a C program (faster), 2673# so one script is as good as another. But avoid the broken or 2674# incompatible versions: 2675# SysV /etc/install, /usr/sbin/install 2676# SunOS /usr/etc/install 2677# IRIX /sbin/install 2678# AIX /bin/install 2679# AmigaOS /C/install, which installs bootblocks on floppy discs 2680# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2681# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2682# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2683# OS/2's system install, which has a completely different semantic 2684# ./install, which can be erroneously created by make from ./install.sh. 2685# Reject install programs that cannot install multiple files. 2686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2687$as_echo_n "checking for a BSD-compatible install... " >&6; } 2688if test -z "$INSTALL"; then 2689if ${ac_cv_path_install+:} false; then : 2690 $as_echo_n "(cached) " >&6 2691else 2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2693for as_dir in $PATH 2694do 2695 IFS=$as_save_IFS 2696 test -z "$as_dir" && as_dir=. 2697 # Account for people who put trailing slashes in PATH elements. 2698case $as_dir/ in #(( 2699 ./ | .// | /[cC]/* | \ 2700 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2701 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2702 /usr/ucb/* ) ;; 2703 *) 2704 # OSF1 and SCO ODT 3.0 have their own names for install. 2705 # Don't use installbsd from OSF since it installs stuff as root 2706 # by default. 2707 for ac_prog in ginstall scoinst install; do 2708 for ac_exec_ext in '' $ac_executable_extensions; do 2709 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2710 if test $ac_prog = install && 2711 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2712 # AIX install. It has an incompatible calling convention. 2713 : 2714 elif test $ac_prog = install && 2715 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2716 # program-specific install script used by HP pwplus--don't use. 2717 : 2718 else 2719 rm -rf conftest.one conftest.two conftest.dir 2720 echo one > conftest.one 2721 echo two > conftest.two 2722 mkdir conftest.dir 2723 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2724 test -s conftest.one && test -s conftest.two && 2725 test -s conftest.dir/conftest.one && 2726 test -s conftest.dir/conftest.two 2727 then 2728 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2729 break 3 2730 fi 2731 fi 2732 fi 2733 done 2734 done 2735 ;; 2736esac 2737 2738 done 2739IFS=$as_save_IFS 2740 2741rm -rf conftest.one conftest.two conftest.dir 2742 2743fi 2744 if test "${ac_cv_path_install+set}" = set; then 2745 INSTALL=$ac_cv_path_install 2746 else 2747 # As a last resort, use the slow shell script. Don't cache a 2748 # value for INSTALL within a source directory, because that will 2749 # break other packages using the cache if that directory is 2750 # removed, or if the value is a relative name. 2751 INSTALL=$ac_install_sh 2752 fi 2753fi 2754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2755$as_echo "$INSTALL" >&6; } 2756 2757# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2758# It thinks the first close brace ends the variable substitution. 2759test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2760 2761test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2762 2763test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2764 2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2766$as_echo_n "checking whether build environment is sane... " >&6; } 2767# Reject unsafe characters in $srcdir or the absolute working directory 2768# name. Accept space and tab only in the latter. 2769am_lf=' 2770' 2771case `pwd` in 2772 *[\\\"\#\$\&\'\`$am_lf]*) 2773 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2774esac 2775case $srcdir in 2776 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2777 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2778esac 2779 2780# Do 'set' in a subshell so we don't clobber the current shell's 2781# arguments. Must try -L first in case configure is actually a 2782# symlink; some systems play weird games with the mod time of symlinks 2783# (eg FreeBSD returns the mod time of the symlink's containing 2784# directory). 2785if ( 2786 am_has_slept=no 2787 for am_try in 1 2; do 2788 echo "timestamp, slept: $am_has_slept" > conftest.file 2789 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2790 if test "$*" = "X"; then 2791 # -L didn't work. 2792 set X `ls -t "$srcdir/configure" conftest.file` 2793 fi 2794 if test "$*" != "X $srcdir/configure conftest.file" \ 2795 && test "$*" != "X conftest.file $srcdir/configure"; then 2796 2797 # If neither matched, then we have a broken ls. This can happen 2798 # if, for instance, CONFIG_SHELL is bash and it inherits a 2799 # broken ls alias from the environment. This has actually 2800 # happened. Such a system could not be considered "sane". 2801 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2802 alias in your environment" "$LINENO" 5 2803 fi 2804 if test "$2" = conftest.file || test $am_try -eq 2; then 2805 break 2806 fi 2807 # Just in case. 2808 sleep 1 2809 am_has_slept=yes 2810 done 2811 test "$2" = conftest.file 2812 ) 2813then 2814 # Ok. 2815 : 2816else 2817 as_fn_error $? "newly created file is older than distributed files! 2818Check your system clock" "$LINENO" 5 2819fi 2820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2821$as_echo "yes" >&6; } 2822# If we didn't sleep, we still need to ensure time stamps of config.status and 2823# generated files are strictly newer. 2824am_sleep_pid= 2825if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2826 ( sleep 1 ) & 2827 am_sleep_pid=$! 2828fi 2829 2830rm -f conftest.file 2831 2832test "$program_prefix" != NONE && 2833 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2834# Use a double $ so make ignores it. 2835test "$program_suffix" != NONE && 2836 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2837# Double any \ or $. 2838# By default was `s,x,x', remove it if useless. 2839ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2840program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2841 2842# Expand $ac_aux_dir to an absolute path. 2843am_aux_dir=`cd "$ac_aux_dir" && pwd` 2844 2845if test x"${MISSING+set}" != xset; then 2846 case $am_aux_dir in 2847 *\ * | *\ *) 2848 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2849 *) 2850 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2851 esac 2852fi 2853# Use eval to expand $SHELL 2854if eval "$MISSING --is-lightweight"; then 2855 am_missing_run="$MISSING " 2856else 2857 am_missing_run= 2858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2859$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2860fi 2861 2862if test x"${install_sh+set}" != xset; then 2863 case $am_aux_dir in 2864 *\ * | *\ *) 2865 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2866 *) 2867 install_sh="\${SHELL} $am_aux_dir/install-sh" 2868 esac 2869fi 2870 2871# Installed binaries are usually stripped using 'strip' when the user 2872# run "make install-strip". However 'strip' might not be the right 2873# tool to use in cross-compilation environments, therefore Automake 2874# will honor the 'STRIP' environment variable to overrule this program. 2875if test "$cross_compiling" != no; then 2876 if test -n "$ac_tool_prefix"; then 2877 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2878set dummy ${ac_tool_prefix}strip; ac_word=$2 2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2880$as_echo_n "checking for $ac_word... " >&6; } 2881if ${ac_cv_prog_STRIP+:} false; then : 2882 $as_echo_n "(cached) " >&6 2883else 2884 if test -n "$STRIP"; then 2885 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2886else 2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2888for as_dir in $PATH 2889do 2890 IFS=$as_save_IFS 2891 test -z "$as_dir" && as_dir=. 2892 for ac_exec_ext in '' $ac_executable_extensions; do 2893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2894 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2896 break 2 2897 fi 2898done 2899 done 2900IFS=$as_save_IFS 2901 2902fi 2903fi 2904STRIP=$ac_cv_prog_STRIP 2905if test -n "$STRIP"; then 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2907$as_echo "$STRIP" >&6; } 2908else 2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2910$as_echo "no" >&6; } 2911fi 2912 2913 2914fi 2915if test -z "$ac_cv_prog_STRIP"; then 2916 ac_ct_STRIP=$STRIP 2917 # Extract the first word of "strip", so it can be a program name with args. 2918set dummy strip; ac_word=$2 2919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2920$as_echo_n "checking for $ac_word... " >&6; } 2921if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2922 $as_echo_n "(cached) " >&6 2923else 2924 if test -n "$ac_ct_STRIP"; then 2925 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2926else 2927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2928for as_dir in $PATH 2929do 2930 IFS=$as_save_IFS 2931 test -z "$as_dir" && as_dir=. 2932 for ac_exec_ext in '' $ac_executable_extensions; do 2933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2934 ac_cv_prog_ac_ct_STRIP="strip" 2935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2936 break 2 2937 fi 2938done 2939 done 2940IFS=$as_save_IFS 2941 2942fi 2943fi 2944ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2945if test -n "$ac_ct_STRIP"; then 2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2947$as_echo "$ac_ct_STRIP" >&6; } 2948else 2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2950$as_echo "no" >&6; } 2951fi 2952 2953 if test "x$ac_ct_STRIP" = x; then 2954 STRIP=":" 2955 else 2956 case $cross_compiling:$ac_tool_warned in 2957yes:) 2958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2960ac_tool_warned=yes ;; 2961esac 2962 STRIP=$ac_ct_STRIP 2963 fi 2964else 2965 STRIP="$ac_cv_prog_STRIP" 2966fi 2967 2968fi 2969INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2970 2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2972$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2973if test -z "$MKDIR_P"; then 2974 if ${ac_cv_path_mkdir+:} false; then : 2975 $as_echo_n "(cached) " >&6 2976else 2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2978for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2979do 2980 IFS=$as_save_IFS 2981 test -z "$as_dir" && as_dir=. 2982 for ac_prog in mkdir gmkdir; do 2983 for ac_exec_ext in '' $ac_executable_extensions; do 2984 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2985 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2986 'mkdir (GNU coreutils) '* | \ 2987 'mkdir (coreutils) '* | \ 2988 'mkdir (fileutils) '4.1*) 2989 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2990 break 3;; 2991 esac 2992 done 2993 done 2994 done 2995IFS=$as_save_IFS 2996 2997fi 2998 2999 test -d ./--version && rmdir ./--version 3000 if test "${ac_cv_path_mkdir+set}" = set; then 3001 MKDIR_P="$ac_cv_path_mkdir -p" 3002 else 3003 # As a last resort, use the slow shell script. Don't cache a 3004 # value for MKDIR_P within a source directory, because that will 3005 # break other packages using the cache if that directory is 3006 # removed, or if the value is a relative name. 3007 MKDIR_P="$ac_install_sh -d" 3008 fi 3009fi 3010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3011$as_echo "$MKDIR_P" >&6; } 3012 3013for ac_prog in gawk mawk nawk awk 3014do 3015 # Extract the first word of "$ac_prog", so it can be a program name with args. 3016set dummy $ac_prog; ac_word=$2 3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3018$as_echo_n "checking for $ac_word... " >&6; } 3019if ${ac_cv_prog_AWK+:} false; then : 3020 $as_echo_n "(cached) " >&6 3021else 3022 if test -n "$AWK"; then 3023 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3024else 3025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3026for as_dir in $PATH 3027do 3028 IFS=$as_save_IFS 3029 test -z "$as_dir" && as_dir=. 3030 for ac_exec_ext in '' $ac_executable_extensions; do 3031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3032 ac_cv_prog_AWK="$ac_prog" 3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3034 break 2 3035 fi 3036done 3037 done 3038IFS=$as_save_IFS 3039 3040fi 3041fi 3042AWK=$ac_cv_prog_AWK 3043if test -n "$AWK"; then 3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3045$as_echo "$AWK" >&6; } 3046else 3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3048$as_echo "no" >&6; } 3049fi 3050 3051 3052 test -n "$AWK" && break 3053done 3054 3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3056$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3057set x ${MAKE-make} 3058ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3059if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3060 $as_echo_n "(cached) " >&6 3061else 3062 cat >conftest.make <<\_ACEOF 3063SHELL = /bin/sh 3064all: 3065 @echo '@@@%%%=$(MAKE)=@@@%%%' 3066_ACEOF 3067# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3068case `${MAKE-make} -f conftest.make 2>/dev/null` in 3069 *@@@%%%=?*=@@@%%%*) 3070 eval ac_cv_prog_make_${ac_make}_set=yes;; 3071 *) 3072 eval ac_cv_prog_make_${ac_make}_set=no;; 3073esac 3074rm -f conftest.make 3075fi 3076if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3078$as_echo "yes" >&6; } 3079 SET_MAKE= 3080else 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3082$as_echo "no" >&6; } 3083 SET_MAKE="MAKE=${MAKE-make}" 3084fi 3085 3086rm -rf .tst 2>/dev/null 3087mkdir .tst 2>/dev/null 3088if test -d .tst; then 3089 am__leading_dot=. 3090else 3091 am__leading_dot=_ 3092fi 3093rmdir .tst 2>/dev/null 3094 3095# Check whether --enable-silent-rules was given. 3096if test "${enable_silent_rules+set}" = set; then : 3097 enableval=$enable_silent_rules; 3098fi 3099 3100case $enable_silent_rules in # ((( 3101 yes) AM_DEFAULT_VERBOSITY=0;; 3102 no) AM_DEFAULT_VERBOSITY=1;; 3103 *) AM_DEFAULT_VERBOSITY=1;; 3104esac 3105am_make=${MAKE-make} 3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3107$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3108if ${am_cv_make_support_nested_variables+:} false; then : 3109 $as_echo_n "(cached) " >&6 3110else 3111 if $as_echo 'TRUE=$(BAR$(V)) 3112BAR0=false 3113BAR1=true 3114V=1 3115am__doit: 3116 @$(TRUE) 3117.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3118 am_cv_make_support_nested_variables=yes 3119else 3120 am_cv_make_support_nested_variables=no 3121fi 3122fi 3123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3124$as_echo "$am_cv_make_support_nested_variables" >&6; } 3125if test $am_cv_make_support_nested_variables = yes; then 3126 AM_V='$(V)' 3127 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3128else 3129 AM_V=$AM_DEFAULT_VERBOSITY 3130 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3131fi 3132AM_BACKSLASH='\' 3133 3134if test "`cd $srcdir && pwd`" != "`pwd`"; then 3135 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3136 # is not polluted with repeated "-I." 3137 am__isrc=' -I$(srcdir)' 3138 # test to see if srcdir already configured 3139 if test -f $srcdir/config.status; then 3140 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3141 fi 3142fi 3143 3144# test whether we have cygpath 3145if test -z "$CYGPATH_W"; then 3146 if (cygpath --version) >/dev/null 2>/dev/null; then 3147 CYGPATH_W='cygpath -w' 3148 else 3149 CYGPATH_W=echo 3150 fi 3151fi 3152 3153 3154# Define the identity of the package. 3155 PACKAGE='libnpupnp' 3156 VERSION='4.1.5' 3157 3158 3159cat >>confdefs.h <<_ACEOF 3160#define PACKAGE "$PACKAGE" 3161_ACEOF 3162 3163 3164cat >>confdefs.h <<_ACEOF 3165#define VERSION "$VERSION" 3166_ACEOF 3167 3168# Some tools Automake needs. 3169 3170ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3171 3172 3173AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3174 3175 3176AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3177 3178 3179AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3180 3181 3182MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3183 3184# For better backward compatibility. To be removed once Automake 1.9.x 3185# dies out for good. For more background, see: 3186# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3187# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3188mkdir_p='$(MKDIR_P)' 3189 3190# We need awk for the "check" target (and possibly the TAP driver). The 3191# system "awk" is bad on some platforms. 3192# Always define AMTAR for backward compatibility. Yes, it's still used 3193# in the wild :-( We should find a proper way to deprecate it ... 3194AMTAR='$${TAR-tar}' 3195 3196 3197# We'll loop over all known methods to create a tar archive until one works. 3198_am_tools='gnutar pax cpio none' 3199 3200am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3201 3202 3203 3204 3205 3206 3207# POSIX will say in a future version that running "rm -f" with no argument 3208# is OK; and we want to be able to make that assumption in our Makefile 3209# recipes. So use an aggressive probe to check that the usage we want is 3210# actually supported "in the wild" to an acceptable degree. 3211# See automake bug#10828. 3212# To make any issue more visible, cause the running configure to be aborted 3213# by default if the 'rm' program in use doesn't match our expectations; the 3214# user can still override this though. 3215if rm -f && rm -fr && rm -rf; then : OK; else 3216 cat >&2 <<'END' 3217Oops! 3218 3219Your 'rm' program seems unable to run without file operands specified 3220on the command line, even when the '-f' option is present. This is contrary 3221to the behaviour of most rm programs out there, and not conforming with 3222the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3223 3224Please tell bug-automake@gnu.org about your system, including the value 3225of your $PATH and any error possibly output before this message. This 3226can help us improve future automake versions. 3227 3228END 3229 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3230 echo 'Configuration will proceed anyway, since you have set the' >&2 3231 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3232 echo >&2 3233 else 3234 cat >&2 <<'END' 3235Aborting the configuration process, to ensure you take notice of the issue. 3236 3237You can download and install GNU coreutils to get an 'rm' implementation 3238that behaves properly: <https://www.gnu.org/software/coreutils/>. 3239 3240If you want to complete the configuration process using your problematic 3241'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3242to "yes", and re-run configure. 3243 3244END 3245 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3246 fi 3247fi 3248 3249DEPDIR="${am__leading_dot}deps" 3250 3251ac_config_commands="$ac_config_commands depfiles" 3252 3253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3254$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3255cat > confinc.mk << 'END' 3256am__doit: 3257 @echo this is the am__doit target >confinc.out 3258.PHONY: am__doit 3259END 3260am__include="#" 3261am__quote= 3262# BSD make does it like this. 3263echo '.include "confinc.mk" # ignored' > confmf.BSD 3264# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3265echo 'include confinc.mk # ignored' > confmf.GNU 3266_am_result=no 3267for s in GNU BSD; do 3268 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3269 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3270 ac_status=$? 3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3272 (exit $ac_status); } 3273 case $?:`cat confinc.out 2>/dev/null` in #( 3274 '0:this is the am__doit target') : 3275 case $s in #( 3276 BSD) : 3277 am__include='.include' am__quote='"' ;; #( 3278 *) : 3279 am__include='include' am__quote='' ;; 3280esac ;; #( 3281 *) : 3282 ;; 3283esac 3284 if test "$am__include" != "#"; then 3285 _am_result="yes ($s style)" 3286 break 3287 fi 3288done 3289rm -f confinc.* confmf.* 3290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3291$as_echo "${_am_result}" >&6; } 3292 3293# Check whether --enable-dependency-tracking was given. 3294if test "${enable_dependency_tracking+set}" = set; then : 3295 enableval=$enable_dependency_tracking; 3296fi 3297 3298if test "x$enable_dependency_tracking" != xno; then 3299 am_depcomp="$ac_aux_dir/depcomp" 3300 AMDEPBACKSLASH='\' 3301 am__nodep='_no' 3302fi 3303 if test "x$enable_dependency_tracking" != xno; then 3304 AMDEP_TRUE= 3305 AMDEP_FALSE='#' 3306else 3307 AMDEP_TRUE='#' 3308 AMDEP_FALSE= 3309fi 3310 3311 3312ac_ext=c 3313ac_cpp='$CPP $CPPFLAGS' 3314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3316ac_compiler_gnu=$ac_cv_c_compiler_gnu 3317if test -n "$ac_tool_prefix"; then 3318 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3319set dummy ${ac_tool_prefix}gcc; ac_word=$2 3320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3321$as_echo_n "checking for $ac_word... " >&6; } 3322if ${ac_cv_prog_CC+:} false; then : 3323 $as_echo_n "(cached) " >&6 3324else 3325 if test -n "$CC"; then 3326 ac_cv_prog_CC="$CC" # Let the user override the test. 3327else 3328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3329for as_dir in $PATH 3330do 3331 IFS=$as_save_IFS 3332 test -z "$as_dir" && as_dir=. 3333 for ac_exec_ext in '' $ac_executable_extensions; do 3334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3335 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3337 break 2 3338 fi 3339done 3340 done 3341IFS=$as_save_IFS 3342 3343fi 3344fi 3345CC=$ac_cv_prog_CC 3346if test -n "$CC"; then 3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3348$as_echo "$CC" >&6; } 3349else 3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3351$as_echo "no" >&6; } 3352fi 3353 3354 3355fi 3356if test -z "$ac_cv_prog_CC"; then 3357 ac_ct_CC=$CC 3358 # Extract the first word of "gcc", so it can be a program name with args. 3359set dummy gcc; ac_word=$2 3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3361$as_echo_n "checking for $ac_word... " >&6; } 3362if ${ac_cv_prog_ac_ct_CC+:} false; then : 3363 $as_echo_n "(cached) " >&6 3364else 3365 if test -n "$ac_ct_CC"; then 3366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3367else 3368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3369for as_dir in $PATH 3370do 3371 IFS=$as_save_IFS 3372 test -z "$as_dir" && as_dir=. 3373 for ac_exec_ext in '' $ac_executable_extensions; do 3374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3375 ac_cv_prog_ac_ct_CC="gcc" 3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3377 break 2 3378 fi 3379done 3380 done 3381IFS=$as_save_IFS 3382 3383fi 3384fi 3385ac_ct_CC=$ac_cv_prog_ac_ct_CC 3386if test -n "$ac_ct_CC"; then 3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3388$as_echo "$ac_ct_CC" >&6; } 3389else 3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3391$as_echo "no" >&6; } 3392fi 3393 3394 if test "x$ac_ct_CC" = x; then 3395 CC="" 3396 else 3397 case $cross_compiling:$ac_tool_warned in 3398yes:) 3399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3401ac_tool_warned=yes ;; 3402esac 3403 CC=$ac_ct_CC 3404 fi 3405else 3406 CC="$ac_cv_prog_CC" 3407fi 3408 3409if test -z "$CC"; then 3410 if test -n "$ac_tool_prefix"; then 3411 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3412set dummy ${ac_tool_prefix}cc; ac_word=$2 3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3414$as_echo_n "checking for $ac_word... " >&6; } 3415if ${ac_cv_prog_CC+:} false; then : 3416 $as_echo_n "(cached) " >&6 3417else 3418 if test -n "$CC"; then 3419 ac_cv_prog_CC="$CC" # Let the user override the test. 3420else 3421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3422for as_dir in $PATH 3423do 3424 IFS=$as_save_IFS 3425 test -z "$as_dir" && as_dir=. 3426 for ac_exec_ext in '' $ac_executable_extensions; do 3427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3428 ac_cv_prog_CC="${ac_tool_prefix}cc" 3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3430 break 2 3431 fi 3432done 3433 done 3434IFS=$as_save_IFS 3435 3436fi 3437fi 3438CC=$ac_cv_prog_CC 3439if test -n "$CC"; then 3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3441$as_echo "$CC" >&6; } 3442else 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3444$as_echo "no" >&6; } 3445fi 3446 3447 3448 fi 3449fi 3450if test -z "$CC"; then 3451 # Extract the first word of "cc", so it can be a program name with args. 3452set dummy cc; ac_word=$2 3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3454$as_echo_n "checking for $ac_word... " >&6; } 3455if ${ac_cv_prog_CC+:} false; then : 3456 $as_echo_n "(cached) " >&6 3457else 3458 if test -n "$CC"; then 3459 ac_cv_prog_CC="$CC" # Let the user override the test. 3460else 3461 ac_prog_rejected=no 3462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3463for as_dir in $PATH 3464do 3465 IFS=$as_save_IFS 3466 test -z "$as_dir" && as_dir=. 3467 for ac_exec_ext in '' $ac_executable_extensions; do 3468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3469 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3470 ac_prog_rejected=yes 3471 continue 3472 fi 3473 ac_cv_prog_CC="cc" 3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3475 break 2 3476 fi 3477done 3478 done 3479IFS=$as_save_IFS 3480 3481if test $ac_prog_rejected = yes; then 3482 # We found a bogon in the path, so make sure we never use it. 3483 set dummy $ac_cv_prog_CC 3484 shift 3485 if test $# != 0; then 3486 # We chose a different compiler from the bogus one. 3487 # However, it has the same basename, so the bogon will be chosen 3488 # first if we set CC to just the basename; use the full file name. 3489 shift 3490 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3491 fi 3492fi 3493fi 3494fi 3495CC=$ac_cv_prog_CC 3496if test -n "$CC"; then 3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3498$as_echo "$CC" >&6; } 3499else 3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3501$as_echo "no" >&6; } 3502fi 3503 3504 3505fi 3506if test -z "$CC"; then 3507 if test -n "$ac_tool_prefix"; then 3508 for ac_prog in cl.exe 3509 do 3510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3511set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3513$as_echo_n "checking for $ac_word... " >&6; } 3514if ${ac_cv_prog_CC+:} false; then : 3515 $as_echo_n "(cached) " >&6 3516else 3517 if test -n "$CC"; then 3518 ac_cv_prog_CC="$CC" # Let the user override the test. 3519else 3520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3521for as_dir in $PATH 3522do 3523 IFS=$as_save_IFS 3524 test -z "$as_dir" && as_dir=. 3525 for ac_exec_ext in '' $ac_executable_extensions; do 3526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3527 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3529 break 2 3530 fi 3531done 3532 done 3533IFS=$as_save_IFS 3534 3535fi 3536fi 3537CC=$ac_cv_prog_CC 3538if test -n "$CC"; then 3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3540$as_echo "$CC" >&6; } 3541else 3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3543$as_echo "no" >&6; } 3544fi 3545 3546 3547 test -n "$CC" && break 3548 done 3549fi 3550if test -z "$CC"; then 3551 ac_ct_CC=$CC 3552 for ac_prog in cl.exe 3553do 3554 # Extract the first word of "$ac_prog", so it can be a program name with args. 3555set dummy $ac_prog; ac_word=$2 3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3557$as_echo_n "checking for $ac_word... " >&6; } 3558if ${ac_cv_prog_ac_ct_CC+:} false; then : 3559 $as_echo_n "(cached) " >&6 3560else 3561 if test -n "$ac_ct_CC"; then 3562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3563else 3564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3565for as_dir in $PATH 3566do 3567 IFS=$as_save_IFS 3568 test -z "$as_dir" && as_dir=. 3569 for ac_exec_ext in '' $ac_executable_extensions; do 3570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3571 ac_cv_prog_ac_ct_CC="$ac_prog" 3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3573 break 2 3574 fi 3575done 3576 done 3577IFS=$as_save_IFS 3578 3579fi 3580fi 3581ac_ct_CC=$ac_cv_prog_ac_ct_CC 3582if test -n "$ac_ct_CC"; then 3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3584$as_echo "$ac_ct_CC" >&6; } 3585else 3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3587$as_echo "no" >&6; } 3588fi 3589 3590 3591 test -n "$ac_ct_CC" && break 3592done 3593 3594 if test "x$ac_ct_CC" = x; then 3595 CC="" 3596 else 3597 case $cross_compiling:$ac_tool_warned in 3598yes:) 3599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3601ac_tool_warned=yes ;; 3602esac 3603 CC=$ac_ct_CC 3604 fi 3605fi 3606 3607fi 3608 3609 3610test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3612as_fn_error $? "no acceptable C compiler found in \$PATH 3613See \`config.log' for more details" "$LINENO" 5; } 3614 3615# Provide some information about the compiler. 3616$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3617set X $ac_compile 3618ac_compiler=$2 3619for ac_option in --version -v -V -qversion; do 3620 { { ac_try="$ac_compiler $ac_option >&5" 3621case "(($ac_try" in 3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3623 *) ac_try_echo=$ac_try;; 3624esac 3625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3626$as_echo "$ac_try_echo"; } >&5 3627 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3628 ac_status=$? 3629 if test -s conftest.err; then 3630 sed '10a\ 3631... rest of stderr output deleted ... 3632 10q' conftest.err >conftest.er1 3633 cat conftest.er1 >&5 3634 fi 3635 rm -f conftest.er1 conftest.err 3636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3637 test $ac_status = 0; } 3638done 3639 3640cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3641/* end confdefs.h. */ 3642 3643int 3644main () 3645{ 3646 3647 ; 3648 return 0; 3649} 3650_ACEOF 3651ac_clean_files_save=$ac_clean_files 3652ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3653# Try to create an executable without -o first, disregard a.out. 3654# It will help us diagnose broken compilers, and finding out an intuition 3655# of exeext. 3656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3657$as_echo_n "checking whether the C compiler works... " >&6; } 3658ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3659 3660# The possible output files: 3661ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3662 3663ac_rmfiles= 3664for ac_file in $ac_files 3665do 3666 case $ac_file in 3667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3668 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3669 esac 3670done 3671rm -f $ac_rmfiles 3672 3673if { { ac_try="$ac_link_default" 3674case "(($ac_try" in 3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3676 *) ac_try_echo=$ac_try;; 3677esac 3678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3679$as_echo "$ac_try_echo"; } >&5 3680 (eval "$ac_link_default") 2>&5 3681 ac_status=$? 3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3683 test $ac_status = 0; }; then : 3684 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3685# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3686# in a Makefile. We should not override ac_cv_exeext if it was cached, 3687# so that the user can short-circuit this test for compilers unknown to 3688# Autoconf. 3689for ac_file in $ac_files '' 3690do 3691 test -f "$ac_file" || continue 3692 case $ac_file in 3693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3694 ;; 3695 [ab].out ) 3696 # We found the default executable, but exeext='' is most 3697 # certainly right. 3698 break;; 3699 *.* ) 3700 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3701 then :; else 3702 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3703 fi 3704 # We set ac_cv_exeext here because the later test for it is not 3705 # safe: cross compilers may not add the suffix if given an `-o' 3706 # argument, so we may need to know it at that point already. 3707 # Even if this section looks crufty: it has the advantage of 3708 # actually working. 3709 break;; 3710 * ) 3711 break;; 3712 esac 3713done 3714test "$ac_cv_exeext" = no && ac_cv_exeext= 3715 3716else 3717 ac_file='' 3718fi 3719if test -z "$ac_file"; then : 3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3721$as_echo "no" >&6; } 3722$as_echo "$as_me: failed program was:" >&5 3723sed 's/^/| /' conftest.$ac_ext >&5 3724 3725{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3726$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3727as_fn_error 77 "C compiler cannot create executables 3728See \`config.log' for more details" "$LINENO" 5; } 3729else 3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3731$as_echo "yes" >&6; } 3732fi 3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3734$as_echo_n "checking for C compiler default output file name... " >&6; } 3735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3736$as_echo "$ac_file" >&6; } 3737ac_exeext=$ac_cv_exeext 3738 3739rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3740ac_clean_files=$ac_clean_files_save 3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3742$as_echo_n "checking for suffix of executables... " >&6; } 3743if { { ac_try="$ac_link" 3744case "(($ac_try" in 3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3746 *) ac_try_echo=$ac_try;; 3747esac 3748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3749$as_echo "$ac_try_echo"; } >&5 3750 (eval "$ac_link") 2>&5 3751 ac_status=$? 3752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3753 test $ac_status = 0; }; then : 3754 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3755# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3756# work properly (i.e., refer to `conftest.exe'), while it won't with 3757# `rm'. 3758for ac_file in conftest.exe conftest conftest.*; do 3759 test -f "$ac_file" || continue 3760 case $ac_file in 3761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3762 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3763 break;; 3764 * ) break;; 3765 esac 3766done 3767else 3768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3770as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3771See \`config.log' for more details" "$LINENO" 5; } 3772fi 3773rm -f conftest conftest$ac_cv_exeext 3774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3775$as_echo "$ac_cv_exeext" >&6; } 3776 3777rm -f conftest.$ac_ext 3778EXEEXT=$ac_cv_exeext 3779ac_exeext=$EXEEXT 3780cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3781/* end confdefs.h. */ 3782#include <stdio.h> 3783int 3784main () 3785{ 3786FILE *f = fopen ("conftest.out", "w"); 3787 return ferror (f) || fclose (f) != 0; 3788 3789 ; 3790 return 0; 3791} 3792_ACEOF 3793ac_clean_files="$ac_clean_files conftest.out" 3794# Check that the compiler produces executables we can run. If not, either 3795# the compiler is broken, or we cross compile. 3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3797$as_echo_n "checking whether we are cross compiling... " >&6; } 3798if test "$cross_compiling" != yes; then 3799 { { ac_try="$ac_link" 3800case "(($ac_try" in 3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3802 *) ac_try_echo=$ac_try;; 3803esac 3804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3805$as_echo "$ac_try_echo"; } >&5 3806 (eval "$ac_link") 2>&5 3807 ac_status=$? 3808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3809 test $ac_status = 0; } 3810 if { ac_try='./conftest$ac_cv_exeext' 3811 { { case "(($ac_try" in 3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3813 *) ac_try_echo=$ac_try;; 3814esac 3815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3816$as_echo "$ac_try_echo"; } >&5 3817 (eval "$ac_try") 2>&5 3818 ac_status=$? 3819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3820 test $ac_status = 0; }; }; then 3821 cross_compiling=no 3822 else 3823 if test "$cross_compiling" = maybe; then 3824 cross_compiling=yes 3825 else 3826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3828as_fn_error $? "cannot run C compiled programs. 3829If you meant to cross compile, use \`--host'. 3830See \`config.log' for more details" "$LINENO" 5; } 3831 fi 3832 fi 3833fi 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3835$as_echo "$cross_compiling" >&6; } 3836 3837rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3838ac_clean_files=$ac_clean_files_save 3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3840$as_echo_n "checking for suffix of object files... " >&6; } 3841if ${ac_cv_objext+:} false; then : 3842 $as_echo_n "(cached) " >&6 3843else 3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3845/* end confdefs.h. */ 3846 3847int 3848main () 3849{ 3850 3851 ; 3852 return 0; 3853} 3854_ACEOF 3855rm -f conftest.o conftest.obj 3856if { { ac_try="$ac_compile" 3857case "(($ac_try" in 3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3859 *) ac_try_echo=$ac_try;; 3860esac 3861eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3862$as_echo "$ac_try_echo"; } >&5 3863 (eval "$ac_compile") 2>&5 3864 ac_status=$? 3865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3866 test $ac_status = 0; }; then : 3867 for ac_file in conftest.o conftest.obj conftest.*; do 3868 test -f "$ac_file" || continue; 3869 case $ac_file in 3870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3871 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3872 break;; 3873 esac 3874done 3875else 3876 $as_echo "$as_me: failed program was:" >&5 3877sed 's/^/| /' conftest.$ac_ext >&5 3878 3879{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3880$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3881as_fn_error $? "cannot compute suffix of object files: cannot compile 3882See \`config.log' for more details" "$LINENO" 5; } 3883fi 3884rm -f conftest.$ac_cv_objext conftest.$ac_ext 3885fi 3886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3887$as_echo "$ac_cv_objext" >&6; } 3888OBJEXT=$ac_cv_objext 3889ac_objext=$OBJEXT 3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3891$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3892if ${ac_cv_c_compiler_gnu+:} false; then : 3893 $as_echo_n "(cached) " >&6 3894else 3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3896/* end confdefs.h. */ 3897 3898int 3899main () 3900{ 3901#ifndef __GNUC__ 3902 choke me 3903#endif 3904 3905 ; 3906 return 0; 3907} 3908_ACEOF 3909if ac_fn_c_try_compile "$LINENO"; then : 3910 ac_compiler_gnu=yes 3911else 3912 ac_compiler_gnu=no 3913fi 3914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3915ac_cv_c_compiler_gnu=$ac_compiler_gnu 3916 3917fi 3918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3919$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3920if test $ac_compiler_gnu = yes; then 3921 GCC=yes 3922else 3923 GCC= 3924fi 3925ac_test_CFLAGS=${CFLAGS+set} 3926ac_save_CFLAGS=$CFLAGS 3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3928$as_echo_n "checking whether $CC accepts -g... " >&6; } 3929if ${ac_cv_prog_cc_g+:} false; then : 3930 $as_echo_n "(cached) " >&6 3931else 3932 ac_save_c_werror_flag=$ac_c_werror_flag 3933 ac_c_werror_flag=yes 3934 ac_cv_prog_cc_g=no 3935 CFLAGS="-g" 3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3937/* end confdefs.h. */ 3938 3939int 3940main () 3941{ 3942 3943 ; 3944 return 0; 3945} 3946_ACEOF 3947if ac_fn_c_try_compile "$LINENO"; then : 3948 ac_cv_prog_cc_g=yes 3949else 3950 CFLAGS="" 3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3952/* end confdefs.h. */ 3953 3954int 3955main () 3956{ 3957 3958 ; 3959 return 0; 3960} 3961_ACEOF 3962if ac_fn_c_try_compile "$LINENO"; then : 3963 3964else 3965 ac_c_werror_flag=$ac_save_c_werror_flag 3966 CFLAGS="-g" 3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3968/* end confdefs.h. */ 3969 3970int 3971main () 3972{ 3973 3974 ; 3975 return 0; 3976} 3977_ACEOF 3978if ac_fn_c_try_compile "$LINENO"; then : 3979 ac_cv_prog_cc_g=yes 3980fi 3981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3982fi 3983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3984fi 3985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3986 ac_c_werror_flag=$ac_save_c_werror_flag 3987fi 3988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3989$as_echo "$ac_cv_prog_cc_g" >&6; } 3990if test "$ac_test_CFLAGS" = set; then 3991 CFLAGS=$ac_save_CFLAGS 3992elif test $ac_cv_prog_cc_g = yes; then 3993 if test "$GCC" = yes; then 3994 CFLAGS="-g -O2" 3995 else 3996 CFLAGS="-g" 3997 fi 3998else 3999 if test "$GCC" = yes; then 4000 CFLAGS="-O2" 4001 else 4002 CFLAGS= 4003 fi 4004fi 4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4006$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4007if ${ac_cv_prog_cc_c89+:} false; then : 4008 $as_echo_n "(cached) " >&6 4009else 4010 ac_cv_prog_cc_c89=no 4011ac_save_CC=$CC 4012cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4013/* end confdefs.h. */ 4014#include <stdarg.h> 4015#include <stdio.h> 4016struct stat; 4017/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4018struct buf { int x; }; 4019FILE * (*rcsopen) (struct buf *, struct stat *, int); 4020static char *e (p, i) 4021 char **p; 4022 int i; 4023{ 4024 return p[i]; 4025} 4026static char *f (char * (*g) (char **, int), char **p, ...) 4027{ 4028 char *s; 4029 va_list v; 4030 va_start (v,p); 4031 s = g (p, va_arg (v,int)); 4032 va_end (v); 4033 return s; 4034} 4035 4036/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4037 function prototypes and stuff, but not '\xHH' hex character constants. 4038 These don't provoke an error unfortunately, instead are silently treated 4039 as 'x'. The following induces an error, until -std is added to get 4040 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4041 array size at least. It's necessary to write '\x00'==0 to get something 4042 that's true only with -std. */ 4043int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4044 4045/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4046 inside strings and character constants. */ 4047#define FOO(x) 'x' 4048int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4049 4050int test (int i, double x); 4051struct s1 {int (*f) (int a);}; 4052struct s2 {int (*f) (double a);}; 4053int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4054int argc; 4055char **argv; 4056int 4057main () 4058{ 4059return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4060 ; 4061 return 0; 4062} 4063_ACEOF 4064for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4065 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4066do 4067 CC="$ac_save_CC $ac_arg" 4068 if ac_fn_c_try_compile "$LINENO"; then : 4069 ac_cv_prog_cc_c89=$ac_arg 4070fi 4071rm -f core conftest.err conftest.$ac_objext 4072 test "x$ac_cv_prog_cc_c89" != "xno" && break 4073done 4074rm -f conftest.$ac_ext 4075CC=$ac_save_CC 4076 4077fi 4078# AC_CACHE_VAL 4079case "x$ac_cv_prog_cc_c89" in 4080 x) 4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4082$as_echo "none needed" >&6; } ;; 4083 xno) 4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4085$as_echo "unsupported" >&6; } ;; 4086 *) 4087 CC="$CC $ac_cv_prog_cc_c89" 4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4089$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4090esac 4091if test "x$ac_cv_prog_cc_c89" != xno; then : 4092 4093fi 4094 4095ac_ext=c 4096ac_cpp='$CPP $CPPFLAGS' 4097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4099ac_compiler_gnu=$ac_cv_c_compiler_gnu 4100 4101ac_ext=c 4102ac_cpp='$CPP $CPPFLAGS' 4103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4105ac_compiler_gnu=$ac_cv_c_compiler_gnu 4106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4107$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4108if ${am_cv_prog_cc_c_o+:} false; then : 4109 $as_echo_n "(cached) " >&6 4110else 4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4112/* end confdefs.h. */ 4113 4114int 4115main () 4116{ 4117 4118 ; 4119 return 0; 4120} 4121_ACEOF 4122 # Make sure it works both with $CC and with simple cc. 4123 # Following AC_PROG_CC_C_O, we do the test twice because some 4124 # compilers refuse to overwrite an existing .o file with -o, 4125 # though they will create one. 4126 am_cv_prog_cc_c_o=yes 4127 for am_i in 1 2; do 4128 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4129 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4130 ac_status=$? 4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4132 (exit $ac_status); } \ 4133 && test -f conftest2.$ac_objext; then 4134 : OK 4135 else 4136 am_cv_prog_cc_c_o=no 4137 break 4138 fi 4139 done 4140 rm -f core conftest* 4141 unset am_i 4142fi 4143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4144$as_echo "$am_cv_prog_cc_c_o" >&6; } 4145if test "$am_cv_prog_cc_c_o" != yes; then 4146 # Losing compiler, so override with the script. 4147 # FIXME: It is wrong to rewrite CC. 4148 # But if we don't then we get into trouble of one sort or another. 4149 # A longer-term fix would be to have automake use am__CC in this case, 4150 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4151 CC="$am_aux_dir/compile $CC" 4152fi 4153ac_ext=c 4154ac_cpp='$CPP $CPPFLAGS' 4155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4157ac_compiler_gnu=$ac_cv_c_compiler_gnu 4158 4159 4160depcc="$CC" am_compiler_list= 4161 4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4163$as_echo_n "checking dependency style of $depcc... " >&6; } 4164if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4165 $as_echo_n "(cached) " >&6 4166else 4167 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4168 # We make a subdir and do the tests there. Otherwise we can end up 4169 # making bogus files that we don't know about and never remove. For 4170 # instance it was reported that on HP-UX the gcc test will end up 4171 # making a dummy file named 'D' -- because '-MD' means "put the output 4172 # in D". 4173 rm -rf conftest.dir 4174 mkdir conftest.dir 4175 # Copy depcomp to subdir because otherwise we won't find it if we're 4176 # using a relative directory. 4177 cp "$am_depcomp" conftest.dir 4178 cd conftest.dir 4179 # We will build objects and dependencies in a subdirectory because 4180 # it helps to detect inapplicable dependency modes. For instance 4181 # both Tru64's cc and ICC support -MD to output dependencies as a 4182 # side effect of compilation, but ICC will put the dependencies in 4183 # the current directory while Tru64 will put them in the object 4184 # directory. 4185 mkdir sub 4186 4187 am_cv_CC_dependencies_compiler_type=none 4188 if test "$am_compiler_list" = ""; then 4189 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4190 fi 4191 am__universal=false 4192 case " $depcc " in #( 4193 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4194 esac 4195 4196 for depmode in $am_compiler_list; do 4197 # Setup a source with many dependencies, because some compilers 4198 # like to wrap large dependency lists on column 80 (with \), and 4199 # we should not choose a depcomp mode which is confused by this. 4200 # 4201 # We need to recreate these files for each test, as the compiler may 4202 # overwrite some of them when testing with obscure command lines. 4203 # This happens at least with the AIX C compiler. 4204 : > sub/conftest.c 4205 for i in 1 2 3 4 5 6; do 4206 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4207 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4208 # Solaris 10 /bin/sh. 4209 echo '/* dummy */' > sub/conftst$i.h 4210 done 4211 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4212 4213 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4214 # mode. It turns out that the SunPro C++ compiler does not properly 4215 # handle '-M -o', and we need to detect this. Also, some Intel 4216 # versions had trouble with output in subdirs. 4217 am__obj=sub/conftest.${OBJEXT-o} 4218 am__minus_obj="-o $am__obj" 4219 case $depmode in 4220 gcc) 4221 # This depmode causes a compiler race in universal mode. 4222 test "$am__universal" = false || continue 4223 ;; 4224 nosideeffect) 4225 # After this tag, mechanisms are not by side-effect, so they'll 4226 # only be used when explicitly requested. 4227 if test "x$enable_dependency_tracking" = xyes; then 4228 continue 4229 else 4230 break 4231 fi 4232 ;; 4233 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4234 # This compiler won't grok '-c -o', but also, the minuso test has 4235 # not run yet. These depmodes are late enough in the game, and 4236 # so weak that their functioning should not be impacted. 4237 am__obj=conftest.${OBJEXT-o} 4238 am__minus_obj= 4239 ;; 4240 none) break ;; 4241 esac 4242 if depmode=$depmode \ 4243 source=sub/conftest.c object=$am__obj \ 4244 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4245 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4246 >/dev/null 2>conftest.err && 4247 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4248 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4249 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4250 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4251 # icc doesn't choke on unknown options, it will just issue warnings 4252 # or remarks (even with -Werror). So we grep stderr for any message 4253 # that says an option was ignored or not supported. 4254 # When given -MP, icc 7.0 and 7.1 complain thusly: 4255 # icc: Command line warning: ignoring option '-M'; no argument required 4256 # The diagnosis changed in icc 8.0: 4257 # icc: Command line remark: option '-MP' not supported 4258 if (grep 'ignoring option' conftest.err || 4259 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4260 am_cv_CC_dependencies_compiler_type=$depmode 4261 break 4262 fi 4263 fi 4264 done 4265 4266 cd .. 4267 rm -rf conftest.dir 4268else 4269 am_cv_CC_dependencies_compiler_type=none 4270fi 4271 4272fi 4273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4274$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4275CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4276 4277 if 4278 test "x$enable_dependency_tracking" != xno \ 4279 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4280 am__fastdepCC_TRUE= 4281 am__fastdepCC_FALSE='#' 4282else 4283 am__fastdepCC_TRUE='#' 4284 am__fastdepCC_FALSE= 4285fi 4286 4287 4288 4289if test -n "$ac_tool_prefix"; then 4290 for ac_prog in ar lib "link -lib" 4291 do 4292 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4293set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4295$as_echo_n "checking for $ac_word... " >&6; } 4296if ${ac_cv_prog_AR+:} false; then : 4297 $as_echo_n "(cached) " >&6 4298else 4299 if test -n "$AR"; then 4300 ac_cv_prog_AR="$AR" # Let the user override the test. 4301else 4302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4303for as_dir in $PATH 4304do 4305 IFS=$as_save_IFS 4306 test -z "$as_dir" && as_dir=. 4307 for ac_exec_ext in '' $ac_executable_extensions; do 4308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4309 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4311 break 2 4312 fi 4313done 4314 done 4315IFS=$as_save_IFS 4316 4317fi 4318fi 4319AR=$ac_cv_prog_AR 4320if test -n "$AR"; then 4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4322$as_echo "$AR" >&6; } 4323else 4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4325$as_echo "no" >&6; } 4326fi 4327 4328 4329 test -n "$AR" && break 4330 done 4331fi 4332if test -z "$AR"; then 4333 ac_ct_AR=$AR 4334 for ac_prog in ar lib "link -lib" 4335do 4336 # Extract the first word of "$ac_prog", so it can be a program name with args. 4337set dummy $ac_prog; ac_word=$2 4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4339$as_echo_n "checking for $ac_word... " >&6; } 4340if ${ac_cv_prog_ac_ct_AR+:} false; then : 4341 $as_echo_n "(cached) " >&6 4342else 4343 if test -n "$ac_ct_AR"; then 4344 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4345else 4346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4347for as_dir in $PATH 4348do 4349 IFS=$as_save_IFS 4350 test -z "$as_dir" && as_dir=. 4351 for ac_exec_ext in '' $ac_executable_extensions; do 4352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4353 ac_cv_prog_ac_ct_AR="$ac_prog" 4354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4355 break 2 4356 fi 4357done 4358 done 4359IFS=$as_save_IFS 4360 4361fi 4362fi 4363ac_ct_AR=$ac_cv_prog_ac_ct_AR 4364if test -n "$ac_ct_AR"; then 4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4366$as_echo "$ac_ct_AR" >&6; } 4367else 4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4369$as_echo "no" >&6; } 4370fi 4371 4372 4373 test -n "$ac_ct_AR" && break 4374done 4375 4376 if test "x$ac_ct_AR" = x; then 4377 AR="false" 4378 else 4379 case $cross_compiling:$ac_tool_warned in 4380yes:) 4381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4383ac_tool_warned=yes ;; 4384esac 4385 AR=$ac_ct_AR 4386 fi 4387fi 4388 4389: ${AR=ar} 4390 4391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4392$as_echo_n "checking the archiver ($AR) interface... " >&6; } 4393if ${am_cv_ar_interface+:} false; then : 4394 $as_echo_n "(cached) " >&6 4395else 4396 ac_ext=c 4397ac_cpp='$CPP $CPPFLAGS' 4398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4400ac_compiler_gnu=$ac_cv_c_compiler_gnu 4401 4402 am_cv_ar_interface=ar 4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4404/* end confdefs.h. */ 4405int some_variable = 0; 4406_ACEOF 4407if ac_fn_c_try_compile "$LINENO"; then : 4408 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4410 (eval $am_ar_try) 2>&5 4411 ac_status=$? 4412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4413 test $ac_status = 0; } 4414 if test "$ac_status" -eq 0; then 4415 am_cv_ar_interface=ar 4416 else 4417 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4419 (eval $am_ar_try) 2>&5 4420 ac_status=$? 4421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4422 test $ac_status = 0; } 4423 if test "$ac_status" -eq 0; then 4424 am_cv_ar_interface=lib 4425 else 4426 am_cv_ar_interface=unknown 4427 fi 4428 fi 4429 rm -f conftest.lib libconftest.a 4430 4431fi 4432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4433 ac_ext=c 4434ac_cpp='$CPP $CPPFLAGS' 4435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4437ac_compiler_gnu=$ac_cv_c_compiler_gnu 4438 4439fi 4440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4441$as_echo "$am_cv_ar_interface" >&6; } 4442 4443case $am_cv_ar_interface in 4444ar) 4445 ;; 4446lib) 4447 # Microsoft lib, so override with the ar-lib wrapper script. 4448 # FIXME: It is wrong to rewrite AR. 4449 # But if we don't then we get into trouble of one sort or another. 4450 # A longer-term fix would be to have automake use am__AR in this case, 4451 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4452 # similar. 4453 AR="$am_aux_dir/ar-lib $AR" 4454 ;; 4455unknown) 4456 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4457 ;; 4458esac 4459 4460# Check whether --enable-static was given. 4461if test "${enable_static+set}" = set; then : 4462 enableval=$enable_static; p=${PACKAGE-default} 4463 case $enableval in 4464 yes) enable_static=yes ;; 4465 no) enable_static=no ;; 4466 *) 4467 enable_static=no 4468 # Look at the argument we got. We use all the common list separators. 4469 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 4470 for pkg in $enableval; do 4471 IFS=$lt_save_ifs 4472 if test "X$pkg" = "X$p"; then 4473 enable_static=yes 4474 fi 4475 done 4476 IFS=$lt_save_ifs 4477 ;; 4478 esac 4479else 4480 enable_static=no 4481fi 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491case `pwd` in 4492 *\ * | *\ *) 4493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4494$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4495esac 4496 4497 4498 4499macro_version='2.4.6' 4500macro_revision='2.4.6' 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514ltmain=$ac_aux_dir/ltmain.sh 4515 4516# Backslashify metacharacters that are still active within 4517# double-quoted strings. 4518sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4519 4520# Same as above, but do not quote variable references. 4521double_quote_subst='s/\(["`\\]\)/\\\1/g' 4522 4523# Sed substitution to delay expansion of an escaped shell variable in a 4524# double_quote_subst'ed string. 4525delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4526 4527# Sed substitution to delay expansion of an escaped single quote. 4528delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4529 4530# Sed substitution to avoid accidental globbing in evaled expressions 4531no_glob_subst='s/\*/\\\*/g' 4532 4533ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4534ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4535ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4536 4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4538$as_echo_n "checking how to print strings... " >&6; } 4539# Test print first, because it will be a builtin if present. 4540if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4541 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4542 ECHO='print -r --' 4543elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4544 ECHO='printf %s\n' 4545else 4546 # Use this function as a fallback that always works. 4547 func_fallback_echo () 4548 { 4549 eval 'cat <<_LTECHO_EOF 4550$1 4551_LTECHO_EOF' 4552 } 4553 ECHO='func_fallback_echo' 4554fi 4555 4556# func_echo_all arg... 4557# Invoke $ECHO with all args, space-separated. 4558func_echo_all () 4559{ 4560 $ECHO "" 4561} 4562 4563case $ECHO in 4564 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4565$as_echo "printf" >&6; } ;; 4566 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4567$as_echo "print -r" >&6; } ;; 4568 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4569$as_echo "cat" >&6; } ;; 4570esac 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4586$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4587if ${ac_cv_path_SED+:} false; then : 4588 $as_echo_n "(cached) " >&6 4589else 4590 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4591 for ac_i in 1 2 3 4 5 6 7; do 4592 ac_script="$ac_script$as_nl$ac_script" 4593 done 4594 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4595 { ac_script=; unset ac_script;} 4596 if test -z "$SED"; then 4597 ac_path_SED_found=false 4598 # Loop through the user's path and test for each of PROGNAME-LIST 4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4600for as_dir in $PATH 4601do 4602 IFS=$as_save_IFS 4603 test -z "$as_dir" && as_dir=. 4604 for ac_prog in sed gsed; do 4605 for ac_exec_ext in '' $ac_executable_extensions; do 4606 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4607 as_fn_executable_p "$ac_path_SED" || continue 4608# Check for GNU ac_path_SED and select it if it is found. 4609 # Check for GNU $ac_path_SED 4610case `"$ac_path_SED" --version 2>&1` in 4611*GNU*) 4612 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4613*) 4614 ac_count=0 4615 $as_echo_n 0123456789 >"conftest.in" 4616 while : 4617 do 4618 cat "conftest.in" "conftest.in" >"conftest.tmp" 4619 mv "conftest.tmp" "conftest.in" 4620 cp "conftest.in" "conftest.nl" 4621 $as_echo '' >> "conftest.nl" 4622 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4624 as_fn_arith $ac_count + 1 && ac_count=$as_val 4625 if test $ac_count -gt ${ac_path_SED_max-0}; then 4626 # Best one so far, save it but keep looking for a better one 4627 ac_cv_path_SED="$ac_path_SED" 4628 ac_path_SED_max=$ac_count 4629 fi 4630 # 10*(2^10) chars as input seems more than enough 4631 test $ac_count -gt 10 && break 4632 done 4633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4634esac 4635 4636 $ac_path_SED_found && break 3 4637 done 4638 done 4639 done 4640IFS=$as_save_IFS 4641 if test -z "$ac_cv_path_SED"; then 4642 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4643 fi 4644else 4645 ac_cv_path_SED=$SED 4646fi 4647 4648fi 4649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4650$as_echo "$ac_cv_path_SED" >&6; } 4651 SED="$ac_cv_path_SED" 4652 rm -f conftest.sed 4653 4654test -z "$SED" && SED=sed 4655Xsed="$SED -e 1s/^X//" 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4668$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4669if ${ac_cv_path_GREP+:} false; then : 4670 $as_echo_n "(cached) " >&6 4671else 4672 if test -z "$GREP"; then 4673 ac_path_GREP_found=false 4674 # Loop through the user's path and test for each of PROGNAME-LIST 4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4676for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4677do 4678 IFS=$as_save_IFS 4679 test -z "$as_dir" && as_dir=. 4680 for ac_prog in grep ggrep; do 4681 for ac_exec_ext in '' $ac_executable_extensions; do 4682 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4683 as_fn_executable_p "$ac_path_GREP" || continue 4684# Check for GNU ac_path_GREP and select it if it is found. 4685 # Check for GNU $ac_path_GREP 4686case `"$ac_path_GREP" --version 2>&1` in 4687*GNU*) 4688 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4689*) 4690 ac_count=0 4691 $as_echo_n 0123456789 >"conftest.in" 4692 while : 4693 do 4694 cat "conftest.in" "conftest.in" >"conftest.tmp" 4695 mv "conftest.tmp" "conftest.in" 4696 cp "conftest.in" "conftest.nl" 4697 $as_echo 'GREP' >> "conftest.nl" 4698 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4699 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4700 as_fn_arith $ac_count + 1 && ac_count=$as_val 4701 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4702 # Best one so far, save it but keep looking for a better one 4703 ac_cv_path_GREP="$ac_path_GREP" 4704 ac_path_GREP_max=$ac_count 4705 fi 4706 # 10*(2^10) chars as input seems more than enough 4707 test $ac_count -gt 10 && break 4708 done 4709 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4710esac 4711 4712 $ac_path_GREP_found && break 3 4713 done 4714 done 4715 done 4716IFS=$as_save_IFS 4717 if test -z "$ac_cv_path_GREP"; then 4718 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4719 fi 4720else 4721 ac_cv_path_GREP=$GREP 4722fi 4723 4724fi 4725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4726$as_echo "$ac_cv_path_GREP" >&6; } 4727 GREP="$ac_cv_path_GREP" 4728 4729 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4731$as_echo_n "checking for egrep... " >&6; } 4732if ${ac_cv_path_EGREP+:} false; then : 4733 $as_echo_n "(cached) " >&6 4734else 4735 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4736 then ac_cv_path_EGREP="$GREP -E" 4737 else 4738 if test -z "$EGREP"; then 4739 ac_path_EGREP_found=false 4740 # Loop through the user's path and test for each of PROGNAME-LIST 4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4742for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4743do 4744 IFS=$as_save_IFS 4745 test -z "$as_dir" && as_dir=. 4746 for ac_prog in egrep; do 4747 for ac_exec_ext in '' $ac_executable_extensions; do 4748 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4749 as_fn_executable_p "$ac_path_EGREP" || continue 4750# Check for GNU ac_path_EGREP and select it if it is found. 4751 # Check for GNU $ac_path_EGREP 4752case `"$ac_path_EGREP" --version 2>&1` in 4753*GNU*) 4754 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4755*) 4756 ac_count=0 4757 $as_echo_n 0123456789 >"conftest.in" 4758 while : 4759 do 4760 cat "conftest.in" "conftest.in" >"conftest.tmp" 4761 mv "conftest.tmp" "conftest.in" 4762 cp "conftest.in" "conftest.nl" 4763 $as_echo 'EGREP' >> "conftest.nl" 4764 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4766 as_fn_arith $ac_count + 1 && ac_count=$as_val 4767 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4768 # Best one so far, save it but keep looking for a better one 4769 ac_cv_path_EGREP="$ac_path_EGREP" 4770 ac_path_EGREP_max=$ac_count 4771 fi 4772 # 10*(2^10) chars as input seems more than enough 4773 test $ac_count -gt 10 && break 4774 done 4775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4776esac 4777 4778 $ac_path_EGREP_found && break 3 4779 done 4780 done 4781 done 4782IFS=$as_save_IFS 4783 if test -z "$ac_cv_path_EGREP"; then 4784 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4785 fi 4786else 4787 ac_cv_path_EGREP=$EGREP 4788fi 4789 4790 fi 4791fi 4792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4793$as_echo "$ac_cv_path_EGREP" >&6; } 4794 EGREP="$ac_cv_path_EGREP" 4795 4796 4797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4798$as_echo_n "checking for fgrep... " >&6; } 4799if ${ac_cv_path_FGREP+:} false; then : 4800 $as_echo_n "(cached) " >&6 4801else 4802 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4803 then ac_cv_path_FGREP="$GREP -F" 4804 else 4805 if test -z "$FGREP"; then 4806 ac_path_FGREP_found=false 4807 # Loop through the user's path and test for each of PROGNAME-LIST 4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4809for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4810do 4811 IFS=$as_save_IFS 4812 test -z "$as_dir" && as_dir=. 4813 for ac_prog in fgrep; do 4814 for ac_exec_ext in '' $ac_executable_extensions; do 4815 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4816 as_fn_executable_p "$ac_path_FGREP" || continue 4817# Check for GNU ac_path_FGREP and select it if it is found. 4818 # Check for GNU $ac_path_FGREP 4819case `"$ac_path_FGREP" --version 2>&1` in 4820*GNU*) 4821 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4822*) 4823 ac_count=0 4824 $as_echo_n 0123456789 >"conftest.in" 4825 while : 4826 do 4827 cat "conftest.in" "conftest.in" >"conftest.tmp" 4828 mv "conftest.tmp" "conftest.in" 4829 cp "conftest.in" "conftest.nl" 4830 $as_echo 'FGREP' >> "conftest.nl" 4831 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4832 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4833 as_fn_arith $ac_count + 1 && ac_count=$as_val 4834 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4835 # Best one so far, save it but keep looking for a better one 4836 ac_cv_path_FGREP="$ac_path_FGREP" 4837 ac_path_FGREP_max=$ac_count 4838 fi 4839 # 10*(2^10) chars as input seems more than enough 4840 test $ac_count -gt 10 && break 4841 done 4842 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4843esac 4844 4845 $ac_path_FGREP_found && break 3 4846 done 4847 done 4848 done 4849IFS=$as_save_IFS 4850 if test -z "$ac_cv_path_FGREP"; then 4851 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4852 fi 4853else 4854 ac_cv_path_FGREP=$FGREP 4855fi 4856 4857 fi 4858fi 4859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4860$as_echo "$ac_cv_path_FGREP" >&6; } 4861 FGREP="$ac_cv_path_FGREP" 4862 4863 4864test -z "$GREP" && GREP=grep 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884# Check whether --with-gnu-ld was given. 4885if test "${with_gnu_ld+set}" = set; then : 4886 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4887else 4888 with_gnu_ld=no 4889fi 4890 4891ac_prog=ld 4892if test yes = "$GCC"; then 4893 # Check if gcc -print-prog-name=ld gives a path. 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4895$as_echo_n "checking for ld used by $CC... " >&6; } 4896 case $host in 4897 *-*-mingw*) 4898 # gcc leaves a trailing carriage return, which upsets mingw 4899 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4900 *) 4901 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4902 esac 4903 case $ac_prog in 4904 # Accept absolute paths. 4905 [\\/]* | ?:[\\/]*) 4906 re_direlt='/[^/][^/]*/\.\./' 4907 # Canonicalize the pathname of ld 4908 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4909 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4910 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4911 done 4912 test -z "$LD" && LD=$ac_prog 4913 ;; 4914 "") 4915 # If it fails, then pretend we aren't using GCC. 4916 ac_prog=ld 4917 ;; 4918 *) 4919 # If it is relative, then search for the first ld in PATH. 4920 with_gnu_ld=unknown 4921 ;; 4922 esac 4923elif test yes = "$with_gnu_ld"; then 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4925$as_echo_n "checking for GNU ld... " >&6; } 4926else 4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4928$as_echo_n "checking for non-GNU ld... " >&6; } 4929fi 4930if ${lt_cv_path_LD+:} false; then : 4931 $as_echo_n "(cached) " >&6 4932else 4933 if test -z "$LD"; then 4934 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4935 for ac_dir in $PATH; do 4936 IFS=$lt_save_ifs 4937 test -z "$ac_dir" && ac_dir=. 4938 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4939 lt_cv_path_LD=$ac_dir/$ac_prog 4940 # Check to see if the program is GNU ld. I'd rather use --version, 4941 # but apparently some variants of GNU ld only accept -v. 4942 # Break only if it was the GNU/non-GNU ld that we prefer. 4943 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4944 *GNU* | *'with BFD'*) 4945 test no != "$with_gnu_ld" && break 4946 ;; 4947 *) 4948 test yes != "$with_gnu_ld" && break 4949 ;; 4950 esac 4951 fi 4952 done 4953 IFS=$lt_save_ifs 4954else 4955 lt_cv_path_LD=$LD # Let the user override the test with a path. 4956fi 4957fi 4958 4959LD=$lt_cv_path_LD 4960if test -n "$LD"; then 4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4962$as_echo "$LD" >&6; } 4963else 4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4965$as_echo "no" >&6; } 4966fi 4967test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4969$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4970if ${lt_cv_prog_gnu_ld+:} false; then : 4971 $as_echo_n "(cached) " >&6 4972else 4973 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4974case `$LD -v 2>&1 </dev/null` in 4975*GNU* | *'with BFD'*) 4976 lt_cv_prog_gnu_ld=yes 4977 ;; 4978*) 4979 lt_cv_prog_gnu_ld=no 4980 ;; 4981esac 4982fi 4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4984$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4985with_gnu_ld=$lt_cv_prog_gnu_ld 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4996$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4997if ${lt_cv_path_NM+:} false; then : 4998 $as_echo_n "(cached) " >&6 4999else 5000 if test -n "$NM"; then 5001 # Let the user override the test. 5002 lt_cv_path_NM=$NM 5003else 5004 lt_nm_to_check=${ac_tool_prefix}nm 5005 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5006 lt_nm_to_check="$lt_nm_to_check nm" 5007 fi 5008 for lt_tmp_nm in $lt_nm_to_check; do 5009 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5010 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5011 IFS=$lt_save_ifs 5012 test -z "$ac_dir" && ac_dir=. 5013 tmp_nm=$ac_dir/$lt_tmp_nm 5014 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5015 # Check to see if the nm accepts a BSD-compat flag. 5016 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5017 # nm: unknown option "B" ignored 5018 # Tru64's nm complains that /dev/null is an invalid object file 5019 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5020 case $build_os in 5021 mingw*) lt_bad_file=conftest.nm/nofile ;; 5022 *) lt_bad_file=/dev/null ;; 5023 esac 5024 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5025 *$lt_bad_file* | *'Invalid file or object type'*) 5026 lt_cv_path_NM="$tmp_nm -B" 5027 break 2 5028 ;; 5029 *) 5030 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5031 */dev/null*) 5032 lt_cv_path_NM="$tmp_nm -p" 5033 break 2 5034 ;; 5035 *) 5036 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5037 continue # so that we can try to find one that supports BSD flags 5038 ;; 5039 esac 5040 ;; 5041 esac 5042 fi 5043 done 5044 IFS=$lt_save_ifs 5045 done 5046 : ${lt_cv_path_NM=no} 5047fi 5048fi 5049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5050$as_echo "$lt_cv_path_NM" >&6; } 5051if test no != "$lt_cv_path_NM"; then 5052 NM=$lt_cv_path_NM 5053else 5054 # Didn't find any BSD compatible name lister, look for dumpbin. 5055 if test -n "$DUMPBIN"; then : 5056 # Let the user override the test. 5057 else 5058 if test -n "$ac_tool_prefix"; then 5059 for ac_prog in dumpbin "link -dump" 5060 do 5061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5062set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5064$as_echo_n "checking for $ac_word... " >&6; } 5065if ${ac_cv_prog_DUMPBIN+:} false; then : 5066 $as_echo_n "(cached) " >&6 5067else 5068 if test -n "$DUMPBIN"; then 5069 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5070else 5071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5072for as_dir in $PATH 5073do 5074 IFS=$as_save_IFS 5075 test -z "$as_dir" && as_dir=. 5076 for ac_exec_ext in '' $ac_executable_extensions; do 5077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5078 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5080 break 2 5081 fi 5082done 5083 done 5084IFS=$as_save_IFS 5085 5086fi 5087fi 5088DUMPBIN=$ac_cv_prog_DUMPBIN 5089if test -n "$DUMPBIN"; then 5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5091$as_echo "$DUMPBIN" >&6; } 5092else 5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5094$as_echo "no" >&6; } 5095fi 5096 5097 5098 test -n "$DUMPBIN" && break 5099 done 5100fi 5101if test -z "$DUMPBIN"; then 5102 ac_ct_DUMPBIN=$DUMPBIN 5103 for ac_prog in dumpbin "link -dump" 5104do 5105 # Extract the first word of "$ac_prog", so it can be a program name with args. 5106set dummy $ac_prog; ac_word=$2 5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5108$as_echo_n "checking for $ac_word... " >&6; } 5109if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5110 $as_echo_n "(cached) " >&6 5111else 5112 if test -n "$ac_ct_DUMPBIN"; then 5113 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5114else 5115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5116for as_dir in $PATH 5117do 5118 IFS=$as_save_IFS 5119 test -z "$as_dir" && as_dir=. 5120 for ac_exec_ext in '' $ac_executable_extensions; do 5121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5122 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5124 break 2 5125 fi 5126done 5127 done 5128IFS=$as_save_IFS 5129 5130fi 5131fi 5132ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5133if test -n "$ac_ct_DUMPBIN"; then 5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5135$as_echo "$ac_ct_DUMPBIN" >&6; } 5136else 5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5138$as_echo "no" >&6; } 5139fi 5140 5141 5142 test -n "$ac_ct_DUMPBIN" && break 5143done 5144 5145 if test "x$ac_ct_DUMPBIN" = x; then 5146 DUMPBIN=":" 5147 else 5148 case $cross_compiling:$ac_tool_warned in 5149yes:) 5150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5152ac_tool_warned=yes ;; 5153esac 5154 DUMPBIN=$ac_ct_DUMPBIN 5155 fi 5156fi 5157 5158 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5159 *COFF*) 5160 DUMPBIN="$DUMPBIN -symbols -headers" 5161 ;; 5162 *) 5163 DUMPBIN=: 5164 ;; 5165 esac 5166 fi 5167 5168 if test : != "$DUMPBIN"; then 5169 NM=$DUMPBIN 5170 fi 5171fi 5172test -z "$NM" && NM=nm 5173 5174 5175 5176 5177 5178 5179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5180$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5181if ${lt_cv_nm_interface+:} false; then : 5182 $as_echo_n "(cached) " >&6 5183else 5184 lt_cv_nm_interface="BSD nm" 5185 echo "int some_variable = 0;" > conftest.$ac_ext 5186 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5187 (eval "$ac_compile" 2>conftest.err) 5188 cat conftest.err >&5 5189 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5190 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5191 cat conftest.err >&5 5192 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5193 cat conftest.out >&5 5194 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5195 lt_cv_nm_interface="MS dumpbin" 5196 fi 5197 rm -f conftest* 5198fi 5199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5200$as_echo "$lt_cv_nm_interface" >&6; } 5201 5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5203$as_echo_n "checking whether ln -s works... " >&6; } 5204LN_S=$as_ln_s 5205if test "$LN_S" = "ln -s"; then 5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5207$as_echo "yes" >&6; } 5208else 5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5210$as_echo "no, using $LN_S" >&6; } 5211fi 5212 5213# find the maximum length of command line arguments 5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5215$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5216if ${lt_cv_sys_max_cmd_len+:} false; then : 5217 $as_echo_n "(cached) " >&6 5218else 5219 i=0 5220 teststring=ABCD 5221 5222 case $build_os in 5223 msdosdjgpp*) 5224 # On DJGPP, this test can blow up pretty badly due to problems in libc 5225 # (any single argument exceeding 2000 bytes causes a buffer overrun 5226 # during glob expansion). Even if it were fixed, the result of this 5227 # check would be larger than it should be. 5228 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5229 ;; 5230 5231 gnu*) 5232 # Under GNU Hurd, this test is not required because there is 5233 # no limit to the length of command line arguments. 5234 # Libtool will interpret -1 as no limit whatsoever 5235 lt_cv_sys_max_cmd_len=-1; 5236 ;; 5237 5238 cygwin* | mingw* | cegcc*) 5239 # On Win9x/ME, this test blows up -- it succeeds, but takes 5240 # about 5 minutes as the teststring grows exponentially. 5241 # Worse, since 9x/ME are not pre-emptively multitasking, 5242 # you end up with a "frozen" computer, even though with patience 5243 # the test eventually succeeds (with a max line length of 256k). 5244 # Instead, let's just punt: use the minimum linelength reported by 5245 # all of the supported platforms: 8192 (on NT/2K/XP). 5246 lt_cv_sys_max_cmd_len=8192; 5247 ;; 5248 5249 mint*) 5250 # On MiNT this can take a long time and run out of memory. 5251 lt_cv_sys_max_cmd_len=8192; 5252 ;; 5253 5254 amigaos*) 5255 # On AmigaOS with pdksh, this test takes hours, literally. 5256 # So we just punt and use a minimum line length of 8192. 5257 lt_cv_sys_max_cmd_len=8192; 5258 ;; 5259 5260 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5261 # This has been around since 386BSD, at least. Likely further. 5262 if test -x /sbin/sysctl; then 5263 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5264 elif test -x /usr/sbin/sysctl; then 5265 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5266 else 5267 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5268 fi 5269 # And add a safety zone 5270 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5272 ;; 5273 5274 interix*) 5275 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5276 lt_cv_sys_max_cmd_len=196608 5277 ;; 5278 5279 os2*) 5280 # The test takes a long time on OS/2. 5281 lt_cv_sys_max_cmd_len=8192 5282 ;; 5283 5284 osf*) 5285 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5286 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5287 # nice to cause kernel panics so lets avoid the loop below. 5288 # First set a reasonable default. 5289 lt_cv_sys_max_cmd_len=16384 5290 # 5291 if test -x /sbin/sysconfig; then 5292 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5293 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5294 esac 5295 fi 5296 ;; 5297 sco3.2v5*) 5298 lt_cv_sys_max_cmd_len=102400 5299 ;; 5300 sysv5* | sco5v6* | sysv4.2uw2*) 5301 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5302 if test -n "$kargmax"; then 5303 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5304 else 5305 lt_cv_sys_max_cmd_len=32768 5306 fi 5307 ;; 5308 *) 5309 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5310 if test -n "$lt_cv_sys_max_cmd_len" && \ 5311 test undefined != "$lt_cv_sys_max_cmd_len"; then 5312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5313 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5314 else 5315 # Make teststring a little bigger before we do anything with it. 5316 # a 1K string should be a reasonable start. 5317 for i in 1 2 3 4 5 6 7 8; do 5318 teststring=$teststring$teststring 5319 done 5320 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5321 # If test is not a shell built-in, we'll probably end up computing a 5322 # maximum length that is only half of the actual maximum length, but 5323 # we can't tell. 5324 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5325 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5326 test 17 != "$i" # 1/2 MB should be enough 5327 do 5328 i=`expr $i + 1` 5329 teststring=$teststring$teststring 5330 done 5331 # Only check the string length outside the loop. 5332 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5333 teststring= 5334 # Add a significant safety factor because C++ compilers can tack on 5335 # massive amounts of additional arguments before passing them to the 5336 # linker. It appears as though 1/2 is a usable value. 5337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5338 fi 5339 ;; 5340 esac 5341 5342fi 5343 5344if test -n "$lt_cv_sys_max_cmd_len"; then 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5346$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5347else 5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5349$as_echo "none" >&6; } 5350fi 5351max_cmd_len=$lt_cv_sys_max_cmd_len 5352 5353 5354 5355 5356 5357 5358: ${CP="cp -f"} 5359: ${MV="mv -f"} 5360: ${RM="rm -f"} 5361 5362if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5363 lt_unset=unset 5364else 5365 lt_unset=false 5366fi 5367 5368 5369 5370 5371 5372# test EBCDIC or ASCII 5373case `echo X|tr X '\101'` in 5374 A) # ASCII based system 5375 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5376 lt_SP2NL='tr \040 \012' 5377 lt_NL2SP='tr \015\012 \040\040' 5378 ;; 5379 *) # EBCDIC based system 5380 lt_SP2NL='tr \100 \n' 5381 lt_NL2SP='tr \r\n \100\100' 5382 ;; 5383esac 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5394$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5395if ${lt_cv_to_host_file_cmd+:} false; then : 5396 $as_echo_n "(cached) " >&6 5397else 5398 case $host in 5399 *-*-mingw* ) 5400 case $build in 5401 *-*-mingw* ) # actually msys 5402 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5403 ;; 5404 *-*-cygwin* ) 5405 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5406 ;; 5407 * ) # otherwise, assume *nix 5408 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5409 ;; 5410 esac 5411 ;; 5412 *-*-cygwin* ) 5413 case $build in 5414 *-*-mingw* ) # actually msys 5415 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5416 ;; 5417 *-*-cygwin* ) 5418 lt_cv_to_host_file_cmd=func_convert_file_noop 5419 ;; 5420 * ) # otherwise, assume *nix 5421 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5422 ;; 5423 esac 5424 ;; 5425 * ) # unhandled hosts (and "normal" native builds) 5426 lt_cv_to_host_file_cmd=func_convert_file_noop 5427 ;; 5428esac 5429 5430fi 5431 5432to_host_file_cmd=$lt_cv_to_host_file_cmd 5433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5434$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5435 5436 5437 5438 5439 5440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5441$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5442if ${lt_cv_to_tool_file_cmd+:} false; then : 5443 $as_echo_n "(cached) " >&6 5444else 5445 #assume ordinary cross tools, or native build. 5446lt_cv_to_tool_file_cmd=func_convert_file_noop 5447case $host in 5448 *-*-mingw* ) 5449 case $build in 5450 *-*-mingw* ) # actually msys 5451 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5452 ;; 5453 esac 5454 ;; 5455esac 5456 5457fi 5458 5459to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5461$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5462 5463 5464 5465 5466 5467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5468$as_echo_n "checking for $LD option to reload object files... " >&6; } 5469if ${lt_cv_ld_reload_flag+:} false; then : 5470 $as_echo_n "(cached) " >&6 5471else 5472 lt_cv_ld_reload_flag='-r' 5473fi 5474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5475$as_echo "$lt_cv_ld_reload_flag" >&6; } 5476reload_flag=$lt_cv_ld_reload_flag 5477case $reload_flag in 5478"" | " "*) ;; 5479*) reload_flag=" $reload_flag" ;; 5480esac 5481reload_cmds='$LD$reload_flag -o $output$reload_objs' 5482case $host_os in 5483 cygwin* | mingw* | pw32* | cegcc*) 5484 if test yes != "$GCC"; then 5485 reload_cmds=false 5486 fi 5487 ;; 5488 darwin*) 5489 if test yes = "$GCC"; then 5490 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5491 else 5492 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5493 fi 5494 ;; 5495esac 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505if test -n "$ac_tool_prefix"; then 5506 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5507set dummy ${ac_tool_prefix}objdump; ac_word=$2 5508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5509$as_echo_n "checking for $ac_word... " >&6; } 5510if ${ac_cv_prog_OBJDUMP+:} false; then : 5511 $as_echo_n "(cached) " >&6 5512else 5513 if test -n "$OBJDUMP"; then 5514 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5515else 5516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5517for as_dir in $PATH 5518do 5519 IFS=$as_save_IFS 5520 test -z "$as_dir" && as_dir=. 5521 for ac_exec_ext in '' $ac_executable_extensions; do 5522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5523 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5525 break 2 5526 fi 5527done 5528 done 5529IFS=$as_save_IFS 5530 5531fi 5532fi 5533OBJDUMP=$ac_cv_prog_OBJDUMP 5534if test -n "$OBJDUMP"; then 5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5536$as_echo "$OBJDUMP" >&6; } 5537else 5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5539$as_echo "no" >&6; } 5540fi 5541 5542 5543fi 5544if test -z "$ac_cv_prog_OBJDUMP"; then 5545 ac_ct_OBJDUMP=$OBJDUMP 5546 # Extract the first word of "objdump", so it can be a program name with args. 5547set dummy objdump; ac_word=$2 5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5549$as_echo_n "checking for $ac_word... " >&6; } 5550if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5551 $as_echo_n "(cached) " >&6 5552else 5553 if test -n "$ac_ct_OBJDUMP"; then 5554 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5555else 5556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5557for as_dir in $PATH 5558do 5559 IFS=$as_save_IFS 5560 test -z "$as_dir" && as_dir=. 5561 for ac_exec_ext in '' $ac_executable_extensions; do 5562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5563 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5565 break 2 5566 fi 5567done 5568 done 5569IFS=$as_save_IFS 5570 5571fi 5572fi 5573ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5574if test -n "$ac_ct_OBJDUMP"; then 5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5576$as_echo "$ac_ct_OBJDUMP" >&6; } 5577else 5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5579$as_echo "no" >&6; } 5580fi 5581 5582 if test "x$ac_ct_OBJDUMP" = x; then 5583 OBJDUMP="false" 5584 else 5585 case $cross_compiling:$ac_tool_warned in 5586yes:) 5587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5589ac_tool_warned=yes ;; 5590esac 5591 OBJDUMP=$ac_ct_OBJDUMP 5592 fi 5593else 5594 OBJDUMP="$ac_cv_prog_OBJDUMP" 5595fi 5596 5597test -z "$OBJDUMP" && OBJDUMP=objdump 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5608$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5609if ${lt_cv_deplibs_check_method+:} false; then : 5610 $as_echo_n "(cached) " >&6 5611else 5612 lt_cv_file_magic_cmd='$MAGIC_CMD' 5613lt_cv_file_magic_test_file= 5614lt_cv_deplibs_check_method='unknown' 5615# Need to set the preceding variable on all platforms that support 5616# interlibrary dependencies. 5617# 'none' -- dependencies not supported. 5618# 'unknown' -- same as none, but documents that we really don't know. 5619# 'pass_all' -- all dependencies passed with no checks. 5620# 'test_compile' -- check by making test program. 5621# 'file_magic [[regex]]' -- check by looking for files in library path 5622# that responds to the $file_magic_cmd with a given extended regex. 5623# If you have 'file' or equivalent on your system and you're not sure 5624# whether 'pass_all' will *always* work, you probably want this one. 5625 5626case $host_os in 5627aix[4-9]*) 5628 lt_cv_deplibs_check_method=pass_all 5629 ;; 5630 5631beos*) 5632 lt_cv_deplibs_check_method=pass_all 5633 ;; 5634 5635bsdi[45]*) 5636 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5637 lt_cv_file_magic_cmd='/usr/bin/file -L' 5638 lt_cv_file_magic_test_file=/shlib/libc.so 5639 ;; 5640 5641cygwin*) 5642 # func_win32_libid is a shell function defined in ltmain.sh 5643 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5644 lt_cv_file_magic_cmd='func_win32_libid' 5645 ;; 5646 5647mingw* | pw32*) 5648 # Base MSYS/MinGW do not provide the 'file' command needed by 5649 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5650 # unless we find 'file', for example because we are cross-compiling. 5651 if ( file / ) >/dev/null 2>&1; then 5652 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5653 lt_cv_file_magic_cmd='func_win32_libid' 5654 else 5655 # Keep this pattern in sync with the one in func_win32_libid. 5656 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5657 lt_cv_file_magic_cmd='$OBJDUMP -f' 5658 fi 5659 ;; 5660 5661cegcc*) 5662 # use the weaker test based on 'objdump'. See mingw*. 5663 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5664 lt_cv_file_magic_cmd='$OBJDUMP -f' 5665 ;; 5666 5667darwin* | rhapsody*) 5668 lt_cv_deplibs_check_method=pass_all 5669 ;; 5670 5671freebsd* | dragonfly*) 5672 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5673 case $host_cpu in 5674 i*86 ) 5675 # Not sure whether the presence of OpenBSD here was a mistake. 5676 # Let's accept both of them until this is cleared up. 5677 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5678 lt_cv_file_magic_cmd=/usr/bin/file 5679 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5680 ;; 5681 esac 5682 else 5683 lt_cv_deplibs_check_method=pass_all 5684 fi 5685 ;; 5686 5687haiku*) 5688 lt_cv_deplibs_check_method=pass_all 5689 ;; 5690 5691hpux10.20* | hpux11*) 5692 lt_cv_file_magic_cmd=/usr/bin/file 5693 case $host_cpu in 5694 ia64*) 5695 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5696 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5697 ;; 5698 hppa*64*) 5699 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]' 5700 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5701 ;; 5702 *) 5703 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5704 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5705 ;; 5706 esac 5707 ;; 5708 5709interix[3-9]*) 5710 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5712 ;; 5713 5714irix5* | irix6* | nonstopux*) 5715 case $LD in 5716 *-32|*"-32 ") libmagic=32-bit;; 5717 *-n32|*"-n32 ") libmagic=N32;; 5718 *-64|*"-64 ") libmagic=64-bit;; 5719 *) libmagic=never-match;; 5720 esac 5721 lt_cv_deplibs_check_method=pass_all 5722 ;; 5723 5724# This must be glibc/ELF. 5725linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5726 lt_cv_deplibs_check_method=pass_all 5727 ;; 5728 5729netbsd* | netbsdelf*-gnu) 5730 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5731 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5732 else 5733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5734 fi 5735 ;; 5736 5737newos6*) 5738 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5739 lt_cv_file_magic_cmd=/usr/bin/file 5740 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5741 ;; 5742 5743*nto* | *qnx*) 5744 lt_cv_deplibs_check_method=pass_all 5745 ;; 5746 5747openbsd* | bitrig*) 5748 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5749 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5750 else 5751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5752 fi 5753 ;; 5754 5755osf3* | osf4* | osf5*) 5756 lt_cv_deplibs_check_method=pass_all 5757 ;; 5758 5759rdos*) 5760 lt_cv_deplibs_check_method=pass_all 5761 ;; 5762 5763solaris*) 5764 lt_cv_deplibs_check_method=pass_all 5765 ;; 5766 5767sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5768 lt_cv_deplibs_check_method=pass_all 5769 ;; 5770 5771sysv4 | sysv4.3*) 5772 case $host_vendor in 5773 motorola) 5774 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]' 5775 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5776 ;; 5777 ncr) 5778 lt_cv_deplibs_check_method=pass_all 5779 ;; 5780 sequent) 5781 lt_cv_file_magic_cmd='/bin/file' 5782 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5783 ;; 5784 sni) 5785 lt_cv_file_magic_cmd='/bin/file' 5786 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5787 lt_cv_file_magic_test_file=/lib/libc.so 5788 ;; 5789 siemens) 5790 lt_cv_deplibs_check_method=pass_all 5791 ;; 5792 pc) 5793 lt_cv_deplibs_check_method=pass_all 5794 ;; 5795 esac 5796 ;; 5797 5798tpf*) 5799 lt_cv_deplibs_check_method=pass_all 5800 ;; 5801os2*) 5802 lt_cv_deplibs_check_method=pass_all 5803 ;; 5804esac 5805 5806fi 5807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5808$as_echo "$lt_cv_deplibs_check_method" >&6; } 5809 5810file_magic_glob= 5811want_nocaseglob=no 5812if test "$build" = "$host"; then 5813 case $host_os in 5814 mingw* | pw32*) 5815 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5816 want_nocaseglob=yes 5817 else 5818 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5819 fi 5820 ;; 5821 esac 5822fi 5823 5824file_magic_cmd=$lt_cv_file_magic_cmd 5825deplibs_check_method=$lt_cv_deplibs_check_method 5826test -z "$deplibs_check_method" && deplibs_check_method=unknown 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849if test -n "$ac_tool_prefix"; then 5850 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5851set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5853$as_echo_n "checking for $ac_word... " >&6; } 5854if ${ac_cv_prog_DLLTOOL+:} false; then : 5855 $as_echo_n "(cached) " >&6 5856else 5857 if test -n "$DLLTOOL"; then 5858 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5859else 5860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5861for as_dir in $PATH 5862do 5863 IFS=$as_save_IFS 5864 test -z "$as_dir" && as_dir=. 5865 for ac_exec_ext in '' $ac_executable_extensions; do 5866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5867 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5869 break 2 5870 fi 5871done 5872 done 5873IFS=$as_save_IFS 5874 5875fi 5876fi 5877DLLTOOL=$ac_cv_prog_DLLTOOL 5878if test -n "$DLLTOOL"; then 5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5880$as_echo "$DLLTOOL" >&6; } 5881else 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5883$as_echo "no" >&6; } 5884fi 5885 5886 5887fi 5888if test -z "$ac_cv_prog_DLLTOOL"; then 5889 ac_ct_DLLTOOL=$DLLTOOL 5890 # Extract the first word of "dlltool", so it can be a program name with args. 5891set dummy dlltool; ac_word=$2 5892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5893$as_echo_n "checking for $ac_word... " >&6; } 5894if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5895 $as_echo_n "(cached) " >&6 5896else 5897 if test -n "$ac_ct_DLLTOOL"; then 5898 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5899else 5900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5901for as_dir in $PATH 5902do 5903 IFS=$as_save_IFS 5904 test -z "$as_dir" && as_dir=. 5905 for ac_exec_ext in '' $ac_executable_extensions; do 5906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5907 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5909 break 2 5910 fi 5911done 5912 done 5913IFS=$as_save_IFS 5914 5915fi 5916fi 5917ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5918if test -n "$ac_ct_DLLTOOL"; then 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5920$as_echo "$ac_ct_DLLTOOL" >&6; } 5921else 5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5923$as_echo "no" >&6; } 5924fi 5925 5926 if test "x$ac_ct_DLLTOOL" = x; then 5927 DLLTOOL="false" 5928 else 5929 case $cross_compiling:$ac_tool_warned in 5930yes:) 5931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5933ac_tool_warned=yes ;; 5934esac 5935 DLLTOOL=$ac_ct_DLLTOOL 5936 fi 5937else 5938 DLLTOOL="$ac_cv_prog_DLLTOOL" 5939fi 5940 5941test -z "$DLLTOOL" && DLLTOOL=dlltool 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5953$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5954if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5955 $as_echo_n "(cached) " >&6 5956else 5957 lt_cv_sharedlib_from_linklib_cmd='unknown' 5958 5959case $host_os in 5960cygwin* | mingw* | pw32* | cegcc*) 5961 # two different shell functions defined in ltmain.sh; 5962 # decide which one to use based on capabilities of $DLLTOOL 5963 case `$DLLTOOL --help 2>&1` in 5964 *--identify-strict*) 5965 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5966 ;; 5967 *) 5968 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5969 ;; 5970 esac 5971 ;; 5972*) 5973 # fallback: assume linklib IS sharedlib 5974 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5975 ;; 5976esac 5977 5978fi 5979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5980$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5981sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5982test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5983 5984 5985 5986 5987 5988 5989 5990if test -n "$ac_tool_prefix"; then 5991 for ac_prog in ar 5992 do 5993 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5994set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5996$as_echo_n "checking for $ac_word... " >&6; } 5997if ${ac_cv_prog_AR+:} false; then : 5998 $as_echo_n "(cached) " >&6 5999else 6000 if test -n "$AR"; then 6001 ac_cv_prog_AR="$AR" # Let the user override the test. 6002else 6003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6004for as_dir in $PATH 6005do 6006 IFS=$as_save_IFS 6007 test -z "$as_dir" && as_dir=. 6008 for ac_exec_ext in '' $ac_executable_extensions; do 6009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6010 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6012 break 2 6013 fi 6014done 6015 done 6016IFS=$as_save_IFS 6017 6018fi 6019fi 6020AR=$ac_cv_prog_AR 6021if test -n "$AR"; then 6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6023$as_echo "$AR" >&6; } 6024else 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6026$as_echo "no" >&6; } 6027fi 6028 6029 6030 test -n "$AR" && break 6031 done 6032fi 6033if test -z "$AR"; then 6034 ac_ct_AR=$AR 6035 for ac_prog in ar 6036do 6037 # Extract the first word of "$ac_prog", so it can be a program name with args. 6038set dummy $ac_prog; ac_word=$2 6039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6040$as_echo_n "checking for $ac_word... " >&6; } 6041if ${ac_cv_prog_ac_ct_AR+:} false; then : 6042 $as_echo_n "(cached) " >&6 6043else 6044 if test -n "$ac_ct_AR"; then 6045 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6046else 6047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6048for as_dir in $PATH 6049do 6050 IFS=$as_save_IFS 6051 test -z "$as_dir" && as_dir=. 6052 for ac_exec_ext in '' $ac_executable_extensions; do 6053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6054 ac_cv_prog_ac_ct_AR="$ac_prog" 6055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6056 break 2 6057 fi 6058done 6059 done 6060IFS=$as_save_IFS 6061 6062fi 6063fi 6064ac_ct_AR=$ac_cv_prog_ac_ct_AR 6065if test -n "$ac_ct_AR"; then 6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6067$as_echo "$ac_ct_AR" >&6; } 6068else 6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6070$as_echo "no" >&6; } 6071fi 6072 6073 6074 test -n "$ac_ct_AR" && break 6075done 6076 6077 if test "x$ac_ct_AR" = x; then 6078 AR="false" 6079 else 6080 case $cross_compiling:$ac_tool_warned in 6081yes:) 6082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6084ac_tool_warned=yes ;; 6085esac 6086 AR=$ac_ct_AR 6087 fi 6088fi 6089 6090: ${AR=ar} 6091: ${AR_FLAGS=cr} 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6104$as_echo_n "checking for archiver @FILE support... " >&6; } 6105if ${lt_cv_ar_at_file+:} false; then : 6106 $as_echo_n "(cached) " >&6 6107else 6108 lt_cv_ar_at_file=no 6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6110/* end confdefs.h. */ 6111 6112int 6113main () 6114{ 6115 6116 ; 6117 return 0; 6118} 6119_ACEOF 6120if ac_fn_c_try_compile "$LINENO"; then : 6121 echo conftest.$ac_objext > conftest.lst 6122 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6124 (eval $lt_ar_try) 2>&5 6125 ac_status=$? 6126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6127 test $ac_status = 0; } 6128 if test 0 -eq "$ac_status"; then 6129 # Ensure the archiver fails upon bogus file names. 6130 rm -f conftest.$ac_objext libconftest.a 6131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6132 (eval $lt_ar_try) 2>&5 6133 ac_status=$? 6134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6135 test $ac_status = 0; } 6136 if test 0 -ne "$ac_status"; then 6137 lt_cv_ar_at_file=@ 6138 fi 6139 fi 6140 rm -f conftest.* libconftest.a 6141 6142fi 6143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6144 6145fi 6146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6147$as_echo "$lt_cv_ar_at_file" >&6; } 6148 6149if test no = "$lt_cv_ar_at_file"; then 6150 archiver_list_spec= 6151else 6152 archiver_list_spec=$lt_cv_ar_at_file 6153fi 6154 6155 6156 6157 6158 6159 6160 6161if test -n "$ac_tool_prefix"; then 6162 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6163set dummy ${ac_tool_prefix}strip; ac_word=$2 6164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6165$as_echo_n "checking for $ac_word... " >&6; } 6166if ${ac_cv_prog_STRIP+:} false; then : 6167 $as_echo_n "(cached) " >&6 6168else 6169 if test -n "$STRIP"; then 6170 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6171else 6172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6173for as_dir in $PATH 6174do 6175 IFS=$as_save_IFS 6176 test -z "$as_dir" && as_dir=. 6177 for ac_exec_ext in '' $ac_executable_extensions; do 6178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6179 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6181 break 2 6182 fi 6183done 6184 done 6185IFS=$as_save_IFS 6186 6187fi 6188fi 6189STRIP=$ac_cv_prog_STRIP 6190if test -n "$STRIP"; then 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6192$as_echo "$STRIP" >&6; } 6193else 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6195$as_echo "no" >&6; } 6196fi 6197 6198 6199fi 6200if test -z "$ac_cv_prog_STRIP"; then 6201 ac_ct_STRIP=$STRIP 6202 # Extract the first word of "strip", so it can be a program name with args. 6203set dummy strip; ac_word=$2 6204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6205$as_echo_n "checking for $ac_word... " >&6; } 6206if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6207 $as_echo_n "(cached) " >&6 6208else 6209 if test -n "$ac_ct_STRIP"; then 6210 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6211else 6212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6213for as_dir in $PATH 6214do 6215 IFS=$as_save_IFS 6216 test -z "$as_dir" && as_dir=. 6217 for ac_exec_ext in '' $ac_executable_extensions; do 6218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6219 ac_cv_prog_ac_ct_STRIP="strip" 6220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6221 break 2 6222 fi 6223done 6224 done 6225IFS=$as_save_IFS 6226 6227fi 6228fi 6229ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6230if test -n "$ac_ct_STRIP"; then 6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6232$as_echo "$ac_ct_STRIP" >&6; } 6233else 6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6235$as_echo "no" >&6; } 6236fi 6237 6238 if test "x$ac_ct_STRIP" = x; then 6239 STRIP=":" 6240 else 6241 case $cross_compiling:$ac_tool_warned in 6242yes:) 6243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6245ac_tool_warned=yes ;; 6246esac 6247 STRIP=$ac_ct_STRIP 6248 fi 6249else 6250 STRIP="$ac_cv_prog_STRIP" 6251fi 6252 6253test -z "$STRIP" && STRIP=: 6254 6255 6256 6257 6258 6259 6260if test -n "$ac_tool_prefix"; then 6261 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6262set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6264$as_echo_n "checking for $ac_word... " >&6; } 6265if ${ac_cv_prog_RANLIB+:} false; then : 6266 $as_echo_n "(cached) " >&6 6267else 6268 if test -n "$RANLIB"; then 6269 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6270else 6271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6272for as_dir in $PATH 6273do 6274 IFS=$as_save_IFS 6275 test -z "$as_dir" && as_dir=. 6276 for ac_exec_ext in '' $ac_executable_extensions; do 6277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6278 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6280 break 2 6281 fi 6282done 6283 done 6284IFS=$as_save_IFS 6285 6286fi 6287fi 6288RANLIB=$ac_cv_prog_RANLIB 6289if test -n "$RANLIB"; then 6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6291$as_echo "$RANLIB" >&6; } 6292else 6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6294$as_echo "no" >&6; } 6295fi 6296 6297 6298fi 6299if test -z "$ac_cv_prog_RANLIB"; then 6300 ac_ct_RANLIB=$RANLIB 6301 # Extract the first word of "ranlib", so it can be a program name with args. 6302set dummy ranlib; ac_word=$2 6303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6304$as_echo_n "checking for $ac_word... " >&6; } 6305if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6306 $as_echo_n "(cached) " >&6 6307else 6308 if test -n "$ac_ct_RANLIB"; then 6309 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6310else 6311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6312for as_dir in $PATH 6313do 6314 IFS=$as_save_IFS 6315 test -z "$as_dir" && as_dir=. 6316 for ac_exec_ext in '' $ac_executable_extensions; do 6317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6318 ac_cv_prog_ac_ct_RANLIB="ranlib" 6319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6320 break 2 6321 fi 6322done 6323 done 6324IFS=$as_save_IFS 6325 6326fi 6327fi 6328ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6329if test -n "$ac_ct_RANLIB"; then 6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6331$as_echo "$ac_ct_RANLIB" >&6; } 6332else 6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6334$as_echo "no" >&6; } 6335fi 6336 6337 if test "x$ac_ct_RANLIB" = x; then 6338 RANLIB=":" 6339 else 6340 case $cross_compiling:$ac_tool_warned in 6341yes:) 6342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6344ac_tool_warned=yes ;; 6345esac 6346 RANLIB=$ac_ct_RANLIB 6347 fi 6348else 6349 RANLIB="$ac_cv_prog_RANLIB" 6350fi 6351 6352test -z "$RANLIB" && RANLIB=: 6353 6354 6355 6356 6357 6358 6359# Determine commands to create old-style static archives. 6360old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6361old_postinstall_cmds='chmod 644 $oldlib' 6362old_postuninstall_cmds= 6363 6364if test -n "$RANLIB"; then 6365 case $host_os in 6366 bitrig* | openbsd*) 6367 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6368 ;; 6369 *) 6370 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6371 ;; 6372 esac 6373 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6374fi 6375 6376case $host_os in 6377 darwin*) 6378 lock_old_archive_extraction=yes ;; 6379 *) 6380 lock_old_archive_extraction=no ;; 6381esac 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421# If no C compiler was specified, use CC. 6422LTCC=${LTCC-"$CC"} 6423 6424# If no C compiler flags were specified, use CFLAGS. 6425LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6426 6427# Allow CC to be a program name with arguments. 6428compiler=$CC 6429 6430 6431# Check for command to grab the raw symbol name followed by C symbol from nm. 6432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6433$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6434if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6435 $as_echo_n "(cached) " >&6 6436else 6437 6438# These are sane defaults that work on at least a few old systems. 6439# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6440 6441# Character class describing NM global symbol codes. 6442symcode='[BCDEGRST]' 6443 6444# Regexp to match symbols that can be accessed directly from C. 6445sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6446 6447# Define system-specific variables. 6448case $host_os in 6449aix*) 6450 symcode='[BCDT]' 6451 ;; 6452cygwin* | mingw* | pw32* | cegcc*) 6453 symcode='[ABCDGISTW]' 6454 ;; 6455hpux*) 6456 if test ia64 = "$host_cpu"; then 6457 symcode='[ABCDEGRST]' 6458 fi 6459 ;; 6460irix* | nonstopux*) 6461 symcode='[BCDEGRST]' 6462 ;; 6463osf*) 6464 symcode='[BCDEGQRST]' 6465 ;; 6466solaris*) 6467 symcode='[BDRT]' 6468 ;; 6469sco3.2v5*) 6470 symcode='[DT]' 6471 ;; 6472sysv4.2uw2*) 6473 symcode='[DT]' 6474 ;; 6475sysv5* | sco5v6* | unixware* | OpenUNIX*) 6476 symcode='[ABDT]' 6477 ;; 6478sysv4) 6479 symcode='[DFNSTU]' 6480 ;; 6481esac 6482 6483# If we're using GNU nm, then use its standard symbol codes. 6484case `$NM -V 2>&1` in 6485*GNU* | *'with BFD'*) 6486 symcode='[ABCDGIRSTW]' ;; 6487esac 6488 6489if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6490 # Gets list of data symbols to import. 6491 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6492 # Adjust the below global symbol transforms to fixup imported variables. 6493 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6494 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6495 lt_c_name_lib_hook="\ 6496 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6497 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6498else 6499 # Disable hooks by default. 6500 lt_cv_sys_global_symbol_to_import= 6501 lt_cdecl_hook= 6502 lt_c_name_hook= 6503 lt_c_name_lib_hook= 6504fi 6505 6506# Transform an extracted symbol line into a proper C declaration. 6507# Some systems (esp. on ia64) link data and code symbols differently, 6508# so use this general approach. 6509lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6510$lt_cdecl_hook\ 6511" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6512" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6513 6514# Transform an extracted symbol line into symbol name and symbol address 6515lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6516$lt_c_name_hook\ 6517" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6518" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6519 6520# Transform an extracted symbol line into symbol name with lib prefix and 6521# symbol address. 6522lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6523$lt_c_name_lib_hook\ 6524" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6525" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6526" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6527 6528# Handle CRLF in mingw tool chain 6529opt_cr= 6530case $build_os in 6531mingw*) 6532 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6533 ;; 6534esac 6535 6536# Try without a prefix underscore, then with it. 6537for ac_symprfx in "" "_"; do 6538 6539 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6540 symxfrm="\\1 $ac_symprfx\\2 \\2" 6541 6542 # Write the raw and C identifiers. 6543 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6544 # Fake it for dumpbin and say T for any non-static function, 6545 # D for any global variable and I for any imported variable. 6546 # Also find C++ and __fastcall symbols from MSVC++, 6547 # which start with @ or ?. 6548 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6549" {last_section=section; section=\$ 3};"\ 6550" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6551" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6552" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6553" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6554" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6555" \$ 0!~/External *\|/{next};"\ 6556" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6557" {if(hide[section]) next};"\ 6558" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6559" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6560" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6561" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6562" ' prfx=^$ac_symprfx" 6563 else 6564 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6565 fi 6566 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6567 6568 # Check to see that the pipe works correctly. 6569 pipe_works=no 6570 6571 rm -f conftest* 6572 cat > conftest.$ac_ext <<_LT_EOF 6573#ifdef __cplusplus 6574extern "C" { 6575#endif 6576char nm_test_var; 6577void nm_test_func(void); 6578void nm_test_func(void){} 6579#ifdef __cplusplus 6580} 6581#endif 6582int main(){nm_test_var='a';nm_test_func();return(0);} 6583_LT_EOF 6584 6585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6586 (eval $ac_compile) 2>&5 6587 ac_status=$? 6588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6589 test $ac_status = 0; }; then 6590 # Now try to grab the symbols. 6591 nlist=conftest.nm 6592 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 6593 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then 6594 # Try sorting and uniquifying the output. 6595 if sort "$nlist" | uniq > "$nlist"T; then 6596 mv -f "$nlist"T "$nlist" 6597 else 6598 rm -f "$nlist"T 6599 fi 6600 6601 # Make sure that we snagged all the symbols we need. 6602 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6603 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6604 cat <<_LT_EOF > conftest.$ac_ext 6605/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6606#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6607/* DATA imports from DLLs on WIN32 can't be const, because runtime 6608 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6609# define LT_DLSYM_CONST 6610#elif defined __osf__ 6611/* This system does not cope well with relocations in const data. */ 6612# define LT_DLSYM_CONST 6613#else 6614# define LT_DLSYM_CONST const 6615#endif 6616 6617#ifdef __cplusplus 6618extern "C" { 6619#endif 6620 6621_LT_EOF 6622 # Now generate the symbol file. 6623 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6624 6625 cat <<_LT_EOF >> conftest.$ac_ext 6626 6627/* The mapping between symbol names and symbols. */ 6628LT_DLSYM_CONST struct { 6629 const char *name; 6630 void *address; 6631} 6632lt__PROGRAM__LTX_preloaded_symbols[] = 6633{ 6634 { "@PROGRAM@", (void *) 0 }, 6635_LT_EOF 6636 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6637 cat <<\_LT_EOF >> conftest.$ac_ext 6638 {0, (void *) 0} 6639}; 6640 6641/* This works around a problem in FreeBSD linker */ 6642#ifdef FREEBSD_WORKAROUND 6643static const void *lt_preloaded_setup() { 6644 return lt__PROGRAM__LTX_preloaded_symbols; 6645} 6646#endif 6647 6648#ifdef __cplusplus 6649} 6650#endif 6651_LT_EOF 6652 # Now try linking the two files. 6653 mv conftest.$ac_objext conftstm.$ac_objext 6654 lt_globsym_save_LIBS=$LIBS 6655 lt_globsym_save_CFLAGS=$CFLAGS 6656 LIBS=conftstm.$ac_objext 6657 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6659 (eval $ac_link) 2>&5 6660 ac_status=$? 6661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6662 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6663 pipe_works=yes 6664 fi 6665 LIBS=$lt_globsym_save_LIBS 6666 CFLAGS=$lt_globsym_save_CFLAGS 6667 else 6668 echo "cannot find nm_test_func in $nlist" >&5 6669 fi 6670 else 6671 echo "cannot find nm_test_var in $nlist" >&5 6672 fi 6673 else 6674 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6675 fi 6676 else 6677 echo "$progname: failed program was:" >&5 6678 cat conftest.$ac_ext >&5 6679 fi 6680 rm -rf conftest* conftst* 6681 6682 # Do not use the global_symbol_pipe unless it works. 6683 if test yes = "$pipe_works"; then 6684 break 6685 else 6686 lt_cv_sys_global_symbol_pipe= 6687 fi 6688done 6689 6690fi 6691 6692if test -z "$lt_cv_sys_global_symbol_pipe"; then 6693 lt_cv_sys_global_symbol_to_cdecl= 6694fi 6695if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6697$as_echo "failed" >&6; } 6698else 6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6700$as_echo "ok" >&6; } 6701fi 6702 6703# Response file support. 6704if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6705 nm_file_list_spec='@' 6706elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6707 nm_file_list_spec='@' 6708fi 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6747$as_echo_n "checking for sysroot... " >&6; } 6748 6749# Check whether --with-sysroot was given. 6750if test "${with_sysroot+set}" = set; then : 6751 withval=$with_sysroot; 6752else 6753 with_sysroot=no 6754fi 6755 6756 6757lt_sysroot= 6758case $with_sysroot in #( 6759 yes) 6760 if test yes = "$GCC"; then 6761 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6762 fi 6763 ;; #( 6764 /*) 6765 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6766 ;; #( 6767 no|'') 6768 ;; #( 6769 *) 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6771$as_echo "$with_sysroot" >&6; } 6772 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6773 ;; 6774esac 6775 6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6777$as_echo "${lt_sysroot:-no}" >&6; } 6778 6779 6780 6781 6782 6783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6784$as_echo_n "checking for a working dd... " >&6; } 6785if ${ac_cv_path_lt_DD+:} false; then : 6786 $as_echo_n "(cached) " >&6 6787else 6788 printf 0123456789abcdef0123456789abcdef >conftest.i 6789cat conftest.i conftest.i >conftest2.i 6790: ${lt_DD:=$DD} 6791if test -z "$lt_DD"; then 6792 ac_path_lt_DD_found=false 6793 # Loop through the user's path and test for each of PROGNAME-LIST 6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6795for as_dir in $PATH 6796do 6797 IFS=$as_save_IFS 6798 test -z "$as_dir" && as_dir=. 6799 for ac_prog in dd; do 6800 for ac_exec_ext in '' $ac_executable_extensions; do 6801 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6802 as_fn_executable_p "$ac_path_lt_DD" || continue 6803if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6804 cmp -s conftest.i conftest.out \ 6805 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6806fi 6807 $ac_path_lt_DD_found && break 3 6808 done 6809 done 6810 done 6811IFS=$as_save_IFS 6812 if test -z "$ac_cv_path_lt_DD"; then 6813 : 6814 fi 6815else 6816 ac_cv_path_lt_DD=$lt_DD 6817fi 6818 6819rm -f conftest.i conftest2.i conftest.out 6820fi 6821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6822$as_echo "$ac_cv_path_lt_DD" >&6; } 6823 6824 6825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6826$as_echo_n "checking how to truncate binary pipes... " >&6; } 6827if ${lt_cv_truncate_bin+:} false; then : 6828 $as_echo_n "(cached) " >&6 6829else 6830 printf 0123456789abcdef0123456789abcdef >conftest.i 6831cat conftest.i conftest.i >conftest2.i 6832lt_cv_truncate_bin= 6833if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6834 cmp -s conftest.i conftest.out \ 6835 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6836fi 6837rm -f conftest.i conftest2.i conftest.out 6838test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6839fi 6840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6841$as_echo "$lt_cv_truncate_bin" >&6; } 6842 6843 6844 6845 6846 6847 6848 6849# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6850func_cc_basename () 6851{ 6852 for cc_temp in $*""; do 6853 case $cc_temp in 6854 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6855 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6856 \-*) ;; 6857 *) break;; 6858 esac 6859 done 6860 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6861} 6862 6863# Check whether --enable-libtool-lock was given. 6864if test "${enable_libtool_lock+set}" = set; then : 6865 enableval=$enable_libtool_lock; 6866fi 6867 6868test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6869 6870# Some flags need to be propagated to the compiler or linker for good 6871# libtool support. 6872case $host in 6873ia64-*-hpux*) 6874 # Find out what ABI is being produced by ac_compile, and set mode 6875 # options accordingly. 6876 echo 'int i;' > conftest.$ac_ext 6877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6878 (eval $ac_compile) 2>&5 6879 ac_status=$? 6880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6881 test $ac_status = 0; }; then 6882 case `/usr/bin/file conftest.$ac_objext` in 6883 *ELF-32*) 6884 HPUX_IA64_MODE=32 6885 ;; 6886 *ELF-64*) 6887 HPUX_IA64_MODE=64 6888 ;; 6889 esac 6890 fi 6891 rm -rf conftest* 6892 ;; 6893*-*-irix6*) 6894 # Find out what ABI is being produced by ac_compile, and set linker 6895 # options accordingly. 6896 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6897 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6898 (eval $ac_compile) 2>&5 6899 ac_status=$? 6900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6901 test $ac_status = 0; }; then 6902 if test yes = "$lt_cv_prog_gnu_ld"; then 6903 case `/usr/bin/file conftest.$ac_objext` in 6904 *32-bit*) 6905 LD="${LD-ld} -melf32bsmip" 6906 ;; 6907 *N32*) 6908 LD="${LD-ld} -melf32bmipn32" 6909 ;; 6910 *64-bit*) 6911 LD="${LD-ld} -melf64bmip" 6912 ;; 6913 esac 6914 else 6915 case `/usr/bin/file conftest.$ac_objext` in 6916 *32-bit*) 6917 LD="${LD-ld} -32" 6918 ;; 6919 *N32*) 6920 LD="${LD-ld} -n32" 6921 ;; 6922 *64-bit*) 6923 LD="${LD-ld} -64" 6924 ;; 6925 esac 6926 fi 6927 fi 6928 rm -rf conftest* 6929 ;; 6930 6931mips64*-*linux*) 6932 # Find out what ABI is being produced by ac_compile, and set linker 6933 # options accordingly. 6934 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6936 (eval $ac_compile) 2>&5 6937 ac_status=$? 6938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6939 test $ac_status = 0; }; then 6940 emul=elf 6941 case `/usr/bin/file conftest.$ac_objext` in 6942 *32-bit*) 6943 emul="${emul}32" 6944 ;; 6945 *64-bit*) 6946 emul="${emul}64" 6947 ;; 6948 esac 6949 case `/usr/bin/file conftest.$ac_objext` in 6950 *MSB*) 6951 emul="${emul}btsmip" 6952 ;; 6953 *LSB*) 6954 emul="${emul}ltsmip" 6955 ;; 6956 esac 6957 case `/usr/bin/file conftest.$ac_objext` in 6958 *N32*) 6959 emul="${emul}n32" 6960 ;; 6961 esac 6962 LD="${LD-ld} -m $emul" 6963 fi 6964 rm -rf conftest* 6965 ;; 6966 6967x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6968s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6969 # Find out what ABI is being produced by ac_compile, and set linker 6970 # options accordingly. Note that the listed cases only cover the 6971 # situations where additional linker options are needed (such as when 6972 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6973 # vice versa); the common cases where no linker options are needed do 6974 # not appear in the list. 6975 echo 'int i;' > conftest.$ac_ext 6976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6977 (eval $ac_compile) 2>&5 6978 ac_status=$? 6979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6980 test $ac_status = 0; }; then 6981 case `/usr/bin/file conftest.o` in 6982 *32-bit*) 6983 case $host in 6984 x86_64-*kfreebsd*-gnu) 6985 LD="${LD-ld} -m elf_i386_fbsd" 6986 ;; 6987 x86_64-*linux*) 6988 case `/usr/bin/file conftest.o` in 6989 *x86-64*) 6990 LD="${LD-ld} -m elf32_x86_64" 6991 ;; 6992 *) 6993 LD="${LD-ld} -m elf_i386" 6994 ;; 6995 esac 6996 ;; 6997 powerpc64le-*linux*) 6998 LD="${LD-ld} -m elf32lppclinux" 6999 ;; 7000 powerpc64-*linux*) 7001 LD="${LD-ld} -m elf32ppclinux" 7002 ;; 7003 s390x-*linux*) 7004 LD="${LD-ld} -m elf_s390" 7005 ;; 7006 sparc64-*linux*) 7007 LD="${LD-ld} -m elf32_sparc" 7008 ;; 7009 esac 7010 ;; 7011 *64-bit*) 7012 case $host in 7013 x86_64-*kfreebsd*-gnu) 7014 LD="${LD-ld} -m elf_x86_64_fbsd" 7015 ;; 7016 x86_64-*linux*) 7017 LD="${LD-ld} -m elf_x86_64" 7018 ;; 7019 powerpcle-*linux*) 7020 LD="${LD-ld} -m elf64lppc" 7021 ;; 7022 powerpc-*linux*) 7023 LD="${LD-ld} -m elf64ppc" 7024 ;; 7025 s390*-*linux*|s390*-*tpf*) 7026 LD="${LD-ld} -m elf64_s390" 7027 ;; 7028 sparc*-*linux*) 7029 LD="${LD-ld} -m elf64_sparc" 7030 ;; 7031 esac 7032 ;; 7033 esac 7034 fi 7035 rm -rf conftest* 7036 ;; 7037 7038*-*-sco3.2v5*) 7039 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7040 SAVE_CFLAGS=$CFLAGS 7041 CFLAGS="$CFLAGS -belf" 7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7043$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7044if ${lt_cv_cc_needs_belf+:} false; then : 7045 $as_echo_n "(cached) " >&6 7046else 7047 ac_ext=c 7048ac_cpp='$CPP $CPPFLAGS' 7049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7051ac_compiler_gnu=$ac_cv_c_compiler_gnu 7052 7053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7054/* end confdefs.h. */ 7055 7056int 7057main () 7058{ 7059 7060 ; 7061 return 0; 7062} 7063_ACEOF 7064if ac_fn_c_try_link "$LINENO"; then : 7065 lt_cv_cc_needs_belf=yes 7066else 7067 lt_cv_cc_needs_belf=no 7068fi 7069rm -f core conftest.err conftest.$ac_objext \ 7070 conftest$ac_exeext conftest.$ac_ext 7071 ac_ext=c 7072ac_cpp='$CPP $CPPFLAGS' 7073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7075ac_compiler_gnu=$ac_cv_c_compiler_gnu 7076 7077fi 7078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7079$as_echo "$lt_cv_cc_needs_belf" >&6; } 7080 if test yes != "$lt_cv_cc_needs_belf"; then 7081 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7082 CFLAGS=$SAVE_CFLAGS 7083 fi 7084 ;; 7085*-*solaris*) 7086 # Find out what ABI is being produced by ac_compile, and set linker 7087 # options accordingly. 7088 echo 'int i;' > conftest.$ac_ext 7089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7090 (eval $ac_compile) 2>&5 7091 ac_status=$? 7092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7093 test $ac_status = 0; }; then 7094 case `/usr/bin/file conftest.o` in 7095 *64-bit*) 7096 case $lt_cv_prog_gnu_ld in 7097 yes*) 7098 case $host in 7099 i?86-*-solaris*|x86_64-*-solaris*) 7100 LD="${LD-ld} -m elf_x86_64" 7101 ;; 7102 sparc*-*-solaris*) 7103 LD="${LD-ld} -m elf64_sparc" 7104 ;; 7105 esac 7106 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7107 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7108 LD=${LD-ld}_sol2 7109 fi 7110 ;; 7111 *) 7112 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7113 LD="${LD-ld} -64" 7114 fi 7115 ;; 7116 esac 7117 ;; 7118 esac 7119 fi 7120 rm -rf conftest* 7121 ;; 7122esac 7123 7124need_locks=$enable_libtool_lock 7125 7126if test -n "$ac_tool_prefix"; then 7127 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7128set dummy ${ac_tool_prefix}mt; ac_word=$2 7129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7130$as_echo_n "checking for $ac_word... " >&6; } 7131if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7132 $as_echo_n "(cached) " >&6 7133else 7134 if test -n "$MANIFEST_TOOL"; then 7135 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7136else 7137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7138for as_dir in $PATH 7139do 7140 IFS=$as_save_IFS 7141 test -z "$as_dir" && as_dir=. 7142 for ac_exec_ext in '' $ac_executable_extensions; do 7143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7144 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7146 break 2 7147 fi 7148done 7149 done 7150IFS=$as_save_IFS 7151 7152fi 7153fi 7154MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7155if test -n "$MANIFEST_TOOL"; then 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7157$as_echo "$MANIFEST_TOOL" >&6; } 7158else 7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7160$as_echo "no" >&6; } 7161fi 7162 7163 7164fi 7165if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7166 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7167 # Extract the first word of "mt", so it can be a program name with args. 7168set dummy mt; ac_word=$2 7169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7170$as_echo_n "checking for $ac_word... " >&6; } 7171if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7172 $as_echo_n "(cached) " >&6 7173else 7174 if test -n "$ac_ct_MANIFEST_TOOL"; then 7175 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7176else 7177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7178for as_dir in $PATH 7179do 7180 IFS=$as_save_IFS 7181 test -z "$as_dir" && as_dir=. 7182 for ac_exec_ext in '' $ac_executable_extensions; do 7183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7184 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7186 break 2 7187 fi 7188done 7189 done 7190IFS=$as_save_IFS 7191 7192fi 7193fi 7194ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7195if test -n "$ac_ct_MANIFEST_TOOL"; then 7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7197$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7198else 7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7200$as_echo "no" >&6; } 7201fi 7202 7203 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7204 MANIFEST_TOOL=":" 7205 else 7206 case $cross_compiling:$ac_tool_warned in 7207yes:) 7208{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7210ac_tool_warned=yes ;; 7211esac 7212 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7213 fi 7214else 7215 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7216fi 7217 7218test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7220$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7221if ${lt_cv_path_mainfest_tool+:} false; then : 7222 $as_echo_n "(cached) " >&6 7223else 7224 lt_cv_path_mainfest_tool=no 7225 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7226 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7227 cat conftest.err >&5 7228 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7229 lt_cv_path_mainfest_tool=yes 7230 fi 7231 rm -f conftest* 7232fi 7233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7234$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7235if test yes != "$lt_cv_path_mainfest_tool"; then 7236 MANIFEST_TOOL=: 7237fi 7238 7239 7240 7241 7242 7243 7244 case $host_os in 7245 rhapsody* | darwin*) 7246 if test -n "$ac_tool_prefix"; then 7247 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7248set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7250$as_echo_n "checking for $ac_word... " >&6; } 7251if ${ac_cv_prog_DSYMUTIL+:} false; then : 7252 $as_echo_n "(cached) " >&6 7253else 7254 if test -n "$DSYMUTIL"; then 7255 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7256else 7257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7258for as_dir in $PATH 7259do 7260 IFS=$as_save_IFS 7261 test -z "$as_dir" && as_dir=. 7262 for ac_exec_ext in '' $ac_executable_extensions; do 7263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7264 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7266 break 2 7267 fi 7268done 7269 done 7270IFS=$as_save_IFS 7271 7272fi 7273fi 7274DSYMUTIL=$ac_cv_prog_DSYMUTIL 7275if test -n "$DSYMUTIL"; then 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7277$as_echo "$DSYMUTIL" >&6; } 7278else 7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7280$as_echo "no" >&6; } 7281fi 7282 7283 7284fi 7285if test -z "$ac_cv_prog_DSYMUTIL"; then 7286 ac_ct_DSYMUTIL=$DSYMUTIL 7287 # Extract the first word of "dsymutil", so it can be a program name with args. 7288set dummy dsymutil; ac_word=$2 7289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7290$as_echo_n "checking for $ac_word... " >&6; } 7291if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7292 $as_echo_n "(cached) " >&6 7293else 7294 if test -n "$ac_ct_DSYMUTIL"; then 7295 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7296else 7297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7298for as_dir in $PATH 7299do 7300 IFS=$as_save_IFS 7301 test -z "$as_dir" && as_dir=. 7302 for ac_exec_ext in '' $ac_executable_extensions; do 7303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7304 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7306 break 2 7307 fi 7308done 7309 done 7310IFS=$as_save_IFS 7311 7312fi 7313fi 7314ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7315if test -n "$ac_ct_DSYMUTIL"; then 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7317$as_echo "$ac_ct_DSYMUTIL" >&6; } 7318else 7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7320$as_echo "no" >&6; } 7321fi 7322 7323 if test "x$ac_ct_DSYMUTIL" = x; then 7324 DSYMUTIL=":" 7325 else 7326 case $cross_compiling:$ac_tool_warned in 7327yes:) 7328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7330ac_tool_warned=yes ;; 7331esac 7332 DSYMUTIL=$ac_ct_DSYMUTIL 7333 fi 7334else 7335 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7336fi 7337 7338 if test -n "$ac_tool_prefix"; then 7339 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7340set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7342$as_echo_n "checking for $ac_word... " >&6; } 7343if ${ac_cv_prog_NMEDIT+:} false; then : 7344 $as_echo_n "(cached) " >&6 7345else 7346 if test -n "$NMEDIT"; then 7347 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7348else 7349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7350for as_dir in $PATH 7351do 7352 IFS=$as_save_IFS 7353 test -z "$as_dir" && as_dir=. 7354 for ac_exec_ext in '' $ac_executable_extensions; do 7355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7356 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7358 break 2 7359 fi 7360done 7361 done 7362IFS=$as_save_IFS 7363 7364fi 7365fi 7366NMEDIT=$ac_cv_prog_NMEDIT 7367if test -n "$NMEDIT"; then 7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7369$as_echo "$NMEDIT" >&6; } 7370else 7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7372$as_echo "no" >&6; } 7373fi 7374 7375 7376fi 7377if test -z "$ac_cv_prog_NMEDIT"; then 7378 ac_ct_NMEDIT=$NMEDIT 7379 # Extract the first word of "nmedit", so it can be a program name with args. 7380set dummy nmedit; ac_word=$2 7381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7382$as_echo_n "checking for $ac_word... " >&6; } 7383if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7384 $as_echo_n "(cached) " >&6 7385else 7386 if test -n "$ac_ct_NMEDIT"; then 7387 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7388else 7389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7390for as_dir in $PATH 7391do 7392 IFS=$as_save_IFS 7393 test -z "$as_dir" && as_dir=. 7394 for ac_exec_ext in '' $ac_executable_extensions; do 7395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7396 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7398 break 2 7399 fi 7400done 7401 done 7402IFS=$as_save_IFS 7403 7404fi 7405fi 7406ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7407if test -n "$ac_ct_NMEDIT"; then 7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7409$as_echo "$ac_ct_NMEDIT" >&6; } 7410else 7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7412$as_echo "no" >&6; } 7413fi 7414 7415 if test "x$ac_ct_NMEDIT" = x; then 7416 NMEDIT=":" 7417 else 7418 case $cross_compiling:$ac_tool_warned in 7419yes:) 7420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7422ac_tool_warned=yes ;; 7423esac 7424 NMEDIT=$ac_ct_NMEDIT 7425 fi 7426else 7427 NMEDIT="$ac_cv_prog_NMEDIT" 7428fi 7429 7430 if test -n "$ac_tool_prefix"; then 7431 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7432set dummy ${ac_tool_prefix}lipo; ac_word=$2 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7434$as_echo_n "checking for $ac_word... " >&6; } 7435if ${ac_cv_prog_LIPO+:} false; then : 7436 $as_echo_n "(cached) " >&6 7437else 7438 if test -n "$LIPO"; then 7439 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7440else 7441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7442for as_dir in $PATH 7443do 7444 IFS=$as_save_IFS 7445 test -z "$as_dir" && as_dir=. 7446 for ac_exec_ext in '' $ac_executable_extensions; do 7447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7448 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7450 break 2 7451 fi 7452done 7453 done 7454IFS=$as_save_IFS 7455 7456fi 7457fi 7458LIPO=$ac_cv_prog_LIPO 7459if test -n "$LIPO"; then 7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7461$as_echo "$LIPO" >&6; } 7462else 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7464$as_echo "no" >&6; } 7465fi 7466 7467 7468fi 7469if test -z "$ac_cv_prog_LIPO"; then 7470 ac_ct_LIPO=$LIPO 7471 # Extract the first word of "lipo", so it can be a program name with args. 7472set dummy lipo; ac_word=$2 7473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7474$as_echo_n "checking for $ac_word... " >&6; } 7475if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7476 $as_echo_n "(cached) " >&6 7477else 7478 if test -n "$ac_ct_LIPO"; then 7479 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7480else 7481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7482for as_dir in $PATH 7483do 7484 IFS=$as_save_IFS 7485 test -z "$as_dir" && as_dir=. 7486 for ac_exec_ext in '' $ac_executable_extensions; do 7487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7488 ac_cv_prog_ac_ct_LIPO="lipo" 7489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7490 break 2 7491 fi 7492done 7493 done 7494IFS=$as_save_IFS 7495 7496fi 7497fi 7498ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7499if test -n "$ac_ct_LIPO"; then 7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7501$as_echo "$ac_ct_LIPO" >&6; } 7502else 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7504$as_echo "no" >&6; } 7505fi 7506 7507 if test "x$ac_ct_LIPO" = x; then 7508 LIPO=":" 7509 else 7510 case $cross_compiling:$ac_tool_warned in 7511yes:) 7512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7514ac_tool_warned=yes ;; 7515esac 7516 LIPO=$ac_ct_LIPO 7517 fi 7518else 7519 LIPO="$ac_cv_prog_LIPO" 7520fi 7521 7522 if test -n "$ac_tool_prefix"; then 7523 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7524set dummy ${ac_tool_prefix}otool; ac_word=$2 7525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7526$as_echo_n "checking for $ac_word... " >&6; } 7527if ${ac_cv_prog_OTOOL+:} false; then : 7528 $as_echo_n "(cached) " >&6 7529else 7530 if test -n "$OTOOL"; then 7531 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7532else 7533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7534for as_dir in $PATH 7535do 7536 IFS=$as_save_IFS 7537 test -z "$as_dir" && as_dir=. 7538 for ac_exec_ext in '' $ac_executable_extensions; do 7539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7540 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7542 break 2 7543 fi 7544done 7545 done 7546IFS=$as_save_IFS 7547 7548fi 7549fi 7550OTOOL=$ac_cv_prog_OTOOL 7551if test -n "$OTOOL"; then 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7553$as_echo "$OTOOL" >&6; } 7554else 7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7556$as_echo "no" >&6; } 7557fi 7558 7559 7560fi 7561if test -z "$ac_cv_prog_OTOOL"; then 7562 ac_ct_OTOOL=$OTOOL 7563 # Extract the first word of "otool", so it can be a program name with args. 7564set dummy otool; ac_word=$2 7565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7566$as_echo_n "checking for $ac_word... " >&6; } 7567if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7568 $as_echo_n "(cached) " >&6 7569else 7570 if test -n "$ac_ct_OTOOL"; then 7571 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7572else 7573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7574for as_dir in $PATH 7575do 7576 IFS=$as_save_IFS 7577 test -z "$as_dir" && as_dir=. 7578 for ac_exec_ext in '' $ac_executable_extensions; do 7579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7580 ac_cv_prog_ac_ct_OTOOL="otool" 7581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7582 break 2 7583 fi 7584done 7585 done 7586IFS=$as_save_IFS 7587 7588fi 7589fi 7590ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7591if test -n "$ac_ct_OTOOL"; then 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7593$as_echo "$ac_ct_OTOOL" >&6; } 7594else 7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7596$as_echo "no" >&6; } 7597fi 7598 7599 if test "x$ac_ct_OTOOL" = x; then 7600 OTOOL=":" 7601 else 7602 case $cross_compiling:$ac_tool_warned in 7603yes:) 7604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7606ac_tool_warned=yes ;; 7607esac 7608 OTOOL=$ac_ct_OTOOL 7609 fi 7610else 7611 OTOOL="$ac_cv_prog_OTOOL" 7612fi 7613 7614 if test -n "$ac_tool_prefix"; then 7615 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7616set dummy ${ac_tool_prefix}otool64; ac_word=$2 7617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7618$as_echo_n "checking for $ac_word... " >&6; } 7619if ${ac_cv_prog_OTOOL64+:} false; then : 7620 $as_echo_n "(cached) " >&6 7621else 7622 if test -n "$OTOOL64"; then 7623 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7624else 7625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7626for as_dir in $PATH 7627do 7628 IFS=$as_save_IFS 7629 test -z "$as_dir" && as_dir=. 7630 for ac_exec_ext in '' $ac_executable_extensions; do 7631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7632 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7634 break 2 7635 fi 7636done 7637 done 7638IFS=$as_save_IFS 7639 7640fi 7641fi 7642OTOOL64=$ac_cv_prog_OTOOL64 7643if test -n "$OTOOL64"; then 7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7645$as_echo "$OTOOL64" >&6; } 7646else 7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7648$as_echo "no" >&6; } 7649fi 7650 7651 7652fi 7653if test -z "$ac_cv_prog_OTOOL64"; then 7654 ac_ct_OTOOL64=$OTOOL64 7655 # Extract the first word of "otool64", so it can be a program name with args. 7656set dummy otool64; ac_word=$2 7657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7658$as_echo_n "checking for $ac_word... " >&6; } 7659if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7660 $as_echo_n "(cached) " >&6 7661else 7662 if test -n "$ac_ct_OTOOL64"; then 7663 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7664else 7665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7666for as_dir in $PATH 7667do 7668 IFS=$as_save_IFS 7669 test -z "$as_dir" && as_dir=. 7670 for ac_exec_ext in '' $ac_executable_extensions; do 7671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7672 ac_cv_prog_ac_ct_OTOOL64="otool64" 7673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7674 break 2 7675 fi 7676done 7677 done 7678IFS=$as_save_IFS 7679 7680fi 7681fi 7682ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7683if test -n "$ac_ct_OTOOL64"; then 7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7685$as_echo "$ac_ct_OTOOL64" >&6; } 7686else 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7688$as_echo "no" >&6; } 7689fi 7690 7691 if test "x$ac_ct_OTOOL64" = x; then 7692 OTOOL64=":" 7693 else 7694 case $cross_compiling:$ac_tool_warned in 7695yes:) 7696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7698ac_tool_warned=yes ;; 7699esac 7700 OTOOL64=$ac_ct_OTOOL64 7701 fi 7702else 7703 OTOOL64="$ac_cv_prog_OTOOL64" 7704fi 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7733$as_echo_n "checking for -single_module linker flag... " >&6; } 7734if ${lt_cv_apple_cc_single_mod+:} false; then : 7735 $as_echo_n "(cached) " >&6 7736else 7737 lt_cv_apple_cc_single_mod=no 7738 if test -z "$LT_MULTI_MODULE"; then 7739 # By default we will add the -single_module flag. You can override 7740 # by either setting the environment variable LT_MULTI_MODULE 7741 # non-empty at configure time, or by adding -multi_module to the 7742 # link flags. 7743 rm -rf libconftest.dylib* 7744 echo "int foo(void){return 1;}" > conftest.c 7745 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7746-dynamiclib -Wl,-single_module conftest.c" >&5 7747 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7748 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7749 _lt_result=$? 7750 # If there is a non-empty error log, and "single_module" 7751 # appears in it, assume the flag caused a linker warning 7752 if test -s conftest.err && $GREP single_module conftest.err; then 7753 cat conftest.err >&5 7754 # Otherwise, if the output was created with a 0 exit code from 7755 # the compiler, it worked. 7756 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7757 lt_cv_apple_cc_single_mod=yes 7758 else 7759 cat conftest.err >&5 7760 fi 7761 rm -rf libconftest.dylib* 7762 rm -f conftest.* 7763 fi 7764fi 7765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7766$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7767 7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7769$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7770if ${lt_cv_ld_exported_symbols_list+:} false; then : 7771 $as_echo_n "(cached) " >&6 7772else 7773 lt_cv_ld_exported_symbols_list=no 7774 save_LDFLAGS=$LDFLAGS 7775 echo "_main" > conftest.sym 7776 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7778/* end confdefs.h. */ 7779 7780int 7781main () 7782{ 7783 7784 ; 7785 return 0; 7786} 7787_ACEOF 7788if ac_fn_c_try_link "$LINENO"; then : 7789 lt_cv_ld_exported_symbols_list=yes 7790else 7791 lt_cv_ld_exported_symbols_list=no 7792fi 7793rm -f core conftest.err conftest.$ac_objext \ 7794 conftest$ac_exeext conftest.$ac_ext 7795 LDFLAGS=$save_LDFLAGS 7796 7797fi 7798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7799$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7800 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7802$as_echo_n "checking for -force_load linker flag... " >&6; } 7803if ${lt_cv_ld_force_load+:} false; then : 7804 $as_echo_n "(cached) " >&6 7805else 7806 lt_cv_ld_force_load=no 7807 cat > conftest.c << _LT_EOF 7808int forced_loaded() { return 2;} 7809_LT_EOF 7810 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7811 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7812 echo "$AR cr libconftest.a conftest.o" >&5 7813 $AR cr libconftest.a conftest.o 2>&5 7814 echo "$RANLIB libconftest.a" >&5 7815 $RANLIB libconftest.a 2>&5 7816 cat > conftest.c << _LT_EOF 7817int main() { return 0;} 7818_LT_EOF 7819 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7820 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7821 _lt_result=$? 7822 if test -s conftest.err && $GREP force_load conftest.err; then 7823 cat conftest.err >&5 7824 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7825 lt_cv_ld_force_load=yes 7826 else 7827 cat conftest.err >&5 7828 fi 7829 rm -f conftest.err libconftest.a conftest conftest.c 7830 rm -rf conftest.dSYM 7831 7832fi 7833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7834$as_echo "$lt_cv_ld_force_load" >&6; } 7835 case $host_os in 7836 rhapsody* | darwin1.[012]) 7837 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7838 darwin1.*) 7839 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7840 darwin*) # darwin 5.x on 7841 # if running on 10.5 or later, the deployment target defaults 7842 # to the OS version, if on x86, and 10.4, the deployment 7843 # target defaults to 10.4. Don't you love it? 7844 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7845 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7846 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7847 10.[012][,.]*) 7848 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7849 10.*) 7850 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7851 esac 7852 ;; 7853 esac 7854 if test yes = "$lt_cv_apple_cc_single_mod"; then 7855 _lt_dar_single_mod='$single_module' 7856 fi 7857 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7858 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7859 else 7860 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7861 fi 7862 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7863 _lt_dsymutil='~$DSYMUTIL $lib || :' 7864 else 7865 _lt_dsymutil= 7866 fi 7867 ;; 7868 esac 7869 7870# func_munge_path_list VARIABLE PATH 7871# ----------------------------------- 7872# VARIABLE is name of variable containing _space_ separated list of 7873# directories to be munged by the contents of PATH, which is string 7874# having a format: 7875# "DIR[:DIR]:" 7876# string "DIR[ DIR]" will be prepended to VARIABLE 7877# ":DIR[:DIR]" 7878# string "DIR[ DIR]" will be appended to VARIABLE 7879# "DIRP[:DIRP]::[DIRA:]DIRA" 7880# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7881# "DIRA[ DIRA]" will be appended to VARIABLE 7882# "DIR[:DIR]" 7883# VARIABLE will be replaced by "DIR[ DIR]" 7884func_munge_path_list () 7885{ 7886 case x$2 in 7887 x) 7888 ;; 7889 *:) 7890 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7891 ;; 7892 x:*) 7893 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7894 ;; 7895 *::*) 7896 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7897 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7898 ;; 7899 *) 7900 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7901 ;; 7902 esac 7903} 7904 7905ac_ext=c 7906ac_cpp='$CPP $CPPFLAGS' 7907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7909ac_compiler_gnu=$ac_cv_c_compiler_gnu 7910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7911$as_echo_n "checking how to run the C preprocessor... " >&6; } 7912# On Suns, sometimes $CPP names a directory. 7913if test -n "$CPP" && test -d "$CPP"; then 7914 CPP= 7915fi 7916if test -z "$CPP"; then 7917 if ${ac_cv_prog_CPP+:} false; then : 7918 $as_echo_n "(cached) " >&6 7919else 7920 # Double quotes because CPP needs to be expanded 7921 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7922 do 7923 ac_preproc_ok=false 7924for ac_c_preproc_warn_flag in '' yes 7925do 7926 # Use a header file that comes with gcc, so configuring glibc 7927 # with a fresh cross-compiler works. 7928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7929 # <limits.h> exists even on freestanding compilers. 7930 # On the NeXT, cc -E runs the code through the compiler's parser, 7931 # not just through cpp. "Syntax error" is here to catch this case. 7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7933/* end confdefs.h. */ 7934#ifdef __STDC__ 7935# include <limits.h> 7936#else 7937# include <assert.h> 7938#endif 7939 Syntax error 7940_ACEOF 7941if ac_fn_c_try_cpp "$LINENO"; then : 7942 7943else 7944 # Broken: fails on valid input. 7945continue 7946fi 7947rm -f conftest.err conftest.i conftest.$ac_ext 7948 7949 # OK, works on sane cases. Now check whether nonexistent headers 7950 # can be detected and how. 7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7952/* end confdefs.h. */ 7953#include <ac_nonexistent.h> 7954_ACEOF 7955if ac_fn_c_try_cpp "$LINENO"; then : 7956 # Broken: success on invalid input. 7957continue 7958else 7959 # Passes both tests. 7960ac_preproc_ok=: 7961break 7962fi 7963rm -f conftest.err conftest.i conftest.$ac_ext 7964 7965done 7966# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7967rm -f conftest.i conftest.err conftest.$ac_ext 7968if $ac_preproc_ok; then : 7969 break 7970fi 7971 7972 done 7973 ac_cv_prog_CPP=$CPP 7974 7975fi 7976 CPP=$ac_cv_prog_CPP 7977else 7978 ac_cv_prog_CPP=$CPP 7979fi 7980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7981$as_echo "$CPP" >&6; } 7982ac_preproc_ok=false 7983for ac_c_preproc_warn_flag in '' yes 7984do 7985 # Use a header file that comes with gcc, so configuring glibc 7986 # with a fresh cross-compiler works. 7987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7988 # <limits.h> exists even on freestanding compilers. 7989 # On the NeXT, cc -E runs the code through the compiler's parser, 7990 # not just through cpp. "Syntax error" is here to catch this case. 7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7992/* end confdefs.h. */ 7993#ifdef __STDC__ 7994# include <limits.h> 7995#else 7996# include <assert.h> 7997#endif 7998 Syntax error 7999_ACEOF 8000if ac_fn_c_try_cpp "$LINENO"; then : 8001 8002else 8003 # Broken: fails on valid input. 8004continue 8005fi 8006rm -f conftest.err conftest.i conftest.$ac_ext 8007 8008 # OK, works on sane cases. Now check whether nonexistent headers 8009 # can be detected and how. 8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8011/* end confdefs.h. */ 8012#include <ac_nonexistent.h> 8013_ACEOF 8014if ac_fn_c_try_cpp "$LINENO"; then : 8015 # Broken: success on invalid input. 8016continue 8017else 8018 # Passes both tests. 8019ac_preproc_ok=: 8020break 8021fi 8022rm -f conftest.err conftest.i conftest.$ac_ext 8023 8024done 8025# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 8026rm -f conftest.i conftest.err conftest.$ac_ext 8027if $ac_preproc_ok; then : 8028 8029else 8030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8032as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 8033See \`config.log' for more details" "$LINENO" 5; } 8034fi 8035 8036ac_ext=c 8037ac_cpp='$CPP $CPPFLAGS' 8038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8040ac_compiler_gnu=$ac_cv_c_compiler_gnu 8041 8042 8043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8044$as_echo_n "checking for ANSI C header files... " >&6; } 8045if ${ac_cv_header_stdc+:} false; then : 8046 $as_echo_n "(cached) " >&6 8047else 8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8049/* end confdefs.h. */ 8050#include <stdlib.h> 8051#include <stdarg.h> 8052#include <string.h> 8053#include <float.h> 8054 8055int 8056main () 8057{ 8058 8059 ; 8060 return 0; 8061} 8062_ACEOF 8063if ac_fn_c_try_compile "$LINENO"; then : 8064 ac_cv_header_stdc=yes 8065else 8066 ac_cv_header_stdc=no 8067fi 8068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8069 8070if test $ac_cv_header_stdc = yes; then 8071 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8073/* end confdefs.h. */ 8074#include <string.h> 8075 8076_ACEOF 8077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8078 $EGREP "memchr" >/dev/null 2>&1; then : 8079 8080else 8081 ac_cv_header_stdc=no 8082fi 8083rm -f conftest* 8084 8085fi 8086 8087if test $ac_cv_header_stdc = yes; then 8088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8090/* end confdefs.h. */ 8091#include <stdlib.h> 8092 8093_ACEOF 8094if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8095 $EGREP "free" >/dev/null 2>&1; then : 8096 8097else 8098 ac_cv_header_stdc=no 8099fi 8100rm -f conftest* 8101 8102fi 8103 8104if test $ac_cv_header_stdc = yes; then 8105 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 8106 if test "$cross_compiling" = yes; then : 8107 : 8108else 8109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8110/* end confdefs.h. */ 8111#include <ctype.h> 8112#include <stdlib.h> 8113#if ((' ' & 0x0FF) == 0x020) 8114# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 8115# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 8116#else 8117# define ISLOWER(c) \ 8118 (('a' <= (c) && (c) <= 'i') \ 8119 || ('j' <= (c) && (c) <= 'r') \ 8120 || ('s' <= (c) && (c) <= 'z')) 8121# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 8122#endif 8123 8124#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 8125int 8126main () 8127{ 8128 int i; 8129 for (i = 0; i < 256; i++) 8130 if (XOR (islower (i), ISLOWER (i)) 8131 || toupper (i) != TOUPPER (i)) 8132 return 2; 8133 return 0; 8134} 8135_ACEOF 8136if ac_fn_c_try_run "$LINENO"; then : 8137 8138else 8139 ac_cv_header_stdc=no 8140fi 8141rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8142 conftest.$ac_objext conftest.beam conftest.$ac_ext 8143fi 8144 8145fi 8146fi 8147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8148$as_echo "$ac_cv_header_stdc" >&6; } 8149if test $ac_cv_header_stdc = yes; then 8150 8151$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8152 8153fi 8154 8155# On IRIX 5.3, sys/types and inttypes.h are conflicting. 8156for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 8157 inttypes.h stdint.h unistd.h 8158do : 8159 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8160ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 8161" 8162if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8163 cat >>confdefs.h <<_ACEOF 8164#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8165_ACEOF 8166 8167fi 8168 8169done 8170 8171 8172for ac_header in dlfcn.h 8173do : 8174 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8175" 8176if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8177 cat >>confdefs.h <<_ACEOF 8178#define HAVE_DLFCN_H 1 8179_ACEOF 8180 8181fi 8182 8183done 8184 8185 8186 8187 8188 8189# Set options 8190 8191 8192 8193 enable_dlopen=no 8194 8195 8196 enable_win32_dll=no 8197 8198 8199 # Check whether --enable-shared was given. 8200if test "${enable_shared+set}" = set; then : 8201 enableval=$enable_shared; p=${PACKAGE-default} 8202 case $enableval in 8203 yes) enable_shared=yes ;; 8204 no) enable_shared=no ;; 8205 *) 8206 enable_shared=no 8207 # Look at the argument we got. We use all the common list separators. 8208 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8209 for pkg in $enableval; do 8210 IFS=$lt_save_ifs 8211 if test "X$pkg" = "X$p"; then 8212 enable_shared=yes 8213 fi 8214 done 8215 IFS=$lt_save_ifs 8216 ;; 8217 esac 8218else 8219 enable_shared=yes 8220fi 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232# Check whether --with-pic was given. 8233if test "${with_pic+set}" = set; then : 8234 withval=$with_pic; lt_p=${PACKAGE-default} 8235 case $withval in 8236 yes|no) pic_mode=$withval ;; 8237 *) 8238 pic_mode=default 8239 # Look at the argument we got. We use all the common list separators. 8240 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8241 for lt_pkg in $withval; do 8242 IFS=$lt_save_ifs 8243 if test "X$lt_pkg" = "X$lt_p"; then 8244 pic_mode=yes 8245 fi 8246 done 8247 IFS=$lt_save_ifs 8248 ;; 8249 esac 8250else 8251 pic_mode=default 8252fi 8253 8254 8255 8256 8257 8258 8259 8260 8261 # Check whether --enable-fast-install was given. 8262if test "${enable_fast_install+set}" = set; then : 8263 enableval=$enable_fast_install; p=${PACKAGE-default} 8264 case $enableval in 8265 yes) enable_fast_install=yes ;; 8266 no) enable_fast_install=no ;; 8267 *) 8268 enable_fast_install=no 8269 # Look at the argument we got. We use all the common list separators. 8270 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8271 for pkg in $enableval; do 8272 IFS=$lt_save_ifs 8273 if test "X$pkg" = "X$p"; then 8274 enable_fast_install=yes 8275 fi 8276 done 8277 IFS=$lt_save_ifs 8278 ;; 8279 esac 8280else 8281 enable_fast_install=yes 8282fi 8283 8284 8285 8286 8287 8288 8289 8290 8291 shared_archive_member_spec= 8292case $host,$enable_shared in 8293power*-*-aix[5-9]*,yes) 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8295$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8296 8297# Check whether --with-aix-soname was given. 8298if test "${with_aix_soname+set}" = set; then : 8299 withval=$with_aix_soname; case $withval in 8300 aix|svr4|both) 8301 ;; 8302 *) 8303 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8304 ;; 8305 esac 8306 lt_cv_with_aix_soname=$with_aix_soname 8307else 8308 if ${lt_cv_with_aix_soname+:} false; then : 8309 $as_echo_n "(cached) " >&6 8310else 8311 lt_cv_with_aix_soname=aix 8312fi 8313 8314 with_aix_soname=$lt_cv_with_aix_soname 8315fi 8316 8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8318$as_echo "$with_aix_soname" >&6; } 8319 if test aix != "$with_aix_soname"; then 8320 # For the AIX way of multilib, we name the shared archive member 8321 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8322 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8323 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8324 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8325 if test 64 = "${OBJECT_MODE-32}"; then 8326 shared_archive_member_spec=shr_64 8327 else 8328 shared_archive_member_spec=shr 8329 fi 8330 fi 8331 ;; 8332*) 8333 with_aix_soname=aix 8334 ;; 8335esac 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346# This can be used to rebuild libtool when needed 8347LIBTOOL_DEPS=$ltmain 8348 8349# Always use our own libtool. 8350LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381test -z "$LN_S" && LN_S="ln -s" 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396if test -n "${ZSH_VERSION+set}"; then 8397 setopt NO_GLOB_SUBST 8398fi 8399 8400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8401$as_echo_n "checking for objdir... " >&6; } 8402if ${lt_cv_objdir+:} false; then : 8403 $as_echo_n "(cached) " >&6 8404else 8405 rm -f .libs 2>/dev/null 8406mkdir .libs 2>/dev/null 8407if test -d .libs; then 8408 lt_cv_objdir=.libs 8409else 8410 # MS-DOS does not allow filenames that begin with a dot. 8411 lt_cv_objdir=_libs 8412fi 8413rmdir .libs 2>/dev/null 8414fi 8415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8416$as_echo "$lt_cv_objdir" >&6; } 8417objdir=$lt_cv_objdir 8418 8419 8420 8421 8422 8423cat >>confdefs.h <<_ACEOF 8424#define LT_OBJDIR "$lt_cv_objdir/" 8425_ACEOF 8426 8427 8428 8429 8430case $host_os in 8431aix3*) 8432 # AIX sometimes has problems with the GCC collect2 program. For some 8433 # reason, if we set the COLLECT_NAMES environment variable, the problems 8434 # vanish in a puff of smoke. 8435 if test set != "${COLLECT_NAMES+set}"; then 8436 COLLECT_NAMES= 8437 export COLLECT_NAMES 8438 fi 8439 ;; 8440esac 8441 8442# Global variables: 8443ofile=libtool 8444can_build_shared=yes 8445 8446# All known linkers require a '.a' archive for static linking (except MSVC, 8447# which needs '.lib'). 8448libext=a 8449 8450with_gnu_ld=$lt_cv_prog_gnu_ld 8451 8452old_CC=$CC 8453old_CFLAGS=$CFLAGS 8454 8455# Set sane defaults for various variables 8456test -z "$CC" && CC=cc 8457test -z "$LTCC" && LTCC=$CC 8458test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8459test -z "$LD" && LD=ld 8460test -z "$ac_objext" && ac_objext=o 8461 8462func_cc_basename $compiler 8463cc_basename=$func_cc_basename_result 8464 8465 8466# Only perform the check for file, if the check method requires it 8467test -z "$MAGIC_CMD" && MAGIC_CMD=file 8468case $deplibs_check_method in 8469file_magic*) 8470 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8472$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8473if ${lt_cv_path_MAGIC_CMD+:} false; then : 8474 $as_echo_n "(cached) " >&6 8475else 8476 case $MAGIC_CMD in 8477[\\/*] | ?:[\\/]*) 8478 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8479 ;; 8480*) 8481 lt_save_MAGIC_CMD=$MAGIC_CMD 8482 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8483 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8484 for ac_dir in $ac_dummy; do 8485 IFS=$lt_save_ifs 8486 test -z "$ac_dir" && ac_dir=. 8487 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8488 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8489 if test -n "$file_magic_test_file"; then 8490 case $deplibs_check_method in 8491 "file_magic "*) 8492 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8493 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8494 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8495 $EGREP "$file_magic_regex" > /dev/null; then 8496 : 8497 else 8498 cat <<_LT_EOF 1>&2 8499 8500*** Warning: the command libtool uses to detect shared libraries, 8501*** $file_magic_cmd, produces output that libtool cannot recognize. 8502*** The result is that libtool may fail to recognize shared libraries 8503*** as such. This will affect the creation of libtool libraries that 8504*** depend on shared libraries, but programs linked with such libtool 8505*** libraries will work regardless of this problem. Nevertheless, you 8506*** may want to report the problem to your system manager and/or to 8507*** bug-libtool@gnu.org 8508 8509_LT_EOF 8510 fi ;; 8511 esac 8512 fi 8513 break 8514 fi 8515 done 8516 IFS=$lt_save_ifs 8517 MAGIC_CMD=$lt_save_MAGIC_CMD 8518 ;; 8519esac 8520fi 8521 8522MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8523if test -n "$MAGIC_CMD"; then 8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8525$as_echo "$MAGIC_CMD" >&6; } 8526else 8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8528$as_echo "no" >&6; } 8529fi 8530 8531 8532 8533 8534 8535if test -z "$lt_cv_path_MAGIC_CMD"; then 8536 if test -n "$ac_tool_prefix"; then 8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8538$as_echo_n "checking for file... " >&6; } 8539if ${lt_cv_path_MAGIC_CMD+:} false; then : 8540 $as_echo_n "(cached) " >&6 8541else 8542 case $MAGIC_CMD in 8543[\\/*] | ?:[\\/]*) 8544 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8545 ;; 8546*) 8547 lt_save_MAGIC_CMD=$MAGIC_CMD 8548 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8549 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8550 for ac_dir in $ac_dummy; do 8551 IFS=$lt_save_ifs 8552 test -z "$ac_dir" && ac_dir=. 8553 if test -f "$ac_dir/file"; then 8554 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8555 if test -n "$file_magic_test_file"; then 8556 case $deplibs_check_method in 8557 "file_magic "*) 8558 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8559 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8560 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8561 $EGREP "$file_magic_regex" > /dev/null; then 8562 : 8563 else 8564 cat <<_LT_EOF 1>&2 8565 8566*** Warning: the command libtool uses to detect shared libraries, 8567*** $file_magic_cmd, produces output that libtool cannot recognize. 8568*** The result is that libtool may fail to recognize shared libraries 8569*** as such. This will affect the creation of libtool libraries that 8570*** depend on shared libraries, but programs linked with such libtool 8571*** libraries will work regardless of this problem. Nevertheless, you 8572*** may want to report the problem to your system manager and/or to 8573*** bug-libtool@gnu.org 8574 8575_LT_EOF 8576 fi ;; 8577 esac 8578 fi 8579 break 8580 fi 8581 done 8582 IFS=$lt_save_ifs 8583 MAGIC_CMD=$lt_save_MAGIC_CMD 8584 ;; 8585esac 8586fi 8587 8588MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8589if test -n "$MAGIC_CMD"; then 8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8591$as_echo "$MAGIC_CMD" >&6; } 8592else 8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8594$as_echo "no" >&6; } 8595fi 8596 8597 8598 else 8599 MAGIC_CMD=: 8600 fi 8601fi 8602 8603 fi 8604 ;; 8605esac 8606 8607# Use C for the default configuration in the libtool script 8608 8609lt_save_CC=$CC 8610ac_ext=c 8611ac_cpp='$CPP $CPPFLAGS' 8612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8614ac_compiler_gnu=$ac_cv_c_compiler_gnu 8615 8616 8617# Source file extension for C test sources. 8618ac_ext=c 8619 8620# Object file extension for compiled C test sources. 8621objext=o 8622objext=$objext 8623 8624# Code to be used in simple compile tests 8625lt_simple_compile_test_code="int some_variable = 0;" 8626 8627# Code to be used in simple link tests 8628lt_simple_link_test_code='int main(){return(0);}' 8629 8630 8631 8632 8633 8634 8635 8636# If no C compiler was specified, use CC. 8637LTCC=${LTCC-"$CC"} 8638 8639# If no C compiler flags were specified, use CFLAGS. 8640LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8641 8642# Allow CC to be a program name with arguments. 8643compiler=$CC 8644 8645# Save the default compiler, since it gets overwritten when the other 8646# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8647compiler_DEFAULT=$CC 8648 8649# save warnings/boilerplate of simple test code 8650ac_outfile=conftest.$ac_objext 8651echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8652eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8653_lt_compiler_boilerplate=`cat conftest.err` 8654$RM conftest* 8655 8656ac_outfile=conftest.$ac_objext 8657echo "$lt_simple_link_test_code" >conftest.$ac_ext 8658eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8659_lt_linker_boilerplate=`cat conftest.err` 8660$RM -r conftest* 8661 8662 8663## CAVEAT EMPTOR: 8664## There is no encapsulation within the following macros, do not change 8665## the running order or otherwise move them around unless you know exactly 8666## what you are doing... 8667if test -n "$compiler"; then 8668 8669lt_prog_compiler_no_builtin_flag= 8670 8671if test yes = "$GCC"; then 8672 case $cc_basename in 8673 nvcc*) 8674 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8675 *) 8676 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8677 esac 8678 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8680$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8681if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8682 $as_echo_n "(cached) " >&6 8683else 8684 lt_cv_prog_compiler_rtti_exceptions=no 8685 ac_outfile=conftest.$ac_objext 8686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8687 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8688 # Insert the option either (1) after the last *FLAGS variable, or 8689 # (2) before a word containing "conftest.", or (3) at the end. 8690 # Note that $ac_compile itself does not contain backslashes and begins 8691 # with a dollar sign (not a hyphen), so the echo should work correctly. 8692 # The option is referenced via a variable to avoid confusing sed. 8693 lt_compile=`echo "$ac_compile" | $SED \ 8694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8696 -e 's:$: $lt_compiler_flag:'` 8697 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8698 (eval "$lt_compile" 2>conftest.err) 8699 ac_status=$? 8700 cat conftest.err >&5 8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8702 if (exit $ac_status) && test -s "$ac_outfile"; then 8703 # The compiler can only warn and ignore the option if not recognized 8704 # So say no if there are warnings other than the usual output. 8705 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8707 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8708 lt_cv_prog_compiler_rtti_exceptions=yes 8709 fi 8710 fi 8711 $RM conftest* 8712 8713fi 8714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8715$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8716 8717if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8718 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8719else 8720 : 8721fi 8722 8723fi 8724 8725 8726 8727 8728 8729 8730 lt_prog_compiler_wl= 8731lt_prog_compiler_pic= 8732lt_prog_compiler_static= 8733 8734 8735 if test yes = "$GCC"; then 8736 lt_prog_compiler_wl='-Wl,' 8737 lt_prog_compiler_static='-static' 8738 8739 case $host_os in 8740 aix*) 8741 # All AIX code is PIC. 8742 if test ia64 = "$host_cpu"; then 8743 # AIX 5 now supports IA64 processor 8744 lt_prog_compiler_static='-Bstatic' 8745 fi 8746 lt_prog_compiler_pic='-fPIC' 8747 ;; 8748 8749 amigaos*) 8750 case $host_cpu in 8751 powerpc) 8752 # see comment about AmigaOS4 .so support 8753 lt_prog_compiler_pic='-fPIC' 8754 ;; 8755 m68k) 8756 # FIXME: we need at least 68020 code to build shared libraries, but 8757 # adding the '-m68020' flag to GCC prevents building anything better, 8758 # like '-m68040'. 8759 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8760 ;; 8761 esac 8762 ;; 8763 8764 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8765 # PIC is the default for these OSes. 8766 ;; 8767 8768 mingw* | cygwin* | pw32* | os2* | cegcc*) 8769 # This hack is so that the source file can tell whether it is being 8770 # built for inclusion in a dll (and should export symbols for example). 8771 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8772 # (--disable-auto-import) libraries 8773 lt_prog_compiler_pic='-DDLL_EXPORT' 8774 case $host_os in 8775 os2*) 8776 lt_prog_compiler_static='$wl-static' 8777 ;; 8778 esac 8779 ;; 8780 8781 darwin* | rhapsody*) 8782 # PIC is the default on this platform 8783 # Common symbols not allowed in MH_DYLIB files 8784 lt_prog_compiler_pic='-fno-common' 8785 ;; 8786 8787 haiku*) 8788 # PIC is the default for Haiku. 8789 # The "-static" flag exists, but is broken. 8790 lt_prog_compiler_static= 8791 ;; 8792 8793 hpux*) 8794 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8795 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8796 # sets the default TLS model and affects inlining. 8797 case $host_cpu in 8798 hppa*64*) 8799 # +Z the default 8800 ;; 8801 *) 8802 lt_prog_compiler_pic='-fPIC' 8803 ;; 8804 esac 8805 ;; 8806 8807 interix[3-9]*) 8808 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8809 # Instead, we relocate shared libraries at runtime. 8810 ;; 8811 8812 msdosdjgpp*) 8813 # Just because we use GCC doesn't mean we suddenly get shared libraries 8814 # on systems that don't support them. 8815 lt_prog_compiler_can_build_shared=no 8816 enable_shared=no 8817 ;; 8818 8819 *nto* | *qnx*) 8820 # QNX uses GNU C++, but need to define -shared option too, otherwise 8821 # it will coredump. 8822 lt_prog_compiler_pic='-fPIC -shared' 8823 ;; 8824 8825 sysv4*MP*) 8826 if test -d /usr/nec; then 8827 lt_prog_compiler_pic=-Kconform_pic 8828 fi 8829 ;; 8830 8831 *) 8832 lt_prog_compiler_pic='-fPIC' 8833 ;; 8834 esac 8835 8836 case $cc_basename in 8837 nvcc*) # Cuda Compiler Driver 2.2 8838 lt_prog_compiler_wl='-Xlinker ' 8839 if test -n "$lt_prog_compiler_pic"; then 8840 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8841 fi 8842 ;; 8843 esac 8844 else 8845 # PORTME Check for flag to pass linker flags through the system compiler. 8846 case $host_os in 8847 aix*) 8848 lt_prog_compiler_wl='-Wl,' 8849 if test ia64 = "$host_cpu"; then 8850 # AIX 5 now supports IA64 processor 8851 lt_prog_compiler_static='-Bstatic' 8852 else 8853 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8854 fi 8855 ;; 8856 8857 darwin* | rhapsody*) 8858 # PIC is the default on this platform 8859 # Common symbols not allowed in MH_DYLIB files 8860 lt_prog_compiler_pic='-fno-common' 8861 case $cc_basename in 8862 nagfor*) 8863 # NAG Fortran compiler 8864 lt_prog_compiler_wl='-Wl,-Wl,,' 8865 lt_prog_compiler_pic='-PIC' 8866 lt_prog_compiler_static='-Bstatic' 8867 ;; 8868 esac 8869 ;; 8870 8871 mingw* | cygwin* | pw32* | os2* | cegcc*) 8872 # This hack is so that the source file can tell whether it is being 8873 # built for inclusion in a dll (and should export symbols for example). 8874 lt_prog_compiler_pic='-DDLL_EXPORT' 8875 case $host_os in 8876 os2*) 8877 lt_prog_compiler_static='$wl-static' 8878 ;; 8879 esac 8880 ;; 8881 8882 hpux9* | hpux10* | hpux11*) 8883 lt_prog_compiler_wl='-Wl,' 8884 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8885 # not for PA HP-UX. 8886 case $host_cpu in 8887 hppa*64*|ia64*) 8888 # +Z the default 8889 ;; 8890 *) 8891 lt_prog_compiler_pic='+Z' 8892 ;; 8893 esac 8894 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8895 lt_prog_compiler_static='$wl-a ${wl}archive' 8896 ;; 8897 8898 irix5* | irix6* | nonstopux*) 8899 lt_prog_compiler_wl='-Wl,' 8900 # PIC (with -KPIC) is the default. 8901 lt_prog_compiler_static='-non_shared' 8902 ;; 8903 8904 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8905 case $cc_basename in 8906 # old Intel for x86_64, which still supported -KPIC. 8907 ecc*) 8908 lt_prog_compiler_wl='-Wl,' 8909 lt_prog_compiler_pic='-KPIC' 8910 lt_prog_compiler_static='-static' 8911 ;; 8912 # flang / f18. f95 an alias for gfortran or flang on Debian 8913 flang* | f18* | f95*) 8914 lt_prog_compiler_wl='-Wl,' 8915 lt_prog_compiler_pic='-fPIC' 8916 lt_prog_compiler_static='-static' 8917 ;; 8918 # icc used to be incompatible with GCC. 8919 # ICC 10 doesn't accept -KPIC any more. 8920 icc* | ifort*) 8921 lt_prog_compiler_wl='-Wl,' 8922 lt_prog_compiler_pic='-fPIC' 8923 lt_prog_compiler_static='-static' 8924 ;; 8925 # Lahey Fortran 8.1. 8926 lf95*) 8927 lt_prog_compiler_wl='-Wl,' 8928 lt_prog_compiler_pic='--shared' 8929 lt_prog_compiler_static='--static' 8930 ;; 8931 nagfor*) 8932 # NAG Fortran compiler 8933 lt_prog_compiler_wl='-Wl,-Wl,,' 8934 lt_prog_compiler_pic='-PIC' 8935 lt_prog_compiler_static='-Bstatic' 8936 ;; 8937 tcc*) 8938 # Fabrice Bellard et al's Tiny C Compiler 8939 lt_prog_compiler_wl='-Wl,' 8940 lt_prog_compiler_pic='-fPIC' 8941 lt_prog_compiler_static='-static' 8942 ;; 8943 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8944 # Portland Group compilers (*not* the Pentium gcc compiler, 8945 # which looks to be a dead project) 8946 lt_prog_compiler_wl='-Wl,' 8947 lt_prog_compiler_pic='-fpic' 8948 lt_prog_compiler_static='-Bstatic' 8949 ;; 8950 ccc*) 8951 lt_prog_compiler_wl='-Wl,' 8952 # All Alpha code is PIC. 8953 lt_prog_compiler_static='-non_shared' 8954 ;; 8955 xl* | bgxl* | bgf* | mpixl*) 8956 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8957 lt_prog_compiler_wl='-Wl,' 8958 lt_prog_compiler_pic='-qpic' 8959 lt_prog_compiler_static='-qstaticlink' 8960 ;; 8961 *) 8962 case `$CC -V 2>&1 | sed 5q` in 8963 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8964 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8965 lt_prog_compiler_pic='-KPIC' 8966 lt_prog_compiler_static='-Bstatic' 8967 lt_prog_compiler_wl='' 8968 ;; 8969 *Sun\ F* | *Sun*Fortran*) 8970 lt_prog_compiler_pic='-KPIC' 8971 lt_prog_compiler_static='-Bstatic' 8972 lt_prog_compiler_wl='-Qoption ld ' 8973 ;; 8974 *Sun\ C*) 8975 # Sun C 5.9 8976 lt_prog_compiler_pic='-KPIC' 8977 lt_prog_compiler_static='-Bstatic' 8978 lt_prog_compiler_wl='-Wl,' 8979 ;; 8980 *Intel*\ [CF]*Compiler*) 8981 lt_prog_compiler_wl='-Wl,' 8982 lt_prog_compiler_pic='-fPIC' 8983 lt_prog_compiler_static='-static' 8984 ;; 8985 *Portland\ Group*) 8986 lt_prog_compiler_wl='-Wl,' 8987 lt_prog_compiler_pic='-fpic' 8988 lt_prog_compiler_static='-Bstatic' 8989 ;; 8990 esac 8991 ;; 8992 esac 8993 ;; 8994 8995 newsos6) 8996 lt_prog_compiler_pic='-KPIC' 8997 lt_prog_compiler_static='-Bstatic' 8998 ;; 8999 9000 *nto* | *qnx*) 9001 # QNX uses GNU C++, but need to define -shared option too, otherwise 9002 # it will coredump. 9003 lt_prog_compiler_pic='-fPIC -shared' 9004 ;; 9005 9006 osf3* | osf4* | osf5*) 9007 lt_prog_compiler_wl='-Wl,' 9008 # All OSF/1 code is PIC. 9009 lt_prog_compiler_static='-non_shared' 9010 ;; 9011 9012 rdos*) 9013 lt_prog_compiler_static='-non_shared' 9014 ;; 9015 9016 solaris*) 9017 lt_prog_compiler_pic='-KPIC' 9018 lt_prog_compiler_static='-Bstatic' 9019 case $cc_basename in 9020 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9021 lt_prog_compiler_wl='-Qoption ld ';; 9022 *) 9023 lt_prog_compiler_wl='-Wl,';; 9024 esac 9025 ;; 9026 9027 sunos4*) 9028 lt_prog_compiler_wl='-Qoption ld ' 9029 lt_prog_compiler_pic='-PIC' 9030 lt_prog_compiler_static='-Bstatic' 9031 ;; 9032 9033 sysv4 | sysv4.2uw2* | sysv4.3*) 9034 lt_prog_compiler_wl='-Wl,' 9035 lt_prog_compiler_pic='-KPIC' 9036 lt_prog_compiler_static='-Bstatic' 9037 ;; 9038 9039 sysv4*MP*) 9040 if test -d /usr/nec; then 9041 lt_prog_compiler_pic='-Kconform_pic' 9042 lt_prog_compiler_static='-Bstatic' 9043 fi 9044 ;; 9045 9046 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9047 lt_prog_compiler_wl='-Wl,' 9048 lt_prog_compiler_pic='-KPIC' 9049 lt_prog_compiler_static='-Bstatic' 9050 ;; 9051 9052 unicos*) 9053 lt_prog_compiler_wl='-Wl,' 9054 lt_prog_compiler_can_build_shared=no 9055 ;; 9056 9057 uts4*) 9058 lt_prog_compiler_pic='-pic' 9059 lt_prog_compiler_static='-Bstatic' 9060 ;; 9061 9062 *) 9063 lt_prog_compiler_can_build_shared=no 9064 ;; 9065 esac 9066 fi 9067 9068case $host_os in 9069 # For platforms that do not support PIC, -DPIC is meaningless: 9070 *djgpp*) 9071 lt_prog_compiler_pic= 9072 ;; 9073 *) 9074 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9075 ;; 9076esac 9077 9078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9079$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9080if ${lt_cv_prog_compiler_pic+:} false; then : 9081 $as_echo_n "(cached) " >&6 9082else 9083 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9084fi 9085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9086$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9087lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9088 9089# 9090# Check to make sure the PIC flag actually works. 9091# 9092if test -n "$lt_prog_compiler_pic"; then 9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9094$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9095if ${lt_cv_prog_compiler_pic_works+:} false; then : 9096 $as_echo_n "(cached) " >&6 9097else 9098 lt_cv_prog_compiler_pic_works=no 9099 ac_outfile=conftest.$ac_objext 9100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9101 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9102 # Insert the option either (1) after the last *FLAGS variable, or 9103 # (2) before a word containing "conftest.", or (3) at the end. 9104 # Note that $ac_compile itself does not contain backslashes and begins 9105 # with a dollar sign (not a hyphen), so the echo should work correctly. 9106 # The option is referenced via a variable to avoid confusing sed. 9107 lt_compile=`echo "$ac_compile" | $SED \ 9108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9110 -e 's:$: $lt_compiler_flag:'` 9111 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9112 (eval "$lt_compile" 2>conftest.err) 9113 ac_status=$? 9114 cat conftest.err >&5 9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9116 if (exit $ac_status) && test -s "$ac_outfile"; then 9117 # The compiler can only warn and ignore the option if not recognized 9118 # So say no if there are warnings other than the usual output. 9119 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9121 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9122 lt_cv_prog_compiler_pic_works=yes 9123 fi 9124 fi 9125 $RM conftest* 9126 9127fi 9128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9129$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9130 9131if test yes = "$lt_cv_prog_compiler_pic_works"; then 9132 case $lt_prog_compiler_pic in 9133 "" | " "*) ;; 9134 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9135 esac 9136else 9137 lt_prog_compiler_pic= 9138 lt_prog_compiler_can_build_shared=no 9139fi 9140 9141fi 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153# 9154# Check to make sure the static flag actually works. 9155# 9156wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9158$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9159if ${lt_cv_prog_compiler_static_works+:} false; then : 9160 $as_echo_n "(cached) " >&6 9161else 9162 lt_cv_prog_compiler_static_works=no 9163 save_LDFLAGS=$LDFLAGS 9164 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9165 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9166 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9167 # The linker can only warn and ignore the option if not recognized 9168 # So say no if there are warnings 9169 if test -s conftest.err; then 9170 # Append any errors to the config.log. 9171 cat conftest.err 1>&5 9172 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9174 if diff conftest.exp conftest.er2 >/dev/null; then 9175 lt_cv_prog_compiler_static_works=yes 9176 fi 9177 else 9178 lt_cv_prog_compiler_static_works=yes 9179 fi 9180 fi 9181 $RM -r conftest* 9182 LDFLAGS=$save_LDFLAGS 9183 9184fi 9185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9186$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9187 9188if test yes = "$lt_cv_prog_compiler_static_works"; then 9189 : 9190else 9191 lt_prog_compiler_static= 9192fi 9193 9194 9195 9196 9197 9198 9199 9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9201$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9202if ${lt_cv_prog_compiler_c_o+:} false; then : 9203 $as_echo_n "(cached) " >&6 9204else 9205 lt_cv_prog_compiler_c_o=no 9206 $RM -r conftest 2>/dev/null 9207 mkdir conftest 9208 cd conftest 9209 mkdir out 9210 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9211 9212 lt_compiler_flag="-o out/conftest2.$ac_objext" 9213 # Insert the option either (1) after the last *FLAGS variable, or 9214 # (2) before a word containing "conftest.", or (3) at the end. 9215 # Note that $ac_compile itself does not contain backslashes and begins 9216 # with a dollar sign (not a hyphen), so the echo should work correctly. 9217 lt_compile=`echo "$ac_compile" | $SED \ 9218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9220 -e 's:$: $lt_compiler_flag:'` 9221 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9222 (eval "$lt_compile" 2>out/conftest.err) 9223 ac_status=$? 9224 cat out/conftest.err >&5 9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9226 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9227 then 9228 # The compiler can only warn and ignore the option if not recognized 9229 # So say no if there are warnings 9230 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9231 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9232 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9233 lt_cv_prog_compiler_c_o=yes 9234 fi 9235 fi 9236 chmod u+w . 2>&5 9237 $RM conftest* 9238 # SGI C++ compiler will create directory out/ii_files/ for 9239 # template instantiation 9240 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9241 $RM out/* && rmdir out 9242 cd .. 9243 $RM -r conftest 9244 $RM conftest* 9245 9246fi 9247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9248$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9249 9250 9251 9252 9253 9254 9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9256$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9257if ${lt_cv_prog_compiler_c_o+:} false; then : 9258 $as_echo_n "(cached) " >&6 9259else 9260 lt_cv_prog_compiler_c_o=no 9261 $RM -r conftest 2>/dev/null 9262 mkdir conftest 9263 cd conftest 9264 mkdir out 9265 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9266 9267 lt_compiler_flag="-o out/conftest2.$ac_objext" 9268 # Insert the option either (1) after the last *FLAGS variable, or 9269 # (2) before a word containing "conftest.", or (3) at the end. 9270 # Note that $ac_compile itself does not contain backslashes and begins 9271 # with a dollar sign (not a hyphen), so the echo should work correctly. 9272 lt_compile=`echo "$ac_compile" | $SED \ 9273 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9274 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9275 -e 's:$: $lt_compiler_flag:'` 9276 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9277 (eval "$lt_compile" 2>out/conftest.err) 9278 ac_status=$? 9279 cat out/conftest.err >&5 9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9281 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9282 then 9283 # The compiler can only warn and ignore the option if not recognized 9284 # So say no if there are warnings 9285 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9286 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9287 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9288 lt_cv_prog_compiler_c_o=yes 9289 fi 9290 fi 9291 chmod u+w . 2>&5 9292 $RM conftest* 9293 # SGI C++ compiler will create directory out/ii_files/ for 9294 # template instantiation 9295 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9296 $RM out/* && rmdir out 9297 cd .. 9298 $RM -r conftest 9299 $RM conftest* 9300 9301fi 9302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9303$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9304 9305 9306 9307 9308hard_links=nottested 9309if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9310 # do not overwrite the value of need_locks provided by the user 9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9312$as_echo_n "checking if we can lock with hard links... " >&6; } 9313 hard_links=yes 9314 $RM conftest* 9315 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9316 touch conftest.a 9317 ln conftest.a conftest.b 2>&5 || hard_links=no 9318 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9320$as_echo "$hard_links" >&6; } 9321 if test no = "$hard_links"; then 9322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9323$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9324 need_locks=warn 9325 fi 9326else 9327 need_locks=no 9328fi 9329 9330 9331 9332 9333 9334 9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9336$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9337 9338 runpath_var= 9339 allow_undefined_flag= 9340 always_export_symbols=no 9341 archive_cmds= 9342 archive_expsym_cmds= 9343 compiler_needs_object=no 9344 enable_shared_with_static_runtimes=no 9345 export_dynamic_flag_spec= 9346 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9347 hardcode_automatic=no 9348 hardcode_direct=no 9349 hardcode_direct_absolute=no 9350 hardcode_libdir_flag_spec= 9351 hardcode_libdir_separator= 9352 hardcode_minus_L=no 9353 hardcode_shlibpath_var=unsupported 9354 inherit_rpath=no 9355 link_all_deplibs=unknown 9356 module_cmds= 9357 module_expsym_cmds= 9358 old_archive_from_new_cmds= 9359 old_archive_from_expsyms_cmds= 9360 thread_safe_flag_spec= 9361 whole_archive_flag_spec= 9362 # include_expsyms should be a list of space-separated symbols to be *always* 9363 # included in the symbol list 9364 include_expsyms= 9365 # exclude_expsyms can be an extended regexp of symbols to exclude 9366 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9367 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9368 # as well as any symbol that contains 'd'. 9369 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9370 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9371 # platforms (ab)use it in PIC code, but their linkers get confused if 9372 # the symbol is explicitly referenced. Since portable code cannot 9373 # rely on this symbol name, it's probably fine to never include it in 9374 # preloaded symbol tables. 9375 # Exclude shared library initialization/finalization symbols. 9376 extract_expsyms_cmds= 9377 9378 case $host_os in 9379 cygwin* | mingw* | pw32* | cegcc*) 9380 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9381 # When not using gcc, we currently assume that we are using 9382 # Microsoft Visual C++. 9383 if test yes != "$GCC"; then 9384 with_gnu_ld=no 9385 fi 9386 ;; 9387 interix*) 9388 # we just hope/assume this is gcc and not c89 (= MSVC++) 9389 with_gnu_ld=yes 9390 ;; 9391 openbsd* | bitrig*) 9392 with_gnu_ld=no 9393 ;; 9394 linux* | k*bsd*-gnu | gnu*) 9395 link_all_deplibs=no 9396 ;; 9397 esac 9398 9399 ld_shlibs=yes 9400 9401 # On some targets, GNU ld is compatible enough with the native linker 9402 # that we're better off using the native interface for both. 9403 lt_use_gnu_ld_interface=no 9404 if test yes = "$with_gnu_ld"; then 9405 case $host_os in 9406 aix*) 9407 # The AIX port of GNU ld has always aspired to compatibility 9408 # with the native linker. However, as the warning in the GNU ld 9409 # block says, versions before 2.19.5* couldn't really create working 9410 # shared libraries, regardless of the interface used. 9411 case `$LD -v 2>&1` in 9412 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9413 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9414 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9415 *) 9416 lt_use_gnu_ld_interface=yes 9417 ;; 9418 esac 9419 ;; 9420 *) 9421 lt_use_gnu_ld_interface=yes 9422 ;; 9423 esac 9424 fi 9425 9426 if test yes = "$lt_use_gnu_ld_interface"; then 9427 # If archive_cmds runs LD, not CC, wlarc should be empty 9428 wlarc='$wl' 9429 9430 # Set some defaults for GNU ld with shared library support. These 9431 # are reset later if shared libraries are not supported. Putting them 9432 # here allows them to be overridden if necessary. 9433 runpath_var=LD_RUN_PATH 9434 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9435 export_dynamic_flag_spec='$wl--export-dynamic' 9436 # ancient GNU ld didn't support --whole-archive et. al. 9437 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9438 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9439 else 9440 whole_archive_flag_spec= 9441 fi 9442 supports_anon_versioning=no 9443 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9444 *GNU\ gold*) supports_anon_versioning=yes ;; 9445 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9446 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9447 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9448 *\ 2.11.*) ;; # other 2.11 versions 9449 *) supports_anon_versioning=yes ;; 9450 esac 9451 9452 # See if GNU ld supports shared libraries. 9453 case $host_os in 9454 aix[3-9]*) 9455 # On AIX/PPC, the GNU linker is very broken 9456 if test ia64 != "$host_cpu"; then 9457 ld_shlibs=no 9458 cat <<_LT_EOF 1>&2 9459 9460*** Warning: the GNU linker, at least up to release 2.19, is reported 9461*** to be unable to reliably create shared libraries on AIX. 9462*** Therefore, libtool is disabling shared libraries support. If you 9463*** really care for shared libraries, you may want to install binutils 9464*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9465*** You will then need to restart the configuration process. 9466 9467_LT_EOF 9468 fi 9469 ;; 9470 9471 amigaos*) 9472 case $host_cpu in 9473 powerpc) 9474 # see comment about AmigaOS4 .so support 9475 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9476 archive_expsym_cmds='' 9477 ;; 9478 m68k) 9479 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)' 9480 hardcode_libdir_flag_spec='-L$libdir' 9481 hardcode_minus_L=yes 9482 ;; 9483 esac 9484 ;; 9485 9486 beos*) 9487 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9488 allow_undefined_flag=unsupported 9489 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9490 # support --undefined. This deserves some investigation. FIXME 9491 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9492 else 9493 ld_shlibs=no 9494 fi 9495 ;; 9496 9497 cygwin* | mingw* | pw32* | cegcc*) 9498 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9499 # as there is no search path for DLLs. 9500 hardcode_libdir_flag_spec='-L$libdir' 9501 export_dynamic_flag_spec='$wl--export-all-symbols' 9502 allow_undefined_flag=unsupported 9503 always_export_symbols=no 9504 enable_shared_with_static_runtimes=yes 9505 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' 9506 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9507 9508 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9510 # If the export-symbols file already is a .def file, use it as 9511 # is; otherwise, prepend EXPORTS... 9512 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9513 cp $export_symbols $output_objdir/$soname.def; 9514 else 9515 echo EXPORTS > $output_objdir/$soname.def; 9516 cat $export_symbols >> $output_objdir/$soname.def; 9517 fi~ 9518 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9519 else 9520 ld_shlibs=no 9521 fi 9522 ;; 9523 9524 haiku*) 9525 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9526 link_all_deplibs=yes 9527 ;; 9528 9529 os2*) 9530 hardcode_libdir_flag_spec='-L$libdir' 9531 hardcode_minus_L=yes 9532 allow_undefined_flag=unsupported 9533 shrext_cmds=.dll 9534 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9535 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9536 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9537 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9538 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9539 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9540 emximp -o $lib $output_objdir/$libname.def' 9541 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9542 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9543 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9544 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9545 prefix_cmds="$SED"~ 9546 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9547 prefix_cmds="$prefix_cmds -e 1d"; 9548 fi~ 9549 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9550 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9551 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9552 emximp -o $lib $output_objdir/$libname.def' 9553 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9554 enable_shared_with_static_runtimes=yes 9555 ;; 9556 9557 interix[3-9]*) 9558 hardcode_direct=no 9559 hardcode_shlibpath_var=no 9560 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9561 export_dynamic_flag_spec='$wl-E' 9562 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9563 # Instead, shared libraries are loaded at an image base (0x10000000 by 9564 # default) and relocated if they conflict, which is a slow very memory 9565 # consuming and fragmenting process. To avoid this, we pick a random, 9566 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9567 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9568 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9569 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' 9570 ;; 9571 9572 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9573 tmp_diet=no 9574 if test linux-dietlibc = "$host_os"; then 9575 case $cc_basename in 9576 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9577 esac 9578 fi 9579 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9580 && test no = "$tmp_diet" 9581 then 9582 tmp_addflag=' $pic_flag' 9583 tmp_sharedflag='-shared' 9584 case $cc_basename,$host_cpu in 9585 pgcc*) # Portland Group C compiler 9586 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' 9587 tmp_addflag=' $pic_flag' 9588 ;; 9589 pgf77* | pgf90* | pgf95* | pgfortran*) 9590 # Portland Group f77 and f90 compilers 9591 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' 9592 tmp_addflag=' $pic_flag -Mnomain' ;; 9593 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9594 tmp_addflag=' -i_dynamic' ;; 9595 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9596 tmp_addflag=' -i_dynamic -nofor_main' ;; 9597 ifc* | ifort*) # Intel Fortran compiler 9598 tmp_addflag=' -nofor_main' ;; 9599 lf95*) # Lahey Fortran 8.1 9600 whole_archive_flag_spec= 9601 tmp_sharedflag='--shared' ;; 9602 nagfor*) # NAGFOR 5.3 9603 tmp_sharedflag='-Wl,-shared' ;; 9604 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9605 tmp_sharedflag='-qmkshrobj' 9606 tmp_addflag= ;; 9607 nvcc*) # Cuda Compiler Driver 2.2 9608 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' 9609 compiler_needs_object=yes 9610 ;; 9611 esac 9612 case `$CC -V 2>&1 | sed 5q` in 9613 *Sun\ C*) # Sun C 5.9 9614 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' 9615 compiler_needs_object=yes 9616 tmp_sharedflag='-G' ;; 9617 *Sun\ F*) # Sun Fortran 8.3 9618 tmp_sharedflag='-G' ;; 9619 esac 9620 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9621 9622 if test yes = "$supports_anon_versioning"; then 9623 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9624 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9625 echo "local: *; };" >> $output_objdir/$libname.ver~ 9626 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9627 fi 9628 9629 case $cc_basename in 9630 tcc*) 9631 export_dynamic_flag_spec='-rdynamic' 9632 ;; 9633 xlf* | bgf* | bgxlf* | mpixlf*) 9634 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9635 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9636 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9637 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9638 if test yes = "$supports_anon_versioning"; then 9639 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9640 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9641 echo "local: *; };" >> $output_objdir/$libname.ver~ 9642 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9643 fi 9644 ;; 9645 esac 9646 else 9647 ld_shlibs=no 9648 fi 9649 ;; 9650 9651 netbsd* | netbsdelf*-gnu) 9652 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9653 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9654 wlarc= 9655 else 9656 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9657 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9658 fi 9659 ;; 9660 9661 solaris*) 9662 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9663 ld_shlibs=no 9664 cat <<_LT_EOF 1>&2 9665 9666*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9667*** create shared libraries on Solaris systems. Therefore, libtool 9668*** is disabling shared libraries support. We urge you to upgrade GNU 9669*** binutils to release 2.9.1 or newer. Another option is to modify 9670*** your PATH or compiler configuration so that the native linker is 9671*** used, and then restart. 9672 9673_LT_EOF 9674 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9675 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9676 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9677 else 9678 ld_shlibs=no 9679 fi 9680 ;; 9681 9682 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9683 case `$LD -v 2>&1` in 9684 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9685 ld_shlibs=no 9686 cat <<_LT_EOF 1>&2 9687 9688*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9689*** reliably create shared libraries on SCO systems. Therefore, libtool 9690*** is disabling shared libraries support. We urge you to upgrade GNU 9691*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9692*** your PATH or compiler configuration so that the native linker is 9693*** used, and then restart. 9694 9695_LT_EOF 9696 ;; 9697 *) 9698 # For security reasons, it is highly recommended that you always 9699 # use absolute paths for naming shared libraries, and exclude the 9700 # DT_RUNPATH tag from executables and libraries. But doing so 9701 # requires that you compile everything twice, which is a pain. 9702 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9703 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9705 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9706 else 9707 ld_shlibs=no 9708 fi 9709 ;; 9710 esac 9711 ;; 9712 9713 sunos4*) 9714 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9715 wlarc= 9716 hardcode_direct=yes 9717 hardcode_shlibpath_var=no 9718 ;; 9719 9720 *) 9721 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9722 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9723 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9724 else 9725 ld_shlibs=no 9726 fi 9727 ;; 9728 esac 9729 9730 if test no = "$ld_shlibs"; then 9731 runpath_var= 9732 hardcode_libdir_flag_spec= 9733 export_dynamic_flag_spec= 9734 whole_archive_flag_spec= 9735 fi 9736 else 9737 # PORTME fill in a description of your system's linker (not GNU ld) 9738 case $host_os in 9739 aix3*) 9740 allow_undefined_flag=unsupported 9741 always_export_symbols=yes 9742 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' 9743 # Note: this linker hardcodes the directories in LIBPATH if there 9744 # are no directories specified by -L. 9745 hardcode_minus_L=yes 9746 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9747 # Neither direct hardcoding nor static linking is supported with a 9748 # broken collect2. 9749 hardcode_direct=unsupported 9750 fi 9751 ;; 9752 9753 aix[4-9]*) 9754 if test ia64 = "$host_cpu"; then 9755 # On IA64, the linker does run time linking by default, so we don't 9756 # have to do anything special. 9757 aix_use_runtimelinking=no 9758 exp_sym_flag='-Bexport' 9759 no_entry_flag= 9760 else 9761 # If we're using GNU nm, then we don't want the "-C" option. 9762 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9763 # Without the "-l" option, or with the "-B" option, AIX nm treats 9764 # weak defined symbols like other global defined symbols, whereas 9765 # GNU nm marks them as "W". 9766 # While the 'weak' keyword is ignored in the Export File, we need 9767 # it in the Import File for the 'aix-soname' feature, so we have 9768 # to replace the "-B" option with "-P" for AIX nm. 9769 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9770 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' 9771 else 9772 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 9773 fi 9774 aix_use_runtimelinking=no 9775 9776 # Test if we are trying to use run time linking or normal 9777 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9778 # have runtime linking enabled, and use it for executables. 9779 # For shared libraries, we enable/disable runtime linking 9780 # depending on the kind of the shared library created - 9781 # when "with_aix_soname,aix_use_runtimelinking" is: 9782 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9783 # "aix,yes" lib.so shared, rtl:yes, for executables 9784 # lib.a static archive 9785 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9786 # lib.a(lib.so.V) shared, rtl:no, for executables 9787 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9788 # lib.a(lib.so.V) shared, rtl:no 9789 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9790 # lib.a static archive 9791 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9792 for ld_flag in $LDFLAGS; do 9793 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9794 aix_use_runtimelinking=yes 9795 break 9796 fi 9797 done 9798 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9799 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9800 # so we don't have lib.a shared libs to link our executables. 9801 # We have to force runtime linking in this case. 9802 aix_use_runtimelinking=yes 9803 LDFLAGS="$LDFLAGS -Wl,-brtl" 9804 fi 9805 ;; 9806 esac 9807 9808 exp_sym_flag='-bexport' 9809 no_entry_flag='-bnoentry' 9810 fi 9811 9812 # When large executables or shared objects are built, AIX ld can 9813 # have problems creating the table of contents. If linking a library 9814 # or program results in "error TOC overflow" add -mminimal-toc to 9815 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9816 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9817 9818 archive_cmds='' 9819 hardcode_direct=yes 9820 hardcode_direct_absolute=yes 9821 hardcode_libdir_separator=':' 9822 link_all_deplibs=yes 9823 file_list_spec='$wl-f,' 9824 case $with_aix_soname,$aix_use_runtimelinking in 9825 aix,*) ;; # traditional, no import file 9826 svr4,* | *,yes) # use import file 9827 # The Import File defines what to hardcode. 9828 hardcode_direct=no 9829 hardcode_direct_absolute=no 9830 ;; 9831 esac 9832 9833 if test yes = "$GCC"; then 9834 case $host_os in aix4.[012]|aix4.[012].*) 9835 # We only want to do this on AIX 4.2 and lower, the check 9836 # below for broken collect2 doesn't work under 4.3+ 9837 collect2name=`$CC -print-prog-name=collect2` 9838 if test -f "$collect2name" && 9839 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9840 then 9841 # We have reworked collect2 9842 : 9843 else 9844 # We have old collect2 9845 hardcode_direct=unsupported 9846 # It fails to find uninstalled libraries when the uninstalled 9847 # path is not listed in the libpath. Setting hardcode_minus_L 9848 # to unsupported forces relinking 9849 hardcode_minus_L=yes 9850 hardcode_libdir_flag_spec='-L$libdir' 9851 hardcode_libdir_separator= 9852 fi 9853 ;; 9854 esac 9855 shared_flag='-shared' 9856 if test yes = "$aix_use_runtimelinking"; then 9857 shared_flag="$shared_flag "'$wl-G' 9858 fi 9859 # Need to ensure runtime linking is disabled for the traditional 9860 # shared library, or the linker may eventually find shared libraries 9861 # /with/ Import File - we do not want to mix them. 9862 shared_flag_aix='-shared' 9863 shared_flag_svr4='-shared $wl-G' 9864 else 9865 # not using gcc 9866 if test ia64 = "$host_cpu"; then 9867 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9868 # chokes on -Wl,-G. The following line is correct: 9869 shared_flag='-G' 9870 else 9871 if test yes = "$aix_use_runtimelinking"; then 9872 shared_flag='$wl-G' 9873 else 9874 shared_flag='$wl-bM:SRE' 9875 fi 9876 shared_flag_aix='$wl-bM:SRE' 9877 shared_flag_svr4='$wl-G' 9878 fi 9879 fi 9880 9881 export_dynamic_flag_spec='$wl-bexpall' 9882 # It seems that -bexpall does not export symbols beginning with 9883 # underscore (_), so it is better to generate a list of symbols to export. 9884 always_export_symbols=yes 9885 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9886 # Warning - without using the other runtime loading flags (-brtl), 9887 # -berok will link without error, but may produce a broken library. 9888 allow_undefined_flag='-berok' 9889 # Determine the default libpath from the value encoded in an 9890 # empty executable. 9891 if test set = "${lt_cv_aix_libpath+set}"; then 9892 aix_libpath=$lt_cv_aix_libpath 9893else 9894 if ${lt_cv_aix_libpath_+:} false; then : 9895 $as_echo_n "(cached) " >&6 9896else 9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9898/* end confdefs.h. */ 9899 9900int 9901main () 9902{ 9903 9904 ; 9905 return 0; 9906} 9907_ACEOF 9908if ac_fn_c_try_link "$LINENO"; then : 9909 9910 lt_aix_libpath_sed=' 9911 /Import File Strings/,/^$/ { 9912 /^0/ { 9913 s/^0 *\([^ ]*\) *$/\1/ 9914 p 9915 } 9916 }' 9917 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9918 # Check for a 64-bit object if we didn't find anything. 9919 if test -z "$lt_cv_aix_libpath_"; then 9920 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9921 fi 9922fi 9923rm -f core conftest.err conftest.$ac_objext \ 9924 conftest$ac_exeext conftest.$ac_ext 9925 if test -z "$lt_cv_aix_libpath_"; then 9926 lt_cv_aix_libpath_=/usr/lib:/lib 9927 fi 9928 9929fi 9930 9931 aix_libpath=$lt_cv_aix_libpath_ 9932fi 9933 9934 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9935 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 9936 else 9937 if test ia64 = "$host_cpu"; then 9938 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9939 allow_undefined_flag="-z nodefs" 9940 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" 9941 else 9942 # Determine the default libpath from the value encoded in an 9943 # empty executable. 9944 if test set = "${lt_cv_aix_libpath+set}"; then 9945 aix_libpath=$lt_cv_aix_libpath 9946else 9947 if ${lt_cv_aix_libpath_+:} false; then : 9948 $as_echo_n "(cached) " >&6 9949else 9950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9951/* end confdefs.h. */ 9952 9953int 9954main () 9955{ 9956 9957 ; 9958 return 0; 9959} 9960_ACEOF 9961if ac_fn_c_try_link "$LINENO"; then : 9962 9963 lt_aix_libpath_sed=' 9964 /Import File Strings/,/^$/ { 9965 /^0/ { 9966 s/^0 *\([^ ]*\) *$/\1/ 9967 p 9968 } 9969 }' 9970 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9971 # Check for a 64-bit object if we didn't find anything. 9972 if test -z "$lt_cv_aix_libpath_"; then 9973 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9974 fi 9975fi 9976rm -f core conftest.err conftest.$ac_objext \ 9977 conftest$ac_exeext conftest.$ac_ext 9978 if test -z "$lt_cv_aix_libpath_"; then 9979 lt_cv_aix_libpath_=/usr/lib:/lib 9980 fi 9981 9982fi 9983 9984 aix_libpath=$lt_cv_aix_libpath_ 9985fi 9986 9987 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9988 # Warning - without using the other run time loading flags, 9989 # -berok will link without error, but may produce a broken library. 9990 no_undefined_flag=' $wl-bernotok' 9991 allow_undefined_flag=' $wl-berok' 9992 if test yes = "$with_gnu_ld"; then 9993 # We only use this code for GNU lds that support --whole-archive. 9994 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9995 else 9996 # Exported symbols can be pulled into shared objects from archives 9997 whole_archive_flag_spec='$convenience' 9998 fi 9999 archive_cmds_need_lc=yes 10000 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10001 # -brtl affects multiple linker settings, -berok does not and is overridden later 10002 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10003 if test svr4 != "$with_aix_soname"; then 10004 # This is similar to how AIX traditionally builds its shared libraries. 10005 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' 10006 fi 10007 if test aix != "$with_aix_soname"; then 10008 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' 10009 else 10010 # used by -dlpreopen to get the symbols 10011 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10012 fi 10013 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10014 fi 10015 fi 10016 ;; 10017 10018 amigaos*) 10019 case $host_cpu in 10020 powerpc) 10021 # see comment about AmigaOS4 .so support 10022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10023 archive_expsym_cmds='' 10024 ;; 10025 m68k) 10026 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)' 10027 hardcode_libdir_flag_spec='-L$libdir' 10028 hardcode_minus_L=yes 10029 ;; 10030 esac 10031 ;; 10032 10033 bsdi[45]*) 10034 export_dynamic_flag_spec=-rdynamic 10035 ;; 10036 10037 cygwin* | mingw* | pw32* | cegcc*) 10038 # When not using gcc, we currently assume that we are using 10039 # Microsoft Visual C++. 10040 # hardcode_libdir_flag_spec is actually meaningless, as there is 10041 # no search path for DLLs. 10042 case $cc_basename in 10043 cl*) 10044 # Native MSVC 10045 hardcode_libdir_flag_spec=' ' 10046 allow_undefined_flag=unsupported 10047 always_export_symbols=yes 10048 file_list_spec='@' 10049 # Tell ltmain to make .lib files, not .a files. 10050 libext=lib 10051 # Tell ltmain to make .dll files, not .so files. 10052 shrext_cmds=.dll 10053 # FIXME: Setting linknames here is a bad hack. 10054 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10055 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10056 cp "$export_symbols" "$output_objdir/$soname.def"; 10057 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10058 else 10059 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10060 fi~ 10061 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10062 linknames=' 10063 # The linker will not automatically build a static lib if we build a DLL. 10064 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10065 enable_shared_with_static_runtimes=yes 10066 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10067 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10068 # Don't use ranlib 10069 old_postinstall_cmds='chmod 644 $oldlib' 10070 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10071 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10072 case $lt_outputfile in 10073 *.exe|*.EXE) ;; 10074 *) 10075 lt_outputfile=$lt_outputfile.exe 10076 lt_tool_outputfile=$lt_tool_outputfile.exe 10077 ;; 10078 esac~ 10079 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10080 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10081 $RM "$lt_outputfile.manifest"; 10082 fi' 10083 ;; 10084 *) 10085 # Assume MSVC wrapper 10086 hardcode_libdir_flag_spec=' ' 10087 allow_undefined_flag=unsupported 10088 # Tell ltmain to make .lib files, not .a files. 10089 libext=lib 10090 # Tell ltmain to make .dll files, not .so files. 10091 shrext_cmds=.dll 10092 # FIXME: Setting linknames here is a bad hack. 10093 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10094 # The linker will automatically build a .lib file if we build a DLL. 10095 old_archive_from_new_cmds='true' 10096 # FIXME: Should let the user specify the lib program. 10097 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10098 enable_shared_with_static_runtimes=yes 10099 ;; 10100 esac 10101 ;; 10102 10103 darwin* | rhapsody*) 10104 10105 10106 archive_cmds_need_lc=no 10107 hardcode_direct=no 10108 hardcode_automatic=yes 10109 hardcode_shlibpath_var=unsupported 10110 if test yes = "$lt_cv_ld_force_load"; then 10111 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\"`' 10112 10113 else 10114 whole_archive_flag_spec='' 10115 fi 10116 link_all_deplibs=yes 10117 allow_undefined_flag=$_lt_dar_allow_undefined 10118 case $cc_basename in 10119 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10120 *) _lt_dar_can_shared=$GCC ;; 10121 esac 10122 if test yes = "$_lt_dar_can_shared"; then 10123 output_verbose_link_cmd=func_echo_all 10124 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10125 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10126 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" 10127 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" 10128 10129 else 10130 ld_shlibs=no 10131 fi 10132 10133 ;; 10134 10135 dgux*) 10136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10137 hardcode_libdir_flag_spec='-L$libdir' 10138 hardcode_shlibpath_var=no 10139 ;; 10140 10141 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10142 # support. Future versions do this automatically, but an explicit c++rt0.o 10143 # does not break anything, and helps significantly (at the cost of a little 10144 # extra space). 10145 freebsd2.2*) 10146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10147 hardcode_libdir_flag_spec='-R$libdir' 10148 hardcode_direct=yes 10149 hardcode_shlibpath_var=no 10150 ;; 10151 10152 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10153 freebsd2.*) 10154 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10155 hardcode_direct=yes 10156 hardcode_minus_L=yes 10157 hardcode_shlibpath_var=no 10158 ;; 10159 10160 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10161 freebsd* | dragonfly*) 10162 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10163 hardcode_libdir_flag_spec='-R$libdir' 10164 hardcode_direct=yes 10165 hardcode_shlibpath_var=no 10166 ;; 10167 10168 hpux9*) 10169 if test yes = "$GCC"; then 10170 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' 10171 else 10172 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' 10173 fi 10174 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10175 hardcode_libdir_separator=: 10176 hardcode_direct=yes 10177 10178 # hardcode_minus_L: Not really in the search PATH, 10179 # but as the default location of the library. 10180 hardcode_minus_L=yes 10181 export_dynamic_flag_spec='$wl-E' 10182 ;; 10183 10184 hpux10*) 10185 if test yes,no = "$GCC,$with_gnu_ld"; then 10186 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10187 else 10188 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10189 fi 10190 if test no = "$with_gnu_ld"; then 10191 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10192 hardcode_libdir_separator=: 10193 hardcode_direct=yes 10194 hardcode_direct_absolute=yes 10195 export_dynamic_flag_spec='$wl-E' 10196 # hardcode_minus_L: Not really in the search PATH, 10197 # but as the default location of the library. 10198 hardcode_minus_L=yes 10199 fi 10200 ;; 10201 10202 hpux11*) 10203 if test yes,no = "$GCC,$with_gnu_ld"; then 10204 case $host_cpu in 10205 hppa*64*) 10206 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10207 ;; 10208 ia64*) 10209 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10210 ;; 10211 *) 10212 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10213 ;; 10214 esac 10215 else 10216 case $host_cpu in 10217 hppa*64*) 10218 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10219 ;; 10220 ia64*) 10221 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10222 ;; 10223 *) 10224 10225 # Older versions of the 11.00 compiler do not understand -b yet 10226 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10228$as_echo_n "checking if $CC understands -b... " >&6; } 10229if ${lt_cv_prog_compiler__b+:} false; then : 10230 $as_echo_n "(cached) " >&6 10231else 10232 lt_cv_prog_compiler__b=no 10233 save_LDFLAGS=$LDFLAGS 10234 LDFLAGS="$LDFLAGS -b" 10235 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10236 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10237 # The linker can only warn and ignore the option if not recognized 10238 # So say no if there are warnings 10239 if test -s conftest.err; then 10240 # Append any errors to the config.log. 10241 cat conftest.err 1>&5 10242 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10243 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10244 if diff conftest.exp conftest.er2 >/dev/null; then 10245 lt_cv_prog_compiler__b=yes 10246 fi 10247 else 10248 lt_cv_prog_compiler__b=yes 10249 fi 10250 fi 10251 $RM -r conftest* 10252 LDFLAGS=$save_LDFLAGS 10253 10254fi 10255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10256$as_echo "$lt_cv_prog_compiler__b" >&6; } 10257 10258if test yes = "$lt_cv_prog_compiler__b"; then 10259 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10260else 10261 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10262fi 10263 10264 ;; 10265 esac 10266 fi 10267 if test no = "$with_gnu_ld"; then 10268 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10269 hardcode_libdir_separator=: 10270 10271 case $host_cpu in 10272 hppa*64*|ia64*) 10273 hardcode_direct=no 10274 hardcode_shlibpath_var=no 10275 ;; 10276 *) 10277 hardcode_direct=yes 10278 hardcode_direct_absolute=yes 10279 export_dynamic_flag_spec='$wl-E' 10280 10281 # hardcode_minus_L: Not really in the search PATH, 10282 # but as the default location of the library. 10283 hardcode_minus_L=yes 10284 ;; 10285 esac 10286 fi 10287 ;; 10288 10289 irix5* | irix6* | nonstopux*) 10290 if test yes = "$GCC"; then 10291 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' 10292 # Try to use the -exported_symbol ld option, if it does not 10293 # work, assume that -exports_file does not work either and 10294 # implicitly export all symbols. 10295 # This should be the same for all languages, so no per-tag cache variable. 10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10297$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10298if ${lt_cv_irix_exported_symbol+:} false; then : 10299 $as_echo_n "(cached) " >&6 10300else 10301 save_LDFLAGS=$LDFLAGS 10302 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10304/* end confdefs.h. */ 10305int foo (void) { return 0; } 10306_ACEOF 10307if ac_fn_c_try_link "$LINENO"; then : 10308 lt_cv_irix_exported_symbol=yes 10309else 10310 lt_cv_irix_exported_symbol=no 10311fi 10312rm -f core conftest.err conftest.$ac_objext \ 10313 conftest$ac_exeext conftest.$ac_ext 10314 LDFLAGS=$save_LDFLAGS 10315fi 10316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10317$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10318 if test yes = "$lt_cv_irix_exported_symbol"; then 10319 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' 10320 fi 10321 link_all_deplibs=no 10322 else 10323 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' 10324 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' 10325 fi 10326 archive_cmds_need_lc='no' 10327 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10328 hardcode_libdir_separator=: 10329 inherit_rpath=yes 10330 link_all_deplibs=yes 10331 ;; 10332 10333 linux*) 10334 case $cc_basename in 10335 tcc*) 10336 # Fabrice Bellard et al's Tiny C Compiler 10337 ld_shlibs=yes 10338 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10339 ;; 10340 esac 10341 ;; 10342 10343 netbsd* | netbsdelf*-gnu) 10344 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10346 else 10347 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10348 fi 10349 hardcode_libdir_flag_spec='-R$libdir' 10350 hardcode_direct=yes 10351 hardcode_shlibpath_var=no 10352 ;; 10353 10354 newsos6) 10355 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10356 hardcode_direct=yes 10357 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10358 hardcode_libdir_separator=: 10359 hardcode_shlibpath_var=no 10360 ;; 10361 10362 *nto* | *qnx*) 10363 ;; 10364 10365 openbsd* | bitrig*) 10366 if test -f /usr/libexec/ld.so; then 10367 hardcode_direct=yes 10368 hardcode_shlibpath_var=no 10369 hardcode_direct_absolute=yes 10370 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10371 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10372 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10373 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10374 export_dynamic_flag_spec='$wl-E' 10375 else 10376 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10377 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10378 fi 10379 else 10380 ld_shlibs=no 10381 fi 10382 ;; 10383 10384 os2*) 10385 hardcode_libdir_flag_spec='-L$libdir' 10386 hardcode_minus_L=yes 10387 allow_undefined_flag=unsupported 10388 shrext_cmds=.dll 10389 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10390 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10391 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10392 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10393 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10394 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10395 emximp -o $lib $output_objdir/$libname.def' 10396 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10397 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10398 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10399 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10400 prefix_cmds="$SED"~ 10401 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10402 prefix_cmds="$prefix_cmds -e 1d"; 10403 fi~ 10404 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10405 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10406 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10407 emximp -o $lib $output_objdir/$libname.def' 10408 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10409 enable_shared_with_static_runtimes=yes 10410 ;; 10411 10412 osf3*) 10413 if test yes = "$GCC"; then 10414 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10415 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' 10416 else 10417 allow_undefined_flag=' -expect_unresolved \*' 10418 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' 10419 fi 10420 archive_cmds_need_lc='no' 10421 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10422 hardcode_libdir_separator=: 10423 ;; 10424 10425 osf4* | osf5*) # as osf3* with the addition of -msym flag 10426 if test yes = "$GCC"; then 10427 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10428 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' 10429 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10430 else 10431 allow_undefined_flag=' -expect_unresolved \*' 10432 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' 10433 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~ 10434 $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' 10435 10436 # Both c and cxx compiler support -rpath directly 10437 hardcode_libdir_flag_spec='-rpath $libdir' 10438 fi 10439 archive_cmds_need_lc='no' 10440 hardcode_libdir_separator=: 10441 ;; 10442 10443 solaris*) 10444 no_undefined_flag=' -z defs' 10445 if test yes = "$GCC"; then 10446 wlarc='$wl' 10447 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10448 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10449 $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' 10450 else 10451 case `$CC -V 2>&1` in 10452 *"Compilers 5.0"*) 10453 wlarc='' 10454 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10455 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10456 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10457 ;; 10458 *) 10459 wlarc='$wl' 10460 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10461 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10462 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10463 ;; 10464 esac 10465 fi 10466 hardcode_libdir_flag_spec='-R$libdir' 10467 hardcode_shlibpath_var=no 10468 case $host_os in 10469 solaris2.[0-5] | solaris2.[0-5].*) ;; 10470 *) 10471 # The compiler driver will combine and reorder linker options, 10472 # but understands '-z linker_flag'. GCC discards it without '$wl', 10473 # but is careful enough not to reorder. 10474 # Supported since Solaris 2.6 (maybe 2.5.1?) 10475 if test yes = "$GCC"; then 10476 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10477 else 10478 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10479 fi 10480 ;; 10481 esac 10482 link_all_deplibs=yes 10483 ;; 10484 10485 sunos4*) 10486 if test sequent = "$host_vendor"; then 10487 # Use $CC to link under sequent, because it throws in some extra .o 10488 # files that make .init and .fini sections work. 10489 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10490 else 10491 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10492 fi 10493 hardcode_libdir_flag_spec='-L$libdir' 10494 hardcode_direct=yes 10495 hardcode_minus_L=yes 10496 hardcode_shlibpath_var=no 10497 ;; 10498 10499 sysv4) 10500 case $host_vendor in 10501 sni) 10502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10503 hardcode_direct=yes # is this really true??? 10504 ;; 10505 siemens) 10506 ## LD is ld it makes a PLAMLIB 10507 ## CC just makes a GrossModule. 10508 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10509 reload_cmds='$CC -r -o $output$reload_objs' 10510 hardcode_direct=no 10511 ;; 10512 motorola) 10513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10514 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10515 ;; 10516 esac 10517 runpath_var='LD_RUN_PATH' 10518 hardcode_shlibpath_var=no 10519 ;; 10520 10521 sysv4.3*) 10522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10523 hardcode_shlibpath_var=no 10524 export_dynamic_flag_spec='-Bexport' 10525 ;; 10526 10527 sysv4*MP*) 10528 if test -d /usr/nec; then 10529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10530 hardcode_shlibpath_var=no 10531 runpath_var=LD_RUN_PATH 10532 hardcode_runpath_var=yes 10533 ld_shlibs=yes 10534 fi 10535 ;; 10536 10537 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10538 no_undefined_flag='$wl-z,text' 10539 archive_cmds_need_lc=no 10540 hardcode_shlibpath_var=no 10541 runpath_var='LD_RUN_PATH' 10542 10543 if test yes = "$GCC"; then 10544 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10545 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10546 else 10547 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10548 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10549 fi 10550 ;; 10551 10552 sysv5* | sco3.2v5* | sco5v6*) 10553 # Note: We CANNOT use -z defs as we might desire, because we do not 10554 # link with -lc, and that would cause any symbols used from libc to 10555 # always be unresolved, which means just about no library would 10556 # ever link correctly. If we're not using GNU ld we use -z text 10557 # though, which does catch some bad symbols but isn't as heavy-handed 10558 # as -z defs. 10559 no_undefined_flag='$wl-z,text' 10560 allow_undefined_flag='$wl-z,nodefs' 10561 archive_cmds_need_lc=no 10562 hardcode_shlibpath_var=no 10563 hardcode_libdir_flag_spec='$wl-R,$libdir' 10564 hardcode_libdir_separator=':' 10565 link_all_deplibs=yes 10566 export_dynamic_flag_spec='$wl-Bexport' 10567 runpath_var='LD_RUN_PATH' 10568 10569 if test yes = "$GCC"; then 10570 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10571 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10572 else 10573 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10574 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10575 fi 10576 ;; 10577 10578 uts4*) 10579 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10580 hardcode_libdir_flag_spec='-L$libdir' 10581 hardcode_shlibpath_var=no 10582 ;; 10583 10584 *) 10585 ld_shlibs=no 10586 ;; 10587 esac 10588 10589 if test sni = "$host_vendor"; then 10590 case $host in 10591 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10592 export_dynamic_flag_spec='$wl-Blargedynsym' 10593 ;; 10594 esac 10595 fi 10596 fi 10597 10598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10599$as_echo "$ld_shlibs" >&6; } 10600test no = "$ld_shlibs" && can_build_shared=no 10601 10602with_gnu_ld=$with_gnu_ld 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618# 10619# Do we need to explicitly link libc? 10620# 10621case "x$archive_cmds_need_lc" in 10622x|xyes) 10623 # Assume -lc should be added 10624 archive_cmds_need_lc=yes 10625 10626 if test yes,yes = "$GCC,$enable_shared"; then 10627 case $archive_cmds in 10628 *'~'*) 10629 # FIXME: we may have to deal with multi-command sequences. 10630 ;; 10631 '$CC '*) 10632 # Test whether the compiler implicitly links with -lc since on some 10633 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10634 # to ld, don't add -lc before -lgcc. 10635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10636$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10637if ${lt_cv_archive_cmds_need_lc+:} false; then : 10638 $as_echo_n "(cached) " >&6 10639else 10640 $RM conftest* 10641 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10642 10643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10644 (eval $ac_compile) 2>&5 10645 ac_status=$? 10646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10647 test $ac_status = 0; } 2>conftest.err; then 10648 soname=conftest 10649 lib=conftest 10650 libobjs=conftest.$ac_objext 10651 deplibs= 10652 wl=$lt_prog_compiler_wl 10653 pic_flag=$lt_prog_compiler_pic 10654 compiler_flags=-v 10655 linker_flags=-v 10656 verstring= 10657 output_objdir=. 10658 libname=conftest 10659 lt_save_allow_undefined_flag=$allow_undefined_flag 10660 allow_undefined_flag= 10661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10662 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10663 ac_status=$? 10664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10665 test $ac_status = 0; } 10666 then 10667 lt_cv_archive_cmds_need_lc=no 10668 else 10669 lt_cv_archive_cmds_need_lc=yes 10670 fi 10671 allow_undefined_flag=$lt_save_allow_undefined_flag 10672 else 10673 cat conftest.err 1>&5 10674 fi 10675 $RM conftest* 10676 10677fi 10678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10679$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10680 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10681 ;; 10682 esac 10683 fi 10684 ;; 10685esac 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10839$as_echo_n "checking dynamic linker characteristics... " >&6; } 10840 10841if test yes = "$GCC"; then 10842 case $host_os in 10843 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10844 *) lt_awk_arg='/^libraries:/' ;; 10845 esac 10846 case $host_os in 10847 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10848 *) lt_sed_strip_eq='s|=/|/|g' ;; 10849 esac 10850 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10851 case $lt_search_path_spec in 10852 *\;*) 10853 # if the path contains ";" then we assume it to be the separator 10854 # otherwise default to the standard path separator (i.e. ":") - it is 10855 # assumed that no part of a normal pathname contains ";" but that should 10856 # okay in the real world where ";" in dirpaths is itself problematic. 10857 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10858 ;; 10859 *) 10860 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10861 ;; 10862 esac 10863 # Ok, now we have the path, separated by spaces, we can step through it 10864 # and add multilib dir if necessary... 10865 lt_tmp_lt_search_path_spec= 10866 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10867 # ...but if some path component already ends with the multilib dir we assume 10868 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10869 case "$lt_multi_os_dir; $lt_search_path_spec " in 10870 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10871 lt_multi_os_dir= 10872 ;; 10873 esac 10874 for lt_sys_path in $lt_search_path_spec; do 10875 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10876 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10877 elif test -n "$lt_multi_os_dir"; then 10878 test -d "$lt_sys_path" && \ 10879 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10880 fi 10881 done 10882 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10883BEGIN {RS = " "; FS = "/|\n";} { 10884 lt_foo = ""; 10885 lt_count = 0; 10886 for (lt_i = NF; lt_i > 0; lt_i--) { 10887 if ($lt_i != "" && $lt_i != ".") { 10888 if ($lt_i == "..") { 10889 lt_count++; 10890 } else { 10891 if (lt_count == 0) { 10892 lt_foo = "/" $lt_i lt_foo; 10893 } else { 10894 lt_count--; 10895 } 10896 } 10897 } 10898 } 10899 if (lt_foo != "") { lt_freq[lt_foo]++; } 10900 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10901}'` 10902 # AWK program above erroneously prepends '/' to C:/dos/paths 10903 # for these hosts. 10904 case $host_os in 10905 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10906 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10907 esac 10908 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10909else 10910 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10911fi 10912library_names_spec= 10913libname_spec='lib$name' 10914soname_spec= 10915shrext_cmds=.so 10916postinstall_cmds= 10917postuninstall_cmds= 10918finish_cmds= 10919finish_eval= 10920shlibpath_var= 10921shlibpath_overrides_runpath=unknown 10922version_type=none 10923dynamic_linker="$host_os ld.so" 10924sys_lib_dlsearch_path_spec="/lib /usr/lib" 10925need_lib_prefix=unknown 10926hardcode_into_libs=no 10927 10928# when you set need_version to no, make sure it does not cause -set_version 10929# flags to be left without arguments 10930need_version=unknown 10931 10932 10933 10934case $host_os in 10935aix3*) 10936 version_type=linux # correct to gnu/linux during the next big refactor 10937 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10938 shlibpath_var=LIBPATH 10939 10940 # AIX 3 has no versioning support, so we append a major version to the name. 10941 soname_spec='$libname$release$shared_ext$major' 10942 ;; 10943 10944aix[4-9]*) 10945 version_type=linux # correct to gnu/linux during the next big refactor 10946 need_lib_prefix=no 10947 need_version=no 10948 hardcode_into_libs=yes 10949 if test ia64 = "$host_cpu"; then 10950 # AIX 5 supports IA64 10951 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10952 shlibpath_var=LD_LIBRARY_PATH 10953 else 10954 # With GCC up to 2.95.x, collect2 would create an import file 10955 # for dependence libraries. The import file would start with 10956 # the line '#! .'. This would cause the generated library to 10957 # depend on '.', always an invalid library. This was fixed in 10958 # development snapshots of GCC prior to 3.0. 10959 case $host_os in 10960 aix4 | aix4.[01] | aix4.[01].*) 10961 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10962 echo ' yes ' 10963 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10964 : 10965 else 10966 can_build_shared=no 10967 fi 10968 ;; 10969 esac 10970 # Using Import Files as archive members, it is possible to support 10971 # filename-based versioning of shared library archives on AIX. While 10972 # this would work for both with and without runtime linking, it will 10973 # prevent static linking of such archives. So we do filename-based 10974 # shared library versioning with .so extension only, which is used 10975 # when both runtime linking and shared linking is enabled. 10976 # Unfortunately, runtime linking may impact performance, so we do 10977 # not want this to be the default eventually. Also, we use the 10978 # versioned .so libs for executables only if there is the -brtl 10979 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10980 # To allow for filename-based versioning support, we need to create 10981 # libNAME.so.V as an archive file, containing: 10982 # *) an Import File, referring to the versioned filename of the 10983 # archive as well as the shared archive member, telling the 10984 # bitwidth (32 or 64) of that shared object, and providing the 10985 # list of exported symbols of that shared object, eventually 10986 # decorated with the 'weak' keyword 10987 # *) the shared object with the F_LOADONLY flag set, to really avoid 10988 # it being seen by the linker. 10989 # At run time we better use the real file rather than another symlink, 10990 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10991 10992 case $with_aix_soname,$aix_use_runtimelinking in 10993 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10994 # soname into executable. Probably we can add versioning support to 10995 # collect2, so additional links can be useful in future. 10996 aix,yes) # traditional libtool 10997 dynamic_linker='AIX unversionable lib.so' 10998 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10999 # instead of lib<name>.a to let people know that these are not 11000 # typical AIX shared libraries. 11001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11002 ;; 11003 aix,no) # traditional AIX only 11004 dynamic_linker='AIX lib.a(lib.so.V)' 11005 # We preserve .a as extension for shared libraries through AIX4.2 11006 # and later when we are not doing run time linking. 11007 library_names_spec='$libname$release.a $libname.a' 11008 soname_spec='$libname$release$shared_ext$major' 11009 ;; 11010 svr4,*) # full svr4 only 11011 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11012 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11013 # We do not specify a path in Import Files, so LIBPATH fires. 11014 shlibpath_overrides_runpath=yes 11015 ;; 11016 *,yes) # both, prefer svr4 11017 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11018 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11019 # unpreferred sharedlib libNAME.a needs extra handling 11020 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"' 11021 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"' 11022 # We do not specify a path in Import Files, so LIBPATH fires. 11023 shlibpath_overrides_runpath=yes 11024 ;; 11025 *,no) # both, prefer aix 11026 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11027 library_names_spec='$libname$release.a $libname.a' 11028 soname_spec='$libname$release$shared_ext$major' 11029 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11030 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)' 11031 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"' 11032 ;; 11033 esac 11034 shlibpath_var=LIBPATH 11035 fi 11036 ;; 11037 11038amigaos*) 11039 case $host_cpu in 11040 powerpc) 11041 # Since July 2007 AmigaOS4 officially supports .so libraries. 11042 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11043 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11044 ;; 11045 m68k) 11046 library_names_spec='$libname.ixlibrary $libname.a' 11047 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11048 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' 11049 ;; 11050 esac 11051 ;; 11052 11053beos*) 11054 library_names_spec='$libname$shared_ext' 11055 dynamic_linker="$host_os ld.so" 11056 shlibpath_var=LIBRARY_PATH 11057 ;; 11058 11059bsdi[45]*) 11060 version_type=linux # correct to gnu/linux during the next big refactor 11061 need_version=no 11062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11063 soname_spec='$libname$release$shared_ext$major' 11064 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11065 shlibpath_var=LD_LIBRARY_PATH 11066 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11067 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11068 # the default ld.so.conf also contains /usr/contrib/lib and 11069 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11070 # libtool to hard-code these into programs 11071 ;; 11072 11073cygwin* | mingw* | pw32* | cegcc*) 11074 version_type=windows 11075 shrext_cmds=.dll 11076 need_version=no 11077 need_lib_prefix=no 11078 11079 case $GCC,$cc_basename in 11080 yes,*) 11081 # gcc 11082 library_names_spec='$libname.dll.a' 11083 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11084 postinstall_cmds='base_file=`basename \$file`~ 11085 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11086 dldir=$destdir/`dirname \$dlpath`~ 11087 test -d \$dldir || mkdir -p \$dldir~ 11088 $install_prog $dir/$dlname \$dldir/$dlname~ 11089 chmod a+x \$dldir/$dlname~ 11090 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11091 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11092 fi' 11093 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11094 dlpath=$dir/\$dldll~ 11095 $RM \$dlpath' 11096 shlibpath_overrides_runpath=yes 11097 11098 case $host_os in 11099 cygwin*) 11100 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11101 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11102 11103 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11104 ;; 11105 mingw* | cegcc*) 11106 # MinGW DLLs use traditional 'lib' prefix 11107 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11108 ;; 11109 pw32*) 11110 # pw32 DLLs use 'pw' prefix rather than 'lib' 11111 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11112 ;; 11113 esac 11114 dynamic_linker='Win32 ld.exe' 11115 ;; 11116 11117 *,cl*) 11118 # Native MSVC 11119 libname_spec='$name' 11120 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11121 library_names_spec='$libname.dll.lib' 11122 11123 case $build_os in 11124 mingw*) 11125 sys_lib_search_path_spec= 11126 lt_save_ifs=$IFS 11127 IFS=';' 11128 for lt_path in $LIB 11129 do 11130 IFS=$lt_save_ifs 11131 # Let DOS variable expansion print the short 8.3 style file name. 11132 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11133 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11134 done 11135 IFS=$lt_save_ifs 11136 # Convert to MSYS style. 11137 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11138 ;; 11139 cygwin*) 11140 # Convert to unix form, then to dos form, then back to unix form 11141 # but this time dos style (no spaces!) so that the unix form looks 11142 # like /cygdrive/c/PROGRA~1:/cygdr... 11143 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11144 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11145 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11146 ;; 11147 *) 11148 sys_lib_search_path_spec=$LIB 11149 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11150 # It is most probably a Windows format PATH. 11151 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11152 else 11153 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11154 fi 11155 # FIXME: find the short name or the path components, as spaces are 11156 # common. (e.g. "Program Files" -> "PROGRA~1") 11157 ;; 11158 esac 11159 11160 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11161 postinstall_cmds='base_file=`basename \$file`~ 11162 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11163 dldir=$destdir/`dirname \$dlpath`~ 11164 test -d \$dldir || mkdir -p \$dldir~ 11165 $install_prog $dir/$dlname \$dldir/$dlname' 11166 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11167 dlpath=$dir/\$dldll~ 11168 $RM \$dlpath' 11169 shlibpath_overrides_runpath=yes 11170 dynamic_linker='Win32 link.exe' 11171 ;; 11172 11173 *) 11174 # Assume MSVC wrapper 11175 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11176 dynamic_linker='Win32 ld.exe' 11177 ;; 11178 esac 11179 # FIXME: first we should search . and the directory the executable is in 11180 shlibpath_var=PATH 11181 ;; 11182 11183darwin* | rhapsody*) 11184 dynamic_linker="$host_os dyld" 11185 version_type=darwin 11186 need_lib_prefix=no 11187 need_version=no 11188 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11189 soname_spec='$libname$release$major$shared_ext' 11190 shlibpath_overrides_runpath=yes 11191 shlibpath_var=DYLD_LIBRARY_PATH 11192 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11193 11194 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11195 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11196 ;; 11197 11198dgux*) 11199 version_type=linux # correct to gnu/linux during the next big refactor 11200 need_lib_prefix=no 11201 need_version=no 11202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11203 soname_spec='$libname$release$shared_ext$major' 11204 shlibpath_var=LD_LIBRARY_PATH 11205 ;; 11206 11207freebsd* | dragonfly*) 11208 # DragonFly does not have aout. When/if they implement a new 11209 # versioning mechanism, adjust this. 11210 if test -x /usr/bin/objformat; then 11211 objformat=`/usr/bin/objformat` 11212 else 11213 case $host_os in 11214 freebsd[23].*) objformat=aout ;; 11215 *) objformat=elf ;; 11216 esac 11217 fi 11218 version_type=freebsd-$objformat 11219 case $version_type in 11220 freebsd-elf*) 11221 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11222 soname_spec='$libname$release$shared_ext$major' 11223 need_version=no 11224 need_lib_prefix=no 11225 ;; 11226 freebsd-*) 11227 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11228 need_version=yes 11229 ;; 11230 esac 11231 shlibpath_var=LD_LIBRARY_PATH 11232 case $host_os in 11233 freebsd2.*) 11234 shlibpath_overrides_runpath=yes 11235 ;; 11236 freebsd3.[01]* | freebsdelf3.[01]*) 11237 shlibpath_overrides_runpath=yes 11238 hardcode_into_libs=yes 11239 ;; 11240 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11241 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11242 shlibpath_overrides_runpath=no 11243 hardcode_into_libs=yes 11244 ;; 11245 *) # from 4.6 on, and DragonFly 11246 shlibpath_overrides_runpath=yes 11247 hardcode_into_libs=yes 11248 ;; 11249 esac 11250 ;; 11251 11252haiku*) 11253 version_type=linux # correct to gnu/linux during the next big refactor 11254 need_lib_prefix=no 11255 need_version=no 11256 dynamic_linker="$host_os runtime_loader" 11257 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11258 soname_spec='$libname$release$shared_ext$major' 11259 shlibpath_var=LIBRARY_PATH 11260 shlibpath_overrides_runpath=no 11261 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11262 hardcode_into_libs=yes 11263 ;; 11264 11265hpux9* | hpux10* | hpux11*) 11266 # Give a soname corresponding to the major version so that dld.sl refuses to 11267 # link against other versions. 11268 version_type=sunos 11269 need_lib_prefix=no 11270 need_version=no 11271 case $host_cpu in 11272 ia64*) 11273 shrext_cmds='.so' 11274 hardcode_into_libs=yes 11275 dynamic_linker="$host_os dld.so" 11276 shlibpath_var=LD_LIBRARY_PATH 11277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11278 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11279 soname_spec='$libname$release$shared_ext$major' 11280 if test 32 = "$HPUX_IA64_MODE"; then 11281 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11282 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11283 else 11284 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11285 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11286 fi 11287 ;; 11288 hppa*64*) 11289 shrext_cmds='.sl' 11290 hardcode_into_libs=yes 11291 dynamic_linker="$host_os dld.sl" 11292 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11293 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11295 soname_spec='$libname$release$shared_ext$major' 11296 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11298 ;; 11299 *) 11300 shrext_cmds='.sl' 11301 dynamic_linker="$host_os dld.sl" 11302 shlibpath_var=SHLIB_PATH 11303 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11305 soname_spec='$libname$release$shared_ext$major' 11306 ;; 11307 esac 11308 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11309 postinstall_cmds='chmod 555 $lib' 11310 # or fails outright, so override atomically: 11311 install_override_mode=555 11312 ;; 11313 11314interix[3-9]*) 11315 version_type=linux # correct to gnu/linux during the next big refactor 11316 need_lib_prefix=no 11317 need_version=no 11318 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11319 soname_spec='$libname$release$shared_ext$major' 11320 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11321 shlibpath_var=LD_LIBRARY_PATH 11322 shlibpath_overrides_runpath=no 11323 hardcode_into_libs=yes 11324 ;; 11325 11326irix5* | irix6* | nonstopux*) 11327 case $host_os in 11328 nonstopux*) version_type=nonstopux ;; 11329 *) 11330 if test yes = "$lt_cv_prog_gnu_ld"; then 11331 version_type=linux # correct to gnu/linux during the next big refactor 11332 else 11333 version_type=irix 11334 fi ;; 11335 esac 11336 need_lib_prefix=no 11337 need_version=no 11338 soname_spec='$libname$release$shared_ext$major' 11339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11340 case $host_os in 11341 irix5* | nonstopux*) 11342 libsuff= shlibsuff= 11343 ;; 11344 *) 11345 case $LD in # libtool.m4 will add one of these switches to LD 11346 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11347 libsuff= shlibsuff= libmagic=32-bit;; 11348 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11349 libsuff=32 shlibsuff=N32 libmagic=N32;; 11350 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11351 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11352 *) libsuff= shlibsuff= libmagic=never-match;; 11353 esac 11354 ;; 11355 esac 11356 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11357 shlibpath_overrides_runpath=no 11358 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11359 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11360 hardcode_into_libs=yes 11361 ;; 11362 11363# No shared lib support for Linux oldld, aout, or coff. 11364linux*oldld* | linux*aout* | linux*coff*) 11365 dynamic_linker=no 11366 ;; 11367 11368linux*android*) 11369 version_type=none # Android doesn't support versioned libraries. 11370 need_lib_prefix=no 11371 need_version=no 11372 library_names_spec='$libname$release$shared_ext' 11373 soname_spec='$libname$release$shared_ext' 11374 finish_cmds= 11375 shlibpath_var=LD_LIBRARY_PATH 11376 shlibpath_overrides_runpath=yes 11377 11378 # This implies no fast_install, which is unacceptable. 11379 # Some rework will be needed to allow for fast_install 11380 # before this can be enabled. 11381 hardcode_into_libs=yes 11382 11383 dynamic_linker='Android linker' 11384 # Don't embed -rpath directories since the linker doesn't support them. 11385 hardcode_libdir_flag_spec='-L$libdir' 11386 ;; 11387 11388# This must be glibc/ELF. 11389linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11390 version_type=linux # correct to gnu/linux during the next big refactor 11391 need_lib_prefix=no 11392 need_version=no 11393 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11394 soname_spec='$libname$release$shared_ext$major' 11395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11396 shlibpath_var=LD_LIBRARY_PATH 11397 shlibpath_overrides_runpath=no 11398 11399 # Some binutils ld are patched to set DT_RUNPATH 11400 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11401 $as_echo_n "(cached) " >&6 11402else 11403 lt_cv_shlibpath_overrides_runpath=no 11404 save_LDFLAGS=$LDFLAGS 11405 save_libdir=$libdir 11406 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11407 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11409/* end confdefs.h. */ 11410 11411int 11412main () 11413{ 11414 11415 ; 11416 return 0; 11417} 11418_ACEOF 11419if ac_fn_c_try_link "$LINENO"; then : 11420 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11421 lt_cv_shlibpath_overrides_runpath=yes 11422fi 11423fi 11424rm -f core conftest.err conftest.$ac_objext \ 11425 conftest$ac_exeext conftest.$ac_ext 11426 LDFLAGS=$save_LDFLAGS 11427 libdir=$save_libdir 11428 11429fi 11430 11431 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11432 11433 # This implies no fast_install, which is unacceptable. 11434 # Some rework will be needed to allow for fast_install 11435 # before this can be enabled. 11436 hardcode_into_libs=yes 11437 11438 # Ideally, we could use ldconfig to report *all* directores which are 11439 # searched for libraries, however this is still not possible. Aside from not 11440 # being certain /sbin/ldconfig is available, command 11441 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11442 # even though it is searched at run-time. Try to do the best guess by 11443 # appending ld.so.conf contents (and includes) to the search path. 11444 if test -f /etc/ld.so.conf; then 11445 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' ' '` 11446 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11447 fi 11448 11449 # We used to test for /lib/ld.so.1 and disable shared libraries on 11450 # powerpc, because MkLinux only supported shared libraries with the 11451 # GNU dynamic linker. Since this was broken with cross compilers, 11452 # most powerpc-linux boxes support dynamic linking these days and 11453 # people can always --disable-shared, the test was removed, and we 11454 # assume the GNU/Linux dynamic linker is in use. 11455 dynamic_linker='GNU/Linux ld.so' 11456 ;; 11457 11458netbsdelf*-gnu) 11459 version_type=linux 11460 need_lib_prefix=no 11461 need_version=no 11462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11463 soname_spec='${libname}${release}${shared_ext}$major' 11464 shlibpath_var=LD_LIBRARY_PATH 11465 shlibpath_overrides_runpath=no 11466 hardcode_into_libs=yes 11467 dynamic_linker='NetBSD ld.elf_so' 11468 ;; 11469 11470netbsd*) 11471 version_type=sunos 11472 need_lib_prefix=no 11473 need_version=no 11474 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11475 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11477 dynamic_linker='NetBSD (a.out) ld.so' 11478 else 11479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11480 soname_spec='$libname$release$shared_ext$major' 11481 dynamic_linker='NetBSD ld.elf_so' 11482 fi 11483 shlibpath_var=LD_LIBRARY_PATH 11484 shlibpath_overrides_runpath=yes 11485 hardcode_into_libs=yes 11486 ;; 11487 11488newsos6) 11489 version_type=linux # correct to gnu/linux during the next big refactor 11490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11491 shlibpath_var=LD_LIBRARY_PATH 11492 shlibpath_overrides_runpath=yes 11493 ;; 11494 11495*nto* | *qnx*) 11496 version_type=qnx 11497 need_lib_prefix=no 11498 need_version=no 11499 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11500 soname_spec='$libname$release$shared_ext$major' 11501 shlibpath_var=LD_LIBRARY_PATH 11502 shlibpath_overrides_runpath=no 11503 hardcode_into_libs=yes 11504 dynamic_linker='ldqnx.so' 11505 ;; 11506 11507openbsd* | bitrig*) 11508 version_type=sunos 11509 sys_lib_dlsearch_path_spec=/usr/lib 11510 need_lib_prefix=no 11511 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11512 need_version=no 11513 else 11514 need_version=yes 11515 fi 11516 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11517 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11518 shlibpath_var=LD_LIBRARY_PATH 11519 shlibpath_overrides_runpath=yes 11520 ;; 11521 11522os2*) 11523 libname_spec='$name' 11524 version_type=windows 11525 shrext_cmds=.dll 11526 need_version=no 11527 need_lib_prefix=no 11528 # OS/2 can only load a DLL with a base name of 8 characters or less. 11529 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11530 v=$($ECHO $release$versuffix | tr -d .-); 11531 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11532 $ECHO $n$v`$shared_ext' 11533 library_names_spec='${libname}_dll.$libext' 11534 dynamic_linker='OS/2 ld.exe' 11535 shlibpath_var=BEGINLIBPATH 11536 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11538 postinstall_cmds='base_file=`basename \$file`~ 11539 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11540 dldir=$destdir/`dirname \$dlpath`~ 11541 test -d \$dldir || mkdir -p \$dldir~ 11542 $install_prog $dir/$dlname \$dldir/$dlname~ 11543 chmod a+x \$dldir/$dlname~ 11544 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11545 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11546 fi' 11547 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11548 dlpath=$dir/\$dldll~ 11549 $RM \$dlpath' 11550 ;; 11551 11552osf3* | osf4* | osf5*) 11553 version_type=osf 11554 need_lib_prefix=no 11555 need_version=no 11556 soname_spec='$libname$release$shared_ext$major' 11557 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11558 shlibpath_var=LD_LIBRARY_PATH 11559 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11561 ;; 11562 11563rdos*) 11564 dynamic_linker=no 11565 ;; 11566 11567solaris*) 11568 version_type=linux # correct to gnu/linux during the next big refactor 11569 need_lib_prefix=no 11570 need_version=no 11571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11572 soname_spec='$libname$release$shared_ext$major' 11573 shlibpath_var=LD_LIBRARY_PATH 11574 shlibpath_overrides_runpath=yes 11575 hardcode_into_libs=yes 11576 # ldd complains unless libraries are executable 11577 postinstall_cmds='chmod +x $lib' 11578 ;; 11579 11580sunos4*) 11581 version_type=sunos 11582 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11583 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11584 shlibpath_var=LD_LIBRARY_PATH 11585 shlibpath_overrides_runpath=yes 11586 if test yes = "$with_gnu_ld"; then 11587 need_lib_prefix=no 11588 fi 11589 need_version=yes 11590 ;; 11591 11592sysv4 | sysv4.3*) 11593 version_type=linux # correct to gnu/linux during the next big refactor 11594 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11595 soname_spec='$libname$release$shared_ext$major' 11596 shlibpath_var=LD_LIBRARY_PATH 11597 case $host_vendor in 11598 sni) 11599 shlibpath_overrides_runpath=no 11600 need_lib_prefix=no 11601 runpath_var=LD_RUN_PATH 11602 ;; 11603 siemens) 11604 need_lib_prefix=no 11605 ;; 11606 motorola) 11607 need_lib_prefix=no 11608 need_version=no 11609 shlibpath_overrides_runpath=no 11610 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11611 ;; 11612 esac 11613 ;; 11614 11615sysv4*MP*) 11616 if test -d /usr/nec; then 11617 version_type=linux # correct to gnu/linux during the next big refactor 11618 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11619 soname_spec='$libname$shared_ext.$major' 11620 shlibpath_var=LD_LIBRARY_PATH 11621 fi 11622 ;; 11623 11624sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11625 version_type=sco 11626 need_lib_prefix=no 11627 need_version=no 11628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11629 soname_spec='$libname$release$shared_ext$major' 11630 shlibpath_var=LD_LIBRARY_PATH 11631 shlibpath_overrides_runpath=yes 11632 hardcode_into_libs=yes 11633 if test yes = "$with_gnu_ld"; then 11634 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11635 else 11636 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11637 case $host_os in 11638 sco3.2v5*) 11639 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11640 ;; 11641 esac 11642 fi 11643 sys_lib_dlsearch_path_spec='/usr/lib' 11644 ;; 11645 11646tpf*) 11647 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11648 version_type=linux # correct to gnu/linux during the next big refactor 11649 need_lib_prefix=no 11650 need_version=no 11651 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11652 shlibpath_var=LD_LIBRARY_PATH 11653 shlibpath_overrides_runpath=no 11654 hardcode_into_libs=yes 11655 ;; 11656 11657uts4*) 11658 version_type=linux # correct to gnu/linux during the next big refactor 11659 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11660 soname_spec='$libname$release$shared_ext$major' 11661 shlibpath_var=LD_LIBRARY_PATH 11662 ;; 11663 11664*) 11665 dynamic_linker=no 11666 ;; 11667esac 11668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11669$as_echo "$dynamic_linker" >&6; } 11670test no = "$dynamic_linker" && can_build_shared=no 11671 11672variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11673if test yes = "$GCC"; then 11674 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11675fi 11676 11677if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11678 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11679fi 11680 11681if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11682 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11683fi 11684 11685# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11686configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11687 11688# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11689func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11690 11691# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11692configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 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 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11791$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11792hardcode_action= 11793if test -n "$hardcode_libdir_flag_spec" || 11794 test -n "$runpath_var" || 11795 test yes = "$hardcode_automatic"; then 11796 11797 # We can hardcode non-existent directories. 11798 if test no != "$hardcode_direct" && 11799 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11800 # have to relink, otherwise we might link with an installed library 11801 # when we should be linking with a yet-to-be-installed one 11802 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11803 test no != "$hardcode_minus_L"; then 11804 # Linking always hardcodes the temporary library directory. 11805 hardcode_action=relink 11806 else 11807 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11808 hardcode_action=immediate 11809 fi 11810else 11811 # We cannot hardcode anything, or else we can only hardcode existing 11812 # directories. 11813 hardcode_action=unsupported 11814fi 11815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11816$as_echo "$hardcode_action" >&6; } 11817 11818if test relink = "$hardcode_action" || 11819 test yes = "$inherit_rpath"; then 11820 # Fast installation is not supported 11821 enable_fast_install=no 11822elif test yes = "$shlibpath_overrides_runpath" || 11823 test no = "$enable_shared"; then 11824 # Fast installation is not necessary 11825 enable_fast_install=needless 11826fi 11827 11828 11829 11830 11831 11832 11833 if test yes != "$enable_dlopen"; then 11834 enable_dlopen=unknown 11835 enable_dlopen_self=unknown 11836 enable_dlopen_self_static=unknown 11837else 11838 lt_cv_dlopen=no 11839 lt_cv_dlopen_libs= 11840 11841 case $host_os in 11842 beos*) 11843 lt_cv_dlopen=load_add_on 11844 lt_cv_dlopen_libs= 11845 lt_cv_dlopen_self=yes 11846 ;; 11847 11848 mingw* | pw32* | cegcc*) 11849 lt_cv_dlopen=LoadLibrary 11850 lt_cv_dlopen_libs= 11851 ;; 11852 11853 cygwin*) 11854 lt_cv_dlopen=dlopen 11855 lt_cv_dlopen_libs= 11856 ;; 11857 11858 darwin*) 11859 # if libdl is installed we need to link against it 11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11861$as_echo_n "checking for dlopen in -ldl... " >&6; } 11862if ${ac_cv_lib_dl_dlopen+:} false; then : 11863 $as_echo_n "(cached) " >&6 11864else 11865 ac_check_lib_save_LIBS=$LIBS 11866LIBS="-ldl $LIBS" 11867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11868/* end confdefs.h. */ 11869 11870/* Override any GCC internal prototype to avoid an error. 11871 Use char because int might match the return type of a GCC 11872 builtin and then its argument prototype would still apply. */ 11873#ifdef __cplusplus 11874extern "C" 11875#endif 11876char dlopen (); 11877int 11878main () 11879{ 11880return dlopen (); 11881 ; 11882 return 0; 11883} 11884_ACEOF 11885if ac_fn_c_try_link "$LINENO"; then : 11886 ac_cv_lib_dl_dlopen=yes 11887else 11888 ac_cv_lib_dl_dlopen=no 11889fi 11890rm -f core conftest.err conftest.$ac_objext \ 11891 conftest$ac_exeext conftest.$ac_ext 11892LIBS=$ac_check_lib_save_LIBS 11893fi 11894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11895$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11896if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11897 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11898else 11899 11900 lt_cv_dlopen=dyld 11901 lt_cv_dlopen_libs= 11902 lt_cv_dlopen_self=yes 11903 11904fi 11905 11906 ;; 11907 11908 tpf*) 11909 # Don't try to run any link tests for TPF. We know it's impossible 11910 # because TPF is a cross-compiler, and we know how we open DSOs. 11911 lt_cv_dlopen=dlopen 11912 lt_cv_dlopen_libs= 11913 lt_cv_dlopen_self=no 11914 ;; 11915 11916 *) 11917 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11918if test "x$ac_cv_func_shl_load" = xyes; then : 11919 lt_cv_dlopen=shl_load 11920else 11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11922$as_echo_n "checking for shl_load in -ldld... " >&6; } 11923if ${ac_cv_lib_dld_shl_load+:} false; then : 11924 $as_echo_n "(cached) " >&6 11925else 11926 ac_check_lib_save_LIBS=$LIBS 11927LIBS="-ldld $LIBS" 11928cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11929/* end confdefs.h. */ 11930 11931/* Override any GCC internal prototype to avoid an error. 11932 Use char because int might match the return type of a GCC 11933 builtin and then its argument prototype would still apply. */ 11934#ifdef __cplusplus 11935extern "C" 11936#endif 11937char shl_load (); 11938int 11939main () 11940{ 11941return shl_load (); 11942 ; 11943 return 0; 11944} 11945_ACEOF 11946if ac_fn_c_try_link "$LINENO"; then : 11947 ac_cv_lib_dld_shl_load=yes 11948else 11949 ac_cv_lib_dld_shl_load=no 11950fi 11951rm -f core conftest.err conftest.$ac_objext \ 11952 conftest$ac_exeext conftest.$ac_ext 11953LIBS=$ac_check_lib_save_LIBS 11954fi 11955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11956$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11957if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11958 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11959else 11960 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11961if test "x$ac_cv_func_dlopen" = xyes; then : 11962 lt_cv_dlopen=dlopen 11963else 11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11965$as_echo_n "checking for dlopen in -ldl... " >&6; } 11966if ${ac_cv_lib_dl_dlopen+:} false; then : 11967 $as_echo_n "(cached) " >&6 11968else 11969 ac_check_lib_save_LIBS=$LIBS 11970LIBS="-ldl $LIBS" 11971cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11972/* end confdefs.h. */ 11973 11974/* Override any GCC internal prototype to avoid an error. 11975 Use char because int might match the return type of a GCC 11976 builtin and then its argument prototype would still apply. */ 11977#ifdef __cplusplus 11978extern "C" 11979#endif 11980char dlopen (); 11981int 11982main () 11983{ 11984return dlopen (); 11985 ; 11986 return 0; 11987} 11988_ACEOF 11989if ac_fn_c_try_link "$LINENO"; then : 11990 ac_cv_lib_dl_dlopen=yes 11991else 11992 ac_cv_lib_dl_dlopen=no 11993fi 11994rm -f core conftest.err conftest.$ac_objext \ 11995 conftest$ac_exeext conftest.$ac_ext 11996LIBS=$ac_check_lib_save_LIBS 11997fi 11998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11999$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12000if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12001 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12002else 12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12004$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12005if ${ac_cv_lib_svld_dlopen+:} false; then : 12006 $as_echo_n "(cached) " >&6 12007else 12008 ac_check_lib_save_LIBS=$LIBS 12009LIBS="-lsvld $LIBS" 12010cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12011/* end confdefs.h. */ 12012 12013/* Override any GCC internal prototype to avoid an error. 12014 Use char because int might match the return type of a GCC 12015 builtin and then its argument prototype would still apply. */ 12016#ifdef __cplusplus 12017extern "C" 12018#endif 12019char dlopen (); 12020int 12021main () 12022{ 12023return dlopen (); 12024 ; 12025 return 0; 12026} 12027_ACEOF 12028if ac_fn_c_try_link "$LINENO"; then : 12029 ac_cv_lib_svld_dlopen=yes 12030else 12031 ac_cv_lib_svld_dlopen=no 12032fi 12033rm -f core conftest.err conftest.$ac_objext \ 12034 conftest$ac_exeext conftest.$ac_ext 12035LIBS=$ac_check_lib_save_LIBS 12036fi 12037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12038$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12039if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12040 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12041else 12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12043$as_echo_n "checking for dld_link in -ldld... " >&6; } 12044if ${ac_cv_lib_dld_dld_link+:} false; then : 12045 $as_echo_n "(cached) " >&6 12046else 12047 ac_check_lib_save_LIBS=$LIBS 12048LIBS="-ldld $LIBS" 12049cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12050/* end confdefs.h. */ 12051 12052/* Override any GCC internal prototype to avoid an error. 12053 Use char because int might match the return type of a GCC 12054 builtin and then its argument prototype would still apply. */ 12055#ifdef __cplusplus 12056extern "C" 12057#endif 12058char dld_link (); 12059int 12060main () 12061{ 12062return dld_link (); 12063 ; 12064 return 0; 12065} 12066_ACEOF 12067if ac_fn_c_try_link "$LINENO"; then : 12068 ac_cv_lib_dld_dld_link=yes 12069else 12070 ac_cv_lib_dld_dld_link=no 12071fi 12072rm -f core conftest.err conftest.$ac_objext \ 12073 conftest$ac_exeext conftest.$ac_ext 12074LIBS=$ac_check_lib_save_LIBS 12075fi 12076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12077$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12078if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12079 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12080fi 12081 12082 12083fi 12084 12085 12086fi 12087 12088 12089fi 12090 12091 12092fi 12093 12094 12095fi 12096 12097 ;; 12098 esac 12099 12100 if test no = "$lt_cv_dlopen"; then 12101 enable_dlopen=no 12102 else 12103 enable_dlopen=yes 12104 fi 12105 12106 case $lt_cv_dlopen in 12107 dlopen) 12108 save_CPPFLAGS=$CPPFLAGS 12109 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12110 12111 save_LDFLAGS=$LDFLAGS 12112 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12113 12114 save_LIBS=$LIBS 12115 LIBS="$lt_cv_dlopen_libs $LIBS" 12116 12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12118$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12119if ${lt_cv_dlopen_self+:} false; then : 12120 $as_echo_n "(cached) " >&6 12121else 12122 if test yes = "$cross_compiling"; then : 12123 lt_cv_dlopen_self=cross 12124else 12125 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12126 lt_status=$lt_dlunknown 12127 cat > conftest.$ac_ext <<_LT_EOF 12128#line $LINENO "configure" 12129#include "confdefs.h" 12130 12131#if HAVE_DLFCN_H 12132#include <dlfcn.h> 12133#endif 12134 12135#include <stdio.h> 12136 12137#ifdef RTLD_GLOBAL 12138# define LT_DLGLOBAL RTLD_GLOBAL 12139#else 12140# ifdef DL_GLOBAL 12141# define LT_DLGLOBAL DL_GLOBAL 12142# else 12143# define LT_DLGLOBAL 0 12144# endif 12145#endif 12146 12147/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12148 find out it does not work in some platform. */ 12149#ifndef LT_DLLAZY_OR_NOW 12150# ifdef RTLD_LAZY 12151# define LT_DLLAZY_OR_NOW RTLD_LAZY 12152# else 12153# ifdef DL_LAZY 12154# define LT_DLLAZY_OR_NOW DL_LAZY 12155# else 12156# ifdef RTLD_NOW 12157# define LT_DLLAZY_OR_NOW RTLD_NOW 12158# else 12159# ifdef DL_NOW 12160# define LT_DLLAZY_OR_NOW DL_NOW 12161# else 12162# define LT_DLLAZY_OR_NOW 0 12163# endif 12164# endif 12165# endif 12166# endif 12167#endif 12168 12169/* When -fvisibility=hidden is used, assume the code has been annotated 12170 correspondingly for the symbols needed. */ 12171#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12172int fnord () __attribute__((visibility("default"))); 12173#endif 12174 12175int fnord () { return 42; } 12176int main () 12177{ 12178 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12179 int status = $lt_dlunknown; 12180 12181 if (self) 12182 { 12183 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12184 else 12185 { 12186 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12187 else puts (dlerror ()); 12188 } 12189 /* dlclose (self); */ 12190 } 12191 else 12192 puts (dlerror ()); 12193 12194 return status; 12195} 12196_LT_EOF 12197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12198 (eval $ac_link) 2>&5 12199 ac_status=$? 12200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12201 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12202 (./conftest; exit; ) >&5 2>/dev/null 12203 lt_status=$? 12204 case x$lt_status in 12205 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12206 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12207 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12208 esac 12209 else : 12210 # compilation failed 12211 lt_cv_dlopen_self=no 12212 fi 12213fi 12214rm -fr conftest* 12215 12216 12217fi 12218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12219$as_echo "$lt_cv_dlopen_self" >&6; } 12220 12221 if test yes = "$lt_cv_dlopen_self"; then 12222 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12224$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12225if ${lt_cv_dlopen_self_static+:} false; then : 12226 $as_echo_n "(cached) " >&6 12227else 12228 if test yes = "$cross_compiling"; then : 12229 lt_cv_dlopen_self_static=cross 12230else 12231 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12232 lt_status=$lt_dlunknown 12233 cat > conftest.$ac_ext <<_LT_EOF 12234#line $LINENO "configure" 12235#include "confdefs.h" 12236 12237#if HAVE_DLFCN_H 12238#include <dlfcn.h> 12239#endif 12240 12241#include <stdio.h> 12242 12243#ifdef RTLD_GLOBAL 12244# define LT_DLGLOBAL RTLD_GLOBAL 12245#else 12246# ifdef DL_GLOBAL 12247# define LT_DLGLOBAL DL_GLOBAL 12248# else 12249# define LT_DLGLOBAL 0 12250# endif 12251#endif 12252 12253/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12254 find out it does not work in some platform. */ 12255#ifndef LT_DLLAZY_OR_NOW 12256# ifdef RTLD_LAZY 12257# define LT_DLLAZY_OR_NOW RTLD_LAZY 12258# else 12259# ifdef DL_LAZY 12260# define LT_DLLAZY_OR_NOW DL_LAZY 12261# else 12262# ifdef RTLD_NOW 12263# define LT_DLLAZY_OR_NOW RTLD_NOW 12264# else 12265# ifdef DL_NOW 12266# define LT_DLLAZY_OR_NOW DL_NOW 12267# else 12268# define LT_DLLAZY_OR_NOW 0 12269# endif 12270# endif 12271# endif 12272# endif 12273#endif 12274 12275/* When -fvisibility=hidden is used, assume the code has been annotated 12276 correspondingly for the symbols needed. */ 12277#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12278int fnord () __attribute__((visibility("default"))); 12279#endif 12280 12281int fnord () { return 42; } 12282int main () 12283{ 12284 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12285 int status = $lt_dlunknown; 12286 12287 if (self) 12288 { 12289 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12290 else 12291 { 12292 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12293 else puts (dlerror ()); 12294 } 12295 /* dlclose (self); */ 12296 } 12297 else 12298 puts (dlerror ()); 12299 12300 return status; 12301} 12302_LT_EOF 12303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12304 (eval $ac_link) 2>&5 12305 ac_status=$? 12306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12307 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12308 (./conftest; exit; ) >&5 2>/dev/null 12309 lt_status=$? 12310 case x$lt_status in 12311 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12312 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12313 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12314 esac 12315 else : 12316 # compilation failed 12317 lt_cv_dlopen_self_static=no 12318 fi 12319fi 12320rm -fr conftest* 12321 12322 12323fi 12324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12325$as_echo "$lt_cv_dlopen_self_static" >&6; } 12326 fi 12327 12328 CPPFLAGS=$save_CPPFLAGS 12329 LDFLAGS=$save_LDFLAGS 12330 LIBS=$save_LIBS 12331 ;; 12332 esac 12333 12334 case $lt_cv_dlopen_self in 12335 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12336 *) enable_dlopen_self=unknown ;; 12337 esac 12338 12339 case $lt_cv_dlopen_self_static in 12340 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12341 *) enable_dlopen_self_static=unknown ;; 12342 esac 12343fi 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361striplib= 12362old_striplib= 12363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12364$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12365if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12366 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12367 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12369$as_echo "yes" >&6; } 12370else 12371# FIXME - insert some real tests, host_os isn't really good enough 12372 case $host_os in 12373 darwin*) 12374 if test -n "$STRIP"; then 12375 striplib="$STRIP -x" 12376 old_striplib="$STRIP -S" 12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12378$as_echo "yes" >&6; } 12379 else 12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12381$as_echo "no" >&6; } 12382 fi 12383 ;; 12384 *) 12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12386$as_echo "no" >&6; } 12387 ;; 12388 esac 12389fi 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 # Report what library types will actually be built 12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12404$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12406$as_echo "$can_build_shared" >&6; } 12407 12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12409$as_echo_n "checking whether to build shared libraries... " >&6; } 12410 test no = "$can_build_shared" && enable_shared=no 12411 12412 # On AIX, shared libraries and static libraries use the same namespace, and 12413 # are all built from PIC. 12414 case $host_os in 12415 aix3*) 12416 test yes = "$enable_shared" && enable_static=no 12417 if test -n "$RANLIB"; then 12418 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12419 postinstall_cmds='$RANLIB $lib' 12420 fi 12421 ;; 12422 12423 aix[4-9]*) 12424 if test ia64 != "$host_cpu"; then 12425 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12426 yes,aix,yes) ;; # shared object as lib.so file only 12427 yes,svr4,*) ;; # shared object as lib.so archive member only 12428 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12429 esac 12430 fi 12431 ;; 12432 esac 12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12434$as_echo "$enable_shared" >&6; } 12435 12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12437$as_echo_n "checking whether to build static libraries... " >&6; } 12438 # Make sure either enable_shared or enable_static is yes. 12439 test yes = "$enable_shared" || enable_static=yes 12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12441$as_echo "$enable_static" >&6; } 12442 12443 12444 12445 12446fi 12447ac_ext=c 12448ac_cpp='$CPP $CPPFLAGS' 12449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12451ac_compiler_gnu=$ac_cv_c_compiler_gnu 12452 12453CC=$lt_save_CC 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 ac_config_commands="$ac_config_commands libtool" 12470 12471 12472 12473 12474# Only expand once: 12475 12476 12477 12478ac_ext=cpp 12479ac_cpp='$CXXCPP $CPPFLAGS' 12480ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12481ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12482ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12483if test -z "$CXX"; then 12484 if test -n "$CCC"; then 12485 CXX=$CCC 12486 else 12487 if test -n "$ac_tool_prefix"; then 12488 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12489 do 12490 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12491set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12493$as_echo_n "checking for $ac_word... " >&6; } 12494if ${ac_cv_prog_CXX+:} false; then : 12495 $as_echo_n "(cached) " >&6 12496else 12497 if test -n "$CXX"; then 12498 ac_cv_prog_CXX="$CXX" # Let the user override the test. 12499else 12500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12501for as_dir in $PATH 12502do 12503 IFS=$as_save_IFS 12504 test -z "$as_dir" && as_dir=. 12505 for ac_exec_ext in '' $ac_executable_extensions; do 12506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12507 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 12508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12509 break 2 12510 fi 12511done 12512 done 12513IFS=$as_save_IFS 12514 12515fi 12516fi 12517CXX=$ac_cv_prog_CXX 12518if test -n "$CXX"; then 12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 12520$as_echo "$CXX" >&6; } 12521else 12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12523$as_echo "no" >&6; } 12524fi 12525 12526 12527 test -n "$CXX" && break 12528 done 12529fi 12530if test -z "$CXX"; then 12531 ac_ct_CXX=$CXX 12532 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 12533do 12534 # Extract the first word of "$ac_prog", so it can be a program name with args. 12535set dummy $ac_prog; ac_word=$2 12536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12537$as_echo_n "checking for $ac_word... " >&6; } 12538if ${ac_cv_prog_ac_ct_CXX+:} false; then : 12539 $as_echo_n "(cached) " >&6 12540else 12541 if test -n "$ac_ct_CXX"; then 12542 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 12543else 12544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12545for as_dir in $PATH 12546do 12547 IFS=$as_save_IFS 12548 test -z "$as_dir" && as_dir=. 12549 for ac_exec_ext in '' $ac_executable_extensions; do 12550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12551 ac_cv_prog_ac_ct_CXX="$ac_prog" 12552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12553 break 2 12554 fi 12555done 12556 done 12557IFS=$as_save_IFS 12558 12559fi 12560fi 12561ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 12562if test -n "$ac_ct_CXX"; then 12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 12564$as_echo "$ac_ct_CXX" >&6; } 12565else 12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12567$as_echo "no" >&6; } 12568fi 12569 12570 12571 test -n "$ac_ct_CXX" && break 12572done 12573 12574 if test "x$ac_ct_CXX" = x; then 12575 CXX="g++" 12576 else 12577 case $cross_compiling:$ac_tool_warned in 12578yes:) 12579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12581ac_tool_warned=yes ;; 12582esac 12583 CXX=$ac_ct_CXX 12584 fi 12585fi 12586 12587 fi 12588fi 12589# Provide some information about the compiler. 12590$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 12591set X $ac_compile 12592ac_compiler=$2 12593for ac_option in --version -v -V -qversion; do 12594 { { ac_try="$ac_compiler $ac_option >&5" 12595case "(($ac_try" in 12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 12597 *) ac_try_echo=$ac_try;; 12598esac 12599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 12600$as_echo "$ac_try_echo"; } >&5 12601 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 12602 ac_status=$? 12603 if test -s conftest.err; then 12604 sed '10a\ 12605... rest of stderr output deleted ... 12606 10q' conftest.err >conftest.er1 12607 cat conftest.er1 >&5 12608 fi 12609 rm -f conftest.er1 conftest.err 12610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12611 test $ac_status = 0; } 12612done 12613 12614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 12615$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 12616if ${ac_cv_cxx_compiler_gnu+:} false; then : 12617 $as_echo_n "(cached) " >&6 12618else 12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12620/* end confdefs.h. */ 12621 12622int 12623main () 12624{ 12625#ifndef __GNUC__ 12626 choke me 12627#endif 12628 12629 ; 12630 return 0; 12631} 12632_ACEOF 12633if ac_fn_cxx_try_compile "$LINENO"; then : 12634 ac_compiler_gnu=yes 12635else 12636 ac_compiler_gnu=no 12637fi 12638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12639ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 12640 12641fi 12642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 12643$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 12644if test $ac_compiler_gnu = yes; then 12645 GXX=yes 12646else 12647 GXX= 12648fi 12649ac_test_CXXFLAGS=${CXXFLAGS+set} 12650ac_save_CXXFLAGS=$CXXFLAGS 12651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 12652$as_echo_n "checking whether $CXX accepts -g... " >&6; } 12653if ${ac_cv_prog_cxx_g+:} false; then : 12654 $as_echo_n "(cached) " >&6 12655else 12656 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 12657 ac_cxx_werror_flag=yes 12658 ac_cv_prog_cxx_g=no 12659 CXXFLAGS="-g" 12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12661/* end confdefs.h. */ 12662 12663int 12664main () 12665{ 12666 12667 ; 12668 return 0; 12669} 12670_ACEOF 12671if ac_fn_cxx_try_compile "$LINENO"; then : 12672 ac_cv_prog_cxx_g=yes 12673else 12674 CXXFLAGS="" 12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12676/* end confdefs.h. */ 12677 12678int 12679main () 12680{ 12681 12682 ; 12683 return 0; 12684} 12685_ACEOF 12686if ac_fn_cxx_try_compile "$LINENO"; then : 12687 12688else 12689 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12690 CXXFLAGS="-g" 12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12692/* end confdefs.h. */ 12693 12694int 12695main () 12696{ 12697 12698 ; 12699 return 0; 12700} 12701_ACEOF 12702if ac_fn_cxx_try_compile "$LINENO"; then : 12703 ac_cv_prog_cxx_g=yes 12704fi 12705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12706fi 12707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12708fi 12709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12710 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 12711fi 12712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 12713$as_echo "$ac_cv_prog_cxx_g" >&6; } 12714if test "$ac_test_CXXFLAGS" = set; then 12715 CXXFLAGS=$ac_save_CXXFLAGS 12716elif test $ac_cv_prog_cxx_g = yes; then 12717 if test "$GXX" = yes; then 12718 CXXFLAGS="-g -O2" 12719 else 12720 CXXFLAGS="-g" 12721 fi 12722else 12723 if test "$GXX" = yes; then 12724 CXXFLAGS="-O2" 12725 else 12726 CXXFLAGS= 12727 fi 12728fi 12729ac_ext=c 12730ac_cpp='$CPP $CPPFLAGS' 12731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12733ac_compiler_gnu=$ac_cv_c_compiler_gnu 12734 12735depcc="$CXX" am_compiler_list= 12736 12737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12738$as_echo_n "checking dependency style of $depcc... " >&6; } 12739if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 12740 $as_echo_n "(cached) " >&6 12741else 12742 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12743 # We make a subdir and do the tests there. Otherwise we can end up 12744 # making bogus files that we don't know about and never remove. For 12745 # instance it was reported that on HP-UX the gcc test will end up 12746 # making a dummy file named 'D' -- because '-MD' means "put the output 12747 # in D". 12748 rm -rf conftest.dir 12749 mkdir conftest.dir 12750 # Copy depcomp to subdir because otherwise we won't find it if we're 12751 # using a relative directory. 12752 cp "$am_depcomp" conftest.dir 12753 cd conftest.dir 12754 # We will build objects and dependencies in a subdirectory because 12755 # it helps to detect inapplicable dependency modes. For instance 12756 # both Tru64's cc and ICC support -MD to output dependencies as a 12757 # side effect of compilation, but ICC will put the dependencies in 12758 # the current directory while Tru64 will put them in the object 12759 # directory. 12760 mkdir sub 12761 12762 am_cv_CXX_dependencies_compiler_type=none 12763 if test "$am_compiler_list" = ""; then 12764 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12765 fi 12766 am__universal=false 12767 case " $depcc " in #( 12768 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12769 esac 12770 12771 for depmode in $am_compiler_list; do 12772 # Setup a source with many dependencies, because some compilers 12773 # like to wrap large dependency lists on column 80 (with \), and 12774 # we should not choose a depcomp mode which is confused by this. 12775 # 12776 # We need to recreate these files for each test, as the compiler may 12777 # overwrite some of them when testing with obscure command lines. 12778 # This happens at least with the AIX C compiler. 12779 : > sub/conftest.c 12780 for i in 1 2 3 4 5 6; do 12781 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12782 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12783 # Solaris 10 /bin/sh. 12784 echo '/* dummy */' > sub/conftst$i.h 12785 done 12786 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12787 12788 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12789 # mode. It turns out that the SunPro C++ compiler does not properly 12790 # handle '-M -o', and we need to detect this. Also, some Intel 12791 # versions had trouble with output in subdirs. 12792 am__obj=sub/conftest.${OBJEXT-o} 12793 am__minus_obj="-o $am__obj" 12794 case $depmode in 12795 gcc) 12796 # This depmode causes a compiler race in universal mode. 12797 test "$am__universal" = false || continue 12798 ;; 12799 nosideeffect) 12800 # After this tag, mechanisms are not by side-effect, so they'll 12801 # only be used when explicitly requested. 12802 if test "x$enable_dependency_tracking" = xyes; then 12803 continue 12804 else 12805 break 12806 fi 12807 ;; 12808 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12809 # This compiler won't grok '-c -o', but also, the minuso test has 12810 # not run yet. These depmodes are late enough in the game, and 12811 # so weak that their functioning should not be impacted. 12812 am__obj=conftest.${OBJEXT-o} 12813 am__minus_obj= 12814 ;; 12815 none) break ;; 12816 esac 12817 if depmode=$depmode \ 12818 source=sub/conftest.c object=$am__obj \ 12819 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12820 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12821 >/dev/null 2>conftest.err && 12822 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12823 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12824 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12825 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12826 # icc doesn't choke on unknown options, it will just issue warnings 12827 # or remarks (even with -Werror). So we grep stderr for any message 12828 # that says an option was ignored or not supported. 12829 # When given -MP, icc 7.0 and 7.1 complain thusly: 12830 # icc: Command line warning: ignoring option '-M'; no argument required 12831 # The diagnosis changed in icc 8.0: 12832 # icc: Command line remark: option '-MP' not supported 12833 if (grep 'ignoring option' conftest.err || 12834 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12835 am_cv_CXX_dependencies_compiler_type=$depmode 12836 break 12837 fi 12838 fi 12839 done 12840 12841 cd .. 12842 rm -rf conftest.dir 12843else 12844 am_cv_CXX_dependencies_compiler_type=none 12845fi 12846 12847fi 12848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 12849$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 12850CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 12851 12852 if 12853 test "x$enable_dependency_tracking" != xno \ 12854 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 12855 am__fastdepCXX_TRUE= 12856 am__fastdepCXX_FALSE='#' 12857else 12858 am__fastdepCXX_TRUE='#' 12859 am__fastdepCXX_FALSE= 12860fi 12861 12862 12863 12864 12865func_stripname_cnf () 12866{ 12867 case $2 in 12868 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 12869 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 12870 esac 12871} # func_stripname_cnf 12872 12873 if test -n "$CXX" && ( test no != "$CXX" && 12874 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 12875 (test g++ != "$CXX"))); then 12876 ac_ext=cpp 12877ac_cpp='$CXXCPP $CPPFLAGS' 12878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 12882$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 12883if test -z "$CXXCPP"; then 12884 if ${ac_cv_prog_CXXCPP+:} false; then : 12885 $as_echo_n "(cached) " >&6 12886else 12887 # Double quotes because CXXCPP needs to be expanded 12888 for CXXCPP in "$CXX -E" "/lib/cpp" 12889 do 12890 ac_preproc_ok=false 12891for ac_cxx_preproc_warn_flag in '' yes 12892do 12893 # Use a header file that comes with gcc, so configuring glibc 12894 # with a fresh cross-compiler works. 12895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12896 # <limits.h> exists even on freestanding compilers. 12897 # On the NeXT, cc -E runs the code through the compiler's parser, 12898 # not just through cpp. "Syntax error" is here to catch this case. 12899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12900/* end confdefs.h. */ 12901#ifdef __STDC__ 12902# include <limits.h> 12903#else 12904# include <assert.h> 12905#endif 12906 Syntax error 12907_ACEOF 12908if ac_fn_cxx_try_cpp "$LINENO"; then : 12909 12910else 12911 # Broken: fails on valid input. 12912continue 12913fi 12914rm -f conftest.err conftest.i conftest.$ac_ext 12915 12916 # OK, works on sane cases. Now check whether nonexistent headers 12917 # can be detected and how. 12918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12919/* end confdefs.h. */ 12920#include <ac_nonexistent.h> 12921_ACEOF 12922if ac_fn_cxx_try_cpp "$LINENO"; then : 12923 # Broken: success on invalid input. 12924continue 12925else 12926 # Passes both tests. 12927ac_preproc_ok=: 12928break 12929fi 12930rm -f conftest.err conftest.i conftest.$ac_ext 12931 12932done 12933# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12934rm -f conftest.i conftest.err conftest.$ac_ext 12935if $ac_preproc_ok; then : 12936 break 12937fi 12938 12939 done 12940 ac_cv_prog_CXXCPP=$CXXCPP 12941 12942fi 12943 CXXCPP=$ac_cv_prog_CXXCPP 12944else 12945 ac_cv_prog_CXXCPP=$CXXCPP 12946fi 12947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12948$as_echo "$CXXCPP" >&6; } 12949ac_preproc_ok=false 12950for ac_cxx_preproc_warn_flag in '' yes 12951do 12952 # Use a header file that comes with gcc, so configuring glibc 12953 # with a fresh cross-compiler works. 12954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12955 # <limits.h> exists even on freestanding compilers. 12956 # On the NeXT, cc -E runs the code through the compiler's parser, 12957 # not just through cpp. "Syntax error" is here to catch this case. 12958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12959/* end confdefs.h. */ 12960#ifdef __STDC__ 12961# include <limits.h> 12962#else 12963# include <assert.h> 12964#endif 12965 Syntax error 12966_ACEOF 12967if ac_fn_cxx_try_cpp "$LINENO"; then : 12968 12969else 12970 # Broken: fails on valid input. 12971continue 12972fi 12973rm -f conftest.err conftest.i conftest.$ac_ext 12974 12975 # OK, works on sane cases. Now check whether nonexistent headers 12976 # can be detected and how. 12977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12978/* end confdefs.h. */ 12979#include <ac_nonexistent.h> 12980_ACEOF 12981if ac_fn_cxx_try_cpp "$LINENO"; then : 12982 # Broken: success on invalid input. 12983continue 12984else 12985 # Passes both tests. 12986ac_preproc_ok=: 12987break 12988fi 12989rm -f conftest.err conftest.i conftest.$ac_ext 12990 12991done 12992# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12993rm -f conftest.i conftest.err conftest.$ac_ext 12994if $ac_preproc_ok; then : 12995 12996else 12997 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12999as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13000See \`config.log' for more details" "$LINENO" 5; } 13001fi 13002 13003ac_ext=c 13004ac_cpp='$CPP $CPPFLAGS' 13005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13007ac_compiler_gnu=$ac_cv_c_compiler_gnu 13008 13009else 13010 _lt_caught_CXX_error=yes 13011fi 13012 13013ac_ext=cpp 13014ac_cpp='$CXXCPP $CPPFLAGS' 13015ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13016ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13017ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13018 13019archive_cmds_need_lc_CXX=no 13020allow_undefined_flag_CXX= 13021always_export_symbols_CXX=no 13022archive_expsym_cmds_CXX= 13023compiler_needs_object_CXX=no 13024export_dynamic_flag_spec_CXX= 13025hardcode_direct_CXX=no 13026hardcode_direct_absolute_CXX=no 13027hardcode_libdir_flag_spec_CXX= 13028hardcode_libdir_separator_CXX= 13029hardcode_minus_L_CXX=no 13030hardcode_shlibpath_var_CXX=unsupported 13031hardcode_automatic_CXX=no 13032inherit_rpath_CXX=no 13033module_cmds_CXX= 13034module_expsym_cmds_CXX= 13035link_all_deplibs_CXX=unknown 13036old_archive_cmds_CXX=$old_archive_cmds 13037reload_flag_CXX=$reload_flag 13038reload_cmds_CXX=$reload_cmds 13039no_undefined_flag_CXX= 13040whole_archive_flag_spec_CXX= 13041enable_shared_with_static_runtimes_CXX=no 13042 13043# Source file extension for C++ test sources. 13044ac_ext=cpp 13045 13046# Object file extension for compiled C++ test sources. 13047objext=o 13048objext_CXX=$objext 13049 13050# No sense in running all these tests if we already determined that 13051# the CXX compiler isn't working. Some variables (like enable_shared) 13052# are currently assumed to apply to all compilers on this platform, 13053# and will be corrupted by setting them based on a non-working compiler. 13054if test yes != "$_lt_caught_CXX_error"; then 13055 # Code to be used in simple compile tests 13056 lt_simple_compile_test_code="int some_variable = 0;" 13057 13058 # Code to be used in simple link tests 13059 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13060 13061 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13062 13063 13064 13065 13066 13067 13068# If no C compiler was specified, use CC. 13069LTCC=${LTCC-"$CC"} 13070 13071# If no C compiler flags were specified, use CFLAGS. 13072LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13073 13074# Allow CC to be a program name with arguments. 13075compiler=$CC 13076 13077 13078 # save warnings/boilerplate of simple test code 13079 ac_outfile=conftest.$ac_objext 13080echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13081eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13082_lt_compiler_boilerplate=`cat conftest.err` 13083$RM conftest* 13084 13085 ac_outfile=conftest.$ac_objext 13086echo "$lt_simple_link_test_code" >conftest.$ac_ext 13087eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13088_lt_linker_boilerplate=`cat conftest.err` 13089$RM -r conftest* 13090 13091 13092 # Allow CC to be a program name with arguments. 13093 lt_save_CC=$CC 13094 lt_save_CFLAGS=$CFLAGS 13095 lt_save_LD=$LD 13096 lt_save_GCC=$GCC 13097 GCC=$GXX 13098 lt_save_with_gnu_ld=$with_gnu_ld 13099 lt_save_path_LD=$lt_cv_path_LD 13100 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13101 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13102 else 13103 $as_unset lt_cv_prog_gnu_ld 13104 fi 13105 if test -n "${lt_cv_path_LDCXX+set}"; then 13106 lt_cv_path_LD=$lt_cv_path_LDCXX 13107 else 13108 $as_unset lt_cv_path_LD 13109 fi 13110 test -z "${LDCXX+set}" || LD=$LDCXX 13111 CC=${CXX-"c++"} 13112 CFLAGS=$CXXFLAGS 13113 compiler=$CC 13114 compiler_CXX=$CC 13115 func_cc_basename $compiler 13116cc_basename=$func_cc_basename_result 13117 13118 13119 if test -n "$compiler"; then 13120 # We don't want -fno-exception when compiling C++ code, so set the 13121 # no_builtin_flag separately 13122 if test yes = "$GXX"; then 13123 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13124 else 13125 lt_prog_compiler_no_builtin_flag_CXX= 13126 fi 13127 13128 if test yes = "$GXX"; then 13129 # Set up default GNU C++ configuration 13130 13131 13132 13133# Check whether --with-gnu-ld was given. 13134if test "${with_gnu_ld+set}" = set; then : 13135 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13136else 13137 with_gnu_ld=no 13138fi 13139 13140ac_prog=ld 13141if test yes = "$GCC"; then 13142 # Check if gcc -print-prog-name=ld gives a path. 13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13144$as_echo_n "checking for ld used by $CC... " >&6; } 13145 case $host in 13146 *-*-mingw*) 13147 # gcc leaves a trailing carriage return, which upsets mingw 13148 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13149 *) 13150 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13151 esac 13152 case $ac_prog in 13153 # Accept absolute paths. 13154 [\\/]* | ?:[\\/]*) 13155 re_direlt='/[^/][^/]*/\.\./' 13156 # Canonicalize the pathname of ld 13157 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13158 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13159 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13160 done 13161 test -z "$LD" && LD=$ac_prog 13162 ;; 13163 "") 13164 # If it fails, then pretend we aren't using GCC. 13165 ac_prog=ld 13166 ;; 13167 *) 13168 # If it is relative, then search for the first ld in PATH. 13169 with_gnu_ld=unknown 13170 ;; 13171 esac 13172elif test yes = "$with_gnu_ld"; then 13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13174$as_echo_n "checking for GNU ld... " >&6; } 13175else 13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13177$as_echo_n "checking for non-GNU ld... " >&6; } 13178fi 13179if ${lt_cv_path_LD+:} false; then : 13180 $as_echo_n "(cached) " >&6 13181else 13182 if test -z "$LD"; then 13183 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13184 for ac_dir in $PATH; do 13185 IFS=$lt_save_ifs 13186 test -z "$ac_dir" && ac_dir=. 13187 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13188 lt_cv_path_LD=$ac_dir/$ac_prog 13189 # Check to see if the program is GNU ld. I'd rather use --version, 13190 # but apparently some variants of GNU ld only accept -v. 13191 # Break only if it was the GNU/non-GNU ld that we prefer. 13192 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13193 *GNU* | *'with BFD'*) 13194 test no != "$with_gnu_ld" && break 13195 ;; 13196 *) 13197 test yes != "$with_gnu_ld" && break 13198 ;; 13199 esac 13200 fi 13201 done 13202 IFS=$lt_save_ifs 13203else 13204 lt_cv_path_LD=$LD # Let the user override the test with a path. 13205fi 13206fi 13207 13208LD=$lt_cv_path_LD 13209if test -n "$LD"; then 13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13211$as_echo "$LD" >&6; } 13212else 13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13214$as_echo "no" >&6; } 13215fi 13216test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13218$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13219if ${lt_cv_prog_gnu_ld+:} false; then : 13220 $as_echo_n "(cached) " >&6 13221else 13222 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13223case `$LD -v 2>&1 </dev/null` in 13224*GNU* | *'with BFD'*) 13225 lt_cv_prog_gnu_ld=yes 13226 ;; 13227*) 13228 lt_cv_prog_gnu_ld=no 13229 ;; 13230esac 13231fi 13232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13233$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13234with_gnu_ld=$lt_cv_prog_gnu_ld 13235 13236 13237 13238 13239 13240 13241 13242 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13243 # archiving commands below assume that GNU ld is being used. 13244 if test yes = "$with_gnu_ld"; then 13245 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13246 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' 13247 13248 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13249 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13250 13251 # If archive_cmds runs LD, not CC, wlarc should be empty 13252 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13253 # investigate it a little bit more. (MM) 13254 wlarc='$wl' 13255 13256 # ancient GNU ld didn't support --whole-archive et. al. 13257 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13258 $GREP 'no-whole-archive' > /dev/null; then 13259 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13260 else 13261 whole_archive_flag_spec_CXX= 13262 fi 13263 else 13264 with_gnu_ld=no 13265 wlarc= 13266 13267 # A generic and very simple default shared library creation 13268 # command for GNU C++ for the case where it uses the native 13269 # linker, instead of GNU ld. If possible, this setting should 13270 # overridden to take advantage of the native linker features on 13271 # the platform it is being used on. 13272 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13273 fi 13274 13275 # Commands to make compiler produce verbose output that lists 13276 # what "hidden" libraries, object files and flags are used when 13277 # linking a shared library. 13278 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 13279 13280 else 13281 GXX=no 13282 with_gnu_ld=no 13283 wlarc= 13284 fi 13285 13286 # PORTME: fill in a description of your system's C++ link characteristics 13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13288$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13289 ld_shlibs_CXX=yes 13290 case $host_os in 13291 aix3*) 13292 # FIXME: insert proper C++ library support 13293 ld_shlibs_CXX=no 13294 ;; 13295 aix[4-9]*) 13296 if test ia64 = "$host_cpu"; then 13297 # On IA64, the linker does run time linking by default, so we don't 13298 # have to do anything special. 13299 aix_use_runtimelinking=no 13300 exp_sym_flag='-Bexport' 13301 no_entry_flag= 13302 else 13303 aix_use_runtimelinking=no 13304 13305 # Test if we are trying to use run time linking or normal 13306 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13307 # have runtime linking enabled, and use it for executables. 13308 # For shared libraries, we enable/disable runtime linking 13309 # depending on the kind of the shared library created - 13310 # when "with_aix_soname,aix_use_runtimelinking" is: 13311 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13312 # "aix,yes" lib.so shared, rtl:yes, for executables 13313 # lib.a static archive 13314 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13315 # lib.a(lib.so.V) shared, rtl:no, for executables 13316 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13317 # lib.a(lib.so.V) shared, rtl:no 13318 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13319 # lib.a static archive 13320 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13321 for ld_flag in $LDFLAGS; do 13322 case $ld_flag in 13323 *-brtl*) 13324 aix_use_runtimelinking=yes 13325 break 13326 ;; 13327 esac 13328 done 13329 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13330 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13331 # so we don't have lib.a shared libs to link our executables. 13332 # We have to force runtime linking in this case. 13333 aix_use_runtimelinking=yes 13334 LDFLAGS="$LDFLAGS -Wl,-brtl" 13335 fi 13336 ;; 13337 esac 13338 13339 exp_sym_flag='-bexport' 13340 no_entry_flag='-bnoentry' 13341 fi 13342 13343 # When large executables or shared objects are built, AIX ld can 13344 # have problems creating the table of contents. If linking a library 13345 # or program results in "error TOC overflow" add -mminimal-toc to 13346 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13347 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13348 13349 archive_cmds_CXX='' 13350 hardcode_direct_CXX=yes 13351 hardcode_direct_absolute_CXX=yes 13352 hardcode_libdir_separator_CXX=':' 13353 link_all_deplibs_CXX=yes 13354 file_list_spec_CXX='$wl-f,' 13355 case $with_aix_soname,$aix_use_runtimelinking in 13356 aix,*) ;; # no import file 13357 svr4,* | *,yes) # use import file 13358 # The Import File defines what to hardcode. 13359 hardcode_direct_CXX=no 13360 hardcode_direct_absolute_CXX=no 13361 ;; 13362 esac 13363 13364 if test yes = "$GXX"; then 13365 case $host_os in aix4.[012]|aix4.[012].*) 13366 # We only want to do this on AIX 4.2 and lower, the check 13367 # below for broken collect2 doesn't work under 4.3+ 13368 collect2name=`$CC -print-prog-name=collect2` 13369 if test -f "$collect2name" && 13370 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13371 then 13372 # We have reworked collect2 13373 : 13374 else 13375 # We have old collect2 13376 hardcode_direct_CXX=unsupported 13377 # It fails to find uninstalled libraries when the uninstalled 13378 # path is not listed in the libpath. Setting hardcode_minus_L 13379 # to unsupported forces relinking 13380 hardcode_minus_L_CXX=yes 13381 hardcode_libdir_flag_spec_CXX='-L$libdir' 13382 hardcode_libdir_separator_CXX= 13383 fi 13384 esac 13385 shared_flag='-shared' 13386 if test yes = "$aix_use_runtimelinking"; then 13387 shared_flag=$shared_flag' $wl-G' 13388 fi 13389 # Need to ensure runtime linking is disabled for the traditional 13390 # shared library, or the linker may eventually find shared libraries 13391 # /with/ Import File - we do not want to mix them. 13392 shared_flag_aix='-shared' 13393 shared_flag_svr4='-shared $wl-G' 13394 else 13395 # not using gcc 13396 if test ia64 = "$host_cpu"; then 13397 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13398 # chokes on -Wl,-G. The following line is correct: 13399 shared_flag='-G' 13400 else 13401 if test yes = "$aix_use_runtimelinking"; then 13402 shared_flag='$wl-G' 13403 else 13404 shared_flag='$wl-bM:SRE' 13405 fi 13406 shared_flag_aix='$wl-bM:SRE' 13407 shared_flag_svr4='$wl-G' 13408 fi 13409 fi 13410 13411 export_dynamic_flag_spec_CXX='$wl-bexpall' 13412 # It seems that -bexpall does not export symbols beginning with 13413 # underscore (_), so it is better to generate a list of symbols to 13414 # export. 13415 always_export_symbols_CXX=yes 13416 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 13417 # Warning - without using the other runtime loading flags (-brtl), 13418 # -berok will link without error, but may produce a broken library. 13419 # The "-G" linker flag allows undefined symbols. 13420 no_undefined_flag_CXX='-bernotok' 13421 # Determine the default libpath from the value encoded in an empty 13422 # executable. 13423 if test set = "${lt_cv_aix_libpath+set}"; then 13424 aix_libpath=$lt_cv_aix_libpath 13425else 13426 if ${lt_cv_aix_libpath__CXX+:} false; then : 13427 $as_echo_n "(cached) " >&6 13428else 13429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13430/* end confdefs.h. */ 13431 13432int 13433main () 13434{ 13435 13436 ; 13437 return 0; 13438} 13439_ACEOF 13440if ac_fn_cxx_try_link "$LINENO"; then : 13441 13442 lt_aix_libpath_sed=' 13443 /Import File Strings/,/^$/ { 13444 /^0/ { 13445 s/^0 *\([^ ]*\) *$/\1/ 13446 p 13447 } 13448 }' 13449 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13450 # Check for a 64-bit object if we didn't find anything. 13451 if test -z "$lt_cv_aix_libpath__CXX"; then 13452 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13453 fi 13454fi 13455rm -f core conftest.err conftest.$ac_objext \ 13456 conftest$ac_exeext conftest.$ac_ext 13457 if test -z "$lt_cv_aix_libpath__CXX"; then 13458 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13459 fi 13460 13461fi 13462 13463 aix_libpath=$lt_cv_aix_libpath__CXX 13464fi 13465 13466 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13467 13468 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 13469 else 13470 if test ia64 = "$host_cpu"; then 13471 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 13472 allow_undefined_flag_CXX="-z nodefs" 13473 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" 13474 else 13475 # Determine the default libpath from the value encoded in an 13476 # empty executable. 13477 if test set = "${lt_cv_aix_libpath+set}"; then 13478 aix_libpath=$lt_cv_aix_libpath 13479else 13480 if ${lt_cv_aix_libpath__CXX+:} false; then : 13481 $as_echo_n "(cached) " >&6 13482else 13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13484/* end confdefs.h. */ 13485 13486int 13487main () 13488{ 13489 13490 ; 13491 return 0; 13492} 13493_ACEOF 13494if ac_fn_cxx_try_link "$LINENO"; then : 13495 13496 lt_aix_libpath_sed=' 13497 /Import File Strings/,/^$/ { 13498 /^0/ { 13499 s/^0 *\([^ ]*\) *$/\1/ 13500 p 13501 } 13502 }' 13503 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13504 # Check for a 64-bit object if we didn't find anything. 13505 if test -z "$lt_cv_aix_libpath__CXX"; then 13506 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13507 fi 13508fi 13509rm -f core conftest.err conftest.$ac_objext \ 13510 conftest$ac_exeext conftest.$ac_ext 13511 if test -z "$lt_cv_aix_libpath__CXX"; then 13512 lt_cv_aix_libpath__CXX=/usr/lib:/lib 13513 fi 13514 13515fi 13516 13517 aix_libpath=$lt_cv_aix_libpath__CXX 13518fi 13519 13520 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 13521 # Warning - without using the other run time loading flags, 13522 # -berok will link without error, but may produce a broken library. 13523 no_undefined_flag_CXX=' $wl-bernotok' 13524 allow_undefined_flag_CXX=' $wl-berok' 13525 if test yes = "$with_gnu_ld"; then 13526 # We only use this code for GNU lds that support --whole-archive. 13527 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13528 else 13529 # Exported symbols can be pulled into shared objects from archives 13530 whole_archive_flag_spec_CXX='$convenience' 13531 fi 13532 archive_cmds_need_lc_CXX=yes 13533 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 13534 # -brtl affects multiple linker settings, -berok does not and is overridden later 13535 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 13536 if test svr4 != "$with_aix_soname"; then 13537 # This is similar to how AIX traditionally builds its shared 13538 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 13539 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' 13540 fi 13541 if test aix != "$with_aix_soname"; then 13542 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' 13543 else 13544 # used by -dlpreopen to get the symbols 13545 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 13546 fi 13547 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 13548 fi 13549 fi 13550 ;; 13551 13552 beos*) 13553 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13554 allow_undefined_flag_CXX=unsupported 13555 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13556 # support --undefined. This deserves some investigation. FIXME 13557 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13558 else 13559 ld_shlibs_CXX=no 13560 fi 13561 ;; 13562 13563 chorus*) 13564 case $cc_basename in 13565 *) 13566 # FIXME: insert proper C++ library support 13567 ld_shlibs_CXX=no 13568 ;; 13569 esac 13570 ;; 13571 13572 cygwin* | mingw* | pw32* | cegcc*) 13573 case $GXX,$cc_basename in 13574 ,cl* | no,cl*) 13575 # Native MSVC 13576 # hardcode_libdir_flag_spec is actually meaningless, as there is 13577 # no search path for DLLs. 13578 hardcode_libdir_flag_spec_CXX=' ' 13579 allow_undefined_flag_CXX=unsupported 13580 always_export_symbols_CXX=yes 13581 file_list_spec_CXX='@' 13582 # Tell ltmain to make .lib files, not .a files. 13583 libext=lib 13584 # Tell ltmain to make .dll files, not .so files. 13585 shrext_cmds=.dll 13586 # FIXME: Setting linknames here is a bad hack. 13587 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 13588 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13589 cp "$export_symbols" "$output_objdir/$soname.def"; 13590 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 13591 else 13592 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 13593 fi~ 13594 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13595 linknames=' 13596 # The linker will not automatically build a static lib if we build a DLL. 13597 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 13598 enable_shared_with_static_runtimes_CXX=yes 13599 # Don't use ranlib 13600 old_postinstall_cmds_CXX='chmod 644 $oldlib' 13601 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 13602 lt_tool_outputfile="@TOOL_OUTPUT@"~ 13603 case $lt_outputfile in 13604 *.exe|*.EXE) ;; 13605 *) 13606 lt_outputfile=$lt_outputfile.exe 13607 lt_tool_outputfile=$lt_tool_outputfile.exe 13608 ;; 13609 esac~ 13610 func_to_tool_file "$lt_outputfile"~ 13611 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 13612 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 13613 $RM "$lt_outputfile.manifest"; 13614 fi' 13615 ;; 13616 *) 13617 # g++ 13618 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 13619 # as there is no search path for DLLs. 13620 hardcode_libdir_flag_spec_CXX='-L$libdir' 13621 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 13622 allow_undefined_flag_CXX=unsupported 13623 always_export_symbols_CXX=no 13624 enable_shared_with_static_runtimes_CXX=yes 13625 13626 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 13627 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' 13628 # If the export-symbols file already is a .def file, use it as 13629 # is; otherwise, prepend EXPORTS... 13630 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 13631 cp $export_symbols $output_objdir/$soname.def; 13632 else 13633 echo EXPORTS > $output_objdir/$soname.def; 13634 cat $export_symbols >> $output_objdir/$soname.def; 13635 fi~ 13636 $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' 13637 else 13638 ld_shlibs_CXX=no 13639 fi 13640 ;; 13641 esac 13642 ;; 13643 darwin* | rhapsody*) 13644 13645 13646 archive_cmds_need_lc_CXX=no 13647 hardcode_direct_CXX=no 13648 hardcode_automatic_CXX=yes 13649 hardcode_shlibpath_var_CXX=unsupported 13650 if test yes = "$lt_cv_ld_force_load"; then 13651 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\"`' 13652 13653 else 13654 whole_archive_flag_spec_CXX='' 13655 fi 13656 link_all_deplibs_CXX=yes 13657 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 13658 case $cc_basename in 13659 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 13660 *) _lt_dar_can_shared=$GCC ;; 13661 esac 13662 if test yes = "$_lt_dar_can_shared"; then 13663 output_verbose_link_cmd=func_echo_all 13664 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" 13665 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 13666 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" 13667 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" 13668 if test yes != "$lt_cv_apple_cc_single_mod"; then 13669 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" 13670 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" 13671 fi 13672 13673 else 13674 ld_shlibs_CXX=no 13675 fi 13676 13677 ;; 13678 13679 os2*) 13680 hardcode_libdir_flag_spec_CXX='-L$libdir' 13681 hardcode_minus_L_CXX=yes 13682 allow_undefined_flag_CXX=unsupported 13683 shrext_cmds=.dll 13684 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13685 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13686 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13687 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13688 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 13689 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13690 emximp -o $lib $output_objdir/$libname.def' 13691 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 13692 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 13693 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 13694 $ECHO EXPORTS >> $output_objdir/$libname.def~ 13695 prefix_cmds="$SED"~ 13696 if test EXPORTS = "`$SED 1q $export_symbols`"; then 13697 prefix_cmds="$prefix_cmds -e 1d"; 13698 fi~ 13699 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 13700 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 13701 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 13702 emximp -o $lib $output_objdir/$libname.def' 13703 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 13704 enable_shared_with_static_runtimes_CXX=yes 13705 ;; 13706 13707 dgux*) 13708 case $cc_basename in 13709 ec++*) 13710 # FIXME: insert proper C++ library support 13711 ld_shlibs_CXX=no 13712 ;; 13713 ghcx*) 13714 # Green Hills C++ Compiler 13715 # FIXME: insert proper C++ library support 13716 ld_shlibs_CXX=no 13717 ;; 13718 *) 13719 # FIXME: insert proper C++ library support 13720 ld_shlibs_CXX=no 13721 ;; 13722 esac 13723 ;; 13724 13725 freebsd2.*) 13726 # C++ shared libraries reported to be fairly broken before 13727 # switch to ELF 13728 ld_shlibs_CXX=no 13729 ;; 13730 13731 freebsd-elf*) 13732 archive_cmds_need_lc_CXX=no 13733 ;; 13734 13735 freebsd* | dragonfly*) 13736 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 13737 # conventions 13738 ld_shlibs_CXX=yes 13739 ;; 13740 13741 haiku*) 13742 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13743 link_all_deplibs_CXX=yes 13744 ;; 13745 13746 hpux9*) 13747 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13748 hardcode_libdir_separator_CXX=: 13749 export_dynamic_flag_spec_CXX='$wl-E' 13750 hardcode_direct_CXX=yes 13751 hardcode_minus_L_CXX=yes # Not in the search PATH, 13752 # but as the default 13753 # location of the library. 13754 13755 case $cc_basename in 13756 CC*) 13757 # FIXME: insert proper C++ library support 13758 ld_shlibs_CXX=no 13759 ;; 13760 aCC*) 13761 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' 13762 # Commands to make compiler produce verbose output that lists 13763 # what "hidden" libraries, object files and flags are used when 13764 # linking a shared library. 13765 # 13766 # There doesn't appear to be a way to prevent this compiler from 13767 # explicitly linking system object files so we need to strip them 13768 # from the output so that they don't get included in the library 13769 # dependencies. 13770 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"' 13771 ;; 13772 *) 13773 if test yes = "$GXX"; then 13774 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' 13775 else 13776 # FIXME: insert proper C++ library support 13777 ld_shlibs_CXX=no 13778 fi 13779 ;; 13780 esac 13781 ;; 13782 13783 hpux10*|hpux11*) 13784 if test no = "$with_gnu_ld"; then 13785 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 13786 hardcode_libdir_separator_CXX=: 13787 13788 case $host_cpu in 13789 hppa*64*|ia64*) 13790 ;; 13791 *) 13792 export_dynamic_flag_spec_CXX='$wl-E' 13793 ;; 13794 esac 13795 fi 13796 case $host_cpu in 13797 hppa*64*|ia64*) 13798 hardcode_direct_CXX=no 13799 hardcode_shlibpath_var_CXX=no 13800 ;; 13801 *) 13802 hardcode_direct_CXX=yes 13803 hardcode_direct_absolute_CXX=yes 13804 hardcode_minus_L_CXX=yes # Not in the search PATH, 13805 # but as the default 13806 # location of the library. 13807 ;; 13808 esac 13809 13810 case $cc_basename in 13811 CC*) 13812 # FIXME: insert proper C++ library support 13813 ld_shlibs_CXX=no 13814 ;; 13815 aCC*) 13816 case $host_cpu in 13817 hppa*64*) 13818 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13819 ;; 13820 ia64*) 13821 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13822 ;; 13823 *) 13824 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13825 ;; 13826 esac 13827 # Commands to make compiler produce verbose output that lists 13828 # what "hidden" libraries, object files and flags are used when 13829 # linking a shared library. 13830 # 13831 # There doesn't appear to be a way to prevent this compiler from 13832 # explicitly linking system object files so we need to strip them 13833 # from the output so that they don't get included in the library 13834 # dependencies. 13835 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"' 13836 ;; 13837 *) 13838 if test yes = "$GXX"; then 13839 if test no = "$with_gnu_ld"; then 13840 case $host_cpu in 13841 hppa*64*) 13842 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13843 ;; 13844 ia64*) 13845 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13846 ;; 13847 *) 13848 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' 13849 ;; 13850 esac 13851 fi 13852 else 13853 # FIXME: insert proper C++ library support 13854 ld_shlibs_CXX=no 13855 fi 13856 ;; 13857 esac 13858 ;; 13859 13860 interix[3-9]*) 13861 hardcode_direct_CXX=no 13862 hardcode_shlibpath_var_CXX=no 13863 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13864 export_dynamic_flag_spec_CXX='$wl-E' 13865 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 13866 # Instead, shared libraries are loaded at an image base (0x10000000 by 13867 # default) and relocated if they conflict, which is a slow very memory 13868 # consuming and fragmenting process. To avoid this, we pick a random, 13869 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 13870 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 13871 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' 13872 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' 13873 ;; 13874 irix5* | irix6*) 13875 case $cc_basename in 13876 CC*) 13877 # SGI C++ 13878 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' 13879 13880 # Archives containing C++ object files must be created using 13881 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 13882 # necessary to make sure instantiated templates are included 13883 # in the archive. 13884 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 13885 ;; 13886 *) 13887 if test yes = "$GXX"; then 13888 if test no = "$with_gnu_ld"; then 13889 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' 13890 else 13891 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' 13892 fi 13893 fi 13894 link_all_deplibs_CXX=yes 13895 ;; 13896 esac 13897 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13898 hardcode_libdir_separator_CXX=: 13899 inherit_rpath_CXX=yes 13900 ;; 13901 13902 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 13903 case $cc_basename in 13904 KCC*) 13905 # Kuck and Associates, Inc. (KAI) C++ Compiler 13906 13907 # KCC will only create a shared library if the output file 13908 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13909 # to its proper name (with version) after linking. 13910 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' 13911 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' 13912 # Commands to make compiler produce verbose output that lists 13913 # what "hidden" libraries, object files and flags are used when 13914 # linking a shared library. 13915 # 13916 # There doesn't appear to be a way to prevent this compiler from 13917 # explicitly linking system object files so we need to strip them 13918 # from the output so that they don't get included in the library 13919 # dependencies. 13920 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"' 13921 13922 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13923 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13924 13925 # Archives containing C++ object files must be created using 13926 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 13927 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 13928 ;; 13929 icpc* | ecpc* ) 13930 # Intel C++ 13931 with_gnu_ld=yes 13932 # version 8.0 and above of icpc choke on multiply defined symbols 13933 # if we add $predep_objects and $postdep_objects, however 7.1 and 13934 # earlier do not add the objects themselves. 13935 case `$CC -V 2>&1` in 13936 *"Version 7."*) 13937 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13938 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' 13939 ;; 13940 *) # Version 8.0 or newer 13941 tmp_idyn= 13942 case $host_cpu in 13943 ia64*) tmp_idyn=' -i_dynamic';; 13944 esac 13945 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 13946 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' 13947 ;; 13948 esac 13949 archive_cmds_need_lc_CXX=no 13950 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 13951 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13952 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 13953 ;; 13954 pgCC* | pgcpp*) 13955 # Portland Group C++ compiler 13956 case `$CC -V` in 13957 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 13958 prelink_cmds_CXX='tpldir=Template.dir~ 13959 rm -rf $tpldir~ 13960 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 13961 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 13962 old_archive_cmds_CXX='tpldir=Template.dir~ 13963 rm -rf $tpldir~ 13964 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 13965 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 13966 $RANLIB $oldlib' 13967 archive_cmds_CXX='tpldir=Template.dir~ 13968 rm -rf $tpldir~ 13969 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13970 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13971 archive_expsym_cmds_CXX='tpldir=Template.dir~ 13972 rm -rf $tpldir~ 13973 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 13974 $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' 13975 ;; 13976 *) # Version 6 and above use weak symbols 13977 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13978 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' 13979 ;; 13980 esac 13981 13982 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 13983 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13984 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' 13985 ;; 13986 cxx*) 13987 # Compaq C++ 13988 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13989 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' 13990 13991 runpath_var=LD_RUN_PATH 13992 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13993 hardcode_libdir_separator_CXX=: 13994 13995 # Commands to make compiler produce verbose output that lists 13996 # what "hidden" libraries, object files and flags are used when 13997 # linking a shared library. 13998 # 13999 # There doesn't appear to be a way to prevent this compiler from 14000 # explicitly linking system object files so we need to strip them 14001 # from the output so that they don't get included in the library 14002 # dependencies. 14003 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' 14004 ;; 14005 xl* | mpixl* | bgxl*) 14006 # IBM XL 8.0 on PPC, with GNU ld 14007 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14008 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14009 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14010 if test yes = "$supports_anon_versioning"; then 14011 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14012 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14013 echo "local: *; };" >> $output_objdir/$libname.ver~ 14014 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14015 fi 14016 ;; 14017 *) 14018 case `$CC -V 2>&1 | sed 5q` in 14019 *Sun\ C*) 14020 # Sun C++ 5.9 14021 no_undefined_flag_CXX=' -zdefs' 14022 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14023 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' 14024 hardcode_libdir_flag_spec_CXX='-R$libdir' 14025 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' 14026 compiler_needs_object_CXX=yes 14027 14028 # Not sure whether something based on 14029 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14030 # would be better. 14031 output_verbose_link_cmd='func_echo_all' 14032 14033 # Archives containing C++ object files must be created using 14034 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14035 # necessary to make sure instantiated templates are included 14036 # in the archive. 14037 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14038 ;; 14039 esac 14040 ;; 14041 esac 14042 ;; 14043 14044 lynxos*) 14045 # FIXME: insert proper C++ library support 14046 ld_shlibs_CXX=no 14047 ;; 14048 14049 m88k*) 14050 # FIXME: insert proper C++ library support 14051 ld_shlibs_CXX=no 14052 ;; 14053 14054 mvs*) 14055 case $cc_basename in 14056 cxx*) 14057 # FIXME: insert proper C++ library support 14058 ld_shlibs_CXX=no 14059 ;; 14060 *) 14061 # FIXME: insert proper C++ library support 14062 ld_shlibs_CXX=no 14063 ;; 14064 esac 14065 ;; 14066 14067 netbsd*) 14068 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14069 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14070 wlarc= 14071 hardcode_libdir_flag_spec_CXX='-R$libdir' 14072 hardcode_direct_CXX=yes 14073 hardcode_shlibpath_var_CXX=no 14074 fi 14075 # Workaround some broken pre-1.5 toolchains 14076 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14077 ;; 14078 14079 *nto* | *qnx*) 14080 ld_shlibs_CXX=yes 14081 ;; 14082 14083 openbsd* | bitrig*) 14084 if test -f /usr/libexec/ld.so; then 14085 hardcode_direct_CXX=yes 14086 hardcode_shlibpath_var_CXX=no 14087 hardcode_direct_absolute_CXX=yes 14088 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14089 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14090 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14091 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14092 export_dynamic_flag_spec_CXX='$wl-E' 14093 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14094 fi 14095 output_verbose_link_cmd=func_echo_all 14096 else 14097 ld_shlibs_CXX=no 14098 fi 14099 ;; 14100 14101 osf3* | osf4* | osf5*) 14102 case $cc_basename in 14103 KCC*) 14104 # Kuck and Associates, Inc. (KAI) C++ Compiler 14105 14106 # KCC will only create a shared library if the output file 14107 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14108 # to its proper name (with version) after linking. 14109 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' 14110 14111 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14112 hardcode_libdir_separator_CXX=: 14113 14114 # Archives containing C++ object files must be created using 14115 # the KAI C++ compiler. 14116 case $host in 14117 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14118 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14119 esac 14120 ;; 14121 RCC*) 14122 # Rational C++ 2.4.1 14123 # FIXME: insert proper C++ library support 14124 ld_shlibs_CXX=no 14125 ;; 14126 cxx*) 14127 case $host in 14128 osf3*) 14129 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14130 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' 14131 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14132 ;; 14133 *) 14134 allow_undefined_flag_CXX=' -expect_unresolved \*' 14135 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' 14136 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14137 echo "-hidden">> $lib.exp~ 14138 $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~ 14139 $RM $lib.exp' 14140 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14141 ;; 14142 esac 14143 14144 hardcode_libdir_separator_CXX=: 14145 14146 # Commands to make compiler produce verbose output that lists 14147 # what "hidden" libraries, object files and flags are used when 14148 # linking a shared library. 14149 # 14150 # There doesn't appear to be a way to prevent this compiler from 14151 # explicitly linking system object files so we need to strip them 14152 # from the output so that they don't get included in the library 14153 # dependencies. 14154 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"' 14155 ;; 14156 *) 14157 if test yes,no = "$GXX,$with_gnu_ld"; then 14158 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14159 case $host in 14160 osf3*) 14161 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' 14162 ;; 14163 *) 14164 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' 14165 ;; 14166 esac 14167 14168 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14169 hardcode_libdir_separator_CXX=: 14170 14171 # Commands to make compiler produce verbose output that lists 14172 # what "hidden" libraries, object files and flags are used when 14173 # linking a shared library. 14174 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 14175 14176 else 14177 # FIXME: insert proper C++ library support 14178 ld_shlibs_CXX=no 14179 fi 14180 ;; 14181 esac 14182 ;; 14183 14184 psos*) 14185 # FIXME: insert proper C++ library support 14186 ld_shlibs_CXX=no 14187 ;; 14188 14189 sunos4*) 14190 case $cc_basename in 14191 CC*) 14192 # Sun C++ 4.x 14193 # FIXME: insert proper C++ library support 14194 ld_shlibs_CXX=no 14195 ;; 14196 lcc*) 14197 # Lucid 14198 # FIXME: insert proper C++ library support 14199 ld_shlibs_CXX=no 14200 ;; 14201 *) 14202 # FIXME: insert proper C++ library support 14203 ld_shlibs_CXX=no 14204 ;; 14205 esac 14206 ;; 14207 14208 solaris*) 14209 case $cc_basename in 14210 CC* | sunCC*) 14211 # Sun C++ 4.2, 5.x and Centerline C++ 14212 archive_cmds_need_lc_CXX=yes 14213 no_undefined_flag_CXX=' -zdefs' 14214 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14215 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14216 $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' 14217 14218 hardcode_libdir_flag_spec_CXX='-R$libdir' 14219 hardcode_shlibpath_var_CXX=no 14220 case $host_os in 14221 solaris2.[0-5] | solaris2.[0-5].*) ;; 14222 *) 14223 # The compiler driver will combine and reorder linker options, 14224 # but understands '-z linker_flag'. 14225 # Supported since Solaris 2.6 (maybe 2.5.1?) 14226 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14227 ;; 14228 esac 14229 link_all_deplibs_CXX=yes 14230 14231 output_verbose_link_cmd='func_echo_all' 14232 14233 # Archives containing C++ object files must be created using 14234 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14235 # necessary to make sure instantiated templates are included 14236 # in the archive. 14237 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14238 ;; 14239 gcx*) 14240 # Green Hills C++ Compiler 14241 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14242 14243 # The C++ compiler must be used to create the archive. 14244 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14245 ;; 14246 *) 14247 # GNU C++ compiler with Solaris linker 14248 if test yes,no = "$GXX,$with_gnu_ld"; then 14249 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14250 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14251 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14252 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14253 $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' 14254 14255 # Commands to make compiler produce verbose output that lists 14256 # what "hidden" libraries, object files and flags are used when 14257 # linking a shared library. 14258 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 14259 else 14260 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14261 # platform. 14262 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14263 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14264 $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' 14265 14266 # Commands to make compiler produce verbose output that lists 14267 # what "hidden" libraries, object files and flags are used when 14268 # linking a shared library. 14269 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"' 14270 fi 14271 14272 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14273 case $host_os in 14274 solaris2.[0-5] | solaris2.[0-5].*) ;; 14275 *) 14276 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14277 ;; 14278 esac 14279 fi 14280 ;; 14281 esac 14282 ;; 14283 14284 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14285 no_undefined_flag_CXX='$wl-z,text' 14286 archive_cmds_need_lc_CXX=no 14287 hardcode_shlibpath_var_CXX=no 14288 runpath_var='LD_RUN_PATH' 14289 14290 case $cc_basename in 14291 CC*) 14292 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14293 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14294 ;; 14295 *) 14296 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14297 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14298 ;; 14299 esac 14300 ;; 14301 14302 sysv5* | sco3.2v5* | sco5v6*) 14303 # Note: We CANNOT use -z defs as we might desire, because we do not 14304 # link with -lc, and that would cause any symbols used from libc to 14305 # always be unresolved, which means just about no library would 14306 # ever link correctly. If we're not using GNU ld we use -z text 14307 # though, which does catch some bad symbols but isn't as heavy-handed 14308 # as -z defs. 14309 no_undefined_flag_CXX='$wl-z,text' 14310 allow_undefined_flag_CXX='$wl-z,nodefs' 14311 archive_cmds_need_lc_CXX=no 14312 hardcode_shlibpath_var_CXX=no 14313 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14314 hardcode_libdir_separator_CXX=':' 14315 link_all_deplibs_CXX=yes 14316 export_dynamic_flag_spec_CXX='$wl-Bexport' 14317 runpath_var='LD_RUN_PATH' 14318 14319 case $cc_basename in 14320 CC*) 14321 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14322 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14323 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14324 '"$old_archive_cmds_CXX" 14325 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14326 '"$reload_cmds_CXX" 14327 ;; 14328 *) 14329 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14330 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14331 ;; 14332 esac 14333 ;; 14334 14335 tandem*) 14336 case $cc_basename in 14337 NCC*) 14338 # NonStop-UX NCC 3.20 14339 # FIXME: insert proper C++ library support 14340 ld_shlibs_CXX=no 14341 ;; 14342 *) 14343 # FIXME: insert proper C++ library support 14344 ld_shlibs_CXX=no 14345 ;; 14346 esac 14347 ;; 14348 14349 vxworks*) 14350 # FIXME: insert proper C++ library support 14351 ld_shlibs_CXX=no 14352 ;; 14353 14354 *) 14355 # FIXME: insert proper C++ library support 14356 ld_shlibs_CXX=no 14357 ;; 14358 esac 14359 14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14361$as_echo "$ld_shlibs_CXX" >&6; } 14362 test no = "$ld_shlibs_CXX" && can_build_shared=no 14363 14364 GCC_CXX=$GXX 14365 LD_CXX=$LD 14366 14367 ## CAVEAT EMPTOR: 14368 ## There is no encapsulation within the following macros, do not change 14369 ## the running order or otherwise move them around unless you know exactly 14370 ## what you are doing... 14371 # Dependencies to place before and after the object being linked: 14372predep_objects_CXX= 14373postdep_objects_CXX= 14374predeps_CXX= 14375postdeps_CXX= 14376compiler_lib_search_path_CXX= 14377 14378cat > conftest.$ac_ext <<_LT_EOF 14379class Foo 14380{ 14381public: 14382 Foo (void) { a = 0; } 14383private: 14384 int a; 14385}; 14386_LT_EOF 14387 14388 14389_lt_libdeps_save_CFLAGS=$CFLAGS 14390case "$CC $CFLAGS " in #( 14391*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14392*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14393*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14394esac 14395 14396if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14397 (eval $ac_compile) 2>&5 14398 ac_status=$? 14399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14400 test $ac_status = 0; }; then 14401 # Parse the compiler output and extract the necessary 14402 # objects, libraries and library flags. 14403 14404 # Sentinel used to keep track of whether or not we are before 14405 # the conftest object file. 14406 pre_test_object_deps_done=no 14407 14408 for p in `eval "$output_verbose_link_cmd"`; do 14409 case $prev$p in 14410 14411 -L* | -R* | -l*) 14412 # Some compilers place space between "-{L,R}" and the path. 14413 # Remove the space. 14414 if test x-L = "$p" || 14415 test x-R = "$p"; then 14416 prev=$p 14417 continue 14418 fi 14419 14420 # Expand the sysroot to ease extracting the directories later. 14421 if test -z "$prev"; then 14422 case $p in 14423 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14424 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14425 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14426 esac 14427 fi 14428 case $p in 14429 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14430 esac 14431 if test no = "$pre_test_object_deps_done"; then 14432 case $prev in 14433 -L | -R) 14434 # Internal compiler library paths should come after those 14435 # provided the user. The postdeps already come after the 14436 # user supplied libs so there is no need to process them. 14437 if test -z "$compiler_lib_search_path_CXX"; then 14438 compiler_lib_search_path_CXX=$prev$p 14439 else 14440 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 14441 fi 14442 ;; 14443 # The "-l" case would never come before the object being 14444 # linked, so don't bother handling this case. 14445 esac 14446 else 14447 if test -z "$postdeps_CXX"; then 14448 postdeps_CXX=$prev$p 14449 else 14450 postdeps_CXX="${postdeps_CXX} $prev$p" 14451 fi 14452 fi 14453 prev= 14454 ;; 14455 14456 *.lto.$objext) ;; # Ignore GCC LTO objects 14457 *.$objext) 14458 # This assumes that the test object file only shows up 14459 # once in the compiler output. 14460 if test "$p" = "conftest.$objext"; then 14461 pre_test_object_deps_done=yes 14462 continue 14463 fi 14464 14465 if test no = "$pre_test_object_deps_done"; then 14466 if test -z "$predep_objects_CXX"; then 14467 predep_objects_CXX=$p 14468 else 14469 predep_objects_CXX="$predep_objects_CXX $p" 14470 fi 14471 else 14472 if test -z "$postdep_objects_CXX"; then 14473 postdep_objects_CXX=$p 14474 else 14475 postdep_objects_CXX="$postdep_objects_CXX $p" 14476 fi 14477 fi 14478 ;; 14479 14480 *) ;; # Ignore the rest. 14481 14482 esac 14483 done 14484 14485 # Clean up. 14486 rm -f a.out a.exe 14487else 14488 echo "libtool.m4: error: problem compiling CXX test program" 14489fi 14490 14491$RM -f confest.$objext 14492CFLAGS=$_lt_libdeps_save_CFLAGS 14493 14494# PORTME: override above test on systems where it is broken 14495case $host_os in 14496interix[3-9]*) 14497 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14498 # hack all around it, let's just trust "g++" to DTRT. 14499 predep_objects_CXX= 14500 postdep_objects_CXX= 14501 postdeps_CXX= 14502 ;; 14503esac 14504 14505 14506case " $postdeps_CXX " in 14507*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14508esac 14509 compiler_lib_search_dirs_CXX= 14510if test -n "${compiler_lib_search_path_CXX}"; then 14511 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 14512fi 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 lt_prog_compiler_wl_CXX= 14545lt_prog_compiler_pic_CXX= 14546lt_prog_compiler_static_CXX= 14547 14548 14549 # C++ specific cases for pic, static, wl, etc. 14550 if test yes = "$GXX"; then 14551 lt_prog_compiler_wl_CXX='-Wl,' 14552 lt_prog_compiler_static_CXX='-static' 14553 14554 case $host_os in 14555 aix*) 14556 # All AIX code is PIC. 14557 if test ia64 = "$host_cpu"; then 14558 # AIX 5 now supports IA64 processor 14559 lt_prog_compiler_static_CXX='-Bstatic' 14560 fi 14561 lt_prog_compiler_pic_CXX='-fPIC' 14562 ;; 14563 14564 amigaos*) 14565 case $host_cpu in 14566 powerpc) 14567 # see comment about AmigaOS4 .so support 14568 lt_prog_compiler_pic_CXX='-fPIC' 14569 ;; 14570 m68k) 14571 # FIXME: we need at least 68020 code to build shared libraries, but 14572 # adding the '-m68020' flag to GCC prevents building anything better, 14573 # like '-m68040'. 14574 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 14575 ;; 14576 esac 14577 ;; 14578 14579 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14580 # PIC is the default for these OSes. 14581 ;; 14582 mingw* | cygwin* | os2* | pw32* | cegcc*) 14583 # This hack is so that the source file can tell whether it is being 14584 # built for inclusion in a dll (and should export symbols for example). 14585 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14586 # (--disable-auto-import) libraries 14587 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14588 case $host_os in 14589 os2*) 14590 lt_prog_compiler_static_CXX='$wl-static' 14591 ;; 14592 esac 14593 ;; 14594 darwin* | rhapsody*) 14595 # PIC is the default on this platform 14596 # Common symbols not allowed in MH_DYLIB files 14597 lt_prog_compiler_pic_CXX='-fno-common' 14598 ;; 14599 *djgpp*) 14600 # DJGPP does not support shared libraries at all 14601 lt_prog_compiler_pic_CXX= 14602 ;; 14603 haiku*) 14604 # PIC is the default for Haiku. 14605 # The "-static" flag exists, but is broken. 14606 lt_prog_compiler_static_CXX= 14607 ;; 14608 interix[3-9]*) 14609 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14610 # Instead, we relocate shared libraries at runtime. 14611 ;; 14612 sysv4*MP*) 14613 if test -d /usr/nec; then 14614 lt_prog_compiler_pic_CXX=-Kconform_pic 14615 fi 14616 ;; 14617 hpux*) 14618 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14619 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14620 # sets the default TLS model and affects inlining. 14621 case $host_cpu in 14622 hppa*64*) 14623 ;; 14624 *) 14625 lt_prog_compiler_pic_CXX='-fPIC' 14626 ;; 14627 esac 14628 ;; 14629 *qnx* | *nto*) 14630 # QNX uses GNU C++, but need to define -shared option too, otherwise 14631 # it will coredump. 14632 lt_prog_compiler_pic_CXX='-fPIC -shared' 14633 ;; 14634 *) 14635 lt_prog_compiler_pic_CXX='-fPIC' 14636 ;; 14637 esac 14638 else 14639 case $host_os in 14640 aix[4-9]*) 14641 # All AIX code is PIC. 14642 if test ia64 = "$host_cpu"; then 14643 # AIX 5 now supports IA64 processor 14644 lt_prog_compiler_static_CXX='-Bstatic' 14645 else 14646 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 14647 fi 14648 ;; 14649 chorus*) 14650 case $cc_basename in 14651 cxch68*) 14652 # Green Hills C++ Compiler 14653 # _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" 14654 ;; 14655 esac 14656 ;; 14657 mingw* | cygwin* | os2* | pw32* | cegcc*) 14658 # This hack is so that the source file can tell whether it is being 14659 # built for inclusion in a dll (and should export symbols for example). 14660 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 14661 ;; 14662 dgux*) 14663 case $cc_basename in 14664 ec++*) 14665 lt_prog_compiler_pic_CXX='-KPIC' 14666 ;; 14667 ghcx*) 14668 # Green Hills C++ Compiler 14669 lt_prog_compiler_pic_CXX='-pic' 14670 ;; 14671 *) 14672 ;; 14673 esac 14674 ;; 14675 freebsd* | dragonfly*) 14676 # FreeBSD uses GNU C++ 14677 ;; 14678 hpux9* | hpux10* | hpux11*) 14679 case $cc_basename in 14680 CC*) 14681 lt_prog_compiler_wl_CXX='-Wl,' 14682 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14683 if test ia64 != "$host_cpu"; then 14684 lt_prog_compiler_pic_CXX='+Z' 14685 fi 14686 ;; 14687 aCC*) 14688 lt_prog_compiler_wl_CXX='-Wl,' 14689 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 14690 case $host_cpu in 14691 hppa*64*|ia64*) 14692 # +Z the default 14693 ;; 14694 *) 14695 lt_prog_compiler_pic_CXX='+Z' 14696 ;; 14697 esac 14698 ;; 14699 *) 14700 ;; 14701 esac 14702 ;; 14703 interix*) 14704 # This is c89, which is MS Visual C++ (no shared libs) 14705 # Anyone wants to do a port? 14706 ;; 14707 irix5* | irix6* | nonstopux*) 14708 case $cc_basename in 14709 CC*) 14710 lt_prog_compiler_wl_CXX='-Wl,' 14711 lt_prog_compiler_static_CXX='-non_shared' 14712 # CC pic flag -KPIC is the default. 14713 ;; 14714 *) 14715 ;; 14716 esac 14717 ;; 14718 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14719 case $cc_basename in 14720 KCC*) 14721 # KAI C++ Compiler 14722 lt_prog_compiler_wl_CXX='--backend -Wl,' 14723 lt_prog_compiler_pic_CXX='-fPIC' 14724 ;; 14725 ecpc* ) 14726 # old Intel C++ for x86_64, which still supported -KPIC. 14727 lt_prog_compiler_wl_CXX='-Wl,' 14728 lt_prog_compiler_pic_CXX='-KPIC' 14729 lt_prog_compiler_static_CXX='-static' 14730 ;; 14731 icpc* ) 14732 # Intel C++, used to be incompatible with GCC. 14733 # ICC 10 doesn't accept -KPIC any more. 14734 lt_prog_compiler_wl_CXX='-Wl,' 14735 lt_prog_compiler_pic_CXX='-fPIC' 14736 lt_prog_compiler_static_CXX='-static' 14737 ;; 14738 pgCC* | pgcpp*) 14739 # Portland Group C++ compiler 14740 lt_prog_compiler_wl_CXX='-Wl,' 14741 lt_prog_compiler_pic_CXX='-fpic' 14742 lt_prog_compiler_static_CXX='-Bstatic' 14743 ;; 14744 cxx*) 14745 # Compaq C++ 14746 # Make sure the PIC flag is empty. It appears that all Alpha 14747 # Linux and Compaq Tru64 Unix objects are PIC. 14748 lt_prog_compiler_pic_CXX= 14749 lt_prog_compiler_static_CXX='-non_shared' 14750 ;; 14751 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 14752 # IBM XL 8.0, 9.0 on PPC and BlueGene 14753 lt_prog_compiler_wl_CXX='-Wl,' 14754 lt_prog_compiler_pic_CXX='-qpic' 14755 lt_prog_compiler_static_CXX='-qstaticlink' 14756 ;; 14757 *) 14758 case `$CC -V 2>&1 | sed 5q` in 14759 *Sun\ C*) 14760 # Sun C++ 5.9 14761 lt_prog_compiler_pic_CXX='-KPIC' 14762 lt_prog_compiler_static_CXX='-Bstatic' 14763 lt_prog_compiler_wl_CXX='-Qoption ld ' 14764 ;; 14765 esac 14766 ;; 14767 esac 14768 ;; 14769 lynxos*) 14770 ;; 14771 m88k*) 14772 ;; 14773 mvs*) 14774 case $cc_basename in 14775 cxx*) 14776 lt_prog_compiler_pic_CXX='-W c,exportall' 14777 ;; 14778 *) 14779 ;; 14780 esac 14781 ;; 14782 netbsd* | netbsdelf*-gnu) 14783 ;; 14784 *qnx* | *nto*) 14785 # QNX uses GNU C++, but need to define -shared option too, otherwise 14786 # it will coredump. 14787 lt_prog_compiler_pic_CXX='-fPIC -shared' 14788 ;; 14789 osf3* | osf4* | osf5*) 14790 case $cc_basename in 14791 KCC*) 14792 lt_prog_compiler_wl_CXX='--backend -Wl,' 14793 ;; 14794 RCC*) 14795 # Rational C++ 2.4.1 14796 lt_prog_compiler_pic_CXX='-pic' 14797 ;; 14798 cxx*) 14799 # Digital/Compaq C++ 14800 lt_prog_compiler_wl_CXX='-Wl,' 14801 # Make sure the PIC flag is empty. It appears that all Alpha 14802 # Linux and Compaq Tru64 Unix objects are PIC. 14803 lt_prog_compiler_pic_CXX= 14804 lt_prog_compiler_static_CXX='-non_shared' 14805 ;; 14806 *) 14807 ;; 14808 esac 14809 ;; 14810 psos*) 14811 ;; 14812 solaris*) 14813 case $cc_basename in 14814 CC* | sunCC*) 14815 # Sun C++ 4.2, 5.x and Centerline C++ 14816 lt_prog_compiler_pic_CXX='-KPIC' 14817 lt_prog_compiler_static_CXX='-Bstatic' 14818 lt_prog_compiler_wl_CXX='-Qoption ld ' 14819 ;; 14820 gcx*) 14821 # Green Hills C++ Compiler 14822 lt_prog_compiler_pic_CXX='-PIC' 14823 ;; 14824 *) 14825 ;; 14826 esac 14827 ;; 14828 sunos4*) 14829 case $cc_basename in 14830 CC*) 14831 # Sun C++ 4.x 14832 lt_prog_compiler_pic_CXX='-pic' 14833 lt_prog_compiler_static_CXX='-Bstatic' 14834 ;; 14835 lcc*) 14836 # Lucid 14837 lt_prog_compiler_pic_CXX='-pic' 14838 ;; 14839 *) 14840 ;; 14841 esac 14842 ;; 14843 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14844 case $cc_basename in 14845 CC*) 14846 lt_prog_compiler_wl_CXX='-Wl,' 14847 lt_prog_compiler_pic_CXX='-KPIC' 14848 lt_prog_compiler_static_CXX='-Bstatic' 14849 ;; 14850 esac 14851 ;; 14852 tandem*) 14853 case $cc_basename in 14854 NCC*) 14855 # NonStop-UX NCC 3.20 14856 lt_prog_compiler_pic_CXX='-KPIC' 14857 ;; 14858 *) 14859 ;; 14860 esac 14861 ;; 14862 vxworks*) 14863 ;; 14864 *) 14865 lt_prog_compiler_can_build_shared_CXX=no 14866 ;; 14867 esac 14868 fi 14869 14870case $host_os in 14871 # For platforms that do not support PIC, -DPIC is meaningless: 14872 *djgpp*) 14873 lt_prog_compiler_pic_CXX= 14874 ;; 14875 *) 14876 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 14877 ;; 14878esac 14879 14880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14881$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14882if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 14883 $as_echo_n "(cached) " >&6 14884else 14885 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 14886fi 14887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 14888$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 14889lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 14890 14891# 14892# Check to make sure the PIC flag actually works. 14893# 14894if test -n "$lt_prog_compiler_pic_CXX"; then 14895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 14896$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 14897if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 14898 $as_echo_n "(cached) " >&6 14899else 14900 lt_cv_prog_compiler_pic_works_CXX=no 14901 ac_outfile=conftest.$ac_objext 14902 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14903 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 14904 # Insert the option either (1) after the last *FLAGS variable, or 14905 # (2) before a word containing "conftest.", or (3) at the end. 14906 # Note that $ac_compile itself does not contain backslashes and begins 14907 # with a dollar sign (not a hyphen), so the echo should work correctly. 14908 # The option is referenced via a variable to avoid confusing sed. 14909 lt_compile=`echo "$ac_compile" | $SED \ 14910 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14912 -e 's:$: $lt_compiler_flag:'` 14913 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14914 (eval "$lt_compile" 2>conftest.err) 14915 ac_status=$? 14916 cat conftest.err >&5 14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14918 if (exit $ac_status) && test -s "$ac_outfile"; then 14919 # The compiler can only warn and ignore the option if not recognized 14920 # So say no if there are warnings other than the usual output. 14921 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14922 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14923 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14924 lt_cv_prog_compiler_pic_works_CXX=yes 14925 fi 14926 fi 14927 $RM conftest* 14928 14929fi 14930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 14931$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 14932 14933if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 14934 case $lt_prog_compiler_pic_CXX in 14935 "" | " "*) ;; 14936 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 14937 esac 14938else 14939 lt_prog_compiler_pic_CXX= 14940 lt_prog_compiler_can_build_shared_CXX=no 14941fi 14942 14943fi 14944 14945 14946 14947 14948 14949# 14950# Check to make sure the static flag actually works. 14951# 14952wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 14953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14954$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14955if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 14956 $as_echo_n "(cached) " >&6 14957else 14958 lt_cv_prog_compiler_static_works_CXX=no 14959 save_LDFLAGS=$LDFLAGS 14960 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14961 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14962 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14963 # The linker can only warn and ignore the option if not recognized 14964 # So say no if there are warnings 14965 if test -s conftest.err; then 14966 # Append any errors to the config.log. 14967 cat conftest.err 1>&5 14968 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14970 if diff conftest.exp conftest.er2 >/dev/null; then 14971 lt_cv_prog_compiler_static_works_CXX=yes 14972 fi 14973 else 14974 lt_cv_prog_compiler_static_works_CXX=yes 14975 fi 14976 fi 14977 $RM -r conftest* 14978 LDFLAGS=$save_LDFLAGS 14979 14980fi 14981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 14982$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 14983 14984if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 14985 : 14986else 14987 lt_prog_compiler_static_CXX= 14988fi 14989 14990 14991 14992 14993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14994$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14995if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 14996 $as_echo_n "(cached) " >&6 14997else 14998 lt_cv_prog_compiler_c_o_CXX=no 14999 $RM -r conftest 2>/dev/null 15000 mkdir conftest 15001 cd conftest 15002 mkdir out 15003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15004 15005 lt_compiler_flag="-o out/conftest2.$ac_objext" 15006 # Insert the option either (1) after the last *FLAGS variable, or 15007 # (2) before a word containing "conftest.", or (3) at the end. 15008 # Note that $ac_compile itself does not contain backslashes and begins 15009 # with a dollar sign (not a hyphen), so the echo should work correctly. 15010 lt_compile=`echo "$ac_compile" | $SED \ 15011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15013 -e 's:$: $lt_compiler_flag:'` 15014 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15015 (eval "$lt_compile" 2>out/conftest.err) 15016 ac_status=$? 15017 cat out/conftest.err >&5 15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15019 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15020 then 15021 # The compiler can only warn and ignore the option if not recognized 15022 # So say no if there are warnings 15023 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15024 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15025 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15026 lt_cv_prog_compiler_c_o_CXX=yes 15027 fi 15028 fi 15029 chmod u+w . 2>&5 15030 $RM conftest* 15031 # SGI C++ compiler will create directory out/ii_files/ for 15032 # template instantiation 15033 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15034 $RM out/* && rmdir out 15035 cd .. 15036 $RM -r conftest 15037 $RM conftest* 15038 15039fi 15040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15041$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15042 15043 15044 15045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15046$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15047if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15048 $as_echo_n "(cached) " >&6 15049else 15050 lt_cv_prog_compiler_c_o_CXX=no 15051 $RM -r conftest 2>/dev/null 15052 mkdir conftest 15053 cd conftest 15054 mkdir out 15055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15056 15057 lt_compiler_flag="-o out/conftest2.$ac_objext" 15058 # Insert the option either (1) after the last *FLAGS variable, or 15059 # (2) before a word containing "conftest.", or (3) at the end. 15060 # Note that $ac_compile itself does not contain backslashes and begins 15061 # with a dollar sign (not a hyphen), so the echo should work correctly. 15062 lt_compile=`echo "$ac_compile" | $SED \ 15063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15065 -e 's:$: $lt_compiler_flag:'` 15066 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15067 (eval "$lt_compile" 2>out/conftest.err) 15068 ac_status=$? 15069 cat out/conftest.err >&5 15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15071 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15072 then 15073 # The compiler can only warn and ignore the option if not recognized 15074 # So say no if there are warnings 15075 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15076 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15077 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15078 lt_cv_prog_compiler_c_o_CXX=yes 15079 fi 15080 fi 15081 chmod u+w . 2>&5 15082 $RM conftest* 15083 # SGI C++ compiler will create directory out/ii_files/ for 15084 # template instantiation 15085 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15086 $RM out/* && rmdir out 15087 cd .. 15088 $RM -r conftest 15089 $RM conftest* 15090 15091fi 15092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15093$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15094 15095 15096 15097 15098hard_links=nottested 15099if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15100 # do not overwrite the value of need_locks provided by the user 15101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15102$as_echo_n "checking if we can lock with hard links... " >&6; } 15103 hard_links=yes 15104 $RM conftest* 15105 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15106 touch conftest.a 15107 ln conftest.a conftest.b 2>&5 || hard_links=no 15108 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15110$as_echo "$hard_links" >&6; } 15111 if test no = "$hard_links"; then 15112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15113$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15114 need_locks=warn 15115 fi 15116else 15117 need_locks=no 15118fi 15119 15120 15121 15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15123$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15124 15125 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15126 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15127 case $host_os in 15128 aix[4-9]*) 15129 # If we're using GNU nm, then we don't want the "-C" option. 15130 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15131 # Without the "-l" option, or with the "-B" option, AIX nm treats 15132 # weak defined symbols like other global defined symbols, whereas 15133 # GNU nm marks them as "W". 15134 # While the 'weak' keyword is ignored in the Export File, we need 15135 # it in the Import File for the 'aix-soname' feature, so we have 15136 # to replace the "-B" option with "-P" for AIX nm. 15137 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15138 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' 15139 else 15140 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 15141 fi 15142 ;; 15143 pw32*) 15144 export_symbols_cmds_CXX=$ltdll_cmds 15145 ;; 15146 cygwin* | mingw* | cegcc*) 15147 case $cc_basename in 15148 cl*) 15149 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15150 ;; 15151 *) 15152 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' 15153 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15154 ;; 15155 esac 15156 ;; 15157 linux* | k*bsd*-gnu | gnu*) 15158 link_all_deplibs_CXX=no 15159 ;; 15160 *) 15161 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15162 ;; 15163 esac 15164 15165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15166$as_echo "$ld_shlibs_CXX" >&6; } 15167test no = "$ld_shlibs_CXX" && can_build_shared=no 15168 15169with_gnu_ld_CXX=$with_gnu_ld 15170 15171 15172 15173 15174 15175 15176# 15177# Do we need to explicitly link libc? 15178# 15179case "x$archive_cmds_need_lc_CXX" in 15180x|xyes) 15181 # Assume -lc should be added 15182 archive_cmds_need_lc_CXX=yes 15183 15184 if test yes,yes = "$GCC,$enable_shared"; then 15185 case $archive_cmds_CXX in 15186 *'~'*) 15187 # FIXME: we may have to deal with multi-command sequences. 15188 ;; 15189 '$CC '*) 15190 # Test whether the compiler implicitly links with -lc since on some 15191 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15192 # to ld, don't add -lc before -lgcc. 15193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15194$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15195if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15196 $as_echo_n "(cached) " >&6 15197else 15198 $RM conftest* 15199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15200 15201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15202 (eval $ac_compile) 2>&5 15203 ac_status=$? 15204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15205 test $ac_status = 0; } 2>conftest.err; then 15206 soname=conftest 15207 lib=conftest 15208 libobjs=conftest.$ac_objext 15209 deplibs= 15210 wl=$lt_prog_compiler_wl_CXX 15211 pic_flag=$lt_prog_compiler_pic_CXX 15212 compiler_flags=-v 15213 linker_flags=-v 15214 verstring= 15215 output_objdir=. 15216 libname=conftest 15217 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15218 allow_undefined_flag_CXX= 15219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15220 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15221 ac_status=$? 15222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15223 test $ac_status = 0; } 15224 then 15225 lt_cv_archive_cmds_need_lc_CXX=no 15226 else 15227 lt_cv_archive_cmds_need_lc_CXX=yes 15228 fi 15229 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15230 else 15231 cat conftest.err 1>&5 15232 fi 15233 $RM conftest* 15234 15235fi 15236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15237$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15238 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15239 ;; 15240 esac 15241 fi 15242 ;; 15243esac 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15307$as_echo_n "checking dynamic linker characteristics... " >&6; } 15308 15309library_names_spec= 15310libname_spec='lib$name' 15311soname_spec= 15312shrext_cmds=.so 15313postinstall_cmds= 15314postuninstall_cmds= 15315finish_cmds= 15316finish_eval= 15317shlibpath_var= 15318shlibpath_overrides_runpath=unknown 15319version_type=none 15320dynamic_linker="$host_os ld.so" 15321sys_lib_dlsearch_path_spec="/lib /usr/lib" 15322need_lib_prefix=unknown 15323hardcode_into_libs=no 15324 15325# when you set need_version to no, make sure it does not cause -set_version 15326# flags to be left without arguments 15327need_version=unknown 15328 15329 15330 15331case $host_os in 15332aix3*) 15333 version_type=linux # correct to gnu/linux during the next big refactor 15334 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15335 shlibpath_var=LIBPATH 15336 15337 # AIX 3 has no versioning support, so we append a major version to the name. 15338 soname_spec='$libname$release$shared_ext$major' 15339 ;; 15340 15341aix[4-9]*) 15342 version_type=linux # correct to gnu/linux during the next big refactor 15343 need_lib_prefix=no 15344 need_version=no 15345 hardcode_into_libs=yes 15346 if test ia64 = "$host_cpu"; then 15347 # AIX 5 supports IA64 15348 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 15349 shlibpath_var=LD_LIBRARY_PATH 15350 else 15351 # With GCC up to 2.95.x, collect2 would create an import file 15352 # for dependence libraries. The import file would start with 15353 # the line '#! .'. This would cause the generated library to 15354 # depend on '.', always an invalid library. This was fixed in 15355 # development snapshots of GCC prior to 3.0. 15356 case $host_os in 15357 aix4 | aix4.[01] | aix4.[01].*) 15358 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15359 echo ' yes ' 15360 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 15361 : 15362 else 15363 can_build_shared=no 15364 fi 15365 ;; 15366 esac 15367 # Using Import Files as archive members, it is possible to support 15368 # filename-based versioning of shared library archives on AIX. While 15369 # this would work for both with and without runtime linking, it will 15370 # prevent static linking of such archives. So we do filename-based 15371 # shared library versioning with .so extension only, which is used 15372 # when both runtime linking and shared linking is enabled. 15373 # Unfortunately, runtime linking may impact performance, so we do 15374 # not want this to be the default eventually. Also, we use the 15375 # versioned .so libs for executables only if there is the -brtl 15376 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 15377 # To allow for filename-based versioning support, we need to create 15378 # libNAME.so.V as an archive file, containing: 15379 # *) an Import File, referring to the versioned filename of the 15380 # archive as well as the shared archive member, telling the 15381 # bitwidth (32 or 64) of that shared object, and providing the 15382 # list of exported symbols of that shared object, eventually 15383 # decorated with the 'weak' keyword 15384 # *) the shared object with the F_LOADONLY flag set, to really avoid 15385 # it being seen by the linker. 15386 # At run time we better use the real file rather than another symlink, 15387 # but for link time we create the symlink libNAME.so -> libNAME.so.V 15388 15389 case $with_aix_soname,$aix_use_runtimelinking in 15390 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 15391 # soname into executable. Probably we can add versioning support to 15392 # collect2, so additional links can be useful in future. 15393 aix,yes) # traditional libtool 15394 dynamic_linker='AIX unversionable lib.so' 15395 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15396 # instead of lib<name>.a to let people know that these are not 15397 # typical AIX shared libraries. 15398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15399 ;; 15400 aix,no) # traditional AIX only 15401 dynamic_linker='AIX lib.a(lib.so.V)' 15402 # We preserve .a as extension for shared libraries through AIX4.2 15403 # and later when we are not doing run time linking. 15404 library_names_spec='$libname$release.a $libname.a' 15405 soname_spec='$libname$release$shared_ext$major' 15406 ;; 15407 svr4,*) # full svr4 only 15408 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 15409 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15410 # We do not specify a path in Import Files, so LIBPATH fires. 15411 shlibpath_overrides_runpath=yes 15412 ;; 15413 *,yes) # both, prefer svr4 15414 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 15415 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 15416 # unpreferred sharedlib libNAME.a needs extra handling 15417 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"' 15418 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"' 15419 # We do not specify a path in Import Files, so LIBPATH fires. 15420 shlibpath_overrides_runpath=yes 15421 ;; 15422 *,no) # both, prefer aix 15423 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 15424 library_names_spec='$libname$release.a $libname.a' 15425 soname_spec='$libname$release$shared_ext$major' 15426 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 15427 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)' 15428 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"' 15429 ;; 15430 esac 15431 shlibpath_var=LIBPATH 15432 fi 15433 ;; 15434 15435amigaos*) 15436 case $host_cpu in 15437 powerpc) 15438 # Since July 2007 AmigaOS4 officially supports .so libraries. 15439 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15441 ;; 15442 m68k) 15443 library_names_spec='$libname.ixlibrary $libname.a' 15444 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15445 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' 15446 ;; 15447 esac 15448 ;; 15449 15450beos*) 15451 library_names_spec='$libname$shared_ext' 15452 dynamic_linker="$host_os ld.so" 15453 shlibpath_var=LIBRARY_PATH 15454 ;; 15455 15456bsdi[45]*) 15457 version_type=linux # correct to gnu/linux during the next big refactor 15458 need_version=no 15459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15460 soname_spec='$libname$release$shared_ext$major' 15461 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15462 shlibpath_var=LD_LIBRARY_PATH 15463 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15464 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15465 # the default ld.so.conf also contains /usr/contrib/lib and 15466 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15467 # libtool to hard-code these into programs 15468 ;; 15469 15470cygwin* | mingw* | pw32* | cegcc*) 15471 version_type=windows 15472 shrext_cmds=.dll 15473 need_version=no 15474 need_lib_prefix=no 15475 15476 case $GCC,$cc_basename in 15477 yes,*) 15478 # gcc 15479 library_names_spec='$libname.dll.a' 15480 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15481 postinstall_cmds='base_file=`basename \$file`~ 15482 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15483 dldir=$destdir/`dirname \$dlpath`~ 15484 test -d \$dldir || mkdir -p \$dldir~ 15485 $install_prog $dir/$dlname \$dldir/$dlname~ 15486 chmod a+x \$dldir/$dlname~ 15487 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15488 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15489 fi' 15490 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15491 dlpath=$dir/\$dldll~ 15492 $RM \$dlpath' 15493 shlibpath_overrides_runpath=yes 15494 15495 case $host_os in 15496 cygwin*) 15497 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15498 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15499 15500 ;; 15501 mingw* | cegcc*) 15502 # MinGW DLLs use traditional 'lib' prefix 15503 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15504 ;; 15505 pw32*) 15506 # pw32 DLLs use 'pw' prefix rather than 'lib' 15507 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15508 ;; 15509 esac 15510 dynamic_linker='Win32 ld.exe' 15511 ;; 15512 15513 *,cl*) 15514 # Native MSVC 15515 libname_spec='$name' 15516 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 15517 library_names_spec='$libname.dll.lib' 15518 15519 case $build_os in 15520 mingw*) 15521 sys_lib_search_path_spec= 15522 lt_save_ifs=$IFS 15523 IFS=';' 15524 for lt_path in $LIB 15525 do 15526 IFS=$lt_save_ifs 15527 # Let DOS variable expansion print the short 8.3 style file name. 15528 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15529 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15530 done 15531 IFS=$lt_save_ifs 15532 # Convert to MSYS style. 15533 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15534 ;; 15535 cygwin*) 15536 # Convert to unix form, then to dos form, then back to unix form 15537 # but this time dos style (no spaces!) so that the unix form looks 15538 # like /cygdrive/c/PROGRA~1:/cygdr... 15539 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15540 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15541 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15542 ;; 15543 *) 15544 sys_lib_search_path_spec=$LIB 15545 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15546 # It is most probably a Windows format PATH. 15547 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15548 else 15549 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15550 fi 15551 # FIXME: find the short name or the path components, as spaces are 15552 # common. (e.g. "Program Files" -> "PROGRA~1") 15553 ;; 15554 esac 15555 15556 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15557 postinstall_cmds='base_file=`basename \$file`~ 15558 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 15559 dldir=$destdir/`dirname \$dlpath`~ 15560 test -d \$dldir || mkdir -p \$dldir~ 15561 $install_prog $dir/$dlname \$dldir/$dlname' 15562 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15563 dlpath=$dir/\$dldll~ 15564 $RM \$dlpath' 15565 shlibpath_overrides_runpath=yes 15566 dynamic_linker='Win32 link.exe' 15567 ;; 15568 15569 *) 15570 # Assume MSVC wrapper 15571 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 15572 dynamic_linker='Win32 ld.exe' 15573 ;; 15574 esac 15575 # FIXME: first we should search . and the directory the executable is in 15576 shlibpath_var=PATH 15577 ;; 15578 15579darwin* | rhapsody*) 15580 dynamic_linker="$host_os dyld" 15581 version_type=darwin 15582 need_lib_prefix=no 15583 need_version=no 15584 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 15585 soname_spec='$libname$release$major$shared_ext' 15586 shlibpath_overrides_runpath=yes 15587 shlibpath_var=DYLD_LIBRARY_PATH 15588 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15589 15590 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15591 ;; 15592 15593dgux*) 15594 version_type=linux # correct to gnu/linux during the next big refactor 15595 need_lib_prefix=no 15596 need_version=no 15597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15598 soname_spec='$libname$release$shared_ext$major' 15599 shlibpath_var=LD_LIBRARY_PATH 15600 ;; 15601 15602freebsd* | dragonfly*) 15603 # DragonFly does not have aout. When/if they implement a new 15604 # versioning mechanism, adjust this. 15605 if test -x /usr/bin/objformat; then 15606 objformat=`/usr/bin/objformat` 15607 else 15608 case $host_os in 15609 freebsd[23].*) objformat=aout ;; 15610 *) objformat=elf ;; 15611 esac 15612 fi 15613 version_type=freebsd-$objformat 15614 case $version_type in 15615 freebsd-elf*) 15616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15617 soname_spec='$libname$release$shared_ext$major' 15618 need_version=no 15619 need_lib_prefix=no 15620 ;; 15621 freebsd-*) 15622 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15623 need_version=yes 15624 ;; 15625 esac 15626 shlibpath_var=LD_LIBRARY_PATH 15627 case $host_os in 15628 freebsd2.*) 15629 shlibpath_overrides_runpath=yes 15630 ;; 15631 freebsd3.[01]* | freebsdelf3.[01]*) 15632 shlibpath_overrides_runpath=yes 15633 hardcode_into_libs=yes 15634 ;; 15635 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15636 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 15637 shlibpath_overrides_runpath=no 15638 hardcode_into_libs=yes 15639 ;; 15640 *) # from 4.6 on, and DragonFly 15641 shlibpath_overrides_runpath=yes 15642 hardcode_into_libs=yes 15643 ;; 15644 esac 15645 ;; 15646 15647haiku*) 15648 version_type=linux # correct to gnu/linux during the next big refactor 15649 need_lib_prefix=no 15650 need_version=no 15651 dynamic_linker="$host_os runtime_loader" 15652 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15653 soname_spec='$libname$release$shared_ext$major' 15654 shlibpath_var=LIBRARY_PATH 15655 shlibpath_overrides_runpath=no 15656 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 15657 hardcode_into_libs=yes 15658 ;; 15659 15660hpux9* | hpux10* | hpux11*) 15661 # Give a soname corresponding to the major version so that dld.sl refuses to 15662 # link against other versions. 15663 version_type=sunos 15664 need_lib_prefix=no 15665 need_version=no 15666 case $host_cpu in 15667 ia64*) 15668 shrext_cmds='.so' 15669 hardcode_into_libs=yes 15670 dynamic_linker="$host_os dld.so" 15671 shlibpath_var=LD_LIBRARY_PATH 15672 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15673 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15674 soname_spec='$libname$release$shared_ext$major' 15675 if test 32 = "$HPUX_IA64_MODE"; then 15676 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15677 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 15678 else 15679 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15680 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 15681 fi 15682 ;; 15683 hppa*64*) 15684 shrext_cmds='.sl' 15685 hardcode_into_libs=yes 15686 dynamic_linker="$host_os dld.sl" 15687 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15688 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15690 soname_spec='$libname$release$shared_ext$major' 15691 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15692 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15693 ;; 15694 *) 15695 shrext_cmds='.sl' 15696 dynamic_linker="$host_os dld.sl" 15697 shlibpath_var=SHLIB_PATH 15698 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15699 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15700 soname_spec='$libname$release$shared_ext$major' 15701 ;; 15702 esac 15703 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 15704 postinstall_cmds='chmod 555 $lib' 15705 # or fails outright, so override atomically: 15706 install_override_mode=555 15707 ;; 15708 15709interix[3-9]*) 15710 version_type=linux # correct to gnu/linux during the next big refactor 15711 need_lib_prefix=no 15712 need_version=no 15713 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15714 soname_spec='$libname$release$shared_ext$major' 15715 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15716 shlibpath_var=LD_LIBRARY_PATH 15717 shlibpath_overrides_runpath=no 15718 hardcode_into_libs=yes 15719 ;; 15720 15721irix5* | irix6* | nonstopux*) 15722 case $host_os in 15723 nonstopux*) version_type=nonstopux ;; 15724 *) 15725 if test yes = "$lt_cv_prog_gnu_ld"; then 15726 version_type=linux # correct to gnu/linux during the next big refactor 15727 else 15728 version_type=irix 15729 fi ;; 15730 esac 15731 need_lib_prefix=no 15732 need_version=no 15733 soname_spec='$libname$release$shared_ext$major' 15734 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 15735 case $host_os in 15736 irix5* | nonstopux*) 15737 libsuff= shlibsuff= 15738 ;; 15739 *) 15740 case $LD in # libtool.m4 will add one of these switches to LD 15741 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15742 libsuff= shlibsuff= libmagic=32-bit;; 15743 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15744 libsuff=32 shlibsuff=N32 libmagic=N32;; 15745 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15746 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15747 *) libsuff= shlibsuff= libmagic=never-match;; 15748 esac 15749 ;; 15750 esac 15751 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15752 shlibpath_overrides_runpath=no 15753 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 15754 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 15755 hardcode_into_libs=yes 15756 ;; 15757 15758# No shared lib support for Linux oldld, aout, or coff. 15759linux*oldld* | linux*aout* | linux*coff*) 15760 dynamic_linker=no 15761 ;; 15762 15763linux*android*) 15764 version_type=none # Android doesn't support versioned libraries. 15765 need_lib_prefix=no 15766 need_version=no 15767 library_names_spec='$libname$release$shared_ext' 15768 soname_spec='$libname$release$shared_ext' 15769 finish_cmds= 15770 shlibpath_var=LD_LIBRARY_PATH 15771 shlibpath_overrides_runpath=yes 15772 15773 # This implies no fast_install, which is unacceptable. 15774 # Some rework will be needed to allow for fast_install 15775 # before this can be enabled. 15776 hardcode_into_libs=yes 15777 15778 dynamic_linker='Android linker' 15779 # Don't embed -rpath directories since the linker doesn't support them. 15780 hardcode_libdir_flag_spec_CXX='-L$libdir' 15781 ;; 15782 15783# This must be glibc/ELF. 15784linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15785 version_type=linux # correct to gnu/linux during the next big refactor 15786 need_lib_prefix=no 15787 need_version=no 15788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15789 soname_spec='$libname$release$shared_ext$major' 15790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15791 shlibpath_var=LD_LIBRARY_PATH 15792 shlibpath_overrides_runpath=no 15793 15794 # Some binutils ld are patched to set DT_RUNPATH 15795 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 15796 $as_echo_n "(cached) " >&6 15797else 15798 lt_cv_shlibpath_overrides_runpath=no 15799 save_LDFLAGS=$LDFLAGS 15800 save_libdir=$libdir 15801 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 15802 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 15803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15804/* end confdefs.h. */ 15805 15806int 15807main () 15808{ 15809 15810 ; 15811 return 0; 15812} 15813_ACEOF 15814if ac_fn_cxx_try_link "$LINENO"; then : 15815 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 15816 lt_cv_shlibpath_overrides_runpath=yes 15817fi 15818fi 15819rm -f core conftest.err conftest.$ac_objext \ 15820 conftest$ac_exeext conftest.$ac_ext 15821 LDFLAGS=$save_LDFLAGS 15822 libdir=$save_libdir 15823 15824fi 15825 15826 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 15827 15828 # This implies no fast_install, which is unacceptable. 15829 # Some rework will be needed to allow for fast_install 15830 # before this can be enabled. 15831 hardcode_into_libs=yes 15832 15833 # Ideally, we could use ldconfig to report *all* directores which are 15834 # searched for libraries, however this is still not possible. Aside from not 15835 # being certain /sbin/ldconfig is available, command 15836 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 15837 # even though it is searched at run-time. Try to do the best guess by 15838 # appending ld.so.conf contents (and includes) to the search path. 15839 if test -f /etc/ld.so.conf; then 15840 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' ' '` 15841 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15842 fi 15843 15844 # We used to test for /lib/ld.so.1 and disable shared libraries on 15845 # powerpc, because MkLinux only supported shared libraries with the 15846 # GNU dynamic linker. Since this was broken with cross compilers, 15847 # most powerpc-linux boxes support dynamic linking these days and 15848 # people can always --disable-shared, the test was removed, and we 15849 # assume the GNU/Linux dynamic linker is in use. 15850 dynamic_linker='GNU/Linux ld.so' 15851 ;; 15852 15853netbsdelf*-gnu) 15854 version_type=linux 15855 need_lib_prefix=no 15856 need_version=no 15857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15858 soname_spec='${libname}${release}${shared_ext}$major' 15859 shlibpath_var=LD_LIBRARY_PATH 15860 shlibpath_overrides_runpath=no 15861 hardcode_into_libs=yes 15862 dynamic_linker='NetBSD ld.elf_so' 15863 ;; 15864 15865netbsd*) 15866 version_type=sunos 15867 need_lib_prefix=no 15868 need_version=no 15869 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15870 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15871 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15872 dynamic_linker='NetBSD (a.out) ld.so' 15873 else 15874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15875 soname_spec='$libname$release$shared_ext$major' 15876 dynamic_linker='NetBSD ld.elf_so' 15877 fi 15878 shlibpath_var=LD_LIBRARY_PATH 15879 shlibpath_overrides_runpath=yes 15880 hardcode_into_libs=yes 15881 ;; 15882 15883newsos6) 15884 version_type=linux # correct to gnu/linux during the next big refactor 15885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15886 shlibpath_var=LD_LIBRARY_PATH 15887 shlibpath_overrides_runpath=yes 15888 ;; 15889 15890*nto* | *qnx*) 15891 version_type=qnx 15892 need_lib_prefix=no 15893 need_version=no 15894 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15895 soname_spec='$libname$release$shared_ext$major' 15896 shlibpath_var=LD_LIBRARY_PATH 15897 shlibpath_overrides_runpath=no 15898 hardcode_into_libs=yes 15899 dynamic_linker='ldqnx.so' 15900 ;; 15901 15902openbsd* | bitrig*) 15903 version_type=sunos 15904 sys_lib_dlsearch_path_spec=/usr/lib 15905 need_lib_prefix=no 15906 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 15907 need_version=no 15908 else 15909 need_version=yes 15910 fi 15911 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15912 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15913 shlibpath_var=LD_LIBRARY_PATH 15914 shlibpath_overrides_runpath=yes 15915 ;; 15916 15917os2*) 15918 libname_spec='$name' 15919 version_type=windows 15920 shrext_cmds=.dll 15921 need_version=no 15922 need_lib_prefix=no 15923 # OS/2 can only load a DLL with a base name of 8 characters or less. 15924 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 15925 v=$($ECHO $release$versuffix | tr -d .-); 15926 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 15927 $ECHO $n$v`$shared_ext' 15928 library_names_spec='${libname}_dll.$libext' 15929 dynamic_linker='OS/2 ld.exe' 15930 shlibpath_var=BEGINLIBPATH 15931 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 15932 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15933 postinstall_cmds='base_file=`basename \$file`~ 15934 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 15935 dldir=$destdir/`dirname \$dlpath`~ 15936 test -d \$dldir || mkdir -p \$dldir~ 15937 $install_prog $dir/$dlname \$dldir/$dlname~ 15938 chmod a+x \$dldir/$dlname~ 15939 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15940 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15941 fi' 15942 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 15943 dlpath=$dir/\$dldll~ 15944 $RM \$dlpath' 15945 ;; 15946 15947osf3* | osf4* | osf5*) 15948 version_type=osf 15949 need_lib_prefix=no 15950 need_version=no 15951 soname_spec='$libname$release$shared_ext$major' 15952 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15953 shlibpath_var=LD_LIBRARY_PATH 15954 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15955 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15956 ;; 15957 15958rdos*) 15959 dynamic_linker=no 15960 ;; 15961 15962solaris*) 15963 version_type=linux # correct to gnu/linux during the next big refactor 15964 need_lib_prefix=no 15965 need_version=no 15966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15967 soname_spec='$libname$release$shared_ext$major' 15968 shlibpath_var=LD_LIBRARY_PATH 15969 shlibpath_overrides_runpath=yes 15970 hardcode_into_libs=yes 15971 # ldd complains unless libraries are executable 15972 postinstall_cmds='chmod +x $lib' 15973 ;; 15974 15975sunos4*) 15976 version_type=sunos 15977 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 15978 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15979 shlibpath_var=LD_LIBRARY_PATH 15980 shlibpath_overrides_runpath=yes 15981 if test yes = "$with_gnu_ld"; then 15982 need_lib_prefix=no 15983 fi 15984 need_version=yes 15985 ;; 15986 15987sysv4 | sysv4.3*) 15988 version_type=linux # correct to gnu/linux during the next big refactor 15989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 15990 soname_spec='$libname$release$shared_ext$major' 15991 shlibpath_var=LD_LIBRARY_PATH 15992 case $host_vendor in 15993 sni) 15994 shlibpath_overrides_runpath=no 15995 need_lib_prefix=no 15996 runpath_var=LD_RUN_PATH 15997 ;; 15998 siemens) 15999 need_lib_prefix=no 16000 ;; 16001 motorola) 16002 need_lib_prefix=no 16003 need_version=no 16004 shlibpath_overrides_runpath=no 16005 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16006 ;; 16007 esac 16008 ;; 16009 16010sysv4*MP*) 16011 if test -d /usr/nec; then 16012 version_type=linux # correct to gnu/linux during the next big refactor 16013 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16014 soname_spec='$libname$shared_ext.$major' 16015 shlibpath_var=LD_LIBRARY_PATH 16016 fi 16017 ;; 16018 16019sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16020 version_type=sco 16021 need_lib_prefix=no 16022 need_version=no 16023 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16024 soname_spec='$libname$release$shared_ext$major' 16025 shlibpath_var=LD_LIBRARY_PATH 16026 shlibpath_overrides_runpath=yes 16027 hardcode_into_libs=yes 16028 if test yes = "$with_gnu_ld"; then 16029 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16030 else 16031 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16032 case $host_os in 16033 sco3.2v5*) 16034 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16035 ;; 16036 esac 16037 fi 16038 sys_lib_dlsearch_path_spec='/usr/lib' 16039 ;; 16040 16041tpf*) 16042 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16043 version_type=linux # correct to gnu/linux during the next big refactor 16044 need_lib_prefix=no 16045 need_version=no 16046 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16047 shlibpath_var=LD_LIBRARY_PATH 16048 shlibpath_overrides_runpath=no 16049 hardcode_into_libs=yes 16050 ;; 16051 16052uts4*) 16053 version_type=linux # correct to gnu/linux during the next big refactor 16054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16055 soname_spec='$libname$release$shared_ext$major' 16056 shlibpath_var=LD_LIBRARY_PATH 16057 ;; 16058 16059*) 16060 dynamic_linker=no 16061 ;; 16062esac 16063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16064$as_echo "$dynamic_linker" >&6; } 16065test no = "$dynamic_linker" && can_build_shared=no 16066 16067variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16068if test yes = "$GCC"; then 16069 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16070fi 16071 16072if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16073 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16074fi 16075 16076if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16077 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16078fi 16079 16080# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16081configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16082 16083# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16084func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16085 16086# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16087configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16129$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16130hardcode_action_CXX= 16131if test -n "$hardcode_libdir_flag_spec_CXX" || 16132 test -n "$runpath_var_CXX" || 16133 test yes = "$hardcode_automatic_CXX"; then 16134 16135 # We can hardcode non-existent directories. 16136 if test no != "$hardcode_direct_CXX" && 16137 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16138 # have to relink, otherwise we might link with an installed library 16139 # when we should be linking with a yet-to-be-installed one 16140 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16141 test no != "$hardcode_minus_L_CXX"; then 16142 # Linking always hardcodes the temporary library directory. 16143 hardcode_action_CXX=relink 16144 else 16145 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16146 hardcode_action_CXX=immediate 16147 fi 16148else 16149 # We cannot hardcode anything, or else we can only hardcode existing 16150 # directories. 16151 hardcode_action_CXX=unsupported 16152fi 16153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16154$as_echo "$hardcode_action_CXX" >&6; } 16155 16156if test relink = "$hardcode_action_CXX" || 16157 test yes = "$inherit_rpath_CXX"; then 16158 # Fast installation is not supported 16159 enable_fast_install=no 16160elif test yes = "$shlibpath_overrides_runpath" || 16161 test no = "$enable_shared"; then 16162 # Fast installation is not necessary 16163 enable_fast_install=needless 16164fi 16165 16166 16167 16168 16169 16170 16171 16172 fi # test -n "$compiler" 16173 16174 CC=$lt_save_CC 16175 CFLAGS=$lt_save_CFLAGS 16176 LDCXX=$LD 16177 LD=$lt_save_LD 16178 GCC=$lt_save_GCC 16179 with_gnu_ld=$lt_save_with_gnu_ld 16180 lt_cv_path_LDCXX=$lt_cv_path_LD 16181 lt_cv_path_LD=$lt_save_path_LD 16182 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16183 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16184fi # test yes != "$_lt_caught_CXX_error" 16185 16186ac_ext=c 16187ac_cpp='$CPP $CPPFLAGS' 16188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16190ac_compiler_gnu=$ac_cv_c_compiler_gnu 16191 16192 16193 16194# Extract the first word of "pkg-config", so it can be a program name with args. 16195set dummy pkg-config; ac_word=$2 16196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16197$as_echo_n "checking for $ac_word... " >&6; } 16198if ${ac_cv_prog_pkg_config+:} false; then : 16199 $as_echo_n "(cached) " >&6 16200else 16201 if test -n "$pkg_config"; then 16202 ac_cv_prog_pkg_config="$pkg_config" # Let the user override the test. 16203else 16204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16205for as_dir in $PATH 16206do 16207 IFS=$as_save_IFS 16208 test -z "$as_dir" && as_dir=. 16209 for ac_exec_ext in '' $ac_executable_extensions; do 16210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16211 ac_cv_prog_pkg_config="yes" 16212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16213 break 2 16214 fi 16215done 16216 done 16217IFS=$as_save_IFS 16218 16219 test -z "$ac_cv_prog_pkg_config" && ac_cv_prog_pkg_config="no" 16220fi 16221fi 16222pkg_config=$ac_cv_prog_pkg_config 16223if test -n "$pkg_config"; then 16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config" >&5 16225$as_echo "$pkg_config" >&6; } 16226else 16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16228$as_echo "no" >&6; } 16229fi 16230 16231 16232if test X$pkg_config != Xyes ; then 16233 as_fn_error $? "pkg-config program needed and not found" "$LINENO" 5 16234fi 16235 16236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 16237$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 16238if ${ac_cv_lib_pthread_pthread_create+:} false; then : 16239 $as_echo_n "(cached) " >&6 16240else 16241 ac_check_lib_save_LIBS=$LIBS 16242LIBS="-lpthread $LIBS" 16243cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16244/* end confdefs.h. */ 16245 16246/* Override any GCC internal prototype to avoid an error. 16247 Use char because int might match the return type of a GCC 16248 builtin and then its argument prototype would still apply. */ 16249#ifdef __cplusplus 16250extern "C" 16251#endif 16252char pthread_create (); 16253int 16254main () 16255{ 16256return pthread_create (); 16257 ; 16258 return 0; 16259} 16260_ACEOF 16261if ac_fn_c_try_link "$LINENO"; then : 16262 ac_cv_lib_pthread_pthread_create=yes 16263else 16264 ac_cv_lib_pthread_pthread_create=no 16265fi 16266rm -f core conftest.err conftest.$ac_objext \ 16267 conftest$ac_exeext conftest.$ac_ext 16268LIBS=$ac_check_lib_save_LIBS 16269fi 16270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 16271$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 16272if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 16273 cat >>confdefs.h <<_ACEOF 16274#define HAVE_LIBPTHREAD 1 16275_ACEOF 16276 16277 LIBS="-lpthread $LIBS" 16278 16279fi 16280 16281 16282 16283 16284# 16285# There are 3 configuration files : 16286# 1) "./autoconfig.h" is auto-generated and used only internally during build 16287# (usually named "config.h" but conflicts with the file below) 16288# 2) "./src/inc/config.h" is static and contains some compile-time 16289# parameters. This file was previously in "./upnp/inc" but is no longer 16290# installed (contains internal definitions only). 16291# 3) "./inc/upnpconfig.h" is auto-generated and installed with the 16292# libraries : it contains information on the configuration of the 16293# installed libraries. 16294# 16295ac_config_headers="$ac_config_headers autoconfig.h inc/upnpconfig.h" 16296 16297 16298upnpmaj=`echo "$PACKAGE_VERSION" | sed 's/\..*//' ` 16299upnpmin=`echo "$PACKAGE_VERSION" | sed 's/^[^.]\.// ; s/[^0-9].*$//' ` 16300upnppatch=`echo "$PACKAGE_VERSION" | sed 's/^[^.]\.[^.]\.// ; s/[^0-9].*$//' ` 16301 16302cat >>confdefs.h <<_ACEOF 16303#define NPUPNP_VERSION_STRING "$PACKAGE_VERSION" 16304_ACEOF 16305 16306 16307cat >>confdefs.h <<_ACEOF 16308#define NPUPNP_VERSION_MAJOR $upnpmaj 16309_ACEOF 16310 16311 16312cat >>confdefs.h <<_ACEOF 16313#define NPUPNP_VERSION_MINOR $upnpmin 16314_ACEOF 16315 16316 16317cat >>confdefs.h <<_ACEOF 16318#define NPUPNP_VERSION_PATCH $upnppatch 16319_ACEOF 16320 16321 16322 16323 16324# Check whether --enable-debug was given. 16325if test "${enable_debug+set}" = set; then : 16326 enableval=$enable_debug; 16327fi 16328 16329if test "x$enable_debug" != xno ; then 16330 16331$as_echo "#define UPNP_HAVE_DEBUG 1" >>confdefs.h 16332 16333 16334$as_echo "#define DEBUG 1" >>confdefs.h 16335 16336else 16337 16338$as_echo "#define NDEBUG 1" >>confdefs.h 16339 16340fi 16341 if test x"$enable_debug" != xno; then 16342 ENABLE_DEBUG_TRUE= 16343 ENABLE_DEBUG_FALSE='#' 16344else 16345 ENABLE_DEBUG_TRUE='#' 16346 ENABLE_DEBUG_FALSE= 16347fi 16348 16349 16350# 16351# Check for libupnp subsets 16352# 16353# Check whether --enable-client was given. 16354if test "${enable_client+set}" = set; then : 16355 enableval=$enable_client; 16356fi 16357 16358if test "x$enable_client" != xno ; then 16359 16360$as_echo "#define UPNP_HAVE_CLIENT 1" >>confdefs.h 16361 16362fi 16363 16364# Check whether --enable-device was given. 16365if test "${enable_device+set}" = set; then : 16366 enableval=$enable_device; 16367fi 16368 16369if test "x$enable_device" != xno ; then 16370 16371$as_echo "#define UPNP_HAVE_DEVICE 1" >>confdefs.h 16372 16373fi 16374 16375if test "x$enable_device" = xno ; then 16376 enable_webserver=no 16377else 16378 # Check whether --enable-webserver was given. 16379if test "${enable_webserver+set}" = set; then : 16380 enableval=$enable_webserver; 16381fi 16382 16383fi 16384 if test x"$enable_webserver" != xno; then 16385 ENABLE_WEBSERVER_TRUE= 16386 ENABLE_WEBSERVER_FALSE='#' 16387else 16388 ENABLE_WEBSERVER_TRUE='#' 16389 ENABLE_WEBSERVER_FALSE= 16390fi 16391 16392if test "x$enable_webserver" != xno ; then 16393 16394$as_echo "#define UPNP_HAVE_WEBSERVER 1" >>confdefs.h 16395 16396fi 16397 16398# Check whether --enable-ssdp was given. 16399if test "${enable_ssdp+set}" = set; then : 16400 enableval=$enable_ssdp; 16401fi 16402 16403if test "x$enable_ssdp" != xno ; then 16404 16405$as_echo "#define UPNP_HAVE_SSDP 1" >>confdefs.h 16406 16407fi 16408 if test x"$enable_ssdp" != xno; then 16409 ENABLE_SSDP_TRUE= 16410 ENABLE_SSDP_FALSE='#' 16411else 16412 ENABLE_SSDP_TRUE='#' 16413 ENABLE_SSDP_FALSE= 16414fi 16415 16416 16417# Check whether --enable-optssdp was given. 16418if test "${enable_optssdp+set}" = set; then : 16419 enableval=$enable_optssdp; 16420fi 16421 16422if test "x$enable_optssdp" != xno ; then 16423 16424$as_echo "#define UPNP_HAVE_OPTSSDP 1" >>confdefs.h 16425 16426 enable_uuid=yes 16427fi 16428 16429# Check whether --enable-soap was given. 16430if test "${enable_soap+set}" = set; then : 16431 enableval=$enable_soap; 16432fi 16433 16434if test "x$enable_soap" != xno ; then 16435 16436$as_echo "#define UPNP_HAVE_SOAP 1" >>confdefs.h 16437 16438fi 16439 if test x"$enable_soap" != xno; then 16440 ENABLE_SOAP_TRUE= 16441 ENABLE_SOAP_FALSE='#' 16442else 16443 ENABLE_SOAP_TRUE='#' 16444 ENABLE_SOAP_FALSE= 16445fi 16446 16447 16448# Check whether --enable-gena was given. 16449if test "${enable_gena+set}" = set; then : 16450 enableval=$enable_gena; 16451fi 16452 16453if test "x$enable_gena" != xno ; then 16454 16455$as_echo "#define UPNP_HAVE_GENA 1" >>confdefs.h 16456 16457 enable_uuid=yes 16458fi 16459 if test x"$enable_gena" != xno; then 16460 ENABLE_GENA_TRUE= 16461 ENABLE_GENA_FALSE='#' 16462else 16463 ENABLE_GENA_TRUE='#' 16464 ENABLE_GENA_FALSE= 16465fi 16466 16467 16468 if test x"$enable_uuid" != xno; then 16469 ENABLE_UUID_TRUE= 16470 ENABLE_UUID_FALSE='#' 16471else 16472 ENABLE_UUID_TRUE='#' 16473 ENABLE_UUID_FALSE= 16474fi 16475 16476 16477# Check whether --enable-tools was given. 16478if test "${enable_tools+set}" = set; then : 16479 enableval=$enable_tools; 16480fi 16481 16482if test "x$enable_tools" != xno ; then 16483 16484$as_echo "#define UPNP_HAVE_TOOLS 1" >>confdefs.h 16485 16486fi 16487 if test x"$enable_tools" != xno; then 16488 ENABLE_TOOLS_TRUE= 16489 ENABLE_TOOLS_FALSE='#' 16490else 16491 ENABLE_TOOLS_TRUE='#' 16492 ENABLE_TOOLS_FALSE= 16493fi 16494 16495 16496 16497# Check whether --enable-unspecified_server was given. 16498if test "${enable_unspecified_server+set}" = set; then : 16499 enableval=$enable_unspecified_server; 16500fi 16501 16502if test "x$enable_unspecified_server" = xyes ; then 16503 16504$as_echo "#define UPNP_ENABLE_UNSPECIFIED_SERVER 1" >>confdefs.h 16505 16506fi 16507 16508# Check whether --enable-ipv6 was given. 16509if test "${enable_ipv6+set}" = set; then : 16510 enableval=$enable_ipv6; enable_ipv6=$enableval 16511else 16512 enable_ipv6="yes" 16513fi 16514 16515if test "x$enable_ipv6" = xyes ; then 16516 16517$as_echo "#define UPNP_ENABLE_IPV6 1" >>confdefs.h 16518 16519fi 16520 16521# Check whether --enable-reuseaddr was given. 16522if test "${enable_reuseaddr+set}" = set; then : 16523 enableval=$enable_reuseaddr; enable_reuseaddr=$enableval 16524else 16525 enable_reuseaddr="yes" 16526fi 16527 16528if test "x$enable_reuseaddr" = xyes ; then 16529 16530$as_echo "#define UPNP_MINISERVER_REUSEADDR 1" >>confdefs.h 16531 16532fi 16533 16534# Check whether --enable-testprogs was given. 16535if test "${enable_testprogs+set}" = set; then : 16536 enableval=$enable_testprogs; buildtestprogs=$enableval 16537else 16538 buildtestprogs=no 16539fi 16540 16541 if test "$buildtestprogs" = yes; then 16542 COND_TESTPROGS_TRUE= 16543 COND_TESTPROGS_FALSE='#' 16544else 16545 COND_TESTPROGS_TRUE='#' 16546 COND_TESTPROGS_FALSE= 16547fi 16548 16549 16550ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16551if test "x$ac_cv_type_size_t" = xyes; then : 16552 16553else 16554 16555cat >>confdefs.h <<_ACEOF 16556#define size_t unsigned int 16557_ACEOF 16558 16559fi 16560 16561ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 16562if test "x$ac_cv_type_off_t" = xyes; then : 16563 16564else 16565 16566cat >>confdefs.h <<_ACEOF 16567#define off_t long int 16568_ACEOF 16569 16570fi 16571 16572 16573$as_echo "#define _LARGE_FILE_SOURCE /**/" >>confdefs.h 16574 16575 16576$as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h 16577 16578 16579 16580# 16581# Are we targetting Win32? 16582# 16583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32" >&5 16584$as_echo_n "checking for Win32... " >&6; } 16585cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16586/* end confdefs.h. */ 16587 16588#ifdef _WIN32 16589 #error Yup 16590#endif 16591 16592int 16593main () 16594{ 16595 16596 ; 16597 return 0; 16598} 16599_ACEOF 16600if ac_fn_c_try_compile "$LINENO"; then : 16601 ac_cv_win32="no" 16602else 16603 ac_cv_win32="yes" 16604fi 16605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16606if test "$ac_cv_win32" = "yes"; then 16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16608$as_echo "yes" >&6; } 16609else 16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16611$as_echo "no" >&6; } 16612fi 16613 16614 16615# 16616# Checks for header files (which aren't needed on Win32) 16617# 16618if test "$ac_cv_win32" = "no"; then 16619for ac_header in arpa/inet.h fcntl.h inttypes.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h syslog.h unistd.h 16620do : 16621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16622ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16623if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16624 cat >>confdefs.h <<_ACEOF 16625#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16626_ACEOF 16627 16628else 16629 as_fn_error $? "required header file missing" "$LINENO" 5 16630fi 16631 16632done 16633 16634fi 16635 16636 16637# 16638# Checks for typedefs, structures, and compiler characteristics 16639# 16640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 16641$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 16642if ${ac_cv_c_const+:} false; then : 16643 $as_echo_n "(cached) " >&6 16644else 16645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16646/* end confdefs.h. */ 16647 16648int 16649main () 16650{ 16651 16652#ifndef __cplusplus 16653 /* Ultrix mips cc rejects this sort of thing. */ 16654 typedef int charset[2]; 16655 const charset cs = { 0, 0 }; 16656 /* SunOS 4.1.1 cc rejects this. */ 16657 char const *const *pcpcc; 16658 char **ppc; 16659 /* NEC SVR4.0.2 mips cc rejects this. */ 16660 struct point {int x, y;}; 16661 static struct point const zero = {0,0}; 16662 /* AIX XL C 1.02.0.0 rejects this. 16663 It does not let you subtract one const X* pointer from another in 16664 an arm of an if-expression whose if-part is not a constant 16665 expression */ 16666 const char *g = "string"; 16667 pcpcc = &g + (g ? g-g : 0); 16668 /* HPUX 7.0 cc rejects these. */ 16669 ++pcpcc; 16670 ppc = (char**) pcpcc; 16671 pcpcc = (char const *const *) ppc; 16672 { /* SCO 3.2v4 cc rejects this sort of thing. */ 16673 char tx; 16674 char *t = &tx; 16675 char const *s = 0 ? (char *) 0 : (char const *) 0; 16676 16677 *t++ = 0; 16678 if (s) return 0; 16679 } 16680 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 16681 int x[] = {25, 17}; 16682 const int *foo = &x[0]; 16683 ++foo; 16684 } 16685 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 16686 typedef const int *iptr; 16687 iptr p = 0; 16688 ++p; 16689 } 16690 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 16691 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 16692 struct s { int j; const int *ap[3]; } bx; 16693 struct s *b = &bx; b->j = 5; 16694 } 16695 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 16696 const int foo = 10; 16697 if (!foo) return 0; 16698 } 16699 return !cs[0] && !zero.x; 16700#endif 16701 16702 ; 16703 return 0; 16704} 16705_ACEOF 16706if ac_fn_c_try_compile "$LINENO"; then : 16707 ac_cv_c_const=yes 16708else 16709 ac_cv_c_const=no 16710fi 16711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16712fi 16713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 16714$as_echo "$ac_cv_c_const" >&6; } 16715if test $ac_cv_c_const = no; then 16716 16717$as_echo "#define const /**/" >>confdefs.h 16718 16719fi 16720 16721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 16722$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 16723if ${ac_cv_c_bigendian+:} false; then : 16724 $as_echo_n "(cached) " >&6 16725else 16726 ac_cv_c_bigendian=unknown 16727 # See if we're dealing with a universal compiler. 16728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16729/* end confdefs.h. */ 16730#ifndef __APPLE_CC__ 16731 not a universal capable compiler 16732 #endif 16733 typedef int dummy; 16734 16735_ACEOF 16736if ac_fn_c_try_compile "$LINENO"; then : 16737 16738 # Check for potential -arch flags. It is not universal unless 16739 # there are at least two -arch flags with different values. 16740 ac_arch= 16741 ac_prev= 16742 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 16743 if test -n "$ac_prev"; then 16744 case $ac_word in 16745 i?86 | x86_64 | ppc | ppc64) 16746 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 16747 ac_arch=$ac_word 16748 else 16749 ac_cv_c_bigendian=universal 16750 break 16751 fi 16752 ;; 16753 esac 16754 ac_prev= 16755 elif test "x$ac_word" = "x-arch"; then 16756 ac_prev=arch 16757 fi 16758 done 16759fi 16760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16761 if test $ac_cv_c_bigendian = unknown; then 16762 # See if sys/param.h defines the BYTE_ORDER macro. 16763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16764/* end confdefs.h. */ 16765#include <sys/types.h> 16766 #include <sys/param.h> 16767 16768int 16769main () 16770{ 16771#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 16772 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 16773 && LITTLE_ENDIAN) 16774 bogus endian macros 16775 #endif 16776 16777 ; 16778 return 0; 16779} 16780_ACEOF 16781if ac_fn_c_try_compile "$LINENO"; then : 16782 # It does; now see whether it defined to BIG_ENDIAN or not. 16783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16784/* end confdefs.h. */ 16785#include <sys/types.h> 16786 #include <sys/param.h> 16787 16788int 16789main () 16790{ 16791#if BYTE_ORDER != BIG_ENDIAN 16792 not big endian 16793 #endif 16794 16795 ; 16796 return 0; 16797} 16798_ACEOF 16799if ac_fn_c_try_compile "$LINENO"; then : 16800 ac_cv_c_bigendian=yes 16801else 16802 ac_cv_c_bigendian=no 16803fi 16804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16805fi 16806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16807 fi 16808 if test $ac_cv_c_bigendian = unknown; then 16809 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 16810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16811/* end confdefs.h. */ 16812#include <limits.h> 16813 16814int 16815main () 16816{ 16817#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 16818 bogus endian macros 16819 #endif 16820 16821 ; 16822 return 0; 16823} 16824_ACEOF 16825if ac_fn_c_try_compile "$LINENO"; then : 16826 # It does; now see whether it defined to _BIG_ENDIAN or not. 16827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16828/* end confdefs.h. */ 16829#include <limits.h> 16830 16831int 16832main () 16833{ 16834#ifndef _BIG_ENDIAN 16835 not big endian 16836 #endif 16837 16838 ; 16839 return 0; 16840} 16841_ACEOF 16842if ac_fn_c_try_compile "$LINENO"; then : 16843 ac_cv_c_bigendian=yes 16844else 16845 ac_cv_c_bigendian=no 16846fi 16847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16848fi 16849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16850 fi 16851 if test $ac_cv_c_bigendian = unknown; then 16852 # Compile a test program. 16853 if test "$cross_compiling" = yes; then : 16854 # Try to guess by grepping values from an object file. 16855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16856/* end confdefs.h. */ 16857short int ascii_mm[] = 16858 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 16859 short int ascii_ii[] = 16860 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 16861 int use_ascii (int i) { 16862 return ascii_mm[i] + ascii_ii[i]; 16863 } 16864 short int ebcdic_ii[] = 16865 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 16866 short int ebcdic_mm[] = 16867 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 16868 int use_ebcdic (int i) { 16869 return ebcdic_mm[i] + ebcdic_ii[i]; 16870 } 16871 extern int foo; 16872 16873int 16874main () 16875{ 16876return use_ascii (foo) == use_ebcdic (foo); 16877 ; 16878 return 0; 16879} 16880_ACEOF 16881if ac_fn_c_try_compile "$LINENO"; then : 16882 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 16883 ac_cv_c_bigendian=yes 16884 fi 16885 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 16886 if test "$ac_cv_c_bigendian" = unknown; then 16887 ac_cv_c_bigendian=no 16888 else 16889 # finding both strings is unlikely to happen, but who knows? 16890 ac_cv_c_bigendian=unknown 16891 fi 16892 fi 16893fi 16894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16895else 16896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16897/* end confdefs.h. */ 16898$ac_includes_default 16899int 16900main () 16901{ 16902 16903 /* Are we little or big endian? From Harbison&Steele. */ 16904 union 16905 { 16906 long int l; 16907 char c[sizeof (long int)]; 16908 } u; 16909 u.l = 1; 16910 return u.c[sizeof (long int) - 1] == 1; 16911 16912 ; 16913 return 0; 16914} 16915_ACEOF 16916if ac_fn_c_try_run "$LINENO"; then : 16917 ac_cv_c_bigendian=no 16918else 16919 ac_cv_c_bigendian=yes 16920fi 16921rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16922 conftest.$ac_objext conftest.beam conftest.$ac_ext 16923fi 16924 16925 fi 16926fi 16927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 16928$as_echo "$ac_cv_c_bigendian" >&6; } 16929 case $ac_cv_c_bigendian in #( 16930 yes) 16931 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 16932;; #( 16933 no) 16934 ;; #( 16935 universal) 16936 16937$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 16938 16939 ;; #( 16940 *) 16941 as_fn_error $? "unknown endianness 16942 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 16943 esac 16944 16945 16946for ac_header in sys/types.h sys/socket.h ws2tcpip.h 16947do : 16948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16949ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16950if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16951 cat >>confdefs.h <<_ACEOF 16952#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16953_ACEOF 16954 16955fi 16956 16957done 16958 16959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 16960$as_echo_n "checking for socklen_t... " >&6; } 16961cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16962/* end confdefs.h. */ 16963 16964#ifdef HAVE_SYS_TYPES_H 16965 #include <sys/types.h> 16966#endif 16967#ifdef HAVE_SYS_SOCKET_H 16968 #include <sys/socket.h> 16969#endif 16970#ifdef HAVE_WS2TCPIP_H 16971 #include <ws2tcpip.h> 16972#endif 16973 16974int 16975main () 16976{ 16977 socklen_t t = 0; return t; 16978 ; 16979 return 0; 16980} 16981 16982_ACEOF 16983if ac_fn_c_try_compile "$LINENO"; then : 16984 ac_cv_socklen_t="yes" 16985else 16986 ac_cv_socklen_t="no" 16987fi 16988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16989if test "$ac_cv_socklen_t" = "yes"; then 16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16991$as_echo "yes" >&6; } 16992else 16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using int" >&5 16994$as_echo "no, using int" >&6; } 16995 16996$as_echo "#define socklen_t int" >>confdefs.h 16997 16998fi 16999 17000 17001for ac_func in vprintf 17002do : 17003 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 17004if test "x$ac_cv_func_vprintf" = xyes; then : 17005 cat >>confdefs.h <<_ACEOF 17006#define HAVE_VPRINTF 1 17007_ACEOF 17008 17009ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 17010if test "x$ac_cv_func__doprnt" = xyes; then : 17011 17012$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 17013 17014fi 17015 17016fi 17017done 17018 17019 17020for ac_func in getifaddrs 17021do : 17022 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 17023if test "x$ac_cv_func_getifaddrs" = xyes; then : 17024 cat >>confdefs.h <<_ACEOF 17025#define HAVE_GETIFADDRS 1 17026_ACEOF 17027 17028fi 17029done 17030 17031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5 17032$as_echo_n "checking for library containing inet_pton... " >&6; } 17033if ${ac_cv_search_inet_pton+:} false; then : 17034 $as_echo_n "(cached) " >&6 17035else 17036 ac_func_search_save_LIBS=$LIBS 17037cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17038/* end confdefs.h. */ 17039 17040/* Override any GCC internal prototype to avoid an error. 17041 Use char because int might match the return type of a GCC 17042 builtin and then its argument prototype would still apply. */ 17043#ifdef __cplusplus 17044extern "C" 17045#endif 17046char inet_pton (); 17047int 17048main () 17049{ 17050return inet_pton (); 17051 ; 17052 return 0; 17053} 17054_ACEOF 17055for ac_lib in '' Ws2_32; do 17056 if test -z "$ac_lib"; then 17057 ac_res="none required" 17058 else 17059 ac_res=-l$ac_lib 17060 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17061 fi 17062 if ac_fn_c_try_link "$LINENO"; then : 17063 ac_cv_search_inet_pton=$ac_res 17064fi 17065rm -f core conftest.err conftest.$ac_objext \ 17066 conftest$ac_exeext 17067 if ${ac_cv_search_inet_pton+:} false; then : 17068 break 17069fi 17070done 17071if ${ac_cv_search_inet_pton+:} false; then : 17072 17073else 17074 ac_cv_search_inet_pton=no 17075fi 17076rm conftest.$ac_ext 17077LIBS=$ac_func_search_save_LIBS 17078fi 17079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5 17080$as_echo "$ac_cv_search_inet_pton" >&6; } 17081ac_res=$ac_cv_search_inet_pton 17082if test "$ac_res" != no; then : 17083 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17084 17085$as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 17086 17087fi 17088 17089if test "$ac_cv_win32" = "yes"; then 17090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GetAdaptersAddresses" >&5 17091$as_echo_n "checking for library containing GetAdaptersAddresses... " >&6; } 17092if ${ac_cv_search_GetAdaptersAddresses+:} false; then : 17093 $as_echo_n "(cached) " >&6 17094else 17095 ac_func_search_save_LIBS=$LIBS 17096cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17097/* end confdefs.h. */ 17098 17099/* Override any GCC internal prototype to avoid an error. 17100 Use char because int might match the return type of a GCC 17101 builtin and then its argument prototype would still apply. */ 17102#ifdef __cplusplus 17103extern "C" 17104#endif 17105char GetAdaptersAddresses (); 17106int 17107main () 17108{ 17109return GetAdaptersAddresses (); 17110 ; 17111 return 0; 17112} 17113_ACEOF 17114for ac_lib in '' iphlpapi; do 17115 if test -z "$ac_lib"; then 17116 ac_res="none required" 17117 else 17118 ac_res=-l$ac_lib 17119 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17120 fi 17121 if ac_fn_c_try_link "$LINENO"; then : 17122 ac_cv_search_GetAdaptersAddresses=$ac_res 17123fi 17124rm -f core conftest.err conftest.$ac_objext \ 17125 conftest$ac_exeext 17126 if ${ac_cv_search_GetAdaptersAddresses+:} false; then : 17127 break 17128fi 17129done 17130if ${ac_cv_search_GetAdaptersAddresses+:} false; then : 17131 17132else 17133 ac_cv_search_GetAdaptersAddresses=no 17134fi 17135rm conftest.$ac_ext 17136LIBS=$ac_func_search_save_LIBS 17137fi 17138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GetAdaptersAddresses" >&5 17139$as_echo "$ac_cv_search_GetAdaptersAddresses" >&6; } 17140ac_res=$ac_cv_search_GetAdaptersAddresses 17141if test "$ac_res" != no; then : 17142 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17143 17144fi 17145 17146fi 17147# Solaris needs -lsocket -lnsl -lrt 17148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind" >&5 17149$as_echo_n "checking for library containing bind... " >&6; } 17150if ${ac_cv_search_bind+:} false; then : 17151 $as_echo_n "(cached) " >&6 17152else 17153 ac_func_search_save_LIBS=$LIBS 17154cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17155/* end confdefs.h. */ 17156 17157/* Override any GCC internal prototype to avoid an error. 17158 Use char because int might match the return type of a GCC 17159 builtin and then its argument prototype would still apply. */ 17160#ifdef __cplusplus 17161extern "C" 17162#endif 17163char bind (); 17164int 17165main () 17166{ 17167return bind (); 17168 ; 17169 return 0; 17170} 17171_ACEOF 17172for ac_lib in '' socket; do 17173 if test -z "$ac_lib"; then 17174 ac_res="none required" 17175 else 17176 ac_res=-l$ac_lib 17177 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17178 fi 17179 if ac_fn_c_try_link "$LINENO"; then : 17180 ac_cv_search_bind=$ac_res 17181fi 17182rm -f core conftest.err conftest.$ac_objext \ 17183 conftest$ac_exeext 17184 if ${ac_cv_search_bind+:} false; then : 17185 break 17186fi 17187done 17188if ${ac_cv_search_bind+:} false; then : 17189 17190else 17191 ac_cv_search_bind=no 17192fi 17193rm conftest.$ac_ext 17194LIBS=$ac_func_search_save_LIBS 17195fi 17196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind" >&5 17197$as_echo "$ac_cv_search_bind" >&6; } 17198ac_res=$ac_cv_search_bind 17199if test "$ac_res" != no; then : 17200 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17201 17202fi 17203 17204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 17205$as_echo_n "checking for library containing gethostbyname... " >&6; } 17206if ${ac_cv_search_gethostbyname+:} false; then : 17207 $as_echo_n "(cached) " >&6 17208else 17209 ac_func_search_save_LIBS=$LIBS 17210cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17211/* end confdefs.h. */ 17212 17213/* Override any GCC internal prototype to avoid an error. 17214 Use char because int might match the return type of a GCC 17215 builtin and then its argument prototype would still apply. */ 17216#ifdef __cplusplus 17217extern "C" 17218#endif 17219char gethostbyname (); 17220int 17221main () 17222{ 17223return gethostbyname (); 17224 ; 17225 return 0; 17226} 17227_ACEOF 17228for ac_lib in '' nsl; do 17229 if test -z "$ac_lib"; then 17230 ac_res="none required" 17231 else 17232 ac_res=-l$ac_lib 17233 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17234 fi 17235 if ac_fn_c_try_link "$LINENO"; then : 17236 ac_cv_search_gethostbyname=$ac_res 17237fi 17238rm -f core conftest.err conftest.$ac_objext \ 17239 conftest$ac_exeext 17240 if ${ac_cv_search_gethostbyname+:} false; then : 17241 break 17242fi 17243done 17244if ${ac_cv_search_gethostbyname+:} false; then : 17245 17246else 17247 ac_cv_search_gethostbyname=no 17248fi 17249rm conftest.$ac_ext 17250LIBS=$ac_func_search_save_LIBS 17251fi 17252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 17253$as_echo "$ac_cv_search_gethostbyname" >&6; } 17254ac_res=$ac_cv_search_gethostbyname 17255if test "$ac_res" != no; then : 17256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17257 17258fi 17259 17260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_getparam" >&5 17261$as_echo_n "checking for library containing sched_getparam... " >&6; } 17262if ${ac_cv_search_sched_getparam+:} false; then : 17263 $as_echo_n "(cached) " >&6 17264else 17265 ac_func_search_save_LIBS=$LIBS 17266cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17267/* end confdefs.h. */ 17268 17269/* Override any GCC internal prototype to avoid an error. 17270 Use char because int might match the return type of a GCC 17271 builtin and then its argument prototype would still apply. */ 17272#ifdef __cplusplus 17273extern "C" 17274#endif 17275char sched_getparam (); 17276int 17277main () 17278{ 17279return sched_getparam (); 17280 ; 17281 return 0; 17282} 17283_ACEOF 17284for ac_lib in '' rt; do 17285 if test -z "$ac_lib"; then 17286 ac_res="none required" 17287 else 17288 ac_res=-l$ac_lib 17289 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17290 fi 17291 if ac_fn_c_try_link "$LINENO"; then : 17292 ac_cv_search_sched_getparam=$ac_res 17293fi 17294rm -f core conftest.err conftest.$ac_objext \ 17295 conftest$ac_exeext 17296 if ${ac_cv_search_sched_getparam+:} false; then : 17297 break 17298fi 17299done 17300if ${ac_cv_search_sched_getparam+:} false; then : 17301 17302else 17303 ac_cv_search_sched_getparam=no 17304fi 17305rm conftest.$ac_ext 17306LIBS=$ac_func_search_save_LIBS 17307fi 17308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_getparam" >&5 17309$as_echo "$ac_cv_search_sched_getparam" >&6; } 17310ac_res=$ac_cv_search_sched_getparam 17311if test "$ac_res" != no; then : 17312 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17313 17314fi 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 17325 if test -n "$ac_tool_prefix"; then 17326 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 17327set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 17328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17329$as_echo_n "checking for $ac_word... " >&6; } 17330if ${ac_cv_path_PKG_CONFIG+:} false; then : 17331 $as_echo_n "(cached) " >&6 17332else 17333 case $PKG_CONFIG in 17334 [\\/]* | ?:[\\/]*) 17335 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 17336 ;; 17337 *) 17338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17339for as_dir in $PATH 17340do 17341 IFS=$as_save_IFS 17342 test -z "$as_dir" && as_dir=. 17343 for ac_exec_ext in '' $ac_executable_extensions; do 17344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17345 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17347 break 2 17348 fi 17349done 17350 done 17351IFS=$as_save_IFS 17352 17353 ;; 17354esac 17355fi 17356PKG_CONFIG=$ac_cv_path_PKG_CONFIG 17357if test -n "$PKG_CONFIG"; then 17358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 17359$as_echo "$PKG_CONFIG" >&6; } 17360else 17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17362$as_echo "no" >&6; } 17363fi 17364 17365 17366fi 17367if test -z "$ac_cv_path_PKG_CONFIG"; then 17368 ac_pt_PKG_CONFIG=$PKG_CONFIG 17369 # Extract the first word of "pkg-config", so it can be a program name with args. 17370set dummy pkg-config; ac_word=$2 17371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17372$as_echo_n "checking for $ac_word... " >&6; } 17373if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 17374 $as_echo_n "(cached) " >&6 17375else 17376 case $ac_pt_PKG_CONFIG in 17377 [\\/]* | ?:[\\/]*) 17378 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 17379 ;; 17380 *) 17381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17382for as_dir in $PATH 17383do 17384 IFS=$as_save_IFS 17385 test -z "$as_dir" && as_dir=. 17386 for ac_exec_ext in '' $ac_executable_extensions; do 17387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17388 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17390 break 2 17391 fi 17392done 17393 done 17394IFS=$as_save_IFS 17395 17396 ;; 17397esac 17398fi 17399ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 17400if test -n "$ac_pt_PKG_CONFIG"; then 17401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 17402$as_echo "$ac_pt_PKG_CONFIG" >&6; } 17403else 17404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17405$as_echo "no" >&6; } 17406fi 17407 17408 if test "x$ac_pt_PKG_CONFIG" = x; then 17409 PKG_CONFIG="" 17410 else 17411 case $cross_compiling:$ac_tool_warned in 17412yes:) 17413{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17414$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17415ac_tool_warned=yes ;; 17416esac 17417 PKG_CONFIG=$ac_pt_PKG_CONFIG 17418 fi 17419else 17420 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 17421fi 17422 17423fi 17424if test -n "$PKG_CONFIG"; then 17425 _pkg_min_version=0.9.0 17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 17427$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 17428 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17430$as_echo "yes" >&6; } 17431 else 17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17433$as_echo "no" >&6; } 17434 PKG_CONFIG="" 17435 fi 17436fi 17437 17438pkg_failed=no 17439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CURL" >&5 17440$as_echo_n "checking for CURL... " >&6; } 17441 17442if test -n "$CURL_CFLAGS"; then 17443 pkg_cv_CURL_CFLAGS="$CURL_CFLAGS" 17444 elif test -n "$PKG_CONFIG"; then 17445 if test -n "$PKG_CONFIG" && \ 17446 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5 17447 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5 17448 ac_status=$? 17449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17450 test $ac_status = 0; }; then 17451 pkg_cv_CURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null` 17452 test "x$?" != "x0" && pkg_failed=yes 17453else 17454 pkg_failed=yes 17455fi 17456 else 17457 pkg_failed=untried 17458fi 17459if test -n "$CURL_LIBS"; then 17460 pkg_cv_CURL_LIBS="$CURL_LIBS" 17461 elif test -n "$PKG_CONFIG"; then 17462 if test -n "$PKG_CONFIG" && \ 17463 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5 17464 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5 17465 ac_status=$? 17466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17467 test $ac_status = 0; }; then 17468 pkg_cv_CURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null` 17469 test "x$?" != "x0" && pkg_failed=yes 17470else 17471 pkg_failed=yes 17472fi 17473 else 17474 pkg_failed=untried 17475fi 17476 17477 17478 17479if test $pkg_failed = yes; then 17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17481$as_echo "no" >&6; } 17482 17483if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17484 _pkg_short_errors_supported=yes 17485else 17486 _pkg_short_errors_supported=no 17487fi 17488 if test $_pkg_short_errors_supported = yes; then 17489 CURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcurl" 2>&1` 17490 else 17491 CURL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcurl" 2>&1` 17492 fi 17493 # Put the nasty error message in config.log where it belongs 17494 echo "$CURL_PKG_ERRORS" >&5 17495 17496 as_fn_error $? "libcurl not found" "$LINENO" 5 17497elif test $pkg_failed = untried; then 17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17499$as_echo "no" >&6; } 17500 as_fn_error $? "libcurl not found" "$LINENO" 5 17501else 17502 CURL_CFLAGS=$pkg_cv_CURL_CFLAGS 17503 CURL_LIBS=$pkg_cv_CURL_LIBS 17504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17505$as_echo "yes" >&6; } 17506 17507fi 17508 17509pkg_failed=no 17510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MICROHTTPD" >&5 17511$as_echo_n "checking for MICROHTTPD... " >&6; } 17512 17513if test -n "$MICROHTTPD_CFLAGS"; then 17514 pkg_cv_MICROHTTPD_CFLAGS="$MICROHTTPD_CFLAGS" 17515 elif test -n "$PKG_CONFIG"; then 17516 if test -n "$PKG_CONFIG" && \ 17517 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5 17518 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5 17519 ac_status=$? 17520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17521 test $ac_status = 0; }; then 17522 pkg_cv_MICROHTTPD_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd" 2>/dev/null` 17523 test "x$?" != "x0" && pkg_failed=yes 17524else 17525 pkg_failed=yes 17526fi 17527 else 17528 pkg_failed=untried 17529fi 17530if test -n "$MICROHTTPD_LIBS"; then 17531 pkg_cv_MICROHTTPD_LIBS="$MICROHTTPD_LIBS" 17532 elif test -n "$PKG_CONFIG"; then 17533 if test -n "$PKG_CONFIG" && \ 17534 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd\""; } >&5 17535 ($PKG_CONFIG --exists --print-errors "libmicrohttpd") 2>&5 17536 ac_status=$? 17537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17538 test $ac_status = 0; }; then 17539 pkg_cv_MICROHTTPD_LIBS=`$PKG_CONFIG --libs "libmicrohttpd" 2>/dev/null` 17540 test "x$?" != "x0" && pkg_failed=yes 17541else 17542 pkg_failed=yes 17543fi 17544 else 17545 pkg_failed=untried 17546fi 17547 17548 17549 17550if test $pkg_failed = yes; then 17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17552$as_echo "no" >&6; } 17553 17554if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17555 _pkg_short_errors_supported=yes 17556else 17557 _pkg_short_errors_supported=no 17558fi 17559 if test $_pkg_short_errors_supported = yes; then 17560 MICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd" 2>&1` 17561 else 17562 MICROHTTPD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd" 2>&1` 17563 fi 17564 # Put the nasty error message in config.log where it belongs 17565 echo "$MICROHTTPD_PKG_ERRORS" >&5 17566 17567 as_fn_error $? "libmicrohttpd not found" "$LINENO" 5 17568elif test $pkg_failed = untried; then 17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17570$as_echo "no" >&6; } 17571 as_fn_error $? "libmicrohttpd not found" "$LINENO" 5 17572else 17573 MICROHTTPD_CFLAGS=$pkg_cv_MICROHTTPD_CFLAGS 17574 MICROHTTPD_LIBS=$pkg_cv_MICROHTTPD_LIBS 17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17576$as_echo "yes" >&6; } 17577 17578fi 17579 17580 17581# Check whether --enable-expat was given. 17582if test "${enable_expat+set}" = set; then : 17583 enableval=$enable_expat; useexpat=$enableval 17584else 17585 useexpat=yes 17586fi 17587 17588 if test "$useexpat" = yes; then 17589 COND_EXPAT_TRUE= 17590 COND_EXPAT_FALSE='#' 17591else 17592 COND_EXPAT_TRUE='#' 17593 COND_EXPAT_FALSE= 17594fi 17595 17596if test X$useexpat = Xyes ; then 17597 17598pkg_failed=no 17599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5 17600$as_echo_n "checking for EXPAT... " >&6; } 17601 17602if test -n "$EXPAT_CFLAGS"; then 17603 pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS" 17604 elif test -n "$PKG_CONFIG"; then 17605 if test -n "$PKG_CONFIG" && \ 17606 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5 17607 ($PKG_CONFIG --exists --print-errors "expat") 2>&5 17608 ac_status=$? 17609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17610 test $ac_status = 0; }; then 17611 pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null` 17612 test "x$?" != "x0" && pkg_failed=yes 17613else 17614 pkg_failed=yes 17615fi 17616 else 17617 pkg_failed=untried 17618fi 17619if test -n "$EXPAT_LIBS"; then 17620 pkg_cv_EXPAT_LIBS="$EXPAT_LIBS" 17621 elif test -n "$PKG_CONFIG"; then 17622 if test -n "$PKG_CONFIG" && \ 17623 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5 17624 ($PKG_CONFIG --exists --print-errors "expat") 2>&5 17625 ac_status=$? 17626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17627 test $ac_status = 0; }; then 17628 pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null` 17629 test "x$?" != "x0" && pkg_failed=yes 17630else 17631 pkg_failed=yes 17632fi 17633 else 17634 pkg_failed=untried 17635fi 17636 17637 17638 17639if test $pkg_failed = yes; then 17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17641$as_echo "no" >&6; } 17642 17643if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17644 _pkg_short_errors_supported=yes 17645else 17646 _pkg_short_errors_supported=no 17647fi 17648 if test $_pkg_short_errors_supported = yes; then 17649 EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1` 17650 else 17651 EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1` 17652 fi 17653 # Put the nasty error message in config.log where it belongs 17654 echo "$EXPAT_PKG_ERRORS" >&5 17655 17656 as_fn_error $? "libexpat not found" "$LINENO" 5 17657elif test $pkg_failed = untried; then 17658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17659$as_echo "no" >&6; } 17660 as_fn_error $? "libexpat not found" "$LINENO" 5 17661else 17662 EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS 17663 EXPAT_LIBS=$pkg_cv_EXPAT_LIBS 17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17665$as_echo "yes" >&6; } 17666 17667fi 17668 17669$as_echo "#define USE_EXPAT 1" >>confdefs.h 17670 17671 17672fi 17673 17674LIBNPUPNP_LIBS="$CURL_LIBS $MICROHTTPD_LIBS $EXPAT_LIBS $LIBS" 17675echo "LIBNPUPNP_LIBS" $LIBNPUPNP_LIBS "" 17676 17677 17678ac_config_files="$ac_config_files Makefile libnpupnp.pc" 17679 17680 17681if test X$buildtestprogs = Xyes ; then 17682 ac_config_files="$ac_config_files test/Makefile" 17683 17684fi 17685 17686cat >confcache <<\_ACEOF 17687# This file is a shell script that caches the results of configure 17688# tests run on this system so they can be shared between configure 17689# scripts and configure runs, see configure's option --config-cache. 17690# It is not useful on other systems. If it contains results you don't 17691# want to keep, you may remove or edit it. 17692# 17693# config.status only pays attention to the cache file if you give it 17694# the --recheck option to rerun configure. 17695# 17696# `ac_cv_env_foo' variables (set or unset) will be overridden when 17697# loading this file, other *unset* `ac_cv_foo' will be assigned the 17698# following values. 17699 17700_ACEOF 17701 17702# The following way of writing the cache mishandles newlines in values, 17703# but we know of no workaround that is simple, portable, and efficient. 17704# So, we kill variables containing newlines. 17705# Ultrix sh set writes to stderr and can't be redirected directly, 17706# and sets the high bit in the cache file unless we assign to the vars. 17707( 17708 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17709 eval ac_val=\$$ac_var 17710 case $ac_val in #( 17711 *${as_nl}*) 17712 case $ac_var in #( 17713 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17714$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17715 esac 17716 case $ac_var in #( 17717 _ | IFS | as_nl) ;; #( 17718 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17719 *) { eval $ac_var=; unset $ac_var;} ;; 17720 esac ;; 17721 esac 17722 done 17723 17724 (set) 2>&1 | 17725 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17726 *${as_nl}ac_space=\ *) 17727 # `set' does not quote correctly, so add quotes: double-quote 17728 # substitution turns \\\\ into \\, and sed turns \\ into \. 17729 sed -n \ 17730 "s/'/'\\\\''/g; 17731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17732 ;; #( 17733 *) 17734 # `set' quotes correctly as required by POSIX, so do not add quotes. 17735 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17736 ;; 17737 esac | 17738 sort 17739) | 17740 sed ' 17741 /^ac_cv_env_/b end 17742 t clear 17743 :clear 17744 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17745 t end 17746 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17747 :end' >>confcache 17748if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17749 if test -w "$cache_file"; then 17750 if test "x$cache_file" != "x/dev/null"; then 17751 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17752$as_echo "$as_me: updating cache $cache_file" >&6;} 17753 if test ! -f "$cache_file" || test -h "$cache_file"; then 17754 cat confcache >"$cache_file" 17755 else 17756 case $cache_file in #( 17757 */* | ?:*) 17758 mv -f confcache "$cache_file"$$ && 17759 mv -f "$cache_file"$$ "$cache_file" ;; #( 17760 *) 17761 mv -f confcache "$cache_file" ;; 17762 esac 17763 fi 17764 fi 17765 else 17766 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17767$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17768 fi 17769fi 17770rm -f confcache 17771 17772test "x$prefix" = xNONE && prefix=$ac_default_prefix 17773# Let make expand exec_prefix. 17774test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17775 17776DEFS=-DHAVE_CONFIG_H 17777 17778ac_libobjs= 17779ac_ltlibobjs= 17780U= 17781for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17782 # 1. Remove the extension, and $U if already installed. 17783 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17784 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17785 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17786 # will be set to the directory where LIBOBJS objects are built. 17787 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17788 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17789done 17790LIBOBJS=$ac_libobjs 17791 17792LTLIBOBJS=$ac_ltlibobjs 17793 17794 17795if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then 17796 as_fn_error $? "conditional \"LINUX\" was never defined. 17797Usually this means the macro was only invoked conditionally." "$LINENO" 5 17798fi 17799if test -z "${OSX_TRUE}" && test -z "${OSX_FALSE}"; then 17800 as_fn_error $? "conditional \"OSX\" was never defined. 17801Usually this means the macro was only invoked conditionally." "$LINENO" 5 17802fi 17803if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then 17804 as_fn_error $? "conditional \"FREEBSD\" was never defined. 17805Usually this means the macro was only invoked conditionally." "$LINENO" 5 17806fi 17807if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then 17808 as_fn_error $? "conditional \"MINGW\" was never defined. 17809Usually this means the macro was only invoked conditionally." "$LINENO" 5 17810fi 17811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17812$as_echo_n "checking that generated files are newer than configure... " >&6; } 17813 if test -n "$am_sleep_pid"; then 17814 # Hide warnings about reused PIDs. 17815 wait $am_sleep_pid 2>/dev/null 17816 fi 17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17818$as_echo "done" >&6; } 17819 if test -n "$EXEEXT"; then 17820 am__EXEEXT_TRUE= 17821 am__EXEEXT_FALSE='#' 17822else 17823 am__EXEEXT_TRUE='#' 17824 am__EXEEXT_FALSE= 17825fi 17826 17827if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17828 as_fn_error $? "conditional \"AMDEP\" was never defined. 17829Usually this means the macro was only invoked conditionally." "$LINENO" 5 17830fi 17831if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17832 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17833Usually this means the macro was only invoked conditionally." "$LINENO" 5 17834fi 17835if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17836 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 17837Usually this means the macro was only invoked conditionally." "$LINENO" 5 17838fi 17839if test -z "${ENABLE_DEBUG_TRUE}" && test -z "${ENABLE_DEBUG_FALSE}"; then 17840 as_fn_error $? "conditional \"ENABLE_DEBUG\" was never defined. 17841Usually this means the macro was only invoked conditionally." "$LINENO" 5 17842fi 17843if test -z "${ENABLE_WEBSERVER_TRUE}" && test -z "${ENABLE_WEBSERVER_FALSE}"; then 17844 as_fn_error $? "conditional \"ENABLE_WEBSERVER\" was never defined. 17845Usually this means the macro was only invoked conditionally." "$LINENO" 5 17846fi 17847if test -z "${ENABLE_SSDP_TRUE}" && test -z "${ENABLE_SSDP_FALSE}"; then 17848 as_fn_error $? "conditional \"ENABLE_SSDP\" was never defined. 17849Usually this means the macro was only invoked conditionally." "$LINENO" 5 17850fi 17851if test -z "${ENABLE_SOAP_TRUE}" && test -z "${ENABLE_SOAP_FALSE}"; then 17852 as_fn_error $? "conditional \"ENABLE_SOAP\" was never defined. 17853Usually this means the macro was only invoked conditionally." "$LINENO" 5 17854fi 17855if test -z "${ENABLE_GENA_TRUE}" && test -z "${ENABLE_GENA_FALSE}"; then 17856 as_fn_error $? "conditional \"ENABLE_GENA\" was never defined. 17857Usually this means the macro was only invoked conditionally." "$LINENO" 5 17858fi 17859if test -z "${ENABLE_UUID_TRUE}" && test -z "${ENABLE_UUID_FALSE}"; then 17860 as_fn_error $? "conditional \"ENABLE_UUID\" was never defined. 17861Usually this means the macro was only invoked conditionally." "$LINENO" 5 17862fi 17863if test -z "${ENABLE_TOOLS_TRUE}" && test -z "${ENABLE_TOOLS_FALSE}"; then 17864 as_fn_error $? "conditional \"ENABLE_TOOLS\" was never defined. 17865Usually this means the macro was only invoked conditionally." "$LINENO" 5 17866fi 17867if test -z "${COND_TESTPROGS_TRUE}" && test -z "${COND_TESTPROGS_FALSE}"; then 17868 as_fn_error $? "conditional \"COND_TESTPROGS\" was never defined. 17869Usually this means the macro was only invoked conditionally." "$LINENO" 5 17870fi 17871 17872if test -z "${COND_EXPAT_TRUE}" && test -z "${COND_EXPAT_FALSE}"; then 17873 as_fn_error $? "conditional \"COND_EXPAT\" was never defined. 17874Usually this means the macro was only invoked conditionally." "$LINENO" 5 17875fi 17876 17877: "${CONFIG_STATUS=./config.status}" 17878ac_write_fail=0 17879ac_clean_files_save=$ac_clean_files 17880ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17881{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17882$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17883as_write_fail=0 17884cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17885#! $SHELL 17886# Generated by $as_me. 17887# Run this file to recreate the current configuration. 17888# Compiler output produced by configure, useful for debugging 17889# configure, is in config.log if it exists. 17890 17891debug=false 17892ac_cs_recheck=false 17893ac_cs_silent=false 17894 17895SHELL=\${CONFIG_SHELL-$SHELL} 17896export SHELL 17897_ASEOF 17898cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17899## -------------------- ## 17900## M4sh Initialization. ## 17901## -------------------- ## 17902 17903# Be more Bourne compatible 17904DUALCASE=1; export DUALCASE # for MKS sh 17905if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17906 emulate sh 17907 NULLCMD=: 17908 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17909 # is contrary to our usage. Disable this feature. 17910 alias -g '${1+"$@"}'='"$@"' 17911 setopt NO_GLOB_SUBST 17912else 17913 case `(set -o) 2>/dev/null` in #( 17914 *posix*) : 17915 set -o posix ;; #( 17916 *) : 17917 ;; 17918esac 17919fi 17920 17921 17922as_nl=' 17923' 17924export as_nl 17925# Printing a long string crashes Solaris 7 /usr/bin/printf. 17926as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17927as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17928as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17929# Prefer a ksh shell builtin over an external printf program on Solaris, 17930# but without wasting forks for bash or zsh. 17931if test -z "$BASH_VERSION$ZSH_VERSION" \ 17932 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17933 as_echo='print -r --' 17934 as_echo_n='print -rn --' 17935elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17936 as_echo='printf %s\n' 17937 as_echo_n='printf %s' 17938else 17939 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17940 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17941 as_echo_n='/usr/ucb/echo -n' 17942 else 17943 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17944 as_echo_n_body='eval 17945 arg=$1; 17946 case $arg in #( 17947 *"$as_nl"*) 17948 expr "X$arg" : "X\\(.*\\)$as_nl"; 17949 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17950 esac; 17951 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17952 ' 17953 export as_echo_n_body 17954 as_echo_n='sh -c $as_echo_n_body as_echo' 17955 fi 17956 export as_echo_body 17957 as_echo='sh -c $as_echo_body as_echo' 17958fi 17959 17960# The user is always right. 17961if test "${PATH_SEPARATOR+set}" != set; then 17962 PATH_SEPARATOR=: 17963 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17964 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17965 PATH_SEPARATOR=';' 17966 } 17967fi 17968 17969 17970# IFS 17971# We need space, tab and new line, in precisely that order. Quoting is 17972# there to prevent editors from complaining about space-tab. 17973# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17974# splitting by setting IFS to empty value.) 17975IFS=" "" $as_nl" 17976 17977# Find who we are. Look in the path if we contain no directory separator. 17978as_myself= 17979case $0 in #(( 17980 *[\\/]* ) as_myself=$0 ;; 17981 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17982for as_dir in $PATH 17983do 17984 IFS=$as_save_IFS 17985 test -z "$as_dir" && as_dir=. 17986 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17987 done 17988IFS=$as_save_IFS 17989 17990 ;; 17991esac 17992# We did not find ourselves, most probably we were run as `sh COMMAND' 17993# in which case we are not to be found in the path. 17994if test "x$as_myself" = x; then 17995 as_myself=$0 17996fi 17997if test ! -f "$as_myself"; then 17998 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17999 exit 1 18000fi 18001 18002# Unset variables that we do not need and which cause bugs (e.g. in 18003# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18004# suppresses any "Segmentation fault" message there. '((' could 18005# trigger a bug in pdksh 5.2.14. 18006for as_var in BASH_ENV ENV MAIL MAILPATH 18007do eval test x\${$as_var+set} = xset \ 18008 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18009done 18010PS1='$ ' 18011PS2='> ' 18012PS4='+ ' 18013 18014# NLS nuisances. 18015LC_ALL=C 18016export LC_ALL 18017LANGUAGE=C 18018export LANGUAGE 18019 18020# CDPATH. 18021(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18022 18023 18024# as_fn_error STATUS ERROR [LINENO LOG_FD] 18025# ---------------------------------------- 18026# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18027# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18028# script with STATUS, using 1 if that was 0. 18029as_fn_error () 18030{ 18031 as_status=$1; test $as_status -eq 0 && as_status=1 18032 if test "$4"; then 18033 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18034 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18035 fi 18036 $as_echo "$as_me: error: $2" >&2 18037 as_fn_exit $as_status 18038} # as_fn_error 18039 18040 18041# as_fn_set_status STATUS 18042# ----------------------- 18043# Set $? to STATUS, without forking. 18044as_fn_set_status () 18045{ 18046 return $1 18047} # as_fn_set_status 18048 18049# as_fn_exit STATUS 18050# ----------------- 18051# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18052as_fn_exit () 18053{ 18054 set +e 18055 as_fn_set_status $1 18056 exit $1 18057} # as_fn_exit 18058 18059# as_fn_unset VAR 18060# --------------- 18061# Portably unset VAR. 18062as_fn_unset () 18063{ 18064 { eval $1=; unset $1;} 18065} 18066as_unset=as_fn_unset 18067# as_fn_append VAR VALUE 18068# ---------------------- 18069# Append the text in VALUE to the end of the definition contained in VAR. Take 18070# advantage of any shell optimizations that allow amortized linear growth over 18071# repeated appends, instead of the typical quadratic growth present in naive 18072# implementations. 18073if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18074 eval 'as_fn_append () 18075 { 18076 eval $1+=\$2 18077 }' 18078else 18079 as_fn_append () 18080 { 18081 eval $1=\$$1\$2 18082 } 18083fi # as_fn_append 18084 18085# as_fn_arith ARG... 18086# ------------------ 18087# Perform arithmetic evaluation on the ARGs, and store the result in the 18088# global $as_val. Take advantage of shells that can avoid forks. The arguments 18089# must be portable across $(()) and expr. 18090if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18091 eval 'as_fn_arith () 18092 { 18093 as_val=$(( $* )) 18094 }' 18095else 18096 as_fn_arith () 18097 { 18098 as_val=`expr "$@" || test $? -eq 1` 18099 } 18100fi # as_fn_arith 18101 18102 18103if expr a : '\(a\)' >/dev/null 2>&1 && 18104 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18105 as_expr=expr 18106else 18107 as_expr=false 18108fi 18109 18110if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18111 as_basename=basename 18112else 18113 as_basename=false 18114fi 18115 18116if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18117 as_dirname=dirname 18118else 18119 as_dirname=false 18120fi 18121 18122as_me=`$as_basename -- "$0" || 18123$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18124 X"$0" : 'X\(//\)$' \| \ 18125 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18126$as_echo X/"$0" | 18127 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18128 s//\1/ 18129 q 18130 } 18131 /^X\/\(\/\/\)$/{ 18132 s//\1/ 18133 q 18134 } 18135 /^X\/\(\/\).*/{ 18136 s//\1/ 18137 q 18138 } 18139 s/.*/./; q'` 18140 18141# Avoid depending upon Character Ranges. 18142as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18143as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18144as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18145as_cr_digits='0123456789' 18146as_cr_alnum=$as_cr_Letters$as_cr_digits 18147 18148ECHO_C= ECHO_N= ECHO_T= 18149case `echo -n x` in #((((( 18150-n*) 18151 case `echo 'xy\c'` in 18152 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18153 xy) ECHO_C='\c';; 18154 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18155 ECHO_T=' ';; 18156 esac;; 18157*) 18158 ECHO_N='-n';; 18159esac 18160 18161rm -f conf$$ conf$$.exe conf$$.file 18162if test -d conf$$.dir; then 18163 rm -f conf$$.dir/conf$$.file 18164else 18165 rm -f conf$$.dir 18166 mkdir conf$$.dir 2>/dev/null 18167fi 18168if (echo >conf$$.file) 2>/dev/null; then 18169 if ln -s conf$$.file conf$$ 2>/dev/null; then 18170 as_ln_s='ln -s' 18171 # ... but there are two gotchas: 18172 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18173 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18174 # In both cases, we have to default to `cp -pR'. 18175 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18176 as_ln_s='cp -pR' 18177 elif ln conf$$.file conf$$ 2>/dev/null; then 18178 as_ln_s=ln 18179 else 18180 as_ln_s='cp -pR' 18181 fi 18182else 18183 as_ln_s='cp -pR' 18184fi 18185rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18186rmdir conf$$.dir 2>/dev/null 18187 18188 18189# as_fn_mkdir_p 18190# ------------- 18191# Create "$as_dir" as a directory, including parents if necessary. 18192as_fn_mkdir_p () 18193{ 18194 18195 case $as_dir in #( 18196 -*) as_dir=./$as_dir;; 18197 esac 18198 test -d "$as_dir" || eval $as_mkdir_p || { 18199 as_dirs= 18200 while :; do 18201 case $as_dir in #( 18202 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18203 *) as_qdir=$as_dir;; 18204 esac 18205 as_dirs="'$as_qdir' $as_dirs" 18206 as_dir=`$as_dirname -- "$as_dir" || 18207$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18208 X"$as_dir" : 'X\(//\)[^/]' \| \ 18209 X"$as_dir" : 'X\(//\)$' \| \ 18210 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18211$as_echo X"$as_dir" | 18212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18213 s//\1/ 18214 q 18215 } 18216 /^X\(\/\/\)[^/].*/{ 18217 s//\1/ 18218 q 18219 } 18220 /^X\(\/\/\)$/{ 18221 s//\1/ 18222 q 18223 } 18224 /^X\(\/\).*/{ 18225 s//\1/ 18226 q 18227 } 18228 s/.*/./; q'` 18229 test -d "$as_dir" && break 18230 done 18231 test -z "$as_dirs" || eval "mkdir $as_dirs" 18232 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18233 18234 18235} # as_fn_mkdir_p 18236if mkdir -p . 2>/dev/null; then 18237 as_mkdir_p='mkdir -p "$as_dir"' 18238else 18239 test -d ./-p && rmdir ./-p 18240 as_mkdir_p=false 18241fi 18242 18243 18244# as_fn_executable_p FILE 18245# ----------------------- 18246# Test if FILE is an executable regular file. 18247as_fn_executable_p () 18248{ 18249 test -f "$1" && test -x "$1" 18250} # as_fn_executable_p 18251as_test_x='test -x' 18252as_executable_p=as_fn_executable_p 18253 18254# Sed expression to map a string onto a valid CPP name. 18255as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18256 18257# Sed expression to map a string onto a valid variable name. 18258as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18259 18260 18261exec 6>&1 18262## ----------------------------------- ## 18263## Main body of $CONFIG_STATUS script. ## 18264## ----------------------------------- ## 18265_ASEOF 18266test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18267 18268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18269# Save the log message, to keep $0 and so on meaningful, and to 18270# report actual input values of CONFIG_FILES etc. instead of their 18271# values after options handling. 18272ac_log=" 18273This file was extended by libnpupnp $as_me 4.1.5, which was 18274generated by GNU Autoconf 2.69. Invocation command line was 18275 18276 CONFIG_FILES = $CONFIG_FILES 18277 CONFIG_HEADERS = $CONFIG_HEADERS 18278 CONFIG_LINKS = $CONFIG_LINKS 18279 CONFIG_COMMANDS = $CONFIG_COMMANDS 18280 $ $0 $@ 18281 18282on `(hostname || uname -n) 2>/dev/null | sed 1q` 18283" 18284 18285_ACEOF 18286 18287case $ac_config_files in *" 18288"*) set x $ac_config_files; shift; ac_config_files=$*;; 18289esac 18290 18291case $ac_config_headers in *" 18292"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18293esac 18294 18295 18296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18297# Files that config.status was made for. 18298config_files="$ac_config_files" 18299config_headers="$ac_config_headers" 18300config_commands="$ac_config_commands" 18301 18302_ACEOF 18303 18304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18305ac_cs_usage="\ 18306\`$as_me' instantiates files and other configuration actions 18307from templates according to the current configuration. Unless the files 18308and actions are specified as TAGs, all are instantiated by default. 18309 18310Usage: $0 [OPTION]... [TAG]... 18311 18312 -h, --help print this help, then exit 18313 -V, --version print version number and configuration settings, then exit 18314 --config print configuration, then exit 18315 -q, --quiet, --silent 18316 do not print progress messages 18317 -d, --debug don't remove temporary files 18318 --recheck update $as_me by reconfiguring in the same conditions 18319 --file=FILE[:TEMPLATE] 18320 instantiate the configuration file FILE 18321 --header=FILE[:TEMPLATE] 18322 instantiate the configuration header FILE 18323 18324Configuration files: 18325$config_files 18326 18327Configuration headers: 18328$config_headers 18329 18330Configuration commands: 18331$config_commands 18332 18333Report bugs to <jfd@recoll.org>." 18334 18335_ACEOF 18336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18337ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18338ac_cs_version="\\ 18339libnpupnp config.status 4.1.5 18340configured by $0, generated by GNU Autoconf 2.69, 18341 with options \\"\$ac_cs_config\\" 18342 18343Copyright (C) 2012 Free Software Foundation, Inc. 18344This config.status script is free software; the Free Software Foundation 18345gives unlimited permission to copy, distribute and modify it." 18346 18347ac_pwd='$ac_pwd' 18348srcdir='$srcdir' 18349INSTALL='$INSTALL' 18350MKDIR_P='$MKDIR_P' 18351AWK='$AWK' 18352test -n "\$AWK" || AWK=awk 18353_ACEOF 18354 18355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18356# The default lists apply if the user does not specify any file. 18357ac_need_defaults=: 18358while test $# != 0 18359do 18360 case $1 in 18361 --*=?*) 18362 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18363 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18364 ac_shift=: 18365 ;; 18366 --*=) 18367 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18368 ac_optarg= 18369 ac_shift=: 18370 ;; 18371 *) 18372 ac_option=$1 18373 ac_optarg=$2 18374 ac_shift=shift 18375 ;; 18376 esac 18377 18378 case $ac_option in 18379 # Handling of the options. 18380 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18381 ac_cs_recheck=: ;; 18382 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18383 $as_echo "$ac_cs_version"; exit ;; 18384 --config | --confi | --conf | --con | --co | --c ) 18385 $as_echo "$ac_cs_config"; exit ;; 18386 --debug | --debu | --deb | --de | --d | -d ) 18387 debug=: ;; 18388 --file | --fil | --fi | --f ) 18389 $ac_shift 18390 case $ac_optarg in 18391 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18392 '') as_fn_error $? "missing file argument" ;; 18393 esac 18394 as_fn_append CONFIG_FILES " '$ac_optarg'" 18395 ac_need_defaults=false;; 18396 --header | --heade | --head | --hea ) 18397 $ac_shift 18398 case $ac_optarg in 18399 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18400 esac 18401 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18402 ac_need_defaults=false;; 18403 --he | --h) 18404 # Conflict between --help and --header 18405 as_fn_error $? "ambiguous option: \`$1' 18406Try \`$0 --help' for more information.";; 18407 --help | --hel | -h ) 18408 $as_echo "$ac_cs_usage"; exit ;; 18409 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18410 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18411 ac_cs_silent=: ;; 18412 18413 # This is an error. 18414 -*) as_fn_error $? "unrecognized option: \`$1' 18415Try \`$0 --help' for more information." ;; 18416 18417 *) as_fn_append ac_config_targets " $1" 18418 ac_need_defaults=false ;; 18419 18420 esac 18421 shift 18422done 18423 18424ac_configure_extra_args= 18425 18426if $ac_cs_silent; then 18427 exec 6>/dev/null 18428 ac_configure_extra_args="$ac_configure_extra_args --silent" 18429fi 18430 18431_ACEOF 18432cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18433if \$ac_cs_recheck; then 18434 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18435 shift 18436 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18437 CONFIG_SHELL='$SHELL' 18438 export CONFIG_SHELL 18439 exec "\$@" 18440fi 18441 18442_ACEOF 18443cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18444exec 5>>config.log 18445{ 18446 echo 18447 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18448## Running $as_me. ## 18449_ASBOX 18450 $as_echo "$ac_log" 18451} >&5 18452 18453_ACEOF 18454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18455# 18456# INIT-COMMANDS 18457# 18458AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 18459 18460 18461# The HP-UX ksh and POSIX shell print the target directory to stdout 18462# if CDPATH is set. 18463(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18464 18465sed_quote_subst='$sed_quote_subst' 18466double_quote_subst='$double_quote_subst' 18467delay_variable_subst='$delay_variable_subst' 18468enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18469macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18470macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18471enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18472pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18473enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18474shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 18475SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18476ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18477PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18478host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18479host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18480host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18481build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18482build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18483build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18484SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18485Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18486GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18487EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18488FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18489LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18490NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18491LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18492max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18493ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18494exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18495lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18496lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18497lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18498lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18499lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18500reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18501reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18502OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18503deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18504file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18505file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18506want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18507DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18508sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18509AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18510AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18511archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18512STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18513RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18514old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18515old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18516old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18517lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18518CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18519CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18520compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18521GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18522lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18523lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18524lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 18525lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18526lt_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"`' 18527lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 18528nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18529lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18530lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 18531objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18532MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18533lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18534lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18535lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18536lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18537lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18538need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18539MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18540DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18541NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18542LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18543OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18544OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18545libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18546shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18547extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18548archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18549enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18550export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18551whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18552compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18553old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18554old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18555archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18556archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18557module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18558module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18559with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18560allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18561no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18562hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18563hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18564hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18565hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18566hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18567hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18568hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18569inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18570link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18571always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18572export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18573exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18574include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18575prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18576postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18577file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18578variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18579need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18580need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18581version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18582runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18583shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18584shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18585libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18586library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18587soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18588install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18589postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18590postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18591finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18592finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18593hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18594sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18595configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 18596configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 18597hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18598enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18599enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18600enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18601old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18602striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18603compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 18604predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 18605postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 18606predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 18607postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 18608compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 18609LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 18610reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 18611reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18612old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18613compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 18614GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 18615lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 18616lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 18617lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 18618lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 18619lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 18620archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 18621enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 18622export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18623whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18624compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 18625old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18626old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18627archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18628archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18629module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18630module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18631with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 18632allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18633no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18634hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18635hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 18636hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 18637hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 18638hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 18639hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 18640hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 18641inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 18642link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 18643always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 18644export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18645exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18646include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18647prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18648postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18649file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 18650hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 18651compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 18652predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18653postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18654predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 18655postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 18656compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 18657 18658LTCC='$LTCC' 18659LTCFLAGS='$LTCFLAGS' 18660compiler='$compiler_DEFAULT' 18661 18662# A function that is used when there is no print builtin or printf. 18663func_fallback_echo () 18664{ 18665 eval 'cat <<_LTECHO_EOF 18666\$1 18667_LTECHO_EOF' 18668} 18669 18670# Quote evaled strings. 18671for var in SHELL \ 18672ECHO \ 18673PATH_SEPARATOR \ 18674SED \ 18675GREP \ 18676EGREP \ 18677FGREP \ 18678LD \ 18679NM \ 18680LN_S \ 18681lt_SP2NL \ 18682lt_NL2SP \ 18683reload_flag \ 18684OBJDUMP \ 18685deplibs_check_method \ 18686file_magic_cmd \ 18687file_magic_glob \ 18688want_nocaseglob \ 18689DLLTOOL \ 18690sharedlib_from_linklib_cmd \ 18691AR \ 18692AR_FLAGS \ 18693archiver_list_spec \ 18694STRIP \ 18695RANLIB \ 18696CC \ 18697CFLAGS \ 18698compiler \ 18699lt_cv_sys_global_symbol_pipe \ 18700lt_cv_sys_global_symbol_to_cdecl \ 18701lt_cv_sys_global_symbol_to_import \ 18702lt_cv_sys_global_symbol_to_c_name_address \ 18703lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18704lt_cv_nm_interface \ 18705nm_file_list_spec \ 18706lt_cv_truncate_bin \ 18707lt_prog_compiler_no_builtin_flag \ 18708lt_prog_compiler_pic \ 18709lt_prog_compiler_wl \ 18710lt_prog_compiler_static \ 18711lt_cv_prog_compiler_c_o \ 18712need_locks \ 18713MANIFEST_TOOL \ 18714DSYMUTIL \ 18715NMEDIT \ 18716LIPO \ 18717OTOOL \ 18718OTOOL64 \ 18719shrext_cmds \ 18720export_dynamic_flag_spec \ 18721whole_archive_flag_spec \ 18722compiler_needs_object \ 18723with_gnu_ld \ 18724allow_undefined_flag \ 18725no_undefined_flag \ 18726hardcode_libdir_flag_spec \ 18727hardcode_libdir_separator \ 18728exclude_expsyms \ 18729include_expsyms \ 18730file_list_spec \ 18731variables_saved_for_relink \ 18732libname_spec \ 18733library_names_spec \ 18734soname_spec \ 18735install_override_mode \ 18736finish_eval \ 18737old_striplib \ 18738striplib \ 18739compiler_lib_search_dirs \ 18740predep_objects \ 18741postdep_objects \ 18742predeps \ 18743postdeps \ 18744compiler_lib_search_path \ 18745LD_CXX \ 18746reload_flag_CXX \ 18747compiler_CXX \ 18748lt_prog_compiler_no_builtin_flag_CXX \ 18749lt_prog_compiler_pic_CXX \ 18750lt_prog_compiler_wl_CXX \ 18751lt_prog_compiler_static_CXX \ 18752lt_cv_prog_compiler_c_o_CXX \ 18753export_dynamic_flag_spec_CXX \ 18754whole_archive_flag_spec_CXX \ 18755compiler_needs_object_CXX \ 18756with_gnu_ld_CXX \ 18757allow_undefined_flag_CXX \ 18758no_undefined_flag_CXX \ 18759hardcode_libdir_flag_spec_CXX \ 18760hardcode_libdir_separator_CXX \ 18761exclude_expsyms_CXX \ 18762include_expsyms_CXX \ 18763file_list_spec_CXX \ 18764compiler_lib_search_dirs_CXX \ 18765predep_objects_CXX \ 18766postdep_objects_CXX \ 18767predeps_CXX \ 18768postdeps_CXX \ 18769compiler_lib_search_path_CXX; do 18770 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18771 *[\\\\\\\`\\"\\\$]*) 18772 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18773 ;; 18774 *) 18775 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18776 ;; 18777 esac 18778done 18779 18780# Double-quote double-evaled strings. 18781for var in reload_cmds \ 18782old_postinstall_cmds \ 18783old_postuninstall_cmds \ 18784old_archive_cmds \ 18785extract_expsyms_cmds \ 18786old_archive_from_new_cmds \ 18787old_archive_from_expsyms_cmds \ 18788archive_cmds \ 18789archive_expsym_cmds \ 18790module_cmds \ 18791module_expsym_cmds \ 18792export_symbols_cmds \ 18793prelink_cmds \ 18794postlink_cmds \ 18795postinstall_cmds \ 18796postuninstall_cmds \ 18797finish_cmds \ 18798sys_lib_search_path_spec \ 18799configure_time_dlsearch_path \ 18800configure_time_lt_sys_library_path \ 18801reload_cmds_CXX \ 18802old_archive_cmds_CXX \ 18803old_archive_from_new_cmds_CXX \ 18804old_archive_from_expsyms_cmds_CXX \ 18805archive_cmds_CXX \ 18806archive_expsym_cmds_CXX \ 18807module_cmds_CXX \ 18808module_expsym_cmds_CXX \ 18809export_symbols_cmds_CXX \ 18810prelink_cmds_CXX \ 18811postlink_cmds_CXX; do 18812 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18813 *[\\\\\\\`\\"\\\$]*) 18814 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 18815 ;; 18816 *) 18817 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18818 ;; 18819 esac 18820done 18821 18822ac_aux_dir='$ac_aux_dir' 18823 18824# See if we are running on zsh, and set the options that allow our 18825# commands through without removal of \ escapes INIT. 18826if test -n "\${ZSH_VERSION+set}"; then 18827 setopt NO_GLOB_SUBST 18828fi 18829 18830 18831 PACKAGE='$PACKAGE' 18832 VERSION='$VERSION' 18833 RM='$RM' 18834 ofile='$ofile' 18835 18836 18837 18838 18839 18840 18841_ACEOF 18842 18843cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18844 18845# Handling of arguments. 18846for ac_config_target in $ac_config_targets 18847do 18848 case $ac_config_target in 18849 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18850 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18851 "autoconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS autoconfig.h" ;; 18852 "inc/upnpconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS inc/upnpconfig.h" ;; 18853 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18854 "libnpupnp.pc") CONFIG_FILES="$CONFIG_FILES libnpupnp.pc" ;; 18855 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 18856 18857 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18858 esac 18859done 18860 18861 18862# If the user did not use the arguments to specify the items to instantiate, 18863# then the envvar interface is used. Set only those that are not. 18864# We use the long form for the default assignment because of an extremely 18865# bizarre bug on SunOS 4.1.3. 18866if $ac_need_defaults; then 18867 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18868 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18869 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18870fi 18871 18872# Have a temporary directory for convenience. Make it in the build tree 18873# simply because there is no reason against having it here, and in addition, 18874# creating and moving files from /tmp can sometimes cause problems. 18875# Hook for its removal unless debugging. 18876# Note that there is a small window in which the directory will not be cleaned: 18877# after its creation but before its name has been assigned to `$tmp'. 18878$debug || 18879{ 18880 tmp= ac_tmp= 18881 trap 'exit_status=$? 18882 : "${ac_tmp:=$tmp}" 18883 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18884' 0 18885 trap 'as_fn_exit 1' 1 2 13 15 18886} 18887# Create a (secure) tmp directory for tmp files. 18888 18889{ 18890 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18891 test -d "$tmp" 18892} || 18893{ 18894 tmp=./conf$$-$RANDOM 18895 (umask 077 && mkdir "$tmp") 18896} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18897ac_tmp=$tmp 18898 18899# Set up the scripts for CONFIG_FILES section. 18900# No need to generate them if there are no CONFIG_FILES. 18901# This happens for instance with `./config.status config.h'. 18902if test -n "$CONFIG_FILES"; then 18903 18904 18905ac_cr=`echo X | tr X '\015'` 18906# On cygwin, bash can eat \r inside `` if the user requested igncr. 18907# But we know of no other shell where ac_cr would be empty at this 18908# point, so we can use a bashism as a fallback. 18909if test "x$ac_cr" = x; then 18910 eval ac_cr=\$\'\\r\' 18911fi 18912ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18913if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18914 ac_cs_awk_cr='\\r' 18915else 18916 ac_cs_awk_cr=$ac_cr 18917fi 18918 18919echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18920_ACEOF 18921 18922 18923{ 18924 echo "cat >conf$$subs.awk <<_ACEOF" && 18925 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18926 echo "_ACEOF" 18927} >conf$$subs.sh || 18928 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18929ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18930ac_delim='%!_!# ' 18931for ac_last_try in false false false false false :; do 18932 . ./conf$$subs.sh || 18933 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18934 18935 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18936 if test $ac_delim_n = $ac_delim_num; then 18937 break 18938 elif $ac_last_try; then 18939 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18940 else 18941 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18942 fi 18943done 18944rm -f conf$$subs.sh 18945 18946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18947cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18948_ACEOF 18949sed -n ' 18950h 18951s/^/S["/; s/!.*/"]=/ 18952p 18953g 18954s/^[^!]*!// 18955:repl 18956t repl 18957s/'"$ac_delim"'$// 18958t delim 18959:nl 18960h 18961s/\(.\{148\}\)..*/\1/ 18962t more1 18963s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18964p 18965n 18966b repl 18967:more1 18968s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18969p 18970g 18971s/.\{148\}// 18972t nl 18973:delim 18974h 18975s/\(.\{148\}\)..*/\1/ 18976t more2 18977s/["\\]/\\&/g; s/^/"/; s/$/"/ 18978p 18979b 18980:more2 18981s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18982p 18983g 18984s/.\{148\}// 18985t delim 18986' <conf$$subs.awk | sed ' 18987/^[^""]/{ 18988 N 18989 s/\n// 18990} 18991' >>$CONFIG_STATUS || ac_write_fail=1 18992rm -f conf$$subs.awk 18993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18994_ACAWK 18995cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18996 for (key in S) S_is_set[key] = 1 18997 FS = "" 18998 18999} 19000{ 19001 line = $ 0 19002 nfields = split(line, field, "@") 19003 substed = 0 19004 len = length(field[1]) 19005 for (i = 2; i < nfields; i++) { 19006 key = field[i] 19007 keylen = length(key) 19008 if (S_is_set[key]) { 19009 value = S[key] 19010 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19011 len += length(value) + length(field[++i]) 19012 substed = 1 19013 } else 19014 len += 1 + keylen 19015 } 19016 19017 print line 19018} 19019 19020_ACAWK 19021_ACEOF 19022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19023if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19024 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19025else 19026 cat 19027fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19028 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19029_ACEOF 19030 19031# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19032# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19033# trailing colons and then remove the whole line if VPATH becomes empty 19034# (actually we leave an empty line to preserve line numbers). 19035if test "x$srcdir" = x.; then 19036 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19037h 19038s/// 19039s/^/:/ 19040s/[ ]*$/:/ 19041s/:\$(srcdir):/:/g 19042s/:\${srcdir}:/:/g 19043s/:@srcdir@:/:/g 19044s/^:*// 19045s/:*$// 19046x 19047s/\(=[ ]*\).*/\1/ 19048G 19049s/\n// 19050s/^[^=]*=[ ]*$// 19051}' 19052fi 19053 19054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19055fi # test -n "$CONFIG_FILES" 19056 19057# Set up the scripts for CONFIG_HEADERS section. 19058# No need to generate them if there are no CONFIG_HEADERS. 19059# This happens for instance with `./config.status Makefile'. 19060if test -n "$CONFIG_HEADERS"; then 19061cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19062BEGIN { 19063_ACEOF 19064 19065# Transform confdefs.h into an awk script `defines.awk', embedded as 19066# here-document in config.status, that substitutes the proper values into 19067# config.h.in to produce config.h. 19068 19069# Create a delimiter string that does not exist in confdefs.h, to ease 19070# handling of long lines. 19071ac_delim='%!_!# ' 19072for ac_last_try in false false :; do 19073 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19074 if test -z "$ac_tt"; then 19075 break 19076 elif $ac_last_try; then 19077 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19078 else 19079 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19080 fi 19081done 19082 19083# For the awk script, D is an array of macro values keyed by name, 19084# likewise P contains macro parameters if any. Preserve backslash 19085# newline sequences. 19086 19087ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19088sed -n ' 19089s/.\{148\}/&'"$ac_delim"'/g 19090t rset 19091:rset 19092s/^[ ]*#[ ]*define[ ][ ]*/ / 19093t def 19094d 19095:def 19096s/\\$// 19097t bsnl 19098s/["\\]/\\&/g 19099s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19100D["\1"]=" \3"/p 19101s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19102d 19103:bsnl 19104s/["\\]/\\&/g 19105s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19106D["\1"]=" \3\\\\\\n"\\/p 19107t cont 19108s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19109t cont 19110d 19111:cont 19112n 19113s/.\{148\}/&'"$ac_delim"'/g 19114t clear 19115:clear 19116s/\\$// 19117t bsnlc 19118s/["\\]/\\&/g; s/^/"/; s/$/"/p 19119d 19120:bsnlc 19121s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19122b cont 19123' <confdefs.h | sed ' 19124s/'"$ac_delim"'/"\\\ 19125"/g' >>$CONFIG_STATUS || ac_write_fail=1 19126 19127cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19128 for (key in D) D_is_set[key] = 1 19129 FS = "" 19130} 19131/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19132 line = \$ 0 19133 split(line, arg, " ") 19134 if (arg[1] == "#") { 19135 defundef = arg[2] 19136 mac1 = arg[3] 19137 } else { 19138 defundef = substr(arg[1], 2) 19139 mac1 = arg[2] 19140 } 19141 split(mac1, mac2, "(") #) 19142 macro = mac2[1] 19143 prefix = substr(line, 1, index(line, defundef) - 1) 19144 if (D_is_set[macro]) { 19145 # Preserve the white space surrounding the "#". 19146 print prefix "define", macro P[macro] D[macro] 19147 next 19148 } else { 19149 # Replace #undef with comments. This is necessary, for example, 19150 # in the case of _POSIX_SOURCE, which is predefined and required 19151 # on some systems where configure will not decide to define it. 19152 if (defundef == "undef") { 19153 print "/*", prefix defundef, macro, "*/" 19154 next 19155 } 19156 } 19157} 19158{ print } 19159_ACAWK 19160_ACEOF 19161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19162 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19163fi # test -n "$CONFIG_HEADERS" 19164 19165 19166eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19167shift 19168for ac_tag 19169do 19170 case $ac_tag in 19171 :[FHLC]) ac_mode=$ac_tag; continue;; 19172 esac 19173 case $ac_mode$ac_tag in 19174 :[FHL]*:*);; 19175 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19176 :[FH]-) ac_tag=-:-;; 19177 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19178 esac 19179 ac_save_IFS=$IFS 19180 IFS=: 19181 set x $ac_tag 19182 IFS=$ac_save_IFS 19183 shift 19184 ac_file=$1 19185 shift 19186 19187 case $ac_mode in 19188 :L) ac_source=$1;; 19189 :[FH]) 19190 ac_file_inputs= 19191 for ac_f 19192 do 19193 case $ac_f in 19194 -) ac_f="$ac_tmp/stdin";; 19195 *) # Look for the file first in the build tree, then in the source tree 19196 # (if the path is not absolute). The absolute path cannot be DOS-style, 19197 # because $ac_f cannot contain `:'. 19198 test -f "$ac_f" || 19199 case $ac_f in 19200 [\\/$]*) false;; 19201 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19202 esac || 19203 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19204 esac 19205 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19206 as_fn_append ac_file_inputs " '$ac_f'" 19207 done 19208 19209 # Let's still pretend it is `configure' which instantiates (i.e., don't 19210 # use $as_me), people would be surprised to read: 19211 # /* config.h. Generated by config.status. */ 19212 configure_input='Generated from '` 19213 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19214 `' by configure.' 19215 if test x"$ac_file" != x-; then 19216 configure_input="$ac_file. $configure_input" 19217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19218$as_echo "$as_me: creating $ac_file" >&6;} 19219 fi 19220 # Neutralize special characters interpreted by sed in replacement strings. 19221 case $configure_input in #( 19222 *\&* | *\|* | *\\* ) 19223 ac_sed_conf_input=`$as_echo "$configure_input" | 19224 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19225 *) ac_sed_conf_input=$configure_input;; 19226 esac 19227 19228 case $ac_tag in 19229 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19230 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19231 esac 19232 ;; 19233 esac 19234 19235 ac_dir=`$as_dirname -- "$ac_file" || 19236$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19237 X"$ac_file" : 'X\(//\)[^/]' \| \ 19238 X"$ac_file" : 'X\(//\)$' \| \ 19239 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19240$as_echo X"$ac_file" | 19241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19242 s//\1/ 19243 q 19244 } 19245 /^X\(\/\/\)[^/].*/{ 19246 s//\1/ 19247 q 19248 } 19249 /^X\(\/\/\)$/{ 19250 s//\1/ 19251 q 19252 } 19253 /^X\(\/\).*/{ 19254 s//\1/ 19255 q 19256 } 19257 s/.*/./; q'` 19258 as_dir="$ac_dir"; as_fn_mkdir_p 19259 ac_builddir=. 19260 19261case "$ac_dir" in 19262.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19263*) 19264 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19265 # A ".." for each directory in $ac_dir_suffix. 19266 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19267 case $ac_top_builddir_sub in 19268 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19269 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19270 esac ;; 19271esac 19272ac_abs_top_builddir=$ac_pwd 19273ac_abs_builddir=$ac_pwd$ac_dir_suffix 19274# for backward compatibility: 19275ac_top_builddir=$ac_top_build_prefix 19276 19277case $srcdir in 19278 .) # We are building in place. 19279 ac_srcdir=. 19280 ac_top_srcdir=$ac_top_builddir_sub 19281 ac_abs_top_srcdir=$ac_pwd ;; 19282 [\\/]* | ?:[\\/]* ) # Absolute name. 19283 ac_srcdir=$srcdir$ac_dir_suffix; 19284 ac_top_srcdir=$srcdir 19285 ac_abs_top_srcdir=$srcdir ;; 19286 *) # Relative name. 19287 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19288 ac_top_srcdir=$ac_top_build_prefix$srcdir 19289 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19290esac 19291ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19292 19293 19294 case $ac_mode in 19295 :F) 19296 # 19297 # CONFIG_FILE 19298 # 19299 19300 case $INSTALL in 19301 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19302 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19303 esac 19304 ac_MKDIR_P=$MKDIR_P 19305 case $MKDIR_P in 19306 [\\/$]* | ?:[\\/]* ) ;; 19307 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19308 esac 19309_ACEOF 19310 19311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19312# If the template does not know about datarootdir, expand it. 19313# FIXME: This hack should be removed a few years after 2.60. 19314ac_datarootdir_hack=; ac_datarootdir_seen= 19315ac_sed_dataroot=' 19316/datarootdir/ { 19317 p 19318 q 19319} 19320/@datadir@/p 19321/@docdir@/p 19322/@infodir@/p 19323/@localedir@/p 19324/@mandir@/p' 19325case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19326*datarootdir*) ac_datarootdir_seen=yes;; 19327*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19329$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19330_ACEOF 19331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19332 ac_datarootdir_hack=' 19333 s&@datadir@&$datadir&g 19334 s&@docdir@&$docdir&g 19335 s&@infodir@&$infodir&g 19336 s&@localedir@&$localedir&g 19337 s&@mandir@&$mandir&g 19338 s&\\\${datarootdir}&$datarootdir&g' ;; 19339esac 19340_ACEOF 19341 19342# Neutralize VPATH when `$srcdir' = `.'. 19343# Shell code in configure.ac might set extrasub. 19344# FIXME: do we really want to maintain this feature? 19345cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19346ac_sed_extra="$ac_vpsub 19347$extrasub 19348_ACEOF 19349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19350:t 19351/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19352s|@configure_input@|$ac_sed_conf_input|;t t 19353s&@top_builddir@&$ac_top_builddir_sub&;t t 19354s&@top_build_prefix@&$ac_top_build_prefix&;t t 19355s&@srcdir@&$ac_srcdir&;t t 19356s&@abs_srcdir@&$ac_abs_srcdir&;t t 19357s&@top_srcdir@&$ac_top_srcdir&;t t 19358s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19359s&@builddir@&$ac_builddir&;t t 19360s&@abs_builddir@&$ac_abs_builddir&;t t 19361s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19362s&@INSTALL@&$ac_INSTALL&;t t 19363s&@MKDIR_P@&$ac_MKDIR_P&;t t 19364$ac_datarootdir_hack 19365" 19366eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19367 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19368 19369test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19370 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19371 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19372 "$ac_tmp/out"`; test -z "$ac_out"; } && 19373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19374which seems to be undefined. Please make sure it is defined" >&5 19375$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19376which seems to be undefined. Please make sure it is defined" >&2;} 19377 19378 rm -f "$ac_tmp/stdin" 19379 case $ac_file in 19380 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19381 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19382 esac \ 19383 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19384 ;; 19385 :H) 19386 # 19387 # CONFIG_HEADER 19388 # 19389 if test x"$ac_file" != x-; then 19390 { 19391 $as_echo "/* $configure_input */" \ 19392 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19393 } >"$ac_tmp/config.h" \ 19394 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19395 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19396 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19397$as_echo "$as_me: $ac_file is unchanged" >&6;} 19398 else 19399 rm -f "$ac_file" 19400 mv "$ac_tmp/config.h" "$ac_file" \ 19401 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19402 fi 19403 else 19404 $as_echo "/* $configure_input */" \ 19405 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19406 || as_fn_error $? "could not create -" "$LINENO" 5 19407 fi 19408# Compute "$ac_file"'s index in $config_headers. 19409_am_arg="$ac_file" 19410_am_stamp_count=1 19411for _am_header in $config_headers :; do 19412 case $_am_header in 19413 $_am_arg | $_am_arg:* ) 19414 break ;; 19415 * ) 19416 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19417 esac 19418done 19419echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19420$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19421 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19422 X"$_am_arg" : 'X\(//\)$' \| \ 19423 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19424$as_echo X"$_am_arg" | 19425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19426 s//\1/ 19427 q 19428 } 19429 /^X\(\/\/\)[^/].*/{ 19430 s//\1/ 19431 q 19432 } 19433 /^X\(\/\/\)$/{ 19434 s//\1/ 19435 q 19436 } 19437 /^X\(\/\).*/{ 19438 s//\1/ 19439 q 19440 } 19441 s/.*/./; q'`/stamp-h$_am_stamp_count 19442 ;; 19443 19444 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19445$as_echo "$as_me: executing $ac_file commands" >&6;} 19446 ;; 19447 esac 19448 19449 19450 case $ac_file$ac_mode in 19451 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19452 # Older Autoconf quotes --file arguments for eval, but not when files 19453 # are listed without --file. Let's play safe and only enable the eval 19454 # if we detect the quoting. 19455 # TODO: see whether this extra hack can be removed once we start 19456 # requiring Autoconf 2.70 or later. 19457 case $CONFIG_FILES in #( 19458 *\'*) : 19459 eval set x "$CONFIG_FILES" ;; #( 19460 *) : 19461 set x $CONFIG_FILES ;; #( 19462 *) : 19463 ;; 19464esac 19465 shift 19466 # Used to flag and report bootstrapping failures. 19467 am_rc=0 19468 for am_mf 19469 do 19470 # Strip MF so we end up with the name of the file. 19471 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 19472 # Check whether this is an Automake generated Makefile which includes 19473 # dependency-tracking related rules and includes. 19474 # Grep'ing the whole file directly is not great: AIX grep has a line 19475 # limit of 2048, but all sed's we know have understand at least 4000. 19476 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 19477 || continue 19478 am_dirpart=`$as_dirname -- "$am_mf" || 19479$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19480 X"$am_mf" : 'X\(//\)[^/]' \| \ 19481 X"$am_mf" : 'X\(//\)$' \| \ 19482 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19483$as_echo X"$am_mf" | 19484 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19485 s//\1/ 19486 q 19487 } 19488 /^X\(\/\/\)[^/].*/{ 19489 s//\1/ 19490 q 19491 } 19492 /^X\(\/\/\)$/{ 19493 s//\1/ 19494 q 19495 } 19496 /^X\(\/\).*/{ 19497 s//\1/ 19498 q 19499 } 19500 s/.*/./; q'` 19501 am_filepart=`$as_basename -- "$am_mf" || 19502$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 19503 X"$am_mf" : 'X\(//\)$' \| \ 19504 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19505$as_echo X/"$am_mf" | 19506 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19507 s//\1/ 19508 q 19509 } 19510 /^X\/\(\/\/\)$/{ 19511 s//\1/ 19512 q 19513 } 19514 /^X\/\(\/\).*/{ 19515 s//\1/ 19516 q 19517 } 19518 s/.*/./; q'` 19519 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 19520 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19521 | $MAKE -f - am--depfiles" >&5 19522 (cd "$am_dirpart" \ 19523 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19524 | $MAKE -f - am--depfiles) >&5 2>&5 19525 ac_status=$? 19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19527 (exit $ac_status); } || am_rc=$? 19528 done 19529 if test $am_rc -ne 0; then 19530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19532as_fn_error $? "Something went wrong bootstrapping makefile fragments 19533 for automatic dependency tracking. Try re-running configure with the 19534 '--disable-dependency-tracking' option to at least be able to build 19535 the package (albeit without support for automatic dependency tracking). 19536See \`config.log' for more details" "$LINENO" 5; } 19537 fi 19538 { am_dirpart=; unset am_dirpart;} 19539 { am_filepart=; unset am_filepart;} 19540 { am_mf=; unset am_mf;} 19541 { am_rc=; unset am_rc;} 19542 rm -f conftest-deps.mk 19543} 19544 ;; 19545 "libtool":C) 19546 19547 # See if we are running on zsh, and set the options that allow our 19548 # commands through without removal of \ escapes. 19549 if test -n "${ZSH_VERSION+set}"; then 19550 setopt NO_GLOB_SUBST 19551 fi 19552 19553 cfgfile=${ofile}T 19554 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19555 $RM "$cfgfile" 19556 19557 cat <<_LT_EOF >> "$cfgfile" 19558#! $SHELL 19559# Generated automatically by $as_me ($PACKAGE) $VERSION 19560# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19561 19562# Provide generalized library-building support services. 19563# Written by Gordon Matzigkeit, 1996 19564 19565# Copyright (C) 2014 Free Software Foundation, Inc. 19566# This is free software; see the source for copying conditions. There is NO 19567# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 19568 19569# GNU Libtool is free software; you can redistribute it and/or modify 19570# it under the terms of the GNU General Public License as published by 19571# the Free Software Foundation; either version 2 of of the License, or 19572# (at your option) any later version. 19573# 19574# As a special exception to the GNU General Public License, if you 19575# distribute this file as part of a program or library that is built 19576# using GNU Libtool, you may include this file under the same 19577# distribution terms that you use for the rest of that program. 19578# 19579# GNU Libtool is distributed in the hope that it will be useful, but 19580# WITHOUT ANY WARRANTY; without even the implied warranty of 19581# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19582# GNU General Public License for more details. 19583# 19584# You should have received a copy of the GNU General Public License 19585# along with this program. If not, see <http://www.gnu.org/licenses/>. 19586 19587 19588# The names of the tagged configurations supported by this script. 19589available_tags='CXX ' 19590 19591# Configured defaults for sys_lib_dlsearch_path munging. 19592: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 19593 19594# ### BEGIN LIBTOOL CONFIG 19595 19596# Whether or not to build static libraries. 19597build_old_libs=$enable_static 19598 19599# Which release of libtool.m4 was used? 19600macro_version=$macro_version 19601macro_revision=$macro_revision 19602 19603# Whether or not to build shared libraries. 19604build_libtool_libs=$enable_shared 19605 19606# What type of objects to build. 19607pic_mode=$pic_mode 19608 19609# Whether or not to optimize for fast installation. 19610fast_install=$enable_fast_install 19611 19612# Shared archive member basename,for filename based shared library versioning on AIX. 19613shared_archive_member_spec=$shared_archive_member_spec 19614 19615# Shell to use when invoking shell scripts. 19616SHELL=$lt_SHELL 19617 19618# An echo program that protects backslashes. 19619ECHO=$lt_ECHO 19620 19621# The PATH separator for the build system. 19622PATH_SEPARATOR=$lt_PATH_SEPARATOR 19623 19624# The host system. 19625host_alias=$host_alias 19626host=$host 19627host_os=$host_os 19628 19629# The build system. 19630build_alias=$build_alias 19631build=$build 19632build_os=$build_os 19633 19634# A sed program that does not truncate output. 19635SED=$lt_SED 19636 19637# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19638Xsed="\$SED -e 1s/^X//" 19639 19640# A grep program that handles long lines. 19641GREP=$lt_GREP 19642 19643# An ERE matcher. 19644EGREP=$lt_EGREP 19645 19646# A literal string matcher. 19647FGREP=$lt_FGREP 19648 19649# A BSD- or MS-compatible name lister. 19650NM=$lt_NM 19651 19652# Whether we need soft or hard links. 19653LN_S=$lt_LN_S 19654 19655# What is the maximum length of a command? 19656max_cmd_len=$max_cmd_len 19657 19658# Object file suffix (normally "o"). 19659objext=$ac_objext 19660 19661# Executable file suffix (normally ""). 19662exeext=$exeext 19663 19664# whether the shell understands "unset". 19665lt_unset=$lt_unset 19666 19667# turn spaces into newlines. 19668SP2NL=$lt_lt_SP2NL 19669 19670# turn newlines into spaces. 19671NL2SP=$lt_lt_NL2SP 19672 19673# convert \$build file names to \$host format. 19674to_host_file_cmd=$lt_cv_to_host_file_cmd 19675 19676# convert \$build files to toolchain format. 19677to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19678 19679# An object symbol dumper. 19680OBJDUMP=$lt_OBJDUMP 19681 19682# Method to check whether dependent libraries are shared objects. 19683deplibs_check_method=$lt_deplibs_check_method 19684 19685# Command to use when deplibs_check_method = "file_magic". 19686file_magic_cmd=$lt_file_magic_cmd 19687 19688# How to find potential files when deplibs_check_method = "file_magic". 19689file_magic_glob=$lt_file_magic_glob 19690 19691# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19692want_nocaseglob=$lt_want_nocaseglob 19693 19694# DLL creation program. 19695DLLTOOL=$lt_DLLTOOL 19696 19697# Command to associate shared and link libraries. 19698sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19699 19700# The archiver. 19701AR=$lt_AR 19702 19703# Flags to create an archive. 19704AR_FLAGS=$lt_AR_FLAGS 19705 19706# How to feed a file listing to the archiver. 19707archiver_list_spec=$lt_archiver_list_spec 19708 19709# A symbol stripping program. 19710STRIP=$lt_STRIP 19711 19712# Commands used to install an old-style archive. 19713RANLIB=$lt_RANLIB 19714old_postinstall_cmds=$lt_old_postinstall_cmds 19715old_postuninstall_cmds=$lt_old_postuninstall_cmds 19716 19717# Whether to use a lock for old archive extraction. 19718lock_old_archive_extraction=$lock_old_archive_extraction 19719 19720# A C compiler. 19721LTCC=$lt_CC 19722 19723# LTCC compiler flags. 19724LTCFLAGS=$lt_CFLAGS 19725 19726# Take the output of nm and produce a listing of raw symbols and C names. 19727global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19728 19729# Transform the output of nm in a proper C declaration. 19730global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19731 19732# Transform the output of nm into a list of symbols to manually relocate. 19733global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 19734 19735# Transform the output of nm in a C name address pair. 19736global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19737 19738# Transform the output of nm in a C name address pair when lib prefix is needed. 19739global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19740 19741# The name lister interface. 19742nm_interface=$lt_lt_cv_nm_interface 19743 19744# Specify filename containing input files for \$NM. 19745nm_file_list_spec=$lt_nm_file_list_spec 19746 19747# The root where to search for dependent libraries,and where our libraries should be installed. 19748lt_sysroot=$lt_sysroot 19749 19750# Command to truncate a binary pipe. 19751lt_truncate_bin=$lt_lt_cv_truncate_bin 19752 19753# The name of the directory that contains temporary libtool files. 19754objdir=$objdir 19755 19756# Used to examine libraries when file_magic_cmd begins with "file". 19757MAGIC_CMD=$MAGIC_CMD 19758 19759# Must we lock files when doing compilation? 19760need_locks=$lt_need_locks 19761 19762# Manifest tool. 19763MANIFEST_TOOL=$lt_MANIFEST_TOOL 19764 19765# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19766DSYMUTIL=$lt_DSYMUTIL 19767 19768# Tool to change global to local symbols on Mac OS X. 19769NMEDIT=$lt_NMEDIT 19770 19771# Tool to manipulate fat objects and archives on Mac OS X. 19772LIPO=$lt_LIPO 19773 19774# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19775OTOOL=$lt_OTOOL 19776 19777# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19778OTOOL64=$lt_OTOOL64 19779 19780# Old archive suffix (normally "a"). 19781libext=$libext 19782 19783# Shared library suffix (normally ".so"). 19784shrext_cmds=$lt_shrext_cmds 19785 19786# The commands to extract the exported symbol list from a shared archive. 19787extract_expsyms_cmds=$lt_extract_expsyms_cmds 19788 19789# Variables whose values should be saved in libtool wrapper scripts and 19790# restored at link time. 19791variables_saved_for_relink=$lt_variables_saved_for_relink 19792 19793# Do we need the "lib" prefix for modules? 19794need_lib_prefix=$need_lib_prefix 19795 19796# Do we need a version for libraries? 19797need_version=$need_version 19798 19799# Library versioning type. 19800version_type=$version_type 19801 19802# Shared library runtime path variable. 19803runpath_var=$runpath_var 19804 19805# Shared library path variable. 19806shlibpath_var=$shlibpath_var 19807 19808# Is shlibpath searched before the hard-coded library search path? 19809shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19810 19811# Format of library name prefix. 19812libname_spec=$lt_libname_spec 19813 19814# List of archive names. First name is the real one, the rest are links. 19815# The last name is the one that the linker finds with -lNAME 19816library_names_spec=$lt_library_names_spec 19817 19818# The coded name of the library, if different from the real name. 19819soname_spec=$lt_soname_spec 19820 19821# Permission mode override for installation of shared libraries. 19822install_override_mode=$lt_install_override_mode 19823 19824# Command to use after installation of a shared archive. 19825postinstall_cmds=$lt_postinstall_cmds 19826 19827# Command to use after uninstallation of a shared archive. 19828postuninstall_cmds=$lt_postuninstall_cmds 19829 19830# Commands used to finish a libtool library installation in a directory. 19831finish_cmds=$lt_finish_cmds 19832 19833# As "finish_cmds", except a single script fragment to be evaled but 19834# not shown. 19835finish_eval=$lt_finish_eval 19836 19837# Whether we should hardcode library paths into libraries. 19838hardcode_into_libs=$hardcode_into_libs 19839 19840# Compile-time system search path for libraries. 19841sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19842 19843# Detected run-time system search path for libraries. 19844sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 19845 19846# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 19847configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 19848 19849# Whether dlopen is supported. 19850dlopen_support=$enable_dlopen 19851 19852# Whether dlopen of programs is supported. 19853dlopen_self=$enable_dlopen_self 19854 19855# Whether dlopen of statically linked programs is supported. 19856dlopen_self_static=$enable_dlopen_self_static 19857 19858# Commands to strip libraries. 19859old_striplib=$lt_old_striplib 19860striplib=$lt_striplib 19861 19862 19863# The linker used to build libraries. 19864LD=$lt_LD 19865 19866# How to create reloadable object files. 19867reload_flag=$lt_reload_flag 19868reload_cmds=$lt_reload_cmds 19869 19870# Commands used to build an old-style archive. 19871old_archive_cmds=$lt_old_archive_cmds 19872 19873# A language specific compiler. 19874CC=$lt_compiler 19875 19876# Is the compiler the GNU compiler? 19877with_gcc=$GCC 19878 19879# Compiler flag to turn off builtin functions. 19880no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19881 19882# Additional compiler flags for building library objects. 19883pic_flag=$lt_lt_prog_compiler_pic 19884 19885# How to pass a linker flag through the compiler. 19886wl=$lt_lt_prog_compiler_wl 19887 19888# Compiler flag to prevent dynamic linking. 19889link_static_flag=$lt_lt_prog_compiler_static 19890 19891# Does compiler simultaneously support -c and -o options? 19892compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19893 19894# Whether or not to add -lc for building shared libraries. 19895build_libtool_need_lc=$archive_cmds_need_lc 19896 19897# Whether or not to disallow shared libs when runtime libs are static. 19898allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19899 19900# Compiler flag to allow reflexive dlopens. 19901export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19902 19903# Compiler flag to generate shared objects directly from archives. 19904whole_archive_flag_spec=$lt_whole_archive_flag_spec 19905 19906# Whether the compiler copes with passing no objects directly. 19907compiler_needs_object=$lt_compiler_needs_object 19908 19909# Create an old-style archive from a shared archive. 19910old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19911 19912# Create a temporary old-style archive to link instead of a shared archive. 19913old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19914 19915# Commands used to build a shared archive. 19916archive_cmds=$lt_archive_cmds 19917archive_expsym_cmds=$lt_archive_expsym_cmds 19918 19919# Commands used to build a loadable module if different from building 19920# a shared archive. 19921module_cmds=$lt_module_cmds 19922module_expsym_cmds=$lt_module_expsym_cmds 19923 19924# Whether we are building with GNU ld or not. 19925with_gnu_ld=$lt_with_gnu_ld 19926 19927# Flag that allows shared libraries with undefined symbols to be built. 19928allow_undefined_flag=$lt_allow_undefined_flag 19929 19930# Flag that enforces no undefined symbols. 19931no_undefined_flag=$lt_no_undefined_flag 19932 19933# Flag to hardcode \$libdir into a binary during linking. 19934# This must work even if \$libdir does not exist 19935hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19936 19937# Whether we need a single "-rpath" flag with a separated argument. 19938hardcode_libdir_separator=$lt_hardcode_libdir_separator 19939 19940# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19941# DIR into the resulting binary. 19942hardcode_direct=$hardcode_direct 19943 19944# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 19945# DIR into the resulting binary and the resulting library dependency is 19946# "absolute",i.e impossible to change by setting \$shlibpath_var if the 19947# library is relocated. 19948hardcode_direct_absolute=$hardcode_direct_absolute 19949 19950# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19951# into the resulting binary. 19952hardcode_minus_L=$hardcode_minus_L 19953 19954# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19955# into the resulting binary. 19956hardcode_shlibpath_var=$hardcode_shlibpath_var 19957 19958# Set to "yes" if building a shared library automatically hardcodes DIR 19959# into the library and all subsequent libraries and executables linked 19960# against it. 19961hardcode_automatic=$hardcode_automatic 19962 19963# Set to yes if linker adds runtime paths of dependent libraries 19964# to runtime path list. 19965inherit_rpath=$inherit_rpath 19966 19967# Whether libtool must link a program against all its dependency libraries. 19968link_all_deplibs=$link_all_deplibs 19969 19970# Set to "yes" if exported symbols are required. 19971always_export_symbols=$always_export_symbols 19972 19973# The commands to list exported symbols. 19974export_symbols_cmds=$lt_export_symbols_cmds 19975 19976# Symbols that should not be listed in the preloaded symbols. 19977exclude_expsyms=$lt_exclude_expsyms 19978 19979# Symbols that must always be exported. 19980include_expsyms=$lt_include_expsyms 19981 19982# Commands necessary for linking programs (against libraries) with templates. 19983prelink_cmds=$lt_prelink_cmds 19984 19985# Commands necessary for finishing linking programs. 19986postlink_cmds=$lt_postlink_cmds 19987 19988# Specify filename containing input files. 19989file_list_spec=$lt_file_list_spec 19990 19991# How to hardcode a shared library path into an executable. 19992hardcode_action=$hardcode_action 19993 19994# The directories searched by this compiler when creating a shared library. 19995compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19996 19997# Dependencies to place before and after the objects being linked to 19998# create a shared library. 19999predep_objects=$lt_predep_objects 20000postdep_objects=$lt_postdep_objects 20001predeps=$lt_predeps 20002postdeps=$lt_postdeps 20003 20004# The library search path used internally by the compiler when linking 20005# a shared library. 20006compiler_lib_search_path=$lt_compiler_lib_search_path 20007 20008# ### END LIBTOOL CONFIG 20009 20010_LT_EOF 20011 20012 cat <<'_LT_EOF' >> "$cfgfile" 20013 20014# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 20015 20016# func_munge_path_list VARIABLE PATH 20017# ----------------------------------- 20018# VARIABLE is name of variable containing _space_ separated list of 20019# directories to be munged by the contents of PATH, which is string 20020# having a format: 20021# "DIR[:DIR]:" 20022# string "DIR[ DIR]" will be prepended to VARIABLE 20023# ":DIR[:DIR]" 20024# string "DIR[ DIR]" will be appended to VARIABLE 20025# "DIRP[:DIRP]::[DIRA:]DIRA" 20026# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 20027# "DIRA[ DIRA]" will be appended to VARIABLE 20028# "DIR[:DIR]" 20029# VARIABLE will be replaced by "DIR[ DIR]" 20030func_munge_path_list () 20031{ 20032 case x$2 in 20033 x) 20034 ;; 20035 *:) 20036 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 20037 ;; 20038 x:*) 20039 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 20040 ;; 20041 *::*) 20042 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 20043 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 20044 ;; 20045 *) 20046 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 20047 ;; 20048 esac 20049} 20050 20051 20052# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 20053func_cc_basename () 20054{ 20055 for cc_temp in $*""; do 20056 case $cc_temp in 20057 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20058 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20059 \-*) ;; 20060 *) break;; 20061 esac 20062 done 20063 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20064} 20065 20066 20067# ### END FUNCTIONS SHARED WITH CONFIGURE 20068 20069_LT_EOF 20070 20071 case $host_os in 20072 aix3*) 20073 cat <<\_LT_EOF >> "$cfgfile" 20074# AIX sometimes has problems with the GCC collect2 program. For some 20075# reason, if we set the COLLECT_NAMES environment variable, the problems 20076# vanish in a puff of smoke. 20077if test set != "${COLLECT_NAMES+set}"; then 20078 COLLECT_NAMES= 20079 export COLLECT_NAMES 20080fi 20081_LT_EOF 20082 ;; 20083 esac 20084 20085 20086ltmain=$ac_aux_dir/ltmain.sh 20087 20088 20089 # We use sed instead of cat because bash on DJGPP gets confused if 20090 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20091 # text mode, it properly converts lines to CR/LF. This bash problem 20092 # is reportedly fixed, but why not run on old versions too? 20093 sed '$q' "$ltmain" >> "$cfgfile" \ 20094 || (rm -f "$cfgfile"; exit 1) 20095 20096 mv -f "$cfgfile" "$ofile" || 20097 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20098 chmod +x "$ofile" 20099 20100 20101 cat <<_LT_EOF >> "$ofile" 20102 20103# ### BEGIN LIBTOOL TAG CONFIG: CXX 20104 20105# The linker used to build libraries. 20106LD=$lt_LD_CXX 20107 20108# How to create reloadable object files. 20109reload_flag=$lt_reload_flag_CXX 20110reload_cmds=$lt_reload_cmds_CXX 20111 20112# Commands used to build an old-style archive. 20113old_archive_cmds=$lt_old_archive_cmds_CXX 20114 20115# A language specific compiler. 20116CC=$lt_compiler_CXX 20117 20118# Is the compiler the GNU compiler? 20119with_gcc=$GCC_CXX 20120 20121# Compiler flag to turn off builtin functions. 20122no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 20123 20124# Additional compiler flags for building library objects. 20125pic_flag=$lt_lt_prog_compiler_pic_CXX 20126 20127# How to pass a linker flag through the compiler. 20128wl=$lt_lt_prog_compiler_wl_CXX 20129 20130# Compiler flag to prevent dynamic linking. 20131link_static_flag=$lt_lt_prog_compiler_static_CXX 20132 20133# Does compiler simultaneously support -c and -o options? 20134compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 20135 20136# Whether or not to add -lc for building shared libraries. 20137build_libtool_need_lc=$archive_cmds_need_lc_CXX 20138 20139# Whether or not to disallow shared libs when runtime libs are static. 20140allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 20141 20142# Compiler flag to allow reflexive dlopens. 20143export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 20144 20145# Compiler flag to generate shared objects directly from archives. 20146whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 20147 20148# Whether the compiler copes with passing no objects directly. 20149compiler_needs_object=$lt_compiler_needs_object_CXX 20150 20151# Create an old-style archive from a shared archive. 20152old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 20153 20154# Create a temporary old-style archive to link instead of a shared archive. 20155old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 20156 20157# Commands used to build a shared archive. 20158archive_cmds=$lt_archive_cmds_CXX 20159archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 20160 20161# Commands used to build a loadable module if different from building 20162# a shared archive. 20163module_cmds=$lt_module_cmds_CXX 20164module_expsym_cmds=$lt_module_expsym_cmds_CXX 20165 20166# Whether we are building with GNU ld or not. 20167with_gnu_ld=$lt_with_gnu_ld_CXX 20168 20169# Flag that allows shared libraries with undefined symbols to be built. 20170allow_undefined_flag=$lt_allow_undefined_flag_CXX 20171 20172# Flag that enforces no undefined symbols. 20173no_undefined_flag=$lt_no_undefined_flag_CXX 20174 20175# Flag to hardcode \$libdir into a binary during linking. 20176# This must work even if \$libdir does not exist 20177hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 20178 20179# Whether we need a single "-rpath" flag with a separated argument. 20180hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 20181 20182# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20183# DIR into the resulting binary. 20184hardcode_direct=$hardcode_direct_CXX 20185 20186# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20187# DIR into the resulting binary and the resulting library dependency is 20188# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20189# library is relocated. 20190hardcode_direct_absolute=$hardcode_direct_absolute_CXX 20191 20192# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20193# into the resulting binary. 20194hardcode_minus_L=$hardcode_minus_L_CXX 20195 20196# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20197# into the resulting binary. 20198hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 20199 20200# Set to "yes" if building a shared library automatically hardcodes DIR 20201# into the library and all subsequent libraries and executables linked 20202# against it. 20203hardcode_automatic=$hardcode_automatic_CXX 20204 20205# Set to yes if linker adds runtime paths of dependent libraries 20206# to runtime path list. 20207inherit_rpath=$inherit_rpath_CXX 20208 20209# Whether libtool must link a program against all its dependency libraries. 20210link_all_deplibs=$link_all_deplibs_CXX 20211 20212# Set to "yes" if exported symbols are required. 20213always_export_symbols=$always_export_symbols_CXX 20214 20215# The commands to list exported symbols. 20216export_symbols_cmds=$lt_export_symbols_cmds_CXX 20217 20218# Symbols that should not be listed in the preloaded symbols. 20219exclude_expsyms=$lt_exclude_expsyms_CXX 20220 20221# Symbols that must always be exported. 20222include_expsyms=$lt_include_expsyms_CXX 20223 20224# Commands necessary for linking programs (against libraries) with templates. 20225prelink_cmds=$lt_prelink_cmds_CXX 20226 20227# Commands necessary for finishing linking programs. 20228postlink_cmds=$lt_postlink_cmds_CXX 20229 20230# Specify filename containing input files. 20231file_list_spec=$lt_file_list_spec_CXX 20232 20233# How to hardcode a shared library path into an executable. 20234hardcode_action=$hardcode_action_CXX 20235 20236# The directories searched by this compiler when creating a shared library. 20237compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 20238 20239# Dependencies to place before and after the objects being linked to 20240# create a shared library. 20241predep_objects=$lt_predep_objects_CXX 20242postdep_objects=$lt_postdep_objects_CXX 20243predeps=$lt_predeps_CXX 20244postdeps=$lt_postdeps_CXX 20245 20246# The library search path used internally by the compiler when linking 20247# a shared library. 20248compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 20249 20250# ### END LIBTOOL TAG CONFIG: CXX 20251_LT_EOF 20252 20253 ;; 20254 20255 esac 20256done # for ac_tag 20257 20258 20259as_fn_exit 0 20260_ACEOF 20261ac_clean_files=$ac_clean_files_save 20262 20263test $ac_write_fail = 0 || 20264 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20265 20266 20267# configure is writing to config.log, and then calls config.status. 20268# config.status does its own redirection, appending to config.log. 20269# Unfortunately, on DOS this fails, as config.log is still kept open 20270# by configure, so config.status won't be able to write to it; its 20271# output is simply discarded. So we exec the FD to /dev/null, 20272# effectively closing config.log, so it can be properly (re)opened and 20273# appended to by config.status. When coming back to configure, we 20274# need to make the FD available again. 20275if test "$no_create" != yes; then 20276 ac_cs_success=: 20277 ac_config_status_args= 20278 test "$silent" = yes && 20279 ac_config_status_args="$ac_config_status_args --quiet" 20280 exec 5>/dev/null 20281 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20282 exec 5>>config.log 20283 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20284 # would make configure fail if this is the last instruction. 20285 $ac_cs_success || as_fn_exit 1 20286fi 20287if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20289$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20290fi 20291 20292