1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for virtualpg 2.0.1. 4# 5# Report bugs to <a.furieri@lqt.it>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and a.furieri@lqt.it 278$0: about your system, including any error possibly output 279$0: before this message. Then install a modern shell, or 280$0: manually run the script under such a shell if you do 281$0: have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='virtualpg' 592PACKAGE_TARNAME='virtualpg' 593PACKAGE_VERSION='2.0.1' 594PACKAGE_STRING='virtualpg 2.0.1' 595PACKAGE_BUGREPORT='a.furieri@lqt.it' 596PACKAGE_URL='' 597 598# Factoring default headers for most tests. 599ac_includes_default="\ 600#include <stdio.h> 601#ifdef HAVE_SYS_TYPES_H 602# include <sys/types.h> 603#endif 604#ifdef HAVE_SYS_STAT_H 605# include <sys/stat.h> 606#endif 607#ifdef STDC_HEADERS 608# include <stdlib.h> 609# include <stddef.h> 610#else 611# ifdef HAVE_STDLIB_H 612# include <stdlib.h> 613# endif 614#endif 615#ifdef HAVE_STRING_H 616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617# include <memory.h> 618# endif 619# include <string.h> 620#endif 621#ifdef HAVE_STRINGS_H 622# include <strings.h> 623#endif 624#ifdef HAVE_INTTYPES_H 625# include <inttypes.h> 626#endif 627#ifdef HAVE_STDINT_H 628# include <stdint.h> 629#endif 630#ifdef HAVE_UNISTD_H 631# include <unistd.h> 632#endif" 633 634ac_subst_vars='am__EXEEXT_FALSE 635am__EXEEXT_TRUE 636LTLIBOBJS 637MINGW_FALSE 638MINGW_TRUE 639PG_LIB 640PG_LDFLAGS 641PG_CFLAGS 642PGCONFIG 643LIBOBJS 644CXXCPP 645OTOOL64 646OTOOL 647LIPO 648NMEDIT 649DSYMUTIL 650MANIFEST_TOOL 651RANLIB 652ac_ct_AR 653AR 654NM 655ac_ct_DUMPBIN 656DUMPBIN 657LD 658FGREP 659SED 660LIBTOOL 661OBJDUMP 662DLLTOOL 663AS 664host_os 665host_vendor 666host_cpu 667host 668build_os 669build_vendor 670build_cpu 671build 672LN_S 673am__fastdepCXX_FALSE 674am__fastdepCXX_TRUE 675CXXDEPMODE 676ac_ct_CXX 677CXXFLAGS 678CXX 679EGREP 680GREP 681CPP 682am__fastdepCC_FALSE 683am__fastdepCC_TRUE 684CCDEPMODE 685am__nodep 686AMDEPBACKSLASH 687AMDEP_FALSE 688AMDEP_TRUE 689am__include 690DEPDIR 691OBJEXT 692EXEEXT 693ac_ct_CC 694CPPFLAGS 695LDFLAGS 696CFLAGS 697CC 698MAINT 699MAINTAINER_MODE_FALSE 700MAINTAINER_MODE_TRUE 701AM_BACKSLASH 702AM_DEFAULT_VERBOSITY 703AM_DEFAULT_V 704AM_V 705am__untar 706am__tar 707AMTAR 708am__leading_dot 709SET_MAKE 710AWK 711mkdir_p 712MKDIR_P 713INSTALL_STRIP_PROGRAM 714STRIP 715install_sh 716MAKEINFO 717AUTOHEADER 718AUTOMAKE 719AUTOCONF 720ACLOCAL 721VERSION 722PACKAGE 723CYGPATH_W 724am__isrc 725INSTALL_DATA 726INSTALL_SCRIPT 727INSTALL_PROGRAM 728target_alias 729host_alias 730build_alias 731LIBS 732ECHO_T 733ECHO_N 734ECHO_C 735DEFS 736mandir 737localedir 738libdir 739psdir 740pdfdir 741dvidir 742htmldir 743infodir 744docdir 745oldincludedir 746includedir 747localstatedir 748sharedstatedir 749sysconfdir 750datadir 751datarootdir 752libexecdir 753sbindir 754bindir 755program_transform_name 756prefix 757exec_prefix 758PACKAGE_URL 759PACKAGE_BUGREPORT 760PACKAGE_STRING 761PACKAGE_VERSION 762PACKAGE_TARNAME 763PACKAGE_NAME 764PATH_SEPARATOR 765SHELL 766am__quote' 767ac_subst_files='' 768ac_user_opts=' 769enable_option_checking 770enable_silent_rules 771enable_maintainer_mode 772enable_dependency_tracking 773enable_shared 774enable_static 775with_pic 776enable_fast_install 777with_gnu_ld 778with_sysroot 779enable_libtool_lock 780with_pgconfig 781' 782 ac_precious_vars='build_alias 783host_alias 784target_alias 785CC 786CFLAGS 787LDFLAGS 788LIBS 789CPPFLAGS 790CPP 791CXX 792CXXFLAGS 793CCC 794CXXCPP' 795 796 797# Initialize some variables set by options. 798ac_init_help= 799ac_init_version=false 800ac_unrecognized_opts= 801ac_unrecognized_sep= 802# The variables have the same names as the options, with 803# dashes changed to underlines. 804cache_file=/dev/null 805exec_prefix=NONE 806no_create= 807no_recursion= 808prefix=NONE 809program_prefix=NONE 810program_suffix=NONE 811program_transform_name=s,x,x, 812silent= 813site= 814srcdir= 815verbose= 816x_includes=NONE 817x_libraries=NONE 818 819# Installation directory options. 820# These are left unexpanded so users can "make install exec_prefix=/foo" 821# and all the variables that are supposed to be based on exec_prefix 822# by default will actually change. 823# Use braces instead of parens because sh, perl, etc. also accept them. 824# (The list follows the same order as the GNU Coding Standards.) 825bindir='${exec_prefix}/bin' 826sbindir='${exec_prefix}/sbin' 827libexecdir='${exec_prefix}/libexec' 828datarootdir='${prefix}/share' 829datadir='${datarootdir}' 830sysconfdir='${prefix}/etc' 831sharedstatedir='${prefix}/com' 832localstatedir='${prefix}/var' 833includedir='${prefix}/include' 834oldincludedir='/usr/include' 835docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 836infodir='${datarootdir}/info' 837htmldir='${docdir}' 838dvidir='${docdir}' 839pdfdir='${docdir}' 840psdir='${docdir}' 841libdir='${exec_prefix}/lib' 842localedir='${datarootdir}/locale' 843mandir='${datarootdir}/man' 844 845ac_prev= 846ac_dashdash= 847for ac_option 848do 849 # If the previous option needs an argument, assign it. 850 if test -n "$ac_prev"; then 851 eval $ac_prev=\$ac_option 852 ac_prev= 853 continue 854 fi 855 856 case $ac_option in 857 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 858 *=) ac_optarg= ;; 859 *) ac_optarg=yes ;; 860 esac 861 862 # Accept the important Cygnus configure options, so we can diagnose typos. 863 864 case $ac_dashdash$ac_option in 865 --) 866 ac_dashdash=yes ;; 867 868 -bindir | --bindir | --bindi | --bind | --bin | --bi) 869 ac_prev=bindir ;; 870 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 871 bindir=$ac_optarg ;; 872 873 -build | --build | --buil | --bui | --bu) 874 ac_prev=build_alias ;; 875 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 876 build_alias=$ac_optarg ;; 877 878 -cache-file | --cache-file | --cache-fil | --cache-fi \ 879 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 880 ac_prev=cache_file ;; 881 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 882 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 883 cache_file=$ac_optarg ;; 884 885 --config-cache | -C) 886 cache_file=config.cache ;; 887 888 -datadir | --datadir | --datadi | --datad) 889 ac_prev=datadir ;; 890 -datadir=* | --datadir=* | --datadi=* | --datad=*) 891 datadir=$ac_optarg ;; 892 893 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 894 | --dataroo | --dataro | --datar) 895 ac_prev=datarootdir ;; 896 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 897 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 898 datarootdir=$ac_optarg ;; 899 900 -disable-* | --disable-*) 901 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 902 # Reject names that are not valid shell variable names. 903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 904 as_fn_error $? "invalid feature name: $ac_useropt" 905 ac_useropt_orig=$ac_useropt 906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 907 case $ac_user_opts in 908 *" 909"enable_$ac_useropt" 910"*) ;; 911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 912 ac_unrecognized_sep=', ';; 913 esac 914 eval enable_$ac_useropt=no ;; 915 916 -docdir | --docdir | --docdi | --doc | --do) 917 ac_prev=docdir ;; 918 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 919 docdir=$ac_optarg ;; 920 921 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 922 ac_prev=dvidir ;; 923 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 924 dvidir=$ac_optarg ;; 925 926 -enable-* | --enable-*) 927 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 928 # Reject names that are not valid shell variable names. 929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 930 as_fn_error $? "invalid feature name: $ac_useropt" 931 ac_useropt_orig=$ac_useropt 932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 933 case $ac_user_opts in 934 *" 935"enable_$ac_useropt" 936"*) ;; 937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 938 ac_unrecognized_sep=', ';; 939 esac 940 eval enable_$ac_useropt=\$ac_optarg ;; 941 942 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 943 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 944 | --exec | --exe | --ex) 945 ac_prev=exec_prefix ;; 946 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 947 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 948 | --exec=* | --exe=* | --ex=*) 949 exec_prefix=$ac_optarg ;; 950 951 -gas | --gas | --ga | --g) 952 # Obsolete; use --with-gas. 953 with_gas=yes ;; 954 955 -help | --help | --hel | --he | -h) 956 ac_init_help=long ;; 957 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 958 ac_init_help=recursive ;; 959 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 960 ac_init_help=short ;; 961 962 -host | --host | --hos | --ho) 963 ac_prev=host_alias ;; 964 -host=* | --host=* | --hos=* | --ho=*) 965 host_alias=$ac_optarg ;; 966 967 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 968 ac_prev=htmldir ;; 969 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 970 | --ht=*) 971 htmldir=$ac_optarg ;; 972 973 -includedir | --includedir | --includedi | --included | --include \ 974 | --includ | --inclu | --incl | --inc) 975 ac_prev=includedir ;; 976 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 977 | --includ=* | --inclu=* | --incl=* | --inc=*) 978 includedir=$ac_optarg ;; 979 980 -infodir | --infodir | --infodi | --infod | --info | --inf) 981 ac_prev=infodir ;; 982 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 983 infodir=$ac_optarg ;; 984 985 -libdir | --libdir | --libdi | --libd) 986 ac_prev=libdir ;; 987 -libdir=* | --libdir=* | --libdi=* | --libd=*) 988 libdir=$ac_optarg ;; 989 990 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 991 | --libexe | --libex | --libe) 992 ac_prev=libexecdir ;; 993 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 994 | --libexe=* | --libex=* | --libe=*) 995 libexecdir=$ac_optarg ;; 996 997 -localedir | --localedir | --localedi | --localed | --locale) 998 ac_prev=localedir ;; 999 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1000 localedir=$ac_optarg ;; 1001 1002 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1003 | --localstate | --localstat | --localsta | --localst | --locals) 1004 ac_prev=localstatedir ;; 1005 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1006 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1007 localstatedir=$ac_optarg ;; 1008 1009 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1010 ac_prev=mandir ;; 1011 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1012 mandir=$ac_optarg ;; 1013 1014 -nfp | --nfp | --nf) 1015 # Obsolete; use --without-fp. 1016 with_fp=no ;; 1017 1018 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1019 | --no-cr | --no-c | -n) 1020 no_create=yes ;; 1021 1022 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1023 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1024 no_recursion=yes ;; 1025 1026 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1027 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1028 | --oldin | --oldi | --old | --ol | --o) 1029 ac_prev=oldincludedir ;; 1030 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1031 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1032 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1033 oldincludedir=$ac_optarg ;; 1034 1035 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1036 ac_prev=prefix ;; 1037 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1038 prefix=$ac_optarg ;; 1039 1040 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1041 | --program-pre | --program-pr | --program-p) 1042 ac_prev=program_prefix ;; 1043 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1044 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1045 program_prefix=$ac_optarg ;; 1046 1047 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1048 | --program-suf | --program-su | --program-s) 1049 ac_prev=program_suffix ;; 1050 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1051 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1052 program_suffix=$ac_optarg ;; 1053 1054 -program-transform-name | --program-transform-name \ 1055 | --program-transform-nam | --program-transform-na \ 1056 | --program-transform-n | --program-transform- \ 1057 | --program-transform | --program-transfor \ 1058 | --program-transfo | --program-transf \ 1059 | --program-trans | --program-tran \ 1060 | --progr-tra | --program-tr | --program-t) 1061 ac_prev=program_transform_name ;; 1062 -program-transform-name=* | --program-transform-name=* \ 1063 | --program-transform-nam=* | --program-transform-na=* \ 1064 | --program-transform-n=* | --program-transform-=* \ 1065 | --program-transform=* | --program-transfor=* \ 1066 | --program-transfo=* | --program-transf=* \ 1067 | --program-trans=* | --program-tran=* \ 1068 | --progr-tra=* | --program-tr=* | --program-t=*) 1069 program_transform_name=$ac_optarg ;; 1070 1071 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1072 ac_prev=pdfdir ;; 1073 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1074 pdfdir=$ac_optarg ;; 1075 1076 -psdir | --psdir | --psdi | --psd | --ps) 1077 ac_prev=psdir ;; 1078 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1079 psdir=$ac_optarg ;; 1080 1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1082 | -silent | --silent | --silen | --sile | --sil) 1083 silent=yes ;; 1084 1085 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1086 ac_prev=sbindir ;; 1087 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1088 | --sbi=* | --sb=*) 1089 sbindir=$ac_optarg ;; 1090 1091 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1092 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1093 | --sharedst | --shareds | --shared | --share | --shar \ 1094 | --sha | --sh) 1095 ac_prev=sharedstatedir ;; 1096 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1097 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1098 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1099 | --sha=* | --sh=*) 1100 sharedstatedir=$ac_optarg ;; 1101 1102 -site | --site | --sit) 1103 ac_prev=site ;; 1104 -site=* | --site=* | --sit=*) 1105 site=$ac_optarg ;; 1106 1107 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1108 ac_prev=srcdir ;; 1109 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1110 srcdir=$ac_optarg ;; 1111 1112 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1113 | --syscon | --sysco | --sysc | --sys | --sy) 1114 ac_prev=sysconfdir ;; 1115 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1116 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1117 sysconfdir=$ac_optarg ;; 1118 1119 -target | --target | --targe | --targ | --tar | --ta | --t) 1120 ac_prev=target_alias ;; 1121 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1122 target_alias=$ac_optarg ;; 1123 1124 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1125 verbose=yes ;; 1126 1127 -version | --version | --versio | --versi | --vers | -V) 1128 ac_init_version=: ;; 1129 1130 -with-* | --with-*) 1131 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1132 # Reject names that are not valid shell variable names. 1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1134 as_fn_error $? "invalid package name: $ac_useropt" 1135 ac_useropt_orig=$ac_useropt 1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1137 case $ac_user_opts in 1138 *" 1139"with_$ac_useropt" 1140"*) ;; 1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1142 ac_unrecognized_sep=', ';; 1143 esac 1144 eval with_$ac_useropt=\$ac_optarg ;; 1145 1146 -without-* | --without-*) 1147 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1148 # Reject names that are not valid shell variable names. 1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1150 as_fn_error $? "invalid package name: $ac_useropt" 1151 ac_useropt_orig=$ac_useropt 1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1153 case $ac_user_opts in 1154 *" 1155"with_$ac_useropt" 1156"*) ;; 1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1158 ac_unrecognized_sep=', ';; 1159 esac 1160 eval with_$ac_useropt=no ;; 1161 1162 --x) 1163 # Obsolete; use --with-x. 1164 with_x=yes ;; 1165 1166 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1167 | --x-incl | --x-inc | --x-in | --x-i) 1168 ac_prev=x_includes ;; 1169 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1170 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1171 x_includes=$ac_optarg ;; 1172 1173 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1174 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1175 ac_prev=x_libraries ;; 1176 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1177 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1178 x_libraries=$ac_optarg ;; 1179 1180 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1181Try \`$0 --help' for more information" 1182 ;; 1183 1184 *=*) 1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1186 # Reject names that are not valid shell variable names. 1187 case $ac_envvar in #( 1188 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1189 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1190 esac 1191 eval $ac_envvar=\$ac_optarg 1192 export $ac_envvar ;; 1193 1194 *) 1195 # FIXME: should be removed in autoconf 3.0. 1196 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1197 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1198 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1199 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1200 ;; 1201 1202 esac 1203done 1204 1205if test -n "$ac_prev"; then 1206 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1207 as_fn_error $? "missing argument to $ac_option" 1208fi 1209 1210if test -n "$ac_unrecognized_opts"; then 1211 case $enable_option_checking in 1212 no) ;; 1213 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1214 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1215 esac 1216fi 1217 1218# Check all directory arguments for consistency. 1219for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1220 datadir sysconfdir sharedstatedir localstatedir includedir \ 1221 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1222 libdir localedir mandir 1223do 1224 eval ac_val=\$$ac_var 1225 # Remove trailing slashes. 1226 case $ac_val in 1227 */ ) 1228 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1229 eval $ac_var=\$ac_val;; 1230 esac 1231 # Be sure to have absolute directory names. 1232 case $ac_val in 1233 [\\/$]* | ?:[\\/]* ) continue;; 1234 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1235 esac 1236 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1237done 1238 1239# There might be people who depend on the old broken behavior: `$host' 1240# used to hold the argument of --host etc. 1241# FIXME: To remove some day. 1242build=$build_alias 1243host=$host_alias 1244target=$target_alias 1245 1246# FIXME: To remove some day. 1247if test "x$host_alias" != x; then 1248 if test "x$build_alias" = x; then 1249 cross_compiling=maybe 1250 elif test "x$build_alias" != "x$host_alias"; then 1251 cross_compiling=yes 1252 fi 1253fi 1254 1255ac_tool_prefix= 1256test -n "$host_alias" && ac_tool_prefix=$host_alias- 1257 1258test "$silent" = yes && exec 6>/dev/null 1259 1260 1261ac_pwd=`pwd` && test -n "$ac_pwd" && 1262ac_ls_di=`ls -di .` && 1263ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1264 as_fn_error $? "working directory cannot be determined" 1265test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1266 as_fn_error $? "pwd does not report name of working directory" 1267 1268 1269# Find the source files, if location was not specified. 1270if test -z "$srcdir"; then 1271 ac_srcdir_defaulted=yes 1272 # Try the directory containing this script, then the parent directory. 1273 ac_confdir=`$as_dirname -- "$as_myself" || 1274$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1275 X"$as_myself" : 'X\(//\)[^/]' \| \ 1276 X"$as_myself" : 'X\(//\)$' \| \ 1277 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1278$as_echo X"$as_myself" | 1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1280 s//\1/ 1281 q 1282 } 1283 /^X\(\/\/\)[^/].*/{ 1284 s//\1/ 1285 q 1286 } 1287 /^X\(\/\/\)$/{ 1288 s//\1/ 1289 q 1290 } 1291 /^X\(\/\).*/{ 1292 s//\1/ 1293 q 1294 } 1295 s/.*/./; q'` 1296 srcdir=$ac_confdir 1297 if test ! -r "$srcdir/$ac_unique_file"; then 1298 srcdir=.. 1299 fi 1300else 1301 ac_srcdir_defaulted=no 1302fi 1303if test ! -r "$srcdir/$ac_unique_file"; then 1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1305 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1306fi 1307ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1308ac_abs_confdir=`( 1309 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1310 pwd)` 1311# When building in place, set srcdir=. 1312if test "$ac_abs_confdir" = "$ac_pwd"; then 1313 srcdir=. 1314fi 1315# Remove unnecessary trailing slashes from srcdir. 1316# Double slashes in file names in object file debugging info 1317# mess up M-x gdb in Emacs. 1318case $srcdir in 1319*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1320esac 1321for ac_var in $ac_precious_vars; do 1322 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1323 eval ac_env_${ac_var}_value=\$${ac_var} 1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1325 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1326done 1327 1328# 1329# Report the --help message. 1330# 1331if test "$ac_init_help" = "long"; then 1332 # Omit some internal or obsolete options to make the list less imposing. 1333 # This message is too long to be a string in the A/UX 3.1 sh. 1334 cat <<_ACEOF 1335\`configure' configures virtualpg 2.0.1 to adapt to many kinds of systems. 1336 1337Usage: $0 [OPTION]... [VAR=VALUE]... 1338 1339To assign environment variables (e.g., CC, CFLAGS...), specify them as 1340VAR=VALUE. See below for descriptions of some of the useful variables. 1341 1342Defaults for the options are specified in brackets. 1343 1344Configuration: 1345 -h, --help display this help and exit 1346 --help=short display options specific to this package 1347 --help=recursive display the short help of all the included packages 1348 -V, --version display version information and exit 1349 -q, --quiet, --silent do not print \`checking ...' messages 1350 --cache-file=FILE cache test results in FILE [disabled] 1351 -C, --config-cache alias for \`--cache-file=config.cache' 1352 -n, --no-create do not create output files 1353 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1354 1355Installation directories: 1356 --prefix=PREFIX install architecture-independent files in PREFIX 1357 [$ac_default_prefix] 1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1359 [PREFIX] 1360 1361By default, \`make install' will install all the files in 1362\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1363an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1364for instance \`--prefix=\$HOME'. 1365 1366For better control, use the options below. 1367 1368Fine tuning of the installation directories: 1369 --bindir=DIR user executables [EPREFIX/bin] 1370 --sbindir=DIR system admin executables [EPREFIX/sbin] 1371 --libexecdir=DIR program executables [EPREFIX/libexec] 1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1375 --libdir=DIR object code libraries [EPREFIX/lib] 1376 --includedir=DIR C header files [PREFIX/include] 1377 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1378 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1379 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1380 --infodir=DIR info documentation [DATAROOTDIR/info] 1381 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1382 --mandir=DIR man documentation [DATAROOTDIR/man] 1383 --docdir=DIR documentation root [DATAROOTDIR/doc/virtualpg] 1384 --htmldir=DIR html documentation [DOCDIR] 1385 --dvidir=DIR dvi documentation [DOCDIR] 1386 --pdfdir=DIR pdf documentation [DOCDIR] 1387 --psdir=DIR ps documentation [DOCDIR] 1388_ACEOF 1389 1390 cat <<\_ACEOF 1391 1392Program names: 1393 --program-prefix=PREFIX prepend PREFIX to installed program names 1394 --program-suffix=SUFFIX append SUFFIX to installed program names 1395 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1396 1397System types: 1398 --build=BUILD configure for building on BUILD [guessed] 1399 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1400_ACEOF 1401fi 1402 1403if test -n "$ac_init_help"; then 1404 case $ac_init_help in 1405 short | recursive ) echo "Configuration of virtualpg 2.0.1:";; 1406 esac 1407 cat <<\_ACEOF 1408 1409Optional Features: 1410 --disable-option-checking ignore unrecognized --enable/--with options 1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1413 --enable-silent-rules less verbose build output (undo: "make V=1") 1414 --disable-silent-rules verbose build output (undo: "make V=0") 1415 --enable-maintainer-mode 1416 enable make rules and dependencies not useful (and 1417 sometimes confusing) to the casual installer 1418 --enable-dependency-tracking 1419 do not reject slow dependency extractors 1420 --disable-dependency-tracking 1421 speeds up one-time build 1422 --enable-shared[=PKGS] build shared libraries [default=yes] 1423 --enable-static[=PKGS] build static libraries [default=yes] 1424 --enable-fast-install[=PKGS] 1425 optimize for fast installation [default=yes] 1426 --disable-libtool-lock avoid locking (might break parallel builds) 1427 1428Optional Packages: 1429 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1430 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1431 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1432 both] 1433 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1434 --with-sysroot=DIR Search for dependent libraries within DIR 1435 (or the compiler's sysroot if not specified). 1436 --with-pgconfig=FILE specify an alternative pg_config file 1437 1438Some influential environment variables: 1439 CC C compiler command 1440 CFLAGS C compiler flags 1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1442 nonstandard directory <lib dir> 1443 LIBS libraries to pass to the linker, e.g. -l<library> 1444 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1445 you have headers in a nonstandard directory <include dir> 1446 CPP C preprocessor 1447 CXX C++ compiler command 1448 CXXFLAGS C++ compiler flags 1449 CXXCPP C++ preprocessor 1450 1451Use these variables to override the choices made by `configure' or to help 1452it to find libraries and programs with nonstandard names/locations. 1453 1454Report bugs to <a.furieri@lqt.it>. 1455_ACEOF 1456ac_status=$? 1457fi 1458 1459if test "$ac_init_help" = "recursive"; then 1460 # If there are subdirs, report their specific --help. 1461 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1462 test -d "$ac_dir" || 1463 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1464 continue 1465 ac_builddir=. 1466 1467case "$ac_dir" in 1468.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1469*) 1470 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1471 # A ".." for each directory in $ac_dir_suffix. 1472 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1473 case $ac_top_builddir_sub in 1474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1476 esac ;; 1477esac 1478ac_abs_top_builddir=$ac_pwd 1479ac_abs_builddir=$ac_pwd$ac_dir_suffix 1480# for backward compatibility: 1481ac_top_builddir=$ac_top_build_prefix 1482 1483case $srcdir in 1484 .) # We are building in place. 1485 ac_srcdir=. 1486 ac_top_srcdir=$ac_top_builddir_sub 1487 ac_abs_top_srcdir=$ac_pwd ;; 1488 [\\/]* | ?:[\\/]* ) # Absolute name. 1489 ac_srcdir=$srcdir$ac_dir_suffix; 1490 ac_top_srcdir=$srcdir 1491 ac_abs_top_srcdir=$srcdir ;; 1492 *) # Relative name. 1493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1494 ac_top_srcdir=$ac_top_build_prefix$srcdir 1495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1496esac 1497ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1498 1499 cd "$ac_dir" || { ac_status=$?; continue; } 1500 # Check for guested configure. 1501 if test -f "$ac_srcdir/configure.gnu"; then 1502 echo && 1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1504 elif test -f "$ac_srcdir/configure"; then 1505 echo && 1506 $SHELL "$ac_srcdir/configure" --help=recursive 1507 else 1508 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1509 fi || ac_status=$? 1510 cd "$ac_pwd" || { ac_status=$?; break; } 1511 done 1512fi 1513 1514test -n "$ac_init_help" && exit $ac_status 1515if $ac_init_version; then 1516 cat <<\_ACEOF 1517virtualpg configure 2.0.1 1518generated by GNU Autoconf 2.69 1519 1520Copyright (C) 2012 Free Software Foundation, Inc. 1521This configure script is free software; the Free Software Foundation 1522gives unlimited permission to copy, distribute and modify it. 1523_ACEOF 1524 exit 1525fi 1526 1527## ------------------------ ## 1528## Autoconf initialization. ## 1529## ------------------------ ## 1530 1531# ac_fn_c_try_compile LINENO 1532# -------------------------- 1533# Try to compile conftest.$ac_ext, and return whether this succeeded. 1534ac_fn_c_try_compile () 1535{ 1536 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1537 rm -f conftest.$ac_objext 1538 if { { ac_try="$ac_compile" 1539case "(($ac_try" in 1540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1541 *) ac_try_echo=$ac_try;; 1542esac 1543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1544$as_echo "$ac_try_echo"; } >&5 1545 (eval "$ac_compile") 2>conftest.err 1546 ac_status=$? 1547 if test -s conftest.err; then 1548 grep -v '^ *+' conftest.err >conftest.er1 1549 cat conftest.er1 >&5 1550 mv -f conftest.er1 conftest.err 1551 fi 1552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1553 test $ac_status = 0; } && { 1554 test -z "$ac_c_werror_flag" || 1555 test ! -s conftest.err 1556 } && test -s conftest.$ac_objext; then : 1557 ac_retval=0 1558else 1559 $as_echo "$as_me: failed program was:" >&5 1560sed 's/^/| /' conftest.$ac_ext >&5 1561 1562 ac_retval=1 1563fi 1564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1565 as_fn_set_status $ac_retval 1566 1567} # ac_fn_c_try_compile 1568 1569# ac_fn_c_try_cpp LINENO 1570# ---------------------- 1571# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1572ac_fn_c_try_cpp () 1573{ 1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1575 if { { ac_try="$ac_cpp conftest.$ac_ext" 1576case "(($ac_try" in 1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1578 *) ac_try_echo=$ac_try;; 1579esac 1580eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1581$as_echo "$ac_try_echo"; } >&5 1582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1583 ac_status=$? 1584 if test -s conftest.err; then 1585 grep -v '^ *+' conftest.err >conftest.er1 1586 cat conftest.er1 >&5 1587 mv -f conftest.er1 conftest.err 1588 fi 1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1590 test $ac_status = 0; } > conftest.i && { 1591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1592 test ! -s conftest.err 1593 }; then : 1594 ac_retval=0 1595else 1596 $as_echo "$as_me: failed program was:" >&5 1597sed 's/^/| /' conftest.$ac_ext >&5 1598 1599 ac_retval=1 1600fi 1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1602 as_fn_set_status $ac_retval 1603 1604} # ac_fn_c_try_cpp 1605 1606# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1607# ------------------------------------------------------- 1608# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1609# the include files in INCLUDES and setting the cache variable VAR 1610# accordingly. 1611ac_fn_c_check_header_mongrel () 1612{ 1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1614 if eval \${$3+:} false; then : 1615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1616$as_echo_n "checking for $2... " >&6; } 1617if eval \${$3+:} false; then : 1618 $as_echo_n "(cached) " >&6 1619fi 1620eval ac_res=\$$3 1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1622$as_echo "$ac_res" >&6; } 1623else 1624 # Is the header compilable? 1625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1626$as_echo_n "checking $2 usability... " >&6; } 1627cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1628/* end confdefs.h. */ 1629$4 1630#include <$2> 1631_ACEOF 1632if ac_fn_c_try_compile "$LINENO"; then : 1633 ac_header_compiler=yes 1634else 1635 ac_header_compiler=no 1636fi 1637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1639$as_echo "$ac_header_compiler" >&6; } 1640 1641# Is the header present? 1642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1643$as_echo_n "checking $2 presence... " >&6; } 1644cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1645/* end confdefs.h. */ 1646#include <$2> 1647_ACEOF 1648if ac_fn_c_try_cpp "$LINENO"; then : 1649 ac_header_preproc=yes 1650else 1651 ac_header_preproc=no 1652fi 1653rm -f conftest.err conftest.i conftest.$ac_ext 1654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1655$as_echo "$ac_header_preproc" >&6; } 1656 1657# So? What about this header? 1658case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1659 yes:no: ) 1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1661$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1663$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1664 ;; 1665 no:yes:* ) 1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1667$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1669$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1671$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1673$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1675$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1676( $as_echo "## ------------------------------- ## 1677## Report this to a.furieri@lqt.it ## 1678## ------------------------------- ##" 1679 ) | sed "s/^/$as_me: WARNING: /" >&2 1680 ;; 1681esac 1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1683$as_echo_n "checking for $2... " >&6; } 1684if eval \${$3+:} false; then : 1685 $as_echo_n "(cached) " >&6 1686else 1687 eval "$3=\$ac_header_compiler" 1688fi 1689eval ac_res=\$$3 1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1691$as_echo "$ac_res" >&6; } 1692fi 1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1694 1695} # ac_fn_c_check_header_mongrel 1696 1697# ac_fn_c_try_run LINENO 1698# ---------------------- 1699# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1700# that executables *can* be run. 1701ac_fn_c_try_run () 1702{ 1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1704 if { { ac_try="$ac_link" 1705case "(($ac_try" in 1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1707 *) ac_try_echo=$ac_try;; 1708esac 1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1710$as_echo "$ac_try_echo"; } >&5 1711 (eval "$ac_link") 2>&5 1712 ac_status=$? 1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1714 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1715 { { case "(($ac_try" in 1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1717 *) ac_try_echo=$ac_try;; 1718esac 1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1720$as_echo "$ac_try_echo"; } >&5 1721 (eval "$ac_try") 2>&5 1722 ac_status=$? 1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1724 test $ac_status = 0; }; }; then : 1725 ac_retval=0 1726else 1727 $as_echo "$as_me: program exited with status $ac_status" >&5 1728 $as_echo "$as_me: failed program was:" >&5 1729sed 's/^/| /' conftest.$ac_ext >&5 1730 1731 ac_retval=$ac_status 1732fi 1733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1735 as_fn_set_status $ac_retval 1736 1737} # ac_fn_c_try_run 1738 1739# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1740# ------------------------------------------------------- 1741# Tests whether HEADER exists and can be compiled using the include files in 1742# INCLUDES, setting the cache variable VAR accordingly. 1743ac_fn_c_check_header_compile () 1744{ 1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1747$as_echo_n "checking for $2... " >&6; } 1748if eval \${$3+:} false; then : 1749 $as_echo_n "(cached) " >&6 1750else 1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1752/* end confdefs.h. */ 1753$4 1754#include <$2> 1755_ACEOF 1756if ac_fn_c_try_compile "$LINENO"; then : 1757 eval "$3=yes" 1758else 1759 eval "$3=no" 1760fi 1761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1762fi 1763eval ac_res=\$$3 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1765$as_echo "$ac_res" >&6; } 1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1767 1768} # ac_fn_c_check_header_compile 1769 1770# ac_fn_cxx_try_compile LINENO 1771# ---------------------------- 1772# Try to compile conftest.$ac_ext, and return whether this succeeded. 1773ac_fn_cxx_try_compile () 1774{ 1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1776 rm -f conftest.$ac_objext 1777 if { { ac_try="$ac_compile" 1778case "(($ac_try" in 1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1780 *) ac_try_echo=$ac_try;; 1781esac 1782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1783$as_echo "$ac_try_echo"; } >&5 1784 (eval "$ac_compile") 2>conftest.err 1785 ac_status=$? 1786 if test -s conftest.err; then 1787 grep -v '^ *+' conftest.err >conftest.er1 1788 cat conftest.er1 >&5 1789 mv -f conftest.er1 conftest.err 1790 fi 1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1792 test $ac_status = 0; } && { 1793 test -z "$ac_cxx_werror_flag" || 1794 test ! -s conftest.err 1795 } && test -s conftest.$ac_objext; then : 1796 ac_retval=0 1797else 1798 $as_echo "$as_me: failed program was:" >&5 1799sed 's/^/| /' conftest.$ac_ext >&5 1800 1801 ac_retval=1 1802fi 1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1804 as_fn_set_status $ac_retval 1805 1806} # ac_fn_cxx_try_compile 1807 1808# ac_fn_c_try_link LINENO 1809# ----------------------- 1810# Try to link conftest.$ac_ext, and return whether this succeeded. 1811ac_fn_c_try_link () 1812{ 1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1814 rm -f conftest.$ac_objext conftest$ac_exeext 1815 if { { ac_try="$ac_link" 1816case "(($ac_try" in 1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1818 *) ac_try_echo=$ac_try;; 1819esac 1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1821$as_echo "$ac_try_echo"; } >&5 1822 (eval "$ac_link") 2>conftest.err 1823 ac_status=$? 1824 if test -s conftest.err; then 1825 grep -v '^ *+' conftest.err >conftest.er1 1826 cat conftest.er1 >&5 1827 mv -f conftest.er1 conftest.err 1828 fi 1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1830 test $ac_status = 0; } && { 1831 test -z "$ac_c_werror_flag" || 1832 test ! -s conftest.err 1833 } && test -s conftest$ac_exeext && { 1834 test "$cross_compiling" = yes || 1835 test -x conftest$ac_exeext 1836 }; then : 1837 ac_retval=0 1838else 1839 $as_echo "$as_me: failed program was:" >&5 1840sed 's/^/| /' conftest.$ac_ext >&5 1841 1842 ac_retval=1 1843fi 1844 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1845 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1846 # interfere with the next link command; also delete a directory that is 1847 # left behind by Apple's compiler. We do this before executing the actions. 1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1850 as_fn_set_status $ac_retval 1851 1852} # ac_fn_c_try_link 1853 1854# ac_fn_c_check_func LINENO FUNC VAR 1855# ---------------------------------- 1856# Tests whether FUNC exists, setting the cache variable VAR accordingly 1857ac_fn_c_check_func () 1858{ 1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1861$as_echo_n "checking for $2... " >&6; } 1862if eval \${$3+:} false; then : 1863 $as_echo_n "(cached) " >&6 1864else 1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1866/* end confdefs.h. */ 1867/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1868 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1869#define $2 innocuous_$2 1870 1871/* System header to define __stub macros and hopefully few prototypes, 1872 which can conflict with char $2 (); below. 1873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1874 <limits.h> exists even on freestanding compilers. */ 1875 1876#ifdef __STDC__ 1877# include <limits.h> 1878#else 1879# include <assert.h> 1880#endif 1881 1882#undef $2 1883 1884/* Override any GCC internal prototype to avoid an error. 1885 Use char because int might match the return type of a GCC 1886 builtin and then its argument prototype would still apply. */ 1887#ifdef __cplusplus 1888extern "C" 1889#endif 1890char $2 (); 1891/* The GNU C library defines this for functions which it implements 1892 to always fail with ENOSYS. Some functions are actually named 1893 something starting with __ and the normal name is an alias. */ 1894#if defined __stub_$2 || defined __stub___$2 1895choke me 1896#endif 1897 1898int 1899main () 1900{ 1901return $2 (); 1902 ; 1903 return 0; 1904} 1905_ACEOF 1906if ac_fn_c_try_link "$LINENO"; then : 1907 eval "$3=yes" 1908else 1909 eval "$3=no" 1910fi 1911rm -f core conftest.err conftest.$ac_objext \ 1912 conftest$ac_exeext conftest.$ac_ext 1913fi 1914eval ac_res=\$$3 1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1916$as_echo "$ac_res" >&6; } 1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1918 1919} # ac_fn_c_check_func 1920 1921# ac_fn_cxx_try_cpp LINENO 1922# ------------------------ 1923# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1924ac_fn_cxx_try_cpp () 1925{ 1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1927 if { { ac_try="$ac_cpp conftest.$ac_ext" 1928case "(($ac_try" in 1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1930 *) ac_try_echo=$ac_try;; 1931esac 1932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1933$as_echo "$ac_try_echo"; } >&5 1934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1935 ac_status=$? 1936 if test -s conftest.err; then 1937 grep -v '^ *+' conftest.err >conftest.er1 1938 cat conftest.er1 >&5 1939 mv -f conftest.er1 conftest.err 1940 fi 1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1942 test $ac_status = 0; } > conftest.i && { 1943 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1944 test ! -s conftest.err 1945 }; then : 1946 ac_retval=0 1947else 1948 $as_echo "$as_me: failed program was:" >&5 1949sed 's/^/| /' conftest.$ac_ext >&5 1950 1951 ac_retval=1 1952fi 1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1954 as_fn_set_status $ac_retval 1955 1956} # ac_fn_cxx_try_cpp 1957 1958# ac_fn_cxx_try_link LINENO 1959# ------------------------- 1960# Try to link conftest.$ac_ext, and return whether this succeeded. 1961ac_fn_cxx_try_link () 1962{ 1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1964 rm -f conftest.$ac_objext conftest$ac_exeext 1965 if { { ac_try="$ac_link" 1966case "(($ac_try" in 1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1968 *) ac_try_echo=$ac_try;; 1969esac 1970eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1971$as_echo "$ac_try_echo"; } >&5 1972 (eval "$ac_link") 2>conftest.err 1973 ac_status=$? 1974 if test -s conftest.err; then 1975 grep -v '^ *+' conftest.err >conftest.er1 1976 cat conftest.er1 >&5 1977 mv -f conftest.er1 conftest.err 1978 fi 1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1980 test $ac_status = 0; } && { 1981 test -z "$ac_cxx_werror_flag" || 1982 test ! -s conftest.err 1983 } && test -s conftest$ac_exeext && { 1984 test "$cross_compiling" = yes || 1985 test -x conftest$ac_exeext 1986 }; then : 1987 ac_retval=0 1988else 1989 $as_echo "$as_me: failed program was:" >&5 1990sed 's/^/| /' conftest.$ac_ext >&5 1991 1992 ac_retval=1 1993fi 1994 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1995 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1996 # interfere with the next link command; also delete a directory that is 1997 # left behind by Apple's compiler. We do this before executing the actions. 1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2000 as_fn_set_status $ac_retval 2001 2002} # ac_fn_cxx_try_link 2003 2004# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2005# ------------------------------------------- 2006# Tests whether TYPE exists after having included INCLUDES, setting cache 2007# variable VAR accordingly. 2008ac_fn_c_check_type () 2009{ 2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2012$as_echo_n "checking for $2... " >&6; } 2013if eval \${$3+:} false; then : 2014 $as_echo_n "(cached) " >&6 2015else 2016 eval "$3=no" 2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2018/* end confdefs.h. */ 2019$4 2020int 2021main () 2022{ 2023if (sizeof ($2)) 2024 return 0; 2025 ; 2026 return 0; 2027} 2028_ACEOF 2029if ac_fn_c_try_compile "$LINENO"; then : 2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2031/* end confdefs.h. */ 2032$4 2033int 2034main () 2035{ 2036if (sizeof (($2))) 2037 return 0; 2038 ; 2039 return 0; 2040} 2041_ACEOF 2042if ac_fn_c_try_compile "$LINENO"; then : 2043 2044else 2045 eval "$3=yes" 2046fi 2047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2048fi 2049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2050fi 2051eval ac_res=\$$3 2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2053$as_echo "$ac_res" >&6; } 2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2055 2056} # ac_fn_c_check_type 2057cat >config.log <<_ACEOF 2058This file contains any messages produced by compilers while 2059running configure, to aid debugging if configure makes a mistake. 2060 2061It was created by virtualpg $as_me 2.0.1, which was 2062generated by GNU Autoconf 2.69. Invocation command line was 2063 2064 $ $0 $@ 2065 2066_ACEOF 2067exec 5>>config.log 2068{ 2069cat <<_ASUNAME 2070## --------- ## 2071## Platform. ## 2072## --------- ## 2073 2074hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2075uname -m = `(uname -m) 2>/dev/null || echo unknown` 2076uname -r = `(uname -r) 2>/dev/null || echo unknown` 2077uname -s = `(uname -s) 2>/dev/null || echo unknown` 2078uname -v = `(uname -v) 2>/dev/null || echo unknown` 2079 2080/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2081/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2082 2083/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2084/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2085/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2086/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2087/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2088/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2089/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2090 2091_ASUNAME 2092 2093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2094for as_dir in $PATH 2095do 2096 IFS=$as_save_IFS 2097 test -z "$as_dir" && as_dir=. 2098 $as_echo "PATH: $as_dir" 2099 done 2100IFS=$as_save_IFS 2101 2102} >&5 2103 2104cat >&5 <<_ACEOF 2105 2106 2107## ----------- ## 2108## Core tests. ## 2109## ----------- ## 2110 2111_ACEOF 2112 2113 2114# Keep a trace of the command line. 2115# Strip out --no-create and --no-recursion so they do not pile up. 2116# Strip out --silent because we don't want to record it for future runs. 2117# Also quote any args containing shell meta-characters. 2118# Make two passes to allow for proper duplicate-argument suppression. 2119ac_configure_args= 2120ac_configure_args0= 2121ac_configure_args1= 2122ac_must_keep_next=false 2123for ac_pass in 1 2 2124do 2125 for ac_arg 2126 do 2127 case $ac_arg in 2128 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2130 | -silent | --silent | --silen | --sile | --sil) 2131 continue ;; 2132 *\'*) 2133 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2134 esac 2135 case $ac_pass in 2136 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2137 2) 2138 as_fn_append ac_configure_args1 " '$ac_arg'" 2139 if test $ac_must_keep_next = true; then 2140 ac_must_keep_next=false # Got value, back to normal. 2141 else 2142 case $ac_arg in 2143 *=* | --config-cache | -C | -disable-* | --disable-* \ 2144 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2145 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2146 | -with-* | --with-* | -without-* | --without-* | --x) 2147 case "$ac_configure_args0 " in 2148 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2149 esac 2150 ;; 2151 -* ) ac_must_keep_next=true ;; 2152 esac 2153 fi 2154 as_fn_append ac_configure_args " '$ac_arg'" 2155 ;; 2156 esac 2157 done 2158done 2159{ ac_configure_args0=; unset ac_configure_args0;} 2160{ ac_configure_args1=; unset ac_configure_args1;} 2161 2162# When interrupted or exit'd, cleanup temporary files, and complete 2163# config.log. We remove comments because anyway the quotes in there 2164# would cause problems or look ugly. 2165# WARNING: Use '\'' to represent an apostrophe within the trap. 2166# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2167trap 'exit_status=$? 2168 # Save into config.log some information that might help in debugging. 2169 { 2170 echo 2171 2172 $as_echo "## ---------------- ## 2173## Cache variables. ## 2174## ---------------- ##" 2175 echo 2176 # The following way of writing the cache mishandles newlines in values, 2177( 2178 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2179 eval ac_val=\$$ac_var 2180 case $ac_val in #( 2181 *${as_nl}*) 2182 case $ac_var in #( 2183 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2184$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2185 esac 2186 case $ac_var in #( 2187 _ | IFS | as_nl) ;; #( 2188 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2189 *) { eval $ac_var=; unset $ac_var;} ;; 2190 esac ;; 2191 esac 2192 done 2193 (set) 2>&1 | 2194 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2195 *${as_nl}ac_space=\ *) 2196 sed -n \ 2197 "s/'\''/'\''\\\\'\'''\''/g; 2198 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2199 ;; #( 2200 *) 2201 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2202 ;; 2203 esac | 2204 sort 2205) 2206 echo 2207 2208 $as_echo "## ----------------- ## 2209## Output variables. ## 2210## ----------------- ##" 2211 echo 2212 for ac_var in $ac_subst_vars 2213 do 2214 eval ac_val=\$$ac_var 2215 case $ac_val in 2216 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2217 esac 2218 $as_echo "$ac_var='\''$ac_val'\''" 2219 done | sort 2220 echo 2221 2222 if test -n "$ac_subst_files"; then 2223 $as_echo "## ------------------- ## 2224## File substitutions. ## 2225## ------------------- ##" 2226 echo 2227 for ac_var in $ac_subst_files 2228 do 2229 eval ac_val=\$$ac_var 2230 case $ac_val in 2231 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2232 esac 2233 $as_echo "$ac_var='\''$ac_val'\''" 2234 done | sort 2235 echo 2236 fi 2237 2238 if test -s confdefs.h; then 2239 $as_echo "## ----------- ## 2240## confdefs.h. ## 2241## ----------- ##" 2242 echo 2243 cat confdefs.h 2244 echo 2245 fi 2246 test "$ac_signal" != 0 && 2247 $as_echo "$as_me: caught signal $ac_signal" 2248 $as_echo "$as_me: exit $exit_status" 2249 } >&5 2250 rm -f core *.core core.conftest.* && 2251 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2252 exit $exit_status 2253' 0 2254for ac_signal in 1 2 13 15; do 2255 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2256done 2257ac_signal=0 2258 2259# confdefs.h avoids OS command line length limits that DEFS can exceed. 2260rm -f -r conftest* confdefs.h 2261 2262$as_echo "/* confdefs.h */" > confdefs.h 2263 2264# Predefined preprocessor variables. 2265 2266cat >>confdefs.h <<_ACEOF 2267#define PACKAGE_NAME "$PACKAGE_NAME" 2268_ACEOF 2269 2270cat >>confdefs.h <<_ACEOF 2271#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2272_ACEOF 2273 2274cat >>confdefs.h <<_ACEOF 2275#define PACKAGE_VERSION "$PACKAGE_VERSION" 2276_ACEOF 2277 2278cat >>confdefs.h <<_ACEOF 2279#define PACKAGE_STRING "$PACKAGE_STRING" 2280_ACEOF 2281 2282cat >>confdefs.h <<_ACEOF 2283#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2284_ACEOF 2285 2286cat >>confdefs.h <<_ACEOF 2287#define PACKAGE_URL "$PACKAGE_URL" 2288_ACEOF 2289 2290 2291# Let the site file select an alternate cache file if it wants to. 2292# Prefer an explicitly selected file to automatically selected ones. 2293ac_site_file1=NONE 2294ac_site_file2=NONE 2295if test -n "$CONFIG_SITE"; then 2296 # We do not want a PATH search for config.site. 2297 case $CONFIG_SITE in #(( 2298 -*) ac_site_file1=./$CONFIG_SITE;; 2299 */*) ac_site_file1=$CONFIG_SITE;; 2300 *) ac_site_file1=./$CONFIG_SITE;; 2301 esac 2302elif test "x$prefix" != xNONE; then 2303 ac_site_file1=$prefix/share/config.site 2304 ac_site_file2=$prefix/etc/config.site 2305else 2306 ac_site_file1=$ac_default_prefix/share/config.site 2307 ac_site_file2=$ac_default_prefix/etc/config.site 2308fi 2309for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2310do 2311 test "x$ac_site_file" = xNONE && continue 2312 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2313 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2314$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2315 sed 's/^/| /' "$ac_site_file" >&5 2316 . "$ac_site_file" \ 2317 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2319as_fn_error $? "failed to load site script $ac_site_file 2320See \`config.log' for more details" "$LINENO" 5; } 2321 fi 2322done 2323 2324if test -r "$cache_file"; then 2325 # Some versions of bash will fail to source /dev/null (special files 2326 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2327 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2328 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2329$as_echo "$as_me: loading cache $cache_file" >&6;} 2330 case $cache_file in 2331 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2332 *) . "./$cache_file";; 2333 esac 2334 fi 2335else 2336 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2337$as_echo "$as_me: creating cache $cache_file" >&6;} 2338 >$cache_file 2339fi 2340 2341# Check that the precious variables saved in the cache have kept the same 2342# value. 2343ac_cache_corrupted=false 2344for ac_var in $ac_precious_vars; do 2345 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2346 eval ac_new_set=\$ac_env_${ac_var}_set 2347 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2348 eval ac_new_val=\$ac_env_${ac_var}_value 2349 case $ac_old_set,$ac_new_set in 2350 set,) 2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2352$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2353 ac_cache_corrupted=: ;; 2354 ,set) 2355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2356$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2357 ac_cache_corrupted=: ;; 2358 ,);; 2359 *) 2360 if test "x$ac_old_val" != "x$ac_new_val"; then 2361 # differences in whitespace do not lead to failure. 2362 ac_old_val_w=`echo x $ac_old_val` 2363 ac_new_val_w=`echo x $ac_new_val` 2364 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2366$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2367 ac_cache_corrupted=: 2368 else 2369 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2370$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2371 eval $ac_var=\$ac_old_val 2372 fi 2373 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2374$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2375 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2376$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2377 fi;; 2378 esac 2379 # Pass precious variables to config.status. 2380 if test "$ac_new_set" = set; then 2381 case $ac_new_val in 2382 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2383 *) ac_arg=$ac_var=$ac_new_val ;; 2384 esac 2385 case " $ac_configure_args " in 2386 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2387 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2388 esac 2389 fi 2390done 2391if $ac_cache_corrupted; then 2392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2395$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2396 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2397fi 2398## -------------------- ## 2399## Main body of script. ## 2400## -------------------- ## 2401 2402ac_ext=c 2403ac_cpp='$CPP $CPPFLAGS' 2404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2406ac_compiler_gnu=$ac_cv_c_compiler_gnu 2407 2408 2409ac_ext=c 2410ac_cpp='$CPP $CPPFLAGS' 2411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2413ac_compiler_gnu=$ac_cv_c_compiler_gnu 2414 2415 2416 2417am__api_version='1.16' 2418 2419ac_aux_dir= 2420for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2421 if test -f "$ac_dir/install-sh"; then 2422 ac_aux_dir=$ac_dir 2423 ac_install_sh="$ac_aux_dir/install-sh -c" 2424 break 2425 elif test -f "$ac_dir/install.sh"; then 2426 ac_aux_dir=$ac_dir 2427 ac_install_sh="$ac_aux_dir/install.sh -c" 2428 break 2429 elif test -f "$ac_dir/shtool"; then 2430 ac_aux_dir=$ac_dir 2431 ac_install_sh="$ac_aux_dir/shtool install -c" 2432 break 2433 fi 2434done 2435if test -z "$ac_aux_dir"; then 2436 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2437fi 2438 2439# These three variables are undocumented and unsupported, 2440# and are intended to be withdrawn in a future Autoconf release. 2441# They can cause serious problems if a builder's source tree is in a directory 2442# whose full name contains unusual characters. 2443ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2444ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2445ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2446 2447 2448# Find a good install program. We prefer a C program (faster), 2449# so one script is as good as another. But avoid the broken or 2450# incompatible versions: 2451# SysV /etc/install, /usr/sbin/install 2452# SunOS /usr/etc/install 2453# IRIX /sbin/install 2454# AIX /bin/install 2455# AmigaOS /C/install, which installs bootblocks on floppy discs 2456# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2457# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2458# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2459# OS/2's system install, which has a completely different semantic 2460# ./install, which can be erroneously created by make from ./install.sh. 2461# Reject install programs that cannot install multiple files. 2462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2463$as_echo_n "checking for a BSD-compatible install... " >&6; } 2464if test -z "$INSTALL"; then 2465if ${ac_cv_path_install+:} false; then : 2466 $as_echo_n "(cached) " >&6 2467else 2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2469for as_dir in $PATH 2470do 2471 IFS=$as_save_IFS 2472 test -z "$as_dir" && as_dir=. 2473 # Account for people who put trailing slashes in PATH elements. 2474case $as_dir/ in #(( 2475 ./ | .// | /[cC]/* | \ 2476 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2477 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2478 /usr/ucb/* ) ;; 2479 *) 2480 # OSF1 and SCO ODT 3.0 have their own names for install. 2481 # Don't use installbsd from OSF since it installs stuff as root 2482 # by default. 2483 for ac_prog in ginstall scoinst install; do 2484 for ac_exec_ext in '' $ac_executable_extensions; do 2485 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2486 if test $ac_prog = install && 2487 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2488 # AIX install. It has an incompatible calling convention. 2489 : 2490 elif test $ac_prog = install && 2491 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2492 # program-specific install script used by HP pwplus--don't use. 2493 : 2494 else 2495 rm -rf conftest.one conftest.two conftest.dir 2496 echo one > conftest.one 2497 echo two > conftest.two 2498 mkdir conftest.dir 2499 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2500 test -s conftest.one && test -s conftest.two && 2501 test -s conftest.dir/conftest.one && 2502 test -s conftest.dir/conftest.two 2503 then 2504 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2505 break 3 2506 fi 2507 fi 2508 fi 2509 done 2510 done 2511 ;; 2512esac 2513 2514 done 2515IFS=$as_save_IFS 2516 2517rm -rf conftest.one conftest.two conftest.dir 2518 2519fi 2520 if test "${ac_cv_path_install+set}" = set; then 2521 INSTALL=$ac_cv_path_install 2522 else 2523 # As a last resort, use the slow shell script. Don't cache a 2524 # value for INSTALL within a source directory, because that will 2525 # break other packages using the cache if that directory is 2526 # removed, or if the value is a relative name. 2527 INSTALL=$ac_install_sh 2528 fi 2529fi 2530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2531$as_echo "$INSTALL" >&6; } 2532 2533# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2534# It thinks the first close brace ends the variable substitution. 2535test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2536 2537test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2538 2539test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2540 2541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2542$as_echo_n "checking whether build environment is sane... " >&6; } 2543# Reject unsafe characters in $srcdir or the absolute working directory 2544# name. Accept space and tab only in the latter. 2545am_lf=' 2546' 2547case `pwd` in 2548 *[\\\"\#\$\&\'\`$am_lf]*) 2549 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2550esac 2551case $srcdir in 2552 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2553 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2554esac 2555 2556# Do 'set' in a subshell so we don't clobber the current shell's 2557# arguments. Must try -L first in case configure is actually a 2558# symlink; some systems play weird games with the mod time of symlinks 2559# (eg FreeBSD returns the mod time of the symlink's containing 2560# directory). 2561if ( 2562 am_has_slept=no 2563 for am_try in 1 2; do 2564 echo "timestamp, slept: $am_has_slept" > conftest.file 2565 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2566 if test "$*" = "X"; then 2567 # -L didn't work. 2568 set X `ls -t "$srcdir/configure" conftest.file` 2569 fi 2570 if test "$*" != "X $srcdir/configure conftest.file" \ 2571 && test "$*" != "X conftest.file $srcdir/configure"; then 2572 2573 # If neither matched, then we have a broken ls. This can happen 2574 # if, for instance, CONFIG_SHELL is bash and it inherits a 2575 # broken ls alias from the environment. This has actually 2576 # happened. Such a system could not be considered "sane". 2577 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2578 alias in your environment" "$LINENO" 5 2579 fi 2580 if test "$2" = conftest.file || test $am_try -eq 2; then 2581 break 2582 fi 2583 # Just in case. 2584 sleep 1 2585 am_has_slept=yes 2586 done 2587 test "$2" = conftest.file 2588 ) 2589then 2590 # Ok. 2591 : 2592else 2593 as_fn_error $? "newly created file is older than distributed files! 2594Check your system clock" "$LINENO" 5 2595fi 2596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2597$as_echo "yes" >&6; } 2598# If we didn't sleep, we still need to ensure time stamps of config.status and 2599# generated files are strictly newer. 2600am_sleep_pid= 2601if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2602 ( sleep 1 ) & 2603 am_sleep_pid=$! 2604fi 2605 2606rm -f conftest.file 2607 2608test "$program_prefix" != NONE && 2609 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2610# Use a double $ so make ignores it. 2611test "$program_suffix" != NONE && 2612 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2613# Double any \ or $. 2614# By default was `s,x,x', remove it if useless. 2615ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2616program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2617 2618# Expand $ac_aux_dir to an absolute path. 2619am_aux_dir=`cd "$ac_aux_dir" && pwd` 2620 2621if test x"${MISSING+set}" != xset; then 2622 case $am_aux_dir in 2623 *\ * | *\ *) 2624 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2625 *) 2626 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2627 esac 2628fi 2629# Use eval to expand $SHELL 2630if eval "$MISSING --is-lightweight"; then 2631 am_missing_run="$MISSING " 2632else 2633 am_missing_run= 2634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2635$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2636fi 2637 2638if test x"${install_sh+set}" != xset; then 2639 case $am_aux_dir in 2640 *\ * | *\ *) 2641 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2642 *) 2643 install_sh="\${SHELL} $am_aux_dir/install-sh" 2644 esac 2645fi 2646 2647# Installed binaries are usually stripped using 'strip' when the user 2648# run "make install-strip". However 'strip' might not be the right 2649# tool to use in cross-compilation environments, therefore Automake 2650# will honor the 'STRIP' environment variable to overrule this program. 2651if test "$cross_compiling" != no; then 2652 if test -n "$ac_tool_prefix"; then 2653 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2654set dummy ${ac_tool_prefix}strip; ac_word=$2 2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2656$as_echo_n "checking for $ac_word... " >&6; } 2657if ${ac_cv_prog_STRIP+:} false; then : 2658 $as_echo_n "(cached) " >&6 2659else 2660 if test -n "$STRIP"; then 2661 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2662else 2663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2664for as_dir in $PATH 2665do 2666 IFS=$as_save_IFS 2667 test -z "$as_dir" && as_dir=. 2668 for ac_exec_ext in '' $ac_executable_extensions; do 2669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2670 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2672 break 2 2673 fi 2674done 2675 done 2676IFS=$as_save_IFS 2677 2678fi 2679fi 2680STRIP=$ac_cv_prog_STRIP 2681if test -n "$STRIP"; then 2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2683$as_echo "$STRIP" >&6; } 2684else 2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2686$as_echo "no" >&6; } 2687fi 2688 2689 2690fi 2691if test -z "$ac_cv_prog_STRIP"; then 2692 ac_ct_STRIP=$STRIP 2693 # Extract the first word of "strip", so it can be a program name with args. 2694set dummy strip; ac_word=$2 2695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2696$as_echo_n "checking for $ac_word... " >&6; } 2697if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2698 $as_echo_n "(cached) " >&6 2699else 2700 if test -n "$ac_ct_STRIP"; then 2701 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2702else 2703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2704for as_dir in $PATH 2705do 2706 IFS=$as_save_IFS 2707 test -z "$as_dir" && as_dir=. 2708 for ac_exec_ext in '' $ac_executable_extensions; do 2709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2710 ac_cv_prog_ac_ct_STRIP="strip" 2711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2712 break 2 2713 fi 2714done 2715 done 2716IFS=$as_save_IFS 2717 2718fi 2719fi 2720ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2721if test -n "$ac_ct_STRIP"; then 2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2723$as_echo "$ac_ct_STRIP" >&6; } 2724else 2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2726$as_echo "no" >&6; } 2727fi 2728 2729 if test "x$ac_ct_STRIP" = x; then 2730 STRIP=":" 2731 else 2732 case $cross_compiling:$ac_tool_warned in 2733yes:) 2734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2736ac_tool_warned=yes ;; 2737esac 2738 STRIP=$ac_ct_STRIP 2739 fi 2740else 2741 STRIP="$ac_cv_prog_STRIP" 2742fi 2743 2744fi 2745INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2746 2747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2748$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2749if test -z "$MKDIR_P"; then 2750 if ${ac_cv_path_mkdir+:} false; then : 2751 $as_echo_n "(cached) " >&6 2752else 2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2754for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2755do 2756 IFS=$as_save_IFS 2757 test -z "$as_dir" && as_dir=. 2758 for ac_prog in mkdir gmkdir; do 2759 for ac_exec_ext in '' $ac_executable_extensions; do 2760 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2761 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2762 'mkdir (GNU coreutils) '* | \ 2763 'mkdir (coreutils) '* | \ 2764 'mkdir (fileutils) '4.1*) 2765 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2766 break 3;; 2767 esac 2768 done 2769 done 2770 done 2771IFS=$as_save_IFS 2772 2773fi 2774 2775 test -d ./--version && rmdir ./--version 2776 if test "${ac_cv_path_mkdir+set}" = set; then 2777 MKDIR_P="$ac_cv_path_mkdir -p" 2778 else 2779 # As a last resort, use the slow shell script. Don't cache a 2780 # value for MKDIR_P within a source directory, because that will 2781 # break other packages using the cache if that directory is 2782 # removed, or if the value is a relative name. 2783 MKDIR_P="$ac_install_sh -d" 2784 fi 2785fi 2786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2787$as_echo "$MKDIR_P" >&6; } 2788 2789for ac_prog in gawk mawk nawk awk 2790do 2791 # Extract the first word of "$ac_prog", so it can be a program name with args. 2792set dummy $ac_prog; ac_word=$2 2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2794$as_echo_n "checking for $ac_word... " >&6; } 2795if ${ac_cv_prog_AWK+:} false; then : 2796 $as_echo_n "(cached) " >&6 2797else 2798 if test -n "$AWK"; then 2799 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2800else 2801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2802for as_dir in $PATH 2803do 2804 IFS=$as_save_IFS 2805 test -z "$as_dir" && as_dir=. 2806 for ac_exec_ext in '' $ac_executable_extensions; do 2807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2808 ac_cv_prog_AWK="$ac_prog" 2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2810 break 2 2811 fi 2812done 2813 done 2814IFS=$as_save_IFS 2815 2816fi 2817fi 2818AWK=$ac_cv_prog_AWK 2819if test -n "$AWK"; then 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2821$as_echo "$AWK" >&6; } 2822else 2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2824$as_echo "no" >&6; } 2825fi 2826 2827 2828 test -n "$AWK" && break 2829done 2830 2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2832$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2833set x ${MAKE-make} 2834ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2835if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2836 $as_echo_n "(cached) " >&6 2837else 2838 cat >conftest.make <<\_ACEOF 2839SHELL = /bin/sh 2840all: 2841 @echo '@@@%%%=$(MAKE)=@@@%%%' 2842_ACEOF 2843# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2844case `${MAKE-make} -f conftest.make 2>/dev/null` in 2845 *@@@%%%=?*=@@@%%%*) 2846 eval ac_cv_prog_make_${ac_make}_set=yes;; 2847 *) 2848 eval ac_cv_prog_make_${ac_make}_set=no;; 2849esac 2850rm -f conftest.make 2851fi 2852if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2854$as_echo "yes" >&6; } 2855 SET_MAKE= 2856else 2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2858$as_echo "no" >&6; } 2859 SET_MAKE="MAKE=${MAKE-make}" 2860fi 2861 2862rm -rf .tst 2>/dev/null 2863mkdir .tst 2>/dev/null 2864if test -d .tst; then 2865 am__leading_dot=. 2866else 2867 am__leading_dot=_ 2868fi 2869rmdir .tst 2>/dev/null 2870 2871# Check whether --enable-silent-rules was given. 2872if test "${enable_silent_rules+set}" = set; then : 2873 enableval=$enable_silent_rules; 2874fi 2875 2876case $enable_silent_rules in # ((( 2877 yes) AM_DEFAULT_VERBOSITY=0;; 2878 no) AM_DEFAULT_VERBOSITY=1;; 2879 *) AM_DEFAULT_VERBOSITY=1;; 2880esac 2881am_make=${MAKE-make} 2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2883$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2884if ${am_cv_make_support_nested_variables+:} false; then : 2885 $as_echo_n "(cached) " >&6 2886else 2887 if $as_echo 'TRUE=$(BAR$(V)) 2888BAR0=false 2889BAR1=true 2890V=1 2891am__doit: 2892 @$(TRUE) 2893.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2894 am_cv_make_support_nested_variables=yes 2895else 2896 am_cv_make_support_nested_variables=no 2897fi 2898fi 2899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2900$as_echo "$am_cv_make_support_nested_variables" >&6; } 2901if test $am_cv_make_support_nested_variables = yes; then 2902 AM_V='$(V)' 2903 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2904else 2905 AM_V=$AM_DEFAULT_VERBOSITY 2906 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2907fi 2908AM_BACKSLASH='\' 2909 2910if test "`cd $srcdir && pwd`" != "`pwd`"; then 2911 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2912 # is not polluted with repeated "-I." 2913 am__isrc=' -I$(srcdir)' 2914 # test to see if srcdir already configured 2915 if test -f $srcdir/config.status; then 2916 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2917 fi 2918fi 2919 2920# test whether we have cygpath 2921if test -z "$CYGPATH_W"; then 2922 if (cygpath --version) >/dev/null 2>/dev/null; then 2923 CYGPATH_W='cygpath -w' 2924 else 2925 CYGPATH_W=echo 2926 fi 2927fi 2928 2929 2930# Define the identity of the package. 2931 PACKAGE='virtualpg' 2932 VERSION='2.0.1' 2933 2934 2935cat >>confdefs.h <<_ACEOF 2936#define PACKAGE "$PACKAGE" 2937_ACEOF 2938 2939 2940cat >>confdefs.h <<_ACEOF 2941#define VERSION "$VERSION" 2942_ACEOF 2943 2944# Some tools Automake needs. 2945 2946ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2947 2948 2949AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2950 2951 2952AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2953 2954 2955AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2956 2957 2958MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2959 2960# For better backward compatibility. To be removed once Automake 1.9.x 2961# dies out for good. For more background, see: 2962# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2963# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2964mkdir_p='$(MKDIR_P)' 2965 2966# We need awk for the "check" target (and possibly the TAP driver). The 2967# system "awk" is bad on some platforms. 2968# Always define AMTAR for backward compatibility. Yes, it's still used 2969# in the wild :-( We should find a proper way to deprecate it ... 2970AMTAR='$${TAR-tar}' 2971 2972 2973# We'll loop over all known methods to create a tar archive until one works. 2974_am_tools='gnutar pax cpio none' 2975 2976am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2977 2978 2979 2980 2981 2982 2983# POSIX will say in a future version that running "rm -f" with no argument 2984# is OK; and we want to be able to make that assumption in our Makefile 2985# recipes. So use an aggressive probe to check that the usage we want is 2986# actually supported "in the wild" to an acceptable degree. 2987# See automake bug#10828. 2988# To make any issue more visible, cause the running configure to be aborted 2989# by default if the 'rm' program in use doesn't match our expectations; the 2990# user can still override this though. 2991if rm -f && rm -fr && rm -rf; then : OK; else 2992 cat >&2 <<'END' 2993Oops! 2994 2995Your 'rm' program seems unable to run without file operands specified 2996on the command line, even when the '-f' option is present. This is contrary 2997to the behaviour of most rm programs out there, and not conforming with 2998the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2999 3000Please tell bug-automake@gnu.org about your system, including the value 3001of your $PATH and any error possibly output before this message. This 3002can help us improve future automake versions. 3003 3004END 3005 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3006 echo 'Configuration will proceed anyway, since you have set the' >&2 3007 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3008 echo >&2 3009 else 3010 cat >&2 <<'END' 3011Aborting the configuration process, to ensure you take notice of the issue. 3012 3013You can download and install GNU coreutils to get an 'rm' implementation 3014that behaves properly: <https://www.gnu.org/software/coreutils/>. 3015 3016If you want to complete the configuration process using your problematic 3017'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3018to "yes", and re-run configure. 3019 3020END 3021 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3022 fi 3023fi 3024 3025 3026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3027$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3028 # Check whether --enable-maintainer-mode was given. 3029if test "${enable_maintainer_mode+set}" = set; then : 3030 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3031else 3032 USE_MAINTAINER_MODE=no 3033fi 3034 3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3036$as_echo "$USE_MAINTAINER_MODE" >&6; } 3037 if test $USE_MAINTAINER_MODE = yes; then 3038 MAINTAINER_MODE_TRUE= 3039 MAINTAINER_MODE_FALSE='#' 3040else 3041 MAINTAINER_MODE_TRUE='#' 3042 MAINTAINER_MODE_FALSE= 3043fi 3044 3045 MAINT=$MAINTAINER_MODE_TRUE 3046 3047 3048ac_config_headers="$ac_config_headers config.h" 3049 3050 3051# disablibg debug support 3052 3053$as_echo "#define NDEBUG 1" >>confdefs.h 3054 3055 3056# Checks for header files. 3057DEPDIR="${am__leading_dot}deps" 3058 3059ac_config_commands="$ac_config_commands depfiles" 3060 3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3062$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3063cat > confinc.mk << 'END' 3064am__doit: 3065 @echo this is the am__doit target >confinc.out 3066.PHONY: am__doit 3067END 3068am__include="#" 3069am__quote= 3070# BSD make does it like this. 3071echo '.include "confinc.mk" # ignored' > confmf.BSD 3072# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3073echo 'include confinc.mk # ignored' > confmf.GNU 3074_am_result=no 3075for s in GNU BSD; do 3076 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3077 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3078 ac_status=$? 3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3080 (exit $ac_status); } 3081 case $?:`cat confinc.out 2>/dev/null` in #( 3082 '0:this is the am__doit target') : 3083 case $s in #( 3084 BSD) : 3085 am__include='.include' am__quote='"' ;; #( 3086 *) : 3087 am__include='include' am__quote='' ;; 3088esac ;; #( 3089 *) : 3090 ;; 3091esac 3092 if test "$am__include" != "#"; then 3093 _am_result="yes ($s style)" 3094 break 3095 fi 3096done 3097rm -f confinc.* confmf.* 3098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3099$as_echo "${_am_result}" >&6; } 3100 3101# Check whether --enable-dependency-tracking was given. 3102if test "${enable_dependency_tracking+set}" = set; then : 3103 enableval=$enable_dependency_tracking; 3104fi 3105 3106if test "x$enable_dependency_tracking" != xno; then 3107 am_depcomp="$ac_aux_dir/depcomp" 3108 AMDEPBACKSLASH='\' 3109 am__nodep='_no' 3110fi 3111 if test "x$enable_dependency_tracking" != xno; then 3112 AMDEP_TRUE= 3113 AMDEP_FALSE='#' 3114else 3115 AMDEP_TRUE='#' 3116 AMDEP_FALSE= 3117fi 3118 3119 3120ac_ext=c 3121ac_cpp='$CPP $CPPFLAGS' 3122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3124ac_compiler_gnu=$ac_cv_c_compiler_gnu 3125if test -n "$ac_tool_prefix"; then 3126 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3127set dummy ${ac_tool_prefix}gcc; ac_word=$2 3128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3129$as_echo_n "checking for $ac_word... " >&6; } 3130if ${ac_cv_prog_CC+:} false; then : 3131 $as_echo_n "(cached) " >&6 3132else 3133 if test -n "$CC"; then 3134 ac_cv_prog_CC="$CC" # Let the user override the test. 3135else 3136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3137for as_dir in $PATH 3138do 3139 IFS=$as_save_IFS 3140 test -z "$as_dir" && as_dir=. 3141 for ac_exec_ext in '' $ac_executable_extensions; do 3142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3143 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3145 break 2 3146 fi 3147done 3148 done 3149IFS=$as_save_IFS 3150 3151fi 3152fi 3153CC=$ac_cv_prog_CC 3154if test -n "$CC"; then 3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3156$as_echo "$CC" >&6; } 3157else 3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3159$as_echo "no" >&6; } 3160fi 3161 3162 3163fi 3164if test -z "$ac_cv_prog_CC"; then 3165 ac_ct_CC=$CC 3166 # Extract the first word of "gcc", so it can be a program name with args. 3167set dummy gcc; ac_word=$2 3168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3169$as_echo_n "checking for $ac_word... " >&6; } 3170if ${ac_cv_prog_ac_ct_CC+:} false; then : 3171 $as_echo_n "(cached) " >&6 3172else 3173 if test -n "$ac_ct_CC"; then 3174 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3175else 3176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3177for as_dir in $PATH 3178do 3179 IFS=$as_save_IFS 3180 test -z "$as_dir" && as_dir=. 3181 for ac_exec_ext in '' $ac_executable_extensions; do 3182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3183 ac_cv_prog_ac_ct_CC="gcc" 3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3185 break 2 3186 fi 3187done 3188 done 3189IFS=$as_save_IFS 3190 3191fi 3192fi 3193ac_ct_CC=$ac_cv_prog_ac_ct_CC 3194if test -n "$ac_ct_CC"; then 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3196$as_echo "$ac_ct_CC" >&6; } 3197else 3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3199$as_echo "no" >&6; } 3200fi 3201 3202 if test "x$ac_ct_CC" = x; then 3203 CC="" 3204 else 3205 case $cross_compiling:$ac_tool_warned in 3206yes:) 3207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3209ac_tool_warned=yes ;; 3210esac 3211 CC=$ac_ct_CC 3212 fi 3213else 3214 CC="$ac_cv_prog_CC" 3215fi 3216 3217if test -z "$CC"; then 3218 if test -n "$ac_tool_prefix"; then 3219 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3220set dummy ${ac_tool_prefix}cc; ac_word=$2 3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3222$as_echo_n "checking for $ac_word... " >&6; } 3223if ${ac_cv_prog_CC+:} false; then : 3224 $as_echo_n "(cached) " >&6 3225else 3226 if test -n "$CC"; then 3227 ac_cv_prog_CC="$CC" # Let the user override the test. 3228else 3229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3230for as_dir in $PATH 3231do 3232 IFS=$as_save_IFS 3233 test -z "$as_dir" && as_dir=. 3234 for ac_exec_ext in '' $ac_executable_extensions; do 3235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3236 ac_cv_prog_CC="${ac_tool_prefix}cc" 3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3238 break 2 3239 fi 3240done 3241 done 3242IFS=$as_save_IFS 3243 3244fi 3245fi 3246CC=$ac_cv_prog_CC 3247if test -n "$CC"; then 3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3249$as_echo "$CC" >&6; } 3250else 3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3252$as_echo "no" >&6; } 3253fi 3254 3255 3256 fi 3257fi 3258if test -z "$CC"; then 3259 # Extract the first word of "cc", so it can be a program name with args. 3260set dummy cc; ac_word=$2 3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3262$as_echo_n "checking for $ac_word... " >&6; } 3263if ${ac_cv_prog_CC+:} false; then : 3264 $as_echo_n "(cached) " >&6 3265else 3266 if test -n "$CC"; then 3267 ac_cv_prog_CC="$CC" # Let the user override the test. 3268else 3269 ac_prog_rejected=no 3270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3271for as_dir in $PATH 3272do 3273 IFS=$as_save_IFS 3274 test -z "$as_dir" && as_dir=. 3275 for ac_exec_ext in '' $ac_executable_extensions; do 3276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3277 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3278 ac_prog_rejected=yes 3279 continue 3280 fi 3281 ac_cv_prog_CC="cc" 3282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3283 break 2 3284 fi 3285done 3286 done 3287IFS=$as_save_IFS 3288 3289if test $ac_prog_rejected = yes; then 3290 # We found a bogon in the path, so make sure we never use it. 3291 set dummy $ac_cv_prog_CC 3292 shift 3293 if test $# != 0; then 3294 # We chose a different compiler from the bogus one. 3295 # However, it has the same basename, so the bogon will be chosen 3296 # first if we set CC to just the basename; use the full file name. 3297 shift 3298 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3299 fi 3300fi 3301fi 3302fi 3303CC=$ac_cv_prog_CC 3304if test -n "$CC"; then 3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3306$as_echo "$CC" >&6; } 3307else 3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3309$as_echo "no" >&6; } 3310fi 3311 3312 3313fi 3314if test -z "$CC"; then 3315 if test -n "$ac_tool_prefix"; then 3316 for ac_prog in cl.exe 3317 do 3318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3319set dummy $ac_tool_prefix$ac_prog; 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$ac_prog" 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 3355 test -n "$CC" && break 3356 done 3357fi 3358if test -z "$CC"; then 3359 ac_ct_CC=$CC 3360 for ac_prog in cl.exe 3361do 3362 # Extract the first word of "$ac_prog", so it can be a program name with args. 3363set dummy $ac_prog; ac_word=$2 3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3365$as_echo_n "checking for $ac_word... " >&6; } 3366if ${ac_cv_prog_ac_ct_CC+:} false; then : 3367 $as_echo_n "(cached) " >&6 3368else 3369 if test -n "$ac_ct_CC"; then 3370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3371else 3372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3373for as_dir in $PATH 3374do 3375 IFS=$as_save_IFS 3376 test -z "$as_dir" && as_dir=. 3377 for ac_exec_ext in '' $ac_executable_extensions; do 3378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3379 ac_cv_prog_ac_ct_CC="$ac_prog" 3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3381 break 2 3382 fi 3383done 3384 done 3385IFS=$as_save_IFS 3386 3387fi 3388fi 3389ac_ct_CC=$ac_cv_prog_ac_ct_CC 3390if test -n "$ac_ct_CC"; then 3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3392$as_echo "$ac_ct_CC" >&6; } 3393else 3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3395$as_echo "no" >&6; } 3396fi 3397 3398 3399 test -n "$ac_ct_CC" && break 3400done 3401 3402 if test "x$ac_ct_CC" = x; then 3403 CC="" 3404 else 3405 case $cross_compiling:$ac_tool_warned in 3406yes:) 3407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3409ac_tool_warned=yes ;; 3410esac 3411 CC=$ac_ct_CC 3412 fi 3413fi 3414 3415fi 3416 3417 3418test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3420as_fn_error $? "no acceptable C compiler found in \$PATH 3421See \`config.log' for more details" "$LINENO" 5; } 3422 3423# Provide some information about the compiler. 3424$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3425set X $ac_compile 3426ac_compiler=$2 3427for ac_option in --version -v -V -qversion; do 3428 { { ac_try="$ac_compiler $ac_option >&5" 3429case "(($ac_try" in 3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3431 *) ac_try_echo=$ac_try;; 3432esac 3433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3434$as_echo "$ac_try_echo"; } >&5 3435 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3436 ac_status=$? 3437 if test -s conftest.err; then 3438 sed '10a\ 3439... rest of stderr output deleted ... 3440 10q' conftest.err >conftest.er1 3441 cat conftest.er1 >&5 3442 fi 3443 rm -f conftest.er1 conftest.err 3444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3445 test $ac_status = 0; } 3446done 3447 3448cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3449/* end confdefs.h. */ 3450 3451int 3452main () 3453{ 3454 3455 ; 3456 return 0; 3457} 3458_ACEOF 3459ac_clean_files_save=$ac_clean_files 3460ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3461# Try to create an executable without -o first, disregard a.out. 3462# It will help us diagnose broken compilers, and finding out an intuition 3463# of exeext. 3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3465$as_echo_n "checking whether the C compiler works... " >&6; } 3466ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3467 3468# The possible output files: 3469ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3470 3471ac_rmfiles= 3472for ac_file in $ac_files 3473do 3474 case $ac_file in 3475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3476 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3477 esac 3478done 3479rm -f $ac_rmfiles 3480 3481if { { ac_try="$ac_link_default" 3482case "(($ac_try" in 3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3484 *) ac_try_echo=$ac_try;; 3485esac 3486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3487$as_echo "$ac_try_echo"; } >&5 3488 (eval "$ac_link_default") 2>&5 3489 ac_status=$? 3490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3491 test $ac_status = 0; }; then : 3492 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3493# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3494# in a Makefile. We should not override ac_cv_exeext if it was cached, 3495# so that the user can short-circuit this test for compilers unknown to 3496# Autoconf. 3497for ac_file in $ac_files '' 3498do 3499 test -f "$ac_file" || continue 3500 case $ac_file in 3501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3502 ;; 3503 [ab].out ) 3504 # We found the default executable, but exeext='' is most 3505 # certainly right. 3506 break;; 3507 *.* ) 3508 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3509 then :; else 3510 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3511 fi 3512 # We set ac_cv_exeext here because the later test for it is not 3513 # safe: cross compilers may not add the suffix if given an `-o' 3514 # argument, so we may need to know it at that point already. 3515 # Even if this section looks crufty: it has the advantage of 3516 # actually working. 3517 break;; 3518 * ) 3519 break;; 3520 esac 3521done 3522test "$ac_cv_exeext" = no && ac_cv_exeext= 3523 3524else 3525 ac_file='' 3526fi 3527if test -z "$ac_file"; then : 3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3529$as_echo "no" >&6; } 3530$as_echo "$as_me: failed program was:" >&5 3531sed 's/^/| /' conftest.$ac_ext >&5 3532 3533{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3534$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3535as_fn_error 77 "C compiler cannot create executables 3536See \`config.log' for more details" "$LINENO" 5; } 3537else 3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3539$as_echo "yes" >&6; } 3540fi 3541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3542$as_echo_n "checking for C compiler default output file name... " >&6; } 3543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3544$as_echo "$ac_file" >&6; } 3545ac_exeext=$ac_cv_exeext 3546 3547rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3548ac_clean_files=$ac_clean_files_save 3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3550$as_echo_n "checking for suffix of executables... " >&6; } 3551if { { ac_try="$ac_link" 3552case "(($ac_try" in 3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3554 *) ac_try_echo=$ac_try;; 3555esac 3556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3557$as_echo "$ac_try_echo"; } >&5 3558 (eval "$ac_link") 2>&5 3559 ac_status=$? 3560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3561 test $ac_status = 0; }; then : 3562 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3563# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3564# work properly (i.e., refer to `conftest.exe'), while it won't with 3565# `rm'. 3566for ac_file in conftest.exe conftest conftest.*; do 3567 test -f "$ac_file" || continue 3568 case $ac_file in 3569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3570 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3571 break;; 3572 * ) break;; 3573 esac 3574done 3575else 3576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3578as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3579See \`config.log' for more details" "$LINENO" 5; } 3580fi 3581rm -f conftest conftest$ac_cv_exeext 3582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3583$as_echo "$ac_cv_exeext" >&6; } 3584 3585rm -f conftest.$ac_ext 3586EXEEXT=$ac_cv_exeext 3587ac_exeext=$EXEEXT 3588cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3589/* end confdefs.h. */ 3590#include <stdio.h> 3591int 3592main () 3593{ 3594FILE *f = fopen ("conftest.out", "w"); 3595 return ferror (f) || fclose (f) != 0; 3596 3597 ; 3598 return 0; 3599} 3600_ACEOF 3601ac_clean_files="$ac_clean_files conftest.out" 3602# Check that the compiler produces executables we can run. If not, either 3603# the compiler is broken, or we cross compile. 3604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3605$as_echo_n "checking whether we are cross compiling... " >&6; } 3606if test "$cross_compiling" != yes; then 3607 { { ac_try="$ac_link" 3608case "(($ac_try" in 3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3610 *) ac_try_echo=$ac_try;; 3611esac 3612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3613$as_echo "$ac_try_echo"; } >&5 3614 (eval "$ac_link") 2>&5 3615 ac_status=$? 3616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3617 test $ac_status = 0; } 3618 if { ac_try='./conftest$ac_cv_exeext' 3619 { { case "(($ac_try" in 3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3621 *) ac_try_echo=$ac_try;; 3622esac 3623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3624$as_echo "$ac_try_echo"; } >&5 3625 (eval "$ac_try") 2>&5 3626 ac_status=$? 3627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3628 test $ac_status = 0; }; }; then 3629 cross_compiling=no 3630 else 3631 if test "$cross_compiling" = maybe; then 3632 cross_compiling=yes 3633 else 3634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3636as_fn_error $? "cannot run C compiled programs. 3637If you meant to cross compile, use \`--host'. 3638See \`config.log' for more details" "$LINENO" 5; } 3639 fi 3640 fi 3641fi 3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3643$as_echo "$cross_compiling" >&6; } 3644 3645rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3646ac_clean_files=$ac_clean_files_save 3647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3648$as_echo_n "checking for suffix of object files... " >&6; } 3649if ${ac_cv_objext+:} false; then : 3650 $as_echo_n "(cached) " >&6 3651else 3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3653/* end confdefs.h. */ 3654 3655int 3656main () 3657{ 3658 3659 ; 3660 return 0; 3661} 3662_ACEOF 3663rm -f conftest.o conftest.obj 3664if { { ac_try="$ac_compile" 3665case "(($ac_try" in 3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3667 *) ac_try_echo=$ac_try;; 3668esac 3669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3670$as_echo "$ac_try_echo"; } >&5 3671 (eval "$ac_compile") 2>&5 3672 ac_status=$? 3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3674 test $ac_status = 0; }; then : 3675 for ac_file in conftest.o conftest.obj conftest.*; do 3676 test -f "$ac_file" || continue; 3677 case $ac_file in 3678 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3679 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3680 break;; 3681 esac 3682done 3683else 3684 $as_echo "$as_me: failed program was:" >&5 3685sed 's/^/| /' conftest.$ac_ext >&5 3686 3687{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3689as_fn_error $? "cannot compute suffix of object files: cannot compile 3690See \`config.log' for more details" "$LINENO" 5; } 3691fi 3692rm -f conftest.$ac_cv_objext conftest.$ac_ext 3693fi 3694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3695$as_echo "$ac_cv_objext" >&6; } 3696OBJEXT=$ac_cv_objext 3697ac_objext=$OBJEXT 3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3699$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3700if ${ac_cv_c_compiler_gnu+:} false; then : 3701 $as_echo_n "(cached) " >&6 3702else 3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3704/* end confdefs.h. */ 3705 3706int 3707main () 3708{ 3709#ifndef __GNUC__ 3710 choke me 3711#endif 3712 3713 ; 3714 return 0; 3715} 3716_ACEOF 3717if ac_fn_c_try_compile "$LINENO"; then : 3718 ac_compiler_gnu=yes 3719else 3720 ac_compiler_gnu=no 3721fi 3722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3723ac_cv_c_compiler_gnu=$ac_compiler_gnu 3724 3725fi 3726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3727$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3728if test $ac_compiler_gnu = yes; then 3729 GCC=yes 3730else 3731 GCC= 3732fi 3733ac_test_CFLAGS=${CFLAGS+set} 3734ac_save_CFLAGS=$CFLAGS 3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3736$as_echo_n "checking whether $CC accepts -g... " >&6; } 3737if ${ac_cv_prog_cc_g+:} false; then : 3738 $as_echo_n "(cached) " >&6 3739else 3740 ac_save_c_werror_flag=$ac_c_werror_flag 3741 ac_c_werror_flag=yes 3742 ac_cv_prog_cc_g=no 3743 CFLAGS="-g" 3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3745/* end confdefs.h. */ 3746 3747int 3748main () 3749{ 3750 3751 ; 3752 return 0; 3753} 3754_ACEOF 3755if ac_fn_c_try_compile "$LINENO"; then : 3756 ac_cv_prog_cc_g=yes 3757else 3758 CFLAGS="" 3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3760/* end confdefs.h. */ 3761 3762int 3763main () 3764{ 3765 3766 ; 3767 return 0; 3768} 3769_ACEOF 3770if ac_fn_c_try_compile "$LINENO"; then : 3771 3772else 3773 ac_c_werror_flag=$ac_save_c_werror_flag 3774 CFLAGS="-g" 3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3776/* end confdefs.h. */ 3777 3778int 3779main () 3780{ 3781 3782 ; 3783 return 0; 3784} 3785_ACEOF 3786if ac_fn_c_try_compile "$LINENO"; then : 3787 ac_cv_prog_cc_g=yes 3788fi 3789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3790fi 3791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3792fi 3793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3794 ac_c_werror_flag=$ac_save_c_werror_flag 3795fi 3796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3797$as_echo "$ac_cv_prog_cc_g" >&6; } 3798if test "$ac_test_CFLAGS" = set; then 3799 CFLAGS=$ac_save_CFLAGS 3800elif test $ac_cv_prog_cc_g = yes; then 3801 if test "$GCC" = yes; then 3802 CFLAGS="-g -O2" 3803 else 3804 CFLAGS="-g" 3805 fi 3806else 3807 if test "$GCC" = yes; then 3808 CFLAGS="-O2" 3809 else 3810 CFLAGS= 3811 fi 3812fi 3813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3814$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3815if ${ac_cv_prog_cc_c89+:} false; then : 3816 $as_echo_n "(cached) " >&6 3817else 3818 ac_cv_prog_cc_c89=no 3819ac_save_CC=$CC 3820cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3821/* end confdefs.h. */ 3822#include <stdarg.h> 3823#include <stdio.h> 3824struct stat; 3825/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3826struct buf { int x; }; 3827FILE * (*rcsopen) (struct buf *, struct stat *, int); 3828static char *e (p, i) 3829 char **p; 3830 int i; 3831{ 3832 return p[i]; 3833} 3834static char *f (char * (*g) (char **, int), char **p, ...) 3835{ 3836 char *s; 3837 va_list v; 3838 va_start (v,p); 3839 s = g (p, va_arg (v,int)); 3840 va_end (v); 3841 return s; 3842} 3843 3844/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3845 function prototypes and stuff, but not '\xHH' hex character constants. 3846 These don't provoke an error unfortunately, instead are silently treated 3847 as 'x'. The following induces an error, until -std is added to get 3848 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3849 array size at least. It's necessary to write '\x00'==0 to get something 3850 that's true only with -std. */ 3851int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3852 3853/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3854 inside strings and character constants. */ 3855#define FOO(x) 'x' 3856int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3857 3858int test (int i, double x); 3859struct s1 {int (*f) (int a);}; 3860struct s2 {int (*f) (double a);}; 3861int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3862int argc; 3863char **argv; 3864int 3865main () 3866{ 3867return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3868 ; 3869 return 0; 3870} 3871_ACEOF 3872for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3873 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3874do 3875 CC="$ac_save_CC $ac_arg" 3876 if ac_fn_c_try_compile "$LINENO"; then : 3877 ac_cv_prog_cc_c89=$ac_arg 3878fi 3879rm -f core conftest.err conftest.$ac_objext 3880 test "x$ac_cv_prog_cc_c89" != "xno" && break 3881done 3882rm -f conftest.$ac_ext 3883CC=$ac_save_CC 3884 3885fi 3886# AC_CACHE_VAL 3887case "x$ac_cv_prog_cc_c89" in 3888 x) 3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3890$as_echo "none needed" >&6; } ;; 3891 xno) 3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3893$as_echo "unsupported" >&6; } ;; 3894 *) 3895 CC="$CC $ac_cv_prog_cc_c89" 3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3897$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3898esac 3899if test "x$ac_cv_prog_cc_c89" != xno; then : 3900 3901fi 3902 3903ac_ext=c 3904ac_cpp='$CPP $CPPFLAGS' 3905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3907ac_compiler_gnu=$ac_cv_c_compiler_gnu 3908 3909ac_ext=c 3910ac_cpp='$CPP $CPPFLAGS' 3911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3913ac_compiler_gnu=$ac_cv_c_compiler_gnu 3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3915$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3916if ${am_cv_prog_cc_c_o+:} false; then : 3917 $as_echo_n "(cached) " >&6 3918else 3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3920/* end confdefs.h. */ 3921 3922int 3923main () 3924{ 3925 3926 ; 3927 return 0; 3928} 3929_ACEOF 3930 # Make sure it works both with $CC and with simple cc. 3931 # Following AC_PROG_CC_C_O, we do the test twice because some 3932 # compilers refuse to overwrite an existing .o file with -o, 3933 # though they will create one. 3934 am_cv_prog_cc_c_o=yes 3935 for am_i in 1 2; do 3936 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3937 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3938 ac_status=$? 3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3940 (exit $ac_status); } \ 3941 && test -f conftest2.$ac_objext; then 3942 : OK 3943 else 3944 am_cv_prog_cc_c_o=no 3945 break 3946 fi 3947 done 3948 rm -f core conftest* 3949 unset am_i 3950fi 3951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3952$as_echo "$am_cv_prog_cc_c_o" >&6; } 3953if test "$am_cv_prog_cc_c_o" != yes; then 3954 # Losing compiler, so override with the script. 3955 # FIXME: It is wrong to rewrite CC. 3956 # But if we don't then we get into trouble of one sort or another. 3957 # A longer-term fix would be to have automake use am__CC in this case, 3958 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3959 CC="$am_aux_dir/compile $CC" 3960fi 3961ac_ext=c 3962ac_cpp='$CPP $CPPFLAGS' 3963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3965ac_compiler_gnu=$ac_cv_c_compiler_gnu 3966 3967 3968depcc="$CC" am_compiler_list= 3969 3970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3971$as_echo_n "checking dependency style of $depcc... " >&6; } 3972if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3973 $as_echo_n "(cached) " >&6 3974else 3975 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3976 # We make a subdir and do the tests there. Otherwise we can end up 3977 # making bogus files that we don't know about and never remove. For 3978 # instance it was reported that on HP-UX the gcc test will end up 3979 # making a dummy file named 'D' -- because '-MD' means "put the output 3980 # in D". 3981 rm -rf conftest.dir 3982 mkdir conftest.dir 3983 # Copy depcomp to subdir because otherwise we won't find it if we're 3984 # using a relative directory. 3985 cp "$am_depcomp" conftest.dir 3986 cd conftest.dir 3987 # We will build objects and dependencies in a subdirectory because 3988 # it helps to detect inapplicable dependency modes. For instance 3989 # both Tru64's cc and ICC support -MD to output dependencies as a 3990 # side effect of compilation, but ICC will put the dependencies in 3991 # the current directory while Tru64 will put them in the object 3992 # directory. 3993 mkdir sub 3994 3995 am_cv_CC_dependencies_compiler_type=none 3996 if test "$am_compiler_list" = ""; then 3997 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3998 fi 3999 am__universal=false 4000 case " $depcc " in #( 4001 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4002 esac 4003 4004 for depmode in $am_compiler_list; do 4005 # Setup a source with many dependencies, because some compilers 4006 # like to wrap large dependency lists on column 80 (with \), and 4007 # we should not choose a depcomp mode which is confused by this. 4008 # 4009 # We need to recreate these files for each test, as the compiler may 4010 # overwrite some of them when testing with obscure command lines. 4011 # This happens at least with the AIX C compiler. 4012 : > sub/conftest.c 4013 for i in 1 2 3 4 5 6; do 4014 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4015 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4016 # Solaris 10 /bin/sh. 4017 echo '/* dummy */' > sub/conftst$i.h 4018 done 4019 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4020 4021 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4022 # mode. It turns out that the SunPro C++ compiler does not properly 4023 # handle '-M -o', and we need to detect this. Also, some Intel 4024 # versions had trouble with output in subdirs. 4025 am__obj=sub/conftest.${OBJEXT-o} 4026 am__minus_obj="-o $am__obj" 4027 case $depmode in 4028 gcc) 4029 # This depmode causes a compiler race in universal mode. 4030 test "$am__universal" = false || continue 4031 ;; 4032 nosideeffect) 4033 # After this tag, mechanisms are not by side-effect, so they'll 4034 # only be used when explicitly requested. 4035 if test "x$enable_dependency_tracking" = xyes; then 4036 continue 4037 else 4038 break 4039 fi 4040 ;; 4041 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4042 # This compiler won't grok '-c -o', but also, the minuso test has 4043 # not run yet. These depmodes are late enough in the game, and 4044 # so weak that their functioning should not be impacted. 4045 am__obj=conftest.${OBJEXT-o} 4046 am__minus_obj= 4047 ;; 4048 none) break ;; 4049 esac 4050 if depmode=$depmode \ 4051 source=sub/conftest.c object=$am__obj \ 4052 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4053 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4054 >/dev/null 2>conftest.err && 4055 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4056 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4057 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4058 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4059 # icc doesn't choke on unknown options, it will just issue warnings 4060 # or remarks (even with -Werror). So we grep stderr for any message 4061 # that says an option was ignored or not supported. 4062 # When given -MP, icc 7.0 and 7.1 complain thusly: 4063 # icc: Command line warning: ignoring option '-M'; no argument required 4064 # The diagnosis changed in icc 8.0: 4065 # icc: Command line remark: option '-MP' not supported 4066 if (grep 'ignoring option' conftest.err || 4067 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4068 am_cv_CC_dependencies_compiler_type=$depmode 4069 break 4070 fi 4071 fi 4072 done 4073 4074 cd .. 4075 rm -rf conftest.dir 4076else 4077 am_cv_CC_dependencies_compiler_type=none 4078fi 4079 4080fi 4081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4082$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4083CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4084 4085 if 4086 test "x$enable_dependency_tracking" != xno \ 4087 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4088 am__fastdepCC_TRUE= 4089 am__fastdepCC_FALSE='#' 4090else 4091 am__fastdepCC_TRUE='#' 4092 am__fastdepCC_FALSE= 4093fi 4094 4095 4096 4097ac_ext=c 4098ac_cpp='$CPP $CPPFLAGS' 4099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4101ac_compiler_gnu=$ac_cv_c_compiler_gnu 4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4103$as_echo_n "checking how to run the C preprocessor... " >&6; } 4104# On Suns, sometimes $CPP names a directory. 4105if test -n "$CPP" && test -d "$CPP"; then 4106 CPP= 4107fi 4108if test -z "$CPP"; then 4109 if ${ac_cv_prog_CPP+:} false; then : 4110 $as_echo_n "(cached) " >&6 4111else 4112 # Double quotes because CPP needs to be expanded 4113 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4114 do 4115 ac_preproc_ok=false 4116for ac_c_preproc_warn_flag in '' yes 4117do 4118 # Use a header file that comes with gcc, so configuring glibc 4119 # with a fresh cross-compiler works. 4120 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4121 # <limits.h> exists even on freestanding compilers. 4122 # On the NeXT, cc -E runs the code through the compiler's parser, 4123 # not just through cpp. "Syntax error" is here to catch this case. 4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4125/* end confdefs.h. */ 4126#ifdef __STDC__ 4127# include <limits.h> 4128#else 4129# include <assert.h> 4130#endif 4131 Syntax error 4132_ACEOF 4133if ac_fn_c_try_cpp "$LINENO"; then : 4134 4135else 4136 # Broken: fails on valid input. 4137continue 4138fi 4139rm -f conftest.err conftest.i conftest.$ac_ext 4140 4141 # OK, works on sane cases. Now check whether nonexistent headers 4142 # can be detected and how. 4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4144/* end confdefs.h. */ 4145#include <ac_nonexistent.h> 4146_ACEOF 4147if ac_fn_c_try_cpp "$LINENO"; then : 4148 # Broken: success on invalid input. 4149continue 4150else 4151 # Passes both tests. 4152ac_preproc_ok=: 4153break 4154fi 4155rm -f conftest.err conftest.i conftest.$ac_ext 4156 4157done 4158# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4159rm -f conftest.i conftest.err conftest.$ac_ext 4160if $ac_preproc_ok; then : 4161 break 4162fi 4163 4164 done 4165 ac_cv_prog_CPP=$CPP 4166 4167fi 4168 CPP=$ac_cv_prog_CPP 4169else 4170 ac_cv_prog_CPP=$CPP 4171fi 4172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4173$as_echo "$CPP" >&6; } 4174ac_preproc_ok=false 4175for ac_c_preproc_warn_flag in '' yes 4176do 4177 # Use a header file that comes with gcc, so configuring glibc 4178 # with a fresh cross-compiler works. 4179 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4180 # <limits.h> exists even on freestanding compilers. 4181 # On the NeXT, cc -E runs the code through the compiler's parser, 4182 # not just through cpp. "Syntax error" is here to catch this case. 4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4184/* end confdefs.h. */ 4185#ifdef __STDC__ 4186# include <limits.h> 4187#else 4188# include <assert.h> 4189#endif 4190 Syntax error 4191_ACEOF 4192if ac_fn_c_try_cpp "$LINENO"; then : 4193 4194else 4195 # Broken: fails on valid input. 4196continue 4197fi 4198rm -f conftest.err conftest.i conftest.$ac_ext 4199 4200 # OK, works on sane cases. Now check whether nonexistent headers 4201 # can be detected and how. 4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4203/* end confdefs.h. */ 4204#include <ac_nonexistent.h> 4205_ACEOF 4206if ac_fn_c_try_cpp "$LINENO"; then : 4207 # Broken: success on invalid input. 4208continue 4209else 4210 # Passes both tests. 4211ac_preproc_ok=: 4212break 4213fi 4214rm -f conftest.err conftest.i conftest.$ac_ext 4215 4216done 4217# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4218rm -f conftest.i conftest.err conftest.$ac_ext 4219if $ac_preproc_ok; then : 4220 4221else 4222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4223$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4224as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4225See \`config.log' for more details" "$LINENO" 5; } 4226fi 4227 4228ac_ext=c 4229ac_cpp='$CPP $CPPFLAGS' 4230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4232ac_compiler_gnu=$ac_cv_c_compiler_gnu 4233 4234 4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4236$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4237if ${ac_cv_path_GREP+:} false; then : 4238 $as_echo_n "(cached) " >&6 4239else 4240 if test -z "$GREP"; then 4241 ac_path_GREP_found=false 4242 # Loop through the user's path and test for each of PROGNAME-LIST 4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4244for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4245do 4246 IFS=$as_save_IFS 4247 test -z "$as_dir" && as_dir=. 4248 for ac_prog in grep ggrep; do 4249 for ac_exec_ext in '' $ac_executable_extensions; do 4250 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4251 as_fn_executable_p "$ac_path_GREP" || continue 4252# Check for GNU ac_path_GREP and select it if it is found. 4253 # Check for GNU $ac_path_GREP 4254case `"$ac_path_GREP" --version 2>&1` in 4255*GNU*) 4256 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4257*) 4258 ac_count=0 4259 $as_echo_n 0123456789 >"conftest.in" 4260 while : 4261 do 4262 cat "conftest.in" "conftest.in" >"conftest.tmp" 4263 mv "conftest.tmp" "conftest.in" 4264 cp "conftest.in" "conftest.nl" 4265 $as_echo 'GREP' >> "conftest.nl" 4266 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4267 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4268 as_fn_arith $ac_count + 1 && ac_count=$as_val 4269 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4270 # Best one so far, save it but keep looking for a better one 4271 ac_cv_path_GREP="$ac_path_GREP" 4272 ac_path_GREP_max=$ac_count 4273 fi 4274 # 10*(2^10) chars as input seems more than enough 4275 test $ac_count -gt 10 && break 4276 done 4277 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4278esac 4279 4280 $ac_path_GREP_found && break 3 4281 done 4282 done 4283 done 4284IFS=$as_save_IFS 4285 if test -z "$ac_cv_path_GREP"; then 4286 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4287 fi 4288else 4289 ac_cv_path_GREP=$GREP 4290fi 4291 4292fi 4293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4294$as_echo "$ac_cv_path_GREP" >&6; } 4295 GREP="$ac_cv_path_GREP" 4296 4297 4298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4299$as_echo_n "checking for egrep... " >&6; } 4300if ${ac_cv_path_EGREP+:} false; then : 4301 $as_echo_n "(cached) " >&6 4302else 4303 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4304 then ac_cv_path_EGREP="$GREP -E" 4305 else 4306 if test -z "$EGREP"; then 4307 ac_path_EGREP_found=false 4308 # Loop through the user's path and test for each of PROGNAME-LIST 4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4310for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4311do 4312 IFS=$as_save_IFS 4313 test -z "$as_dir" && as_dir=. 4314 for ac_prog in egrep; do 4315 for ac_exec_ext in '' $ac_executable_extensions; do 4316 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4317 as_fn_executable_p "$ac_path_EGREP" || continue 4318# Check for GNU ac_path_EGREP and select it if it is found. 4319 # Check for GNU $ac_path_EGREP 4320case `"$ac_path_EGREP" --version 2>&1` in 4321*GNU*) 4322 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4323*) 4324 ac_count=0 4325 $as_echo_n 0123456789 >"conftest.in" 4326 while : 4327 do 4328 cat "conftest.in" "conftest.in" >"conftest.tmp" 4329 mv "conftest.tmp" "conftest.in" 4330 cp "conftest.in" "conftest.nl" 4331 $as_echo 'EGREP' >> "conftest.nl" 4332 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4333 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4334 as_fn_arith $ac_count + 1 && ac_count=$as_val 4335 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4336 # Best one so far, save it but keep looking for a better one 4337 ac_cv_path_EGREP="$ac_path_EGREP" 4338 ac_path_EGREP_max=$ac_count 4339 fi 4340 # 10*(2^10) chars as input seems more than enough 4341 test $ac_count -gt 10 && break 4342 done 4343 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4344esac 4345 4346 $ac_path_EGREP_found && break 3 4347 done 4348 done 4349 done 4350IFS=$as_save_IFS 4351 if test -z "$ac_cv_path_EGREP"; then 4352 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4353 fi 4354else 4355 ac_cv_path_EGREP=$EGREP 4356fi 4357 4358 fi 4359fi 4360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4361$as_echo "$ac_cv_path_EGREP" >&6; } 4362 EGREP="$ac_cv_path_EGREP" 4363 4364 4365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4366$as_echo_n "checking for ANSI C header files... " >&6; } 4367if ${ac_cv_header_stdc+:} false; then : 4368 $as_echo_n "(cached) " >&6 4369else 4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4371/* end confdefs.h. */ 4372#include <stdlib.h> 4373#include <stdarg.h> 4374#include <string.h> 4375#include <float.h> 4376 4377int 4378main () 4379{ 4380 4381 ; 4382 return 0; 4383} 4384_ACEOF 4385if ac_fn_c_try_compile "$LINENO"; then : 4386 ac_cv_header_stdc=yes 4387else 4388 ac_cv_header_stdc=no 4389fi 4390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4391 4392if test $ac_cv_header_stdc = yes; then 4393 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4395/* end confdefs.h. */ 4396#include <string.h> 4397 4398_ACEOF 4399if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4400 $EGREP "memchr" >/dev/null 2>&1; then : 4401 4402else 4403 ac_cv_header_stdc=no 4404fi 4405rm -f conftest* 4406 4407fi 4408 4409if test $ac_cv_header_stdc = yes; then 4410 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4412/* end confdefs.h. */ 4413#include <stdlib.h> 4414 4415_ACEOF 4416if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4417 $EGREP "free" >/dev/null 2>&1; then : 4418 4419else 4420 ac_cv_header_stdc=no 4421fi 4422rm -f conftest* 4423 4424fi 4425 4426if test $ac_cv_header_stdc = yes; then 4427 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4428 if test "$cross_compiling" = yes; then : 4429 : 4430else 4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4432/* end confdefs.h. */ 4433#include <ctype.h> 4434#include <stdlib.h> 4435#if ((' ' & 0x0FF) == 0x020) 4436# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4437# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4438#else 4439# define ISLOWER(c) \ 4440 (('a' <= (c) && (c) <= 'i') \ 4441 || ('j' <= (c) && (c) <= 'r') \ 4442 || ('s' <= (c) && (c) <= 'z')) 4443# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4444#endif 4445 4446#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4447int 4448main () 4449{ 4450 int i; 4451 for (i = 0; i < 256; i++) 4452 if (XOR (islower (i), ISLOWER (i)) 4453 || toupper (i) != TOUPPER (i)) 4454 return 2; 4455 return 0; 4456} 4457_ACEOF 4458if ac_fn_c_try_run "$LINENO"; then : 4459 4460else 4461 ac_cv_header_stdc=no 4462fi 4463rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4464 conftest.$ac_objext conftest.beam conftest.$ac_ext 4465fi 4466 4467fi 4468fi 4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4470$as_echo "$ac_cv_header_stdc" >&6; } 4471if test $ac_cv_header_stdc = yes; then 4472 4473$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4474 4475fi 4476 4477# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4478for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4479 inttypes.h stdint.h unistd.h 4480do : 4481 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4482ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4483" 4484if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4485 cat >>confdefs.h <<_ACEOF 4486#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4487_ACEOF 4488 4489fi 4490 4491done 4492 4493 4494for ac_header in stdlib.h 4495do : 4496 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 4497if test "x$ac_cv_header_stdlib_h" = xyes; then : 4498 cat >>confdefs.h <<_ACEOF 4499#define HAVE_STDLIB_H 1 4500_ACEOF 4501 4502else 4503 as_fn_error $? "cannot find stdlib.h, bailing out" "$LINENO" 5 4504fi 4505 4506done 4507 4508for ac_header in stdio.h 4509do : 4510 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 4511if test "x$ac_cv_header_stdio_h" = xyes; then : 4512 cat >>confdefs.h <<_ACEOF 4513#define HAVE_STDIO_H 1 4514_ACEOF 4515 4516else 4517 as_fn_error $? "cannot find stdio.h, bailing out" "$LINENO" 5 4518fi 4519 4520done 4521 4522for ac_header in string.h 4523do : 4524 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 4525if test "x$ac_cv_header_string_h" = xyes; then : 4526 cat >>confdefs.h <<_ACEOF 4527#define HAVE_STRING_H 1 4528_ACEOF 4529 4530else 4531 as_fn_error $? "cannot find string.h, bailing out" "$LINENO" 5 4532fi 4533 4534done 4535 4536for ac_header in sqlite3ext.h 4537do : 4538 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3ext.h" "ac_cv_header_sqlite3ext_h" "$ac_includes_default" 4539if test "x$ac_cv_header_sqlite3ext_h" = xyes; then : 4540 cat >>confdefs.h <<_ACEOF 4541#define HAVE_SQLITE3EXT_H 1 4542_ACEOF 4543 4544else 4545 as_fn_error $? "cannot find sqlite3ext.h, bailing out" "$LINENO" 5 4546fi 4547 4548done 4549 4550for ac_header in sqlite3.h 4551do : 4552 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" 4553if test "x$ac_cv_header_sqlite3_h" = xyes; then : 4554 cat >>confdefs.h <<_ACEOF 4555#define HAVE_SQLITE3_H 1 4556_ACEOF 4557 4558else 4559 as_fn_error $? "cannot find sqlite3.h, bailing out" "$LINENO" 5 4560fi 4561 4562done 4563 4564 4565# Checks for programs. 4566ac_ext=cpp 4567ac_cpp='$CXXCPP $CPPFLAGS' 4568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4571if test -z "$CXX"; then 4572 if test -n "$CCC"; then 4573 CXX=$CCC 4574 else 4575 if test -n "$ac_tool_prefix"; then 4576 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4577 do 4578 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4579set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4581$as_echo_n "checking for $ac_word... " >&6; } 4582if ${ac_cv_prog_CXX+:} false; then : 4583 $as_echo_n "(cached) " >&6 4584else 4585 if test -n "$CXX"; then 4586 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4587else 4588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4589for as_dir in $PATH 4590do 4591 IFS=$as_save_IFS 4592 test -z "$as_dir" && as_dir=. 4593 for ac_exec_ext in '' $ac_executable_extensions; do 4594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4595 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4597 break 2 4598 fi 4599done 4600 done 4601IFS=$as_save_IFS 4602 4603fi 4604fi 4605CXX=$ac_cv_prog_CXX 4606if test -n "$CXX"; then 4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4608$as_echo "$CXX" >&6; } 4609else 4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4611$as_echo "no" >&6; } 4612fi 4613 4614 4615 test -n "$CXX" && break 4616 done 4617fi 4618if test -z "$CXX"; then 4619 ac_ct_CXX=$CXX 4620 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4621do 4622 # Extract the first word of "$ac_prog", so it can be a program name with args. 4623set dummy $ac_prog; ac_word=$2 4624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4625$as_echo_n "checking for $ac_word... " >&6; } 4626if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4627 $as_echo_n "(cached) " >&6 4628else 4629 if test -n "$ac_ct_CXX"; then 4630 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4631else 4632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4633for as_dir in $PATH 4634do 4635 IFS=$as_save_IFS 4636 test -z "$as_dir" && as_dir=. 4637 for ac_exec_ext in '' $ac_executable_extensions; do 4638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4639 ac_cv_prog_ac_ct_CXX="$ac_prog" 4640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4641 break 2 4642 fi 4643done 4644 done 4645IFS=$as_save_IFS 4646 4647fi 4648fi 4649ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4650if test -n "$ac_ct_CXX"; then 4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4652$as_echo "$ac_ct_CXX" >&6; } 4653else 4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4655$as_echo "no" >&6; } 4656fi 4657 4658 4659 test -n "$ac_ct_CXX" && break 4660done 4661 4662 if test "x$ac_ct_CXX" = x; then 4663 CXX="g++" 4664 else 4665 case $cross_compiling:$ac_tool_warned in 4666yes:) 4667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4669ac_tool_warned=yes ;; 4670esac 4671 CXX=$ac_ct_CXX 4672 fi 4673fi 4674 4675 fi 4676fi 4677# Provide some information about the compiler. 4678$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4679set X $ac_compile 4680ac_compiler=$2 4681for ac_option in --version -v -V -qversion; do 4682 { { ac_try="$ac_compiler $ac_option >&5" 4683case "(($ac_try" in 4684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4685 *) ac_try_echo=$ac_try;; 4686esac 4687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4688$as_echo "$ac_try_echo"; } >&5 4689 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4690 ac_status=$? 4691 if test -s conftest.err; then 4692 sed '10a\ 4693... rest of stderr output deleted ... 4694 10q' conftest.err >conftest.er1 4695 cat conftest.er1 >&5 4696 fi 4697 rm -f conftest.er1 conftest.err 4698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4699 test $ac_status = 0; } 4700done 4701 4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4703$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4704if ${ac_cv_cxx_compiler_gnu+:} false; then : 4705 $as_echo_n "(cached) " >&6 4706else 4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4708/* end confdefs.h. */ 4709 4710int 4711main () 4712{ 4713#ifndef __GNUC__ 4714 choke me 4715#endif 4716 4717 ; 4718 return 0; 4719} 4720_ACEOF 4721if ac_fn_cxx_try_compile "$LINENO"; then : 4722 ac_compiler_gnu=yes 4723else 4724 ac_compiler_gnu=no 4725fi 4726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4727ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4728 4729fi 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4731$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4732if test $ac_compiler_gnu = yes; then 4733 GXX=yes 4734else 4735 GXX= 4736fi 4737ac_test_CXXFLAGS=${CXXFLAGS+set} 4738ac_save_CXXFLAGS=$CXXFLAGS 4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4740$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4741if ${ac_cv_prog_cxx_g+:} false; then : 4742 $as_echo_n "(cached) " >&6 4743else 4744 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4745 ac_cxx_werror_flag=yes 4746 ac_cv_prog_cxx_g=no 4747 CXXFLAGS="-g" 4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4749/* end confdefs.h. */ 4750 4751int 4752main () 4753{ 4754 4755 ; 4756 return 0; 4757} 4758_ACEOF 4759if ac_fn_cxx_try_compile "$LINENO"; then : 4760 ac_cv_prog_cxx_g=yes 4761else 4762 CXXFLAGS="" 4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4764/* end confdefs.h. */ 4765 4766int 4767main () 4768{ 4769 4770 ; 4771 return 0; 4772} 4773_ACEOF 4774if ac_fn_cxx_try_compile "$LINENO"; then : 4775 4776else 4777 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4778 CXXFLAGS="-g" 4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4780/* end confdefs.h. */ 4781 4782int 4783main () 4784{ 4785 4786 ; 4787 return 0; 4788} 4789_ACEOF 4790if ac_fn_cxx_try_compile "$LINENO"; then : 4791 ac_cv_prog_cxx_g=yes 4792fi 4793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4794fi 4795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4796fi 4797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4798 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4799fi 4800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4801$as_echo "$ac_cv_prog_cxx_g" >&6; } 4802if test "$ac_test_CXXFLAGS" = set; then 4803 CXXFLAGS=$ac_save_CXXFLAGS 4804elif test $ac_cv_prog_cxx_g = yes; then 4805 if test "$GXX" = yes; then 4806 CXXFLAGS="-g -O2" 4807 else 4808 CXXFLAGS="-g" 4809 fi 4810else 4811 if test "$GXX" = yes; then 4812 CXXFLAGS="-O2" 4813 else 4814 CXXFLAGS= 4815 fi 4816fi 4817ac_ext=c 4818ac_cpp='$CPP $CPPFLAGS' 4819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4821ac_compiler_gnu=$ac_cv_c_compiler_gnu 4822 4823depcc="$CXX" am_compiler_list= 4824 4825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4826$as_echo_n "checking dependency style of $depcc... " >&6; } 4827if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4828 $as_echo_n "(cached) " >&6 4829else 4830 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4831 # We make a subdir and do the tests there. Otherwise we can end up 4832 # making bogus files that we don't know about and never remove. For 4833 # instance it was reported that on HP-UX the gcc test will end up 4834 # making a dummy file named 'D' -- because '-MD' means "put the output 4835 # in D". 4836 rm -rf conftest.dir 4837 mkdir conftest.dir 4838 # Copy depcomp to subdir because otherwise we won't find it if we're 4839 # using a relative directory. 4840 cp "$am_depcomp" conftest.dir 4841 cd conftest.dir 4842 # We will build objects and dependencies in a subdirectory because 4843 # it helps to detect inapplicable dependency modes. For instance 4844 # both Tru64's cc and ICC support -MD to output dependencies as a 4845 # side effect of compilation, but ICC will put the dependencies in 4846 # the current directory while Tru64 will put them in the object 4847 # directory. 4848 mkdir sub 4849 4850 am_cv_CXX_dependencies_compiler_type=none 4851 if test "$am_compiler_list" = ""; then 4852 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4853 fi 4854 am__universal=false 4855 case " $depcc " in #( 4856 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4857 esac 4858 4859 for depmode in $am_compiler_list; do 4860 # Setup a source with many dependencies, because some compilers 4861 # like to wrap large dependency lists on column 80 (with \), and 4862 # we should not choose a depcomp mode which is confused by this. 4863 # 4864 # We need to recreate these files for each test, as the compiler may 4865 # overwrite some of them when testing with obscure command lines. 4866 # This happens at least with the AIX C compiler. 4867 : > sub/conftest.c 4868 for i in 1 2 3 4 5 6; do 4869 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4870 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4871 # Solaris 10 /bin/sh. 4872 echo '/* dummy */' > sub/conftst$i.h 4873 done 4874 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4875 4876 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4877 # mode. It turns out that the SunPro C++ compiler does not properly 4878 # handle '-M -o', and we need to detect this. Also, some Intel 4879 # versions had trouble with output in subdirs. 4880 am__obj=sub/conftest.${OBJEXT-o} 4881 am__minus_obj="-o $am__obj" 4882 case $depmode in 4883 gcc) 4884 # This depmode causes a compiler race in universal mode. 4885 test "$am__universal" = false || continue 4886 ;; 4887 nosideeffect) 4888 # After this tag, mechanisms are not by side-effect, so they'll 4889 # only be used when explicitly requested. 4890 if test "x$enable_dependency_tracking" = xyes; then 4891 continue 4892 else 4893 break 4894 fi 4895 ;; 4896 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4897 # This compiler won't grok '-c -o', but also, the minuso test has 4898 # not run yet. These depmodes are late enough in the game, and 4899 # so weak that their functioning should not be impacted. 4900 am__obj=conftest.${OBJEXT-o} 4901 am__minus_obj= 4902 ;; 4903 none) break ;; 4904 esac 4905 if depmode=$depmode \ 4906 source=sub/conftest.c object=$am__obj \ 4907 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4908 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4909 >/dev/null 2>conftest.err && 4910 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4911 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4912 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4913 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4914 # icc doesn't choke on unknown options, it will just issue warnings 4915 # or remarks (even with -Werror). So we grep stderr for any message 4916 # that says an option was ignored or not supported. 4917 # When given -MP, icc 7.0 and 7.1 complain thusly: 4918 # icc: Command line warning: ignoring option '-M'; no argument required 4919 # The diagnosis changed in icc 8.0: 4920 # icc: Command line remark: option '-MP' not supported 4921 if (grep 'ignoring option' conftest.err || 4922 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4923 am_cv_CXX_dependencies_compiler_type=$depmode 4924 break 4925 fi 4926 fi 4927 done 4928 4929 cd .. 4930 rm -rf conftest.dir 4931else 4932 am_cv_CXX_dependencies_compiler_type=none 4933fi 4934 4935fi 4936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4937$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4938CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4939 4940 if 4941 test "x$enable_dependency_tracking" != xno \ 4942 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4943 am__fastdepCXX_TRUE= 4944 am__fastdepCXX_FALSE='#' 4945else 4946 am__fastdepCXX_TRUE='#' 4947 am__fastdepCXX_FALSE= 4948fi 4949 4950 4951ac_ext=c 4952ac_cpp='$CPP $CPPFLAGS' 4953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4955ac_compiler_gnu=$ac_cv_c_compiler_gnu 4956if test -n "$ac_tool_prefix"; then 4957 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4958set dummy ${ac_tool_prefix}gcc; ac_word=$2 4959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4960$as_echo_n "checking for $ac_word... " >&6; } 4961if ${ac_cv_prog_CC+:} false; then : 4962 $as_echo_n "(cached) " >&6 4963else 4964 if test -n "$CC"; then 4965 ac_cv_prog_CC="$CC" # Let the user override the test. 4966else 4967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4968for as_dir in $PATH 4969do 4970 IFS=$as_save_IFS 4971 test -z "$as_dir" && as_dir=. 4972 for ac_exec_ext in '' $ac_executable_extensions; do 4973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4974 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4976 break 2 4977 fi 4978done 4979 done 4980IFS=$as_save_IFS 4981 4982fi 4983fi 4984CC=$ac_cv_prog_CC 4985if test -n "$CC"; then 4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4987$as_echo "$CC" >&6; } 4988else 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4990$as_echo "no" >&6; } 4991fi 4992 4993 4994fi 4995if test -z "$ac_cv_prog_CC"; then 4996 ac_ct_CC=$CC 4997 # Extract the first word of "gcc", so it can be a program name with args. 4998set dummy gcc; ac_word=$2 4999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5000$as_echo_n "checking for $ac_word... " >&6; } 5001if ${ac_cv_prog_ac_ct_CC+:} false; then : 5002 $as_echo_n "(cached) " >&6 5003else 5004 if test -n "$ac_ct_CC"; then 5005 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5006else 5007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5008for as_dir in $PATH 5009do 5010 IFS=$as_save_IFS 5011 test -z "$as_dir" && as_dir=. 5012 for ac_exec_ext in '' $ac_executable_extensions; do 5013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5014 ac_cv_prog_ac_ct_CC="gcc" 5015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5016 break 2 5017 fi 5018done 5019 done 5020IFS=$as_save_IFS 5021 5022fi 5023fi 5024ac_ct_CC=$ac_cv_prog_ac_ct_CC 5025if test -n "$ac_ct_CC"; then 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5027$as_echo "$ac_ct_CC" >&6; } 5028else 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5030$as_echo "no" >&6; } 5031fi 5032 5033 if test "x$ac_ct_CC" = x; then 5034 CC="" 5035 else 5036 case $cross_compiling:$ac_tool_warned in 5037yes:) 5038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5040ac_tool_warned=yes ;; 5041esac 5042 CC=$ac_ct_CC 5043 fi 5044else 5045 CC="$ac_cv_prog_CC" 5046fi 5047 5048if test -z "$CC"; then 5049 if test -n "$ac_tool_prefix"; then 5050 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5051set dummy ${ac_tool_prefix}cc; ac_word=$2 5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5053$as_echo_n "checking for $ac_word... " >&6; } 5054if ${ac_cv_prog_CC+:} false; then : 5055 $as_echo_n "(cached) " >&6 5056else 5057 if test -n "$CC"; then 5058 ac_cv_prog_CC="$CC" # Let the user override the test. 5059else 5060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5061for as_dir in $PATH 5062do 5063 IFS=$as_save_IFS 5064 test -z "$as_dir" && as_dir=. 5065 for ac_exec_ext in '' $ac_executable_extensions; do 5066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5067 ac_cv_prog_CC="${ac_tool_prefix}cc" 5068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5069 break 2 5070 fi 5071done 5072 done 5073IFS=$as_save_IFS 5074 5075fi 5076fi 5077CC=$ac_cv_prog_CC 5078if test -n "$CC"; then 5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5080$as_echo "$CC" >&6; } 5081else 5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5083$as_echo "no" >&6; } 5084fi 5085 5086 5087 fi 5088fi 5089if test -z "$CC"; then 5090 # Extract the first word of "cc", so it can be a program name with args. 5091set dummy cc; ac_word=$2 5092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5093$as_echo_n "checking for $ac_word... " >&6; } 5094if ${ac_cv_prog_CC+:} false; then : 5095 $as_echo_n "(cached) " >&6 5096else 5097 if test -n "$CC"; then 5098 ac_cv_prog_CC="$CC" # Let the user override the test. 5099else 5100 ac_prog_rejected=no 5101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5102for as_dir in $PATH 5103do 5104 IFS=$as_save_IFS 5105 test -z "$as_dir" && as_dir=. 5106 for ac_exec_ext in '' $ac_executable_extensions; do 5107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5108 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5109 ac_prog_rejected=yes 5110 continue 5111 fi 5112 ac_cv_prog_CC="cc" 5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5114 break 2 5115 fi 5116done 5117 done 5118IFS=$as_save_IFS 5119 5120if test $ac_prog_rejected = yes; then 5121 # We found a bogon in the path, so make sure we never use it. 5122 set dummy $ac_cv_prog_CC 5123 shift 5124 if test $# != 0; then 5125 # We chose a different compiler from the bogus one. 5126 # However, it has the same basename, so the bogon will be chosen 5127 # first if we set CC to just the basename; use the full file name. 5128 shift 5129 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5130 fi 5131fi 5132fi 5133fi 5134CC=$ac_cv_prog_CC 5135if test -n "$CC"; then 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5137$as_echo "$CC" >&6; } 5138else 5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5140$as_echo "no" >&6; } 5141fi 5142 5143 5144fi 5145if test -z "$CC"; then 5146 if test -n "$ac_tool_prefix"; then 5147 for ac_prog in cl.exe 5148 do 5149 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5150set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5152$as_echo_n "checking for $ac_word... " >&6; } 5153if ${ac_cv_prog_CC+:} false; then : 5154 $as_echo_n "(cached) " >&6 5155else 5156 if test -n "$CC"; then 5157 ac_cv_prog_CC="$CC" # Let the user override the test. 5158else 5159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5160for as_dir in $PATH 5161do 5162 IFS=$as_save_IFS 5163 test -z "$as_dir" && as_dir=. 5164 for ac_exec_ext in '' $ac_executable_extensions; do 5165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5166 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5168 break 2 5169 fi 5170done 5171 done 5172IFS=$as_save_IFS 5173 5174fi 5175fi 5176CC=$ac_cv_prog_CC 5177if test -n "$CC"; then 5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5179$as_echo "$CC" >&6; } 5180else 5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5182$as_echo "no" >&6; } 5183fi 5184 5185 5186 test -n "$CC" && break 5187 done 5188fi 5189if test -z "$CC"; then 5190 ac_ct_CC=$CC 5191 for ac_prog in cl.exe 5192do 5193 # Extract the first word of "$ac_prog", so it can be a program name with args. 5194set dummy $ac_prog; ac_word=$2 5195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5196$as_echo_n "checking for $ac_word... " >&6; } 5197if ${ac_cv_prog_ac_ct_CC+:} false; then : 5198 $as_echo_n "(cached) " >&6 5199else 5200 if test -n "$ac_ct_CC"; then 5201 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5202else 5203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5204for as_dir in $PATH 5205do 5206 IFS=$as_save_IFS 5207 test -z "$as_dir" && as_dir=. 5208 for ac_exec_ext in '' $ac_executable_extensions; do 5209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5210 ac_cv_prog_ac_ct_CC="$ac_prog" 5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5212 break 2 5213 fi 5214done 5215 done 5216IFS=$as_save_IFS 5217 5218fi 5219fi 5220ac_ct_CC=$ac_cv_prog_ac_ct_CC 5221if test -n "$ac_ct_CC"; then 5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5223$as_echo "$ac_ct_CC" >&6; } 5224else 5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5226$as_echo "no" >&6; } 5227fi 5228 5229 5230 test -n "$ac_ct_CC" && break 5231done 5232 5233 if test "x$ac_ct_CC" = x; then 5234 CC="" 5235 else 5236 case $cross_compiling:$ac_tool_warned in 5237yes:) 5238{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5239$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5240ac_tool_warned=yes ;; 5241esac 5242 CC=$ac_ct_CC 5243 fi 5244fi 5245 5246fi 5247 5248 5249test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5251as_fn_error $? "no acceptable C compiler found in \$PATH 5252See \`config.log' for more details" "$LINENO" 5; } 5253 5254# Provide some information about the compiler. 5255$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5256set X $ac_compile 5257ac_compiler=$2 5258for ac_option in --version -v -V -qversion; do 5259 { { ac_try="$ac_compiler $ac_option >&5" 5260case "(($ac_try" in 5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5262 *) ac_try_echo=$ac_try;; 5263esac 5264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5265$as_echo "$ac_try_echo"; } >&5 5266 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5267 ac_status=$? 5268 if test -s conftest.err; then 5269 sed '10a\ 5270... rest of stderr output deleted ... 5271 10q' conftest.err >conftest.er1 5272 cat conftest.er1 >&5 5273 fi 5274 rm -f conftest.er1 conftest.err 5275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5276 test $ac_status = 0; } 5277done 5278 5279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5280$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5281if ${ac_cv_c_compiler_gnu+:} false; then : 5282 $as_echo_n "(cached) " >&6 5283else 5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5285/* end confdefs.h. */ 5286 5287int 5288main () 5289{ 5290#ifndef __GNUC__ 5291 choke me 5292#endif 5293 5294 ; 5295 return 0; 5296} 5297_ACEOF 5298if ac_fn_c_try_compile "$LINENO"; then : 5299 ac_compiler_gnu=yes 5300else 5301 ac_compiler_gnu=no 5302fi 5303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5304ac_cv_c_compiler_gnu=$ac_compiler_gnu 5305 5306fi 5307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5308$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5309if test $ac_compiler_gnu = yes; then 5310 GCC=yes 5311else 5312 GCC= 5313fi 5314ac_test_CFLAGS=${CFLAGS+set} 5315ac_save_CFLAGS=$CFLAGS 5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5317$as_echo_n "checking whether $CC accepts -g... " >&6; } 5318if ${ac_cv_prog_cc_g+:} false; then : 5319 $as_echo_n "(cached) " >&6 5320else 5321 ac_save_c_werror_flag=$ac_c_werror_flag 5322 ac_c_werror_flag=yes 5323 ac_cv_prog_cc_g=no 5324 CFLAGS="-g" 5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5326/* end confdefs.h. */ 5327 5328int 5329main () 5330{ 5331 5332 ; 5333 return 0; 5334} 5335_ACEOF 5336if ac_fn_c_try_compile "$LINENO"; then : 5337 ac_cv_prog_cc_g=yes 5338else 5339 CFLAGS="" 5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5341/* end confdefs.h. */ 5342 5343int 5344main () 5345{ 5346 5347 ; 5348 return 0; 5349} 5350_ACEOF 5351if ac_fn_c_try_compile "$LINENO"; then : 5352 5353else 5354 ac_c_werror_flag=$ac_save_c_werror_flag 5355 CFLAGS="-g" 5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5357/* end confdefs.h. */ 5358 5359int 5360main () 5361{ 5362 5363 ; 5364 return 0; 5365} 5366_ACEOF 5367if ac_fn_c_try_compile "$LINENO"; then : 5368 ac_cv_prog_cc_g=yes 5369fi 5370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5371fi 5372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5373fi 5374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5375 ac_c_werror_flag=$ac_save_c_werror_flag 5376fi 5377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5378$as_echo "$ac_cv_prog_cc_g" >&6; } 5379if test "$ac_test_CFLAGS" = set; then 5380 CFLAGS=$ac_save_CFLAGS 5381elif test $ac_cv_prog_cc_g = yes; then 5382 if test "$GCC" = yes; then 5383 CFLAGS="-g -O2" 5384 else 5385 CFLAGS="-g" 5386 fi 5387else 5388 if test "$GCC" = yes; then 5389 CFLAGS="-O2" 5390 else 5391 CFLAGS= 5392 fi 5393fi 5394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5395$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5396if ${ac_cv_prog_cc_c89+:} false; then : 5397 $as_echo_n "(cached) " >&6 5398else 5399 ac_cv_prog_cc_c89=no 5400ac_save_CC=$CC 5401cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5402/* end confdefs.h. */ 5403#include <stdarg.h> 5404#include <stdio.h> 5405struct stat; 5406/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5407struct buf { int x; }; 5408FILE * (*rcsopen) (struct buf *, struct stat *, int); 5409static char *e (p, i) 5410 char **p; 5411 int i; 5412{ 5413 return p[i]; 5414} 5415static char *f (char * (*g) (char **, int), char **p, ...) 5416{ 5417 char *s; 5418 va_list v; 5419 va_start (v,p); 5420 s = g (p, va_arg (v,int)); 5421 va_end (v); 5422 return s; 5423} 5424 5425/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5426 function prototypes and stuff, but not '\xHH' hex character constants. 5427 These don't provoke an error unfortunately, instead are silently treated 5428 as 'x'. The following induces an error, until -std is added to get 5429 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5430 array size at least. It's necessary to write '\x00'==0 to get something 5431 that's true only with -std. */ 5432int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5433 5434/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5435 inside strings and character constants. */ 5436#define FOO(x) 'x' 5437int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5438 5439int test (int i, double x); 5440struct s1 {int (*f) (int a);}; 5441struct s2 {int (*f) (double a);}; 5442int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5443int argc; 5444char **argv; 5445int 5446main () 5447{ 5448return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5449 ; 5450 return 0; 5451} 5452_ACEOF 5453for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5454 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5455do 5456 CC="$ac_save_CC $ac_arg" 5457 if ac_fn_c_try_compile "$LINENO"; then : 5458 ac_cv_prog_cc_c89=$ac_arg 5459fi 5460rm -f core conftest.err conftest.$ac_objext 5461 test "x$ac_cv_prog_cc_c89" != "xno" && break 5462done 5463rm -f conftest.$ac_ext 5464CC=$ac_save_CC 5465 5466fi 5467# AC_CACHE_VAL 5468case "x$ac_cv_prog_cc_c89" in 5469 x) 5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5471$as_echo "none needed" >&6; } ;; 5472 xno) 5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5474$as_echo "unsupported" >&6; } ;; 5475 *) 5476 CC="$CC $ac_cv_prog_cc_c89" 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5478$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5479esac 5480if test "x$ac_cv_prog_cc_c89" != xno; then : 5481 5482fi 5483 5484ac_ext=c 5485ac_cpp='$CPP $CPPFLAGS' 5486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5488ac_compiler_gnu=$ac_cv_c_compiler_gnu 5489 5490ac_ext=c 5491ac_cpp='$CPP $CPPFLAGS' 5492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5494ac_compiler_gnu=$ac_cv_c_compiler_gnu 5495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5496$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5497if ${am_cv_prog_cc_c_o+:} false; then : 5498 $as_echo_n "(cached) " >&6 5499else 5500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5501/* end confdefs.h. */ 5502 5503int 5504main () 5505{ 5506 5507 ; 5508 return 0; 5509} 5510_ACEOF 5511 # Make sure it works both with $CC and with simple cc. 5512 # Following AC_PROG_CC_C_O, we do the test twice because some 5513 # compilers refuse to overwrite an existing .o file with -o, 5514 # though they will create one. 5515 am_cv_prog_cc_c_o=yes 5516 for am_i in 1 2; do 5517 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5518 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5519 ac_status=$? 5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5521 (exit $ac_status); } \ 5522 && test -f conftest2.$ac_objext; then 5523 : OK 5524 else 5525 am_cv_prog_cc_c_o=no 5526 break 5527 fi 5528 done 5529 rm -f core conftest* 5530 unset am_i 5531fi 5532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5533$as_echo "$am_cv_prog_cc_c_o" >&6; } 5534if test "$am_cv_prog_cc_c_o" != yes; then 5535 # Losing compiler, so override with the script. 5536 # FIXME: It is wrong to rewrite CC. 5537 # But if we don't then we get into trouble of one sort or another. 5538 # A longer-term fix would be to have automake use am__CC in this case, 5539 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5540 CC="$am_aux_dir/compile $CC" 5541fi 5542ac_ext=c 5543ac_cpp='$CPP $CPPFLAGS' 5544ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5545ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5546ac_compiler_gnu=$ac_cv_c_compiler_gnu 5547 5548 5549depcc="$CC" am_compiler_list= 5550 5551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5552$as_echo_n "checking dependency style of $depcc... " >&6; } 5553if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5554 $as_echo_n "(cached) " >&6 5555else 5556 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5557 # We make a subdir and do the tests there. Otherwise we can end up 5558 # making bogus files that we don't know about and never remove. For 5559 # instance it was reported that on HP-UX the gcc test will end up 5560 # making a dummy file named 'D' -- because '-MD' means "put the output 5561 # in D". 5562 rm -rf conftest.dir 5563 mkdir conftest.dir 5564 # Copy depcomp to subdir because otherwise we won't find it if we're 5565 # using a relative directory. 5566 cp "$am_depcomp" conftest.dir 5567 cd conftest.dir 5568 # We will build objects and dependencies in a subdirectory because 5569 # it helps to detect inapplicable dependency modes. For instance 5570 # both Tru64's cc and ICC support -MD to output dependencies as a 5571 # side effect of compilation, but ICC will put the dependencies in 5572 # the current directory while Tru64 will put them in the object 5573 # directory. 5574 mkdir sub 5575 5576 am_cv_CC_dependencies_compiler_type=none 5577 if test "$am_compiler_list" = ""; then 5578 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5579 fi 5580 am__universal=false 5581 case " $depcc " in #( 5582 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5583 esac 5584 5585 for depmode in $am_compiler_list; do 5586 # Setup a source with many dependencies, because some compilers 5587 # like to wrap large dependency lists on column 80 (with \), and 5588 # we should not choose a depcomp mode which is confused by this. 5589 # 5590 # We need to recreate these files for each test, as the compiler may 5591 # overwrite some of them when testing with obscure command lines. 5592 # This happens at least with the AIX C compiler. 5593 : > sub/conftest.c 5594 for i in 1 2 3 4 5 6; do 5595 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5596 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5597 # Solaris 10 /bin/sh. 5598 echo '/* dummy */' > sub/conftst$i.h 5599 done 5600 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5601 5602 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5603 # mode. It turns out that the SunPro C++ compiler does not properly 5604 # handle '-M -o', and we need to detect this. Also, some Intel 5605 # versions had trouble with output in subdirs. 5606 am__obj=sub/conftest.${OBJEXT-o} 5607 am__minus_obj="-o $am__obj" 5608 case $depmode in 5609 gcc) 5610 # This depmode causes a compiler race in universal mode. 5611 test "$am__universal" = false || continue 5612 ;; 5613 nosideeffect) 5614 # After this tag, mechanisms are not by side-effect, so they'll 5615 # only be used when explicitly requested. 5616 if test "x$enable_dependency_tracking" = xyes; then 5617 continue 5618 else 5619 break 5620 fi 5621 ;; 5622 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5623 # This compiler won't grok '-c -o', but also, the minuso test has 5624 # not run yet. These depmodes are late enough in the game, and 5625 # so weak that their functioning should not be impacted. 5626 am__obj=conftest.${OBJEXT-o} 5627 am__minus_obj= 5628 ;; 5629 none) break ;; 5630 esac 5631 if depmode=$depmode \ 5632 source=sub/conftest.c object=$am__obj \ 5633 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5634 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5635 >/dev/null 2>conftest.err && 5636 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5637 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5638 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5639 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5640 # icc doesn't choke on unknown options, it will just issue warnings 5641 # or remarks (even with -Werror). So we grep stderr for any message 5642 # that says an option was ignored or not supported. 5643 # When given -MP, icc 7.0 and 7.1 complain thusly: 5644 # icc: Command line warning: ignoring option '-M'; no argument required 5645 # The diagnosis changed in icc 8.0: 5646 # icc: Command line remark: option '-MP' not supported 5647 if (grep 'ignoring option' conftest.err || 5648 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5649 am_cv_CC_dependencies_compiler_type=$depmode 5650 break 5651 fi 5652 fi 5653 done 5654 5655 cd .. 5656 rm -rf conftest.dir 5657else 5658 am_cv_CC_dependencies_compiler_type=none 5659fi 5660 5661fi 5662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5663$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5664CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5665 5666 if 5667 test "x$enable_dependency_tracking" != xno \ 5668 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5669 am__fastdepCC_TRUE= 5670 am__fastdepCC_FALSE='#' 5671else 5672 am__fastdepCC_TRUE='#' 5673 am__fastdepCC_FALSE= 5674fi 5675 5676 5677ac_ext=c 5678ac_cpp='$CPP $CPPFLAGS' 5679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5681ac_compiler_gnu=$ac_cv_c_compiler_gnu 5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5683$as_echo_n "checking how to run the C preprocessor... " >&6; } 5684# On Suns, sometimes $CPP names a directory. 5685if test -n "$CPP" && test -d "$CPP"; then 5686 CPP= 5687fi 5688if test -z "$CPP"; then 5689 if ${ac_cv_prog_CPP+:} false; then : 5690 $as_echo_n "(cached) " >&6 5691else 5692 # Double quotes because CPP needs to be expanded 5693 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5694 do 5695 ac_preproc_ok=false 5696for ac_c_preproc_warn_flag in '' yes 5697do 5698 # Use a header file that comes with gcc, so configuring glibc 5699 # with a fresh cross-compiler works. 5700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5701 # <limits.h> exists even on freestanding compilers. 5702 # On the NeXT, cc -E runs the code through the compiler's parser, 5703 # not just through cpp. "Syntax error" is here to catch this case. 5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5705/* end confdefs.h. */ 5706#ifdef __STDC__ 5707# include <limits.h> 5708#else 5709# include <assert.h> 5710#endif 5711 Syntax error 5712_ACEOF 5713if ac_fn_c_try_cpp "$LINENO"; then : 5714 5715else 5716 # Broken: fails on valid input. 5717continue 5718fi 5719rm -f conftest.err conftest.i conftest.$ac_ext 5720 5721 # OK, works on sane cases. Now check whether nonexistent headers 5722 # can be detected and how. 5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5724/* end confdefs.h. */ 5725#include <ac_nonexistent.h> 5726_ACEOF 5727if ac_fn_c_try_cpp "$LINENO"; then : 5728 # Broken: success on invalid input. 5729continue 5730else 5731 # Passes both tests. 5732ac_preproc_ok=: 5733break 5734fi 5735rm -f conftest.err conftest.i conftest.$ac_ext 5736 5737done 5738# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5739rm -f conftest.i conftest.err conftest.$ac_ext 5740if $ac_preproc_ok; then : 5741 break 5742fi 5743 5744 done 5745 ac_cv_prog_CPP=$CPP 5746 5747fi 5748 CPP=$ac_cv_prog_CPP 5749else 5750 ac_cv_prog_CPP=$CPP 5751fi 5752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5753$as_echo "$CPP" >&6; } 5754ac_preproc_ok=false 5755for ac_c_preproc_warn_flag in '' yes 5756do 5757 # Use a header file that comes with gcc, so configuring glibc 5758 # with a fresh cross-compiler works. 5759 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5760 # <limits.h> exists even on freestanding compilers. 5761 # On the NeXT, cc -E runs the code through the compiler's parser, 5762 # not just through cpp. "Syntax error" is here to catch this case. 5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5764/* end confdefs.h. */ 5765#ifdef __STDC__ 5766# include <limits.h> 5767#else 5768# include <assert.h> 5769#endif 5770 Syntax error 5771_ACEOF 5772if ac_fn_c_try_cpp "$LINENO"; then : 5773 5774else 5775 # Broken: fails on valid input. 5776continue 5777fi 5778rm -f conftest.err conftest.i conftest.$ac_ext 5779 5780 # OK, works on sane cases. Now check whether nonexistent headers 5781 # can be detected and how. 5782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5783/* end confdefs.h. */ 5784#include <ac_nonexistent.h> 5785_ACEOF 5786if ac_fn_c_try_cpp "$LINENO"; then : 5787 # Broken: success on invalid input. 5788continue 5789else 5790 # Passes both tests. 5791ac_preproc_ok=: 5792break 5793fi 5794rm -f conftest.err conftest.i conftest.$ac_ext 5795 5796done 5797# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5798rm -f conftest.i conftest.err conftest.$ac_ext 5799if $ac_preproc_ok; then : 5800 5801else 5802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5804as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5805See \`config.log' for more details" "$LINENO" 5; } 5806fi 5807 5808ac_ext=c 5809ac_cpp='$CPP $CPPFLAGS' 5810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5812ac_compiler_gnu=$ac_cv_c_compiler_gnu 5813 5814 5815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5816$as_echo_n "checking whether ln -s works... " >&6; } 5817LN_S=$as_ln_s 5818if test "$LN_S" = "ln -s"; then 5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5820$as_echo "yes" >&6; } 5821else 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5823$as_echo "no, using $LN_S" >&6; } 5824fi 5825 5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5827$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5828set x ${MAKE-make} 5829ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5830if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 5831 $as_echo_n "(cached) " >&6 5832else 5833 cat >conftest.make <<\_ACEOF 5834SHELL = /bin/sh 5835all: 5836 @echo '@@@%%%=$(MAKE)=@@@%%%' 5837_ACEOF 5838# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5839case `${MAKE-make} -f conftest.make 2>/dev/null` in 5840 *@@@%%%=?*=@@@%%%*) 5841 eval ac_cv_prog_make_${ac_make}_set=yes;; 5842 *) 5843 eval ac_cv_prog_make_${ac_make}_set=no;; 5844esac 5845rm -f conftest.make 5846fi 5847if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5849$as_echo "yes" >&6; } 5850 SET_MAKE= 5851else 5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5853$as_echo "no" >&6; } 5854 SET_MAKE="MAKE=${MAKE-make}" 5855fi 5856 5857# Make sure we can run config.sub. 5858$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5859 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5860 5861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5862$as_echo_n "checking build system type... " >&6; } 5863if ${ac_cv_build+:} false; then : 5864 $as_echo_n "(cached) " >&6 5865else 5866 ac_build_alias=$build_alias 5867test "x$ac_build_alias" = x && 5868 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5869test "x$ac_build_alias" = x && 5870 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5871ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5872 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5873 5874fi 5875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5876$as_echo "$ac_cv_build" >&6; } 5877case $ac_cv_build in 5878*-*-*) ;; 5879*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5880esac 5881build=$ac_cv_build 5882ac_save_IFS=$IFS; IFS='-' 5883set x $ac_cv_build 5884shift 5885build_cpu=$1 5886build_vendor=$2 5887shift; shift 5888# Remember, the first character of IFS is used to create $*, 5889# except with old shells: 5890build_os=$* 5891IFS=$ac_save_IFS 5892case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5893 5894 5895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5896$as_echo_n "checking host system type... " >&6; } 5897if ${ac_cv_host+:} false; then : 5898 $as_echo_n "(cached) " >&6 5899else 5900 if test "x$host_alias" = x; then 5901 ac_cv_host=$ac_cv_build 5902else 5903 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5904 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5905fi 5906 5907fi 5908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5909$as_echo "$ac_cv_host" >&6; } 5910case $ac_cv_host in 5911*-*-*) ;; 5912*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5913esac 5914host=$ac_cv_host 5915ac_save_IFS=$IFS; IFS='-' 5916set x $ac_cv_host 5917shift 5918host_cpu=$1 5919host_vendor=$2 5920shift; shift 5921# Remember, the first character of IFS is used to create $*, 5922# except with old shells: 5923host_os=$* 5924IFS=$ac_save_IFS 5925case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5926 5927 5928enable_win32_dll=yes 5929 5930case $host in 5931*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 5932 if test -n "$ac_tool_prefix"; then 5933 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 5934set dummy ${ac_tool_prefix}as; ac_word=$2 5935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5936$as_echo_n "checking for $ac_word... " >&6; } 5937if ${ac_cv_prog_AS+:} false; then : 5938 $as_echo_n "(cached) " >&6 5939else 5940 if test -n "$AS"; then 5941 ac_cv_prog_AS="$AS" # Let the user override the test. 5942else 5943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5944for as_dir in $PATH 5945do 5946 IFS=$as_save_IFS 5947 test -z "$as_dir" && as_dir=. 5948 for ac_exec_ext in '' $ac_executable_extensions; do 5949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5950 ac_cv_prog_AS="${ac_tool_prefix}as" 5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5952 break 2 5953 fi 5954done 5955 done 5956IFS=$as_save_IFS 5957 5958fi 5959fi 5960AS=$ac_cv_prog_AS 5961if test -n "$AS"; then 5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 5963$as_echo "$AS" >&6; } 5964else 5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5966$as_echo "no" >&6; } 5967fi 5968 5969 5970fi 5971if test -z "$ac_cv_prog_AS"; then 5972 ac_ct_AS=$AS 5973 # Extract the first word of "as", so it can be a program name with args. 5974set dummy as; ac_word=$2 5975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5976$as_echo_n "checking for $ac_word... " >&6; } 5977if ${ac_cv_prog_ac_ct_AS+:} false; then : 5978 $as_echo_n "(cached) " >&6 5979else 5980 if test -n "$ac_ct_AS"; then 5981 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 5982else 5983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5984for as_dir in $PATH 5985do 5986 IFS=$as_save_IFS 5987 test -z "$as_dir" && as_dir=. 5988 for ac_exec_ext in '' $ac_executable_extensions; do 5989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5990 ac_cv_prog_ac_ct_AS="as" 5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5992 break 2 5993 fi 5994done 5995 done 5996IFS=$as_save_IFS 5997 5998fi 5999fi 6000ac_ct_AS=$ac_cv_prog_ac_ct_AS 6001if test -n "$ac_ct_AS"; then 6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 6003$as_echo "$ac_ct_AS" >&6; } 6004else 6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6006$as_echo "no" >&6; } 6007fi 6008 6009 if test "x$ac_ct_AS" = x; then 6010 AS="false" 6011 else 6012 case $cross_compiling:$ac_tool_warned in 6013yes:) 6014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6016ac_tool_warned=yes ;; 6017esac 6018 AS=$ac_ct_AS 6019 fi 6020else 6021 AS="$ac_cv_prog_AS" 6022fi 6023 6024 if test -n "$ac_tool_prefix"; then 6025 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6026set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6028$as_echo_n "checking for $ac_word... " >&6; } 6029if ${ac_cv_prog_DLLTOOL+:} false; then : 6030 $as_echo_n "(cached) " >&6 6031else 6032 if test -n "$DLLTOOL"; then 6033 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6034else 6035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6036for as_dir in $PATH 6037do 6038 IFS=$as_save_IFS 6039 test -z "$as_dir" && as_dir=. 6040 for ac_exec_ext in '' $ac_executable_extensions; do 6041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6042 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6044 break 2 6045 fi 6046done 6047 done 6048IFS=$as_save_IFS 6049 6050fi 6051fi 6052DLLTOOL=$ac_cv_prog_DLLTOOL 6053if test -n "$DLLTOOL"; then 6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6055$as_echo "$DLLTOOL" >&6; } 6056else 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6058$as_echo "no" >&6; } 6059fi 6060 6061 6062fi 6063if test -z "$ac_cv_prog_DLLTOOL"; then 6064 ac_ct_DLLTOOL=$DLLTOOL 6065 # Extract the first word of "dlltool", so it can be a program name with args. 6066set dummy dlltool; ac_word=$2 6067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6068$as_echo_n "checking for $ac_word... " >&6; } 6069if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6070 $as_echo_n "(cached) " >&6 6071else 6072 if test -n "$ac_ct_DLLTOOL"; then 6073 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6074else 6075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6076for as_dir in $PATH 6077do 6078 IFS=$as_save_IFS 6079 test -z "$as_dir" && as_dir=. 6080 for ac_exec_ext in '' $ac_executable_extensions; do 6081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6082 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6084 break 2 6085 fi 6086done 6087 done 6088IFS=$as_save_IFS 6089 6090fi 6091fi 6092ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6093if test -n "$ac_ct_DLLTOOL"; then 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6095$as_echo "$ac_ct_DLLTOOL" >&6; } 6096else 6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6098$as_echo "no" >&6; } 6099fi 6100 6101 if test "x$ac_ct_DLLTOOL" = x; then 6102 DLLTOOL="false" 6103 else 6104 case $cross_compiling:$ac_tool_warned in 6105yes:) 6106{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6107$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6108ac_tool_warned=yes ;; 6109esac 6110 DLLTOOL=$ac_ct_DLLTOOL 6111 fi 6112else 6113 DLLTOOL="$ac_cv_prog_DLLTOOL" 6114fi 6115 6116 if test -n "$ac_tool_prefix"; then 6117 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6118set dummy ${ac_tool_prefix}objdump; ac_word=$2 6119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6120$as_echo_n "checking for $ac_word... " >&6; } 6121if ${ac_cv_prog_OBJDUMP+:} false; then : 6122 $as_echo_n "(cached) " >&6 6123else 6124 if test -n "$OBJDUMP"; then 6125 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6126else 6127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6128for as_dir in $PATH 6129do 6130 IFS=$as_save_IFS 6131 test -z "$as_dir" && as_dir=. 6132 for ac_exec_ext in '' $ac_executable_extensions; do 6133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6134 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6136 break 2 6137 fi 6138done 6139 done 6140IFS=$as_save_IFS 6141 6142fi 6143fi 6144OBJDUMP=$ac_cv_prog_OBJDUMP 6145if test -n "$OBJDUMP"; then 6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6147$as_echo "$OBJDUMP" >&6; } 6148else 6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6150$as_echo "no" >&6; } 6151fi 6152 6153 6154fi 6155if test -z "$ac_cv_prog_OBJDUMP"; then 6156 ac_ct_OBJDUMP=$OBJDUMP 6157 # Extract the first word of "objdump", so it can be a program name with args. 6158set dummy objdump; ac_word=$2 6159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6160$as_echo_n "checking for $ac_word... " >&6; } 6161if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6162 $as_echo_n "(cached) " >&6 6163else 6164 if test -n "$ac_ct_OBJDUMP"; then 6165 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6166else 6167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6168for as_dir in $PATH 6169do 6170 IFS=$as_save_IFS 6171 test -z "$as_dir" && as_dir=. 6172 for ac_exec_ext in '' $ac_executable_extensions; do 6173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6174 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6176 break 2 6177 fi 6178done 6179 done 6180IFS=$as_save_IFS 6181 6182fi 6183fi 6184ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6185if test -n "$ac_ct_OBJDUMP"; then 6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6187$as_echo "$ac_ct_OBJDUMP" >&6; } 6188else 6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6190$as_echo "no" >&6; } 6191fi 6192 6193 if test "x$ac_ct_OBJDUMP" = x; then 6194 OBJDUMP="false" 6195 else 6196 case $cross_compiling:$ac_tool_warned in 6197yes:) 6198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6200ac_tool_warned=yes ;; 6201esac 6202 OBJDUMP=$ac_ct_OBJDUMP 6203 fi 6204else 6205 OBJDUMP="$ac_cv_prog_OBJDUMP" 6206fi 6207 6208 ;; 6209esac 6210 6211test -z "$AS" && AS=as 6212 6213 6214 6215 6216 6217test -z "$DLLTOOL" && DLLTOOL=dlltool 6218 6219 6220 6221 6222 6223test -z "$OBJDUMP" && OBJDUMP=objdump 6224 6225 6226 6227 6228 6229 6230 6231case `pwd` in 6232 *\ * | *\ *) 6233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6234$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6235esac 6236 6237 6238 6239macro_version='2.4.2' 6240macro_revision='1.3337' 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254ltmain="$ac_aux_dir/ltmain.sh" 6255 6256# Backslashify metacharacters that are still active within 6257# double-quoted strings. 6258sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6259 6260# Same as above, but do not quote variable references. 6261double_quote_subst='s/\(["`\\]\)/\\\1/g' 6262 6263# Sed substitution to delay expansion of an escaped shell variable in a 6264# double_quote_subst'ed string. 6265delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6266 6267# Sed substitution to delay expansion of an escaped single quote. 6268delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6269 6270# Sed substitution to avoid accidental globbing in evaled expressions 6271no_glob_subst='s/\*/\\\*/g' 6272 6273ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6274ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6275ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6276 6277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6278$as_echo_n "checking how to print strings... " >&6; } 6279# Test print first, because it will be a builtin if present. 6280if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6281 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6282 ECHO='print -r --' 6283elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6284 ECHO='printf %s\n' 6285else 6286 # Use this function as a fallback that always works. 6287 func_fallback_echo () 6288 { 6289 eval 'cat <<_LTECHO_EOF 6290$1 6291_LTECHO_EOF' 6292 } 6293 ECHO='func_fallback_echo' 6294fi 6295 6296# func_echo_all arg... 6297# Invoke $ECHO with all args, space-separated. 6298func_echo_all () 6299{ 6300 $ECHO "" 6301} 6302 6303case "$ECHO" in 6304 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6305$as_echo "printf" >&6; } ;; 6306 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6307$as_echo "print -r" >&6; } ;; 6308 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6309$as_echo "cat" >&6; } ;; 6310esac 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6326$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6327if ${ac_cv_path_SED+:} false; then : 6328 $as_echo_n "(cached) " >&6 6329else 6330 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6331 for ac_i in 1 2 3 4 5 6 7; do 6332 ac_script="$ac_script$as_nl$ac_script" 6333 done 6334 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6335 { ac_script=; unset ac_script;} 6336 if test -z "$SED"; then 6337 ac_path_SED_found=false 6338 # Loop through the user's path and test for each of PROGNAME-LIST 6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6340for as_dir in $PATH 6341do 6342 IFS=$as_save_IFS 6343 test -z "$as_dir" && as_dir=. 6344 for ac_prog in sed gsed; do 6345 for ac_exec_ext in '' $ac_executable_extensions; do 6346 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6347 as_fn_executable_p "$ac_path_SED" || continue 6348# Check for GNU ac_path_SED and select it if it is found. 6349 # Check for GNU $ac_path_SED 6350case `"$ac_path_SED" --version 2>&1` in 6351*GNU*) 6352 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6353*) 6354 ac_count=0 6355 $as_echo_n 0123456789 >"conftest.in" 6356 while : 6357 do 6358 cat "conftest.in" "conftest.in" >"conftest.tmp" 6359 mv "conftest.tmp" "conftest.in" 6360 cp "conftest.in" "conftest.nl" 6361 $as_echo '' >> "conftest.nl" 6362 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6364 as_fn_arith $ac_count + 1 && ac_count=$as_val 6365 if test $ac_count -gt ${ac_path_SED_max-0}; then 6366 # Best one so far, save it but keep looking for a better one 6367 ac_cv_path_SED="$ac_path_SED" 6368 ac_path_SED_max=$ac_count 6369 fi 6370 # 10*(2^10) chars as input seems more than enough 6371 test $ac_count -gt 10 && break 6372 done 6373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6374esac 6375 6376 $ac_path_SED_found && break 3 6377 done 6378 done 6379 done 6380IFS=$as_save_IFS 6381 if test -z "$ac_cv_path_SED"; then 6382 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6383 fi 6384else 6385 ac_cv_path_SED=$SED 6386fi 6387 6388fi 6389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6390$as_echo "$ac_cv_path_SED" >&6; } 6391 SED="$ac_cv_path_SED" 6392 rm -f conftest.sed 6393 6394test -z "$SED" && SED=sed 6395Xsed="$SED -e 1s/^X//" 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6408$as_echo_n "checking for fgrep... " >&6; } 6409if ${ac_cv_path_FGREP+:} false; then : 6410 $as_echo_n "(cached) " >&6 6411else 6412 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6413 then ac_cv_path_FGREP="$GREP -F" 6414 else 6415 if test -z "$FGREP"; then 6416 ac_path_FGREP_found=false 6417 # Loop through the user's path and test for each of PROGNAME-LIST 6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6419for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6420do 6421 IFS=$as_save_IFS 6422 test -z "$as_dir" && as_dir=. 6423 for ac_prog in fgrep; do 6424 for ac_exec_ext in '' $ac_executable_extensions; do 6425 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6426 as_fn_executable_p "$ac_path_FGREP" || continue 6427# Check for GNU ac_path_FGREP and select it if it is found. 6428 # Check for GNU $ac_path_FGREP 6429case `"$ac_path_FGREP" --version 2>&1` in 6430*GNU*) 6431 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6432*) 6433 ac_count=0 6434 $as_echo_n 0123456789 >"conftest.in" 6435 while : 6436 do 6437 cat "conftest.in" "conftest.in" >"conftest.tmp" 6438 mv "conftest.tmp" "conftest.in" 6439 cp "conftest.in" "conftest.nl" 6440 $as_echo 'FGREP' >> "conftest.nl" 6441 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6442 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6443 as_fn_arith $ac_count + 1 && ac_count=$as_val 6444 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6445 # Best one so far, save it but keep looking for a better one 6446 ac_cv_path_FGREP="$ac_path_FGREP" 6447 ac_path_FGREP_max=$ac_count 6448 fi 6449 # 10*(2^10) chars as input seems more than enough 6450 test $ac_count -gt 10 && break 6451 done 6452 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6453esac 6454 6455 $ac_path_FGREP_found && break 3 6456 done 6457 done 6458 done 6459IFS=$as_save_IFS 6460 if test -z "$ac_cv_path_FGREP"; then 6461 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6462 fi 6463else 6464 ac_cv_path_FGREP=$FGREP 6465fi 6466 6467 fi 6468fi 6469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6470$as_echo "$ac_cv_path_FGREP" >&6; } 6471 FGREP="$ac_cv_path_FGREP" 6472 6473 6474test -z "$GREP" && GREP=grep 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494# Check whether --with-gnu-ld was given. 6495if test "${with_gnu_ld+set}" = set; then : 6496 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6497else 6498 with_gnu_ld=no 6499fi 6500 6501ac_prog=ld 6502if test "$GCC" = yes; then 6503 # Check if gcc -print-prog-name=ld gives a path. 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6505$as_echo_n "checking for ld used by $CC... " >&6; } 6506 case $host in 6507 *-*-mingw*) 6508 # gcc leaves a trailing carriage return which upsets mingw 6509 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6510 *) 6511 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6512 esac 6513 case $ac_prog in 6514 # Accept absolute paths. 6515 [\\/]* | ?:[\\/]*) 6516 re_direlt='/[^/][^/]*/\.\./' 6517 # Canonicalize the pathname of ld 6518 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6519 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6520 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6521 done 6522 test -z "$LD" && LD="$ac_prog" 6523 ;; 6524 "") 6525 # If it fails, then pretend we aren't using GCC. 6526 ac_prog=ld 6527 ;; 6528 *) 6529 # If it is relative, then search for the first ld in PATH. 6530 with_gnu_ld=unknown 6531 ;; 6532 esac 6533elif test "$with_gnu_ld" = yes; then 6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6535$as_echo_n "checking for GNU ld... " >&6; } 6536else 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6538$as_echo_n "checking for non-GNU ld... " >&6; } 6539fi 6540if ${lt_cv_path_LD+:} false; then : 6541 $as_echo_n "(cached) " >&6 6542else 6543 if test -z "$LD"; then 6544 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6545 for ac_dir in $PATH; do 6546 IFS="$lt_save_ifs" 6547 test -z "$ac_dir" && ac_dir=. 6548 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6549 lt_cv_path_LD="$ac_dir/$ac_prog" 6550 # Check to see if the program is GNU ld. I'd rather use --version, 6551 # but apparently some variants of GNU ld only accept -v. 6552 # Break only if it was the GNU/non-GNU ld that we prefer. 6553 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6554 *GNU* | *'with BFD'*) 6555 test "$with_gnu_ld" != no && break 6556 ;; 6557 *) 6558 test "$with_gnu_ld" != yes && break 6559 ;; 6560 esac 6561 fi 6562 done 6563 IFS="$lt_save_ifs" 6564else 6565 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6566fi 6567fi 6568 6569LD="$lt_cv_path_LD" 6570if test -n "$LD"; then 6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6572$as_echo "$LD" >&6; } 6573else 6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6575$as_echo "no" >&6; } 6576fi 6577test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6579$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6580if ${lt_cv_prog_gnu_ld+:} false; then : 6581 $as_echo_n "(cached) " >&6 6582else 6583 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6584case `$LD -v 2>&1 </dev/null` in 6585*GNU* | *'with BFD'*) 6586 lt_cv_prog_gnu_ld=yes 6587 ;; 6588*) 6589 lt_cv_prog_gnu_ld=no 6590 ;; 6591esac 6592fi 6593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6594$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6595with_gnu_ld=$lt_cv_prog_gnu_ld 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6606$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6607if ${lt_cv_path_NM+:} false; then : 6608 $as_echo_n "(cached) " >&6 6609else 6610 if test -n "$NM"; then 6611 # Let the user override the test. 6612 lt_cv_path_NM="$NM" 6613else 6614 lt_nm_to_check="${ac_tool_prefix}nm" 6615 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6616 lt_nm_to_check="$lt_nm_to_check nm" 6617 fi 6618 for lt_tmp_nm in $lt_nm_to_check; do 6619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6620 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6621 IFS="$lt_save_ifs" 6622 test -z "$ac_dir" && ac_dir=. 6623 tmp_nm="$ac_dir/$lt_tmp_nm" 6624 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6625 # Check to see if the nm accepts a BSD-compat flag. 6626 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6627 # nm: unknown option "B" ignored 6628 # Tru64's nm complains that /dev/null is an invalid object file 6629 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6630 */dev/null* | *'Invalid file or object type'*) 6631 lt_cv_path_NM="$tmp_nm -B" 6632 break 6633 ;; 6634 *) 6635 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6636 */dev/null*) 6637 lt_cv_path_NM="$tmp_nm -p" 6638 break 6639 ;; 6640 *) 6641 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6642 continue # so that we can try to find one that supports BSD flags 6643 ;; 6644 esac 6645 ;; 6646 esac 6647 fi 6648 done 6649 IFS="$lt_save_ifs" 6650 done 6651 : ${lt_cv_path_NM=no} 6652fi 6653fi 6654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6655$as_echo "$lt_cv_path_NM" >&6; } 6656if test "$lt_cv_path_NM" != "no"; then 6657 NM="$lt_cv_path_NM" 6658else 6659 # Didn't find any BSD compatible name lister, look for dumpbin. 6660 if test -n "$DUMPBIN"; then : 6661 # Let the user override the test. 6662 else 6663 if test -n "$ac_tool_prefix"; then 6664 for ac_prog in dumpbin "link -dump" 6665 do 6666 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6667set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6669$as_echo_n "checking for $ac_word... " >&6; } 6670if ${ac_cv_prog_DUMPBIN+:} false; then : 6671 $as_echo_n "(cached) " >&6 6672else 6673 if test -n "$DUMPBIN"; then 6674 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6675else 6676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6677for as_dir in $PATH 6678do 6679 IFS=$as_save_IFS 6680 test -z "$as_dir" && as_dir=. 6681 for ac_exec_ext in '' $ac_executable_extensions; do 6682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6683 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6685 break 2 6686 fi 6687done 6688 done 6689IFS=$as_save_IFS 6690 6691fi 6692fi 6693DUMPBIN=$ac_cv_prog_DUMPBIN 6694if test -n "$DUMPBIN"; then 6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6696$as_echo "$DUMPBIN" >&6; } 6697else 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6699$as_echo "no" >&6; } 6700fi 6701 6702 6703 test -n "$DUMPBIN" && break 6704 done 6705fi 6706if test -z "$DUMPBIN"; then 6707 ac_ct_DUMPBIN=$DUMPBIN 6708 for ac_prog in dumpbin "link -dump" 6709do 6710 # Extract the first word of "$ac_prog", so it can be a program name with args. 6711set dummy $ac_prog; ac_word=$2 6712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6713$as_echo_n "checking for $ac_word... " >&6; } 6714if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6715 $as_echo_n "(cached) " >&6 6716else 6717 if test -n "$ac_ct_DUMPBIN"; then 6718 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6719else 6720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6721for as_dir in $PATH 6722do 6723 IFS=$as_save_IFS 6724 test -z "$as_dir" && as_dir=. 6725 for ac_exec_ext in '' $ac_executable_extensions; do 6726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6727 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6729 break 2 6730 fi 6731done 6732 done 6733IFS=$as_save_IFS 6734 6735fi 6736fi 6737ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6738if test -n "$ac_ct_DUMPBIN"; then 6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6740$as_echo "$ac_ct_DUMPBIN" >&6; } 6741else 6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6743$as_echo "no" >&6; } 6744fi 6745 6746 6747 test -n "$ac_ct_DUMPBIN" && break 6748done 6749 6750 if test "x$ac_ct_DUMPBIN" = x; then 6751 DUMPBIN=":" 6752 else 6753 case $cross_compiling:$ac_tool_warned in 6754yes:) 6755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6757ac_tool_warned=yes ;; 6758esac 6759 DUMPBIN=$ac_ct_DUMPBIN 6760 fi 6761fi 6762 6763 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 6764 *COFF*) 6765 DUMPBIN="$DUMPBIN -symbols" 6766 ;; 6767 *) 6768 DUMPBIN=: 6769 ;; 6770 esac 6771 fi 6772 6773 if test "$DUMPBIN" != ":"; then 6774 NM="$DUMPBIN" 6775 fi 6776fi 6777test -z "$NM" && NM=nm 6778 6779 6780 6781 6782 6783 6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6785$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6786if ${lt_cv_nm_interface+:} false; then : 6787 $as_echo_n "(cached) " >&6 6788else 6789 lt_cv_nm_interface="BSD nm" 6790 echo "int some_variable = 0;" > conftest.$ac_ext 6791 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6792 (eval "$ac_compile" 2>conftest.err) 6793 cat conftest.err >&5 6794 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6795 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6796 cat conftest.err >&5 6797 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6798 cat conftest.out >&5 6799 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6800 lt_cv_nm_interface="MS dumpbin" 6801 fi 6802 rm -f conftest* 6803fi 6804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6805$as_echo "$lt_cv_nm_interface" >&6; } 6806 6807# find the maximum length of command line arguments 6808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6809$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6810if ${lt_cv_sys_max_cmd_len+:} false; then : 6811 $as_echo_n "(cached) " >&6 6812else 6813 i=0 6814 teststring="ABCD" 6815 6816 case $build_os in 6817 msdosdjgpp*) 6818 # On DJGPP, this test can blow up pretty badly due to problems in libc 6819 # (any single argument exceeding 2000 bytes causes a buffer overrun 6820 # during glob expansion). Even if it were fixed, the result of this 6821 # check would be larger than it should be. 6822 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6823 ;; 6824 6825 gnu*) 6826 # Under GNU Hurd, this test is not required because there is 6827 # no limit to the length of command line arguments. 6828 # Libtool will interpret -1 as no limit whatsoever 6829 lt_cv_sys_max_cmd_len=-1; 6830 ;; 6831 6832 cygwin* | mingw* | cegcc*) 6833 # On Win9x/ME, this test blows up -- it succeeds, but takes 6834 # about 5 minutes as the teststring grows exponentially. 6835 # Worse, since 9x/ME are not pre-emptively multitasking, 6836 # you end up with a "frozen" computer, even though with patience 6837 # the test eventually succeeds (with a max line length of 256k). 6838 # Instead, let's just punt: use the minimum linelength reported by 6839 # all of the supported platforms: 8192 (on NT/2K/XP). 6840 lt_cv_sys_max_cmd_len=8192; 6841 ;; 6842 6843 mint*) 6844 # On MiNT this can take a long time and run out of memory. 6845 lt_cv_sys_max_cmd_len=8192; 6846 ;; 6847 6848 amigaos*) 6849 # On AmigaOS with pdksh, this test takes hours, literally. 6850 # So we just punt and use a minimum line length of 8192. 6851 lt_cv_sys_max_cmd_len=8192; 6852 ;; 6853 6854 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6855 # This has been around since 386BSD, at least. Likely further. 6856 if test -x /sbin/sysctl; then 6857 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6858 elif test -x /usr/sbin/sysctl; then 6859 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6860 else 6861 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6862 fi 6863 # And add a safety zone 6864 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6866 ;; 6867 6868 interix*) 6869 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6870 lt_cv_sys_max_cmd_len=196608 6871 ;; 6872 6873 os2*) 6874 # The test takes a long time on OS/2. 6875 lt_cv_sys_max_cmd_len=8192 6876 ;; 6877 6878 osf*) 6879 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6880 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6881 # nice to cause kernel panics so lets avoid the loop below. 6882 # First set a reasonable default. 6883 lt_cv_sys_max_cmd_len=16384 6884 # 6885 if test -x /sbin/sysconfig; then 6886 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6887 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6888 esac 6889 fi 6890 ;; 6891 sco3.2v5*) 6892 lt_cv_sys_max_cmd_len=102400 6893 ;; 6894 sysv5* | sco5v6* | sysv4.2uw2*) 6895 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6896 if test -n "$kargmax"; then 6897 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6898 else 6899 lt_cv_sys_max_cmd_len=32768 6900 fi 6901 ;; 6902 *) 6903 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6904 if test -n "$lt_cv_sys_max_cmd_len"; then 6905 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6906 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6907 else 6908 # Make teststring a little bigger before we do anything with it. 6909 # a 1K string should be a reasonable start. 6910 for i in 1 2 3 4 5 6 7 8 ; do 6911 teststring=$teststring$teststring 6912 done 6913 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6914 # If test is not a shell built-in, we'll probably end up computing a 6915 # maximum length that is only half of the actual maximum length, but 6916 # we can't tell. 6917 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 6918 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6919 test $i != 17 # 1/2 MB should be enough 6920 do 6921 i=`expr $i + 1` 6922 teststring=$teststring$teststring 6923 done 6924 # Only check the string length outside the loop. 6925 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6926 teststring= 6927 # Add a significant safety factor because C++ compilers can tack on 6928 # massive amounts of additional arguments before passing them to the 6929 # linker. It appears as though 1/2 is a usable value. 6930 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6931 fi 6932 ;; 6933 esac 6934 6935fi 6936 6937if test -n $lt_cv_sys_max_cmd_len ; then 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6939$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6940else 6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6942$as_echo "none" >&6; } 6943fi 6944max_cmd_len=$lt_cv_sys_max_cmd_len 6945 6946 6947 6948 6949 6950 6951: ${CP="cp -f"} 6952: ${MV="mv -f"} 6953: ${RM="rm -f"} 6954 6955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6956$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6957# Try some XSI features 6958xsi_shell=no 6959( _lt_dummy="a/b/c" 6960 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 6961 = c,a/b,b/c, \ 6962 && eval 'test $(( 1 + 1 )) -eq 2 \ 6963 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6964 && xsi_shell=yes 6965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6966$as_echo "$xsi_shell" >&6; } 6967 6968 6969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6970$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6971lt_shell_append=no 6972( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6973 >/dev/null 2>&1 \ 6974 && lt_shell_append=yes 6975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6976$as_echo "$lt_shell_append" >&6; } 6977 6978 6979if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6980 lt_unset=unset 6981else 6982 lt_unset=false 6983fi 6984 6985 6986 6987 6988 6989# test EBCDIC or ASCII 6990case `echo X|tr X '\101'` in 6991 A) # ASCII based system 6992 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6993 lt_SP2NL='tr \040 \012' 6994 lt_NL2SP='tr \015\012 \040\040' 6995 ;; 6996 *) # EBCDIC based system 6997 lt_SP2NL='tr \100 \n' 6998 lt_NL2SP='tr \r\n \100\100' 6999 ;; 7000esac 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7011$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7012if ${lt_cv_to_host_file_cmd+:} false; then : 7013 $as_echo_n "(cached) " >&6 7014else 7015 case $host in 7016 *-*-mingw* ) 7017 case $build in 7018 *-*-mingw* ) # actually msys 7019 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7020 ;; 7021 *-*-cygwin* ) 7022 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7023 ;; 7024 * ) # otherwise, assume *nix 7025 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7026 ;; 7027 esac 7028 ;; 7029 *-*-cygwin* ) 7030 case $build in 7031 *-*-mingw* ) # actually msys 7032 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7033 ;; 7034 *-*-cygwin* ) 7035 lt_cv_to_host_file_cmd=func_convert_file_noop 7036 ;; 7037 * ) # otherwise, assume *nix 7038 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7039 ;; 7040 esac 7041 ;; 7042 * ) # unhandled hosts (and "normal" native builds) 7043 lt_cv_to_host_file_cmd=func_convert_file_noop 7044 ;; 7045esac 7046 7047fi 7048 7049to_host_file_cmd=$lt_cv_to_host_file_cmd 7050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7051$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7052 7053 7054 7055 7056 7057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7058$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7059if ${lt_cv_to_tool_file_cmd+:} false; then : 7060 $as_echo_n "(cached) " >&6 7061else 7062 #assume ordinary cross tools, or native build. 7063lt_cv_to_tool_file_cmd=func_convert_file_noop 7064case $host in 7065 *-*-mingw* ) 7066 case $build in 7067 *-*-mingw* ) # actually msys 7068 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7069 ;; 7070 esac 7071 ;; 7072esac 7073 7074fi 7075 7076to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7078$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7079 7080 7081 7082 7083 7084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7085$as_echo_n "checking for $LD option to reload object files... " >&6; } 7086if ${lt_cv_ld_reload_flag+:} false; then : 7087 $as_echo_n "(cached) " >&6 7088else 7089 lt_cv_ld_reload_flag='-r' 7090fi 7091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7092$as_echo "$lt_cv_ld_reload_flag" >&6; } 7093reload_flag=$lt_cv_ld_reload_flag 7094case $reload_flag in 7095"" | " "*) ;; 7096*) reload_flag=" $reload_flag" ;; 7097esac 7098reload_cmds='$LD$reload_flag -o $output$reload_objs' 7099case $host_os in 7100 cygwin* | mingw* | pw32* | cegcc*) 7101 if test "$GCC" != yes; then 7102 reload_cmds=false 7103 fi 7104 ;; 7105 darwin*) 7106 if test "$GCC" = yes; then 7107 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7108 else 7109 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7110 fi 7111 ;; 7112esac 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122if test -n "$ac_tool_prefix"; then 7123 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7124set dummy ${ac_tool_prefix}objdump; ac_word=$2 7125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7126$as_echo_n "checking for $ac_word... " >&6; } 7127if ${ac_cv_prog_OBJDUMP+:} false; then : 7128 $as_echo_n "(cached) " >&6 7129else 7130 if test -n "$OBJDUMP"; then 7131 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7132else 7133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7134for as_dir in $PATH 7135do 7136 IFS=$as_save_IFS 7137 test -z "$as_dir" && as_dir=. 7138 for ac_exec_ext in '' $ac_executable_extensions; do 7139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7140 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7142 break 2 7143 fi 7144done 7145 done 7146IFS=$as_save_IFS 7147 7148fi 7149fi 7150OBJDUMP=$ac_cv_prog_OBJDUMP 7151if test -n "$OBJDUMP"; then 7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7153$as_echo "$OBJDUMP" >&6; } 7154else 7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7156$as_echo "no" >&6; } 7157fi 7158 7159 7160fi 7161if test -z "$ac_cv_prog_OBJDUMP"; then 7162 ac_ct_OBJDUMP=$OBJDUMP 7163 # Extract the first word of "objdump", so it can be a program name with args. 7164set dummy objdump; ac_word=$2 7165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7166$as_echo_n "checking for $ac_word... " >&6; } 7167if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7168 $as_echo_n "(cached) " >&6 7169else 7170 if test -n "$ac_ct_OBJDUMP"; then 7171 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7172else 7173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7174for as_dir in $PATH 7175do 7176 IFS=$as_save_IFS 7177 test -z "$as_dir" && as_dir=. 7178 for ac_exec_ext in '' $ac_executable_extensions; do 7179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7180 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7182 break 2 7183 fi 7184done 7185 done 7186IFS=$as_save_IFS 7187 7188fi 7189fi 7190ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7191if test -n "$ac_ct_OBJDUMP"; then 7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7193$as_echo "$ac_ct_OBJDUMP" >&6; } 7194else 7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7196$as_echo "no" >&6; } 7197fi 7198 7199 if test "x$ac_ct_OBJDUMP" = x; then 7200 OBJDUMP="false" 7201 else 7202 case $cross_compiling:$ac_tool_warned in 7203yes:) 7204{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7205$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7206ac_tool_warned=yes ;; 7207esac 7208 OBJDUMP=$ac_ct_OBJDUMP 7209 fi 7210else 7211 OBJDUMP="$ac_cv_prog_OBJDUMP" 7212fi 7213 7214test -z "$OBJDUMP" && OBJDUMP=objdump 7215 7216 7217 7218 7219 7220 7221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7222$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7223if ${lt_cv_deplibs_check_method+:} false; then : 7224 $as_echo_n "(cached) " >&6 7225else 7226 lt_cv_file_magic_cmd='$MAGIC_CMD' 7227lt_cv_file_magic_test_file= 7228lt_cv_deplibs_check_method='unknown' 7229# Need to set the preceding variable on all platforms that support 7230# interlibrary dependencies. 7231# 'none' -- dependencies not supported. 7232# `unknown' -- same as none, but documents that we really don't know. 7233# 'pass_all' -- all dependencies passed with no checks. 7234# 'test_compile' -- check by making test program. 7235# 'file_magic [[regex]]' -- check by looking for files in library path 7236# which responds to the $file_magic_cmd with a given extended regex. 7237# If you have `file' or equivalent on your system and you're not sure 7238# whether `pass_all' will *always* work, you probably want this one. 7239 7240case $host_os in 7241aix[4-9]*) 7242 lt_cv_deplibs_check_method=pass_all 7243 ;; 7244 7245beos*) 7246 lt_cv_deplibs_check_method=pass_all 7247 ;; 7248 7249bsdi[45]*) 7250 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7251 lt_cv_file_magic_cmd='/usr/bin/file -L' 7252 lt_cv_file_magic_test_file=/shlib/libc.so 7253 ;; 7254 7255cygwin*) 7256 # func_win32_libid is a shell function defined in ltmain.sh 7257 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7258 lt_cv_file_magic_cmd='func_win32_libid' 7259 ;; 7260 7261mingw* | pw32*) 7262 # Base MSYS/MinGW do not provide the 'file' command needed by 7263 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7264 # unless we find 'file', for example because we are cross-compiling. 7265 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 7266 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 7267 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7268 lt_cv_file_magic_cmd='func_win32_libid' 7269 else 7270 # Keep this pattern in sync with the one in func_win32_libid. 7271 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7272 lt_cv_file_magic_cmd='$OBJDUMP -f' 7273 fi 7274 ;; 7275 7276cegcc*) 7277 # use the weaker test based on 'objdump'. See mingw*. 7278 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7279 lt_cv_file_magic_cmd='$OBJDUMP -f' 7280 ;; 7281 7282darwin* | rhapsody*) 7283 lt_cv_deplibs_check_method=pass_all 7284 ;; 7285 7286freebsd* | dragonfly*) 7287 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7288 case $host_cpu in 7289 i*86 ) 7290 # Not sure whether the presence of OpenBSD here was a mistake. 7291 # Let's accept both of them until this is cleared up. 7292 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7293 lt_cv_file_magic_cmd=/usr/bin/file 7294 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7295 ;; 7296 esac 7297 else 7298 lt_cv_deplibs_check_method=pass_all 7299 fi 7300 ;; 7301 7302gnu*) 7303 lt_cv_deplibs_check_method=pass_all 7304 ;; 7305 7306haiku*) 7307 lt_cv_deplibs_check_method=pass_all 7308 ;; 7309 7310hpux10.20* | hpux11*) 7311 lt_cv_file_magic_cmd=/usr/bin/file 7312 case $host_cpu in 7313 ia64*) 7314 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7315 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7316 ;; 7317 hppa*64*) 7318 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]' 7319 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7320 ;; 7321 *) 7322 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7323 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7324 ;; 7325 esac 7326 ;; 7327 7328interix[3-9]*) 7329 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7331 ;; 7332 7333irix5* | irix6* | nonstopux*) 7334 case $LD in 7335 *-32|*"-32 ") libmagic=32-bit;; 7336 *-n32|*"-n32 ") libmagic=N32;; 7337 *-64|*"-64 ") libmagic=64-bit;; 7338 *) libmagic=never-match;; 7339 esac 7340 lt_cv_deplibs_check_method=pass_all 7341 ;; 7342 7343# This must be glibc/ELF. 7344linux* | k*bsd*-gnu | kopensolaris*-gnu) 7345 lt_cv_deplibs_check_method=pass_all 7346 ;; 7347 7348netbsd*) 7349 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7351 else 7352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7353 fi 7354 ;; 7355 7356newos6*) 7357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7358 lt_cv_file_magic_cmd=/usr/bin/file 7359 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7360 ;; 7361 7362*nto* | *qnx*) 7363 lt_cv_deplibs_check_method=pass_all 7364 ;; 7365 7366openbsd*) 7367 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7369 else 7370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7371 fi 7372 ;; 7373 7374osf3* | osf4* | osf5*) 7375 lt_cv_deplibs_check_method=pass_all 7376 ;; 7377 7378rdos*) 7379 lt_cv_deplibs_check_method=pass_all 7380 ;; 7381 7382solaris*) 7383 lt_cv_deplibs_check_method=pass_all 7384 ;; 7385 7386sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7387 lt_cv_deplibs_check_method=pass_all 7388 ;; 7389 7390sysv4 | sysv4.3*) 7391 case $host_vendor in 7392 motorola) 7393 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]' 7394 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7395 ;; 7396 ncr) 7397 lt_cv_deplibs_check_method=pass_all 7398 ;; 7399 sequent) 7400 lt_cv_file_magic_cmd='/bin/file' 7401 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7402 ;; 7403 sni) 7404 lt_cv_file_magic_cmd='/bin/file' 7405 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7406 lt_cv_file_magic_test_file=/lib/libc.so 7407 ;; 7408 siemens) 7409 lt_cv_deplibs_check_method=pass_all 7410 ;; 7411 pc) 7412 lt_cv_deplibs_check_method=pass_all 7413 ;; 7414 esac 7415 ;; 7416 7417tpf*) 7418 lt_cv_deplibs_check_method=pass_all 7419 ;; 7420esac 7421 7422fi 7423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7424$as_echo "$lt_cv_deplibs_check_method" >&6; } 7425 7426file_magic_glob= 7427want_nocaseglob=no 7428if test "$build" = "$host"; then 7429 case $host_os in 7430 mingw* | pw32*) 7431 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7432 want_nocaseglob=yes 7433 else 7434 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7435 fi 7436 ;; 7437 esac 7438fi 7439 7440file_magic_cmd=$lt_cv_file_magic_cmd 7441deplibs_check_method=$lt_cv_deplibs_check_method 7442test -z "$deplibs_check_method" && deplibs_check_method=unknown 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465if test -n "$ac_tool_prefix"; then 7466 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7467set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7469$as_echo_n "checking for $ac_word... " >&6; } 7470if ${ac_cv_prog_DLLTOOL+:} false; then : 7471 $as_echo_n "(cached) " >&6 7472else 7473 if test -n "$DLLTOOL"; then 7474 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7475else 7476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7477for as_dir in $PATH 7478do 7479 IFS=$as_save_IFS 7480 test -z "$as_dir" && as_dir=. 7481 for ac_exec_ext in '' $ac_executable_extensions; do 7482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7483 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7485 break 2 7486 fi 7487done 7488 done 7489IFS=$as_save_IFS 7490 7491fi 7492fi 7493DLLTOOL=$ac_cv_prog_DLLTOOL 7494if test -n "$DLLTOOL"; then 7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7496$as_echo "$DLLTOOL" >&6; } 7497else 7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7499$as_echo "no" >&6; } 7500fi 7501 7502 7503fi 7504if test -z "$ac_cv_prog_DLLTOOL"; then 7505 ac_ct_DLLTOOL=$DLLTOOL 7506 # Extract the first word of "dlltool", so it can be a program name with args. 7507set dummy dlltool; ac_word=$2 7508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7509$as_echo_n "checking for $ac_word... " >&6; } 7510if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7511 $as_echo_n "(cached) " >&6 7512else 7513 if test -n "$ac_ct_DLLTOOL"; then 7514 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7515else 7516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7517for as_dir in $PATH 7518do 7519 IFS=$as_save_IFS 7520 test -z "$as_dir" && as_dir=. 7521 for ac_exec_ext in '' $ac_executable_extensions; do 7522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7523 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7525 break 2 7526 fi 7527done 7528 done 7529IFS=$as_save_IFS 7530 7531fi 7532fi 7533ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7534if test -n "$ac_ct_DLLTOOL"; then 7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7536$as_echo "$ac_ct_DLLTOOL" >&6; } 7537else 7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7539$as_echo "no" >&6; } 7540fi 7541 7542 if test "x$ac_ct_DLLTOOL" = x; then 7543 DLLTOOL="false" 7544 else 7545 case $cross_compiling:$ac_tool_warned in 7546yes:) 7547{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7548$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7549ac_tool_warned=yes ;; 7550esac 7551 DLLTOOL=$ac_ct_DLLTOOL 7552 fi 7553else 7554 DLLTOOL="$ac_cv_prog_DLLTOOL" 7555fi 7556 7557test -z "$DLLTOOL" && DLLTOOL=dlltool 7558 7559 7560 7561 7562 7563 7564 7565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7566$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7567if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7568 $as_echo_n "(cached) " >&6 7569else 7570 lt_cv_sharedlib_from_linklib_cmd='unknown' 7571 7572case $host_os in 7573cygwin* | mingw* | pw32* | cegcc*) 7574 # two different shell functions defined in ltmain.sh 7575 # decide which to use based on capabilities of $DLLTOOL 7576 case `$DLLTOOL --help 2>&1` in 7577 *--identify-strict*) 7578 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7579 ;; 7580 *) 7581 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7582 ;; 7583 esac 7584 ;; 7585*) 7586 # fallback: assume linklib IS sharedlib 7587 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 7588 ;; 7589esac 7590 7591fi 7592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7593$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7594sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7595test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7596 7597 7598 7599 7600 7601 7602 7603if test -n "$ac_tool_prefix"; then 7604 for ac_prog in ar 7605 do 7606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7607set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7609$as_echo_n "checking for $ac_word... " >&6; } 7610if ${ac_cv_prog_AR+:} false; then : 7611 $as_echo_n "(cached) " >&6 7612else 7613 if test -n "$AR"; then 7614 ac_cv_prog_AR="$AR" # Let the user override the test. 7615else 7616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7617for as_dir in $PATH 7618do 7619 IFS=$as_save_IFS 7620 test -z "$as_dir" && as_dir=. 7621 for ac_exec_ext in '' $ac_executable_extensions; do 7622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7623 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7625 break 2 7626 fi 7627done 7628 done 7629IFS=$as_save_IFS 7630 7631fi 7632fi 7633AR=$ac_cv_prog_AR 7634if test -n "$AR"; then 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7636$as_echo "$AR" >&6; } 7637else 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7639$as_echo "no" >&6; } 7640fi 7641 7642 7643 test -n "$AR" && break 7644 done 7645fi 7646if test -z "$AR"; then 7647 ac_ct_AR=$AR 7648 for ac_prog in ar 7649do 7650 # Extract the first word of "$ac_prog", so it can be a program name with args. 7651set dummy $ac_prog; ac_word=$2 7652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7653$as_echo_n "checking for $ac_word... " >&6; } 7654if ${ac_cv_prog_ac_ct_AR+:} false; then : 7655 $as_echo_n "(cached) " >&6 7656else 7657 if test -n "$ac_ct_AR"; then 7658 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7659else 7660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7661for as_dir in $PATH 7662do 7663 IFS=$as_save_IFS 7664 test -z "$as_dir" && as_dir=. 7665 for ac_exec_ext in '' $ac_executable_extensions; do 7666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7667 ac_cv_prog_ac_ct_AR="$ac_prog" 7668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7669 break 2 7670 fi 7671done 7672 done 7673IFS=$as_save_IFS 7674 7675fi 7676fi 7677ac_ct_AR=$ac_cv_prog_ac_ct_AR 7678if test -n "$ac_ct_AR"; then 7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7680$as_echo "$ac_ct_AR" >&6; } 7681else 7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7683$as_echo "no" >&6; } 7684fi 7685 7686 7687 test -n "$ac_ct_AR" && break 7688done 7689 7690 if test "x$ac_ct_AR" = x; then 7691 AR="false" 7692 else 7693 case $cross_compiling:$ac_tool_warned in 7694yes:) 7695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7697ac_tool_warned=yes ;; 7698esac 7699 AR=$ac_ct_AR 7700 fi 7701fi 7702 7703: ${AR=ar} 7704: ${AR_FLAGS=cru} 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7717$as_echo_n "checking for archiver @FILE support... " >&6; } 7718if ${lt_cv_ar_at_file+:} false; then : 7719 $as_echo_n "(cached) " >&6 7720else 7721 lt_cv_ar_at_file=no 7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7723/* end confdefs.h. */ 7724 7725int 7726main () 7727{ 7728 7729 ; 7730 return 0; 7731} 7732_ACEOF 7733if ac_fn_c_try_compile "$LINENO"; then : 7734 echo conftest.$ac_objext > conftest.lst 7735 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7737 (eval $lt_ar_try) 2>&5 7738 ac_status=$? 7739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7740 test $ac_status = 0; } 7741 if test "$ac_status" -eq 0; then 7742 # Ensure the archiver fails upon bogus file names. 7743 rm -f conftest.$ac_objext libconftest.a 7744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7745 (eval $lt_ar_try) 2>&5 7746 ac_status=$? 7747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7748 test $ac_status = 0; } 7749 if test "$ac_status" -ne 0; then 7750 lt_cv_ar_at_file=@ 7751 fi 7752 fi 7753 rm -f conftest.* libconftest.a 7754 7755fi 7756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7757 7758fi 7759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7760$as_echo "$lt_cv_ar_at_file" >&6; } 7761 7762if test "x$lt_cv_ar_at_file" = xno; then 7763 archiver_list_spec= 7764else 7765 archiver_list_spec=$lt_cv_ar_at_file 7766fi 7767 7768 7769 7770 7771 7772 7773 7774if test -n "$ac_tool_prefix"; then 7775 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7776set dummy ${ac_tool_prefix}strip; ac_word=$2 7777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7778$as_echo_n "checking for $ac_word... " >&6; } 7779if ${ac_cv_prog_STRIP+:} false; then : 7780 $as_echo_n "(cached) " >&6 7781else 7782 if test -n "$STRIP"; then 7783 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7784else 7785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7786for as_dir in $PATH 7787do 7788 IFS=$as_save_IFS 7789 test -z "$as_dir" && as_dir=. 7790 for ac_exec_ext in '' $ac_executable_extensions; do 7791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7792 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7794 break 2 7795 fi 7796done 7797 done 7798IFS=$as_save_IFS 7799 7800fi 7801fi 7802STRIP=$ac_cv_prog_STRIP 7803if test -n "$STRIP"; then 7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7805$as_echo "$STRIP" >&6; } 7806else 7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7808$as_echo "no" >&6; } 7809fi 7810 7811 7812fi 7813if test -z "$ac_cv_prog_STRIP"; then 7814 ac_ct_STRIP=$STRIP 7815 # Extract the first word of "strip", so it can be a program name with args. 7816set dummy strip; ac_word=$2 7817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7818$as_echo_n "checking for $ac_word... " >&6; } 7819if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7820 $as_echo_n "(cached) " >&6 7821else 7822 if test -n "$ac_ct_STRIP"; then 7823 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7824else 7825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7826for as_dir in $PATH 7827do 7828 IFS=$as_save_IFS 7829 test -z "$as_dir" && as_dir=. 7830 for ac_exec_ext in '' $ac_executable_extensions; do 7831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7832 ac_cv_prog_ac_ct_STRIP="strip" 7833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7834 break 2 7835 fi 7836done 7837 done 7838IFS=$as_save_IFS 7839 7840fi 7841fi 7842ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7843if test -n "$ac_ct_STRIP"; then 7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7845$as_echo "$ac_ct_STRIP" >&6; } 7846else 7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7848$as_echo "no" >&6; } 7849fi 7850 7851 if test "x$ac_ct_STRIP" = x; then 7852 STRIP=":" 7853 else 7854 case $cross_compiling:$ac_tool_warned in 7855yes:) 7856{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7857$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7858ac_tool_warned=yes ;; 7859esac 7860 STRIP=$ac_ct_STRIP 7861 fi 7862else 7863 STRIP="$ac_cv_prog_STRIP" 7864fi 7865 7866test -z "$STRIP" && STRIP=: 7867 7868 7869 7870 7871 7872 7873if test -n "$ac_tool_prefix"; then 7874 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7875set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7877$as_echo_n "checking for $ac_word... " >&6; } 7878if ${ac_cv_prog_RANLIB+:} false; then : 7879 $as_echo_n "(cached) " >&6 7880else 7881 if test -n "$RANLIB"; then 7882 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7883else 7884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7885for as_dir in $PATH 7886do 7887 IFS=$as_save_IFS 7888 test -z "$as_dir" && as_dir=. 7889 for ac_exec_ext in '' $ac_executable_extensions; do 7890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7891 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7893 break 2 7894 fi 7895done 7896 done 7897IFS=$as_save_IFS 7898 7899fi 7900fi 7901RANLIB=$ac_cv_prog_RANLIB 7902if test -n "$RANLIB"; then 7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7904$as_echo "$RANLIB" >&6; } 7905else 7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7907$as_echo "no" >&6; } 7908fi 7909 7910 7911fi 7912if test -z "$ac_cv_prog_RANLIB"; then 7913 ac_ct_RANLIB=$RANLIB 7914 # Extract the first word of "ranlib", so it can be a program name with args. 7915set dummy ranlib; ac_word=$2 7916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7917$as_echo_n "checking for $ac_word... " >&6; } 7918if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7919 $as_echo_n "(cached) " >&6 7920else 7921 if test -n "$ac_ct_RANLIB"; then 7922 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7923else 7924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7925for as_dir in $PATH 7926do 7927 IFS=$as_save_IFS 7928 test -z "$as_dir" && as_dir=. 7929 for ac_exec_ext in '' $ac_executable_extensions; do 7930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7931 ac_cv_prog_ac_ct_RANLIB="ranlib" 7932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7933 break 2 7934 fi 7935done 7936 done 7937IFS=$as_save_IFS 7938 7939fi 7940fi 7941ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7942if test -n "$ac_ct_RANLIB"; then 7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7944$as_echo "$ac_ct_RANLIB" >&6; } 7945else 7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7947$as_echo "no" >&6; } 7948fi 7949 7950 if test "x$ac_ct_RANLIB" = x; then 7951 RANLIB=":" 7952 else 7953 case $cross_compiling:$ac_tool_warned in 7954yes:) 7955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7957ac_tool_warned=yes ;; 7958esac 7959 RANLIB=$ac_ct_RANLIB 7960 fi 7961else 7962 RANLIB="$ac_cv_prog_RANLIB" 7963fi 7964 7965test -z "$RANLIB" && RANLIB=: 7966 7967 7968 7969 7970 7971 7972# Determine commands to create old-style static archives. 7973old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7974old_postinstall_cmds='chmod 644 $oldlib' 7975old_postuninstall_cmds= 7976 7977if test -n "$RANLIB"; then 7978 case $host_os in 7979 openbsd*) 7980 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7981 ;; 7982 *) 7983 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7984 ;; 7985 esac 7986 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7987fi 7988 7989case $host_os in 7990 darwin*) 7991 lock_old_archive_extraction=yes ;; 7992 *) 7993 lock_old_archive_extraction=no ;; 7994esac 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034# If no C compiler was specified, use CC. 8035LTCC=${LTCC-"$CC"} 8036 8037# If no C compiler flags were specified, use CFLAGS. 8038LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8039 8040# Allow CC to be a program name with arguments. 8041compiler=$CC 8042 8043 8044# Check for command to grab the raw symbol name followed by C symbol from nm. 8045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8046$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8047if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8048 $as_echo_n "(cached) " >&6 8049else 8050 8051# These are sane defaults that work on at least a few old systems. 8052# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8053 8054# Character class describing NM global symbol codes. 8055symcode='[BCDEGRST]' 8056 8057# Regexp to match symbols that can be accessed directly from C. 8058sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8059 8060# Define system-specific variables. 8061case $host_os in 8062aix*) 8063 symcode='[BCDT]' 8064 ;; 8065cygwin* | mingw* | pw32* | cegcc*) 8066 symcode='[ABCDGISTW]' 8067 ;; 8068hpux*) 8069 if test "$host_cpu" = ia64; then 8070 symcode='[ABCDEGRST]' 8071 fi 8072 ;; 8073irix* | nonstopux*) 8074 symcode='[BCDEGRST]' 8075 ;; 8076osf*) 8077 symcode='[BCDEGQRST]' 8078 ;; 8079solaris*) 8080 symcode='[BDRT]' 8081 ;; 8082sco3.2v5*) 8083 symcode='[DT]' 8084 ;; 8085sysv4.2uw2*) 8086 symcode='[DT]' 8087 ;; 8088sysv5* | sco5v6* | unixware* | OpenUNIX*) 8089 symcode='[ABDT]' 8090 ;; 8091sysv4) 8092 symcode='[DFNSTU]' 8093 ;; 8094esac 8095 8096# If we're using GNU nm, then use its standard symbol codes. 8097case `$NM -V 2>&1` in 8098*GNU* | *'with BFD'*) 8099 symcode='[ABCDGIRSTW]' ;; 8100esac 8101 8102# Transform an extracted symbol line into a proper C declaration. 8103# Some systems (esp. on ia64) link data and code symbols differently, 8104# so use this general approach. 8105lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 8106 8107# Transform an extracted symbol line into symbol name and symbol address 8108lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 8109lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 8110 8111# Handle CRLF in mingw tool chain 8112opt_cr= 8113case $build_os in 8114mingw*) 8115 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8116 ;; 8117esac 8118 8119# Try without a prefix underscore, then with it. 8120for ac_symprfx in "" "_"; do 8121 8122 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8123 symxfrm="\\1 $ac_symprfx\\2 \\2" 8124 8125 # Write the raw and C identifiers. 8126 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8127 # Fake it for dumpbin and say T for any non-static function 8128 # and D for any global variable. 8129 # Also find C++ and __fastcall symbols from MSVC++, 8130 # which start with @ or ?. 8131 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8132" {last_section=section; section=\$ 3};"\ 8133" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8134" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8135" \$ 0!~/External *\|/{next};"\ 8136" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8137" {if(hide[section]) next};"\ 8138" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 8139" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 8140" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 8141" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 8142" ' prfx=^$ac_symprfx" 8143 else 8144 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8145 fi 8146 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8147 8148 # Check to see that the pipe works correctly. 8149 pipe_works=no 8150 8151 rm -f conftest* 8152 cat > conftest.$ac_ext <<_LT_EOF 8153#ifdef __cplusplus 8154extern "C" { 8155#endif 8156char nm_test_var; 8157void nm_test_func(void); 8158void nm_test_func(void){} 8159#ifdef __cplusplus 8160} 8161#endif 8162int main(){nm_test_var='a';nm_test_func();return(0);} 8163_LT_EOF 8164 8165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8166 (eval $ac_compile) 2>&5 8167 ac_status=$? 8168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8169 test $ac_status = 0; }; then 8170 # Now try to grab the symbols. 8171 nlist=conftest.nm 8172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8173 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8174 ac_status=$? 8175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8176 test $ac_status = 0; } && test -s "$nlist"; then 8177 # Try sorting and uniquifying the output. 8178 if sort "$nlist" | uniq > "$nlist"T; then 8179 mv -f "$nlist"T "$nlist" 8180 else 8181 rm -f "$nlist"T 8182 fi 8183 8184 # Make sure that we snagged all the symbols we need. 8185 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8186 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8187 cat <<_LT_EOF > conftest.$ac_ext 8188/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8189#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 8190/* DATA imports from DLLs on WIN32 con't be const, because runtime 8191 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8192# define LT_DLSYM_CONST 8193#elif defined(__osf__) 8194/* This system does not cope well with relocations in const data. */ 8195# define LT_DLSYM_CONST 8196#else 8197# define LT_DLSYM_CONST const 8198#endif 8199 8200#ifdef __cplusplus 8201extern "C" { 8202#endif 8203 8204_LT_EOF 8205 # Now generate the symbol file. 8206 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8207 8208 cat <<_LT_EOF >> conftest.$ac_ext 8209 8210/* The mapping between symbol names and symbols. */ 8211LT_DLSYM_CONST struct { 8212 const char *name; 8213 void *address; 8214} 8215lt__PROGRAM__LTX_preloaded_symbols[] = 8216{ 8217 { "@PROGRAM@", (void *) 0 }, 8218_LT_EOF 8219 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8220 cat <<\_LT_EOF >> conftest.$ac_ext 8221 {0, (void *) 0} 8222}; 8223 8224/* This works around a problem in FreeBSD linker */ 8225#ifdef FREEBSD_WORKAROUND 8226static const void *lt_preloaded_setup() { 8227 return lt__PROGRAM__LTX_preloaded_symbols; 8228} 8229#endif 8230 8231#ifdef __cplusplus 8232} 8233#endif 8234_LT_EOF 8235 # Now try linking the two files. 8236 mv conftest.$ac_objext conftstm.$ac_objext 8237 lt_globsym_save_LIBS=$LIBS 8238 lt_globsym_save_CFLAGS=$CFLAGS 8239 LIBS="conftstm.$ac_objext" 8240 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8242 (eval $ac_link) 2>&5 8243 ac_status=$? 8244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8245 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 8246 pipe_works=yes 8247 fi 8248 LIBS=$lt_globsym_save_LIBS 8249 CFLAGS=$lt_globsym_save_CFLAGS 8250 else 8251 echo "cannot find nm_test_func in $nlist" >&5 8252 fi 8253 else 8254 echo "cannot find nm_test_var in $nlist" >&5 8255 fi 8256 else 8257 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8258 fi 8259 else 8260 echo "$progname: failed program was:" >&5 8261 cat conftest.$ac_ext >&5 8262 fi 8263 rm -rf conftest* conftst* 8264 8265 # Do not use the global_symbol_pipe unless it works. 8266 if test "$pipe_works" = yes; then 8267 break 8268 else 8269 lt_cv_sys_global_symbol_pipe= 8270 fi 8271done 8272 8273fi 8274 8275if test -z "$lt_cv_sys_global_symbol_pipe"; then 8276 lt_cv_sys_global_symbol_to_cdecl= 8277fi 8278if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8280$as_echo "failed" >&6; } 8281else 8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8283$as_echo "ok" >&6; } 8284fi 8285 8286# Response file support. 8287if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8288 nm_file_list_spec='@' 8289elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8290 nm_file_list_spec='@' 8291fi 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8320$as_echo_n "checking for sysroot... " >&6; } 8321 8322# Check whether --with-sysroot was given. 8323if test "${with_sysroot+set}" = set; then : 8324 withval=$with_sysroot; 8325else 8326 with_sysroot=no 8327fi 8328 8329 8330lt_sysroot= 8331case ${with_sysroot} in #( 8332 yes) 8333 if test "$GCC" = yes; then 8334 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8335 fi 8336 ;; #( 8337 /*) 8338 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8339 ;; #( 8340 no|'') 8341 ;; #( 8342 *) 8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 8344$as_echo "${with_sysroot}" >&6; } 8345 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8346 ;; 8347esac 8348 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8350$as_echo "${lt_sysroot:-no}" >&6; } 8351 8352 8353 8354 8355 8356# Check whether --enable-libtool-lock was given. 8357if test "${enable_libtool_lock+set}" = set; then : 8358 enableval=$enable_libtool_lock; 8359fi 8360 8361test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8362 8363# Some flags need to be propagated to the compiler or linker for good 8364# libtool support. 8365case $host in 8366ia64-*-hpux*) 8367 # Find out which ABI we are using. 8368 echo 'int i;' > conftest.$ac_ext 8369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8370 (eval $ac_compile) 2>&5 8371 ac_status=$? 8372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8373 test $ac_status = 0; }; then 8374 case `/usr/bin/file conftest.$ac_objext` in 8375 *ELF-32*) 8376 HPUX_IA64_MODE="32" 8377 ;; 8378 *ELF-64*) 8379 HPUX_IA64_MODE="64" 8380 ;; 8381 esac 8382 fi 8383 rm -rf conftest* 8384 ;; 8385*-*-irix6*) 8386 # Find out which ABI we are using. 8387 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8389 (eval $ac_compile) 2>&5 8390 ac_status=$? 8391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8392 test $ac_status = 0; }; then 8393 if test "$lt_cv_prog_gnu_ld" = yes; then 8394 case `/usr/bin/file conftest.$ac_objext` in 8395 *32-bit*) 8396 LD="${LD-ld} -melf32bsmip" 8397 ;; 8398 *N32*) 8399 LD="${LD-ld} -melf32bmipn32" 8400 ;; 8401 *64-bit*) 8402 LD="${LD-ld} -melf64bmip" 8403 ;; 8404 esac 8405 else 8406 case `/usr/bin/file conftest.$ac_objext` in 8407 *32-bit*) 8408 LD="${LD-ld} -32" 8409 ;; 8410 *N32*) 8411 LD="${LD-ld} -n32" 8412 ;; 8413 *64-bit*) 8414 LD="${LD-ld} -64" 8415 ;; 8416 esac 8417 fi 8418 fi 8419 rm -rf conftest* 8420 ;; 8421 8422x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 8423s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8424 # Find out which ABI we are using. 8425 echo 'int i;' > conftest.$ac_ext 8426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8427 (eval $ac_compile) 2>&5 8428 ac_status=$? 8429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8430 test $ac_status = 0; }; then 8431 case `/usr/bin/file conftest.o` in 8432 *32-bit*) 8433 case $host in 8434 x86_64-*kfreebsd*-gnu) 8435 LD="${LD-ld} -m elf_i386_fbsd" 8436 ;; 8437 x86_64-*linux*) 8438 LD="${LD-ld} -m elf_i386" 8439 ;; 8440 ppc64-*linux*|powerpc64-*linux*) 8441 LD="${LD-ld} -m elf32ppclinux" 8442 ;; 8443 s390x-*linux*) 8444 LD="${LD-ld} -m elf_s390" 8445 ;; 8446 sparc64-*linux*) 8447 LD="${LD-ld} -m elf32_sparc" 8448 ;; 8449 esac 8450 ;; 8451 *64-bit*) 8452 case $host in 8453 x86_64-*kfreebsd*-gnu) 8454 LD="${LD-ld} -m elf_x86_64_fbsd" 8455 ;; 8456 x86_64-*linux*) 8457 LD="${LD-ld} -m elf_x86_64" 8458 ;; 8459 ppc*-*linux*|powerpc*-*linux*) 8460 LD="${LD-ld} -m elf64ppc" 8461 ;; 8462 s390*-*linux*|s390*-*tpf*) 8463 LD="${LD-ld} -m elf64_s390" 8464 ;; 8465 sparc*-*linux*) 8466 LD="${LD-ld} -m elf64_sparc" 8467 ;; 8468 esac 8469 ;; 8470 esac 8471 fi 8472 rm -rf conftest* 8473 ;; 8474 8475*-*-sco3.2v5*) 8476 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8477 SAVE_CFLAGS="$CFLAGS" 8478 CFLAGS="$CFLAGS -belf" 8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8480$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8481if ${lt_cv_cc_needs_belf+:} false; then : 8482 $as_echo_n "(cached) " >&6 8483else 8484 ac_ext=c 8485ac_cpp='$CPP $CPPFLAGS' 8486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8488ac_compiler_gnu=$ac_cv_c_compiler_gnu 8489 8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8491/* end confdefs.h. */ 8492 8493int 8494main () 8495{ 8496 8497 ; 8498 return 0; 8499} 8500_ACEOF 8501if ac_fn_c_try_link "$LINENO"; then : 8502 lt_cv_cc_needs_belf=yes 8503else 8504 lt_cv_cc_needs_belf=no 8505fi 8506rm -f core conftest.err conftest.$ac_objext \ 8507 conftest$ac_exeext conftest.$ac_ext 8508 ac_ext=c 8509ac_cpp='$CPP $CPPFLAGS' 8510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8512ac_compiler_gnu=$ac_cv_c_compiler_gnu 8513 8514fi 8515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8516$as_echo "$lt_cv_cc_needs_belf" >&6; } 8517 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 8518 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8519 CFLAGS="$SAVE_CFLAGS" 8520 fi 8521 ;; 8522*-*solaris*) 8523 # Find out which ABI we are using. 8524 echo 'int i;' > conftest.$ac_ext 8525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8526 (eval $ac_compile) 2>&5 8527 ac_status=$? 8528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8529 test $ac_status = 0; }; then 8530 case `/usr/bin/file conftest.o` in 8531 *64-bit*) 8532 case $lt_cv_prog_gnu_ld in 8533 yes*) 8534 case $host in 8535 i?86-*-solaris*) 8536 LD="${LD-ld} -m elf_x86_64" 8537 ;; 8538 sparc*-*-solaris*) 8539 LD="${LD-ld} -m elf64_sparc" 8540 ;; 8541 esac 8542 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8543 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8544 LD="${LD-ld}_sol2" 8545 fi 8546 ;; 8547 *) 8548 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8549 LD="${LD-ld} -64" 8550 fi 8551 ;; 8552 esac 8553 ;; 8554 esac 8555 fi 8556 rm -rf conftest* 8557 ;; 8558esac 8559 8560need_locks="$enable_libtool_lock" 8561 8562if test -n "$ac_tool_prefix"; then 8563 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8564set dummy ${ac_tool_prefix}mt; ac_word=$2 8565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8566$as_echo_n "checking for $ac_word... " >&6; } 8567if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8568 $as_echo_n "(cached) " >&6 8569else 8570 if test -n "$MANIFEST_TOOL"; then 8571 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8572else 8573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8574for as_dir in $PATH 8575do 8576 IFS=$as_save_IFS 8577 test -z "$as_dir" && as_dir=. 8578 for ac_exec_ext in '' $ac_executable_extensions; do 8579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8580 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8582 break 2 8583 fi 8584done 8585 done 8586IFS=$as_save_IFS 8587 8588fi 8589fi 8590MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8591if test -n "$MANIFEST_TOOL"; then 8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8593$as_echo "$MANIFEST_TOOL" >&6; } 8594else 8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8596$as_echo "no" >&6; } 8597fi 8598 8599 8600fi 8601if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8602 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8603 # Extract the first word of "mt", so it can be a program name with args. 8604set dummy mt; ac_word=$2 8605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8606$as_echo_n "checking for $ac_word... " >&6; } 8607if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8608 $as_echo_n "(cached) " >&6 8609else 8610 if test -n "$ac_ct_MANIFEST_TOOL"; then 8611 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8612else 8613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8614for as_dir in $PATH 8615do 8616 IFS=$as_save_IFS 8617 test -z "$as_dir" && as_dir=. 8618 for ac_exec_ext in '' $ac_executable_extensions; do 8619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8620 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8622 break 2 8623 fi 8624done 8625 done 8626IFS=$as_save_IFS 8627 8628fi 8629fi 8630ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8631if test -n "$ac_ct_MANIFEST_TOOL"; then 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8633$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8634else 8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8636$as_echo "no" >&6; } 8637fi 8638 8639 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8640 MANIFEST_TOOL=":" 8641 else 8642 case $cross_compiling:$ac_tool_warned in 8643yes:) 8644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8646ac_tool_warned=yes ;; 8647esac 8648 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8649 fi 8650else 8651 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8652fi 8653 8654test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8656$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8657if ${lt_cv_path_mainfest_tool+:} false; then : 8658 $as_echo_n "(cached) " >&6 8659else 8660 lt_cv_path_mainfest_tool=no 8661 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8662 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8663 cat conftest.err >&5 8664 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8665 lt_cv_path_mainfest_tool=yes 8666 fi 8667 rm -f conftest* 8668fi 8669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8670$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8671if test "x$lt_cv_path_mainfest_tool" != xyes; then 8672 MANIFEST_TOOL=: 8673fi 8674 8675 8676 8677 8678 8679 8680 case $host_os in 8681 rhapsody* | darwin*) 8682 if test -n "$ac_tool_prefix"; then 8683 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8684set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8686$as_echo_n "checking for $ac_word... " >&6; } 8687if ${ac_cv_prog_DSYMUTIL+:} false; then : 8688 $as_echo_n "(cached) " >&6 8689else 8690 if test -n "$DSYMUTIL"; then 8691 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8692else 8693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8694for as_dir in $PATH 8695do 8696 IFS=$as_save_IFS 8697 test -z "$as_dir" && as_dir=. 8698 for ac_exec_ext in '' $ac_executable_extensions; do 8699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8700 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8702 break 2 8703 fi 8704done 8705 done 8706IFS=$as_save_IFS 8707 8708fi 8709fi 8710DSYMUTIL=$ac_cv_prog_DSYMUTIL 8711if test -n "$DSYMUTIL"; then 8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8713$as_echo "$DSYMUTIL" >&6; } 8714else 8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8716$as_echo "no" >&6; } 8717fi 8718 8719 8720fi 8721if test -z "$ac_cv_prog_DSYMUTIL"; then 8722 ac_ct_DSYMUTIL=$DSYMUTIL 8723 # Extract the first word of "dsymutil", so it can be a program name with args. 8724set dummy dsymutil; ac_word=$2 8725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8726$as_echo_n "checking for $ac_word... " >&6; } 8727if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8728 $as_echo_n "(cached) " >&6 8729else 8730 if test -n "$ac_ct_DSYMUTIL"; then 8731 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8732else 8733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8734for as_dir in $PATH 8735do 8736 IFS=$as_save_IFS 8737 test -z "$as_dir" && as_dir=. 8738 for ac_exec_ext in '' $ac_executable_extensions; do 8739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8740 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8742 break 2 8743 fi 8744done 8745 done 8746IFS=$as_save_IFS 8747 8748fi 8749fi 8750ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8751if test -n "$ac_ct_DSYMUTIL"; then 8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8753$as_echo "$ac_ct_DSYMUTIL" >&6; } 8754else 8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8756$as_echo "no" >&6; } 8757fi 8758 8759 if test "x$ac_ct_DSYMUTIL" = x; then 8760 DSYMUTIL=":" 8761 else 8762 case $cross_compiling:$ac_tool_warned in 8763yes:) 8764{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8766ac_tool_warned=yes ;; 8767esac 8768 DSYMUTIL=$ac_ct_DSYMUTIL 8769 fi 8770else 8771 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8772fi 8773 8774 if test -n "$ac_tool_prefix"; then 8775 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8776set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8778$as_echo_n "checking for $ac_word... " >&6; } 8779if ${ac_cv_prog_NMEDIT+:} false; then : 8780 $as_echo_n "(cached) " >&6 8781else 8782 if test -n "$NMEDIT"; then 8783 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8784else 8785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8786for as_dir in $PATH 8787do 8788 IFS=$as_save_IFS 8789 test -z "$as_dir" && as_dir=. 8790 for ac_exec_ext in '' $ac_executable_extensions; do 8791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8792 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8794 break 2 8795 fi 8796done 8797 done 8798IFS=$as_save_IFS 8799 8800fi 8801fi 8802NMEDIT=$ac_cv_prog_NMEDIT 8803if test -n "$NMEDIT"; then 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8805$as_echo "$NMEDIT" >&6; } 8806else 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8808$as_echo "no" >&6; } 8809fi 8810 8811 8812fi 8813if test -z "$ac_cv_prog_NMEDIT"; then 8814 ac_ct_NMEDIT=$NMEDIT 8815 # Extract the first word of "nmedit", so it can be a program name with args. 8816set dummy nmedit; ac_word=$2 8817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8818$as_echo_n "checking for $ac_word... " >&6; } 8819if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8820 $as_echo_n "(cached) " >&6 8821else 8822 if test -n "$ac_ct_NMEDIT"; then 8823 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8824else 8825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8826for as_dir in $PATH 8827do 8828 IFS=$as_save_IFS 8829 test -z "$as_dir" && as_dir=. 8830 for ac_exec_ext in '' $ac_executable_extensions; do 8831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8832 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8834 break 2 8835 fi 8836done 8837 done 8838IFS=$as_save_IFS 8839 8840fi 8841fi 8842ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8843if test -n "$ac_ct_NMEDIT"; then 8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8845$as_echo "$ac_ct_NMEDIT" >&6; } 8846else 8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8848$as_echo "no" >&6; } 8849fi 8850 8851 if test "x$ac_ct_NMEDIT" = x; then 8852 NMEDIT=":" 8853 else 8854 case $cross_compiling:$ac_tool_warned in 8855yes:) 8856{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8857$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8858ac_tool_warned=yes ;; 8859esac 8860 NMEDIT=$ac_ct_NMEDIT 8861 fi 8862else 8863 NMEDIT="$ac_cv_prog_NMEDIT" 8864fi 8865 8866 if test -n "$ac_tool_prefix"; then 8867 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8868set dummy ${ac_tool_prefix}lipo; ac_word=$2 8869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8870$as_echo_n "checking for $ac_word... " >&6; } 8871if ${ac_cv_prog_LIPO+:} false; then : 8872 $as_echo_n "(cached) " >&6 8873else 8874 if test -n "$LIPO"; then 8875 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8876else 8877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8878for as_dir in $PATH 8879do 8880 IFS=$as_save_IFS 8881 test -z "$as_dir" && as_dir=. 8882 for ac_exec_ext in '' $ac_executable_extensions; do 8883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8884 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8886 break 2 8887 fi 8888done 8889 done 8890IFS=$as_save_IFS 8891 8892fi 8893fi 8894LIPO=$ac_cv_prog_LIPO 8895if test -n "$LIPO"; then 8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8897$as_echo "$LIPO" >&6; } 8898else 8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8900$as_echo "no" >&6; } 8901fi 8902 8903 8904fi 8905if test -z "$ac_cv_prog_LIPO"; then 8906 ac_ct_LIPO=$LIPO 8907 # Extract the first word of "lipo", so it can be a program name with args. 8908set dummy lipo; ac_word=$2 8909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8910$as_echo_n "checking for $ac_word... " >&6; } 8911if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8912 $as_echo_n "(cached) " >&6 8913else 8914 if test -n "$ac_ct_LIPO"; then 8915 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8916else 8917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8918for as_dir in $PATH 8919do 8920 IFS=$as_save_IFS 8921 test -z "$as_dir" && as_dir=. 8922 for ac_exec_ext in '' $ac_executable_extensions; do 8923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8924 ac_cv_prog_ac_ct_LIPO="lipo" 8925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8926 break 2 8927 fi 8928done 8929 done 8930IFS=$as_save_IFS 8931 8932fi 8933fi 8934ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8935if test -n "$ac_ct_LIPO"; then 8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8937$as_echo "$ac_ct_LIPO" >&6; } 8938else 8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8940$as_echo "no" >&6; } 8941fi 8942 8943 if test "x$ac_ct_LIPO" = x; then 8944 LIPO=":" 8945 else 8946 case $cross_compiling:$ac_tool_warned in 8947yes:) 8948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8950ac_tool_warned=yes ;; 8951esac 8952 LIPO=$ac_ct_LIPO 8953 fi 8954else 8955 LIPO="$ac_cv_prog_LIPO" 8956fi 8957 8958 if test -n "$ac_tool_prefix"; then 8959 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8960set dummy ${ac_tool_prefix}otool; ac_word=$2 8961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8962$as_echo_n "checking for $ac_word... " >&6; } 8963if ${ac_cv_prog_OTOOL+:} false; then : 8964 $as_echo_n "(cached) " >&6 8965else 8966 if test -n "$OTOOL"; then 8967 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8968else 8969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8970for as_dir in $PATH 8971do 8972 IFS=$as_save_IFS 8973 test -z "$as_dir" && as_dir=. 8974 for ac_exec_ext in '' $ac_executable_extensions; do 8975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8976 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8978 break 2 8979 fi 8980done 8981 done 8982IFS=$as_save_IFS 8983 8984fi 8985fi 8986OTOOL=$ac_cv_prog_OTOOL 8987if test -n "$OTOOL"; then 8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8989$as_echo "$OTOOL" >&6; } 8990else 8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8992$as_echo "no" >&6; } 8993fi 8994 8995 8996fi 8997if test -z "$ac_cv_prog_OTOOL"; then 8998 ac_ct_OTOOL=$OTOOL 8999 # Extract the first word of "otool", so it can be a program name with args. 9000set dummy otool; ac_word=$2 9001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9002$as_echo_n "checking for $ac_word... " >&6; } 9003if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9004 $as_echo_n "(cached) " >&6 9005else 9006 if test -n "$ac_ct_OTOOL"; then 9007 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9008else 9009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9010for as_dir in $PATH 9011do 9012 IFS=$as_save_IFS 9013 test -z "$as_dir" && as_dir=. 9014 for ac_exec_ext in '' $ac_executable_extensions; do 9015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9016 ac_cv_prog_ac_ct_OTOOL="otool" 9017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9018 break 2 9019 fi 9020done 9021 done 9022IFS=$as_save_IFS 9023 9024fi 9025fi 9026ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9027if test -n "$ac_ct_OTOOL"; then 9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9029$as_echo "$ac_ct_OTOOL" >&6; } 9030else 9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9032$as_echo "no" >&6; } 9033fi 9034 9035 if test "x$ac_ct_OTOOL" = x; then 9036 OTOOL=":" 9037 else 9038 case $cross_compiling:$ac_tool_warned in 9039yes:) 9040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9042ac_tool_warned=yes ;; 9043esac 9044 OTOOL=$ac_ct_OTOOL 9045 fi 9046else 9047 OTOOL="$ac_cv_prog_OTOOL" 9048fi 9049 9050 if test -n "$ac_tool_prefix"; then 9051 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9052set dummy ${ac_tool_prefix}otool64; ac_word=$2 9053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9054$as_echo_n "checking for $ac_word... " >&6; } 9055if ${ac_cv_prog_OTOOL64+:} false; then : 9056 $as_echo_n "(cached) " >&6 9057else 9058 if test -n "$OTOOL64"; then 9059 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9060else 9061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9062for as_dir in $PATH 9063do 9064 IFS=$as_save_IFS 9065 test -z "$as_dir" && as_dir=. 9066 for ac_exec_ext in '' $ac_executable_extensions; do 9067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9068 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9070 break 2 9071 fi 9072done 9073 done 9074IFS=$as_save_IFS 9075 9076fi 9077fi 9078OTOOL64=$ac_cv_prog_OTOOL64 9079if test -n "$OTOOL64"; then 9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9081$as_echo "$OTOOL64" >&6; } 9082else 9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9084$as_echo "no" >&6; } 9085fi 9086 9087 9088fi 9089if test -z "$ac_cv_prog_OTOOL64"; then 9090 ac_ct_OTOOL64=$OTOOL64 9091 # Extract the first word of "otool64", so it can be a program name with args. 9092set dummy otool64; ac_word=$2 9093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9094$as_echo_n "checking for $ac_word... " >&6; } 9095if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9096 $as_echo_n "(cached) " >&6 9097else 9098 if test -n "$ac_ct_OTOOL64"; then 9099 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9100else 9101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9102for as_dir in $PATH 9103do 9104 IFS=$as_save_IFS 9105 test -z "$as_dir" && as_dir=. 9106 for ac_exec_ext in '' $ac_executable_extensions; do 9107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9108 ac_cv_prog_ac_ct_OTOOL64="otool64" 9109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9110 break 2 9111 fi 9112done 9113 done 9114IFS=$as_save_IFS 9115 9116fi 9117fi 9118ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9119if test -n "$ac_ct_OTOOL64"; then 9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9121$as_echo "$ac_ct_OTOOL64" >&6; } 9122else 9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9124$as_echo "no" >&6; } 9125fi 9126 9127 if test "x$ac_ct_OTOOL64" = x; then 9128 OTOOL64=":" 9129 else 9130 case $cross_compiling:$ac_tool_warned in 9131yes:) 9132{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9133$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9134ac_tool_warned=yes ;; 9135esac 9136 OTOOL64=$ac_ct_OTOOL64 9137 fi 9138else 9139 OTOOL64="$ac_cv_prog_OTOOL64" 9140fi 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9169$as_echo_n "checking for -single_module linker flag... " >&6; } 9170if ${lt_cv_apple_cc_single_mod+:} false; then : 9171 $as_echo_n "(cached) " >&6 9172else 9173 lt_cv_apple_cc_single_mod=no 9174 if test -z "${LT_MULTI_MODULE}"; then 9175 # By default we will add the -single_module flag. You can override 9176 # by either setting the environment variable LT_MULTI_MODULE 9177 # non-empty at configure time, or by adding -multi_module to the 9178 # link flags. 9179 rm -rf libconftest.dylib* 9180 echo "int foo(void){return 1;}" > conftest.c 9181 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9182-dynamiclib -Wl,-single_module conftest.c" >&5 9183 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9184 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9185 _lt_result=$? 9186 # If there is a non-empty error log, and "single_module" 9187 # appears in it, assume the flag caused a linker warning 9188 if test -s conftest.err && $GREP single_module conftest.err; then 9189 cat conftest.err >&5 9190 # Otherwise, if the output was created with a 0 exit code from 9191 # the compiler, it worked. 9192 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 9193 lt_cv_apple_cc_single_mod=yes 9194 else 9195 cat conftest.err >&5 9196 fi 9197 rm -rf libconftest.dylib* 9198 rm -f conftest.* 9199 fi 9200fi 9201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9202$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9203 9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9205$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9206if ${lt_cv_ld_exported_symbols_list+:} false; then : 9207 $as_echo_n "(cached) " >&6 9208else 9209 lt_cv_ld_exported_symbols_list=no 9210 save_LDFLAGS=$LDFLAGS 9211 echo "_main" > conftest.sym 9212 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9214/* end confdefs.h. */ 9215 9216int 9217main () 9218{ 9219 9220 ; 9221 return 0; 9222} 9223_ACEOF 9224if ac_fn_c_try_link "$LINENO"; then : 9225 lt_cv_ld_exported_symbols_list=yes 9226else 9227 lt_cv_ld_exported_symbols_list=no 9228fi 9229rm -f core conftest.err conftest.$ac_objext \ 9230 conftest$ac_exeext conftest.$ac_ext 9231 LDFLAGS="$save_LDFLAGS" 9232 9233fi 9234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9235$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9236 9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9238$as_echo_n "checking for -force_load linker flag... " >&6; } 9239if ${lt_cv_ld_force_load+:} false; then : 9240 $as_echo_n "(cached) " >&6 9241else 9242 lt_cv_ld_force_load=no 9243 cat > conftest.c << _LT_EOF 9244int forced_loaded() { return 2;} 9245_LT_EOF 9246 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9247 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9248 echo "$AR cru libconftest.a conftest.o" >&5 9249 $AR cru libconftest.a conftest.o 2>&5 9250 echo "$RANLIB libconftest.a" >&5 9251 $RANLIB libconftest.a 2>&5 9252 cat > conftest.c << _LT_EOF 9253int main() { return 0;} 9254_LT_EOF 9255 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9256 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9257 _lt_result=$? 9258 if test -s conftest.err && $GREP force_load conftest.err; then 9259 cat conftest.err >&5 9260 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 9261 lt_cv_ld_force_load=yes 9262 else 9263 cat conftest.err >&5 9264 fi 9265 rm -f conftest.err libconftest.a conftest conftest.c 9266 rm -rf conftest.dSYM 9267 9268fi 9269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9270$as_echo "$lt_cv_ld_force_load" >&6; } 9271 case $host_os in 9272 rhapsody* | darwin1.[012]) 9273 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 9274 darwin1.*) 9275 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9276 darwin*) # darwin 5.x on 9277 # if running on 10.5 or later, the deployment target defaults 9278 # to the OS version, if on x86, and 10.4, the deployment 9279 # target defaults to 10.4. Don't you love it? 9280 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9281 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9282 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9283 10.[012]*) 9284 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9285 10.*) 9286 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9287 esac 9288 ;; 9289 esac 9290 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 9291 _lt_dar_single_mod='$single_module' 9292 fi 9293 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 9294 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 9295 else 9296 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 9297 fi 9298 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 9299 _lt_dsymutil='~$DSYMUTIL $lib || :' 9300 else 9301 _lt_dsymutil= 9302 fi 9303 ;; 9304 esac 9305 9306for ac_header in dlfcn.h 9307do : 9308 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9309" 9310if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9311 cat >>confdefs.h <<_ACEOF 9312#define HAVE_DLFCN_H 1 9313_ACEOF 9314 9315fi 9316 9317done 9318 9319 9320 9321 9322func_stripname_cnf () 9323{ 9324 case ${2} in 9325 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 9326 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 9327 esac 9328} # func_stripname_cnf 9329 9330 9331 9332 9333 9334# Set options 9335 9336 9337 9338 enable_dlopen=no 9339 9340 9341 9342 # Check whether --enable-shared was given. 9343if test "${enable_shared+set}" = set; then : 9344 enableval=$enable_shared; p=${PACKAGE-default} 9345 case $enableval in 9346 yes) enable_shared=yes ;; 9347 no) enable_shared=no ;; 9348 *) 9349 enable_shared=no 9350 # Look at the argument we got. We use all the common list separators. 9351 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9352 for pkg in $enableval; do 9353 IFS="$lt_save_ifs" 9354 if test "X$pkg" = "X$p"; then 9355 enable_shared=yes 9356 fi 9357 done 9358 IFS="$lt_save_ifs" 9359 ;; 9360 esac 9361else 9362 enable_shared=yes 9363fi 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 # Check whether --enable-static was given. 9374if test "${enable_static+set}" = set; then : 9375 enableval=$enable_static; p=${PACKAGE-default} 9376 case $enableval in 9377 yes) enable_static=yes ;; 9378 no) enable_static=no ;; 9379 *) 9380 enable_static=no 9381 # Look at the argument we got. We use all the common list separators. 9382 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9383 for pkg in $enableval; do 9384 IFS="$lt_save_ifs" 9385 if test "X$pkg" = "X$p"; then 9386 enable_static=yes 9387 fi 9388 done 9389 IFS="$lt_save_ifs" 9390 ;; 9391 esac 9392else 9393 enable_static=yes 9394fi 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405# Check whether --with-pic was given. 9406if test "${with_pic+set}" = set; then : 9407 withval=$with_pic; lt_p=${PACKAGE-default} 9408 case $withval in 9409 yes|no) pic_mode=$withval ;; 9410 *) 9411 pic_mode=default 9412 # Look at the argument we got. We use all the common list separators. 9413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9414 for lt_pkg in $withval; do 9415 IFS="$lt_save_ifs" 9416 if test "X$lt_pkg" = "X$lt_p"; then 9417 pic_mode=yes 9418 fi 9419 done 9420 IFS="$lt_save_ifs" 9421 ;; 9422 esac 9423else 9424 pic_mode=default 9425fi 9426 9427 9428test -z "$pic_mode" && pic_mode=default 9429 9430 9431 9432 9433 9434 9435 9436 # Check whether --enable-fast-install was given. 9437if test "${enable_fast_install+set}" = set; then : 9438 enableval=$enable_fast_install; p=${PACKAGE-default} 9439 case $enableval in 9440 yes) enable_fast_install=yes ;; 9441 no) enable_fast_install=no ;; 9442 *) 9443 enable_fast_install=no 9444 # Look at the argument we got. We use all the common list separators. 9445 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9446 for pkg in $enableval; do 9447 IFS="$lt_save_ifs" 9448 if test "X$pkg" = "X$p"; then 9449 enable_fast_install=yes 9450 fi 9451 done 9452 IFS="$lt_save_ifs" 9453 ;; 9454 esac 9455else 9456 enable_fast_install=yes 9457fi 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469# This can be used to rebuild libtool when needed 9470LIBTOOL_DEPS="$ltmain" 9471 9472# Always use our own libtool. 9473LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504test -z "$LN_S" && LN_S="ln -s" 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519if test -n "${ZSH_VERSION+set}" ; then 9520 setopt NO_GLOB_SUBST 9521fi 9522 9523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9524$as_echo_n "checking for objdir... " >&6; } 9525if ${lt_cv_objdir+:} false; then : 9526 $as_echo_n "(cached) " >&6 9527else 9528 rm -f .libs 2>/dev/null 9529mkdir .libs 2>/dev/null 9530if test -d .libs; then 9531 lt_cv_objdir=.libs 9532else 9533 # MS-DOS does not allow filenames that begin with a dot. 9534 lt_cv_objdir=_libs 9535fi 9536rmdir .libs 2>/dev/null 9537fi 9538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9539$as_echo "$lt_cv_objdir" >&6; } 9540objdir=$lt_cv_objdir 9541 9542 9543 9544 9545 9546cat >>confdefs.h <<_ACEOF 9547#define LT_OBJDIR "$lt_cv_objdir/" 9548_ACEOF 9549 9550 9551 9552 9553case $host_os in 9554aix3*) 9555 # AIX sometimes has problems with the GCC collect2 program. For some 9556 # reason, if we set the COLLECT_NAMES environment variable, the problems 9557 # vanish in a puff of smoke. 9558 if test "X${COLLECT_NAMES+set}" != Xset; then 9559 COLLECT_NAMES= 9560 export COLLECT_NAMES 9561 fi 9562 ;; 9563esac 9564 9565# Global variables: 9566ofile=libtool 9567can_build_shared=yes 9568 9569# All known linkers require a `.a' archive for static linking (except MSVC, 9570# which needs '.lib'). 9571libext=a 9572 9573with_gnu_ld="$lt_cv_prog_gnu_ld" 9574 9575old_CC="$CC" 9576old_CFLAGS="$CFLAGS" 9577 9578# Set sane defaults for various variables 9579test -z "$CC" && CC=cc 9580test -z "$LTCC" && LTCC=$CC 9581test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9582test -z "$LD" && LD=ld 9583test -z "$ac_objext" && ac_objext=o 9584 9585for cc_temp in $compiler""; do 9586 case $cc_temp in 9587 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9588 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9589 \-*) ;; 9590 *) break;; 9591 esac 9592done 9593cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9594 9595 9596# Only perform the check for file, if the check method requires it 9597test -z "$MAGIC_CMD" && MAGIC_CMD=file 9598case $deplibs_check_method in 9599file_magic*) 9600 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9602$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9603if ${lt_cv_path_MAGIC_CMD+:} false; then : 9604 $as_echo_n "(cached) " >&6 9605else 9606 case $MAGIC_CMD in 9607[\\/*] | ?:[\\/]*) 9608 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9609 ;; 9610*) 9611 lt_save_MAGIC_CMD="$MAGIC_CMD" 9612 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9613 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9614 for ac_dir in $ac_dummy; do 9615 IFS="$lt_save_ifs" 9616 test -z "$ac_dir" && ac_dir=. 9617 if test -f $ac_dir/${ac_tool_prefix}file; then 9618 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 9619 if test -n "$file_magic_test_file"; then 9620 case $deplibs_check_method in 9621 "file_magic "*) 9622 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9623 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9624 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9625 $EGREP "$file_magic_regex" > /dev/null; then 9626 : 9627 else 9628 cat <<_LT_EOF 1>&2 9629 9630*** Warning: the command libtool uses to detect shared libraries, 9631*** $file_magic_cmd, produces output that libtool cannot recognize. 9632*** The result is that libtool may fail to recognize shared libraries 9633*** as such. This will affect the creation of libtool libraries that 9634*** depend on shared libraries, but programs linked with such libtool 9635*** libraries will work regardless of this problem. Nevertheless, you 9636*** may want to report the problem to your system manager and/or to 9637*** bug-libtool@gnu.org 9638 9639_LT_EOF 9640 fi ;; 9641 esac 9642 fi 9643 break 9644 fi 9645 done 9646 IFS="$lt_save_ifs" 9647 MAGIC_CMD="$lt_save_MAGIC_CMD" 9648 ;; 9649esac 9650fi 9651 9652MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9653if test -n "$MAGIC_CMD"; then 9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9655$as_echo "$MAGIC_CMD" >&6; } 9656else 9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9658$as_echo "no" >&6; } 9659fi 9660 9661 9662 9663 9664 9665if test -z "$lt_cv_path_MAGIC_CMD"; then 9666 if test -n "$ac_tool_prefix"; then 9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9668$as_echo_n "checking for file... " >&6; } 9669if ${lt_cv_path_MAGIC_CMD+:} false; then : 9670 $as_echo_n "(cached) " >&6 9671else 9672 case $MAGIC_CMD in 9673[\\/*] | ?:[\\/]*) 9674 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9675 ;; 9676*) 9677 lt_save_MAGIC_CMD="$MAGIC_CMD" 9678 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9679 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9680 for ac_dir in $ac_dummy; do 9681 IFS="$lt_save_ifs" 9682 test -z "$ac_dir" && ac_dir=. 9683 if test -f $ac_dir/file; then 9684 lt_cv_path_MAGIC_CMD="$ac_dir/file" 9685 if test -n "$file_magic_test_file"; then 9686 case $deplibs_check_method in 9687 "file_magic "*) 9688 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9689 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9690 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9691 $EGREP "$file_magic_regex" > /dev/null; then 9692 : 9693 else 9694 cat <<_LT_EOF 1>&2 9695 9696*** Warning: the command libtool uses to detect shared libraries, 9697*** $file_magic_cmd, produces output that libtool cannot recognize. 9698*** The result is that libtool may fail to recognize shared libraries 9699*** as such. This will affect the creation of libtool libraries that 9700*** depend on shared libraries, but programs linked with such libtool 9701*** libraries will work regardless of this problem. Nevertheless, you 9702*** may want to report the problem to your system manager and/or to 9703*** bug-libtool@gnu.org 9704 9705_LT_EOF 9706 fi ;; 9707 esac 9708 fi 9709 break 9710 fi 9711 done 9712 IFS="$lt_save_ifs" 9713 MAGIC_CMD="$lt_save_MAGIC_CMD" 9714 ;; 9715esac 9716fi 9717 9718MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9719if test -n "$MAGIC_CMD"; then 9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9721$as_echo "$MAGIC_CMD" >&6; } 9722else 9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9724$as_echo "no" >&6; } 9725fi 9726 9727 9728 else 9729 MAGIC_CMD=: 9730 fi 9731fi 9732 9733 fi 9734 ;; 9735esac 9736 9737# Use C for the default configuration in the libtool script 9738 9739lt_save_CC="$CC" 9740ac_ext=c 9741ac_cpp='$CPP $CPPFLAGS' 9742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9744ac_compiler_gnu=$ac_cv_c_compiler_gnu 9745 9746 9747# Source file extension for C test sources. 9748ac_ext=c 9749 9750# Object file extension for compiled C test sources. 9751objext=o 9752objext=$objext 9753 9754# Code to be used in simple compile tests 9755lt_simple_compile_test_code="int some_variable = 0;" 9756 9757# Code to be used in simple link tests 9758lt_simple_link_test_code='int main(){return(0);}' 9759 9760 9761 9762 9763 9764 9765 9766# If no C compiler was specified, use CC. 9767LTCC=${LTCC-"$CC"} 9768 9769# If no C compiler flags were specified, use CFLAGS. 9770LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9771 9772# Allow CC to be a program name with arguments. 9773compiler=$CC 9774 9775# Save the default compiler, since it gets overwritten when the other 9776# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9777compiler_DEFAULT=$CC 9778 9779# save warnings/boilerplate of simple test code 9780ac_outfile=conftest.$ac_objext 9781echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9782eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9783_lt_compiler_boilerplate=`cat conftest.err` 9784$RM conftest* 9785 9786ac_outfile=conftest.$ac_objext 9787echo "$lt_simple_link_test_code" >conftest.$ac_ext 9788eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9789_lt_linker_boilerplate=`cat conftest.err` 9790$RM -r conftest* 9791 9792 9793## CAVEAT EMPTOR: 9794## There is no encapsulation within the following macros, do not change 9795## the running order or otherwise move them around unless you know exactly 9796## what you are doing... 9797if test -n "$compiler"; then 9798 9799lt_prog_compiler_no_builtin_flag= 9800 9801if test "$GCC" = yes; then 9802 case $cc_basename in 9803 nvcc*) 9804 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9805 *) 9806 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9807 esac 9808 9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9810$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9811if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9812 $as_echo_n "(cached) " >&6 9813else 9814 lt_cv_prog_compiler_rtti_exceptions=no 9815 ac_outfile=conftest.$ac_objext 9816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9817 lt_compiler_flag="-fno-rtti -fno-exceptions" 9818 # Insert the option either (1) after the last *FLAGS variable, or 9819 # (2) before a word containing "conftest.", or (3) at the end. 9820 # Note that $ac_compile itself does not contain backslashes and begins 9821 # with a dollar sign (not a hyphen), so the echo should work correctly. 9822 # The option is referenced via a variable to avoid confusing sed. 9823 lt_compile=`echo "$ac_compile" | $SED \ 9824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9826 -e 's:$: $lt_compiler_flag:'` 9827 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9828 (eval "$lt_compile" 2>conftest.err) 9829 ac_status=$? 9830 cat conftest.err >&5 9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9832 if (exit $ac_status) && test -s "$ac_outfile"; then 9833 # The compiler can only warn and ignore the option if not recognized 9834 # So say no if there are warnings other than the usual output. 9835 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9836 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9837 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9838 lt_cv_prog_compiler_rtti_exceptions=yes 9839 fi 9840 fi 9841 $RM conftest* 9842 9843fi 9844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9845$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9846 9847if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 9848 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9849else 9850 : 9851fi 9852 9853fi 9854 9855 9856 9857 9858 9859 9860 lt_prog_compiler_wl= 9861lt_prog_compiler_pic= 9862lt_prog_compiler_static= 9863 9864 9865 if test "$GCC" = yes; then 9866 lt_prog_compiler_wl='-Wl,' 9867 lt_prog_compiler_static='-static' 9868 9869 case $host_os in 9870 aix*) 9871 # All AIX code is PIC. 9872 if test "$host_cpu" = ia64; then 9873 # AIX 5 now supports IA64 processor 9874 lt_prog_compiler_static='-Bstatic' 9875 fi 9876 ;; 9877 9878 amigaos*) 9879 case $host_cpu in 9880 powerpc) 9881 # see comment about AmigaOS4 .so support 9882 lt_prog_compiler_pic='-fPIC' 9883 ;; 9884 m68k) 9885 # FIXME: we need at least 68020 code to build shared libraries, but 9886 # adding the `-m68020' flag to GCC prevents building anything better, 9887 # like `-m68040'. 9888 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9889 ;; 9890 esac 9891 ;; 9892 9893 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9894 # PIC is the default for these OSes. 9895 ;; 9896 9897 mingw* | cygwin* | pw32* | os2* | cegcc*) 9898 # This hack is so that the source file can tell whether it is being 9899 # built for inclusion in a dll (and should export symbols for example). 9900 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9901 # (--disable-auto-import) libraries 9902 lt_prog_compiler_pic='-DDLL_EXPORT' 9903 ;; 9904 9905 darwin* | rhapsody*) 9906 # PIC is the default on this platform 9907 # Common symbols not allowed in MH_DYLIB files 9908 lt_prog_compiler_pic='-fno-common' 9909 ;; 9910 9911 haiku*) 9912 # PIC is the default for Haiku. 9913 # The "-static" flag exists, but is broken. 9914 lt_prog_compiler_static= 9915 ;; 9916 9917 hpux*) 9918 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9919 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9920 # sets the default TLS model and affects inlining. 9921 case $host_cpu in 9922 hppa*64*) 9923 # +Z the default 9924 ;; 9925 *) 9926 lt_prog_compiler_pic='-fPIC' 9927 ;; 9928 esac 9929 ;; 9930 9931 interix[3-9]*) 9932 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9933 # Instead, we relocate shared libraries at runtime. 9934 ;; 9935 9936 msdosdjgpp*) 9937 # Just because we use GCC doesn't mean we suddenly get shared libraries 9938 # on systems that don't support them. 9939 lt_prog_compiler_can_build_shared=no 9940 enable_shared=no 9941 ;; 9942 9943 *nto* | *qnx*) 9944 # QNX uses GNU C++, but need to define -shared option too, otherwise 9945 # it will coredump. 9946 lt_prog_compiler_pic='-fPIC -shared' 9947 ;; 9948 9949 sysv4*MP*) 9950 if test -d /usr/nec; then 9951 lt_prog_compiler_pic=-Kconform_pic 9952 fi 9953 ;; 9954 9955 *) 9956 lt_prog_compiler_pic='-fPIC' 9957 ;; 9958 esac 9959 9960 case $cc_basename in 9961 nvcc*) # Cuda Compiler Driver 2.2 9962 lt_prog_compiler_wl='-Xlinker ' 9963 if test -n "$lt_prog_compiler_pic"; then 9964 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9965 fi 9966 ;; 9967 esac 9968 else 9969 # PORTME Check for flag to pass linker flags through the system compiler. 9970 case $host_os in 9971 aix*) 9972 lt_prog_compiler_wl='-Wl,' 9973 if test "$host_cpu" = ia64; then 9974 # AIX 5 now supports IA64 processor 9975 lt_prog_compiler_static='-Bstatic' 9976 else 9977 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9978 fi 9979 ;; 9980 9981 mingw* | cygwin* | pw32* | os2* | cegcc*) 9982 # This hack is so that the source file can tell whether it is being 9983 # built for inclusion in a dll (and should export symbols for example). 9984 lt_prog_compiler_pic='-DDLL_EXPORT' 9985 ;; 9986 9987 hpux9* | hpux10* | hpux11*) 9988 lt_prog_compiler_wl='-Wl,' 9989 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9990 # not for PA HP-UX. 9991 case $host_cpu in 9992 hppa*64*|ia64*) 9993 # +Z the default 9994 ;; 9995 *) 9996 lt_prog_compiler_pic='+Z' 9997 ;; 9998 esac 9999 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10000 lt_prog_compiler_static='${wl}-a ${wl}archive' 10001 ;; 10002 10003 irix5* | irix6* | nonstopux*) 10004 lt_prog_compiler_wl='-Wl,' 10005 # PIC (with -KPIC) is the default. 10006 lt_prog_compiler_static='-non_shared' 10007 ;; 10008 10009 linux* | k*bsd*-gnu | kopensolaris*-gnu) 10010 case $cc_basename in 10011 # old Intel for x86_64 which still supported -KPIC. 10012 ecc*) 10013 lt_prog_compiler_wl='-Wl,' 10014 lt_prog_compiler_pic='-KPIC' 10015 lt_prog_compiler_static='-static' 10016 ;; 10017 # icc used to be incompatible with GCC. 10018 # ICC 10 doesn't accept -KPIC any more. 10019 icc* | ifort*) 10020 lt_prog_compiler_wl='-Wl,' 10021 lt_prog_compiler_pic='-fPIC' 10022 lt_prog_compiler_static='-static' 10023 ;; 10024 # Lahey Fortran 8.1. 10025 lf95*) 10026 lt_prog_compiler_wl='-Wl,' 10027 lt_prog_compiler_pic='--shared' 10028 lt_prog_compiler_static='--static' 10029 ;; 10030 nagfor*) 10031 # NAG Fortran compiler 10032 lt_prog_compiler_wl='-Wl,-Wl,,' 10033 lt_prog_compiler_pic='-PIC' 10034 lt_prog_compiler_static='-Bstatic' 10035 ;; 10036 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10037 # Portland Group compilers (*not* the Pentium gcc compiler, 10038 # which looks to be a dead project) 10039 lt_prog_compiler_wl='-Wl,' 10040 lt_prog_compiler_pic='-fpic' 10041 lt_prog_compiler_static='-Bstatic' 10042 ;; 10043 ccc*) 10044 lt_prog_compiler_wl='-Wl,' 10045 # All Alpha code is PIC. 10046 lt_prog_compiler_static='-non_shared' 10047 ;; 10048 xl* | bgxl* | bgf* | mpixl*) 10049 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10050 lt_prog_compiler_wl='-Wl,' 10051 lt_prog_compiler_pic='-qpic' 10052 lt_prog_compiler_static='-qstaticlink' 10053 ;; 10054 *) 10055 case `$CC -V 2>&1 | sed 5q` in 10056 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10057 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10058 lt_prog_compiler_pic='-KPIC' 10059 lt_prog_compiler_static='-Bstatic' 10060 lt_prog_compiler_wl='' 10061 ;; 10062 *Sun\ F* | *Sun*Fortran*) 10063 lt_prog_compiler_pic='-KPIC' 10064 lt_prog_compiler_static='-Bstatic' 10065 lt_prog_compiler_wl='-Qoption ld ' 10066 ;; 10067 *Sun\ C*) 10068 # Sun C 5.9 10069 lt_prog_compiler_pic='-KPIC' 10070 lt_prog_compiler_static='-Bstatic' 10071 lt_prog_compiler_wl='-Wl,' 10072 ;; 10073 *Intel*\ [CF]*Compiler*) 10074 lt_prog_compiler_wl='-Wl,' 10075 lt_prog_compiler_pic='-fPIC' 10076 lt_prog_compiler_static='-static' 10077 ;; 10078 *Portland\ Group*) 10079 lt_prog_compiler_wl='-Wl,' 10080 lt_prog_compiler_pic='-fpic' 10081 lt_prog_compiler_static='-Bstatic' 10082 ;; 10083 esac 10084 ;; 10085 esac 10086 ;; 10087 10088 newsos6) 10089 lt_prog_compiler_pic='-KPIC' 10090 lt_prog_compiler_static='-Bstatic' 10091 ;; 10092 10093 *nto* | *qnx*) 10094 # QNX uses GNU C++, but need to define -shared option too, otherwise 10095 # it will coredump. 10096 lt_prog_compiler_pic='-fPIC -shared' 10097 ;; 10098 10099 osf3* | osf4* | osf5*) 10100 lt_prog_compiler_wl='-Wl,' 10101 # All OSF/1 code is PIC. 10102 lt_prog_compiler_static='-non_shared' 10103 ;; 10104 10105 rdos*) 10106 lt_prog_compiler_static='-non_shared' 10107 ;; 10108 10109 solaris*) 10110 lt_prog_compiler_pic='-KPIC' 10111 lt_prog_compiler_static='-Bstatic' 10112 case $cc_basename in 10113 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10114 lt_prog_compiler_wl='-Qoption ld ';; 10115 *) 10116 lt_prog_compiler_wl='-Wl,';; 10117 esac 10118 ;; 10119 10120 sunos4*) 10121 lt_prog_compiler_wl='-Qoption ld ' 10122 lt_prog_compiler_pic='-PIC' 10123 lt_prog_compiler_static='-Bstatic' 10124 ;; 10125 10126 sysv4 | sysv4.2uw2* | sysv4.3*) 10127 lt_prog_compiler_wl='-Wl,' 10128 lt_prog_compiler_pic='-KPIC' 10129 lt_prog_compiler_static='-Bstatic' 10130 ;; 10131 10132 sysv4*MP*) 10133 if test -d /usr/nec ;then 10134 lt_prog_compiler_pic='-Kconform_pic' 10135 lt_prog_compiler_static='-Bstatic' 10136 fi 10137 ;; 10138 10139 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10140 lt_prog_compiler_wl='-Wl,' 10141 lt_prog_compiler_pic='-KPIC' 10142 lt_prog_compiler_static='-Bstatic' 10143 ;; 10144 10145 unicos*) 10146 lt_prog_compiler_wl='-Wl,' 10147 lt_prog_compiler_can_build_shared=no 10148 ;; 10149 10150 uts4*) 10151 lt_prog_compiler_pic='-pic' 10152 lt_prog_compiler_static='-Bstatic' 10153 ;; 10154 10155 *) 10156 lt_prog_compiler_can_build_shared=no 10157 ;; 10158 esac 10159 fi 10160 10161case $host_os in 10162 # For platforms which do not support PIC, -DPIC is meaningless: 10163 *djgpp*) 10164 lt_prog_compiler_pic= 10165 ;; 10166 *) 10167 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10168 ;; 10169esac 10170 10171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10172$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10173if ${lt_cv_prog_compiler_pic+:} false; then : 10174 $as_echo_n "(cached) " >&6 10175else 10176 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10177fi 10178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10179$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10180lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10181 10182# 10183# Check to make sure the PIC flag actually works. 10184# 10185if test -n "$lt_prog_compiler_pic"; then 10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10187$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10188if ${lt_cv_prog_compiler_pic_works+:} false; then : 10189 $as_echo_n "(cached) " >&6 10190else 10191 lt_cv_prog_compiler_pic_works=no 10192 ac_outfile=conftest.$ac_objext 10193 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10194 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 10195 # Insert the option either (1) after the last *FLAGS variable, or 10196 # (2) before a word containing "conftest.", or (3) at the end. 10197 # Note that $ac_compile itself does not contain backslashes and begins 10198 # with a dollar sign (not a hyphen), so the echo should work correctly. 10199 # The option is referenced via a variable to avoid confusing sed. 10200 lt_compile=`echo "$ac_compile" | $SED \ 10201 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10202 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10203 -e 's:$: $lt_compiler_flag:'` 10204 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10205 (eval "$lt_compile" 2>conftest.err) 10206 ac_status=$? 10207 cat conftest.err >&5 10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10209 if (exit $ac_status) && test -s "$ac_outfile"; then 10210 # The compiler can only warn and ignore the option if not recognized 10211 # So say no if there are warnings other than the usual output. 10212 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10213 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10214 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10215 lt_cv_prog_compiler_pic_works=yes 10216 fi 10217 fi 10218 $RM conftest* 10219 10220fi 10221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10222$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10223 10224if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 10225 case $lt_prog_compiler_pic in 10226 "" | " "*) ;; 10227 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10228 esac 10229else 10230 lt_prog_compiler_pic= 10231 lt_prog_compiler_can_build_shared=no 10232fi 10233 10234fi 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246# 10247# Check to make sure the static flag actually works. 10248# 10249wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10251$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10252if ${lt_cv_prog_compiler_static_works+:} false; then : 10253 $as_echo_n "(cached) " >&6 10254else 10255 lt_cv_prog_compiler_static_works=no 10256 save_LDFLAGS="$LDFLAGS" 10257 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10258 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10259 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10260 # The linker can only warn and ignore the option if not recognized 10261 # So say no if there are warnings 10262 if test -s conftest.err; then 10263 # Append any errors to the config.log. 10264 cat conftest.err 1>&5 10265 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10267 if diff conftest.exp conftest.er2 >/dev/null; then 10268 lt_cv_prog_compiler_static_works=yes 10269 fi 10270 else 10271 lt_cv_prog_compiler_static_works=yes 10272 fi 10273 fi 10274 $RM -r conftest* 10275 LDFLAGS="$save_LDFLAGS" 10276 10277fi 10278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10279$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10280 10281if test x"$lt_cv_prog_compiler_static_works" = xyes; then 10282 : 10283else 10284 lt_prog_compiler_static= 10285fi 10286 10287 10288 10289 10290 10291 10292 10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10294$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10295if ${lt_cv_prog_compiler_c_o+:} false; then : 10296 $as_echo_n "(cached) " >&6 10297else 10298 lt_cv_prog_compiler_c_o=no 10299 $RM -r conftest 2>/dev/null 10300 mkdir conftest 10301 cd conftest 10302 mkdir out 10303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10304 10305 lt_compiler_flag="-o out/conftest2.$ac_objext" 10306 # Insert the option either (1) after the last *FLAGS variable, or 10307 # (2) before a word containing "conftest.", or (3) at the end. 10308 # Note that $ac_compile itself does not contain backslashes and begins 10309 # with a dollar sign (not a hyphen), so the echo should work correctly. 10310 lt_compile=`echo "$ac_compile" | $SED \ 10311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10313 -e 's:$: $lt_compiler_flag:'` 10314 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10315 (eval "$lt_compile" 2>out/conftest.err) 10316 ac_status=$? 10317 cat out/conftest.err >&5 10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10319 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10320 then 10321 # The compiler can only warn and ignore the option if not recognized 10322 # So say no if there are warnings 10323 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10324 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10325 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10326 lt_cv_prog_compiler_c_o=yes 10327 fi 10328 fi 10329 chmod u+w . 2>&5 10330 $RM conftest* 10331 # SGI C++ compiler will create directory out/ii_files/ for 10332 # template instantiation 10333 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10334 $RM out/* && rmdir out 10335 cd .. 10336 $RM -r conftest 10337 $RM conftest* 10338 10339fi 10340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10341$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10342 10343 10344 10345 10346 10347 10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10349$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10350if ${lt_cv_prog_compiler_c_o+:} false; then : 10351 $as_echo_n "(cached) " >&6 10352else 10353 lt_cv_prog_compiler_c_o=no 10354 $RM -r conftest 2>/dev/null 10355 mkdir conftest 10356 cd conftest 10357 mkdir out 10358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10359 10360 lt_compiler_flag="-o out/conftest2.$ac_objext" 10361 # Insert the option either (1) after the last *FLAGS variable, or 10362 # (2) before a word containing "conftest.", or (3) at the end. 10363 # Note that $ac_compile itself does not contain backslashes and begins 10364 # with a dollar sign (not a hyphen), so the echo should work correctly. 10365 lt_compile=`echo "$ac_compile" | $SED \ 10366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10368 -e 's:$: $lt_compiler_flag:'` 10369 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10370 (eval "$lt_compile" 2>out/conftest.err) 10371 ac_status=$? 10372 cat out/conftest.err >&5 10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10374 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10375 then 10376 # The compiler can only warn and ignore the option if not recognized 10377 # So say no if there are warnings 10378 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10379 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10380 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10381 lt_cv_prog_compiler_c_o=yes 10382 fi 10383 fi 10384 chmod u+w . 2>&5 10385 $RM conftest* 10386 # SGI C++ compiler will create directory out/ii_files/ for 10387 # template instantiation 10388 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10389 $RM out/* && rmdir out 10390 cd .. 10391 $RM -r conftest 10392 $RM conftest* 10393 10394fi 10395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10396$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10397 10398 10399 10400 10401hard_links="nottested" 10402if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 10403 # do not overwrite the value of need_locks provided by the user 10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10405$as_echo_n "checking if we can lock with hard links... " >&6; } 10406 hard_links=yes 10407 $RM conftest* 10408 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10409 touch conftest.a 10410 ln conftest.a conftest.b 2>&5 || hard_links=no 10411 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10413$as_echo "$hard_links" >&6; } 10414 if test "$hard_links" = no; then 10415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10416$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10417 need_locks=warn 10418 fi 10419else 10420 need_locks=no 10421fi 10422 10423 10424 10425 10426 10427 10428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10429$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10430 10431 runpath_var= 10432 allow_undefined_flag= 10433 always_export_symbols=no 10434 archive_cmds= 10435 archive_expsym_cmds= 10436 compiler_needs_object=no 10437 enable_shared_with_static_runtimes=no 10438 export_dynamic_flag_spec= 10439 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10440 hardcode_automatic=no 10441 hardcode_direct=no 10442 hardcode_direct_absolute=no 10443 hardcode_libdir_flag_spec= 10444 hardcode_libdir_separator= 10445 hardcode_minus_L=no 10446 hardcode_shlibpath_var=unsupported 10447 inherit_rpath=no 10448 link_all_deplibs=unknown 10449 module_cmds= 10450 module_expsym_cmds= 10451 old_archive_from_new_cmds= 10452 old_archive_from_expsyms_cmds= 10453 thread_safe_flag_spec= 10454 whole_archive_flag_spec= 10455 # include_expsyms should be a list of space-separated symbols to be *always* 10456 # included in the symbol list 10457 include_expsyms= 10458 # exclude_expsyms can be an extended regexp of symbols to exclude 10459 # it will be wrapped by ` (' and `)$', so one must not match beginning or 10460 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 10461 # as well as any symbol that contains `d'. 10462 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10463 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10464 # platforms (ab)use it in PIC code, but their linkers get confused if 10465 # the symbol is explicitly referenced. Since portable code cannot 10466 # rely on this symbol name, it's probably fine to never include it in 10467 # preloaded symbol tables. 10468 # Exclude shared library initialization/finalization symbols. 10469 extract_expsyms_cmds= 10470 10471 case $host_os in 10472 cygwin* | mingw* | pw32* | cegcc*) 10473 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10474 # When not using gcc, we currently assume that we are using 10475 # Microsoft Visual C++. 10476 if test "$GCC" != yes; then 10477 with_gnu_ld=no 10478 fi 10479 ;; 10480 interix*) 10481 # we just hope/assume this is gcc and not c89 (= MSVC++) 10482 with_gnu_ld=yes 10483 ;; 10484 openbsd*) 10485 with_gnu_ld=no 10486 ;; 10487 esac 10488 10489 ld_shlibs=yes 10490 10491 # On some targets, GNU ld is compatible enough with the native linker 10492 # that we're better off using the native interface for both. 10493 lt_use_gnu_ld_interface=no 10494 if test "$with_gnu_ld" = yes; then 10495 case $host_os in 10496 aix*) 10497 # The AIX port of GNU ld has always aspired to compatibility 10498 # with the native linker. However, as the warning in the GNU ld 10499 # block says, versions before 2.19.5* couldn't really create working 10500 # shared libraries, regardless of the interface used. 10501 case `$LD -v 2>&1` in 10502 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10503 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10504 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10505 *) 10506 lt_use_gnu_ld_interface=yes 10507 ;; 10508 esac 10509 ;; 10510 *) 10511 lt_use_gnu_ld_interface=yes 10512 ;; 10513 esac 10514 fi 10515 10516 if test "$lt_use_gnu_ld_interface" = yes; then 10517 # If archive_cmds runs LD, not CC, wlarc should be empty 10518 wlarc='${wl}' 10519 10520 # Set some defaults for GNU ld with shared library support. These 10521 # are reset later if shared libraries are not supported. Putting them 10522 # here allows them to be overridden if necessary. 10523 runpath_var=LD_RUN_PATH 10524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10525 export_dynamic_flag_spec='${wl}--export-dynamic' 10526 # ancient GNU ld didn't support --whole-archive et. al. 10527 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10528 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10529 else 10530 whole_archive_flag_spec= 10531 fi 10532 supports_anon_versioning=no 10533 case `$LD -v 2>&1` in 10534 *GNU\ gold*) supports_anon_versioning=yes ;; 10535 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10536 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10537 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10538 *\ 2.11.*) ;; # other 2.11 versions 10539 *) supports_anon_versioning=yes ;; 10540 esac 10541 10542 # See if GNU ld supports shared libraries. 10543 case $host_os in 10544 aix[3-9]*) 10545 # On AIX/PPC, the GNU linker is very broken 10546 if test "$host_cpu" != ia64; then 10547 ld_shlibs=no 10548 cat <<_LT_EOF 1>&2 10549 10550*** Warning: the GNU linker, at least up to release 2.19, is reported 10551*** to be unable to reliably create shared libraries on AIX. 10552*** Therefore, libtool is disabling shared libraries support. If you 10553*** really care for shared libraries, you may want to install binutils 10554*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10555*** You will then need to restart the configuration process. 10556 10557_LT_EOF 10558 fi 10559 ;; 10560 10561 amigaos*) 10562 case $host_cpu in 10563 powerpc) 10564 # see comment about AmigaOS4 .so support 10565 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10566 archive_expsym_cmds='' 10567 ;; 10568 m68k) 10569 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)' 10570 hardcode_libdir_flag_spec='-L$libdir' 10571 hardcode_minus_L=yes 10572 ;; 10573 esac 10574 ;; 10575 10576 beos*) 10577 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10578 allow_undefined_flag=unsupported 10579 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10580 # support --undefined. This deserves some investigation. FIXME 10581 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10582 else 10583 ld_shlibs=no 10584 fi 10585 ;; 10586 10587 cygwin* | mingw* | pw32* | cegcc*) 10588 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10589 # as there is no search path for DLLs. 10590 hardcode_libdir_flag_spec='-L$libdir' 10591 export_dynamic_flag_spec='${wl}--export-all-symbols' 10592 allow_undefined_flag=unsupported 10593 always_export_symbols=no 10594 enable_shared_with_static_runtimes=yes 10595 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' 10596 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10597 10598 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10600 # If the export-symbols file already is a .def file (1st line 10601 # is EXPORTS), use it as is; otherwise, prepend... 10602 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10603 cp $export_symbols $output_objdir/$soname.def; 10604 else 10605 echo EXPORTS > $output_objdir/$soname.def; 10606 cat $export_symbols >> $output_objdir/$soname.def; 10607 fi~ 10608 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10609 else 10610 ld_shlibs=no 10611 fi 10612 ;; 10613 10614 haiku*) 10615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10616 link_all_deplibs=yes 10617 ;; 10618 10619 interix[3-9]*) 10620 hardcode_direct=no 10621 hardcode_shlibpath_var=no 10622 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10623 export_dynamic_flag_spec='${wl}-E' 10624 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10625 # Instead, shared libraries are loaded at an image base (0x10000000 by 10626 # default) and relocated if they conflict, which is a slow very memory 10627 # consuming and fragmenting process. To avoid this, we pick a random, 10628 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10629 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10630 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10631 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' 10632 ;; 10633 10634 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10635 tmp_diet=no 10636 if test "$host_os" = linux-dietlibc; then 10637 case $cc_basename in 10638 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10639 esac 10640 fi 10641 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10642 && test "$tmp_diet" = no 10643 then 10644 tmp_addflag=' $pic_flag' 10645 tmp_sharedflag='-shared' 10646 case $cc_basename,$host_cpu in 10647 pgcc*) # Portland Group C compiler 10648 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' 10649 tmp_addflag=' $pic_flag' 10650 ;; 10651 pgf77* | pgf90* | pgf95* | pgfortran*) 10652 # Portland Group f77 and f90 compilers 10653 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' 10654 tmp_addflag=' $pic_flag -Mnomain' ;; 10655 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10656 tmp_addflag=' -i_dynamic' ;; 10657 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10658 tmp_addflag=' -i_dynamic -nofor_main' ;; 10659 ifc* | ifort*) # Intel Fortran compiler 10660 tmp_addflag=' -nofor_main' ;; 10661 lf95*) # Lahey Fortran 8.1 10662 whole_archive_flag_spec= 10663 tmp_sharedflag='--shared' ;; 10664 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10665 tmp_sharedflag='-qmkshrobj' 10666 tmp_addflag= ;; 10667 nvcc*) # Cuda Compiler Driver 2.2 10668 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' 10669 compiler_needs_object=yes 10670 ;; 10671 esac 10672 case `$CC -V 2>&1 | sed 5q` in 10673 *Sun\ C*) # Sun C 5.9 10674 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' 10675 compiler_needs_object=yes 10676 tmp_sharedflag='-G' ;; 10677 *Sun\ F*) # Sun Fortran 8.3 10678 tmp_sharedflag='-G' ;; 10679 esac 10680 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10681 10682 if test "x$supports_anon_versioning" = xyes; then 10683 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10684 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10685 echo "local: *; };" >> $output_objdir/$libname.ver~ 10686 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 10687 fi 10688 10689 case $cc_basename in 10690 xlf* | bgf* | bgxlf* | mpixlf*) 10691 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10692 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10693 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10694 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10695 if test "x$supports_anon_versioning" = xyes; then 10696 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10697 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10698 echo "local: *; };" >> $output_objdir/$libname.ver~ 10699 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10700 fi 10701 ;; 10702 esac 10703 else 10704 ld_shlibs=no 10705 fi 10706 ;; 10707 10708 netbsd*) 10709 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10710 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10711 wlarc= 10712 else 10713 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10714 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10715 fi 10716 ;; 10717 10718 solaris*) 10719 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10720 ld_shlibs=no 10721 cat <<_LT_EOF 1>&2 10722 10723*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10724*** create shared libraries on Solaris systems. Therefore, libtool 10725*** is disabling shared libraries support. We urge you to upgrade GNU 10726*** binutils to release 2.9.1 or newer. Another option is to modify 10727*** your PATH or compiler configuration so that the native linker is 10728*** used, and then restart. 10729 10730_LT_EOF 10731 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10732 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10733 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10734 else 10735 ld_shlibs=no 10736 fi 10737 ;; 10738 10739 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10740 case `$LD -v 2>&1` in 10741 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10742 ld_shlibs=no 10743 cat <<_LT_EOF 1>&2 10744 10745*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10746*** reliably create shared libraries on SCO systems. Therefore, libtool 10747*** is disabling shared libraries support. We urge you to upgrade GNU 10748*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10749*** your PATH or compiler configuration so that the native linker is 10750*** used, and then restart. 10751 10752_LT_EOF 10753 ;; 10754 *) 10755 # For security reasons, it is highly recommended that you always 10756 # use absolute paths for naming shared libraries, and exclude the 10757 # DT_RUNPATH tag from executables and libraries. But doing so 10758 # requires that you compile everything twice, which is a pain. 10759 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10762 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10763 else 10764 ld_shlibs=no 10765 fi 10766 ;; 10767 esac 10768 ;; 10769 10770 sunos4*) 10771 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10772 wlarc= 10773 hardcode_direct=yes 10774 hardcode_shlibpath_var=no 10775 ;; 10776 10777 *) 10778 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10779 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10780 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10781 else 10782 ld_shlibs=no 10783 fi 10784 ;; 10785 esac 10786 10787 if test "$ld_shlibs" = no; then 10788 runpath_var= 10789 hardcode_libdir_flag_spec= 10790 export_dynamic_flag_spec= 10791 whole_archive_flag_spec= 10792 fi 10793 else 10794 # PORTME fill in a description of your system's linker (not GNU ld) 10795 case $host_os in 10796 aix3*) 10797 allow_undefined_flag=unsupported 10798 always_export_symbols=yes 10799 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' 10800 # Note: this linker hardcodes the directories in LIBPATH if there 10801 # are no directories specified by -L. 10802 hardcode_minus_L=yes 10803 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 10804 # Neither direct hardcoding nor static linking is supported with a 10805 # broken collect2. 10806 hardcode_direct=unsupported 10807 fi 10808 ;; 10809 10810 aix[4-9]*) 10811 if test "$host_cpu" = ia64; then 10812 # On IA64, the linker does run time linking by default, so we don't 10813 # have to do anything special. 10814 aix_use_runtimelinking=no 10815 exp_sym_flag='-Bexport' 10816 no_entry_flag="" 10817 else 10818 # If we're using GNU nm, then we don't want the "-C" option. 10819 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10820 # Also, AIX nm treats weak defined symbols like other global 10821 # defined symbols, whereas GNU nm marks them as "W". 10822 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10823 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10824 else 10825 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 10826 fi 10827 aix_use_runtimelinking=no 10828 10829 # Test if we are trying to use run time linking or normal 10830 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10831 # need to do runtime linking. 10832 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10833 for ld_flag in $LDFLAGS; do 10834 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10835 aix_use_runtimelinking=yes 10836 break 10837 fi 10838 done 10839 ;; 10840 esac 10841 10842 exp_sym_flag='-bexport' 10843 no_entry_flag='-bnoentry' 10844 fi 10845 10846 # When large executables or shared objects are built, AIX ld can 10847 # have problems creating the table of contents. If linking a library 10848 # or program results in "error TOC overflow" add -mminimal-toc to 10849 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10850 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10851 10852 archive_cmds='' 10853 hardcode_direct=yes 10854 hardcode_direct_absolute=yes 10855 hardcode_libdir_separator=':' 10856 link_all_deplibs=yes 10857 file_list_spec='${wl}-f,' 10858 10859 if test "$GCC" = yes; then 10860 case $host_os in aix4.[012]|aix4.[012].*) 10861 # We only want to do this on AIX 4.2 and lower, the check 10862 # below for broken collect2 doesn't work under 4.3+ 10863 collect2name=`${CC} -print-prog-name=collect2` 10864 if test -f "$collect2name" && 10865 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10866 then 10867 # We have reworked collect2 10868 : 10869 else 10870 # We have old collect2 10871 hardcode_direct=unsupported 10872 # It fails to find uninstalled libraries when the uninstalled 10873 # path is not listed in the libpath. Setting hardcode_minus_L 10874 # to unsupported forces relinking 10875 hardcode_minus_L=yes 10876 hardcode_libdir_flag_spec='-L$libdir' 10877 hardcode_libdir_separator= 10878 fi 10879 ;; 10880 esac 10881 shared_flag='-shared' 10882 if test "$aix_use_runtimelinking" = yes; then 10883 shared_flag="$shared_flag "'${wl}-G' 10884 fi 10885 else 10886 # not using gcc 10887 if test "$host_cpu" = ia64; then 10888 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10889 # chokes on -Wl,-G. The following line is correct: 10890 shared_flag='-G' 10891 else 10892 if test "$aix_use_runtimelinking" = yes; then 10893 shared_flag='${wl}-G' 10894 else 10895 shared_flag='${wl}-bM:SRE' 10896 fi 10897 fi 10898 fi 10899 10900 export_dynamic_flag_spec='${wl}-bexpall' 10901 # It seems that -bexpall does not export symbols beginning with 10902 # underscore (_), so it is better to generate a list of symbols to export. 10903 always_export_symbols=yes 10904 if test "$aix_use_runtimelinking" = yes; then 10905 # Warning - without using the other runtime loading flags (-brtl), 10906 # -berok will link without error, but may produce a broken library. 10907 allow_undefined_flag='-berok' 10908 # Determine the default libpath from the value encoded in an 10909 # empty executable. 10910 if test "${lt_cv_aix_libpath+set}" = set; then 10911 aix_libpath=$lt_cv_aix_libpath 10912else 10913 if ${lt_cv_aix_libpath_+:} false; then : 10914 $as_echo_n "(cached) " >&6 10915else 10916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10917/* end confdefs.h. */ 10918 10919int 10920main () 10921{ 10922 10923 ; 10924 return 0; 10925} 10926_ACEOF 10927if ac_fn_c_try_link "$LINENO"; then : 10928 10929 lt_aix_libpath_sed=' 10930 /Import File Strings/,/^$/ { 10931 /^0/ { 10932 s/^0 *\([^ ]*\) *$/\1/ 10933 p 10934 } 10935 }' 10936 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10937 # Check for a 64-bit object if we didn't find anything. 10938 if test -z "$lt_cv_aix_libpath_"; then 10939 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10940 fi 10941fi 10942rm -f core conftest.err conftest.$ac_objext \ 10943 conftest$ac_exeext conftest.$ac_ext 10944 if test -z "$lt_cv_aix_libpath_"; then 10945 lt_cv_aix_libpath_="/usr/lib:/lib" 10946 fi 10947 10948fi 10949 10950 aix_libpath=$lt_cv_aix_libpath_ 10951fi 10952 10953 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10954 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10955 else 10956 if test "$host_cpu" = ia64; then 10957 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10958 allow_undefined_flag="-z nodefs" 10959 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" 10960 else 10961 # Determine the default libpath from the value encoded in an 10962 # empty executable. 10963 if test "${lt_cv_aix_libpath+set}" = set; then 10964 aix_libpath=$lt_cv_aix_libpath 10965else 10966 if ${lt_cv_aix_libpath_+:} false; then : 10967 $as_echo_n "(cached) " >&6 10968else 10969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10970/* end confdefs.h. */ 10971 10972int 10973main () 10974{ 10975 10976 ; 10977 return 0; 10978} 10979_ACEOF 10980if ac_fn_c_try_link "$LINENO"; then : 10981 10982 lt_aix_libpath_sed=' 10983 /Import File Strings/,/^$/ { 10984 /^0/ { 10985 s/^0 *\([^ ]*\) *$/\1/ 10986 p 10987 } 10988 }' 10989 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10990 # Check for a 64-bit object if we didn't find anything. 10991 if test -z "$lt_cv_aix_libpath_"; then 10992 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10993 fi 10994fi 10995rm -f core conftest.err conftest.$ac_objext \ 10996 conftest$ac_exeext conftest.$ac_ext 10997 if test -z "$lt_cv_aix_libpath_"; then 10998 lt_cv_aix_libpath_="/usr/lib:/lib" 10999 fi 11000 11001fi 11002 11003 aix_libpath=$lt_cv_aix_libpath_ 11004fi 11005 11006 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11007 # Warning - without using the other run time loading flags, 11008 # -berok will link without error, but may produce a broken library. 11009 no_undefined_flag=' ${wl}-bernotok' 11010 allow_undefined_flag=' ${wl}-berok' 11011 if test "$with_gnu_ld" = yes; then 11012 # We only use this code for GNU lds that support --whole-archive. 11013 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11014 else 11015 # Exported symbols can be pulled into shared objects from archives 11016 whole_archive_flag_spec='$convenience' 11017 fi 11018 archive_cmds_need_lc=yes 11019 # This is similar to how AIX traditionally builds its shared libraries. 11020 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11021 fi 11022 fi 11023 ;; 11024 11025 amigaos*) 11026 case $host_cpu in 11027 powerpc) 11028 # see comment about AmigaOS4 .so support 11029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11030 archive_expsym_cmds='' 11031 ;; 11032 m68k) 11033 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)' 11034 hardcode_libdir_flag_spec='-L$libdir' 11035 hardcode_minus_L=yes 11036 ;; 11037 esac 11038 ;; 11039 11040 bsdi[45]*) 11041 export_dynamic_flag_spec=-rdynamic 11042 ;; 11043 11044 cygwin* | mingw* | pw32* | cegcc*) 11045 # When not using gcc, we currently assume that we are using 11046 # Microsoft Visual C++. 11047 # hardcode_libdir_flag_spec is actually meaningless, as there is 11048 # no search path for DLLs. 11049 case $cc_basename in 11050 cl*) 11051 # Native MSVC 11052 hardcode_libdir_flag_spec=' ' 11053 allow_undefined_flag=unsupported 11054 always_export_symbols=yes 11055 file_list_spec='@' 11056 # Tell ltmain to make .lib files, not .a files. 11057 libext=lib 11058 # Tell ltmain to make .dll files, not .so files. 11059 shrext_cmds=".dll" 11060 # FIXME: Setting linknames here is a bad hack. 11061 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 11062 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11063 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 11064 else 11065 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 11066 fi~ 11067 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11068 linknames=' 11069 # The linker will not automatically build a static lib if we build a DLL. 11070 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11071 enable_shared_with_static_runtimes=yes 11072 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11073 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11074 # Don't use ranlib 11075 old_postinstall_cmds='chmod 644 $oldlib' 11076 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11077 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11078 case $lt_outputfile in 11079 *.exe|*.EXE) ;; 11080 *) 11081 lt_outputfile="$lt_outputfile.exe" 11082 lt_tool_outputfile="$lt_tool_outputfile.exe" 11083 ;; 11084 esac~ 11085 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 11086 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11087 $RM "$lt_outputfile.manifest"; 11088 fi' 11089 ;; 11090 *) 11091 # Assume MSVC wrapper 11092 hardcode_libdir_flag_spec=' ' 11093 allow_undefined_flag=unsupported 11094 # Tell ltmain to make .lib files, not .a files. 11095 libext=lib 11096 # Tell ltmain to make .dll files, not .so files. 11097 shrext_cmds=".dll" 11098 # FIXME: Setting linknames here is a bad hack. 11099 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11100 # The linker will automatically build a .lib file if we build a DLL. 11101 old_archive_from_new_cmds='true' 11102 # FIXME: Should let the user specify the lib program. 11103 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11104 enable_shared_with_static_runtimes=yes 11105 ;; 11106 esac 11107 ;; 11108 11109 darwin* | rhapsody*) 11110 11111 11112 archive_cmds_need_lc=no 11113 hardcode_direct=no 11114 hardcode_automatic=yes 11115 hardcode_shlibpath_var=unsupported 11116 if test "$lt_cv_ld_force_load" = "yes"; then 11117 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\"`' 11118 11119 else 11120 whole_archive_flag_spec='' 11121 fi 11122 link_all_deplibs=yes 11123 allow_undefined_flag="$_lt_dar_allow_undefined" 11124 case $cc_basename in 11125 ifort*) _lt_dar_can_shared=yes ;; 11126 *) _lt_dar_can_shared=$GCC ;; 11127 esac 11128 if test "$_lt_dar_can_shared" = "yes"; then 11129 output_verbose_link_cmd=func_echo_all 11130 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11131 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11132 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}" 11133 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}" 11134 11135 else 11136 ld_shlibs=no 11137 fi 11138 11139 ;; 11140 11141 dgux*) 11142 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11143 hardcode_libdir_flag_spec='-L$libdir' 11144 hardcode_shlibpath_var=no 11145 ;; 11146 11147 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11148 # support. Future versions do this automatically, but an explicit c++rt0.o 11149 # does not break anything, and helps significantly (at the cost of a little 11150 # extra space). 11151 freebsd2.2*) 11152 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11153 hardcode_libdir_flag_spec='-R$libdir' 11154 hardcode_direct=yes 11155 hardcode_shlibpath_var=no 11156 ;; 11157 11158 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11159 freebsd2.*) 11160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11161 hardcode_direct=yes 11162 hardcode_minus_L=yes 11163 hardcode_shlibpath_var=no 11164 ;; 11165 11166 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11167 freebsd* | dragonfly*) 11168 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11169 hardcode_libdir_flag_spec='-R$libdir' 11170 hardcode_direct=yes 11171 hardcode_shlibpath_var=no 11172 ;; 11173 11174 hpux9*) 11175 if test "$GCC" = yes; then 11176 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11177 else 11178 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11179 fi 11180 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11181 hardcode_libdir_separator=: 11182 hardcode_direct=yes 11183 11184 # hardcode_minus_L: Not really in the search PATH, 11185 # but as the default location of the library. 11186 hardcode_minus_L=yes 11187 export_dynamic_flag_spec='${wl}-E' 11188 ;; 11189 11190 hpux10*) 11191 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11192 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11193 else 11194 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11195 fi 11196 if test "$with_gnu_ld" = no; then 11197 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11198 hardcode_libdir_separator=: 11199 hardcode_direct=yes 11200 hardcode_direct_absolute=yes 11201 export_dynamic_flag_spec='${wl}-E' 11202 # hardcode_minus_L: Not really in the search PATH, 11203 # but as the default location of the library. 11204 hardcode_minus_L=yes 11205 fi 11206 ;; 11207 11208 hpux11*) 11209 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11210 case $host_cpu in 11211 hppa*64*) 11212 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11213 ;; 11214 ia64*) 11215 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11216 ;; 11217 *) 11218 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11219 ;; 11220 esac 11221 else 11222 case $host_cpu in 11223 hppa*64*) 11224 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11225 ;; 11226 ia64*) 11227 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11228 ;; 11229 *) 11230 11231 # Older versions of the 11.00 compiler do not understand -b yet 11232 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11234$as_echo_n "checking if $CC understands -b... " >&6; } 11235if ${lt_cv_prog_compiler__b+:} false; then : 11236 $as_echo_n "(cached) " >&6 11237else 11238 lt_cv_prog_compiler__b=no 11239 save_LDFLAGS="$LDFLAGS" 11240 LDFLAGS="$LDFLAGS -b" 11241 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11242 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11243 # The linker can only warn and ignore the option if not recognized 11244 # So say no if there are warnings 11245 if test -s conftest.err; then 11246 # Append any errors to the config.log. 11247 cat conftest.err 1>&5 11248 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11250 if diff conftest.exp conftest.er2 >/dev/null; then 11251 lt_cv_prog_compiler__b=yes 11252 fi 11253 else 11254 lt_cv_prog_compiler__b=yes 11255 fi 11256 fi 11257 $RM -r conftest* 11258 LDFLAGS="$save_LDFLAGS" 11259 11260fi 11261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11262$as_echo "$lt_cv_prog_compiler__b" >&6; } 11263 11264if test x"$lt_cv_prog_compiler__b" = xyes; then 11265 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11266else 11267 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11268fi 11269 11270 ;; 11271 esac 11272 fi 11273 if test "$with_gnu_ld" = no; then 11274 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11275 hardcode_libdir_separator=: 11276 11277 case $host_cpu in 11278 hppa*64*|ia64*) 11279 hardcode_direct=no 11280 hardcode_shlibpath_var=no 11281 ;; 11282 *) 11283 hardcode_direct=yes 11284 hardcode_direct_absolute=yes 11285 export_dynamic_flag_spec='${wl}-E' 11286 11287 # hardcode_minus_L: Not really in the search PATH, 11288 # but as the default location of the library. 11289 hardcode_minus_L=yes 11290 ;; 11291 esac 11292 fi 11293 ;; 11294 11295 irix5* | irix6* | nonstopux*) 11296 if test "$GCC" = yes; then 11297 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' 11298 # Try to use the -exported_symbol ld option, if it does not 11299 # work, assume that -exports_file does not work either and 11300 # implicitly export all symbols. 11301 # This should be the same for all languages, so no per-tag cache variable. 11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11303$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11304if ${lt_cv_irix_exported_symbol+:} false; then : 11305 $as_echo_n "(cached) " >&6 11306else 11307 save_LDFLAGS="$LDFLAGS" 11308 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 11309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11310/* end confdefs.h. */ 11311int foo (void) { return 0; } 11312_ACEOF 11313if ac_fn_c_try_link "$LINENO"; then : 11314 lt_cv_irix_exported_symbol=yes 11315else 11316 lt_cv_irix_exported_symbol=no 11317fi 11318rm -f core conftest.err conftest.$ac_objext \ 11319 conftest$ac_exeext conftest.$ac_ext 11320 LDFLAGS="$save_LDFLAGS" 11321fi 11322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11323$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11324 if test "$lt_cv_irix_exported_symbol" = yes; then 11325 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' 11326 fi 11327 else 11328 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' 11329 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' 11330 fi 11331 archive_cmds_need_lc='no' 11332 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11333 hardcode_libdir_separator=: 11334 inherit_rpath=yes 11335 link_all_deplibs=yes 11336 ;; 11337 11338 netbsd*) 11339 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11340 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11341 else 11342 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11343 fi 11344 hardcode_libdir_flag_spec='-R$libdir' 11345 hardcode_direct=yes 11346 hardcode_shlibpath_var=no 11347 ;; 11348 11349 newsos6) 11350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11351 hardcode_direct=yes 11352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11353 hardcode_libdir_separator=: 11354 hardcode_shlibpath_var=no 11355 ;; 11356 11357 *nto* | *qnx*) 11358 ;; 11359 11360 openbsd*) 11361 if test -f /usr/libexec/ld.so; then 11362 hardcode_direct=yes 11363 hardcode_shlibpath_var=no 11364 hardcode_direct_absolute=yes 11365 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11366 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11367 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 11368 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11369 export_dynamic_flag_spec='${wl}-E' 11370 else 11371 case $host_os in 11372 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 11373 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11374 hardcode_libdir_flag_spec='-R$libdir' 11375 ;; 11376 *) 11377 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11378 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11379 ;; 11380 esac 11381 fi 11382 else 11383 ld_shlibs=no 11384 fi 11385 ;; 11386 11387 os2*) 11388 hardcode_libdir_flag_spec='-L$libdir' 11389 hardcode_minus_L=yes 11390 allow_undefined_flag=unsupported 11391 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 11392 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11393 ;; 11394 11395 osf3*) 11396 if test "$GCC" = yes; then 11397 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11398 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' 11399 else 11400 allow_undefined_flag=' -expect_unresolved \*' 11401 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' 11402 fi 11403 archive_cmds_need_lc='no' 11404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11405 hardcode_libdir_separator=: 11406 ;; 11407 11408 osf4* | osf5*) # as osf3* with the addition of -msym flag 11409 if test "$GCC" = yes; then 11410 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11411 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' 11412 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11413 else 11414 allow_undefined_flag=' -expect_unresolved \*' 11415 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' 11416 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~ 11417 $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' 11418 11419 # Both c and cxx compiler support -rpath directly 11420 hardcode_libdir_flag_spec='-rpath $libdir' 11421 fi 11422 archive_cmds_need_lc='no' 11423 hardcode_libdir_separator=: 11424 ;; 11425 11426 solaris*) 11427 no_undefined_flag=' -z defs' 11428 if test "$GCC" = yes; then 11429 wlarc='${wl}' 11430 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11431 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11432 $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' 11433 else 11434 case `$CC -V 2>&1` in 11435 *"Compilers 5.0"*) 11436 wlarc='' 11437 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 11438 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11439 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11440 ;; 11441 *) 11442 wlarc='${wl}' 11443 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11444 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11445 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11446 ;; 11447 esac 11448 fi 11449 hardcode_libdir_flag_spec='-R$libdir' 11450 hardcode_shlibpath_var=no 11451 case $host_os in 11452 solaris2.[0-5] | solaris2.[0-5].*) ;; 11453 *) 11454 # The compiler driver will combine and reorder linker options, 11455 # but understands `-z linker_flag'. GCC discards it without `$wl', 11456 # but is careful enough not to reorder. 11457 # Supported since Solaris 2.6 (maybe 2.5.1?) 11458 if test "$GCC" = yes; then 11459 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11460 else 11461 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11462 fi 11463 ;; 11464 esac 11465 link_all_deplibs=yes 11466 ;; 11467 11468 sunos4*) 11469 if test "x$host_vendor" = xsequent; then 11470 # Use $CC to link under sequent, because it throws in some extra .o 11471 # files that make .init and .fini sections work. 11472 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11473 else 11474 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11475 fi 11476 hardcode_libdir_flag_spec='-L$libdir' 11477 hardcode_direct=yes 11478 hardcode_minus_L=yes 11479 hardcode_shlibpath_var=no 11480 ;; 11481 11482 sysv4) 11483 case $host_vendor in 11484 sni) 11485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11486 hardcode_direct=yes # is this really true??? 11487 ;; 11488 siemens) 11489 ## LD is ld it makes a PLAMLIB 11490 ## CC just makes a GrossModule. 11491 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11492 reload_cmds='$CC -r -o $output$reload_objs' 11493 hardcode_direct=no 11494 ;; 11495 motorola) 11496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11497 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11498 ;; 11499 esac 11500 runpath_var='LD_RUN_PATH' 11501 hardcode_shlibpath_var=no 11502 ;; 11503 11504 sysv4.3*) 11505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11506 hardcode_shlibpath_var=no 11507 export_dynamic_flag_spec='-Bexport' 11508 ;; 11509 11510 sysv4*MP*) 11511 if test -d /usr/nec; then 11512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11513 hardcode_shlibpath_var=no 11514 runpath_var=LD_RUN_PATH 11515 hardcode_runpath_var=yes 11516 ld_shlibs=yes 11517 fi 11518 ;; 11519 11520 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11521 no_undefined_flag='${wl}-z,text' 11522 archive_cmds_need_lc=no 11523 hardcode_shlibpath_var=no 11524 runpath_var='LD_RUN_PATH' 11525 11526 if test "$GCC" = yes; then 11527 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11528 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11529 else 11530 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11531 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11532 fi 11533 ;; 11534 11535 sysv5* | sco3.2v5* | sco5v6*) 11536 # Note: We can NOT use -z defs as we might desire, because we do not 11537 # link with -lc, and that would cause any symbols used from libc to 11538 # always be unresolved, which means just about no library would 11539 # ever link correctly. If we're not using GNU ld we use -z text 11540 # though, which does catch some bad symbols but isn't as heavy-handed 11541 # as -z defs. 11542 no_undefined_flag='${wl}-z,text' 11543 allow_undefined_flag='${wl}-z,nodefs' 11544 archive_cmds_need_lc=no 11545 hardcode_shlibpath_var=no 11546 hardcode_libdir_flag_spec='${wl}-R,$libdir' 11547 hardcode_libdir_separator=':' 11548 link_all_deplibs=yes 11549 export_dynamic_flag_spec='${wl}-Bexport' 11550 runpath_var='LD_RUN_PATH' 11551 11552 if test "$GCC" = yes; then 11553 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11554 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11555 else 11556 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11557 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11558 fi 11559 ;; 11560 11561 uts4*) 11562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11563 hardcode_libdir_flag_spec='-L$libdir' 11564 hardcode_shlibpath_var=no 11565 ;; 11566 11567 *) 11568 ld_shlibs=no 11569 ;; 11570 esac 11571 11572 if test x$host_vendor = xsni; then 11573 case $host in 11574 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11575 export_dynamic_flag_spec='${wl}-Blargedynsym' 11576 ;; 11577 esac 11578 fi 11579 fi 11580 11581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11582$as_echo "$ld_shlibs" >&6; } 11583test "$ld_shlibs" = no && can_build_shared=no 11584 11585with_gnu_ld=$with_gnu_ld 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601# 11602# Do we need to explicitly link libc? 11603# 11604case "x$archive_cmds_need_lc" in 11605x|xyes) 11606 # Assume -lc should be added 11607 archive_cmds_need_lc=yes 11608 11609 if test "$enable_shared" = yes && test "$GCC" = yes; then 11610 case $archive_cmds in 11611 *'~'*) 11612 # FIXME: we may have to deal with multi-command sequences. 11613 ;; 11614 '$CC '*) 11615 # Test whether the compiler implicitly links with -lc since on some 11616 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11617 # to ld, don't add -lc before -lgcc. 11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11619$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11620if ${lt_cv_archive_cmds_need_lc+:} false; then : 11621 $as_echo_n "(cached) " >&6 11622else 11623 $RM conftest* 11624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11625 11626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11627 (eval $ac_compile) 2>&5 11628 ac_status=$? 11629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11630 test $ac_status = 0; } 2>conftest.err; then 11631 soname=conftest 11632 lib=conftest 11633 libobjs=conftest.$ac_objext 11634 deplibs= 11635 wl=$lt_prog_compiler_wl 11636 pic_flag=$lt_prog_compiler_pic 11637 compiler_flags=-v 11638 linker_flags=-v 11639 verstring= 11640 output_objdir=. 11641 libname=conftest 11642 lt_save_allow_undefined_flag=$allow_undefined_flag 11643 allow_undefined_flag= 11644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11645 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11646 ac_status=$? 11647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11648 test $ac_status = 0; } 11649 then 11650 lt_cv_archive_cmds_need_lc=no 11651 else 11652 lt_cv_archive_cmds_need_lc=yes 11653 fi 11654 allow_undefined_flag=$lt_save_allow_undefined_flag 11655 else 11656 cat conftest.err 1>&5 11657 fi 11658 $RM conftest* 11659 11660fi 11661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11662$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11663 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11664 ;; 11665 esac 11666 fi 11667 ;; 11668esac 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 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 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11822$as_echo_n "checking dynamic linker characteristics... " >&6; } 11823 11824if test "$GCC" = yes; then 11825 case $host_os in 11826 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 11827 *) lt_awk_arg="/^libraries:/" ;; 11828 esac 11829 case $host_os in 11830 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 11831 *) lt_sed_strip_eq="s,=/,/,g" ;; 11832 esac 11833 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11834 case $lt_search_path_spec in 11835 *\;*) 11836 # if the path contains ";" then we assume it to be the separator 11837 # otherwise default to the standard path separator (i.e. ":") - it is 11838 # assumed that no part of a normal pathname contains ";" but that should 11839 # okay in the real world where ";" in dirpaths is itself problematic. 11840 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11841 ;; 11842 *) 11843 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11844 ;; 11845 esac 11846 # Ok, now we have the path, separated by spaces, we can step through it 11847 # and add multilib dir if necessary. 11848 lt_tmp_lt_search_path_spec= 11849 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11850 for lt_sys_path in $lt_search_path_spec; do 11851 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 11852 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 11853 else 11854 test -d "$lt_sys_path" && \ 11855 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11856 fi 11857 done 11858 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11859BEGIN {RS=" "; FS="/|\n";} { 11860 lt_foo=""; 11861 lt_count=0; 11862 for (lt_i = NF; lt_i > 0; lt_i--) { 11863 if ($lt_i != "" && $lt_i != ".") { 11864 if ($lt_i == "..") { 11865 lt_count++; 11866 } else { 11867 if (lt_count == 0) { 11868 lt_foo="/" $lt_i lt_foo; 11869 } else { 11870 lt_count--; 11871 } 11872 } 11873 } 11874 } 11875 if (lt_foo != "") { lt_freq[lt_foo]++; } 11876 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11877}'` 11878 # AWK program above erroneously prepends '/' to C:/dos/paths 11879 # for these hosts. 11880 case $host_os in 11881 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11882 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 11883 esac 11884 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11885else 11886 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11887fi 11888library_names_spec= 11889libname_spec='lib$name' 11890soname_spec= 11891shrext_cmds=".so" 11892postinstall_cmds= 11893postuninstall_cmds= 11894finish_cmds= 11895finish_eval= 11896shlibpath_var= 11897shlibpath_overrides_runpath=unknown 11898version_type=none 11899dynamic_linker="$host_os ld.so" 11900sys_lib_dlsearch_path_spec="/lib /usr/lib" 11901need_lib_prefix=unknown 11902hardcode_into_libs=no 11903 11904# when you set need_version to no, make sure it does not cause -set_version 11905# flags to be left without arguments 11906need_version=unknown 11907 11908case $host_os in 11909aix3*) 11910 version_type=linux # correct to gnu/linux during the next big refactor 11911 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11912 shlibpath_var=LIBPATH 11913 11914 # AIX 3 has no versioning support, so we append a major version to the name. 11915 soname_spec='${libname}${release}${shared_ext}$major' 11916 ;; 11917 11918aix[4-9]*) 11919 version_type=linux # correct to gnu/linux during the next big refactor 11920 need_lib_prefix=no 11921 need_version=no 11922 hardcode_into_libs=yes 11923 if test "$host_cpu" = ia64; then 11924 # AIX 5 supports IA64 11925 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11926 shlibpath_var=LD_LIBRARY_PATH 11927 else 11928 # With GCC up to 2.95.x, collect2 would create an import file 11929 # for dependence libraries. The import file would start with 11930 # the line `#! .'. This would cause the generated library to 11931 # depend on `.', always an invalid library. This was fixed in 11932 # development snapshots of GCC prior to 3.0. 11933 case $host_os in 11934 aix4 | aix4.[01] | aix4.[01].*) 11935 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11936 echo ' yes ' 11937 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 11938 : 11939 else 11940 can_build_shared=no 11941 fi 11942 ;; 11943 esac 11944 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11945 # soname into executable. Probably we can add versioning support to 11946 # collect2, so additional links can be useful in future. 11947 if test "$aix_use_runtimelinking" = yes; then 11948 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11949 # instead of lib<name>.a to let people know that these are not 11950 # typical AIX shared libraries. 11951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11952 else 11953 # We preserve .a as extension for shared libraries through AIX4.2 11954 # and later when we are not doing run time linking. 11955 library_names_spec='${libname}${release}.a $libname.a' 11956 soname_spec='${libname}${release}${shared_ext}$major' 11957 fi 11958 shlibpath_var=LIBPATH 11959 fi 11960 ;; 11961 11962amigaos*) 11963 case $host_cpu in 11964 powerpc) 11965 # Since July 2007 AmigaOS4 officially supports .so libraries. 11966 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11968 ;; 11969 m68k) 11970 library_names_spec='$libname.ixlibrary $libname.a' 11971 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11972 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11973 ;; 11974 esac 11975 ;; 11976 11977beos*) 11978 library_names_spec='${libname}${shared_ext}' 11979 dynamic_linker="$host_os ld.so" 11980 shlibpath_var=LIBRARY_PATH 11981 ;; 11982 11983bsdi[45]*) 11984 version_type=linux # correct to gnu/linux during the next big refactor 11985 need_version=no 11986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11987 soname_spec='${libname}${release}${shared_ext}$major' 11988 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11989 shlibpath_var=LD_LIBRARY_PATH 11990 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11991 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11992 # the default ld.so.conf also contains /usr/contrib/lib and 11993 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11994 # libtool to hard-code these into programs 11995 ;; 11996 11997cygwin* | mingw* | pw32* | cegcc*) 11998 version_type=windows 11999 shrext_cmds=".dll" 12000 need_version=no 12001 need_lib_prefix=no 12002 12003 case $GCC,$cc_basename in 12004 yes,*) 12005 # gcc 12006 library_names_spec='$libname.dll.a' 12007 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12008 postinstall_cmds='base_file=`basename \${file}`~ 12009 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12010 dldir=$destdir/`dirname \$dlpath`~ 12011 test -d \$dldir || mkdir -p \$dldir~ 12012 $install_prog $dir/$dlname \$dldir/$dlname~ 12013 chmod a+x \$dldir/$dlname~ 12014 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12015 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12016 fi' 12017 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12018 dlpath=$dir/\$dldll~ 12019 $RM \$dlpath' 12020 shlibpath_overrides_runpath=yes 12021 12022 case $host_os in 12023 cygwin*) 12024 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12025 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12026 12027 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12028 ;; 12029 mingw* | cegcc*) 12030 # MinGW DLLs use traditional 'lib' prefix 12031 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12032 ;; 12033 pw32*) 12034 # pw32 DLLs use 'pw' prefix rather than 'lib' 12035 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12036 ;; 12037 esac 12038 dynamic_linker='Win32 ld.exe' 12039 ;; 12040 12041 *,cl*) 12042 # Native MSVC 12043 libname_spec='$name' 12044 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12045 library_names_spec='${libname}.dll.lib' 12046 12047 case $build_os in 12048 mingw*) 12049 sys_lib_search_path_spec= 12050 lt_save_ifs=$IFS 12051 IFS=';' 12052 for lt_path in $LIB 12053 do 12054 IFS=$lt_save_ifs 12055 # Let DOS variable expansion print the short 8.3 style file name. 12056 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12057 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12058 done 12059 IFS=$lt_save_ifs 12060 # Convert to MSYS style. 12061 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12062 ;; 12063 cygwin*) 12064 # Convert to unix form, then to dos form, then back to unix form 12065 # but this time dos style (no spaces!) so that the unix form looks 12066 # like /cygdrive/c/PROGRA~1:/cygdr... 12067 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12068 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12069 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12070 ;; 12071 *) 12072 sys_lib_search_path_spec="$LIB" 12073 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12074 # It is most probably a Windows format PATH. 12075 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12076 else 12077 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12078 fi 12079 # FIXME: find the short name or the path components, as spaces are 12080 # common. (e.g. "Program Files" -> "PROGRA~1") 12081 ;; 12082 esac 12083 12084 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12085 postinstall_cmds='base_file=`basename \${file}`~ 12086 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12087 dldir=$destdir/`dirname \$dlpath`~ 12088 test -d \$dldir || mkdir -p \$dldir~ 12089 $install_prog $dir/$dlname \$dldir/$dlname' 12090 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12091 dlpath=$dir/\$dldll~ 12092 $RM \$dlpath' 12093 shlibpath_overrides_runpath=yes 12094 dynamic_linker='Win32 link.exe' 12095 ;; 12096 12097 *) 12098 # Assume MSVC wrapper 12099 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12100 dynamic_linker='Win32 ld.exe' 12101 ;; 12102 esac 12103 # FIXME: first we should search . and the directory the executable is in 12104 shlibpath_var=PATH 12105 ;; 12106 12107darwin* | rhapsody*) 12108 dynamic_linker="$host_os dyld" 12109 version_type=darwin 12110 need_lib_prefix=no 12111 need_version=no 12112 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12113 soname_spec='${libname}${release}${major}$shared_ext' 12114 shlibpath_overrides_runpath=yes 12115 shlibpath_var=DYLD_LIBRARY_PATH 12116 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12117 12118 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12119 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12120 ;; 12121 12122dgux*) 12123 version_type=linux # correct to gnu/linux during the next big refactor 12124 need_lib_prefix=no 12125 need_version=no 12126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12127 soname_spec='${libname}${release}${shared_ext}$major' 12128 shlibpath_var=LD_LIBRARY_PATH 12129 ;; 12130 12131freebsd* | dragonfly*) 12132 # DragonFly does not have aout. When/if they implement a new 12133 # versioning mechanism, adjust this. 12134 if test -x /usr/bin/objformat; then 12135 objformat=`/usr/bin/objformat` 12136 else 12137 case $host_os in 12138 freebsd[23].*) objformat=aout ;; 12139 *) objformat=elf ;; 12140 esac 12141 fi 12142 version_type=freebsd-$objformat 12143 case $version_type in 12144 freebsd-elf*) 12145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12146 need_version=no 12147 need_lib_prefix=no 12148 ;; 12149 freebsd-*) 12150 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12151 need_version=yes 12152 ;; 12153 esac 12154 shlibpath_var=LD_LIBRARY_PATH 12155 case $host_os in 12156 freebsd2.*) 12157 shlibpath_overrides_runpath=yes 12158 ;; 12159 freebsd3.[01]* | freebsdelf3.[01]*) 12160 shlibpath_overrides_runpath=yes 12161 hardcode_into_libs=yes 12162 ;; 12163 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12164 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12165 shlibpath_overrides_runpath=no 12166 hardcode_into_libs=yes 12167 ;; 12168 *) # from 4.6 on, and DragonFly 12169 shlibpath_overrides_runpath=yes 12170 hardcode_into_libs=yes 12171 ;; 12172 esac 12173 ;; 12174 12175gnu*) 12176 version_type=linux # correct to gnu/linux during the next big refactor 12177 need_lib_prefix=no 12178 need_version=no 12179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12180 soname_spec='${libname}${release}${shared_ext}$major' 12181 shlibpath_var=LD_LIBRARY_PATH 12182 shlibpath_overrides_runpath=no 12183 hardcode_into_libs=yes 12184 ;; 12185 12186haiku*) 12187 version_type=linux # correct to gnu/linux during the next big refactor 12188 need_lib_prefix=no 12189 need_version=no 12190 dynamic_linker="$host_os runtime_loader" 12191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12192 soname_spec='${libname}${release}${shared_ext}$major' 12193 shlibpath_var=LIBRARY_PATH 12194 shlibpath_overrides_runpath=yes 12195 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12196 hardcode_into_libs=yes 12197 ;; 12198 12199hpux9* | hpux10* | hpux11*) 12200 # Give a soname corresponding to the major version so that dld.sl refuses to 12201 # link against other versions. 12202 version_type=sunos 12203 need_lib_prefix=no 12204 need_version=no 12205 case $host_cpu in 12206 ia64*) 12207 shrext_cmds='.so' 12208 hardcode_into_libs=yes 12209 dynamic_linker="$host_os dld.so" 12210 shlibpath_var=LD_LIBRARY_PATH 12211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12213 soname_spec='${libname}${release}${shared_ext}$major' 12214 if test "X$HPUX_IA64_MODE" = X32; then 12215 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12216 else 12217 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12218 fi 12219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12220 ;; 12221 hppa*64*) 12222 shrext_cmds='.sl' 12223 hardcode_into_libs=yes 12224 dynamic_linker="$host_os dld.sl" 12225 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12228 soname_spec='${libname}${release}${shared_ext}$major' 12229 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12231 ;; 12232 *) 12233 shrext_cmds='.sl' 12234 dynamic_linker="$host_os dld.sl" 12235 shlibpath_var=SHLIB_PATH 12236 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12238 soname_spec='${libname}${release}${shared_ext}$major' 12239 ;; 12240 esac 12241 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12242 postinstall_cmds='chmod 555 $lib' 12243 # or fails outright, so override atomically: 12244 install_override_mode=555 12245 ;; 12246 12247interix[3-9]*) 12248 version_type=linux # correct to gnu/linux during the next big refactor 12249 need_lib_prefix=no 12250 need_version=no 12251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12252 soname_spec='${libname}${release}${shared_ext}$major' 12253 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12254 shlibpath_var=LD_LIBRARY_PATH 12255 shlibpath_overrides_runpath=no 12256 hardcode_into_libs=yes 12257 ;; 12258 12259irix5* | irix6* | nonstopux*) 12260 case $host_os in 12261 nonstopux*) version_type=nonstopux ;; 12262 *) 12263 if test "$lt_cv_prog_gnu_ld" = yes; then 12264 version_type=linux # correct to gnu/linux during the next big refactor 12265 else 12266 version_type=irix 12267 fi ;; 12268 esac 12269 need_lib_prefix=no 12270 need_version=no 12271 soname_spec='${libname}${release}${shared_ext}$major' 12272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12273 case $host_os in 12274 irix5* | nonstopux*) 12275 libsuff= shlibsuff= 12276 ;; 12277 *) 12278 case $LD in # libtool.m4 will add one of these switches to LD 12279 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12280 libsuff= shlibsuff= libmagic=32-bit;; 12281 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12282 libsuff=32 shlibsuff=N32 libmagic=N32;; 12283 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12284 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12285 *) libsuff= shlibsuff= libmagic=never-match;; 12286 esac 12287 ;; 12288 esac 12289 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12290 shlibpath_overrides_runpath=no 12291 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12292 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12293 hardcode_into_libs=yes 12294 ;; 12295 12296# No shared lib support for Linux oldld, aout, or coff. 12297linux*oldld* | linux*aout* | linux*coff*) 12298 dynamic_linker=no 12299 ;; 12300 12301# This must be glibc/ELF. 12302linux* | k*bsd*-gnu | kopensolaris*-gnu) 12303 version_type=linux # correct to gnu/linux during the next big refactor 12304 need_lib_prefix=no 12305 need_version=no 12306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12307 soname_spec='${libname}${release}${shared_ext}$major' 12308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12309 shlibpath_var=LD_LIBRARY_PATH 12310 shlibpath_overrides_runpath=no 12311 12312 # Some binutils ld are patched to set DT_RUNPATH 12313 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12314 $as_echo_n "(cached) " >&6 12315else 12316 lt_cv_shlibpath_overrides_runpath=no 12317 save_LDFLAGS=$LDFLAGS 12318 save_libdir=$libdir 12319 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12320 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12322/* end confdefs.h. */ 12323 12324int 12325main () 12326{ 12327 12328 ; 12329 return 0; 12330} 12331_ACEOF 12332if ac_fn_c_try_link "$LINENO"; then : 12333 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12334 lt_cv_shlibpath_overrides_runpath=yes 12335fi 12336fi 12337rm -f core conftest.err conftest.$ac_objext \ 12338 conftest$ac_exeext conftest.$ac_ext 12339 LDFLAGS=$save_LDFLAGS 12340 libdir=$save_libdir 12341 12342fi 12343 12344 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12345 12346 # This implies no fast_install, which is unacceptable. 12347 # Some rework will be needed to allow for fast_install 12348 # before this can be enabled. 12349 hardcode_into_libs=yes 12350 12351 # Add ABI-specific directories to the system library path. 12352 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 12353 12354 # Append ld.so.conf contents to the search path 12355 if test -f /etc/ld.so.conf; then 12356 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' ' '` 12357 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 12358 12359 fi 12360 12361 # We used to test for /lib/ld.so.1 and disable shared libraries on 12362 # powerpc, because MkLinux only supported shared libraries with the 12363 # GNU dynamic linker. Since this was broken with cross compilers, 12364 # most powerpc-linux boxes support dynamic linking these days and 12365 # people can always --disable-shared, the test was removed, and we 12366 # assume the GNU/Linux dynamic linker is in use. 12367 dynamic_linker='GNU/Linux ld.so' 12368 ;; 12369 12370netbsd*) 12371 version_type=sunos 12372 need_lib_prefix=no 12373 need_version=no 12374 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12377 dynamic_linker='NetBSD (a.out) ld.so' 12378 else 12379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12380 soname_spec='${libname}${release}${shared_ext}$major' 12381 dynamic_linker='NetBSD ld.elf_so' 12382 fi 12383 shlibpath_var=LD_LIBRARY_PATH 12384 shlibpath_overrides_runpath=yes 12385 hardcode_into_libs=yes 12386 ;; 12387 12388newsos6) 12389 version_type=linux # correct to gnu/linux during the next big refactor 12390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12391 shlibpath_var=LD_LIBRARY_PATH 12392 shlibpath_overrides_runpath=yes 12393 ;; 12394 12395*nto* | *qnx*) 12396 version_type=qnx 12397 need_lib_prefix=no 12398 need_version=no 12399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12400 soname_spec='${libname}${release}${shared_ext}$major' 12401 shlibpath_var=LD_LIBRARY_PATH 12402 shlibpath_overrides_runpath=no 12403 hardcode_into_libs=yes 12404 dynamic_linker='ldqnx.so' 12405 ;; 12406 12407openbsd*) 12408 version_type=sunos 12409 sys_lib_dlsearch_path_spec="/usr/lib" 12410 need_lib_prefix=no 12411 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12412 case $host_os in 12413 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12414 *) need_version=no ;; 12415 esac 12416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12418 shlibpath_var=LD_LIBRARY_PATH 12419 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12420 case $host_os in 12421 openbsd2.[89] | openbsd2.[89].*) 12422 shlibpath_overrides_runpath=no 12423 ;; 12424 *) 12425 shlibpath_overrides_runpath=yes 12426 ;; 12427 esac 12428 else 12429 shlibpath_overrides_runpath=yes 12430 fi 12431 ;; 12432 12433os2*) 12434 libname_spec='$name' 12435 shrext_cmds=".dll" 12436 need_lib_prefix=no 12437 library_names_spec='$libname${shared_ext} $libname.a' 12438 dynamic_linker='OS/2 ld.exe' 12439 shlibpath_var=LIBPATH 12440 ;; 12441 12442osf3* | osf4* | osf5*) 12443 version_type=osf 12444 need_lib_prefix=no 12445 need_version=no 12446 soname_spec='${libname}${release}${shared_ext}$major' 12447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12448 shlibpath_var=LD_LIBRARY_PATH 12449 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12450 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12451 ;; 12452 12453rdos*) 12454 dynamic_linker=no 12455 ;; 12456 12457solaris*) 12458 version_type=linux # correct to gnu/linux during the next big refactor 12459 need_lib_prefix=no 12460 need_version=no 12461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12462 soname_spec='${libname}${release}${shared_ext}$major' 12463 shlibpath_var=LD_LIBRARY_PATH 12464 shlibpath_overrides_runpath=yes 12465 hardcode_into_libs=yes 12466 # ldd complains unless libraries are executable 12467 postinstall_cmds='chmod +x $lib' 12468 ;; 12469 12470sunos4*) 12471 version_type=sunos 12472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12473 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12474 shlibpath_var=LD_LIBRARY_PATH 12475 shlibpath_overrides_runpath=yes 12476 if test "$with_gnu_ld" = yes; then 12477 need_lib_prefix=no 12478 fi 12479 need_version=yes 12480 ;; 12481 12482sysv4 | sysv4.3*) 12483 version_type=linux # correct to gnu/linux during the next big refactor 12484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12485 soname_spec='${libname}${release}${shared_ext}$major' 12486 shlibpath_var=LD_LIBRARY_PATH 12487 case $host_vendor in 12488 sni) 12489 shlibpath_overrides_runpath=no 12490 need_lib_prefix=no 12491 runpath_var=LD_RUN_PATH 12492 ;; 12493 siemens) 12494 need_lib_prefix=no 12495 ;; 12496 motorola) 12497 need_lib_prefix=no 12498 need_version=no 12499 shlibpath_overrides_runpath=no 12500 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12501 ;; 12502 esac 12503 ;; 12504 12505sysv4*MP*) 12506 if test -d /usr/nec ;then 12507 version_type=linux # correct to gnu/linux during the next big refactor 12508 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12509 soname_spec='$libname${shared_ext}.$major' 12510 shlibpath_var=LD_LIBRARY_PATH 12511 fi 12512 ;; 12513 12514sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12515 version_type=freebsd-elf 12516 need_lib_prefix=no 12517 need_version=no 12518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12519 soname_spec='${libname}${release}${shared_ext}$major' 12520 shlibpath_var=LD_LIBRARY_PATH 12521 shlibpath_overrides_runpath=yes 12522 hardcode_into_libs=yes 12523 if test "$with_gnu_ld" = yes; then 12524 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12525 else 12526 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12527 case $host_os in 12528 sco3.2v5*) 12529 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12530 ;; 12531 esac 12532 fi 12533 sys_lib_dlsearch_path_spec='/usr/lib' 12534 ;; 12535 12536tpf*) 12537 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12538 version_type=linux # correct to gnu/linux during the next big refactor 12539 need_lib_prefix=no 12540 need_version=no 12541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12542 shlibpath_var=LD_LIBRARY_PATH 12543 shlibpath_overrides_runpath=no 12544 hardcode_into_libs=yes 12545 ;; 12546 12547uts4*) 12548 version_type=linux # correct to gnu/linux during the next big refactor 12549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12550 soname_spec='${libname}${release}${shared_ext}$major' 12551 shlibpath_var=LD_LIBRARY_PATH 12552 ;; 12553 12554*) 12555 dynamic_linker=no 12556 ;; 12557esac 12558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12559$as_echo "$dynamic_linker" >&6; } 12560test "$dynamic_linker" = no && can_build_shared=no 12561 12562variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12563if test "$GCC" = yes; then 12564 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12565fi 12566 12567if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 12568 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 12569fi 12570if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 12571 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 12572fi 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12666$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12667hardcode_action= 12668if test -n "$hardcode_libdir_flag_spec" || 12669 test -n "$runpath_var" || 12670 test "X$hardcode_automatic" = "Xyes" ; then 12671 12672 # We can hardcode non-existent directories. 12673 if test "$hardcode_direct" != no && 12674 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12675 # have to relink, otherwise we might link with an installed library 12676 # when we should be linking with a yet-to-be-installed one 12677 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 12678 test "$hardcode_minus_L" != no; then 12679 # Linking always hardcodes the temporary library directory. 12680 hardcode_action=relink 12681 else 12682 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12683 hardcode_action=immediate 12684 fi 12685else 12686 # We cannot hardcode anything, or else we can only hardcode existing 12687 # directories. 12688 hardcode_action=unsupported 12689fi 12690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12691$as_echo "$hardcode_action" >&6; } 12692 12693if test "$hardcode_action" = relink || 12694 test "$inherit_rpath" = yes; then 12695 # Fast installation is not supported 12696 enable_fast_install=no 12697elif test "$shlibpath_overrides_runpath" = yes || 12698 test "$enable_shared" = no; then 12699 # Fast installation is not necessary 12700 enable_fast_install=needless 12701fi 12702 12703 12704 12705 12706 12707 12708 if test "x$enable_dlopen" != xyes; then 12709 enable_dlopen=unknown 12710 enable_dlopen_self=unknown 12711 enable_dlopen_self_static=unknown 12712else 12713 lt_cv_dlopen=no 12714 lt_cv_dlopen_libs= 12715 12716 case $host_os in 12717 beos*) 12718 lt_cv_dlopen="load_add_on" 12719 lt_cv_dlopen_libs= 12720 lt_cv_dlopen_self=yes 12721 ;; 12722 12723 mingw* | pw32* | cegcc*) 12724 lt_cv_dlopen="LoadLibrary" 12725 lt_cv_dlopen_libs= 12726 ;; 12727 12728 cygwin*) 12729 lt_cv_dlopen="dlopen" 12730 lt_cv_dlopen_libs= 12731 ;; 12732 12733 darwin*) 12734 # if libdl is installed we need to link against it 12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12736$as_echo_n "checking for dlopen in -ldl... " >&6; } 12737if ${ac_cv_lib_dl_dlopen+:} false; then : 12738 $as_echo_n "(cached) " >&6 12739else 12740 ac_check_lib_save_LIBS=$LIBS 12741LIBS="-ldl $LIBS" 12742cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12743/* end confdefs.h. */ 12744 12745/* Override any GCC internal prototype to avoid an error. 12746 Use char because int might match the return type of a GCC 12747 builtin and then its argument prototype would still apply. */ 12748#ifdef __cplusplus 12749extern "C" 12750#endif 12751char dlopen (); 12752int 12753main () 12754{ 12755return dlopen (); 12756 ; 12757 return 0; 12758} 12759_ACEOF 12760if ac_fn_c_try_link "$LINENO"; then : 12761 ac_cv_lib_dl_dlopen=yes 12762else 12763 ac_cv_lib_dl_dlopen=no 12764fi 12765rm -f core conftest.err conftest.$ac_objext \ 12766 conftest$ac_exeext conftest.$ac_ext 12767LIBS=$ac_check_lib_save_LIBS 12768fi 12769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12770$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12771if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12772 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12773else 12774 12775 lt_cv_dlopen="dyld" 12776 lt_cv_dlopen_libs= 12777 lt_cv_dlopen_self=yes 12778 12779fi 12780 12781 ;; 12782 12783 *) 12784 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12785if test "x$ac_cv_func_shl_load" = xyes; then : 12786 lt_cv_dlopen="shl_load" 12787else 12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12789$as_echo_n "checking for shl_load in -ldld... " >&6; } 12790if ${ac_cv_lib_dld_shl_load+:} false; then : 12791 $as_echo_n "(cached) " >&6 12792else 12793 ac_check_lib_save_LIBS=$LIBS 12794LIBS="-ldld $LIBS" 12795cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12796/* end confdefs.h. */ 12797 12798/* Override any GCC internal prototype to avoid an error. 12799 Use char because int might match the return type of a GCC 12800 builtin and then its argument prototype would still apply. */ 12801#ifdef __cplusplus 12802extern "C" 12803#endif 12804char shl_load (); 12805int 12806main () 12807{ 12808return shl_load (); 12809 ; 12810 return 0; 12811} 12812_ACEOF 12813if ac_fn_c_try_link "$LINENO"; then : 12814 ac_cv_lib_dld_shl_load=yes 12815else 12816 ac_cv_lib_dld_shl_load=no 12817fi 12818rm -f core conftest.err conftest.$ac_objext \ 12819 conftest$ac_exeext conftest.$ac_ext 12820LIBS=$ac_check_lib_save_LIBS 12821fi 12822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12823$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12824if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12825 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 12826else 12827 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12828if test "x$ac_cv_func_dlopen" = xyes; then : 12829 lt_cv_dlopen="dlopen" 12830else 12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12832$as_echo_n "checking for dlopen in -ldl... " >&6; } 12833if ${ac_cv_lib_dl_dlopen+:} false; then : 12834 $as_echo_n "(cached) " >&6 12835else 12836 ac_check_lib_save_LIBS=$LIBS 12837LIBS="-ldl $LIBS" 12838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12839/* end confdefs.h. */ 12840 12841/* Override any GCC internal prototype to avoid an error. 12842 Use char because int might match the return type of a GCC 12843 builtin and then its argument prototype would still apply. */ 12844#ifdef __cplusplus 12845extern "C" 12846#endif 12847char dlopen (); 12848int 12849main () 12850{ 12851return dlopen (); 12852 ; 12853 return 0; 12854} 12855_ACEOF 12856if ac_fn_c_try_link "$LINENO"; then : 12857 ac_cv_lib_dl_dlopen=yes 12858else 12859 ac_cv_lib_dl_dlopen=no 12860fi 12861rm -f core conftest.err conftest.$ac_objext \ 12862 conftest$ac_exeext conftest.$ac_ext 12863LIBS=$ac_check_lib_save_LIBS 12864fi 12865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12866$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12867if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12868 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12869else 12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12871$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12872if ${ac_cv_lib_svld_dlopen+:} false; then : 12873 $as_echo_n "(cached) " >&6 12874else 12875 ac_check_lib_save_LIBS=$LIBS 12876LIBS="-lsvld $LIBS" 12877cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12878/* end confdefs.h. */ 12879 12880/* Override any GCC internal prototype to avoid an error. 12881 Use char because int might match the return type of a GCC 12882 builtin and then its argument prototype would still apply. */ 12883#ifdef __cplusplus 12884extern "C" 12885#endif 12886char dlopen (); 12887int 12888main () 12889{ 12890return dlopen (); 12891 ; 12892 return 0; 12893} 12894_ACEOF 12895if ac_fn_c_try_link "$LINENO"; then : 12896 ac_cv_lib_svld_dlopen=yes 12897else 12898 ac_cv_lib_svld_dlopen=no 12899fi 12900rm -f core conftest.err conftest.$ac_objext \ 12901 conftest$ac_exeext conftest.$ac_ext 12902LIBS=$ac_check_lib_save_LIBS 12903fi 12904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12905$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12906if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12907 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12908else 12909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12910$as_echo_n "checking for dld_link in -ldld... " >&6; } 12911if ${ac_cv_lib_dld_dld_link+:} false; then : 12912 $as_echo_n "(cached) " >&6 12913else 12914 ac_check_lib_save_LIBS=$LIBS 12915LIBS="-ldld $LIBS" 12916cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12917/* end confdefs.h. */ 12918 12919/* Override any GCC internal prototype to avoid an error. 12920 Use char because int might match the return type of a GCC 12921 builtin and then its argument prototype would still apply. */ 12922#ifdef __cplusplus 12923extern "C" 12924#endif 12925char dld_link (); 12926int 12927main () 12928{ 12929return dld_link (); 12930 ; 12931 return 0; 12932} 12933_ACEOF 12934if ac_fn_c_try_link "$LINENO"; then : 12935 ac_cv_lib_dld_dld_link=yes 12936else 12937 ac_cv_lib_dld_dld_link=no 12938fi 12939rm -f core conftest.err conftest.$ac_objext \ 12940 conftest$ac_exeext conftest.$ac_ext 12941LIBS=$ac_check_lib_save_LIBS 12942fi 12943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12944$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12945if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12946 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 12947fi 12948 12949 12950fi 12951 12952 12953fi 12954 12955 12956fi 12957 12958 12959fi 12960 12961 12962fi 12963 12964 ;; 12965 esac 12966 12967 if test "x$lt_cv_dlopen" != xno; then 12968 enable_dlopen=yes 12969 else 12970 enable_dlopen=no 12971 fi 12972 12973 case $lt_cv_dlopen in 12974 dlopen) 12975 save_CPPFLAGS="$CPPFLAGS" 12976 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12977 12978 save_LDFLAGS="$LDFLAGS" 12979 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12980 12981 save_LIBS="$LIBS" 12982 LIBS="$lt_cv_dlopen_libs $LIBS" 12983 12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12985$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12986if ${lt_cv_dlopen_self+:} false; then : 12987 $as_echo_n "(cached) " >&6 12988else 12989 if test "$cross_compiling" = yes; then : 12990 lt_cv_dlopen_self=cross 12991else 12992 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12993 lt_status=$lt_dlunknown 12994 cat > conftest.$ac_ext <<_LT_EOF 12995#line $LINENO "configure" 12996#include "confdefs.h" 12997 12998#if HAVE_DLFCN_H 12999#include <dlfcn.h> 13000#endif 13001 13002#include <stdio.h> 13003 13004#ifdef RTLD_GLOBAL 13005# define LT_DLGLOBAL RTLD_GLOBAL 13006#else 13007# ifdef DL_GLOBAL 13008# define LT_DLGLOBAL DL_GLOBAL 13009# else 13010# define LT_DLGLOBAL 0 13011# endif 13012#endif 13013 13014/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13015 find out it does not work in some platform. */ 13016#ifndef LT_DLLAZY_OR_NOW 13017# ifdef RTLD_LAZY 13018# define LT_DLLAZY_OR_NOW RTLD_LAZY 13019# else 13020# ifdef DL_LAZY 13021# define LT_DLLAZY_OR_NOW DL_LAZY 13022# else 13023# ifdef RTLD_NOW 13024# define LT_DLLAZY_OR_NOW RTLD_NOW 13025# else 13026# ifdef DL_NOW 13027# define LT_DLLAZY_OR_NOW DL_NOW 13028# else 13029# define LT_DLLAZY_OR_NOW 0 13030# endif 13031# endif 13032# endif 13033# endif 13034#endif 13035 13036/* When -fvisbility=hidden is used, assume the code has been annotated 13037 correspondingly for the symbols needed. */ 13038#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13039int fnord () __attribute__((visibility("default"))); 13040#endif 13041 13042int fnord () { return 42; } 13043int main () 13044{ 13045 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13046 int status = $lt_dlunknown; 13047 13048 if (self) 13049 { 13050 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13051 else 13052 { 13053 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13054 else puts (dlerror ()); 13055 } 13056 /* dlclose (self); */ 13057 } 13058 else 13059 puts (dlerror ()); 13060 13061 return status; 13062} 13063_LT_EOF 13064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13065 (eval $ac_link) 2>&5 13066 ac_status=$? 13067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13068 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13069 (./conftest; exit; ) >&5 2>/dev/null 13070 lt_status=$? 13071 case x$lt_status in 13072 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13073 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13074 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13075 esac 13076 else : 13077 # compilation failed 13078 lt_cv_dlopen_self=no 13079 fi 13080fi 13081rm -fr conftest* 13082 13083 13084fi 13085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13086$as_echo "$lt_cv_dlopen_self" >&6; } 13087 13088 if test "x$lt_cv_dlopen_self" = xyes; then 13089 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13091$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13092if ${lt_cv_dlopen_self_static+:} false; then : 13093 $as_echo_n "(cached) " >&6 13094else 13095 if test "$cross_compiling" = yes; then : 13096 lt_cv_dlopen_self_static=cross 13097else 13098 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13099 lt_status=$lt_dlunknown 13100 cat > conftest.$ac_ext <<_LT_EOF 13101#line $LINENO "configure" 13102#include "confdefs.h" 13103 13104#if HAVE_DLFCN_H 13105#include <dlfcn.h> 13106#endif 13107 13108#include <stdio.h> 13109 13110#ifdef RTLD_GLOBAL 13111# define LT_DLGLOBAL RTLD_GLOBAL 13112#else 13113# ifdef DL_GLOBAL 13114# define LT_DLGLOBAL DL_GLOBAL 13115# else 13116# define LT_DLGLOBAL 0 13117# endif 13118#endif 13119 13120/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13121 find out it does not work in some platform. */ 13122#ifndef LT_DLLAZY_OR_NOW 13123# ifdef RTLD_LAZY 13124# define LT_DLLAZY_OR_NOW RTLD_LAZY 13125# else 13126# ifdef DL_LAZY 13127# define LT_DLLAZY_OR_NOW DL_LAZY 13128# else 13129# ifdef RTLD_NOW 13130# define LT_DLLAZY_OR_NOW RTLD_NOW 13131# else 13132# ifdef DL_NOW 13133# define LT_DLLAZY_OR_NOW DL_NOW 13134# else 13135# define LT_DLLAZY_OR_NOW 0 13136# endif 13137# endif 13138# endif 13139# endif 13140#endif 13141 13142/* When -fvisbility=hidden is used, assume the code has been annotated 13143 correspondingly for the symbols needed. */ 13144#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13145int fnord () __attribute__((visibility("default"))); 13146#endif 13147 13148int fnord () { return 42; } 13149int main () 13150{ 13151 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13152 int status = $lt_dlunknown; 13153 13154 if (self) 13155 { 13156 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13157 else 13158 { 13159 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13160 else puts (dlerror ()); 13161 } 13162 /* dlclose (self); */ 13163 } 13164 else 13165 puts (dlerror ()); 13166 13167 return status; 13168} 13169_LT_EOF 13170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13171 (eval $ac_link) 2>&5 13172 ac_status=$? 13173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13174 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13175 (./conftest; exit; ) >&5 2>/dev/null 13176 lt_status=$? 13177 case x$lt_status in 13178 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13179 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13180 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13181 esac 13182 else : 13183 # compilation failed 13184 lt_cv_dlopen_self_static=no 13185 fi 13186fi 13187rm -fr conftest* 13188 13189 13190fi 13191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13192$as_echo "$lt_cv_dlopen_self_static" >&6; } 13193 fi 13194 13195 CPPFLAGS="$save_CPPFLAGS" 13196 LDFLAGS="$save_LDFLAGS" 13197 LIBS="$save_LIBS" 13198 ;; 13199 esac 13200 13201 case $lt_cv_dlopen_self in 13202 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13203 *) enable_dlopen_self=unknown ;; 13204 esac 13205 13206 case $lt_cv_dlopen_self_static in 13207 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13208 *) enable_dlopen_self_static=unknown ;; 13209 esac 13210fi 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228striplib= 13229old_striplib= 13230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13231$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13232if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13233 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13234 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13236$as_echo "yes" >&6; } 13237else 13238# FIXME - insert some real tests, host_os isn't really good enough 13239 case $host_os in 13240 darwin*) 13241 if test -n "$STRIP" ; then 13242 striplib="$STRIP -x" 13243 old_striplib="$STRIP -S" 13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13245$as_echo "yes" >&6; } 13246 else 13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13248$as_echo "no" >&6; } 13249 fi 13250 ;; 13251 *) 13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13253$as_echo "no" >&6; } 13254 ;; 13255 esac 13256fi 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 # Report which library types will actually be built 13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13271$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13273$as_echo "$can_build_shared" >&6; } 13274 13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13276$as_echo_n "checking whether to build shared libraries... " >&6; } 13277 test "$can_build_shared" = "no" && enable_shared=no 13278 13279 # On AIX, shared libraries and static libraries use the same namespace, and 13280 # are all built from PIC. 13281 case $host_os in 13282 aix3*) 13283 test "$enable_shared" = yes && enable_static=no 13284 if test -n "$RANLIB"; then 13285 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13286 postinstall_cmds='$RANLIB $lib' 13287 fi 13288 ;; 13289 13290 aix[4-9]*) 13291 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13292 test "$enable_shared" = yes && enable_static=no 13293 fi 13294 ;; 13295 esac 13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13297$as_echo "$enable_shared" >&6; } 13298 13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13300$as_echo_n "checking whether to build static libraries... " >&6; } 13301 # Make sure either enable_shared or enable_static is yes. 13302 test "$enable_shared" = yes || enable_static=yes 13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13304$as_echo "$enable_static" >&6; } 13305 13306 13307 13308 13309fi 13310ac_ext=c 13311ac_cpp='$CPP $CPPFLAGS' 13312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13314ac_compiler_gnu=$ac_cv_c_compiler_gnu 13315 13316CC="$lt_save_CC" 13317 13318 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 13319 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 13320 (test "X$CXX" != "Xg++"))) ; then 13321 ac_ext=cpp 13322ac_cpp='$CXXCPP $CPPFLAGS' 13323ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13324ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13325ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13327$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13328if test -z "$CXXCPP"; then 13329 if ${ac_cv_prog_CXXCPP+:} false; then : 13330 $as_echo_n "(cached) " >&6 13331else 13332 # Double quotes because CXXCPP needs to be expanded 13333 for CXXCPP in "$CXX -E" "/lib/cpp" 13334 do 13335 ac_preproc_ok=false 13336for ac_cxx_preproc_warn_flag in '' yes 13337do 13338 # Use a header file that comes with gcc, so configuring glibc 13339 # with a fresh cross-compiler works. 13340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13341 # <limits.h> exists even on freestanding compilers. 13342 # On the NeXT, cc -E runs the code through the compiler's parser, 13343 # not just through cpp. "Syntax error" is here to catch this case. 13344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13345/* end confdefs.h. */ 13346#ifdef __STDC__ 13347# include <limits.h> 13348#else 13349# include <assert.h> 13350#endif 13351 Syntax error 13352_ACEOF 13353if ac_fn_cxx_try_cpp "$LINENO"; then : 13354 13355else 13356 # Broken: fails on valid input. 13357continue 13358fi 13359rm -f conftest.err conftest.i conftest.$ac_ext 13360 13361 # OK, works on sane cases. Now check whether nonexistent headers 13362 # can be detected and how. 13363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13364/* end confdefs.h. */ 13365#include <ac_nonexistent.h> 13366_ACEOF 13367if ac_fn_cxx_try_cpp "$LINENO"; then : 13368 # Broken: success on invalid input. 13369continue 13370else 13371 # Passes both tests. 13372ac_preproc_ok=: 13373break 13374fi 13375rm -f conftest.err conftest.i conftest.$ac_ext 13376 13377done 13378# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13379rm -f conftest.i conftest.err conftest.$ac_ext 13380if $ac_preproc_ok; then : 13381 break 13382fi 13383 13384 done 13385 ac_cv_prog_CXXCPP=$CXXCPP 13386 13387fi 13388 CXXCPP=$ac_cv_prog_CXXCPP 13389else 13390 ac_cv_prog_CXXCPP=$CXXCPP 13391fi 13392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13393$as_echo "$CXXCPP" >&6; } 13394ac_preproc_ok=false 13395for ac_cxx_preproc_warn_flag in '' yes 13396do 13397 # Use a header file that comes with gcc, so configuring glibc 13398 # with a fresh cross-compiler works. 13399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13400 # <limits.h> exists even on freestanding compilers. 13401 # On the NeXT, cc -E runs the code through the compiler's parser, 13402 # not just through cpp. "Syntax error" is here to catch this case. 13403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13404/* end confdefs.h. */ 13405#ifdef __STDC__ 13406# include <limits.h> 13407#else 13408# include <assert.h> 13409#endif 13410 Syntax error 13411_ACEOF 13412if ac_fn_cxx_try_cpp "$LINENO"; then : 13413 13414else 13415 # Broken: fails on valid input. 13416continue 13417fi 13418rm -f conftest.err conftest.i conftest.$ac_ext 13419 13420 # OK, works on sane cases. Now check whether nonexistent headers 13421 # can be detected and how. 13422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13423/* end confdefs.h. */ 13424#include <ac_nonexistent.h> 13425_ACEOF 13426if ac_fn_cxx_try_cpp "$LINENO"; then : 13427 # Broken: success on invalid input. 13428continue 13429else 13430 # Passes both tests. 13431ac_preproc_ok=: 13432break 13433fi 13434rm -f conftest.err conftest.i conftest.$ac_ext 13435 13436done 13437# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13438rm -f conftest.i conftest.err conftest.$ac_ext 13439if $ac_preproc_ok; then : 13440 13441else 13442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13444as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13445See \`config.log' for more details" "$LINENO" 5; } 13446fi 13447 13448ac_ext=c 13449ac_cpp='$CPP $CPPFLAGS' 13450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13452ac_compiler_gnu=$ac_cv_c_compiler_gnu 13453 13454else 13455 _lt_caught_CXX_error=yes 13456fi 13457 13458ac_ext=cpp 13459ac_cpp='$CXXCPP $CPPFLAGS' 13460ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13461ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13462ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13463 13464archive_cmds_need_lc_CXX=no 13465allow_undefined_flag_CXX= 13466always_export_symbols_CXX=no 13467archive_expsym_cmds_CXX= 13468compiler_needs_object_CXX=no 13469export_dynamic_flag_spec_CXX= 13470hardcode_direct_CXX=no 13471hardcode_direct_absolute_CXX=no 13472hardcode_libdir_flag_spec_CXX= 13473hardcode_libdir_separator_CXX= 13474hardcode_minus_L_CXX=no 13475hardcode_shlibpath_var_CXX=unsupported 13476hardcode_automatic_CXX=no 13477inherit_rpath_CXX=no 13478module_cmds_CXX= 13479module_expsym_cmds_CXX= 13480link_all_deplibs_CXX=unknown 13481old_archive_cmds_CXX=$old_archive_cmds 13482reload_flag_CXX=$reload_flag 13483reload_cmds_CXX=$reload_cmds 13484no_undefined_flag_CXX= 13485whole_archive_flag_spec_CXX= 13486enable_shared_with_static_runtimes_CXX=no 13487 13488# Source file extension for C++ test sources. 13489ac_ext=cpp 13490 13491# Object file extension for compiled C++ test sources. 13492objext=o 13493objext_CXX=$objext 13494 13495# No sense in running all these tests if we already determined that 13496# the CXX compiler isn't working. Some variables (like enable_shared) 13497# are currently assumed to apply to all compilers on this platform, 13498# and will be corrupted by setting them based on a non-working compiler. 13499if test "$_lt_caught_CXX_error" != yes; then 13500 # Code to be used in simple compile tests 13501 lt_simple_compile_test_code="int some_variable = 0;" 13502 13503 # Code to be used in simple link tests 13504 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13505 13506 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13507 13508 13509 13510 13511 13512 13513# If no C compiler was specified, use CC. 13514LTCC=${LTCC-"$CC"} 13515 13516# If no C compiler flags were specified, use CFLAGS. 13517LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13518 13519# Allow CC to be a program name with arguments. 13520compiler=$CC 13521 13522 13523 # save warnings/boilerplate of simple test code 13524 ac_outfile=conftest.$ac_objext 13525echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13526eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13527_lt_compiler_boilerplate=`cat conftest.err` 13528$RM conftest* 13529 13530 ac_outfile=conftest.$ac_objext 13531echo "$lt_simple_link_test_code" >conftest.$ac_ext 13532eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13533_lt_linker_boilerplate=`cat conftest.err` 13534$RM -r conftest* 13535 13536 13537 # Allow CC to be a program name with arguments. 13538 lt_save_CC=$CC 13539 lt_save_CFLAGS=$CFLAGS 13540 lt_save_LD=$LD 13541 lt_save_GCC=$GCC 13542 GCC=$GXX 13543 lt_save_with_gnu_ld=$with_gnu_ld 13544 lt_save_path_LD=$lt_cv_path_LD 13545 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13546 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13547 else 13548 $as_unset lt_cv_prog_gnu_ld 13549 fi 13550 if test -n "${lt_cv_path_LDCXX+set}"; then 13551 lt_cv_path_LD=$lt_cv_path_LDCXX 13552 else 13553 $as_unset lt_cv_path_LD 13554 fi 13555 test -z "${LDCXX+set}" || LD=$LDCXX 13556 CC=${CXX-"c++"} 13557 CFLAGS=$CXXFLAGS 13558 compiler=$CC 13559 compiler_CXX=$CC 13560 for cc_temp in $compiler""; do 13561 case $cc_temp in 13562 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13563 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13564 \-*) ;; 13565 *) break;; 13566 esac 13567done 13568cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13569 13570 13571 if test -n "$compiler"; then 13572 # We don't want -fno-exception when compiling C++ code, so set the 13573 # no_builtin_flag separately 13574 if test "$GXX" = yes; then 13575 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13576 else 13577 lt_prog_compiler_no_builtin_flag_CXX= 13578 fi 13579 13580 if test "$GXX" = yes; then 13581 # Set up default GNU C++ configuration 13582 13583 13584 13585# Check whether --with-gnu-ld was given. 13586if test "${with_gnu_ld+set}" = set; then : 13587 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 13588else 13589 with_gnu_ld=no 13590fi 13591 13592ac_prog=ld 13593if test "$GCC" = yes; then 13594 # Check if gcc -print-prog-name=ld gives a path. 13595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13596$as_echo_n "checking for ld used by $CC... " >&6; } 13597 case $host in 13598 *-*-mingw*) 13599 # gcc leaves a trailing carriage return which upsets mingw 13600 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13601 *) 13602 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13603 esac 13604 case $ac_prog in 13605 # Accept absolute paths. 13606 [\\/]* | ?:[\\/]*) 13607 re_direlt='/[^/][^/]*/\.\./' 13608 # Canonicalize the pathname of ld 13609 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13610 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13611 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13612 done 13613 test -z "$LD" && LD="$ac_prog" 13614 ;; 13615 "") 13616 # If it fails, then pretend we aren't using GCC. 13617 ac_prog=ld 13618 ;; 13619 *) 13620 # If it is relative, then search for the first ld in PATH. 13621 with_gnu_ld=unknown 13622 ;; 13623 esac 13624elif test "$with_gnu_ld" = yes; then 13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13626$as_echo_n "checking for GNU ld... " >&6; } 13627else 13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13629$as_echo_n "checking for non-GNU ld... " >&6; } 13630fi 13631if ${lt_cv_path_LD+:} false; then : 13632 $as_echo_n "(cached) " >&6 13633else 13634 if test -z "$LD"; then 13635 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 13636 for ac_dir in $PATH; do 13637 IFS="$lt_save_ifs" 13638 test -z "$ac_dir" && ac_dir=. 13639 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13640 lt_cv_path_LD="$ac_dir/$ac_prog" 13641 # Check to see if the program is GNU ld. I'd rather use --version, 13642 # but apparently some variants of GNU ld only accept -v. 13643 # Break only if it was the GNU/non-GNU ld that we prefer. 13644 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13645 *GNU* | *'with BFD'*) 13646 test "$with_gnu_ld" != no && break 13647 ;; 13648 *) 13649 test "$with_gnu_ld" != yes && break 13650 ;; 13651 esac 13652 fi 13653 done 13654 IFS="$lt_save_ifs" 13655else 13656 lt_cv_path_LD="$LD" # Let the user override the test with a path. 13657fi 13658fi 13659 13660LD="$lt_cv_path_LD" 13661if test -n "$LD"; then 13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13663$as_echo "$LD" >&6; } 13664else 13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13666$as_echo "no" >&6; } 13667fi 13668test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13670$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13671if ${lt_cv_prog_gnu_ld+:} false; then : 13672 $as_echo_n "(cached) " >&6 13673else 13674 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13675case `$LD -v 2>&1 </dev/null` in 13676*GNU* | *'with BFD'*) 13677 lt_cv_prog_gnu_ld=yes 13678 ;; 13679*) 13680 lt_cv_prog_gnu_ld=no 13681 ;; 13682esac 13683fi 13684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13685$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13686with_gnu_ld=$lt_cv_prog_gnu_ld 13687 13688 13689 13690 13691 13692 13693 13694 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13695 # archiving commands below assume that GNU ld is being used. 13696 if test "$with_gnu_ld" = yes; then 13697 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 13698 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' 13699 13700 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13701 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 13702 13703 # If archive_cmds runs LD, not CC, wlarc should be empty 13704 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13705 # investigate it a little bit more. (MM) 13706 wlarc='${wl}' 13707 13708 # ancient GNU ld didn't support --whole-archive et. al. 13709 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13710 $GREP 'no-whole-archive' > /dev/null; then 13711 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13712 else 13713 whole_archive_flag_spec_CXX= 13714 fi 13715 else 13716 with_gnu_ld=no 13717 wlarc= 13718 13719 # A generic and very simple default shared library creation 13720 # command for GNU C++ for the case where it uses the native 13721 # linker, instead of GNU ld. If possible, this setting should 13722 # overridden to take advantage of the native linker features on 13723 # the platform it is being used on. 13724 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13725 fi 13726 13727 # Commands to make compiler produce verbose output that lists 13728 # what "hidden" libraries, object files and flags are used when 13729 # linking a shared library. 13730 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13731 13732 else 13733 GXX=no 13734 with_gnu_ld=no 13735 wlarc= 13736 fi 13737 13738 # PORTME: fill in a description of your system's C++ link characteristics 13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13740$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13741 ld_shlibs_CXX=yes 13742 case $host_os in 13743 aix3*) 13744 # FIXME: insert proper C++ library support 13745 ld_shlibs_CXX=no 13746 ;; 13747 aix[4-9]*) 13748 if test "$host_cpu" = ia64; then 13749 # On IA64, the linker does run time linking by default, so we don't 13750 # have to do anything special. 13751 aix_use_runtimelinking=no 13752 exp_sym_flag='-Bexport' 13753 no_entry_flag="" 13754 else 13755 aix_use_runtimelinking=no 13756 13757 # Test if we are trying to use run time linking or normal 13758 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13759 # need to do runtime linking. 13760 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13761 for ld_flag in $LDFLAGS; do 13762 case $ld_flag in 13763 *-brtl*) 13764 aix_use_runtimelinking=yes 13765 break 13766 ;; 13767 esac 13768 done 13769 ;; 13770 esac 13771 13772 exp_sym_flag='-bexport' 13773 no_entry_flag='-bnoentry' 13774 fi 13775 13776 # When large executables or shared objects are built, AIX ld can 13777 # have problems creating the table of contents. If linking a library 13778 # or program results in "error TOC overflow" add -mminimal-toc to 13779 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13780 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13781 13782 archive_cmds_CXX='' 13783 hardcode_direct_CXX=yes 13784 hardcode_direct_absolute_CXX=yes 13785 hardcode_libdir_separator_CXX=':' 13786 link_all_deplibs_CXX=yes 13787 file_list_spec_CXX='${wl}-f,' 13788 13789 if test "$GXX" = yes; then 13790 case $host_os in aix4.[012]|aix4.[012].*) 13791 # We only want to do this on AIX 4.2 and lower, the check 13792 # below for broken collect2 doesn't work under 4.3+ 13793 collect2name=`${CC} -print-prog-name=collect2` 13794 if test -f "$collect2name" && 13795 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 13796 then 13797 # We have reworked collect2 13798 : 13799 else 13800 # We have old collect2 13801 hardcode_direct_CXX=unsupported 13802 # It fails to find uninstalled libraries when the uninstalled 13803 # path is not listed in the libpath. Setting hardcode_minus_L 13804 # to unsupported forces relinking 13805 hardcode_minus_L_CXX=yes 13806 hardcode_libdir_flag_spec_CXX='-L$libdir' 13807 hardcode_libdir_separator_CXX= 13808 fi 13809 esac 13810 shared_flag='-shared' 13811 if test "$aix_use_runtimelinking" = yes; then 13812 shared_flag="$shared_flag "'${wl}-G' 13813 fi 13814 else 13815 # not using gcc 13816 if test "$host_cpu" = ia64; then 13817 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13818 # chokes on -Wl,-G. The following line is correct: 13819 shared_flag='-G' 13820 else 13821 if test "$aix_use_runtimelinking" = yes; then 13822 shared_flag='${wl}-G' 13823 else 13824 shared_flag='${wl}-bM:SRE' 13825 fi 13826 fi 13827 fi 13828 13829 export_dynamic_flag_spec_CXX='${wl}-bexpall' 13830 # It seems that -bexpall does not export symbols beginning with 13831 # underscore (_), so it is better to generate a list of symbols to 13832 # export. 13833 always_export_symbols_CXX=yes 13834 if test "$aix_use_runtimelinking" = yes; then 13835 # Warning - without using the other runtime loading flags (-brtl), 13836 # -berok will link without error, but may produce a broken library. 13837 allow_undefined_flag_CXX='-berok' 13838 # Determine the default libpath from the value encoded in an empty 13839 # executable. 13840 if test "${lt_cv_aix_libpath+set}" = set; then 13841 aix_libpath=$lt_cv_aix_libpath 13842else 13843 if ${lt_cv_aix_libpath__CXX+:} false; then : 13844 $as_echo_n "(cached) " >&6 13845else 13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13847/* end confdefs.h. */ 13848 13849int 13850main () 13851{ 13852 13853 ; 13854 return 0; 13855} 13856_ACEOF 13857if ac_fn_cxx_try_link "$LINENO"; then : 13858 13859 lt_aix_libpath_sed=' 13860 /Import File Strings/,/^$/ { 13861 /^0/ { 13862 s/^0 *\([^ ]*\) *$/\1/ 13863 p 13864 } 13865 }' 13866 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13867 # Check for a 64-bit object if we didn't find anything. 13868 if test -z "$lt_cv_aix_libpath__CXX"; then 13869 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13870 fi 13871fi 13872rm -f core conftest.err conftest.$ac_objext \ 13873 conftest$ac_exeext conftest.$ac_ext 13874 if test -z "$lt_cv_aix_libpath__CXX"; then 13875 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13876 fi 13877 13878fi 13879 13880 aix_libpath=$lt_cv_aix_libpath__CXX 13881fi 13882 13883 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13884 13885 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13886 else 13887 if test "$host_cpu" = ia64; then 13888 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 13889 allow_undefined_flag_CXX="-z nodefs" 13890 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" 13891 else 13892 # Determine the default libpath from the value encoded in an 13893 # empty executable. 13894 if test "${lt_cv_aix_libpath+set}" = set; then 13895 aix_libpath=$lt_cv_aix_libpath 13896else 13897 if ${lt_cv_aix_libpath__CXX+:} false; then : 13898 $as_echo_n "(cached) " >&6 13899else 13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13901/* end confdefs.h. */ 13902 13903int 13904main () 13905{ 13906 13907 ; 13908 return 0; 13909} 13910_ACEOF 13911if ac_fn_cxx_try_link "$LINENO"; then : 13912 13913 lt_aix_libpath_sed=' 13914 /Import File Strings/,/^$/ { 13915 /^0/ { 13916 s/^0 *\([^ ]*\) *$/\1/ 13917 p 13918 } 13919 }' 13920 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13921 # Check for a 64-bit object if we didn't find anything. 13922 if test -z "$lt_cv_aix_libpath__CXX"; then 13923 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 13924 fi 13925fi 13926rm -f core conftest.err conftest.$ac_objext \ 13927 conftest$ac_exeext conftest.$ac_ext 13928 if test -z "$lt_cv_aix_libpath__CXX"; then 13929 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 13930 fi 13931 13932fi 13933 13934 aix_libpath=$lt_cv_aix_libpath__CXX 13935fi 13936 13937 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 13938 # Warning - without using the other run time loading flags, 13939 # -berok will link without error, but may produce a broken library. 13940 no_undefined_flag_CXX=' ${wl}-bernotok' 13941 allow_undefined_flag_CXX=' ${wl}-berok' 13942 if test "$with_gnu_ld" = yes; then 13943 # We only use this code for GNU lds that support --whole-archive. 13944 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 13945 else 13946 # Exported symbols can be pulled into shared objects from archives 13947 whole_archive_flag_spec_CXX='$convenience' 13948 fi 13949 archive_cmds_need_lc_CXX=yes 13950 # This is similar to how AIX traditionally builds its shared 13951 # libraries. 13952 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13953 fi 13954 fi 13955 ;; 13956 13957 beos*) 13958 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 13959 allow_undefined_flag_CXX=unsupported 13960 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13961 # support --undefined. This deserves some investigation. FIXME 13962 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13963 else 13964 ld_shlibs_CXX=no 13965 fi 13966 ;; 13967 13968 chorus*) 13969 case $cc_basename in 13970 *) 13971 # FIXME: insert proper C++ library support 13972 ld_shlibs_CXX=no 13973 ;; 13974 esac 13975 ;; 13976 13977 cygwin* | mingw* | pw32* | cegcc*) 13978 case $GXX,$cc_basename in 13979 ,cl* | no,cl*) 13980 # Native MSVC 13981 # hardcode_libdir_flag_spec is actually meaningless, as there is 13982 # no search path for DLLs. 13983 hardcode_libdir_flag_spec_CXX=' ' 13984 allow_undefined_flag_CXX=unsupported 13985 always_export_symbols_CXX=yes 13986 file_list_spec_CXX='@' 13987 # Tell ltmain to make .lib files, not .a files. 13988 libext=lib 13989 # Tell ltmain to make .dll files, not .so files. 13990 shrext_cmds=".dll" 13991 # FIXME: Setting linknames here is a bad hack. 13992 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 13993 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13994 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 13995 else 13996 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 13997 fi~ 13998 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 13999 linknames=' 14000 # The linker will not automatically build a static lib if we build a DLL. 14001 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14002 enable_shared_with_static_runtimes_CXX=yes 14003 # Don't use ranlib 14004 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14005 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14006 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14007 case $lt_outputfile in 14008 *.exe|*.EXE) ;; 14009 *) 14010 lt_outputfile="$lt_outputfile.exe" 14011 lt_tool_outputfile="$lt_tool_outputfile.exe" 14012 ;; 14013 esac~ 14014 func_to_tool_file "$lt_outputfile"~ 14015 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 14016 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14017 $RM "$lt_outputfile.manifest"; 14018 fi' 14019 ;; 14020 *) 14021 # g++ 14022 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14023 # as there is no search path for DLLs. 14024 hardcode_libdir_flag_spec_CXX='-L$libdir' 14025 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 14026 allow_undefined_flag_CXX=unsupported 14027 always_export_symbols_CXX=no 14028 enable_shared_with_static_runtimes_CXX=yes 14029 14030 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14031 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' 14032 # If the export-symbols file already is a .def file (1st line 14033 # is EXPORTS), use it as is; otherwise, prepend... 14034 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14035 cp $export_symbols $output_objdir/$soname.def; 14036 else 14037 echo EXPORTS > $output_objdir/$soname.def; 14038 cat $export_symbols >> $output_objdir/$soname.def; 14039 fi~ 14040 $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' 14041 else 14042 ld_shlibs_CXX=no 14043 fi 14044 ;; 14045 esac 14046 ;; 14047 darwin* | rhapsody*) 14048 14049 14050 archive_cmds_need_lc_CXX=no 14051 hardcode_direct_CXX=no 14052 hardcode_automatic_CXX=yes 14053 hardcode_shlibpath_var_CXX=unsupported 14054 if test "$lt_cv_ld_force_load" = "yes"; then 14055 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\"`' 14056 14057 else 14058 whole_archive_flag_spec_CXX='' 14059 fi 14060 link_all_deplibs_CXX=yes 14061 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 14062 case $cc_basename in 14063 ifort*) _lt_dar_can_shared=yes ;; 14064 *) _lt_dar_can_shared=$GCC ;; 14065 esac 14066 if test "$_lt_dar_can_shared" = "yes"; then 14067 output_verbose_link_cmd=func_echo_all 14068 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}" 14069 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 14070 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}" 14071 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}" 14072 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 14073 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}" 14074 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}" 14075 fi 14076 14077 else 14078 ld_shlibs_CXX=no 14079 fi 14080 14081 ;; 14082 14083 dgux*) 14084 case $cc_basename in 14085 ec++*) 14086 # FIXME: insert proper C++ library support 14087 ld_shlibs_CXX=no 14088 ;; 14089 ghcx*) 14090 # Green Hills C++ Compiler 14091 # FIXME: insert proper C++ library support 14092 ld_shlibs_CXX=no 14093 ;; 14094 *) 14095 # FIXME: insert proper C++ library support 14096 ld_shlibs_CXX=no 14097 ;; 14098 esac 14099 ;; 14100 14101 freebsd2.*) 14102 # C++ shared libraries reported to be fairly broken before 14103 # switch to ELF 14104 ld_shlibs_CXX=no 14105 ;; 14106 14107 freebsd-elf*) 14108 archive_cmds_need_lc_CXX=no 14109 ;; 14110 14111 freebsd* | dragonfly*) 14112 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14113 # conventions 14114 ld_shlibs_CXX=yes 14115 ;; 14116 14117 gnu*) 14118 ;; 14119 14120 haiku*) 14121 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14122 link_all_deplibs_CXX=yes 14123 ;; 14124 14125 hpux9*) 14126 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 14127 hardcode_libdir_separator_CXX=: 14128 export_dynamic_flag_spec_CXX='${wl}-E' 14129 hardcode_direct_CXX=yes 14130 hardcode_minus_L_CXX=yes # Not in the search PATH, 14131 # but as the default 14132 # location of the library. 14133 14134 case $cc_basename in 14135 CC*) 14136 # FIXME: insert proper C++ library support 14137 ld_shlibs_CXX=no 14138 ;; 14139 aCC*) 14140 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14141 # Commands to make compiler produce verbose output that lists 14142 # what "hidden" libraries, object files and flags are used when 14143 # linking a shared library. 14144 # 14145 # There doesn't appear to be a way to prevent this compiler from 14146 # explicitly linking system object files so we need to strip them 14147 # from the output so that they don't get included in the library 14148 # dependencies. 14149 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"' 14150 ;; 14151 *) 14152 if test "$GXX" = yes; then 14153 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14154 else 14155 # FIXME: insert proper C++ library support 14156 ld_shlibs_CXX=no 14157 fi 14158 ;; 14159 esac 14160 ;; 14161 14162 hpux10*|hpux11*) 14163 if test $with_gnu_ld = no; then 14164 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 14165 hardcode_libdir_separator_CXX=: 14166 14167 case $host_cpu in 14168 hppa*64*|ia64*) 14169 ;; 14170 *) 14171 export_dynamic_flag_spec_CXX='${wl}-E' 14172 ;; 14173 esac 14174 fi 14175 case $host_cpu in 14176 hppa*64*|ia64*) 14177 hardcode_direct_CXX=no 14178 hardcode_shlibpath_var_CXX=no 14179 ;; 14180 *) 14181 hardcode_direct_CXX=yes 14182 hardcode_direct_absolute_CXX=yes 14183 hardcode_minus_L_CXX=yes # Not in the search PATH, 14184 # but as the default 14185 # location of the library. 14186 ;; 14187 esac 14188 14189 case $cc_basename in 14190 CC*) 14191 # FIXME: insert proper C++ library support 14192 ld_shlibs_CXX=no 14193 ;; 14194 aCC*) 14195 case $host_cpu in 14196 hppa*64*) 14197 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14198 ;; 14199 ia64*) 14200 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14201 ;; 14202 *) 14203 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14204 ;; 14205 esac 14206 # Commands to make compiler produce verbose output that lists 14207 # what "hidden" libraries, object files and flags are used when 14208 # linking a shared library. 14209 # 14210 # There doesn't appear to be a way to prevent this compiler from 14211 # explicitly linking system object files so we need to strip them 14212 # from the output so that they don't get included in the library 14213 # dependencies. 14214 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"' 14215 ;; 14216 *) 14217 if test "$GXX" = yes; then 14218 if test $with_gnu_ld = no; then 14219 case $host_cpu in 14220 hppa*64*) 14221 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14222 ;; 14223 ia64*) 14224 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14225 ;; 14226 *) 14227 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' 14228 ;; 14229 esac 14230 fi 14231 else 14232 # FIXME: insert proper C++ library support 14233 ld_shlibs_CXX=no 14234 fi 14235 ;; 14236 esac 14237 ;; 14238 14239 interix[3-9]*) 14240 hardcode_direct_CXX=no 14241 hardcode_shlibpath_var_CXX=no 14242 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14243 export_dynamic_flag_spec_CXX='${wl}-E' 14244 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14245 # Instead, shared libraries are loaded at an image base (0x10000000 by 14246 # default) and relocated if they conflict, which is a slow very memory 14247 # consuming and fragmenting process. To avoid this, we pick a random, 14248 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14249 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14250 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' 14251 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' 14252 ;; 14253 irix5* | irix6*) 14254 case $cc_basename in 14255 CC*) 14256 # SGI C++ 14257 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' 14258 14259 # Archives containing C++ object files must be created using 14260 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14261 # necessary to make sure instantiated templates are included 14262 # in the archive. 14263 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14264 ;; 14265 *) 14266 if test "$GXX" = yes; then 14267 if test "$with_gnu_ld" = no; then 14268 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' 14269 else 14270 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' 14271 fi 14272 fi 14273 link_all_deplibs_CXX=yes 14274 ;; 14275 esac 14276 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14277 hardcode_libdir_separator_CXX=: 14278 inherit_rpath_CXX=yes 14279 ;; 14280 14281 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14282 case $cc_basename in 14283 KCC*) 14284 # Kuck and Associates, Inc. (KAI) C++ Compiler 14285 14286 # KCC will only create a shared library if the output file 14287 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14288 # to its proper name (with version) after linking. 14289 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' 14290 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' 14291 # Commands to make compiler produce verbose output that lists 14292 # what "hidden" libraries, object files and flags are used when 14293 # linking a shared library. 14294 # 14295 # There doesn't appear to be a way to prevent this compiler from 14296 # explicitly linking system object files so we need to strip them 14297 # from the output so that they don't get included in the library 14298 # dependencies. 14299 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"' 14300 14301 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14302 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14303 14304 # Archives containing C++ object files must be created using 14305 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14306 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14307 ;; 14308 icpc* | ecpc* ) 14309 # Intel C++ 14310 with_gnu_ld=yes 14311 # version 8.0 and above of icpc choke on multiply defined symbols 14312 # if we add $predep_objects and $postdep_objects, however 7.1 and 14313 # earlier do not add the objects themselves. 14314 case `$CC -V 2>&1` in 14315 *"Version 7."*) 14316 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14317 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' 14318 ;; 14319 *) # Version 8.0 or newer 14320 tmp_idyn= 14321 case $host_cpu in 14322 ia64*) tmp_idyn=' -i_dynamic';; 14323 esac 14324 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14325 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' 14326 ;; 14327 esac 14328 archive_cmds_need_lc_CXX=no 14329 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14330 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14331 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 14332 ;; 14333 pgCC* | pgcpp*) 14334 # Portland Group C++ compiler 14335 case `$CC -V` in 14336 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14337 prelink_cmds_CXX='tpldir=Template.dir~ 14338 rm -rf $tpldir~ 14339 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14340 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14341 old_archive_cmds_CXX='tpldir=Template.dir~ 14342 rm -rf $tpldir~ 14343 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14344 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14345 $RANLIB $oldlib' 14346 archive_cmds_CXX='tpldir=Template.dir~ 14347 rm -rf $tpldir~ 14348 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14349 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 14350 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14351 rm -rf $tpldir~ 14352 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14353 $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' 14354 ;; 14355 *) # Version 6 and above use weak symbols 14356 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 14357 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' 14358 ;; 14359 esac 14360 14361 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 14362 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14363 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' 14364 ;; 14365 cxx*) 14366 # Compaq C++ 14367 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 14368 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' 14369 14370 runpath_var=LD_RUN_PATH 14371 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14372 hardcode_libdir_separator_CXX=: 14373 14374 # Commands to make compiler produce verbose output that lists 14375 # what "hidden" libraries, object files and flags are used when 14376 # linking a shared library. 14377 # 14378 # There doesn't appear to be a way to prevent this compiler from 14379 # explicitly linking system object files so we need to strip them 14380 # from the output so that they don't get included in the library 14381 # dependencies. 14382 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' 14383 ;; 14384 xl* | mpixl* | bgxl*) 14385 # IBM XL 8.0 on PPC, with GNU ld 14386 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14387 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 14388 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14389 if test "x$supports_anon_versioning" = xyes; then 14390 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14391 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14392 echo "local: *; };" >> $output_objdir/$libname.ver~ 14393 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14394 fi 14395 ;; 14396 *) 14397 case `$CC -V 2>&1 | sed 5q` in 14398 *Sun\ C*) 14399 # Sun C++ 5.9 14400 no_undefined_flag_CXX=' -zdefs' 14401 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14402 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' 14403 hardcode_libdir_flag_spec_CXX='-R$libdir' 14404 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' 14405 compiler_needs_object_CXX=yes 14406 14407 # Not sure whether something based on 14408 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14409 # would be better. 14410 output_verbose_link_cmd='func_echo_all' 14411 14412 # Archives containing C++ object files must be created using 14413 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14414 # necessary to make sure instantiated templates are included 14415 # in the archive. 14416 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14417 ;; 14418 esac 14419 ;; 14420 esac 14421 ;; 14422 14423 lynxos*) 14424 # FIXME: insert proper C++ library support 14425 ld_shlibs_CXX=no 14426 ;; 14427 14428 m88k*) 14429 # FIXME: insert proper C++ library support 14430 ld_shlibs_CXX=no 14431 ;; 14432 14433 mvs*) 14434 case $cc_basename in 14435 cxx*) 14436 # FIXME: insert proper C++ library support 14437 ld_shlibs_CXX=no 14438 ;; 14439 *) 14440 # FIXME: insert proper C++ library support 14441 ld_shlibs_CXX=no 14442 ;; 14443 esac 14444 ;; 14445 14446 netbsd*) 14447 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14448 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14449 wlarc= 14450 hardcode_libdir_flag_spec_CXX='-R$libdir' 14451 hardcode_direct_CXX=yes 14452 hardcode_shlibpath_var_CXX=no 14453 fi 14454 # Workaround some broken pre-1.5 toolchains 14455 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14456 ;; 14457 14458 *nto* | *qnx*) 14459 ld_shlibs_CXX=yes 14460 ;; 14461 14462 openbsd2*) 14463 # C++ shared libraries are fairly broken 14464 ld_shlibs_CXX=no 14465 ;; 14466 14467 openbsd*) 14468 if test -f /usr/libexec/ld.so; then 14469 hardcode_direct_CXX=yes 14470 hardcode_shlibpath_var_CXX=no 14471 hardcode_direct_absolute_CXX=yes 14472 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14473 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14474 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14475 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 14476 export_dynamic_flag_spec_CXX='${wl}-E' 14477 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14478 fi 14479 output_verbose_link_cmd=func_echo_all 14480 else 14481 ld_shlibs_CXX=no 14482 fi 14483 ;; 14484 14485 osf3* | osf4* | osf5*) 14486 case $cc_basename in 14487 KCC*) 14488 # Kuck and Associates, Inc. (KAI) C++ Compiler 14489 14490 # KCC will only create a shared library if the output file 14491 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14492 # to its proper name (with version) after linking. 14493 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' 14494 14495 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 14496 hardcode_libdir_separator_CXX=: 14497 14498 # Archives containing C++ object files must be created using 14499 # the KAI C++ compiler. 14500 case $host in 14501 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14502 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14503 esac 14504 ;; 14505 RCC*) 14506 # Rational C++ 2.4.1 14507 # FIXME: insert proper C++ library support 14508 ld_shlibs_CXX=no 14509 ;; 14510 cxx*) 14511 case $host in 14512 osf3*) 14513 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 14514 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' 14515 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14516 ;; 14517 *) 14518 allow_undefined_flag_CXX=' -expect_unresolved \*' 14519 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' 14520 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14521 echo "-hidden">> $lib.exp~ 14522 $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~ 14523 $RM $lib.exp' 14524 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14525 ;; 14526 esac 14527 14528 hardcode_libdir_separator_CXX=: 14529 14530 # Commands to make compiler produce verbose output that lists 14531 # what "hidden" libraries, object files and flags are used when 14532 # linking a shared library. 14533 # 14534 # There doesn't appear to be a way to prevent this compiler from 14535 # explicitly linking system object files so we need to strip them 14536 # from the output so that they don't get included in the library 14537 # dependencies. 14538 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"' 14539 ;; 14540 *) 14541 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14542 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 14543 case $host in 14544 osf3*) 14545 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' 14546 ;; 14547 *) 14548 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' 14549 ;; 14550 esac 14551 14552 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 14553 hardcode_libdir_separator_CXX=: 14554 14555 # Commands to make compiler produce verbose output that lists 14556 # what "hidden" libraries, object files and flags are used when 14557 # linking a shared library. 14558 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14559 14560 else 14561 # FIXME: insert proper C++ library support 14562 ld_shlibs_CXX=no 14563 fi 14564 ;; 14565 esac 14566 ;; 14567 14568 psos*) 14569 # FIXME: insert proper C++ library support 14570 ld_shlibs_CXX=no 14571 ;; 14572 14573 sunos4*) 14574 case $cc_basename in 14575 CC*) 14576 # Sun C++ 4.x 14577 # FIXME: insert proper C++ library support 14578 ld_shlibs_CXX=no 14579 ;; 14580 lcc*) 14581 # Lucid 14582 # FIXME: insert proper C++ library support 14583 ld_shlibs_CXX=no 14584 ;; 14585 *) 14586 # FIXME: insert proper C++ library support 14587 ld_shlibs_CXX=no 14588 ;; 14589 esac 14590 ;; 14591 14592 solaris*) 14593 case $cc_basename in 14594 CC* | sunCC*) 14595 # Sun C++ 4.2, 5.x and Centerline C++ 14596 archive_cmds_need_lc_CXX=yes 14597 no_undefined_flag_CXX=' -zdefs' 14598 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14599 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14600 $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' 14601 14602 hardcode_libdir_flag_spec_CXX='-R$libdir' 14603 hardcode_shlibpath_var_CXX=no 14604 case $host_os in 14605 solaris2.[0-5] | solaris2.[0-5].*) ;; 14606 *) 14607 # The compiler driver will combine and reorder linker options, 14608 # but understands `-z linker_flag'. 14609 # Supported since Solaris 2.6 (maybe 2.5.1?) 14610 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14611 ;; 14612 esac 14613 link_all_deplibs_CXX=yes 14614 14615 output_verbose_link_cmd='func_echo_all' 14616 14617 # Archives containing C++ object files must be created using 14618 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14619 # necessary to make sure instantiated templates are included 14620 # in the archive. 14621 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14622 ;; 14623 gcx*) 14624 # Green Hills C++ Compiler 14625 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14626 14627 # The C++ compiler must be used to create the archive. 14628 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14629 ;; 14630 *) 14631 # GNU C++ compiler with Solaris linker 14632 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 14633 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 14634 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14635 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14636 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14637 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14638 14639 # Commands to make compiler produce verbose output that lists 14640 # what "hidden" libraries, object files and flags are used when 14641 # linking a shared library. 14642 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14643 else 14644 # g++ 2.7 appears to require `-G' NOT `-shared' on this 14645 # platform. 14646 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 14647 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14648 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14649 14650 # Commands to make compiler produce verbose output that lists 14651 # what "hidden" libraries, object files and flags are used when 14652 # linking a shared library. 14653 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14654 fi 14655 14656 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 14657 case $host_os in 14658 solaris2.[0-5] | solaris2.[0-5].*) ;; 14659 *) 14660 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 14661 ;; 14662 esac 14663 fi 14664 ;; 14665 esac 14666 ;; 14667 14668 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14669 no_undefined_flag_CXX='${wl}-z,text' 14670 archive_cmds_need_lc_CXX=no 14671 hardcode_shlibpath_var_CXX=no 14672 runpath_var='LD_RUN_PATH' 14673 14674 case $cc_basename in 14675 CC*) 14676 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14677 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14678 ;; 14679 *) 14680 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14681 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14682 ;; 14683 esac 14684 ;; 14685 14686 sysv5* | sco3.2v5* | sco5v6*) 14687 # Note: We can NOT use -z defs as we might desire, because we do not 14688 # link with -lc, and that would cause any symbols used from libc to 14689 # always be unresolved, which means just about no library would 14690 # ever link correctly. If we're not using GNU ld we use -z text 14691 # though, which does catch some bad symbols but isn't as heavy-handed 14692 # as -z defs. 14693 no_undefined_flag_CXX='${wl}-z,text' 14694 allow_undefined_flag_CXX='${wl}-z,nodefs' 14695 archive_cmds_need_lc_CXX=no 14696 hardcode_shlibpath_var_CXX=no 14697 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 14698 hardcode_libdir_separator_CXX=':' 14699 link_all_deplibs_CXX=yes 14700 export_dynamic_flag_spec_CXX='${wl}-Bexport' 14701 runpath_var='LD_RUN_PATH' 14702 14703 case $cc_basename in 14704 CC*) 14705 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14706 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14707 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14708 '"$old_archive_cmds_CXX" 14709 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14710 '"$reload_cmds_CXX" 14711 ;; 14712 *) 14713 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14714 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14715 ;; 14716 esac 14717 ;; 14718 14719 tandem*) 14720 case $cc_basename in 14721 NCC*) 14722 # NonStop-UX NCC 3.20 14723 # FIXME: insert proper C++ library support 14724 ld_shlibs_CXX=no 14725 ;; 14726 *) 14727 # FIXME: insert proper C++ library support 14728 ld_shlibs_CXX=no 14729 ;; 14730 esac 14731 ;; 14732 14733 vxworks*) 14734 # FIXME: insert proper C++ library support 14735 ld_shlibs_CXX=no 14736 ;; 14737 14738 *) 14739 # FIXME: insert proper C++ library support 14740 ld_shlibs_CXX=no 14741 ;; 14742 esac 14743 14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14745$as_echo "$ld_shlibs_CXX" >&6; } 14746 test "$ld_shlibs_CXX" = no && can_build_shared=no 14747 14748 GCC_CXX="$GXX" 14749 LD_CXX="$LD" 14750 14751 ## CAVEAT EMPTOR: 14752 ## There is no encapsulation within the following macros, do not change 14753 ## the running order or otherwise move them around unless you know exactly 14754 ## what you are doing... 14755 # Dependencies to place before and after the object being linked: 14756predep_objects_CXX= 14757postdep_objects_CXX= 14758predeps_CXX= 14759postdeps_CXX= 14760compiler_lib_search_path_CXX= 14761 14762cat > conftest.$ac_ext <<_LT_EOF 14763class Foo 14764{ 14765public: 14766 Foo (void) { a = 0; } 14767private: 14768 int a; 14769}; 14770_LT_EOF 14771 14772 14773_lt_libdeps_save_CFLAGS=$CFLAGS 14774case "$CC $CFLAGS " in #( 14775*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 14776*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 14777*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 14778esac 14779 14780if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14781 (eval $ac_compile) 2>&5 14782 ac_status=$? 14783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14784 test $ac_status = 0; }; then 14785 # Parse the compiler output and extract the necessary 14786 # objects, libraries and library flags. 14787 14788 # Sentinel used to keep track of whether or not we are before 14789 # the conftest object file. 14790 pre_test_object_deps_done=no 14791 14792 for p in `eval "$output_verbose_link_cmd"`; do 14793 case ${prev}${p} in 14794 14795 -L* | -R* | -l*) 14796 # Some compilers place space between "-{L,R}" and the path. 14797 # Remove the space. 14798 if test $p = "-L" || 14799 test $p = "-R"; then 14800 prev=$p 14801 continue 14802 fi 14803 14804 # Expand the sysroot to ease extracting the directories later. 14805 if test -z "$prev"; then 14806 case $p in 14807 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 14808 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 14809 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 14810 esac 14811 fi 14812 case $p in 14813 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 14814 esac 14815 if test "$pre_test_object_deps_done" = no; then 14816 case ${prev} in 14817 -L | -R) 14818 # Internal compiler library paths should come after those 14819 # provided the user. The postdeps already come after the 14820 # user supplied libs so there is no need to process them. 14821 if test -z "$compiler_lib_search_path_CXX"; then 14822 compiler_lib_search_path_CXX="${prev}${p}" 14823 else 14824 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 14825 fi 14826 ;; 14827 # The "-l" case would never come before the object being 14828 # linked, so don't bother handling this case. 14829 esac 14830 else 14831 if test -z "$postdeps_CXX"; then 14832 postdeps_CXX="${prev}${p}" 14833 else 14834 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 14835 fi 14836 fi 14837 prev= 14838 ;; 14839 14840 *.lto.$objext) ;; # Ignore GCC LTO objects 14841 *.$objext) 14842 # This assumes that the test object file only shows up 14843 # once in the compiler output. 14844 if test "$p" = "conftest.$objext"; then 14845 pre_test_object_deps_done=yes 14846 continue 14847 fi 14848 14849 if test "$pre_test_object_deps_done" = no; then 14850 if test -z "$predep_objects_CXX"; then 14851 predep_objects_CXX="$p" 14852 else 14853 predep_objects_CXX="$predep_objects_CXX $p" 14854 fi 14855 else 14856 if test -z "$postdep_objects_CXX"; then 14857 postdep_objects_CXX="$p" 14858 else 14859 postdep_objects_CXX="$postdep_objects_CXX $p" 14860 fi 14861 fi 14862 ;; 14863 14864 *) ;; # Ignore the rest. 14865 14866 esac 14867 done 14868 14869 # Clean up. 14870 rm -f a.out a.exe 14871else 14872 echo "libtool.m4: error: problem compiling CXX test program" 14873fi 14874 14875$RM -f confest.$objext 14876CFLAGS=$_lt_libdeps_save_CFLAGS 14877 14878# PORTME: override above test on systems where it is broken 14879case $host_os in 14880interix[3-9]*) 14881 # Interix 3.5 installs completely hosed .la files for C++, so rather than 14882 # hack all around it, let's just trust "g++" to DTRT. 14883 predep_objects_CXX= 14884 postdep_objects_CXX= 14885 postdeps_CXX= 14886 ;; 14887 14888linux*) 14889 case `$CC -V 2>&1 | sed 5q` in 14890 *Sun\ C*) 14891 # Sun C++ 5.9 14892 14893 # The more standards-conforming stlport4 library is 14894 # incompatible with the Cstd library. Avoid specifying 14895 # it if it's in CXXFLAGS. Ignore libCrun as 14896 # -library=stlport4 depends on it. 14897 case " $CXX $CXXFLAGS " in 14898 *" -library=stlport4 "*) 14899 solaris_use_stlport4=yes 14900 ;; 14901 esac 14902 14903 if test "$solaris_use_stlport4" != yes; then 14904 postdeps_CXX='-library=Cstd -library=Crun' 14905 fi 14906 ;; 14907 esac 14908 ;; 14909 14910solaris*) 14911 case $cc_basename in 14912 CC* | sunCC*) 14913 # The more standards-conforming stlport4 library is 14914 # incompatible with the Cstd library. Avoid specifying 14915 # it if it's in CXXFLAGS. Ignore libCrun as 14916 # -library=stlport4 depends on it. 14917 case " $CXX $CXXFLAGS " in 14918 *" -library=stlport4 "*) 14919 solaris_use_stlport4=yes 14920 ;; 14921 esac 14922 14923 # Adding this requires a known-good setup of shared libraries for 14924 # Sun compiler versions before 5.6, else PIC objects from an old 14925 # archive will be linked into the output, leading to subtle bugs. 14926 if test "$solaris_use_stlport4" != yes; then 14927 postdeps_CXX='-library=Cstd -library=Crun' 14928 fi 14929 ;; 14930 esac 14931 ;; 14932esac 14933 14934 14935case " $postdeps_CXX " in 14936*" -lc "*) archive_cmds_need_lc_CXX=no ;; 14937esac 14938 compiler_lib_search_dirs_CXX= 14939if test -n "${compiler_lib_search_path_CXX}"; then 14940 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 14941fi 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 lt_prog_compiler_wl_CXX= 14974lt_prog_compiler_pic_CXX= 14975lt_prog_compiler_static_CXX= 14976 14977 14978 # C++ specific cases for pic, static, wl, etc. 14979 if test "$GXX" = yes; then 14980 lt_prog_compiler_wl_CXX='-Wl,' 14981 lt_prog_compiler_static_CXX='-static' 14982 14983 case $host_os in 14984 aix*) 14985 # All AIX code is PIC. 14986 if test "$host_cpu" = ia64; then 14987 # AIX 5 now supports IA64 processor 14988 lt_prog_compiler_static_CXX='-Bstatic' 14989 fi 14990 ;; 14991 14992 amigaos*) 14993 case $host_cpu in 14994 powerpc) 14995 # see comment about AmigaOS4 .so support 14996 lt_prog_compiler_pic_CXX='-fPIC' 14997 ;; 14998 m68k) 14999 # FIXME: we need at least 68020 code to build shared libraries, but 15000 # adding the `-m68020' flag to GCC prevents building anything better, 15001 # like `-m68040'. 15002 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15003 ;; 15004 esac 15005 ;; 15006 15007 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15008 # PIC is the default for these OSes. 15009 ;; 15010 mingw* | cygwin* | os2* | pw32* | cegcc*) 15011 # This hack is so that the source file can tell whether it is being 15012 # built for inclusion in a dll (and should export symbols for example). 15013 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15014 # (--disable-auto-import) libraries 15015 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15016 ;; 15017 darwin* | rhapsody*) 15018 # PIC is the default on this platform 15019 # Common symbols not allowed in MH_DYLIB files 15020 lt_prog_compiler_pic_CXX='-fno-common' 15021 ;; 15022 *djgpp*) 15023 # DJGPP does not support shared libraries at all 15024 lt_prog_compiler_pic_CXX= 15025 ;; 15026 haiku*) 15027 # PIC is the default for Haiku. 15028 # The "-static" flag exists, but is broken. 15029 lt_prog_compiler_static_CXX= 15030 ;; 15031 interix[3-9]*) 15032 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15033 # Instead, we relocate shared libraries at runtime. 15034 ;; 15035 sysv4*MP*) 15036 if test -d /usr/nec; then 15037 lt_prog_compiler_pic_CXX=-Kconform_pic 15038 fi 15039 ;; 15040 hpux*) 15041 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15042 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15043 # sets the default TLS model and affects inlining. 15044 case $host_cpu in 15045 hppa*64*) 15046 ;; 15047 *) 15048 lt_prog_compiler_pic_CXX='-fPIC' 15049 ;; 15050 esac 15051 ;; 15052 *qnx* | *nto*) 15053 # QNX uses GNU C++, but need to define -shared option too, otherwise 15054 # it will coredump. 15055 lt_prog_compiler_pic_CXX='-fPIC -shared' 15056 ;; 15057 *) 15058 lt_prog_compiler_pic_CXX='-fPIC' 15059 ;; 15060 esac 15061 else 15062 case $host_os in 15063 aix[4-9]*) 15064 # All AIX code is PIC. 15065 if test "$host_cpu" = ia64; then 15066 # AIX 5 now supports IA64 processor 15067 lt_prog_compiler_static_CXX='-Bstatic' 15068 else 15069 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15070 fi 15071 ;; 15072 chorus*) 15073 case $cc_basename in 15074 cxch68*) 15075 # Green Hills C++ Compiler 15076 # _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" 15077 ;; 15078 esac 15079 ;; 15080 mingw* | cygwin* | os2* | pw32* | cegcc*) 15081 # This hack is so that the source file can tell whether it is being 15082 # built for inclusion in a dll (and should export symbols for example). 15083 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15084 ;; 15085 dgux*) 15086 case $cc_basename in 15087 ec++*) 15088 lt_prog_compiler_pic_CXX='-KPIC' 15089 ;; 15090 ghcx*) 15091 # Green Hills C++ Compiler 15092 lt_prog_compiler_pic_CXX='-pic' 15093 ;; 15094 *) 15095 ;; 15096 esac 15097 ;; 15098 freebsd* | dragonfly*) 15099 # FreeBSD uses GNU C++ 15100 ;; 15101 hpux9* | hpux10* | hpux11*) 15102 case $cc_basename in 15103 CC*) 15104 lt_prog_compiler_wl_CXX='-Wl,' 15105 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 15106 if test "$host_cpu" != ia64; then 15107 lt_prog_compiler_pic_CXX='+Z' 15108 fi 15109 ;; 15110 aCC*) 15111 lt_prog_compiler_wl_CXX='-Wl,' 15112 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 15113 case $host_cpu in 15114 hppa*64*|ia64*) 15115 # +Z the default 15116 ;; 15117 *) 15118 lt_prog_compiler_pic_CXX='+Z' 15119 ;; 15120 esac 15121 ;; 15122 *) 15123 ;; 15124 esac 15125 ;; 15126 interix*) 15127 # This is c89, which is MS Visual C++ (no shared libs) 15128 # Anyone wants to do a port? 15129 ;; 15130 irix5* | irix6* | nonstopux*) 15131 case $cc_basename in 15132 CC*) 15133 lt_prog_compiler_wl_CXX='-Wl,' 15134 lt_prog_compiler_static_CXX='-non_shared' 15135 # CC pic flag -KPIC is the default. 15136 ;; 15137 *) 15138 ;; 15139 esac 15140 ;; 15141 linux* | k*bsd*-gnu | kopensolaris*-gnu) 15142 case $cc_basename in 15143 KCC*) 15144 # KAI C++ Compiler 15145 lt_prog_compiler_wl_CXX='--backend -Wl,' 15146 lt_prog_compiler_pic_CXX='-fPIC' 15147 ;; 15148 ecpc* ) 15149 # old Intel C++ for x86_64 which still supported -KPIC. 15150 lt_prog_compiler_wl_CXX='-Wl,' 15151 lt_prog_compiler_pic_CXX='-KPIC' 15152 lt_prog_compiler_static_CXX='-static' 15153 ;; 15154 icpc* ) 15155 # Intel C++, used to be incompatible with GCC. 15156 # ICC 10 doesn't accept -KPIC any more. 15157 lt_prog_compiler_wl_CXX='-Wl,' 15158 lt_prog_compiler_pic_CXX='-fPIC' 15159 lt_prog_compiler_static_CXX='-static' 15160 ;; 15161 pgCC* | pgcpp*) 15162 # Portland Group C++ compiler 15163 lt_prog_compiler_wl_CXX='-Wl,' 15164 lt_prog_compiler_pic_CXX='-fpic' 15165 lt_prog_compiler_static_CXX='-Bstatic' 15166 ;; 15167 cxx*) 15168 # Compaq C++ 15169 # Make sure the PIC flag is empty. It appears that all Alpha 15170 # Linux and Compaq Tru64 Unix objects are PIC. 15171 lt_prog_compiler_pic_CXX= 15172 lt_prog_compiler_static_CXX='-non_shared' 15173 ;; 15174 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15175 # IBM XL 8.0, 9.0 on PPC and BlueGene 15176 lt_prog_compiler_wl_CXX='-Wl,' 15177 lt_prog_compiler_pic_CXX='-qpic' 15178 lt_prog_compiler_static_CXX='-qstaticlink' 15179 ;; 15180 *) 15181 case `$CC -V 2>&1 | sed 5q` in 15182 *Sun\ C*) 15183 # Sun C++ 5.9 15184 lt_prog_compiler_pic_CXX='-KPIC' 15185 lt_prog_compiler_static_CXX='-Bstatic' 15186 lt_prog_compiler_wl_CXX='-Qoption ld ' 15187 ;; 15188 esac 15189 ;; 15190 esac 15191 ;; 15192 lynxos*) 15193 ;; 15194 m88k*) 15195 ;; 15196 mvs*) 15197 case $cc_basename in 15198 cxx*) 15199 lt_prog_compiler_pic_CXX='-W c,exportall' 15200 ;; 15201 *) 15202 ;; 15203 esac 15204 ;; 15205 netbsd*) 15206 ;; 15207 *qnx* | *nto*) 15208 # QNX uses GNU C++, but need to define -shared option too, otherwise 15209 # it will coredump. 15210 lt_prog_compiler_pic_CXX='-fPIC -shared' 15211 ;; 15212 osf3* | osf4* | osf5*) 15213 case $cc_basename in 15214 KCC*) 15215 lt_prog_compiler_wl_CXX='--backend -Wl,' 15216 ;; 15217 RCC*) 15218 # Rational C++ 2.4.1 15219 lt_prog_compiler_pic_CXX='-pic' 15220 ;; 15221 cxx*) 15222 # Digital/Compaq C++ 15223 lt_prog_compiler_wl_CXX='-Wl,' 15224 # Make sure the PIC flag is empty. It appears that all Alpha 15225 # Linux and Compaq Tru64 Unix objects are PIC. 15226 lt_prog_compiler_pic_CXX= 15227 lt_prog_compiler_static_CXX='-non_shared' 15228 ;; 15229 *) 15230 ;; 15231 esac 15232 ;; 15233 psos*) 15234 ;; 15235 solaris*) 15236 case $cc_basename in 15237 CC* | sunCC*) 15238 # Sun C++ 4.2, 5.x and Centerline C++ 15239 lt_prog_compiler_pic_CXX='-KPIC' 15240 lt_prog_compiler_static_CXX='-Bstatic' 15241 lt_prog_compiler_wl_CXX='-Qoption ld ' 15242 ;; 15243 gcx*) 15244 # Green Hills C++ Compiler 15245 lt_prog_compiler_pic_CXX='-PIC' 15246 ;; 15247 *) 15248 ;; 15249 esac 15250 ;; 15251 sunos4*) 15252 case $cc_basename in 15253 CC*) 15254 # Sun C++ 4.x 15255 lt_prog_compiler_pic_CXX='-pic' 15256 lt_prog_compiler_static_CXX='-Bstatic' 15257 ;; 15258 lcc*) 15259 # Lucid 15260 lt_prog_compiler_pic_CXX='-pic' 15261 ;; 15262 *) 15263 ;; 15264 esac 15265 ;; 15266 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15267 case $cc_basename in 15268 CC*) 15269 lt_prog_compiler_wl_CXX='-Wl,' 15270 lt_prog_compiler_pic_CXX='-KPIC' 15271 lt_prog_compiler_static_CXX='-Bstatic' 15272 ;; 15273 esac 15274 ;; 15275 tandem*) 15276 case $cc_basename in 15277 NCC*) 15278 # NonStop-UX NCC 3.20 15279 lt_prog_compiler_pic_CXX='-KPIC' 15280 ;; 15281 *) 15282 ;; 15283 esac 15284 ;; 15285 vxworks*) 15286 ;; 15287 *) 15288 lt_prog_compiler_can_build_shared_CXX=no 15289 ;; 15290 esac 15291 fi 15292 15293case $host_os in 15294 # For platforms which do not support PIC, -DPIC is meaningless: 15295 *djgpp*) 15296 lt_prog_compiler_pic_CXX= 15297 ;; 15298 *) 15299 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15300 ;; 15301esac 15302 15303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15304$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15305if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15306 $as_echo_n "(cached) " >&6 15307else 15308 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15309fi 15310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15311$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15312lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15313 15314# 15315# Check to make sure the PIC flag actually works. 15316# 15317if test -n "$lt_prog_compiler_pic_CXX"; then 15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15319$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15320if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15321 $as_echo_n "(cached) " >&6 15322else 15323 lt_cv_prog_compiler_pic_works_CXX=no 15324 ac_outfile=conftest.$ac_objext 15325 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15326 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 15327 # Insert the option either (1) after the last *FLAGS variable, or 15328 # (2) before a word containing "conftest.", or (3) at the end. 15329 # Note that $ac_compile itself does not contain backslashes and begins 15330 # with a dollar sign (not a hyphen), so the echo should work correctly. 15331 # The option is referenced via a variable to avoid confusing sed. 15332 lt_compile=`echo "$ac_compile" | $SED \ 15333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15335 -e 's:$: $lt_compiler_flag:'` 15336 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15337 (eval "$lt_compile" 2>conftest.err) 15338 ac_status=$? 15339 cat conftest.err >&5 15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15341 if (exit $ac_status) && test -s "$ac_outfile"; then 15342 # The compiler can only warn and ignore the option if not recognized 15343 # So say no if there are warnings other than the usual output. 15344 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15345 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15346 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15347 lt_cv_prog_compiler_pic_works_CXX=yes 15348 fi 15349 fi 15350 $RM conftest* 15351 15352fi 15353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15354$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15355 15356if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 15357 case $lt_prog_compiler_pic_CXX in 15358 "" | " "*) ;; 15359 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15360 esac 15361else 15362 lt_prog_compiler_pic_CXX= 15363 lt_prog_compiler_can_build_shared_CXX=no 15364fi 15365 15366fi 15367 15368 15369 15370 15371 15372# 15373# Check to make sure the static flag actually works. 15374# 15375wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15377$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15378if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15379 $as_echo_n "(cached) " >&6 15380else 15381 lt_cv_prog_compiler_static_works_CXX=no 15382 save_LDFLAGS="$LDFLAGS" 15383 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15384 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15385 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15386 # The linker can only warn and ignore the option if not recognized 15387 # So say no if there are warnings 15388 if test -s conftest.err; then 15389 # Append any errors to the config.log. 15390 cat conftest.err 1>&5 15391 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15392 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15393 if diff conftest.exp conftest.er2 >/dev/null; then 15394 lt_cv_prog_compiler_static_works_CXX=yes 15395 fi 15396 else 15397 lt_cv_prog_compiler_static_works_CXX=yes 15398 fi 15399 fi 15400 $RM -r conftest* 15401 LDFLAGS="$save_LDFLAGS" 15402 15403fi 15404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15405$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15406 15407if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 15408 : 15409else 15410 lt_prog_compiler_static_CXX= 15411fi 15412 15413 15414 15415 15416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15417$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15418if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15419 $as_echo_n "(cached) " >&6 15420else 15421 lt_cv_prog_compiler_c_o_CXX=no 15422 $RM -r conftest 2>/dev/null 15423 mkdir conftest 15424 cd conftest 15425 mkdir out 15426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15427 15428 lt_compiler_flag="-o out/conftest2.$ac_objext" 15429 # Insert the option either (1) after the last *FLAGS variable, or 15430 # (2) before a word containing "conftest.", or (3) at the end. 15431 # Note that $ac_compile itself does not contain backslashes and begins 15432 # with a dollar sign (not a hyphen), so the echo should work correctly. 15433 lt_compile=`echo "$ac_compile" | $SED \ 15434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15436 -e 's:$: $lt_compiler_flag:'` 15437 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15438 (eval "$lt_compile" 2>out/conftest.err) 15439 ac_status=$? 15440 cat out/conftest.err >&5 15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15442 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15443 then 15444 # The compiler can only warn and ignore the option if not recognized 15445 # So say no if there are warnings 15446 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15447 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15448 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15449 lt_cv_prog_compiler_c_o_CXX=yes 15450 fi 15451 fi 15452 chmod u+w . 2>&5 15453 $RM conftest* 15454 # SGI C++ compiler will create directory out/ii_files/ for 15455 # template instantiation 15456 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15457 $RM out/* && rmdir out 15458 cd .. 15459 $RM -r conftest 15460 $RM conftest* 15461 15462fi 15463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15464$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15465 15466 15467 15468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15469$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15470if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15471 $as_echo_n "(cached) " >&6 15472else 15473 lt_cv_prog_compiler_c_o_CXX=no 15474 $RM -r conftest 2>/dev/null 15475 mkdir conftest 15476 cd conftest 15477 mkdir out 15478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15479 15480 lt_compiler_flag="-o out/conftest2.$ac_objext" 15481 # Insert the option either (1) after the last *FLAGS variable, or 15482 # (2) before a word containing "conftest.", or (3) at the end. 15483 # Note that $ac_compile itself does not contain backslashes and begins 15484 # with a dollar sign (not a hyphen), so the echo should work correctly. 15485 lt_compile=`echo "$ac_compile" | $SED \ 15486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15488 -e 's:$: $lt_compiler_flag:'` 15489 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15490 (eval "$lt_compile" 2>out/conftest.err) 15491 ac_status=$? 15492 cat out/conftest.err >&5 15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15494 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15495 then 15496 # The compiler can only warn and ignore the option if not recognized 15497 # So say no if there are warnings 15498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15499 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15500 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15501 lt_cv_prog_compiler_c_o_CXX=yes 15502 fi 15503 fi 15504 chmod u+w . 2>&5 15505 $RM conftest* 15506 # SGI C++ compiler will create directory out/ii_files/ for 15507 # template instantiation 15508 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15509 $RM out/* && rmdir out 15510 cd .. 15511 $RM -r conftest 15512 $RM conftest* 15513 15514fi 15515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15516$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15517 15518 15519 15520 15521hard_links="nottested" 15522if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 15523 # do not overwrite the value of need_locks provided by the user 15524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15525$as_echo_n "checking if we can lock with hard links... " >&6; } 15526 hard_links=yes 15527 $RM conftest* 15528 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15529 touch conftest.a 15530 ln conftest.a conftest.b 2>&5 || hard_links=no 15531 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15533$as_echo "$hard_links" >&6; } 15534 if test "$hard_links" = no; then 15535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15536$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15537 need_locks=warn 15538 fi 15539else 15540 need_locks=no 15541fi 15542 15543 15544 15545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15546$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15547 15548 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15549 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15550 case $host_os in 15551 aix[4-9]*) 15552 # If we're using GNU nm, then we don't want the "-C" option. 15553 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15554 # Also, AIX nm treats weak defined symbols like other global defined 15555 # symbols, whereas GNU nm marks them as "W". 15556 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15557 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15558 else 15559 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15560 fi 15561 ;; 15562 pw32*) 15563 export_symbols_cmds_CXX="$ltdll_cmds" 15564 ;; 15565 cygwin* | mingw* | cegcc*) 15566 case $cc_basename in 15567 cl*) 15568 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15569 ;; 15570 *) 15571 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' 15572 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15573 ;; 15574 esac 15575 ;; 15576 *) 15577 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15578 ;; 15579 esac 15580 15581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15582$as_echo "$ld_shlibs_CXX" >&6; } 15583test "$ld_shlibs_CXX" = no && can_build_shared=no 15584 15585with_gnu_ld_CXX=$with_gnu_ld 15586 15587 15588 15589 15590 15591 15592# 15593# Do we need to explicitly link libc? 15594# 15595case "x$archive_cmds_need_lc_CXX" in 15596x|xyes) 15597 # Assume -lc should be added 15598 archive_cmds_need_lc_CXX=yes 15599 15600 if test "$enable_shared" = yes && test "$GCC" = yes; then 15601 case $archive_cmds_CXX in 15602 *'~'*) 15603 # FIXME: we may have to deal with multi-command sequences. 15604 ;; 15605 '$CC '*) 15606 # Test whether the compiler implicitly links with -lc since on some 15607 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15608 # to ld, don't add -lc before -lgcc. 15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15610$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15611if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15612 $as_echo_n "(cached) " >&6 15613else 15614 $RM conftest* 15615 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15616 15617 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15618 (eval $ac_compile) 2>&5 15619 ac_status=$? 15620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15621 test $ac_status = 0; } 2>conftest.err; then 15622 soname=conftest 15623 lib=conftest 15624 libobjs=conftest.$ac_objext 15625 deplibs= 15626 wl=$lt_prog_compiler_wl_CXX 15627 pic_flag=$lt_prog_compiler_pic_CXX 15628 compiler_flags=-v 15629 linker_flags=-v 15630 verstring= 15631 output_objdir=. 15632 libname=conftest 15633 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15634 allow_undefined_flag_CXX= 15635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15636 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15637 ac_status=$? 15638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15639 test $ac_status = 0; } 15640 then 15641 lt_cv_archive_cmds_need_lc_CXX=no 15642 else 15643 lt_cv_archive_cmds_need_lc_CXX=yes 15644 fi 15645 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15646 else 15647 cat conftest.err 1>&5 15648 fi 15649 $RM conftest* 15650 15651fi 15652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15653$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15654 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15655 ;; 15656 esac 15657 fi 15658 ;; 15659esac 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15723$as_echo_n "checking dynamic linker characteristics... " >&6; } 15724 15725library_names_spec= 15726libname_spec='lib$name' 15727soname_spec= 15728shrext_cmds=".so" 15729postinstall_cmds= 15730postuninstall_cmds= 15731finish_cmds= 15732finish_eval= 15733shlibpath_var= 15734shlibpath_overrides_runpath=unknown 15735version_type=none 15736dynamic_linker="$host_os ld.so" 15737sys_lib_dlsearch_path_spec="/lib /usr/lib" 15738need_lib_prefix=unknown 15739hardcode_into_libs=no 15740 15741# when you set need_version to no, make sure it does not cause -set_version 15742# flags to be left without arguments 15743need_version=unknown 15744 15745case $host_os in 15746aix3*) 15747 version_type=linux # correct to gnu/linux during the next big refactor 15748 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 15749 shlibpath_var=LIBPATH 15750 15751 # AIX 3 has no versioning support, so we append a major version to the name. 15752 soname_spec='${libname}${release}${shared_ext}$major' 15753 ;; 15754 15755aix[4-9]*) 15756 version_type=linux # correct to gnu/linux during the next big refactor 15757 need_lib_prefix=no 15758 need_version=no 15759 hardcode_into_libs=yes 15760 if test "$host_cpu" = ia64; then 15761 # AIX 5 supports IA64 15762 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15763 shlibpath_var=LD_LIBRARY_PATH 15764 else 15765 # With GCC up to 2.95.x, collect2 would create an import file 15766 # for dependence libraries. The import file would start with 15767 # the line `#! .'. This would cause the generated library to 15768 # depend on `.', always an invalid library. This was fixed in 15769 # development snapshots of GCC prior to 3.0. 15770 case $host_os in 15771 aix4 | aix4.[01] | aix4.[01].*) 15772 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15773 echo ' yes ' 15774 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 15775 : 15776 else 15777 can_build_shared=no 15778 fi 15779 ;; 15780 esac 15781 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15782 # soname into executable. Probably we can add versioning support to 15783 # collect2, so additional links can be useful in future. 15784 if test "$aix_use_runtimelinking" = yes; then 15785 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15786 # instead of lib<name>.a to let people know that these are not 15787 # typical AIX shared libraries. 15788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15789 else 15790 # We preserve .a as extension for shared libraries through AIX4.2 15791 # and later when we are not doing run time linking. 15792 library_names_spec='${libname}${release}.a $libname.a' 15793 soname_spec='${libname}${release}${shared_ext}$major' 15794 fi 15795 shlibpath_var=LIBPATH 15796 fi 15797 ;; 15798 15799amigaos*) 15800 case $host_cpu in 15801 powerpc) 15802 # Since July 2007 AmigaOS4 officially supports .so libraries. 15803 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 15804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15805 ;; 15806 m68k) 15807 library_names_spec='$libname.ixlibrary $libname.a' 15808 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15809 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 15810 ;; 15811 esac 15812 ;; 15813 15814beos*) 15815 library_names_spec='${libname}${shared_ext}' 15816 dynamic_linker="$host_os ld.so" 15817 shlibpath_var=LIBRARY_PATH 15818 ;; 15819 15820bsdi[45]*) 15821 version_type=linux # correct to gnu/linux during the next big refactor 15822 need_version=no 15823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15824 soname_spec='${libname}${release}${shared_ext}$major' 15825 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15826 shlibpath_var=LD_LIBRARY_PATH 15827 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15828 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15829 # the default ld.so.conf also contains /usr/contrib/lib and 15830 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15831 # libtool to hard-code these into programs 15832 ;; 15833 15834cygwin* | mingw* | pw32* | cegcc*) 15835 version_type=windows 15836 shrext_cmds=".dll" 15837 need_version=no 15838 need_lib_prefix=no 15839 15840 case $GCC,$cc_basename in 15841 yes,*) 15842 # gcc 15843 library_names_spec='$libname.dll.a' 15844 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15845 postinstall_cmds='base_file=`basename \${file}`~ 15846 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15847 dldir=$destdir/`dirname \$dlpath`~ 15848 test -d \$dldir || mkdir -p \$dldir~ 15849 $install_prog $dir/$dlname \$dldir/$dlname~ 15850 chmod a+x \$dldir/$dlname~ 15851 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 15852 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 15853 fi' 15854 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15855 dlpath=$dir/\$dldll~ 15856 $RM \$dlpath' 15857 shlibpath_overrides_runpath=yes 15858 15859 case $host_os in 15860 cygwin*) 15861 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15862 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15863 15864 ;; 15865 mingw* | cegcc*) 15866 # MinGW DLLs use traditional 'lib' prefix 15867 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15868 ;; 15869 pw32*) 15870 # pw32 DLLs use 'pw' prefix rather than 'lib' 15871 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15872 ;; 15873 esac 15874 dynamic_linker='Win32 ld.exe' 15875 ;; 15876 15877 *,cl*) 15878 # Native MSVC 15879 libname_spec='$name' 15880 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15881 library_names_spec='${libname}.dll.lib' 15882 15883 case $build_os in 15884 mingw*) 15885 sys_lib_search_path_spec= 15886 lt_save_ifs=$IFS 15887 IFS=';' 15888 for lt_path in $LIB 15889 do 15890 IFS=$lt_save_ifs 15891 # Let DOS variable expansion print the short 8.3 style file name. 15892 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 15893 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 15894 done 15895 IFS=$lt_save_ifs 15896 # Convert to MSYS style. 15897 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 15898 ;; 15899 cygwin*) 15900 # Convert to unix form, then to dos form, then back to unix form 15901 # but this time dos style (no spaces!) so that the unix form looks 15902 # like /cygdrive/c/PROGRA~1:/cygdr... 15903 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 15904 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 15905 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15906 ;; 15907 *) 15908 sys_lib_search_path_spec="$LIB" 15909 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 15910 # It is most probably a Windows format PATH. 15911 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15912 else 15913 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15914 fi 15915 # FIXME: find the short name or the path components, as spaces are 15916 # common. (e.g. "Program Files" -> "PROGRA~1") 15917 ;; 15918 esac 15919 15920 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15921 postinstall_cmds='base_file=`basename \${file}`~ 15922 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 15923 dldir=$destdir/`dirname \$dlpath`~ 15924 test -d \$dldir || mkdir -p \$dldir~ 15925 $install_prog $dir/$dlname \$dldir/$dlname' 15926 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15927 dlpath=$dir/\$dldll~ 15928 $RM \$dlpath' 15929 shlibpath_overrides_runpath=yes 15930 dynamic_linker='Win32 link.exe' 15931 ;; 15932 15933 *) 15934 # Assume MSVC wrapper 15935 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15936 dynamic_linker='Win32 ld.exe' 15937 ;; 15938 esac 15939 # FIXME: first we should search . and the directory the executable is in 15940 shlibpath_var=PATH 15941 ;; 15942 15943darwin* | rhapsody*) 15944 dynamic_linker="$host_os dyld" 15945 version_type=darwin 15946 need_lib_prefix=no 15947 need_version=no 15948 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15949 soname_spec='${libname}${release}${major}$shared_ext' 15950 shlibpath_overrides_runpath=yes 15951 shlibpath_var=DYLD_LIBRARY_PATH 15952 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15953 15954 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15955 ;; 15956 15957dgux*) 15958 version_type=linux # correct to gnu/linux during the next big refactor 15959 need_lib_prefix=no 15960 need_version=no 15961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15962 soname_spec='${libname}${release}${shared_ext}$major' 15963 shlibpath_var=LD_LIBRARY_PATH 15964 ;; 15965 15966freebsd* | dragonfly*) 15967 # DragonFly does not have aout. When/if they implement a new 15968 # versioning mechanism, adjust this. 15969 if test -x /usr/bin/objformat; then 15970 objformat=`/usr/bin/objformat` 15971 else 15972 case $host_os in 15973 freebsd[23].*) objformat=aout ;; 15974 *) objformat=elf ;; 15975 esac 15976 fi 15977 version_type=freebsd-$objformat 15978 case $version_type in 15979 freebsd-elf*) 15980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15981 need_version=no 15982 need_lib_prefix=no 15983 ;; 15984 freebsd-*) 15985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15986 need_version=yes 15987 ;; 15988 esac 15989 shlibpath_var=LD_LIBRARY_PATH 15990 case $host_os in 15991 freebsd2.*) 15992 shlibpath_overrides_runpath=yes 15993 ;; 15994 freebsd3.[01]* | freebsdelf3.[01]*) 15995 shlibpath_overrides_runpath=yes 15996 hardcode_into_libs=yes 15997 ;; 15998 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 15999 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16000 shlibpath_overrides_runpath=no 16001 hardcode_into_libs=yes 16002 ;; 16003 *) # from 4.6 on, and DragonFly 16004 shlibpath_overrides_runpath=yes 16005 hardcode_into_libs=yes 16006 ;; 16007 esac 16008 ;; 16009 16010gnu*) 16011 version_type=linux # correct to gnu/linux during the next big refactor 16012 need_lib_prefix=no 16013 need_version=no 16014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16015 soname_spec='${libname}${release}${shared_ext}$major' 16016 shlibpath_var=LD_LIBRARY_PATH 16017 shlibpath_overrides_runpath=no 16018 hardcode_into_libs=yes 16019 ;; 16020 16021haiku*) 16022 version_type=linux # correct to gnu/linux during the next big refactor 16023 need_lib_prefix=no 16024 need_version=no 16025 dynamic_linker="$host_os runtime_loader" 16026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16027 soname_spec='${libname}${release}${shared_ext}$major' 16028 shlibpath_var=LIBRARY_PATH 16029 shlibpath_overrides_runpath=yes 16030 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16031 hardcode_into_libs=yes 16032 ;; 16033 16034hpux9* | hpux10* | hpux11*) 16035 # Give a soname corresponding to the major version so that dld.sl refuses to 16036 # link against other versions. 16037 version_type=sunos 16038 need_lib_prefix=no 16039 need_version=no 16040 case $host_cpu in 16041 ia64*) 16042 shrext_cmds='.so' 16043 hardcode_into_libs=yes 16044 dynamic_linker="$host_os dld.so" 16045 shlibpath_var=LD_LIBRARY_PATH 16046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16048 soname_spec='${libname}${release}${shared_ext}$major' 16049 if test "X$HPUX_IA64_MODE" = X32; then 16050 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16051 else 16052 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16053 fi 16054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16055 ;; 16056 hppa*64*) 16057 shrext_cmds='.sl' 16058 hardcode_into_libs=yes 16059 dynamic_linker="$host_os dld.sl" 16060 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16063 soname_spec='${libname}${release}${shared_ext}$major' 16064 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16066 ;; 16067 *) 16068 shrext_cmds='.sl' 16069 dynamic_linker="$host_os dld.sl" 16070 shlibpath_var=SHLIB_PATH 16071 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16073 soname_spec='${libname}${release}${shared_ext}$major' 16074 ;; 16075 esac 16076 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16077 postinstall_cmds='chmod 555 $lib' 16078 # or fails outright, so override atomically: 16079 install_override_mode=555 16080 ;; 16081 16082interix[3-9]*) 16083 version_type=linux # correct to gnu/linux during the next big refactor 16084 need_lib_prefix=no 16085 need_version=no 16086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16087 soname_spec='${libname}${release}${shared_ext}$major' 16088 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16089 shlibpath_var=LD_LIBRARY_PATH 16090 shlibpath_overrides_runpath=no 16091 hardcode_into_libs=yes 16092 ;; 16093 16094irix5* | irix6* | nonstopux*) 16095 case $host_os in 16096 nonstopux*) version_type=nonstopux ;; 16097 *) 16098 if test "$lt_cv_prog_gnu_ld" = yes; then 16099 version_type=linux # correct to gnu/linux during the next big refactor 16100 else 16101 version_type=irix 16102 fi ;; 16103 esac 16104 need_lib_prefix=no 16105 need_version=no 16106 soname_spec='${libname}${release}${shared_ext}$major' 16107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16108 case $host_os in 16109 irix5* | nonstopux*) 16110 libsuff= shlibsuff= 16111 ;; 16112 *) 16113 case $LD in # libtool.m4 will add one of these switches to LD 16114 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16115 libsuff= shlibsuff= libmagic=32-bit;; 16116 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16117 libsuff=32 shlibsuff=N32 libmagic=N32;; 16118 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16119 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16120 *) libsuff= shlibsuff= libmagic=never-match;; 16121 esac 16122 ;; 16123 esac 16124 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16125 shlibpath_overrides_runpath=no 16126 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16127 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16128 hardcode_into_libs=yes 16129 ;; 16130 16131# No shared lib support for Linux oldld, aout, or coff. 16132linux*oldld* | linux*aout* | linux*coff*) 16133 dynamic_linker=no 16134 ;; 16135 16136# This must be glibc/ELF. 16137linux* | k*bsd*-gnu | kopensolaris*-gnu) 16138 version_type=linux # correct to gnu/linux during the next big refactor 16139 need_lib_prefix=no 16140 need_version=no 16141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16142 soname_spec='${libname}${release}${shared_ext}$major' 16143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16144 shlibpath_var=LD_LIBRARY_PATH 16145 shlibpath_overrides_runpath=no 16146 16147 # Some binutils ld are patched to set DT_RUNPATH 16148 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16149 $as_echo_n "(cached) " >&6 16150else 16151 lt_cv_shlibpath_overrides_runpath=no 16152 save_LDFLAGS=$LDFLAGS 16153 save_libdir=$libdir 16154 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16155 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16157/* end confdefs.h. */ 16158 16159int 16160main () 16161{ 16162 16163 ; 16164 return 0; 16165} 16166_ACEOF 16167if ac_fn_cxx_try_link "$LINENO"; then : 16168 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16169 lt_cv_shlibpath_overrides_runpath=yes 16170fi 16171fi 16172rm -f core conftest.err conftest.$ac_objext \ 16173 conftest$ac_exeext conftest.$ac_ext 16174 LDFLAGS=$save_LDFLAGS 16175 libdir=$save_libdir 16176 16177fi 16178 16179 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16180 16181 # This implies no fast_install, which is unacceptable. 16182 # Some rework will be needed to allow for fast_install 16183 # before this can be enabled. 16184 hardcode_into_libs=yes 16185 16186 # Add ABI-specific directories to the system library path. 16187 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 16188 16189 # Append ld.so.conf contents to the search path 16190 if test -f /etc/ld.so.conf; then 16191 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' ' '` 16192 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 16193 16194 fi 16195 16196 # We used to test for /lib/ld.so.1 and disable shared libraries on 16197 # powerpc, because MkLinux only supported shared libraries with the 16198 # GNU dynamic linker. Since this was broken with cross compilers, 16199 # most powerpc-linux boxes support dynamic linking these days and 16200 # people can always --disable-shared, the test was removed, and we 16201 # assume the GNU/Linux dynamic linker is in use. 16202 dynamic_linker='GNU/Linux ld.so' 16203 ;; 16204 16205netbsd*) 16206 version_type=sunos 16207 need_lib_prefix=no 16208 need_version=no 16209 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16212 dynamic_linker='NetBSD (a.out) ld.so' 16213 else 16214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16215 soname_spec='${libname}${release}${shared_ext}$major' 16216 dynamic_linker='NetBSD ld.elf_so' 16217 fi 16218 shlibpath_var=LD_LIBRARY_PATH 16219 shlibpath_overrides_runpath=yes 16220 hardcode_into_libs=yes 16221 ;; 16222 16223newsos6) 16224 version_type=linux # correct to gnu/linux during the next big refactor 16225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16226 shlibpath_var=LD_LIBRARY_PATH 16227 shlibpath_overrides_runpath=yes 16228 ;; 16229 16230*nto* | *qnx*) 16231 version_type=qnx 16232 need_lib_prefix=no 16233 need_version=no 16234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16235 soname_spec='${libname}${release}${shared_ext}$major' 16236 shlibpath_var=LD_LIBRARY_PATH 16237 shlibpath_overrides_runpath=no 16238 hardcode_into_libs=yes 16239 dynamic_linker='ldqnx.so' 16240 ;; 16241 16242openbsd*) 16243 version_type=sunos 16244 sys_lib_dlsearch_path_spec="/usr/lib" 16245 need_lib_prefix=no 16246 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16247 case $host_os in 16248 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16249 *) need_version=no ;; 16250 esac 16251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16253 shlibpath_var=LD_LIBRARY_PATH 16254 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16255 case $host_os in 16256 openbsd2.[89] | openbsd2.[89].*) 16257 shlibpath_overrides_runpath=no 16258 ;; 16259 *) 16260 shlibpath_overrides_runpath=yes 16261 ;; 16262 esac 16263 else 16264 shlibpath_overrides_runpath=yes 16265 fi 16266 ;; 16267 16268os2*) 16269 libname_spec='$name' 16270 shrext_cmds=".dll" 16271 need_lib_prefix=no 16272 library_names_spec='$libname${shared_ext} $libname.a' 16273 dynamic_linker='OS/2 ld.exe' 16274 shlibpath_var=LIBPATH 16275 ;; 16276 16277osf3* | osf4* | osf5*) 16278 version_type=osf 16279 need_lib_prefix=no 16280 need_version=no 16281 soname_spec='${libname}${release}${shared_ext}$major' 16282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16283 shlibpath_var=LD_LIBRARY_PATH 16284 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16285 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16286 ;; 16287 16288rdos*) 16289 dynamic_linker=no 16290 ;; 16291 16292solaris*) 16293 version_type=linux # correct to gnu/linux during the next big refactor 16294 need_lib_prefix=no 16295 need_version=no 16296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16297 soname_spec='${libname}${release}${shared_ext}$major' 16298 shlibpath_var=LD_LIBRARY_PATH 16299 shlibpath_overrides_runpath=yes 16300 hardcode_into_libs=yes 16301 # ldd complains unless libraries are executable 16302 postinstall_cmds='chmod +x $lib' 16303 ;; 16304 16305sunos4*) 16306 version_type=sunos 16307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16308 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16309 shlibpath_var=LD_LIBRARY_PATH 16310 shlibpath_overrides_runpath=yes 16311 if test "$with_gnu_ld" = yes; then 16312 need_lib_prefix=no 16313 fi 16314 need_version=yes 16315 ;; 16316 16317sysv4 | sysv4.3*) 16318 version_type=linux # correct to gnu/linux during the next big refactor 16319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16320 soname_spec='${libname}${release}${shared_ext}$major' 16321 shlibpath_var=LD_LIBRARY_PATH 16322 case $host_vendor in 16323 sni) 16324 shlibpath_overrides_runpath=no 16325 need_lib_prefix=no 16326 runpath_var=LD_RUN_PATH 16327 ;; 16328 siemens) 16329 need_lib_prefix=no 16330 ;; 16331 motorola) 16332 need_lib_prefix=no 16333 need_version=no 16334 shlibpath_overrides_runpath=no 16335 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16336 ;; 16337 esac 16338 ;; 16339 16340sysv4*MP*) 16341 if test -d /usr/nec ;then 16342 version_type=linux # correct to gnu/linux during the next big refactor 16343 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16344 soname_spec='$libname${shared_ext}.$major' 16345 shlibpath_var=LD_LIBRARY_PATH 16346 fi 16347 ;; 16348 16349sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16350 version_type=freebsd-elf 16351 need_lib_prefix=no 16352 need_version=no 16353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16354 soname_spec='${libname}${release}${shared_ext}$major' 16355 shlibpath_var=LD_LIBRARY_PATH 16356 shlibpath_overrides_runpath=yes 16357 hardcode_into_libs=yes 16358 if test "$with_gnu_ld" = yes; then 16359 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16360 else 16361 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16362 case $host_os in 16363 sco3.2v5*) 16364 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16365 ;; 16366 esac 16367 fi 16368 sys_lib_dlsearch_path_spec='/usr/lib' 16369 ;; 16370 16371tpf*) 16372 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16373 version_type=linux # correct to gnu/linux during the next big refactor 16374 need_lib_prefix=no 16375 need_version=no 16376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16377 shlibpath_var=LD_LIBRARY_PATH 16378 shlibpath_overrides_runpath=no 16379 hardcode_into_libs=yes 16380 ;; 16381 16382uts4*) 16383 version_type=linux # correct to gnu/linux during the next big refactor 16384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16385 soname_spec='${libname}${release}${shared_ext}$major' 16386 shlibpath_var=LD_LIBRARY_PATH 16387 ;; 16388 16389*) 16390 dynamic_linker=no 16391 ;; 16392esac 16393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16394$as_echo "$dynamic_linker" >&6; } 16395test "$dynamic_linker" = no && can_build_shared=no 16396 16397variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16398if test "$GCC" = yes; then 16399 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16400fi 16401 16402if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16403 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16404fi 16405if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16406 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16407fi 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445 16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16447$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16448hardcode_action_CXX= 16449if test -n "$hardcode_libdir_flag_spec_CXX" || 16450 test -n "$runpath_var_CXX" || 16451 test "X$hardcode_automatic_CXX" = "Xyes" ; then 16452 16453 # We can hardcode non-existent directories. 16454 if test "$hardcode_direct_CXX" != no && 16455 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16456 # have to relink, otherwise we might link with an installed library 16457 # when we should be linking with a yet-to-be-installed one 16458 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 16459 test "$hardcode_minus_L_CXX" != no; then 16460 # Linking always hardcodes the temporary library directory. 16461 hardcode_action_CXX=relink 16462 else 16463 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16464 hardcode_action_CXX=immediate 16465 fi 16466else 16467 # We cannot hardcode anything, or else we can only hardcode existing 16468 # directories. 16469 hardcode_action_CXX=unsupported 16470fi 16471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16472$as_echo "$hardcode_action_CXX" >&6; } 16473 16474if test "$hardcode_action_CXX" = relink || 16475 test "$inherit_rpath_CXX" = yes; then 16476 # Fast installation is not supported 16477 enable_fast_install=no 16478elif test "$shlibpath_overrides_runpath" = yes || 16479 test "$enable_shared" = no; then 16480 # Fast installation is not necessary 16481 enable_fast_install=needless 16482fi 16483 16484 16485 16486 16487 16488 16489 16490 fi # test -n "$compiler" 16491 16492 CC=$lt_save_CC 16493 CFLAGS=$lt_save_CFLAGS 16494 LDCXX=$LD 16495 LD=$lt_save_LD 16496 GCC=$lt_save_GCC 16497 with_gnu_ld=$lt_save_with_gnu_ld 16498 lt_cv_path_LDCXX=$lt_cv_path_LD 16499 lt_cv_path_LD=$lt_save_path_LD 16500 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16501 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16502fi # test "$_lt_caught_CXX_error" != yes 16503 16504ac_ext=c 16505ac_cpp='$CPP $CPPFLAGS' 16506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16508ac_compiler_gnu=$ac_cv_c_compiler_gnu 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524 ac_config_commands="$ac_config_commands libtool" 16525 16526 16527 16528 16529# Only expand once: 16530 16531 16532 16533# Checks for typedefs, structures, and compiler characteristics. 16534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 16535$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 16536if ${ac_cv_c_const+:} false; then : 16537 $as_echo_n "(cached) " >&6 16538else 16539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16540/* end confdefs.h. */ 16541 16542int 16543main () 16544{ 16545 16546#ifndef __cplusplus 16547 /* Ultrix mips cc rejects this sort of thing. */ 16548 typedef int charset[2]; 16549 const charset cs = { 0, 0 }; 16550 /* SunOS 4.1.1 cc rejects this. */ 16551 char const *const *pcpcc; 16552 char **ppc; 16553 /* NEC SVR4.0.2 mips cc rejects this. */ 16554 struct point {int x, y;}; 16555 static struct point const zero = {0,0}; 16556 /* AIX XL C 1.02.0.0 rejects this. 16557 It does not let you subtract one const X* pointer from another in 16558 an arm of an if-expression whose if-part is not a constant 16559 expression */ 16560 const char *g = "string"; 16561 pcpcc = &g + (g ? g-g : 0); 16562 /* HPUX 7.0 cc rejects these. */ 16563 ++pcpcc; 16564 ppc = (char**) pcpcc; 16565 pcpcc = (char const *const *) ppc; 16566 { /* SCO 3.2v4 cc rejects this sort of thing. */ 16567 char tx; 16568 char *t = &tx; 16569 char const *s = 0 ? (char *) 0 : (char const *) 0; 16570 16571 *t++ = 0; 16572 if (s) return 0; 16573 } 16574 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 16575 int x[] = {25, 17}; 16576 const int *foo = &x[0]; 16577 ++foo; 16578 } 16579 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 16580 typedef const int *iptr; 16581 iptr p = 0; 16582 ++p; 16583 } 16584 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 16585 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 16586 struct s { int j; const int *ap[3]; } bx; 16587 struct s *b = &bx; b->j = 5; 16588 } 16589 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 16590 const int foo = 10; 16591 if (!foo) return 0; 16592 } 16593 return !cs[0] && !zero.x; 16594#endif 16595 16596 ; 16597 return 0; 16598} 16599_ACEOF 16600if ac_fn_c_try_compile "$LINENO"; then : 16601 ac_cv_c_const=yes 16602else 16603 ac_cv_c_const=no 16604fi 16605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16606fi 16607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 16608$as_echo "$ac_cv_c_const" >&6; } 16609if test $ac_cv_c_const = no; then 16610 16611$as_echo "#define const /**/" >>confdefs.h 16612 16613fi 16614 16615ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 16616if test "x$ac_cv_type_off_t" = xyes; then : 16617 16618else 16619 16620cat >>confdefs.h <<_ACEOF 16621#define off_t long int 16622_ACEOF 16623 16624fi 16625 16626ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16627if test "x$ac_cv_type_size_t" = xyes; then : 16628 16629else 16630 16631cat >>confdefs.h <<_ACEOF 16632#define size_t unsigned int 16633_ACEOF 16634 16635fi 16636 16637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 16638$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 16639if ${ac_cv_header_time+:} false; then : 16640 $as_echo_n "(cached) " >&6 16641else 16642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16643/* end confdefs.h. */ 16644#include <sys/types.h> 16645#include <sys/time.h> 16646#include <time.h> 16647 16648int 16649main () 16650{ 16651if ((struct tm *) 0) 16652return 0; 16653 ; 16654 return 0; 16655} 16656_ACEOF 16657if ac_fn_c_try_compile "$LINENO"; then : 16658 ac_cv_header_time=yes 16659else 16660 ac_cv_header_time=no 16661fi 16662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16663fi 16664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 16665$as_echo "$ac_cv_header_time" >&6; } 16666if test $ac_cv_header_time = yes; then 16667 16668$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 16669 16670fi 16671 16672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 16673$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 16674if ${ac_cv_struct_tm+:} false; then : 16675 $as_echo_n "(cached) " >&6 16676else 16677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16678/* end confdefs.h. */ 16679#include <sys/types.h> 16680#include <time.h> 16681 16682int 16683main () 16684{ 16685struct tm tm; 16686 int *p = &tm.tm_sec; 16687 return !p; 16688 ; 16689 return 0; 16690} 16691_ACEOF 16692if ac_fn_c_try_compile "$LINENO"; then : 16693 ac_cv_struct_tm=time.h 16694else 16695 ac_cv_struct_tm=sys/time.h 16696fi 16697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16698fi 16699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 16700$as_echo "$ac_cv_struct_tm" >&6; } 16701if test $ac_cv_struct_tm = sys/time.h; then 16702 16703$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 16704 16705fi 16706 16707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 16708$as_echo_n "checking for working volatile... " >&6; } 16709if ${ac_cv_c_volatile+:} false; then : 16710 $as_echo_n "(cached) " >&6 16711else 16712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16713/* end confdefs.h. */ 16714 16715int 16716main () 16717{ 16718 16719volatile int x; 16720int * volatile y = (int *) 0; 16721return !x && !y; 16722 ; 16723 return 0; 16724} 16725_ACEOF 16726if ac_fn_c_try_compile "$LINENO"; then : 16727 ac_cv_c_volatile=yes 16728else 16729 ac_cv_c_volatile=no 16730fi 16731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16732fi 16733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 16734$as_echo "$ac_cv_c_volatile" >&6; } 16735if test $ac_cv_c_volatile = no; then 16736 16737$as_echo "#define volatile /**/" >>confdefs.h 16738 16739fi 16740 16741 16742# Checks for library functions. 16743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 16744$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 16745if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : 16746 $as_echo_n "(cached) " >&6 16747else 16748 rm -f conftest.sym conftest.file 16749echo >conftest.file 16750if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 16751 if test "$cross_compiling" = yes; then : 16752 ac_cv_func_lstat_dereferences_slashed_symlink=no 16753else 16754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16755/* end confdefs.h. */ 16756$ac_includes_default 16757int 16758main () 16759{ 16760struct stat sbuf; 16761 /* Linux will dereference the symlink and fail, as required by POSIX. 16762 That is better in the sense that it means we will not 16763 have to compile and use the lstat wrapper. */ 16764 return lstat ("conftest.sym/", &sbuf) == 0; 16765 ; 16766 return 0; 16767} 16768_ACEOF 16769if ac_fn_c_try_run "$LINENO"; then : 16770 ac_cv_func_lstat_dereferences_slashed_symlink=yes 16771else 16772 ac_cv_func_lstat_dereferences_slashed_symlink=no 16773fi 16774rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16775 conftest.$ac_objext conftest.beam conftest.$ac_ext 16776fi 16777 16778else 16779 # If the `ln -s' command failed, then we probably don't even 16780 # have an lstat function. 16781 ac_cv_func_lstat_dereferences_slashed_symlink=no 16782fi 16783rm -f conftest.sym conftest.file 16784 16785fi 16786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 16787$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 16788 16789test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 16790 16791cat >>confdefs.h <<_ACEOF 16792#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 16793_ACEOF 16794 16795 16796if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then 16797 case " $LIBOBJS " in 16798 *" lstat.$ac_objext "* ) ;; 16799 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 16800 ;; 16801esac 16802 16803fi 16804 16805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5 16806$as_echo_n "checking whether lstat accepts an empty string... " >&6; } 16807if ${ac_cv_func_lstat_empty_string_bug+:} false; then : 16808 $as_echo_n "(cached) " >&6 16809else 16810 if test "$cross_compiling" = yes; then : 16811 ac_cv_func_lstat_empty_string_bug=yes 16812else 16813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16814/* end confdefs.h. */ 16815$ac_includes_default 16816int 16817main () 16818{ 16819struct stat sbuf; 16820 return lstat ("", &sbuf) == 0; 16821 ; 16822 return 0; 16823} 16824_ACEOF 16825if ac_fn_c_try_run "$LINENO"; then : 16826 ac_cv_func_lstat_empty_string_bug=no 16827else 16828 ac_cv_func_lstat_empty_string_bug=yes 16829fi 16830rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16831 conftest.$ac_objext conftest.beam conftest.$ac_ext 16832fi 16833 16834fi 16835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5 16836$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } 16837if test $ac_cv_func_lstat_empty_string_bug = yes; then 16838 case " $LIBOBJS " in 16839 *" lstat.$ac_objext "* ) ;; 16840 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 16841 ;; 16842esac 16843 16844 16845cat >>confdefs.h <<_ACEOF 16846#define HAVE_LSTAT_EMPTY_STRING_BUG 1 16847_ACEOF 16848 16849fi 16850 16851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 16852$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 16853if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : 16854 $as_echo_n "(cached) " >&6 16855else 16856 rm -f conftest.sym conftest.file 16857echo >conftest.file 16858if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 16859 if test "$cross_compiling" = yes; then : 16860 ac_cv_func_lstat_dereferences_slashed_symlink=no 16861else 16862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16863/* end confdefs.h. */ 16864$ac_includes_default 16865int 16866main () 16867{ 16868struct stat sbuf; 16869 /* Linux will dereference the symlink and fail, as required by POSIX. 16870 That is better in the sense that it means we will not 16871 have to compile and use the lstat wrapper. */ 16872 return lstat ("conftest.sym/", &sbuf) == 0; 16873 ; 16874 return 0; 16875} 16876_ACEOF 16877if ac_fn_c_try_run "$LINENO"; then : 16878 ac_cv_func_lstat_dereferences_slashed_symlink=yes 16879else 16880 ac_cv_func_lstat_dereferences_slashed_symlink=no 16881fi 16882rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16883 conftest.$ac_objext conftest.beam conftest.$ac_ext 16884fi 16885 16886else 16887 # If the `ln -s' command failed, then we probably don't even 16888 # have an lstat function. 16889 ac_cv_func_lstat_dereferences_slashed_symlink=no 16890fi 16891rm -f conftest.sym conftest.file 16892 16893fi 16894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 16895$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 16896 16897test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 16898 16899cat >>confdefs.h <<_ACEOF 16900#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 16901_ACEOF 16902 16903 16904if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then 16905 case " $LIBOBJS " in 16906 *" lstat.$ac_objext "* ) ;; 16907 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 16908 ;; 16909esac 16910 16911fi 16912 16913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 16914$as_echo_n "checking for working memcmp... " >&6; } 16915if ${ac_cv_func_memcmp_working+:} false; then : 16916 $as_echo_n "(cached) " >&6 16917else 16918 if test "$cross_compiling" = yes; then : 16919 ac_cv_func_memcmp_working=no 16920else 16921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16922/* end confdefs.h. */ 16923$ac_includes_default 16924int 16925main () 16926{ 16927 16928 /* Some versions of memcmp are not 8-bit clean. */ 16929 char c0 = '\100', c1 = '\200', c2 = '\201'; 16930 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 16931 return 1; 16932 16933 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 16934 or more and with at least one buffer not starting on a 4-byte boundary. 16935 William Lewis provided this test program. */ 16936 { 16937 char foo[21]; 16938 char bar[21]; 16939 int i; 16940 for (i = 0; i < 4; i++) 16941 { 16942 char *a = foo + i; 16943 char *b = bar + i; 16944 strcpy (a, "--------01111111"); 16945 strcpy (b, "--------10000000"); 16946 if (memcmp (a, b, 16) >= 0) 16947 return 1; 16948 } 16949 return 0; 16950 } 16951 16952 ; 16953 return 0; 16954} 16955_ACEOF 16956if ac_fn_c_try_run "$LINENO"; then : 16957 ac_cv_func_memcmp_working=yes 16958else 16959 ac_cv_func_memcmp_working=no 16960fi 16961rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16962 conftest.$ac_objext conftest.beam conftest.$ac_ext 16963fi 16964 16965fi 16966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 16967$as_echo "$ac_cv_func_memcmp_working" >&6; } 16968test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 16969 *" memcmp.$ac_objext "* ) ;; 16970 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 16971 ;; 16972esac 16973 16974 16975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 16976$as_echo_n "checking whether stat accepts an empty string... " >&6; } 16977if ${ac_cv_func_stat_empty_string_bug+:} false; then : 16978 $as_echo_n "(cached) " >&6 16979else 16980 if test "$cross_compiling" = yes; then : 16981 ac_cv_func_stat_empty_string_bug=yes 16982else 16983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16984/* end confdefs.h. */ 16985$ac_includes_default 16986int 16987main () 16988{ 16989struct stat sbuf; 16990 return stat ("", &sbuf) == 0; 16991 ; 16992 return 0; 16993} 16994_ACEOF 16995if ac_fn_c_try_run "$LINENO"; then : 16996 ac_cv_func_stat_empty_string_bug=no 16997else 16998 ac_cv_func_stat_empty_string_bug=yes 16999fi 17000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17001 conftest.$ac_objext conftest.beam conftest.$ac_ext 17002fi 17003 17004fi 17005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 17006$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } 17007if test $ac_cv_func_stat_empty_string_bug = yes; then 17008 case " $LIBOBJS " in 17009 *" stat.$ac_objext "* ) ;; 17010 *) LIBOBJS="$LIBOBJS stat.$ac_objext" 17011 ;; 17012esac 17013 17014 17015cat >>confdefs.h <<_ACEOF 17016#define HAVE_STAT_EMPTY_STRING_BUG 1 17017_ACEOF 17018 17019fi 17020 17021for ac_func in strftime 17022do : 17023 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 17024if test "x$ac_cv_func_strftime" = xyes; then : 17025 cat >>confdefs.h <<_ACEOF 17026#define HAVE_STRFTIME 1 17027_ACEOF 17028 17029else 17030 # strftime is in -lintl on SCO UNIX. 17031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 17032$as_echo_n "checking for strftime in -lintl... " >&6; } 17033if ${ac_cv_lib_intl_strftime+:} false; then : 17034 $as_echo_n "(cached) " >&6 17035else 17036 ac_check_lib_save_LIBS=$LIBS 17037LIBS="-lintl $LIBS" 17038cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17039/* end confdefs.h. */ 17040 17041/* Override any GCC internal prototype to avoid an error. 17042 Use char because int might match the return type of a GCC 17043 builtin and then its argument prototype would still apply. */ 17044#ifdef __cplusplus 17045extern "C" 17046#endif 17047char strftime (); 17048int 17049main () 17050{ 17051return strftime (); 17052 ; 17053 return 0; 17054} 17055_ACEOF 17056if ac_fn_c_try_link "$LINENO"; then : 17057 ac_cv_lib_intl_strftime=yes 17058else 17059 ac_cv_lib_intl_strftime=no 17060fi 17061rm -f core conftest.err conftest.$ac_objext \ 17062 conftest$ac_exeext conftest.$ac_ext 17063LIBS=$ac_check_lib_save_LIBS 17064fi 17065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 17066$as_echo "$ac_cv_lib_intl_strftime" >&6; } 17067if test "x$ac_cv_lib_intl_strftime" = xyes; then : 17068 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 17069 17070LIBS="-lintl $LIBS" 17071fi 17072 17073fi 17074done 17075 17076 17077#----------------------------------------------------------------------- 17078# --with-pgconfig 17079# 17080 17081# Check whether --with-pgconfig was given. 17082if test "${with_pgconfig+set}" = set; then : 17083 withval=$with_pgconfig; PGCONFIG="$withval" 17084else 17085 PGCONFIG="" 17086fi 17087 17088if test "x$PGCONFIG" = "x"; then 17089 # PGCONFIG was not specified, so search within the current path 17090 # Extract the first word of "pg_config", so it can be a program name with args. 17091set dummy pg_config; ac_word=$2 17092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17093$as_echo_n "checking for $ac_word... " >&6; } 17094if ${ac_cv_path_PGCONFIG+:} false; then : 17095 $as_echo_n "(cached) " >&6 17096else 17097 case $PGCONFIG in 17098 [\\/]* | ?:[\\/]*) 17099 ac_cv_path_PGCONFIG="$PGCONFIG" # Let the user override the test with a path. 17100 ;; 17101 *) 17102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17103for as_dir in $PATH 17104do 17105 IFS=$as_save_IFS 17106 test -z "$as_dir" && as_dir=. 17107 for ac_exec_ext in '' $ac_executable_extensions; do 17108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17109 ac_cv_path_PGCONFIG="$as_dir/$ac_word$ac_exec_ext" 17110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17111 break 2 17112 fi 17113done 17114 done 17115IFS=$as_save_IFS 17116 17117 ;; 17118esac 17119fi 17120PGCONFIG=$ac_cv_path_PGCONFIG 17121if test -n "$PGCONFIG"; then 17122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGCONFIG" >&5 17123$as_echo "$PGCONFIG" >&6; } 17124else 17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17126$as_echo "no" >&6; } 17127fi 17128 17129 17130 # If we couldn't find pg_config, display an error 17131 if test "x$PGCONFIG" = "x"; then 17132 as_fn_error $? "could not find pg_config within the current path. You may need to try re-running configure with a --with-pgconfig parameter." "$LINENO" 5 17133 fi 17134else 17135 # PGCONFIG was specified; display a message to the user 17136 if test "x$PGSCONFIG" = "xyes"; then 17137 as_fn_error $? "you must specify a parameter to --with-pgconfig, e.g. --with-pgconfig=/path/to/pg_config" "$LINENO" 5 17138 else 17139 if test -f $PGCONFIG; then 17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using user-specified pg_config file: $PGCONFIG" >&5 17141$as_echo "Using user-specified pg_config file: $PGCONFIG" >&6; } 17142 else 17143 as_fn_error $? "the user-specified pg_config file $PGCONFIG does not exist" "$LINENO" 5 17144 fi 17145 fi 17146fi 17147 17148PG_CFLAGS=-I`$PGCONFIG --includedir` 17149PG_LDFLAGS=-L`$PGCONFIG --libdir` 17150 17151 17152 17153# Ensure that we can parse libpq-fe.h 17154CFLAGS_SAVE="$CFLAGS" 17155CFLAGS="$PG_CFLAGS" 17156for ac_header in libpq-fe.h 17157do : 17158 ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default" 17159if test "x$ac_cv_header_libpq_fe_h" = xyes; then : 17160 cat >>confdefs.h <<_ACEOF 17161#define HAVE_LIBPQ_FE_H 1 17162_ACEOF 17163 17164else 17165 as_fn_error $? "cannot find libpq-fe.h, bailing out" "$LINENO" 5 17166fi 17167 17168done 17169 17170CFLAGS="$CFLAGS_SAVE" 17171# Ensure we can link against libpq 17172LDFLAGS_SAVE="$LDFLAGS" 17173LDFLAGS="$PG_LDFLAGS" 17174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQconnectdb in -lpq" >&5 17175$as_echo_n "checking for PQconnectdb in -lpq... " >&6; } 17176if ${ac_cv_lib_pq_PQconnectdb+:} false; then : 17177 $as_echo_n "(cached) " >&6 17178else 17179 ac_check_lib_save_LIBS=$LIBS 17180LIBS="-lpq $LIBS" 17181cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17182/* end confdefs.h. */ 17183 17184/* Override any GCC internal prototype to avoid an error. 17185 Use char because int might match the return type of a GCC 17186 builtin and then its argument prototype would still apply. */ 17187#ifdef __cplusplus 17188extern "C" 17189#endif 17190char PQconnectdb (); 17191int 17192main () 17193{ 17194return PQconnectdb (); 17195 ; 17196 return 0; 17197} 17198_ACEOF 17199if ac_fn_c_try_link "$LINENO"; then : 17200 ac_cv_lib_pq_PQconnectdb=yes 17201else 17202 ac_cv_lib_pq_PQconnectdb=no 17203fi 17204rm -f core conftest.err conftest.$ac_objext \ 17205 conftest$ac_exeext conftest.$ac_ext 17206LIBS=$ac_check_lib_save_LIBS 17207fi 17208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQconnectdb" >&5 17209$as_echo "$ac_cv_lib_pq_PQconnectdb" >&6; } 17210if test "x$ac_cv_lib_pq_PQconnectdb" = xyes; then : 17211 PG_LIB=-lpq 17212else 17213 as_fn_error $? "'libpq' is required but it doesn't seem to be installed on this system." "$LINENO" 5 17214fi 17215 17216LDFLAGS="$LDFLAGS_SAVE" 17217 17218 17219# Checks for installed libraries 17220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_prepare_v2 in -lsqlite3" >&5 17221$as_echo_n "checking for sqlite3_prepare_v2 in -lsqlite3... " >&6; } 17222if ${ac_cv_lib_sqlite3_sqlite3_prepare_v2+:} false; then : 17223 $as_echo_n "(cached) " >&6 17224else 17225 ac_check_lib_save_LIBS=$LIBS 17226LIBS="-lsqlite3 -lm $LIBS" 17227cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17228/* end confdefs.h. */ 17229 17230/* Override any GCC internal prototype to avoid an error. 17231 Use char because int might match the return type of a GCC 17232 builtin and then its argument prototype would still apply. */ 17233#ifdef __cplusplus 17234extern "C" 17235#endif 17236char sqlite3_prepare_v2 (); 17237int 17238main () 17239{ 17240return sqlite3_prepare_v2 (); 17241 ; 17242 return 0; 17243} 17244_ACEOF 17245if ac_fn_c_try_link "$LINENO"; then : 17246 ac_cv_lib_sqlite3_sqlite3_prepare_v2=yes 17247else 17248 ac_cv_lib_sqlite3_sqlite3_prepare_v2=no 17249fi 17250rm -f core conftest.err conftest.$ac_objext \ 17251 conftest$ac_exeext conftest.$ac_ext 17252LIBS=$ac_check_lib_save_LIBS 17253fi 17254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&5 17255$as_echo "$ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&6; } 17256if test "x$ac_cv_lib_sqlite3_sqlite3_prepare_v2" = xyes; then : 17257 cat >>confdefs.h <<_ACEOF 17258#define HAVE_LIBSQLITE3 1 17259_ACEOF 17260 17261 LIBS="-lsqlite3 $LIBS" 17262 17263else 17264 as_fn_error $? "'libsqlite3' is required but it doesn't seem to be installed on this system." "$LINENO" 5 17265fi 17266 17267 17268ac_config_files="$ac_config_files Makefile Doxyfile virtualpg.pc" 17269 17270 17271# Checking for MinGW 17272 if test "$target_alias" = "mingw32"; then 17273 MINGW_TRUE= 17274 MINGW_FALSE='#' 17275else 17276 MINGW_TRUE='#' 17277 MINGW_FALSE= 17278fi 17279 17280 17281cat >confcache <<\_ACEOF 17282# This file is a shell script that caches the results of configure 17283# tests run on this system so they can be shared between configure 17284# scripts and configure runs, see configure's option --config-cache. 17285# It is not useful on other systems. If it contains results you don't 17286# want to keep, you may remove or edit it. 17287# 17288# config.status only pays attention to the cache file if you give it 17289# the --recheck option to rerun configure. 17290# 17291# `ac_cv_env_foo' variables (set or unset) will be overridden when 17292# loading this file, other *unset* `ac_cv_foo' will be assigned the 17293# following values. 17294 17295_ACEOF 17296 17297# The following way of writing the cache mishandles newlines in values, 17298# but we know of no workaround that is simple, portable, and efficient. 17299# So, we kill variables containing newlines. 17300# Ultrix sh set writes to stderr and can't be redirected directly, 17301# and sets the high bit in the cache file unless we assign to the vars. 17302( 17303 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17304 eval ac_val=\$$ac_var 17305 case $ac_val in #( 17306 *${as_nl}*) 17307 case $ac_var in #( 17308 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17309$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17310 esac 17311 case $ac_var in #( 17312 _ | IFS | as_nl) ;; #( 17313 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17314 *) { eval $ac_var=; unset $ac_var;} ;; 17315 esac ;; 17316 esac 17317 done 17318 17319 (set) 2>&1 | 17320 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17321 *${as_nl}ac_space=\ *) 17322 # `set' does not quote correctly, so add quotes: double-quote 17323 # substitution turns \\\\ into \\, and sed turns \\ into \. 17324 sed -n \ 17325 "s/'/'\\\\''/g; 17326 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17327 ;; #( 17328 *) 17329 # `set' quotes correctly as required by POSIX, so do not add quotes. 17330 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17331 ;; 17332 esac | 17333 sort 17334) | 17335 sed ' 17336 /^ac_cv_env_/b end 17337 t clear 17338 :clear 17339 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17340 t end 17341 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17342 :end' >>confcache 17343if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17344 if test -w "$cache_file"; then 17345 if test "x$cache_file" != "x/dev/null"; then 17346 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17347$as_echo "$as_me: updating cache $cache_file" >&6;} 17348 if test ! -f "$cache_file" || test -h "$cache_file"; then 17349 cat confcache >"$cache_file" 17350 else 17351 case $cache_file in #( 17352 */* | ?:*) 17353 mv -f confcache "$cache_file"$$ && 17354 mv -f "$cache_file"$$ "$cache_file" ;; #( 17355 *) 17356 mv -f confcache "$cache_file" ;; 17357 esac 17358 fi 17359 fi 17360 else 17361 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17362$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17363 fi 17364fi 17365rm -f confcache 17366 17367test "x$prefix" = xNONE && prefix=$ac_default_prefix 17368# Let make expand exec_prefix. 17369test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17370 17371DEFS=-DHAVE_CONFIG_H 17372 17373ac_libobjs= 17374ac_ltlibobjs= 17375for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17376 # 1. Remove the extension, and $U if already installed. 17377 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17378 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17379 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17380 # will be set to the directory where LIBOBJS objects are built. 17381 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17382 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17383done 17384LIBOBJS=$ac_libobjs 17385 17386LTLIBOBJS=$ac_ltlibobjs 17387 17388 17389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 17390$as_echo_n "checking that generated files are newer than configure... " >&6; } 17391 if test -n "$am_sleep_pid"; then 17392 # Hide warnings about reused PIDs. 17393 wait $am_sleep_pid 2>/dev/null 17394 fi 17395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 17396$as_echo "done" >&6; } 17397 if test -n "$EXEEXT"; then 17398 am__EXEEXT_TRUE= 17399 am__EXEEXT_FALSE='#' 17400else 17401 am__EXEEXT_TRUE='#' 17402 am__EXEEXT_FALSE= 17403fi 17404 17405if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 17406 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 17407Usually this means the macro was only invoked conditionally." "$LINENO" 5 17408fi 17409if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17410 as_fn_error $? "conditional \"AMDEP\" was never defined. 17411Usually this means the macro was only invoked conditionally." "$LINENO" 5 17412fi 17413if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17414 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17415Usually this means the macro was only invoked conditionally." "$LINENO" 5 17416fi 17417if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17418 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 17419Usually this means the macro was only invoked conditionally." "$LINENO" 5 17420fi 17421if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17422 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17423Usually this means the macro was only invoked conditionally." "$LINENO" 5 17424fi 17425if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then 17426 as_fn_error $? "conditional \"MINGW\" was never defined. 17427Usually this means the macro was only invoked conditionally." "$LINENO" 5 17428fi 17429 17430: "${CONFIG_STATUS=./config.status}" 17431ac_write_fail=0 17432ac_clean_files_save=$ac_clean_files 17433ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17434{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17435$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17436as_write_fail=0 17437cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17438#! $SHELL 17439# Generated by $as_me. 17440# Run this file to recreate the current configuration. 17441# Compiler output produced by configure, useful for debugging 17442# configure, is in config.log if it exists. 17443 17444debug=false 17445ac_cs_recheck=false 17446ac_cs_silent=false 17447 17448SHELL=\${CONFIG_SHELL-$SHELL} 17449export SHELL 17450_ASEOF 17451cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17452## -------------------- ## 17453## M4sh Initialization. ## 17454## -------------------- ## 17455 17456# Be more Bourne compatible 17457DUALCASE=1; export DUALCASE # for MKS sh 17458if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17459 emulate sh 17460 NULLCMD=: 17461 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17462 # is contrary to our usage. Disable this feature. 17463 alias -g '${1+"$@"}'='"$@"' 17464 setopt NO_GLOB_SUBST 17465else 17466 case `(set -o) 2>/dev/null` in #( 17467 *posix*) : 17468 set -o posix ;; #( 17469 *) : 17470 ;; 17471esac 17472fi 17473 17474 17475as_nl=' 17476' 17477export as_nl 17478# Printing a long string crashes Solaris 7 /usr/bin/printf. 17479as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17480as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17481as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17482# Prefer a ksh shell builtin over an external printf program on Solaris, 17483# but without wasting forks for bash or zsh. 17484if test -z "$BASH_VERSION$ZSH_VERSION" \ 17485 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17486 as_echo='print -r --' 17487 as_echo_n='print -rn --' 17488elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17489 as_echo='printf %s\n' 17490 as_echo_n='printf %s' 17491else 17492 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17493 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17494 as_echo_n='/usr/ucb/echo -n' 17495 else 17496 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17497 as_echo_n_body='eval 17498 arg=$1; 17499 case $arg in #( 17500 *"$as_nl"*) 17501 expr "X$arg" : "X\\(.*\\)$as_nl"; 17502 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17503 esac; 17504 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17505 ' 17506 export as_echo_n_body 17507 as_echo_n='sh -c $as_echo_n_body as_echo' 17508 fi 17509 export as_echo_body 17510 as_echo='sh -c $as_echo_body as_echo' 17511fi 17512 17513# The user is always right. 17514if test "${PATH_SEPARATOR+set}" != set; then 17515 PATH_SEPARATOR=: 17516 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17517 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17518 PATH_SEPARATOR=';' 17519 } 17520fi 17521 17522 17523# IFS 17524# We need space, tab and new line, in precisely that order. Quoting is 17525# there to prevent editors from complaining about space-tab. 17526# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17527# splitting by setting IFS to empty value.) 17528IFS=" "" $as_nl" 17529 17530# Find who we are. Look in the path if we contain no directory separator. 17531as_myself= 17532case $0 in #(( 17533 *[\\/]* ) as_myself=$0 ;; 17534 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17535for as_dir in $PATH 17536do 17537 IFS=$as_save_IFS 17538 test -z "$as_dir" && as_dir=. 17539 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17540 done 17541IFS=$as_save_IFS 17542 17543 ;; 17544esac 17545# We did not find ourselves, most probably we were run as `sh COMMAND' 17546# in which case we are not to be found in the path. 17547if test "x$as_myself" = x; then 17548 as_myself=$0 17549fi 17550if test ! -f "$as_myself"; then 17551 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17552 exit 1 17553fi 17554 17555# Unset variables that we do not need and which cause bugs (e.g. in 17556# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17557# suppresses any "Segmentation fault" message there. '((' could 17558# trigger a bug in pdksh 5.2.14. 17559for as_var in BASH_ENV ENV MAIL MAILPATH 17560do eval test x\${$as_var+set} = xset \ 17561 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17562done 17563PS1='$ ' 17564PS2='> ' 17565PS4='+ ' 17566 17567# NLS nuisances. 17568LC_ALL=C 17569export LC_ALL 17570LANGUAGE=C 17571export LANGUAGE 17572 17573# CDPATH. 17574(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17575 17576 17577# as_fn_error STATUS ERROR [LINENO LOG_FD] 17578# ---------------------------------------- 17579# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17580# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17581# script with STATUS, using 1 if that was 0. 17582as_fn_error () 17583{ 17584 as_status=$1; test $as_status -eq 0 && as_status=1 17585 if test "$4"; then 17586 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17587 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17588 fi 17589 $as_echo "$as_me: error: $2" >&2 17590 as_fn_exit $as_status 17591} # as_fn_error 17592 17593 17594# as_fn_set_status STATUS 17595# ----------------------- 17596# Set $? to STATUS, without forking. 17597as_fn_set_status () 17598{ 17599 return $1 17600} # as_fn_set_status 17601 17602# as_fn_exit STATUS 17603# ----------------- 17604# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17605as_fn_exit () 17606{ 17607 set +e 17608 as_fn_set_status $1 17609 exit $1 17610} # as_fn_exit 17611 17612# as_fn_unset VAR 17613# --------------- 17614# Portably unset VAR. 17615as_fn_unset () 17616{ 17617 { eval $1=; unset $1;} 17618} 17619as_unset=as_fn_unset 17620# as_fn_append VAR VALUE 17621# ---------------------- 17622# Append the text in VALUE to the end of the definition contained in VAR. Take 17623# advantage of any shell optimizations that allow amortized linear growth over 17624# repeated appends, instead of the typical quadratic growth present in naive 17625# implementations. 17626if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17627 eval 'as_fn_append () 17628 { 17629 eval $1+=\$2 17630 }' 17631else 17632 as_fn_append () 17633 { 17634 eval $1=\$$1\$2 17635 } 17636fi # as_fn_append 17637 17638# as_fn_arith ARG... 17639# ------------------ 17640# Perform arithmetic evaluation on the ARGs, and store the result in the 17641# global $as_val. Take advantage of shells that can avoid forks. The arguments 17642# must be portable across $(()) and expr. 17643if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17644 eval 'as_fn_arith () 17645 { 17646 as_val=$(( $* )) 17647 }' 17648else 17649 as_fn_arith () 17650 { 17651 as_val=`expr "$@" || test $? -eq 1` 17652 } 17653fi # as_fn_arith 17654 17655 17656if expr a : '\(a\)' >/dev/null 2>&1 && 17657 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17658 as_expr=expr 17659else 17660 as_expr=false 17661fi 17662 17663if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17664 as_basename=basename 17665else 17666 as_basename=false 17667fi 17668 17669if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17670 as_dirname=dirname 17671else 17672 as_dirname=false 17673fi 17674 17675as_me=`$as_basename -- "$0" || 17676$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17677 X"$0" : 'X\(//\)$' \| \ 17678 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17679$as_echo X/"$0" | 17680 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17681 s//\1/ 17682 q 17683 } 17684 /^X\/\(\/\/\)$/{ 17685 s//\1/ 17686 q 17687 } 17688 /^X\/\(\/\).*/{ 17689 s//\1/ 17690 q 17691 } 17692 s/.*/./; q'` 17693 17694# Avoid depending upon Character Ranges. 17695as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17696as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17697as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17698as_cr_digits='0123456789' 17699as_cr_alnum=$as_cr_Letters$as_cr_digits 17700 17701ECHO_C= ECHO_N= ECHO_T= 17702case `echo -n x` in #((((( 17703-n*) 17704 case `echo 'xy\c'` in 17705 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17706 xy) ECHO_C='\c';; 17707 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17708 ECHO_T=' ';; 17709 esac;; 17710*) 17711 ECHO_N='-n';; 17712esac 17713 17714rm -f conf$$ conf$$.exe conf$$.file 17715if test -d conf$$.dir; then 17716 rm -f conf$$.dir/conf$$.file 17717else 17718 rm -f conf$$.dir 17719 mkdir conf$$.dir 2>/dev/null 17720fi 17721if (echo >conf$$.file) 2>/dev/null; then 17722 if ln -s conf$$.file conf$$ 2>/dev/null; then 17723 as_ln_s='ln -s' 17724 # ... but there are two gotchas: 17725 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17726 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17727 # In both cases, we have to default to `cp -pR'. 17728 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17729 as_ln_s='cp -pR' 17730 elif ln conf$$.file conf$$ 2>/dev/null; then 17731 as_ln_s=ln 17732 else 17733 as_ln_s='cp -pR' 17734 fi 17735else 17736 as_ln_s='cp -pR' 17737fi 17738rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17739rmdir conf$$.dir 2>/dev/null 17740 17741 17742# as_fn_mkdir_p 17743# ------------- 17744# Create "$as_dir" as a directory, including parents if necessary. 17745as_fn_mkdir_p () 17746{ 17747 17748 case $as_dir in #( 17749 -*) as_dir=./$as_dir;; 17750 esac 17751 test -d "$as_dir" || eval $as_mkdir_p || { 17752 as_dirs= 17753 while :; do 17754 case $as_dir in #( 17755 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17756 *) as_qdir=$as_dir;; 17757 esac 17758 as_dirs="'$as_qdir' $as_dirs" 17759 as_dir=`$as_dirname -- "$as_dir" || 17760$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17761 X"$as_dir" : 'X\(//\)[^/]' \| \ 17762 X"$as_dir" : 'X\(//\)$' \| \ 17763 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17764$as_echo X"$as_dir" | 17765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17766 s//\1/ 17767 q 17768 } 17769 /^X\(\/\/\)[^/].*/{ 17770 s//\1/ 17771 q 17772 } 17773 /^X\(\/\/\)$/{ 17774 s//\1/ 17775 q 17776 } 17777 /^X\(\/\).*/{ 17778 s//\1/ 17779 q 17780 } 17781 s/.*/./; q'` 17782 test -d "$as_dir" && break 17783 done 17784 test -z "$as_dirs" || eval "mkdir $as_dirs" 17785 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17786 17787 17788} # as_fn_mkdir_p 17789if mkdir -p . 2>/dev/null; then 17790 as_mkdir_p='mkdir -p "$as_dir"' 17791else 17792 test -d ./-p && rmdir ./-p 17793 as_mkdir_p=false 17794fi 17795 17796 17797# as_fn_executable_p FILE 17798# ----------------------- 17799# Test if FILE is an executable regular file. 17800as_fn_executable_p () 17801{ 17802 test -f "$1" && test -x "$1" 17803} # as_fn_executable_p 17804as_test_x='test -x' 17805as_executable_p=as_fn_executable_p 17806 17807# Sed expression to map a string onto a valid CPP name. 17808as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17809 17810# Sed expression to map a string onto a valid variable name. 17811as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17812 17813 17814exec 6>&1 17815## ----------------------------------- ## 17816## Main body of $CONFIG_STATUS script. ## 17817## ----------------------------------- ## 17818_ASEOF 17819test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17820 17821cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17822# Save the log message, to keep $0 and so on meaningful, and to 17823# report actual input values of CONFIG_FILES etc. instead of their 17824# values after options handling. 17825ac_log=" 17826This file was extended by virtualpg $as_me 2.0.1, which was 17827generated by GNU Autoconf 2.69. Invocation command line was 17828 17829 CONFIG_FILES = $CONFIG_FILES 17830 CONFIG_HEADERS = $CONFIG_HEADERS 17831 CONFIG_LINKS = $CONFIG_LINKS 17832 CONFIG_COMMANDS = $CONFIG_COMMANDS 17833 $ $0 $@ 17834 17835on `(hostname || uname -n) 2>/dev/null | sed 1q` 17836" 17837 17838_ACEOF 17839 17840case $ac_config_files in *" 17841"*) set x $ac_config_files; shift; ac_config_files=$*;; 17842esac 17843 17844case $ac_config_headers in *" 17845"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17846esac 17847 17848 17849cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17850# Files that config.status was made for. 17851config_files="$ac_config_files" 17852config_headers="$ac_config_headers" 17853config_commands="$ac_config_commands" 17854 17855_ACEOF 17856 17857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17858ac_cs_usage="\ 17859\`$as_me' instantiates files and other configuration actions 17860from templates according to the current configuration. Unless the files 17861and actions are specified as TAGs, all are instantiated by default. 17862 17863Usage: $0 [OPTION]... [TAG]... 17864 17865 -h, --help print this help, then exit 17866 -V, --version print version number and configuration settings, then exit 17867 --config print configuration, then exit 17868 -q, --quiet, --silent 17869 do not print progress messages 17870 -d, --debug don't remove temporary files 17871 --recheck update $as_me by reconfiguring in the same conditions 17872 --file=FILE[:TEMPLATE] 17873 instantiate the configuration file FILE 17874 --header=FILE[:TEMPLATE] 17875 instantiate the configuration header FILE 17876 17877Configuration files: 17878$config_files 17879 17880Configuration headers: 17881$config_headers 17882 17883Configuration commands: 17884$config_commands 17885 17886Report bugs to <a.furieri@lqt.it>." 17887 17888_ACEOF 17889cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17890ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17891ac_cs_version="\\ 17892virtualpg config.status 2.0.1 17893configured by $0, generated by GNU Autoconf 2.69, 17894 with options \\"\$ac_cs_config\\" 17895 17896Copyright (C) 2012 Free Software Foundation, Inc. 17897This config.status script is free software; the Free Software Foundation 17898gives unlimited permission to copy, distribute and modify it." 17899 17900ac_pwd='$ac_pwd' 17901srcdir='$srcdir' 17902INSTALL='$INSTALL' 17903MKDIR_P='$MKDIR_P' 17904AWK='$AWK' 17905test -n "\$AWK" || AWK=awk 17906_ACEOF 17907 17908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17909# The default lists apply if the user does not specify any file. 17910ac_need_defaults=: 17911while test $# != 0 17912do 17913 case $1 in 17914 --*=?*) 17915 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17916 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17917 ac_shift=: 17918 ;; 17919 --*=) 17920 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17921 ac_optarg= 17922 ac_shift=: 17923 ;; 17924 *) 17925 ac_option=$1 17926 ac_optarg=$2 17927 ac_shift=shift 17928 ;; 17929 esac 17930 17931 case $ac_option in 17932 # Handling of the options. 17933 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17934 ac_cs_recheck=: ;; 17935 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17936 $as_echo "$ac_cs_version"; exit ;; 17937 --config | --confi | --conf | --con | --co | --c ) 17938 $as_echo "$ac_cs_config"; exit ;; 17939 --debug | --debu | --deb | --de | --d | -d ) 17940 debug=: ;; 17941 --file | --fil | --fi | --f ) 17942 $ac_shift 17943 case $ac_optarg in 17944 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17945 '') as_fn_error $? "missing file argument" ;; 17946 esac 17947 as_fn_append CONFIG_FILES " '$ac_optarg'" 17948 ac_need_defaults=false;; 17949 --header | --heade | --head | --hea ) 17950 $ac_shift 17951 case $ac_optarg in 17952 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17953 esac 17954 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17955 ac_need_defaults=false;; 17956 --he | --h) 17957 # Conflict between --help and --header 17958 as_fn_error $? "ambiguous option: \`$1' 17959Try \`$0 --help' for more information.";; 17960 --help | --hel | -h ) 17961 $as_echo "$ac_cs_usage"; exit ;; 17962 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17963 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17964 ac_cs_silent=: ;; 17965 17966 # This is an error. 17967 -*) as_fn_error $? "unrecognized option: \`$1' 17968Try \`$0 --help' for more information." ;; 17969 17970 *) as_fn_append ac_config_targets " $1" 17971 ac_need_defaults=false ;; 17972 17973 esac 17974 shift 17975done 17976 17977ac_configure_extra_args= 17978 17979if $ac_cs_silent; then 17980 exec 6>/dev/null 17981 ac_configure_extra_args="$ac_configure_extra_args --silent" 17982fi 17983 17984_ACEOF 17985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17986if \$ac_cs_recheck; then 17987 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17988 shift 17989 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17990 CONFIG_SHELL='$SHELL' 17991 export CONFIG_SHELL 17992 exec "\$@" 17993fi 17994 17995_ACEOF 17996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17997exec 5>>config.log 17998{ 17999 echo 18000 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18001## Running $as_me. ## 18002_ASBOX 18003 $as_echo "$ac_log" 18004} >&5 18005 18006_ACEOF 18007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18008# 18009# INIT-COMMANDS 18010# 18011AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 18012 18013 18014# The HP-UX ksh and POSIX shell print the target directory to stdout 18015# if CDPATH is set. 18016(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18017 18018sed_quote_subst='$sed_quote_subst' 18019double_quote_subst='$double_quote_subst' 18020delay_variable_subst='$delay_variable_subst' 18021AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 18022DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18023OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18024macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18025macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18026enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18027enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18028pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18029enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18030SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18031ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18032PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18033host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18034host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18035host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18036build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18037build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18038build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18039SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18040Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18041GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18042EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18043FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18044LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18045NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18046LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18047max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18048ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18049exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18050lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18051lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18052lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18053lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18054lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18055reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18056reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18057deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18058file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18059file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18060want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18061sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18062AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18063AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18064archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18065STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18066RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18067old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18068old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18069old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18070lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18071CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18072CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18073compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18074GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18075lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18076lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18077lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18078lt_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"`' 18079nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18080lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18081objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18082MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18083lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18084lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18085lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18086lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18087lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18088need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18089MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18090DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18091NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18092LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18093OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18094OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18095libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18096shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18097extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18098archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18099enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18100export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18101whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18102compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18103old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18104old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18105archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18106archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18107module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18108module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18109with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18110allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18111no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18112hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18113hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18114hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18115hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18116hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18117hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18118hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18119inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18120link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18121always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18122export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18123exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18124include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18125prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18126postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18127file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18128variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18129need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18130need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18131version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18132runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18133shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18134shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18135libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18136library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18137soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18138install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18139postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18140postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18141finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18142finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18143hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18144sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18145sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18146hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18147enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18148enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18149enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18150old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18151striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18152compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 18153predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 18154postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 18155predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 18156postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 18157compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 18158LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 18159reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 18160reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18161old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18162compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 18163GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 18164lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 18165lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 18166lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 18167lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 18168lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 18169archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 18170enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 18171export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18172whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18173compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 18174old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18175old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18176archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18177archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18178module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18179module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18180with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 18181allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18182no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 18183hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18184hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 18185hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 18186hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 18187hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 18188hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 18189hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 18190inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 18191link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 18192always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 18193export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18194exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18195include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 18196prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18197postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18198file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 18199hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 18200compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 18201predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18202postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 18203predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 18204postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 18205compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 18206 18207LTCC='$LTCC' 18208LTCFLAGS='$LTCFLAGS' 18209compiler='$compiler_DEFAULT' 18210 18211# A function that is used when there is no print builtin or printf. 18212func_fallback_echo () 18213{ 18214 eval 'cat <<_LTECHO_EOF 18215\$1 18216_LTECHO_EOF' 18217} 18218 18219# Quote evaled strings. 18220for var in AS \ 18221DLLTOOL \ 18222OBJDUMP \ 18223SHELL \ 18224ECHO \ 18225PATH_SEPARATOR \ 18226SED \ 18227GREP \ 18228EGREP \ 18229FGREP \ 18230LD \ 18231NM \ 18232LN_S \ 18233lt_SP2NL \ 18234lt_NL2SP \ 18235reload_flag \ 18236deplibs_check_method \ 18237file_magic_cmd \ 18238file_magic_glob \ 18239want_nocaseglob \ 18240sharedlib_from_linklib_cmd \ 18241AR \ 18242AR_FLAGS \ 18243archiver_list_spec \ 18244STRIP \ 18245RANLIB \ 18246CC \ 18247CFLAGS \ 18248compiler \ 18249lt_cv_sys_global_symbol_pipe \ 18250lt_cv_sys_global_symbol_to_cdecl \ 18251lt_cv_sys_global_symbol_to_c_name_address \ 18252lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18253nm_file_list_spec \ 18254lt_prog_compiler_no_builtin_flag \ 18255lt_prog_compiler_pic \ 18256lt_prog_compiler_wl \ 18257lt_prog_compiler_static \ 18258lt_cv_prog_compiler_c_o \ 18259need_locks \ 18260MANIFEST_TOOL \ 18261DSYMUTIL \ 18262NMEDIT \ 18263LIPO \ 18264OTOOL \ 18265OTOOL64 \ 18266shrext_cmds \ 18267export_dynamic_flag_spec \ 18268whole_archive_flag_spec \ 18269compiler_needs_object \ 18270with_gnu_ld \ 18271allow_undefined_flag \ 18272no_undefined_flag \ 18273hardcode_libdir_flag_spec \ 18274hardcode_libdir_separator \ 18275exclude_expsyms \ 18276include_expsyms \ 18277file_list_spec \ 18278variables_saved_for_relink \ 18279libname_spec \ 18280library_names_spec \ 18281soname_spec \ 18282install_override_mode \ 18283finish_eval \ 18284old_striplib \ 18285striplib \ 18286compiler_lib_search_dirs \ 18287predep_objects \ 18288postdep_objects \ 18289predeps \ 18290postdeps \ 18291compiler_lib_search_path \ 18292LD_CXX \ 18293reload_flag_CXX \ 18294compiler_CXX \ 18295lt_prog_compiler_no_builtin_flag_CXX \ 18296lt_prog_compiler_pic_CXX \ 18297lt_prog_compiler_wl_CXX \ 18298lt_prog_compiler_static_CXX \ 18299lt_cv_prog_compiler_c_o_CXX \ 18300export_dynamic_flag_spec_CXX \ 18301whole_archive_flag_spec_CXX \ 18302compiler_needs_object_CXX \ 18303with_gnu_ld_CXX \ 18304allow_undefined_flag_CXX \ 18305no_undefined_flag_CXX \ 18306hardcode_libdir_flag_spec_CXX \ 18307hardcode_libdir_separator_CXX \ 18308exclude_expsyms_CXX \ 18309include_expsyms_CXX \ 18310file_list_spec_CXX \ 18311compiler_lib_search_dirs_CXX \ 18312predep_objects_CXX \ 18313postdep_objects_CXX \ 18314predeps_CXX \ 18315postdeps_CXX \ 18316compiler_lib_search_path_CXX; do 18317 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18318 *[\\\\\\\`\\"\\\$]*) 18319 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18320 ;; 18321 *) 18322 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18323 ;; 18324 esac 18325done 18326 18327# Double-quote double-evaled strings. 18328for var in reload_cmds \ 18329old_postinstall_cmds \ 18330old_postuninstall_cmds \ 18331old_archive_cmds \ 18332extract_expsyms_cmds \ 18333old_archive_from_new_cmds \ 18334old_archive_from_expsyms_cmds \ 18335archive_cmds \ 18336archive_expsym_cmds \ 18337module_cmds \ 18338module_expsym_cmds \ 18339export_symbols_cmds \ 18340prelink_cmds \ 18341postlink_cmds \ 18342postinstall_cmds \ 18343postuninstall_cmds \ 18344finish_cmds \ 18345sys_lib_search_path_spec \ 18346sys_lib_dlsearch_path_spec \ 18347reload_cmds_CXX \ 18348old_archive_cmds_CXX \ 18349old_archive_from_new_cmds_CXX \ 18350old_archive_from_expsyms_cmds_CXX \ 18351archive_cmds_CXX \ 18352archive_expsym_cmds_CXX \ 18353module_cmds_CXX \ 18354module_expsym_cmds_CXX \ 18355export_symbols_cmds_CXX \ 18356prelink_cmds_CXX \ 18357postlink_cmds_CXX; do 18358 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18359 *[\\\\\\\`\\"\\\$]*) 18360 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18361 ;; 18362 *) 18363 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18364 ;; 18365 esac 18366done 18367 18368ac_aux_dir='$ac_aux_dir' 18369xsi_shell='$xsi_shell' 18370lt_shell_append='$lt_shell_append' 18371 18372# See if we are running on zsh, and set the options which allow our 18373# commands through without removal of \ escapes INIT. 18374if test -n "\${ZSH_VERSION+set}" ; then 18375 setopt NO_GLOB_SUBST 18376fi 18377 18378 18379 PACKAGE='$PACKAGE' 18380 VERSION='$VERSION' 18381 TIMESTAMP='$TIMESTAMP' 18382 RM='$RM' 18383 ofile='$ofile' 18384 18385 18386 18387 18388 18389 18390_ACEOF 18391 18392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18393 18394# Handling of arguments. 18395for ac_config_target in $ac_config_targets 18396do 18397 case $ac_config_target in 18398 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18399 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18400 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18401 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18402 "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;; 18403 "virtualpg.pc") CONFIG_FILES="$CONFIG_FILES virtualpg.pc" ;; 18404 18405 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18406 esac 18407done 18408 18409 18410# If the user did not use the arguments to specify the items to instantiate, 18411# then the envvar interface is used. Set only those that are not. 18412# We use the long form for the default assignment because of an extremely 18413# bizarre bug on SunOS 4.1.3. 18414if $ac_need_defaults; then 18415 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18416 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18417 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18418fi 18419 18420# Have a temporary directory for convenience. Make it in the build tree 18421# simply because there is no reason against having it here, and in addition, 18422# creating and moving files from /tmp can sometimes cause problems. 18423# Hook for its removal unless debugging. 18424# Note that there is a small window in which the directory will not be cleaned: 18425# after its creation but before its name has been assigned to `$tmp'. 18426$debug || 18427{ 18428 tmp= ac_tmp= 18429 trap 'exit_status=$? 18430 : "${ac_tmp:=$tmp}" 18431 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18432' 0 18433 trap 'as_fn_exit 1' 1 2 13 15 18434} 18435# Create a (secure) tmp directory for tmp files. 18436 18437{ 18438 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18439 test -d "$tmp" 18440} || 18441{ 18442 tmp=./conf$$-$RANDOM 18443 (umask 077 && mkdir "$tmp") 18444} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18445ac_tmp=$tmp 18446 18447# Set up the scripts for CONFIG_FILES section. 18448# No need to generate them if there are no CONFIG_FILES. 18449# This happens for instance with `./config.status config.h'. 18450if test -n "$CONFIG_FILES"; then 18451 18452 18453ac_cr=`echo X | tr X '\015'` 18454# On cygwin, bash can eat \r inside `` if the user requested igncr. 18455# But we know of no other shell where ac_cr would be empty at this 18456# point, so we can use a bashism as a fallback. 18457if test "x$ac_cr" = x; then 18458 eval ac_cr=\$\'\\r\' 18459fi 18460ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18461if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18462 ac_cs_awk_cr='\\r' 18463else 18464 ac_cs_awk_cr=$ac_cr 18465fi 18466 18467echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18468_ACEOF 18469 18470 18471{ 18472 echo "cat >conf$$subs.awk <<_ACEOF" && 18473 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18474 echo "_ACEOF" 18475} >conf$$subs.sh || 18476 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18477ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18478ac_delim='%!_!# ' 18479for ac_last_try in false false false false false :; do 18480 . ./conf$$subs.sh || 18481 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18482 18483 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18484 if test $ac_delim_n = $ac_delim_num; then 18485 break 18486 elif $ac_last_try; then 18487 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18488 else 18489 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18490 fi 18491done 18492rm -f conf$$subs.sh 18493 18494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18495cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18496_ACEOF 18497sed -n ' 18498h 18499s/^/S["/; s/!.*/"]=/ 18500p 18501g 18502s/^[^!]*!// 18503:repl 18504t repl 18505s/'"$ac_delim"'$// 18506t delim 18507:nl 18508h 18509s/\(.\{148\}\)..*/\1/ 18510t more1 18511s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18512p 18513n 18514b repl 18515:more1 18516s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18517p 18518g 18519s/.\{148\}// 18520t nl 18521:delim 18522h 18523s/\(.\{148\}\)..*/\1/ 18524t more2 18525s/["\\]/\\&/g; s/^/"/; s/$/"/ 18526p 18527b 18528:more2 18529s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18530p 18531g 18532s/.\{148\}// 18533t delim 18534' <conf$$subs.awk | sed ' 18535/^[^""]/{ 18536 N 18537 s/\n// 18538} 18539' >>$CONFIG_STATUS || ac_write_fail=1 18540rm -f conf$$subs.awk 18541cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18542_ACAWK 18543cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18544 for (key in S) S_is_set[key] = 1 18545 FS = "" 18546 18547} 18548{ 18549 line = $ 0 18550 nfields = split(line, field, "@") 18551 substed = 0 18552 len = length(field[1]) 18553 for (i = 2; i < nfields; i++) { 18554 key = field[i] 18555 keylen = length(key) 18556 if (S_is_set[key]) { 18557 value = S[key] 18558 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18559 len += length(value) + length(field[++i]) 18560 substed = 1 18561 } else 18562 len += 1 + keylen 18563 } 18564 18565 print line 18566} 18567 18568_ACAWK 18569_ACEOF 18570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18571if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18572 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18573else 18574 cat 18575fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18576 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18577_ACEOF 18578 18579# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18580# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18581# trailing colons and then remove the whole line if VPATH becomes empty 18582# (actually we leave an empty line to preserve line numbers). 18583if test "x$srcdir" = x.; then 18584 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18585h 18586s/// 18587s/^/:/ 18588s/[ ]*$/:/ 18589s/:\$(srcdir):/:/g 18590s/:\${srcdir}:/:/g 18591s/:@srcdir@:/:/g 18592s/^:*// 18593s/:*$// 18594x 18595s/\(=[ ]*\).*/\1/ 18596G 18597s/\n// 18598s/^[^=]*=[ ]*$// 18599}' 18600fi 18601 18602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18603fi # test -n "$CONFIG_FILES" 18604 18605# Set up the scripts for CONFIG_HEADERS section. 18606# No need to generate them if there are no CONFIG_HEADERS. 18607# This happens for instance with `./config.status Makefile'. 18608if test -n "$CONFIG_HEADERS"; then 18609cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18610BEGIN { 18611_ACEOF 18612 18613# Transform confdefs.h into an awk script `defines.awk', embedded as 18614# here-document in config.status, that substitutes the proper values into 18615# config.h.in to produce config.h. 18616 18617# Create a delimiter string that does not exist in confdefs.h, to ease 18618# handling of long lines. 18619ac_delim='%!_!# ' 18620for ac_last_try in false false :; do 18621 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18622 if test -z "$ac_tt"; then 18623 break 18624 elif $ac_last_try; then 18625 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18626 else 18627 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18628 fi 18629done 18630 18631# For the awk script, D is an array of macro values keyed by name, 18632# likewise P contains macro parameters if any. Preserve backslash 18633# newline sequences. 18634 18635ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18636sed -n ' 18637s/.\{148\}/&'"$ac_delim"'/g 18638t rset 18639:rset 18640s/^[ ]*#[ ]*define[ ][ ]*/ / 18641t def 18642d 18643:def 18644s/\\$// 18645t bsnl 18646s/["\\]/\\&/g 18647s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18648D["\1"]=" \3"/p 18649s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18650d 18651:bsnl 18652s/["\\]/\\&/g 18653s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18654D["\1"]=" \3\\\\\\n"\\/p 18655t cont 18656s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18657t cont 18658d 18659:cont 18660n 18661s/.\{148\}/&'"$ac_delim"'/g 18662t clear 18663:clear 18664s/\\$// 18665t bsnlc 18666s/["\\]/\\&/g; s/^/"/; s/$/"/p 18667d 18668:bsnlc 18669s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18670b cont 18671' <confdefs.h | sed ' 18672s/'"$ac_delim"'/"\\\ 18673"/g' >>$CONFIG_STATUS || ac_write_fail=1 18674 18675cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18676 for (key in D) D_is_set[key] = 1 18677 FS = "" 18678} 18679/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18680 line = \$ 0 18681 split(line, arg, " ") 18682 if (arg[1] == "#") { 18683 defundef = arg[2] 18684 mac1 = arg[3] 18685 } else { 18686 defundef = substr(arg[1], 2) 18687 mac1 = arg[2] 18688 } 18689 split(mac1, mac2, "(") #) 18690 macro = mac2[1] 18691 prefix = substr(line, 1, index(line, defundef) - 1) 18692 if (D_is_set[macro]) { 18693 # Preserve the white space surrounding the "#". 18694 print prefix "define", macro P[macro] D[macro] 18695 next 18696 } else { 18697 # Replace #undef with comments. This is necessary, for example, 18698 # in the case of _POSIX_SOURCE, which is predefined and required 18699 # on some systems where configure will not decide to define it. 18700 if (defundef == "undef") { 18701 print "/*", prefix defundef, macro, "*/" 18702 next 18703 } 18704 } 18705} 18706{ print } 18707_ACAWK 18708_ACEOF 18709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18710 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18711fi # test -n "$CONFIG_HEADERS" 18712 18713 18714eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18715shift 18716for ac_tag 18717do 18718 case $ac_tag in 18719 :[FHLC]) ac_mode=$ac_tag; continue;; 18720 esac 18721 case $ac_mode$ac_tag in 18722 :[FHL]*:*);; 18723 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18724 :[FH]-) ac_tag=-:-;; 18725 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18726 esac 18727 ac_save_IFS=$IFS 18728 IFS=: 18729 set x $ac_tag 18730 IFS=$ac_save_IFS 18731 shift 18732 ac_file=$1 18733 shift 18734 18735 case $ac_mode in 18736 :L) ac_source=$1;; 18737 :[FH]) 18738 ac_file_inputs= 18739 for ac_f 18740 do 18741 case $ac_f in 18742 -) ac_f="$ac_tmp/stdin";; 18743 *) # Look for the file first in the build tree, then in the source tree 18744 # (if the path is not absolute). The absolute path cannot be DOS-style, 18745 # because $ac_f cannot contain `:'. 18746 test -f "$ac_f" || 18747 case $ac_f in 18748 [\\/$]*) false;; 18749 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18750 esac || 18751 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18752 esac 18753 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18754 as_fn_append ac_file_inputs " '$ac_f'" 18755 done 18756 18757 # Let's still pretend it is `configure' which instantiates (i.e., don't 18758 # use $as_me), people would be surprised to read: 18759 # /* config.h. Generated by config.status. */ 18760 configure_input='Generated from '` 18761 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18762 `' by configure.' 18763 if test x"$ac_file" != x-; then 18764 configure_input="$ac_file. $configure_input" 18765 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18766$as_echo "$as_me: creating $ac_file" >&6;} 18767 fi 18768 # Neutralize special characters interpreted by sed in replacement strings. 18769 case $configure_input in #( 18770 *\&* | *\|* | *\\* ) 18771 ac_sed_conf_input=`$as_echo "$configure_input" | 18772 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18773 *) ac_sed_conf_input=$configure_input;; 18774 esac 18775 18776 case $ac_tag in 18777 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18778 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18779 esac 18780 ;; 18781 esac 18782 18783 ac_dir=`$as_dirname -- "$ac_file" || 18784$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18785 X"$ac_file" : 'X\(//\)[^/]' \| \ 18786 X"$ac_file" : 'X\(//\)$' \| \ 18787 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18788$as_echo X"$ac_file" | 18789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18790 s//\1/ 18791 q 18792 } 18793 /^X\(\/\/\)[^/].*/{ 18794 s//\1/ 18795 q 18796 } 18797 /^X\(\/\/\)$/{ 18798 s//\1/ 18799 q 18800 } 18801 /^X\(\/\).*/{ 18802 s//\1/ 18803 q 18804 } 18805 s/.*/./; q'` 18806 as_dir="$ac_dir"; as_fn_mkdir_p 18807 ac_builddir=. 18808 18809case "$ac_dir" in 18810.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18811*) 18812 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18813 # A ".." for each directory in $ac_dir_suffix. 18814 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18815 case $ac_top_builddir_sub in 18816 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18817 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18818 esac ;; 18819esac 18820ac_abs_top_builddir=$ac_pwd 18821ac_abs_builddir=$ac_pwd$ac_dir_suffix 18822# for backward compatibility: 18823ac_top_builddir=$ac_top_build_prefix 18824 18825case $srcdir in 18826 .) # We are building in place. 18827 ac_srcdir=. 18828 ac_top_srcdir=$ac_top_builddir_sub 18829 ac_abs_top_srcdir=$ac_pwd ;; 18830 [\\/]* | ?:[\\/]* ) # Absolute name. 18831 ac_srcdir=$srcdir$ac_dir_suffix; 18832 ac_top_srcdir=$srcdir 18833 ac_abs_top_srcdir=$srcdir ;; 18834 *) # Relative name. 18835 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18836 ac_top_srcdir=$ac_top_build_prefix$srcdir 18837 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18838esac 18839ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18840 18841 18842 case $ac_mode in 18843 :F) 18844 # 18845 # CONFIG_FILE 18846 # 18847 18848 case $INSTALL in 18849 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18850 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18851 esac 18852 ac_MKDIR_P=$MKDIR_P 18853 case $MKDIR_P in 18854 [\\/$]* | ?:[\\/]* ) ;; 18855 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18856 esac 18857_ACEOF 18858 18859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18860# If the template does not know about datarootdir, expand it. 18861# FIXME: This hack should be removed a few years after 2.60. 18862ac_datarootdir_hack=; ac_datarootdir_seen= 18863ac_sed_dataroot=' 18864/datarootdir/ { 18865 p 18866 q 18867} 18868/@datadir@/p 18869/@docdir@/p 18870/@infodir@/p 18871/@localedir@/p 18872/@mandir@/p' 18873case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18874*datarootdir*) ac_datarootdir_seen=yes;; 18875*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18877$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18878_ACEOF 18879cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18880 ac_datarootdir_hack=' 18881 s&@datadir@&$datadir&g 18882 s&@docdir@&$docdir&g 18883 s&@infodir@&$infodir&g 18884 s&@localedir@&$localedir&g 18885 s&@mandir@&$mandir&g 18886 s&\\\${datarootdir}&$datarootdir&g' ;; 18887esac 18888_ACEOF 18889 18890# Neutralize VPATH when `$srcdir' = `.'. 18891# Shell code in configure.ac might set extrasub. 18892# FIXME: do we really want to maintain this feature? 18893cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18894ac_sed_extra="$ac_vpsub 18895$extrasub 18896_ACEOF 18897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18898:t 18899/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18900s|@configure_input@|$ac_sed_conf_input|;t t 18901s&@top_builddir@&$ac_top_builddir_sub&;t t 18902s&@top_build_prefix@&$ac_top_build_prefix&;t t 18903s&@srcdir@&$ac_srcdir&;t t 18904s&@abs_srcdir@&$ac_abs_srcdir&;t t 18905s&@top_srcdir@&$ac_top_srcdir&;t t 18906s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18907s&@builddir@&$ac_builddir&;t t 18908s&@abs_builddir@&$ac_abs_builddir&;t t 18909s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18910s&@INSTALL@&$ac_INSTALL&;t t 18911s&@MKDIR_P@&$ac_MKDIR_P&;t t 18912$ac_datarootdir_hack 18913" 18914eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18915 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18916 18917test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18918 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18919 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18920 "$ac_tmp/out"`; test -z "$ac_out"; } && 18921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18922which seems to be undefined. Please make sure it is defined" >&5 18923$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18924which seems to be undefined. Please make sure it is defined" >&2;} 18925 18926 rm -f "$ac_tmp/stdin" 18927 case $ac_file in 18928 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18929 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18930 esac \ 18931 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18932 ;; 18933 :H) 18934 # 18935 # CONFIG_HEADER 18936 # 18937 if test x"$ac_file" != x-; then 18938 { 18939 $as_echo "/* $configure_input */" \ 18940 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18941 } >"$ac_tmp/config.h" \ 18942 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18943 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18944 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18945$as_echo "$as_me: $ac_file is unchanged" >&6;} 18946 else 18947 rm -f "$ac_file" 18948 mv "$ac_tmp/config.h" "$ac_file" \ 18949 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18950 fi 18951 else 18952 $as_echo "/* $configure_input */" \ 18953 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18954 || as_fn_error $? "could not create -" "$LINENO" 5 18955 fi 18956# Compute "$ac_file"'s index in $config_headers. 18957_am_arg="$ac_file" 18958_am_stamp_count=1 18959for _am_header in $config_headers :; do 18960 case $_am_header in 18961 $_am_arg | $_am_arg:* ) 18962 break ;; 18963 * ) 18964 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18965 esac 18966done 18967echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18968$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18969 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18970 X"$_am_arg" : 'X\(//\)$' \| \ 18971 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18972$as_echo X"$_am_arg" | 18973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18974 s//\1/ 18975 q 18976 } 18977 /^X\(\/\/\)[^/].*/{ 18978 s//\1/ 18979 q 18980 } 18981 /^X\(\/\/\)$/{ 18982 s//\1/ 18983 q 18984 } 18985 /^X\(\/\).*/{ 18986 s//\1/ 18987 q 18988 } 18989 s/.*/./; q'`/stamp-h$_am_stamp_count 18990 ;; 18991 18992 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18993$as_echo "$as_me: executing $ac_file commands" >&6;} 18994 ;; 18995 esac 18996 18997 18998 case $ac_file$ac_mode in 18999 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19000 # Older Autoconf quotes --file arguments for eval, but not when files 19001 # are listed without --file. Let's play safe and only enable the eval 19002 # if we detect the quoting. 19003 # TODO: see whether this extra hack can be removed once we start 19004 # requiring Autoconf 2.70 or later. 19005 case $CONFIG_FILES in #( 19006 *\'*) : 19007 eval set x "$CONFIG_FILES" ;; #( 19008 *) : 19009 set x $CONFIG_FILES ;; #( 19010 *) : 19011 ;; 19012esac 19013 shift 19014 # Used to flag and report bootstrapping failures. 19015 am_rc=0 19016 for am_mf 19017 do 19018 # Strip MF so we end up with the name of the file. 19019 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 19020 # Check whether this is an Automake generated Makefile which includes 19021 # dependency-tracking related rules and includes. 19022 # Grep'ing the whole file directly is not great: AIX grep has a line 19023 # limit of 2048, but all sed's we know have understand at least 4000. 19024 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 19025 || continue 19026 am_dirpart=`$as_dirname -- "$am_mf" || 19027$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19028 X"$am_mf" : 'X\(//\)[^/]' \| \ 19029 X"$am_mf" : 'X\(//\)$' \| \ 19030 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19031$as_echo X"$am_mf" | 19032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19033 s//\1/ 19034 q 19035 } 19036 /^X\(\/\/\)[^/].*/{ 19037 s//\1/ 19038 q 19039 } 19040 /^X\(\/\/\)$/{ 19041 s//\1/ 19042 q 19043 } 19044 /^X\(\/\).*/{ 19045 s//\1/ 19046 q 19047 } 19048 s/.*/./; q'` 19049 am_filepart=`$as_basename -- "$am_mf" || 19050$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 19051 X"$am_mf" : 'X\(//\)$' \| \ 19052 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19053$as_echo X/"$am_mf" | 19054 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19055 s//\1/ 19056 q 19057 } 19058 /^X\/\(\/\/\)$/{ 19059 s//\1/ 19060 q 19061 } 19062 /^X\/\(\/\).*/{ 19063 s//\1/ 19064 q 19065 } 19066 s/.*/./; q'` 19067 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 19068 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19069 | $MAKE -f - am--depfiles" >&5 19070 (cd "$am_dirpart" \ 19071 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19072 | $MAKE -f - am--depfiles) >&5 2>&5 19073 ac_status=$? 19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19075 (exit $ac_status); } || am_rc=$? 19076 done 19077 if test $am_rc -ne 0; then 19078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19080as_fn_error $? "Something went wrong bootstrapping makefile fragments 19081 for automatic dependency tracking. Try re-running configure with the 19082 '--disable-dependency-tracking' option to at least be able to build 19083 the package (albeit without support for automatic dependency tracking). 19084See \`config.log' for more details" "$LINENO" 5; } 19085 fi 19086 { am_dirpart=; unset am_dirpart;} 19087 { am_filepart=; unset am_filepart;} 19088 { am_mf=; unset am_mf;} 19089 { am_rc=; unset am_rc;} 19090 rm -f conftest-deps.mk 19091} 19092 ;; 19093 "libtool":C) 19094 19095 # See if we are running on zsh, and set the options which allow our 19096 # commands through without removal of \ escapes. 19097 if test -n "${ZSH_VERSION+set}" ; then 19098 setopt NO_GLOB_SUBST 19099 fi 19100 19101 cfgfile="${ofile}T" 19102 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19103 $RM "$cfgfile" 19104 19105 cat <<_LT_EOF >> "$cfgfile" 19106#! $SHELL 19107 19108# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19109# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19110# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19111# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19112# 19113# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19114# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19115# Foundation, Inc. 19116# Written by Gordon Matzigkeit, 1996 19117# 19118# This file is part of GNU Libtool. 19119# 19120# GNU Libtool is free software; you can redistribute it and/or 19121# modify it under the terms of the GNU General Public License as 19122# published by the Free Software Foundation; either version 2 of 19123# the License, or (at your option) any later version. 19124# 19125# As a special exception to the GNU General Public License, 19126# if you distribute this file as part of a program or library that 19127# is built using GNU Libtool, you may include this file under the 19128# same distribution terms that you use for the rest of that program. 19129# 19130# GNU Libtool is distributed in the hope that it will be useful, 19131# but WITHOUT ANY WARRANTY; without even the implied warranty of 19132# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19133# GNU General Public License for more details. 19134# 19135# You should have received a copy of the GNU General Public License 19136# along with GNU Libtool; see the file COPYING. If not, a copy 19137# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19138# obtained by writing to the Free Software Foundation, Inc., 19139# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19140 19141 19142# The names of the tagged configurations supported by this script. 19143available_tags="CXX " 19144 19145# ### BEGIN LIBTOOL CONFIG 19146 19147# Assembler program. 19148AS=$lt_AS 19149 19150# DLL creation program. 19151DLLTOOL=$lt_DLLTOOL 19152 19153# Object dumper program. 19154OBJDUMP=$lt_OBJDUMP 19155 19156# Which release of libtool.m4 was used? 19157macro_version=$macro_version 19158macro_revision=$macro_revision 19159 19160# Whether or not to build shared libraries. 19161build_libtool_libs=$enable_shared 19162 19163# Whether or not to build static libraries. 19164build_old_libs=$enable_static 19165 19166# What type of objects to build. 19167pic_mode=$pic_mode 19168 19169# Whether or not to optimize for fast installation. 19170fast_install=$enable_fast_install 19171 19172# Shell to use when invoking shell scripts. 19173SHELL=$lt_SHELL 19174 19175# An echo program that protects backslashes. 19176ECHO=$lt_ECHO 19177 19178# The PATH separator for the build system. 19179PATH_SEPARATOR=$lt_PATH_SEPARATOR 19180 19181# The host system. 19182host_alias=$host_alias 19183host=$host 19184host_os=$host_os 19185 19186# The build system. 19187build_alias=$build_alias 19188build=$build 19189build_os=$build_os 19190 19191# A sed program that does not truncate output. 19192SED=$lt_SED 19193 19194# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19195Xsed="\$SED -e 1s/^X//" 19196 19197# A grep program that handles long lines. 19198GREP=$lt_GREP 19199 19200# An ERE matcher. 19201EGREP=$lt_EGREP 19202 19203# A literal string matcher. 19204FGREP=$lt_FGREP 19205 19206# A BSD- or MS-compatible name lister. 19207NM=$lt_NM 19208 19209# Whether we need soft or hard links. 19210LN_S=$lt_LN_S 19211 19212# What is the maximum length of a command? 19213max_cmd_len=$max_cmd_len 19214 19215# Object file suffix (normally "o"). 19216objext=$ac_objext 19217 19218# Executable file suffix (normally ""). 19219exeext=$exeext 19220 19221# whether the shell understands "unset". 19222lt_unset=$lt_unset 19223 19224# turn spaces into newlines. 19225SP2NL=$lt_lt_SP2NL 19226 19227# turn newlines into spaces. 19228NL2SP=$lt_lt_NL2SP 19229 19230# convert \$build file names to \$host format. 19231to_host_file_cmd=$lt_cv_to_host_file_cmd 19232 19233# convert \$build files to toolchain format. 19234to_tool_file_cmd=$lt_cv_to_tool_file_cmd 19235 19236# Method to check whether dependent libraries are shared objects. 19237deplibs_check_method=$lt_deplibs_check_method 19238 19239# Command to use when deplibs_check_method = "file_magic". 19240file_magic_cmd=$lt_file_magic_cmd 19241 19242# How to find potential files when deplibs_check_method = "file_magic". 19243file_magic_glob=$lt_file_magic_glob 19244 19245# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 19246want_nocaseglob=$lt_want_nocaseglob 19247 19248# Command to associate shared and link libraries. 19249sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 19250 19251# The archiver. 19252AR=$lt_AR 19253 19254# Flags to create an archive. 19255AR_FLAGS=$lt_AR_FLAGS 19256 19257# How to feed a file listing to the archiver. 19258archiver_list_spec=$lt_archiver_list_spec 19259 19260# A symbol stripping program. 19261STRIP=$lt_STRIP 19262 19263# Commands used to install an old-style archive. 19264RANLIB=$lt_RANLIB 19265old_postinstall_cmds=$lt_old_postinstall_cmds 19266old_postuninstall_cmds=$lt_old_postuninstall_cmds 19267 19268# Whether to use a lock for old archive extraction. 19269lock_old_archive_extraction=$lock_old_archive_extraction 19270 19271# A C compiler. 19272LTCC=$lt_CC 19273 19274# LTCC compiler flags. 19275LTCFLAGS=$lt_CFLAGS 19276 19277# Take the output of nm and produce a listing of raw symbols and C names. 19278global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19279 19280# Transform the output of nm in a proper C declaration. 19281global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19282 19283# Transform the output of nm in a C name address pair. 19284global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19285 19286# Transform the output of nm in a C name address pair when lib prefix is needed. 19287global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19288 19289# Specify filename containing input files for \$NM. 19290nm_file_list_spec=$lt_nm_file_list_spec 19291 19292# The root where to search for dependent libraries,and in which our libraries should be installed. 19293lt_sysroot=$lt_sysroot 19294 19295# The name of the directory that contains temporary libtool files. 19296objdir=$objdir 19297 19298# Used to examine libraries when file_magic_cmd begins with "file". 19299MAGIC_CMD=$MAGIC_CMD 19300 19301# Must we lock files when doing compilation? 19302need_locks=$lt_need_locks 19303 19304# Manifest tool. 19305MANIFEST_TOOL=$lt_MANIFEST_TOOL 19306 19307# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19308DSYMUTIL=$lt_DSYMUTIL 19309 19310# Tool to change global to local symbols on Mac OS X. 19311NMEDIT=$lt_NMEDIT 19312 19313# Tool to manipulate fat objects and archives on Mac OS X. 19314LIPO=$lt_LIPO 19315 19316# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19317OTOOL=$lt_OTOOL 19318 19319# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19320OTOOL64=$lt_OTOOL64 19321 19322# Old archive suffix (normally "a"). 19323libext=$libext 19324 19325# Shared library suffix (normally ".so"). 19326shrext_cmds=$lt_shrext_cmds 19327 19328# The commands to extract the exported symbol list from a shared archive. 19329extract_expsyms_cmds=$lt_extract_expsyms_cmds 19330 19331# Variables whose values should be saved in libtool wrapper scripts and 19332# restored at link time. 19333variables_saved_for_relink=$lt_variables_saved_for_relink 19334 19335# Do we need the "lib" prefix for modules? 19336need_lib_prefix=$need_lib_prefix 19337 19338# Do we need a version for libraries? 19339need_version=$need_version 19340 19341# Library versioning type. 19342version_type=$version_type 19343 19344# Shared library runtime path variable. 19345runpath_var=$runpath_var 19346 19347# Shared library path variable. 19348shlibpath_var=$shlibpath_var 19349 19350# Is shlibpath searched before the hard-coded library search path? 19351shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19352 19353# Format of library name prefix. 19354libname_spec=$lt_libname_spec 19355 19356# List of archive names. First name is the real one, the rest are links. 19357# The last name is the one that the linker finds with -lNAME 19358library_names_spec=$lt_library_names_spec 19359 19360# The coded name of the library, if different from the real name. 19361soname_spec=$lt_soname_spec 19362 19363# Permission mode override for installation of shared libraries. 19364install_override_mode=$lt_install_override_mode 19365 19366# Command to use after installation of a shared archive. 19367postinstall_cmds=$lt_postinstall_cmds 19368 19369# Command to use after uninstallation of a shared archive. 19370postuninstall_cmds=$lt_postuninstall_cmds 19371 19372# Commands used to finish a libtool library installation in a directory. 19373finish_cmds=$lt_finish_cmds 19374 19375# As "finish_cmds", except a single script fragment to be evaled but 19376# not shown. 19377finish_eval=$lt_finish_eval 19378 19379# Whether we should hardcode library paths into libraries. 19380hardcode_into_libs=$hardcode_into_libs 19381 19382# Compile-time system search path for libraries. 19383sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19384 19385# Run-time system search path for libraries. 19386sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19387 19388# Whether dlopen is supported. 19389dlopen_support=$enable_dlopen 19390 19391# Whether dlopen of programs is supported. 19392dlopen_self=$enable_dlopen_self 19393 19394# Whether dlopen of statically linked programs is supported. 19395dlopen_self_static=$enable_dlopen_self_static 19396 19397# Commands to strip libraries. 19398old_striplib=$lt_old_striplib 19399striplib=$lt_striplib 19400 19401 19402# The linker used to build libraries. 19403LD=$lt_LD 19404 19405# How to create reloadable object files. 19406reload_flag=$lt_reload_flag 19407reload_cmds=$lt_reload_cmds 19408 19409# Commands used to build an old-style archive. 19410old_archive_cmds=$lt_old_archive_cmds 19411 19412# A language specific compiler. 19413CC=$lt_compiler 19414 19415# Is the compiler the GNU compiler? 19416with_gcc=$GCC 19417 19418# Compiler flag to turn off builtin functions. 19419no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19420 19421# Additional compiler flags for building library objects. 19422pic_flag=$lt_lt_prog_compiler_pic 19423 19424# How to pass a linker flag through the compiler. 19425wl=$lt_lt_prog_compiler_wl 19426 19427# Compiler flag to prevent dynamic linking. 19428link_static_flag=$lt_lt_prog_compiler_static 19429 19430# Does compiler simultaneously support -c and -o options? 19431compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19432 19433# Whether or not to add -lc for building shared libraries. 19434build_libtool_need_lc=$archive_cmds_need_lc 19435 19436# Whether or not to disallow shared libs when runtime libs are static. 19437allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19438 19439# Compiler flag to allow reflexive dlopens. 19440export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19441 19442# Compiler flag to generate shared objects directly from archives. 19443whole_archive_flag_spec=$lt_whole_archive_flag_spec 19444 19445# Whether the compiler copes with passing no objects directly. 19446compiler_needs_object=$lt_compiler_needs_object 19447 19448# Create an old-style archive from a shared archive. 19449old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19450 19451# Create a temporary old-style archive to link instead of a shared archive. 19452old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19453 19454# Commands used to build a shared archive. 19455archive_cmds=$lt_archive_cmds 19456archive_expsym_cmds=$lt_archive_expsym_cmds 19457 19458# Commands used to build a loadable module if different from building 19459# a shared archive. 19460module_cmds=$lt_module_cmds 19461module_expsym_cmds=$lt_module_expsym_cmds 19462 19463# Whether we are building with GNU ld or not. 19464with_gnu_ld=$lt_with_gnu_ld 19465 19466# Flag that allows shared libraries with undefined symbols to be built. 19467allow_undefined_flag=$lt_allow_undefined_flag 19468 19469# Flag that enforces no undefined symbols. 19470no_undefined_flag=$lt_no_undefined_flag 19471 19472# Flag to hardcode \$libdir into a binary during linking. 19473# This must work even if \$libdir does not exist 19474hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19475 19476# Whether we need a single "-rpath" flag with a separated argument. 19477hardcode_libdir_separator=$lt_hardcode_libdir_separator 19478 19479# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19480# DIR into the resulting binary. 19481hardcode_direct=$hardcode_direct 19482 19483# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19484# DIR into the resulting binary and the resulting library dependency is 19485# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19486# library is relocated. 19487hardcode_direct_absolute=$hardcode_direct_absolute 19488 19489# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19490# into the resulting binary. 19491hardcode_minus_L=$hardcode_minus_L 19492 19493# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19494# into the resulting binary. 19495hardcode_shlibpath_var=$hardcode_shlibpath_var 19496 19497# Set to "yes" if building a shared library automatically hardcodes DIR 19498# into the library and all subsequent libraries and executables linked 19499# against it. 19500hardcode_automatic=$hardcode_automatic 19501 19502# Set to yes if linker adds runtime paths of dependent libraries 19503# to runtime path list. 19504inherit_rpath=$inherit_rpath 19505 19506# Whether libtool must link a program against all its dependency libraries. 19507link_all_deplibs=$link_all_deplibs 19508 19509# Set to "yes" if exported symbols are required. 19510always_export_symbols=$always_export_symbols 19511 19512# The commands to list exported symbols. 19513export_symbols_cmds=$lt_export_symbols_cmds 19514 19515# Symbols that should not be listed in the preloaded symbols. 19516exclude_expsyms=$lt_exclude_expsyms 19517 19518# Symbols that must always be exported. 19519include_expsyms=$lt_include_expsyms 19520 19521# Commands necessary for linking programs (against libraries) with templates. 19522prelink_cmds=$lt_prelink_cmds 19523 19524# Commands necessary for finishing linking programs. 19525postlink_cmds=$lt_postlink_cmds 19526 19527# Specify filename containing input files. 19528file_list_spec=$lt_file_list_spec 19529 19530# How to hardcode a shared library path into an executable. 19531hardcode_action=$hardcode_action 19532 19533# The directories searched by this compiler when creating a shared library. 19534compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19535 19536# Dependencies to place before and after the objects being linked to 19537# create a shared library. 19538predep_objects=$lt_predep_objects 19539postdep_objects=$lt_postdep_objects 19540predeps=$lt_predeps 19541postdeps=$lt_postdeps 19542 19543# The library search path used internally by the compiler when linking 19544# a shared library. 19545compiler_lib_search_path=$lt_compiler_lib_search_path 19546 19547# ### END LIBTOOL CONFIG 19548 19549_LT_EOF 19550 19551 case $host_os in 19552 aix3*) 19553 cat <<\_LT_EOF >> "$cfgfile" 19554# AIX sometimes has problems with the GCC collect2 program. For some 19555# reason, if we set the COLLECT_NAMES environment variable, the problems 19556# vanish in a puff of smoke. 19557if test "X${COLLECT_NAMES+set}" != Xset; then 19558 COLLECT_NAMES= 19559 export COLLECT_NAMES 19560fi 19561_LT_EOF 19562 ;; 19563 esac 19564 19565 19566ltmain="$ac_aux_dir/ltmain.sh" 19567 19568 19569 # We use sed instead of cat because bash on DJGPP gets confused if 19570 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19571 # text mode, it properly converts lines to CR/LF. This bash problem 19572 # is reportedly fixed, but why not run on old versions too? 19573 sed '$q' "$ltmain" >> "$cfgfile" \ 19574 || (rm -f "$cfgfile"; exit 1) 19575 19576 if test x"$xsi_shell" = xyes; then 19577 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 19578func_dirname ()\ 19579{\ 19580\ case ${1} in\ 19581\ */*) func_dirname_result="${1%/*}${2}" ;;\ 19582\ * ) func_dirname_result="${3}" ;;\ 19583\ esac\ 19584} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 19585 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19586 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19587test 0 -eq $? || _lt_function_replace_fail=: 19588 19589 19590 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 19591func_basename ()\ 19592{\ 19593\ func_basename_result="${1##*/}"\ 19594} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 19595 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19596 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19597test 0 -eq $? || _lt_function_replace_fail=: 19598 19599 19600 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 19601func_dirname_and_basename ()\ 19602{\ 19603\ case ${1} in\ 19604\ */*) func_dirname_result="${1%/*}${2}" ;;\ 19605\ * ) func_dirname_result="${3}" ;;\ 19606\ esac\ 19607\ func_basename_result="${1##*/}"\ 19608} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 19609 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19610 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19611test 0 -eq $? || _lt_function_replace_fail=: 19612 19613 19614 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 19615func_stripname ()\ 19616{\ 19617\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 19618\ # positional parameters, so assign one to ordinary parameter first.\ 19619\ func_stripname_result=${3}\ 19620\ func_stripname_result=${func_stripname_result#"${1}"}\ 19621\ func_stripname_result=${func_stripname_result%"${2}"}\ 19622} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 19623 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19624 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19625test 0 -eq $? || _lt_function_replace_fail=: 19626 19627 19628 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 19629func_split_long_opt ()\ 19630{\ 19631\ func_split_long_opt_name=${1%%=*}\ 19632\ func_split_long_opt_arg=${1#*=}\ 19633} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 19634 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19635 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19636test 0 -eq $? || _lt_function_replace_fail=: 19637 19638 19639 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 19640func_split_short_opt ()\ 19641{\ 19642\ func_split_short_opt_arg=${1#??}\ 19643\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 19644} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 19645 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19646 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19647test 0 -eq $? || _lt_function_replace_fail=: 19648 19649 19650 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 19651func_lo2o ()\ 19652{\ 19653\ case ${1} in\ 19654\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 19655\ *) func_lo2o_result=${1} ;;\ 19656\ esac\ 19657} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 19658 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19659 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19660test 0 -eq $? || _lt_function_replace_fail=: 19661 19662 19663 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 19664func_xform ()\ 19665{\ 19666 func_xform_result=${1%.*}.lo\ 19667} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 19668 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19669 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19670test 0 -eq $? || _lt_function_replace_fail=: 19671 19672 19673 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 19674func_arith ()\ 19675{\ 19676 func_arith_result=$(( $* ))\ 19677} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 19678 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19679 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19680test 0 -eq $? || _lt_function_replace_fail=: 19681 19682 19683 sed -e '/^func_len ()$/,/^} # func_len /c\ 19684func_len ()\ 19685{\ 19686 func_len_result=${#1}\ 19687} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 19688 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19689 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19690test 0 -eq $? || _lt_function_replace_fail=: 19691 19692fi 19693 19694if test x"$lt_shell_append" = xyes; then 19695 sed -e '/^func_append ()$/,/^} # func_append /c\ 19696func_append ()\ 19697{\ 19698 eval "${1}+=\\${2}"\ 19699} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 19700 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19701 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19702test 0 -eq $? || _lt_function_replace_fail=: 19703 19704 19705 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 19706func_append_quoted ()\ 19707{\ 19708\ func_quote_for_eval "${2}"\ 19709\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 19710} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 19711 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19712 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19713test 0 -eq $? || _lt_function_replace_fail=: 19714 19715 19716 # Save a `func_append' function call where possible by direct use of '+=' 19717 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 19718 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19719 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19720 test 0 -eq $? || _lt_function_replace_fail=: 19721else 19722 # Save a `func_append' function call even when '+=' is not available 19723 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 19724 && mv -f "$cfgfile.tmp" "$cfgfile" \ 19725 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 19726 test 0 -eq $? || _lt_function_replace_fail=: 19727fi 19728 19729if test x"$_lt_function_replace_fail" = x":"; then 19730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 19731$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 19732fi 19733 19734 19735 mv -f "$cfgfile" "$ofile" || 19736 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19737 chmod +x "$ofile" 19738 19739 19740 cat <<_LT_EOF >> "$ofile" 19741 19742# ### BEGIN LIBTOOL TAG CONFIG: CXX 19743 19744# The linker used to build libraries. 19745LD=$lt_LD_CXX 19746 19747# How to create reloadable object files. 19748reload_flag=$lt_reload_flag_CXX 19749reload_cmds=$lt_reload_cmds_CXX 19750 19751# Commands used to build an old-style archive. 19752old_archive_cmds=$lt_old_archive_cmds_CXX 19753 19754# A language specific compiler. 19755CC=$lt_compiler_CXX 19756 19757# Is the compiler the GNU compiler? 19758with_gcc=$GCC_CXX 19759 19760# Compiler flag to turn off builtin functions. 19761no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 19762 19763# Additional compiler flags for building library objects. 19764pic_flag=$lt_lt_prog_compiler_pic_CXX 19765 19766# How to pass a linker flag through the compiler. 19767wl=$lt_lt_prog_compiler_wl_CXX 19768 19769# Compiler flag to prevent dynamic linking. 19770link_static_flag=$lt_lt_prog_compiler_static_CXX 19771 19772# Does compiler simultaneously support -c and -o options? 19773compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 19774 19775# Whether or not to add -lc for building shared libraries. 19776build_libtool_need_lc=$archive_cmds_need_lc_CXX 19777 19778# Whether or not to disallow shared libs when runtime libs are static. 19779allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 19780 19781# Compiler flag to allow reflexive dlopens. 19782export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 19783 19784# Compiler flag to generate shared objects directly from archives. 19785whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 19786 19787# Whether the compiler copes with passing no objects directly. 19788compiler_needs_object=$lt_compiler_needs_object_CXX 19789 19790# Create an old-style archive from a shared archive. 19791old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 19792 19793# Create a temporary old-style archive to link instead of a shared archive. 19794old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 19795 19796# Commands used to build a shared archive. 19797archive_cmds=$lt_archive_cmds_CXX 19798archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 19799 19800# Commands used to build a loadable module if different from building 19801# a shared archive. 19802module_cmds=$lt_module_cmds_CXX 19803module_expsym_cmds=$lt_module_expsym_cmds_CXX 19804 19805# Whether we are building with GNU ld or not. 19806with_gnu_ld=$lt_with_gnu_ld_CXX 19807 19808# Flag that allows shared libraries with undefined symbols to be built. 19809allow_undefined_flag=$lt_allow_undefined_flag_CXX 19810 19811# Flag that enforces no undefined symbols. 19812no_undefined_flag=$lt_no_undefined_flag_CXX 19813 19814# Flag to hardcode \$libdir into a binary during linking. 19815# This must work even if \$libdir does not exist 19816hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 19817 19818# Whether we need a single "-rpath" flag with a separated argument. 19819hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 19820 19821# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19822# DIR into the resulting binary. 19823hardcode_direct=$hardcode_direct_CXX 19824 19825# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19826# DIR into the resulting binary and the resulting library dependency is 19827# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19828# library is relocated. 19829hardcode_direct_absolute=$hardcode_direct_absolute_CXX 19830 19831# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19832# into the resulting binary. 19833hardcode_minus_L=$hardcode_minus_L_CXX 19834 19835# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19836# into the resulting binary. 19837hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 19838 19839# Set to "yes" if building a shared library automatically hardcodes DIR 19840# into the library and all subsequent libraries and executables linked 19841# against it. 19842hardcode_automatic=$hardcode_automatic_CXX 19843 19844# Set to yes if linker adds runtime paths of dependent libraries 19845# to runtime path list. 19846inherit_rpath=$inherit_rpath_CXX 19847 19848# Whether libtool must link a program against all its dependency libraries. 19849link_all_deplibs=$link_all_deplibs_CXX 19850 19851# Set to "yes" if exported symbols are required. 19852always_export_symbols=$always_export_symbols_CXX 19853 19854# The commands to list exported symbols. 19855export_symbols_cmds=$lt_export_symbols_cmds_CXX 19856 19857# Symbols that should not be listed in the preloaded symbols. 19858exclude_expsyms=$lt_exclude_expsyms_CXX 19859 19860# Symbols that must always be exported. 19861include_expsyms=$lt_include_expsyms_CXX 19862 19863# Commands necessary for linking programs (against libraries) with templates. 19864prelink_cmds=$lt_prelink_cmds_CXX 19865 19866# Commands necessary for finishing linking programs. 19867postlink_cmds=$lt_postlink_cmds_CXX 19868 19869# Specify filename containing input files. 19870file_list_spec=$lt_file_list_spec_CXX 19871 19872# How to hardcode a shared library path into an executable. 19873hardcode_action=$hardcode_action_CXX 19874 19875# The directories searched by this compiler when creating a shared library. 19876compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 19877 19878# Dependencies to place before and after the objects being linked to 19879# create a shared library. 19880predep_objects=$lt_predep_objects_CXX 19881postdep_objects=$lt_postdep_objects_CXX 19882predeps=$lt_predeps_CXX 19883postdeps=$lt_postdeps_CXX 19884 19885# The library search path used internally by the compiler when linking 19886# a shared library. 19887compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 19888 19889# ### END LIBTOOL TAG CONFIG: CXX 19890_LT_EOF 19891 19892 ;; 19893 19894 esac 19895done # for ac_tag 19896 19897 19898as_fn_exit 0 19899_ACEOF 19900ac_clean_files=$ac_clean_files_save 19901 19902test $ac_write_fail = 0 || 19903 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19904 19905 19906# configure is writing to config.log, and then calls config.status. 19907# config.status does its own redirection, appending to config.log. 19908# Unfortunately, on DOS this fails, as config.log is still kept open 19909# by configure, so config.status won't be able to write to it; its 19910# output is simply discarded. So we exec the FD to /dev/null, 19911# effectively closing config.log, so it can be properly (re)opened and 19912# appended to by config.status. When coming back to configure, we 19913# need to make the FD available again. 19914if test "$no_create" != yes; then 19915 ac_cs_success=: 19916 ac_config_status_args= 19917 test "$silent" = yes && 19918 ac_config_status_args="$ac_config_status_args --quiet" 19919 exec 5>/dev/null 19920 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19921 exec 5>>config.log 19922 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19923 # would make configure fail if this is the last instruction. 19924 $ac_cs_success || as_fn_exit 1 19925fi 19926if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19928$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19929fi 19930 19931