1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for maildir 0.11. 4# 5# Report bugs to <courier-maildrop@lists.sourceforge.net>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: courier-maildrop@lists.sourceforge.net about your 279$0: system, including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='maildir' 592PACKAGE_TARNAME='maildir' 593PACKAGE_VERSION='0.11' 594PACKAGE_STRING='maildir 0.11' 595PACKAGE_BUGREPORT='courier-maildrop@lists.sourceforge.net' 596PACKAGE_URL='' 597 598ac_unique_file="maildirquota.c" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_subst_vars='am__EXEEXT_FALSE 636am__EXEEXT_TRUE 637LTLIBOBJS 638LIBOBJS 639HAVE_SGML_FALSE 640HAVE_SGML_TRUE 641MAILBOT 642COURIER_UNICODE_CXXFLAGS 643LIBPCRE 644PERL 645CXXCPP 646am__fastdepCXX_FALSE 647am__fastdepCXX_TRUE 648CXXDEPMODE 649ac_ct_CXX 650CXXFLAGS 651CXX 652LT_SYS_LIBRARY_PATH 653OTOOL64 654OTOOL 655LIPO 656NMEDIT 657DSYMUTIL 658MANIFEST_TOOL 659RANLIB 660ac_ct_AR 661AR 662DLLTOOL 663OBJDUMP 664NM 665ac_ct_DUMPBIN 666DUMPBIN 667LD 668FGREP 669SED 670LIBTOOL 671LN_S 672EGREP 673GREP 674CPP 675am__fastdepCC_FALSE 676am__fastdepCC_TRUE 677CCDEPMODE 678am__nodep 679AMDEPBACKSLASH 680AMDEP_FALSE 681AMDEP_TRUE 682am__include 683DEPDIR 684OBJEXT 685EXEEXT 686ac_ct_CC 687CPPFLAGS 688LDFLAGS 689CFLAGS 690CC 691AM_BACKSLASH 692AM_DEFAULT_VERBOSITY 693AM_DEFAULT_V 694AM_V 695am__untar 696am__tar 697AMTAR 698am__leading_dot 699SET_MAKE 700AWK 701mkdir_p 702MKDIR_P 703INSTALL_STRIP_PROGRAM 704STRIP 705install_sh 706MAKEINFO 707AUTOHEADER 708AUTOMAKE 709AUTOCONF 710ACLOCAL 711VERSION 712PACKAGE 713CYGPATH_W 714am__isrc 715INSTALL_DATA 716INSTALL_SCRIPT 717INSTALL_PROGRAM 718target_os 719target_vendor 720target_cpu 721target 722host_os 723host_vendor 724host_cpu 725host 726build_os 727build_vendor 728build_cpu 729build 730target_alias 731host_alias 732build_alias 733LIBS 734ECHO_T 735ECHO_N 736ECHO_C 737DEFS 738mandir 739localedir 740libdir 741psdir 742pdfdir 743dvidir 744htmldir 745infodir 746docdir 747oldincludedir 748includedir 749localstatedir 750sharedstatedir 751sysconfdir 752datadir 753datarootdir 754libexecdir 755sbindir 756bindir 757program_transform_name 758prefix 759exec_prefix 760PACKAGE_URL 761PACKAGE_BUGREPORT 762PACKAGE_STRING 763PACKAGE_VERSION 764PACKAGE_TARNAME 765PACKAGE_NAME 766PATH_SEPARATOR 767SHELL 768am__quote' 769ac_subst_files='' 770ac_user_opts=' 771enable_option_checking 772enable_silent_rules 773enable_dependency_tracking 774enable_shared 775enable_static 776with_pic 777enable_fast_install 778with_aix_soname 779with_gnu_ld 780with_sysroot 781enable_libtool_lock 782enable_largefile 783with_db 784with_trashquota 785' 786 ac_precious_vars='build_alias 787host_alias 788target_alias 789CC 790CFLAGS 791LDFLAGS 792LIBS 793CPPFLAGS 794CPP 795LT_SYS_LIBRARY_PATH 796CXX 797CXXFLAGS 798CCC 799CXXCPP' 800 801 802# Initialize some variables set by options. 803ac_init_help= 804ac_init_version=false 805ac_unrecognized_opts= 806ac_unrecognized_sep= 807# The variables have the same names as the options, with 808# dashes changed to underlines. 809cache_file=/dev/null 810exec_prefix=NONE 811no_create= 812no_recursion= 813prefix=NONE 814program_prefix=NONE 815program_suffix=NONE 816program_transform_name=s,x,x, 817silent= 818site= 819srcdir= 820verbose= 821x_includes=NONE 822x_libraries=NONE 823 824# Installation directory options. 825# These are left unexpanded so users can "make install exec_prefix=/foo" 826# and all the variables that are supposed to be based on exec_prefix 827# by default will actually change. 828# Use braces instead of parens because sh, perl, etc. also accept them. 829# (The list follows the same order as the GNU Coding Standards.) 830bindir='${exec_prefix}/bin' 831sbindir='${exec_prefix}/sbin' 832libexecdir='${exec_prefix}/libexec' 833datarootdir='${prefix}/share' 834datadir='${datarootdir}' 835sysconfdir='${prefix}/etc' 836sharedstatedir='${prefix}/com' 837localstatedir='${prefix}/var' 838includedir='${prefix}/include' 839oldincludedir='/usr/include' 840docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 841infodir='${datarootdir}/info' 842htmldir='${docdir}' 843dvidir='${docdir}' 844pdfdir='${docdir}' 845psdir='${docdir}' 846libdir='${exec_prefix}/lib' 847localedir='${datarootdir}/locale' 848mandir='${datarootdir}/man' 849 850ac_prev= 851ac_dashdash= 852for ac_option 853do 854 # If the previous option needs an argument, assign it. 855 if test -n "$ac_prev"; then 856 eval $ac_prev=\$ac_option 857 ac_prev= 858 continue 859 fi 860 861 case $ac_option in 862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 863 *=) ac_optarg= ;; 864 *) ac_optarg=yes ;; 865 esac 866 867 # Accept the important Cygnus configure options, so we can diagnose typos. 868 869 case $ac_dashdash$ac_option in 870 --) 871 ac_dashdash=yes ;; 872 873 -bindir | --bindir | --bindi | --bind | --bin | --bi) 874 ac_prev=bindir ;; 875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 876 bindir=$ac_optarg ;; 877 878 -build | --build | --buil | --bui | --bu) 879 ac_prev=build_alias ;; 880 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 881 build_alias=$ac_optarg ;; 882 883 -cache-file | --cache-file | --cache-fil | --cache-fi \ 884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 885 ac_prev=cache_file ;; 886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 888 cache_file=$ac_optarg ;; 889 890 --config-cache | -C) 891 cache_file=config.cache ;; 892 893 -datadir | --datadir | --datadi | --datad) 894 ac_prev=datadir ;; 895 -datadir=* | --datadir=* | --datadi=* | --datad=*) 896 datadir=$ac_optarg ;; 897 898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 899 | --dataroo | --dataro | --datar) 900 ac_prev=datarootdir ;; 901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 903 datarootdir=$ac_optarg ;; 904 905 -disable-* | --disable-*) 906 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 907 # Reject names that are not valid shell variable names. 908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 909 as_fn_error $? "invalid feature name: $ac_useropt" 910 ac_useropt_orig=$ac_useropt 911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 912 case $ac_user_opts in 913 *" 914"enable_$ac_useropt" 915"*) ;; 916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 917 ac_unrecognized_sep=', ';; 918 esac 919 eval enable_$ac_useropt=no ;; 920 921 -docdir | --docdir | --docdi | --doc | --do) 922 ac_prev=docdir ;; 923 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 924 docdir=$ac_optarg ;; 925 926 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 927 ac_prev=dvidir ;; 928 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 929 dvidir=$ac_optarg ;; 930 931 -enable-* | --enable-*) 932 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 933 # Reject names that are not valid shell variable names. 934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 935 as_fn_error $? "invalid feature name: $ac_useropt" 936 ac_useropt_orig=$ac_useropt 937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 938 case $ac_user_opts in 939 *" 940"enable_$ac_useropt" 941"*) ;; 942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 943 ac_unrecognized_sep=', ';; 944 esac 945 eval enable_$ac_useropt=\$ac_optarg ;; 946 947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 949 | --exec | --exe | --ex) 950 ac_prev=exec_prefix ;; 951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 953 | --exec=* | --exe=* | --ex=*) 954 exec_prefix=$ac_optarg ;; 955 956 -gas | --gas | --ga | --g) 957 # Obsolete; use --with-gas. 958 with_gas=yes ;; 959 960 -help | --help | --hel | --he | -h) 961 ac_init_help=long ;; 962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 963 ac_init_help=recursive ;; 964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 965 ac_init_help=short ;; 966 967 -host | --host | --hos | --ho) 968 ac_prev=host_alias ;; 969 -host=* | --host=* | --hos=* | --ho=*) 970 host_alias=$ac_optarg ;; 971 972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 973 ac_prev=htmldir ;; 974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 975 | --ht=*) 976 htmldir=$ac_optarg ;; 977 978 -includedir | --includedir | --includedi | --included | --include \ 979 | --includ | --inclu | --incl | --inc) 980 ac_prev=includedir ;; 981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 982 | --includ=* | --inclu=* | --incl=* | --inc=*) 983 includedir=$ac_optarg ;; 984 985 -infodir | --infodir | --infodi | --infod | --info | --inf) 986 ac_prev=infodir ;; 987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 988 infodir=$ac_optarg ;; 989 990 -libdir | --libdir | --libdi | --libd) 991 ac_prev=libdir ;; 992 -libdir=* | --libdir=* | --libdi=* | --libd=*) 993 libdir=$ac_optarg ;; 994 995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 996 | --libexe | --libex | --libe) 997 ac_prev=libexecdir ;; 998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 999 | --libexe=* | --libex=* | --libe=*) 1000 libexecdir=$ac_optarg ;; 1001 1002 -localedir | --localedir | --localedi | --localed | --locale) 1003 ac_prev=localedir ;; 1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1005 localedir=$ac_optarg ;; 1006 1007 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1008 | --localstate | --localstat | --localsta | --localst | --locals) 1009 ac_prev=localstatedir ;; 1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1012 localstatedir=$ac_optarg ;; 1013 1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1015 ac_prev=mandir ;; 1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1017 mandir=$ac_optarg ;; 1018 1019 -nfp | --nfp | --nf) 1020 # Obsolete; use --without-fp. 1021 with_fp=no ;; 1022 1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1024 | --no-cr | --no-c | -n) 1025 no_create=yes ;; 1026 1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1029 no_recursion=yes ;; 1030 1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1033 | --oldin | --oldi | --old | --ol | --o) 1034 ac_prev=oldincludedir ;; 1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1038 oldincludedir=$ac_optarg ;; 1039 1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1041 ac_prev=prefix ;; 1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1043 prefix=$ac_optarg ;; 1044 1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1046 | --program-pre | --program-pr | --program-p) 1047 ac_prev=program_prefix ;; 1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1050 program_prefix=$ac_optarg ;; 1051 1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1053 | --program-suf | --program-su | --program-s) 1054 ac_prev=program_suffix ;; 1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1057 program_suffix=$ac_optarg ;; 1058 1059 -program-transform-name | --program-transform-name \ 1060 | --program-transform-nam | --program-transform-na \ 1061 | --program-transform-n | --program-transform- \ 1062 | --program-transform | --program-transfor \ 1063 | --program-transfo | --program-transf \ 1064 | --program-trans | --program-tran \ 1065 | --progr-tra | --program-tr | --program-t) 1066 ac_prev=program_transform_name ;; 1067 -program-transform-name=* | --program-transform-name=* \ 1068 | --program-transform-nam=* | --program-transform-na=* \ 1069 | --program-transform-n=* | --program-transform-=* \ 1070 | --program-transform=* | --program-transfor=* \ 1071 | --program-transfo=* | --program-transf=* \ 1072 | --program-trans=* | --program-tran=* \ 1073 | --progr-tra=* | --program-tr=* | --program-t=*) 1074 program_transform_name=$ac_optarg ;; 1075 1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1077 ac_prev=pdfdir ;; 1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1079 pdfdir=$ac_optarg ;; 1080 1081 -psdir | --psdir | --psdi | --psd | --ps) 1082 ac_prev=psdir ;; 1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1084 psdir=$ac_optarg ;; 1085 1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1087 | -silent | --silent | --silen | --sile | --sil) 1088 silent=yes ;; 1089 1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1091 ac_prev=sbindir ;; 1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1093 | --sbi=* | --sb=*) 1094 sbindir=$ac_optarg ;; 1095 1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1098 | --sharedst | --shareds | --shared | --share | --shar \ 1099 | --sha | --sh) 1100 ac_prev=sharedstatedir ;; 1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1104 | --sha=* | --sh=*) 1105 sharedstatedir=$ac_optarg ;; 1106 1107 -site | --site | --sit) 1108 ac_prev=site ;; 1109 -site=* | --site=* | --sit=*) 1110 site=$ac_optarg ;; 1111 1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1113 ac_prev=srcdir ;; 1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1115 srcdir=$ac_optarg ;; 1116 1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1118 | --syscon | --sysco | --sysc | --sys | --sy) 1119 ac_prev=sysconfdir ;; 1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1122 sysconfdir=$ac_optarg ;; 1123 1124 -target | --target | --targe | --targ | --tar | --ta | --t) 1125 ac_prev=target_alias ;; 1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1127 target_alias=$ac_optarg ;; 1128 1129 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1130 verbose=yes ;; 1131 1132 -version | --version | --versio | --versi | --vers | -V) 1133 ac_init_version=: ;; 1134 1135 -with-* | --with-*) 1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1137 # Reject names that are not valid shell variable names. 1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1139 as_fn_error $? "invalid package name: $ac_useropt" 1140 ac_useropt_orig=$ac_useropt 1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1142 case $ac_user_opts in 1143 *" 1144"with_$ac_useropt" 1145"*) ;; 1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1147 ac_unrecognized_sep=', ';; 1148 esac 1149 eval with_$ac_useropt=\$ac_optarg ;; 1150 1151 -without-* | --without-*) 1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1153 # Reject names that are not valid shell variable names. 1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1155 as_fn_error $? "invalid package name: $ac_useropt" 1156 ac_useropt_orig=$ac_useropt 1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1158 case $ac_user_opts in 1159 *" 1160"with_$ac_useropt" 1161"*) ;; 1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1163 ac_unrecognized_sep=', ';; 1164 esac 1165 eval with_$ac_useropt=no ;; 1166 1167 --x) 1168 # Obsolete; use --with-x. 1169 with_x=yes ;; 1170 1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1172 | --x-incl | --x-inc | --x-in | --x-i) 1173 ac_prev=x_includes ;; 1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1176 x_includes=$ac_optarg ;; 1177 1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1180 ac_prev=x_libraries ;; 1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1183 x_libraries=$ac_optarg ;; 1184 1185 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1186Try \`$0 --help' for more information" 1187 ;; 1188 1189 *=*) 1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1191 # Reject names that are not valid shell variable names. 1192 case $ac_envvar in #( 1193 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1195 esac 1196 eval $ac_envvar=\$ac_optarg 1197 export $ac_envvar ;; 1198 1199 *) 1200 # FIXME: should be removed in autoconf 3.0. 1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1205 ;; 1206 1207 esac 1208done 1209 1210if test -n "$ac_prev"; then 1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1212 as_fn_error $? "missing argument to $ac_option" 1213fi 1214 1215if test -n "$ac_unrecognized_opts"; then 1216 case $enable_option_checking in 1217 no) ;; 1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1220 esac 1221fi 1222 1223# Check all directory arguments for consistency. 1224for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1225 datadir sysconfdir sharedstatedir localstatedir includedir \ 1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1227 libdir localedir mandir 1228do 1229 eval ac_val=\$$ac_var 1230 # Remove trailing slashes. 1231 case $ac_val in 1232 */ ) 1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1234 eval $ac_var=\$ac_val;; 1235 esac 1236 # Be sure to have absolute directory names. 1237 case $ac_val in 1238 [\\/$]* | ?:[\\/]* ) continue;; 1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1240 esac 1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1242done 1243 1244# There might be people who depend on the old broken behavior: `$host' 1245# used to hold the argument of --host etc. 1246# FIXME: To remove some day. 1247build=$build_alias 1248host=$host_alias 1249target=$target_alias 1250 1251# FIXME: To remove some day. 1252if test "x$host_alias" != x; then 1253 if test "x$build_alias" = x; then 1254 cross_compiling=maybe 1255 elif test "x$build_alias" != "x$host_alias"; then 1256 cross_compiling=yes 1257 fi 1258fi 1259 1260ac_tool_prefix= 1261test -n "$host_alias" && ac_tool_prefix=$host_alias- 1262 1263test "$silent" = yes && exec 6>/dev/null 1264 1265 1266ac_pwd=`pwd` && test -n "$ac_pwd" && 1267ac_ls_di=`ls -di .` && 1268ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1269 as_fn_error $? "working directory cannot be determined" 1270test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1271 as_fn_error $? "pwd does not report name of working directory" 1272 1273 1274# Find the source files, if location was not specified. 1275if test -z "$srcdir"; then 1276 ac_srcdir_defaulted=yes 1277 # Try the directory containing this script, then the parent directory. 1278 ac_confdir=`$as_dirname -- "$as_myself" || 1279$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1280 X"$as_myself" : 'X\(//\)[^/]' \| \ 1281 X"$as_myself" : 'X\(//\)$' \| \ 1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1283$as_echo X"$as_myself" | 1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1285 s//\1/ 1286 q 1287 } 1288 /^X\(\/\/\)[^/].*/{ 1289 s//\1/ 1290 q 1291 } 1292 /^X\(\/\/\)$/{ 1293 s//\1/ 1294 q 1295 } 1296 /^X\(\/\).*/{ 1297 s//\1/ 1298 q 1299 } 1300 s/.*/./; q'` 1301 srcdir=$ac_confdir 1302 if test ! -r "$srcdir/$ac_unique_file"; then 1303 srcdir=.. 1304 fi 1305else 1306 ac_srcdir_defaulted=no 1307fi 1308if test ! -r "$srcdir/$ac_unique_file"; then 1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1311fi 1312ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1313ac_abs_confdir=`( 1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1315 pwd)` 1316# When building in place, set srcdir=. 1317if test "$ac_abs_confdir" = "$ac_pwd"; then 1318 srcdir=. 1319fi 1320# Remove unnecessary trailing slashes from srcdir. 1321# Double slashes in file names in object file debugging info 1322# mess up M-x gdb in Emacs. 1323case $srcdir in 1324*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1325esac 1326for ac_var in $ac_precious_vars; do 1327 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1328 eval ac_env_${ac_var}_value=\$${ac_var} 1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1330 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1331done 1332 1333# 1334# Report the --help message. 1335# 1336if test "$ac_init_help" = "long"; then 1337 # Omit some internal or obsolete options to make the list less imposing. 1338 # This message is too long to be a string in the A/UX 3.1 sh. 1339 cat <<_ACEOF 1340\`configure' configures maildir 0.11 to adapt to many kinds of systems. 1341 1342Usage: $0 [OPTION]... [VAR=VALUE]... 1343 1344To assign environment variables (e.g., CC, CFLAGS...), specify them as 1345VAR=VALUE. See below for descriptions of some of the useful variables. 1346 1347Defaults for the options are specified in brackets. 1348 1349Configuration: 1350 -h, --help display this help and exit 1351 --help=short display options specific to this package 1352 --help=recursive display the short help of all the included packages 1353 -V, --version display version information and exit 1354 -q, --quiet, --silent do not print \`checking ...' messages 1355 --cache-file=FILE cache test results in FILE [disabled] 1356 -C, --config-cache alias for \`--cache-file=config.cache' 1357 -n, --no-create do not create output files 1358 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1359 1360Installation directories: 1361 --prefix=PREFIX install architecture-independent files in PREFIX 1362 [$ac_default_prefix] 1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1364 [PREFIX] 1365 1366By default, \`make install' will install all the files in 1367\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1368an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1369for instance \`--prefix=\$HOME'. 1370 1371For better control, use the options below. 1372 1373Fine tuning of the installation directories: 1374 --bindir=DIR user executables [EPREFIX/bin] 1375 --sbindir=DIR system admin executables [EPREFIX/sbin] 1376 --libexecdir=DIR program executables [EPREFIX/libexec] 1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1380 --libdir=DIR object code libraries [EPREFIX/lib] 1381 --includedir=DIR C header files [PREFIX/include] 1382 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1385 --infodir=DIR info documentation [DATAROOTDIR/info] 1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1387 --mandir=DIR man documentation [DATAROOTDIR/man] 1388 --docdir=DIR documentation root [DATAROOTDIR/doc/maildir] 1389 --htmldir=DIR html documentation [DOCDIR] 1390 --dvidir=DIR dvi documentation [DOCDIR] 1391 --pdfdir=DIR pdf documentation [DOCDIR] 1392 --psdir=DIR ps documentation [DOCDIR] 1393_ACEOF 1394 1395 cat <<\_ACEOF 1396 1397Program names: 1398 --program-prefix=PREFIX prepend PREFIX to installed program names 1399 --program-suffix=SUFFIX append SUFFIX to installed program names 1400 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1401 1402System types: 1403 --build=BUILD configure for building on BUILD [guessed] 1404 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1405 --target=TARGET configure for building compilers for TARGET [HOST] 1406_ACEOF 1407fi 1408 1409if test -n "$ac_init_help"; then 1410 case $ac_init_help in 1411 short | recursive ) echo "Configuration of maildir 0.11:";; 1412 esac 1413 cat <<\_ACEOF 1414 1415Optional Features: 1416 --disable-option-checking ignore unrecognized --enable/--with options 1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1419 --enable-silent-rules less verbose build output (undo: "make V=1") 1420 --disable-silent-rules verbose build output (undo: "make V=0") 1421 --enable-dependency-tracking 1422 do not reject slow dependency extractors 1423 --disable-dependency-tracking 1424 speeds up one-time build 1425 --enable-shared[=PKGS] build shared libraries [default=yes] 1426 --enable-static[=PKGS] build static libraries [default=yes] 1427 --enable-fast-install[=PKGS] 1428 optimize for fast installation [default=yes] 1429 --disable-libtool-lock avoid locking (might break parallel builds) 1430 --disable-largefile omit support for large files 1431 1432Optional Packages: 1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1435 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1436 both] 1437 --with-aix-soname=aix|svr4|both 1438 shared library versioning (aka "SONAME") variant to 1439 provide on AIX, [default=aix]. 1440 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1441 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1442 compiler's sysroot if not specified). 1443 --with-db=gdbm Use the GDBM library. 1444 --with-db=db Use the libdb.a library. 1445 --with-trashquota Count deleted messages as part of the quota 1446 1447Some influential environment variables: 1448 CC C compiler command 1449 CFLAGS C compiler flags 1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1451 nonstandard directory <lib dir> 1452 LIBS libraries to pass to the linker, e.g. -l<library> 1453 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1454 you have headers in a nonstandard directory <include dir> 1455 CPP C preprocessor 1456 LT_SYS_LIBRARY_PATH 1457 User-defined run-time library search path. 1458 CXX C++ compiler command 1459 CXXFLAGS C++ compiler flags 1460 CXXCPP C++ preprocessor 1461 1462Use these variables to override the choices made by `configure' or to help 1463it to find libraries and programs with nonstandard names/locations. 1464 1465Report bugs to <courier-maildrop@lists.sourceforge.net>. 1466_ACEOF 1467ac_status=$? 1468fi 1469 1470if test "$ac_init_help" = "recursive"; then 1471 # If there are subdirs, report their specific --help. 1472 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1473 test -d "$ac_dir" || 1474 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1475 continue 1476 ac_builddir=. 1477 1478case "$ac_dir" in 1479.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1480*) 1481 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1482 # A ".." for each directory in $ac_dir_suffix. 1483 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1484 case $ac_top_builddir_sub in 1485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1487 esac ;; 1488esac 1489ac_abs_top_builddir=$ac_pwd 1490ac_abs_builddir=$ac_pwd$ac_dir_suffix 1491# for backward compatibility: 1492ac_top_builddir=$ac_top_build_prefix 1493 1494case $srcdir in 1495 .) # We are building in place. 1496 ac_srcdir=. 1497 ac_top_srcdir=$ac_top_builddir_sub 1498 ac_abs_top_srcdir=$ac_pwd ;; 1499 [\\/]* | ?:[\\/]* ) # Absolute name. 1500 ac_srcdir=$srcdir$ac_dir_suffix; 1501 ac_top_srcdir=$srcdir 1502 ac_abs_top_srcdir=$srcdir ;; 1503 *) # Relative name. 1504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1505 ac_top_srcdir=$ac_top_build_prefix$srcdir 1506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1507esac 1508ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1509 1510 cd "$ac_dir" || { ac_status=$?; continue; } 1511 # Check for guested configure. 1512 if test -f "$ac_srcdir/configure.gnu"; then 1513 echo && 1514 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1515 elif test -f "$ac_srcdir/configure"; then 1516 echo && 1517 $SHELL "$ac_srcdir/configure" --help=recursive 1518 else 1519 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1520 fi || ac_status=$? 1521 cd "$ac_pwd" || { ac_status=$?; break; } 1522 done 1523fi 1524 1525test -n "$ac_init_help" && exit $ac_status 1526if $ac_init_version; then 1527 cat <<\_ACEOF 1528maildir configure 0.11 1529generated by GNU Autoconf 2.69 1530 1531Copyright (C) 2012 Free Software Foundation, Inc. 1532This configure script is free software; the Free Software Foundation 1533gives unlimited permission to copy, distribute and modify it. 1534_ACEOF 1535 exit 1536fi 1537 1538## ------------------------ ## 1539## Autoconf initialization. ## 1540## ------------------------ ## 1541 1542# ac_fn_c_try_compile LINENO 1543# -------------------------- 1544# Try to compile conftest.$ac_ext, and return whether this succeeded. 1545ac_fn_c_try_compile () 1546{ 1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1548 rm -f conftest.$ac_objext 1549 if { { ac_try="$ac_compile" 1550case "(($ac_try" in 1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1552 *) ac_try_echo=$ac_try;; 1553esac 1554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1555$as_echo "$ac_try_echo"; } >&5 1556 (eval "$ac_compile") 2>conftest.err 1557 ac_status=$? 1558 if test -s conftest.err; then 1559 grep -v '^ *+' conftest.err >conftest.er1 1560 cat conftest.er1 >&5 1561 mv -f conftest.er1 conftest.err 1562 fi 1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1564 test $ac_status = 0; } && { 1565 test -z "$ac_c_werror_flag" || 1566 test ! -s conftest.err 1567 } && test -s conftest.$ac_objext; then : 1568 ac_retval=0 1569else 1570 $as_echo "$as_me: failed program was:" >&5 1571sed 's/^/| /' conftest.$ac_ext >&5 1572 1573 ac_retval=1 1574fi 1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1576 as_fn_set_status $ac_retval 1577 1578} # ac_fn_c_try_compile 1579 1580# ac_fn_c_try_cpp LINENO 1581# ---------------------- 1582# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1583ac_fn_c_try_cpp () 1584{ 1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1586 if { { ac_try="$ac_cpp conftest.$ac_ext" 1587case "(($ac_try" in 1588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1589 *) ac_try_echo=$ac_try;; 1590esac 1591eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1592$as_echo "$ac_try_echo"; } >&5 1593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1594 ac_status=$? 1595 if test -s conftest.err; then 1596 grep -v '^ *+' conftest.err >conftest.er1 1597 cat conftest.er1 >&5 1598 mv -f conftest.er1 conftest.err 1599 fi 1600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1601 test $ac_status = 0; } > conftest.i && { 1602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1603 test ! -s conftest.err 1604 }; then : 1605 ac_retval=0 1606else 1607 $as_echo "$as_me: failed program was:" >&5 1608sed 's/^/| /' conftest.$ac_ext >&5 1609 1610 ac_retval=1 1611fi 1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1613 as_fn_set_status $ac_retval 1614 1615} # ac_fn_c_try_cpp 1616 1617# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1618# ------------------------------------------------------- 1619# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1620# the include files in INCLUDES and setting the cache variable VAR 1621# accordingly. 1622ac_fn_c_check_header_mongrel () 1623{ 1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1625 if eval \${$3+:} false; then : 1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1627$as_echo_n "checking for $2... " >&6; } 1628if eval \${$3+:} false; then : 1629 $as_echo_n "(cached) " >&6 1630fi 1631eval ac_res=\$$3 1632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1633$as_echo "$ac_res" >&6; } 1634else 1635 # Is the header compilable? 1636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1637$as_echo_n "checking $2 usability... " >&6; } 1638cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1639/* end confdefs.h. */ 1640$4 1641#include <$2> 1642_ACEOF 1643if ac_fn_c_try_compile "$LINENO"; then : 1644 ac_header_compiler=yes 1645else 1646 ac_header_compiler=no 1647fi 1648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1650$as_echo "$ac_header_compiler" >&6; } 1651 1652# Is the header present? 1653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1654$as_echo_n "checking $2 presence... " >&6; } 1655cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1656/* end confdefs.h. */ 1657#include <$2> 1658_ACEOF 1659if ac_fn_c_try_cpp "$LINENO"; then : 1660 ac_header_preproc=yes 1661else 1662 ac_header_preproc=no 1663fi 1664rm -f conftest.err conftest.i conftest.$ac_ext 1665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1666$as_echo "$ac_header_preproc" >&6; } 1667 1668# So? What about this header? 1669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1670 yes:no: ) 1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1672$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1674$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1675 ;; 1676 no:yes:* ) 1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1678$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1680$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1682$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1684$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1686$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1687( $as_echo "## ----------------------------------------------------- ## 1688## Report this to courier-maildrop@lists.sourceforge.net ## 1689## ----------------------------------------------------- ##" 1690 ) | sed "s/^/$as_me: WARNING: /" >&2 1691 ;; 1692esac 1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1694$as_echo_n "checking for $2... " >&6; } 1695if eval \${$3+:} false; then : 1696 $as_echo_n "(cached) " >&6 1697else 1698 eval "$3=\$ac_header_compiler" 1699fi 1700eval ac_res=\$$3 1701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1702$as_echo "$ac_res" >&6; } 1703fi 1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1705 1706} # ac_fn_c_check_header_mongrel 1707 1708# ac_fn_c_try_run LINENO 1709# ---------------------- 1710# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1711# that executables *can* be run. 1712ac_fn_c_try_run () 1713{ 1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1715 if { { ac_try="$ac_link" 1716case "(($ac_try" in 1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1718 *) ac_try_echo=$ac_try;; 1719esac 1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1721$as_echo "$ac_try_echo"; } >&5 1722 (eval "$ac_link") 2>&5 1723 ac_status=$? 1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1725 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1726 { { case "(($ac_try" in 1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1728 *) ac_try_echo=$ac_try;; 1729esac 1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1731$as_echo "$ac_try_echo"; } >&5 1732 (eval "$ac_try") 2>&5 1733 ac_status=$? 1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1735 test $ac_status = 0; }; }; then : 1736 ac_retval=0 1737else 1738 $as_echo "$as_me: program exited with status $ac_status" >&5 1739 $as_echo "$as_me: failed program was:" >&5 1740sed 's/^/| /' conftest.$ac_ext >&5 1741 1742 ac_retval=$ac_status 1743fi 1744 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1746 as_fn_set_status $ac_retval 1747 1748} # ac_fn_c_try_run 1749 1750# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1751# ------------------------------------------------------- 1752# Tests whether HEADER exists and can be compiled using the include files in 1753# INCLUDES, setting the cache variable VAR accordingly. 1754ac_fn_c_check_header_compile () 1755{ 1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1758$as_echo_n "checking for $2... " >&6; } 1759if eval \${$3+:} false; then : 1760 $as_echo_n "(cached) " >&6 1761else 1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1763/* end confdefs.h. */ 1764$4 1765#include <$2> 1766_ACEOF 1767if ac_fn_c_try_compile "$LINENO"; then : 1768 eval "$3=yes" 1769else 1770 eval "$3=no" 1771fi 1772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1773fi 1774eval ac_res=\$$3 1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1776$as_echo "$ac_res" >&6; } 1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1778 1779} # ac_fn_c_check_header_compile 1780 1781# ac_fn_c_try_link LINENO 1782# ----------------------- 1783# Try to link conftest.$ac_ext, and return whether this succeeded. 1784ac_fn_c_try_link () 1785{ 1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1787 rm -f conftest.$ac_objext conftest$ac_exeext 1788 if { { ac_try="$ac_link" 1789case "(($ac_try" in 1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1791 *) ac_try_echo=$ac_try;; 1792esac 1793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1794$as_echo "$ac_try_echo"; } >&5 1795 (eval "$ac_link") 2>conftest.err 1796 ac_status=$? 1797 if test -s conftest.err; then 1798 grep -v '^ *+' conftest.err >conftest.er1 1799 cat conftest.er1 >&5 1800 mv -f conftest.er1 conftest.err 1801 fi 1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1803 test $ac_status = 0; } && { 1804 test -z "$ac_c_werror_flag" || 1805 test ! -s conftest.err 1806 } && test -s conftest$ac_exeext && { 1807 test "$cross_compiling" = yes || 1808 test -x conftest$ac_exeext 1809 }; then : 1810 ac_retval=0 1811else 1812 $as_echo "$as_me: failed program was:" >&5 1813sed 's/^/| /' conftest.$ac_ext >&5 1814 1815 ac_retval=1 1816fi 1817 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1818 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1819 # interfere with the next link command; also delete a directory that is 1820 # left behind by Apple's compiler. We do this before executing the actions. 1821 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1823 as_fn_set_status $ac_retval 1824 1825} # ac_fn_c_try_link 1826 1827# ac_fn_c_check_func LINENO FUNC VAR 1828# ---------------------------------- 1829# Tests whether FUNC exists, setting the cache variable VAR accordingly 1830ac_fn_c_check_func () 1831{ 1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1834$as_echo_n "checking for $2... " >&6; } 1835if eval \${$3+:} false; then : 1836 $as_echo_n "(cached) " >&6 1837else 1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1839/* end confdefs.h. */ 1840/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1841 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1842#define $2 innocuous_$2 1843 1844/* System header to define __stub macros and hopefully few prototypes, 1845 which can conflict with char $2 (); below. 1846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1847 <limits.h> exists even on freestanding compilers. */ 1848 1849#ifdef __STDC__ 1850# include <limits.h> 1851#else 1852# include <assert.h> 1853#endif 1854 1855#undef $2 1856 1857/* Override any GCC internal prototype to avoid an error. 1858 Use char because int might match the return type of a GCC 1859 builtin and then its argument prototype would still apply. */ 1860#ifdef __cplusplus 1861extern "C" 1862#endif 1863char $2 (); 1864/* The GNU C library defines this for functions which it implements 1865 to always fail with ENOSYS. Some functions are actually named 1866 something starting with __ and the normal name is an alias. */ 1867#if defined __stub_$2 || defined __stub___$2 1868choke me 1869#endif 1870 1871int 1872main () 1873{ 1874return $2 (); 1875 ; 1876 return 0; 1877} 1878_ACEOF 1879if ac_fn_c_try_link "$LINENO"; then : 1880 eval "$3=yes" 1881else 1882 eval "$3=no" 1883fi 1884rm -f core conftest.err conftest.$ac_objext \ 1885 conftest$ac_exeext conftest.$ac_ext 1886fi 1887eval ac_res=\$$3 1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1889$as_echo "$ac_res" >&6; } 1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1891 1892} # ac_fn_c_check_func 1893 1894# ac_fn_cxx_try_compile LINENO 1895# ---------------------------- 1896# Try to compile conftest.$ac_ext, and return whether this succeeded. 1897ac_fn_cxx_try_compile () 1898{ 1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1900 rm -f conftest.$ac_objext 1901 if { { ac_try="$ac_compile" 1902case "(($ac_try" in 1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1904 *) ac_try_echo=$ac_try;; 1905esac 1906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1907$as_echo "$ac_try_echo"; } >&5 1908 (eval "$ac_compile") 2>conftest.err 1909 ac_status=$? 1910 if test -s conftest.err; then 1911 grep -v '^ *+' conftest.err >conftest.er1 1912 cat conftest.er1 >&5 1913 mv -f conftest.er1 conftest.err 1914 fi 1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1916 test $ac_status = 0; } && { 1917 test -z "$ac_cxx_werror_flag" || 1918 test ! -s conftest.err 1919 } && test -s conftest.$ac_objext; then : 1920 ac_retval=0 1921else 1922 $as_echo "$as_me: failed program was:" >&5 1923sed 's/^/| /' conftest.$ac_ext >&5 1924 1925 ac_retval=1 1926fi 1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1928 as_fn_set_status $ac_retval 1929 1930} # ac_fn_cxx_try_compile 1931 1932# ac_fn_cxx_try_cpp LINENO 1933# ------------------------ 1934# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1935ac_fn_cxx_try_cpp () 1936{ 1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1938 if { { ac_try="$ac_cpp conftest.$ac_ext" 1939case "(($ac_try" in 1940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1941 *) ac_try_echo=$ac_try;; 1942esac 1943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1944$as_echo "$ac_try_echo"; } >&5 1945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1946 ac_status=$? 1947 if test -s conftest.err; then 1948 grep -v '^ *+' conftest.err >conftest.er1 1949 cat conftest.er1 >&5 1950 mv -f conftest.er1 conftest.err 1951 fi 1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1953 test $ac_status = 0; } > conftest.i && { 1954 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1955 test ! -s conftest.err 1956 }; then : 1957 ac_retval=0 1958else 1959 $as_echo "$as_me: failed program was:" >&5 1960sed 's/^/| /' conftest.$ac_ext >&5 1961 1962 ac_retval=1 1963fi 1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1965 as_fn_set_status $ac_retval 1966 1967} # ac_fn_cxx_try_cpp 1968 1969# ac_fn_cxx_try_link LINENO 1970# ------------------------- 1971# Try to link conftest.$ac_ext, and return whether this succeeded. 1972ac_fn_cxx_try_link () 1973{ 1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1975 rm -f conftest.$ac_objext conftest$ac_exeext 1976 if { { ac_try="$ac_link" 1977case "(($ac_try" in 1978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1979 *) ac_try_echo=$ac_try;; 1980esac 1981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1982$as_echo "$ac_try_echo"; } >&5 1983 (eval "$ac_link") 2>conftest.err 1984 ac_status=$? 1985 if test -s conftest.err; then 1986 grep -v '^ *+' conftest.err >conftest.er1 1987 cat conftest.er1 >&5 1988 mv -f conftest.er1 conftest.err 1989 fi 1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1991 test $ac_status = 0; } && { 1992 test -z "$ac_cxx_werror_flag" || 1993 test ! -s conftest.err 1994 } && test -s conftest$ac_exeext && { 1995 test "$cross_compiling" = yes || 1996 test -x conftest$ac_exeext 1997 }; then : 1998 ac_retval=0 1999else 2000 $as_echo "$as_me: failed program was:" >&5 2001sed 's/^/| /' conftest.$ac_ext >&5 2002 2003 ac_retval=1 2004fi 2005 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2006 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2007 # interfere with the next link command; also delete a directory that is 2008 # left behind by Apple's compiler. We do this before executing the actions. 2009 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2011 as_fn_set_status $ac_retval 2012 2013} # ac_fn_cxx_try_link 2014 2015# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2016# --------------------------------------------------------- 2017# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2018# the include files in INCLUDES and setting the cache variable VAR 2019# accordingly. 2020ac_fn_cxx_check_header_mongrel () 2021{ 2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2023 if eval \${$3+:} false; then : 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2025$as_echo_n "checking for $2... " >&6; } 2026if eval \${$3+:} false; then : 2027 $as_echo_n "(cached) " >&6 2028fi 2029eval ac_res=\$$3 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2031$as_echo "$ac_res" >&6; } 2032else 2033 # Is the header compilable? 2034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2035$as_echo_n "checking $2 usability... " >&6; } 2036cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2037/* end confdefs.h. */ 2038$4 2039#include <$2> 2040_ACEOF 2041if ac_fn_cxx_try_compile "$LINENO"; then : 2042 ac_header_compiler=yes 2043else 2044 ac_header_compiler=no 2045fi 2046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2048$as_echo "$ac_header_compiler" >&6; } 2049 2050# Is the header present? 2051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2052$as_echo_n "checking $2 presence... " >&6; } 2053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2054/* end confdefs.h. */ 2055#include <$2> 2056_ACEOF 2057if ac_fn_cxx_try_cpp "$LINENO"; then : 2058 ac_header_preproc=yes 2059else 2060 ac_header_preproc=no 2061fi 2062rm -f conftest.err conftest.i conftest.$ac_ext 2063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2064$as_echo "$ac_header_preproc" >&6; } 2065 2066# So? What about this header? 2067case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2068 yes:no: ) 2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2070$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2072$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2073 ;; 2074 no:yes:* ) 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2076$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2078$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2080$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2082$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2084$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2085( $as_echo "## ----------------------------------------------------- ## 2086## Report this to courier-maildrop@lists.sourceforge.net ## 2087## ----------------------------------------------------- ##" 2088 ) | sed "s/^/$as_me: WARNING: /" >&2 2089 ;; 2090esac 2091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2092$as_echo_n "checking for $2... " >&6; } 2093if eval \${$3+:} false; then : 2094 $as_echo_n "(cached) " >&6 2095else 2096 eval "$3=\$ac_header_compiler" 2097fi 2098eval ac_res=\$$3 2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2100$as_echo "$ac_res" >&6; } 2101fi 2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2103 2104} # ac_fn_cxx_check_header_mongrel 2105 2106# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2107# ------------------------------------------- 2108# Tests whether TYPE exists after having included INCLUDES, setting cache 2109# variable VAR accordingly. 2110ac_fn_c_check_type () 2111{ 2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2114$as_echo_n "checking for $2... " >&6; } 2115if eval \${$3+:} false; then : 2116 $as_echo_n "(cached) " >&6 2117else 2118 eval "$3=no" 2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2120/* end confdefs.h. */ 2121$4 2122int 2123main () 2124{ 2125if (sizeof ($2)) 2126 return 0; 2127 ; 2128 return 0; 2129} 2130_ACEOF 2131if ac_fn_c_try_compile "$LINENO"; then : 2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2133/* end confdefs.h. */ 2134$4 2135int 2136main () 2137{ 2138if (sizeof (($2))) 2139 return 0; 2140 ; 2141 return 0; 2142} 2143_ACEOF 2144if ac_fn_c_try_compile "$LINENO"; then : 2145 2146else 2147 eval "$3=yes" 2148fi 2149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2150fi 2151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2152fi 2153eval ac_res=\$$3 2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2155$as_echo "$ac_res" >&6; } 2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2157 2158} # ac_fn_c_check_type 2159cat >config.log <<_ACEOF 2160This file contains any messages produced by compilers while 2161running configure, to aid debugging if configure makes a mistake. 2162 2163It was created by maildir $as_me 0.11, which was 2164generated by GNU Autoconf 2.69. Invocation command line was 2165 2166 $ $0 $@ 2167 2168_ACEOF 2169exec 5>>config.log 2170{ 2171cat <<_ASUNAME 2172## --------- ## 2173## Platform. ## 2174## --------- ## 2175 2176hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2177uname -m = `(uname -m) 2>/dev/null || echo unknown` 2178uname -r = `(uname -r) 2>/dev/null || echo unknown` 2179uname -s = `(uname -s) 2>/dev/null || echo unknown` 2180uname -v = `(uname -v) 2>/dev/null || echo unknown` 2181 2182/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2183/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2184 2185/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2186/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2187/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2188/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2189/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2190/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2191/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2192 2193_ASUNAME 2194 2195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2196for as_dir in $PATH 2197do 2198 IFS=$as_save_IFS 2199 test -z "$as_dir" && as_dir=. 2200 $as_echo "PATH: $as_dir" 2201 done 2202IFS=$as_save_IFS 2203 2204} >&5 2205 2206cat >&5 <<_ACEOF 2207 2208 2209## ----------- ## 2210## Core tests. ## 2211## ----------- ## 2212 2213_ACEOF 2214 2215 2216# Keep a trace of the command line. 2217# Strip out --no-create and --no-recursion so they do not pile up. 2218# Strip out --silent because we don't want to record it for future runs. 2219# Also quote any args containing shell meta-characters. 2220# Make two passes to allow for proper duplicate-argument suppression. 2221ac_configure_args= 2222ac_configure_args0= 2223ac_configure_args1= 2224ac_must_keep_next=false 2225for ac_pass in 1 2 2226do 2227 for ac_arg 2228 do 2229 case $ac_arg in 2230 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2232 | -silent | --silent | --silen | --sile | --sil) 2233 continue ;; 2234 *\'*) 2235 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2236 esac 2237 case $ac_pass in 2238 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2239 2) 2240 as_fn_append ac_configure_args1 " '$ac_arg'" 2241 if test $ac_must_keep_next = true; then 2242 ac_must_keep_next=false # Got value, back to normal. 2243 else 2244 case $ac_arg in 2245 *=* | --config-cache | -C | -disable-* | --disable-* \ 2246 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2247 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2248 | -with-* | --with-* | -without-* | --without-* | --x) 2249 case "$ac_configure_args0 " in 2250 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2251 esac 2252 ;; 2253 -* ) ac_must_keep_next=true ;; 2254 esac 2255 fi 2256 as_fn_append ac_configure_args " '$ac_arg'" 2257 ;; 2258 esac 2259 done 2260done 2261{ ac_configure_args0=; unset ac_configure_args0;} 2262{ ac_configure_args1=; unset ac_configure_args1;} 2263 2264# When interrupted or exit'd, cleanup temporary files, and complete 2265# config.log. We remove comments because anyway the quotes in there 2266# would cause problems or look ugly. 2267# WARNING: Use '\'' to represent an apostrophe within the trap. 2268# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2269trap 'exit_status=$? 2270 # Save into config.log some information that might help in debugging. 2271 { 2272 echo 2273 2274 $as_echo "## ---------------- ## 2275## Cache variables. ## 2276## ---------------- ##" 2277 echo 2278 # The following way of writing the cache mishandles newlines in values, 2279( 2280 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2281 eval ac_val=\$$ac_var 2282 case $ac_val in #( 2283 *${as_nl}*) 2284 case $ac_var in #( 2285 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2286$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2287 esac 2288 case $ac_var in #( 2289 _ | IFS | as_nl) ;; #( 2290 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2291 *) { eval $ac_var=; unset $ac_var;} ;; 2292 esac ;; 2293 esac 2294 done 2295 (set) 2>&1 | 2296 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2297 *${as_nl}ac_space=\ *) 2298 sed -n \ 2299 "s/'\''/'\''\\\\'\'''\''/g; 2300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2301 ;; #( 2302 *) 2303 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2304 ;; 2305 esac | 2306 sort 2307) 2308 echo 2309 2310 $as_echo "## ----------------- ## 2311## Output variables. ## 2312## ----------------- ##" 2313 echo 2314 for ac_var in $ac_subst_vars 2315 do 2316 eval ac_val=\$$ac_var 2317 case $ac_val in 2318 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2319 esac 2320 $as_echo "$ac_var='\''$ac_val'\''" 2321 done | sort 2322 echo 2323 2324 if test -n "$ac_subst_files"; then 2325 $as_echo "## ------------------- ## 2326## File substitutions. ## 2327## ------------------- ##" 2328 echo 2329 for ac_var in $ac_subst_files 2330 do 2331 eval ac_val=\$$ac_var 2332 case $ac_val in 2333 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2334 esac 2335 $as_echo "$ac_var='\''$ac_val'\''" 2336 done | sort 2337 echo 2338 fi 2339 2340 if test -s confdefs.h; then 2341 $as_echo "## ----------- ## 2342## confdefs.h. ## 2343## ----------- ##" 2344 echo 2345 cat confdefs.h 2346 echo 2347 fi 2348 test "$ac_signal" != 0 && 2349 $as_echo "$as_me: caught signal $ac_signal" 2350 $as_echo "$as_me: exit $exit_status" 2351 } >&5 2352 rm -f core *.core core.conftest.* && 2353 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2354 exit $exit_status 2355' 0 2356for ac_signal in 1 2 13 15; do 2357 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2358done 2359ac_signal=0 2360 2361# confdefs.h avoids OS command line length limits that DEFS can exceed. 2362rm -f -r conftest* confdefs.h 2363 2364$as_echo "/* confdefs.h */" > confdefs.h 2365 2366# Predefined preprocessor variables. 2367 2368cat >>confdefs.h <<_ACEOF 2369#define PACKAGE_NAME "$PACKAGE_NAME" 2370_ACEOF 2371 2372cat >>confdefs.h <<_ACEOF 2373#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2374_ACEOF 2375 2376cat >>confdefs.h <<_ACEOF 2377#define PACKAGE_VERSION "$PACKAGE_VERSION" 2378_ACEOF 2379 2380cat >>confdefs.h <<_ACEOF 2381#define PACKAGE_STRING "$PACKAGE_STRING" 2382_ACEOF 2383 2384cat >>confdefs.h <<_ACEOF 2385#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2386_ACEOF 2387 2388cat >>confdefs.h <<_ACEOF 2389#define PACKAGE_URL "$PACKAGE_URL" 2390_ACEOF 2391 2392 2393# Let the site file select an alternate cache file if it wants to. 2394# Prefer an explicitly selected file to automatically selected ones. 2395ac_site_file1=NONE 2396ac_site_file2=NONE 2397if test -n "$CONFIG_SITE"; then 2398 # We do not want a PATH search for config.site. 2399 case $CONFIG_SITE in #(( 2400 -*) ac_site_file1=./$CONFIG_SITE;; 2401 */*) ac_site_file1=$CONFIG_SITE;; 2402 *) ac_site_file1=./$CONFIG_SITE;; 2403 esac 2404elif test "x$prefix" != xNONE; then 2405 ac_site_file1=$prefix/share/config.site 2406 ac_site_file2=$prefix/etc/config.site 2407else 2408 ac_site_file1=$ac_default_prefix/share/config.site 2409 ac_site_file2=$ac_default_prefix/etc/config.site 2410fi 2411for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2412do 2413 test "x$ac_site_file" = xNONE && continue 2414 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2415 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2416$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2417 sed 's/^/| /' "$ac_site_file" >&5 2418 . "$ac_site_file" \ 2419 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2421as_fn_error $? "failed to load site script $ac_site_file 2422See \`config.log' for more details" "$LINENO" 5; } 2423 fi 2424done 2425 2426if test -r "$cache_file"; then 2427 # Some versions of bash will fail to source /dev/null (special files 2428 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2429 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2430 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2431$as_echo "$as_me: loading cache $cache_file" >&6;} 2432 case $cache_file in 2433 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2434 *) . "./$cache_file";; 2435 esac 2436 fi 2437else 2438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2439$as_echo "$as_me: creating cache $cache_file" >&6;} 2440 >$cache_file 2441fi 2442 2443# Check that the precious variables saved in the cache have kept the same 2444# value. 2445ac_cache_corrupted=false 2446for ac_var in $ac_precious_vars; do 2447 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2448 eval ac_new_set=\$ac_env_${ac_var}_set 2449 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2450 eval ac_new_val=\$ac_env_${ac_var}_value 2451 case $ac_old_set,$ac_new_set in 2452 set,) 2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2454$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2455 ac_cache_corrupted=: ;; 2456 ,set) 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2458$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2459 ac_cache_corrupted=: ;; 2460 ,);; 2461 *) 2462 if test "x$ac_old_val" != "x$ac_new_val"; then 2463 # differences in whitespace do not lead to failure. 2464 ac_old_val_w=`echo x $ac_old_val` 2465 ac_new_val_w=`echo x $ac_new_val` 2466 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2468$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2469 ac_cache_corrupted=: 2470 else 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2472$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2473 eval $ac_var=\$ac_old_val 2474 fi 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2476$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2477 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2478$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2479 fi;; 2480 esac 2481 # Pass precious variables to config.status. 2482 if test "$ac_new_set" = set; then 2483 case $ac_new_val in 2484 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2485 *) ac_arg=$ac_var=$ac_new_val ;; 2486 esac 2487 case " $ac_configure_args " in 2488 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2489 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2490 esac 2491 fi 2492done 2493if $ac_cache_corrupted; then 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2497$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2498 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2499fi 2500## -------------------- ## 2501## Main body of script. ## 2502## -------------------- ## 2503 2504ac_ext=c 2505ac_cpp='$CPP $CPPFLAGS' 2506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2508ac_compiler_gnu=$ac_cv_c_compiler_gnu 2509 2510 2511 2512>confdefs.h # Kill PACKAGE_ macros 2513 2514 2515ac_aux_dir= 2516for ac_dir in ../.. "$srcdir"/../..; do 2517 if test -f "$ac_dir/install-sh"; then 2518 ac_aux_dir=$ac_dir 2519 ac_install_sh="$ac_aux_dir/install-sh -c" 2520 break 2521 elif test -f "$ac_dir/install.sh"; then 2522 ac_aux_dir=$ac_dir 2523 ac_install_sh="$ac_aux_dir/install.sh -c" 2524 break 2525 elif test -f "$ac_dir/shtool"; then 2526 ac_aux_dir=$ac_dir 2527 ac_install_sh="$ac_aux_dir/shtool install -c" 2528 break 2529 fi 2530done 2531if test -z "$ac_aux_dir"; then 2532 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5 2533fi 2534 2535# These three variables are undocumented and unsupported, 2536# and are intended to be withdrawn in a future Autoconf release. 2537# They can cause serious problems if a builder's source tree is in a directory 2538# whose full name contains unusual characters. 2539ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2540ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2541ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2542 2543 2544LPATH="$PATH:/usr/local/bin" 2545# Make sure we can run config.sub. 2546$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2547 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2548 2549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2550$as_echo_n "checking build system type... " >&6; } 2551if ${ac_cv_build+:} false; then : 2552 $as_echo_n "(cached) " >&6 2553else 2554 ac_build_alias=$build_alias 2555test "x$ac_build_alias" = x && 2556 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2557test "x$ac_build_alias" = x && 2558 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2559ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2560 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2561 2562fi 2563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2564$as_echo "$ac_cv_build" >&6; } 2565case $ac_cv_build in 2566*-*-*) ;; 2567*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2568esac 2569build=$ac_cv_build 2570ac_save_IFS=$IFS; IFS='-' 2571set x $ac_cv_build 2572shift 2573build_cpu=$1 2574build_vendor=$2 2575shift; shift 2576# Remember, the first character of IFS is used to create $*, 2577# except with old shells: 2578build_os=$* 2579IFS=$ac_save_IFS 2580case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2581 2582 2583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2584$as_echo_n "checking host system type... " >&6; } 2585if ${ac_cv_host+:} false; then : 2586 $as_echo_n "(cached) " >&6 2587else 2588 if test "x$host_alias" = x; then 2589 ac_cv_host=$ac_cv_build 2590else 2591 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2592 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2593fi 2594 2595fi 2596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2597$as_echo "$ac_cv_host" >&6; } 2598case $ac_cv_host in 2599*-*-*) ;; 2600*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2601esac 2602host=$ac_cv_host 2603ac_save_IFS=$IFS; IFS='-' 2604set x $ac_cv_host 2605shift 2606host_cpu=$1 2607host_vendor=$2 2608shift; shift 2609# Remember, the first character of IFS is used to create $*, 2610# except with old shells: 2611host_os=$* 2612IFS=$ac_save_IFS 2613case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2614 2615 2616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2617$as_echo_n "checking target system type... " >&6; } 2618if ${ac_cv_target+:} false; then : 2619 $as_echo_n "(cached) " >&6 2620else 2621 if test "x$target_alias" = x; then 2622 ac_cv_target=$ac_cv_host 2623else 2624 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2625 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2626fi 2627 2628fi 2629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2630$as_echo "$ac_cv_target" >&6; } 2631case $ac_cv_target in 2632*-*-*) ;; 2633*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 2634esac 2635target=$ac_cv_target 2636ac_save_IFS=$IFS; IFS='-' 2637set x $ac_cv_target 2638shift 2639target_cpu=$1 2640target_vendor=$2 2641shift; shift 2642# Remember, the first character of IFS is used to create $*, 2643# except with old shells: 2644target_os=$* 2645IFS=$ac_save_IFS 2646case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2647 2648 2649# The aliases save the names the user supplied, while $host etc. 2650# will get canonicalized. 2651test -n "$target_alias" && 2652 test "$program_prefix$program_suffix$program_transform_name" = \ 2653 NONENONEs,x,x, && 2654 program_prefix=${target_alias}- 2655 2656am__api_version='1.16' 2657 2658# Find a good install program. We prefer a C program (faster), 2659# so one script is as good as another. But avoid the broken or 2660# incompatible versions: 2661# SysV /etc/install, /usr/sbin/install 2662# SunOS /usr/etc/install 2663# IRIX /sbin/install 2664# AIX /bin/install 2665# AmigaOS /C/install, which installs bootblocks on floppy discs 2666# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2667# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2668# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2669# OS/2's system install, which has a completely different semantic 2670# ./install, which can be erroneously created by make from ./install.sh. 2671# Reject install programs that cannot install multiple files. 2672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2673$as_echo_n "checking for a BSD-compatible install... " >&6; } 2674if test -z "$INSTALL"; then 2675if ${ac_cv_path_install+:} false; then : 2676 $as_echo_n "(cached) " >&6 2677else 2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2679for as_dir in $PATH 2680do 2681 IFS=$as_save_IFS 2682 test -z "$as_dir" && as_dir=. 2683 # Account for people who put trailing slashes in PATH elements. 2684case $as_dir/ in #(( 2685 ./ | .// | /[cC]/* | \ 2686 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2687 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2688 /usr/ucb/* ) ;; 2689 *) 2690 # OSF1 and SCO ODT 3.0 have their own names for install. 2691 # Don't use installbsd from OSF since it installs stuff as root 2692 # by default. 2693 for ac_prog in ginstall scoinst install; do 2694 for ac_exec_ext in '' $ac_executable_extensions; do 2695 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2696 if test $ac_prog = install && 2697 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2698 # AIX install. It has an incompatible calling convention. 2699 : 2700 elif test $ac_prog = install && 2701 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2702 # program-specific install script used by HP pwplus--don't use. 2703 : 2704 else 2705 rm -rf conftest.one conftest.two conftest.dir 2706 echo one > conftest.one 2707 echo two > conftest.two 2708 mkdir conftest.dir 2709 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2710 test -s conftest.one && test -s conftest.two && 2711 test -s conftest.dir/conftest.one && 2712 test -s conftest.dir/conftest.two 2713 then 2714 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2715 break 3 2716 fi 2717 fi 2718 fi 2719 done 2720 done 2721 ;; 2722esac 2723 2724 done 2725IFS=$as_save_IFS 2726 2727rm -rf conftest.one conftest.two conftest.dir 2728 2729fi 2730 if test "${ac_cv_path_install+set}" = set; then 2731 INSTALL=$ac_cv_path_install 2732 else 2733 # As a last resort, use the slow shell script. Don't cache a 2734 # value for INSTALL within a source directory, because that will 2735 # break other packages using the cache if that directory is 2736 # removed, or if the value is a relative name. 2737 INSTALL=$ac_install_sh 2738 fi 2739fi 2740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2741$as_echo "$INSTALL" >&6; } 2742 2743# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2744# It thinks the first close brace ends the variable substitution. 2745test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2746 2747test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2748 2749test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2750 2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2752$as_echo_n "checking whether build environment is sane... " >&6; } 2753# Reject unsafe characters in $srcdir or the absolute working directory 2754# name. Accept space and tab only in the latter. 2755am_lf=' 2756' 2757case `pwd` in 2758 *[\\\"\#\$\&\'\`$am_lf]*) 2759 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2760esac 2761case $srcdir in 2762 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2763 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2764esac 2765 2766# Do 'set' in a subshell so we don't clobber the current shell's 2767# arguments. Must try -L first in case configure is actually a 2768# symlink; some systems play weird games with the mod time of symlinks 2769# (eg FreeBSD returns the mod time of the symlink's containing 2770# directory). 2771if ( 2772 am_has_slept=no 2773 for am_try in 1 2; do 2774 echo "timestamp, slept: $am_has_slept" > conftest.file 2775 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2776 if test "$*" = "X"; then 2777 # -L didn't work. 2778 set X `ls -t "$srcdir/configure" conftest.file` 2779 fi 2780 if test "$*" != "X $srcdir/configure conftest.file" \ 2781 && test "$*" != "X conftest.file $srcdir/configure"; then 2782 2783 # If neither matched, then we have a broken ls. This can happen 2784 # if, for instance, CONFIG_SHELL is bash and it inherits a 2785 # broken ls alias from the environment. This has actually 2786 # happened. Such a system could not be considered "sane". 2787 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2788 alias in your environment" "$LINENO" 5 2789 fi 2790 if test "$2" = conftest.file || test $am_try -eq 2; then 2791 break 2792 fi 2793 # Just in case. 2794 sleep 1 2795 am_has_slept=yes 2796 done 2797 test "$2" = conftest.file 2798 ) 2799then 2800 # Ok. 2801 : 2802else 2803 as_fn_error $? "newly created file is older than distributed files! 2804Check your system clock" "$LINENO" 5 2805fi 2806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2807$as_echo "yes" >&6; } 2808# If we didn't sleep, we still need to ensure time stamps of config.status and 2809# generated files are strictly newer. 2810am_sleep_pid= 2811if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2812 ( sleep 1 ) & 2813 am_sleep_pid=$! 2814fi 2815 2816rm -f conftest.file 2817 2818test "$program_prefix" != NONE && 2819 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2820# Use a double $ so make ignores it. 2821test "$program_suffix" != NONE && 2822 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2823# Double any \ or $. 2824# By default was `s,x,x', remove it if useless. 2825ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2826program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2827 2828# Expand $ac_aux_dir to an absolute path. 2829am_aux_dir=`cd "$ac_aux_dir" && pwd` 2830 2831if test x"${MISSING+set}" != xset; then 2832 case $am_aux_dir in 2833 *\ * | *\ *) 2834 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2835 *) 2836 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2837 esac 2838fi 2839# Use eval to expand $SHELL 2840if eval "$MISSING --is-lightweight"; then 2841 am_missing_run="$MISSING " 2842else 2843 am_missing_run= 2844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2845$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2846fi 2847 2848if test x"${install_sh+set}" != xset; then 2849 case $am_aux_dir in 2850 *\ * | *\ *) 2851 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2852 *) 2853 install_sh="\${SHELL} $am_aux_dir/install-sh" 2854 esac 2855fi 2856 2857# Installed binaries are usually stripped using 'strip' when the user 2858# run "make install-strip". However 'strip' might not be the right 2859# tool to use in cross-compilation environments, therefore Automake 2860# will honor the 'STRIP' environment variable to overrule this program. 2861if test "$cross_compiling" != no; then 2862 if test -n "$ac_tool_prefix"; then 2863 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2864set dummy ${ac_tool_prefix}strip; ac_word=$2 2865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2866$as_echo_n "checking for $ac_word... " >&6; } 2867if ${ac_cv_prog_STRIP+:} false; then : 2868 $as_echo_n "(cached) " >&6 2869else 2870 if test -n "$STRIP"; then 2871 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2872else 2873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2874for as_dir in $PATH 2875do 2876 IFS=$as_save_IFS 2877 test -z "$as_dir" && as_dir=. 2878 for ac_exec_ext in '' $ac_executable_extensions; do 2879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2880 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2882 break 2 2883 fi 2884done 2885 done 2886IFS=$as_save_IFS 2887 2888fi 2889fi 2890STRIP=$ac_cv_prog_STRIP 2891if test -n "$STRIP"; then 2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2893$as_echo "$STRIP" >&6; } 2894else 2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2896$as_echo "no" >&6; } 2897fi 2898 2899 2900fi 2901if test -z "$ac_cv_prog_STRIP"; then 2902 ac_ct_STRIP=$STRIP 2903 # Extract the first word of "strip", so it can be a program name with args. 2904set dummy strip; ac_word=$2 2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2906$as_echo_n "checking for $ac_word... " >&6; } 2907if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2908 $as_echo_n "(cached) " >&6 2909else 2910 if test -n "$ac_ct_STRIP"; then 2911 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2912else 2913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2914for as_dir in $PATH 2915do 2916 IFS=$as_save_IFS 2917 test -z "$as_dir" && as_dir=. 2918 for ac_exec_ext in '' $ac_executable_extensions; do 2919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2920 ac_cv_prog_ac_ct_STRIP="strip" 2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2922 break 2 2923 fi 2924done 2925 done 2926IFS=$as_save_IFS 2927 2928fi 2929fi 2930ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2931if test -n "$ac_ct_STRIP"; then 2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2933$as_echo "$ac_ct_STRIP" >&6; } 2934else 2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2936$as_echo "no" >&6; } 2937fi 2938 2939 if test "x$ac_ct_STRIP" = x; then 2940 STRIP=":" 2941 else 2942 case $cross_compiling:$ac_tool_warned in 2943yes:) 2944{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2945$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2946ac_tool_warned=yes ;; 2947esac 2948 STRIP=$ac_ct_STRIP 2949 fi 2950else 2951 STRIP="$ac_cv_prog_STRIP" 2952fi 2953 2954fi 2955INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2956 2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2958$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2959if test -z "$MKDIR_P"; then 2960 if ${ac_cv_path_mkdir+:} false; then : 2961 $as_echo_n "(cached) " >&6 2962else 2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2964for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2965do 2966 IFS=$as_save_IFS 2967 test -z "$as_dir" && as_dir=. 2968 for ac_prog in mkdir gmkdir; do 2969 for ac_exec_ext in '' $ac_executable_extensions; do 2970 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2971 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2972 'mkdir (GNU coreutils) '* | \ 2973 'mkdir (coreutils) '* | \ 2974 'mkdir (fileutils) '4.1*) 2975 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2976 break 3;; 2977 esac 2978 done 2979 done 2980 done 2981IFS=$as_save_IFS 2982 2983fi 2984 2985 test -d ./--version && rmdir ./--version 2986 if test "${ac_cv_path_mkdir+set}" = set; then 2987 MKDIR_P="$ac_cv_path_mkdir -p" 2988 else 2989 # As a last resort, use the slow shell script. Don't cache a 2990 # value for MKDIR_P within a source directory, because that will 2991 # break other packages using the cache if that directory is 2992 # removed, or if the value is a relative name. 2993 MKDIR_P="$ac_install_sh -d" 2994 fi 2995fi 2996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2997$as_echo "$MKDIR_P" >&6; } 2998 2999for ac_prog in gawk mawk nawk awk 3000do 3001 # Extract the first word of "$ac_prog", so it can be a program name with args. 3002set dummy $ac_prog; ac_word=$2 3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3004$as_echo_n "checking for $ac_word... " >&6; } 3005if ${ac_cv_prog_AWK+:} false; then : 3006 $as_echo_n "(cached) " >&6 3007else 3008 if test -n "$AWK"; then 3009 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3010else 3011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3012for as_dir in $PATH 3013do 3014 IFS=$as_save_IFS 3015 test -z "$as_dir" && as_dir=. 3016 for ac_exec_ext in '' $ac_executable_extensions; do 3017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3018 ac_cv_prog_AWK="$ac_prog" 3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3020 break 2 3021 fi 3022done 3023 done 3024IFS=$as_save_IFS 3025 3026fi 3027fi 3028AWK=$ac_cv_prog_AWK 3029if test -n "$AWK"; then 3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3031$as_echo "$AWK" >&6; } 3032else 3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3034$as_echo "no" >&6; } 3035fi 3036 3037 3038 test -n "$AWK" && break 3039done 3040 3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3042$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3043set x ${MAKE-make} 3044ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3045if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3046 $as_echo_n "(cached) " >&6 3047else 3048 cat >conftest.make <<\_ACEOF 3049SHELL = /bin/sh 3050all: 3051 @echo '@@@%%%=$(MAKE)=@@@%%%' 3052_ACEOF 3053# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3054case `${MAKE-make} -f conftest.make 2>/dev/null` in 3055 *@@@%%%=?*=@@@%%%*) 3056 eval ac_cv_prog_make_${ac_make}_set=yes;; 3057 *) 3058 eval ac_cv_prog_make_${ac_make}_set=no;; 3059esac 3060rm -f conftest.make 3061fi 3062if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3064$as_echo "yes" >&6; } 3065 SET_MAKE= 3066else 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3068$as_echo "no" >&6; } 3069 SET_MAKE="MAKE=${MAKE-make}" 3070fi 3071 3072rm -rf .tst 2>/dev/null 3073mkdir .tst 2>/dev/null 3074if test -d .tst; then 3075 am__leading_dot=. 3076else 3077 am__leading_dot=_ 3078fi 3079rmdir .tst 2>/dev/null 3080 3081# Check whether --enable-silent-rules was given. 3082if test "${enable_silent_rules+set}" = set; then : 3083 enableval=$enable_silent_rules; 3084fi 3085 3086case $enable_silent_rules in # ((( 3087 yes) AM_DEFAULT_VERBOSITY=0;; 3088 no) AM_DEFAULT_VERBOSITY=1;; 3089 *) AM_DEFAULT_VERBOSITY=1;; 3090esac 3091am_make=${MAKE-make} 3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3093$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3094if ${am_cv_make_support_nested_variables+:} false; then : 3095 $as_echo_n "(cached) " >&6 3096else 3097 if $as_echo 'TRUE=$(BAR$(V)) 3098BAR0=false 3099BAR1=true 3100V=1 3101am__doit: 3102 @$(TRUE) 3103.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3104 am_cv_make_support_nested_variables=yes 3105else 3106 am_cv_make_support_nested_variables=no 3107fi 3108fi 3109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3110$as_echo "$am_cv_make_support_nested_variables" >&6; } 3111if test $am_cv_make_support_nested_variables = yes; then 3112 AM_V='$(V)' 3113 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3114else 3115 AM_V=$AM_DEFAULT_VERBOSITY 3116 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3117fi 3118AM_BACKSLASH='\' 3119 3120if test "`cd $srcdir && pwd`" != "`pwd`"; then 3121 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3122 # is not polluted with repeated "-I." 3123 am__isrc=' -I$(srcdir)' 3124 # test to see if srcdir already configured 3125 if test -f $srcdir/config.status; then 3126 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3127 fi 3128fi 3129 3130# test whether we have cygpath 3131if test -z "$CYGPATH_W"; then 3132 if (cygpath --version) >/dev/null 2>/dev/null; then 3133 CYGPATH_W='cygpath -w' 3134 else 3135 CYGPATH_W=echo 3136 fi 3137fi 3138 3139 3140# Define the identity of the package. 3141 PACKAGE='maildir' 3142 VERSION='0.11' 3143 3144 3145# Some tools Automake needs. 3146 3147ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3148 3149 3150AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3151 3152 3153AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3154 3155 3156AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3157 3158 3159MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3160 3161# For better backward compatibility. To be removed once Automake 1.9.x 3162# dies out for good. For more background, see: 3163# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3164# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3165mkdir_p='$(MKDIR_P)' 3166 3167# We need awk for the "check" target (and possibly the TAP driver). The 3168# system "awk" is bad on some platforms. 3169# Always define AMTAR for backward compatibility. Yes, it's still used 3170# in the wild :-( We should find a proper way to deprecate it ... 3171AMTAR='$${TAR-tar}' 3172 3173 3174# We'll loop over all known methods to create a tar archive until one works. 3175_am_tools='gnutar pax cpio none' 3176 3177am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3178 3179 3180 3181 3182 3183 3184# POSIX will say in a future version that running "rm -f" with no argument 3185# is OK; and we want to be able to make that assumption in our Makefile 3186# recipes. So use an aggressive probe to check that the usage we want is 3187# actually supported "in the wild" to an acceptable degree. 3188# See automake bug#10828. 3189# To make any issue more visible, cause the running configure to be aborted 3190# by default if the 'rm' program in use doesn't match our expectations; the 3191# user can still override this though. 3192if rm -f && rm -fr && rm -rf; then : OK; else 3193 cat >&2 <<'END' 3194Oops! 3195 3196Your 'rm' program seems unable to run without file operands specified 3197on the command line, even when the '-f' option is present. This is contrary 3198to the behaviour of most rm programs out there, and not conforming with 3199the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3200 3201Please tell bug-automake@gnu.org about your system, including the value 3202of your $PATH and any error possibly output before this message. This 3203can help us improve future automake versions. 3204 3205END 3206 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3207 echo 'Configuration will proceed anyway, since you have set the' >&2 3208 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3209 echo >&2 3210 else 3211 cat >&2 <<'END' 3212Aborting the configuration process, to ensure you take notice of the issue. 3213 3214You can download and install GNU coreutils to get an 'rm' implementation 3215that behaves properly: <https://www.gnu.org/software/coreutils/>. 3216 3217If you want to complete the configuration process using your problematic 3218'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3219to "yes", and re-run configure. 3220 3221END 3222 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3223 fi 3224fi 3225 3226ac_config_headers="$ac_config_headers config.h" 3227 3228 3229for ac_prog in gawk mawk nawk awk 3230do 3231 # Extract the first word of "$ac_prog", so it can be a program name with args. 3232set dummy $ac_prog; ac_word=$2 3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3234$as_echo_n "checking for $ac_word... " >&6; } 3235if ${ac_cv_prog_AWK+:} false; then : 3236 $as_echo_n "(cached) " >&6 3237else 3238 if test -n "$AWK"; then 3239 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3240else 3241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3242for as_dir in $PATH 3243do 3244 IFS=$as_save_IFS 3245 test -z "$as_dir" && as_dir=. 3246 for ac_exec_ext in '' $ac_executable_extensions; do 3247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3248 ac_cv_prog_AWK="$ac_prog" 3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3250 break 2 3251 fi 3252done 3253 done 3254IFS=$as_save_IFS 3255 3256fi 3257fi 3258AWK=$ac_cv_prog_AWK 3259if test -n "$AWK"; then 3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3261$as_echo "$AWK" >&6; } 3262else 3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3264$as_echo "no" >&6; } 3265fi 3266 3267 3268 test -n "$AWK" && break 3269done 3270 3271DEPDIR="${am__leading_dot}deps" 3272 3273ac_config_commands="$ac_config_commands depfiles" 3274 3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3276$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3277cat > confinc.mk << 'END' 3278am__doit: 3279 @echo this is the am__doit target >confinc.out 3280.PHONY: am__doit 3281END 3282am__include="#" 3283am__quote= 3284# BSD make does it like this. 3285echo '.include "confinc.mk" # ignored' > confmf.BSD 3286# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3287echo 'include confinc.mk # ignored' > confmf.GNU 3288_am_result=no 3289for s in GNU BSD; do 3290 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3291 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3292 ac_status=$? 3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3294 (exit $ac_status); } 3295 case $?:`cat confinc.out 2>/dev/null` in #( 3296 '0:this is the am__doit target') : 3297 case $s in #( 3298 BSD) : 3299 am__include='.include' am__quote='"' ;; #( 3300 *) : 3301 am__include='include' am__quote='' ;; 3302esac ;; #( 3303 *) : 3304 ;; 3305esac 3306 if test "$am__include" != "#"; then 3307 _am_result="yes ($s style)" 3308 break 3309 fi 3310done 3311rm -f confinc.* confmf.* 3312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3313$as_echo "${_am_result}" >&6; } 3314 3315# Check whether --enable-dependency-tracking was given. 3316if test "${enable_dependency_tracking+set}" = set; then : 3317 enableval=$enable_dependency_tracking; 3318fi 3319 3320if test "x$enable_dependency_tracking" != xno; then 3321 am_depcomp="$ac_aux_dir/depcomp" 3322 AMDEPBACKSLASH='\' 3323 am__nodep='_no' 3324fi 3325 if test "x$enable_dependency_tracking" != xno; then 3326 AMDEP_TRUE= 3327 AMDEP_FALSE='#' 3328else 3329 AMDEP_TRUE='#' 3330 AMDEP_FALSE= 3331fi 3332 3333 3334ac_ext=c 3335ac_cpp='$CPP $CPPFLAGS' 3336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3338ac_compiler_gnu=$ac_cv_c_compiler_gnu 3339if test -n "$ac_tool_prefix"; then 3340 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3341set dummy ${ac_tool_prefix}gcc; ac_word=$2 3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3343$as_echo_n "checking for $ac_word... " >&6; } 3344if ${ac_cv_prog_CC+:} false; then : 3345 $as_echo_n "(cached) " >&6 3346else 3347 if test -n "$CC"; then 3348 ac_cv_prog_CC="$CC" # Let the user override the test. 3349else 3350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3351for as_dir in $PATH 3352do 3353 IFS=$as_save_IFS 3354 test -z "$as_dir" && as_dir=. 3355 for ac_exec_ext in '' $ac_executable_extensions; do 3356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3357 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3359 break 2 3360 fi 3361done 3362 done 3363IFS=$as_save_IFS 3364 3365fi 3366fi 3367CC=$ac_cv_prog_CC 3368if test -n "$CC"; then 3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3370$as_echo "$CC" >&6; } 3371else 3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3373$as_echo "no" >&6; } 3374fi 3375 3376 3377fi 3378if test -z "$ac_cv_prog_CC"; then 3379 ac_ct_CC=$CC 3380 # Extract the first word of "gcc", so it can be a program name with args. 3381set dummy gcc; ac_word=$2 3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3383$as_echo_n "checking for $ac_word... " >&6; } 3384if ${ac_cv_prog_ac_ct_CC+:} false; then : 3385 $as_echo_n "(cached) " >&6 3386else 3387 if test -n "$ac_ct_CC"; then 3388 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3389else 3390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3391for as_dir in $PATH 3392do 3393 IFS=$as_save_IFS 3394 test -z "$as_dir" && as_dir=. 3395 for ac_exec_ext in '' $ac_executable_extensions; do 3396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3397 ac_cv_prog_ac_ct_CC="gcc" 3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3399 break 2 3400 fi 3401done 3402 done 3403IFS=$as_save_IFS 3404 3405fi 3406fi 3407ac_ct_CC=$ac_cv_prog_ac_ct_CC 3408if test -n "$ac_ct_CC"; then 3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3410$as_echo "$ac_ct_CC" >&6; } 3411else 3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3413$as_echo "no" >&6; } 3414fi 3415 3416 if test "x$ac_ct_CC" = x; then 3417 CC="" 3418 else 3419 case $cross_compiling:$ac_tool_warned in 3420yes:) 3421{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3422$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3423ac_tool_warned=yes ;; 3424esac 3425 CC=$ac_ct_CC 3426 fi 3427else 3428 CC="$ac_cv_prog_CC" 3429fi 3430 3431if test -z "$CC"; then 3432 if test -n "$ac_tool_prefix"; then 3433 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3434set dummy ${ac_tool_prefix}cc; ac_word=$2 3435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3436$as_echo_n "checking for $ac_word... " >&6; } 3437if ${ac_cv_prog_CC+:} false; then : 3438 $as_echo_n "(cached) " >&6 3439else 3440 if test -n "$CC"; then 3441 ac_cv_prog_CC="$CC" # Let the user override the test. 3442else 3443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3444for as_dir in $PATH 3445do 3446 IFS=$as_save_IFS 3447 test -z "$as_dir" && as_dir=. 3448 for ac_exec_ext in '' $ac_executable_extensions; do 3449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3450 ac_cv_prog_CC="${ac_tool_prefix}cc" 3451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3452 break 2 3453 fi 3454done 3455 done 3456IFS=$as_save_IFS 3457 3458fi 3459fi 3460CC=$ac_cv_prog_CC 3461if test -n "$CC"; then 3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3463$as_echo "$CC" >&6; } 3464else 3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3466$as_echo "no" >&6; } 3467fi 3468 3469 3470 fi 3471fi 3472if test -z "$CC"; then 3473 # Extract the first word of "cc", so it can be a program name with args. 3474set dummy cc; ac_word=$2 3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3476$as_echo_n "checking for $ac_word... " >&6; } 3477if ${ac_cv_prog_CC+:} false; then : 3478 $as_echo_n "(cached) " >&6 3479else 3480 if test -n "$CC"; then 3481 ac_cv_prog_CC="$CC" # Let the user override the test. 3482else 3483 ac_prog_rejected=no 3484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3485for as_dir in $PATH 3486do 3487 IFS=$as_save_IFS 3488 test -z "$as_dir" && as_dir=. 3489 for ac_exec_ext in '' $ac_executable_extensions; do 3490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3491 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3492 ac_prog_rejected=yes 3493 continue 3494 fi 3495 ac_cv_prog_CC="cc" 3496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3497 break 2 3498 fi 3499done 3500 done 3501IFS=$as_save_IFS 3502 3503if test $ac_prog_rejected = yes; then 3504 # We found a bogon in the path, so make sure we never use it. 3505 set dummy $ac_cv_prog_CC 3506 shift 3507 if test $# != 0; then 3508 # We chose a different compiler from the bogus one. 3509 # However, it has the same basename, so the bogon will be chosen 3510 # first if we set CC to just the basename; use the full file name. 3511 shift 3512 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3513 fi 3514fi 3515fi 3516fi 3517CC=$ac_cv_prog_CC 3518if test -n "$CC"; then 3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3520$as_echo "$CC" >&6; } 3521else 3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3523$as_echo "no" >&6; } 3524fi 3525 3526 3527fi 3528if test -z "$CC"; then 3529 if test -n "$ac_tool_prefix"; then 3530 for ac_prog in cl.exe 3531 do 3532 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3533set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3535$as_echo_n "checking for $ac_word... " >&6; } 3536if ${ac_cv_prog_CC+:} false; then : 3537 $as_echo_n "(cached) " >&6 3538else 3539 if test -n "$CC"; then 3540 ac_cv_prog_CC="$CC" # Let the user override the test. 3541else 3542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3543for as_dir in $PATH 3544do 3545 IFS=$as_save_IFS 3546 test -z "$as_dir" && as_dir=. 3547 for ac_exec_ext in '' $ac_executable_extensions; do 3548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3549 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3551 break 2 3552 fi 3553done 3554 done 3555IFS=$as_save_IFS 3556 3557fi 3558fi 3559CC=$ac_cv_prog_CC 3560if test -n "$CC"; then 3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3562$as_echo "$CC" >&6; } 3563else 3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3565$as_echo "no" >&6; } 3566fi 3567 3568 3569 test -n "$CC" && break 3570 done 3571fi 3572if test -z "$CC"; then 3573 ac_ct_CC=$CC 3574 for ac_prog in cl.exe 3575do 3576 # Extract the first word of "$ac_prog", so it can be a program name with args. 3577set dummy $ac_prog; ac_word=$2 3578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3579$as_echo_n "checking for $ac_word... " >&6; } 3580if ${ac_cv_prog_ac_ct_CC+:} false; then : 3581 $as_echo_n "(cached) " >&6 3582else 3583 if test -n "$ac_ct_CC"; then 3584 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3585else 3586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3587for as_dir in $PATH 3588do 3589 IFS=$as_save_IFS 3590 test -z "$as_dir" && as_dir=. 3591 for ac_exec_ext in '' $ac_executable_extensions; do 3592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3593 ac_cv_prog_ac_ct_CC="$ac_prog" 3594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3595 break 2 3596 fi 3597done 3598 done 3599IFS=$as_save_IFS 3600 3601fi 3602fi 3603ac_ct_CC=$ac_cv_prog_ac_ct_CC 3604if test -n "$ac_ct_CC"; then 3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3606$as_echo "$ac_ct_CC" >&6; } 3607else 3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3609$as_echo "no" >&6; } 3610fi 3611 3612 3613 test -n "$ac_ct_CC" && break 3614done 3615 3616 if test "x$ac_ct_CC" = x; then 3617 CC="" 3618 else 3619 case $cross_compiling:$ac_tool_warned in 3620yes:) 3621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3623ac_tool_warned=yes ;; 3624esac 3625 CC=$ac_ct_CC 3626 fi 3627fi 3628 3629fi 3630 3631 3632test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3634as_fn_error $? "no acceptable C compiler found in \$PATH 3635See \`config.log' for more details" "$LINENO" 5; } 3636 3637# Provide some information about the compiler. 3638$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3639set X $ac_compile 3640ac_compiler=$2 3641for ac_option in --version -v -V -qversion; do 3642 { { ac_try="$ac_compiler $ac_option >&5" 3643case "(($ac_try" in 3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3645 *) ac_try_echo=$ac_try;; 3646esac 3647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3648$as_echo "$ac_try_echo"; } >&5 3649 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3650 ac_status=$? 3651 if test -s conftest.err; then 3652 sed '10a\ 3653... rest of stderr output deleted ... 3654 10q' conftest.err >conftest.er1 3655 cat conftest.er1 >&5 3656 fi 3657 rm -f conftest.er1 conftest.err 3658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3659 test $ac_status = 0; } 3660done 3661 3662cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3663/* end confdefs.h. */ 3664 3665int 3666main () 3667{ 3668 3669 ; 3670 return 0; 3671} 3672_ACEOF 3673ac_clean_files_save=$ac_clean_files 3674ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3675# Try to create an executable without -o first, disregard a.out. 3676# It will help us diagnose broken compilers, and finding out an intuition 3677# of exeext. 3678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3679$as_echo_n "checking whether the C compiler works... " >&6; } 3680ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3681 3682# The possible output files: 3683ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3684 3685ac_rmfiles= 3686for ac_file in $ac_files 3687do 3688 case $ac_file in 3689 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3690 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3691 esac 3692done 3693rm -f $ac_rmfiles 3694 3695if { { ac_try="$ac_link_default" 3696case "(($ac_try" in 3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3698 *) ac_try_echo=$ac_try;; 3699esac 3700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3701$as_echo "$ac_try_echo"; } >&5 3702 (eval "$ac_link_default") 2>&5 3703 ac_status=$? 3704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3705 test $ac_status = 0; }; then : 3706 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3707# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3708# in a Makefile. We should not override ac_cv_exeext if it was cached, 3709# so that the user can short-circuit this test for compilers unknown to 3710# Autoconf. 3711for ac_file in $ac_files '' 3712do 3713 test -f "$ac_file" || continue 3714 case $ac_file in 3715 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3716 ;; 3717 [ab].out ) 3718 # We found the default executable, but exeext='' is most 3719 # certainly right. 3720 break;; 3721 *.* ) 3722 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3723 then :; else 3724 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3725 fi 3726 # We set ac_cv_exeext here because the later test for it is not 3727 # safe: cross compilers may not add the suffix if given an `-o' 3728 # argument, so we may need to know it at that point already. 3729 # Even if this section looks crufty: it has the advantage of 3730 # actually working. 3731 break;; 3732 * ) 3733 break;; 3734 esac 3735done 3736test "$ac_cv_exeext" = no && ac_cv_exeext= 3737 3738else 3739 ac_file='' 3740fi 3741if test -z "$ac_file"; then : 3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3743$as_echo "no" >&6; } 3744$as_echo "$as_me: failed program was:" >&5 3745sed 's/^/| /' conftest.$ac_ext >&5 3746 3747{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3749as_fn_error 77 "C compiler cannot create executables 3750See \`config.log' for more details" "$LINENO" 5; } 3751else 3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3753$as_echo "yes" >&6; } 3754fi 3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3756$as_echo_n "checking for C compiler default output file name... " >&6; } 3757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3758$as_echo "$ac_file" >&6; } 3759ac_exeext=$ac_cv_exeext 3760 3761rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3762ac_clean_files=$ac_clean_files_save 3763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3764$as_echo_n "checking for suffix of executables... " >&6; } 3765if { { ac_try="$ac_link" 3766case "(($ac_try" in 3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3768 *) ac_try_echo=$ac_try;; 3769esac 3770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3771$as_echo "$ac_try_echo"; } >&5 3772 (eval "$ac_link") 2>&5 3773 ac_status=$? 3774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3775 test $ac_status = 0; }; then : 3776 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3777# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3778# work properly (i.e., refer to `conftest.exe'), while it won't with 3779# `rm'. 3780for ac_file in conftest.exe conftest conftest.*; do 3781 test -f "$ac_file" || continue 3782 case $ac_file in 3783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3784 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3785 break;; 3786 * ) break;; 3787 esac 3788done 3789else 3790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3792as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3793See \`config.log' for more details" "$LINENO" 5; } 3794fi 3795rm -f conftest conftest$ac_cv_exeext 3796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3797$as_echo "$ac_cv_exeext" >&6; } 3798 3799rm -f conftest.$ac_ext 3800EXEEXT=$ac_cv_exeext 3801ac_exeext=$EXEEXT 3802cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3803/* end confdefs.h. */ 3804#include <stdio.h> 3805int 3806main () 3807{ 3808FILE *f = fopen ("conftest.out", "w"); 3809 return ferror (f) || fclose (f) != 0; 3810 3811 ; 3812 return 0; 3813} 3814_ACEOF 3815ac_clean_files="$ac_clean_files conftest.out" 3816# Check that the compiler produces executables we can run. If not, either 3817# the compiler is broken, or we cross compile. 3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3819$as_echo_n "checking whether we are cross compiling... " >&6; } 3820if test "$cross_compiling" != yes; then 3821 { { ac_try="$ac_link" 3822case "(($ac_try" in 3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3824 *) ac_try_echo=$ac_try;; 3825esac 3826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3827$as_echo "$ac_try_echo"; } >&5 3828 (eval "$ac_link") 2>&5 3829 ac_status=$? 3830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3831 test $ac_status = 0; } 3832 if { ac_try='./conftest$ac_cv_exeext' 3833 { { case "(($ac_try" in 3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3835 *) ac_try_echo=$ac_try;; 3836esac 3837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3838$as_echo "$ac_try_echo"; } >&5 3839 (eval "$ac_try") 2>&5 3840 ac_status=$? 3841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3842 test $ac_status = 0; }; }; then 3843 cross_compiling=no 3844 else 3845 if test "$cross_compiling" = maybe; then 3846 cross_compiling=yes 3847 else 3848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3850as_fn_error $? "cannot run C compiled programs. 3851If you meant to cross compile, use \`--host'. 3852See \`config.log' for more details" "$LINENO" 5; } 3853 fi 3854 fi 3855fi 3856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3857$as_echo "$cross_compiling" >&6; } 3858 3859rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3860ac_clean_files=$ac_clean_files_save 3861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3862$as_echo_n "checking for suffix of object files... " >&6; } 3863if ${ac_cv_objext+:} false; then : 3864 $as_echo_n "(cached) " >&6 3865else 3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3867/* end confdefs.h. */ 3868 3869int 3870main () 3871{ 3872 3873 ; 3874 return 0; 3875} 3876_ACEOF 3877rm -f conftest.o conftest.obj 3878if { { ac_try="$ac_compile" 3879case "(($ac_try" in 3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3881 *) ac_try_echo=$ac_try;; 3882esac 3883eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3884$as_echo "$ac_try_echo"; } >&5 3885 (eval "$ac_compile") 2>&5 3886 ac_status=$? 3887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3888 test $ac_status = 0; }; then : 3889 for ac_file in conftest.o conftest.obj conftest.*; do 3890 test -f "$ac_file" || continue; 3891 case $ac_file in 3892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3893 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3894 break;; 3895 esac 3896done 3897else 3898 $as_echo "$as_me: failed program was:" >&5 3899sed 's/^/| /' conftest.$ac_ext >&5 3900 3901{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3903as_fn_error $? "cannot compute suffix of object files: cannot compile 3904See \`config.log' for more details" "$LINENO" 5; } 3905fi 3906rm -f conftest.$ac_cv_objext conftest.$ac_ext 3907fi 3908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3909$as_echo "$ac_cv_objext" >&6; } 3910OBJEXT=$ac_cv_objext 3911ac_objext=$OBJEXT 3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3913$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3914if ${ac_cv_c_compiler_gnu+:} false; then : 3915 $as_echo_n "(cached) " >&6 3916else 3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3918/* end confdefs.h. */ 3919 3920int 3921main () 3922{ 3923#ifndef __GNUC__ 3924 choke me 3925#endif 3926 3927 ; 3928 return 0; 3929} 3930_ACEOF 3931if ac_fn_c_try_compile "$LINENO"; then : 3932 ac_compiler_gnu=yes 3933else 3934 ac_compiler_gnu=no 3935fi 3936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3937ac_cv_c_compiler_gnu=$ac_compiler_gnu 3938 3939fi 3940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3941$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3942if test $ac_compiler_gnu = yes; then 3943 GCC=yes 3944else 3945 GCC= 3946fi 3947ac_test_CFLAGS=${CFLAGS+set} 3948ac_save_CFLAGS=$CFLAGS 3949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3950$as_echo_n "checking whether $CC accepts -g... " >&6; } 3951if ${ac_cv_prog_cc_g+:} false; then : 3952 $as_echo_n "(cached) " >&6 3953else 3954 ac_save_c_werror_flag=$ac_c_werror_flag 3955 ac_c_werror_flag=yes 3956 ac_cv_prog_cc_g=no 3957 CFLAGS="-g" 3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3959/* end confdefs.h. */ 3960 3961int 3962main () 3963{ 3964 3965 ; 3966 return 0; 3967} 3968_ACEOF 3969if ac_fn_c_try_compile "$LINENO"; then : 3970 ac_cv_prog_cc_g=yes 3971else 3972 CFLAGS="" 3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3974/* end confdefs.h. */ 3975 3976int 3977main () 3978{ 3979 3980 ; 3981 return 0; 3982} 3983_ACEOF 3984if ac_fn_c_try_compile "$LINENO"; then : 3985 3986else 3987 ac_c_werror_flag=$ac_save_c_werror_flag 3988 CFLAGS="-g" 3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3990/* end confdefs.h. */ 3991 3992int 3993main () 3994{ 3995 3996 ; 3997 return 0; 3998} 3999_ACEOF 4000if ac_fn_c_try_compile "$LINENO"; then : 4001 ac_cv_prog_cc_g=yes 4002fi 4003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4004fi 4005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4006fi 4007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4008 ac_c_werror_flag=$ac_save_c_werror_flag 4009fi 4010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4011$as_echo "$ac_cv_prog_cc_g" >&6; } 4012if test "$ac_test_CFLAGS" = set; then 4013 CFLAGS=$ac_save_CFLAGS 4014elif test $ac_cv_prog_cc_g = yes; then 4015 if test "$GCC" = yes; then 4016 CFLAGS="-g -O2" 4017 else 4018 CFLAGS="-g" 4019 fi 4020else 4021 if test "$GCC" = yes; then 4022 CFLAGS="-O2" 4023 else 4024 CFLAGS= 4025 fi 4026fi 4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4028$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4029if ${ac_cv_prog_cc_c89+:} false; then : 4030 $as_echo_n "(cached) " >&6 4031else 4032 ac_cv_prog_cc_c89=no 4033ac_save_CC=$CC 4034cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4035/* end confdefs.h. */ 4036#include <stdarg.h> 4037#include <stdio.h> 4038struct stat; 4039/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4040struct buf { int x; }; 4041FILE * (*rcsopen) (struct buf *, struct stat *, int); 4042static char *e (p, i) 4043 char **p; 4044 int i; 4045{ 4046 return p[i]; 4047} 4048static char *f (char * (*g) (char **, int), char **p, ...) 4049{ 4050 char *s; 4051 va_list v; 4052 va_start (v,p); 4053 s = g (p, va_arg (v,int)); 4054 va_end (v); 4055 return s; 4056} 4057 4058/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4059 function prototypes and stuff, but not '\xHH' hex character constants. 4060 These don't provoke an error unfortunately, instead are silently treated 4061 as 'x'. The following induces an error, until -std is added to get 4062 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4063 array size at least. It's necessary to write '\x00'==0 to get something 4064 that's true only with -std. */ 4065int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4066 4067/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4068 inside strings and character constants. */ 4069#define FOO(x) 'x' 4070int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4071 4072int test (int i, double x); 4073struct s1 {int (*f) (int a);}; 4074struct s2 {int (*f) (double a);}; 4075int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4076int argc; 4077char **argv; 4078int 4079main () 4080{ 4081return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4082 ; 4083 return 0; 4084} 4085_ACEOF 4086for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4087 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4088do 4089 CC="$ac_save_CC $ac_arg" 4090 if ac_fn_c_try_compile "$LINENO"; then : 4091 ac_cv_prog_cc_c89=$ac_arg 4092fi 4093rm -f core conftest.err conftest.$ac_objext 4094 test "x$ac_cv_prog_cc_c89" != "xno" && break 4095done 4096rm -f conftest.$ac_ext 4097CC=$ac_save_CC 4098 4099fi 4100# AC_CACHE_VAL 4101case "x$ac_cv_prog_cc_c89" in 4102 x) 4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4104$as_echo "none needed" >&6; } ;; 4105 xno) 4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4107$as_echo "unsupported" >&6; } ;; 4108 *) 4109 CC="$CC $ac_cv_prog_cc_c89" 4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4111$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4112esac 4113if test "x$ac_cv_prog_cc_c89" != xno; then : 4114 4115fi 4116 4117ac_ext=c 4118ac_cpp='$CPP $CPPFLAGS' 4119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4121ac_compiler_gnu=$ac_cv_c_compiler_gnu 4122 4123ac_ext=c 4124ac_cpp='$CPP $CPPFLAGS' 4125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4127ac_compiler_gnu=$ac_cv_c_compiler_gnu 4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4129$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4130if ${am_cv_prog_cc_c_o+:} false; then : 4131 $as_echo_n "(cached) " >&6 4132else 4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4134/* end confdefs.h. */ 4135 4136int 4137main () 4138{ 4139 4140 ; 4141 return 0; 4142} 4143_ACEOF 4144 # Make sure it works both with $CC and with simple cc. 4145 # Following AC_PROG_CC_C_O, we do the test twice because some 4146 # compilers refuse to overwrite an existing .o file with -o, 4147 # though they will create one. 4148 am_cv_prog_cc_c_o=yes 4149 for am_i in 1 2; do 4150 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4151 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4152 ac_status=$? 4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4154 (exit $ac_status); } \ 4155 && test -f conftest2.$ac_objext; then 4156 : OK 4157 else 4158 am_cv_prog_cc_c_o=no 4159 break 4160 fi 4161 done 4162 rm -f core conftest* 4163 unset am_i 4164fi 4165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4166$as_echo "$am_cv_prog_cc_c_o" >&6; } 4167if test "$am_cv_prog_cc_c_o" != yes; then 4168 # Losing compiler, so override with the script. 4169 # FIXME: It is wrong to rewrite CC. 4170 # But if we don't then we get into trouble of one sort or another. 4171 # A longer-term fix would be to have automake use am__CC in this case, 4172 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4173 CC="$am_aux_dir/compile $CC" 4174fi 4175ac_ext=c 4176ac_cpp='$CPP $CPPFLAGS' 4177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4179ac_compiler_gnu=$ac_cv_c_compiler_gnu 4180 4181 4182depcc="$CC" am_compiler_list= 4183 4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4185$as_echo_n "checking dependency style of $depcc... " >&6; } 4186if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4187 $as_echo_n "(cached) " >&6 4188else 4189 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4190 # We make a subdir and do the tests there. Otherwise we can end up 4191 # making bogus files that we don't know about and never remove. For 4192 # instance it was reported that on HP-UX the gcc test will end up 4193 # making a dummy file named 'D' -- because '-MD' means "put the output 4194 # in D". 4195 rm -rf conftest.dir 4196 mkdir conftest.dir 4197 # Copy depcomp to subdir because otherwise we won't find it if we're 4198 # using a relative directory. 4199 cp "$am_depcomp" conftest.dir 4200 cd conftest.dir 4201 # We will build objects and dependencies in a subdirectory because 4202 # it helps to detect inapplicable dependency modes. For instance 4203 # both Tru64's cc and ICC support -MD to output dependencies as a 4204 # side effect of compilation, but ICC will put the dependencies in 4205 # the current directory while Tru64 will put them in the object 4206 # directory. 4207 mkdir sub 4208 4209 am_cv_CC_dependencies_compiler_type=none 4210 if test "$am_compiler_list" = ""; then 4211 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4212 fi 4213 am__universal=false 4214 case " $depcc " in #( 4215 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4216 esac 4217 4218 for depmode in $am_compiler_list; do 4219 # Setup a source with many dependencies, because some compilers 4220 # like to wrap large dependency lists on column 80 (with \), and 4221 # we should not choose a depcomp mode which is confused by this. 4222 # 4223 # We need to recreate these files for each test, as the compiler may 4224 # overwrite some of them when testing with obscure command lines. 4225 # This happens at least with the AIX C compiler. 4226 : > sub/conftest.c 4227 for i in 1 2 3 4 5 6; do 4228 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4229 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4230 # Solaris 10 /bin/sh. 4231 echo '/* dummy */' > sub/conftst$i.h 4232 done 4233 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4234 4235 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4236 # mode. It turns out that the SunPro C++ compiler does not properly 4237 # handle '-M -o', and we need to detect this. Also, some Intel 4238 # versions had trouble with output in subdirs. 4239 am__obj=sub/conftest.${OBJEXT-o} 4240 am__minus_obj="-o $am__obj" 4241 case $depmode in 4242 gcc) 4243 # This depmode causes a compiler race in universal mode. 4244 test "$am__universal" = false || continue 4245 ;; 4246 nosideeffect) 4247 # After this tag, mechanisms are not by side-effect, so they'll 4248 # only be used when explicitly requested. 4249 if test "x$enable_dependency_tracking" = xyes; then 4250 continue 4251 else 4252 break 4253 fi 4254 ;; 4255 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4256 # This compiler won't grok '-c -o', but also, the minuso test has 4257 # not run yet. These depmodes are late enough in the game, and 4258 # so weak that their functioning should not be impacted. 4259 am__obj=conftest.${OBJEXT-o} 4260 am__minus_obj= 4261 ;; 4262 none) break ;; 4263 esac 4264 if depmode=$depmode \ 4265 source=sub/conftest.c object=$am__obj \ 4266 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4267 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4268 >/dev/null 2>conftest.err && 4269 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4270 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4271 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4272 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4273 # icc doesn't choke on unknown options, it will just issue warnings 4274 # or remarks (even with -Werror). So we grep stderr for any message 4275 # that says an option was ignored or not supported. 4276 # When given -MP, icc 7.0 and 7.1 complain thusly: 4277 # icc: Command line warning: ignoring option '-M'; no argument required 4278 # The diagnosis changed in icc 8.0: 4279 # icc: Command line remark: option '-MP' not supported 4280 if (grep 'ignoring option' conftest.err || 4281 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4282 am_cv_CC_dependencies_compiler_type=$depmode 4283 break 4284 fi 4285 fi 4286 done 4287 4288 cd .. 4289 rm -rf conftest.dir 4290else 4291 am_cv_CC_dependencies_compiler_type=none 4292fi 4293 4294fi 4295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4296$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4297CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4298 4299 if 4300 test "x$enable_dependency_tracking" != xno \ 4301 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4302 am__fastdepCC_TRUE= 4303 am__fastdepCC_FALSE='#' 4304else 4305 am__fastdepCC_TRUE='#' 4306 am__fastdepCC_FALSE= 4307fi 4308 4309 4310 4311ac_ext=c 4312ac_cpp='$CPP $CPPFLAGS' 4313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4315ac_compiler_gnu=$ac_cv_c_compiler_gnu 4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4317$as_echo_n "checking how to run the C preprocessor... " >&6; } 4318# On Suns, sometimes $CPP names a directory. 4319if test -n "$CPP" && test -d "$CPP"; then 4320 CPP= 4321fi 4322if test -z "$CPP"; then 4323 if ${ac_cv_prog_CPP+:} false; then : 4324 $as_echo_n "(cached) " >&6 4325else 4326 # Double quotes because CPP needs to be expanded 4327 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4328 do 4329 ac_preproc_ok=false 4330for ac_c_preproc_warn_flag in '' yes 4331do 4332 # Use a header file that comes with gcc, so configuring glibc 4333 # with a fresh cross-compiler works. 4334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4335 # <limits.h> exists even on freestanding compilers. 4336 # On the NeXT, cc -E runs the code through the compiler's parser, 4337 # not just through cpp. "Syntax error" is here to catch this case. 4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4339/* end confdefs.h. */ 4340#ifdef __STDC__ 4341# include <limits.h> 4342#else 4343# include <assert.h> 4344#endif 4345 Syntax error 4346_ACEOF 4347if ac_fn_c_try_cpp "$LINENO"; then : 4348 4349else 4350 # Broken: fails on valid input. 4351continue 4352fi 4353rm -f conftest.err conftest.i conftest.$ac_ext 4354 4355 # OK, works on sane cases. Now check whether nonexistent headers 4356 # can be detected and how. 4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4358/* end confdefs.h. */ 4359#include <ac_nonexistent.h> 4360_ACEOF 4361if ac_fn_c_try_cpp "$LINENO"; then : 4362 # Broken: success on invalid input. 4363continue 4364else 4365 # Passes both tests. 4366ac_preproc_ok=: 4367break 4368fi 4369rm -f conftest.err conftest.i conftest.$ac_ext 4370 4371done 4372# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4373rm -f conftest.i conftest.err conftest.$ac_ext 4374if $ac_preproc_ok; then : 4375 break 4376fi 4377 4378 done 4379 ac_cv_prog_CPP=$CPP 4380 4381fi 4382 CPP=$ac_cv_prog_CPP 4383else 4384 ac_cv_prog_CPP=$CPP 4385fi 4386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4387$as_echo "$CPP" >&6; } 4388ac_preproc_ok=false 4389for ac_c_preproc_warn_flag in '' yes 4390do 4391 # Use a header file that comes with gcc, so configuring glibc 4392 # with a fresh cross-compiler works. 4393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4394 # <limits.h> exists even on freestanding compilers. 4395 # On the NeXT, cc -E runs the code through the compiler's parser, 4396 # not just through cpp. "Syntax error" is here to catch this case. 4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4398/* end confdefs.h. */ 4399#ifdef __STDC__ 4400# include <limits.h> 4401#else 4402# include <assert.h> 4403#endif 4404 Syntax error 4405_ACEOF 4406if ac_fn_c_try_cpp "$LINENO"; then : 4407 4408else 4409 # Broken: fails on valid input. 4410continue 4411fi 4412rm -f conftest.err conftest.i conftest.$ac_ext 4413 4414 # OK, works on sane cases. Now check whether nonexistent headers 4415 # can be detected and how. 4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4417/* end confdefs.h. */ 4418#include <ac_nonexistent.h> 4419_ACEOF 4420if ac_fn_c_try_cpp "$LINENO"; then : 4421 # Broken: success on invalid input. 4422continue 4423else 4424 # Passes both tests. 4425ac_preproc_ok=: 4426break 4427fi 4428rm -f conftest.err conftest.i conftest.$ac_ext 4429 4430done 4431# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4432rm -f conftest.i conftest.err conftest.$ac_ext 4433if $ac_preproc_ok; then : 4434 4435else 4436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4438as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4439See \`config.log' for more details" "$LINENO" 5; } 4440fi 4441 4442ac_ext=c 4443ac_cpp='$CPP $CPPFLAGS' 4444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4446ac_compiler_gnu=$ac_cv_c_compiler_gnu 4447 4448 4449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4450$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4451if ${ac_cv_path_GREP+:} false; then : 4452 $as_echo_n "(cached) " >&6 4453else 4454 if test -z "$GREP"; then 4455 ac_path_GREP_found=false 4456 # Loop through the user's path and test for each of PROGNAME-LIST 4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4458for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4459do 4460 IFS=$as_save_IFS 4461 test -z "$as_dir" && as_dir=. 4462 for ac_prog in grep ggrep; do 4463 for ac_exec_ext in '' $ac_executable_extensions; do 4464 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4465 as_fn_executable_p "$ac_path_GREP" || continue 4466# Check for GNU ac_path_GREP and select it if it is found. 4467 # Check for GNU $ac_path_GREP 4468case `"$ac_path_GREP" --version 2>&1` in 4469*GNU*) 4470 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4471*) 4472 ac_count=0 4473 $as_echo_n 0123456789 >"conftest.in" 4474 while : 4475 do 4476 cat "conftest.in" "conftest.in" >"conftest.tmp" 4477 mv "conftest.tmp" "conftest.in" 4478 cp "conftest.in" "conftest.nl" 4479 $as_echo 'GREP' >> "conftest.nl" 4480 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4482 as_fn_arith $ac_count + 1 && ac_count=$as_val 4483 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4484 # Best one so far, save it but keep looking for a better one 4485 ac_cv_path_GREP="$ac_path_GREP" 4486 ac_path_GREP_max=$ac_count 4487 fi 4488 # 10*(2^10) chars as input seems more than enough 4489 test $ac_count -gt 10 && break 4490 done 4491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4492esac 4493 4494 $ac_path_GREP_found && break 3 4495 done 4496 done 4497 done 4498IFS=$as_save_IFS 4499 if test -z "$ac_cv_path_GREP"; then 4500 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4501 fi 4502else 4503 ac_cv_path_GREP=$GREP 4504fi 4505 4506fi 4507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4508$as_echo "$ac_cv_path_GREP" >&6; } 4509 GREP="$ac_cv_path_GREP" 4510 4511 4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4513$as_echo_n "checking for egrep... " >&6; } 4514if ${ac_cv_path_EGREP+:} false; then : 4515 $as_echo_n "(cached) " >&6 4516else 4517 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4518 then ac_cv_path_EGREP="$GREP -E" 4519 else 4520 if test -z "$EGREP"; then 4521 ac_path_EGREP_found=false 4522 # Loop through the user's path and test for each of PROGNAME-LIST 4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4524for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4525do 4526 IFS=$as_save_IFS 4527 test -z "$as_dir" && as_dir=. 4528 for ac_prog in egrep; do 4529 for ac_exec_ext in '' $ac_executable_extensions; do 4530 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4531 as_fn_executable_p "$ac_path_EGREP" || continue 4532# Check for GNU ac_path_EGREP and select it if it is found. 4533 # Check for GNU $ac_path_EGREP 4534case `"$ac_path_EGREP" --version 2>&1` in 4535*GNU*) 4536 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4537*) 4538 ac_count=0 4539 $as_echo_n 0123456789 >"conftest.in" 4540 while : 4541 do 4542 cat "conftest.in" "conftest.in" >"conftest.tmp" 4543 mv "conftest.tmp" "conftest.in" 4544 cp "conftest.in" "conftest.nl" 4545 $as_echo 'EGREP' >> "conftest.nl" 4546 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4548 as_fn_arith $ac_count + 1 && ac_count=$as_val 4549 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4550 # Best one so far, save it but keep looking for a better one 4551 ac_cv_path_EGREP="$ac_path_EGREP" 4552 ac_path_EGREP_max=$ac_count 4553 fi 4554 # 10*(2^10) chars as input seems more than enough 4555 test $ac_count -gt 10 && break 4556 done 4557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4558esac 4559 4560 $ac_path_EGREP_found && break 3 4561 done 4562 done 4563 done 4564IFS=$as_save_IFS 4565 if test -z "$ac_cv_path_EGREP"; then 4566 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4567 fi 4568else 4569 ac_cv_path_EGREP=$EGREP 4570fi 4571 4572 fi 4573fi 4574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4575$as_echo "$ac_cv_path_EGREP" >&6; } 4576 EGREP="$ac_cv_path_EGREP" 4577 4578 4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4580$as_echo_n "checking for ANSI C header files... " >&6; } 4581if ${ac_cv_header_stdc+:} false; then : 4582 $as_echo_n "(cached) " >&6 4583else 4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4585/* end confdefs.h. */ 4586#include <stdlib.h> 4587#include <stdarg.h> 4588#include <string.h> 4589#include <float.h> 4590 4591int 4592main () 4593{ 4594 4595 ; 4596 return 0; 4597} 4598_ACEOF 4599if ac_fn_c_try_compile "$LINENO"; then : 4600 ac_cv_header_stdc=yes 4601else 4602 ac_cv_header_stdc=no 4603fi 4604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4605 4606if test $ac_cv_header_stdc = yes; then 4607 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4609/* end confdefs.h. */ 4610#include <string.h> 4611 4612_ACEOF 4613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4614 $EGREP "memchr" >/dev/null 2>&1; then : 4615 4616else 4617 ac_cv_header_stdc=no 4618fi 4619rm -f conftest* 4620 4621fi 4622 4623if test $ac_cv_header_stdc = yes; then 4624 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4626/* end confdefs.h. */ 4627#include <stdlib.h> 4628 4629_ACEOF 4630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4631 $EGREP "free" >/dev/null 2>&1; then : 4632 4633else 4634 ac_cv_header_stdc=no 4635fi 4636rm -f conftest* 4637 4638fi 4639 4640if test $ac_cv_header_stdc = yes; then 4641 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4642 if test "$cross_compiling" = yes; then : 4643 : 4644else 4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4646/* end confdefs.h. */ 4647#include <ctype.h> 4648#include <stdlib.h> 4649#if ((' ' & 0x0FF) == 0x020) 4650# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4651# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4652#else 4653# define ISLOWER(c) \ 4654 (('a' <= (c) && (c) <= 'i') \ 4655 || ('j' <= (c) && (c) <= 'r') \ 4656 || ('s' <= (c) && (c) <= 'z')) 4657# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4658#endif 4659 4660#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4661int 4662main () 4663{ 4664 int i; 4665 for (i = 0; i < 256; i++) 4666 if (XOR (islower (i), ISLOWER (i)) 4667 || toupper (i) != TOUPPER (i)) 4668 return 2; 4669 return 0; 4670} 4671_ACEOF 4672if ac_fn_c_try_run "$LINENO"; then : 4673 4674else 4675 ac_cv_header_stdc=no 4676fi 4677rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4678 conftest.$ac_objext conftest.beam conftest.$ac_ext 4679fi 4680 4681fi 4682fi 4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4684$as_echo "$ac_cv_header_stdc" >&6; } 4685if test $ac_cv_header_stdc = yes; then 4686 4687$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4688 4689fi 4690 4691# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4692for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4693 inttypes.h stdint.h unistd.h 4694do : 4695 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4696ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4697" 4698if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4699 cat >>confdefs.h <<_ACEOF 4700#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4701_ACEOF 4702 4703fi 4704 4705done 4706 4707 4708 4709 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4710if test "x$ac_cv_header_minix_config_h" = xyes; then : 4711 MINIX=yes 4712else 4713 MINIX= 4714fi 4715 4716 4717 if test "$MINIX" = yes; then 4718 4719$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4720 4721 4722$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4723 4724 4725$as_echo "#define _MINIX 1" >>confdefs.h 4726 4727 fi 4728 4729 4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4731$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4732if ${ac_cv_safe_to_define___extensions__+:} false; then : 4733 $as_echo_n "(cached) " >&6 4734else 4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4736/* end confdefs.h. */ 4737 4738# define __EXTENSIONS__ 1 4739 $ac_includes_default 4740int 4741main () 4742{ 4743 4744 ; 4745 return 0; 4746} 4747_ACEOF 4748if ac_fn_c_try_compile "$LINENO"; then : 4749 ac_cv_safe_to_define___extensions__=yes 4750else 4751 ac_cv_safe_to_define___extensions__=no 4752fi 4753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4754fi 4755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4756$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4757 test $ac_cv_safe_to_define___extensions__ = yes && 4758 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4759 4760 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4761 4762 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4763 4764 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4765 4766 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4767 4768 4769ac_ext=c 4770ac_cpp='$CPP $CPPFLAGS' 4771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4773ac_compiler_gnu=$ac_cv_c_compiler_gnu 4774if test -n "$ac_tool_prefix"; then 4775 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4776set dummy ${ac_tool_prefix}gcc; ac_word=$2 4777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4778$as_echo_n "checking for $ac_word... " >&6; } 4779if ${ac_cv_prog_CC+:} false; then : 4780 $as_echo_n "(cached) " >&6 4781else 4782 if test -n "$CC"; then 4783 ac_cv_prog_CC="$CC" # Let the user override the test. 4784else 4785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4786for as_dir in $PATH 4787do 4788 IFS=$as_save_IFS 4789 test -z "$as_dir" && as_dir=. 4790 for ac_exec_ext in '' $ac_executable_extensions; do 4791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4792 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4794 break 2 4795 fi 4796done 4797 done 4798IFS=$as_save_IFS 4799 4800fi 4801fi 4802CC=$ac_cv_prog_CC 4803if test -n "$CC"; then 4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4805$as_echo "$CC" >&6; } 4806else 4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4808$as_echo "no" >&6; } 4809fi 4810 4811 4812fi 4813if test -z "$ac_cv_prog_CC"; then 4814 ac_ct_CC=$CC 4815 # Extract the first word of "gcc", so it can be a program name with args. 4816set dummy gcc; ac_word=$2 4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4818$as_echo_n "checking for $ac_word... " >&6; } 4819if ${ac_cv_prog_ac_ct_CC+:} false; then : 4820 $as_echo_n "(cached) " >&6 4821else 4822 if test -n "$ac_ct_CC"; then 4823 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4824else 4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4826for as_dir in $PATH 4827do 4828 IFS=$as_save_IFS 4829 test -z "$as_dir" && as_dir=. 4830 for ac_exec_ext in '' $ac_executable_extensions; do 4831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4832 ac_cv_prog_ac_ct_CC="gcc" 4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4834 break 2 4835 fi 4836done 4837 done 4838IFS=$as_save_IFS 4839 4840fi 4841fi 4842ac_ct_CC=$ac_cv_prog_ac_ct_CC 4843if test -n "$ac_ct_CC"; then 4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4845$as_echo "$ac_ct_CC" >&6; } 4846else 4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4848$as_echo "no" >&6; } 4849fi 4850 4851 if test "x$ac_ct_CC" = x; then 4852 CC="" 4853 else 4854 case $cross_compiling:$ac_tool_warned in 4855yes:) 4856{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4857$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4858ac_tool_warned=yes ;; 4859esac 4860 CC=$ac_ct_CC 4861 fi 4862else 4863 CC="$ac_cv_prog_CC" 4864fi 4865 4866if test -z "$CC"; then 4867 if test -n "$ac_tool_prefix"; then 4868 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4869set dummy ${ac_tool_prefix}cc; ac_word=$2 4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4871$as_echo_n "checking for $ac_word... " >&6; } 4872if ${ac_cv_prog_CC+:} false; then : 4873 $as_echo_n "(cached) " >&6 4874else 4875 if test -n "$CC"; then 4876 ac_cv_prog_CC="$CC" # Let the user override the test. 4877else 4878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4879for as_dir in $PATH 4880do 4881 IFS=$as_save_IFS 4882 test -z "$as_dir" && as_dir=. 4883 for ac_exec_ext in '' $ac_executable_extensions; do 4884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4885 ac_cv_prog_CC="${ac_tool_prefix}cc" 4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4887 break 2 4888 fi 4889done 4890 done 4891IFS=$as_save_IFS 4892 4893fi 4894fi 4895CC=$ac_cv_prog_CC 4896if test -n "$CC"; then 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4898$as_echo "$CC" >&6; } 4899else 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4901$as_echo "no" >&6; } 4902fi 4903 4904 4905 fi 4906fi 4907if test -z "$CC"; then 4908 # Extract the first word of "cc", so it can be a program name with args. 4909set dummy cc; ac_word=$2 4910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4911$as_echo_n "checking for $ac_word... " >&6; } 4912if ${ac_cv_prog_CC+:} false; then : 4913 $as_echo_n "(cached) " >&6 4914else 4915 if test -n "$CC"; then 4916 ac_cv_prog_CC="$CC" # Let the user override the test. 4917else 4918 ac_prog_rejected=no 4919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4920for as_dir in $PATH 4921do 4922 IFS=$as_save_IFS 4923 test -z "$as_dir" && as_dir=. 4924 for ac_exec_ext in '' $ac_executable_extensions; do 4925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4926 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4927 ac_prog_rejected=yes 4928 continue 4929 fi 4930 ac_cv_prog_CC="cc" 4931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4932 break 2 4933 fi 4934done 4935 done 4936IFS=$as_save_IFS 4937 4938if test $ac_prog_rejected = yes; then 4939 # We found a bogon in the path, so make sure we never use it. 4940 set dummy $ac_cv_prog_CC 4941 shift 4942 if test $# != 0; then 4943 # We chose a different compiler from the bogus one. 4944 # However, it has the same basename, so the bogon will be chosen 4945 # first if we set CC to just the basename; use the full file name. 4946 shift 4947 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4948 fi 4949fi 4950fi 4951fi 4952CC=$ac_cv_prog_CC 4953if test -n "$CC"; then 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4955$as_echo "$CC" >&6; } 4956else 4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4958$as_echo "no" >&6; } 4959fi 4960 4961 4962fi 4963if test -z "$CC"; then 4964 if test -n "$ac_tool_prefix"; then 4965 for ac_prog in cl.exe 4966 do 4967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4968set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4970$as_echo_n "checking for $ac_word... " >&6; } 4971if ${ac_cv_prog_CC+:} false; then : 4972 $as_echo_n "(cached) " >&6 4973else 4974 if test -n "$CC"; then 4975 ac_cv_prog_CC="$CC" # Let the user override the test. 4976else 4977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4978for as_dir in $PATH 4979do 4980 IFS=$as_save_IFS 4981 test -z "$as_dir" && as_dir=. 4982 for ac_exec_ext in '' $ac_executable_extensions; do 4983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4984 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4986 break 2 4987 fi 4988done 4989 done 4990IFS=$as_save_IFS 4991 4992fi 4993fi 4994CC=$ac_cv_prog_CC 4995if test -n "$CC"; then 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4997$as_echo "$CC" >&6; } 4998else 4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5000$as_echo "no" >&6; } 5001fi 5002 5003 5004 test -n "$CC" && break 5005 done 5006fi 5007if test -z "$CC"; then 5008 ac_ct_CC=$CC 5009 for ac_prog in cl.exe 5010do 5011 # Extract the first word of "$ac_prog", so it can be a program name with args. 5012set dummy $ac_prog; ac_word=$2 5013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5014$as_echo_n "checking for $ac_word... " >&6; } 5015if ${ac_cv_prog_ac_ct_CC+:} false; then : 5016 $as_echo_n "(cached) " >&6 5017else 5018 if test -n "$ac_ct_CC"; then 5019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5020else 5021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5022for as_dir in $PATH 5023do 5024 IFS=$as_save_IFS 5025 test -z "$as_dir" && as_dir=. 5026 for ac_exec_ext in '' $ac_executable_extensions; do 5027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5028 ac_cv_prog_ac_ct_CC="$ac_prog" 5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5030 break 2 5031 fi 5032done 5033 done 5034IFS=$as_save_IFS 5035 5036fi 5037fi 5038ac_ct_CC=$ac_cv_prog_ac_ct_CC 5039if test -n "$ac_ct_CC"; then 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5041$as_echo "$ac_ct_CC" >&6; } 5042else 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5044$as_echo "no" >&6; } 5045fi 5046 5047 5048 test -n "$ac_ct_CC" && break 5049done 5050 5051 if test "x$ac_ct_CC" = x; then 5052 CC="" 5053 else 5054 case $cross_compiling:$ac_tool_warned in 5055yes:) 5056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5058ac_tool_warned=yes ;; 5059esac 5060 CC=$ac_ct_CC 5061 fi 5062fi 5063 5064fi 5065 5066 5067test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5068$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5069as_fn_error $? "no acceptable C compiler found in \$PATH 5070See \`config.log' for more details" "$LINENO" 5; } 5071 5072# Provide some information about the compiler. 5073$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5074set X $ac_compile 5075ac_compiler=$2 5076for ac_option in --version -v -V -qversion; do 5077 { { ac_try="$ac_compiler $ac_option >&5" 5078case "(($ac_try" in 5079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5080 *) ac_try_echo=$ac_try;; 5081esac 5082eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5083$as_echo "$ac_try_echo"; } >&5 5084 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5085 ac_status=$? 5086 if test -s conftest.err; then 5087 sed '10a\ 5088... rest of stderr output deleted ... 5089 10q' conftest.err >conftest.er1 5090 cat conftest.er1 >&5 5091 fi 5092 rm -f conftest.er1 conftest.err 5093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5094 test $ac_status = 0; } 5095done 5096 5097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5098$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5099if ${ac_cv_c_compiler_gnu+:} false; then : 5100 $as_echo_n "(cached) " >&6 5101else 5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5103/* end confdefs.h. */ 5104 5105int 5106main () 5107{ 5108#ifndef __GNUC__ 5109 choke me 5110#endif 5111 5112 ; 5113 return 0; 5114} 5115_ACEOF 5116if ac_fn_c_try_compile "$LINENO"; then : 5117 ac_compiler_gnu=yes 5118else 5119 ac_compiler_gnu=no 5120fi 5121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5122ac_cv_c_compiler_gnu=$ac_compiler_gnu 5123 5124fi 5125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5126$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5127if test $ac_compiler_gnu = yes; then 5128 GCC=yes 5129else 5130 GCC= 5131fi 5132ac_test_CFLAGS=${CFLAGS+set} 5133ac_save_CFLAGS=$CFLAGS 5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5135$as_echo_n "checking whether $CC accepts -g... " >&6; } 5136if ${ac_cv_prog_cc_g+:} false; then : 5137 $as_echo_n "(cached) " >&6 5138else 5139 ac_save_c_werror_flag=$ac_c_werror_flag 5140 ac_c_werror_flag=yes 5141 ac_cv_prog_cc_g=no 5142 CFLAGS="-g" 5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5144/* end confdefs.h. */ 5145 5146int 5147main () 5148{ 5149 5150 ; 5151 return 0; 5152} 5153_ACEOF 5154if ac_fn_c_try_compile "$LINENO"; then : 5155 ac_cv_prog_cc_g=yes 5156else 5157 CFLAGS="" 5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5159/* end confdefs.h. */ 5160 5161int 5162main () 5163{ 5164 5165 ; 5166 return 0; 5167} 5168_ACEOF 5169if ac_fn_c_try_compile "$LINENO"; then : 5170 5171else 5172 ac_c_werror_flag=$ac_save_c_werror_flag 5173 CFLAGS="-g" 5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5175/* end confdefs.h. */ 5176 5177int 5178main () 5179{ 5180 5181 ; 5182 return 0; 5183} 5184_ACEOF 5185if ac_fn_c_try_compile "$LINENO"; then : 5186 ac_cv_prog_cc_g=yes 5187fi 5188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5189fi 5190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5191fi 5192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5193 ac_c_werror_flag=$ac_save_c_werror_flag 5194fi 5195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5196$as_echo "$ac_cv_prog_cc_g" >&6; } 5197if test "$ac_test_CFLAGS" = set; then 5198 CFLAGS=$ac_save_CFLAGS 5199elif test $ac_cv_prog_cc_g = yes; then 5200 if test "$GCC" = yes; then 5201 CFLAGS="-g -O2" 5202 else 5203 CFLAGS="-g" 5204 fi 5205else 5206 if test "$GCC" = yes; then 5207 CFLAGS="-O2" 5208 else 5209 CFLAGS= 5210 fi 5211fi 5212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5213$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5214if ${ac_cv_prog_cc_c89+:} false; then : 5215 $as_echo_n "(cached) " >&6 5216else 5217 ac_cv_prog_cc_c89=no 5218ac_save_CC=$CC 5219cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5220/* end confdefs.h. */ 5221#include <stdarg.h> 5222#include <stdio.h> 5223struct stat; 5224/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5225struct buf { int x; }; 5226FILE * (*rcsopen) (struct buf *, struct stat *, int); 5227static char *e (p, i) 5228 char **p; 5229 int i; 5230{ 5231 return p[i]; 5232} 5233static char *f (char * (*g) (char **, int), char **p, ...) 5234{ 5235 char *s; 5236 va_list v; 5237 va_start (v,p); 5238 s = g (p, va_arg (v,int)); 5239 va_end (v); 5240 return s; 5241} 5242 5243/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5244 function prototypes and stuff, but not '\xHH' hex character constants. 5245 These don't provoke an error unfortunately, instead are silently treated 5246 as 'x'. The following induces an error, until -std is added to get 5247 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5248 array size at least. It's necessary to write '\x00'==0 to get something 5249 that's true only with -std. */ 5250int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5251 5252/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5253 inside strings and character constants. */ 5254#define FOO(x) 'x' 5255int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5256 5257int test (int i, double x); 5258struct s1 {int (*f) (int a);}; 5259struct s2 {int (*f) (double a);}; 5260int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5261int argc; 5262char **argv; 5263int 5264main () 5265{ 5266return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5267 ; 5268 return 0; 5269} 5270_ACEOF 5271for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5272 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5273do 5274 CC="$ac_save_CC $ac_arg" 5275 if ac_fn_c_try_compile "$LINENO"; then : 5276 ac_cv_prog_cc_c89=$ac_arg 5277fi 5278rm -f core conftest.err conftest.$ac_objext 5279 test "x$ac_cv_prog_cc_c89" != "xno" && break 5280done 5281rm -f conftest.$ac_ext 5282CC=$ac_save_CC 5283 5284fi 5285# AC_CACHE_VAL 5286case "x$ac_cv_prog_cc_c89" in 5287 x) 5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5289$as_echo "none needed" >&6; } ;; 5290 xno) 5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5292$as_echo "unsupported" >&6; } ;; 5293 *) 5294 CC="$CC $ac_cv_prog_cc_c89" 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5296$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5297esac 5298if test "x$ac_cv_prog_cc_c89" != xno; then : 5299 5300fi 5301 5302ac_ext=c 5303ac_cpp='$CPP $CPPFLAGS' 5304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5306ac_compiler_gnu=$ac_cv_c_compiler_gnu 5307 5308ac_ext=c 5309ac_cpp='$CPP $CPPFLAGS' 5310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5312ac_compiler_gnu=$ac_cv_c_compiler_gnu 5313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5314$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5315if ${am_cv_prog_cc_c_o+:} false; then : 5316 $as_echo_n "(cached) " >&6 5317else 5318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5319/* end confdefs.h. */ 5320 5321int 5322main () 5323{ 5324 5325 ; 5326 return 0; 5327} 5328_ACEOF 5329 # Make sure it works both with $CC and with simple cc. 5330 # Following AC_PROG_CC_C_O, we do the test twice because some 5331 # compilers refuse to overwrite an existing .o file with -o, 5332 # though they will create one. 5333 am_cv_prog_cc_c_o=yes 5334 for am_i in 1 2; do 5335 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5336 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5337 ac_status=$? 5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5339 (exit $ac_status); } \ 5340 && test -f conftest2.$ac_objext; then 5341 : OK 5342 else 5343 am_cv_prog_cc_c_o=no 5344 break 5345 fi 5346 done 5347 rm -f core conftest* 5348 unset am_i 5349fi 5350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5351$as_echo "$am_cv_prog_cc_c_o" >&6; } 5352if test "$am_cv_prog_cc_c_o" != yes; then 5353 # Losing compiler, so override with the script. 5354 # FIXME: It is wrong to rewrite CC. 5355 # But if we don't then we get into trouble of one sort or another. 5356 # A longer-term fix would be to have automake use am__CC in this case, 5357 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5358 CC="$am_aux_dir/compile $CC" 5359fi 5360ac_ext=c 5361ac_cpp='$CPP $CPPFLAGS' 5362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5364ac_compiler_gnu=$ac_cv_c_compiler_gnu 5365 5366 5367depcc="$CC" am_compiler_list= 5368 5369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5370$as_echo_n "checking dependency style of $depcc... " >&6; } 5371if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5372 $as_echo_n "(cached) " >&6 5373else 5374 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5375 # We make a subdir and do the tests there. Otherwise we can end up 5376 # making bogus files that we don't know about and never remove. For 5377 # instance it was reported that on HP-UX the gcc test will end up 5378 # making a dummy file named 'D' -- because '-MD' means "put the output 5379 # in D". 5380 rm -rf conftest.dir 5381 mkdir conftest.dir 5382 # Copy depcomp to subdir because otherwise we won't find it if we're 5383 # using a relative directory. 5384 cp "$am_depcomp" conftest.dir 5385 cd conftest.dir 5386 # We will build objects and dependencies in a subdirectory because 5387 # it helps to detect inapplicable dependency modes. For instance 5388 # both Tru64's cc and ICC support -MD to output dependencies as a 5389 # side effect of compilation, but ICC will put the dependencies in 5390 # the current directory while Tru64 will put them in the object 5391 # directory. 5392 mkdir sub 5393 5394 am_cv_CC_dependencies_compiler_type=none 5395 if test "$am_compiler_list" = ""; then 5396 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5397 fi 5398 am__universal=false 5399 case " $depcc " in #( 5400 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5401 esac 5402 5403 for depmode in $am_compiler_list; do 5404 # Setup a source with many dependencies, because some compilers 5405 # like to wrap large dependency lists on column 80 (with \), and 5406 # we should not choose a depcomp mode which is confused by this. 5407 # 5408 # We need to recreate these files for each test, as the compiler may 5409 # overwrite some of them when testing with obscure command lines. 5410 # This happens at least with the AIX C compiler. 5411 : > sub/conftest.c 5412 for i in 1 2 3 4 5 6; do 5413 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5414 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5415 # Solaris 10 /bin/sh. 5416 echo '/* dummy */' > sub/conftst$i.h 5417 done 5418 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5419 5420 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5421 # mode. It turns out that the SunPro C++ compiler does not properly 5422 # handle '-M -o', and we need to detect this. Also, some Intel 5423 # versions had trouble with output in subdirs. 5424 am__obj=sub/conftest.${OBJEXT-o} 5425 am__minus_obj="-o $am__obj" 5426 case $depmode in 5427 gcc) 5428 # This depmode causes a compiler race in universal mode. 5429 test "$am__universal" = false || continue 5430 ;; 5431 nosideeffect) 5432 # After this tag, mechanisms are not by side-effect, so they'll 5433 # only be used when explicitly requested. 5434 if test "x$enable_dependency_tracking" = xyes; then 5435 continue 5436 else 5437 break 5438 fi 5439 ;; 5440 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5441 # This compiler won't grok '-c -o', but also, the minuso test has 5442 # not run yet. These depmodes are late enough in the game, and 5443 # so weak that their functioning should not be impacted. 5444 am__obj=conftest.${OBJEXT-o} 5445 am__minus_obj= 5446 ;; 5447 none) break ;; 5448 esac 5449 if depmode=$depmode \ 5450 source=sub/conftest.c object=$am__obj \ 5451 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5452 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5453 >/dev/null 2>conftest.err && 5454 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5455 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5456 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5457 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5458 # icc doesn't choke on unknown options, it will just issue warnings 5459 # or remarks (even with -Werror). So we grep stderr for any message 5460 # that says an option was ignored or not supported. 5461 # When given -MP, icc 7.0 and 7.1 complain thusly: 5462 # icc: Command line warning: ignoring option '-M'; no argument required 5463 # The diagnosis changed in icc 8.0: 5464 # icc: Command line remark: option '-MP' not supported 5465 if (grep 'ignoring option' conftest.err || 5466 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5467 am_cv_CC_dependencies_compiler_type=$depmode 5468 break 5469 fi 5470 fi 5471 done 5472 5473 cd .. 5474 rm -rf conftest.dir 5475else 5476 am_cv_CC_dependencies_compiler_type=none 5477fi 5478 5479fi 5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5481$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5482CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5483 5484 if 5485 test "x$enable_dependency_tracking" != xno \ 5486 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5487 am__fastdepCC_TRUE= 5488 am__fastdepCC_FALSE='#' 5489else 5490 am__fastdepCC_TRUE='#' 5491 am__fastdepCC_FALSE= 5492fi 5493 5494 5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5496$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5497if ${ac_cv_prog_cc_c99+:} false; then : 5498 $as_echo_n "(cached) " >&6 5499else 5500 ac_cv_prog_cc_c99=no 5501ac_save_CC=$CC 5502cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5503/* end confdefs.h. */ 5504#include <stdarg.h> 5505#include <stdbool.h> 5506#include <stdlib.h> 5507#include <wchar.h> 5508#include <stdio.h> 5509 5510// Check varargs macros. These examples are taken from C99 6.10.3.5. 5511#define debug(...) fprintf (stderr, __VA_ARGS__) 5512#define showlist(...) puts (#__VA_ARGS__) 5513#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5514static void 5515test_varargs_macros (void) 5516{ 5517 int x = 1234; 5518 int y = 5678; 5519 debug ("Flag"); 5520 debug ("X = %d\n", x); 5521 showlist (The first, second, and third items.); 5522 report (x>y, "x is %d but y is %d", x, y); 5523} 5524 5525// Check long long types. 5526#define BIG64 18446744073709551615ull 5527#define BIG32 4294967295ul 5528#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5529#if !BIG_OK 5530 your preprocessor is broken; 5531#endif 5532#if BIG_OK 5533#else 5534 your preprocessor is broken; 5535#endif 5536static long long int bignum = -9223372036854775807LL; 5537static unsigned long long int ubignum = BIG64; 5538 5539struct incomplete_array 5540{ 5541 int datasize; 5542 double data[]; 5543}; 5544 5545struct named_init { 5546 int number; 5547 const wchar_t *name; 5548 double average; 5549}; 5550 5551typedef const char *ccp; 5552 5553static inline int 5554test_restrict (ccp restrict text) 5555{ 5556 // See if C++-style comments work. 5557 // Iterate through items via the restricted pointer. 5558 // Also check for declarations in for loops. 5559 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5560 continue; 5561 return 0; 5562} 5563 5564// Check varargs and va_copy. 5565static void 5566test_varargs (const char *format, ...) 5567{ 5568 va_list args; 5569 va_start (args, format); 5570 va_list args_copy; 5571 va_copy (args_copy, args); 5572 5573 const char *str; 5574 int number; 5575 float fnumber; 5576 5577 while (*format) 5578 { 5579 switch (*format++) 5580 { 5581 case 's': // string 5582 str = va_arg (args_copy, const char *); 5583 break; 5584 case 'd': // int 5585 number = va_arg (args_copy, int); 5586 break; 5587 case 'f': // float 5588 fnumber = va_arg (args_copy, double); 5589 break; 5590 default: 5591 break; 5592 } 5593 } 5594 va_end (args_copy); 5595 va_end (args); 5596} 5597 5598int 5599main () 5600{ 5601 5602 // Check bool. 5603 _Bool success = false; 5604 5605 // Check restrict. 5606 if (test_restrict ("String literal") == 0) 5607 success = true; 5608 char *restrict newvar = "Another string"; 5609 5610 // Check varargs. 5611 test_varargs ("s, d' f .", "string", 65, 34.234); 5612 test_varargs_macros (); 5613 5614 // Check flexible array members. 5615 struct incomplete_array *ia = 5616 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5617 ia->datasize = 10; 5618 for (int i = 0; i < ia->datasize; ++i) 5619 ia->data[i] = i * 1.234; 5620 5621 // Check named initializers. 5622 struct named_init ni = { 5623 .number = 34, 5624 .name = L"Test wide string", 5625 .average = 543.34343, 5626 }; 5627 5628 ni.number = 58; 5629 5630 int dynamic_array[ni.number]; 5631 dynamic_array[ni.number - 1] = 543; 5632 5633 // work around unused variable warnings 5634 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5635 || dynamic_array[ni.number - 1] != 543); 5636 5637 ; 5638 return 0; 5639} 5640_ACEOF 5641for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5642do 5643 CC="$ac_save_CC $ac_arg" 5644 if ac_fn_c_try_compile "$LINENO"; then : 5645 ac_cv_prog_cc_c99=$ac_arg 5646fi 5647rm -f core conftest.err conftest.$ac_objext 5648 test "x$ac_cv_prog_cc_c99" != "xno" && break 5649done 5650rm -f conftest.$ac_ext 5651CC=$ac_save_CC 5652 5653fi 5654# AC_CACHE_VAL 5655case "x$ac_cv_prog_cc_c99" in 5656 x) 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5658$as_echo "none needed" >&6; } ;; 5659 xno) 5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5661$as_echo "unsupported" >&6; } ;; 5662 *) 5663 CC="$CC $ac_cv_prog_cc_c99" 5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5665$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5666esac 5667if test "x$ac_cv_prog_cc_c99" != xno; then : 5668 5669fi 5670 5671 5672 5673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5674$as_echo_n "checking whether ln -s works... " >&6; } 5675LN_S=$as_ln_s 5676if test "$LN_S" = "ln -s"; then 5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5678$as_echo "yes" >&6; } 5679else 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5681$as_echo "no, using $LN_S" >&6; } 5682fi 5683 5684enable_dlopen=yes 5685 5686 5687 5688case `pwd` in 5689 *\ * | *\ *) 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5691$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5692esac 5693 5694 5695 5696macro_version='2.4.6' 5697macro_revision='2.4.6' 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711ltmain=$ac_aux_dir/ltmain.sh 5712 5713# Backslashify metacharacters that are still active within 5714# double-quoted strings. 5715sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5716 5717# Same as above, but do not quote variable references. 5718double_quote_subst='s/\(["`\\]\)/\\\1/g' 5719 5720# Sed substitution to delay expansion of an escaped shell variable in a 5721# double_quote_subst'ed string. 5722delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5723 5724# Sed substitution to delay expansion of an escaped single quote. 5725delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5726 5727# Sed substitution to avoid accidental globbing in evaled expressions 5728no_glob_subst='s/\*/\\\*/g' 5729 5730ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5731ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5732ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5733 5734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5735$as_echo_n "checking how to print strings... " >&6; } 5736# Test print first, because it will be a builtin if present. 5737if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5738 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5739 ECHO='print -r --' 5740elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5741 ECHO='printf %s\n' 5742else 5743 # Use this function as a fallback that always works. 5744 func_fallback_echo () 5745 { 5746 eval 'cat <<_LTECHO_EOF 5747$1 5748_LTECHO_EOF' 5749 } 5750 ECHO='func_fallback_echo' 5751fi 5752 5753# func_echo_all arg... 5754# Invoke $ECHO with all args, space-separated. 5755func_echo_all () 5756{ 5757 $ECHO "" 5758} 5759 5760case $ECHO in 5761 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5762$as_echo "printf" >&6; } ;; 5763 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5764$as_echo "print -r" >&6; } ;; 5765 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5766$as_echo "cat" >&6; } ;; 5767esac 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5783$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5784if ${ac_cv_path_SED+:} false; then : 5785 $as_echo_n "(cached) " >&6 5786else 5787 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5788 for ac_i in 1 2 3 4 5 6 7; do 5789 ac_script="$ac_script$as_nl$ac_script" 5790 done 5791 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5792 { ac_script=; unset ac_script;} 5793 if test -z "$SED"; then 5794 ac_path_SED_found=false 5795 # Loop through the user's path and test for each of PROGNAME-LIST 5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5797for as_dir in $PATH 5798do 5799 IFS=$as_save_IFS 5800 test -z "$as_dir" && as_dir=. 5801 for ac_prog in sed gsed; do 5802 for ac_exec_ext in '' $ac_executable_extensions; do 5803 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5804 as_fn_executable_p "$ac_path_SED" || continue 5805# Check for GNU ac_path_SED and select it if it is found. 5806 # Check for GNU $ac_path_SED 5807case `"$ac_path_SED" --version 2>&1` in 5808*GNU*) 5809 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5810*) 5811 ac_count=0 5812 $as_echo_n 0123456789 >"conftest.in" 5813 while : 5814 do 5815 cat "conftest.in" "conftest.in" >"conftest.tmp" 5816 mv "conftest.tmp" "conftest.in" 5817 cp "conftest.in" "conftest.nl" 5818 $as_echo '' >> "conftest.nl" 5819 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5820 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5821 as_fn_arith $ac_count + 1 && ac_count=$as_val 5822 if test $ac_count -gt ${ac_path_SED_max-0}; then 5823 # Best one so far, save it but keep looking for a better one 5824 ac_cv_path_SED="$ac_path_SED" 5825 ac_path_SED_max=$ac_count 5826 fi 5827 # 10*(2^10) chars as input seems more than enough 5828 test $ac_count -gt 10 && break 5829 done 5830 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5831esac 5832 5833 $ac_path_SED_found && break 3 5834 done 5835 done 5836 done 5837IFS=$as_save_IFS 5838 if test -z "$ac_cv_path_SED"; then 5839 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5840 fi 5841else 5842 ac_cv_path_SED=$SED 5843fi 5844 5845fi 5846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5847$as_echo "$ac_cv_path_SED" >&6; } 5848 SED="$ac_cv_path_SED" 5849 rm -f conftest.sed 5850 5851test -z "$SED" && SED=sed 5852Xsed="$SED -e 1s/^X//" 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5865$as_echo_n "checking for fgrep... " >&6; } 5866if ${ac_cv_path_FGREP+:} false; then : 5867 $as_echo_n "(cached) " >&6 5868else 5869 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5870 then ac_cv_path_FGREP="$GREP -F" 5871 else 5872 if test -z "$FGREP"; then 5873 ac_path_FGREP_found=false 5874 # Loop through the user's path and test for each of PROGNAME-LIST 5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5876for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5877do 5878 IFS=$as_save_IFS 5879 test -z "$as_dir" && as_dir=. 5880 for ac_prog in fgrep; do 5881 for ac_exec_ext in '' $ac_executable_extensions; do 5882 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5883 as_fn_executable_p "$ac_path_FGREP" || continue 5884# Check for GNU ac_path_FGREP and select it if it is found. 5885 # Check for GNU $ac_path_FGREP 5886case `"$ac_path_FGREP" --version 2>&1` in 5887*GNU*) 5888 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5889*) 5890 ac_count=0 5891 $as_echo_n 0123456789 >"conftest.in" 5892 while : 5893 do 5894 cat "conftest.in" "conftest.in" >"conftest.tmp" 5895 mv "conftest.tmp" "conftest.in" 5896 cp "conftest.in" "conftest.nl" 5897 $as_echo 'FGREP' >> "conftest.nl" 5898 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5899 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5900 as_fn_arith $ac_count + 1 && ac_count=$as_val 5901 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5902 # Best one so far, save it but keep looking for a better one 5903 ac_cv_path_FGREP="$ac_path_FGREP" 5904 ac_path_FGREP_max=$ac_count 5905 fi 5906 # 10*(2^10) chars as input seems more than enough 5907 test $ac_count -gt 10 && break 5908 done 5909 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5910esac 5911 5912 $ac_path_FGREP_found && break 3 5913 done 5914 done 5915 done 5916IFS=$as_save_IFS 5917 if test -z "$ac_cv_path_FGREP"; then 5918 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5919 fi 5920else 5921 ac_cv_path_FGREP=$FGREP 5922fi 5923 5924 fi 5925fi 5926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5927$as_echo "$ac_cv_path_FGREP" >&6; } 5928 FGREP="$ac_cv_path_FGREP" 5929 5930 5931test -z "$GREP" && GREP=grep 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951# Check whether --with-gnu-ld was given. 5952if test "${with_gnu_ld+set}" = set; then : 5953 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5954else 5955 with_gnu_ld=no 5956fi 5957 5958ac_prog=ld 5959if test yes = "$GCC"; then 5960 # Check if gcc -print-prog-name=ld gives a path. 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5962$as_echo_n "checking for ld used by $CC... " >&6; } 5963 case $host in 5964 *-*-mingw*) 5965 # gcc leaves a trailing carriage return, which upsets mingw 5966 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5967 *) 5968 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5969 esac 5970 case $ac_prog in 5971 # Accept absolute paths. 5972 [\\/]* | ?:[\\/]*) 5973 re_direlt='/[^/][^/]*/\.\./' 5974 # Canonicalize the pathname of ld 5975 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5976 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5977 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5978 done 5979 test -z "$LD" && LD=$ac_prog 5980 ;; 5981 "") 5982 # If it fails, then pretend we aren't using GCC. 5983 ac_prog=ld 5984 ;; 5985 *) 5986 # If it is relative, then search for the first ld in PATH. 5987 with_gnu_ld=unknown 5988 ;; 5989 esac 5990elif test yes = "$with_gnu_ld"; then 5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5992$as_echo_n "checking for GNU ld... " >&6; } 5993else 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5995$as_echo_n "checking for non-GNU ld... " >&6; } 5996fi 5997if ${lt_cv_path_LD+:} false; then : 5998 $as_echo_n "(cached) " >&6 5999else 6000 if test -z "$LD"; then 6001 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6002 for ac_dir in $PATH; do 6003 IFS=$lt_save_ifs 6004 test -z "$ac_dir" && ac_dir=. 6005 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6006 lt_cv_path_LD=$ac_dir/$ac_prog 6007 # Check to see if the program is GNU ld. I'd rather use --version, 6008 # but apparently some variants of GNU ld only accept -v. 6009 # Break only if it was the GNU/non-GNU ld that we prefer. 6010 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6011 *GNU* | *'with BFD'*) 6012 test no != "$with_gnu_ld" && break 6013 ;; 6014 *) 6015 test yes != "$with_gnu_ld" && break 6016 ;; 6017 esac 6018 fi 6019 done 6020 IFS=$lt_save_ifs 6021else 6022 lt_cv_path_LD=$LD # Let the user override the test with a path. 6023fi 6024fi 6025 6026LD=$lt_cv_path_LD 6027if test -n "$LD"; then 6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6029$as_echo "$LD" >&6; } 6030else 6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6032$as_echo "no" >&6; } 6033fi 6034test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6036$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6037if ${lt_cv_prog_gnu_ld+:} false; then : 6038 $as_echo_n "(cached) " >&6 6039else 6040 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6041case `$LD -v 2>&1 </dev/null` in 6042*GNU* | *'with BFD'*) 6043 lt_cv_prog_gnu_ld=yes 6044 ;; 6045*) 6046 lt_cv_prog_gnu_ld=no 6047 ;; 6048esac 6049fi 6050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6051$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6052with_gnu_ld=$lt_cv_prog_gnu_ld 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6063$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6064if ${lt_cv_path_NM+:} false; then : 6065 $as_echo_n "(cached) " >&6 6066else 6067 if test -n "$NM"; then 6068 # Let the user override the test. 6069 lt_cv_path_NM=$NM 6070else 6071 lt_nm_to_check=${ac_tool_prefix}nm 6072 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6073 lt_nm_to_check="$lt_nm_to_check nm" 6074 fi 6075 for lt_tmp_nm in $lt_nm_to_check; do 6076 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6077 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6078 IFS=$lt_save_ifs 6079 test -z "$ac_dir" && ac_dir=. 6080 tmp_nm=$ac_dir/$lt_tmp_nm 6081 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6082 # Check to see if the nm accepts a BSD-compat flag. 6083 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6084 # nm: unknown option "B" ignored 6085 # Tru64's nm complains that /dev/null is an invalid object file 6086 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6087 case $build_os in 6088 mingw*) lt_bad_file=conftest.nm/nofile ;; 6089 *) lt_bad_file=/dev/null ;; 6090 esac 6091 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 6092 *$lt_bad_file* | *'Invalid file or object type'*) 6093 lt_cv_path_NM="$tmp_nm -B" 6094 break 2 6095 ;; 6096 *) 6097 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6098 */dev/null*) 6099 lt_cv_path_NM="$tmp_nm -p" 6100 break 2 6101 ;; 6102 *) 6103 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6104 continue # so that we can try to find one that supports BSD flags 6105 ;; 6106 esac 6107 ;; 6108 esac 6109 fi 6110 done 6111 IFS=$lt_save_ifs 6112 done 6113 : ${lt_cv_path_NM=no} 6114fi 6115fi 6116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6117$as_echo "$lt_cv_path_NM" >&6; } 6118if test no != "$lt_cv_path_NM"; then 6119 NM=$lt_cv_path_NM 6120else 6121 # Didn't find any BSD compatible name lister, look for dumpbin. 6122 if test -n "$DUMPBIN"; then : 6123 # Let the user override the test. 6124 else 6125 if test -n "$ac_tool_prefix"; then 6126 for ac_prog in dumpbin "link -dump" 6127 do 6128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6129set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6131$as_echo_n "checking for $ac_word... " >&6; } 6132if ${ac_cv_prog_DUMPBIN+:} false; then : 6133 $as_echo_n "(cached) " >&6 6134else 6135 if test -n "$DUMPBIN"; then 6136 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6137else 6138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6139for as_dir in $PATH 6140do 6141 IFS=$as_save_IFS 6142 test -z "$as_dir" && as_dir=. 6143 for ac_exec_ext in '' $ac_executable_extensions; do 6144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6145 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6147 break 2 6148 fi 6149done 6150 done 6151IFS=$as_save_IFS 6152 6153fi 6154fi 6155DUMPBIN=$ac_cv_prog_DUMPBIN 6156if test -n "$DUMPBIN"; then 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6158$as_echo "$DUMPBIN" >&6; } 6159else 6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6161$as_echo "no" >&6; } 6162fi 6163 6164 6165 test -n "$DUMPBIN" && break 6166 done 6167fi 6168if test -z "$DUMPBIN"; then 6169 ac_ct_DUMPBIN=$DUMPBIN 6170 for ac_prog in dumpbin "link -dump" 6171do 6172 # Extract the first word of "$ac_prog", so it can be a program name with args. 6173set dummy $ac_prog; ac_word=$2 6174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6175$as_echo_n "checking for $ac_word... " >&6; } 6176if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6177 $as_echo_n "(cached) " >&6 6178else 6179 if test -n "$ac_ct_DUMPBIN"; then 6180 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6181else 6182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6183for as_dir in $PATH 6184do 6185 IFS=$as_save_IFS 6186 test -z "$as_dir" && as_dir=. 6187 for ac_exec_ext in '' $ac_executable_extensions; do 6188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6189 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6191 break 2 6192 fi 6193done 6194 done 6195IFS=$as_save_IFS 6196 6197fi 6198fi 6199ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6200if test -n "$ac_ct_DUMPBIN"; then 6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6202$as_echo "$ac_ct_DUMPBIN" >&6; } 6203else 6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6205$as_echo "no" >&6; } 6206fi 6207 6208 6209 test -n "$ac_ct_DUMPBIN" && break 6210done 6211 6212 if test "x$ac_ct_DUMPBIN" = x; then 6213 DUMPBIN=":" 6214 else 6215 case $cross_compiling:$ac_tool_warned in 6216yes:) 6217{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6219ac_tool_warned=yes ;; 6220esac 6221 DUMPBIN=$ac_ct_DUMPBIN 6222 fi 6223fi 6224 6225 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6226 *COFF*) 6227 DUMPBIN="$DUMPBIN -symbols -headers" 6228 ;; 6229 *) 6230 DUMPBIN=: 6231 ;; 6232 esac 6233 fi 6234 6235 if test : != "$DUMPBIN"; then 6236 NM=$DUMPBIN 6237 fi 6238fi 6239test -z "$NM" && NM=nm 6240 6241 6242 6243 6244 6245 6246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6247$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6248if ${lt_cv_nm_interface+:} false; then : 6249 $as_echo_n "(cached) " >&6 6250else 6251 lt_cv_nm_interface="BSD nm" 6252 echo "int some_variable = 0;" > conftest.$ac_ext 6253 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6254 (eval "$ac_compile" 2>conftest.err) 6255 cat conftest.err >&5 6256 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6257 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6258 cat conftest.err >&5 6259 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6260 cat conftest.out >&5 6261 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6262 lt_cv_nm_interface="MS dumpbin" 6263 fi 6264 rm -f conftest* 6265fi 6266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6267$as_echo "$lt_cv_nm_interface" >&6; } 6268 6269# find the maximum length of command line arguments 6270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6271$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6272if ${lt_cv_sys_max_cmd_len+:} false; then : 6273 $as_echo_n "(cached) " >&6 6274else 6275 i=0 6276 teststring=ABCD 6277 6278 case $build_os in 6279 msdosdjgpp*) 6280 # On DJGPP, this test can blow up pretty badly due to problems in libc 6281 # (any single argument exceeding 2000 bytes causes a buffer overrun 6282 # during glob expansion). Even if it were fixed, the result of this 6283 # check would be larger than it should be. 6284 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6285 ;; 6286 6287 gnu*) 6288 # Under GNU Hurd, this test is not required because there is 6289 # no limit to the length of command line arguments. 6290 # Libtool will interpret -1 as no limit whatsoever 6291 lt_cv_sys_max_cmd_len=-1; 6292 ;; 6293 6294 cygwin* | mingw* | cegcc*) 6295 # On Win9x/ME, this test blows up -- it succeeds, but takes 6296 # about 5 minutes as the teststring grows exponentially. 6297 # Worse, since 9x/ME are not pre-emptively multitasking, 6298 # you end up with a "frozen" computer, even though with patience 6299 # the test eventually succeeds (with a max line length of 256k). 6300 # Instead, let's just punt: use the minimum linelength reported by 6301 # all of the supported platforms: 8192 (on NT/2K/XP). 6302 lt_cv_sys_max_cmd_len=8192; 6303 ;; 6304 6305 mint*) 6306 # On MiNT this can take a long time and run out of memory. 6307 lt_cv_sys_max_cmd_len=8192; 6308 ;; 6309 6310 amigaos*) 6311 # On AmigaOS with pdksh, this test takes hours, literally. 6312 # So we just punt and use a minimum line length of 8192. 6313 lt_cv_sys_max_cmd_len=8192; 6314 ;; 6315 6316 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6317 # This has been around since 386BSD, at least. Likely further. 6318 if test -x /sbin/sysctl; then 6319 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6320 elif test -x /usr/sbin/sysctl; then 6321 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6322 else 6323 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6324 fi 6325 # And add a safety zone 6326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6328 ;; 6329 6330 interix*) 6331 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6332 lt_cv_sys_max_cmd_len=196608 6333 ;; 6334 6335 os2*) 6336 # The test takes a long time on OS/2. 6337 lt_cv_sys_max_cmd_len=8192 6338 ;; 6339 6340 osf*) 6341 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6342 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6343 # nice to cause kernel panics so lets avoid the loop below. 6344 # First set a reasonable default. 6345 lt_cv_sys_max_cmd_len=16384 6346 # 6347 if test -x /sbin/sysconfig; then 6348 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6349 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6350 esac 6351 fi 6352 ;; 6353 sco3.2v5*) 6354 lt_cv_sys_max_cmd_len=102400 6355 ;; 6356 sysv5* | sco5v6* | sysv4.2uw2*) 6357 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6358 if test -n "$kargmax"; then 6359 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6360 else 6361 lt_cv_sys_max_cmd_len=32768 6362 fi 6363 ;; 6364 *) 6365 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6366 if test -n "$lt_cv_sys_max_cmd_len" && \ 6367 test undefined != "$lt_cv_sys_max_cmd_len"; then 6368 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6369 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6370 else 6371 # Make teststring a little bigger before we do anything with it. 6372 # a 1K string should be a reasonable start. 6373 for i in 1 2 3 4 5 6 7 8; do 6374 teststring=$teststring$teststring 6375 done 6376 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6377 # If test is not a shell built-in, we'll probably end up computing a 6378 # maximum length that is only half of the actual maximum length, but 6379 # we can't tell. 6380 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6381 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6382 test 17 != "$i" # 1/2 MB should be enough 6383 do 6384 i=`expr $i + 1` 6385 teststring=$teststring$teststring 6386 done 6387 # Only check the string length outside the loop. 6388 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6389 teststring= 6390 # Add a significant safety factor because C++ compilers can tack on 6391 # massive amounts of additional arguments before passing them to the 6392 # linker. It appears as though 1/2 is a usable value. 6393 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6394 fi 6395 ;; 6396 esac 6397 6398fi 6399 6400if test -n "$lt_cv_sys_max_cmd_len"; then 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6402$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6403else 6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6405$as_echo "none" >&6; } 6406fi 6407max_cmd_len=$lt_cv_sys_max_cmd_len 6408 6409 6410 6411 6412 6413 6414: ${CP="cp -f"} 6415: ${MV="mv -f"} 6416: ${RM="rm -f"} 6417 6418if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6419 lt_unset=unset 6420else 6421 lt_unset=false 6422fi 6423 6424 6425 6426 6427 6428# test EBCDIC or ASCII 6429case `echo X|tr X '\101'` in 6430 A) # ASCII based system 6431 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6432 lt_SP2NL='tr \040 \012' 6433 lt_NL2SP='tr \015\012 \040\040' 6434 ;; 6435 *) # EBCDIC based system 6436 lt_SP2NL='tr \100 \n' 6437 lt_NL2SP='tr \r\n \100\100' 6438 ;; 6439esac 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6450$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6451if ${lt_cv_to_host_file_cmd+:} false; then : 6452 $as_echo_n "(cached) " >&6 6453else 6454 case $host in 6455 *-*-mingw* ) 6456 case $build in 6457 *-*-mingw* ) # actually msys 6458 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6459 ;; 6460 *-*-cygwin* ) 6461 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6462 ;; 6463 * ) # otherwise, assume *nix 6464 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6465 ;; 6466 esac 6467 ;; 6468 *-*-cygwin* ) 6469 case $build in 6470 *-*-mingw* ) # actually msys 6471 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6472 ;; 6473 *-*-cygwin* ) 6474 lt_cv_to_host_file_cmd=func_convert_file_noop 6475 ;; 6476 * ) # otherwise, assume *nix 6477 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6478 ;; 6479 esac 6480 ;; 6481 * ) # unhandled hosts (and "normal" native builds) 6482 lt_cv_to_host_file_cmd=func_convert_file_noop 6483 ;; 6484esac 6485 6486fi 6487 6488to_host_file_cmd=$lt_cv_to_host_file_cmd 6489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6490$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6491 6492 6493 6494 6495 6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6497$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6498if ${lt_cv_to_tool_file_cmd+:} false; then : 6499 $as_echo_n "(cached) " >&6 6500else 6501 #assume ordinary cross tools, or native build. 6502lt_cv_to_tool_file_cmd=func_convert_file_noop 6503case $host in 6504 *-*-mingw* ) 6505 case $build in 6506 *-*-mingw* ) # actually msys 6507 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6508 ;; 6509 esac 6510 ;; 6511esac 6512 6513fi 6514 6515to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6517$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6518 6519 6520 6521 6522 6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6524$as_echo_n "checking for $LD option to reload object files... " >&6; } 6525if ${lt_cv_ld_reload_flag+:} false; then : 6526 $as_echo_n "(cached) " >&6 6527else 6528 lt_cv_ld_reload_flag='-r' 6529fi 6530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6531$as_echo "$lt_cv_ld_reload_flag" >&6; } 6532reload_flag=$lt_cv_ld_reload_flag 6533case $reload_flag in 6534"" | " "*) ;; 6535*) reload_flag=" $reload_flag" ;; 6536esac 6537reload_cmds='$LD$reload_flag -o $output$reload_objs' 6538case $host_os in 6539 cygwin* | mingw* | pw32* | cegcc*) 6540 if test yes != "$GCC"; then 6541 reload_cmds=false 6542 fi 6543 ;; 6544 darwin*) 6545 if test yes = "$GCC"; then 6546 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6547 else 6548 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6549 fi 6550 ;; 6551esac 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561if test -n "$ac_tool_prefix"; then 6562 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6563set dummy ${ac_tool_prefix}objdump; ac_word=$2 6564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6565$as_echo_n "checking for $ac_word... " >&6; } 6566if ${ac_cv_prog_OBJDUMP+:} false; then : 6567 $as_echo_n "(cached) " >&6 6568else 6569 if test -n "$OBJDUMP"; then 6570 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6571else 6572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6573for as_dir in $PATH 6574do 6575 IFS=$as_save_IFS 6576 test -z "$as_dir" && as_dir=. 6577 for ac_exec_ext in '' $ac_executable_extensions; do 6578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6579 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6581 break 2 6582 fi 6583done 6584 done 6585IFS=$as_save_IFS 6586 6587fi 6588fi 6589OBJDUMP=$ac_cv_prog_OBJDUMP 6590if test -n "$OBJDUMP"; then 6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6592$as_echo "$OBJDUMP" >&6; } 6593else 6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6595$as_echo "no" >&6; } 6596fi 6597 6598 6599fi 6600if test -z "$ac_cv_prog_OBJDUMP"; then 6601 ac_ct_OBJDUMP=$OBJDUMP 6602 # Extract the first word of "objdump", so it can be a program name with args. 6603set dummy objdump; ac_word=$2 6604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6605$as_echo_n "checking for $ac_word... " >&6; } 6606if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6607 $as_echo_n "(cached) " >&6 6608else 6609 if test -n "$ac_ct_OBJDUMP"; then 6610 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6611else 6612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6613for as_dir in $PATH 6614do 6615 IFS=$as_save_IFS 6616 test -z "$as_dir" && as_dir=. 6617 for ac_exec_ext in '' $ac_executable_extensions; do 6618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6619 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6621 break 2 6622 fi 6623done 6624 done 6625IFS=$as_save_IFS 6626 6627fi 6628fi 6629ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6630if test -n "$ac_ct_OBJDUMP"; then 6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6632$as_echo "$ac_ct_OBJDUMP" >&6; } 6633else 6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6635$as_echo "no" >&6; } 6636fi 6637 6638 if test "x$ac_ct_OBJDUMP" = x; then 6639 OBJDUMP="false" 6640 else 6641 case $cross_compiling:$ac_tool_warned in 6642yes:) 6643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6645ac_tool_warned=yes ;; 6646esac 6647 OBJDUMP=$ac_ct_OBJDUMP 6648 fi 6649else 6650 OBJDUMP="$ac_cv_prog_OBJDUMP" 6651fi 6652 6653test -z "$OBJDUMP" && OBJDUMP=objdump 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6664$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6665if ${lt_cv_deplibs_check_method+:} false; then : 6666 $as_echo_n "(cached) " >&6 6667else 6668 lt_cv_file_magic_cmd='$MAGIC_CMD' 6669lt_cv_file_magic_test_file= 6670lt_cv_deplibs_check_method='unknown' 6671# Need to set the preceding variable on all platforms that support 6672# interlibrary dependencies. 6673# 'none' -- dependencies not supported. 6674# 'unknown' -- same as none, but documents that we really don't know. 6675# 'pass_all' -- all dependencies passed with no checks. 6676# 'test_compile' -- check by making test program. 6677# 'file_magic [[regex]]' -- check by looking for files in library path 6678# that responds to the $file_magic_cmd with a given extended regex. 6679# If you have 'file' or equivalent on your system and you're not sure 6680# whether 'pass_all' will *always* work, you probably want this one. 6681 6682case $host_os in 6683aix[4-9]*) 6684 lt_cv_deplibs_check_method=pass_all 6685 ;; 6686 6687beos*) 6688 lt_cv_deplibs_check_method=pass_all 6689 ;; 6690 6691bsdi[45]*) 6692 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6693 lt_cv_file_magic_cmd='/usr/bin/file -L' 6694 lt_cv_file_magic_test_file=/shlib/libc.so 6695 ;; 6696 6697cygwin*) 6698 # func_win32_libid is a shell function defined in ltmain.sh 6699 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6700 lt_cv_file_magic_cmd='func_win32_libid' 6701 ;; 6702 6703mingw* | pw32*) 6704 # Base MSYS/MinGW do not provide the 'file' command needed by 6705 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6706 # unless we find 'file', for example because we are cross-compiling. 6707 if ( file / ) >/dev/null 2>&1; then 6708 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6709 lt_cv_file_magic_cmd='func_win32_libid' 6710 else 6711 # Keep this pattern in sync with the one in func_win32_libid. 6712 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6713 lt_cv_file_magic_cmd='$OBJDUMP -f' 6714 fi 6715 ;; 6716 6717cegcc*) 6718 # use the weaker test based on 'objdump'. See mingw*. 6719 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6720 lt_cv_file_magic_cmd='$OBJDUMP -f' 6721 ;; 6722 6723darwin* | rhapsody*) 6724 lt_cv_deplibs_check_method=pass_all 6725 ;; 6726 6727freebsd* | dragonfly*) 6728 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6729 case $host_cpu in 6730 i*86 ) 6731 # Not sure whether the presence of OpenBSD here was a mistake. 6732 # Let's accept both of them until this is cleared up. 6733 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6734 lt_cv_file_magic_cmd=/usr/bin/file 6735 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6736 ;; 6737 esac 6738 else 6739 lt_cv_deplibs_check_method=pass_all 6740 fi 6741 ;; 6742 6743haiku*) 6744 lt_cv_deplibs_check_method=pass_all 6745 ;; 6746 6747hpux10.20* | hpux11*) 6748 lt_cv_file_magic_cmd=/usr/bin/file 6749 case $host_cpu in 6750 ia64*) 6751 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6752 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6753 ;; 6754 hppa*64*) 6755 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]' 6756 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6757 ;; 6758 *) 6759 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6760 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6761 ;; 6762 esac 6763 ;; 6764 6765interix[3-9]*) 6766 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6767 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6768 ;; 6769 6770irix5* | irix6* | nonstopux*) 6771 case $LD in 6772 *-32|*"-32 ") libmagic=32-bit;; 6773 *-n32|*"-n32 ") libmagic=N32;; 6774 *-64|*"-64 ") libmagic=64-bit;; 6775 *) libmagic=never-match;; 6776 esac 6777 lt_cv_deplibs_check_method=pass_all 6778 ;; 6779 6780# This must be glibc/ELF. 6781linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6782 lt_cv_deplibs_check_method=pass_all 6783 ;; 6784 6785netbsd*) 6786 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6787 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6788 else 6789 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6790 fi 6791 ;; 6792 6793newos6*) 6794 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6795 lt_cv_file_magic_cmd=/usr/bin/file 6796 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6797 ;; 6798 6799*nto* | *qnx*) 6800 lt_cv_deplibs_check_method=pass_all 6801 ;; 6802 6803openbsd* | bitrig*) 6804 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6805 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6806 else 6807 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6808 fi 6809 ;; 6810 6811osf3* | osf4* | osf5*) 6812 lt_cv_deplibs_check_method=pass_all 6813 ;; 6814 6815rdos*) 6816 lt_cv_deplibs_check_method=pass_all 6817 ;; 6818 6819solaris*) 6820 lt_cv_deplibs_check_method=pass_all 6821 ;; 6822 6823sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6824 lt_cv_deplibs_check_method=pass_all 6825 ;; 6826 6827sysv4 | sysv4.3*) 6828 case $host_vendor in 6829 motorola) 6830 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]' 6831 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6832 ;; 6833 ncr) 6834 lt_cv_deplibs_check_method=pass_all 6835 ;; 6836 sequent) 6837 lt_cv_file_magic_cmd='/bin/file' 6838 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6839 ;; 6840 sni) 6841 lt_cv_file_magic_cmd='/bin/file' 6842 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6843 lt_cv_file_magic_test_file=/lib/libc.so 6844 ;; 6845 siemens) 6846 lt_cv_deplibs_check_method=pass_all 6847 ;; 6848 pc) 6849 lt_cv_deplibs_check_method=pass_all 6850 ;; 6851 esac 6852 ;; 6853 6854tpf*) 6855 lt_cv_deplibs_check_method=pass_all 6856 ;; 6857os2*) 6858 lt_cv_deplibs_check_method=pass_all 6859 ;; 6860esac 6861 6862fi 6863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6864$as_echo "$lt_cv_deplibs_check_method" >&6; } 6865 6866file_magic_glob= 6867want_nocaseglob=no 6868if test "$build" = "$host"; then 6869 case $host_os in 6870 mingw* | pw32*) 6871 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6872 want_nocaseglob=yes 6873 else 6874 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6875 fi 6876 ;; 6877 esac 6878fi 6879 6880file_magic_cmd=$lt_cv_file_magic_cmd 6881deplibs_check_method=$lt_cv_deplibs_check_method 6882test -z "$deplibs_check_method" && deplibs_check_method=unknown 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905if test -n "$ac_tool_prefix"; then 6906 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6907set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6909$as_echo_n "checking for $ac_word... " >&6; } 6910if ${ac_cv_prog_DLLTOOL+:} false; then : 6911 $as_echo_n "(cached) " >&6 6912else 6913 if test -n "$DLLTOOL"; then 6914 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6915else 6916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6917for as_dir in $PATH 6918do 6919 IFS=$as_save_IFS 6920 test -z "$as_dir" && as_dir=. 6921 for ac_exec_ext in '' $ac_executable_extensions; do 6922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6923 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6925 break 2 6926 fi 6927done 6928 done 6929IFS=$as_save_IFS 6930 6931fi 6932fi 6933DLLTOOL=$ac_cv_prog_DLLTOOL 6934if test -n "$DLLTOOL"; then 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6936$as_echo "$DLLTOOL" >&6; } 6937else 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6939$as_echo "no" >&6; } 6940fi 6941 6942 6943fi 6944if test -z "$ac_cv_prog_DLLTOOL"; then 6945 ac_ct_DLLTOOL=$DLLTOOL 6946 # Extract the first word of "dlltool", so it can be a program name with args. 6947set dummy dlltool; ac_word=$2 6948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6949$as_echo_n "checking for $ac_word... " >&6; } 6950if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6951 $as_echo_n "(cached) " >&6 6952else 6953 if test -n "$ac_ct_DLLTOOL"; then 6954 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6955else 6956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6957for as_dir in $PATH 6958do 6959 IFS=$as_save_IFS 6960 test -z "$as_dir" && as_dir=. 6961 for ac_exec_ext in '' $ac_executable_extensions; do 6962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6963 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6965 break 2 6966 fi 6967done 6968 done 6969IFS=$as_save_IFS 6970 6971fi 6972fi 6973ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6974if test -n "$ac_ct_DLLTOOL"; then 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6976$as_echo "$ac_ct_DLLTOOL" >&6; } 6977else 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6979$as_echo "no" >&6; } 6980fi 6981 6982 if test "x$ac_ct_DLLTOOL" = x; then 6983 DLLTOOL="false" 6984 else 6985 case $cross_compiling:$ac_tool_warned in 6986yes:) 6987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6989ac_tool_warned=yes ;; 6990esac 6991 DLLTOOL=$ac_ct_DLLTOOL 6992 fi 6993else 6994 DLLTOOL="$ac_cv_prog_DLLTOOL" 6995fi 6996 6997test -z "$DLLTOOL" && DLLTOOL=dlltool 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7009$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7010if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7011 $as_echo_n "(cached) " >&6 7012else 7013 lt_cv_sharedlib_from_linklib_cmd='unknown' 7014 7015case $host_os in 7016cygwin* | mingw* | pw32* | cegcc*) 7017 # two different shell functions defined in ltmain.sh; 7018 # decide which one to use based on capabilities of $DLLTOOL 7019 case `$DLLTOOL --help 2>&1` in 7020 *--identify-strict*) 7021 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7022 ;; 7023 *) 7024 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7025 ;; 7026 esac 7027 ;; 7028*) 7029 # fallback: assume linklib IS sharedlib 7030 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7031 ;; 7032esac 7033 7034fi 7035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7036$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7037sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7038test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7039 7040 7041 7042 7043 7044 7045 7046if test -n "$ac_tool_prefix"; then 7047 for ac_prog in ar 7048 do 7049 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7050set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7052$as_echo_n "checking for $ac_word... " >&6; } 7053if ${ac_cv_prog_AR+:} false; then : 7054 $as_echo_n "(cached) " >&6 7055else 7056 if test -n "$AR"; then 7057 ac_cv_prog_AR="$AR" # Let the user override the test. 7058else 7059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7060for as_dir in $PATH 7061do 7062 IFS=$as_save_IFS 7063 test -z "$as_dir" && as_dir=. 7064 for ac_exec_ext in '' $ac_executable_extensions; do 7065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7066 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7068 break 2 7069 fi 7070done 7071 done 7072IFS=$as_save_IFS 7073 7074fi 7075fi 7076AR=$ac_cv_prog_AR 7077if test -n "$AR"; then 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7079$as_echo "$AR" >&6; } 7080else 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7082$as_echo "no" >&6; } 7083fi 7084 7085 7086 test -n "$AR" && break 7087 done 7088fi 7089if test -z "$AR"; then 7090 ac_ct_AR=$AR 7091 for ac_prog in ar 7092do 7093 # Extract the first word of "$ac_prog", so it can be a program name with args. 7094set dummy $ac_prog; ac_word=$2 7095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7096$as_echo_n "checking for $ac_word... " >&6; } 7097if ${ac_cv_prog_ac_ct_AR+:} false; then : 7098 $as_echo_n "(cached) " >&6 7099else 7100 if test -n "$ac_ct_AR"; then 7101 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7102else 7103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7104for as_dir in $PATH 7105do 7106 IFS=$as_save_IFS 7107 test -z "$as_dir" && as_dir=. 7108 for ac_exec_ext in '' $ac_executable_extensions; do 7109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7110 ac_cv_prog_ac_ct_AR="$ac_prog" 7111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7112 break 2 7113 fi 7114done 7115 done 7116IFS=$as_save_IFS 7117 7118fi 7119fi 7120ac_ct_AR=$ac_cv_prog_ac_ct_AR 7121if test -n "$ac_ct_AR"; then 7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7123$as_echo "$ac_ct_AR" >&6; } 7124else 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7126$as_echo "no" >&6; } 7127fi 7128 7129 7130 test -n "$ac_ct_AR" && break 7131done 7132 7133 if test "x$ac_ct_AR" = x; then 7134 AR="false" 7135 else 7136 case $cross_compiling:$ac_tool_warned in 7137yes:) 7138{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7140ac_tool_warned=yes ;; 7141esac 7142 AR=$ac_ct_AR 7143 fi 7144fi 7145 7146: ${AR=ar} 7147: ${AR_FLAGS=cru} 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7160$as_echo_n "checking for archiver @FILE support... " >&6; } 7161if ${lt_cv_ar_at_file+:} false; then : 7162 $as_echo_n "(cached) " >&6 7163else 7164 lt_cv_ar_at_file=no 7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7166/* end confdefs.h. */ 7167 7168int 7169main () 7170{ 7171 7172 ; 7173 return 0; 7174} 7175_ACEOF 7176if ac_fn_c_try_compile "$LINENO"; then : 7177 echo conftest.$ac_objext > conftest.lst 7178 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7180 (eval $lt_ar_try) 2>&5 7181 ac_status=$? 7182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7183 test $ac_status = 0; } 7184 if test 0 -eq "$ac_status"; then 7185 # Ensure the archiver fails upon bogus file names. 7186 rm -f conftest.$ac_objext libconftest.a 7187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7188 (eval $lt_ar_try) 2>&5 7189 ac_status=$? 7190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7191 test $ac_status = 0; } 7192 if test 0 -ne "$ac_status"; then 7193 lt_cv_ar_at_file=@ 7194 fi 7195 fi 7196 rm -f conftest.* libconftest.a 7197 7198fi 7199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7200 7201fi 7202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7203$as_echo "$lt_cv_ar_at_file" >&6; } 7204 7205if test no = "$lt_cv_ar_at_file"; then 7206 archiver_list_spec= 7207else 7208 archiver_list_spec=$lt_cv_ar_at_file 7209fi 7210 7211 7212 7213 7214 7215 7216 7217if test -n "$ac_tool_prefix"; then 7218 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7219set dummy ${ac_tool_prefix}strip; ac_word=$2 7220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7221$as_echo_n "checking for $ac_word... " >&6; } 7222if ${ac_cv_prog_STRIP+:} false; then : 7223 $as_echo_n "(cached) " >&6 7224else 7225 if test -n "$STRIP"; then 7226 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7227else 7228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7229for as_dir in $PATH 7230do 7231 IFS=$as_save_IFS 7232 test -z "$as_dir" && as_dir=. 7233 for ac_exec_ext in '' $ac_executable_extensions; do 7234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7235 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7237 break 2 7238 fi 7239done 7240 done 7241IFS=$as_save_IFS 7242 7243fi 7244fi 7245STRIP=$ac_cv_prog_STRIP 7246if test -n "$STRIP"; then 7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7248$as_echo "$STRIP" >&6; } 7249else 7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7251$as_echo "no" >&6; } 7252fi 7253 7254 7255fi 7256if test -z "$ac_cv_prog_STRIP"; then 7257 ac_ct_STRIP=$STRIP 7258 # Extract the first word of "strip", so it can be a program name with args. 7259set dummy strip; ac_word=$2 7260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7261$as_echo_n "checking for $ac_word... " >&6; } 7262if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7263 $as_echo_n "(cached) " >&6 7264else 7265 if test -n "$ac_ct_STRIP"; then 7266 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7267else 7268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7269for as_dir in $PATH 7270do 7271 IFS=$as_save_IFS 7272 test -z "$as_dir" && as_dir=. 7273 for ac_exec_ext in '' $ac_executable_extensions; do 7274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7275 ac_cv_prog_ac_ct_STRIP="strip" 7276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7277 break 2 7278 fi 7279done 7280 done 7281IFS=$as_save_IFS 7282 7283fi 7284fi 7285ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7286if test -n "$ac_ct_STRIP"; then 7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7288$as_echo "$ac_ct_STRIP" >&6; } 7289else 7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7291$as_echo "no" >&6; } 7292fi 7293 7294 if test "x$ac_ct_STRIP" = x; then 7295 STRIP=":" 7296 else 7297 case $cross_compiling:$ac_tool_warned in 7298yes:) 7299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7301ac_tool_warned=yes ;; 7302esac 7303 STRIP=$ac_ct_STRIP 7304 fi 7305else 7306 STRIP="$ac_cv_prog_STRIP" 7307fi 7308 7309test -z "$STRIP" && STRIP=: 7310 7311 7312 7313 7314 7315 7316if test -n "$ac_tool_prefix"; then 7317 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7318set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7320$as_echo_n "checking for $ac_word... " >&6; } 7321if ${ac_cv_prog_RANLIB+:} false; then : 7322 $as_echo_n "(cached) " >&6 7323else 7324 if test -n "$RANLIB"; then 7325 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7326else 7327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7328for as_dir in $PATH 7329do 7330 IFS=$as_save_IFS 7331 test -z "$as_dir" && as_dir=. 7332 for ac_exec_ext in '' $ac_executable_extensions; do 7333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7334 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7336 break 2 7337 fi 7338done 7339 done 7340IFS=$as_save_IFS 7341 7342fi 7343fi 7344RANLIB=$ac_cv_prog_RANLIB 7345if test -n "$RANLIB"; then 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7347$as_echo "$RANLIB" >&6; } 7348else 7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7350$as_echo "no" >&6; } 7351fi 7352 7353 7354fi 7355if test -z "$ac_cv_prog_RANLIB"; then 7356 ac_ct_RANLIB=$RANLIB 7357 # Extract the first word of "ranlib", so it can be a program name with args. 7358set dummy ranlib; ac_word=$2 7359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7360$as_echo_n "checking for $ac_word... " >&6; } 7361if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7362 $as_echo_n "(cached) " >&6 7363else 7364 if test -n "$ac_ct_RANLIB"; then 7365 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7366else 7367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7368for as_dir in $PATH 7369do 7370 IFS=$as_save_IFS 7371 test -z "$as_dir" && as_dir=. 7372 for ac_exec_ext in '' $ac_executable_extensions; do 7373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7374 ac_cv_prog_ac_ct_RANLIB="ranlib" 7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7376 break 2 7377 fi 7378done 7379 done 7380IFS=$as_save_IFS 7381 7382fi 7383fi 7384ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7385if test -n "$ac_ct_RANLIB"; then 7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7387$as_echo "$ac_ct_RANLIB" >&6; } 7388else 7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7390$as_echo "no" >&6; } 7391fi 7392 7393 if test "x$ac_ct_RANLIB" = x; then 7394 RANLIB=":" 7395 else 7396 case $cross_compiling:$ac_tool_warned in 7397yes:) 7398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7400ac_tool_warned=yes ;; 7401esac 7402 RANLIB=$ac_ct_RANLIB 7403 fi 7404else 7405 RANLIB="$ac_cv_prog_RANLIB" 7406fi 7407 7408test -z "$RANLIB" && RANLIB=: 7409 7410 7411 7412 7413 7414 7415# Determine commands to create old-style static archives. 7416old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7417old_postinstall_cmds='chmod 644 $oldlib' 7418old_postuninstall_cmds= 7419 7420if test -n "$RANLIB"; then 7421 case $host_os in 7422 bitrig* | openbsd*) 7423 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7424 ;; 7425 *) 7426 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7427 ;; 7428 esac 7429 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7430fi 7431 7432case $host_os in 7433 darwin*) 7434 lock_old_archive_extraction=yes ;; 7435 *) 7436 lock_old_archive_extraction=no ;; 7437esac 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477# If no C compiler was specified, use CC. 7478LTCC=${LTCC-"$CC"} 7479 7480# If no C compiler flags were specified, use CFLAGS. 7481LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7482 7483# Allow CC to be a program name with arguments. 7484compiler=$CC 7485 7486 7487# Check for command to grab the raw symbol name followed by C symbol from nm. 7488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7489$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7490if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7491 $as_echo_n "(cached) " >&6 7492else 7493 7494# These are sane defaults that work on at least a few old systems. 7495# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7496 7497# Character class describing NM global symbol codes. 7498symcode='[BCDEGRST]' 7499 7500# Regexp to match symbols that can be accessed directly from C. 7501sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7502 7503# Define system-specific variables. 7504case $host_os in 7505aix*) 7506 symcode='[BCDT]' 7507 ;; 7508cygwin* | mingw* | pw32* | cegcc*) 7509 symcode='[ABCDGISTW]' 7510 ;; 7511hpux*) 7512 if test ia64 = "$host_cpu"; then 7513 symcode='[ABCDEGRST]' 7514 fi 7515 ;; 7516irix* | nonstopux*) 7517 symcode='[BCDEGRST]' 7518 ;; 7519osf*) 7520 symcode='[BCDEGQRST]' 7521 ;; 7522solaris*) 7523 symcode='[BDRT]' 7524 ;; 7525sco3.2v5*) 7526 symcode='[DT]' 7527 ;; 7528sysv4.2uw2*) 7529 symcode='[DT]' 7530 ;; 7531sysv5* | sco5v6* | unixware* | OpenUNIX*) 7532 symcode='[ABDT]' 7533 ;; 7534sysv4) 7535 symcode='[DFNSTU]' 7536 ;; 7537esac 7538 7539# If we're using GNU nm, then use its standard symbol codes. 7540case `$NM -V 2>&1` in 7541*GNU* | *'with BFD'*) 7542 symcode='[ABCDGIRSTW]' ;; 7543esac 7544 7545if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7546 # Gets list of data symbols to import. 7547 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7548 # Adjust the below global symbol transforms to fixup imported variables. 7549 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7550 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7551 lt_c_name_lib_hook="\ 7552 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7553 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7554else 7555 # Disable hooks by default. 7556 lt_cv_sys_global_symbol_to_import= 7557 lt_cdecl_hook= 7558 lt_c_name_hook= 7559 lt_c_name_lib_hook= 7560fi 7561 7562# Transform an extracted symbol line into a proper C declaration. 7563# Some systems (esp. on ia64) link data and code symbols differently, 7564# so use this general approach. 7565lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7566$lt_cdecl_hook\ 7567" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7568" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7569 7570# Transform an extracted symbol line into symbol name and symbol address 7571lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7572$lt_c_name_hook\ 7573" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7574" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7575 7576# Transform an extracted symbol line into symbol name with lib prefix and 7577# symbol address. 7578lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7579$lt_c_name_lib_hook\ 7580" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7581" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7582" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7583 7584# Handle CRLF in mingw tool chain 7585opt_cr= 7586case $build_os in 7587mingw*) 7588 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7589 ;; 7590esac 7591 7592# Try without a prefix underscore, then with it. 7593for ac_symprfx in "" "_"; do 7594 7595 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7596 symxfrm="\\1 $ac_symprfx\\2 \\2" 7597 7598 # Write the raw and C identifiers. 7599 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7600 # Fake it for dumpbin and say T for any non-static function, 7601 # D for any global variable and I for any imported variable. 7602 # Also find C++ and __fastcall symbols from MSVC++, 7603 # which start with @ or ?. 7604 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7605" {last_section=section; section=\$ 3};"\ 7606" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7607" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7608" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7609" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7610" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7611" \$ 0!~/External *\|/{next};"\ 7612" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7613" {if(hide[section]) next};"\ 7614" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7615" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7616" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7617" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7618" ' prfx=^$ac_symprfx" 7619 else 7620 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7621 fi 7622 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7623 7624 # Check to see that the pipe works correctly. 7625 pipe_works=no 7626 7627 rm -f conftest* 7628 cat > conftest.$ac_ext <<_LT_EOF 7629#ifdef __cplusplus 7630extern "C" { 7631#endif 7632char nm_test_var; 7633void nm_test_func(void); 7634void nm_test_func(void){} 7635#ifdef __cplusplus 7636} 7637#endif 7638int main(){nm_test_var='a';nm_test_func();return(0);} 7639_LT_EOF 7640 7641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7642 (eval $ac_compile) 2>&5 7643 ac_status=$? 7644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7645 test $ac_status = 0; }; then 7646 # Now try to grab the symbols. 7647 nlist=conftest.nm 7648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7649 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7650 ac_status=$? 7651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7652 test $ac_status = 0; } && test -s "$nlist"; then 7653 # Try sorting and uniquifying the output. 7654 if sort "$nlist" | uniq > "$nlist"T; then 7655 mv -f "$nlist"T "$nlist" 7656 else 7657 rm -f "$nlist"T 7658 fi 7659 7660 # Make sure that we snagged all the symbols we need. 7661 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7662 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7663 cat <<_LT_EOF > conftest.$ac_ext 7664/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7665#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7666/* DATA imports from DLLs on WIN32 can't be const, because runtime 7667 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7668# define LT_DLSYM_CONST 7669#elif defined __osf__ 7670/* This system does not cope well with relocations in const data. */ 7671# define LT_DLSYM_CONST 7672#else 7673# define LT_DLSYM_CONST const 7674#endif 7675 7676#ifdef __cplusplus 7677extern "C" { 7678#endif 7679 7680_LT_EOF 7681 # Now generate the symbol file. 7682 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7683 7684 cat <<_LT_EOF >> conftest.$ac_ext 7685 7686/* The mapping between symbol names and symbols. */ 7687LT_DLSYM_CONST struct { 7688 const char *name; 7689 void *address; 7690} 7691lt__PROGRAM__LTX_preloaded_symbols[] = 7692{ 7693 { "@PROGRAM@", (void *) 0 }, 7694_LT_EOF 7695 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7696 cat <<\_LT_EOF >> conftest.$ac_ext 7697 {0, (void *) 0} 7698}; 7699 7700/* This works around a problem in FreeBSD linker */ 7701#ifdef FREEBSD_WORKAROUND 7702static const void *lt_preloaded_setup() { 7703 return lt__PROGRAM__LTX_preloaded_symbols; 7704} 7705#endif 7706 7707#ifdef __cplusplus 7708} 7709#endif 7710_LT_EOF 7711 # Now try linking the two files. 7712 mv conftest.$ac_objext conftstm.$ac_objext 7713 lt_globsym_save_LIBS=$LIBS 7714 lt_globsym_save_CFLAGS=$CFLAGS 7715 LIBS=conftstm.$ac_objext 7716 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7718 (eval $ac_link) 2>&5 7719 ac_status=$? 7720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7721 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7722 pipe_works=yes 7723 fi 7724 LIBS=$lt_globsym_save_LIBS 7725 CFLAGS=$lt_globsym_save_CFLAGS 7726 else 7727 echo "cannot find nm_test_func in $nlist" >&5 7728 fi 7729 else 7730 echo "cannot find nm_test_var in $nlist" >&5 7731 fi 7732 else 7733 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7734 fi 7735 else 7736 echo "$progname: failed program was:" >&5 7737 cat conftest.$ac_ext >&5 7738 fi 7739 rm -rf conftest* conftst* 7740 7741 # Do not use the global_symbol_pipe unless it works. 7742 if test yes = "$pipe_works"; then 7743 break 7744 else 7745 lt_cv_sys_global_symbol_pipe= 7746 fi 7747done 7748 7749fi 7750 7751if test -z "$lt_cv_sys_global_symbol_pipe"; then 7752 lt_cv_sys_global_symbol_to_cdecl= 7753fi 7754if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7756$as_echo "failed" >&6; } 7757else 7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7759$as_echo "ok" >&6; } 7760fi 7761 7762# Response file support. 7763if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7764 nm_file_list_spec='@' 7765elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7766 nm_file_list_spec='@' 7767fi 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7806$as_echo_n "checking for sysroot... " >&6; } 7807 7808# Check whether --with-sysroot was given. 7809if test "${with_sysroot+set}" = set; then : 7810 withval=$with_sysroot; 7811else 7812 with_sysroot=no 7813fi 7814 7815 7816lt_sysroot= 7817case $with_sysroot in #( 7818 yes) 7819 if test yes = "$GCC"; then 7820 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7821 fi 7822 ;; #( 7823 /*) 7824 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7825 ;; #( 7826 no|'') 7827 ;; #( 7828 *) 7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7830$as_echo "$with_sysroot" >&6; } 7831 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7832 ;; 7833esac 7834 7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7836$as_echo "${lt_sysroot:-no}" >&6; } 7837 7838 7839 7840 7841 7842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7843$as_echo_n "checking for a working dd... " >&6; } 7844if ${ac_cv_path_lt_DD+:} false; then : 7845 $as_echo_n "(cached) " >&6 7846else 7847 printf 0123456789abcdef0123456789abcdef >conftest.i 7848cat conftest.i conftest.i >conftest2.i 7849: ${lt_DD:=$DD} 7850if test -z "$lt_DD"; then 7851 ac_path_lt_DD_found=false 7852 # Loop through the user's path and test for each of PROGNAME-LIST 7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7854for as_dir in $PATH 7855do 7856 IFS=$as_save_IFS 7857 test -z "$as_dir" && as_dir=. 7858 for ac_prog in dd; do 7859 for ac_exec_ext in '' $ac_executable_extensions; do 7860 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7861 as_fn_executable_p "$ac_path_lt_DD" || continue 7862if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7863 cmp -s conftest.i conftest.out \ 7864 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7865fi 7866 $ac_path_lt_DD_found && break 3 7867 done 7868 done 7869 done 7870IFS=$as_save_IFS 7871 if test -z "$ac_cv_path_lt_DD"; then 7872 : 7873 fi 7874else 7875 ac_cv_path_lt_DD=$lt_DD 7876fi 7877 7878rm -f conftest.i conftest2.i conftest.out 7879fi 7880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7881$as_echo "$ac_cv_path_lt_DD" >&6; } 7882 7883 7884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7885$as_echo_n "checking how to truncate binary pipes... " >&6; } 7886if ${lt_cv_truncate_bin+:} false; then : 7887 $as_echo_n "(cached) " >&6 7888else 7889 printf 0123456789abcdef0123456789abcdef >conftest.i 7890cat conftest.i conftest.i >conftest2.i 7891lt_cv_truncate_bin= 7892if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7893 cmp -s conftest.i conftest.out \ 7894 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7895fi 7896rm -f conftest.i conftest2.i conftest.out 7897test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7898fi 7899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7900$as_echo "$lt_cv_truncate_bin" >&6; } 7901 7902 7903 7904 7905 7906 7907 7908# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7909func_cc_basename () 7910{ 7911 for cc_temp in $*""; do 7912 case $cc_temp in 7913 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7914 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7915 \-*) ;; 7916 *) break;; 7917 esac 7918 done 7919 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7920} 7921 7922# Check whether --enable-libtool-lock was given. 7923if test "${enable_libtool_lock+set}" = set; then : 7924 enableval=$enable_libtool_lock; 7925fi 7926 7927test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7928 7929# Some flags need to be propagated to the compiler or linker for good 7930# libtool support. 7931case $host in 7932ia64-*-hpux*) 7933 # Find out what ABI is being produced by ac_compile, and set mode 7934 # options accordingly. 7935 echo 'int i;' > conftest.$ac_ext 7936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7937 (eval $ac_compile) 2>&5 7938 ac_status=$? 7939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7940 test $ac_status = 0; }; then 7941 case `/usr/bin/file conftest.$ac_objext` in 7942 *ELF-32*) 7943 HPUX_IA64_MODE=32 7944 ;; 7945 *ELF-64*) 7946 HPUX_IA64_MODE=64 7947 ;; 7948 esac 7949 fi 7950 rm -rf conftest* 7951 ;; 7952*-*-irix6*) 7953 # Find out what ABI is being produced by ac_compile, and set linker 7954 # options accordingly. 7955 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7957 (eval $ac_compile) 2>&5 7958 ac_status=$? 7959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7960 test $ac_status = 0; }; then 7961 if test yes = "$lt_cv_prog_gnu_ld"; then 7962 case `/usr/bin/file conftest.$ac_objext` in 7963 *32-bit*) 7964 LD="${LD-ld} -melf32bsmip" 7965 ;; 7966 *N32*) 7967 LD="${LD-ld} -melf32bmipn32" 7968 ;; 7969 *64-bit*) 7970 LD="${LD-ld} -melf64bmip" 7971 ;; 7972 esac 7973 else 7974 case `/usr/bin/file conftest.$ac_objext` in 7975 *32-bit*) 7976 LD="${LD-ld} -32" 7977 ;; 7978 *N32*) 7979 LD="${LD-ld} -n32" 7980 ;; 7981 *64-bit*) 7982 LD="${LD-ld} -64" 7983 ;; 7984 esac 7985 fi 7986 fi 7987 rm -rf conftest* 7988 ;; 7989 7990mips64*-*linux*) 7991 # Find out what ABI is being produced by ac_compile, and set linker 7992 # options accordingly. 7993 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7995 (eval $ac_compile) 2>&5 7996 ac_status=$? 7997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7998 test $ac_status = 0; }; then 7999 emul=elf 8000 case `/usr/bin/file conftest.$ac_objext` in 8001 *32-bit*) 8002 emul="${emul}32" 8003 ;; 8004 *64-bit*) 8005 emul="${emul}64" 8006 ;; 8007 esac 8008 case `/usr/bin/file conftest.$ac_objext` in 8009 *MSB*) 8010 emul="${emul}btsmip" 8011 ;; 8012 *LSB*) 8013 emul="${emul}ltsmip" 8014 ;; 8015 esac 8016 case `/usr/bin/file conftest.$ac_objext` in 8017 *N32*) 8018 emul="${emul}n32" 8019 ;; 8020 esac 8021 LD="${LD-ld} -m $emul" 8022 fi 8023 rm -rf conftest* 8024 ;; 8025 8026x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8027s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8028 # Find out what ABI is being produced by ac_compile, and set linker 8029 # options accordingly. Note that the listed cases only cover the 8030 # situations where additional linker options are needed (such as when 8031 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8032 # vice versa); the common cases where no linker options are needed do 8033 # not appear in the list. 8034 echo 'int i;' > conftest.$ac_ext 8035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8036 (eval $ac_compile) 2>&5 8037 ac_status=$? 8038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8039 test $ac_status = 0; }; then 8040 case `/usr/bin/file conftest.o` in 8041 *32-bit*) 8042 case $host in 8043 x86_64-*kfreebsd*-gnu) 8044 LD="${LD-ld} -m elf_i386_fbsd" 8045 ;; 8046 x86_64-*linux*) 8047 case `/usr/bin/file conftest.o` in 8048 *x86-64*) 8049 LD="${LD-ld} -m elf32_x86_64" 8050 ;; 8051 *) 8052 LD="${LD-ld} -m elf_i386" 8053 ;; 8054 esac 8055 ;; 8056 powerpc64le-*linux*) 8057 LD="${LD-ld} -m elf32lppclinux" 8058 ;; 8059 powerpc64-*linux*) 8060 LD="${LD-ld} -m elf32ppclinux" 8061 ;; 8062 s390x-*linux*) 8063 LD="${LD-ld} -m elf_s390" 8064 ;; 8065 sparc64-*linux*) 8066 LD="${LD-ld} -m elf32_sparc" 8067 ;; 8068 esac 8069 ;; 8070 *64-bit*) 8071 case $host in 8072 x86_64-*kfreebsd*-gnu) 8073 LD="${LD-ld} -m elf_x86_64_fbsd" 8074 ;; 8075 x86_64-*linux*) 8076 LD="${LD-ld} -m elf_x86_64" 8077 ;; 8078 powerpcle-*linux*) 8079 LD="${LD-ld} -m elf64lppc" 8080 ;; 8081 powerpc-*linux*) 8082 LD="${LD-ld} -m elf64ppc" 8083 ;; 8084 s390*-*linux*|s390*-*tpf*) 8085 LD="${LD-ld} -m elf64_s390" 8086 ;; 8087 sparc*-*linux*) 8088 LD="${LD-ld} -m elf64_sparc" 8089 ;; 8090 esac 8091 ;; 8092 esac 8093 fi 8094 rm -rf conftest* 8095 ;; 8096 8097*-*-sco3.2v5*) 8098 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8099 SAVE_CFLAGS=$CFLAGS 8100 CFLAGS="$CFLAGS -belf" 8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8102$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8103if ${lt_cv_cc_needs_belf+:} false; then : 8104 $as_echo_n "(cached) " >&6 8105else 8106 ac_ext=c 8107ac_cpp='$CPP $CPPFLAGS' 8108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8110ac_compiler_gnu=$ac_cv_c_compiler_gnu 8111 8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8113/* end confdefs.h. */ 8114 8115int 8116main () 8117{ 8118 8119 ; 8120 return 0; 8121} 8122_ACEOF 8123if ac_fn_c_try_link "$LINENO"; then : 8124 lt_cv_cc_needs_belf=yes 8125else 8126 lt_cv_cc_needs_belf=no 8127fi 8128rm -f core conftest.err conftest.$ac_objext \ 8129 conftest$ac_exeext conftest.$ac_ext 8130 ac_ext=c 8131ac_cpp='$CPP $CPPFLAGS' 8132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8134ac_compiler_gnu=$ac_cv_c_compiler_gnu 8135 8136fi 8137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8138$as_echo "$lt_cv_cc_needs_belf" >&6; } 8139 if test yes != "$lt_cv_cc_needs_belf"; then 8140 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8141 CFLAGS=$SAVE_CFLAGS 8142 fi 8143 ;; 8144*-*solaris*) 8145 # Find out what ABI is being produced by ac_compile, and set linker 8146 # options accordingly. 8147 echo 'int i;' > conftest.$ac_ext 8148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8149 (eval $ac_compile) 2>&5 8150 ac_status=$? 8151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8152 test $ac_status = 0; }; then 8153 case `/usr/bin/file conftest.o` in 8154 *64-bit*) 8155 case $lt_cv_prog_gnu_ld in 8156 yes*) 8157 case $host in 8158 i?86-*-solaris*|x86_64-*-solaris*) 8159 LD="${LD-ld} -m elf_x86_64" 8160 ;; 8161 sparc*-*-solaris*) 8162 LD="${LD-ld} -m elf64_sparc" 8163 ;; 8164 esac 8165 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8166 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8167 LD=${LD-ld}_sol2 8168 fi 8169 ;; 8170 *) 8171 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8172 LD="${LD-ld} -64" 8173 fi 8174 ;; 8175 esac 8176 ;; 8177 esac 8178 fi 8179 rm -rf conftest* 8180 ;; 8181esac 8182 8183need_locks=$enable_libtool_lock 8184 8185if test -n "$ac_tool_prefix"; then 8186 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8187set dummy ${ac_tool_prefix}mt; ac_word=$2 8188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8189$as_echo_n "checking for $ac_word... " >&6; } 8190if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8191 $as_echo_n "(cached) " >&6 8192else 8193 if test -n "$MANIFEST_TOOL"; then 8194 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8195else 8196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8197for as_dir in $PATH 8198do 8199 IFS=$as_save_IFS 8200 test -z "$as_dir" && as_dir=. 8201 for ac_exec_ext in '' $ac_executable_extensions; do 8202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8203 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8205 break 2 8206 fi 8207done 8208 done 8209IFS=$as_save_IFS 8210 8211fi 8212fi 8213MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8214if test -n "$MANIFEST_TOOL"; then 8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8216$as_echo "$MANIFEST_TOOL" >&6; } 8217else 8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8219$as_echo "no" >&6; } 8220fi 8221 8222 8223fi 8224if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8225 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8226 # Extract the first word of "mt", so it can be a program name with args. 8227set dummy mt; ac_word=$2 8228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8229$as_echo_n "checking for $ac_word... " >&6; } 8230if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8231 $as_echo_n "(cached) " >&6 8232else 8233 if test -n "$ac_ct_MANIFEST_TOOL"; then 8234 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8235else 8236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8237for as_dir in $PATH 8238do 8239 IFS=$as_save_IFS 8240 test -z "$as_dir" && as_dir=. 8241 for ac_exec_ext in '' $ac_executable_extensions; do 8242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8243 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8245 break 2 8246 fi 8247done 8248 done 8249IFS=$as_save_IFS 8250 8251fi 8252fi 8253ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8254if test -n "$ac_ct_MANIFEST_TOOL"; then 8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8256$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8257else 8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8259$as_echo "no" >&6; } 8260fi 8261 8262 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8263 MANIFEST_TOOL=":" 8264 else 8265 case $cross_compiling:$ac_tool_warned in 8266yes:) 8267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8269ac_tool_warned=yes ;; 8270esac 8271 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8272 fi 8273else 8274 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8275fi 8276 8277test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8279$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8280if ${lt_cv_path_mainfest_tool+:} false; then : 8281 $as_echo_n "(cached) " >&6 8282else 8283 lt_cv_path_mainfest_tool=no 8284 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8285 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8286 cat conftest.err >&5 8287 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8288 lt_cv_path_mainfest_tool=yes 8289 fi 8290 rm -f conftest* 8291fi 8292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8293$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8294if test yes != "$lt_cv_path_mainfest_tool"; then 8295 MANIFEST_TOOL=: 8296fi 8297 8298 8299 8300 8301 8302 8303 case $host_os in 8304 rhapsody* | darwin*) 8305 if test -n "$ac_tool_prefix"; then 8306 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8307set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8309$as_echo_n "checking for $ac_word... " >&6; } 8310if ${ac_cv_prog_DSYMUTIL+:} false; then : 8311 $as_echo_n "(cached) " >&6 8312else 8313 if test -n "$DSYMUTIL"; then 8314 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8315else 8316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8317for as_dir in $PATH 8318do 8319 IFS=$as_save_IFS 8320 test -z "$as_dir" && as_dir=. 8321 for ac_exec_ext in '' $ac_executable_extensions; do 8322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8323 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8325 break 2 8326 fi 8327done 8328 done 8329IFS=$as_save_IFS 8330 8331fi 8332fi 8333DSYMUTIL=$ac_cv_prog_DSYMUTIL 8334if test -n "$DSYMUTIL"; then 8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8336$as_echo "$DSYMUTIL" >&6; } 8337else 8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8339$as_echo "no" >&6; } 8340fi 8341 8342 8343fi 8344if test -z "$ac_cv_prog_DSYMUTIL"; then 8345 ac_ct_DSYMUTIL=$DSYMUTIL 8346 # Extract the first word of "dsymutil", so it can be a program name with args. 8347set dummy dsymutil; ac_word=$2 8348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8349$as_echo_n "checking for $ac_word... " >&6; } 8350if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8351 $as_echo_n "(cached) " >&6 8352else 8353 if test -n "$ac_ct_DSYMUTIL"; then 8354 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8355else 8356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8357for as_dir in $PATH 8358do 8359 IFS=$as_save_IFS 8360 test -z "$as_dir" && as_dir=. 8361 for ac_exec_ext in '' $ac_executable_extensions; do 8362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8363 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8365 break 2 8366 fi 8367done 8368 done 8369IFS=$as_save_IFS 8370 8371fi 8372fi 8373ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8374if test -n "$ac_ct_DSYMUTIL"; then 8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8376$as_echo "$ac_ct_DSYMUTIL" >&6; } 8377else 8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8379$as_echo "no" >&6; } 8380fi 8381 8382 if test "x$ac_ct_DSYMUTIL" = x; then 8383 DSYMUTIL=":" 8384 else 8385 case $cross_compiling:$ac_tool_warned in 8386yes:) 8387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8389ac_tool_warned=yes ;; 8390esac 8391 DSYMUTIL=$ac_ct_DSYMUTIL 8392 fi 8393else 8394 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8395fi 8396 8397 if test -n "$ac_tool_prefix"; then 8398 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8399set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8401$as_echo_n "checking for $ac_word... " >&6; } 8402if ${ac_cv_prog_NMEDIT+:} false; then : 8403 $as_echo_n "(cached) " >&6 8404else 8405 if test -n "$NMEDIT"; then 8406 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8407else 8408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8409for as_dir in $PATH 8410do 8411 IFS=$as_save_IFS 8412 test -z "$as_dir" && as_dir=. 8413 for ac_exec_ext in '' $ac_executable_extensions; do 8414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8415 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8417 break 2 8418 fi 8419done 8420 done 8421IFS=$as_save_IFS 8422 8423fi 8424fi 8425NMEDIT=$ac_cv_prog_NMEDIT 8426if test -n "$NMEDIT"; then 8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8428$as_echo "$NMEDIT" >&6; } 8429else 8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8431$as_echo "no" >&6; } 8432fi 8433 8434 8435fi 8436if test -z "$ac_cv_prog_NMEDIT"; then 8437 ac_ct_NMEDIT=$NMEDIT 8438 # Extract the first word of "nmedit", so it can be a program name with args. 8439set dummy nmedit; ac_word=$2 8440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8441$as_echo_n "checking for $ac_word... " >&6; } 8442if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8443 $as_echo_n "(cached) " >&6 8444else 8445 if test -n "$ac_ct_NMEDIT"; then 8446 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8447else 8448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8449for as_dir in $PATH 8450do 8451 IFS=$as_save_IFS 8452 test -z "$as_dir" && as_dir=. 8453 for ac_exec_ext in '' $ac_executable_extensions; do 8454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8455 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8457 break 2 8458 fi 8459done 8460 done 8461IFS=$as_save_IFS 8462 8463fi 8464fi 8465ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8466if test -n "$ac_ct_NMEDIT"; then 8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8468$as_echo "$ac_ct_NMEDIT" >&6; } 8469else 8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8471$as_echo "no" >&6; } 8472fi 8473 8474 if test "x$ac_ct_NMEDIT" = x; then 8475 NMEDIT=":" 8476 else 8477 case $cross_compiling:$ac_tool_warned in 8478yes:) 8479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8481ac_tool_warned=yes ;; 8482esac 8483 NMEDIT=$ac_ct_NMEDIT 8484 fi 8485else 8486 NMEDIT="$ac_cv_prog_NMEDIT" 8487fi 8488 8489 if test -n "$ac_tool_prefix"; then 8490 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8491set dummy ${ac_tool_prefix}lipo; ac_word=$2 8492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8493$as_echo_n "checking for $ac_word... " >&6; } 8494if ${ac_cv_prog_LIPO+:} false; then : 8495 $as_echo_n "(cached) " >&6 8496else 8497 if test -n "$LIPO"; then 8498 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8499else 8500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8501for as_dir in $PATH 8502do 8503 IFS=$as_save_IFS 8504 test -z "$as_dir" && as_dir=. 8505 for ac_exec_ext in '' $ac_executable_extensions; do 8506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8507 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8509 break 2 8510 fi 8511done 8512 done 8513IFS=$as_save_IFS 8514 8515fi 8516fi 8517LIPO=$ac_cv_prog_LIPO 8518if test -n "$LIPO"; then 8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8520$as_echo "$LIPO" >&6; } 8521else 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8523$as_echo "no" >&6; } 8524fi 8525 8526 8527fi 8528if test -z "$ac_cv_prog_LIPO"; then 8529 ac_ct_LIPO=$LIPO 8530 # Extract the first word of "lipo", so it can be a program name with args. 8531set dummy lipo; ac_word=$2 8532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8533$as_echo_n "checking for $ac_word... " >&6; } 8534if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8535 $as_echo_n "(cached) " >&6 8536else 8537 if test -n "$ac_ct_LIPO"; then 8538 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8539else 8540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8541for as_dir in $PATH 8542do 8543 IFS=$as_save_IFS 8544 test -z "$as_dir" && as_dir=. 8545 for ac_exec_ext in '' $ac_executable_extensions; do 8546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8547 ac_cv_prog_ac_ct_LIPO="lipo" 8548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8549 break 2 8550 fi 8551done 8552 done 8553IFS=$as_save_IFS 8554 8555fi 8556fi 8557ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8558if test -n "$ac_ct_LIPO"; then 8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8560$as_echo "$ac_ct_LIPO" >&6; } 8561else 8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8563$as_echo "no" >&6; } 8564fi 8565 8566 if test "x$ac_ct_LIPO" = x; then 8567 LIPO=":" 8568 else 8569 case $cross_compiling:$ac_tool_warned in 8570yes:) 8571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8573ac_tool_warned=yes ;; 8574esac 8575 LIPO=$ac_ct_LIPO 8576 fi 8577else 8578 LIPO="$ac_cv_prog_LIPO" 8579fi 8580 8581 if test -n "$ac_tool_prefix"; then 8582 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8583set dummy ${ac_tool_prefix}otool; ac_word=$2 8584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8585$as_echo_n "checking for $ac_word... " >&6; } 8586if ${ac_cv_prog_OTOOL+:} false; then : 8587 $as_echo_n "(cached) " >&6 8588else 8589 if test -n "$OTOOL"; then 8590 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8591else 8592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8593for as_dir in $PATH 8594do 8595 IFS=$as_save_IFS 8596 test -z "$as_dir" && as_dir=. 8597 for ac_exec_ext in '' $ac_executable_extensions; do 8598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8599 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8601 break 2 8602 fi 8603done 8604 done 8605IFS=$as_save_IFS 8606 8607fi 8608fi 8609OTOOL=$ac_cv_prog_OTOOL 8610if test -n "$OTOOL"; then 8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8612$as_echo "$OTOOL" >&6; } 8613else 8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8615$as_echo "no" >&6; } 8616fi 8617 8618 8619fi 8620if test -z "$ac_cv_prog_OTOOL"; then 8621 ac_ct_OTOOL=$OTOOL 8622 # Extract the first word of "otool", so it can be a program name with args. 8623set dummy otool; ac_word=$2 8624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8625$as_echo_n "checking for $ac_word... " >&6; } 8626if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8627 $as_echo_n "(cached) " >&6 8628else 8629 if test -n "$ac_ct_OTOOL"; then 8630 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8631else 8632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8633for as_dir in $PATH 8634do 8635 IFS=$as_save_IFS 8636 test -z "$as_dir" && as_dir=. 8637 for ac_exec_ext in '' $ac_executable_extensions; do 8638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8639 ac_cv_prog_ac_ct_OTOOL="otool" 8640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8641 break 2 8642 fi 8643done 8644 done 8645IFS=$as_save_IFS 8646 8647fi 8648fi 8649ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8650if test -n "$ac_ct_OTOOL"; then 8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8652$as_echo "$ac_ct_OTOOL" >&6; } 8653else 8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8655$as_echo "no" >&6; } 8656fi 8657 8658 if test "x$ac_ct_OTOOL" = x; then 8659 OTOOL=":" 8660 else 8661 case $cross_compiling:$ac_tool_warned in 8662yes:) 8663{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8664$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8665ac_tool_warned=yes ;; 8666esac 8667 OTOOL=$ac_ct_OTOOL 8668 fi 8669else 8670 OTOOL="$ac_cv_prog_OTOOL" 8671fi 8672 8673 if test -n "$ac_tool_prefix"; then 8674 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8675set dummy ${ac_tool_prefix}otool64; ac_word=$2 8676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8677$as_echo_n "checking for $ac_word... " >&6; } 8678if ${ac_cv_prog_OTOOL64+:} false; then : 8679 $as_echo_n "(cached) " >&6 8680else 8681 if test -n "$OTOOL64"; then 8682 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8683else 8684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8685for as_dir in $PATH 8686do 8687 IFS=$as_save_IFS 8688 test -z "$as_dir" && as_dir=. 8689 for ac_exec_ext in '' $ac_executable_extensions; do 8690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8691 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8693 break 2 8694 fi 8695done 8696 done 8697IFS=$as_save_IFS 8698 8699fi 8700fi 8701OTOOL64=$ac_cv_prog_OTOOL64 8702if test -n "$OTOOL64"; then 8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8704$as_echo "$OTOOL64" >&6; } 8705else 8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8707$as_echo "no" >&6; } 8708fi 8709 8710 8711fi 8712if test -z "$ac_cv_prog_OTOOL64"; then 8713 ac_ct_OTOOL64=$OTOOL64 8714 # Extract the first word of "otool64", so it can be a program name with args. 8715set dummy otool64; ac_word=$2 8716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8717$as_echo_n "checking for $ac_word... " >&6; } 8718if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8719 $as_echo_n "(cached) " >&6 8720else 8721 if test -n "$ac_ct_OTOOL64"; then 8722 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8723else 8724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8725for as_dir in $PATH 8726do 8727 IFS=$as_save_IFS 8728 test -z "$as_dir" && as_dir=. 8729 for ac_exec_ext in '' $ac_executable_extensions; do 8730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8731 ac_cv_prog_ac_ct_OTOOL64="otool64" 8732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8733 break 2 8734 fi 8735done 8736 done 8737IFS=$as_save_IFS 8738 8739fi 8740fi 8741ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8742if test -n "$ac_ct_OTOOL64"; then 8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8744$as_echo "$ac_ct_OTOOL64" >&6; } 8745else 8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8747$as_echo "no" >&6; } 8748fi 8749 8750 if test "x$ac_ct_OTOOL64" = x; then 8751 OTOOL64=":" 8752 else 8753 case $cross_compiling:$ac_tool_warned in 8754yes:) 8755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8757ac_tool_warned=yes ;; 8758esac 8759 OTOOL64=$ac_ct_OTOOL64 8760 fi 8761else 8762 OTOOL64="$ac_cv_prog_OTOOL64" 8763fi 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8792$as_echo_n "checking for -single_module linker flag... " >&6; } 8793if ${lt_cv_apple_cc_single_mod+:} false; then : 8794 $as_echo_n "(cached) " >&6 8795else 8796 lt_cv_apple_cc_single_mod=no 8797 if test -z "$LT_MULTI_MODULE"; then 8798 # By default we will add the -single_module flag. You can override 8799 # by either setting the environment variable LT_MULTI_MODULE 8800 # non-empty at configure time, or by adding -multi_module to the 8801 # link flags. 8802 rm -rf libconftest.dylib* 8803 echo "int foo(void){return 1;}" > conftest.c 8804 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8805-dynamiclib -Wl,-single_module conftest.c" >&5 8806 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8807 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8808 _lt_result=$? 8809 # If there is a non-empty error log, and "single_module" 8810 # appears in it, assume the flag caused a linker warning 8811 if test -s conftest.err && $GREP single_module conftest.err; then 8812 cat conftest.err >&5 8813 # Otherwise, if the output was created with a 0 exit code from 8814 # the compiler, it worked. 8815 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8816 lt_cv_apple_cc_single_mod=yes 8817 else 8818 cat conftest.err >&5 8819 fi 8820 rm -rf libconftest.dylib* 8821 rm -f conftest.* 8822 fi 8823fi 8824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8825$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8826 8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8828$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8829if ${lt_cv_ld_exported_symbols_list+:} false; then : 8830 $as_echo_n "(cached) " >&6 8831else 8832 lt_cv_ld_exported_symbols_list=no 8833 save_LDFLAGS=$LDFLAGS 8834 echo "_main" > conftest.sym 8835 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8837/* end confdefs.h. */ 8838 8839int 8840main () 8841{ 8842 8843 ; 8844 return 0; 8845} 8846_ACEOF 8847if ac_fn_c_try_link "$LINENO"; then : 8848 lt_cv_ld_exported_symbols_list=yes 8849else 8850 lt_cv_ld_exported_symbols_list=no 8851fi 8852rm -f core conftest.err conftest.$ac_objext \ 8853 conftest$ac_exeext conftest.$ac_ext 8854 LDFLAGS=$save_LDFLAGS 8855 8856fi 8857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8858$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8859 8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8861$as_echo_n "checking for -force_load linker flag... " >&6; } 8862if ${lt_cv_ld_force_load+:} false; then : 8863 $as_echo_n "(cached) " >&6 8864else 8865 lt_cv_ld_force_load=no 8866 cat > conftest.c << _LT_EOF 8867int forced_loaded() { return 2;} 8868_LT_EOF 8869 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8870 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8871 echo "$AR cru libconftest.a conftest.o" >&5 8872 $AR cru libconftest.a conftest.o 2>&5 8873 echo "$RANLIB libconftest.a" >&5 8874 $RANLIB libconftest.a 2>&5 8875 cat > conftest.c << _LT_EOF 8876int main() { return 0;} 8877_LT_EOF 8878 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8879 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8880 _lt_result=$? 8881 if test -s conftest.err && $GREP force_load conftest.err; then 8882 cat conftest.err >&5 8883 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8884 lt_cv_ld_force_load=yes 8885 else 8886 cat conftest.err >&5 8887 fi 8888 rm -f conftest.err libconftest.a conftest conftest.c 8889 rm -rf conftest.dSYM 8890 8891fi 8892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8893$as_echo "$lt_cv_ld_force_load" >&6; } 8894 case $host_os in 8895 rhapsody* | darwin1.[012]) 8896 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8897 darwin1.*) 8898 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8899 darwin*) # darwin 5.x on 8900 # if running on 10.5 or later, the deployment target defaults 8901 # to the OS version, if on x86, and 10.4, the deployment 8902 # target defaults to 10.4. Don't you love it? 8903 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8904 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8905 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8906 10.[012][,.]*) 8907 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8908 10.*) 8909 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8910 esac 8911 ;; 8912 esac 8913 if test yes = "$lt_cv_apple_cc_single_mod"; then 8914 _lt_dar_single_mod='$single_module' 8915 fi 8916 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8917 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8918 else 8919 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8920 fi 8921 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8922 _lt_dsymutil='~$DSYMUTIL $lib || :' 8923 else 8924 _lt_dsymutil= 8925 fi 8926 ;; 8927 esac 8928 8929# func_munge_path_list VARIABLE PATH 8930# ----------------------------------- 8931# VARIABLE is name of variable containing _space_ separated list of 8932# directories to be munged by the contents of PATH, which is string 8933# having a format: 8934# "DIR[:DIR]:" 8935# string "DIR[ DIR]" will be prepended to VARIABLE 8936# ":DIR[:DIR]" 8937# string "DIR[ DIR]" will be appended to VARIABLE 8938# "DIRP[:DIRP]::[DIRA:]DIRA" 8939# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8940# "DIRA[ DIRA]" will be appended to VARIABLE 8941# "DIR[:DIR]" 8942# VARIABLE will be replaced by "DIR[ DIR]" 8943func_munge_path_list () 8944{ 8945 case x$2 in 8946 x) 8947 ;; 8948 *:) 8949 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8950 ;; 8951 x:*) 8952 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8953 ;; 8954 *::*) 8955 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8956 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8957 ;; 8958 *) 8959 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8960 ;; 8961 esac 8962} 8963 8964for ac_header in dlfcn.h 8965do : 8966 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8967" 8968if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8969 cat >>confdefs.h <<_ACEOF 8970#define HAVE_DLFCN_H 1 8971_ACEOF 8972 8973fi 8974 8975done 8976 8977 8978 8979 8980 8981# Set options 8982 8983 8984 8985 8986 enable_win32_dll=no 8987 8988 8989 # Check whether --enable-shared was given. 8990if test "${enable_shared+set}" = set; then : 8991 enableval=$enable_shared; p=${PACKAGE-default} 8992 case $enableval in 8993 yes) enable_shared=yes ;; 8994 no) enable_shared=no ;; 8995 *) 8996 enable_shared=no 8997 # Look at the argument we got. We use all the common list separators. 8998 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8999 for pkg in $enableval; do 9000 IFS=$lt_save_ifs 9001 if test "X$pkg" = "X$p"; then 9002 enable_shared=yes 9003 fi 9004 done 9005 IFS=$lt_save_ifs 9006 ;; 9007 esac 9008else 9009 enable_shared=yes 9010fi 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 # Check whether --enable-static was given. 9021if test "${enable_static+set}" = set; then : 9022 enableval=$enable_static; p=${PACKAGE-default} 9023 case $enableval in 9024 yes) enable_static=yes ;; 9025 no) enable_static=no ;; 9026 *) 9027 enable_static=no 9028 # Look at the argument we got. We use all the common list separators. 9029 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9030 for pkg in $enableval; do 9031 IFS=$lt_save_ifs 9032 if test "X$pkg" = "X$p"; then 9033 enable_static=yes 9034 fi 9035 done 9036 IFS=$lt_save_ifs 9037 ;; 9038 esac 9039else 9040 enable_static=yes 9041fi 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052# Check whether --with-pic was given. 9053if test "${with_pic+set}" = set; then : 9054 withval=$with_pic; lt_p=${PACKAGE-default} 9055 case $withval in 9056 yes|no) pic_mode=$withval ;; 9057 *) 9058 pic_mode=default 9059 # Look at the argument we got. We use all the common list separators. 9060 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9061 for lt_pkg in $withval; do 9062 IFS=$lt_save_ifs 9063 if test "X$lt_pkg" = "X$lt_p"; then 9064 pic_mode=yes 9065 fi 9066 done 9067 IFS=$lt_save_ifs 9068 ;; 9069 esac 9070else 9071 pic_mode=default 9072fi 9073 9074 9075 9076 9077 9078 9079 9080 9081 # Check whether --enable-fast-install was given. 9082if test "${enable_fast_install+set}" = set; then : 9083 enableval=$enable_fast_install; p=${PACKAGE-default} 9084 case $enableval in 9085 yes) enable_fast_install=yes ;; 9086 no) enable_fast_install=no ;; 9087 *) 9088 enable_fast_install=no 9089 # Look at the argument we got. We use all the common list separators. 9090 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9091 for pkg in $enableval; do 9092 IFS=$lt_save_ifs 9093 if test "X$pkg" = "X$p"; then 9094 enable_fast_install=yes 9095 fi 9096 done 9097 IFS=$lt_save_ifs 9098 ;; 9099 esac 9100else 9101 enable_fast_install=yes 9102fi 9103 9104 9105 9106 9107 9108 9109 9110 9111 shared_archive_member_spec= 9112case $host,$enable_shared in 9113power*-*-aix[5-9]*,yes) 9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9115$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9116 9117# Check whether --with-aix-soname was given. 9118if test "${with_aix_soname+set}" = set; then : 9119 withval=$with_aix_soname; case $withval in 9120 aix|svr4|both) 9121 ;; 9122 *) 9123 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9124 ;; 9125 esac 9126 lt_cv_with_aix_soname=$with_aix_soname 9127else 9128 if ${lt_cv_with_aix_soname+:} false; then : 9129 $as_echo_n "(cached) " >&6 9130else 9131 lt_cv_with_aix_soname=aix 9132fi 9133 9134 with_aix_soname=$lt_cv_with_aix_soname 9135fi 9136 9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9138$as_echo "$with_aix_soname" >&6; } 9139 if test aix != "$with_aix_soname"; then 9140 # For the AIX way of multilib, we name the shared archive member 9141 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9142 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9143 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9144 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9145 if test 64 = "${OBJECT_MODE-32}"; then 9146 shared_archive_member_spec=shr_64 9147 else 9148 shared_archive_member_spec=shr 9149 fi 9150 fi 9151 ;; 9152*) 9153 with_aix_soname=aix 9154 ;; 9155esac 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166# This can be used to rebuild libtool when needed 9167LIBTOOL_DEPS=$ltmain 9168 9169# Always use our own libtool. 9170LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201test -z "$LN_S" && LN_S="ln -s" 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216if test -n "${ZSH_VERSION+set}"; then 9217 setopt NO_GLOB_SUBST 9218fi 9219 9220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9221$as_echo_n "checking for objdir... " >&6; } 9222if ${lt_cv_objdir+:} false; then : 9223 $as_echo_n "(cached) " >&6 9224else 9225 rm -f .libs 2>/dev/null 9226mkdir .libs 2>/dev/null 9227if test -d .libs; then 9228 lt_cv_objdir=.libs 9229else 9230 # MS-DOS does not allow filenames that begin with a dot. 9231 lt_cv_objdir=_libs 9232fi 9233rmdir .libs 2>/dev/null 9234fi 9235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9236$as_echo "$lt_cv_objdir" >&6; } 9237objdir=$lt_cv_objdir 9238 9239 9240 9241 9242 9243cat >>confdefs.h <<_ACEOF 9244#define LT_OBJDIR "$lt_cv_objdir/" 9245_ACEOF 9246 9247 9248 9249 9250case $host_os in 9251aix3*) 9252 # AIX sometimes has problems with the GCC collect2 program. For some 9253 # reason, if we set the COLLECT_NAMES environment variable, the problems 9254 # vanish in a puff of smoke. 9255 if test set != "${COLLECT_NAMES+set}"; then 9256 COLLECT_NAMES= 9257 export COLLECT_NAMES 9258 fi 9259 ;; 9260esac 9261 9262# Global variables: 9263ofile=libtool 9264can_build_shared=yes 9265 9266# All known linkers require a '.a' archive for static linking (except MSVC, 9267# which needs '.lib'). 9268libext=a 9269 9270with_gnu_ld=$lt_cv_prog_gnu_ld 9271 9272old_CC=$CC 9273old_CFLAGS=$CFLAGS 9274 9275# Set sane defaults for various variables 9276test -z "$CC" && CC=cc 9277test -z "$LTCC" && LTCC=$CC 9278test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9279test -z "$LD" && LD=ld 9280test -z "$ac_objext" && ac_objext=o 9281 9282func_cc_basename $compiler 9283cc_basename=$func_cc_basename_result 9284 9285 9286# Only perform the check for file, if the check method requires it 9287test -z "$MAGIC_CMD" && MAGIC_CMD=file 9288case $deplibs_check_method in 9289file_magic*) 9290 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9292$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9293if ${lt_cv_path_MAGIC_CMD+:} false; then : 9294 $as_echo_n "(cached) " >&6 9295else 9296 case $MAGIC_CMD in 9297[\\/*] | ?:[\\/]*) 9298 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9299 ;; 9300*) 9301 lt_save_MAGIC_CMD=$MAGIC_CMD 9302 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9303 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9304 for ac_dir in $ac_dummy; do 9305 IFS=$lt_save_ifs 9306 test -z "$ac_dir" && ac_dir=. 9307 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9308 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9309 if test -n "$file_magic_test_file"; then 9310 case $deplibs_check_method in 9311 "file_magic "*) 9312 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9313 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9314 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9315 $EGREP "$file_magic_regex" > /dev/null; then 9316 : 9317 else 9318 cat <<_LT_EOF 1>&2 9319 9320*** Warning: the command libtool uses to detect shared libraries, 9321*** $file_magic_cmd, produces output that libtool cannot recognize. 9322*** The result is that libtool may fail to recognize shared libraries 9323*** as such. This will affect the creation of libtool libraries that 9324*** depend on shared libraries, but programs linked with such libtool 9325*** libraries will work regardless of this problem. Nevertheless, you 9326*** may want to report the problem to your system manager and/or to 9327*** bug-libtool@gnu.org 9328 9329_LT_EOF 9330 fi ;; 9331 esac 9332 fi 9333 break 9334 fi 9335 done 9336 IFS=$lt_save_ifs 9337 MAGIC_CMD=$lt_save_MAGIC_CMD 9338 ;; 9339esac 9340fi 9341 9342MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9343if test -n "$MAGIC_CMD"; then 9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9345$as_echo "$MAGIC_CMD" >&6; } 9346else 9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9348$as_echo "no" >&6; } 9349fi 9350 9351 9352 9353 9354 9355if test -z "$lt_cv_path_MAGIC_CMD"; then 9356 if test -n "$ac_tool_prefix"; then 9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9358$as_echo_n "checking for file... " >&6; } 9359if ${lt_cv_path_MAGIC_CMD+:} false; then : 9360 $as_echo_n "(cached) " >&6 9361else 9362 case $MAGIC_CMD in 9363[\\/*] | ?:[\\/]*) 9364 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9365 ;; 9366*) 9367 lt_save_MAGIC_CMD=$MAGIC_CMD 9368 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9369 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9370 for ac_dir in $ac_dummy; do 9371 IFS=$lt_save_ifs 9372 test -z "$ac_dir" && ac_dir=. 9373 if test -f "$ac_dir/file"; then 9374 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9375 if test -n "$file_magic_test_file"; then 9376 case $deplibs_check_method in 9377 "file_magic "*) 9378 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9379 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9380 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9381 $EGREP "$file_magic_regex" > /dev/null; then 9382 : 9383 else 9384 cat <<_LT_EOF 1>&2 9385 9386*** Warning: the command libtool uses to detect shared libraries, 9387*** $file_magic_cmd, produces output that libtool cannot recognize. 9388*** The result is that libtool may fail to recognize shared libraries 9389*** as such. This will affect the creation of libtool libraries that 9390*** depend on shared libraries, but programs linked with such libtool 9391*** libraries will work regardless of this problem. Nevertheless, you 9392*** may want to report the problem to your system manager and/or to 9393*** bug-libtool@gnu.org 9394 9395_LT_EOF 9396 fi ;; 9397 esac 9398 fi 9399 break 9400 fi 9401 done 9402 IFS=$lt_save_ifs 9403 MAGIC_CMD=$lt_save_MAGIC_CMD 9404 ;; 9405esac 9406fi 9407 9408MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9409if test -n "$MAGIC_CMD"; then 9410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9411$as_echo "$MAGIC_CMD" >&6; } 9412else 9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9414$as_echo "no" >&6; } 9415fi 9416 9417 9418 else 9419 MAGIC_CMD=: 9420 fi 9421fi 9422 9423 fi 9424 ;; 9425esac 9426 9427# Use C for the default configuration in the libtool script 9428 9429lt_save_CC=$CC 9430ac_ext=c 9431ac_cpp='$CPP $CPPFLAGS' 9432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9434ac_compiler_gnu=$ac_cv_c_compiler_gnu 9435 9436 9437# Source file extension for C test sources. 9438ac_ext=c 9439 9440# Object file extension for compiled C test sources. 9441objext=o 9442objext=$objext 9443 9444# Code to be used in simple compile tests 9445lt_simple_compile_test_code="int some_variable = 0;" 9446 9447# Code to be used in simple link tests 9448lt_simple_link_test_code='int main(){return(0);}' 9449 9450 9451 9452 9453 9454 9455 9456# If no C compiler was specified, use CC. 9457LTCC=${LTCC-"$CC"} 9458 9459# If no C compiler flags were specified, use CFLAGS. 9460LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9461 9462# Allow CC to be a program name with arguments. 9463compiler=$CC 9464 9465# Save the default compiler, since it gets overwritten when the other 9466# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9467compiler_DEFAULT=$CC 9468 9469# save warnings/boilerplate of simple test code 9470ac_outfile=conftest.$ac_objext 9471echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9472eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9473_lt_compiler_boilerplate=`cat conftest.err` 9474$RM conftest* 9475 9476ac_outfile=conftest.$ac_objext 9477echo "$lt_simple_link_test_code" >conftest.$ac_ext 9478eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9479_lt_linker_boilerplate=`cat conftest.err` 9480$RM -r conftest* 9481 9482 9483if test -n "$compiler"; then 9484 9485lt_prog_compiler_no_builtin_flag= 9486 9487if test yes = "$GCC"; then 9488 case $cc_basename in 9489 nvcc*) 9490 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9491 *) 9492 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9493 esac 9494 9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9496$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9497if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9498 $as_echo_n "(cached) " >&6 9499else 9500 lt_cv_prog_compiler_rtti_exceptions=no 9501 ac_outfile=conftest.$ac_objext 9502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9503 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9504 # Insert the option either (1) after the last *FLAGS variable, or 9505 # (2) before a word containing "conftest.", or (3) at the end. 9506 # Note that $ac_compile itself does not contain backslashes and begins 9507 # with a dollar sign (not a hyphen), so the echo should work correctly. 9508 # The option is referenced via a variable to avoid confusing sed. 9509 lt_compile=`echo "$ac_compile" | $SED \ 9510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9512 -e 's:$: $lt_compiler_flag:'` 9513 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9514 (eval "$lt_compile" 2>conftest.err) 9515 ac_status=$? 9516 cat conftest.err >&5 9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9518 if (exit $ac_status) && test -s "$ac_outfile"; then 9519 # The compiler can only warn and ignore the option if not recognized 9520 # So say no if there are warnings other than the usual output. 9521 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9522 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9523 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9524 lt_cv_prog_compiler_rtti_exceptions=yes 9525 fi 9526 fi 9527 $RM conftest* 9528 9529fi 9530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9531$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9532 9533if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9534 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9535else 9536 : 9537fi 9538 9539fi 9540 9541 9542 9543 9544 9545 9546 lt_prog_compiler_wl= 9547lt_prog_compiler_pic= 9548lt_prog_compiler_static= 9549 9550 9551 if test yes = "$GCC"; then 9552 lt_prog_compiler_wl='-Wl,' 9553 lt_prog_compiler_static='-static' 9554 9555 case $host_os in 9556 aix*) 9557 # All AIX code is PIC. 9558 if test ia64 = "$host_cpu"; then 9559 # AIX 5 now supports IA64 processor 9560 lt_prog_compiler_static='-Bstatic' 9561 fi 9562 lt_prog_compiler_pic='-fPIC' 9563 ;; 9564 9565 amigaos*) 9566 case $host_cpu in 9567 powerpc) 9568 # see comment about AmigaOS4 .so support 9569 lt_prog_compiler_pic='-fPIC' 9570 ;; 9571 m68k) 9572 # FIXME: we need at least 68020 code to build shared libraries, but 9573 # adding the '-m68020' flag to GCC prevents building anything better, 9574 # like '-m68040'. 9575 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9576 ;; 9577 esac 9578 ;; 9579 9580 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9581 # PIC is the default for these OSes. 9582 ;; 9583 9584 mingw* | cygwin* | pw32* | os2* | cegcc*) 9585 # This hack is so that the source file can tell whether it is being 9586 # built for inclusion in a dll (and should export symbols for example). 9587 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9588 # (--disable-auto-import) libraries 9589 lt_prog_compiler_pic='-DDLL_EXPORT' 9590 case $host_os in 9591 os2*) 9592 lt_prog_compiler_static='$wl-static' 9593 ;; 9594 esac 9595 ;; 9596 9597 darwin* | rhapsody*) 9598 # PIC is the default on this platform 9599 # Common symbols not allowed in MH_DYLIB files 9600 lt_prog_compiler_pic='-fno-common' 9601 ;; 9602 9603 haiku*) 9604 # PIC is the default for Haiku. 9605 # The "-static" flag exists, but is broken. 9606 lt_prog_compiler_static= 9607 ;; 9608 9609 hpux*) 9610 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9611 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9612 # sets the default TLS model and affects inlining. 9613 case $host_cpu in 9614 hppa*64*) 9615 # +Z the default 9616 ;; 9617 *) 9618 lt_prog_compiler_pic='-fPIC' 9619 ;; 9620 esac 9621 ;; 9622 9623 interix[3-9]*) 9624 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9625 # Instead, we relocate shared libraries at runtime. 9626 ;; 9627 9628 msdosdjgpp*) 9629 # Just because we use GCC doesn't mean we suddenly get shared libraries 9630 # on systems that don't support them. 9631 lt_prog_compiler_can_build_shared=no 9632 enable_shared=no 9633 ;; 9634 9635 *nto* | *qnx*) 9636 # QNX uses GNU C++, but need to define -shared option too, otherwise 9637 # it will coredump. 9638 lt_prog_compiler_pic='-fPIC -shared' 9639 ;; 9640 9641 sysv4*MP*) 9642 if test -d /usr/nec; then 9643 lt_prog_compiler_pic=-Kconform_pic 9644 fi 9645 ;; 9646 9647 *) 9648 lt_prog_compiler_pic='-fPIC' 9649 ;; 9650 esac 9651 9652 case $cc_basename in 9653 nvcc*) # Cuda Compiler Driver 2.2 9654 lt_prog_compiler_wl='-Xlinker ' 9655 if test -n "$lt_prog_compiler_pic"; then 9656 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9657 fi 9658 ;; 9659 esac 9660 else 9661 # PORTME Check for flag to pass linker flags through the system compiler. 9662 case $host_os in 9663 aix*) 9664 lt_prog_compiler_wl='-Wl,' 9665 if test ia64 = "$host_cpu"; then 9666 # AIX 5 now supports IA64 processor 9667 lt_prog_compiler_static='-Bstatic' 9668 else 9669 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9670 fi 9671 ;; 9672 9673 darwin* | rhapsody*) 9674 # PIC is the default on this platform 9675 # Common symbols not allowed in MH_DYLIB files 9676 lt_prog_compiler_pic='-fno-common' 9677 case $cc_basename in 9678 nagfor*) 9679 # NAG Fortran compiler 9680 lt_prog_compiler_wl='-Wl,-Wl,,' 9681 lt_prog_compiler_pic='-PIC' 9682 lt_prog_compiler_static='-Bstatic' 9683 ;; 9684 esac 9685 ;; 9686 9687 mingw* | cygwin* | pw32* | os2* | cegcc*) 9688 # This hack is so that the source file can tell whether it is being 9689 # built for inclusion in a dll (and should export symbols for example). 9690 lt_prog_compiler_pic='-DDLL_EXPORT' 9691 case $host_os in 9692 os2*) 9693 lt_prog_compiler_static='$wl-static' 9694 ;; 9695 esac 9696 ;; 9697 9698 hpux9* | hpux10* | hpux11*) 9699 lt_prog_compiler_wl='-Wl,' 9700 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9701 # not for PA HP-UX. 9702 case $host_cpu in 9703 hppa*64*|ia64*) 9704 # +Z the default 9705 ;; 9706 *) 9707 lt_prog_compiler_pic='+Z' 9708 ;; 9709 esac 9710 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9711 lt_prog_compiler_static='$wl-a ${wl}archive' 9712 ;; 9713 9714 irix5* | irix6* | nonstopux*) 9715 lt_prog_compiler_wl='-Wl,' 9716 # PIC (with -KPIC) is the default. 9717 lt_prog_compiler_static='-non_shared' 9718 ;; 9719 9720 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9721 case $cc_basename in 9722 # old Intel for x86_64, which still supported -KPIC. 9723 ecc*) 9724 lt_prog_compiler_wl='-Wl,' 9725 lt_prog_compiler_pic='-KPIC' 9726 lt_prog_compiler_static='-static' 9727 ;; 9728 # icc used to be incompatible with GCC. 9729 # ICC 10 doesn't accept -KPIC any more. 9730 icc* | ifort*) 9731 lt_prog_compiler_wl='-Wl,' 9732 lt_prog_compiler_pic='-fPIC' 9733 lt_prog_compiler_static='-static' 9734 ;; 9735 # Lahey Fortran 8.1. 9736 lf95*) 9737 lt_prog_compiler_wl='-Wl,' 9738 lt_prog_compiler_pic='--shared' 9739 lt_prog_compiler_static='--static' 9740 ;; 9741 nagfor*) 9742 # NAG Fortran compiler 9743 lt_prog_compiler_wl='-Wl,-Wl,,' 9744 lt_prog_compiler_pic='-PIC' 9745 lt_prog_compiler_static='-Bstatic' 9746 ;; 9747 tcc*) 9748 # Fabrice Bellard et al's Tiny C Compiler 9749 lt_prog_compiler_wl='-Wl,' 9750 lt_prog_compiler_pic='-fPIC' 9751 lt_prog_compiler_static='-static' 9752 ;; 9753 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9754 # Portland Group compilers (*not* the Pentium gcc compiler, 9755 # which looks to be a dead project) 9756 lt_prog_compiler_wl='-Wl,' 9757 lt_prog_compiler_pic='-fpic' 9758 lt_prog_compiler_static='-Bstatic' 9759 ;; 9760 ccc*) 9761 lt_prog_compiler_wl='-Wl,' 9762 # All Alpha code is PIC. 9763 lt_prog_compiler_static='-non_shared' 9764 ;; 9765 xl* | bgxl* | bgf* | mpixl*) 9766 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9767 lt_prog_compiler_wl='-Wl,' 9768 lt_prog_compiler_pic='-qpic' 9769 lt_prog_compiler_static='-qstaticlink' 9770 ;; 9771 *) 9772 case `$CC -V 2>&1 | sed 5q` in 9773 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9774 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9775 lt_prog_compiler_pic='-KPIC' 9776 lt_prog_compiler_static='-Bstatic' 9777 lt_prog_compiler_wl='' 9778 ;; 9779 *Sun\ F* | *Sun*Fortran*) 9780 lt_prog_compiler_pic='-KPIC' 9781 lt_prog_compiler_static='-Bstatic' 9782 lt_prog_compiler_wl='-Qoption ld ' 9783 ;; 9784 *Sun\ C*) 9785 # Sun C 5.9 9786 lt_prog_compiler_pic='-KPIC' 9787 lt_prog_compiler_static='-Bstatic' 9788 lt_prog_compiler_wl='-Wl,' 9789 ;; 9790 *Intel*\ [CF]*Compiler*) 9791 lt_prog_compiler_wl='-Wl,' 9792 lt_prog_compiler_pic='-fPIC' 9793 lt_prog_compiler_static='-static' 9794 ;; 9795 *Portland\ Group*) 9796 lt_prog_compiler_wl='-Wl,' 9797 lt_prog_compiler_pic='-fpic' 9798 lt_prog_compiler_static='-Bstatic' 9799 ;; 9800 esac 9801 ;; 9802 esac 9803 ;; 9804 9805 newsos6) 9806 lt_prog_compiler_pic='-KPIC' 9807 lt_prog_compiler_static='-Bstatic' 9808 ;; 9809 9810 *nto* | *qnx*) 9811 # QNX uses GNU C++, but need to define -shared option too, otherwise 9812 # it will coredump. 9813 lt_prog_compiler_pic='-fPIC -shared' 9814 ;; 9815 9816 osf3* | osf4* | osf5*) 9817 lt_prog_compiler_wl='-Wl,' 9818 # All OSF/1 code is PIC. 9819 lt_prog_compiler_static='-non_shared' 9820 ;; 9821 9822 rdos*) 9823 lt_prog_compiler_static='-non_shared' 9824 ;; 9825 9826 solaris*) 9827 lt_prog_compiler_pic='-KPIC' 9828 lt_prog_compiler_static='-Bstatic' 9829 case $cc_basename in 9830 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9831 lt_prog_compiler_wl='-Qoption ld ';; 9832 *) 9833 lt_prog_compiler_wl='-Wl,';; 9834 esac 9835 ;; 9836 9837 sunos4*) 9838 lt_prog_compiler_wl='-Qoption ld ' 9839 lt_prog_compiler_pic='-PIC' 9840 lt_prog_compiler_static='-Bstatic' 9841 ;; 9842 9843 sysv4 | sysv4.2uw2* | sysv4.3*) 9844 lt_prog_compiler_wl='-Wl,' 9845 lt_prog_compiler_pic='-KPIC' 9846 lt_prog_compiler_static='-Bstatic' 9847 ;; 9848 9849 sysv4*MP*) 9850 if test -d /usr/nec; then 9851 lt_prog_compiler_pic='-Kconform_pic' 9852 lt_prog_compiler_static='-Bstatic' 9853 fi 9854 ;; 9855 9856 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9857 lt_prog_compiler_wl='-Wl,' 9858 lt_prog_compiler_pic='-KPIC' 9859 lt_prog_compiler_static='-Bstatic' 9860 ;; 9861 9862 unicos*) 9863 lt_prog_compiler_wl='-Wl,' 9864 lt_prog_compiler_can_build_shared=no 9865 ;; 9866 9867 uts4*) 9868 lt_prog_compiler_pic='-pic' 9869 lt_prog_compiler_static='-Bstatic' 9870 ;; 9871 9872 *) 9873 lt_prog_compiler_can_build_shared=no 9874 ;; 9875 esac 9876 fi 9877 9878case $host_os in 9879 # For platforms that do not support PIC, -DPIC is meaningless: 9880 *djgpp*) 9881 lt_prog_compiler_pic= 9882 ;; 9883 *) 9884 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9885 ;; 9886esac 9887 9888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9889$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9890if ${lt_cv_prog_compiler_pic+:} false; then : 9891 $as_echo_n "(cached) " >&6 9892else 9893 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9894fi 9895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9896$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9897lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9898 9899# 9900# Check to make sure the PIC flag actually works. 9901# 9902if test -n "$lt_prog_compiler_pic"; then 9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9904$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9905if ${lt_cv_prog_compiler_pic_works+:} false; then : 9906 $as_echo_n "(cached) " >&6 9907else 9908 lt_cv_prog_compiler_pic_works=no 9909 ac_outfile=conftest.$ac_objext 9910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9911 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9912 # Insert the option either (1) after the last *FLAGS variable, or 9913 # (2) before a word containing "conftest.", or (3) at the end. 9914 # Note that $ac_compile itself does not contain backslashes and begins 9915 # with a dollar sign (not a hyphen), so the echo should work correctly. 9916 # The option is referenced via a variable to avoid confusing sed. 9917 lt_compile=`echo "$ac_compile" | $SED \ 9918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9920 -e 's:$: $lt_compiler_flag:'` 9921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9922 (eval "$lt_compile" 2>conftest.err) 9923 ac_status=$? 9924 cat conftest.err >&5 9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9926 if (exit $ac_status) && test -s "$ac_outfile"; then 9927 # The compiler can only warn and ignore the option if not recognized 9928 # So say no if there are warnings other than the usual output. 9929 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9931 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9932 lt_cv_prog_compiler_pic_works=yes 9933 fi 9934 fi 9935 $RM conftest* 9936 9937fi 9938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9939$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9940 9941if test yes = "$lt_cv_prog_compiler_pic_works"; then 9942 case $lt_prog_compiler_pic in 9943 "" | " "*) ;; 9944 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9945 esac 9946else 9947 lt_prog_compiler_pic= 9948 lt_prog_compiler_can_build_shared=no 9949fi 9950 9951fi 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963# 9964# Check to make sure the static flag actually works. 9965# 9966wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9968$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9969if ${lt_cv_prog_compiler_static_works+:} false; then : 9970 $as_echo_n "(cached) " >&6 9971else 9972 lt_cv_prog_compiler_static_works=no 9973 save_LDFLAGS=$LDFLAGS 9974 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9975 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9976 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9977 # The linker can only warn and ignore the option if not recognized 9978 # So say no if there are warnings 9979 if test -s conftest.err; then 9980 # Append any errors to the config.log. 9981 cat conftest.err 1>&5 9982 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9984 if diff conftest.exp conftest.er2 >/dev/null; then 9985 lt_cv_prog_compiler_static_works=yes 9986 fi 9987 else 9988 lt_cv_prog_compiler_static_works=yes 9989 fi 9990 fi 9991 $RM -r conftest* 9992 LDFLAGS=$save_LDFLAGS 9993 9994fi 9995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9996$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9997 9998if test yes = "$lt_cv_prog_compiler_static_works"; then 9999 : 10000else 10001 lt_prog_compiler_static= 10002fi 10003 10004 10005 10006 10007 10008 10009 10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10011$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10012if ${lt_cv_prog_compiler_c_o+:} false; then : 10013 $as_echo_n "(cached) " >&6 10014else 10015 lt_cv_prog_compiler_c_o=no 10016 $RM -r conftest 2>/dev/null 10017 mkdir conftest 10018 cd conftest 10019 mkdir out 10020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10021 10022 lt_compiler_flag="-o out/conftest2.$ac_objext" 10023 # Insert the option either (1) after the last *FLAGS variable, or 10024 # (2) before a word containing "conftest.", or (3) at the end. 10025 # Note that $ac_compile itself does not contain backslashes and begins 10026 # with a dollar sign (not a hyphen), so the echo should work correctly. 10027 lt_compile=`echo "$ac_compile" | $SED \ 10028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10030 -e 's:$: $lt_compiler_flag:'` 10031 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10032 (eval "$lt_compile" 2>out/conftest.err) 10033 ac_status=$? 10034 cat out/conftest.err >&5 10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10036 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10037 then 10038 # The compiler can only warn and ignore the option if not recognized 10039 # So say no if there are warnings 10040 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10041 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10042 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10043 lt_cv_prog_compiler_c_o=yes 10044 fi 10045 fi 10046 chmod u+w . 2>&5 10047 $RM conftest* 10048 # SGI C++ compiler will create directory out/ii_files/ for 10049 # template instantiation 10050 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10051 $RM out/* && rmdir out 10052 cd .. 10053 $RM -r conftest 10054 $RM conftest* 10055 10056fi 10057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10058$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10059 10060 10061 10062 10063 10064 10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10066$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10067if ${lt_cv_prog_compiler_c_o+:} false; then : 10068 $as_echo_n "(cached) " >&6 10069else 10070 lt_cv_prog_compiler_c_o=no 10071 $RM -r conftest 2>/dev/null 10072 mkdir conftest 10073 cd conftest 10074 mkdir out 10075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10076 10077 lt_compiler_flag="-o out/conftest2.$ac_objext" 10078 # Insert the option either (1) after the last *FLAGS variable, or 10079 # (2) before a word containing "conftest.", or (3) at the end. 10080 # Note that $ac_compile itself does not contain backslashes and begins 10081 # with a dollar sign (not a hyphen), so the echo should work correctly. 10082 lt_compile=`echo "$ac_compile" | $SED \ 10083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10085 -e 's:$: $lt_compiler_flag:'` 10086 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10087 (eval "$lt_compile" 2>out/conftest.err) 10088 ac_status=$? 10089 cat out/conftest.err >&5 10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10091 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10092 then 10093 # The compiler can only warn and ignore the option if not recognized 10094 # So say no if there are warnings 10095 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10096 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10097 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10098 lt_cv_prog_compiler_c_o=yes 10099 fi 10100 fi 10101 chmod u+w . 2>&5 10102 $RM conftest* 10103 # SGI C++ compiler will create directory out/ii_files/ for 10104 # template instantiation 10105 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10106 $RM out/* && rmdir out 10107 cd .. 10108 $RM -r conftest 10109 $RM conftest* 10110 10111fi 10112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10113$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10114 10115 10116 10117 10118hard_links=nottested 10119if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10120 # do not overwrite the value of need_locks provided by the user 10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10122$as_echo_n "checking if we can lock with hard links... " >&6; } 10123 hard_links=yes 10124 $RM conftest* 10125 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10126 touch conftest.a 10127 ln conftest.a conftest.b 2>&5 || hard_links=no 10128 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10130$as_echo "$hard_links" >&6; } 10131 if test no = "$hard_links"; then 10132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10133$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10134 need_locks=warn 10135 fi 10136else 10137 need_locks=no 10138fi 10139 10140 10141 10142 10143 10144 10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10146$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10147 10148 runpath_var= 10149 allow_undefined_flag= 10150 always_export_symbols=no 10151 archive_cmds= 10152 archive_expsym_cmds= 10153 compiler_needs_object=no 10154 enable_shared_with_static_runtimes=no 10155 export_dynamic_flag_spec= 10156 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10157 hardcode_automatic=no 10158 hardcode_direct=no 10159 hardcode_direct_absolute=no 10160 hardcode_libdir_flag_spec= 10161 hardcode_libdir_separator= 10162 hardcode_minus_L=no 10163 hardcode_shlibpath_var=unsupported 10164 inherit_rpath=no 10165 link_all_deplibs=unknown 10166 module_cmds= 10167 module_expsym_cmds= 10168 old_archive_from_new_cmds= 10169 old_archive_from_expsyms_cmds= 10170 thread_safe_flag_spec= 10171 whole_archive_flag_spec= 10172 # include_expsyms should be a list of space-separated symbols to be *always* 10173 # included in the symbol list 10174 include_expsyms= 10175 # exclude_expsyms can be an extended regexp of symbols to exclude 10176 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10177 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10178 # as well as any symbol that contains 'd'. 10179 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10180 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10181 # platforms (ab)use it in PIC code, but their linkers get confused if 10182 # the symbol is explicitly referenced. Since portable code cannot 10183 # rely on this symbol name, it's probably fine to never include it in 10184 # preloaded symbol tables. 10185 # Exclude shared library initialization/finalization symbols. 10186 extract_expsyms_cmds= 10187 10188 case $host_os in 10189 cygwin* | mingw* | pw32* | cegcc*) 10190 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10191 # When not using gcc, we currently assume that we are using 10192 # Microsoft Visual C++. 10193 if test yes != "$GCC"; then 10194 with_gnu_ld=no 10195 fi 10196 ;; 10197 interix*) 10198 # we just hope/assume this is gcc and not c89 (= MSVC++) 10199 with_gnu_ld=yes 10200 ;; 10201 openbsd* | bitrig*) 10202 with_gnu_ld=no 10203 ;; 10204 esac 10205 10206 ld_shlibs=yes 10207 10208 # On some targets, GNU ld is compatible enough with the native linker 10209 # that we're better off using the native interface for both. 10210 lt_use_gnu_ld_interface=no 10211 if test yes = "$with_gnu_ld"; then 10212 case $host_os in 10213 aix*) 10214 # The AIX port of GNU ld has always aspired to compatibility 10215 # with the native linker. However, as the warning in the GNU ld 10216 # block says, versions before 2.19.5* couldn't really create working 10217 # shared libraries, regardless of the interface used. 10218 case `$LD -v 2>&1` in 10219 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10220 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10221 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10222 *) 10223 lt_use_gnu_ld_interface=yes 10224 ;; 10225 esac 10226 ;; 10227 *) 10228 lt_use_gnu_ld_interface=yes 10229 ;; 10230 esac 10231 fi 10232 10233 if test yes = "$lt_use_gnu_ld_interface"; then 10234 # If archive_cmds runs LD, not CC, wlarc should be empty 10235 wlarc='$wl' 10236 10237 # Set some defaults for GNU ld with shared library support. These 10238 # are reset later if shared libraries are not supported. Putting them 10239 # here allows them to be overridden if necessary. 10240 runpath_var=LD_RUN_PATH 10241 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10242 export_dynamic_flag_spec='$wl--export-dynamic' 10243 # ancient GNU ld didn't support --whole-archive et. al. 10244 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10245 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10246 else 10247 whole_archive_flag_spec= 10248 fi 10249 supports_anon_versioning=no 10250 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10251 *GNU\ gold*) supports_anon_versioning=yes ;; 10252 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10253 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10254 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10255 *\ 2.11.*) ;; # other 2.11 versions 10256 *) supports_anon_versioning=yes ;; 10257 esac 10258 10259 # See if GNU ld supports shared libraries. 10260 case $host_os in 10261 aix[3-9]*) 10262 # On AIX/PPC, the GNU linker is very broken 10263 if test ia64 != "$host_cpu"; then 10264 ld_shlibs=no 10265 cat <<_LT_EOF 1>&2 10266 10267*** Warning: the GNU linker, at least up to release 2.19, is reported 10268*** to be unable to reliably create shared libraries on AIX. 10269*** Therefore, libtool is disabling shared libraries support. If you 10270*** really care for shared libraries, you may want to install binutils 10271*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10272*** You will then need to restart the configuration process. 10273 10274_LT_EOF 10275 fi 10276 ;; 10277 10278 amigaos*) 10279 case $host_cpu in 10280 powerpc) 10281 # see comment about AmigaOS4 .so support 10282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10283 archive_expsym_cmds='' 10284 ;; 10285 m68k) 10286 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)' 10287 hardcode_libdir_flag_spec='-L$libdir' 10288 hardcode_minus_L=yes 10289 ;; 10290 esac 10291 ;; 10292 10293 beos*) 10294 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10295 allow_undefined_flag=unsupported 10296 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10297 # support --undefined. This deserves some investigation. FIXME 10298 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10299 else 10300 ld_shlibs=no 10301 fi 10302 ;; 10303 10304 cygwin* | mingw* | pw32* | cegcc*) 10305 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10306 # as there is no search path for DLLs. 10307 hardcode_libdir_flag_spec='-L$libdir' 10308 export_dynamic_flag_spec='$wl--export-all-symbols' 10309 allow_undefined_flag=unsupported 10310 always_export_symbols=no 10311 enable_shared_with_static_runtimes=yes 10312 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' 10313 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10314 10315 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10317 # If the export-symbols file already is a .def file, use it as 10318 # is; otherwise, prepend EXPORTS... 10319 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10320 cp $export_symbols $output_objdir/$soname.def; 10321 else 10322 echo EXPORTS > $output_objdir/$soname.def; 10323 cat $export_symbols >> $output_objdir/$soname.def; 10324 fi~ 10325 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10326 else 10327 ld_shlibs=no 10328 fi 10329 ;; 10330 10331 haiku*) 10332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10333 link_all_deplibs=yes 10334 ;; 10335 10336 os2*) 10337 hardcode_libdir_flag_spec='-L$libdir' 10338 hardcode_minus_L=yes 10339 allow_undefined_flag=unsupported 10340 shrext_cmds=.dll 10341 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10342 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10343 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10344 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10345 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10346 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10347 emximp -o $lib $output_objdir/$libname.def' 10348 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10349 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10350 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10351 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10352 prefix_cmds="$SED"~ 10353 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10354 prefix_cmds="$prefix_cmds -e 1d"; 10355 fi~ 10356 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10357 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10358 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10359 emximp -o $lib $output_objdir/$libname.def' 10360 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10361 enable_shared_with_static_runtimes=yes 10362 ;; 10363 10364 interix[3-9]*) 10365 hardcode_direct=no 10366 hardcode_shlibpath_var=no 10367 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10368 export_dynamic_flag_spec='$wl-E' 10369 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10370 # Instead, shared libraries are loaded at an image base (0x10000000 by 10371 # default) and relocated if they conflict, which is a slow very memory 10372 # consuming and fragmenting process. To avoid this, we pick a random, 10373 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10374 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10375 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10376 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' 10377 ;; 10378 10379 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10380 tmp_diet=no 10381 if test linux-dietlibc = "$host_os"; then 10382 case $cc_basename in 10383 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10384 esac 10385 fi 10386 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10387 && test no = "$tmp_diet" 10388 then 10389 tmp_addflag=' $pic_flag' 10390 tmp_sharedflag='-shared' 10391 case $cc_basename,$host_cpu in 10392 pgcc*) # Portland Group C compiler 10393 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' 10394 tmp_addflag=' $pic_flag' 10395 ;; 10396 pgf77* | pgf90* | pgf95* | pgfortran*) 10397 # Portland Group f77 and f90 compilers 10398 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' 10399 tmp_addflag=' $pic_flag -Mnomain' ;; 10400 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10401 tmp_addflag=' -i_dynamic' ;; 10402 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10403 tmp_addflag=' -i_dynamic -nofor_main' ;; 10404 ifc* | ifort*) # Intel Fortran compiler 10405 tmp_addflag=' -nofor_main' ;; 10406 lf95*) # Lahey Fortran 8.1 10407 whole_archive_flag_spec= 10408 tmp_sharedflag='--shared' ;; 10409 nagfor*) # NAGFOR 5.3 10410 tmp_sharedflag='-Wl,-shared' ;; 10411 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10412 tmp_sharedflag='-qmkshrobj' 10413 tmp_addflag= ;; 10414 nvcc*) # Cuda Compiler Driver 2.2 10415 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' 10416 compiler_needs_object=yes 10417 ;; 10418 esac 10419 case `$CC -V 2>&1 | sed 5q` in 10420 *Sun\ C*) # Sun C 5.9 10421 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' 10422 compiler_needs_object=yes 10423 tmp_sharedflag='-G' ;; 10424 *Sun\ F*) # Sun Fortran 8.3 10425 tmp_sharedflag='-G' ;; 10426 esac 10427 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10428 10429 if test yes = "$supports_anon_versioning"; then 10430 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10431 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10432 echo "local: *; };" >> $output_objdir/$libname.ver~ 10433 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10434 fi 10435 10436 case $cc_basename in 10437 tcc*) 10438 export_dynamic_flag_spec='-rdynamic' 10439 ;; 10440 xlf* | bgf* | bgxlf* | mpixlf*) 10441 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10442 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10443 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10444 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10445 if test yes = "$supports_anon_versioning"; then 10446 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10447 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10448 echo "local: *; };" >> $output_objdir/$libname.ver~ 10449 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10450 fi 10451 ;; 10452 esac 10453 else 10454 ld_shlibs=no 10455 fi 10456 ;; 10457 10458 netbsd*) 10459 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10460 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10461 wlarc= 10462 else 10463 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10464 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10465 fi 10466 ;; 10467 10468 solaris*) 10469 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10470 ld_shlibs=no 10471 cat <<_LT_EOF 1>&2 10472 10473*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10474*** create shared libraries on Solaris systems. Therefore, libtool 10475*** is disabling shared libraries support. We urge you to upgrade GNU 10476*** binutils to release 2.9.1 or newer. Another option is to modify 10477*** your PATH or compiler configuration so that the native linker is 10478*** used, and then restart. 10479 10480_LT_EOF 10481 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10482 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10483 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10484 else 10485 ld_shlibs=no 10486 fi 10487 ;; 10488 10489 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10490 case `$LD -v 2>&1` in 10491 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10492 ld_shlibs=no 10493 cat <<_LT_EOF 1>&2 10494 10495*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10496*** reliably create shared libraries on SCO systems. Therefore, libtool 10497*** is disabling shared libraries support. We urge you to upgrade GNU 10498*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10499*** your PATH or compiler configuration so that the native linker is 10500*** used, and then restart. 10501 10502_LT_EOF 10503 ;; 10504 *) 10505 # For security reasons, it is highly recommended that you always 10506 # use absolute paths for naming shared libraries, and exclude the 10507 # DT_RUNPATH tag from executables and libraries. But doing so 10508 # requires that you compile everything twice, which is a pain. 10509 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10510 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10511 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10512 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10513 else 10514 ld_shlibs=no 10515 fi 10516 ;; 10517 esac 10518 ;; 10519 10520 sunos4*) 10521 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10522 wlarc= 10523 hardcode_direct=yes 10524 hardcode_shlibpath_var=no 10525 ;; 10526 10527 *) 10528 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10529 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10530 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10531 else 10532 ld_shlibs=no 10533 fi 10534 ;; 10535 esac 10536 10537 if test no = "$ld_shlibs"; then 10538 runpath_var= 10539 hardcode_libdir_flag_spec= 10540 export_dynamic_flag_spec= 10541 whole_archive_flag_spec= 10542 fi 10543 else 10544 # PORTME fill in a description of your system's linker (not GNU ld) 10545 case $host_os in 10546 aix3*) 10547 allow_undefined_flag=unsupported 10548 always_export_symbols=yes 10549 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' 10550 # Note: this linker hardcodes the directories in LIBPATH if there 10551 # are no directories specified by -L. 10552 hardcode_minus_L=yes 10553 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10554 # Neither direct hardcoding nor static linking is supported with a 10555 # broken collect2. 10556 hardcode_direct=unsupported 10557 fi 10558 ;; 10559 10560 aix[4-9]*) 10561 if test ia64 = "$host_cpu"; then 10562 # On IA64, the linker does run time linking by default, so we don't 10563 # have to do anything special. 10564 aix_use_runtimelinking=no 10565 exp_sym_flag='-Bexport' 10566 no_entry_flag= 10567 else 10568 # If we're using GNU nm, then we don't want the "-C" option. 10569 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10570 # Without the "-l" option, or with the "-B" option, AIX nm treats 10571 # weak defined symbols like other global defined symbols, whereas 10572 # GNU nm marks them as "W". 10573 # While the 'weak' keyword is ignored in the Export File, we need 10574 # it in the Import File for the 'aix-soname' feature, so we have 10575 # to replace the "-B" option with "-P" for AIX nm. 10576 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10577 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10578 else 10579 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10580 fi 10581 aix_use_runtimelinking=no 10582 10583 # Test if we are trying to use run time linking or normal 10584 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10585 # have runtime linking enabled, and use it for executables. 10586 # For shared libraries, we enable/disable runtime linking 10587 # depending on the kind of the shared library created - 10588 # when "with_aix_soname,aix_use_runtimelinking" is: 10589 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10590 # "aix,yes" lib.so shared, rtl:yes, for executables 10591 # lib.a static archive 10592 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10593 # lib.a(lib.so.V) shared, rtl:no, for executables 10594 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10595 # lib.a(lib.so.V) shared, rtl:no 10596 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10597 # lib.a static archive 10598 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10599 for ld_flag in $LDFLAGS; do 10600 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10601 aix_use_runtimelinking=yes 10602 break 10603 fi 10604 done 10605 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10606 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10607 # so we don't have lib.a shared libs to link our executables. 10608 # We have to force runtime linking in this case. 10609 aix_use_runtimelinking=yes 10610 LDFLAGS="$LDFLAGS -Wl,-brtl" 10611 fi 10612 ;; 10613 esac 10614 10615 exp_sym_flag='-bexport' 10616 no_entry_flag='-bnoentry' 10617 fi 10618 10619 # When large executables or shared objects are built, AIX ld can 10620 # have problems creating the table of contents. If linking a library 10621 # or program results in "error TOC overflow" add -mminimal-toc to 10622 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10623 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10624 10625 archive_cmds='' 10626 hardcode_direct=yes 10627 hardcode_direct_absolute=yes 10628 hardcode_libdir_separator=':' 10629 link_all_deplibs=yes 10630 file_list_spec='$wl-f,' 10631 case $with_aix_soname,$aix_use_runtimelinking in 10632 aix,*) ;; # traditional, no import file 10633 svr4,* | *,yes) # use import file 10634 # The Import File defines what to hardcode. 10635 hardcode_direct=no 10636 hardcode_direct_absolute=no 10637 ;; 10638 esac 10639 10640 if test yes = "$GCC"; then 10641 case $host_os in aix4.[012]|aix4.[012].*) 10642 # We only want to do this on AIX 4.2 and lower, the check 10643 # below for broken collect2 doesn't work under 4.3+ 10644 collect2name=`$CC -print-prog-name=collect2` 10645 if test -f "$collect2name" && 10646 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10647 then 10648 # We have reworked collect2 10649 : 10650 else 10651 # We have old collect2 10652 hardcode_direct=unsupported 10653 # It fails to find uninstalled libraries when the uninstalled 10654 # path is not listed in the libpath. Setting hardcode_minus_L 10655 # to unsupported forces relinking 10656 hardcode_minus_L=yes 10657 hardcode_libdir_flag_spec='-L$libdir' 10658 hardcode_libdir_separator= 10659 fi 10660 ;; 10661 esac 10662 shared_flag='-shared' 10663 if test yes = "$aix_use_runtimelinking"; then 10664 shared_flag="$shared_flag "'$wl-G' 10665 fi 10666 # Need to ensure runtime linking is disabled for the traditional 10667 # shared library, or the linker may eventually find shared libraries 10668 # /with/ Import File - we do not want to mix them. 10669 shared_flag_aix='-shared' 10670 shared_flag_svr4='-shared $wl-G' 10671 else 10672 # not using gcc 10673 if test ia64 = "$host_cpu"; then 10674 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10675 # chokes on -Wl,-G. The following line is correct: 10676 shared_flag='-G' 10677 else 10678 if test yes = "$aix_use_runtimelinking"; then 10679 shared_flag='$wl-G' 10680 else 10681 shared_flag='$wl-bM:SRE' 10682 fi 10683 shared_flag_aix='$wl-bM:SRE' 10684 shared_flag_svr4='$wl-G' 10685 fi 10686 fi 10687 10688 export_dynamic_flag_spec='$wl-bexpall' 10689 # It seems that -bexpall does not export symbols beginning with 10690 # underscore (_), so it is better to generate a list of symbols to export. 10691 always_export_symbols=yes 10692 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10693 # Warning - without using the other runtime loading flags (-brtl), 10694 # -berok will link without error, but may produce a broken library. 10695 allow_undefined_flag='-berok' 10696 # Determine the default libpath from the value encoded in an 10697 # empty executable. 10698 if test set = "${lt_cv_aix_libpath+set}"; then 10699 aix_libpath=$lt_cv_aix_libpath 10700else 10701 if ${lt_cv_aix_libpath_+:} false; then : 10702 $as_echo_n "(cached) " >&6 10703else 10704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10705/* end confdefs.h. */ 10706 10707int 10708main () 10709{ 10710 10711 ; 10712 return 0; 10713} 10714_ACEOF 10715if ac_fn_c_try_link "$LINENO"; then : 10716 10717 lt_aix_libpath_sed=' 10718 /Import File Strings/,/^$/ { 10719 /^0/ { 10720 s/^0 *\([^ ]*\) *$/\1/ 10721 p 10722 } 10723 }' 10724 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10725 # Check for a 64-bit object if we didn't find anything. 10726 if test -z "$lt_cv_aix_libpath_"; then 10727 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10728 fi 10729fi 10730rm -f core conftest.err conftest.$ac_objext \ 10731 conftest$ac_exeext conftest.$ac_ext 10732 if test -z "$lt_cv_aix_libpath_"; then 10733 lt_cv_aix_libpath_=/usr/lib:/lib 10734 fi 10735 10736fi 10737 10738 aix_libpath=$lt_cv_aix_libpath_ 10739fi 10740 10741 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10742 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10743 else 10744 if test ia64 = "$host_cpu"; then 10745 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10746 allow_undefined_flag="-z nodefs" 10747 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" 10748 else 10749 # Determine the default libpath from the value encoded in an 10750 # empty executable. 10751 if test set = "${lt_cv_aix_libpath+set}"; then 10752 aix_libpath=$lt_cv_aix_libpath 10753else 10754 if ${lt_cv_aix_libpath_+:} false; then : 10755 $as_echo_n "(cached) " >&6 10756else 10757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10758/* end confdefs.h. */ 10759 10760int 10761main () 10762{ 10763 10764 ; 10765 return 0; 10766} 10767_ACEOF 10768if ac_fn_c_try_link "$LINENO"; then : 10769 10770 lt_aix_libpath_sed=' 10771 /Import File Strings/,/^$/ { 10772 /^0/ { 10773 s/^0 *\([^ ]*\) *$/\1/ 10774 p 10775 } 10776 }' 10777 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10778 # Check for a 64-bit object if we didn't find anything. 10779 if test -z "$lt_cv_aix_libpath_"; then 10780 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10781 fi 10782fi 10783rm -f core conftest.err conftest.$ac_objext \ 10784 conftest$ac_exeext conftest.$ac_ext 10785 if test -z "$lt_cv_aix_libpath_"; then 10786 lt_cv_aix_libpath_=/usr/lib:/lib 10787 fi 10788 10789fi 10790 10791 aix_libpath=$lt_cv_aix_libpath_ 10792fi 10793 10794 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10795 # Warning - without using the other run time loading flags, 10796 # -berok will link without error, but may produce a broken library. 10797 no_undefined_flag=' $wl-bernotok' 10798 allow_undefined_flag=' $wl-berok' 10799 if test yes = "$with_gnu_ld"; then 10800 # We only use this code for GNU lds that support --whole-archive. 10801 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10802 else 10803 # Exported symbols can be pulled into shared objects from archives 10804 whole_archive_flag_spec='$convenience' 10805 fi 10806 archive_cmds_need_lc=yes 10807 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10808 # -brtl affects multiple linker settings, -berok does not and is overridden later 10809 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10810 if test svr4 != "$with_aix_soname"; then 10811 # This is similar to how AIX traditionally builds its shared libraries. 10812 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10813 fi 10814 if test aix != "$with_aix_soname"; then 10815 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10816 else 10817 # used by -dlpreopen to get the symbols 10818 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10819 fi 10820 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10821 fi 10822 fi 10823 ;; 10824 10825 amigaos*) 10826 case $host_cpu in 10827 powerpc) 10828 # see comment about AmigaOS4 .so support 10829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10830 archive_expsym_cmds='' 10831 ;; 10832 m68k) 10833 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)' 10834 hardcode_libdir_flag_spec='-L$libdir' 10835 hardcode_minus_L=yes 10836 ;; 10837 esac 10838 ;; 10839 10840 bsdi[45]*) 10841 export_dynamic_flag_spec=-rdynamic 10842 ;; 10843 10844 cygwin* | mingw* | pw32* | cegcc*) 10845 # When not using gcc, we currently assume that we are using 10846 # Microsoft Visual C++. 10847 # hardcode_libdir_flag_spec is actually meaningless, as there is 10848 # no search path for DLLs. 10849 case $cc_basename in 10850 cl*) 10851 # Native MSVC 10852 hardcode_libdir_flag_spec=' ' 10853 allow_undefined_flag=unsupported 10854 always_export_symbols=yes 10855 file_list_spec='@' 10856 # Tell ltmain to make .lib files, not .a files. 10857 libext=lib 10858 # Tell ltmain to make .dll files, not .so files. 10859 shrext_cmds=.dll 10860 # FIXME: Setting linknames here is a bad hack. 10861 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10862 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10863 cp "$export_symbols" "$output_objdir/$soname.def"; 10864 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10865 else 10866 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10867 fi~ 10868 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10869 linknames=' 10870 # The linker will not automatically build a static lib if we build a DLL. 10871 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10872 enable_shared_with_static_runtimes=yes 10873 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10874 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10875 # Don't use ranlib 10876 old_postinstall_cmds='chmod 644 $oldlib' 10877 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10878 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10879 case $lt_outputfile in 10880 *.exe|*.EXE) ;; 10881 *) 10882 lt_outputfile=$lt_outputfile.exe 10883 lt_tool_outputfile=$lt_tool_outputfile.exe 10884 ;; 10885 esac~ 10886 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10887 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10888 $RM "$lt_outputfile.manifest"; 10889 fi' 10890 ;; 10891 *) 10892 # Assume MSVC wrapper 10893 hardcode_libdir_flag_spec=' ' 10894 allow_undefined_flag=unsupported 10895 # Tell ltmain to make .lib files, not .a files. 10896 libext=lib 10897 # Tell ltmain to make .dll files, not .so files. 10898 shrext_cmds=.dll 10899 # FIXME: Setting linknames here is a bad hack. 10900 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10901 # The linker will automatically build a .lib file if we build a DLL. 10902 old_archive_from_new_cmds='true' 10903 # FIXME: Should let the user specify the lib program. 10904 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10905 enable_shared_with_static_runtimes=yes 10906 ;; 10907 esac 10908 ;; 10909 10910 darwin* | rhapsody*) 10911 10912 10913 archive_cmds_need_lc=no 10914 hardcode_direct=no 10915 hardcode_automatic=yes 10916 hardcode_shlibpath_var=unsupported 10917 if test yes = "$lt_cv_ld_force_load"; then 10918 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\"`' 10919 10920 else 10921 whole_archive_flag_spec='' 10922 fi 10923 link_all_deplibs=yes 10924 allow_undefined_flag=$_lt_dar_allow_undefined 10925 case $cc_basename in 10926 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10927 *) _lt_dar_can_shared=$GCC ;; 10928 esac 10929 if test yes = "$_lt_dar_can_shared"; then 10930 output_verbose_link_cmd=func_echo_all 10931 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10932 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10933 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" 10934 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" 10935 10936 else 10937 ld_shlibs=no 10938 fi 10939 10940 ;; 10941 10942 dgux*) 10943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10944 hardcode_libdir_flag_spec='-L$libdir' 10945 hardcode_shlibpath_var=no 10946 ;; 10947 10948 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10949 # support. Future versions do this automatically, but an explicit c++rt0.o 10950 # does not break anything, and helps significantly (at the cost of a little 10951 # extra space). 10952 freebsd2.2*) 10953 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10954 hardcode_libdir_flag_spec='-R$libdir' 10955 hardcode_direct=yes 10956 hardcode_shlibpath_var=no 10957 ;; 10958 10959 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10960 freebsd2.*) 10961 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10962 hardcode_direct=yes 10963 hardcode_minus_L=yes 10964 hardcode_shlibpath_var=no 10965 ;; 10966 10967 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10968 freebsd* | dragonfly*) 10969 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10970 hardcode_libdir_flag_spec='-R$libdir' 10971 hardcode_direct=yes 10972 hardcode_shlibpath_var=no 10973 ;; 10974 10975 hpux9*) 10976 if test yes = "$GCC"; then 10977 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10978 else 10979 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10980 fi 10981 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10982 hardcode_libdir_separator=: 10983 hardcode_direct=yes 10984 10985 # hardcode_minus_L: Not really in the search PATH, 10986 # but as the default location of the library. 10987 hardcode_minus_L=yes 10988 export_dynamic_flag_spec='$wl-E' 10989 ;; 10990 10991 hpux10*) 10992 if test yes,no = "$GCC,$with_gnu_ld"; then 10993 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10994 else 10995 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10996 fi 10997 if test no = "$with_gnu_ld"; then 10998 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10999 hardcode_libdir_separator=: 11000 hardcode_direct=yes 11001 hardcode_direct_absolute=yes 11002 export_dynamic_flag_spec='$wl-E' 11003 # hardcode_minus_L: Not really in the search PATH, 11004 # but as the default location of the library. 11005 hardcode_minus_L=yes 11006 fi 11007 ;; 11008 11009 hpux11*) 11010 if test yes,no = "$GCC,$with_gnu_ld"; then 11011 case $host_cpu in 11012 hppa*64*) 11013 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11014 ;; 11015 ia64*) 11016 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11017 ;; 11018 *) 11019 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11020 ;; 11021 esac 11022 else 11023 case $host_cpu in 11024 hppa*64*) 11025 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11026 ;; 11027 ia64*) 11028 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11029 ;; 11030 *) 11031 11032 # Older versions of the 11.00 compiler do not understand -b yet 11033 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11035$as_echo_n "checking if $CC understands -b... " >&6; } 11036if ${lt_cv_prog_compiler__b+:} false; then : 11037 $as_echo_n "(cached) " >&6 11038else 11039 lt_cv_prog_compiler__b=no 11040 save_LDFLAGS=$LDFLAGS 11041 LDFLAGS="$LDFLAGS -b" 11042 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11043 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11044 # The linker can only warn and ignore the option if not recognized 11045 # So say no if there are warnings 11046 if test -s conftest.err; then 11047 # Append any errors to the config.log. 11048 cat conftest.err 1>&5 11049 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11050 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11051 if diff conftest.exp conftest.er2 >/dev/null; then 11052 lt_cv_prog_compiler__b=yes 11053 fi 11054 else 11055 lt_cv_prog_compiler__b=yes 11056 fi 11057 fi 11058 $RM -r conftest* 11059 LDFLAGS=$save_LDFLAGS 11060 11061fi 11062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11063$as_echo "$lt_cv_prog_compiler__b" >&6; } 11064 11065if test yes = "$lt_cv_prog_compiler__b"; then 11066 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11067else 11068 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11069fi 11070 11071 ;; 11072 esac 11073 fi 11074 if test no = "$with_gnu_ld"; then 11075 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11076 hardcode_libdir_separator=: 11077 11078 case $host_cpu in 11079 hppa*64*|ia64*) 11080 hardcode_direct=no 11081 hardcode_shlibpath_var=no 11082 ;; 11083 *) 11084 hardcode_direct=yes 11085 hardcode_direct_absolute=yes 11086 export_dynamic_flag_spec='$wl-E' 11087 11088 # hardcode_minus_L: Not really in the search PATH, 11089 # but as the default location of the library. 11090 hardcode_minus_L=yes 11091 ;; 11092 esac 11093 fi 11094 ;; 11095 11096 irix5* | irix6* | nonstopux*) 11097 if test yes = "$GCC"; then 11098 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' 11099 # Try to use the -exported_symbol ld option, if it does not 11100 # work, assume that -exports_file does not work either and 11101 # implicitly export all symbols. 11102 # This should be the same for all languages, so no per-tag cache variable. 11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11104$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11105if ${lt_cv_irix_exported_symbol+:} false; then : 11106 $as_echo_n "(cached) " >&6 11107else 11108 save_LDFLAGS=$LDFLAGS 11109 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11111/* end confdefs.h. */ 11112int foo (void) { return 0; } 11113_ACEOF 11114if ac_fn_c_try_link "$LINENO"; then : 11115 lt_cv_irix_exported_symbol=yes 11116else 11117 lt_cv_irix_exported_symbol=no 11118fi 11119rm -f core conftest.err conftest.$ac_objext \ 11120 conftest$ac_exeext conftest.$ac_ext 11121 LDFLAGS=$save_LDFLAGS 11122fi 11123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11124$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11125 if test yes = "$lt_cv_irix_exported_symbol"; then 11126 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' 11127 fi 11128 else 11129 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' 11130 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' 11131 fi 11132 archive_cmds_need_lc='no' 11133 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11134 hardcode_libdir_separator=: 11135 inherit_rpath=yes 11136 link_all_deplibs=yes 11137 ;; 11138 11139 linux*) 11140 case $cc_basename in 11141 tcc*) 11142 # Fabrice Bellard et al's Tiny C Compiler 11143 ld_shlibs=yes 11144 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11145 ;; 11146 esac 11147 ;; 11148 11149 netbsd*) 11150 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11151 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11152 else 11153 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11154 fi 11155 hardcode_libdir_flag_spec='-R$libdir' 11156 hardcode_direct=yes 11157 hardcode_shlibpath_var=no 11158 ;; 11159 11160 newsos6) 11161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11162 hardcode_direct=yes 11163 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11164 hardcode_libdir_separator=: 11165 hardcode_shlibpath_var=no 11166 ;; 11167 11168 *nto* | *qnx*) 11169 ;; 11170 11171 openbsd* | bitrig*) 11172 if test -f /usr/libexec/ld.so; then 11173 hardcode_direct=yes 11174 hardcode_shlibpath_var=no 11175 hardcode_direct_absolute=yes 11176 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11177 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11178 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11179 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11180 export_dynamic_flag_spec='$wl-E' 11181 else 11182 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11183 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11184 fi 11185 else 11186 ld_shlibs=no 11187 fi 11188 ;; 11189 11190 os2*) 11191 hardcode_libdir_flag_spec='-L$libdir' 11192 hardcode_minus_L=yes 11193 allow_undefined_flag=unsupported 11194 shrext_cmds=.dll 11195 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11196 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11197 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11198 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11199 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11200 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11201 emximp -o $lib $output_objdir/$libname.def' 11202 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11203 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11204 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11205 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11206 prefix_cmds="$SED"~ 11207 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11208 prefix_cmds="$prefix_cmds -e 1d"; 11209 fi~ 11210 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11211 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11212 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11213 emximp -o $lib $output_objdir/$libname.def' 11214 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11215 enable_shared_with_static_runtimes=yes 11216 ;; 11217 11218 osf3*) 11219 if test yes = "$GCC"; then 11220 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11221 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' 11222 else 11223 allow_undefined_flag=' -expect_unresolved \*' 11224 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' 11225 fi 11226 archive_cmds_need_lc='no' 11227 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11228 hardcode_libdir_separator=: 11229 ;; 11230 11231 osf4* | osf5*) # as osf3* with the addition of -msym flag 11232 if test yes = "$GCC"; then 11233 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11234 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' 11235 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11236 else 11237 allow_undefined_flag=' -expect_unresolved \*' 11238 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' 11239 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~ 11240 $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' 11241 11242 # Both c and cxx compiler support -rpath directly 11243 hardcode_libdir_flag_spec='-rpath $libdir' 11244 fi 11245 archive_cmds_need_lc='no' 11246 hardcode_libdir_separator=: 11247 ;; 11248 11249 solaris*) 11250 no_undefined_flag=' -z defs' 11251 if test yes = "$GCC"; then 11252 wlarc='$wl' 11253 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11254 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11255 $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' 11256 else 11257 case `$CC -V 2>&1` in 11258 *"Compilers 5.0"*) 11259 wlarc='' 11260 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11261 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11262 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11263 ;; 11264 *) 11265 wlarc='$wl' 11266 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11267 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11268 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11269 ;; 11270 esac 11271 fi 11272 hardcode_libdir_flag_spec='-R$libdir' 11273 hardcode_shlibpath_var=no 11274 case $host_os in 11275 solaris2.[0-5] | solaris2.[0-5].*) ;; 11276 *) 11277 # The compiler driver will combine and reorder linker options, 11278 # but understands '-z linker_flag'. GCC discards it without '$wl', 11279 # but is careful enough not to reorder. 11280 # Supported since Solaris 2.6 (maybe 2.5.1?) 11281 if test yes = "$GCC"; then 11282 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11283 else 11284 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11285 fi 11286 ;; 11287 esac 11288 link_all_deplibs=yes 11289 ;; 11290 11291 sunos4*) 11292 if test sequent = "$host_vendor"; then 11293 # Use $CC to link under sequent, because it throws in some extra .o 11294 # files that make .init and .fini sections work. 11295 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11296 else 11297 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11298 fi 11299 hardcode_libdir_flag_spec='-L$libdir' 11300 hardcode_direct=yes 11301 hardcode_minus_L=yes 11302 hardcode_shlibpath_var=no 11303 ;; 11304 11305 sysv4) 11306 case $host_vendor in 11307 sni) 11308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11309 hardcode_direct=yes # is this really true??? 11310 ;; 11311 siemens) 11312 ## LD is ld it makes a PLAMLIB 11313 ## CC just makes a GrossModule. 11314 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11315 reload_cmds='$CC -r -o $output$reload_objs' 11316 hardcode_direct=no 11317 ;; 11318 motorola) 11319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11320 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11321 ;; 11322 esac 11323 runpath_var='LD_RUN_PATH' 11324 hardcode_shlibpath_var=no 11325 ;; 11326 11327 sysv4.3*) 11328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11329 hardcode_shlibpath_var=no 11330 export_dynamic_flag_spec='-Bexport' 11331 ;; 11332 11333 sysv4*MP*) 11334 if test -d /usr/nec; then 11335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11336 hardcode_shlibpath_var=no 11337 runpath_var=LD_RUN_PATH 11338 hardcode_runpath_var=yes 11339 ld_shlibs=yes 11340 fi 11341 ;; 11342 11343 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11344 no_undefined_flag='$wl-z,text' 11345 archive_cmds_need_lc=no 11346 hardcode_shlibpath_var=no 11347 runpath_var='LD_RUN_PATH' 11348 11349 if test yes = "$GCC"; then 11350 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11351 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11352 else 11353 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11354 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11355 fi 11356 ;; 11357 11358 sysv5* | sco3.2v5* | sco5v6*) 11359 # Note: We CANNOT use -z defs as we might desire, because we do not 11360 # link with -lc, and that would cause any symbols used from libc to 11361 # always be unresolved, which means just about no library would 11362 # ever link correctly. If we're not using GNU ld we use -z text 11363 # though, which does catch some bad symbols but isn't as heavy-handed 11364 # as -z defs. 11365 no_undefined_flag='$wl-z,text' 11366 allow_undefined_flag='$wl-z,nodefs' 11367 archive_cmds_need_lc=no 11368 hardcode_shlibpath_var=no 11369 hardcode_libdir_flag_spec='$wl-R,$libdir' 11370 hardcode_libdir_separator=':' 11371 link_all_deplibs=yes 11372 export_dynamic_flag_spec='$wl-Bexport' 11373 runpath_var='LD_RUN_PATH' 11374 11375 if test yes = "$GCC"; then 11376 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11377 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11378 else 11379 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11380 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11381 fi 11382 ;; 11383 11384 uts4*) 11385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11386 hardcode_libdir_flag_spec='-L$libdir' 11387 hardcode_shlibpath_var=no 11388 ;; 11389 11390 *) 11391 ld_shlibs=no 11392 ;; 11393 esac 11394 11395 if test sni = "$host_vendor"; then 11396 case $host in 11397 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11398 export_dynamic_flag_spec='$wl-Blargedynsym' 11399 ;; 11400 esac 11401 fi 11402 fi 11403 11404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11405$as_echo "$ld_shlibs" >&6; } 11406test no = "$ld_shlibs" && can_build_shared=no 11407 11408with_gnu_ld=$with_gnu_ld 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424# 11425# Do we need to explicitly link libc? 11426# 11427case "x$archive_cmds_need_lc" in 11428x|xyes) 11429 # Assume -lc should be added 11430 archive_cmds_need_lc=yes 11431 11432 if test yes,yes = "$GCC,$enable_shared"; then 11433 case $archive_cmds in 11434 *'~'*) 11435 # FIXME: we may have to deal with multi-command sequences. 11436 ;; 11437 '$CC '*) 11438 # Test whether the compiler implicitly links with -lc since on some 11439 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11440 # to ld, don't add -lc before -lgcc. 11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11442$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11443if ${lt_cv_archive_cmds_need_lc+:} false; then : 11444 $as_echo_n "(cached) " >&6 11445else 11446 $RM conftest* 11447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11448 11449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11450 (eval $ac_compile) 2>&5 11451 ac_status=$? 11452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11453 test $ac_status = 0; } 2>conftest.err; then 11454 soname=conftest 11455 lib=conftest 11456 libobjs=conftest.$ac_objext 11457 deplibs= 11458 wl=$lt_prog_compiler_wl 11459 pic_flag=$lt_prog_compiler_pic 11460 compiler_flags=-v 11461 linker_flags=-v 11462 verstring= 11463 output_objdir=. 11464 libname=conftest 11465 lt_save_allow_undefined_flag=$allow_undefined_flag 11466 allow_undefined_flag= 11467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11468 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11469 ac_status=$? 11470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11471 test $ac_status = 0; } 11472 then 11473 lt_cv_archive_cmds_need_lc=no 11474 else 11475 lt_cv_archive_cmds_need_lc=yes 11476 fi 11477 allow_undefined_flag=$lt_save_allow_undefined_flag 11478 else 11479 cat conftest.err 1>&5 11480 fi 11481 $RM conftest* 11482 11483fi 11484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11485$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11486 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11487 ;; 11488 esac 11489 fi 11490 ;; 11491esac 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11645$as_echo_n "checking dynamic linker characteristics... " >&6; } 11646 11647if test yes = "$GCC"; then 11648 case $host_os in 11649 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11650 *) lt_awk_arg='/^libraries:/' ;; 11651 esac 11652 case $host_os in 11653 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11654 *) lt_sed_strip_eq='s|=/|/|g' ;; 11655 esac 11656 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11657 case $lt_search_path_spec in 11658 *\;*) 11659 # if the path contains ";" then we assume it to be the separator 11660 # otherwise default to the standard path separator (i.e. ":") - it is 11661 # assumed that no part of a normal pathname contains ";" but that should 11662 # okay in the real world where ";" in dirpaths is itself problematic. 11663 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11664 ;; 11665 *) 11666 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11667 ;; 11668 esac 11669 # Ok, now we have the path, separated by spaces, we can step through it 11670 # and add multilib dir if necessary... 11671 lt_tmp_lt_search_path_spec= 11672 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11673 # ...but if some path component already ends with the multilib dir we assume 11674 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11675 case "$lt_multi_os_dir; $lt_search_path_spec " in 11676 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11677 lt_multi_os_dir= 11678 ;; 11679 esac 11680 for lt_sys_path in $lt_search_path_spec; do 11681 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11682 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11683 elif test -n "$lt_multi_os_dir"; then 11684 test -d "$lt_sys_path" && \ 11685 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11686 fi 11687 done 11688 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11689BEGIN {RS = " "; FS = "/|\n";} { 11690 lt_foo = ""; 11691 lt_count = 0; 11692 for (lt_i = NF; lt_i > 0; lt_i--) { 11693 if ($lt_i != "" && $lt_i != ".") { 11694 if ($lt_i == "..") { 11695 lt_count++; 11696 } else { 11697 if (lt_count == 0) { 11698 lt_foo = "/" $lt_i lt_foo; 11699 } else { 11700 lt_count--; 11701 } 11702 } 11703 } 11704 } 11705 if (lt_foo != "") { lt_freq[lt_foo]++; } 11706 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11707}'` 11708 # AWK program above erroneously prepends '/' to C:/dos/paths 11709 # for these hosts. 11710 case $host_os in 11711 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11712 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11713 esac 11714 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11715else 11716 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11717fi 11718library_names_spec= 11719libname_spec='lib$name' 11720soname_spec= 11721shrext_cmds=.so 11722postinstall_cmds= 11723postuninstall_cmds= 11724finish_cmds= 11725finish_eval= 11726shlibpath_var= 11727shlibpath_overrides_runpath=unknown 11728version_type=none 11729dynamic_linker="$host_os ld.so" 11730sys_lib_dlsearch_path_spec="/lib /usr/lib" 11731need_lib_prefix=unknown 11732hardcode_into_libs=no 11733 11734# when you set need_version to no, make sure it does not cause -set_version 11735# flags to be left without arguments 11736need_version=unknown 11737 11738 11739 11740case $host_os in 11741aix3*) 11742 version_type=linux # correct to gnu/linux during the next big refactor 11743 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11744 shlibpath_var=LIBPATH 11745 11746 # AIX 3 has no versioning support, so we append a major version to the name. 11747 soname_spec='$libname$release$shared_ext$major' 11748 ;; 11749 11750aix[4-9]*) 11751 version_type=linux # correct to gnu/linux during the next big refactor 11752 need_lib_prefix=no 11753 need_version=no 11754 hardcode_into_libs=yes 11755 if test ia64 = "$host_cpu"; then 11756 # AIX 5 supports IA64 11757 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11758 shlibpath_var=LD_LIBRARY_PATH 11759 else 11760 # With GCC up to 2.95.x, collect2 would create an import file 11761 # for dependence libraries. The import file would start with 11762 # the line '#! .'. This would cause the generated library to 11763 # depend on '.', always an invalid library. This was fixed in 11764 # development snapshots of GCC prior to 3.0. 11765 case $host_os in 11766 aix4 | aix4.[01] | aix4.[01].*) 11767 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11768 echo ' yes ' 11769 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11770 : 11771 else 11772 can_build_shared=no 11773 fi 11774 ;; 11775 esac 11776 # Using Import Files as archive members, it is possible to support 11777 # filename-based versioning of shared library archives on AIX. While 11778 # this would work for both with and without runtime linking, it will 11779 # prevent static linking of such archives. So we do filename-based 11780 # shared library versioning with .so extension only, which is used 11781 # when both runtime linking and shared linking is enabled. 11782 # Unfortunately, runtime linking may impact performance, so we do 11783 # not want this to be the default eventually. Also, we use the 11784 # versioned .so libs for executables only if there is the -brtl 11785 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11786 # To allow for filename-based versioning support, we need to create 11787 # libNAME.so.V as an archive file, containing: 11788 # *) an Import File, referring to the versioned filename of the 11789 # archive as well as the shared archive member, telling the 11790 # bitwidth (32 or 64) of that shared object, and providing the 11791 # list of exported symbols of that shared object, eventually 11792 # decorated with the 'weak' keyword 11793 # *) the shared object with the F_LOADONLY flag set, to really avoid 11794 # it being seen by the linker. 11795 # At run time we better use the real file rather than another symlink, 11796 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11797 11798 case $with_aix_soname,$aix_use_runtimelinking in 11799 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11800 # soname into executable. Probably we can add versioning support to 11801 # collect2, so additional links can be useful in future. 11802 aix,yes) # traditional libtool 11803 dynamic_linker='AIX unversionable lib.so' 11804 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11805 # instead of lib<name>.a to let people know that these are not 11806 # typical AIX shared libraries. 11807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11808 ;; 11809 aix,no) # traditional AIX only 11810 dynamic_linker='AIX lib.a(lib.so.V)' 11811 # We preserve .a as extension for shared libraries through AIX4.2 11812 # and later when we are not doing run time linking. 11813 library_names_spec='$libname$release.a $libname.a' 11814 soname_spec='$libname$release$shared_ext$major' 11815 ;; 11816 svr4,*) # full svr4 only 11817 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11818 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11819 # We do not specify a path in Import Files, so LIBPATH fires. 11820 shlibpath_overrides_runpath=yes 11821 ;; 11822 *,yes) # both, prefer svr4 11823 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11824 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11825 # unpreferred sharedlib libNAME.a needs extra handling 11826 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11827 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11828 # We do not specify a path in Import Files, so LIBPATH fires. 11829 shlibpath_overrides_runpath=yes 11830 ;; 11831 *,no) # both, prefer aix 11832 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11833 library_names_spec='$libname$release.a $libname.a' 11834 soname_spec='$libname$release$shared_ext$major' 11835 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11836 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11837 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11838 ;; 11839 esac 11840 shlibpath_var=LIBPATH 11841 fi 11842 ;; 11843 11844amigaos*) 11845 case $host_cpu in 11846 powerpc) 11847 # Since July 2007 AmigaOS4 officially supports .so libraries. 11848 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11850 ;; 11851 m68k) 11852 library_names_spec='$libname.ixlibrary $libname.a' 11853 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11854 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 11855 ;; 11856 esac 11857 ;; 11858 11859beos*) 11860 library_names_spec='$libname$shared_ext' 11861 dynamic_linker="$host_os ld.so" 11862 shlibpath_var=LIBRARY_PATH 11863 ;; 11864 11865bsdi[45]*) 11866 version_type=linux # correct to gnu/linux during the next big refactor 11867 need_version=no 11868 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11869 soname_spec='$libname$release$shared_ext$major' 11870 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11871 shlibpath_var=LD_LIBRARY_PATH 11872 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11873 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11874 # the default ld.so.conf also contains /usr/contrib/lib and 11875 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11876 # libtool to hard-code these into programs 11877 ;; 11878 11879cygwin* | mingw* | pw32* | cegcc*) 11880 version_type=windows 11881 shrext_cmds=.dll 11882 need_version=no 11883 need_lib_prefix=no 11884 11885 case $GCC,$cc_basename in 11886 yes,*) 11887 # gcc 11888 library_names_spec='$libname.dll.a' 11889 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11890 postinstall_cmds='base_file=`basename \$file`~ 11891 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11892 dldir=$destdir/`dirname \$dlpath`~ 11893 test -d \$dldir || mkdir -p \$dldir~ 11894 $install_prog $dir/$dlname \$dldir/$dlname~ 11895 chmod a+x \$dldir/$dlname~ 11896 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11897 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11898 fi' 11899 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11900 dlpath=$dir/\$dldll~ 11901 $RM \$dlpath' 11902 shlibpath_overrides_runpath=yes 11903 11904 case $host_os in 11905 cygwin*) 11906 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11907 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11908 11909 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11910 ;; 11911 mingw* | cegcc*) 11912 # MinGW DLLs use traditional 'lib' prefix 11913 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11914 ;; 11915 pw32*) 11916 # pw32 DLLs use 'pw' prefix rather than 'lib' 11917 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11918 ;; 11919 esac 11920 dynamic_linker='Win32 ld.exe' 11921 ;; 11922 11923 *,cl*) 11924 # Native MSVC 11925 libname_spec='$name' 11926 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11927 library_names_spec='$libname.dll.lib' 11928 11929 case $build_os in 11930 mingw*) 11931 sys_lib_search_path_spec= 11932 lt_save_ifs=$IFS 11933 IFS=';' 11934 for lt_path in $LIB 11935 do 11936 IFS=$lt_save_ifs 11937 # Let DOS variable expansion print the short 8.3 style file name. 11938 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11939 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11940 done 11941 IFS=$lt_save_ifs 11942 # Convert to MSYS style. 11943 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11944 ;; 11945 cygwin*) 11946 # Convert to unix form, then to dos form, then back to unix form 11947 # but this time dos style (no spaces!) so that the unix form looks 11948 # like /cygdrive/c/PROGRA~1:/cygdr... 11949 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11950 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11951 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11952 ;; 11953 *) 11954 sys_lib_search_path_spec=$LIB 11955 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11956 # It is most probably a Windows format PATH. 11957 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11958 else 11959 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11960 fi 11961 # FIXME: find the short name or the path components, as spaces are 11962 # common. (e.g. "Program Files" -> "PROGRA~1") 11963 ;; 11964 esac 11965 11966 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11967 postinstall_cmds='base_file=`basename \$file`~ 11968 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11969 dldir=$destdir/`dirname \$dlpath`~ 11970 test -d \$dldir || mkdir -p \$dldir~ 11971 $install_prog $dir/$dlname \$dldir/$dlname' 11972 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11973 dlpath=$dir/\$dldll~ 11974 $RM \$dlpath' 11975 shlibpath_overrides_runpath=yes 11976 dynamic_linker='Win32 link.exe' 11977 ;; 11978 11979 *) 11980 # Assume MSVC wrapper 11981 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11982 dynamic_linker='Win32 ld.exe' 11983 ;; 11984 esac 11985 # FIXME: first we should search . and the directory the executable is in 11986 shlibpath_var=PATH 11987 ;; 11988 11989darwin* | rhapsody*) 11990 dynamic_linker="$host_os dyld" 11991 version_type=darwin 11992 need_lib_prefix=no 11993 need_version=no 11994 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 11995 soname_spec='$libname$release$major$shared_ext' 11996 shlibpath_overrides_runpath=yes 11997 shlibpath_var=DYLD_LIBRARY_PATH 11998 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11999 12000 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12001 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12002 ;; 12003 12004dgux*) 12005 version_type=linux # correct to gnu/linux during the next big refactor 12006 need_lib_prefix=no 12007 need_version=no 12008 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12009 soname_spec='$libname$release$shared_ext$major' 12010 shlibpath_var=LD_LIBRARY_PATH 12011 ;; 12012 12013freebsd* | dragonfly*) 12014 # DragonFly does not have aout. When/if they implement a new 12015 # versioning mechanism, adjust this. 12016 if test -x /usr/bin/objformat; then 12017 objformat=`/usr/bin/objformat` 12018 else 12019 case $host_os in 12020 freebsd[23].*) objformat=aout ;; 12021 *) objformat=elf ;; 12022 esac 12023 fi 12024 version_type=freebsd-$objformat 12025 case $version_type in 12026 freebsd-elf*) 12027 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12028 soname_spec='$libname$release$shared_ext$major' 12029 need_version=no 12030 need_lib_prefix=no 12031 ;; 12032 freebsd-*) 12033 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12034 need_version=yes 12035 ;; 12036 esac 12037 shlibpath_var=LD_LIBRARY_PATH 12038 case $host_os in 12039 freebsd2.*) 12040 shlibpath_overrides_runpath=yes 12041 ;; 12042 freebsd3.[01]* | freebsdelf3.[01]*) 12043 shlibpath_overrides_runpath=yes 12044 hardcode_into_libs=yes 12045 ;; 12046 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12047 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12048 shlibpath_overrides_runpath=no 12049 hardcode_into_libs=yes 12050 ;; 12051 *) # from 4.6 on, and DragonFly 12052 shlibpath_overrides_runpath=yes 12053 hardcode_into_libs=yes 12054 ;; 12055 esac 12056 ;; 12057 12058haiku*) 12059 version_type=linux # correct to gnu/linux during the next big refactor 12060 need_lib_prefix=no 12061 need_version=no 12062 dynamic_linker="$host_os runtime_loader" 12063 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12064 soname_spec='$libname$release$shared_ext$major' 12065 shlibpath_var=LIBRARY_PATH 12066 shlibpath_overrides_runpath=no 12067 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12068 hardcode_into_libs=yes 12069 ;; 12070 12071hpux9* | hpux10* | hpux11*) 12072 # Give a soname corresponding to the major version so that dld.sl refuses to 12073 # link against other versions. 12074 version_type=sunos 12075 need_lib_prefix=no 12076 need_version=no 12077 case $host_cpu in 12078 ia64*) 12079 shrext_cmds='.so' 12080 hardcode_into_libs=yes 12081 dynamic_linker="$host_os dld.so" 12082 shlibpath_var=LD_LIBRARY_PATH 12083 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12084 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12085 soname_spec='$libname$release$shared_ext$major' 12086 if test 32 = "$HPUX_IA64_MODE"; then 12087 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12088 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12089 else 12090 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12091 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12092 fi 12093 ;; 12094 hppa*64*) 12095 shrext_cmds='.sl' 12096 hardcode_into_libs=yes 12097 dynamic_linker="$host_os dld.sl" 12098 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12100 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12101 soname_spec='$libname$release$shared_ext$major' 12102 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12103 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12104 ;; 12105 *) 12106 shrext_cmds='.sl' 12107 dynamic_linker="$host_os dld.sl" 12108 shlibpath_var=SHLIB_PATH 12109 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12111 soname_spec='$libname$release$shared_ext$major' 12112 ;; 12113 esac 12114 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12115 postinstall_cmds='chmod 555 $lib' 12116 # or fails outright, so override atomically: 12117 install_override_mode=555 12118 ;; 12119 12120interix[3-9]*) 12121 version_type=linux # correct to gnu/linux during the next big refactor 12122 need_lib_prefix=no 12123 need_version=no 12124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12125 soname_spec='$libname$release$shared_ext$major' 12126 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12127 shlibpath_var=LD_LIBRARY_PATH 12128 shlibpath_overrides_runpath=no 12129 hardcode_into_libs=yes 12130 ;; 12131 12132irix5* | irix6* | nonstopux*) 12133 case $host_os in 12134 nonstopux*) version_type=nonstopux ;; 12135 *) 12136 if test yes = "$lt_cv_prog_gnu_ld"; then 12137 version_type=linux # correct to gnu/linux during the next big refactor 12138 else 12139 version_type=irix 12140 fi ;; 12141 esac 12142 need_lib_prefix=no 12143 need_version=no 12144 soname_spec='$libname$release$shared_ext$major' 12145 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12146 case $host_os in 12147 irix5* | nonstopux*) 12148 libsuff= shlibsuff= 12149 ;; 12150 *) 12151 case $LD in # libtool.m4 will add one of these switches to LD 12152 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12153 libsuff= shlibsuff= libmagic=32-bit;; 12154 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12155 libsuff=32 shlibsuff=N32 libmagic=N32;; 12156 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12157 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12158 *) libsuff= shlibsuff= libmagic=never-match;; 12159 esac 12160 ;; 12161 esac 12162 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12163 shlibpath_overrides_runpath=no 12164 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12165 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12166 hardcode_into_libs=yes 12167 ;; 12168 12169# No shared lib support for Linux oldld, aout, or coff. 12170linux*oldld* | linux*aout* | linux*coff*) 12171 dynamic_linker=no 12172 ;; 12173 12174linux*android*) 12175 version_type=none # Android doesn't support versioned libraries. 12176 need_lib_prefix=no 12177 need_version=no 12178 library_names_spec='$libname$release$shared_ext' 12179 soname_spec='$libname$release$shared_ext' 12180 finish_cmds= 12181 shlibpath_var=LD_LIBRARY_PATH 12182 shlibpath_overrides_runpath=yes 12183 12184 # This implies no fast_install, which is unacceptable. 12185 # Some rework will be needed to allow for fast_install 12186 # before this can be enabled. 12187 hardcode_into_libs=yes 12188 12189 dynamic_linker='Android linker' 12190 # Don't embed -rpath directories since the linker doesn't support them. 12191 hardcode_libdir_flag_spec='-L$libdir' 12192 ;; 12193 12194# This must be glibc/ELF. 12195linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12196 version_type=linux # correct to gnu/linux during the next big refactor 12197 need_lib_prefix=no 12198 need_version=no 12199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12200 soname_spec='$libname$release$shared_ext$major' 12201 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12202 shlibpath_var=LD_LIBRARY_PATH 12203 shlibpath_overrides_runpath=no 12204 12205 # Some binutils ld are patched to set DT_RUNPATH 12206 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12207 $as_echo_n "(cached) " >&6 12208else 12209 lt_cv_shlibpath_overrides_runpath=no 12210 save_LDFLAGS=$LDFLAGS 12211 save_libdir=$libdir 12212 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12213 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12215/* end confdefs.h. */ 12216 12217int 12218main () 12219{ 12220 12221 ; 12222 return 0; 12223} 12224_ACEOF 12225if ac_fn_c_try_link "$LINENO"; then : 12226 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12227 lt_cv_shlibpath_overrides_runpath=yes 12228fi 12229fi 12230rm -f core conftest.err conftest.$ac_objext \ 12231 conftest$ac_exeext conftest.$ac_ext 12232 LDFLAGS=$save_LDFLAGS 12233 libdir=$save_libdir 12234 12235fi 12236 12237 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12238 12239 # This implies no fast_install, which is unacceptable. 12240 # Some rework will be needed to allow for fast_install 12241 # before this can be enabled. 12242 hardcode_into_libs=yes 12243 12244 # Add ABI-specific directories to the system library path. 12245 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 12246 12247 # Ideally, we could use ldconfig to report *all* directores which are 12248 # searched for libraries, however this is still not possible. Aside from not 12249 # being certain /sbin/ldconfig is available, command 12250 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12251 # even though it is searched at run-time. Try to do the best guess by 12252 # appending ld.so.conf contents (and includes) to the search path. 12253 if test -f /etc/ld.so.conf; then 12254 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' ' '` 12255 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 12256 fi 12257 12258 # We used to test for /lib/ld.so.1 and disable shared libraries on 12259 # powerpc, because MkLinux only supported shared libraries with the 12260 # GNU dynamic linker. Since this was broken with cross compilers, 12261 # most powerpc-linux boxes support dynamic linking these days and 12262 # people can always --disable-shared, the test was removed, and we 12263 # assume the GNU/Linux dynamic linker is in use. 12264 dynamic_linker='GNU/Linux ld.so' 12265 ;; 12266 12267netbsd*) 12268 version_type=sunos 12269 need_lib_prefix=no 12270 need_version=no 12271 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12272 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12273 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12274 dynamic_linker='NetBSD (a.out) ld.so' 12275 else 12276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12277 soname_spec='$libname$release$shared_ext$major' 12278 dynamic_linker='NetBSD ld.elf_so' 12279 fi 12280 shlibpath_var=LD_LIBRARY_PATH 12281 shlibpath_overrides_runpath=yes 12282 hardcode_into_libs=yes 12283 ;; 12284 12285newsos6) 12286 version_type=linux # correct to gnu/linux during the next big refactor 12287 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12288 shlibpath_var=LD_LIBRARY_PATH 12289 shlibpath_overrides_runpath=yes 12290 ;; 12291 12292*nto* | *qnx*) 12293 version_type=qnx 12294 need_lib_prefix=no 12295 need_version=no 12296 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12297 soname_spec='$libname$release$shared_ext$major' 12298 shlibpath_var=LD_LIBRARY_PATH 12299 shlibpath_overrides_runpath=no 12300 hardcode_into_libs=yes 12301 dynamic_linker='ldqnx.so' 12302 ;; 12303 12304openbsd* | bitrig*) 12305 version_type=sunos 12306 sys_lib_dlsearch_path_spec=/usr/lib 12307 need_lib_prefix=no 12308 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12309 need_version=no 12310 else 12311 need_version=yes 12312 fi 12313 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12315 shlibpath_var=LD_LIBRARY_PATH 12316 shlibpath_overrides_runpath=yes 12317 ;; 12318 12319os2*) 12320 libname_spec='$name' 12321 version_type=windows 12322 shrext_cmds=.dll 12323 need_version=no 12324 need_lib_prefix=no 12325 # OS/2 can only load a DLL with a base name of 8 characters or less. 12326 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12327 v=$($ECHO $release$versuffix | tr -d .-); 12328 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12329 $ECHO $n$v`$shared_ext' 12330 library_names_spec='${libname}_dll.$libext' 12331 dynamic_linker='OS/2 ld.exe' 12332 shlibpath_var=BEGINLIBPATH 12333 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12334 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12335 postinstall_cmds='base_file=`basename \$file`~ 12336 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12337 dldir=$destdir/`dirname \$dlpath`~ 12338 test -d \$dldir || mkdir -p \$dldir~ 12339 $install_prog $dir/$dlname \$dldir/$dlname~ 12340 chmod a+x \$dldir/$dlname~ 12341 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12342 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12343 fi' 12344 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12345 dlpath=$dir/\$dldll~ 12346 $RM \$dlpath' 12347 ;; 12348 12349osf3* | osf4* | osf5*) 12350 version_type=osf 12351 need_lib_prefix=no 12352 need_version=no 12353 soname_spec='$libname$release$shared_ext$major' 12354 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12355 shlibpath_var=LD_LIBRARY_PATH 12356 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12357 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12358 ;; 12359 12360rdos*) 12361 dynamic_linker=no 12362 ;; 12363 12364solaris*) 12365 version_type=linux # correct to gnu/linux during the next big refactor 12366 need_lib_prefix=no 12367 need_version=no 12368 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12369 soname_spec='$libname$release$shared_ext$major' 12370 shlibpath_var=LD_LIBRARY_PATH 12371 shlibpath_overrides_runpath=yes 12372 hardcode_into_libs=yes 12373 # ldd complains unless libraries are executable 12374 postinstall_cmds='chmod +x $lib' 12375 ;; 12376 12377sunos4*) 12378 version_type=sunos 12379 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12380 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12381 shlibpath_var=LD_LIBRARY_PATH 12382 shlibpath_overrides_runpath=yes 12383 if test yes = "$with_gnu_ld"; then 12384 need_lib_prefix=no 12385 fi 12386 need_version=yes 12387 ;; 12388 12389sysv4 | sysv4.3*) 12390 version_type=linux # correct to gnu/linux during the next big refactor 12391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12392 soname_spec='$libname$release$shared_ext$major' 12393 shlibpath_var=LD_LIBRARY_PATH 12394 case $host_vendor in 12395 sni) 12396 shlibpath_overrides_runpath=no 12397 need_lib_prefix=no 12398 runpath_var=LD_RUN_PATH 12399 ;; 12400 siemens) 12401 need_lib_prefix=no 12402 ;; 12403 motorola) 12404 need_lib_prefix=no 12405 need_version=no 12406 shlibpath_overrides_runpath=no 12407 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12408 ;; 12409 esac 12410 ;; 12411 12412sysv4*MP*) 12413 if test -d /usr/nec; then 12414 version_type=linux # correct to gnu/linux during the next big refactor 12415 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12416 soname_spec='$libname$shared_ext.$major' 12417 shlibpath_var=LD_LIBRARY_PATH 12418 fi 12419 ;; 12420 12421sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12422 version_type=sco 12423 need_lib_prefix=no 12424 need_version=no 12425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12426 soname_spec='$libname$release$shared_ext$major' 12427 shlibpath_var=LD_LIBRARY_PATH 12428 shlibpath_overrides_runpath=yes 12429 hardcode_into_libs=yes 12430 if test yes = "$with_gnu_ld"; then 12431 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12432 else 12433 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12434 case $host_os in 12435 sco3.2v5*) 12436 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12437 ;; 12438 esac 12439 fi 12440 sys_lib_dlsearch_path_spec='/usr/lib' 12441 ;; 12442 12443tpf*) 12444 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12445 version_type=linux # correct to gnu/linux during the next big refactor 12446 need_lib_prefix=no 12447 need_version=no 12448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12449 shlibpath_var=LD_LIBRARY_PATH 12450 shlibpath_overrides_runpath=no 12451 hardcode_into_libs=yes 12452 ;; 12453 12454uts4*) 12455 version_type=linux # correct to gnu/linux during the next big refactor 12456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12457 soname_spec='$libname$release$shared_ext$major' 12458 shlibpath_var=LD_LIBRARY_PATH 12459 ;; 12460 12461*) 12462 dynamic_linker=no 12463 ;; 12464esac 12465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12466$as_echo "$dynamic_linker" >&6; } 12467test no = "$dynamic_linker" && can_build_shared=no 12468 12469variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12470if test yes = "$GCC"; then 12471 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12472fi 12473 12474if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12475 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12476fi 12477 12478if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12479 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12480fi 12481 12482# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12483configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12484 12485# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12486func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12487 12488# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12489configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12588$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12589hardcode_action= 12590if test -n "$hardcode_libdir_flag_spec" || 12591 test -n "$runpath_var" || 12592 test yes = "$hardcode_automatic"; then 12593 12594 # We can hardcode non-existent directories. 12595 if test no != "$hardcode_direct" && 12596 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12597 # have to relink, otherwise we might link with an installed library 12598 # when we should be linking with a yet-to-be-installed one 12599 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12600 test no != "$hardcode_minus_L"; then 12601 # Linking always hardcodes the temporary library directory. 12602 hardcode_action=relink 12603 else 12604 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12605 hardcode_action=immediate 12606 fi 12607else 12608 # We cannot hardcode anything, or else we can only hardcode existing 12609 # directories. 12610 hardcode_action=unsupported 12611fi 12612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12613$as_echo "$hardcode_action" >&6; } 12614 12615if test relink = "$hardcode_action" || 12616 test yes = "$inherit_rpath"; then 12617 # Fast installation is not supported 12618 enable_fast_install=no 12619elif test yes = "$shlibpath_overrides_runpath" || 12620 test no = "$enable_shared"; then 12621 # Fast installation is not necessary 12622 enable_fast_install=needless 12623fi 12624 12625 12626 12627 12628 12629 12630 if test yes != "$enable_dlopen"; then 12631 enable_dlopen=unknown 12632 enable_dlopen_self=unknown 12633 enable_dlopen_self_static=unknown 12634else 12635 lt_cv_dlopen=no 12636 lt_cv_dlopen_libs= 12637 12638 case $host_os in 12639 beos*) 12640 lt_cv_dlopen=load_add_on 12641 lt_cv_dlopen_libs= 12642 lt_cv_dlopen_self=yes 12643 ;; 12644 12645 mingw* | pw32* | cegcc*) 12646 lt_cv_dlopen=LoadLibrary 12647 lt_cv_dlopen_libs= 12648 ;; 12649 12650 cygwin*) 12651 lt_cv_dlopen=dlopen 12652 lt_cv_dlopen_libs= 12653 ;; 12654 12655 darwin*) 12656 # if libdl is installed we need to link against it 12657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12658$as_echo_n "checking for dlopen in -ldl... " >&6; } 12659if ${ac_cv_lib_dl_dlopen+:} false; then : 12660 $as_echo_n "(cached) " >&6 12661else 12662 ac_check_lib_save_LIBS=$LIBS 12663LIBS="-ldl $LIBS" 12664cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12665/* end confdefs.h. */ 12666 12667/* Override any GCC internal prototype to avoid an error. 12668 Use char because int might match the return type of a GCC 12669 builtin and then its argument prototype would still apply. */ 12670#ifdef __cplusplus 12671extern "C" 12672#endif 12673char dlopen (); 12674int 12675main () 12676{ 12677return dlopen (); 12678 ; 12679 return 0; 12680} 12681_ACEOF 12682if ac_fn_c_try_link "$LINENO"; then : 12683 ac_cv_lib_dl_dlopen=yes 12684else 12685 ac_cv_lib_dl_dlopen=no 12686fi 12687rm -f core conftest.err conftest.$ac_objext \ 12688 conftest$ac_exeext conftest.$ac_ext 12689LIBS=$ac_check_lib_save_LIBS 12690fi 12691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12692$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12693if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12694 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12695else 12696 12697 lt_cv_dlopen=dyld 12698 lt_cv_dlopen_libs= 12699 lt_cv_dlopen_self=yes 12700 12701fi 12702 12703 ;; 12704 12705 tpf*) 12706 # Don't try to run any link tests for TPF. We know it's impossible 12707 # because TPF is a cross-compiler, and we know how we open DSOs. 12708 lt_cv_dlopen=dlopen 12709 lt_cv_dlopen_libs= 12710 lt_cv_dlopen_self=no 12711 ;; 12712 12713 *) 12714 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12715if test "x$ac_cv_func_shl_load" = xyes; then : 12716 lt_cv_dlopen=shl_load 12717else 12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12719$as_echo_n "checking for shl_load in -ldld... " >&6; } 12720if ${ac_cv_lib_dld_shl_load+:} false; then : 12721 $as_echo_n "(cached) " >&6 12722else 12723 ac_check_lib_save_LIBS=$LIBS 12724LIBS="-ldld $LIBS" 12725cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12726/* end confdefs.h. */ 12727 12728/* Override any GCC internal prototype to avoid an error. 12729 Use char because int might match the return type of a GCC 12730 builtin and then its argument prototype would still apply. */ 12731#ifdef __cplusplus 12732extern "C" 12733#endif 12734char shl_load (); 12735int 12736main () 12737{ 12738return shl_load (); 12739 ; 12740 return 0; 12741} 12742_ACEOF 12743if ac_fn_c_try_link "$LINENO"; then : 12744 ac_cv_lib_dld_shl_load=yes 12745else 12746 ac_cv_lib_dld_shl_load=no 12747fi 12748rm -f core conftest.err conftest.$ac_objext \ 12749 conftest$ac_exeext conftest.$ac_ext 12750LIBS=$ac_check_lib_save_LIBS 12751fi 12752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12753$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12754if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12755 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12756else 12757 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12758if test "x$ac_cv_func_dlopen" = xyes; then : 12759 lt_cv_dlopen=dlopen 12760else 12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12762$as_echo_n "checking for dlopen in -ldl... " >&6; } 12763if ${ac_cv_lib_dl_dlopen+:} false; then : 12764 $as_echo_n "(cached) " >&6 12765else 12766 ac_check_lib_save_LIBS=$LIBS 12767LIBS="-ldl $LIBS" 12768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12769/* end confdefs.h. */ 12770 12771/* Override any GCC internal prototype to avoid an error. 12772 Use char because int might match the return type of a GCC 12773 builtin and then its argument prototype would still apply. */ 12774#ifdef __cplusplus 12775extern "C" 12776#endif 12777char dlopen (); 12778int 12779main () 12780{ 12781return dlopen (); 12782 ; 12783 return 0; 12784} 12785_ACEOF 12786if ac_fn_c_try_link "$LINENO"; then : 12787 ac_cv_lib_dl_dlopen=yes 12788else 12789 ac_cv_lib_dl_dlopen=no 12790fi 12791rm -f core conftest.err conftest.$ac_objext \ 12792 conftest$ac_exeext conftest.$ac_ext 12793LIBS=$ac_check_lib_save_LIBS 12794fi 12795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12796$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12797if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12798 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12799else 12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12801$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12802if ${ac_cv_lib_svld_dlopen+:} false; then : 12803 $as_echo_n "(cached) " >&6 12804else 12805 ac_check_lib_save_LIBS=$LIBS 12806LIBS="-lsvld $LIBS" 12807cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12808/* end confdefs.h. */ 12809 12810/* Override any GCC internal prototype to avoid an error. 12811 Use char because int might match the return type of a GCC 12812 builtin and then its argument prototype would still apply. */ 12813#ifdef __cplusplus 12814extern "C" 12815#endif 12816char dlopen (); 12817int 12818main () 12819{ 12820return dlopen (); 12821 ; 12822 return 0; 12823} 12824_ACEOF 12825if ac_fn_c_try_link "$LINENO"; then : 12826 ac_cv_lib_svld_dlopen=yes 12827else 12828 ac_cv_lib_svld_dlopen=no 12829fi 12830rm -f core conftest.err conftest.$ac_objext \ 12831 conftest$ac_exeext conftest.$ac_ext 12832LIBS=$ac_check_lib_save_LIBS 12833fi 12834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12835$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12836if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12837 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12838else 12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12840$as_echo_n "checking for dld_link in -ldld... " >&6; } 12841if ${ac_cv_lib_dld_dld_link+:} false; then : 12842 $as_echo_n "(cached) " >&6 12843else 12844 ac_check_lib_save_LIBS=$LIBS 12845LIBS="-ldld $LIBS" 12846cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12847/* end confdefs.h. */ 12848 12849/* Override any GCC internal prototype to avoid an error. 12850 Use char because int might match the return type of a GCC 12851 builtin and then its argument prototype would still apply. */ 12852#ifdef __cplusplus 12853extern "C" 12854#endif 12855char dld_link (); 12856int 12857main () 12858{ 12859return dld_link (); 12860 ; 12861 return 0; 12862} 12863_ACEOF 12864if ac_fn_c_try_link "$LINENO"; then : 12865 ac_cv_lib_dld_dld_link=yes 12866else 12867 ac_cv_lib_dld_dld_link=no 12868fi 12869rm -f core conftest.err conftest.$ac_objext \ 12870 conftest$ac_exeext conftest.$ac_ext 12871LIBS=$ac_check_lib_save_LIBS 12872fi 12873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12874$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12875if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12876 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12877fi 12878 12879 12880fi 12881 12882 12883fi 12884 12885 12886fi 12887 12888 12889fi 12890 12891 12892fi 12893 12894 ;; 12895 esac 12896 12897 if test no = "$lt_cv_dlopen"; then 12898 enable_dlopen=no 12899 else 12900 enable_dlopen=yes 12901 fi 12902 12903 case $lt_cv_dlopen in 12904 dlopen) 12905 save_CPPFLAGS=$CPPFLAGS 12906 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12907 12908 save_LDFLAGS=$LDFLAGS 12909 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12910 12911 save_LIBS=$LIBS 12912 LIBS="$lt_cv_dlopen_libs $LIBS" 12913 12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12915$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12916if ${lt_cv_dlopen_self+:} false; then : 12917 $as_echo_n "(cached) " >&6 12918else 12919 if test yes = "$cross_compiling"; then : 12920 lt_cv_dlopen_self=cross 12921else 12922 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12923 lt_status=$lt_dlunknown 12924 cat > conftest.$ac_ext <<_LT_EOF 12925#line $LINENO "configure" 12926#include "confdefs.h" 12927 12928#if HAVE_DLFCN_H 12929#include <dlfcn.h> 12930#endif 12931 12932#include <stdio.h> 12933 12934#ifdef RTLD_GLOBAL 12935# define LT_DLGLOBAL RTLD_GLOBAL 12936#else 12937# ifdef DL_GLOBAL 12938# define LT_DLGLOBAL DL_GLOBAL 12939# else 12940# define LT_DLGLOBAL 0 12941# endif 12942#endif 12943 12944/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12945 find out it does not work in some platform. */ 12946#ifndef LT_DLLAZY_OR_NOW 12947# ifdef RTLD_LAZY 12948# define LT_DLLAZY_OR_NOW RTLD_LAZY 12949# else 12950# ifdef DL_LAZY 12951# define LT_DLLAZY_OR_NOW DL_LAZY 12952# else 12953# ifdef RTLD_NOW 12954# define LT_DLLAZY_OR_NOW RTLD_NOW 12955# else 12956# ifdef DL_NOW 12957# define LT_DLLAZY_OR_NOW DL_NOW 12958# else 12959# define LT_DLLAZY_OR_NOW 0 12960# endif 12961# endif 12962# endif 12963# endif 12964#endif 12965 12966/* When -fvisibility=hidden is used, assume the code has been annotated 12967 correspondingly for the symbols needed. */ 12968#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12969int fnord () __attribute__((visibility("default"))); 12970#endif 12971 12972int fnord () { return 42; } 12973int main () 12974{ 12975 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12976 int status = $lt_dlunknown; 12977 12978 if (self) 12979 { 12980 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12981 else 12982 { 12983 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12984 else puts (dlerror ()); 12985 } 12986 /* dlclose (self); */ 12987 } 12988 else 12989 puts (dlerror ()); 12990 12991 return status; 12992} 12993_LT_EOF 12994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12995 (eval $ac_link) 2>&5 12996 ac_status=$? 12997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12998 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12999 (./conftest; exit; ) >&5 2>/dev/null 13000 lt_status=$? 13001 case x$lt_status in 13002 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13003 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13004 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13005 esac 13006 else : 13007 # compilation failed 13008 lt_cv_dlopen_self=no 13009 fi 13010fi 13011rm -fr conftest* 13012 13013 13014fi 13015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13016$as_echo "$lt_cv_dlopen_self" >&6; } 13017 13018 if test yes = "$lt_cv_dlopen_self"; then 13019 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13021$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13022if ${lt_cv_dlopen_self_static+:} false; then : 13023 $as_echo_n "(cached) " >&6 13024else 13025 if test yes = "$cross_compiling"; then : 13026 lt_cv_dlopen_self_static=cross 13027else 13028 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13029 lt_status=$lt_dlunknown 13030 cat > conftest.$ac_ext <<_LT_EOF 13031#line $LINENO "configure" 13032#include "confdefs.h" 13033 13034#if HAVE_DLFCN_H 13035#include <dlfcn.h> 13036#endif 13037 13038#include <stdio.h> 13039 13040#ifdef RTLD_GLOBAL 13041# define LT_DLGLOBAL RTLD_GLOBAL 13042#else 13043# ifdef DL_GLOBAL 13044# define LT_DLGLOBAL DL_GLOBAL 13045# else 13046# define LT_DLGLOBAL 0 13047# endif 13048#endif 13049 13050/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13051 find out it does not work in some platform. */ 13052#ifndef LT_DLLAZY_OR_NOW 13053# ifdef RTLD_LAZY 13054# define LT_DLLAZY_OR_NOW RTLD_LAZY 13055# else 13056# ifdef DL_LAZY 13057# define LT_DLLAZY_OR_NOW DL_LAZY 13058# else 13059# ifdef RTLD_NOW 13060# define LT_DLLAZY_OR_NOW RTLD_NOW 13061# else 13062# ifdef DL_NOW 13063# define LT_DLLAZY_OR_NOW DL_NOW 13064# else 13065# define LT_DLLAZY_OR_NOW 0 13066# endif 13067# endif 13068# endif 13069# endif 13070#endif 13071 13072/* When -fvisibility=hidden is used, assume the code has been annotated 13073 correspondingly for the symbols needed. */ 13074#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13075int fnord () __attribute__((visibility("default"))); 13076#endif 13077 13078int fnord () { return 42; } 13079int main () 13080{ 13081 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13082 int status = $lt_dlunknown; 13083 13084 if (self) 13085 { 13086 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13087 else 13088 { 13089 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13090 else puts (dlerror ()); 13091 } 13092 /* dlclose (self); */ 13093 } 13094 else 13095 puts (dlerror ()); 13096 13097 return status; 13098} 13099_LT_EOF 13100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13101 (eval $ac_link) 2>&5 13102 ac_status=$? 13103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13104 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13105 (./conftest; exit; ) >&5 2>/dev/null 13106 lt_status=$? 13107 case x$lt_status in 13108 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13109 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13110 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13111 esac 13112 else : 13113 # compilation failed 13114 lt_cv_dlopen_self_static=no 13115 fi 13116fi 13117rm -fr conftest* 13118 13119 13120fi 13121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13122$as_echo "$lt_cv_dlopen_self_static" >&6; } 13123 fi 13124 13125 CPPFLAGS=$save_CPPFLAGS 13126 LDFLAGS=$save_LDFLAGS 13127 LIBS=$save_LIBS 13128 ;; 13129 esac 13130 13131 case $lt_cv_dlopen_self in 13132 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13133 *) enable_dlopen_self=unknown ;; 13134 esac 13135 13136 case $lt_cv_dlopen_self_static in 13137 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13138 *) enable_dlopen_self_static=unknown ;; 13139 esac 13140fi 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158striplib= 13159old_striplib= 13160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13161$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13162if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13163 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13164 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13166$as_echo "yes" >&6; } 13167else 13168# FIXME - insert some real tests, host_os isn't really good enough 13169 case $host_os in 13170 darwin*) 13171 if test -n "$STRIP"; then 13172 striplib="$STRIP -x" 13173 old_striplib="$STRIP -S" 13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13175$as_echo "yes" >&6; } 13176 else 13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13178$as_echo "no" >&6; } 13179 fi 13180 ;; 13181 *) 13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13183$as_echo "no" >&6; } 13184 ;; 13185 esac 13186fi 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 # Report what library types will actually be built 13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13201$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13203$as_echo "$can_build_shared" >&6; } 13204 13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13206$as_echo_n "checking whether to build shared libraries... " >&6; } 13207 test no = "$can_build_shared" && enable_shared=no 13208 13209 # On AIX, shared libraries and static libraries use the same namespace, and 13210 # are all built from PIC. 13211 case $host_os in 13212 aix3*) 13213 test yes = "$enable_shared" && enable_static=no 13214 if test -n "$RANLIB"; then 13215 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13216 postinstall_cmds='$RANLIB $lib' 13217 fi 13218 ;; 13219 13220 aix[4-9]*) 13221 if test ia64 != "$host_cpu"; then 13222 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13223 yes,aix,yes) ;; # shared object as lib.so file only 13224 yes,svr4,*) ;; # shared object as lib.so archive member only 13225 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13226 esac 13227 fi 13228 ;; 13229 esac 13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13231$as_echo "$enable_shared" >&6; } 13232 13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13234$as_echo_n "checking whether to build static libraries... " >&6; } 13235 # Make sure either enable_shared or enable_static is yes. 13236 test yes = "$enable_shared" || enable_static=yes 13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13238$as_echo "$enable_static" >&6; } 13239 13240 13241 13242 13243fi 13244ac_ext=c 13245ac_cpp='$CPP $CPPFLAGS' 13246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13248ac_compiler_gnu=$ac_cv_c_compiler_gnu 13249 13250CC=$lt_save_CC 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 ac_config_commands="$ac_config_commands libtool" 13267 13268 13269 13270 13271# Only expand once: 13272 13273 13274 13275ac_ext=cpp 13276ac_cpp='$CXXCPP $CPPFLAGS' 13277ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13278ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13279ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13280if test -z "$CXX"; then 13281 if test -n "$CCC"; then 13282 CXX=$CCC 13283 else 13284 if test -n "$ac_tool_prefix"; then 13285 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13286 do 13287 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 13288set dummy $ac_tool_prefix$ac_prog; ac_word=$2 13289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13290$as_echo_n "checking for $ac_word... " >&6; } 13291if ${ac_cv_prog_CXX+:} false; then : 13292 $as_echo_n "(cached) " >&6 13293else 13294 if test -n "$CXX"; then 13295 ac_cv_prog_CXX="$CXX" # Let the user override the test. 13296else 13297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13298for as_dir in $PATH 13299do 13300 IFS=$as_save_IFS 13301 test -z "$as_dir" && as_dir=. 13302 for ac_exec_ext in '' $ac_executable_extensions; do 13303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13304 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 13305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13306 break 2 13307 fi 13308done 13309 done 13310IFS=$as_save_IFS 13311 13312fi 13313fi 13314CXX=$ac_cv_prog_CXX 13315if test -n "$CXX"; then 13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 13317$as_echo "$CXX" >&6; } 13318else 13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13320$as_echo "no" >&6; } 13321fi 13322 13323 13324 test -n "$CXX" && break 13325 done 13326fi 13327if test -z "$CXX"; then 13328 ac_ct_CXX=$CXX 13329 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 13330do 13331 # Extract the first word of "$ac_prog", so it can be a program name with args. 13332set dummy $ac_prog; ac_word=$2 13333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13334$as_echo_n "checking for $ac_word... " >&6; } 13335if ${ac_cv_prog_ac_ct_CXX+:} false; then : 13336 $as_echo_n "(cached) " >&6 13337else 13338 if test -n "$ac_ct_CXX"; then 13339 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 13340else 13341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13342for as_dir in $PATH 13343do 13344 IFS=$as_save_IFS 13345 test -z "$as_dir" && as_dir=. 13346 for ac_exec_ext in '' $ac_executable_extensions; do 13347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13348 ac_cv_prog_ac_ct_CXX="$ac_prog" 13349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13350 break 2 13351 fi 13352done 13353 done 13354IFS=$as_save_IFS 13355 13356fi 13357fi 13358ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 13359if test -n "$ac_ct_CXX"; then 13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 13361$as_echo "$ac_ct_CXX" >&6; } 13362else 13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13364$as_echo "no" >&6; } 13365fi 13366 13367 13368 test -n "$ac_ct_CXX" && break 13369done 13370 13371 if test "x$ac_ct_CXX" = x; then 13372 CXX="g++" 13373 else 13374 case $cross_compiling:$ac_tool_warned in 13375yes:) 13376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13378ac_tool_warned=yes ;; 13379esac 13380 CXX=$ac_ct_CXX 13381 fi 13382fi 13383 13384 fi 13385fi 13386# Provide some information about the compiler. 13387$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 13388set X $ac_compile 13389ac_compiler=$2 13390for ac_option in --version -v -V -qversion; do 13391 { { ac_try="$ac_compiler $ac_option >&5" 13392case "(($ac_try" in 13393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 13394 *) ac_try_echo=$ac_try;; 13395esac 13396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 13397$as_echo "$ac_try_echo"; } >&5 13398 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 13399 ac_status=$? 13400 if test -s conftest.err; then 13401 sed '10a\ 13402... rest of stderr output deleted ... 13403 10q' conftest.err >conftest.er1 13404 cat conftest.er1 >&5 13405 fi 13406 rm -f conftest.er1 conftest.err 13407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13408 test $ac_status = 0; } 13409done 13410 13411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 13412$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 13413if ${ac_cv_cxx_compiler_gnu+:} false; then : 13414 $as_echo_n "(cached) " >&6 13415else 13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13417/* end confdefs.h. */ 13418 13419int 13420main () 13421{ 13422#ifndef __GNUC__ 13423 choke me 13424#endif 13425 13426 ; 13427 return 0; 13428} 13429_ACEOF 13430if ac_fn_cxx_try_compile "$LINENO"; then : 13431 ac_compiler_gnu=yes 13432else 13433 ac_compiler_gnu=no 13434fi 13435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13436ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 13437 13438fi 13439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 13440$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 13441if test $ac_compiler_gnu = yes; then 13442 GXX=yes 13443else 13444 GXX= 13445fi 13446ac_test_CXXFLAGS=${CXXFLAGS+set} 13447ac_save_CXXFLAGS=$CXXFLAGS 13448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 13449$as_echo_n "checking whether $CXX accepts -g... " >&6; } 13450if ${ac_cv_prog_cxx_g+:} false; then : 13451 $as_echo_n "(cached) " >&6 13452else 13453 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 13454 ac_cxx_werror_flag=yes 13455 ac_cv_prog_cxx_g=no 13456 CXXFLAGS="-g" 13457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13458/* end confdefs.h. */ 13459 13460int 13461main () 13462{ 13463 13464 ; 13465 return 0; 13466} 13467_ACEOF 13468if ac_fn_cxx_try_compile "$LINENO"; then : 13469 ac_cv_prog_cxx_g=yes 13470else 13471 CXXFLAGS="" 13472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13473/* end confdefs.h. */ 13474 13475int 13476main () 13477{ 13478 13479 ; 13480 return 0; 13481} 13482_ACEOF 13483if ac_fn_cxx_try_compile "$LINENO"; then : 13484 13485else 13486 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13487 CXXFLAGS="-g" 13488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13489/* end confdefs.h. */ 13490 13491int 13492main () 13493{ 13494 13495 ; 13496 return 0; 13497} 13498_ACEOF 13499if ac_fn_cxx_try_compile "$LINENO"; then : 13500 ac_cv_prog_cxx_g=yes 13501fi 13502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13503fi 13504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13505fi 13506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13507 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 13508fi 13509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 13510$as_echo "$ac_cv_prog_cxx_g" >&6; } 13511if test "$ac_test_CXXFLAGS" = set; then 13512 CXXFLAGS=$ac_save_CXXFLAGS 13513elif test $ac_cv_prog_cxx_g = yes; then 13514 if test "$GXX" = yes; then 13515 CXXFLAGS="-g -O2" 13516 else 13517 CXXFLAGS="-g" 13518 fi 13519else 13520 if test "$GXX" = yes; then 13521 CXXFLAGS="-O2" 13522 else 13523 CXXFLAGS= 13524 fi 13525fi 13526ac_ext=c 13527ac_cpp='$CPP $CPPFLAGS' 13528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13530ac_compiler_gnu=$ac_cv_c_compiler_gnu 13531 13532depcc="$CXX" am_compiler_list= 13533 13534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 13535$as_echo_n "checking dependency style of $depcc... " >&6; } 13536if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 13537 $as_echo_n "(cached) " >&6 13538else 13539 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 13540 # We make a subdir and do the tests there. Otherwise we can end up 13541 # making bogus files that we don't know about and never remove. For 13542 # instance it was reported that on HP-UX the gcc test will end up 13543 # making a dummy file named 'D' -- because '-MD' means "put the output 13544 # in D". 13545 rm -rf conftest.dir 13546 mkdir conftest.dir 13547 # Copy depcomp to subdir because otherwise we won't find it if we're 13548 # using a relative directory. 13549 cp "$am_depcomp" conftest.dir 13550 cd conftest.dir 13551 # We will build objects and dependencies in a subdirectory because 13552 # it helps to detect inapplicable dependency modes. For instance 13553 # both Tru64's cc and ICC support -MD to output dependencies as a 13554 # side effect of compilation, but ICC will put the dependencies in 13555 # the current directory while Tru64 will put them in the object 13556 # directory. 13557 mkdir sub 13558 13559 am_cv_CXX_dependencies_compiler_type=none 13560 if test "$am_compiler_list" = ""; then 13561 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 13562 fi 13563 am__universal=false 13564 case " $depcc " in #( 13565 *\ -arch\ *\ -arch\ *) am__universal=true ;; 13566 esac 13567 13568 for depmode in $am_compiler_list; do 13569 # Setup a source with many dependencies, because some compilers 13570 # like to wrap large dependency lists on column 80 (with \), and 13571 # we should not choose a depcomp mode which is confused by this. 13572 # 13573 # We need to recreate these files for each test, as the compiler may 13574 # overwrite some of them when testing with obscure command lines. 13575 # This happens at least with the AIX C compiler. 13576 : > sub/conftest.c 13577 for i in 1 2 3 4 5 6; do 13578 echo '#include "conftst'$i'.h"' >> sub/conftest.c 13579 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 13580 # Solaris 10 /bin/sh. 13581 echo '/* dummy */' > sub/conftst$i.h 13582 done 13583 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 13584 13585 # We check with '-c' and '-o' for the sake of the "dashmstdout" 13586 # mode. It turns out that the SunPro C++ compiler does not properly 13587 # handle '-M -o', and we need to detect this. Also, some Intel 13588 # versions had trouble with output in subdirs. 13589 am__obj=sub/conftest.${OBJEXT-o} 13590 am__minus_obj="-o $am__obj" 13591 case $depmode in 13592 gcc) 13593 # This depmode causes a compiler race in universal mode. 13594 test "$am__universal" = false || continue 13595 ;; 13596 nosideeffect) 13597 # After this tag, mechanisms are not by side-effect, so they'll 13598 # only be used when explicitly requested. 13599 if test "x$enable_dependency_tracking" = xyes; then 13600 continue 13601 else 13602 break 13603 fi 13604 ;; 13605 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 13606 # This compiler won't grok '-c -o', but also, the minuso test has 13607 # not run yet. These depmodes are late enough in the game, and 13608 # so weak that their functioning should not be impacted. 13609 am__obj=conftest.${OBJEXT-o} 13610 am__minus_obj= 13611 ;; 13612 none) break ;; 13613 esac 13614 if depmode=$depmode \ 13615 source=sub/conftest.c object=$am__obj \ 13616 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 13617 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 13618 >/dev/null 2>conftest.err && 13619 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 13620 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 13621 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 13622 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 13623 # icc doesn't choke on unknown options, it will just issue warnings 13624 # or remarks (even with -Werror). So we grep stderr for any message 13625 # that says an option was ignored or not supported. 13626 # When given -MP, icc 7.0 and 7.1 complain thusly: 13627 # icc: Command line warning: ignoring option '-M'; no argument required 13628 # The diagnosis changed in icc 8.0: 13629 # icc: Command line remark: option '-MP' not supported 13630 if (grep 'ignoring option' conftest.err || 13631 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 13632 am_cv_CXX_dependencies_compiler_type=$depmode 13633 break 13634 fi 13635 fi 13636 done 13637 13638 cd .. 13639 rm -rf conftest.dir 13640else 13641 am_cv_CXX_dependencies_compiler_type=none 13642fi 13643 13644fi 13645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 13646$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 13647CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 13648 13649 if 13650 test "x$enable_dependency_tracking" != xno \ 13651 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 13652 am__fastdepCXX_TRUE= 13653 am__fastdepCXX_FALSE='#' 13654else 13655 am__fastdepCXX_TRUE='#' 13656 am__fastdepCXX_FALSE= 13657fi 13658 13659 13660 13661 13662func_stripname_cnf () 13663{ 13664 case $2 in 13665 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 13666 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 13667 esac 13668} # func_stripname_cnf 13669 13670 if test -n "$CXX" && ( test no != "$CXX" && 13671 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13672 (test g++ != "$CXX"))); then 13673 ac_ext=cpp 13674ac_cpp='$CXXCPP $CPPFLAGS' 13675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13679$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13680if test -z "$CXXCPP"; then 13681 if ${ac_cv_prog_CXXCPP+:} false; then : 13682 $as_echo_n "(cached) " >&6 13683else 13684 # Double quotes because CXXCPP needs to be expanded 13685 for CXXCPP in "$CXX -E" "/lib/cpp" 13686 do 13687 ac_preproc_ok=false 13688for ac_cxx_preproc_warn_flag in '' yes 13689do 13690 # Use a header file that comes with gcc, so configuring glibc 13691 # with a fresh cross-compiler works. 13692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13693 # <limits.h> exists even on freestanding compilers. 13694 # On the NeXT, cc -E runs the code through the compiler's parser, 13695 # not just through cpp. "Syntax error" is here to catch this case. 13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13697/* end confdefs.h. */ 13698#ifdef __STDC__ 13699# include <limits.h> 13700#else 13701# include <assert.h> 13702#endif 13703 Syntax error 13704_ACEOF 13705if ac_fn_cxx_try_cpp "$LINENO"; then : 13706 13707else 13708 # Broken: fails on valid input. 13709continue 13710fi 13711rm -f conftest.err conftest.i conftest.$ac_ext 13712 13713 # OK, works on sane cases. Now check whether nonexistent headers 13714 # can be detected and how. 13715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13716/* end confdefs.h. */ 13717#include <ac_nonexistent.h> 13718_ACEOF 13719if ac_fn_cxx_try_cpp "$LINENO"; then : 13720 # Broken: success on invalid input. 13721continue 13722else 13723 # Passes both tests. 13724ac_preproc_ok=: 13725break 13726fi 13727rm -f conftest.err conftest.i conftest.$ac_ext 13728 13729done 13730# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13731rm -f conftest.i conftest.err conftest.$ac_ext 13732if $ac_preproc_ok; then : 13733 break 13734fi 13735 13736 done 13737 ac_cv_prog_CXXCPP=$CXXCPP 13738 13739fi 13740 CXXCPP=$ac_cv_prog_CXXCPP 13741else 13742 ac_cv_prog_CXXCPP=$CXXCPP 13743fi 13744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13745$as_echo "$CXXCPP" >&6; } 13746ac_preproc_ok=false 13747for ac_cxx_preproc_warn_flag in '' yes 13748do 13749 # Use a header file that comes with gcc, so configuring glibc 13750 # with a fresh cross-compiler works. 13751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13752 # <limits.h> exists even on freestanding compilers. 13753 # On the NeXT, cc -E runs the code through the compiler's parser, 13754 # not just through cpp. "Syntax error" is here to catch this case. 13755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13756/* end confdefs.h. */ 13757#ifdef __STDC__ 13758# include <limits.h> 13759#else 13760# include <assert.h> 13761#endif 13762 Syntax error 13763_ACEOF 13764if ac_fn_cxx_try_cpp "$LINENO"; then : 13765 13766else 13767 # Broken: fails on valid input. 13768continue 13769fi 13770rm -f conftest.err conftest.i conftest.$ac_ext 13771 13772 # OK, works on sane cases. Now check whether nonexistent headers 13773 # can be detected and how. 13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13775/* end confdefs.h. */ 13776#include <ac_nonexistent.h> 13777_ACEOF 13778if ac_fn_cxx_try_cpp "$LINENO"; then : 13779 # Broken: success on invalid input. 13780continue 13781else 13782 # Passes both tests. 13783ac_preproc_ok=: 13784break 13785fi 13786rm -f conftest.err conftest.i conftest.$ac_ext 13787 13788done 13789# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13790rm -f conftest.i conftest.err conftest.$ac_ext 13791if $ac_preproc_ok; then : 13792 13793else 13794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13795$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13796as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13797See \`config.log' for more details" "$LINENO" 5; } 13798fi 13799 13800ac_ext=c 13801ac_cpp='$CPP $CPPFLAGS' 13802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13804ac_compiler_gnu=$ac_cv_c_compiler_gnu 13805 13806else 13807 _lt_caught_CXX_error=yes 13808fi 13809 13810ac_ext=cpp 13811ac_cpp='$CXXCPP $CPPFLAGS' 13812ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13813ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13814ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13815 13816archive_cmds_need_lc_CXX=no 13817allow_undefined_flag_CXX= 13818always_export_symbols_CXX=no 13819archive_expsym_cmds_CXX= 13820compiler_needs_object_CXX=no 13821export_dynamic_flag_spec_CXX= 13822hardcode_direct_CXX=no 13823hardcode_direct_absolute_CXX=no 13824hardcode_libdir_flag_spec_CXX= 13825hardcode_libdir_separator_CXX= 13826hardcode_minus_L_CXX=no 13827hardcode_shlibpath_var_CXX=unsupported 13828hardcode_automatic_CXX=no 13829inherit_rpath_CXX=no 13830module_cmds_CXX= 13831module_expsym_cmds_CXX= 13832link_all_deplibs_CXX=unknown 13833old_archive_cmds_CXX=$old_archive_cmds 13834reload_flag_CXX=$reload_flag 13835reload_cmds_CXX=$reload_cmds 13836no_undefined_flag_CXX= 13837whole_archive_flag_spec_CXX= 13838enable_shared_with_static_runtimes_CXX=no 13839 13840# Source file extension for C++ test sources. 13841ac_ext=cpp 13842 13843# Object file extension for compiled C++ test sources. 13844objext=o 13845objext_CXX=$objext 13846 13847# No sense in running all these tests if we already determined that 13848# the CXX compiler isn't working. Some variables (like enable_shared) 13849# are currently assumed to apply to all compilers on this platform, 13850# and will be corrupted by setting them based on a non-working compiler. 13851if test yes != "$_lt_caught_CXX_error"; then 13852 # Code to be used in simple compile tests 13853 lt_simple_compile_test_code="int some_variable = 0;" 13854 13855 # Code to be used in simple link tests 13856 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13857 13858 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13859 13860 13861 13862 13863 13864 13865# If no C compiler was specified, use CC. 13866LTCC=${LTCC-"$CC"} 13867 13868# If no C compiler flags were specified, use CFLAGS. 13869LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13870 13871# Allow CC to be a program name with arguments. 13872compiler=$CC 13873 13874 13875 # save warnings/boilerplate of simple test code 13876 ac_outfile=conftest.$ac_objext 13877echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13878eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13879_lt_compiler_boilerplate=`cat conftest.err` 13880$RM conftest* 13881 13882 ac_outfile=conftest.$ac_objext 13883echo "$lt_simple_link_test_code" >conftest.$ac_ext 13884eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13885_lt_linker_boilerplate=`cat conftest.err` 13886$RM -r conftest* 13887 13888 13889 # Allow CC to be a program name with arguments. 13890 lt_save_CC=$CC 13891 lt_save_CFLAGS=$CFLAGS 13892 lt_save_LD=$LD 13893 lt_save_GCC=$GCC 13894 GCC=$GXX 13895 lt_save_with_gnu_ld=$with_gnu_ld 13896 lt_save_path_LD=$lt_cv_path_LD 13897 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13898 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13899 else 13900 $as_unset lt_cv_prog_gnu_ld 13901 fi 13902 if test -n "${lt_cv_path_LDCXX+set}"; then 13903 lt_cv_path_LD=$lt_cv_path_LDCXX 13904 else 13905 $as_unset lt_cv_path_LD 13906 fi 13907 test -z "${LDCXX+set}" || LD=$LDCXX 13908 CC=${CXX-"c++"} 13909 CFLAGS=$CXXFLAGS 13910 compiler=$CC 13911 compiler_CXX=$CC 13912 func_cc_basename $compiler 13913cc_basename=$func_cc_basename_result 13914 13915 13916 if test -n "$compiler"; then 13917 # We don't want -fno-exception when compiling C++ code, so set the 13918 # no_builtin_flag separately 13919 if test yes = "$GXX"; then 13920 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13921 else 13922 lt_prog_compiler_no_builtin_flag_CXX= 13923 fi 13924 13925 if test yes = "$GXX"; then 13926 # Set up default GNU C++ configuration 13927 13928 13929 13930# Check whether --with-gnu-ld was given. 13931if test "${with_gnu_ld+set}" = set; then : 13932 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13933else 13934 with_gnu_ld=no 13935fi 13936 13937ac_prog=ld 13938if test yes = "$GCC"; then 13939 # Check if gcc -print-prog-name=ld gives a path. 13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13941$as_echo_n "checking for ld used by $CC... " >&6; } 13942 case $host in 13943 *-*-mingw*) 13944 # gcc leaves a trailing carriage return, which upsets mingw 13945 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13946 *) 13947 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13948 esac 13949 case $ac_prog in 13950 # Accept absolute paths. 13951 [\\/]* | ?:[\\/]*) 13952 re_direlt='/[^/][^/]*/\.\./' 13953 # Canonicalize the pathname of ld 13954 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13955 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13956 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13957 done 13958 test -z "$LD" && LD=$ac_prog 13959 ;; 13960 "") 13961 # If it fails, then pretend we aren't using GCC. 13962 ac_prog=ld 13963 ;; 13964 *) 13965 # If it is relative, then search for the first ld in PATH. 13966 with_gnu_ld=unknown 13967 ;; 13968 esac 13969elif test yes = "$with_gnu_ld"; then 13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13971$as_echo_n "checking for GNU ld... " >&6; } 13972else 13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13974$as_echo_n "checking for non-GNU ld... " >&6; } 13975fi 13976if ${lt_cv_path_LD+:} false; then : 13977 $as_echo_n "(cached) " >&6 13978else 13979 if test -z "$LD"; then 13980 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13981 for ac_dir in $PATH; do 13982 IFS=$lt_save_ifs 13983 test -z "$ac_dir" && ac_dir=. 13984 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13985 lt_cv_path_LD=$ac_dir/$ac_prog 13986 # Check to see if the program is GNU ld. I'd rather use --version, 13987 # but apparently some variants of GNU ld only accept -v. 13988 # Break only if it was the GNU/non-GNU ld that we prefer. 13989 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13990 *GNU* | *'with BFD'*) 13991 test no != "$with_gnu_ld" && break 13992 ;; 13993 *) 13994 test yes != "$with_gnu_ld" && break 13995 ;; 13996 esac 13997 fi 13998 done 13999 IFS=$lt_save_ifs 14000else 14001 lt_cv_path_LD=$LD # Let the user override the test with a path. 14002fi 14003fi 14004 14005LD=$lt_cv_path_LD 14006if test -n "$LD"; then 14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 14008$as_echo "$LD" >&6; } 14009else 14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14011$as_echo "no" >&6; } 14012fi 14013test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 14014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 14015$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 14016if ${lt_cv_prog_gnu_ld+:} false; then : 14017 $as_echo_n "(cached) " >&6 14018else 14019 # I'd rather use --version here, but apparently some GNU lds only accept -v. 14020case `$LD -v 2>&1 </dev/null` in 14021*GNU* | *'with BFD'*) 14022 lt_cv_prog_gnu_ld=yes 14023 ;; 14024*) 14025 lt_cv_prog_gnu_ld=no 14026 ;; 14027esac 14028fi 14029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 14030$as_echo "$lt_cv_prog_gnu_ld" >&6; } 14031with_gnu_ld=$lt_cv_prog_gnu_ld 14032 14033 14034 14035 14036 14037 14038 14039 # Check if GNU C++ uses GNU ld as the underlying linker, since the 14040 # archiving commands below assume that GNU ld is being used. 14041 if test yes = "$with_gnu_ld"; then 14042 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14043 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' 14044 14045 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14046 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14047 14048 # If archive_cmds runs LD, not CC, wlarc should be empty 14049 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 14050 # investigate it a little bit more. (MM) 14051 wlarc='$wl' 14052 14053 # ancient GNU ld didn't support --whole-archive et. al. 14054 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 14055 $GREP 'no-whole-archive' > /dev/null; then 14056 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14057 else 14058 whole_archive_flag_spec_CXX= 14059 fi 14060 else 14061 with_gnu_ld=no 14062 wlarc= 14063 14064 # A generic and very simple default shared library creation 14065 # command for GNU C++ for the case where it uses the native 14066 # linker, instead of GNU ld. If possible, this setting should 14067 # overridden to take advantage of the native linker features on 14068 # the platform it is being used on. 14069 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14070 fi 14071 14072 # Commands to make compiler produce verbose output that lists 14073 # what "hidden" libraries, object files and flags are used when 14074 # linking a shared library. 14075 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14076 14077 else 14078 GXX=no 14079 with_gnu_ld=no 14080 wlarc= 14081 fi 14082 14083 # PORTME: fill in a description of your system's C++ link characteristics 14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14085$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14086 ld_shlibs_CXX=yes 14087 case $host_os in 14088 aix3*) 14089 # FIXME: insert proper C++ library support 14090 ld_shlibs_CXX=no 14091 ;; 14092 aix[4-9]*) 14093 if test ia64 = "$host_cpu"; then 14094 # On IA64, the linker does run time linking by default, so we don't 14095 # have to do anything special. 14096 aix_use_runtimelinking=no 14097 exp_sym_flag='-Bexport' 14098 no_entry_flag= 14099 else 14100 aix_use_runtimelinking=no 14101 14102 # Test if we are trying to use run time linking or normal 14103 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14104 # have runtime linking enabled, and use it for executables. 14105 # For shared libraries, we enable/disable runtime linking 14106 # depending on the kind of the shared library created - 14107 # when "with_aix_soname,aix_use_runtimelinking" is: 14108 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 14109 # "aix,yes" lib.so shared, rtl:yes, for executables 14110 # lib.a static archive 14111 # "both,no" lib.so.V(shr.o) shared, rtl:yes 14112 # lib.a(lib.so.V) shared, rtl:no, for executables 14113 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 14114 # lib.a(lib.so.V) shared, rtl:no 14115 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 14116 # lib.a static archive 14117 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 14118 for ld_flag in $LDFLAGS; do 14119 case $ld_flag in 14120 *-brtl*) 14121 aix_use_runtimelinking=yes 14122 break 14123 ;; 14124 esac 14125 done 14126 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 14127 # With aix-soname=svr4, we create the lib.so.V shared archives only, 14128 # so we don't have lib.a shared libs to link our executables. 14129 # We have to force runtime linking in this case. 14130 aix_use_runtimelinking=yes 14131 LDFLAGS="$LDFLAGS -Wl,-brtl" 14132 fi 14133 ;; 14134 esac 14135 14136 exp_sym_flag='-bexport' 14137 no_entry_flag='-bnoentry' 14138 fi 14139 14140 # When large executables or shared objects are built, AIX ld can 14141 # have problems creating the table of contents. If linking a library 14142 # or program results in "error TOC overflow" add -mminimal-toc to 14143 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14144 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14145 14146 archive_cmds_CXX='' 14147 hardcode_direct_CXX=yes 14148 hardcode_direct_absolute_CXX=yes 14149 hardcode_libdir_separator_CXX=':' 14150 link_all_deplibs_CXX=yes 14151 file_list_spec_CXX='$wl-f,' 14152 case $with_aix_soname,$aix_use_runtimelinking in 14153 aix,*) ;; # no import file 14154 svr4,* | *,yes) # use import file 14155 # The Import File defines what to hardcode. 14156 hardcode_direct_CXX=no 14157 hardcode_direct_absolute_CXX=no 14158 ;; 14159 esac 14160 14161 if test yes = "$GXX"; then 14162 case $host_os in aix4.[012]|aix4.[012].*) 14163 # We only want to do this on AIX 4.2 and lower, the check 14164 # below for broken collect2 doesn't work under 4.3+ 14165 collect2name=`$CC -print-prog-name=collect2` 14166 if test -f "$collect2name" && 14167 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14168 then 14169 # We have reworked collect2 14170 : 14171 else 14172 # We have old collect2 14173 hardcode_direct_CXX=unsupported 14174 # It fails to find uninstalled libraries when the uninstalled 14175 # path is not listed in the libpath. Setting hardcode_minus_L 14176 # to unsupported forces relinking 14177 hardcode_minus_L_CXX=yes 14178 hardcode_libdir_flag_spec_CXX='-L$libdir' 14179 hardcode_libdir_separator_CXX= 14180 fi 14181 esac 14182 shared_flag='-shared' 14183 if test yes = "$aix_use_runtimelinking"; then 14184 shared_flag=$shared_flag' $wl-G' 14185 fi 14186 # Need to ensure runtime linking is disabled for the traditional 14187 # shared library, or the linker may eventually find shared libraries 14188 # /with/ Import File - we do not want to mix them. 14189 shared_flag_aix='-shared' 14190 shared_flag_svr4='-shared $wl-G' 14191 else 14192 # not using gcc 14193 if test ia64 = "$host_cpu"; then 14194 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14195 # chokes on -Wl,-G. The following line is correct: 14196 shared_flag='-G' 14197 else 14198 if test yes = "$aix_use_runtimelinking"; then 14199 shared_flag='$wl-G' 14200 else 14201 shared_flag='$wl-bM:SRE' 14202 fi 14203 shared_flag_aix='$wl-bM:SRE' 14204 shared_flag_svr4='$wl-G' 14205 fi 14206 fi 14207 14208 export_dynamic_flag_spec_CXX='$wl-bexpall' 14209 # It seems that -bexpall does not export symbols beginning with 14210 # underscore (_), so it is better to generate a list of symbols to 14211 # export. 14212 always_export_symbols_CXX=yes 14213 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14214 # Warning - without using the other runtime loading flags (-brtl), 14215 # -berok will link without error, but may produce a broken library. 14216 # The "-G" linker flag allows undefined symbols. 14217 no_undefined_flag_CXX='-bernotok' 14218 # Determine the default libpath from the value encoded in an empty 14219 # executable. 14220 if test set = "${lt_cv_aix_libpath+set}"; then 14221 aix_libpath=$lt_cv_aix_libpath 14222else 14223 if ${lt_cv_aix_libpath__CXX+:} false; then : 14224 $as_echo_n "(cached) " >&6 14225else 14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14227/* end confdefs.h. */ 14228 14229int 14230main () 14231{ 14232 14233 ; 14234 return 0; 14235} 14236_ACEOF 14237if ac_fn_cxx_try_link "$LINENO"; then : 14238 14239 lt_aix_libpath_sed=' 14240 /Import File Strings/,/^$/ { 14241 /^0/ { 14242 s/^0 *\([^ ]*\) *$/\1/ 14243 p 14244 } 14245 }' 14246 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14247 # Check for a 64-bit object if we didn't find anything. 14248 if test -z "$lt_cv_aix_libpath__CXX"; then 14249 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14250 fi 14251fi 14252rm -f core conftest.err conftest.$ac_objext \ 14253 conftest$ac_exeext conftest.$ac_ext 14254 if test -z "$lt_cv_aix_libpath__CXX"; then 14255 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14256 fi 14257 14258fi 14259 14260 aix_libpath=$lt_cv_aix_libpath__CXX 14261fi 14262 14263 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14264 14265 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 14266 else 14267 if test ia64 = "$host_cpu"; then 14268 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14269 allow_undefined_flag_CXX="-z nodefs" 14270 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" 14271 else 14272 # Determine the default libpath from the value encoded in an 14273 # empty executable. 14274 if test set = "${lt_cv_aix_libpath+set}"; then 14275 aix_libpath=$lt_cv_aix_libpath 14276else 14277 if ${lt_cv_aix_libpath__CXX+:} false; then : 14278 $as_echo_n "(cached) " >&6 14279else 14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14281/* end confdefs.h. */ 14282 14283int 14284main () 14285{ 14286 14287 ; 14288 return 0; 14289} 14290_ACEOF 14291if ac_fn_cxx_try_link "$LINENO"; then : 14292 14293 lt_aix_libpath_sed=' 14294 /Import File Strings/,/^$/ { 14295 /^0/ { 14296 s/^0 *\([^ ]*\) *$/\1/ 14297 p 14298 } 14299 }' 14300 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14301 # Check for a 64-bit object if we didn't find anything. 14302 if test -z "$lt_cv_aix_libpath__CXX"; then 14303 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14304 fi 14305fi 14306rm -f core conftest.err conftest.$ac_objext \ 14307 conftest$ac_exeext conftest.$ac_ext 14308 if test -z "$lt_cv_aix_libpath__CXX"; then 14309 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14310 fi 14311 14312fi 14313 14314 aix_libpath=$lt_cv_aix_libpath__CXX 14315fi 14316 14317 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14318 # Warning - without using the other run time loading flags, 14319 # -berok will link without error, but may produce a broken library. 14320 no_undefined_flag_CXX=' $wl-bernotok' 14321 allow_undefined_flag_CXX=' $wl-berok' 14322 if test yes = "$with_gnu_ld"; then 14323 # We only use this code for GNU lds that support --whole-archive. 14324 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14325 else 14326 # Exported symbols can be pulled into shared objects from archives 14327 whole_archive_flag_spec_CXX='$convenience' 14328 fi 14329 archive_cmds_need_lc_CXX=yes 14330 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14331 # -brtl affects multiple linker settings, -berok does not and is overridden later 14332 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14333 if test svr4 != "$with_aix_soname"; then 14334 # This is similar to how AIX traditionally builds its shared 14335 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14336 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 14337 fi 14338 if test aix != "$with_aix_soname"; then 14339 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 14340 else 14341 # used by -dlpreopen to get the symbols 14342 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14343 fi 14344 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14345 fi 14346 fi 14347 ;; 14348 14349 beos*) 14350 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14351 allow_undefined_flag_CXX=unsupported 14352 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14353 # support --undefined. This deserves some investigation. FIXME 14354 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14355 else 14356 ld_shlibs_CXX=no 14357 fi 14358 ;; 14359 14360 chorus*) 14361 case $cc_basename in 14362 *) 14363 # FIXME: insert proper C++ library support 14364 ld_shlibs_CXX=no 14365 ;; 14366 esac 14367 ;; 14368 14369 cygwin* | mingw* | pw32* | cegcc*) 14370 case $GXX,$cc_basename in 14371 ,cl* | no,cl*) 14372 # Native MSVC 14373 # hardcode_libdir_flag_spec is actually meaningless, as there is 14374 # no search path for DLLs. 14375 hardcode_libdir_flag_spec_CXX=' ' 14376 allow_undefined_flag_CXX=unsupported 14377 always_export_symbols_CXX=yes 14378 file_list_spec_CXX='@' 14379 # Tell ltmain to make .lib files, not .a files. 14380 libext=lib 14381 # Tell ltmain to make .dll files, not .so files. 14382 shrext_cmds=.dll 14383 # FIXME: Setting linknames here is a bad hack. 14384 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14385 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14386 cp "$export_symbols" "$output_objdir/$soname.def"; 14387 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14388 else 14389 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14390 fi~ 14391 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14392 linknames=' 14393 # The linker will not automatically build a static lib if we build a DLL. 14394 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14395 enable_shared_with_static_runtimes_CXX=yes 14396 # Don't use ranlib 14397 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14398 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14399 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14400 case $lt_outputfile in 14401 *.exe|*.EXE) ;; 14402 *) 14403 lt_outputfile=$lt_outputfile.exe 14404 lt_tool_outputfile=$lt_tool_outputfile.exe 14405 ;; 14406 esac~ 14407 func_to_tool_file "$lt_outputfile"~ 14408 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14409 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14410 $RM "$lt_outputfile.manifest"; 14411 fi' 14412 ;; 14413 *) 14414 # g++ 14415 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14416 # as there is no search path for DLLs. 14417 hardcode_libdir_flag_spec_CXX='-L$libdir' 14418 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14419 allow_undefined_flag_CXX=unsupported 14420 always_export_symbols_CXX=no 14421 enable_shared_with_static_runtimes_CXX=yes 14422 14423 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14424 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' 14425 # If the export-symbols file already is a .def file, use it as 14426 # is; otherwise, prepend EXPORTS... 14427 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14428 cp $export_symbols $output_objdir/$soname.def; 14429 else 14430 echo EXPORTS > $output_objdir/$soname.def; 14431 cat $export_symbols >> $output_objdir/$soname.def; 14432 fi~ 14433 $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' 14434 else 14435 ld_shlibs_CXX=no 14436 fi 14437 ;; 14438 esac 14439 ;; 14440 darwin* | rhapsody*) 14441 14442 14443 archive_cmds_need_lc_CXX=no 14444 hardcode_direct_CXX=no 14445 hardcode_automatic_CXX=yes 14446 hardcode_shlibpath_var_CXX=unsupported 14447 if test yes = "$lt_cv_ld_force_load"; then 14448 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\"`' 14449 14450 else 14451 whole_archive_flag_spec_CXX='' 14452 fi 14453 link_all_deplibs_CXX=yes 14454 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14455 case $cc_basename in 14456 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14457 *) _lt_dar_can_shared=$GCC ;; 14458 esac 14459 if test yes = "$_lt_dar_can_shared"; then 14460 output_verbose_link_cmd=func_echo_all 14461 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" 14462 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14463 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" 14464 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" 14465 if test yes != "$lt_cv_apple_cc_single_mod"; then 14466 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" 14467 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" 14468 fi 14469 14470 else 14471 ld_shlibs_CXX=no 14472 fi 14473 14474 ;; 14475 14476 os2*) 14477 hardcode_libdir_flag_spec_CXX='-L$libdir' 14478 hardcode_minus_L_CXX=yes 14479 allow_undefined_flag_CXX=unsupported 14480 shrext_cmds=.dll 14481 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14482 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14483 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14484 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14485 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14486 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14487 emximp -o $lib $output_objdir/$libname.def' 14488 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14489 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14490 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14491 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14492 prefix_cmds="$SED"~ 14493 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14494 prefix_cmds="$prefix_cmds -e 1d"; 14495 fi~ 14496 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14497 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14498 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14499 emximp -o $lib $output_objdir/$libname.def' 14500 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14501 enable_shared_with_static_runtimes_CXX=yes 14502 ;; 14503 14504 dgux*) 14505 case $cc_basename in 14506 ec++*) 14507 # FIXME: insert proper C++ library support 14508 ld_shlibs_CXX=no 14509 ;; 14510 ghcx*) 14511 # Green Hills C++ Compiler 14512 # FIXME: insert proper C++ library support 14513 ld_shlibs_CXX=no 14514 ;; 14515 *) 14516 # FIXME: insert proper C++ library support 14517 ld_shlibs_CXX=no 14518 ;; 14519 esac 14520 ;; 14521 14522 freebsd2.*) 14523 # C++ shared libraries reported to be fairly broken before 14524 # switch to ELF 14525 ld_shlibs_CXX=no 14526 ;; 14527 14528 freebsd-elf*) 14529 archive_cmds_need_lc_CXX=no 14530 ;; 14531 14532 freebsd* | dragonfly*) 14533 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14534 # conventions 14535 ld_shlibs_CXX=yes 14536 ;; 14537 14538 haiku*) 14539 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14540 link_all_deplibs_CXX=yes 14541 ;; 14542 14543 hpux9*) 14544 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14545 hardcode_libdir_separator_CXX=: 14546 export_dynamic_flag_spec_CXX='$wl-E' 14547 hardcode_direct_CXX=yes 14548 hardcode_minus_L_CXX=yes # Not in the search PATH, 14549 # but as the default 14550 # location of the library. 14551 14552 case $cc_basename in 14553 CC*) 14554 # FIXME: insert proper C++ library support 14555 ld_shlibs_CXX=no 14556 ;; 14557 aCC*) 14558 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14559 # Commands to make compiler produce verbose output that lists 14560 # what "hidden" libraries, object files and flags are used when 14561 # linking a shared library. 14562 # 14563 # There doesn't appear to be a way to prevent this compiler from 14564 # explicitly linking system object files so we need to strip them 14565 # from the output so that they don't get included in the library 14566 # dependencies. 14567 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"' 14568 ;; 14569 *) 14570 if test yes = "$GXX"; then 14571 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14572 else 14573 # FIXME: insert proper C++ library support 14574 ld_shlibs_CXX=no 14575 fi 14576 ;; 14577 esac 14578 ;; 14579 14580 hpux10*|hpux11*) 14581 if test no = "$with_gnu_ld"; then 14582 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14583 hardcode_libdir_separator_CXX=: 14584 14585 case $host_cpu in 14586 hppa*64*|ia64*) 14587 ;; 14588 *) 14589 export_dynamic_flag_spec_CXX='$wl-E' 14590 ;; 14591 esac 14592 fi 14593 case $host_cpu in 14594 hppa*64*|ia64*) 14595 hardcode_direct_CXX=no 14596 hardcode_shlibpath_var_CXX=no 14597 ;; 14598 *) 14599 hardcode_direct_CXX=yes 14600 hardcode_direct_absolute_CXX=yes 14601 hardcode_minus_L_CXX=yes # Not in the search PATH, 14602 # but as the default 14603 # location of the library. 14604 ;; 14605 esac 14606 14607 case $cc_basename in 14608 CC*) 14609 # FIXME: insert proper C++ library support 14610 ld_shlibs_CXX=no 14611 ;; 14612 aCC*) 14613 case $host_cpu in 14614 hppa*64*) 14615 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14616 ;; 14617 ia64*) 14618 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14619 ;; 14620 *) 14621 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14622 ;; 14623 esac 14624 # Commands to make compiler produce verbose output that lists 14625 # what "hidden" libraries, object files and flags are used when 14626 # linking a shared library. 14627 # 14628 # There doesn't appear to be a way to prevent this compiler from 14629 # explicitly linking system object files so we need to strip them 14630 # from the output so that they don't get included in the library 14631 # dependencies. 14632 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"' 14633 ;; 14634 *) 14635 if test yes = "$GXX"; then 14636 if test no = "$with_gnu_ld"; then 14637 case $host_cpu in 14638 hppa*64*) 14639 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14640 ;; 14641 ia64*) 14642 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14643 ;; 14644 *) 14645 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' 14646 ;; 14647 esac 14648 fi 14649 else 14650 # FIXME: insert proper C++ library support 14651 ld_shlibs_CXX=no 14652 fi 14653 ;; 14654 esac 14655 ;; 14656 14657 interix[3-9]*) 14658 hardcode_direct_CXX=no 14659 hardcode_shlibpath_var_CXX=no 14660 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14661 export_dynamic_flag_spec_CXX='$wl-E' 14662 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14663 # Instead, shared libraries are loaded at an image base (0x10000000 by 14664 # default) and relocated if they conflict, which is a slow very memory 14665 # consuming and fragmenting process. To avoid this, we pick a random, 14666 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14667 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14668 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' 14669 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' 14670 ;; 14671 irix5* | irix6*) 14672 case $cc_basename in 14673 CC*) 14674 # SGI C++ 14675 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' 14676 14677 # Archives containing C++ object files must be created using 14678 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14679 # necessary to make sure instantiated templates are included 14680 # in the archive. 14681 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14682 ;; 14683 *) 14684 if test yes = "$GXX"; then 14685 if test no = "$with_gnu_ld"; then 14686 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' 14687 else 14688 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' 14689 fi 14690 fi 14691 link_all_deplibs_CXX=yes 14692 ;; 14693 esac 14694 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14695 hardcode_libdir_separator_CXX=: 14696 inherit_rpath_CXX=yes 14697 ;; 14698 14699 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14700 case $cc_basename in 14701 KCC*) 14702 # Kuck and Associates, Inc. (KAI) C++ Compiler 14703 14704 # KCC will only create a shared library if the output file 14705 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14706 # to its proper name (with version) after linking. 14707 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' 14708 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' 14709 # Commands to make compiler produce verbose output that lists 14710 # what "hidden" libraries, object files and flags are used when 14711 # linking a shared library. 14712 # 14713 # There doesn't appear to be a way to prevent this compiler from 14714 # explicitly linking system object files so we need to strip them 14715 # from the output so that they don't get included in the library 14716 # dependencies. 14717 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"' 14718 14719 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14720 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14721 14722 # Archives containing C++ object files must be created using 14723 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14724 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14725 ;; 14726 icpc* | ecpc* ) 14727 # Intel C++ 14728 with_gnu_ld=yes 14729 # version 8.0 and above of icpc choke on multiply defined symbols 14730 # if we add $predep_objects and $postdep_objects, however 7.1 and 14731 # earlier do not add the objects themselves. 14732 case `$CC -V 2>&1` in 14733 *"Version 7."*) 14734 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14735 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' 14736 ;; 14737 *) # Version 8.0 or newer 14738 tmp_idyn= 14739 case $host_cpu in 14740 ia64*) tmp_idyn=' -i_dynamic';; 14741 esac 14742 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14743 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' 14744 ;; 14745 esac 14746 archive_cmds_need_lc_CXX=no 14747 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14748 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14749 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14750 ;; 14751 pgCC* | pgcpp*) 14752 # Portland Group C++ compiler 14753 case `$CC -V` in 14754 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14755 prelink_cmds_CXX='tpldir=Template.dir~ 14756 rm -rf $tpldir~ 14757 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14758 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14759 old_archive_cmds_CXX='tpldir=Template.dir~ 14760 rm -rf $tpldir~ 14761 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14762 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14763 $RANLIB $oldlib' 14764 archive_cmds_CXX='tpldir=Template.dir~ 14765 rm -rf $tpldir~ 14766 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14767 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14768 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14769 rm -rf $tpldir~ 14770 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14771 $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' 14772 ;; 14773 *) # Version 6 and above use weak symbols 14774 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14775 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' 14776 ;; 14777 esac 14778 14779 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14780 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14781 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' 14782 ;; 14783 cxx*) 14784 # Compaq C++ 14785 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14786 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' 14787 14788 runpath_var=LD_RUN_PATH 14789 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14790 hardcode_libdir_separator_CXX=: 14791 14792 # Commands to make compiler produce verbose output that lists 14793 # what "hidden" libraries, object files and flags are used when 14794 # linking a shared library. 14795 # 14796 # There doesn't appear to be a way to prevent this compiler from 14797 # explicitly linking system object files so we need to strip them 14798 # from the output so that they don't get included in the library 14799 # dependencies. 14800 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' 14801 ;; 14802 xl* | mpixl* | bgxl*) 14803 # IBM XL 8.0 on PPC, with GNU ld 14804 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14805 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14806 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14807 if test yes = "$supports_anon_versioning"; then 14808 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14809 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14810 echo "local: *; };" >> $output_objdir/$libname.ver~ 14811 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14812 fi 14813 ;; 14814 *) 14815 case `$CC -V 2>&1 | sed 5q` in 14816 *Sun\ C*) 14817 # Sun C++ 5.9 14818 no_undefined_flag_CXX=' -zdefs' 14819 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14820 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' 14821 hardcode_libdir_flag_spec_CXX='-R$libdir' 14822 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' 14823 compiler_needs_object_CXX=yes 14824 14825 # Not sure whether something based on 14826 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14827 # would be better. 14828 output_verbose_link_cmd='func_echo_all' 14829 14830 # Archives containing C++ object files must be created using 14831 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14832 # necessary to make sure instantiated templates are included 14833 # in the archive. 14834 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14835 ;; 14836 esac 14837 ;; 14838 esac 14839 ;; 14840 14841 lynxos*) 14842 # FIXME: insert proper C++ library support 14843 ld_shlibs_CXX=no 14844 ;; 14845 14846 m88k*) 14847 # FIXME: insert proper C++ library support 14848 ld_shlibs_CXX=no 14849 ;; 14850 14851 mvs*) 14852 case $cc_basename in 14853 cxx*) 14854 # FIXME: insert proper C++ library support 14855 ld_shlibs_CXX=no 14856 ;; 14857 *) 14858 # FIXME: insert proper C++ library support 14859 ld_shlibs_CXX=no 14860 ;; 14861 esac 14862 ;; 14863 14864 netbsd*) 14865 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14866 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14867 wlarc= 14868 hardcode_libdir_flag_spec_CXX='-R$libdir' 14869 hardcode_direct_CXX=yes 14870 hardcode_shlibpath_var_CXX=no 14871 fi 14872 # Workaround some broken pre-1.5 toolchains 14873 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14874 ;; 14875 14876 *nto* | *qnx*) 14877 ld_shlibs_CXX=yes 14878 ;; 14879 14880 openbsd* | bitrig*) 14881 if test -f /usr/libexec/ld.so; then 14882 hardcode_direct_CXX=yes 14883 hardcode_shlibpath_var_CXX=no 14884 hardcode_direct_absolute_CXX=yes 14885 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14886 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14887 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14888 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14889 export_dynamic_flag_spec_CXX='$wl-E' 14890 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14891 fi 14892 output_verbose_link_cmd=func_echo_all 14893 else 14894 ld_shlibs_CXX=no 14895 fi 14896 ;; 14897 14898 osf3* | osf4* | osf5*) 14899 case $cc_basename in 14900 KCC*) 14901 # Kuck and Associates, Inc. (KAI) C++ Compiler 14902 14903 # KCC will only create a shared library if the output file 14904 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14905 # to its proper name (with version) after linking. 14906 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' 14907 14908 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14909 hardcode_libdir_separator_CXX=: 14910 14911 # Archives containing C++ object files must be created using 14912 # the KAI C++ compiler. 14913 case $host in 14914 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14915 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14916 esac 14917 ;; 14918 RCC*) 14919 # Rational C++ 2.4.1 14920 # FIXME: insert proper C++ library support 14921 ld_shlibs_CXX=no 14922 ;; 14923 cxx*) 14924 case $host in 14925 osf3*) 14926 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14927 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' 14928 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14929 ;; 14930 *) 14931 allow_undefined_flag_CXX=' -expect_unresolved \*' 14932 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' 14933 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14934 echo "-hidden">> $lib.exp~ 14935 $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~ 14936 $RM $lib.exp' 14937 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14938 ;; 14939 esac 14940 14941 hardcode_libdir_separator_CXX=: 14942 14943 # Commands to make compiler produce verbose output that lists 14944 # what "hidden" libraries, object files and flags are used when 14945 # linking a shared library. 14946 # 14947 # There doesn't appear to be a way to prevent this compiler from 14948 # explicitly linking system object files so we need to strip them 14949 # from the output so that they don't get included in the library 14950 # dependencies. 14951 output_verbose_link_cmd='templist=`$CC -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"' 14952 ;; 14953 *) 14954 if test yes,no = "$GXX,$with_gnu_ld"; then 14955 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14956 case $host in 14957 osf3*) 14958 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' 14959 ;; 14960 *) 14961 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' 14962 ;; 14963 esac 14964 14965 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14966 hardcode_libdir_separator_CXX=: 14967 14968 # Commands to make compiler produce verbose output that lists 14969 # what "hidden" libraries, object files and flags are used when 14970 # linking a shared library. 14971 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14972 14973 else 14974 # FIXME: insert proper C++ library support 14975 ld_shlibs_CXX=no 14976 fi 14977 ;; 14978 esac 14979 ;; 14980 14981 psos*) 14982 # FIXME: insert proper C++ library support 14983 ld_shlibs_CXX=no 14984 ;; 14985 14986 sunos4*) 14987 case $cc_basename in 14988 CC*) 14989 # Sun C++ 4.x 14990 # FIXME: insert proper C++ library support 14991 ld_shlibs_CXX=no 14992 ;; 14993 lcc*) 14994 # Lucid 14995 # FIXME: insert proper C++ library support 14996 ld_shlibs_CXX=no 14997 ;; 14998 *) 14999 # FIXME: insert proper C++ library support 15000 ld_shlibs_CXX=no 15001 ;; 15002 esac 15003 ;; 15004 15005 solaris*) 15006 case $cc_basename in 15007 CC* | sunCC*) 15008 # Sun C++ 4.2, 5.x and Centerline C++ 15009 archive_cmds_need_lc_CXX=yes 15010 no_undefined_flag_CXX=' -zdefs' 15011 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 15012 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15013 $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' 15014 15015 hardcode_libdir_flag_spec_CXX='-R$libdir' 15016 hardcode_shlibpath_var_CXX=no 15017 case $host_os in 15018 solaris2.[0-5] | solaris2.[0-5].*) ;; 15019 *) 15020 # The compiler driver will combine and reorder linker options, 15021 # but understands '-z linker_flag'. 15022 # Supported since Solaris 2.6 (maybe 2.5.1?) 15023 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 15024 ;; 15025 esac 15026 link_all_deplibs_CXX=yes 15027 15028 output_verbose_link_cmd='func_echo_all' 15029 15030 # Archives containing C++ object files must be created using 15031 # "CC -xar", where "CC" is the Sun C++ compiler. This is 15032 # necessary to make sure instantiated templates are included 15033 # in the archive. 15034 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 15035 ;; 15036 gcx*) 15037 # Green Hills C++ Compiler 15038 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15039 15040 # The C++ compiler must be used to create the archive. 15041 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 15042 ;; 15043 *) 15044 # GNU C++ compiler with Solaris linker 15045 if test yes,no = "$GXX,$with_gnu_ld"; then 15046 no_undefined_flag_CXX=' $wl-z ${wl}defs' 15047 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 15048 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15049 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15050 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15051 15052 # Commands to make compiler produce verbose output that lists 15053 # what "hidden" libraries, object files and flags are used when 15054 # linking a shared library. 15055 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15056 else 15057 # g++ 2.7 appears to require '-G' NOT '-shared' on this 15058 # platform. 15059 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 15060 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15061 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 15062 15063 # Commands to make compiler produce verbose output that lists 15064 # what "hidden" libraries, object files and flags are used when 15065 # linking a shared library. 15066 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15067 fi 15068 15069 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 15070 case $host_os in 15071 solaris2.[0-5] | solaris2.[0-5].*) ;; 15072 *) 15073 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 15074 ;; 15075 esac 15076 fi 15077 ;; 15078 esac 15079 ;; 15080 15081 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15082 no_undefined_flag_CXX='$wl-z,text' 15083 archive_cmds_need_lc_CXX=no 15084 hardcode_shlibpath_var_CXX=no 15085 runpath_var='LD_RUN_PATH' 15086 15087 case $cc_basename in 15088 CC*) 15089 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15090 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15091 ;; 15092 *) 15093 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15094 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15095 ;; 15096 esac 15097 ;; 15098 15099 sysv5* | sco3.2v5* | sco5v6*) 15100 # Note: We CANNOT use -z defs as we might desire, because we do not 15101 # link with -lc, and that would cause any symbols used from libc to 15102 # always be unresolved, which means just about no library would 15103 # ever link correctly. If we're not using GNU ld we use -z text 15104 # though, which does catch some bad symbols but isn't as heavy-handed 15105 # as -z defs. 15106 no_undefined_flag_CXX='$wl-z,text' 15107 allow_undefined_flag_CXX='$wl-z,nodefs' 15108 archive_cmds_need_lc_CXX=no 15109 hardcode_shlibpath_var_CXX=no 15110 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 15111 hardcode_libdir_separator_CXX=':' 15112 link_all_deplibs_CXX=yes 15113 export_dynamic_flag_spec_CXX='$wl-Bexport' 15114 runpath_var='LD_RUN_PATH' 15115 15116 case $cc_basename in 15117 CC*) 15118 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15119 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15120 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 15121 '"$old_archive_cmds_CXX" 15122 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 15123 '"$reload_cmds_CXX" 15124 ;; 15125 *) 15126 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15127 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15128 ;; 15129 esac 15130 ;; 15131 15132 tandem*) 15133 case $cc_basename in 15134 NCC*) 15135 # NonStop-UX NCC 3.20 15136 # FIXME: insert proper C++ library support 15137 ld_shlibs_CXX=no 15138 ;; 15139 *) 15140 # FIXME: insert proper C++ library support 15141 ld_shlibs_CXX=no 15142 ;; 15143 esac 15144 ;; 15145 15146 vxworks*) 15147 # FIXME: insert proper C++ library support 15148 ld_shlibs_CXX=no 15149 ;; 15150 15151 *) 15152 # FIXME: insert proper C++ library support 15153 ld_shlibs_CXX=no 15154 ;; 15155 esac 15156 15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15158$as_echo "$ld_shlibs_CXX" >&6; } 15159 test no = "$ld_shlibs_CXX" && can_build_shared=no 15160 15161 GCC_CXX=$GXX 15162 LD_CXX=$LD 15163 15164 ## CAVEAT EMPTOR: 15165 ## There is no encapsulation within the following macros, do not change 15166 ## the running order or otherwise move them around unless you know exactly 15167 ## what you are doing... 15168 # Dependencies to place before and after the object being linked: 15169predep_objects_CXX= 15170postdep_objects_CXX= 15171predeps_CXX= 15172postdeps_CXX= 15173compiler_lib_search_path_CXX= 15174 15175cat > conftest.$ac_ext <<_LT_EOF 15176class Foo 15177{ 15178public: 15179 Foo (void) { a = 0; } 15180private: 15181 int a; 15182}; 15183_LT_EOF 15184 15185 15186_lt_libdeps_save_CFLAGS=$CFLAGS 15187case "$CC $CFLAGS " in #( 15188*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15189*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15190*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15191esac 15192 15193if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15194 (eval $ac_compile) 2>&5 15195 ac_status=$? 15196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15197 test $ac_status = 0; }; then 15198 # Parse the compiler output and extract the necessary 15199 # objects, libraries and library flags. 15200 15201 # Sentinel used to keep track of whether or not we are before 15202 # the conftest object file. 15203 pre_test_object_deps_done=no 15204 15205 for p in `eval "$output_verbose_link_cmd"`; do 15206 case $prev$p in 15207 15208 -L* | -R* | -l*) 15209 # Some compilers place space between "-{L,R}" and the path. 15210 # Remove the space. 15211 if test x-L = "$p" || 15212 test x-R = "$p"; then 15213 prev=$p 15214 continue 15215 fi 15216 15217 # Expand the sysroot to ease extracting the directories later. 15218 if test -z "$prev"; then 15219 case $p in 15220 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15221 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15222 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15223 esac 15224 fi 15225 case $p in 15226 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15227 esac 15228 if test no = "$pre_test_object_deps_done"; then 15229 case $prev in 15230 -L | -R) 15231 # Internal compiler library paths should come after those 15232 # provided the user. The postdeps already come after the 15233 # user supplied libs so there is no need to process them. 15234 if test -z "$compiler_lib_search_path_CXX"; then 15235 compiler_lib_search_path_CXX=$prev$p 15236 else 15237 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15238 fi 15239 ;; 15240 # The "-l" case would never come before the object being 15241 # linked, so don't bother handling this case. 15242 esac 15243 else 15244 if test -z "$postdeps_CXX"; then 15245 postdeps_CXX=$prev$p 15246 else 15247 postdeps_CXX="${postdeps_CXX} $prev$p" 15248 fi 15249 fi 15250 prev= 15251 ;; 15252 15253 *.lto.$objext) ;; # Ignore GCC LTO objects 15254 *.$objext) 15255 # This assumes that the test object file only shows up 15256 # once in the compiler output. 15257 if test "$p" = "conftest.$objext"; then 15258 pre_test_object_deps_done=yes 15259 continue 15260 fi 15261 15262 if test no = "$pre_test_object_deps_done"; then 15263 if test -z "$predep_objects_CXX"; then 15264 predep_objects_CXX=$p 15265 else 15266 predep_objects_CXX="$predep_objects_CXX $p" 15267 fi 15268 else 15269 if test -z "$postdep_objects_CXX"; then 15270 postdep_objects_CXX=$p 15271 else 15272 postdep_objects_CXX="$postdep_objects_CXX $p" 15273 fi 15274 fi 15275 ;; 15276 15277 *) ;; # Ignore the rest. 15278 15279 esac 15280 done 15281 15282 # Clean up. 15283 rm -f a.out a.exe 15284else 15285 echo "libtool.m4: error: problem compiling CXX test program" 15286fi 15287 15288$RM -f confest.$objext 15289CFLAGS=$_lt_libdeps_save_CFLAGS 15290 15291# PORTME: override above test on systems where it is broken 15292case $host_os in 15293interix[3-9]*) 15294 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15295 # hack all around it, let's just trust "g++" to DTRT. 15296 predep_objects_CXX= 15297 postdep_objects_CXX= 15298 postdeps_CXX= 15299 ;; 15300esac 15301 15302 15303case " $postdeps_CXX " in 15304*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15305esac 15306 compiler_lib_search_dirs_CXX= 15307if test -n "${compiler_lib_search_path_CXX}"; then 15308 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15309fi 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 lt_prog_compiler_wl_CXX= 15342lt_prog_compiler_pic_CXX= 15343lt_prog_compiler_static_CXX= 15344 15345 15346 # C++ specific cases for pic, static, wl, etc. 15347 if test yes = "$GXX"; then 15348 lt_prog_compiler_wl_CXX='-Wl,' 15349 lt_prog_compiler_static_CXX='-static' 15350 15351 case $host_os in 15352 aix*) 15353 # All AIX code is PIC. 15354 if test ia64 = "$host_cpu"; then 15355 # AIX 5 now supports IA64 processor 15356 lt_prog_compiler_static_CXX='-Bstatic' 15357 fi 15358 lt_prog_compiler_pic_CXX='-fPIC' 15359 ;; 15360 15361 amigaos*) 15362 case $host_cpu in 15363 powerpc) 15364 # see comment about AmigaOS4 .so support 15365 lt_prog_compiler_pic_CXX='-fPIC' 15366 ;; 15367 m68k) 15368 # FIXME: we need at least 68020 code to build shared libraries, but 15369 # adding the '-m68020' flag to GCC prevents building anything better, 15370 # like '-m68040'. 15371 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15372 ;; 15373 esac 15374 ;; 15375 15376 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15377 # PIC is the default for these OSes. 15378 ;; 15379 mingw* | cygwin* | os2* | pw32* | cegcc*) 15380 # This hack is so that the source file can tell whether it is being 15381 # built for inclusion in a dll (and should export symbols for example). 15382 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15383 # (--disable-auto-import) libraries 15384 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15385 case $host_os in 15386 os2*) 15387 lt_prog_compiler_static_CXX='$wl-static' 15388 ;; 15389 esac 15390 ;; 15391 darwin* | rhapsody*) 15392 # PIC is the default on this platform 15393 # Common symbols not allowed in MH_DYLIB files 15394 lt_prog_compiler_pic_CXX='-fno-common' 15395 ;; 15396 *djgpp*) 15397 # DJGPP does not support shared libraries at all 15398 lt_prog_compiler_pic_CXX= 15399 ;; 15400 haiku*) 15401 # PIC is the default for Haiku. 15402 # The "-static" flag exists, but is broken. 15403 lt_prog_compiler_static_CXX= 15404 ;; 15405 interix[3-9]*) 15406 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15407 # Instead, we relocate shared libraries at runtime. 15408 ;; 15409 sysv4*MP*) 15410 if test -d /usr/nec; then 15411 lt_prog_compiler_pic_CXX=-Kconform_pic 15412 fi 15413 ;; 15414 hpux*) 15415 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15416 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15417 # sets the default TLS model and affects inlining. 15418 case $host_cpu in 15419 hppa*64*) 15420 ;; 15421 *) 15422 lt_prog_compiler_pic_CXX='-fPIC' 15423 ;; 15424 esac 15425 ;; 15426 *qnx* | *nto*) 15427 # QNX uses GNU C++, but need to define -shared option too, otherwise 15428 # it will coredump. 15429 lt_prog_compiler_pic_CXX='-fPIC -shared' 15430 ;; 15431 *) 15432 lt_prog_compiler_pic_CXX='-fPIC' 15433 ;; 15434 esac 15435 else 15436 case $host_os in 15437 aix[4-9]*) 15438 # All AIX code is PIC. 15439 if test ia64 = "$host_cpu"; then 15440 # AIX 5 now supports IA64 processor 15441 lt_prog_compiler_static_CXX='-Bstatic' 15442 else 15443 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15444 fi 15445 ;; 15446 chorus*) 15447 case $cc_basename in 15448 cxch68*) 15449 # Green Hills C++ Compiler 15450 # _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" 15451 ;; 15452 esac 15453 ;; 15454 mingw* | cygwin* | os2* | pw32* | cegcc*) 15455 # This hack is so that the source file can tell whether it is being 15456 # built for inclusion in a dll (and should export symbols for example). 15457 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15458 ;; 15459 dgux*) 15460 case $cc_basename in 15461 ec++*) 15462 lt_prog_compiler_pic_CXX='-KPIC' 15463 ;; 15464 ghcx*) 15465 # Green Hills C++ Compiler 15466 lt_prog_compiler_pic_CXX='-pic' 15467 ;; 15468 *) 15469 ;; 15470 esac 15471 ;; 15472 freebsd* | dragonfly*) 15473 # FreeBSD uses GNU C++ 15474 ;; 15475 hpux9* | hpux10* | hpux11*) 15476 case $cc_basename in 15477 CC*) 15478 lt_prog_compiler_wl_CXX='-Wl,' 15479 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15480 if test ia64 != "$host_cpu"; then 15481 lt_prog_compiler_pic_CXX='+Z' 15482 fi 15483 ;; 15484 aCC*) 15485 lt_prog_compiler_wl_CXX='-Wl,' 15486 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15487 case $host_cpu in 15488 hppa*64*|ia64*) 15489 # +Z the default 15490 ;; 15491 *) 15492 lt_prog_compiler_pic_CXX='+Z' 15493 ;; 15494 esac 15495 ;; 15496 *) 15497 ;; 15498 esac 15499 ;; 15500 interix*) 15501 # This is c89, which is MS Visual C++ (no shared libs) 15502 # Anyone wants to do a port? 15503 ;; 15504 irix5* | irix6* | nonstopux*) 15505 case $cc_basename in 15506 CC*) 15507 lt_prog_compiler_wl_CXX='-Wl,' 15508 lt_prog_compiler_static_CXX='-non_shared' 15509 # CC pic flag -KPIC is the default. 15510 ;; 15511 *) 15512 ;; 15513 esac 15514 ;; 15515 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15516 case $cc_basename in 15517 KCC*) 15518 # KAI C++ Compiler 15519 lt_prog_compiler_wl_CXX='--backend -Wl,' 15520 lt_prog_compiler_pic_CXX='-fPIC' 15521 ;; 15522 ecpc* ) 15523 # old Intel C++ for x86_64, which still supported -KPIC. 15524 lt_prog_compiler_wl_CXX='-Wl,' 15525 lt_prog_compiler_pic_CXX='-KPIC' 15526 lt_prog_compiler_static_CXX='-static' 15527 ;; 15528 icpc* ) 15529 # Intel C++, used to be incompatible with GCC. 15530 # ICC 10 doesn't accept -KPIC any more. 15531 lt_prog_compiler_wl_CXX='-Wl,' 15532 lt_prog_compiler_pic_CXX='-fPIC' 15533 lt_prog_compiler_static_CXX='-static' 15534 ;; 15535 pgCC* | pgcpp*) 15536 # Portland Group C++ compiler 15537 lt_prog_compiler_wl_CXX='-Wl,' 15538 lt_prog_compiler_pic_CXX='-fpic' 15539 lt_prog_compiler_static_CXX='-Bstatic' 15540 ;; 15541 cxx*) 15542 # Compaq C++ 15543 # Make sure the PIC flag is empty. It appears that all Alpha 15544 # Linux and Compaq Tru64 Unix objects are PIC. 15545 lt_prog_compiler_pic_CXX= 15546 lt_prog_compiler_static_CXX='-non_shared' 15547 ;; 15548 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15549 # IBM XL 8.0, 9.0 on PPC and BlueGene 15550 lt_prog_compiler_wl_CXX='-Wl,' 15551 lt_prog_compiler_pic_CXX='-qpic' 15552 lt_prog_compiler_static_CXX='-qstaticlink' 15553 ;; 15554 *) 15555 case `$CC -V 2>&1 | sed 5q` in 15556 *Sun\ C*) 15557 # Sun C++ 5.9 15558 lt_prog_compiler_pic_CXX='-KPIC' 15559 lt_prog_compiler_static_CXX='-Bstatic' 15560 lt_prog_compiler_wl_CXX='-Qoption ld ' 15561 ;; 15562 esac 15563 ;; 15564 esac 15565 ;; 15566 lynxos*) 15567 ;; 15568 m88k*) 15569 ;; 15570 mvs*) 15571 case $cc_basename in 15572 cxx*) 15573 lt_prog_compiler_pic_CXX='-W c,exportall' 15574 ;; 15575 *) 15576 ;; 15577 esac 15578 ;; 15579 netbsd*) 15580 ;; 15581 *qnx* | *nto*) 15582 # QNX uses GNU C++, but need to define -shared option too, otherwise 15583 # it will coredump. 15584 lt_prog_compiler_pic_CXX='-fPIC -shared' 15585 ;; 15586 osf3* | osf4* | osf5*) 15587 case $cc_basename in 15588 KCC*) 15589 lt_prog_compiler_wl_CXX='--backend -Wl,' 15590 ;; 15591 RCC*) 15592 # Rational C++ 2.4.1 15593 lt_prog_compiler_pic_CXX='-pic' 15594 ;; 15595 cxx*) 15596 # Digital/Compaq C++ 15597 lt_prog_compiler_wl_CXX='-Wl,' 15598 # Make sure the PIC flag is empty. It appears that all Alpha 15599 # Linux and Compaq Tru64 Unix objects are PIC. 15600 lt_prog_compiler_pic_CXX= 15601 lt_prog_compiler_static_CXX='-non_shared' 15602 ;; 15603 *) 15604 ;; 15605 esac 15606 ;; 15607 psos*) 15608 ;; 15609 solaris*) 15610 case $cc_basename in 15611 CC* | sunCC*) 15612 # Sun C++ 4.2, 5.x and Centerline C++ 15613 lt_prog_compiler_pic_CXX='-KPIC' 15614 lt_prog_compiler_static_CXX='-Bstatic' 15615 lt_prog_compiler_wl_CXX='-Qoption ld ' 15616 ;; 15617 gcx*) 15618 # Green Hills C++ Compiler 15619 lt_prog_compiler_pic_CXX='-PIC' 15620 ;; 15621 *) 15622 ;; 15623 esac 15624 ;; 15625 sunos4*) 15626 case $cc_basename in 15627 CC*) 15628 # Sun C++ 4.x 15629 lt_prog_compiler_pic_CXX='-pic' 15630 lt_prog_compiler_static_CXX='-Bstatic' 15631 ;; 15632 lcc*) 15633 # Lucid 15634 lt_prog_compiler_pic_CXX='-pic' 15635 ;; 15636 *) 15637 ;; 15638 esac 15639 ;; 15640 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15641 case $cc_basename in 15642 CC*) 15643 lt_prog_compiler_wl_CXX='-Wl,' 15644 lt_prog_compiler_pic_CXX='-KPIC' 15645 lt_prog_compiler_static_CXX='-Bstatic' 15646 ;; 15647 esac 15648 ;; 15649 tandem*) 15650 case $cc_basename in 15651 NCC*) 15652 # NonStop-UX NCC 3.20 15653 lt_prog_compiler_pic_CXX='-KPIC' 15654 ;; 15655 *) 15656 ;; 15657 esac 15658 ;; 15659 vxworks*) 15660 ;; 15661 *) 15662 lt_prog_compiler_can_build_shared_CXX=no 15663 ;; 15664 esac 15665 fi 15666 15667case $host_os in 15668 # For platforms that do not support PIC, -DPIC is meaningless: 15669 *djgpp*) 15670 lt_prog_compiler_pic_CXX= 15671 ;; 15672 *) 15673 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15674 ;; 15675esac 15676 15677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15678$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15679if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15680 $as_echo_n "(cached) " >&6 15681else 15682 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15683fi 15684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15685$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15686lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15687 15688# 15689# Check to make sure the PIC flag actually works. 15690# 15691if test -n "$lt_prog_compiler_pic_CXX"; then 15692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15693$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15694if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15695 $as_echo_n "(cached) " >&6 15696else 15697 lt_cv_prog_compiler_pic_works_CXX=no 15698 ac_outfile=conftest.$ac_objext 15699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15700 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15701 # Insert the option either (1) after the last *FLAGS variable, or 15702 # (2) before a word containing "conftest.", or (3) at the end. 15703 # Note that $ac_compile itself does not contain backslashes and begins 15704 # with a dollar sign (not a hyphen), so the echo should work correctly. 15705 # The option is referenced via a variable to avoid confusing sed. 15706 lt_compile=`echo "$ac_compile" | $SED \ 15707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15709 -e 's:$: $lt_compiler_flag:'` 15710 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15711 (eval "$lt_compile" 2>conftest.err) 15712 ac_status=$? 15713 cat conftest.err >&5 15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15715 if (exit $ac_status) && test -s "$ac_outfile"; then 15716 # The compiler can only warn and ignore the option if not recognized 15717 # So say no if there are warnings other than the usual output. 15718 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15720 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15721 lt_cv_prog_compiler_pic_works_CXX=yes 15722 fi 15723 fi 15724 $RM conftest* 15725 15726fi 15727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15728$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15729 15730if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15731 case $lt_prog_compiler_pic_CXX in 15732 "" | " "*) ;; 15733 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15734 esac 15735else 15736 lt_prog_compiler_pic_CXX= 15737 lt_prog_compiler_can_build_shared_CXX=no 15738fi 15739 15740fi 15741 15742 15743 15744 15745 15746# 15747# Check to make sure the static flag actually works. 15748# 15749wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15751$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15752if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15753 $as_echo_n "(cached) " >&6 15754else 15755 lt_cv_prog_compiler_static_works_CXX=no 15756 save_LDFLAGS=$LDFLAGS 15757 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15758 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15759 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15760 # The linker can only warn and ignore the option if not recognized 15761 # So say no if there are warnings 15762 if test -s conftest.err; then 15763 # Append any errors to the config.log. 15764 cat conftest.err 1>&5 15765 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15766 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15767 if diff conftest.exp conftest.er2 >/dev/null; then 15768 lt_cv_prog_compiler_static_works_CXX=yes 15769 fi 15770 else 15771 lt_cv_prog_compiler_static_works_CXX=yes 15772 fi 15773 fi 15774 $RM -r conftest* 15775 LDFLAGS=$save_LDFLAGS 15776 15777fi 15778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15779$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15780 15781if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15782 : 15783else 15784 lt_prog_compiler_static_CXX= 15785fi 15786 15787 15788 15789 15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15791$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15792if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15793 $as_echo_n "(cached) " >&6 15794else 15795 lt_cv_prog_compiler_c_o_CXX=no 15796 $RM -r conftest 2>/dev/null 15797 mkdir conftest 15798 cd conftest 15799 mkdir out 15800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15801 15802 lt_compiler_flag="-o out/conftest2.$ac_objext" 15803 # Insert the option either (1) after the last *FLAGS variable, or 15804 # (2) before a word containing "conftest.", or (3) at the end. 15805 # Note that $ac_compile itself does not contain backslashes and begins 15806 # with a dollar sign (not a hyphen), so the echo should work correctly. 15807 lt_compile=`echo "$ac_compile" | $SED \ 15808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15810 -e 's:$: $lt_compiler_flag:'` 15811 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15812 (eval "$lt_compile" 2>out/conftest.err) 15813 ac_status=$? 15814 cat out/conftest.err >&5 15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15816 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15817 then 15818 # The compiler can only warn and ignore the option if not recognized 15819 # So say no if there are warnings 15820 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15821 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15822 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15823 lt_cv_prog_compiler_c_o_CXX=yes 15824 fi 15825 fi 15826 chmod u+w . 2>&5 15827 $RM conftest* 15828 # SGI C++ compiler will create directory out/ii_files/ for 15829 # template instantiation 15830 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15831 $RM out/* && rmdir out 15832 cd .. 15833 $RM -r conftest 15834 $RM conftest* 15835 15836fi 15837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15838$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15839 15840 15841 15842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15843$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15844if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15845 $as_echo_n "(cached) " >&6 15846else 15847 lt_cv_prog_compiler_c_o_CXX=no 15848 $RM -r conftest 2>/dev/null 15849 mkdir conftest 15850 cd conftest 15851 mkdir out 15852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15853 15854 lt_compiler_flag="-o out/conftest2.$ac_objext" 15855 # Insert the option either (1) after the last *FLAGS variable, or 15856 # (2) before a word containing "conftest.", or (3) at the end. 15857 # Note that $ac_compile itself does not contain backslashes and begins 15858 # with a dollar sign (not a hyphen), so the echo should work correctly. 15859 lt_compile=`echo "$ac_compile" | $SED \ 15860 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15861 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15862 -e 's:$: $lt_compiler_flag:'` 15863 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15864 (eval "$lt_compile" 2>out/conftest.err) 15865 ac_status=$? 15866 cat out/conftest.err >&5 15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15868 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15869 then 15870 # The compiler can only warn and ignore the option if not recognized 15871 # So say no if there are warnings 15872 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15873 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15874 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15875 lt_cv_prog_compiler_c_o_CXX=yes 15876 fi 15877 fi 15878 chmod u+w . 2>&5 15879 $RM conftest* 15880 # SGI C++ compiler will create directory out/ii_files/ for 15881 # template instantiation 15882 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15883 $RM out/* && rmdir out 15884 cd .. 15885 $RM -r conftest 15886 $RM conftest* 15887 15888fi 15889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15890$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15891 15892 15893 15894 15895hard_links=nottested 15896if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15897 # do not overwrite the value of need_locks provided by the user 15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15899$as_echo_n "checking if we can lock with hard links... " >&6; } 15900 hard_links=yes 15901 $RM conftest* 15902 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15903 touch conftest.a 15904 ln conftest.a conftest.b 2>&5 || hard_links=no 15905 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15907$as_echo "$hard_links" >&6; } 15908 if test no = "$hard_links"; then 15909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15910$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15911 need_locks=warn 15912 fi 15913else 15914 need_locks=no 15915fi 15916 15917 15918 15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15920$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15921 15922 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15923 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15924 case $host_os in 15925 aix[4-9]*) 15926 # If we're using GNU nm, then we don't want the "-C" option. 15927 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15928 # Without the "-l" option, or with the "-B" option, AIX nm treats 15929 # weak defined symbols like other global defined symbols, whereas 15930 # GNU nm marks them as "W". 15931 # While the 'weak' keyword is ignored in the Export File, we need 15932 # it in the Import File for the 'aix-soname' feature, so we have 15933 # to replace the "-B" option with "-P" for AIX nm. 15934 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15935 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 15936 else 15937 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 15938 fi 15939 ;; 15940 pw32*) 15941 export_symbols_cmds_CXX=$ltdll_cmds 15942 ;; 15943 cygwin* | mingw* | cegcc*) 15944 case $cc_basename in 15945 cl*) 15946 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15947 ;; 15948 *) 15949 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' 15950 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15951 ;; 15952 esac 15953 ;; 15954 *) 15955 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15956 ;; 15957 esac 15958 15959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15960$as_echo "$ld_shlibs_CXX" >&6; } 15961test no = "$ld_shlibs_CXX" && can_build_shared=no 15962 15963with_gnu_ld_CXX=$with_gnu_ld 15964 15965 15966 15967 15968 15969 15970# 15971# Do we need to explicitly link libc? 15972# 15973case "x$archive_cmds_need_lc_CXX" in 15974x|xyes) 15975 # Assume -lc should be added 15976 archive_cmds_need_lc_CXX=yes 15977 15978 if test yes,yes = "$GCC,$enable_shared"; then 15979 case $archive_cmds_CXX in 15980 *'~'*) 15981 # FIXME: we may have to deal with multi-command sequences. 15982 ;; 15983 '$CC '*) 15984 # Test whether the compiler implicitly links with -lc since on some 15985 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15986 # to ld, don't add -lc before -lgcc. 15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15988$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15989if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15990 $as_echo_n "(cached) " >&6 15991else 15992 $RM conftest* 15993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15994 15995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15996 (eval $ac_compile) 2>&5 15997 ac_status=$? 15998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15999 test $ac_status = 0; } 2>conftest.err; then 16000 soname=conftest 16001 lib=conftest 16002 libobjs=conftest.$ac_objext 16003 deplibs= 16004 wl=$lt_prog_compiler_wl_CXX 16005 pic_flag=$lt_prog_compiler_pic_CXX 16006 compiler_flags=-v 16007 linker_flags=-v 16008 verstring= 16009 output_objdir=. 16010 libname=conftest 16011 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 16012 allow_undefined_flag_CXX= 16013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16014 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16015 ac_status=$? 16016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16017 test $ac_status = 0; } 16018 then 16019 lt_cv_archive_cmds_need_lc_CXX=no 16020 else 16021 lt_cv_archive_cmds_need_lc_CXX=yes 16022 fi 16023 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 16024 else 16025 cat conftest.err 1>&5 16026 fi 16027 $RM conftest* 16028 16029fi 16030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 16031$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 16032 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 16033 ;; 16034 esac 16035 fi 16036 ;; 16037esac 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16101$as_echo_n "checking dynamic linker characteristics... " >&6; } 16102 16103library_names_spec= 16104libname_spec='lib$name' 16105soname_spec= 16106shrext_cmds=.so 16107postinstall_cmds= 16108postuninstall_cmds= 16109finish_cmds= 16110finish_eval= 16111shlibpath_var= 16112shlibpath_overrides_runpath=unknown 16113version_type=none 16114dynamic_linker="$host_os ld.so" 16115sys_lib_dlsearch_path_spec="/lib /usr/lib" 16116need_lib_prefix=unknown 16117hardcode_into_libs=no 16118 16119# when you set need_version to no, make sure it does not cause -set_version 16120# flags to be left without arguments 16121need_version=unknown 16122 16123 16124 16125case $host_os in 16126aix3*) 16127 version_type=linux # correct to gnu/linux during the next big refactor 16128 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 16129 shlibpath_var=LIBPATH 16130 16131 # AIX 3 has no versioning support, so we append a major version to the name. 16132 soname_spec='$libname$release$shared_ext$major' 16133 ;; 16134 16135aix[4-9]*) 16136 version_type=linux # correct to gnu/linux during the next big refactor 16137 need_lib_prefix=no 16138 need_version=no 16139 hardcode_into_libs=yes 16140 if test ia64 = "$host_cpu"; then 16141 # AIX 5 supports IA64 16142 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16143 shlibpath_var=LD_LIBRARY_PATH 16144 else 16145 # With GCC up to 2.95.x, collect2 would create an import file 16146 # for dependence libraries. The import file would start with 16147 # the line '#! .'. This would cause the generated library to 16148 # depend on '.', always an invalid library. This was fixed in 16149 # development snapshots of GCC prior to 3.0. 16150 case $host_os in 16151 aix4 | aix4.[01] | aix4.[01].*) 16152 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16153 echo ' yes ' 16154 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16155 : 16156 else 16157 can_build_shared=no 16158 fi 16159 ;; 16160 esac 16161 # Using Import Files as archive members, it is possible to support 16162 # filename-based versioning of shared library archives on AIX. While 16163 # this would work for both with and without runtime linking, it will 16164 # prevent static linking of such archives. So we do filename-based 16165 # shared library versioning with .so extension only, which is used 16166 # when both runtime linking and shared linking is enabled. 16167 # Unfortunately, runtime linking may impact performance, so we do 16168 # not want this to be the default eventually. Also, we use the 16169 # versioned .so libs for executables only if there is the -brtl 16170 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16171 # To allow for filename-based versioning support, we need to create 16172 # libNAME.so.V as an archive file, containing: 16173 # *) an Import File, referring to the versioned filename of the 16174 # archive as well as the shared archive member, telling the 16175 # bitwidth (32 or 64) of that shared object, and providing the 16176 # list of exported symbols of that shared object, eventually 16177 # decorated with the 'weak' keyword 16178 # *) the shared object with the F_LOADONLY flag set, to really avoid 16179 # it being seen by the linker. 16180 # At run time we better use the real file rather than another symlink, 16181 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16182 16183 case $with_aix_soname,$aix_use_runtimelinking in 16184 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16185 # soname into executable. Probably we can add versioning support to 16186 # collect2, so additional links can be useful in future. 16187 aix,yes) # traditional libtool 16188 dynamic_linker='AIX unversionable lib.so' 16189 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16190 # instead of lib<name>.a to let people know that these are not 16191 # typical AIX shared libraries. 16192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16193 ;; 16194 aix,no) # traditional AIX only 16195 dynamic_linker='AIX lib.a(lib.so.V)' 16196 # We preserve .a as extension for shared libraries through AIX4.2 16197 # and later when we are not doing run time linking. 16198 library_names_spec='$libname$release.a $libname.a' 16199 soname_spec='$libname$release$shared_ext$major' 16200 ;; 16201 svr4,*) # full svr4 only 16202 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16203 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16204 # We do not specify a path in Import Files, so LIBPATH fires. 16205 shlibpath_overrides_runpath=yes 16206 ;; 16207 *,yes) # both, prefer svr4 16208 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16209 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16210 # unpreferred sharedlib libNAME.a needs extra handling 16211 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 16212 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 16213 # We do not specify a path in Import Files, so LIBPATH fires. 16214 shlibpath_overrides_runpath=yes 16215 ;; 16216 *,no) # both, prefer aix 16217 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16218 library_names_spec='$libname$release.a $libname.a' 16219 soname_spec='$libname$release$shared_ext$major' 16220 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16221 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 16222 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 16223 ;; 16224 esac 16225 shlibpath_var=LIBPATH 16226 fi 16227 ;; 16228 16229amigaos*) 16230 case $host_cpu in 16231 powerpc) 16232 # Since July 2007 AmigaOS4 officially supports .so libraries. 16233 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16234 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16235 ;; 16236 m68k) 16237 library_names_spec='$libname.ixlibrary $libname.a' 16238 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16239 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 16240 ;; 16241 esac 16242 ;; 16243 16244beos*) 16245 library_names_spec='$libname$shared_ext' 16246 dynamic_linker="$host_os ld.so" 16247 shlibpath_var=LIBRARY_PATH 16248 ;; 16249 16250bsdi[45]*) 16251 version_type=linux # correct to gnu/linux during the next big refactor 16252 need_version=no 16253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16254 soname_spec='$libname$release$shared_ext$major' 16255 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16256 shlibpath_var=LD_LIBRARY_PATH 16257 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16258 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16259 # the default ld.so.conf also contains /usr/contrib/lib and 16260 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16261 # libtool to hard-code these into programs 16262 ;; 16263 16264cygwin* | mingw* | pw32* | cegcc*) 16265 version_type=windows 16266 shrext_cmds=.dll 16267 need_version=no 16268 need_lib_prefix=no 16269 16270 case $GCC,$cc_basename in 16271 yes,*) 16272 # gcc 16273 library_names_spec='$libname.dll.a' 16274 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16275 postinstall_cmds='base_file=`basename \$file`~ 16276 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16277 dldir=$destdir/`dirname \$dlpath`~ 16278 test -d \$dldir || mkdir -p \$dldir~ 16279 $install_prog $dir/$dlname \$dldir/$dlname~ 16280 chmod a+x \$dldir/$dlname~ 16281 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16282 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16283 fi' 16284 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16285 dlpath=$dir/\$dldll~ 16286 $RM \$dlpath' 16287 shlibpath_overrides_runpath=yes 16288 16289 case $host_os in 16290 cygwin*) 16291 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16292 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16293 16294 ;; 16295 mingw* | cegcc*) 16296 # MinGW DLLs use traditional 'lib' prefix 16297 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16298 ;; 16299 pw32*) 16300 # pw32 DLLs use 'pw' prefix rather than 'lib' 16301 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16302 ;; 16303 esac 16304 dynamic_linker='Win32 ld.exe' 16305 ;; 16306 16307 *,cl*) 16308 # Native MSVC 16309 libname_spec='$name' 16310 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16311 library_names_spec='$libname.dll.lib' 16312 16313 case $build_os in 16314 mingw*) 16315 sys_lib_search_path_spec= 16316 lt_save_ifs=$IFS 16317 IFS=';' 16318 for lt_path in $LIB 16319 do 16320 IFS=$lt_save_ifs 16321 # Let DOS variable expansion print the short 8.3 style file name. 16322 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16323 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16324 done 16325 IFS=$lt_save_ifs 16326 # Convert to MSYS style. 16327 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16328 ;; 16329 cygwin*) 16330 # Convert to unix form, then to dos form, then back to unix form 16331 # but this time dos style (no spaces!) so that the unix form looks 16332 # like /cygdrive/c/PROGRA~1:/cygdr... 16333 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16334 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16335 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16336 ;; 16337 *) 16338 sys_lib_search_path_spec=$LIB 16339 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16340 # It is most probably a Windows format PATH. 16341 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16342 else 16343 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16344 fi 16345 # FIXME: find the short name or the path components, as spaces are 16346 # common. (e.g. "Program Files" -> "PROGRA~1") 16347 ;; 16348 esac 16349 16350 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16351 postinstall_cmds='base_file=`basename \$file`~ 16352 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16353 dldir=$destdir/`dirname \$dlpath`~ 16354 test -d \$dldir || mkdir -p \$dldir~ 16355 $install_prog $dir/$dlname \$dldir/$dlname' 16356 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16357 dlpath=$dir/\$dldll~ 16358 $RM \$dlpath' 16359 shlibpath_overrides_runpath=yes 16360 dynamic_linker='Win32 link.exe' 16361 ;; 16362 16363 *) 16364 # Assume MSVC wrapper 16365 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16366 dynamic_linker='Win32 ld.exe' 16367 ;; 16368 esac 16369 # FIXME: first we should search . and the directory the executable is in 16370 shlibpath_var=PATH 16371 ;; 16372 16373darwin* | rhapsody*) 16374 dynamic_linker="$host_os dyld" 16375 version_type=darwin 16376 need_lib_prefix=no 16377 need_version=no 16378 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16379 soname_spec='$libname$release$major$shared_ext' 16380 shlibpath_overrides_runpath=yes 16381 shlibpath_var=DYLD_LIBRARY_PATH 16382 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16383 16384 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16385 ;; 16386 16387dgux*) 16388 version_type=linux # correct to gnu/linux during the next big refactor 16389 need_lib_prefix=no 16390 need_version=no 16391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16392 soname_spec='$libname$release$shared_ext$major' 16393 shlibpath_var=LD_LIBRARY_PATH 16394 ;; 16395 16396freebsd* | dragonfly*) 16397 # DragonFly does not have aout. When/if they implement a new 16398 # versioning mechanism, adjust this. 16399 if test -x /usr/bin/objformat; then 16400 objformat=`/usr/bin/objformat` 16401 else 16402 case $host_os in 16403 freebsd[23].*) objformat=aout ;; 16404 *) objformat=elf ;; 16405 esac 16406 fi 16407 version_type=freebsd-$objformat 16408 case $version_type in 16409 freebsd-elf*) 16410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16411 soname_spec='$libname$release$shared_ext$major' 16412 need_version=no 16413 need_lib_prefix=no 16414 ;; 16415 freebsd-*) 16416 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16417 need_version=yes 16418 ;; 16419 esac 16420 shlibpath_var=LD_LIBRARY_PATH 16421 case $host_os in 16422 freebsd2.*) 16423 shlibpath_overrides_runpath=yes 16424 ;; 16425 freebsd3.[01]* | freebsdelf3.[01]*) 16426 shlibpath_overrides_runpath=yes 16427 hardcode_into_libs=yes 16428 ;; 16429 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16430 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16431 shlibpath_overrides_runpath=no 16432 hardcode_into_libs=yes 16433 ;; 16434 *) # from 4.6 on, and DragonFly 16435 shlibpath_overrides_runpath=yes 16436 hardcode_into_libs=yes 16437 ;; 16438 esac 16439 ;; 16440 16441haiku*) 16442 version_type=linux # correct to gnu/linux during the next big refactor 16443 need_lib_prefix=no 16444 need_version=no 16445 dynamic_linker="$host_os runtime_loader" 16446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16447 soname_spec='$libname$release$shared_ext$major' 16448 shlibpath_var=LIBRARY_PATH 16449 shlibpath_overrides_runpath=no 16450 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16451 hardcode_into_libs=yes 16452 ;; 16453 16454hpux9* | hpux10* | hpux11*) 16455 # Give a soname corresponding to the major version so that dld.sl refuses to 16456 # link against other versions. 16457 version_type=sunos 16458 need_lib_prefix=no 16459 need_version=no 16460 case $host_cpu in 16461 ia64*) 16462 shrext_cmds='.so' 16463 hardcode_into_libs=yes 16464 dynamic_linker="$host_os dld.so" 16465 shlibpath_var=LD_LIBRARY_PATH 16466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16467 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16468 soname_spec='$libname$release$shared_ext$major' 16469 if test 32 = "$HPUX_IA64_MODE"; then 16470 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16471 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16472 else 16473 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16474 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16475 fi 16476 ;; 16477 hppa*64*) 16478 shrext_cmds='.sl' 16479 hardcode_into_libs=yes 16480 dynamic_linker="$host_os dld.sl" 16481 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16482 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16484 soname_spec='$libname$release$shared_ext$major' 16485 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16486 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16487 ;; 16488 *) 16489 shrext_cmds='.sl' 16490 dynamic_linker="$host_os dld.sl" 16491 shlibpath_var=SHLIB_PATH 16492 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16494 soname_spec='$libname$release$shared_ext$major' 16495 ;; 16496 esac 16497 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16498 postinstall_cmds='chmod 555 $lib' 16499 # or fails outright, so override atomically: 16500 install_override_mode=555 16501 ;; 16502 16503interix[3-9]*) 16504 version_type=linux # correct to gnu/linux during the next big refactor 16505 need_lib_prefix=no 16506 need_version=no 16507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16508 soname_spec='$libname$release$shared_ext$major' 16509 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16510 shlibpath_var=LD_LIBRARY_PATH 16511 shlibpath_overrides_runpath=no 16512 hardcode_into_libs=yes 16513 ;; 16514 16515irix5* | irix6* | nonstopux*) 16516 case $host_os in 16517 nonstopux*) version_type=nonstopux ;; 16518 *) 16519 if test yes = "$lt_cv_prog_gnu_ld"; then 16520 version_type=linux # correct to gnu/linux during the next big refactor 16521 else 16522 version_type=irix 16523 fi ;; 16524 esac 16525 need_lib_prefix=no 16526 need_version=no 16527 soname_spec='$libname$release$shared_ext$major' 16528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16529 case $host_os in 16530 irix5* | nonstopux*) 16531 libsuff= shlibsuff= 16532 ;; 16533 *) 16534 case $LD in # libtool.m4 will add one of these switches to LD 16535 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16536 libsuff= shlibsuff= libmagic=32-bit;; 16537 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16538 libsuff=32 shlibsuff=N32 libmagic=N32;; 16539 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16540 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16541 *) libsuff= shlibsuff= libmagic=never-match;; 16542 esac 16543 ;; 16544 esac 16545 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16546 shlibpath_overrides_runpath=no 16547 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16548 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16549 hardcode_into_libs=yes 16550 ;; 16551 16552# No shared lib support for Linux oldld, aout, or coff. 16553linux*oldld* | linux*aout* | linux*coff*) 16554 dynamic_linker=no 16555 ;; 16556 16557linux*android*) 16558 version_type=none # Android doesn't support versioned libraries. 16559 need_lib_prefix=no 16560 need_version=no 16561 library_names_spec='$libname$release$shared_ext' 16562 soname_spec='$libname$release$shared_ext' 16563 finish_cmds= 16564 shlibpath_var=LD_LIBRARY_PATH 16565 shlibpath_overrides_runpath=yes 16566 16567 # This implies no fast_install, which is unacceptable. 16568 # Some rework will be needed to allow for fast_install 16569 # before this can be enabled. 16570 hardcode_into_libs=yes 16571 16572 dynamic_linker='Android linker' 16573 # Don't embed -rpath directories since the linker doesn't support them. 16574 hardcode_libdir_flag_spec_CXX='-L$libdir' 16575 ;; 16576 16577# This must be glibc/ELF. 16578linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16579 version_type=linux # correct to gnu/linux during the next big refactor 16580 need_lib_prefix=no 16581 need_version=no 16582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16583 soname_spec='$libname$release$shared_ext$major' 16584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16585 shlibpath_var=LD_LIBRARY_PATH 16586 shlibpath_overrides_runpath=no 16587 16588 # Some binutils ld are patched to set DT_RUNPATH 16589 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16590 $as_echo_n "(cached) " >&6 16591else 16592 lt_cv_shlibpath_overrides_runpath=no 16593 save_LDFLAGS=$LDFLAGS 16594 save_libdir=$libdir 16595 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16596 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16598/* end confdefs.h. */ 16599 16600int 16601main () 16602{ 16603 16604 ; 16605 return 0; 16606} 16607_ACEOF 16608if ac_fn_cxx_try_link "$LINENO"; then : 16609 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16610 lt_cv_shlibpath_overrides_runpath=yes 16611fi 16612fi 16613rm -f core conftest.err conftest.$ac_objext \ 16614 conftest$ac_exeext conftest.$ac_ext 16615 LDFLAGS=$save_LDFLAGS 16616 libdir=$save_libdir 16617 16618fi 16619 16620 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16621 16622 # This implies no fast_install, which is unacceptable. 16623 # Some rework will be needed to allow for fast_install 16624 # before this can be enabled. 16625 hardcode_into_libs=yes 16626 16627 # Add ABI-specific directories to the system library path. 16628 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 16629 16630 # Ideally, we could use ldconfig to report *all* directores which are 16631 # searched for libraries, however this is still not possible. Aside from not 16632 # being certain /sbin/ldconfig is available, command 16633 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16634 # even though it is searched at run-time. Try to do the best guess by 16635 # appending ld.so.conf contents (and includes) to the search path. 16636 if test -f /etc/ld.so.conf; then 16637 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' ' '` 16638 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 16639 fi 16640 16641 # We used to test for /lib/ld.so.1 and disable shared libraries on 16642 # powerpc, because MkLinux only supported shared libraries with the 16643 # GNU dynamic linker. Since this was broken with cross compilers, 16644 # most powerpc-linux boxes support dynamic linking these days and 16645 # people can always --disable-shared, the test was removed, and we 16646 # assume the GNU/Linux dynamic linker is in use. 16647 dynamic_linker='GNU/Linux ld.so' 16648 ;; 16649 16650netbsd*) 16651 version_type=sunos 16652 need_lib_prefix=no 16653 need_version=no 16654 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16655 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16657 dynamic_linker='NetBSD (a.out) ld.so' 16658 else 16659 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16660 soname_spec='$libname$release$shared_ext$major' 16661 dynamic_linker='NetBSD ld.elf_so' 16662 fi 16663 shlibpath_var=LD_LIBRARY_PATH 16664 shlibpath_overrides_runpath=yes 16665 hardcode_into_libs=yes 16666 ;; 16667 16668newsos6) 16669 version_type=linux # correct to gnu/linux during the next big refactor 16670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16671 shlibpath_var=LD_LIBRARY_PATH 16672 shlibpath_overrides_runpath=yes 16673 ;; 16674 16675*nto* | *qnx*) 16676 version_type=qnx 16677 need_lib_prefix=no 16678 need_version=no 16679 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16680 soname_spec='$libname$release$shared_ext$major' 16681 shlibpath_var=LD_LIBRARY_PATH 16682 shlibpath_overrides_runpath=no 16683 hardcode_into_libs=yes 16684 dynamic_linker='ldqnx.so' 16685 ;; 16686 16687openbsd* | bitrig*) 16688 version_type=sunos 16689 sys_lib_dlsearch_path_spec=/usr/lib 16690 need_lib_prefix=no 16691 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16692 need_version=no 16693 else 16694 need_version=yes 16695 fi 16696 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16698 shlibpath_var=LD_LIBRARY_PATH 16699 shlibpath_overrides_runpath=yes 16700 ;; 16701 16702os2*) 16703 libname_spec='$name' 16704 version_type=windows 16705 shrext_cmds=.dll 16706 need_version=no 16707 need_lib_prefix=no 16708 # OS/2 can only load a DLL with a base name of 8 characters or less. 16709 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16710 v=$($ECHO $release$versuffix | tr -d .-); 16711 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16712 $ECHO $n$v`$shared_ext' 16713 library_names_spec='${libname}_dll.$libext' 16714 dynamic_linker='OS/2 ld.exe' 16715 shlibpath_var=BEGINLIBPATH 16716 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16718 postinstall_cmds='base_file=`basename \$file`~ 16719 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16720 dldir=$destdir/`dirname \$dlpath`~ 16721 test -d \$dldir || mkdir -p \$dldir~ 16722 $install_prog $dir/$dlname \$dldir/$dlname~ 16723 chmod a+x \$dldir/$dlname~ 16724 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16725 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16726 fi' 16727 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16728 dlpath=$dir/\$dldll~ 16729 $RM \$dlpath' 16730 ;; 16731 16732osf3* | osf4* | osf5*) 16733 version_type=osf 16734 need_lib_prefix=no 16735 need_version=no 16736 soname_spec='$libname$release$shared_ext$major' 16737 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16738 shlibpath_var=LD_LIBRARY_PATH 16739 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16740 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16741 ;; 16742 16743rdos*) 16744 dynamic_linker=no 16745 ;; 16746 16747solaris*) 16748 version_type=linux # correct to gnu/linux during the next big refactor 16749 need_lib_prefix=no 16750 need_version=no 16751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16752 soname_spec='$libname$release$shared_ext$major' 16753 shlibpath_var=LD_LIBRARY_PATH 16754 shlibpath_overrides_runpath=yes 16755 hardcode_into_libs=yes 16756 # ldd complains unless libraries are executable 16757 postinstall_cmds='chmod +x $lib' 16758 ;; 16759 16760sunos4*) 16761 version_type=sunos 16762 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16763 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16764 shlibpath_var=LD_LIBRARY_PATH 16765 shlibpath_overrides_runpath=yes 16766 if test yes = "$with_gnu_ld"; then 16767 need_lib_prefix=no 16768 fi 16769 need_version=yes 16770 ;; 16771 16772sysv4 | sysv4.3*) 16773 version_type=linux # correct to gnu/linux during the next big refactor 16774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16775 soname_spec='$libname$release$shared_ext$major' 16776 shlibpath_var=LD_LIBRARY_PATH 16777 case $host_vendor in 16778 sni) 16779 shlibpath_overrides_runpath=no 16780 need_lib_prefix=no 16781 runpath_var=LD_RUN_PATH 16782 ;; 16783 siemens) 16784 need_lib_prefix=no 16785 ;; 16786 motorola) 16787 need_lib_prefix=no 16788 need_version=no 16789 shlibpath_overrides_runpath=no 16790 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16791 ;; 16792 esac 16793 ;; 16794 16795sysv4*MP*) 16796 if test -d /usr/nec; then 16797 version_type=linux # correct to gnu/linux during the next big refactor 16798 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16799 soname_spec='$libname$shared_ext.$major' 16800 shlibpath_var=LD_LIBRARY_PATH 16801 fi 16802 ;; 16803 16804sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16805 version_type=sco 16806 need_lib_prefix=no 16807 need_version=no 16808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16809 soname_spec='$libname$release$shared_ext$major' 16810 shlibpath_var=LD_LIBRARY_PATH 16811 shlibpath_overrides_runpath=yes 16812 hardcode_into_libs=yes 16813 if test yes = "$with_gnu_ld"; then 16814 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16815 else 16816 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16817 case $host_os in 16818 sco3.2v5*) 16819 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16820 ;; 16821 esac 16822 fi 16823 sys_lib_dlsearch_path_spec='/usr/lib' 16824 ;; 16825 16826tpf*) 16827 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16828 version_type=linux # correct to gnu/linux during the next big refactor 16829 need_lib_prefix=no 16830 need_version=no 16831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16832 shlibpath_var=LD_LIBRARY_PATH 16833 shlibpath_overrides_runpath=no 16834 hardcode_into_libs=yes 16835 ;; 16836 16837uts4*) 16838 version_type=linux # correct to gnu/linux during the next big refactor 16839 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16840 soname_spec='$libname$release$shared_ext$major' 16841 shlibpath_var=LD_LIBRARY_PATH 16842 ;; 16843 16844*) 16845 dynamic_linker=no 16846 ;; 16847esac 16848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16849$as_echo "$dynamic_linker" >&6; } 16850test no = "$dynamic_linker" && can_build_shared=no 16851 16852variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16853if test yes = "$GCC"; then 16854 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16855fi 16856 16857if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16858 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16859fi 16860 16861if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16862 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16863fi 16864 16865# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16866configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16867 16868# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16869func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16870 16871# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16872configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16914$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16915hardcode_action_CXX= 16916if test -n "$hardcode_libdir_flag_spec_CXX" || 16917 test -n "$runpath_var_CXX" || 16918 test yes = "$hardcode_automatic_CXX"; then 16919 16920 # We can hardcode non-existent directories. 16921 if test no != "$hardcode_direct_CXX" && 16922 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16923 # have to relink, otherwise we might link with an installed library 16924 # when we should be linking with a yet-to-be-installed one 16925 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16926 test no != "$hardcode_minus_L_CXX"; then 16927 # Linking always hardcodes the temporary library directory. 16928 hardcode_action_CXX=relink 16929 else 16930 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16931 hardcode_action_CXX=immediate 16932 fi 16933else 16934 # We cannot hardcode anything, or else we can only hardcode existing 16935 # directories. 16936 hardcode_action_CXX=unsupported 16937fi 16938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16939$as_echo "$hardcode_action_CXX" >&6; } 16940 16941if test relink = "$hardcode_action_CXX" || 16942 test yes = "$inherit_rpath_CXX"; then 16943 # Fast installation is not supported 16944 enable_fast_install=no 16945elif test yes = "$shlibpath_overrides_runpath" || 16946 test no = "$enable_shared"; then 16947 # Fast installation is not necessary 16948 enable_fast_install=needless 16949fi 16950 16951 16952 16953 16954 16955 16956 16957 fi # test -n "$compiler" 16958 16959 CC=$lt_save_CC 16960 CFLAGS=$lt_save_CFLAGS 16961 LDCXX=$LD 16962 LD=$lt_save_LD 16963 GCC=$lt_save_GCC 16964 with_gnu_ld=$lt_save_with_gnu_ld 16965 lt_cv_path_LDCXX=$lt_cv_path_LD 16966 lt_cv_path_LD=$lt_save_path_LD 16967 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16968 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16969fi # test yes != "$_lt_caught_CXX_error" 16970 16971ac_ext=c 16972ac_cpp='$CPP $CPPFLAGS' 16973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16975ac_compiler_gnu=$ac_cv_c_compiler_gnu 16976 16977 16978 16979for ac_prog in perl5 perl 16980do 16981 # Extract the first word of "$ac_prog", so it can be a program name with args. 16982set dummy $ac_prog; ac_word=$2 16983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16984$as_echo_n "checking for $ac_word... " >&6; } 16985if ${ac_cv_path_PERL+:} false; then : 16986 $as_echo_n "(cached) " >&6 16987else 16988 case $PERL in 16989 [\\/]* | ?:[\\/]*) 16990 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 16991 ;; 16992 *) 16993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16994for as_dir in $LPATH 16995do 16996 IFS=$as_save_IFS 16997 test -z "$as_dir" && as_dir=. 16998 for ac_exec_ext in '' $ac_executable_extensions; do 16999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17000 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 17001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17002 break 2 17003 fi 17004done 17005 done 17006IFS=$as_save_IFS 17007 17008 ;; 17009esac 17010fi 17011PERL=$ac_cv_path_PERL 17012if test -n "$PERL"; then 17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 17014$as_echo "$PERL" >&6; } 17015else 17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17017$as_echo "no" >&6; } 17018fi 17019 17020 17021 test -n "$PERL" && break 17022done 17023test -n "$PERL" || PERL="perl" 17024 17025 17026if test "$GCC" = "yes" 17027then 17028 CFLAGS="$CFLAGS -Wall" 17029fi 17030 17031if test "$GXX" = "yes" 17032then 17033 CXXFLAGS="$CXXFLAGS -Wall" 17034fi 17035 17036CFLAGS="$CFLAGS -I${srcdir}/.. -I.. -I${srcdir}/../.. -I../.." 17037CXXFLAGS="$CXXFLAGS -I${srcdir}/.. -I.. -I${srcdir}/../.. -I../.." 17038 17039 17040ac_header_dirent=no 17041for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 17042 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 17043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 17044$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 17045if eval \${$as_ac_Header+:} false; then : 17046 $as_echo_n "(cached) " >&6 17047else 17048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17049/* end confdefs.h. */ 17050#include <sys/types.h> 17051#include <$ac_hdr> 17052 17053int 17054main () 17055{ 17056if ((DIR *) 0) 17057return 0; 17058 ; 17059 return 0; 17060} 17061_ACEOF 17062if ac_fn_c_try_compile "$LINENO"; then : 17063 eval "$as_ac_Header=yes" 17064else 17065 eval "$as_ac_Header=no" 17066fi 17067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17068fi 17069eval ac_res=\$$as_ac_Header 17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17071$as_echo "$ac_res" >&6; } 17072if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17073 cat >>confdefs.h <<_ACEOF 17074#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 17075_ACEOF 17076 17077ac_header_dirent=$ac_hdr; break 17078fi 17079 17080done 17081# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 17082if test $ac_header_dirent = dirent.h; then 17083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 17084$as_echo_n "checking for library containing opendir... " >&6; } 17085if ${ac_cv_search_opendir+:} false; then : 17086 $as_echo_n "(cached) " >&6 17087else 17088 ac_func_search_save_LIBS=$LIBS 17089cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17090/* end confdefs.h. */ 17091 17092/* Override any GCC internal prototype to avoid an error. 17093 Use char because int might match the return type of a GCC 17094 builtin and then its argument prototype would still apply. */ 17095#ifdef __cplusplus 17096extern "C" 17097#endif 17098char opendir (); 17099int 17100main () 17101{ 17102return opendir (); 17103 ; 17104 return 0; 17105} 17106_ACEOF 17107for ac_lib in '' dir; do 17108 if test -z "$ac_lib"; then 17109 ac_res="none required" 17110 else 17111 ac_res=-l$ac_lib 17112 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17113 fi 17114 if ac_fn_c_try_link "$LINENO"; then : 17115 ac_cv_search_opendir=$ac_res 17116fi 17117rm -f core conftest.err conftest.$ac_objext \ 17118 conftest$ac_exeext 17119 if ${ac_cv_search_opendir+:} false; then : 17120 break 17121fi 17122done 17123if ${ac_cv_search_opendir+:} false; then : 17124 17125else 17126 ac_cv_search_opendir=no 17127fi 17128rm conftest.$ac_ext 17129LIBS=$ac_func_search_save_LIBS 17130fi 17131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 17132$as_echo "$ac_cv_search_opendir" >&6; } 17133ac_res=$ac_cv_search_opendir 17134if test "$ac_res" != no; then : 17135 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17136 17137fi 17138 17139else 17140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 17141$as_echo_n "checking for library containing opendir... " >&6; } 17142if ${ac_cv_search_opendir+:} false; then : 17143 $as_echo_n "(cached) " >&6 17144else 17145 ac_func_search_save_LIBS=$LIBS 17146cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17147/* end confdefs.h. */ 17148 17149/* Override any GCC internal prototype to avoid an error. 17150 Use char because int might match the return type of a GCC 17151 builtin and then its argument prototype would still apply. */ 17152#ifdef __cplusplus 17153extern "C" 17154#endif 17155char opendir (); 17156int 17157main () 17158{ 17159return opendir (); 17160 ; 17161 return 0; 17162} 17163_ACEOF 17164for ac_lib in '' x; do 17165 if test -z "$ac_lib"; then 17166 ac_res="none required" 17167 else 17168 ac_res=-l$ac_lib 17169 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17170 fi 17171 if ac_fn_c_try_link "$LINENO"; then : 17172 ac_cv_search_opendir=$ac_res 17173fi 17174rm -f core conftest.err conftest.$ac_objext \ 17175 conftest$ac_exeext 17176 if ${ac_cv_search_opendir+:} false; then : 17177 break 17178fi 17179done 17180if ${ac_cv_search_opendir+:} false; then : 17181 17182else 17183 ac_cv_search_opendir=no 17184fi 17185rm conftest.$ac_ext 17186LIBS=$ac_func_search_save_LIBS 17187fi 17188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 17189$as_echo "$ac_cv_search_opendir" >&6; } 17190ac_res=$ac_cv_search_opendir 17191if test "$ac_res" != no; then : 17192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17193 17194fi 17195 17196fi 17197 17198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 17199$as_echo_n "checking for ANSI C header files... " >&6; } 17200if ${ac_cv_header_stdc+:} false; then : 17201 $as_echo_n "(cached) " >&6 17202else 17203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17204/* end confdefs.h. */ 17205#include <stdlib.h> 17206#include <stdarg.h> 17207#include <string.h> 17208#include <float.h> 17209 17210int 17211main () 17212{ 17213 17214 ; 17215 return 0; 17216} 17217_ACEOF 17218if ac_fn_c_try_compile "$LINENO"; then : 17219 ac_cv_header_stdc=yes 17220else 17221 ac_cv_header_stdc=no 17222fi 17223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17224 17225if test $ac_cv_header_stdc = yes; then 17226 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 17227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17228/* end confdefs.h. */ 17229#include <string.h> 17230 17231_ACEOF 17232if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17233 $EGREP "memchr" >/dev/null 2>&1; then : 17234 17235else 17236 ac_cv_header_stdc=no 17237fi 17238rm -f conftest* 17239 17240fi 17241 17242if test $ac_cv_header_stdc = yes; then 17243 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 17244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17245/* end confdefs.h. */ 17246#include <stdlib.h> 17247 17248_ACEOF 17249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17250 $EGREP "free" >/dev/null 2>&1; then : 17251 17252else 17253 ac_cv_header_stdc=no 17254fi 17255rm -f conftest* 17256 17257fi 17258 17259if test $ac_cv_header_stdc = yes; then 17260 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 17261 if test "$cross_compiling" = yes; then : 17262 : 17263else 17264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17265/* end confdefs.h. */ 17266#include <ctype.h> 17267#include <stdlib.h> 17268#if ((' ' & 0x0FF) == 0x020) 17269# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 17270# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 17271#else 17272# define ISLOWER(c) \ 17273 (('a' <= (c) && (c) <= 'i') \ 17274 || ('j' <= (c) && (c) <= 'r') \ 17275 || ('s' <= (c) && (c) <= 'z')) 17276# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 17277#endif 17278 17279#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 17280int 17281main () 17282{ 17283 int i; 17284 for (i = 0; i < 256; i++) 17285 if (XOR (islower (i), ISLOWER (i)) 17286 || toupper (i) != TOUPPER (i)) 17287 return 2; 17288 return 0; 17289} 17290_ACEOF 17291if ac_fn_c_try_run "$LINENO"; then : 17292 17293else 17294 ac_cv_header_stdc=no 17295fi 17296rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17297 conftest.$ac_objext conftest.beam conftest.$ac_ext 17298fi 17299 17300fi 17301fi 17302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 17303$as_echo "$ac_cv_header_stdc" >&6; } 17304if test $ac_cv_header_stdc = yes; then 17305 17306$as_echo "#define STDC_HEADERS 1" >>confdefs.h 17307 17308fi 17309 17310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 17311$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 17312if ${ac_cv_header_time+:} false; then : 17313 $as_echo_n "(cached) " >&6 17314else 17315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17316/* end confdefs.h. */ 17317#include <sys/types.h> 17318#include <sys/time.h> 17319#include <time.h> 17320 17321int 17322main () 17323{ 17324if ((struct tm *) 0) 17325return 0; 17326 ; 17327 return 0; 17328} 17329_ACEOF 17330if ac_fn_c_try_compile "$LINENO"; then : 17331 ac_cv_header_time=yes 17332else 17333 ac_cv_header_time=no 17334fi 17335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17336fi 17337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 17338$as_echo "$ac_cv_header_time" >&6; } 17339if test $ac_cv_header_time = yes; then 17340 17341$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 17342 17343fi 17344 17345for ac_header in sys/stat.h sys/wait.h fcntl.h unistd.h sysexits.h utime.h pcre.h pcre/pcre.h 17346do : 17347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17348ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17349if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17350 cat >>confdefs.h <<_ACEOF 17351#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17352_ACEOF 17353 17354fi 17355 17356done 17357 17358 17359ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default" 17360if test "x$ac_cv_header_pcre_h" = xyes; then : 17361 LIBPCRE=-lpcre 17362fi 17363 17364 17365 17366ac_fn_c_check_header_mongrel "$LINENO" "pcre/pcre.h" "ac_cv_header_pcre_pcre_h" "$ac_includes_default" 17367if test "x$ac_cv_header_pcre_pcre_h" = xyes; then : 17368 LIBPCRE=-lpcre 17369fi 17370 17371 17372 17373 17374 17375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 17376$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 17377if ${ac_cv_header_sys_wait_h+:} false; then : 17378 $as_echo_n "(cached) " >&6 17379else 17380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17381/* end confdefs.h. */ 17382#include <sys/types.h> 17383#include <sys/wait.h> 17384#ifndef WEXITSTATUS 17385# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 17386#endif 17387#ifndef WIFEXITED 17388# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 17389#endif 17390 17391int 17392main () 17393{ 17394 int s; 17395 wait (&s); 17396 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 17397 ; 17398 return 0; 17399} 17400_ACEOF 17401if ac_fn_c_try_compile "$LINENO"; then : 17402 ac_cv_header_sys_wait_h=yes 17403else 17404 ac_cv_header_sys_wait_h=no 17405fi 17406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17407fi 17408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 17409$as_echo "$ac_cv_header_sys_wait_h" >&6; } 17410if test $ac_cv_header_sys_wait_h = yes; then 17411 17412$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 17413 17414fi 17415 17416 17417ac_ext=cpp 17418ac_cpp='$CXXCPP $CPPFLAGS' 17419ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17420ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17421ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17422 17423 17424for ac_header in vector vector.h 17425do : 17426 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17427ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17428if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17429 cat >>confdefs.h <<_ACEOF 17430#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17431_ACEOF 17432 17433fi 17434 17435done 17436 17437ac_ext=c 17438ac_cpp='$CPP $CPPFLAGS' 17439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17441ac_compiler_gnu=$ac_cv_c_compiler_gnu 17442 17443 17444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 17445$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 17446if ${ac_cv_c_const+:} false; then : 17447 $as_echo_n "(cached) " >&6 17448else 17449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17450/* end confdefs.h. */ 17451 17452int 17453main () 17454{ 17455 17456#ifndef __cplusplus 17457 /* Ultrix mips cc rejects this sort of thing. */ 17458 typedef int charset[2]; 17459 const charset cs = { 0, 0 }; 17460 /* SunOS 4.1.1 cc rejects this. */ 17461 char const *const *pcpcc; 17462 char **ppc; 17463 /* NEC SVR4.0.2 mips cc rejects this. */ 17464 struct point {int x, y;}; 17465 static struct point const zero = {0,0}; 17466 /* AIX XL C 1.02.0.0 rejects this. 17467 It does not let you subtract one const X* pointer from another in 17468 an arm of an if-expression whose if-part is not a constant 17469 expression */ 17470 const char *g = "string"; 17471 pcpcc = &g + (g ? g-g : 0); 17472 /* HPUX 7.0 cc rejects these. */ 17473 ++pcpcc; 17474 ppc = (char**) pcpcc; 17475 pcpcc = (char const *const *) ppc; 17476 { /* SCO 3.2v4 cc rejects this sort of thing. */ 17477 char tx; 17478 char *t = &tx; 17479 char const *s = 0 ? (char *) 0 : (char const *) 0; 17480 17481 *t++ = 0; 17482 if (s) return 0; 17483 } 17484 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 17485 int x[] = {25, 17}; 17486 const int *foo = &x[0]; 17487 ++foo; 17488 } 17489 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 17490 typedef const int *iptr; 17491 iptr p = 0; 17492 ++p; 17493 } 17494 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 17495 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 17496 struct s { int j; const int *ap[3]; } bx; 17497 struct s *b = &bx; b->j = 5; 17498 } 17499 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 17500 const int foo = 10; 17501 if (!foo) return 0; 17502 } 17503 return !cs[0] && !zero.x; 17504#endif 17505 17506 ; 17507 return 0; 17508} 17509_ACEOF 17510if ac_fn_c_try_compile "$LINENO"; then : 17511 ac_cv_c_const=yes 17512else 17513 ac_cv_c_const=no 17514fi 17515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17516fi 17517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 17518$as_echo "$ac_cv_c_const" >&6; } 17519if test $ac_cv_c_const = no; then 17520 17521$as_echo "#define const /**/" >>confdefs.h 17522 17523fi 17524 17525ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 17526if test "x$ac_cv_type_off_t" = xyes; then : 17527 17528else 17529 17530cat >>confdefs.h <<_ACEOF 17531#define off_t long int 17532_ACEOF 17533 17534fi 17535 17536ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 17537if test "x$ac_cv_type_size_t" = xyes; then : 17538 17539else 17540 17541cat >>confdefs.h <<_ACEOF 17542#define size_t unsigned int 17543_ACEOF 17544 17545fi 17546 17547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 17548$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 17549if ${ac_cv_type_uid_t+:} false; then : 17550 $as_echo_n "(cached) " >&6 17551else 17552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17553/* end confdefs.h. */ 17554#include <sys/types.h> 17555 17556_ACEOF 17557if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17558 $EGREP "uid_t" >/dev/null 2>&1; then : 17559 ac_cv_type_uid_t=yes 17560else 17561 ac_cv_type_uid_t=no 17562fi 17563rm -f conftest* 17564 17565fi 17566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 17567$as_echo "$ac_cv_type_uid_t" >&6; } 17568if test $ac_cv_type_uid_t = no; then 17569 17570$as_echo "#define uid_t int" >>confdefs.h 17571 17572 17573$as_echo "#define gid_t int" >>confdefs.h 17574 17575fi 17576 17577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 17578$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 17579if ${ac_cv_struct_tm+:} false; then : 17580 $as_echo_n "(cached) " >&6 17581else 17582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17583/* end confdefs.h. */ 17584#include <sys/types.h> 17585#include <time.h> 17586 17587int 17588main () 17589{ 17590struct tm tm; 17591 int *p = &tm.tm_sec; 17592 return !p; 17593 ; 17594 return 0; 17595} 17596_ACEOF 17597if ac_fn_c_try_compile "$LINENO"; then : 17598 ac_cv_struct_tm=time.h 17599else 17600 ac_cv_struct_tm=sys/time.h 17601fi 17602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17603fi 17604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 17605$as_echo "$ac_cv_struct_tm" >&6; } 17606if test $ac_cv_struct_tm = sys/time.h; then 17607 17608$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 17609 17610fi 17611 17612# Check whether --enable-largefile was given. 17613if test "${enable_largefile+set}" = set; then : 17614 enableval=$enable_largefile; 17615fi 17616 17617if test "$enable_largefile" != no; then 17618 17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 17620$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 17621if ${ac_cv_sys_largefile_CC+:} false; then : 17622 $as_echo_n "(cached) " >&6 17623else 17624 ac_cv_sys_largefile_CC=no 17625 if test "$GCC" != yes; then 17626 ac_save_CC=$CC 17627 while :; do 17628 # IRIX 6.2 and later do not support large files by default, 17629 # so use the C compiler's -n32 option if that helps. 17630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17631/* end confdefs.h. */ 17632#include <sys/types.h> 17633 /* Check that off_t can represent 2**63 - 1 correctly. 17634 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17635 since some C++ compilers masquerading as C compilers 17636 incorrectly reject 9223372036854775807. */ 17637#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17638 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17639 && LARGE_OFF_T % 2147483647 == 1) 17640 ? 1 : -1]; 17641int 17642main () 17643{ 17644 17645 ; 17646 return 0; 17647} 17648_ACEOF 17649 if ac_fn_c_try_compile "$LINENO"; then : 17650 break 17651fi 17652rm -f core conftest.err conftest.$ac_objext 17653 CC="$CC -n32" 17654 if ac_fn_c_try_compile "$LINENO"; then : 17655 ac_cv_sys_largefile_CC=' -n32'; break 17656fi 17657rm -f core conftest.err conftest.$ac_objext 17658 break 17659 done 17660 CC=$ac_save_CC 17661 rm -f conftest.$ac_ext 17662 fi 17663fi 17664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 17665$as_echo "$ac_cv_sys_largefile_CC" >&6; } 17666 if test "$ac_cv_sys_largefile_CC" != no; then 17667 CC=$CC$ac_cv_sys_largefile_CC 17668 fi 17669 17670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 17671$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 17672if ${ac_cv_sys_file_offset_bits+:} false; then : 17673 $as_echo_n "(cached) " >&6 17674else 17675 while :; do 17676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17677/* end confdefs.h. */ 17678#include <sys/types.h> 17679 /* Check that off_t can represent 2**63 - 1 correctly. 17680 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17681 since some C++ compilers masquerading as C compilers 17682 incorrectly reject 9223372036854775807. */ 17683#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17684 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17685 && LARGE_OFF_T % 2147483647 == 1) 17686 ? 1 : -1]; 17687int 17688main () 17689{ 17690 17691 ; 17692 return 0; 17693} 17694_ACEOF 17695if ac_fn_c_try_compile "$LINENO"; then : 17696 ac_cv_sys_file_offset_bits=no; break 17697fi 17698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17700/* end confdefs.h. */ 17701#define _FILE_OFFSET_BITS 64 17702#include <sys/types.h> 17703 /* Check that off_t can represent 2**63 - 1 correctly. 17704 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17705 since some C++ compilers masquerading as C compilers 17706 incorrectly reject 9223372036854775807. */ 17707#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17708 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17709 && LARGE_OFF_T % 2147483647 == 1) 17710 ? 1 : -1]; 17711int 17712main () 17713{ 17714 17715 ; 17716 return 0; 17717} 17718_ACEOF 17719if ac_fn_c_try_compile "$LINENO"; then : 17720 ac_cv_sys_file_offset_bits=64; break 17721fi 17722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17723 ac_cv_sys_file_offset_bits=unknown 17724 break 17725done 17726fi 17727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 17728$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 17729case $ac_cv_sys_file_offset_bits in #( 17730 no | unknown) ;; 17731 *) 17732cat >>confdefs.h <<_ACEOF 17733#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 17734_ACEOF 17735;; 17736esac 17737rm -rf conftest* 17738 if test $ac_cv_sys_file_offset_bits = unknown; then 17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 17740$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 17741if ${ac_cv_sys_large_files+:} false; then : 17742 $as_echo_n "(cached) " >&6 17743else 17744 while :; do 17745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17746/* end confdefs.h. */ 17747#include <sys/types.h> 17748 /* Check that off_t can represent 2**63 - 1 correctly. 17749 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17750 since some C++ compilers masquerading as C compilers 17751 incorrectly reject 9223372036854775807. */ 17752#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17753 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17754 && LARGE_OFF_T % 2147483647 == 1) 17755 ? 1 : -1]; 17756int 17757main () 17758{ 17759 17760 ; 17761 return 0; 17762} 17763_ACEOF 17764if ac_fn_c_try_compile "$LINENO"; then : 17765 ac_cv_sys_large_files=no; break 17766fi 17767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17769/* end confdefs.h. */ 17770#define _LARGE_FILES 1 17771#include <sys/types.h> 17772 /* Check that off_t can represent 2**63 - 1 correctly. 17773 We can't simply define LARGE_OFF_T to be 9223372036854775807, 17774 since some C++ compilers masquerading as C compilers 17775 incorrectly reject 9223372036854775807. */ 17776#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 17777 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 17778 && LARGE_OFF_T % 2147483647 == 1) 17779 ? 1 : -1]; 17780int 17781main () 17782{ 17783 17784 ; 17785 return 0; 17786} 17787_ACEOF 17788if ac_fn_c_try_compile "$LINENO"; then : 17789 ac_cv_sys_large_files=1; break 17790fi 17791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17792 ac_cv_sys_large_files=unknown 17793 break 17794done 17795fi 17796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 17797$as_echo "$ac_cv_sys_large_files" >&6; } 17798case $ac_cv_sys_large_files in #( 17799 no | unknown) ;; 17800 *) 17801cat >>confdefs.h <<_ACEOF 17802#define _LARGE_FILES $ac_cv_sys_large_files 17803_ACEOF 17804;; 17805esac 17806rm -rf conftest* 17807 fi 17808 17809 17810fi 17811 17812 17813 17814save_FLAGS="$CXXFLAGS" 17815 17816ac_ext=cpp 17817ac_cpp='$CXXCPP $CPPFLAGS' 17818ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17819ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17820ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 17821 17822 17823cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17824/* end confdefs.h. */ 17825 17826#include <string> 17827 17828int 17829main () 17830{ 17831 17832 std::u32string s; 17833 char32_t c; 17834 17835 ; 17836 return 0; 17837} 17838_ACEOF 17839if ac_fn_cxx_try_compile "$LINENO"; then : 17840 17841 17842else 17843 17844 17845COURIER_UNICODE_CXXFLAGS="-std=c++11" 17846CXXFLAGS="$save_CFLAGS $COURIER_UNICODE_CXXFLAGS" 17847 17848cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17849/* end confdefs.h. */ 17850 17851#include <string> 17852 17853int 17854main () 17855{ 17856 17857 std::u32string s; 17858 char32_t c; 17859 17860 ; 17861 return 0; 17862} 17863_ACEOF 17864if ac_fn_cxx_try_compile "$LINENO"; then : 17865 17866 17867else 17868 17869 17870COURIER_UNICODE_CXXFLAGS="-std=c++0x" 17871CXXFLAGS="$save_CFLAGS $COURIER_UNICODE_CXXFLAGS" 17872 17873cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17874/* end confdefs.h. */ 17875 17876#include <string> 17877 17878int 17879main () 17880{ 17881 17882 std::u32string s; 17883 char32_t c; 17884 17885 ; 17886 return 0; 17887} 17888_ACEOF 17889if ac_fn_cxx_try_compile "$LINENO"; then : 17890 17891 17892else 17893 17894as_fn_error $? "*** A compiler with C++11 Unicode support was not found" "$LINENO" 5 17895 17896fi 17897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17898 17899fi 17900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17901 17902fi 17903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17904CXXFLAGS="$save_FLAGS" 17905ac_ext=c 17906ac_cpp='$CPP $CPPFLAGS' 17907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17909ac_compiler_gnu=$ac_cv_c_compiler_gnu 17910 17911 17912 17913 17914for ac_func in symlink readlink strcasecmp utime utimes 17915do : 17916 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17917ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17918if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17919 cat >>confdefs.h <<_ACEOF 17920#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17921_ACEOF 17922 17923fi 17924done 17925 17926 17927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for missing gethostname prototype" >&5 17928$as_echo_n "checking for missing gethostname prototype... " >&6; } 17929if ${maildir_cv_SYS_GETHOSTNAME+:} false; then : 17930 $as_echo_n "(cached) " >&6 17931else 17932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17933/* end confdefs.h. */ 17934 17935#if HAVE_UNISTD_H 17936#include <unistd.h> 17937#endif 17938 17939extern "C" int gethostname(int,int); 17940 17941int 17942main () 17943{ 17944 17945 17946 ; 17947 return 0; 17948} 17949_ACEOF 17950if ac_fn_c_try_compile "$LINENO"; then : 17951 maildir_cv_SYS_GETHOSTNAME=yes 17952else 17953 maildir_cv_SYS_GETHOSTNAME=no 17954 17955fi 17956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17957 17958 17959fi 17960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maildir_cv_SYS_GETHOSTNAME" >&5 17961$as_echo "$maildir_cv_SYS_GETHOSTNAME" >&6; } 17962 17963if test $maildir_cv_SYS_GETHOSTNAME = "no" 17964then 17965 17966cat >>confdefs.h <<_ACEOF 17967#define HAS_GETHOSTNAME 1 17968_ACEOF 17969 17970fi 17971 17972 17973# Check whether --with-db was given. 17974if test "${with_db+set}" = set; then : 17975 withval=$with_db; db="$withval" 17976else 17977 db="" 17978fi 17979 17980 17981if test "$db" = "no" 17982then 17983 db="" 17984fi 17985 17986if test "$db" != "" 17987then 17988 17989cat >>confdefs.h <<_ACEOF 17990#define HAVE_DBOBJ 1 17991_ACEOF 17992 17993fi 17994 17995 17996# Check whether --with-trashquota was given. 17997if test "${with_trashquota+set}" = set; then : 17998 withval=$with_trashquota; trashquota="$withval" 17999else 18000 trashquota="no" 18001fi 18002 18003 18004if test "$trashquota" = "yes" 18005then 18006 18007cat >>confdefs.h <<_ACEOF 18008#define TRASHQUOTA 1 18009_ACEOF 18010 18011fi 18012 18013test "x$prefix" = xNONE && prefix=$ac_default_prefix 18014test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18015eval "prefix=$prefix" 18016eval "exec_prefix=$exec_prefix" 18017eval "sysconfdir=$sysconfdir" 18018 18019for ac_prog in mailbot 18020do 18021 # Extract the first word of "$ac_prog", so it can be a program name with args. 18022set dummy $ac_prog; ac_word=$2 18023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18024$as_echo_n "checking for $ac_word... " >&6; } 18025if ${ac_cv_path_MAILBOT+:} false; then : 18026 $as_echo_n "(cached) " >&6 18027else 18028 case $MAILBOT in 18029 [\\/]* | ?:[\\/]*) 18030 ac_cv_path_MAILBOT="$MAILBOT" # Let the user override the test with a path. 18031 ;; 18032 *) 18033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18034for as_dir in $LPATH 18035do 18036 IFS=$as_save_IFS 18037 test -z "$as_dir" && as_dir=. 18038 for ac_exec_ext in '' $ac_executable_extensions; do 18039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18040 ac_cv_path_MAILBOT="$as_dir/$ac_word$ac_exec_ext" 18041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18042 break 2 18043 fi 18044done 18045 done 18046IFS=$as_save_IFS 18047 18048 ;; 18049esac 18050fi 18051MAILBOT=$ac_cv_path_MAILBOT 18052if test -n "$MAILBOT"; then 18053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAILBOT" >&5 18054$as_echo "$MAILBOT" >&6; } 18055else 18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18057$as_echo "no" >&6; } 18058fi 18059 18060 18061 test -n "$MAILBOT" && break 18062done 18063test -n "$MAILBOT" || MAILBOT="mailbot" 18064 18065 18066if test -d $srcdir/../../courier 18067then 18068 MAILBOT="$bindir/mailbot" 18069 18070cat >>confdefs.h <<_ACEOF 18071#define HAVE_COURIER 1 18072_ACEOF 18073 18074fi 18075 18076 18077 if test -d ${srcdir}/../docbook; then 18078 HAVE_SGML_TRUE= 18079 HAVE_SGML_FALSE='#' 18080else 18081 HAVE_SGML_TRUE='#' 18082 HAVE_SGML_FALSE= 18083fi 18084 18085 18086if test "$target_os" = "cygwin" 18087then 18088 18089cat >>confdefs.h <<_ACEOF 18090#define MDIRSEP "!" 18091_ACEOF 18092 18093else 18094 18095cat >>confdefs.h <<_ACEOF 18096#define MDIRSEP ":" 18097_ACEOF 18098 18099fi 18100 18101ac_config_files="$ac_config_files Makefile sharedindexinstall sharedindexsplit" 18102 18103cat >confcache <<\_ACEOF 18104# This file is a shell script that caches the results of configure 18105# tests run on this system so they can be shared between configure 18106# scripts and configure runs, see configure's option --config-cache. 18107# It is not useful on other systems. If it contains results you don't 18108# want to keep, you may remove or edit it. 18109# 18110# config.status only pays attention to the cache file if you give it 18111# the --recheck option to rerun configure. 18112# 18113# `ac_cv_env_foo' variables (set or unset) will be overridden when 18114# loading this file, other *unset* `ac_cv_foo' will be assigned the 18115# following values. 18116 18117_ACEOF 18118 18119# The following way of writing the cache mishandles newlines in values, 18120# but we know of no workaround that is simple, portable, and efficient. 18121# So, we kill variables containing newlines. 18122# Ultrix sh set writes to stderr and can't be redirected directly, 18123# and sets the high bit in the cache file unless we assign to the vars. 18124( 18125 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18126 eval ac_val=\$$ac_var 18127 case $ac_val in #( 18128 *${as_nl}*) 18129 case $ac_var in #( 18130 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18131$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18132 esac 18133 case $ac_var in #( 18134 _ | IFS | as_nl) ;; #( 18135 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18136 *) { eval $ac_var=; unset $ac_var;} ;; 18137 esac ;; 18138 esac 18139 done 18140 18141 (set) 2>&1 | 18142 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18143 *${as_nl}ac_space=\ *) 18144 # `set' does not quote correctly, so add quotes: double-quote 18145 # substitution turns \\\\ into \\, and sed turns \\ into \. 18146 sed -n \ 18147 "s/'/'\\\\''/g; 18148 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18149 ;; #( 18150 *) 18151 # `set' quotes correctly as required by POSIX, so do not add quotes. 18152 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18153 ;; 18154 esac | 18155 sort 18156) | 18157 sed ' 18158 /^ac_cv_env_/b end 18159 t clear 18160 :clear 18161 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18162 t end 18163 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18164 :end' >>confcache 18165if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18166 if test -w "$cache_file"; then 18167 if test "x$cache_file" != "x/dev/null"; then 18168 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18169$as_echo "$as_me: updating cache $cache_file" >&6;} 18170 if test ! -f "$cache_file" || test -h "$cache_file"; then 18171 cat confcache >"$cache_file" 18172 else 18173 case $cache_file in #( 18174 */* | ?:*) 18175 mv -f confcache "$cache_file"$$ && 18176 mv -f "$cache_file"$$ "$cache_file" ;; #( 18177 *) 18178 mv -f confcache "$cache_file" ;; 18179 esac 18180 fi 18181 fi 18182 else 18183 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18184$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18185 fi 18186fi 18187rm -f confcache 18188 18189test "x$prefix" = xNONE && prefix=$ac_default_prefix 18190# Let make expand exec_prefix. 18191test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18192 18193DEFS=-DHAVE_CONFIG_H 18194 18195ac_libobjs= 18196ac_ltlibobjs= 18197U= 18198for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18199 # 1. Remove the extension, and $U if already installed. 18200 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18201 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18202 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18203 # will be set to the directory where LIBOBJS objects are built. 18204 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18205 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18206done 18207LIBOBJS=$ac_libobjs 18208 18209LTLIBOBJS=$ac_ltlibobjs 18210 18211 18212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18213$as_echo_n "checking that generated files are newer than configure... " >&6; } 18214 if test -n "$am_sleep_pid"; then 18215 # Hide warnings about reused PIDs. 18216 wait $am_sleep_pid 2>/dev/null 18217 fi 18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18219$as_echo "done" >&6; } 18220 if test -n "$EXEEXT"; then 18221 am__EXEEXT_TRUE= 18222 am__EXEEXT_FALSE='#' 18223else 18224 am__EXEEXT_TRUE='#' 18225 am__EXEEXT_FALSE= 18226fi 18227 18228if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18229 as_fn_error $? "conditional \"AMDEP\" was never defined. 18230Usually this means the macro was only invoked conditionally." "$LINENO" 5 18231fi 18232if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18233 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18234Usually this means the macro was only invoked conditionally." "$LINENO" 5 18235fi 18236if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18237 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18238Usually this means the macro was only invoked conditionally." "$LINENO" 5 18239fi 18240if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 18241 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 18242Usually this means the macro was only invoked conditionally." "$LINENO" 5 18243fi 18244if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then 18245 as_fn_error $? "conditional \"HAVE_SGML\" was never defined. 18246Usually this means the macro was only invoked conditionally." "$LINENO" 5 18247fi 18248 18249: "${CONFIG_STATUS=./config.status}" 18250ac_write_fail=0 18251ac_clean_files_save=$ac_clean_files 18252ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18253{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18254$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18255as_write_fail=0 18256cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18257#! $SHELL 18258# Generated by $as_me. 18259# Run this file to recreate the current configuration. 18260# Compiler output produced by configure, useful for debugging 18261# configure, is in config.log if it exists. 18262 18263debug=false 18264ac_cs_recheck=false 18265ac_cs_silent=false 18266 18267SHELL=\${CONFIG_SHELL-$SHELL} 18268export SHELL 18269_ASEOF 18270cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18271## -------------------- ## 18272## M4sh Initialization. ## 18273## -------------------- ## 18274 18275# Be more Bourne compatible 18276DUALCASE=1; export DUALCASE # for MKS sh 18277if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18278 emulate sh 18279 NULLCMD=: 18280 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18281 # is contrary to our usage. Disable this feature. 18282 alias -g '${1+"$@"}'='"$@"' 18283 setopt NO_GLOB_SUBST 18284else 18285 case `(set -o) 2>/dev/null` in #( 18286 *posix*) : 18287 set -o posix ;; #( 18288 *) : 18289 ;; 18290esac 18291fi 18292 18293 18294as_nl=' 18295' 18296export as_nl 18297# Printing a long string crashes Solaris 7 /usr/bin/printf. 18298as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18299as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18300as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18301# Prefer a ksh shell builtin over an external printf program on Solaris, 18302# but without wasting forks for bash or zsh. 18303if test -z "$BASH_VERSION$ZSH_VERSION" \ 18304 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18305 as_echo='print -r --' 18306 as_echo_n='print -rn --' 18307elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18308 as_echo='printf %s\n' 18309 as_echo_n='printf %s' 18310else 18311 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18312 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18313 as_echo_n='/usr/ucb/echo -n' 18314 else 18315 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18316 as_echo_n_body='eval 18317 arg=$1; 18318 case $arg in #( 18319 *"$as_nl"*) 18320 expr "X$arg" : "X\\(.*\\)$as_nl"; 18321 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18322 esac; 18323 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18324 ' 18325 export as_echo_n_body 18326 as_echo_n='sh -c $as_echo_n_body as_echo' 18327 fi 18328 export as_echo_body 18329 as_echo='sh -c $as_echo_body as_echo' 18330fi 18331 18332# The user is always right. 18333if test "${PATH_SEPARATOR+set}" != set; then 18334 PATH_SEPARATOR=: 18335 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18336 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18337 PATH_SEPARATOR=';' 18338 } 18339fi 18340 18341 18342# IFS 18343# We need space, tab and new line, in precisely that order. Quoting is 18344# there to prevent editors from complaining about space-tab. 18345# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18346# splitting by setting IFS to empty value.) 18347IFS=" "" $as_nl" 18348 18349# Find who we are. Look in the path if we contain no directory separator. 18350as_myself= 18351case $0 in #(( 18352 *[\\/]* ) as_myself=$0 ;; 18353 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18354for as_dir in $PATH 18355do 18356 IFS=$as_save_IFS 18357 test -z "$as_dir" && as_dir=. 18358 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18359 done 18360IFS=$as_save_IFS 18361 18362 ;; 18363esac 18364# We did not find ourselves, most probably we were run as `sh COMMAND' 18365# in which case we are not to be found in the path. 18366if test "x$as_myself" = x; then 18367 as_myself=$0 18368fi 18369if test ! -f "$as_myself"; then 18370 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18371 exit 1 18372fi 18373 18374# Unset variables that we do not need and which cause bugs (e.g. in 18375# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18376# suppresses any "Segmentation fault" message there. '((' could 18377# trigger a bug in pdksh 5.2.14. 18378for as_var in BASH_ENV ENV MAIL MAILPATH 18379do eval test x\${$as_var+set} = xset \ 18380 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18381done 18382PS1='$ ' 18383PS2='> ' 18384PS4='+ ' 18385 18386# NLS nuisances. 18387LC_ALL=C 18388export LC_ALL 18389LANGUAGE=C 18390export LANGUAGE 18391 18392# CDPATH. 18393(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18394 18395 18396# as_fn_error STATUS ERROR [LINENO LOG_FD] 18397# ---------------------------------------- 18398# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18399# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18400# script with STATUS, using 1 if that was 0. 18401as_fn_error () 18402{ 18403 as_status=$1; test $as_status -eq 0 && as_status=1 18404 if test "$4"; then 18405 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18406 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18407 fi 18408 $as_echo "$as_me: error: $2" >&2 18409 as_fn_exit $as_status 18410} # as_fn_error 18411 18412 18413# as_fn_set_status STATUS 18414# ----------------------- 18415# Set $? to STATUS, without forking. 18416as_fn_set_status () 18417{ 18418 return $1 18419} # as_fn_set_status 18420 18421# as_fn_exit STATUS 18422# ----------------- 18423# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18424as_fn_exit () 18425{ 18426 set +e 18427 as_fn_set_status $1 18428 exit $1 18429} # as_fn_exit 18430 18431# as_fn_unset VAR 18432# --------------- 18433# Portably unset VAR. 18434as_fn_unset () 18435{ 18436 { eval $1=; unset $1;} 18437} 18438as_unset=as_fn_unset 18439# as_fn_append VAR VALUE 18440# ---------------------- 18441# Append the text in VALUE to the end of the definition contained in VAR. Take 18442# advantage of any shell optimizations that allow amortized linear growth over 18443# repeated appends, instead of the typical quadratic growth present in naive 18444# implementations. 18445if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18446 eval 'as_fn_append () 18447 { 18448 eval $1+=\$2 18449 }' 18450else 18451 as_fn_append () 18452 { 18453 eval $1=\$$1\$2 18454 } 18455fi # as_fn_append 18456 18457# as_fn_arith ARG... 18458# ------------------ 18459# Perform arithmetic evaluation on the ARGs, and store the result in the 18460# global $as_val. Take advantage of shells that can avoid forks. The arguments 18461# must be portable across $(()) and expr. 18462if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18463 eval 'as_fn_arith () 18464 { 18465 as_val=$(( $* )) 18466 }' 18467else 18468 as_fn_arith () 18469 { 18470 as_val=`expr "$@" || test $? -eq 1` 18471 } 18472fi # as_fn_arith 18473 18474 18475if expr a : '\(a\)' >/dev/null 2>&1 && 18476 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18477 as_expr=expr 18478else 18479 as_expr=false 18480fi 18481 18482if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18483 as_basename=basename 18484else 18485 as_basename=false 18486fi 18487 18488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18489 as_dirname=dirname 18490else 18491 as_dirname=false 18492fi 18493 18494as_me=`$as_basename -- "$0" || 18495$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18496 X"$0" : 'X\(//\)$' \| \ 18497 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18498$as_echo X/"$0" | 18499 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18500 s//\1/ 18501 q 18502 } 18503 /^X\/\(\/\/\)$/{ 18504 s//\1/ 18505 q 18506 } 18507 /^X\/\(\/\).*/{ 18508 s//\1/ 18509 q 18510 } 18511 s/.*/./; q'` 18512 18513# Avoid depending upon Character Ranges. 18514as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18515as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18516as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18517as_cr_digits='0123456789' 18518as_cr_alnum=$as_cr_Letters$as_cr_digits 18519 18520ECHO_C= ECHO_N= ECHO_T= 18521case `echo -n x` in #((((( 18522-n*) 18523 case `echo 'xy\c'` in 18524 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18525 xy) ECHO_C='\c';; 18526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18527 ECHO_T=' ';; 18528 esac;; 18529*) 18530 ECHO_N='-n';; 18531esac 18532 18533rm -f conf$$ conf$$.exe conf$$.file 18534if test -d conf$$.dir; then 18535 rm -f conf$$.dir/conf$$.file 18536else 18537 rm -f conf$$.dir 18538 mkdir conf$$.dir 2>/dev/null 18539fi 18540if (echo >conf$$.file) 2>/dev/null; then 18541 if ln -s conf$$.file conf$$ 2>/dev/null; then 18542 as_ln_s='ln -s' 18543 # ... but there are two gotchas: 18544 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18545 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18546 # In both cases, we have to default to `cp -pR'. 18547 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18548 as_ln_s='cp -pR' 18549 elif ln conf$$.file conf$$ 2>/dev/null; then 18550 as_ln_s=ln 18551 else 18552 as_ln_s='cp -pR' 18553 fi 18554else 18555 as_ln_s='cp -pR' 18556fi 18557rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18558rmdir conf$$.dir 2>/dev/null 18559 18560 18561# as_fn_mkdir_p 18562# ------------- 18563# Create "$as_dir" as a directory, including parents if necessary. 18564as_fn_mkdir_p () 18565{ 18566 18567 case $as_dir in #( 18568 -*) as_dir=./$as_dir;; 18569 esac 18570 test -d "$as_dir" || eval $as_mkdir_p || { 18571 as_dirs= 18572 while :; do 18573 case $as_dir in #( 18574 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18575 *) as_qdir=$as_dir;; 18576 esac 18577 as_dirs="'$as_qdir' $as_dirs" 18578 as_dir=`$as_dirname -- "$as_dir" || 18579$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18580 X"$as_dir" : 'X\(//\)[^/]' \| \ 18581 X"$as_dir" : 'X\(//\)$' \| \ 18582 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18583$as_echo X"$as_dir" | 18584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18585 s//\1/ 18586 q 18587 } 18588 /^X\(\/\/\)[^/].*/{ 18589 s//\1/ 18590 q 18591 } 18592 /^X\(\/\/\)$/{ 18593 s//\1/ 18594 q 18595 } 18596 /^X\(\/\).*/{ 18597 s//\1/ 18598 q 18599 } 18600 s/.*/./; q'` 18601 test -d "$as_dir" && break 18602 done 18603 test -z "$as_dirs" || eval "mkdir $as_dirs" 18604 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18605 18606 18607} # as_fn_mkdir_p 18608if mkdir -p . 2>/dev/null; then 18609 as_mkdir_p='mkdir -p "$as_dir"' 18610else 18611 test -d ./-p && rmdir ./-p 18612 as_mkdir_p=false 18613fi 18614 18615 18616# as_fn_executable_p FILE 18617# ----------------------- 18618# Test if FILE is an executable regular file. 18619as_fn_executable_p () 18620{ 18621 test -f "$1" && test -x "$1" 18622} # as_fn_executable_p 18623as_test_x='test -x' 18624as_executable_p=as_fn_executable_p 18625 18626# Sed expression to map a string onto a valid CPP name. 18627as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18628 18629# Sed expression to map a string onto a valid variable name. 18630as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18631 18632 18633exec 6>&1 18634## ----------------------------------- ## 18635## Main body of $CONFIG_STATUS script. ## 18636## ----------------------------------- ## 18637_ASEOF 18638test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18639 18640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18641# Save the log message, to keep $0 and so on meaningful, and to 18642# report actual input values of CONFIG_FILES etc. instead of their 18643# values after options handling. 18644ac_log=" 18645This file was extended by maildir $as_me 0.11, which was 18646generated by GNU Autoconf 2.69. Invocation command line was 18647 18648 CONFIG_FILES = $CONFIG_FILES 18649 CONFIG_HEADERS = $CONFIG_HEADERS 18650 CONFIG_LINKS = $CONFIG_LINKS 18651 CONFIG_COMMANDS = $CONFIG_COMMANDS 18652 $ $0 $@ 18653 18654on `(hostname || uname -n) 2>/dev/null | sed 1q` 18655" 18656 18657_ACEOF 18658 18659case $ac_config_files in *" 18660"*) set x $ac_config_files; shift; ac_config_files=$*;; 18661esac 18662 18663case $ac_config_headers in *" 18664"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18665esac 18666 18667 18668cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18669# Files that config.status was made for. 18670config_files="$ac_config_files" 18671config_headers="$ac_config_headers" 18672config_commands="$ac_config_commands" 18673 18674_ACEOF 18675 18676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18677ac_cs_usage="\ 18678\`$as_me' instantiates files and other configuration actions 18679from templates according to the current configuration. Unless the files 18680and actions are specified as TAGs, all are instantiated by default. 18681 18682Usage: $0 [OPTION]... [TAG]... 18683 18684 -h, --help print this help, then exit 18685 -V, --version print version number and configuration settings, then exit 18686 --config print configuration, then exit 18687 -q, --quiet, --silent 18688 do not print progress messages 18689 -d, --debug don't remove temporary files 18690 --recheck update $as_me by reconfiguring in the same conditions 18691 --file=FILE[:TEMPLATE] 18692 instantiate the configuration file FILE 18693 --header=FILE[:TEMPLATE] 18694 instantiate the configuration header FILE 18695 18696Configuration files: 18697$config_files 18698 18699Configuration headers: 18700$config_headers 18701 18702Configuration commands: 18703$config_commands 18704 18705Report bugs to <courier-maildrop@lists.sourceforge.net>." 18706 18707_ACEOF 18708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18709ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18710ac_cs_version="\\ 18711maildir config.status 0.11 18712configured by $0, generated by GNU Autoconf 2.69, 18713 with options \\"\$ac_cs_config\\" 18714 18715Copyright (C) 2012 Free Software Foundation, Inc. 18716This config.status script is free software; the Free Software Foundation 18717gives unlimited permission to copy, distribute and modify it." 18718 18719ac_pwd='$ac_pwd' 18720srcdir='$srcdir' 18721INSTALL='$INSTALL' 18722MKDIR_P='$MKDIR_P' 18723AWK='$AWK' 18724test -n "\$AWK" || AWK=awk 18725_ACEOF 18726 18727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18728# The default lists apply if the user does not specify any file. 18729ac_need_defaults=: 18730while test $# != 0 18731do 18732 case $1 in 18733 --*=?*) 18734 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18735 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18736 ac_shift=: 18737 ;; 18738 --*=) 18739 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18740 ac_optarg= 18741 ac_shift=: 18742 ;; 18743 *) 18744 ac_option=$1 18745 ac_optarg=$2 18746 ac_shift=shift 18747 ;; 18748 esac 18749 18750 case $ac_option in 18751 # Handling of the options. 18752 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18753 ac_cs_recheck=: ;; 18754 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18755 $as_echo "$ac_cs_version"; exit ;; 18756 --config | --confi | --conf | --con | --co | --c ) 18757 $as_echo "$ac_cs_config"; exit ;; 18758 --debug | --debu | --deb | --de | --d | -d ) 18759 debug=: ;; 18760 --file | --fil | --fi | --f ) 18761 $ac_shift 18762 case $ac_optarg in 18763 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18764 '') as_fn_error $? "missing file argument" ;; 18765 esac 18766 as_fn_append CONFIG_FILES " '$ac_optarg'" 18767 ac_need_defaults=false;; 18768 --header | --heade | --head | --hea ) 18769 $ac_shift 18770 case $ac_optarg in 18771 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18772 esac 18773 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18774 ac_need_defaults=false;; 18775 --he | --h) 18776 # Conflict between --help and --header 18777 as_fn_error $? "ambiguous option: \`$1' 18778Try \`$0 --help' for more information.";; 18779 --help | --hel | -h ) 18780 $as_echo "$ac_cs_usage"; exit ;; 18781 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18782 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18783 ac_cs_silent=: ;; 18784 18785 # This is an error. 18786 -*) as_fn_error $? "unrecognized option: \`$1' 18787Try \`$0 --help' for more information." ;; 18788 18789 *) as_fn_append ac_config_targets " $1" 18790 ac_need_defaults=false ;; 18791 18792 esac 18793 shift 18794done 18795 18796ac_configure_extra_args= 18797 18798if $ac_cs_silent; then 18799 exec 6>/dev/null 18800 ac_configure_extra_args="$ac_configure_extra_args --silent" 18801fi 18802 18803_ACEOF 18804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18805if \$ac_cs_recheck; then 18806 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18807 shift 18808 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18809 CONFIG_SHELL='$SHELL' 18810 export CONFIG_SHELL 18811 exec "\$@" 18812fi 18813 18814_ACEOF 18815cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18816exec 5>>config.log 18817{ 18818 echo 18819 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18820## Running $as_me. ## 18821_ASBOX 18822 $as_echo "$ac_log" 18823} >&5 18824 18825_ACEOF 18826cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18827# 18828# INIT-COMMANDS 18829# 18830AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 18831 18832 18833# The HP-UX ksh and POSIX shell print the target directory to stdout 18834# if CDPATH is set. 18835(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18836 18837sed_quote_subst='$sed_quote_subst' 18838double_quote_subst='$double_quote_subst' 18839delay_variable_subst='$delay_variable_subst' 18840macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18841macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18842enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18843enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18844pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18845enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18846shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 18847SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18848ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18849PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 18850host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18851host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18852host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18853build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18854build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18855build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18856SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18857Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18858GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18859EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18860FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18861LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18862NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18863LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18864max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18865ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18866exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18867lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18868lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18869lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18870lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 18871lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 18872reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18873reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18874OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18875deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18876file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18877file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 18878want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 18879DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 18880sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 18881AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18882AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18883archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 18884STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18885RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18886old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18887old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18888old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18889lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18890CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18891CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18892compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18893GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18894lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18895lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18896lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 18897lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18898lt_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"`' 18899lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 18900nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 18901lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 18902lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 18903objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18904MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18905lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18906lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18907lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18908lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18909lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18910need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18911MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 18912DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18913NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18914LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18915OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18916OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18917libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18918shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18919extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18920archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18921enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18922export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18923whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18924compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18925old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18926old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18927archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18928archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18929module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18930module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18931with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18932allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18933no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18934hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18935hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18936hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18937hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18938hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18939hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18940hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18941inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18942link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18943always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18944export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18945exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18946include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18947prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18948postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 18949file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18950variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18951need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18952need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18953version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18954runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18955shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18956shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18957libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18958library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18959soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18960install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18961postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18962postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18963finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18964finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18965hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18966sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18967configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 18968configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 18969hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18970enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18971enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18972enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18973old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18974striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18975compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 18976predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 18977postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 18978predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 18979postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 18980compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 18981LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 18982reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 18983reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18984old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18985compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 18986GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 18987lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 18988lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 18989lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 18990lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 18991lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 18992archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 18993enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 18994export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18995whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 18996compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 18997old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18998old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 18999archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19000archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19001module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19002module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19003with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 19004allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19005no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 19006hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 19007hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 19008hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 19009hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 19010hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 19011hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 19012hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 19013inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 19014link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 19015always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 19016export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19017exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19018include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 19019prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19020postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 19021file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 19022hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 19023compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 19024predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19025postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 19026predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 19027postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 19028compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 19029 19030LTCC='$LTCC' 19031LTCFLAGS='$LTCFLAGS' 19032compiler='$compiler_DEFAULT' 19033 19034# A function that is used when there is no print builtin or printf. 19035func_fallback_echo () 19036{ 19037 eval 'cat <<_LTECHO_EOF 19038\$1 19039_LTECHO_EOF' 19040} 19041 19042# Quote evaled strings. 19043for var in SHELL \ 19044ECHO \ 19045PATH_SEPARATOR \ 19046SED \ 19047GREP \ 19048EGREP \ 19049FGREP \ 19050LD \ 19051NM \ 19052LN_S \ 19053lt_SP2NL \ 19054lt_NL2SP \ 19055reload_flag \ 19056OBJDUMP \ 19057deplibs_check_method \ 19058file_magic_cmd \ 19059file_magic_glob \ 19060want_nocaseglob \ 19061DLLTOOL \ 19062sharedlib_from_linklib_cmd \ 19063AR \ 19064AR_FLAGS \ 19065archiver_list_spec \ 19066STRIP \ 19067RANLIB \ 19068CC \ 19069CFLAGS \ 19070compiler \ 19071lt_cv_sys_global_symbol_pipe \ 19072lt_cv_sys_global_symbol_to_cdecl \ 19073lt_cv_sys_global_symbol_to_import \ 19074lt_cv_sys_global_symbol_to_c_name_address \ 19075lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19076lt_cv_nm_interface \ 19077nm_file_list_spec \ 19078lt_cv_truncate_bin \ 19079lt_prog_compiler_no_builtin_flag \ 19080lt_prog_compiler_pic \ 19081lt_prog_compiler_wl \ 19082lt_prog_compiler_static \ 19083lt_cv_prog_compiler_c_o \ 19084need_locks \ 19085MANIFEST_TOOL \ 19086DSYMUTIL \ 19087NMEDIT \ 19088LIPO \ 19089OTOOL \ 19090OTOOL64 \ 19091shrext_cmds \ 19092export_dynamic_flag_spec \ 19093whole_archive_flag_spec \ 19094compiler_needs_object \ 19095with_gnu_ld \ 19096allow_undefined_flag \ 19097no_undefined_flag \ 19098hardcode_libdir_flag_spec \ 19099hardcode_libdir_separator \ 19100exclude_expsyms \ 19101include_expsyms \ 19102file_list_spec \ 19103variables_saved_for_relink \ 19104libname_spec \ 19105library_names_spec \ 19106soname_spec \ 19107install_override_mode \ 19108finish_eval \ 19109old_striplib \ 19110striplib \ 19111compiler_lib_search_dirs \ 19112predep_objects \ 19113postdep_objects \ 19114predeps \ 19115postdeps \ 19116compiler_lib_search_path \ 19117LD_CXX \ 19118reload_flag_CXX \ 19119compiler_CXX \ 19120lt_prog_compiler_no_builtin_flag_CXX \ 19121lt_prog_compiler_pic_CXX \ 19122lt_prog_compiler_wl_CXX \ 19123lt_prog_compiler_static_CXX \ 19124lt_cv_prog_compiler_c_o_CXX \ 19125export_dynamic_flag_spec_CXX \ 19126whole_archive_flag_spec_CXX \ 19127compiler_needs_object_CXX \ 19128with_gnu_ld_CXX \ 19129allow_undefined_flag_CXX \ 19130no_undefined_flag_CXX \ 19131hardcode_libdir_flag_spec_CXX \ 19132hardcode_libdir_separator_CXX \ 19133exclude_expsyms_CXX \ 19134include_expsyms_CXX \ 19135file_list_spec_CXX \ 19136compiler_lib_search_dirs_CXX \ 19137predep_objects_CXX \ 19138postdep_objects_CXX \ 19139predeps_CXX \ 19140postdeps_CXX \ 19141compiler_lib_search_path_CXX; do 19142 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19143 *[\\\\\\\`\\"\\\$]*) 19144 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19145 ;; 19146 *) 19147 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19148 ;; 19149 esac 19150done 19151 19152# Double-quote double-evaled strings. 19153for var in reload_cmds \ 19154old_postinstall_cmds \ 19155old_postuninstall_cmds \ 19156old_archive_cmds \ 19157extract_expsyms_cmds \ 19158old_archive_from_new_cmds \ 19159old_archive_from_expsyms_cmds \ 19160archive_cmds \ 19161archive_expsym_cmds \ 19162module_cmds \ 19163module_expsym_cmds \ 19164export_symbols_cmds \ 19165prelink_cmds \ 19166postlink_cmds \ 19167postinstall_cmds \ 19168postuninstall_cmds \ 19169finish_cmds \ 19170sys_lib_search_path_spec \ 19171configure_time_dlsearch_path \ 19172configure_time_lt_sys_library_path \ 19173reload_cmds_CXX \ 19174old_archive_cmds_CXX \ 19175old_archive_from_new_cmds_CXX \ 19176old_archive_from_expsyms_cmds_CXX \ 19177archive_cmds_CXX \ 19178archive_expsym_cmds_CXX \ 19179module_cmds_CXX \ 19180module_expsym_cmds_CXX \ 19181export_symbols_cmds_CXX \ 19182prelink_cmds_CXX \ 19183postlink_cmds_CXX; do 19184 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19185 *[\\\\\\\`\\"\\\$]*) 19186 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19187 ;; 19188 *) 19189 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19190 ;; 19191 esac 19192done 19193 19194ac_aux_dir='$ac_aux_dir' 19195 19196# See if we are running on zsh, and set the options that allow our 19197# commands through without removal of \ escapes INIT. 19198if test -n "\${ZSH_VERSION+set}"; then 19199 setopt NO_GLOB_SUBST 19200fi 19201 19202 19203 PACKAGE='$PACKAGE' 19204 VERSION='$VERSION' 19205 RM='$RM' 19206 ofile='$ofile' 19207 19208 19209 19210 19211 19212 19213_ACEOF 19214 19215cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19216 19217# Handling of arguments. 19218for ac_config_target in $ac_config_targets 19219do 19220 case $ac_config_target in 19221 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19222 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19223 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19224 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19225 "sharedindexinstall") CONFIG_FILES="$CONFIG_FILES sharedindexinstall" ;; 19226 "sharedindexsplit") CONFIG_FILES="$CONFIG_FILES sharedindexsplit" ;; 19227 19228 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19229 esac 19230done 19231 19232 19233# If the user did not use the arguments to specify the items to instantiate, 19234# then the envvar interface is used. Set only those that are not. 19235# We use the long form for the default assignment because of an extremely 19236# bizarre bug on SunOS 4.1.3. 19237if $ac_need_defaults; then 19238 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19239 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19240 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19241fi 19242 19243# Have a temporary directory for convenience. Make it in the build tree 19244# simply because there is no reason against having it here, and in addition, 19245# creating and moving files from /tmp can sometimes cause problems. 19246# Hook for its removal unless debugging. 19247# Note that there is a small window in which the directory will not be cleaned: 19248# after its creation but before its name has been assigned to `$tmp'. 19249$debug || 19250{ 19251 tmp= ac_tmp= 19252 trap 'exit_status=$? 19253 : "${ac_tmp:=$tmp}" 19254 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19255' 0 19256 trap 'as_fn_exit 1' 1 2 13 15 19257} 19258# Create a (secure) tmp directory for tmp files. 19259 19260{ 19261 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19262 test -d "$tmp" 19263} || 19264{ 19265 tmp=./conf$$-$RANDOM 19266 (umask 077 && mkdir "$tmp") 19267} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19268ac_tmp=$tmp 19269 19270# Set up the scripts for CONFIG_FILES section. 19271# No need to generate them if there are no CONFIG_FILES. 19272# This happens for instance with `./config.status config.h'. 19273if test -n "$CONFIG_FILES"; then 19274 19275 19276ac_cr=`echo X | tr X '\015'` 19277# On cygwin, bash can eat \r inside `` if the user requested igncr. 19278# But we know of no other shell where ac_cr would be empty at this 19279# point, so we can use a bashism as a fallback. 19280if test "x$ac_cr" = x; then 19281 eval ac_cr=\$\'\\r\' 19282fi 19283ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19284if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19285 ac_cs_awk_cr='\\r' 19286else 19287 ac_cs_awk_cr=$ac_cr 19288fi 19289 19290echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19291_ACEOF 19292 19293 19294{ 19295 echo "cat >conf$$subs.awk <<_ACEOF" && 19296 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19297 echo "_ACEOF" 19298} >conf$$subs.sh || 19299 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19300ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19301ac_delim='%!_!# ' 19302for ac_last_try in false false false false false :; do 19303 . ./conf$$subs.sh || 19304 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19305 19306 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19307 if test $ac_delim_n = $ac_delim_num; then 19308 break 19309 elif $ac_last_try; then 19310 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19311 else 19312 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19313 fi 19314done 19315rm -f conf$$subs.sh 19316 19317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19318cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19319_ACEOF 19320sed -n ' 19321h 19322s/^/S["/; s/!.*/"]=/ 19323p 19324g 19325s/^[^!]*!// 19326:repl 19327t repl 19328s/'"$ac_delim"'$// 19329t delim 19330:nl 19331h 19332s/\(.\{148\}\)..*/\1/ 19333t more1 19334s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19335p 19336n 19337b repl 19338:more1 19339s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19340p 19341g 19342s/.\{148\}// 19343t nl 19344:delim 19345h 19346s/\(.\{148\}\)..*/\1/ 19347t more2 19348s/["\\]/\\&/g; s/^/"/; s/$/"/ 19349p 19350b 19351:more2 19352s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19353p 19354g 19355s/.\{148\}// 19356t delim 19357' <conf$$subs.awk | sed ' 19358/^[^""]/{ 19359 N 19360 s/\n// 19361} 19362' >>$CONFIG_STATUS || ac_write_fail=1 19363rm -f conf$$subs.awk 19364cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19365_ACAWK 19366cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19367 for (key in S) S_is_set[key] = 1 19368 FS = "" 19369 19370} 19371{ 19372 line = $ 0 19373 nfields = split(line, field, "@") 19374 substed = 0 19375 len = length(field[1]) 19376 for (i = 2; i < nfields; i++) { 19377 key = field[i] 19378 keylen = length(key) 19379 if (S_is_set[key]) { 19380 value = S[key] 19381 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19382 len += length(value) + length(field[++i]) 19383 substed = 1 19384 } else 19385 len += 1 + keylen 19386 } 19387 19388 print line 19389} 19390 19391_ACAWK 19392_ACEOF 19393cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19394if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19395 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19396else 19397 cat 19398fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19399 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19400_ACEOF 19401 19402# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19403# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19404# trailing colons and then remove the whole line if VPATH becomes empty 19405# (actually we leave an empty line to preserve line numbers). 19406if test "x$srcdir" = x.; then 19407 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19408h 19409s/// 19410s/^/:/ 19411s/[ ]*$/:/ 19412s/:\$(srcdir):/:/g 19413s/:\${srcdir}:/:/g 19414s/:@srcdir@:/:/g 19415s/^:*// 19416s/:*$// 19417x 19418s/\(=[ ]*\).*/\1/ 19419G 19420s/\n// 19421s/^[^=]*=[ ]*$// 19422}' 19423fi 19424 19425cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19426fi # test -n "$CONFIG_FILES" 19427 19428# Set up the scripts for CONFIG_HEADERS section. 19429# No need to generate them if there are no CONFIG_HEADERS. 19430# This happens for instance with `./config.status Makefile'. 19431if test -n "$CONFIG_HEADERS"; then 19432cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19433BEGIN { 19434_ACEOF 19435 19436# Transform confdefs.h into an awk script `defines.awk', embedded as 19437# here-document in config.status, that substitutes the proper values into 19438# config.h.in to produce config.h. 19439 19440# Create a delimiter string that does not exist in confdefs.h, to ease 19441# handling of long lines. 19442ac_delim='%!_!# ' 19443for ac_last_try in false false :; do 19444 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19445 if test -z "$ac_tt"; then 19446 break 19447 elif $ac_last_try; then 19448 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19449 else 19450 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19451 fi 19452done 19453 19454# For the awk script, D is an array of macro values keyed by name, 19455# likewise P contains macro parameters if any. Preserve backslash 19456# newline sequences. 19457 19458ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19459sed -n ' 19460s/.\{148\}/&'"$ac_delim"'/g 19461t rset 19462:rset 19463s/^[ ]*#[ ]*define[ ][ ]*/ / 19464t def 19465d 19466:def 19467s/\\$// 19468t bsnl 19469s/["\\]/\\&/g 19470s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19471D["\1"]=" \3"/p 19472s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19473d 19474:bsnl 19475s/["\\]/\\&/g 19476s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19477D["\1"]=" \3\\\\\\n"\\/p 19478t cont 19479s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19480t cont 19481d 19482:cont 19483n 19484s/.\{148\}/&'"$ac_delim"'/g 19485t clear 19486:clear 19487s/\\$// 19488t bsnlc 19489s/["\\]/\\&/g; s/^/"/; s/$/"/p 19490d 19491:bsnlc 19492s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19493b cont 19494' <confdefs.h | sed ' 19495s/'"$ac_delim"'/"\\\ 19496"/g' >>$CONFIG_STATUS || ac_write_fail=1 19497 19498cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19499 for (key in D) D_is_set[key] = 1 19500 FS = "" 19501} 19502/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19503 line = \$ 0 19504 split(line, arg, " ") 19505 if (arg[1] == "#") { 19506 defundef = arg[2] 19507 mac1 = arg[3] 19508 } else { 19509 defundef = substr(arg[1], 2) 19510 mac1 = arg[2] 19511 } 19512 split(mac1, mac2, "(") #) 19513 macro = mac2[1] 19514 prefix = substr(line, 1, index(line, defundef) - 1) 19515 if (D_is_set[macro]) { 19516 # Preserve the white space surrounding the "#". 19517 print prefix "define", macro P[macro] D[macro] 19518 next 19519 } else { 19520 # Replace #undef with comments. This is necessary, for example, 19521 # in the case of _POSIX_SOURCE, which is predefined and required 19522 # on some systems where configure will not decide to define it. 19523 if (defundef == "undef") { 19524 print "/*", prefix defundef, macro, "*/" 19525 next 19526 } 19527 } 19528} 19529{ print } 19530_ACAWK 19531_ACEOF 19532cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19533 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19534fi # test -n "$CONFIG_HEADERS" 19535 19536 19537eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19538shift 19539for ac_tag 19540do 19541 case $ac_tag in 19542 :[FHLC]) ac_mode=$ac_tag; continue;; 19543 esac 19544 case $ac_mode$ac_tag in 19545 :[FHL]*:*);; 19546 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19547 :[FH]-) ac_tag=-:-;; 19548 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19549 esac 19550 ac_save_IFS=$IFS 19551 IFS=: 19552 set x $ac_tag 19553 IFS=$ac_save_IFS 19554 shift 19555 ac_file=$1 19556 shift 19557 19558 case $ac_mode in 19559 :L) ac_source=$1;; 19560 :[FH]) 19561 ac_file_inputs= 19562 for ac_f 19563 do 19564 case $ac_f in 19565 -) ac_f="$ac_tmp/stdin";; 19566 *) # Look for the file first in the build tree, then in the source tree 19567 # (if the path is not absolute). The absolute path cannot be DOS-style, 19568 # because $ac_f cannot contain `:'. 19569 test -f "$ac_f" || 19570 case $ac_f in 19571 [\\/$]*) false;; 19572 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19573 esac || 19574 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19575 esac 19576 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19577 as_fn_append ac_file_inputs " '$ac_f'" 19578 done 19579 19580 # Let's still pretend it is `configure' which instantiates (i.e., don't 19581 # use $as_me), people would be surprised to read: 19582 # /* config.h. Generated by config.status. */ 19583 configure_input='Generated from '` 19584 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19585 `' by configure.' 19586 if test x"$ac_file" != x-; then 19587 configure_input="$ac_file. $configure_input" 19588 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19589$as_echo "$as_me: creating $ac_file" >&6;} 19590 fi 19591 # Neutralize special characters interpreted by sed in replacement strings. 19592 case $configure_input in #( 19593 *\&* | *\|* | *\\* ) 19594 ac_sed_conf_input=`$as_echo "$configure_input" | 19595 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19596 *) ac_sed_conf_input=$configure_input;; 19597 esac 19598 19599 case $ac_tag in 19600 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19601 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19602 esac 19603 ;; 19604 esac 19605 19606 ac_dir=`$as_dirname -- "$ac_file" || 19607$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19608 X"$ac_file" : 'X\(//\)[^/]' \| \ 19609 X"$ac_file" : 'X\(//\)$' \| \ 19610 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19611$as_echo X"$ac_file" | 19612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19613 s//\1/ 19614 q 19615 } 19616 /^X\(\/\/\)[^/].*/{ 19617 s//\1/ 19618 q 19619 } 19620 /^X\(\/\/\)$/{ 19621 s//\1/ 19622 q 19623 } 19624 /^X\(\/\).*/{ 19625 s//\1/ 19626 q 19627 } 19628 s/.*/./; q'` 19629 as_dir="$ac_dir"; as_fn_mkdir_p 19630 ac_builddir=. 19631 19632case "$ac_dir" in 19633.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19634*) 19635 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19636 # A ".." for each directory in $ac_dir_suffix. 19637 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19638 case $ac_top_builddir_sub in 19639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19641 esac ;; 19642esac 19643ac_abs_top_builddir=$ac_pwd 19644ac_abs_builddir=$ac_pwd$ac_dir_suffix 19645# for backward compatibility: 19646ac_top_builddir=$ac_top_build_prefix 19647 19648case $srcdir in 19649 .) # We are building in place. 19650 ac_srcdir=. 19651 ac_top_srcdir=$ac_top_builddir_sub 19652 ac_abs_top_srcdir=$ac_pwd ;; 19653 [\\/]* | ?:[\\/]* ) # Absolute name. 19654 ac_srcdir=$srcdir$ac_dir_suffix; 19655 ac_top_srcdir=$srcdir 19656 ac_abs_top_srcdir=$srcdir ;; 19657 *) # Relative name. 19658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19659 ac_top_srcdir=$ac_top_build_prefix$srcdir 19660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19661esac 19662ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19663 19664 19665 case $ac_mode in 19666 :F) 19667 # 19668 # CONFIG_FILE 19669 # 19670 19671 case $INSTALL in 19672 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19673 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19674 esac 19675 ac_MKDIR_P=$MKDIR_P 19676 case $MKDIR_P in 19677 [\\/$]* | ?:[\\/]* ) ;; 19678 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19679 esac 19680_ACEOF 19681 19682cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19683# If the template does not know about datarootdir, expand it. 19684# FIXME: This hack should be removed a few years after 2.60. 19685ac_datarootdir_hack=; ac_datarootdir_seen= 19686ac_sed_dataroot=' 19687/datarootdir/ { 19688 p 19689 q 19690} 19691/@datadir@/p 19692/@docdir@/p 19693/@infodir@/p 19694/@localedir@/p 19695/@mandir@/p' 19696case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19697*datarootdir*) ac_datarootdir_seen=yes;; 19698*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19700$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19701_ACEOF 19702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19703 ac_datarootdir_hack=' 19704 s&@datadir@&$datadir&g 19705 s&@docdir@&$docdir&g 19706 s&@infodir@&$infodir&g 19707 s&@localedir@&$localedir&g 19708 s&@mandir@&$mandir&g 19709 s&\\\${datarootdir}&$datarootdir&g' ;; 19710esac 19711_ACEOF 19712 19713# Neutralize VPATH when `$srcdir' = `.'. 19714# Shell code in configure.ac might set extrasub. 19715# FIXME: do we really want to maintain this feature? 19716cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19717ac_sed_extra="$ac_vpsub 19718$extrasub 19719_ACEOF 19720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19721:t 19722/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19723s|@configure_input@|$ac_sed_conf_input|;t t 19724s&@top_builddir@&$ac_top_builddir_sub&;t t 19725s&@top_build_prefix@&$ac_top_build_prefix&;t t 19726s&@srcdir@&$ac_srcdir&;t t 19727s&@abs_srcdir@&$ac_abs_srcdir&;t t 19728s&@top_srcdir@&$ac_top_srcdir&;t t 19729s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19730s&@builddir@&$ac_builddir&;t t 19731s&@abs_builddir@&$ac_abs_builddir&;t t 19732s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19733s&@INSTALL@&$ac_INSTALL&;t t 19734s&@MKDIR_P@&$ac_MKDIR_P&;t t 19735$ac_datarootdir_hack 19736" 19737eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19738 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19739 19740test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19741 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19742 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19743 "$ac_tmp/out"`; test -z "$ac_out"; } && 19744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19745which seems to be undefined. Please make sure it is defined" >&5 19746$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19747which seems to be undefined. Please make sure it is defined" >&2;} 19748 19749 rm -f "$ac_tmp/stdin" 19750 case $ac_file in 19751 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19752 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19753 esac \ 19754 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19755 ;; 19756 :H) 19757 # 19758 # CONFIG_HEADER 19759 # 19760 if test x"$ac_file" != x-; then 19761 { 19762 $as_echo "/* $configure_input */" \ 19763 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19764 } >"$ac_tmp/config.h" \ 19765 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19766 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19767 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19768$as_echo "$as_me: $ac_file is unchanged" >&6;} 19769 else 19770 rm -f "$ac_file" 19771 mv "$ac_tmp/config.h" "$ac_file" \ 19772 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19773 fi 19774 else 19775 $as_echo "/* $configure_input */" \ 19776 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19777 || as_fn_error $? "could not create -" "$LINENO" 5 19778 fi 19779# Compute "$ac_file"'s index in $config_headers. 19780_am_arg="$ac_file" 19781_am_stamp_count=1 19782for _am_header in $config_headers :; do 19783 case $_am_header in 19784 $_am_arg | $_am_arg:* ) 19785 break ;; 19786 * ) 19787 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19788 esac 19789done 19790echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19791$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19792 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19793 X"$_am_arg" : 'X\(//\)$' \| \ 19794 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19795$as_echo X"$_am_arg" | 19796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19797 s//\1/ 19798 q 19799 } 19800 /^X\(\/\/\)[^/].*/{ 19801 s//\1/ 19802 q 19803 } 19804 /^X\(\/\/\)$/{ 19805 s//\1/ 19806 q 19807 } 19808 /^X\(\/\).*/{ 19809 s//\1/ 19810 q 19811 } 19812 s/.*/./; q'`/stamp-h$_am_stamp_count 19813 ;; 19814 19815 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19816$as_echo "$as_me: executing $ac_file commands" >&6;} 19817 ;; 19818 esac 19819 19820 19821 case $ac_file$ac_mode in 19822 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19823 # Older Autoconf quotes --file arguments for eval, but not when files 19824 # are listed without --file. Let's play safe and only enable the eval 19825 # if we detect the quoting. 19826 # TODO: see whether this extra hack can be removed once we start 19827 # requiring Autoconf 2.70 or later. 19828 case $CONFIG_FILES in #( 19829 *\'*) : 19830 eval set x "$CONFIG_FILES" ;; #( 19831 *) : 19832 set x $CONFIG_FILES ;; #( 19833 *) : 19834 ;; 19835esac 19836 shift 19837 # Used to flag and report bootstrapping failures. 19838 am_rc=0 19839 for am_mf 19840 do 19841 # Strip MF so we end up with the name of the file. 19842 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 19843 # Check whether this is an Automake generated Makefile which includes 19844 # dependency-tracking related rules and includes. 19845 # Grep'ing the whole file directly is not great: AIX grep has a line 19846 # limit of 2048, but all sed's we know have understand at least 4000. 19847 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 19848 || continue 19849 am_dirpart=`$as_dirname -- "$am_mf" || 19850$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19851 X"$am_mf" : 'X\(//\)[^/]' \| \ 19852 X"$am_mf" : 'X\(//\)$' \| \ 19853 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19854$as_echo X"$am_mf" | 19855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19856 s//\1/ 19857 q 19858 } 19859 /^X\(\/\/\)[^/].*/{ 19860 s//\1/ 19861 q 19862 } 19863 /^X\(\/\/\)$/{ 19864 s//\1/ 19865 q 19866 } 19867 /^X\(\/\).*/{ 19868 s//\1/ 19869 q 19870 } 19871 s/.*/./; q'` 19872 am_filepart=`$as_basename -- "$am_mf" || 19873$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 19874 X"$am_mf" : 'X\(//\)$' \| \ 19875 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 19876$as_echo X/"$am_mf" | 19877 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19878 s//\1/ 19879 q 19880 } 19881 /^X\/\(\/\/\)$/{ 19882 s//\1/ 19883 q 19884 } 19885 /^X\/\(\/\).*/{ 19886 s//\1/ 19887 q 19888 } 19889 s/.*/./; q'` 19890 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 19891 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19892 | $MAKE -f - am--depfiles" >&5 19893 (cd "$am_dirpart" \ 19894 && sed -e '/# am--include-marker/d' "$am_filepart" \ 19895 | $MAKE -f - am--depfiles) >&5 2>&5 19896 ac_status=$? 19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19898 (exit $ac_status); } || am_rc=$? 19899 done 19900 if test $am_rc -ne 0; then 19901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19903as_fn_error $? "Something went wrong bootstrapping makefile fragments 19904 for automatic dependency tracking. If GNU make was not used, consider 19905 re-running the configure script with MAKE=\"gmake\" (or whatever is 19906 necessary). You can also try re-running configure with the 19907 '--disable-dependency-tracking' option to at least be able to build 19908 the package (albeit without support for automatic dependency tracking). 19909See \`config.log' for more details" "$LINENO" 5; } 19910 fi 19911 { am_dirpart=; unset am_dirpart;} 19912 { am_filepart=; unset am_filepart;} 19913 { am_mf=; unset am_mf;} 19914 { am_rc=; unset am_rc;} 19915 rm -f conftest-deps.mk 19916} 19917 ;; 19918 "libtool":C) 19919 19920 # See if we are running on zsh, and set the options that allow our 19921 # commands through without removal of \ escapes. 19922 if test -n "${ZSH_VERSION+set}"; then 19923 setopt NO_GLOB_SUBST 19924 fi 19925 19926 cfgfile=${ofile}T 19927 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19928 $RM "$cfgfile" 19929 19930 cat <<_LT_EOF >> "$cfgfile" 19931#! $SHELL 19932# Generated automatically by $as_me ($PACKAGE) $VERSION 19933# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19934# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19935 19936# Provide generalized library-building support services. 19937# Written by Gordon Matzigkeit, 1996 19938 19939# Copyright (C) 2014 Free Software Foundation, Inc. 19940# This is free software; see the source for copying conditions. There is NO 19941# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 19942 19943# GNU Libtool is free software; you can redistribute it and/or modify 19944# it under the terms of the GNU General Public License as published by 19945# the Free Software Foundation; either version 2 of of the License, or 19946# (at your option) any later version. 19947# 19948# As a special exception to the GNU General Public License, if you 19949# distribute this file as part of a program or library that is built 19950# using GNU Libtool, you may include this file under the same 19951# distribution terms that you use for the rest of that program. 19952# 19953# GNU Libtool is distributed in the hope that it will be useful, but 19954# WITHOUT ANY WARRANTY; without even the implied warranty of 19955# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19956# GNU General Public License for more details. 19957# 19958# You should have received a copy of the GNU General Public License 19959# along with this program. If not, see <http://www.gnu.org/licenses/>. 19960 19961 19962# The names of the tagged configurations supported by this script. 19963available_tags='CXX ' 19964 19965# Configured defaults for sys_lib_dlsearch_path munging. 19966: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 19967 19968# ### BEGIN LIBTOOL CONFIG 19969 19970# Which release of libtool.m4 was used? 19971macro_version=$macro_version 19972macro_revision=$macro_revision 19973 19974# Whether or not to build shared libraries. 19975build_libtool_libs=$enable_shared 19976 19977# Whether or not to build static libraries. 19978build_old_libs=$enable_static 19979 19980# What type of objects to build. 19981pic_mode=$pic_mode 19982 19983# Whether or not to optimize for fast installation. 19984fast_install=$enable_fast_install 19985 19986# Shared archive member basename,for filename based shared library versioning on AIX. 19987shared_archive_member_spec=$shared_archive_member_spec 19988 19989# Shell to use when invoking shell scripts. 19990SHELL=$lt_SHELL 19991 19992# An echo program that protects backslashes. 19993ECHO=$lt_ECHO 19994 19995# The PATH separator for the build system. 19996PATH_SEPARATOR=$lt_PATH_SEPARATOR 19997 19998# The host system. 19999host_alias=$host_alias 20000host=$host 20001host_os=$host_os 20002 20003# The build system. 20004build_alias=$build_alias 20005build=$build 20006build_os=$build_os 20007 20008# A sed program that does not truncate output. 20009SED=$lt_SED 20010 20011# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20012Xsed="\$SED -e 1s/^X//" 20013 20014# A grep program that handles long lines. 20015GREP=$lt_GREP 20016 20017# An ERE matcher. 20018EGREP=$lt_EGREP 20019 20020# A literal string matcher. 20021FGREP=$lt_FGREP 20022 20023# A BSD- or MS-compatible name lister. 20024NM=$lt_NM 20025 20026# Whether we need soft or hard links. 20027LN_S=$lt_LN_S 20028 20029# What is the maximum length of a command? 20030max_cmd_len=$max_cmd_len 20031 20032# Object file suffix (normally "o"). 20033objext=$ac_objext 20034 20035# Executable file suffix (normally ""). 20036exeext=$exeext 20037 20038# whether the shell understands "unset". 20039lt_unset=$lt_unset 20040 20041# turn spaces into newlines. 20042SP2NL=$lt_lt_SP2NL 20043 20044# turn newlines into spaces. 20045NL2SP=$lt_lt_NL2SP 20046 20047# convert \$build file names to \$host format. 20048to_host_file_cmd=$lt_cv_to_host_file_cmd 20049 20050# convert \$build files to toolchain format. 20051to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20052 20053# An object symbol dumper. 20054OBJDUMP=$lt_OBJDUMP 20055 20056# Method to check whether dependent libraries are shared objects. 20057deplibs_check_method=$lt_deplibs_check_method 20058 20059# Command to use when deplibs_check_method = "file_magic". 20060file_magic_cmd=$lt_file_magic_cmd 20061 20062# How to find potential files when deplibs_check_method = "file_magic". 20063file_magic_glob=$lt_file_magic_glob 20064 20065# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20066want_nocaseglob=$lt_want_nocaseglob 20067 20068# DLL creation program. 20069DLLTOOL=$lt_DLLTOOL 20070 20071# Command to associate shared and link libraries. 20072sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20073 20074# The archiver. 20075AR=$lt_AR 20076 20077# Flags to create an archive. 20078AR_FLAGS=$lt_AR_FLAGS 20079 20080# How to feed a file listing to the archiver. 20081archiver_list_spec=$lt_archiver_list_spec 20082 20083# A symbol stripping program. 20084STRIP=$lt_STRIP 20085 20086# Commands used to install an old-style archive. 20087RANLIB=$lt_RANLIB 20088old_postinstall_cmds=$lt_old_postinstall_cmds 20089old_postuninstall_cmds=$lt_old_postuninstall_cmds 20090 20091# Whether to use a lock for old archive extraction. 20092lock_old_archive_extraction=$lock_old_archive_extraction 20093 20094# A C compiler. 20095LTCC=$lt_CC 20096 20097# LTCC compiler flags. 20098LTCFLAGS=$lt_CFLAGS 20099 20100# Take the output of nm and produce a listing of raw symbols and C names. 20101global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20102 20103# Transform the output of nm in a proper C declaration. 20104global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20105 20106# Transform the output of nm into a list of symbols to manually relocate. 20107global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20108 20109# Transform the output of nm in a C name address pair. 20110global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20111 20112# Transform the output of nm in a C name address pair when lib prefix is needed. 20113global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20114 20115# The name lister interface. 20116nm_interface=$lt_lt_cv_nm_interface 20117 20118# Specify filename containing input files for \$NM. 20119nm_file_list_spec=$lt_nm_file_list_spec 20120 20121# The root where to search for dependent libraries,and where our libraries should be installed. 20122lt_sysroot=$lt_sysroot 20123 20124# Command to truncate a binary pipe. 20125lt_truncate_bin=$lt_lt_cv_truncate_bin 20126 20127# The name of the directory that contains temporary libtool files. 20128objdir=$objdir 20129 20130# Used to examine libraries when file_magic_cmd begins with "file". 20131MAGIC_CMD=$MAGIC_CMD 20132 20133# Must we lock files when doing compilation? 20134need_locks=$lt_need_locks 20135 20136# Manifest tool. 20137MANIFEST_TOOL=$lt_MANIFEST_TOOL 20138 20139# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20140DSYMUTIL=$lt_DSYMUTIL 20141 20142# Tool to change global to local symbols on Mac OS X. 20143NMEDIT=$lt_NMEDIT 20144 20145# Tool to manipulate fat objects and archives on Mac OS X. 20146LIPO=$lt_LIPO 20147 20148# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20149OTOOL=$lt_OTOOL 20150 20151# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20152OTOOL64=$lt_OTOOL64 20153 20154# Old archive suffix (normally "a"). 20155libext=$libext 20156 20157# Shared library suffix (normally ".so"). 20158shrext_cmds=$lt_shrext_cmds 20159 20160# The commands to extract the exported symbol list from a shared archive. 20161extract_expsyms_cmds=$lt_extract_expsyms_cmds 20162 20163# Variables whose values should be saved in libtool wrapper scripts and 20164# restored at link time. 20165variables_saved_for_relink=$lt_variables_saved_for_relink 20166 20167# Do we need the "lib" prefix for modules? 20168need_lib_prefix=$need_lib_prefix 20169 20170# Do we need a version for libraries? 20171need_version=$need_version 20172 20173# Library versioning type. 20174version_type=$version_type 20175 20176# Shared library runtime path variable. 20177runpath_var=$runpath_var 20178 20179# Shared library path variable. 20180shlibpath_var=$shlibpath_var 20181 20182# Is shlibpath searched before the hard-coded library search path? 20183shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20184 20185# Format of library name prefix. 20186libname_spec=$lt_libname_spec 20187 20188# List of archive names. First name is the real one, the rest are links. 20189# The last name is the one that the linker finds with -lNAME 20190library_names_spec=$lt_library_names_spec 20191 20192# The coded name of the library, if different from the real name. 20193soname_spec=$lt_soname_spec 20194 20195# Permission mode override for installation of shared libraries. 20196install_override_mode=$lt_install_override_mode 20197 20198# Command to use after installation of a shared archive. 20199postinstall_cmds=$lt_postinstall_cmds 20200 20201# Command to use after uninstallation of a shared archive. 20202postuninstall_cmds=$lt_postuninstall_cmds 20203 20204# Commands used to finish a libtool library installation in a directory. 20205finish_cmds=$lt_finish_cmds 20206 20207# As "finish_cmds", except a single script fragment to be evaled but 20208# not shown. 20209finish_eval=$lt_finish_eval 20210 20211# Whether we should hardcode library paths into libraries. 20212hardcode_into_libs=$hardcode_into_libs 20213 20214# Compile-time system search path for libraries. 20215sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20216 20217# Detected run-time system search path for libraries. 20218sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20219 20220# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20221configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20222 20223# Whether dlopen is supported. 20224dlopen_support=$enable_dlopen 20225 20226# Whether dlopen of programs is supported. 20227dlopen_self=$enable_dlopen_self 20228 20229# Whether dlopen of statically linked programs is supported. 20230dlopen_self_static=$enable_dlopen_self_static 20231 20232# Commands to strip libraries. 20233old_striplib=$lt_old_striplib 20234striplib=$lt_striplib 20235 20236 20237# The linker used to build libraries. 20238LD=$lt_LD 20239 20240# How to create reloadable object files. 20241reload_flag=$lt_reload_flag 20242reload_cmds=$lt_reload_cmds 20243 20244# Commands used to build an old-style archive. 20245old_archive_cmds=$lt_old_archive_cmds 20246 20247# A language specific compiler. 20248CC=$lt_compiler 20249 20250# Is the compiler the GNU compiler? 20251with_gcc=$GCC 20252 20253# Compiler flag to turn off builtin functions. 20254no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20255 20256# Additional compiler flags for building library objects. 20257pic_flag=$lt_lt_prog_compiler_pic 20258 20259# How to pass a linker flag through the compiler. 20260wl=$lt_lt_prog_compiler_wl 20261 20262# Compiler flag to prevent dynamic linking. 20263link_static_flag=$lt_lt_prog_compiler_static 20264 20265# Does compiler simultaneously support -c and -o options? 20266compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20267 20268# Whether or not to add -lc for building shared libraries. 20269build_libtool_need_lc=$archive_cmds_need_lc 20270 20271# Whether or not to disallow shared libs when runtime libs are static. 20272allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20273 20274# Compiler flag to allow reflexive dlopens. 20275export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20276 20277# Compiler flag to generate shared objects directly from archives. 20278whole_archive_flag_spec=$lt_whole_archive_flag_spec 20279 20280# Whether the compiler copes with passing no objects directly. 20281compiler_needs_object=$lt_compiler_needs_object 20282 20283# Create an old-style archive from a shared archive. 20284old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20285 20286# Create a temporary old-style archive to link instead of a shared archive. 20287old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20288 20289# Commands used to build a shared archive. 20290archive_cmds=$lt_archive_cmds 20291archive_expsym_cmds=$lt_archive_expsym_cmds 20292 20293# Commands used to build a loadable module if different from building 20294# a shared archive. 20295module_cmds=$lt_module_cmds 20296module_expsym_cmds=$lt_module_expsym_cmds 20297 20298# Whether we are building with GNU ld or not. 20299with_gnu_ld=$lt_with_gnu_ld 20300 20301# Flag that allows shared libraries with undefined symbols to be built. 20302allow_undefined_flag=$lt_allow_undefined_flag 20303 20304# Flag that enforces no undefined symbols. 20305no_undefined_flag=$lt_no_undefined_flag 20306 20307# Flag to hardcode \$libdir into a binary during linking. 20308# This must work even if \$libdir does not exist 20309hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20310 20311# Whether we need a single "-rpath" flag with a separated argument. 20312hardcode_libdir_separator=$lt_hardcode_libdir_separator 20313 20314# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20315# DIR into the resulting binary. 20316hardcode_direct=$hardcode_direct 20317 20318# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20319# DIR into the resulting binary and the resulting library dependency is 20320# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20321# library is relocated. 20322hardcode_direct_absolute=$hardcode_direct_absolute 20323 20324# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20325# into the resulting binary. 20326hardcode_minus_L=$hardcode_minus_L 20327 20328# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20329# into the resulting binary. 20330hardcode_shlibpath_var=$hardcode_shlibpath_var 20331 20332# Set to "yes" if building a shared library automatically hardcodes DIR 20333# into the library and all subsequent libraries and executables linked 20334# against it. 20335hardcode_automatic=$hardcode_automatic 20336 20337# Set to yes if linker adds runtime paths of dependent libraries 20338# to runtime path list. 20339inherit_rpath=$inherit_rpath 20340 20341# Whether libtool must link a program against all its dependency libraries. 20342link_all_deplibs=$link_all_deplibs 20343 20344# Set to "yes" if exported symbols are required. 20345always_export_symbols=$always_export_symbols 20346 20347# The commands to list exported symbols. 20348export_symbols_cmds=$lt_export_symbols_cmds 20349 20350# Symbols that should not be listed in the preloaded symbols. 20351exclude_expsyms=$lt_exclude_expsyms 20352 20353# Symbols that must always be exported. 20354include_expsyms=$lt_include_expsyms 20355 20356# Commands necessary for linking programs (against libraries) with templates. 20357prelink_cmds=$lt_prelink_cmds 20358 20359# Commands necessary for finishing linking programs. 20360postlink_cmds=$lt_postlink_cmds 20361 20362# Specify filename containing input files. 20363file_list_spec=$lt_file_list_spec 20364 20365# How to hardcode a shared library path into an executable. 20366hardcode_action=$hardcode_action 20367 20368# The directories searched by this compiler when creating a shared library. 20369compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 20370 20371# Dependencies to place before and after the objects being linked to 20372# create a shared library. 20373predep_objects=$lt_predep_objects 20374postdep_objects=$lt_postdep_objects 20375predeps=$lt_predeps 20376postdeps=$lt_postdeps 20377 20378# The library search path used internally by the compiler when linking 20379# a shared library. 20380compiler_lib_search_path=$lt_compiler_lib_search_path 20381 20382# ### END LIBTOOL CONFIG 20383 20384_LT_EOF 20385 20386 cat <<'_LT_EOF' >> "$cfgfile" 20387 20388# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 20389 20390# func_munge_path_list VARIABLE PATH 20391# ----------------------------------- 20392# VARIABLE is name of variable containing _space_ separated list of 20393# directories to be munged by the contents of PATH, which is string 20394# having a format: 20395# "DIR[:DIR]:" 20396# string "DIR[ DIR]" will be prepended to VARIABLE 20397# ":DIR[:DIR]" 20398# string "DIR[ DIR]" will be appended to VARIABLE 20399# "DIRP[:DIRP]::[DIRA:]DIRA" 20400# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 20401# "DIRA[ DIRA]" will be appended to VARIABLE 20402# "DIR[:DIR]" 20403# VARIABLE will be replaced by "DIR[ DIR]" 20404func_munge_path_list () 20405{ 20406 case x$2 in 20407 x) 20408 ;; 20409 *:) 20410 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 20411 ;; 20412 x:*) 20413 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 20414 ;; 20415 *::*) 20416 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 20417 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 20418 ;; 20419 *) 20420 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 20421 ;; 20422 esac 20423} 20424 20425 20426# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 20427func_cc_basename () 20428{ 20429 for cc_temp in $*""; do 20430 case $cc_temp in 20431 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20432 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20433 \-*) ;; 20434 *) break;; 20435 esac 20436 done 20437 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20438} 20439 20440 20441# ### END FUNCTIONS SHARED WITH CONFIGURE 20442 20443_LT_EOF 20444 20445 case $host_os in 20446 aix3*) 20447 cat <<\_LT_EOF >> "$cfgfile" 20448# AIX sometimes has problems with the GCC collect2 program. For some 20449# reason, if we set the COLLECT_NAMES environment variable, the problems 20450# vanish in a puff of smoke. 20451if test set != "${COLLECT_NAMES+set}"; then 20452 COLLECT_NAMES= 20453 export COLLECT_NAMES 20454fi 20455_LT_EOF 20456 ;; 20457 esac 20458 20459 20460ltmain=$ac_aux_dir/ltmain.sh 20461 20462 20463 # We use sed instead of cat because bash on DJGPP gets confused if 20464 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20465 # text mode, it properly converts lines to CR/LF. This bash problem 20466 # is reportedly fixed, but why not run on old versions too? 20467 sed '$q' "$ltmain" >> "$cfgfile" \ 20468 || (rm -f "$cfgfile"; exit 1) 20469 20470 mv -f "$cfgfile" "$ofile" || 20471 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20472 chmod +x "$ofile" 20473 20474 20475 cat <<_LT_EOF >> "$ofile" 20476 20477# ### BEGIN LIBTOOL TAG CONFIG: CXX 20478 20479# The linker used to build libraries. 20480LD=$lt_LD_CXX 20481 20482# How to create reloadable object files. 20483reload_flag=$lt_reload_flag_CXX 20484reload_cmds=$lt_reload_cmds_CXX 20485 20486# Commands used to build an old-style archive. 20487old_archive_cmds=$lt_old_archive_cmds_CXX 20488 20489# A language specific compiler. 20490CC=$lt_compiler_CXX 20491 20492# Is the compiler the GNU compiler? 20493with_gcc=$GCC_CXX 20494 20495# Compiler flag to turn off builtin functions. 20496no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 20497 20498# Additional compiler flags for building library objects. 20499pic_flag=$lt_lt_prog_compiler_pic_CXX 20500 20501# How to pass a linker flag through the compiler. 20502wl=$lt_lt_prog_compiler_wl_CXX 20503 20504# Compiler flag to prevent dynamic linking. 20505link_static_flag=$lt_lt_prog_compiler_static_CXX 20506 20507# Does compiler simultaneously support -c and -o options? 20508compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 20509 20510# Whether or not to add -lc for building shared libraries. 20511build_libtool_need_lc=$archive_cmds_need_lc_CXX 20512 20513# Whether or not to disallow shared libs when runtime libs are static. 20514allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 20515 20516# Compiler flag to allow reflexive dlopens. 20517export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 20518 20519# Compiler flag to generate shared objects directly from archives. 20520whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 20521 20522# Whether the compiler copes with passing no objects directly. 20523compiler_needs_object=$lt_compiler_needs_object_CXX 20524 20525# Create an old-style archive from a shared archive. 20526old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 20527 20528# Create a temporary old-style archive to link instead of a shared archive. 20529old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 20530 20531# Commands used to build a shared archive. 20532archive_cmds=$lt_archive_cmds_CXX 20533archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 20534 20535# Commands used to build a loadable module if different from building 20536# a shared archive. 20537module_cmds=$lt_module_cmds_CXX 20538module_expsym_cmds=$lt_module_expsym_cmds_CXX 20539 20540# Whether we are building with GNU ld or not. 20541with_gnu_ld=$lt_with_gnu_ld_CXX 20542 20543# Flag that allows shared libraries with undefined symbols to be built. 20544allow_undefined_flag=$lt_allow_undefined_flag_CXX 20545 20546# Flag that enforces no undefined symbols. 20547no_undefined_flag=$lt_no_undefined_flag_CXX 20548 20549# Flag to hardcode \$libdir into a binary during linking. 20550# This must work even if \$libdir does not exist 20551hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 20552 20553# Whether we need a single "-rpath" flag with a separated argument. 20554hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 20555 20556# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20557# DIR into the resulting binary. 20558hardcode_direct=$hardcode_direct_CXX 20559 20560# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20561# DIR into the resulting binary and the resulting library dependency is 20562# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20563# library is relocated. 20564hardcode_direct_absolute=$hardcode_direct_absolute_CXX 20565 20566# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20567# into the resulting binary. 20568hardcode_minus_L=$hardcode_minus_L_CXX 20569 20570# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20571# into the resulting binary. 20572hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 20573 20574# Set to "yes" if building a shared library automatically hardcodes DIR 20575# into the library and all subsequent libraries and executables linked 20576# against it. 20577hardcode_automatic=$hardcode_automatic_CXX 20578 20579# Set to yes if linker adds runtime paths of dependent libraries 20580# to runtime path list. 20581inherit_rpath=$inherit_rpath_CXX 20582 20583# Whether libtool must link a program against all its dependency libraries. 20584link_all_deplibs=$link_all_deplibs_CXX 20585 20586# Set to "yes" if exported symbols are required. 20587always_export_symbols=$always_export_symbols_CXX 20588 20589# The commands to list exported symbols. 20590export_symbols_cmds=$lt_export_symbols_cmds_CXX 20591 20592# Symbols that should not be listed in the preloaded symbols. 20593exclude_expsyms=$lt_exclude_expsyms_CXX 20594 20595# Symbols that must always be exported. 20596include_expsyms=$lt_include_expsyms_CXX 20597 20598# Commands necessary for linking programs (against libraries) with templates. 20599prelink_cmds=$lt_prelink_cmds_CXX 20600 20601# Commands necessary for finishing linking programs. 20602postlink_cmds=$lt_postlink_cmds_CXX 20603 20604# Specify filename containing input files. 20605file_list_spec=$lt_file_list_spec_CXX 20606 20607# How to hardcode a shared library path into an executable. 20608hardcode_action=$hardcode_action_CXX 20609 20610# The directories searched by this compiler when creating a shared library. 20611compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 20612 20613# Dependencies to place before and after the objects being linked to 20614# create a shared library. 20615predep_objects=$lt_predep_objects_CXX 20616postdep_objects=$lt_postdep_objects_CXX 20617predeps=$lt_predeps_CXX 20618postdeps=$lt_postdeps_CXX 20619 20620# The library search path used internally by the compiler when linking 20621# a shared library. 20622compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 20623 20624# ### END LIBTOOL TAG CONFIG: CXX 20625_LT_EOF 20626 20627 ;; 20628 20629 esac 20630done # for ac_tag 20631 20632 20633as_fn_exit 0 20634_ACEOF 20635ac_clean_files=$ac_clean_files_save 20636 20637test $ac_write_fail = 0 || 20638 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20639 20640 20641# configure is writing to config.log, and then calls config.status. 20642# config.status does its own redirection, appending to config.log. 20643# Unfortunately, on DOS this fails, as config.log is still kept open 20644# by configure, so config.status won't be able to write to it; its 20645# output is simply discarded. So we exec the FD to /dev/null, 20646# effectively closing config.log, so it can be properly (re)opened and 20647# appended to by config.status. When coming back to configure, we 20648# need to make the FD available again. 20649if test "$no_create" != yes; then 20650 ac_cs_success=: 20651 ac_config_status_args= 20652 test "$silent" = yes && 20653 ac_config_status_args="$ac_config_status_args --quiet" 20654 exec 5>/dev/null 20655 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20656 exec 5>>config.log 20657 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20658 # would make configure fail if this is the last instruction. 20659 $ac_cs_success || as_fn_exit 1 20660fi 20661if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20663$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20664fi 20665 20666