1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.66 for courier 0.65.3. 4# 5# Report bugs to <courier-users@lists.sourceforge.net>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176 177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 PATH=/empty FPATH=/empty; export PATH FPATH 182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 184test \$(( 1 + 1 )) = 2 || exit 1" 185 if (eval "$as_required") 2>/dev/null; then : 186 as_have_required=yes 187else 188 as_have_required=no 189fi 190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 191 192else 193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 194as_found=false 195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 196do 197 IFS=$as_save_IFS 198 test -z "$as_dir" && as_dir=. 199 as_found=: 200 case $as_dir in #( 201 /*) 202 for as_base in sh bash ksh sh5; do 203 # Try only shells that exist, to save several forks. 204 as_shell=$as_dir/$as_base 205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 207 CONFIG_SHELL=$as_shell as_have_required=yes 208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 209 break 2 210fi 211fi 212 done;; 213 esac 214 as_found=false 215done 216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 218 CONFIG_SHELL=$SHELL as_have_required=yes 219fi; } 220IFS=$as_save_IFS 221 222 223 if test "x$CONFIG_SHELL" != x; then : 224 # We cannot yet assume a decent shell, so we have to provide a 225 # neutralization value for shells without unset; and this also 226 # works around shells that cannot unset nonexistent variables. 227 BASH_ENV=/dev/null 228 ENV=/dev/null 229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 230 export CONFIG_SHELL 231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242$0: courier-users@lists.sourceforge.net about your system, 243$0: including any error possibly output before this 244$0: message. Then install a modern shell, or manually run 245$0: the script under such a shell if you do have one." 246 fi 247 exit 1 248fi 249fi 250fi 251SHELL=${CONFIG_SHELL-/bin/sh} 252export SHELL 253# Unset more variables known to interfere with behavior of common tools. 254CLICOLOR_FORCE= GREP_OPTIONS= 255unset CLICOLOR_FORCE GREP_OPTIONS 256 257## --------------------- ## 258## M4sh Shell Functions. ## 259## --------------------- ## 260# as_fn_unset VAR 261# --------------- 262# Portably unset VAR. 263as_fn_unset () 264{ 265 { eval $1=; unset $1;} 266} 267as_unset=as_fn_unset 268 269# as_fn_set_status STATUS 270# ----------------------- 271# Set $? to STATUS, without forking. 272as_fn_set_status () 273{ 274 return $1 275} # as_fn_set_status 276 277# as_fn_exit STATUS 278# ----------------- 279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 280as_fn_exit () 281{ 282 set +e 283 as_fn_set_status $1 284 exit $1 285} # as_fn_exit 286 287# as_fn_mkdir_p 288# ------------- 289# Create "$as_dir" as a directory, including parents if necessary. 290as_fn_mkdir_p () 291{ 292 293 case $as_dir in #( 294 -*) as_dir=./$as_dir;; 295 esac 296 test -d "$as_dir" || eval $as_mkdir_p || { 297 as_dirs= 298 while :; do 299 case $as_dir in #( 300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 301 *) as_qdir=$as_dir;; 302 esac 303 as_dirs="'$as_qdir' $as_dirs" 304 as_dir=`$as_dirname -- "$as_dir" || 305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 306 X"$as_dir" : 'X\(//\)[^/]' \| \ 307 X"$as_dir" : 'X\(//\)$' \| \ 308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 309$as_echo X"$as_dir" | 310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\/\)[^/].*/{ 315 s//\1/ 316 q 317 } 318 /^X\(\/\/\)$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\).*/{ 323 s//\1/ 324 q 325 } 326 s/.*/./; q'` 327 test -d "$as_dir" && break 328 done 329 test -z "$as_dirs" || eval "mkdir $as_dirs" 330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 331 332 333} # as_fn_mkdir_p 334# as_fn_append VAR VALUE 335# ---------------------- 336# Append the text in VALUE to the end of the definition contained in VAR. Take 337# advantage of any shell optimizations that allow amortized linear growth over 338# repeated appends, instead of the typical quadratic growth present in naive 339# implementations. 340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 341 eval 'as_fn_append () 342 { 343 eval $1+=\$2 344 }' 345else 346 as_fn_append () 347 { 348 eval $1=\$$1\$2 349 } 350fi # as_fn_append 351 352# as_fn_arith ARG... 353# ------------------ 354# Perform arithmetic evaluation on the ARGs, and store the result in the 355# global $as_val. Take advantage of shells that can avoid forks. The arguments 356# must be portable across $(()) and expr. 357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 358 eval 'as_fn_arith () 359 { 360 as_val=$(( $* )) 361 }' 362else 363 as_fn_arith () 364 { 365 as_val=`expr "$@" || test $? -eq 1` 366 } 367fi # as_fn_arith 368 369 370# as_fn_error STATUS ERROR [LINENO LOG_FD] 371# ---------------------------------------- 372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 374# script with STATUS, using 1 if that was 0. 375as_fn_error () 376{ 377 as_status=$1; test $as_status -eq 0 && as_status=1 378 if test "$4"; then 379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 381 fi 382 $as_echo "$as_me: error: $2" >&2 383 as_fn_exit $as_status 384} # as_fn_error 385 386if expr a : '\(a\)' >/dev/null 2>&1 && 387 test "X`expr 00001 : '.*\(...\)'`" = X001; then 388 as_expr=expr 389else 390 as_expr=false 391fi 392 393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 394 as_basename=basename 395else 396 as_basename=false 397fi 398 399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 400 as_dirname=dirname 401else 402 as_dirname=false 403fi 404 405as_me=`$as_basename -- "$0" || 406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 407 X"$0" : 'X\(//\)$' \| \ 408 X"$0" : 'X\(/\)' \| . 2>/dev/null || 409$as_echo X/"$0" | 410 sed '/^.*\/\([^/][^/]*\)\/*$/{ 411 s//\1/ 412 q 413 } 414 /^X\/\(\/\/\)$/{ 415 s//\1/ 416 q 417 } 418 /^X\/\(\/\).*/{ 419 s//\1/ 420 q 421 } 422 s/.*/./; q'` 423 424# Avoid depending upon Character Ranges. 425as_cr_letters='abcdefghijklmnopqrstuvwxyz' 426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 427as_cr_Letters=$as_cr_letters$as_cr_LETTERS 428as_cr_digits='0123456789' 429as_cr_alnum=$as_cr_Letters$as_cr_digits 430 431 432 as_lineno_1=$LINENO as_lineno_1a=$LINENO 433 as_lineno_2=$LINENO as_lineno_2a=$LINENO 434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 437 sed -n ' 438 p 439 /[$]LINENO/= 440 ' <$as_myself | 441 sed ' 442 s/[$]LINENO.*/&-/ 443 t lineno 444 b 445 :lineno 446 N 447 :loop 448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 449 t loop 450 s/-\n.*// 451 ' >$as_me.lineno && 452 chmod +x "$as_me.lineno" || 453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 454 455 # Don't try to exec as it changes $[0], causing all sort of problems 456 # (the dirname of $[0] is not the place where we might find the 457 # original and so on. Autoconf is especially sensitive to this). 458 . "./$as_me.lineno" 459 # Exit status is that of the last command. 460 exit 461} 462 463ECHO_C= ECHO_N= ECHO_T= 464case `echo -n x` in #((((( 465-n*) 466 case `echo 'xy\c'` in 467 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 468 xy) ECHO_C='\c';; 469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 470 ECHO_T=' ';; 471 esac;; 472*) 473 ECHO_N='-n';; 474esac 475 476rm -f conf$$ conf$$.exe conf$$.file 477if test -d conf$$.dir; then 478 rm -f conf$$.dir/conf$$.file 479else 480 rm -f conf$$.dir 481 mkdir conf$$.dir 2>/dev/null 482fi 483if (echo >conf$$.file) 2>/dev/null; then 484 if ln -s conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s='ln -s' 486 # ... but there are two gotchas: 487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 489 # In both cases, we have to default to `cp -p'. 490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 491 as_ln_s='cp -p' 492 elif ln conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s=ln 494 else 495 as_ln_s='cp -p' 496 fi 497else 498 as_ln_s='cp -p' 499fi 500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 501rmdir conf$$.dir 2>/dev/null 502 503if mkdir -p . 2>/dev/null; then 504 as_mkdir_p='mkdir -p "$as_dir"' 505else 506 test -d ./-p && rmdir ./-p 507 as_mkdir_p=false 508fi 509 510if test -x / >/dev/null 2>&1; then 511 as_test_x='test -x' 512else 513 if ls -dL / >/dev/null 2>&1; then 514 as_ls_L_option=L 515 else 516 as_ls_L_option= 517 fi 518 as_test_x=' 519 eval sh -c '\'' 520 if test -d "$1"; then 521 test -d "$1/."; 522 else 523 case $1 in #( 524 -*)set "./$1";; 525 esac; 526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 527 ???[sx]*):;;*)false;;esac;fi 528 '\'' sh 529 ' 530fi 531as_executable_p=$as_test_x 532 533# Sed expression to map a string onto a valid CPP name. 534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 535 536# Sed expression to map a string onto a valid variable name. 537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 538 539SHELL=${CONFIG_SHELL-/bin/sh} 540 541 542test -n "$DJDIR" || exec 7<&0 </dev/null 543exec 6>&1 544 545# Name of the host. 546# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 547# so uname gets run too. 548ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 549 550# 551# Initializations. 552# 553ac_default_prefix=/usr/local 554ac_clean_files= 555ac_config_libobj_dir=. 556LIBOBJS= 557cross_compiling=no 558subdirs= 559MFLAGS= 560MAKEFLAGS= 561 562# Identity of this package. 563PACKAGE_NAME='courier' 564PACKAGE_TARNAME='courier' 565PACKAGE_VERSION='0.65.3' 566PACKAGE_STRING='courier 0.65.3' 567PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' 568PACKAGE_URL='' 569 570ac_unique_file="courier/courier.c" 571# Factoring default headers for most tests. 572ac_includes_default="\ 573#include <stdio.h> 574#ifdef HAVE_SYS_TYPES_H 575# include <sys/types.h> 576#endif 577#ifdef HAVE_SYS_STAT_H 578# include <sys/stat.h> 579#endif 580#ifdef STDC_HEADERS 581# include <stdlib.h> 582# include <stddef.h> 583#else 584# ifdef HAVE_STDLIB_H 585# include <stdlib.h> 586# endif 587#endif 588#ifdef HAVE_STRING_H 589# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 590# include <memory.h> 591# endif 592# include <string.h> 593#endif 594#ifdef HAVE_STRINGS_H 595# include <strings.h> 596#endif 597#ifdef HAVE_INTTYPES_H 598# include <inttypes.h> 599#endif 600#ifdef HAVE_STDINT_H 601# include <stdint.h> 602#endif 603#ifdef HAVE_UNISTD_H 604# include <unistd.h> 605#endif" 606 607enable_option_checking=no 608ac_subst_vars='am__EXEEXT_FALSE 609am__EXEEXT_TRUE 610LTLIBOBJS 611LIBOBJS 612subdirs 613REPOSITORY 614GPG 615mailgid 616mailuid 617mailgroup 618mailuser 619dblibrary 620LIBGDBM 621LIBDB 622USE_DB 623USE_GDBM 624DBSUBDIR 625COURIERAUTHCONFIG 626SETENV 627SYSCONFTOOL 628SYSCONFTOOL_PERL 629CXXCPP 630am__fastdepCXX_FALSE 631am__fastdepCXX_TRUE 632CXXDEPMODE 633ac_ct_CXX 634CXXFLAGS 635CXX 636CPP 637OTOOL64 638OTOOL 639LIPO 640NMEDIT 641DSYMUTIL 642RANLIB 643AR 644OBJDUMP 645LN_S 646NM 647ac_ct_DUMPBIN 648DUMPBIN 649LD 650FGREP 651EGREP 652GREP 653SED 654host_os 655host_vendor 656host_cpu 657host 658build_os 659build_vendor 660build_cpu 661build 662LIBTOOL 663am__fastdepCC_FALSE 664am__fastdepCC_TRUE 665CCDEPMODE 666AMDEPBACKSLASH 667AMDEP_FALSE 668AMDEP_TRUE 669am__quote 670am__include 671DEPDIR 672OBJEXT 673EXEEXT 674ac_ct_CC 675CPPFLAGS 676LDFLAGS 677CFLAGS 678CC 679am__untar 680am__tar 681AMTAR 682am__leading_dot 683SET_MAKE 684AWK 685mkdir_p 686MKDIR_P 687INSTALL_STRIP_PROGRAM 688STRIP 689install_sh 690MAKEINFO 691AUTOHEADER 692AUTOMAKE 693AUTOCONF 694ACLOCAL 695VERSION 696PACKAGE 697CYGPATH_W 698am__isrc 699INSTALL_DATA 700INSTALL_SCRIPT 701INSTALL_PROGRAM 702target_alias 703host_alias 704build_alias 705LIBS 706ECHO_T 707ECHO_N 708ECHO_C 709DEFS 710mandir 711localedir 712libdir 713psdir 714pdfdir 715dvidir 716htmldir 717infodir 718docdir 719oldincludedir 720includedir 721localstatedir 722sharedstatedir 723sysconfdir 724datadir 725datarootdir 726libexecdir 727sbindir 728bindir 729program_transform_name 730prefix 731exec_prefix 732PACKAGE_URL 733PACKAGE_BUGREPORT 734PACKAGE_STRING 735PACKAGE_VERSION 736PACKAGE_TARNAME 737PACKAGE_NAME 738PATH_SEPARATOR 739SHELL' 740ac_subst_files='' 741ac_user_opts=' 742enable_option_checking 743enable_dependency_tracking 744enable_shared 745enable_static 746with_pic 747enable_fast_install 748with_gnu_ld 749enable_libtool_lock 750enable_root_check 751with_certsdir 752with_makedatprog 753with_piddir 754with_package 755with_courierlogger 756with_db 757with_mailuser 758with_mailgroup 759with_mailuid 760with_mailgid 761enable_trusted_groups 762with_formdata 763enable_utf7_folder_encoding 764enable_unicode 765with_webadmindir 766with_repository 767' 768 ac_precious_vars='build_alias 769host_alias 770target_alias 771CC 772CFLAGS 773LDFLAGS 774LIBS 775CPPFLAGS 776CPP 777CXX 778CXXFLAGS 779CCC 780CXXCPP' 781ac_subdirs_all='afx gdbmobj bdbobj cgi http11 numlib soxwrap md5 sha1 libhmac random128 unicode rfc822 rfc1035 rfc2045 liblock maildir waitlib threadlib makedat tcpd rootcerts imap maildrop ldapaddressbook gpglib pcp webmail webadmin courier' 782 783# Initialize some variables set by options. 784ac_init_help= 785ac_init_version=false 786ac_unrecognized_opts= 787ac_unrecognized_sep= 788# The variables have the same names as the options, with 789# dashes changed to underlines. 790cache_file=/dev/null 791exec_prefix=NONE 792no_create= 793no_recursion= 794prefix=NONE 795program_prefix=NONE 796program_suffix=NONE 797program_transform_name=s,x,x, 798silent= 799site= 800srcdir= 801verbose= 802x_includes=NONE 803x_libraries=NONE 804 805# Installation directory options. 806# These are left unexpanded so users can "make install exec_prefix=/foo" 807# and all the variables that are supposed to be based on exec_prefix 808# by default will actually change. 809# Use braces instead of parens because sh, perl, etc. also accept them. 810# (The list follows the same order as the GNU Coding Standards.) 811bindir='${exec_prefix}/bin' 812sbindir='${exec_prefix}/sbin' 813libexecdir='${exec_prefix}/libexec' 814datarootdir='${prefix}/share' 815datadir='${datarootdir}' 816sysconfdir='${prefix}/etc' 817sharedstatedir='${prefix}/com' 818localstatedir='${prefix}/var' 819includedir='${prefix}/include' 820oldincludedir='/usr/include' 821docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 822infodir='${datarootdir}/info' 823htmldir='${docdir}' 824dvidir='${docdir}' 825pdfdir='${docdir}' 826psdir='${docdir}' 827libdir='${exec_prefix}/lib' 828localedir='${datarootdir}/locale' 829mandir='${datarootdir}/man' 830 831ac_prev= 832ac_dashdash= 833for ac_option 834do 835 # If the previous option needs an argument, assign it. 836 if test -n "$ac_prev"; then 837 eval $ac_prev=\$ac_option 838 ac_prev= 839 continue 840 fi 841 842 case $ac_option in 843 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 844 *) ac_optarg=yes ;; 845 esac 846 847 # Accept the important Cygnus configure options, so we can diagnose typos. 848 849 case $ac_dashdash$ac_option in 850 --) 851 ac_dashdash=yes ;; 852 853 -bindir | --bindir | --bindi | --bind | --bin | --bi) 854 ac_prev=bindir ;; 855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 856 bindir=$ac_optarg ;; 857 858 -build | --build | --buil | --bui | --bu) 859 ac_prev=build_alias ;; 860 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 861 build_alias=$ac_optarg ;; 862 863 -cache-file | --cache-file | --cache-fil | --cache-fi \ 864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 865 ac_prev=cache_file ;; 866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 868 cache_file=$ac_optarg ;; 869 870 --config-cache | -C) 871 cache_file=config.cache ;; 872 873 -datadir | --datadir | --datadi | --datad) 874 ac_prev=datadir ;; 875 -datadir=* | --datadir=* | --datadi=* | --datad=*) 876 datadir=$ac_optarg ;; 877 878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 879 | --dataroo | --dataro | --datar) 880 ac_prev=datarootdir ;; 881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 883 datarootdir=$ac_optarg ;; 884 885 -disable-* | --disable-*) 886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 887 # Reject names that are not valid shell variable names. 888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 889 as_fn_error $? "invalid feature name: $ac_useropt" 890 ac_useropt_orig=$ac_useropt 891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 892 case $ac_user_opts in 893 *" 894"enable_$ac_useropt" 895"*) ;; 896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 897 ac_unrecognized_sep=', ';; 898 esac 899 eval enable_$ac_useropt=no ;; 900 901 -docdir | --docdir | --docdi | --doc | --do) 902 ac_prev=docdir ;; 903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 904 docdir=$ac_optarg ;; 905 906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 907 ac_prev=dvidir ;; 908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 909 dvidir=$ac_optarg ;; 910 911 -enable-* | --enable-*) 912 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 913 # Reject names that are not valid shell variable names. 914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 915 as_fn_error $? "invalid feature name: $ac_useropt" 916 ac_useropt_orig=$ac_useropt 917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 918 case $ac_user_opts in 919 *" 920"enable_$ac_useropt" 921"*) ;; 922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 923 ac_unrecognized_sep=', ';; 924 esac 925 eval enable_$ac_useropt=\$ac_optarg ;; 926 927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 929 | --exec | --exe | --ex) 930 ac_prev=exec_prefix ;; 931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 933 | --exec=* | --exe=* | --ex=*) 934 exec_prefix=$ac_optarg ;; 935 936 -gas | --gas | --ga | --g) 937 # Obsolete; use --with-gas. 938 with_gas=yes ;; 939 940 -help | --help | --hel | --he | -h) 941 ac_init_help=long ;; 942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 943 ac_init_help=recursive ;; 944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 945 ac_init_help=short ;; 946 947 -host | --host | --hos | --ho) 948 ac_prev=host_alias ;; 949 -host=* | --host=* | --hos=* | --ho=*) 950 host_alias=$ac_optarg ;; 951 952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 953 ac_prev=htmldir ;; 954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 955 | --ht=*) 956 htmldir=$ac_optarg ;; 957 958 -includedir | --includedir | --includedi | --included | --include \ 959 | --includ | --inclu | --incl | --inc) 960 ac_prev=includedir ;; 961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 962 | --includ=* | --inclu=* | --incl=* | --inc=*) 963 includedir=$ac_optarg ;; 964 965 -infodir | --infodir | --infodi | --infod | --info | --inf) 966 ac_prev=infodir ;; 967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 968 infodir=$ac_optarg ;; 969 970 -libdir | --libdir | --libdi | --libd) 971 ac_prev=libdir ;; 972 -libdir=* | --libdir=* | --libdi=* | --libd=*) 973 libdir=$ac_optarg ;; 974 975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 976 | --libexe | --libex | --libe) 977 ac_prev=libexecdir ;; 978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 979 | --libexe=* | --libex=* | --libe=*) 980 libexecdir=$ac_optarg ;; 981 982 -localedir | --localedir | --localedi | --localed | --locale) 983 ac_prev=localedir ;; 984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 985 localedir=$ac_optarg ;; 986 987 -localstatedir | --localstatedir | --localstatedi | --localstated \ 988 | --localstate | --localstat | --localsta | --localst | --locals) 989 ac_prev=localstatedir ;; 990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 992 localstatedir=$ac_optarg ;; 993 994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 995 ac_prev=mandir ;; 996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 997 mandir=$ac_optarg ;; 998 999 -nfp | --nfp | --nf) 1000 # Obsolete; use --without-fp. 1001 with_fp=no ;; 1002 1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1004 | --no-cr | --no-c | -n) 1005 no_create=yes ;; 1006 1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1009 no_recursion=yes ;; 1010 1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1013 | --oldin | --oldi | --old | --ol | --o) 1014 ac_prev=oldincludedir ;; 1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1018 oldincludedir=$ac_optarg ;; 1019 1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1021 ac_prev=prefix ;; 1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1023 prefix=$ac_optarg ;; 1024 1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1026 | --program-pre | --program-pr | --program-p) 1027 ac_prev=program_prefix ;; 1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1030 program_prefix=$ac_optarg ;; 1031 1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1033 | --program-suf | --program-su | --program-s) 1034 ac_prev=program_suffix ;; 1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1037 program_suffix=$ac_optarg ;; 1038 1039 -program-transform-name | --program-transform-name \ 1040 | --program-transform-nam | --program-transform-na \ 1041 | --program-transform-n | --program-transform- \ 1042 | --program-transform | --program-transfor \ 1043 | --program-transfo | --program-transf \ 1044 | --program-trans | --program-tran \ 1045 | --progr-tra | --program-tr | --program-t) 1046 ac_prev=program_transform_name ;; 1047 -program-transform-name=* | --program-transform-name=* \ 1048 | --program-transform-nam=* | --program-transform-na=* \ 1049 | --program-transform-n=* | --program-transform-=* \ 1050 | --program-transform=* | --program-transfor=* \ 1051 | --program-transfo=* | --program-transf=* \ 1052 | --program-trans=* | --program-tran=* \ 1053 | --progr-tra=* | --program-tr=* | --program-t=*) 1054 program_transform_name=$ac_optarg ;; 1055 1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1057 ac_prev=pdfdir ;; 1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1059 pdfdir=$ac_optarg ;; 1060 1061 -psdir | --psdir | --psdi | --psd | --ps) 1062 ac_prev=psdir ;; 1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1064 psdir=$ac_optarg ;; 1065 1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1067 | -silent | --silent | --silen | --sile | --sil) 1068 silent=yes ;; 1069 1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1071 ac_prev=sbindir ;; 1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1073 | --sbi=* | --sb=*) 1074 sbindir=$ac_optarg ;; 1075 1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1078 | --sharedst | --shareds | --shared | --share | --shar \ 1079 | --sha | --sh) 1080 ac_prev=sharedstatedir ;; 1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1084 | --sha=* | --sh=*) 1085 sharedstatedir=$ac_optarg ;; 1086 1087 -site | --site | --sit) 1088 ac_prev=site ;; 1089 -site=* | --site=* | --sit=*) 1090 site=$ac_optarg ;; 1091 1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1093 ac_prev=srcdir ;; 1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1095 srcdir=$ac_optarg ;; 1096 1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1098 | --syscon | --sysco | --sysc | --sys | --sy) 1099 ac_prev=sysconfdir ;; 1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1102 sysconfdir=$ac_optarg ;; 1103 1104 -target | --target | --targe | --targ | --tar | --ta | --t) 1105 ac_prev=target_alias ;; 1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1107 target_alias=$ac_optarg ;; 1108 1109 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1110 verbose=yes ;; 1111 1112 -version | --version | --versio | --versi | --vers | -V) 1113 ac_init_version=: ;; 1114 1115 -with-* | --with-*) 1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1117 # Reject names that are not valid shell variable names. 1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1119 as_fn_error $? "invalid package name: $ac_useropt" 1120 ac_useropt_orig=$ac_useropt 1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1122 case $ac_user_opts in 1123 *" 1124"with_$ac_useropt" 1125"*) ;; 1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1127 ac_unrecognized_sep=', ';; 1128 esac 1129 eval with_$ac_useropt=\$ac_optarg ;; 1130 1131 -without-* | --without-*) 1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1133 # Reject names that are not valid shell variable names. 1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1135 as_fn_error $? "invalid package name: $ac_useropt" 1136 ac_useropt_orig=$ac_useropt 1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1138 case $ac_user_opts in 1139 *" 1140"with_$ac_useropt" 1141"*) ;; 1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1143 ac_unrecognized_sep=', ';; 1144 esac 1145 eval with_$ac_useropt=no ;; 1146 1147 --x) 1148 # Obsolete; use --with-x. 1149 with_x=yes ;; 1150 1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1152 | --x-incl | --x-inc | --x-in | --x-i) 1153 ac_prev=x_includes ;; 1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1156 x_includes=$ac_optarg ;; 1157 1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1160 ac_prev=x_libraries ;; 1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1163 x_libraries=$ac_optarg ;; 1164 1165 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1166Try \`$0 --help' for more information" 1167 ;; 1168 1169 *=*) 1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1171 # Reject names that are not valid shell variable names. 1172 case $ac_envvar in #( 1173 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1174 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1175 esac 1176 eval $ac_envvar=\$ac_optarg 1177 export $ac_envvar ;; 1178 1179 *) 1180 # FIXME: should be removed in autoconf 3.0. 1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1184 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1185 ;; 1186 1187 esac 1188done 1189 1190if test -n "$ac_prev"; then 1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1192 as_fn_error $? "missing argument to $ac_option" 1193fi 1194 1195if test -n "$ac_unrecognized_opts"; then 1196 case $enable_option_checking in 1197 no) ;; 1198 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1200 esac 1201fi 1202 1203# Check all directory arguments for consistency. 1204for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1205 datadir sysconfdir sharedstatedir localstatedir includedir \ 1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1207 libdir localedir mandir 1208do 1209 eval ac_val=\$$ac_var 1210 # Remove trailing slashes. 1211 case $ac_val in 1212 */ ) 1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1214 eval $ac_var=\$ac_val;; 1215 esac 1216 # Be sure to have absolute directory names. 1217 case $ac_val in 1218 [\\/$]* | ?:[\\/]* ) continue;; 1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1220 esac 1221 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1222done 1223 1224# There might be people who depend on the old broken behavior: `$host' 1225# used to hold the argument of --host etc. 1226# FIXME: To remove some day. 1227build=$build_alias 1228host=$host_alias 1229target=$target_alias 1230 1231# FIXME: To remove some day. 1232if test "x$host_alias" != x; then 1233 if test "x$build_alias" = x; then 1234 cross_compiling=maybe 1235 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1236 If a cross compiler is detected then cross compile mode will be used" >&2 1237 elif test "x$build_alias" != "x$host_alias"; then 1238 cross_compiling=yes 1239 fi 1240fi 1241 1242ac_tool_prefix= 1243test -n "$host_alias" && ac_tool_prefix=$host_alias- 1244 1245test "$silent" = yes && exec 6>/dev/null 1246 1247 1248ac_pwd=`pwd` && test -n "$ac_pwd" && 1249ac_ls_di=`ls -di .` && 1250ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1251 as_fn_error $? "working directory cannot be determined" 1252test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1253 as_fn_error $? "pwd does not report name of working directory" 1254 1255 1256# Find the source files, if location was not specified. 1257if test -z "$srcdir"; then 1258 ac_srcdir_defaulted=yes 1259 # Try the directory containing this script, then the parent directory. 1260 ac_confdir=`$as_dirname -- "$as_myself" || 1261$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1262 X"$as_myself" : 'X\(//\)[^/]' \| \ 1263 X"$as_myself" : 'X\(//\)$' \| \ 1264 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1265$as_echo X"$as_myself" | 1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1267 s//\1/ 1268 q 1269 } 1270 /^X\(\/\/\)[^/].*/{ 1271 s//\1/ 1272 q 1273 } 1274 /^X\(\/\/\)$/{ 1275 s//\1/ 1276 q 1277 } 1278 /^X\(\/\).*/{ 1279 s//\1/ 1280 q 1281 } 1282 s/.*/./; q'` 1283 srcdir=$ac_confdir 1284 if test ! -r "$srcdir/$ac_unique_file"; then 1285 srcdir=.. 1286 fi 1287else 1288 ac_srcdir_defaulted=no 1289fi 1290if test ! -r "$srcdir/$ac_unique_file"; then 1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1292 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1293fi 1294ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1295ac_abs_confdir=`( 1296 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1297 pwd)` 1298# When building in place, set srcdir=. 1299if test "$ac_abs_confdir" = "$ac_pwd"; then 1300 srcdir=. 1301fi 1302# Remove unnecessary trailing slashes from srcdir. 1303# Double slashes in file names in object file debugging info 1304# mess up M-x gdb in Emacs. 1305case $srcdir in 1306*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1307esac 1308for ac_var in $ac_precious_vars; do 1309 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1310 eval ac_env_${ac_var}_value=\$${ac_var} 1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1312 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1313done 1314 1315# 1316# Report the --help message. 1317# 1318if test "$ac_init_help" = "long"; then 1319 # Omit some internal or obsolete options to make the list less imposing. 1320 # This message is too long to be a string in the A/UX 3.1 sh. 1321 cat <<_ACEOF 1322\`configure' configures courier 0.65.3 to adapt to many kinds of systems. 1323 1324Usage: $0 [OPTION]... [VAR=VALUE]... 1325 1326To assign environment variables (e.g., CC, CFLAGS...), specify them as 1327VAR=VALUE. See below for descriptions of some of the useful variables. 1328 1329Defaults for the options are specified in brackets. 1330 1331Configuration: 1332 -h, --help display this help and exit 1333 --help=short display options specific to this package 1334 --help=recursive display the short help of all the included packages 1335 -V, --version display version information and exit 1336 -q, --quiet, --silent do not print \`checking ...' messages 1337 --cache-file=FILE cache test results in FILE [disabled] 1338 -C, --config-cache alias for \`--cache-file=config.cache' 1339 -n, --no-create do not create output files 1340 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1341 1342Installation directories: 1343 --prefix=PREFIX install architecture-independent files in PREFIX 1344 [$ac_default_prefix] 1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1346 [PREFIX] 1347 1348By default, \`make install' will install all the files in 1349\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1350an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1351for instance \`--prefix=\$HOME'. 1352 1353For better control, use the options below. 1354 1355Fine tuning of the installation directories: 1356 --bindir=DIR user executables [EPREFIX/bin] 1357 --sbindir=DIR system admin executables [EPREFIX/sbin] 1358 --libexecdir=DIR program executables [EPREFIX/libexec] 1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1362 --libdir=DIR object code libraries [EPREFIX/lib] 1363 --includedir=DIR C header files [PREFIX/include] 1364 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1367 --infodir=DIR info documentation [DATAROOTDIR/info] 1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1369 --mandir=DIR man documentation [DATAROOTDIR/man] 1370 --docdir=DIR documentation root [DATAROOTDIR/doc/courier] 1371 --htmldir=DIR html documentation [DOCDIR] 1372 --dvidir=DIR dvi documentation [DOCDIR] 1373 --pdfdir=DIR pdf documentation [DOCDIR] 1374 --psdir=DIR ps documentation [DOCDIR] 1375_ACEOF 1376 1377 cat <<\_ACEOF 1378 1379Program names: 1380 --program-prefix=PREFIX prepend PREFIX to installed program names 1381 --program-suffix=SUFFIX append SUFFIX to installed program names 1382 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1383 1384System types: 1385 --build=BUILD configure for building on BUILD [guessed] 1386 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1387_ACEOF 1388fi 1389 1390if test -n "$ac_init_help"; then 1391 case $ac_init_help in 1392 short | recursive ) echo "Configuration of courier 0.65.3:";; 1393 esac 1394 cat <<\_ACEOF 1395 1396Optional Features: 1397 --disable-option-checking ignore unrecognized --enable/--with options 1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1400 --disable-dependency-tracking speeds up one-time build 1401 --enable-dependency-tracking do not reject slow dependency extractors 1402 --enable-shared[=PKGS] build shared libraries [default=yes] 1403 --enable-static[=PKGS] build static libraries [default=yes] 1404 --enable-fast-install[=PKGS] 1405 optimize for fast installation [default=yes] 1406 --disable-libtool-lock avoid locking (might break parallel builds) 1407 --disable-root-check Allow build as root (make check will fail) 1408 1409 1410Optional Packages: 1411 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1412 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1413 --with-pic try to use only PIC/non-PIC objects [default=use 1414 both] 1415 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1416 --with-certsdir Directory where certs are created 1417 1418 --with-db=gdbm Use the GDBM library. 1419 --with-db=db Use the libdb.a library. 1420 1421 1422Some influential environment variables: 1423 CC C compiler command 1424 CFLAGS C compiler flags 1425 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1426 nonstandard directory <lib dir> 1427 LIBS libraries to pass to the linker, e.g. -l<library> 1428 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1429 you have headers in a nonstandard directory <include dir> 1430 CPP C preprocessor 1431 CXX C++ compiler command 1432 CXXFLAGS C++ compiler flags 1433 CXXCPP C++ preprocessor 1434 1435Use these variables to override the choices made by `configure' or to help 1436it to find libraries and programs with nonstandard names/locations. 1437 1438Report bugs to <courier-users@lists.sourceforge.net>. 1439_ACEOF 1440ac_status=$? 1441fi 1442 1443if test "$ac_init_help" = "recursive"; then 1444 # If there are subdirs, report their specific --help. 1445 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1446 test -d "$ac_dir" || 1447 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1448 continue 1449 ac_builddir=. 1450 1451case "$ac_dir" in 1452.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1453*) 1454 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1455 # A ".." for each directory in $ac_dir_suffix. 1456 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1457 case $ac_top_builddir_sub in 1458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1460 esac ;; 1461esac 1462ac_abs_top_builddir=$ac_pwd 1463ac_abs_builddir=$ac_pwd$ac_dir_suffix 1464# for backward compatibility: 1465ac_top_builddir=$ac_top_build_prefix 1466 1467case $srcdir in 1468 .) # We are building in place. 1469 ac_srcdir=. 1470 ac_top_srcdir=$ac_top_builddir_sub 1471 ac_abs_top_srcdir=$ac_pwd ;; 1472 [\\/]* | ?:[\\/]* ) # Absolute name. 1473 ac_srcdir=$srcdir$ac_dir_suffix; 1474 ac_top_srcdir=$srcdir 1475 ac_abs_top_srcdir=$srcdir ;; 1476 *) # Relative name. 1477 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1478 ac_top_srcdir=$ac_top_build_prefix$srcdir 1479 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1480esac 1481ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1482 1483 cd "$ac_dir" || { ac_status=$?; continue; } 1484 # Check for guested configure. 1485 if test -f "$ac_srcdir/configure.gnu"; then 1486 echo && 1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1488 elif test -f "$ac_srcdir/configure"; then 1489 echo && 1490 $SHELL "$ac_srcdir/configure" --help=recursive 1491 else 1492 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1493 fi || ac_status=$? 1494 cd "$ac_pwd" || { ac_status=$?; break; } 1495 done 1496fi 1497 1498test -n "$ac_init_help" && exit $ac_status 1499if $ac_init_version; then 1500 cat <<\_ACEOF 1501courier configure 0.65.3 1502generated by GNU Autoconf 2.66 1503 1504Copyright (C) 2010 Free Software Foundation, Inc. 1505This configure script is free software; the Free Software Foundation 1506gives unlimited permission to copy, distribute and modify it. 1507_ACEOF 1508 exit 1509fi 1510 1511## ------------------------ ## 1512## Autoconf initialization. ## 1513## ------------------------ ## 1514 1515# ac_fn_c_try_compile LINENO 1516# -------------------------- 1517# Try to compile conftest.$ac_ext, and return whether this succeeded. 1518ac_fn_c_try_compile () 1519{ 1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1521 rm -f conftest.$ac_objext 1522 if { { ac_try="$ac_compile" 1523case "(($ac_try" in 1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1525 *) ac_try_echo=$ac_try;; 1526esac 1527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1528$as_echo "$ac_try_echo"; } >&5 1529 (eval "$ac_compile") 2>conftest.err 1530 ac_status=$? 1531 if test -s conftest.err; then 1532 grep -v '^ *+' conftest.err >conftest.er1 1533 cat conftest.er1 >&5 1534 mv -f conftest.er1 conftest.err 1535 fi 1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1537 test $ac_status = 0; } && { 1538 test -z "$ac_c_werror_flag" || 1539 test ! -s conftest.err 1540 } && test -s conftest.$ac_objext; then : 1541 ac_retval=0 1542else 1543 $as_echo "$as_me: failed program was:" >&5 1544sed 's/^/| /' conftest.$ac_ext >&5 1545 1546 ac_retval=1 1547fi 1548 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1549 as_fn_set_status $ac_retval 1550 1551} # ac_fn_c_try_compile 1552 1553# ac_fn_c_try_link LINENO 1554# ----------------------- 1555# Try to link conftest.$ac_ext, and return whether this succeeded. 1556ac_fn_c_try_link () 1557{ 1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1559 rm -f conftest.$ac_objext conftest$ac_exeext 1560 if { { ac_try="$ac_link" 1561case "(($ac_try" in 1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1563 *) ac_try_echo=$ac_try;; 1564esac 1565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1566$as_echo "$ac_try_echo"; } >&5 1567 (eval "$ac_link") 2>conftest.err 1568 ac_status=$? 1569 if test -s conftest.err; then 1570 grep -v '^ *+' conftest.err >conftest.er1 1571 cat conftest.er1 >&5 1572 mv -f conftest.er1 conftest.err 1573 fi 1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1575 test $ac_status = 0; } && { 1576 test -z "$ac_c_werror_flag" || 1577 test ! -s conftest.err 1578 } && test -s conftest$ac_exeext && { 1579 test "$cross_compiling" = yes || 1580 $as_test_x conftest$ac_exeext 1581 }; then : 1582 ac_retval=0 1583else 1584 $as_echo "$as_me: failed program was:" >&5 1585sed 's/^/| /' conftest.$ac_ext >&5 1586 1587 ac_retval=1 1588fi 1589 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1590 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1591 # interfere with the next link command; also delete a directory that is 1592 # left behind by Apple's compiler. We do this before executing the actions. 1593 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1594 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1595 as_fn_set_status $ac_retval 1596 1597} # ac_fn_c_try_link 1598 1599# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1600# ------------------------------------------------------- 1601# Tests whether HEADER exists and can be compiled using the include files in 1602# INCLUDES, setting the cache variable VAR accordingly. 1603ac_fn_c_check_header_compile () 1604{ 1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1607$as_echo_n "checking for $2... " >&6; } 1608if eval "test \"\${$3+set}\"" = set; then : 1609 $as_echo_n "(cached) " >&6 1610else 1611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1612/* end confdefs.h. */ 1613$4 1614#include <$2> 1615_ACEOF 1616if ac_fn_c_try_compile "$LINENO"; then : 1617 eval "$3=yes" 1618else 1619 eval "$3=no" 1620fi 1621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1622fi 1623eval ac_res=\$$3 1624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1625$as_echo "$ac_res" >&6; } 1626 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1627 1628} # ac_fn_c_check_header_compile 1629 1630# ac_fn_c_try_cpp LINENO 1631# ---------------------- 1632# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1633ac_fn_c_try_cpp () 1634{ 1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1636 if { { ac_try="$ac_cpp conftest.$ac_ext" 1637case "(($ac_try" in 1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1639 *) ac_try_echo=$ac_try;; 1640esac 1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1642$as_echo "$ac_try_echo"; } >&5 1643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1644 ac_status=$? 1645 if test -s conftest.err; then 1646 grep -v '^ *+' conftest.err >conftest.er1 1647 cat conftest.er1 >&5 1648 mv -f conftest.er1 conftest.err 1649 fi 1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1651 test $ac_status = 0; } >/dev/null && { 1652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1653 test ! -s conftest.err 1654 }; then : 1655 ac_retval=0 1656else 1657 $as_echo "$as_me: failed program was:" >&5 1658sed 's/^/| /' conftest.$ac_ext >&5 1659 1660 ac_retval=1 1661fi 1662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1663 as_fn_set_status $ac_retval 1664 1665} # ac_fn_c_try_cpp 1666 1667# ac_fn_c_try_run LINENO 1668# ---------------------- 1669# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1670# that executables *can* be run. 1671ac_fn_c_try_run () 1672{ 1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1674 if { { ac_try="$ac_link" 1675case "(($ac_try" in 1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1677 *) ac_try_echo=$ac_try;; 1678esac 1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1680$as_echo "$ac_try_echo"; } >&5 1681 (eval "$ac_link") 2>&5 1682 ac_status=$? 1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1684 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1685 { { case "(($ac_try" in 1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1687 *) ac_try_echo=$ac_try;; 1688esac 1689eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1690$as_echo "$ac_try_echo"; } >&5 1691 (eval "$ac_try") 2>&5 1692 ac_status=$? 1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1694 test $ac_status = 0; }; }; then : 1695 ac_retval=0 1696else 1697 $as_echo "$as_me: program exited with status $ac_status" >&5 1698 $as_echo "$as_me: failed program was:" >&5 1699sed 's/^/| /' conftest.$ac_ext >&5 1700 1701 ac_retval=$ac_status 1702fi 1703 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1704 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1705 as_fn_set_status $ac_retval 1706 1707} # ac_fn_c_try_run 1708 1709# ac_fn_c_check_func LINENO FUNC VAR 1710# ---------------------------------- 1711# Tests whether FUNC exists, setting the cache variable VAR accordingly 1712ac_fn_c_check_func () 1713{ 1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1716$as_echo_n "checking for $2... " >&6; } 1717if eval "test \"\${$3+set}\"" = set; then : 1718 $as_echo_n "(cached) " >&6 1719else 1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1721/* end confdefs.h. */ 1722/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1723 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1724#define $2 innocuous_$2 1725 1726/* System header to define __stub macros and hopefully few prototypes, 1727 which can conflict with char $2 (); below. 1728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1729 <limits.h> exists even on freestanding compilers. */ 1730 1731#ifdef __STDC__ 1732# include <limits.h> 1733#else 1734# include <assert.h> 1735#endif 1736 1737#undef $2 1738 1739/* Override any GCC internal prototype to avoid an error. 1740 Use char because int might match the return type of a GCC 1741 builtin and then its argument prototype would still apply. */ 1742#ifdef __cplusplus 1743extern "C" 1744#endif 1745char $2 (); 1746/* The GNU C library defines this for functions which it implements 1747 to always fail with ENOSYS. Some functions are actually named 1748 something starting with __ and the normal name is an alias. */ 1749#if defined __stub_$2 || defined __stub___$2 1750choke me 1751#endif 1752 1753int 1754main () 1755{ 1756return $2 (); 1757 ; 1758 return 0; 1759} 1760_ACEOF 1761if ac_fn_c_try_link "$LINENO"; then : 1762 eval "$3=yes" 1763else 1764 eval "$3=no" 1765fi 1766rm -f core conftest.err conftest.$ac_objext \ 1767 conftest$ac_exeext conftest.$ac_ext 1768fi 1769eval ac_res=\$$3 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1771$as_echo "$ac_res" >&6; } 1772 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1773 1774} # ac_fn_c_check_func 1775 1776# ac_fn_cxx_try_compile LINENO 1777# ---------------------------- 1778# Try to compile conftest.$ac_ext, and return whether this succeeded. 1779ac_fn_cxx_try_compile () 1780{ 1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1782 rm -f conftest.$ac_objext 1783 if { { ac_try="$ac_compile" 1784case "(($ac_try" in 1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1786 *) ac_try_echo=$ac_try;; 1787esac 1788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1789$as_echo "$ac_try_echo"; } >&5 1790 (eval "$ac_compile") 2>conftest.err 1791 ac_status=$? 1792 if test -s conftest.err; then 1793 grep -v '^ *+' conftest.err >conftest.er1 1794 cat conftest.er1 >&5 1795 mv -f conftest.er1 conftest.err 1796 fi 1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1798 test $ac_status = 0; } && { 1799 test -z "$ac_cxx_werror_flag" || 1800 test ! -s conftest.err 1801 } && test -s conftest.$ac_objext; then : 1802 ac_retval=0 1803else 1804 $as_echo "$as_me: failed program was:" >&5 1805sed 's/^/| /' conftest.$ac_ext >&5 1806 1807 ac_retval=1 1808fi 1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1810 as_fn_set_status $ac_retval 1811 1812} # ac_fn_cxx_try_compile 1813 1814# ac_fn_cxx_try_cpp LINENO 1815# ------------------------ 1816# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1817ac_fn_cxx_try_cpp () 1818{ 1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1820 if { { ac_try="$ac_cpp conftest.$ac_ext" 1821case "(($ac_try" in 1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1823 *) ac_try_echo=$ac_try;; 1824esac 1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1826$as_echo "$ac_try_echo"; } >&5 1827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1828 ac_status=$? 1829 if test -s conftest.err; then 1830 grep -v '^ *+' conftest.err >conftest.er1 1831 cat conftest.er1 >&5 1832 mv -f conftest.er1 conftest.err 1833 fi 1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1835 test $ac_status = 0; } >/dev/null && { 1836 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1837 test ! -s conftest.err 1838 }; then : 1839 ac_retval=0 1840else 1841 $as_echo "$as_me: failed program was:" >&5 1842sed 's/^/| /' conftest.$ac_ext >&5 1843 1844 ac_retval=1 1845fi 1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1847 as_fn_set_status $ac_retval 1848 1849} # ac_fn_cxx_try_cpp 1850 1851# ac_fn_cxx_try_link LINENO 1852# ------------------------- 1853# Try to link conftest.$ac_ext, and return whether this succeeded. 1854ac_fn_cxx_try_link () 1855{ 1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1857 rm -f conftest.$ac_objext conftest$ac_exeext 1858 if { { ac_try="$ac_link" 1859case "(($ac_try" in 1860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1861 *) ac_try_echo=$ac_try;; 1862esac 1863eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1864$as_echo "$ac_try_echo"; } >&5 1865 (eval "$ac_link") 2>conftest.err 1866 ac_status=$? 1867 if test -s conftest.err; then 1868 grep -v '^ *+' conftest.err >conftest.er1 1869 cat conftest.er1 >&5 1870 mv -f conftest.er1 conftest.err 1871 fi 1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1873 test $ac_status = 0; } && { 1874 test -z "$ac_cxx_werror_flag" || 1875 test ! -s conftest.err 1876 } && test -s conftest$ac_exeext && { 1877 test "$cross_compiling" = yes || 1878 $as_test_x conftest$ac_exeext 1879 }; then : 1880 ac_retval=0 1881else 1882 $as_echo "$as_me: failed program was:" >&5 1883sed 's/^/| /' conftest.$ac_ext >&5 1884 1885 ac_retval=1 1886fi 1887 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1888 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1889 # interfere with the next link command; also delete a directory that is 1890 # left behind by Apple's compiler. We do this before executing the actions. 1891 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1893 as_fn_set_status $ac_retval 1894 1895} # ac_fn_cxx_try_link 1896 1897# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1898# ------------------------------------------------------- 1899# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1900# the include files in INCLUDES and setting the cache variable VAR 1901# accordingly. 1902ac_fn_c_check_header_mongrel () 1903{ 1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1905 if eval "test \"\${$3+set}\"" = set; then : 1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1907$as_echo_n "checking for $2... " >&6; } 1908if eval "test \"\${$3+set}\"" = set; then : 1909 $as_echo_n "(cached) " >&6 1910fi 1911eval ac_res=\$$3 1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1913$as_echo "$ac_res" >&6; } 1914else 1915 # Is the header compilable? 1916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1917$as_echo_n "checking $2 usability... " >&6; } 1918cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1919/* end confdefs.h. */ 1920$4 1921#include <$2> 1922_ACEOF 1923if ac_fn_c_try_compile "$LINENO"; then : 1924 ac_header_compiler=yes 1925else 1926 ac_header_compiler=no 1927fi 1928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1930$as_echo "$ac_header_compiler" >&6; } 1931 1932# Is the header present? 1933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1934$as_echo_n "checking $2 presence... " >&6; } 1935cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1936/* end confdefs.h. */ 1937#include <$2> 1938_ACEOF 1939if ac_fn_c_try_cpp "$LINENO"; then : 1940 ac_header_preproc=yes 1941else 1942 ac_header_preproc=no 1943fi 1944rm -f conftest.err conftest.$ac_ext 1945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1946$as_echo "$ac_header_preproc" >&6; } 1947 1948# So? What about this header? 1949case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1950 yes:no: ) 1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1952$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1954$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1955 ;; 1956 no:yes:* ) 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1958$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1960$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1962$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1964$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1966$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1967( $as_echo "## -------------------------------------------------- ## 1968## Report this to courier-users@lists.sourceforge.net ## 1969## -------------------------------------------------- ##" 1970 ) | sed "s/^/$as_me: WARNING: /" >&2 1971 ;; 1972esac 1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1974$as_echo_n "checking for $2... " >&6; } 1975if eval "test \"\${$3+set}\"" = set; then : 1976 $as_echo_n "(cached) " >&6 1977else 1978 eval "$3=\$ac_header_compiler" 1979fi 1980eval ac_res=\$$3 1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1982$as_echo "$ac_res" >&6; } 1983fi 1984 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1985 1986} # ac_fn_c_check_header_mongrel 1987cat >config.log <<_ACEOF 1988This file contains any messages produced by compilers while 1989running configure, to aid debugging if configure makes a mistake. 1990 1991It was created by courier $as_me 0.65.3, which was 1992generated by GNU Autoconf 2.66. Invocation command line was 1993 1994 $ $0 $@ 1995 1996_ACEOF 1997exec 5>>config.log 1998{ 1999cat <<_ASUNAME 2000## --------- ## 2001## Platform. ## 2002## --------- ## 2003 2004hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2005uname -m = `(uname -m) 2>/dev/null || echo unknown` 2006uname -r = `(uname -r) 2>/dev/null || echo unknown` 2007uname -s = `(uname -s) 2>/dev/null || echo unknown` 2008uname -v = `(uname -v) 2>/dev/null || echo unknown` 2009 2010/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2011/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2012 2013/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2014/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2015/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2016/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2017/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2018/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2019/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2020 2021_ASUNAME 2022 2023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2024for as_dir in $PATH 2025do 2026 IFS=$as_save_IFS 2027 test -z "$as_dir" && as_dir=. 2028 $as_echo "PATH: $as_dir" 2029 done 2030IFS=$as_save_IFS 2031 2032} >&5 2033 2034cat >&5 <<_ACEOF 2035 2036 2037## ----------- ## 2038## Core tests. ## 2039## ----------- ## 2040 2041_ACEOF 2042 2043 2044# Keep a trace of the command line. 2045# Strip out --no-create and --no-recursion so they do not pile up. 2046# Strip out --silent because we don't want to record it for future runs. 2047# Also quote any args containing shell meta-characters. 2048# Make two passes to allow for proper duplicate-argument suppression. 2049ac_configure_args= 2050ac_configure_args0= 2051ac_configure_args1= 2052ac_must_keep_next=false 2053for ac_pass in 1 2 2054do 2055 for ac_arg 2056 do 2057 case $ac_arg in 2058 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2060 | -silent | --silent | --silen | --sile | --sil) 2061 continue ;; 2062 *\'*) 2063 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2064 esac 2065 case $ac_pass in 2066 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2067 2) 2068 as_fn_append ac_configure_args1 " '$ac_arg'" 2069 if test $ac_must_keep_next = true; then 2070 ac_must_keep_next=false # Got value, back to normal. 2071 else 2072 case $ac_arg in 2073 *=* | --config-cache | -C | -disable-* | --disable-* \ 2074 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2075 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2076 | -with-* | --with-* | -without-* | --without-* | --x) 2077 case "$ac_configure_args0 " in 2078 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2079 esac 2080 ;; 2081 -* ) ac_must_keep_next=true ;; 2082 esac 2083 fi 2084 as_fn_append ac_configure_args " '$ac_arg'" 2085 ;; 2086 esac 2087 done 2088done 2089{ ac_configure_args0=; unset ac_configure_args0;} 2090{ ac_configure_args1=; unset ac_configure_args1;} 2091 2092# When interrupted or exit'd, cleanup temporary files, and complete 2093# config.log. We remove comments because anyway the quotes in there 2094# would cause problems or look ugly. 2095# WARNING: Use '\'' to represent an apostrophe within the trap. 2096# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2097trap 'exit_status=$? 2098 # Save into config.log some information that might help in debugging. 2099 { 2100 echo 2101 2102 $as_echo "## ---------------- ## 2103## Cache variables. ## 2104## ---------------- ##" 2105 echo 2106 # The following way of writing the cache mishandles newlines in values, 2107( 2108 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2109 eval ac_val=\$$ac_var 2110 case $ac_val in #( 2111 *${as_nl}*) 2112 case $ac_var in #( 2113 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2114$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2115 esac 2116 case $ac_var in #( 2117 _ | IFS | as_nl) ;; #( 2118 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2119 *) { eval $ac_var=; unset $ac_var;} ;; 2120 esac ;; 2121 esac 2122 done 2123 (set) 2>&1 | 2124 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2125 *${as_nl}ac_space=\ *) 2126 sed -n \ 2127 "s/'\''/'\''\\\\'\'''\''/g; 2128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2129 ;; #( 2130 *) 2131 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2132 ;; 2133 esac | 2134 sort 2135) 2136 echo 2137 2138 $as_echo "## ----------------- ## 2139## Output variables. ## 2140## ----------------- ##" 2141 echo 2142 for ac_var in $ac_subst_vars 2143 do 2144 eval ac_val=\$$ac_var 2145 case $ac_val in 2146 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2147 esac 2148 $as_echo "$ac_var='\''$ac_val'\''" 2149 done | sort 2150 echo 2151 2152 if test -n "$ac_subst_files"; then 2153 $as_echo "## ------------------- ## 2154## File substitutions. ## 2155## ------------------- ##" 2156 echo 2157 for ac_var in $ac_subst_files 2158 do 2159 eval ac_val=\$$ac_var 2160 case $ac_val in 2161 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2162 esac 2163 $as_echo "$ac_var='\''$ac_val'\''" 2164 done | sort 2165 echo 2166 fi 2167 2168 if test -s confdefs.h; then 2169 $as_echo "## ----------- ## 2170## confdefs.h. ## 2171## ----------- ##" 2172 echo 2173 cat confdefs.h 2174 echo 2175 fi 2176 test "$ac_signal" != 0 && 2177 $as_echo "$as_me: caught signal $ac_signal" 2178 $as_echo "$as_me: exit $exit_status" 2179 } >&5 2180 rm -f core *.core core.conftest.* && 2181 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2182 exit $exit_status 2183' 0 2184for ac_signal in 1 2 13 15; do 2185 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2186done 2187ac_signal=0 2188 2189# confdefs.h avoids OS command line length limits that DEFS can exceed. 2190rm -f -r conftest* confdefs.h 2191 2192$as_echo "/* confdefs.h */" > confdefs.h 2193 2194# Predefined preprocessor variables. 2195 2196cat >>confdefs.h <<_ACEOF 2197#define PACKAGE_NAME "$PACKAGE_NAME" 2198_ACEOF 2199 2200cat >>confdefs.h <<_ACEOF 2201#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2202_ACEOF 2203 2204cat >>confdefs.h <<_ACEOF 2205#define PACKAGE_VERSION "$PACKAGE_VERSION" 2206_ACEOF 2207 2208cat >>confdefs.h <<_ACEOF 2209#define PACKAGE_STRING "$PACKAGE_STRING" 2210_ACEOF 2211 2212cat >>confdefs.h <<_ACEOF 2213#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2214_ACEOF 2215 2216cat >>confdefs.h <<_ACEOF 2217#define PACKAGE_URL "$PACKAGE_URL" 2218_ACEOF 2219 2220 2221# Let the site file select an alternate cache file if it wants to. 2222# Prefer an explicitly selected file to automatically selected ones. 2223ac_site_file1=NONE 2224ac_site_file2=NONE 2225if test -n "$CONFIG_SITE"; then 2226 # We do not want a PATH search for config.site. 2227 case $CONFIG_SITE in #(( 2228 -*) ac_site_file1=./$CONFIG_SITE;; 2229 */*) ac_site_file1=$CONFIG_SITE;; 2230 *) ac_site_file1=./$CONFIG_SITE;; 2231 esac 2232elif test "x$prefix" != xNONE; then 2233 ac_site_file1=$prefix/share/config.site 2234 ac_site_file2=$prefix/etc/config.site 2235else 2236 ac_site_file1=$ac_default_prefix/share/config.site 2237 ac_site_file2=$ac_default_prefix/etc/config.site 2238fi 2239for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2240do 2241 test "x$ac_site_file" = xNONE && continue 2242 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2243 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2244$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2245 sed 's/^/| /' "$ac_site_file" >&5 2246 . "$ac_site_file" \ 2247 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2249as_fn_error $? "failed to load site script $ac_site_file 2250See \`config.log' for more details" "$LINENO" 5; } 2251 fi 2252done 2253 2254if test -r "$cache_file"; then 2255 # Some versions of bash will fail to source /dev/null (special files 2256 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2257 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2258 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2259$as_echo "$as_me: loading cache $cache_file" >&6;} 2260 case $cache_file in 2261 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2262 *) . "./$cache_file";; 2263 esac 2264 fi 2265else 2266 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2267$as_echo "$as_me: creating cache $cache_file" >&6;} 2268 >$cache_file 2269fi 2270 2271# Check that the precious variables saved in the cache have kept the same 2272# value. 2273ac_cache_corrupted=false 2274for ac_var in $ac_precious_vars; do 2275 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2276 eval ac_new_set=\$ac_env_${ac_var}_set 2277 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2278 eval ac_new_val=\$ac_env_${ac_var}_value 2279 case $ac_old_set,$ac_new_set in 2280 set,) 2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2282$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2283 ac_cache_corrupted=: ;; 2284 ,set) 2285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2286$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2287 ac_cache_corrupted=: ;; 2288 ,);; 2289 *) 2290 if test "x$ac_old_val" != "x$ac_new_val"; then 2291 # differences in whitespace do not lead to failure. 2292 ac_old_val_w=`echo x $ac_old_val` 2293 ac_new_val_w=`echo x $ac_new_val` 2294 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2296$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2297 ac_cache_corrupted=: 2298 else 2299 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2300$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2301 eval $ac_var=\$ac_old_val 2302 fi 2303 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2304$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2305 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2306$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2307 fi;; 2308 esac 2309 # Pass precious variables to config.status. 2310 if test "$ac_new_set" = set; then 2311 case $ac_new_val in 2312 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2313 *) ac_arg=$ac_var=$ac_new_val ;; 2314 esac 2315 case " $ac_configure_args " in 2316 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2317 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2318 esac 2319 fi 2320done 2321if $ac_cache_corrupted; then 2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2323$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2325$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2326 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2327fi 2328## -------------------- ## 2329## Main body of script. ## 2330## -------------------- ## 2331 2332ac_ext=c 2333ac_cpp='$CPP $CPPFLAGS' 2334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2336ac_compiler_gnu=$ac_cv_c_compiler_gnu 2337 2338 2339version=$PACKAGE_VERSION 2340 2341am__api_version='1.11' 2342 2343ac_aux_dir= 2344for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2345 if test -f "$ac_dir/install-sh"; then 2346 ac_aux_dir=$ac_dir 2347 ac_install_sh="$ac_aux_dir/install-sh -c" 2348 break 2349 elif test -f "$ac_dir/install.sh"; then 2350 ac_aux_dir=$ac_dir 2351 ac_install_sh="$ac_aux_dir/install.sh -c" 2352 break 2353 elif test -f "$ac_dir/shtool"; then 2354 ac_aux_dir=$ac_dir 2355 ac_install_sh="$ac_aux_dir/shtool install -c" 2356 break 2357 fi 2358done 2359if test -z "$ac_aux_dir"; then 2360 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2361fi 2362 2363# These three variables are undocumented and unsupported, 2364# and are intended to be withdrawn in a future Autoconf release. 2365# They can cause serious problems if a builder's source tree is in a directory 2366# whose full name contains unusual characters. 2367ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2368ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2369ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2370 2371 2372# Find a good install program. We prefer a C program (faster), 2373# so one script is as good as another. But avoid the broken or 2374# incompatible versions: 2375# SysV /etc/install, /usr/sbin/install 2376# SunOS /usr/etc/install 2377# IRIX /sbin/install 2378# AIX /bin/install 2379# AmigaOS /C/install, which installs bootblocks on floppy discs 2380# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2381# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2382# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2383# OS/2's system install, which has a completely different semantic 2384# ./install, which can be erroneously created by make from ./install.sh. 2385# Reject install programs that cannot install multiple files. 2386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2387$as_echo_n "checking for a BSD-compatible install... " >&6; } 2388if test -z "$INSTALL"; then 2389if test "${ac_cv_path_install+set}" = set; then : 2390 $as_echo_n "(cached) " >&6 2391else 2392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2393for as_dir in $PATH 2394do 2395 IFS=$as_save_IFS 2396 test -z "$as_dir" && as_dir=. 2397 # Account for people who put trailing slashes in PATH elements. 2398case $as_dir/ in #(( 2399 ./ | .// | /[cC]/* | \ 2400 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2401 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2402 /usr/ucb/* ) ;; 2403 *) 2404 # OSF1 and SCO ODT 3.0 have their own names for install. 2405 # Don't use installbsd from OSF since it installs stuff as root 2406 # by default. 2407 for ac_prog in ginstall scoinst install; do 2408 for ac_exec_ext in '' $ac_executable_extensions; do 2409 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2410 if test $ac_prog = install && 2411 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2412 # AIX install. It has an incompatible calling convention. 2413 : 2414 elif test $ac_prog = install && 2415 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2416 # program-specific install script used by HP pwplus--don't use. 2417 : 2418 else 2419 rm -rf conftest.one conftest.two conftest.dir 2420 echo one > conftest.one 2421 echo two > conftest.two 2422 mkdir conftest.dir 2423 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2424 test -s conftest.one && test -s conftest.two && 2425 test -s conftest.dir/conftest.one && 2426 test -s conftest.dir/conftest.two 2427 then 2428 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2429 break 3 2430 fi 2431 fi 2432 fi 2433 done 2434 done 2435 ;; 2436esac 2437 2438 done 2439IFS=$as_save_IFS 2440 2441rm -rf conftest.one conftest.two conftest.dir 2442 2443fi 2444 if test "${ac_cv_path_install+set}" = set; then 2445 INSTALL=$ac_cv_path_install 2446 else 2447 # As a last resort, use the slow shell script. Don't cache a 2448 # value for INSTALL within a source directory, because that will 2449 # break other packages using the cache if that directory is 2450 # removed, or if the value is a relative name. 2451 INSTALL=$ac_install_sh 2452 fi 2453fi 2454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2455$as_echo "$INSTALL" >&6; } 2456 2457# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2458# It thinks the first close brace ends the variable substitution. 2459test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2460 2461test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2462 2463test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2464 2465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2466$as_echo_n "checking whether build environment is sane... " >&6; } 2467# Just in case 2468sleep 1 2469echo timestamp > conftest.file 2470# Reject unsafe characters in $srcdir or the absolute working directory 2471# name. Accept space and tab only in the latter. 2472am_lf=' 2473' 2474case `pwd` in 2475 *[\\\"\#\$\&\'\`$am_lf]*) 2476 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2477esac 2478case $srcdir in 2479 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2480 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2481esac 2482 2483# Do `set' in a subshell so we don't clobber the current shell's 2484# arguments. Must try -L first in case configure is actually a 2485# symlink; some systems play weird games with the mod time of symlinks 2486# (eg FreeBSD returns the mod time of the symlink's containing 2487# directory). 2488if ( 2489 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2490 if test "$*" = "X"; then 2491 # -L didn't work. 2492 set X `ls -t "$srcdir/configure" conftest.file` 2493 fi 2494 rm -f conftest.file 2495 if test "$*" != "X $srcdir/configure conftest.file" \ 2496 && test "$*" != "X conftest.file $srcdir/configure"; then 2497 2498 # If neither matched, then we have a broken ls. This can happen 2499 # if, for instance, CONFIG_SHELL is bash and it inherits a 2500 # broken ls alias from the environment. This has actually 2501 # happened. Such a system could not be considered "sane". 2502 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2503alias in your environment" "$LINENO" 5 2504 fi 2505 2506 test "$2" = conftest.file 2507 ) 2508then 2509 # Ok. 2510 : 2511else 2512 as_fn_error $? "newly created file is older than distributed files! 2513Check your system clock" "$LINENO" 5 2514fi 2515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2516$as_echo "yes" >&6; } 2517test "$program_prefix" != NONE && 2518 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2519# Use a double $ so make ignores it. 2520test "$program_suffix" != NONE && 2521 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2522# Double any \ or $. 2523# By default was `s,x,x', remove it if useless. 2524ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2525program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2526 2527# expand $ac_aux_dir to an absolute path 2528am_aux_dir=`cd $ac_aux_dir && pwd` 2529 2530if test x"${MISSING+set}" != xset; then 2531 case $am_aux_dir in 2532 *\ * | *\ *) 2533 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2534 *) 2535 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2536 esac 2537fi 2538# Use eval to expand $SHELL 2539if eval "$MISSING --run true"; then 2540 am_missing_run="$MISSING --run " 2541else 2542 am_missing_run= 2543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2544$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2545fi 2546 2547if test x"${install_sh}" != xset; then 2548 case $am_aux_dir in 2549 *\ * | *\ *) 2550 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2551 *) 2552 install_sh="\${SHELL} $am_aux_dir/install-sh" 2553 esac 2554fi 2555 2556# Installed binaries are usually stripped using `strip' when the user 2557# run `make install-strip'. However `strip' might not be the right 2558# tool to use in cross-compilation environments, therefore Automake 2559# will honor the `STRIP' environment variable to overrule this program. 2560if test "$cross_compiling" != no; then 2561 if test -n "$ac_tool_prefix"; then 2562 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2563set dummy ${ac_tool_prefix}strip; ac_word=$2 2564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2565$as_echo_n "checking for $ac_word... " >&6; } 2566if test "${ac_cv_prog_STRIP+set}" = set; then : 2567 $as_echo_n "(cached) " >&6 2568else 2569 if test -n "$STRIP"; then 2570 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2571else 2572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2573for as_dir in $PATH 2574do 2575 IFS=$as_save_IFS 2576 test -z "$as_dir" && as_dir=. 2577 for ac_exec_ext in '' $ac_executable_extensions; do 2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2579 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2581 break 2 2582 fi 2583done 2584 done 2585IFS=$as_save_IFS 2586 2587fi 2588fi 2589STRIP=$ac_cv_prog_STRIP 2590if test -n "$STRIP"; then 2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2592$as_echo "$STRIP" >&6; } 2593else 2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2595$as_echo "no" >&6; } 2596fi 2597 2598 2599fi 2600if test -z "$ac_cv_prog_STRIP"; then 2601 ac_ct_STRIP=$STRIP 2602 # Extract the first word of "strip", so it can be a program name with args. 2603set dummy strip; ac_word=$2 2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2605$as_echo_n "checking for $ac_word... " >&6; } 2606if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2607 $as_echo_n "(cached) " >&6 2608else 2609 if test -n "$ac_ct_STRIP"; then 2610 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2611else 2612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2613for as_dir in $PATH 2614do 2615 IFS=$as_save_IFS 2616 test -z "$as_dir" && as_dir=. 2617 for ac_exec_ext in '' $ac_executable_extensions; do 2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2619 ac_cv_prog_ac_ct_STRIP="strip" 2620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2621 break 2 2622 fi 2623done 2624 done 2625IFS=$as_save_IFS 2626 2627fi 2628fi 2629ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2630if test -n "$ac_ct_STRIP"; then 2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2632$as_echo "$ac_ct_STRIP" >&6; } 2633else 2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2635$as_echo "no" >&6; } 2636fi 2637 2638 if test "x$ac_ct_STRIP" = x; then 2639 STRIP=":" 2640 else 2641 case $cross_compiling:$ac_tool_warned in 2642yes:) 2643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2645ac_tool_warned=yes ;; 2646esac 2647 STRIP=$ac_ct_STRIP 2648 fi 2649else 2650 STRIP="$ac_cv_prog_STRIP" 2651fi 2652 2653fi 2654INSTALL_STRIP_PROGRAM="install -s -m 555 -s" 2655 2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2657$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2658if test -z "$MKDIR_P"; then 2659 if test "${ac_cv_path_mkdir+set}" = set; then : 2660 $as_echo_n "(cached) " >&6 2661else 2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2663for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2664do 2665 IFS=$as_save_IFS 2666 test -z "$as_dir" && as_dir=. 2667 for ac_prog in mkdir gmkdir; do 2668 for ac_exec_ext in '' $ac_executable_extensions; do 2669 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2670 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2671 'mkdir (GNU coreutils) '* | \ 2672 'mkdir (coreutils) '* | \ 2673 'mkdir (fileutils) '4.1*) 2674 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2675 break 3;; 2676 esac 2677 done 2678 done 2679 done 2680IFS=$as_save_IFS 2681 2682fi 2683 2684 test -d ./--version && rmdir ./--version 2685 if test "${ac_cv_path_mkdir+set}" = set; then 2686 MKDIR_P="$ac_cv_path_mkdir -p" 2687 else 2688 # As a last resort, use the slow shell script. Don't cache a 2689 # value for MKDIR_P within a source directory, because that will 2690 # break other packages using the cache if that directory is 2691 # removed, or if the value is a relative name. 2692 MKDIR_P="$ac_install_sh -d" 2693 fi 2694fi 2695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2696$as_echo "$MKDIR_P" >&6; } 2697 2698mkdir_p="$MKDIR_P" 2699case $mkdir_p in 2700 [\\/$]* | ?:[\\/]*) ;; 2701 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2702esac 2703 2704for ac_prog in gawk mawk nawk awk 2705do 2706 # Extract the first word of "$ac_prog", so it can be a program name with args. 2707set dummy $ac_prog; ac_word=$2 2708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2709$as_echo_n "checking for $ac_word... " >&6; } 2710if test "${ac_cv_prog_AWK+set}" = set; then : 2711 $as_echo_n "(cached) " >&6 2712else 2713 if test -n "$AWK"; then 2714 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2715else 2716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2717for as_dir in $PATH 2718do 2719 IFS=$as_save_IFS 2720 test -z "$as_dir" && as_dir=. 2721 for ac_exec_ext in '' $ac_executable_extensions; do 2722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2723 ac_cv_prog_AWK="$ac_prog" 2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2725 break 2 2726 fi 2727done 2728 done 2729IFS=$as_save_IFS 2730 2731fi 2732fi 2733AWK=$ac_cv_prog_AWK 2734if test -n "$AWK"; then 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2736$as_echo "$AWK" >&6; } 2737else 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2739$as_echo "no" >&6; } 2740fi 2741 2742 2743 test -n "$AWK" && break 2744done 2745 2746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2747$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2748set x ${MAKE-make} 2749ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2750if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 2751 $as_echo_n "(cached) " >&6 2752else 2753 cat >conftest.make <<\_ACEOF 2754SHELL = /bin/sh 2755all: 2756 @echo '@@@%%%=$(MAKE)=@@@%%%' 2757_ACEOF 2758# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2759case `${MAKE-make} -f conftest.make 2>/dev/null` in 2760 *@@@%%%=?*=@@@%%%*) 2761 eval ac_cv_prog_make_${ac_make}_set=yes;; 2762 *) 2763 eval ac_cv_prog_make_${ac_make}_set=no;; 2764esac 2765rm -f conftest.make 2766fi 2767if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2769$as_echo "yes" >&6; } 2770 SET_MAKE= 2771else 2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2773$as_echo "no" >&6; } 2774 SET_MAKE="MAKE=${MAKE-make}" 2775fi 2776 2777rm -rf .tst 2>/dev/null 2778mkdir .tst 2>/dev/null 2779if test -d .tst; then 2780 am__leading_dot=. 2781else 2782 am__leading_dot=_ 2783fi 2784rmdir .tst 2>/dev/null 2785 2786if test "`cd $srcdir && pwd`" != "`pwd`"; then 2787 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2788 # is not polluted with repeated "-I." 2789 am__isrc=' -I$(srcdir)' 2790 # test to see if srcdir already configured 2791 if test -f $srcdir/config.status; then 2792 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2793 fi 2794fi 2795 2796# test whether we have cygpath 2797if test -z "$CYGPATH_W"; then 2798 if (cygpath --version) >/dev/null 2>/dev/null; then 2799 CYGPATH_W='cygpath -w' 2800 else 2801 CYGPATH_W=echo 2802 fi 2803fi 2804 2805 2806# Define the identity of the package. 2807 PACKAGE='courier' 2808 VERSION='0.65.3' 2809 2810 2811cat >>confdefs.h <<_ACEOF 2812#define PACKAGE "$PACKAGE" 2813_ACEOF 2814 2815 2816cat >>confdefs.h <<_ACEOF 2817#define VERSION "$VERSION" 2818_ACEOF 2819 2820# Some tools Automake needs. 2821 2822ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2823 2824 2825AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2826 2827 2828AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2829 2830 2831AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2832 2833 2834MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2835 2836# We need awk for the "check" target. The system "awk" is bad on 2837# some platforms. 2838# Always define AMTAR for backward compatibility. 2839 2840AMTAR=${AMTAR-"${am_missing_run}tar"} 2841 2842am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2843 2844 2845 2846 2847 2848>confdefs.h # Kill PACKAGE_ macros. 2849 2850LPATH="$PATH:/usr/local/bin" 2851 2852ac_ext=c 2853ac_cpp='$CPP $CPPFLAGS' 2854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2856ac_compiler_gnu=$ac_cv_c_compiler_gnu 2857if test -n "$ac_tool_prefix"; then 2858 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2859set dummy ${ac_tool_prefix}gcc; ac_word=$2 2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2861$as_echo_n "checking for $ac_word... " >&6; } 2862if test "${ac_cv_prog_CC+set}" = set; then : 2863 $as_echo_n "(cached) " >&6 2864else 2865 if test -n "$CC"; then 2866 ac_cv_prog_CC="$CC" # Let the user override the test. 2867else 2868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2869for as_dir in $PATH 2870do 2871 IFS=$as_save_IFS 2872 test -z "$as_dir" && as_dir=. 2873 for ac_exec_ext in '' $ac_executable_extensions; do 2874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2875 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2877 break 2 2878 fi 2879done 2880 done 2881IFS=$as_save_IFS 2882 2883fi 2884fi 2885CC=$ac_cv_prog_CC 2886if test -n "$CC"; then 2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2888$as_echo "$CC" >&6; } 2889else 2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2891$as_echo "no" >&6; } 2892fi 2893 2894 2895fi 2896if test -z "$ac_cv_prog_CC"; then 2897 ac_ct_CC=$CC 2898 # Extract the first word of "gcc", so it can be a program name with args. 2899set dummy gcc; ac_word=$2 2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2901$as_echo_n "checking for $ac_word... " >&6; } 2902if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2903 $as_echo_n "(cached) " >&6 2904else 2905 if test -n "$ac_ct_CC"; then 2906 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2907else 2908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2909for as_dir in $PATH 2910do 2911 IFS=$as_save_IFS 2912 test -z "$as_dir" && as_dir=. 2913 for ac_exec_ext in '' $ac_executable_extensions; do 2914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2915 ac_cv_prog_ac_ct_CC="gcc" 2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2917 break 2 2918 fi 2919done 2920 done 2921IFS=$as_save_IFS 2922 2923fi 2924fi 2925ac_ct_CC=$ac_cv_prog_ac_ct_CC 2926if test -n "$ac_ct_CC"; then 2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2928$as_echo "$ac_ct_CC" >&6; } 2929else 2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2931$as_echo "no" >&6; } 2932fi 2933 2934 if test "x$ac_ct_CC" = x; then 2935 CC="" 2936 else 2937 case $cross_compiling:$ac_tool_warned in 2938yes:) 2939{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2940$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2941ac_tool_warned=yes ;; 2942esac 2943 CC=$ac_ct_CC 2944 fi 2945else 2946 CC="$ac_cv_prog_CC" 2947fi 2948 2949if test -z "$CC"; then 2950 if test -n "$ac_tool_prefix"; then 2951 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2952set dummy ${ac_tool_prefix}cc; ac_word=$2 2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2954$as_echo_n "checking for $ac_word... " >&6; } 2955if test "${ac_cv_prog_CC+set}" = set; then : 2956 $as_echo_n "(cached) " >&6 2957else 2958 if test -n "$CC"; then 2959 ac_cv_prog_CC="$CC" # Let the user override the test. 2960else 2961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2962for as_dir in $PATH 2963do 2964 IFS=$as_save_IFS 2965 test -z "$as_dir" && as_dir=. 2966 for ac_exec_ext in '' $ac_executable_extensions; do 2967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2968 ac_cv_prog_CC="${ac_tool_prefix}cc" 2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2970 break 2 2971 fi 2972done 2973 done 2974IFS=$as_save_IFS 2975 2976fi 2977fi 2978CC=$ac_cv_prog_CC 2979if test -n "$CC"; then 2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2981$as_echo "$CC" >&6; } 2982else 2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2984$as_echo "no" >&6; } 2985fi 2986 2987 2988 fi 2989fi 2990if test -z "$CC"; then 2991 # Extract the first word of "cc", so it can be a program name with args. 2992set dummy cc; ac_word=$2 2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2994$as_echo_n "checking for $ac_word... " >&6; } 2995if test "${ac_cv_prog_CC+set}" = set; then : 2996 $as_echo_n "(cached) " >&6 2997else 2998 if test -n "$CC"; then 2999 ac_cv_prog_CC="$CC" # Let the user override the test. 3000else 3001 ac_prog_rejected=no 3002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3003for as_dir in $PATH 3004do 3005 IFS=$as_save_IFS 3006 test -z "$as_dir" && as_dir=. 3007 for ac_exec_ext in '' $ac_executable_extensions; do 3008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3009 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3010 ac_prog_rejected=yes 3011 continue 3012 fi 3013 ac_cv_prog_CC="cc" 3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3015 break 2 3016 fi 3017done 3018 done 3019IFS=$as_save_IFS 3020 3021if test $ac_prog_rejected = yes; then 3022 # We found a bogon in the path, so make sure we never use it. 3023 set dummy $ac_cv_prog_CC 3024 shift 3025 if test $# != 0; then 3026 # We chose a different compiler from the bogus one. 3027 # However, it has the same basename, so the bogon will be chosen 3028 # first if we set CC to just the basename; use the full file name. 3029 shift 3030 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3031 fi 3032fi 3033fi 3034fi 3035CC=$ac_cv_prog_CC 3036if test -n "$CC"; then 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3038$as_echo "$CC" >&6; } 3039else 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3041$as_echo "no" >&6; } 3042fi 3043 3044 3045fi 3046if test -z "$CC"; then 3047 if test -n "$ac_tool_prefix"; then 3048 for ac_prog in cl.exe 3049 do 3050 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3051set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3053$as_echo_n "checking for $ac_word... " >&6; } 3054if test "${ac_cv_prog_CC+set}" = set; then : 3055 $as_echo_n "(cached) " >&6 3056else 3057 if test -n "$CC"; then 3058 ac_cv_prog_CC="$CC" # Let the user override the test. 3059else 3060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3061for as_dir in $PATH 3062do 3063 IFS=$as_save_IFS 3064 test -z "$as_dir" && as_dir=. 3065 for ac_exec_ext in '' $ac_executable_extensions; do 3066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3067 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3069 break 2 3070 fi 3071done 3072 done 3073IFS=$as_save_IFS 3074 3075fi 3076fi 3077CC=$ac_cv_prog_CC 3078if test -n "$CC"; then 3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3080$as_echo "$CC" >&6; } 3081else 3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3083$as_echo "no" >&6; } 3084fi 3085 3086 3087 test -n "$CC" && break 3088 done 3089fi 3090if test -z "$CC"; then 3091 ac_ct_CC=$CC 3092 for ac_prog in cl.exe 3093do 3094 # Extract the first word of "$ac_prog", so it can be a program name with args. 3095set dummy $ac_prog; ac_word=$2 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3097$as_echo_n "checking for $ac_word... " >&6; } 3098if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3099 $as_echo_n "(cached) " >&6 3100else 3101 if test -n "$ac_ct_CC"; then 3102 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3103else 3104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3105for as_dir in $PATH 3106do 3107 IFS=$as_save_IFS 3108 test -z "$as_dir" && as_dir=. 3109 for ac_exec_ext in '' $ac_executable_extensions; do 3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3111 ac_cv_prog_ac_ct_CC="$ac_prog" 3112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3113 break 2 3114 fi 3115done 3116 done 3117IFS=$as_save_IFS 3118 3119fi 3120fi 3121ac_ct_CC=$ac_cv_prog_ac_ct_CC 3122if test -n "$ac_ct_CC"; then 3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3124$as_echo "$ac_ct_CC" >&6; } 3125else 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3127$as_echo "no" >&6; } 3128fi 3129 3130 3131 test -n "$ac_ct_CC" && break 3132done 3133 3134 if test "x$ac_ct_CC" = x; then 3135 CC="" 3136 else 3137 case $cross_compiling:$ac_tool_warned in 3138yes:) 3139{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3141ac_tool_warned=yes ;; 3142esac 3143 CC=$ac_ct_CC 3144 fi 3145fi 3146 3147fi 3148 3149 3150test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3152as_fn_error $? "no acceptable C compiler found in \$PATH 3153See \`config.log' for more details" "$LINENO" 5; } 3154 3155# Provide some information about the compiler. 3156$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3157set X $ac_compile 3158ac_compiler=$2 3159for ac_option in --version -v -V -qversion; do 3160 { { ac_try="$ac_compiler $ac_option >&5" 3161case "(($ac_try" in 3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3163 *) ac_try_echo=$ac_try;; 3164esac 3165eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3166$as_echo "$ac_try_echo"; } >&5 3167 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3168 ac_status=$? 3169 if test -s conftest.err; then 3170 sed '10a\ 3171... rest of stderr output deleted ... 3172 10q' conftest.err >conftest.er1 3173 cat conftest.er1 >&5 3174 fi 3175 rm -f conftest.er1 conftest.err 3176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3177 test $ac_status = 0; } 3178done 3179 3180cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3181/* end confdefs.h. */ 3182 3183int 3184main () 3185{ 3186 3187 ; 3188 return 0; 3189} 3190_ACEOF 3191ac_clean_files_save=$ac_clean_files 3192ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3193# Try to create an executable without -o first, disregard a.out. 3194# It will help us diagnose broken compilers, and finding out an intuition 3195# of exeext. 3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3197$as_echo_n "checking whether the C compiler works... " >&6; } 3198ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3199 3200# The possible output files: 3201ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3202 3203ac_rmfiles= 3204for ac_file in $ac_files 3205do 3206 case $ac_file in 3207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3208 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3209 esac 3210done 3211rm -f $ac_rmfiles 3212 3213if { { ac_try="$ac_link_default" 3214case "(($ac_try" in 3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3216 *) ac_try_echo=$ac_try;; 3217esac 3218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3219$as_echo "$ac_try_echo"; } >&5 3220 (eval "$ac_link_default") 2>&5 3221 ac_status=$? 3222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3223 test $ac_status = 0; }; then : 3224 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3225# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3226# in a Makefile. We should not override ac_cv_exeext if it was cached, 3227# so that the user can short-circuit this test for compilers unknown to 3228# Autoconf. 3229for ac_file in $ac_files '' 3230do 3231 test -f "$ac_file" || continue 3232 case $ac_file in 3233 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3234 ;; 3235 [ab].out ) 3236 # We found the default executable, but exeext='' is most 3237 # certainly right. 3238 break;; 3239 *.* ) 3240 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3241 then :; else 3242 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3243 fi 3244 # We set ac_cv_exeext here because the later test for it is not 3245 # safe: cross compilers may not add the suffix if given an `-o' 3246 # argument, so we may need to know it at that point already. 3247 # Even if this section looks crufty: it has the advantage of 3248 # actually working. 3249 break;; 3250 * ) 3251 break;; 3252 esac 3253done 3254test "$ac_cv_exeext" = no && ac_cv_exeext= 3255 3256else 3257 ac_file='' 3258fi 3259if test -z "$ac_file"; then : 3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3261$as_echo "no" >&6; } 3262$as_echo "$as_me: failed program was:" >&5 3263sed 's/^/| /' conftest.$ac_ext >&5 3264 3265{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3266$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3267as_fn_error 77 "C compiler cannot create executables 3268See \`config.log' for more details" "$LINENO" 5; } 3269else 3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3271$as_echo "yes" >&6; } 3272fi 3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3274$as_echo_n "checking for C compiler default output file name... " >&6; } 3275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3276$as_echo "$ac_file" >&6; } 3277ac_exeext=$ac_cv_exeext 3278 3279rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3280ac_clean_files=$ac_clean_files_save 3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3282$as_echo_n "checking for suffix of executables... " >&6; } 3283if { { ac_try="$ac_link" 3284case "(($ac_try" in 3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3286 *) ac_try_echo=$ac_try;; 3287esac 3288eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3289$as_echo "$ac_try_echo"; } >&5 3290 (eval "$ac_link") 2>&5 3291 ac_status=$? 3292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3293 test $ac_status = 0; }; then : 3294 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3295# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3296# work properly (i.e., refer to `conftest.exe'), while it won't with 3297# `rm'. 3298for ac_file in conftest.exe conftest conftest.*; do 3299 test -f "$ac_file" || continue 3300 case $ac_file in 3301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3302 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3303 break;; 3304 * ) break;; 3305 esac 3306done 3307else 3308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3310as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3311See \`config.log' for more details" "$LINENO" 5; } 3312fi 3313rm -f conftest conftest$ac_cv_exeext 3314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3315$as_echo "$ac_cv_exeext" >&6; } 3316 3317rm -f conftest.$ac_ext 3318EXEEXT=$ac_cv_exeext 3319ac_exeext=$EXEEXT 3320cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3321/* end confdefs.h. */ 3322#include <stdio.h> 3323int 3324main () 3325{ 3326FILE *f = fopen ("conftest.out", "w"); 3327 return ferror (f) || fclose (f) != 0; 3328 3329 ; 3330 return 0; 3331} 3332_ACEOF 3333ac_clean_files="$ac_clean_files conftest.out" 3334# Check that the compiler produces executables we can run. If not, either 3335# the compiler is broken, or we cross compile. 3336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3337$as_echo_n "checking whether we are cross compiling... " >&6; } 3338if test "$cross_compiling" != yes; then 3339 { { ac_try="$ac_link" 3340case "(($ac_try" in 3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3342 *) ac_try_echo=$ac_try;; 3343esac 3344eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3345$as_echo "$ac_try_echo"; } >&5 3346 (eval "$ac_link") 2>&5 3347 ac_status=$? 3348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3349 test $ac_status = 0; } 3350 if { ac_try='./conftest$ac_cv_exeext' 3351 { { case "(($ac_try" in 3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3353 *) ac_try_echo=$ac_try;; 3354esac 3355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3356$as_echo "$ac_try_echo"; } >&5 3357 (eval "$ac_try") 2>&5 3358 ac_status=$? 3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3360 test $ac_status = 0; }; }; then 3361 cross_compiling=no 3362 else 3363 if test "$cross_compiling" = maybe; then 3364 cross_compiling=yes 3365 else 3366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3368as_fn_error $? "cannot run C compiled programs. 3369If you meant to cross compile, use \`--host'. 3370See \`config.log' for more details" "$LINENO" 5; } 3371 fi 3372 fi 3373fi 3374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3375$as_echo "$cross_compiling" >&6; } 3376 3377rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3378ac_clean_files=$ac_clean_files_save 3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3380$as_echo_n "checking for suffix of object files... " >&6; } 3381if test "${ac_cv_objext+set}" = set; then : 3382 $as_echo_n "(cached) " >&6 3383else 3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3385/* end confdefs.h. */ 3386 3387int 3388main () 3389{ 3390 3391 ; 3392 return 0; 3393} 3394_ACEOF 3395rm -f conftest.o conftest.obj 3396if { { ac_try="$ac_compile" 3397case "(($ac_try" in 3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3399 *) ac_try_echo=$ac_try;; 3400esac 3401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3402$as_echo "$ac_try_echo"; } >&5 3403 (eval "$ac_compile") 2>&5 3404 ac_status=$? 3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3406 test $ac_status = 0; }; then : 3407 for ac_file in conftest.o conftest.obj conftest.*; do 3408 test -f "$ac_file" || continue; 3409 case $ac_file in 3410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3411 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3412 break;; 3413 esac 3414done 3415else 3416 $as_echo "$as_me: failed program was:" >&5 3417sed 's/^/| /' conftest.$ac_ext >&5 3418 3419{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3421as_fn_error $? "cannot compute suffix of object files: cannot compile 3422See \`config.log' for more details" "$LINENO" 5; } 3423fi 3424rm -f conftest.$ac_cv_objext conftest.$ac_ext 3425fi 3426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3427$as_echo "$ac_cv_objext" >&6; } 3428OBJEXT=$ac_cv_objext 3429ac_objext=$OBJEXT 3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3431$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3432if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3433 $as_echo_n "(cached) " >&6 3434else 3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3436/* end confdefs.h. */ 3437 3438int 3439main () 3440{ 3441#ifndef __GNUC__ 3442 choke me 3443#endif 3444 3445 ; 3446 return 0; 3447} 3448_ACEOF 3449if ac_fn_c_try_compile "$LINENO"; then : 3450 ac_compiler_gnu=yes 3451else 3452 ac_compiler_gnu=no 3453fi 3454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3455ac_cv_c_compiler_gnu=$ac_compiler_gnu 3456 3457fi 3458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3459$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3460if test $ac_compiler_gnu = yes; then 3461 GCC=yes 3462else 3463 GCC= 3464fi 3465ac_test_CFLAGS=${CFLAGS+set} 3466ac_save_CFLAGS=$CFLAGS 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3468$as_echo_n "checking whether $CC accepts -g... " >&6; } 3469if test "${ac_cv_prog_cc_g+set}" = set; then : 3470 $as_echo_n "(cached) " >&6 3471else 3472 ac_save_c_werror_flag=$ac_c_werror_flag 3473 ac_c_werror_flag=yes 3474 ac_cv_prog_cc_g=no 3475 CFLAGS="-g" 3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3477/* end confdefs.h. */ 3478 3479int 3480main () 3481{ 3482 3483 ; 3484 return 0; 3485} 3486_ACEOF 3487if ac_fn_c_try_compile "$LINENO"; then : 3488 ac_cv_prog_cc_g=yes 3489else 3490 CFLAGS="" 3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3492/* end confdefs.h. */ 3493 3494int 3495main () 3496{ 3497 3498 ; 3499 return 0; 3500} 3501_ACEOF 3502if ac_fn_c_try_compile "$LINENO"; then : 3503 3504else 3505 ac_c_werror_flag=$ac_save_c_werror_flag 3506 CFLAGS="-g" 3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3508/* end confdefs.h. */ 3509 3510int 3511main () 3512{ 3513 3514 ; 3515 return 0; 3516} 3517_ACEOF 3518if ac_fn_c_try_compile "$LINENO"; then : 3519 ac_cv_prog_cc_g=yes 3520fi 3521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3522fi 3523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3524fi 3525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3526 ac_c_werror_flag=$ac_save_c_werror_flag 3527fi 3528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3529$as_echo "$ac_cv_prog_cc_g" >&6; } 3530if test "$ac_test_CFLAGS" = set; then 3531 CFLAGS=$ac_save_CFLAGS 3532elif test $ac_cv_prog_cc_g = yes; then 3533 if test "$GCC" = yes; then 3534 CFLAGS="-g -O2" 3535 else 3536 CFLAGS="-g" 3537 fi 3538else 3539 if test "$GCC" = yes; then 3540 CFLAGS="-O2" 3541 else 3542 CFLAGS= 3543 fi 3544fi 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3546$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3547if test "${ac_cv_prog_cc_c89+set}" = set; then : 3548 $as_echo_n "(cached) " >&6 3549else 3550 ac_cv_prog_cc_c89=no 3551ac_save_CC=$CC 3552cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3553/* end confdefs.h. */ 3554#include <stdarg.h> 3555#include <stdio.h> 3556#include <sys/types.h> 3557#include <sys/stat.h> 3558/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3559struct buf { int x; }; 3560FILE * (*rcsopen) (struct buf *, struct stat *, int); 3561static char *e (p, i) 3562 char **p; 3563 int i; 3564{ 3565 return p[i]; 3566} 3567static char *f (char * (*g) (char **, int), char **p, ...) 3568{ 3569 char *s; 3570 va_list v; 3571 va_start (v,p); 3572 s = g (p, va_arg (v,int)); 3573 va_end (v); 3574 return s; 3575} 3576 3577/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3578 function prototypes and stuff, but not '\xHH' hex character constants. 3579 These don't provoke an error unfortunately, instead are silently treated 3580 as 'x'. The following induces an error, until -std is added to get 3581 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3582 array size at least. It's necessary to write '\x00'==0 to get something 3583 that's true only with -std. */ 3584int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3585 3586/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3587 inside strings and character constants. */ 3588#define FOO(x) 'x' 3589int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3590 3591int test (int i, double x); 3592struct s1 {int (*f) (int a);}; 3593struct s2 {int (*f) (double a);}; 3594int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3595int argc; 3596char **argv; 3597int 3598main () 3599{ 3600return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3601 ; 3602 return 0; 3603} 3604_ACEOF 3605for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3606 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3607do 3608 CC="$ac_save_CC $ac_arg" 3609 if ac_fn_c_try_compile "$LINENO"; then : 3610 ac_cv_prog_cc_c89=$ac_arg 3611fi 3612rm -f core conftest.err conftest.$ac_objext 3613 test "x$ac_cv_prog_cc_c89" != "xno" && break 3614done 3615rm -f conftest.$ac_ext 3616CC=$ac_save_CC 3617 3618fi 3619# AC_CACHE_VAL 3620case "x$ac_cv_prog_cc_c89" in 3621 x) 3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3623$as_echo "none needed" >&6; } ;; 3624 xno) 3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3626$as_echo "unsupported" >&6; } ;; 3627 *) 3628 CC="$CC $ac_cv_prog_cc_c89" 3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3630$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3631esac 3632if test "x$ac_cv_prog_cc_c89" != xno; then : 3633 3634fi 3635 3636ac_ext=c 3637ac_cpp='$CPP $CPPFLAGS' 3638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3640ac_compiler_gnu=$ac_cv_c_compiler_gnu 3641DEPDIR="${am__leading_dot}deps" 3642 3643ac_config_commands="$ac_config_commands depfiles" 3644 3645 3646am_make=${MAKE-make} 3647cat > confinc << 'END' 3648am__doit: 3649 @echo this is the am__doit target 3650.PHONY: am__doit 3651END 3652# If we don't find an include directive, just comment out the code. 3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3654$as_echo_n "checking for style of include used by $am_make... " >&6; } 3655am__include="#" 3656am__quote= 3657_am_result=none 3658# First try GNU make style include. 3659echo "include confinc" > confmf 3660# Ignore all kinds of additional output from `make'. 3661case `$am_make -s -f confmf 2> /dev/null` in #( 3662*the\ am__doit\ target*) 3663 am__include=include 3664 am__quote= 3665 _am_result=GNU 3666 ;; 3667esac 3668# Now try BSD make style include. 3669if test "$am__include" = "#"; then 3670 echo '.include "confinc"' > confmf 3671 case `$am_make -s -f confmf 2> /dev/null` in #( 3672 *the\ am__doit\ target*) 3673 am__include=.include 3674 am__quote="\"" 3675 _am_result=BSD 3676 ;; 3677 esac 3678fi 3679 3680 3681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3682$as_echo "$_am_result" >&6; } 3683rm -f confinc confmf 3684 3685# Check whether --enable-dependency-tracking was given. 3686if test "${enable_dependency_tracking+set}" = set; then : 3687 enableval=$enable_dependency_tracking; 3688fi 3689 3690if test "x$enable_dependency_tracking" != xno; then 3691 am_depcomp="$ac_aux_dir/depcomp" 3692 AMDEPBACKSLASH='\' 3693fi 3694 if test "x$enable_dependency_tracking" != xno; then 3695 AMDEP_TRUE= 3696 AMDEP_FALSE='#' 3697else 3698 AMDEP_TRUE='#' 3699 AMDEP_FALSE= 3700fi 3701 3702 3703 3704depcc="$CC" am_compiler_list= 3705 3706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3707$as_echo_n "checking dependency style of $depcc... " >&6; } 3708if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3709 $as_echo_n "(cached) " >&6 3710else 3711 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3712 # We make a subdir and do the tests there. Otherwise we can end up 3713 # making bogus files that we don't know about and never remove. For 3714 # instance it was reported that on HP-UX the gcc test will end up 3715 # making a dummy file named `D' -- because `-MD' means `put the output 3716 # in D'. 3717 mkdir conftest.dir 3718 # Copy depcomp to subdir because otherwise we won't find it if we're 3719 # using a relative directory. 3720 cp "$am_depcomp" conftest.dir 3721 cd conftest.dir 3722 # We will build objects and dependencies in a subdirectory because 3723 # it helps to detect inapplicable dependency modes. For instance 3724 # both Tru64's cc and ICC support -MD to output dependencies as a 3725 # side effect of compilation, but ICC will put the dependencies in 3726 # the current directory while Tru64 will put them in the object 3727 # directory. 3728 mkdir sub 3729 3730 am_cv_CC_dependencies_compiler_type=none 3731 if test "$am_compiler_list" = ""; then 3732 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3733 fi 3734 am__universal=false 3735 case " $depcc " in #( 3736 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3737 esac 3738 3739 for depmode in $am_compiler_list; do 3740 # Setup a source with many dependencies, because some compilers 3741 # like to wrap large dependency lists on column 80 (with \), and 3742 # we should not choose a depcomp mode which is confused by this. 3743 # 3744 # We need to recreate these files for each test, as the compiler may 3745 # overwrite some of them when testing with obscure command lines. 3746 # This happens at least with the AIX C compiler. 3747 : > sub/conftest.c 3748 for i in 1 2 3 4 5 6; do 3749 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3750 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3751 # Solaris 8's {/usr,}/bin/sh. 3752 touch sub/conftst$i.h 3753 done 3754 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3755 3756 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3757 # mode. It turns out that the SunPro C++ compiler does not properly 3758 # handle `-M -o', and we need to detect this. Also, some Intel 3759 # versions had trouble with output in subdirs 3760 am__obj=sub/conftest.${OBJEXT-o} 3761 am__minus_obj="-o $am__obj" 3762 case $depmode in 3763 gcc) 3764 # This depmode causes a compiler race in universal mode. 3765 test "$am__universal" = false || continue 3766 ;; 3767 nosideeffect) 3768 # after this tag, mechanisms are not by side-effect, so they'll 3769 # only be used when explicitly requested 3770 if test "x$enable_dependency_tracking" = xyes; then 3771 continue 3772 else 3773 break 3774 fi 3775 ;; 3776 msvisualcpp | msvcmsys) 3777 # This compiler won't grok `-c -o', but also, the minuso test has 3778 # not run yet. These depmodes are late enough in the game, and 3779 # so weak that their functioning should not be impacted. 3780 am__obj=conftest.${OBJEXT-o} 3781 am__minus_obj= 3782 ;; 3783 none) break ;; 3784 esac 3785 if depmode=$depmode \ 3786 source=sub/conftest.c object=$am__obj \ 3787 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3788 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3789 >/dev/null 2>conftest.err && 3790 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3791 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3792 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3793 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3794 # icc doesn't choke on unknown options, it will just issue warnings 3795 # or remarks (even with -Werror). So we grep stderr for any message 3796 # that says an option was ignored or not supported. 3797 # When given -MP, icc 7.0 and 7.1 complain thusly: 3798 # icc: Command line warning: ignoring option '-M'; no argument required 3799 # The diagnosis changed in icc 8.0: 3800 # icc: Command line remark: option '-MP' not supported 3801 if (grep 'ignoring option' conftest.err || 3802 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3803 am_cv_CC_dependencies_compiler_type=$depmode 3804 break 3805 fi 3806 fi 3807 done 3808 3809 cd .. 3810 rm -rf conftest.dir 3811else 3812 am_cv_CC_dependencies_compiler_type=none 3813fi 3814 3815fi 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3817$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3818CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3819 3820 if 3821 test "x$enable_dependency_tracking" != xno \ 3822 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3823 am__fastdepCC_TRUE= 3824 am__fastdepCC_FALSE='#' 3825else 3826 am__fastdepCC_TRUE='#' 3827 am__fastdepCC_FALSE= 3828fi 3829 3830 3831case `pwd` in 3832 *\ * | *\ *) 3833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3834$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3835esac 3836 3837 3838 3839macro_version='2.2.10' 3840macro_revision='1.3175' 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854ltmain="$ac_aux_dir/ltmain.sh" 3855 3856# Make sure we can run config.sub. 3857$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3858 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3859 3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3861$as_echo_n "checking build system type... " >&6; } 3862if test "${ac_cv_build+set}" = set; then : 3863 $as_echo_n "(cached) " >&6 3864else 3865 ac_build_alias=$build_alias 3866test "x$ac_build_alias" = x && 3867 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3868test "x$ac_build_alias" = x && 3869 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3870ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3871 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3872 3873fi 3874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3875$as_echo "$ac_cv_build" >&6; } 3876case $ac_cv_build in 3877*-*-*) ;; 3878*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3879esac 3880build=$ac_cv_build 3881ac_save_IFS=$IFS; IFS='-' 3882set x $ac_cv_build 3883shift 3884build_cpu=$1 3885build_vendor=$2 3886shift; shift 3887# Remember, the first character of IFS is used to create $*, 3888# except with old shells: 3889build_os=$* 3890IFS=$ac_save_IFS 3891case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3892 3893 3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3895$as_echo_n "checking host system type... " >&6; } 3896if test "${ac_cv_host+set}" = set; then : 3897 $as_echo_n "(cached) " >&6 3898else 3899 if test "x$host_alias" = x; then 3900 ac_cv_host=$ac_cv_build 3901else 3902 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3903 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3904fi 3905 3906fi 3907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3908$as_echo "$ac_cv_host" >&6; } 3909case $ac_cv_host in 3910*-*-*) ;; 3911*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3912esac 3913host=$ac_cv_host 3914ac_save_IFS=$IFS; IFS='-' 3915set x $ac_cv_host 3916shift 3917host_cpu=$1 3918host_vendor=$2 3919shift; shift 3920# Remember, the first character of IFS is used to create $*, 3921# except with old shells: 3922host_os=$* 3923IFS=$ac_save_IFS 3924case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3925 3926 3927# Backslashify metacharacters that are still active within 3928# double-quoted strings. 3929sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3930 3931# Same as above, but do not quote variable references. 3932double_quote_subst='s/\(["`\\]\)/\\\1/g' 3933 3934# Sed substitution to delay expansion of an escaped shell variable in a 3935# double_quote_subst'ed string. 3936delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3937 3938# Sed substitution to delay expansion of an escaped single quote. 3939delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3940 3941# Sed substitution to avoid accidental globbing in evaled expressions 3942no_glob_subst='s/\*/\\\*/g' 3943 3944ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3945ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3946ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3947 3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3949$as_echo_n "checking how to print strings... " >&6; } 3950# Test print first, because it will be a builtin if present. 3951if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 3952 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3953 ECHO='print -r --' 3954elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3955 ECHO='printf %s\n' 3956else 3957 # Use this function as a fallback that always works. 3958 func_fallback_echo () 3959 { 3960 eval 'cat <<_LTECHO_EOF 3961$1 3962_LTECHO_EOF' 3963 } 3964 ECHO='func_fallback_echo' 3965fi 3966 3967# func_echo_all arg... 3968# Invoke $ECHO with all args, space-separated. 3969func_echo_all () 3970{ 3971 $ECHO "" 3972} 3973 3974case "$ECHO" in 3975 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3976$as_echo "printf" >&6; } ;; 3977 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3978$as_echo "print -r" >&6; } ;; 3979 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3980$as_echo "cat" >&6; } ;; 3981esac 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3997$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3998if test "${ac_cv_path_SED+set}" = set; then : 3999 $as_echo_n "(cached) " >&6 4000else 4001 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4002 for ac_i in 1 2 3 4 5 6 7; do 4003 ac_script="$ac_script$as_nl$ac_script" 4004 done 4005 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4006 { ac_script=; unset ac_script;} 4007 if test -z "$SED"; then 4008 ac_path_SED_found=false 4009 # Loop through the user's path and test for each of PROGNAME-LIST 4010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4011for as_dir in $PATH 4012do 4013 IFS=$as_save_IFS 4014 test -z "$as_dir" && as_dir=. 4015 for ac_prog in sed gsed; do 4016 for ac_exec_ext in '' $ac_executable_extensions; do 4017 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4018 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4019# Check for GNU ac_path_SED and select it if it is found. 4020 # Check for GNU $ac_path_SED 4021case `"$ac_path_SED" --version 2>&1` in 4022*GNU*) 4023 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4024*) 4025 ac_count=0 4026 $as_echo_n 0123456789 >"conftest.in" 4027 while : 4028 do 4029 cat "conftest.in" "conftest.in" >"conftest.tmp" 4030 mv "conftest.tmp" "conftest.in" 4031 cp "conftest.in" "conftest.nl" 4032 $as_echo '' >> "conftest.nl" 4033 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4034 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4035 as_fn_arith $ac_count + 1 && ac_count=$as_val 4036 if test $ac_count -gt ${ac_path_SED_max-0}; then 4037 # Best one so far, save it but keep looking for a better one 4038 ac_cv_path_SED="$ac_path_SED" 4039 ac_path_SED_max=$ac_count 4040 fi 4041 # 10*(2^10) chars as input seems more than enough 4042 test $ac_count -gt 10 && break 4043 done 4044 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4045esac 4046 4047 $ac_path_SED_found && break 3 4048 done 4049 done 4050 done 4051IFS=$as_save_IFS 4052 if test -z "$ac_cv_path_SED"; then 4053 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4054 fi 4055else 4056 ac_cv_path_SED=$SED 4057fi 4058 4059fi 4060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4061$as_echo "$ac_cv_path_SED" >&6; } 4062 SED="$ac_cv_path_SED" 4063 rm -f conftest.sed 4064 4065test -z "$SED" && SED=sed 4066Xsed="$SED -e 1s/^X//" 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4079$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4080if test "${ac_cv_path_GREP+set}" = set; then : 4081 $as_echo_n "(cached) " >&6 4082else 4083 if test -z "$GREP"; then 4084 ac_path_GREP_found=false 4085 # Loop through the user's path and test for each of PROGNAME-LIST 4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4087for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4088do 4089 IFS=$as_save_IFS 4090 test -z "$as_dir" && as_dir=. 4091 for ac_prog in grep ggrep; do 4092 for ac_exec_ext in '' $ac_executable_extensions; do 4093 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4094 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4095# Check for GNU ac_path_GREP and select it if it is found. 4096 # Check for GNU $ac_path_GREP 4097case `"$ac_path_GREP" --version 2>&1` in 4098*GNU*) 4099 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4100*) 4101 ac_count=0 4102 $as_echo_n 0123456789 >"conftest.in" 4103 while : 4104 do 4105 cat "conftest.in" "conftest.in" >"conftest.tmp" 4106 mv "conftest.tmp" "conftest.in" 4107 cp "conftest.in" "conftest.nl" 4108 $as_echo 'GREP' >> "conftest.nl" 4109 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4110 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4111 as_fn_arith $ac_count + 1 && ac_count=$as_val 4112 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4113 # Best one so far, save it but keep looking for a better one 4114 ac_cv_path_GREP="$ac_path_GREP" 4115 ac_path_GREP_max=$ac_count 4116 fi 4117 # 10*(2^10) chars as input seems more than enough 4118 test $ac_count -gt 10 && break 4119 done 4120 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4121esac 4122 4123 $ac_path_GREP_found && break 3 4124 done 4125 done 4126 done 4127IFS=$as_save_IFS 4128 if test -z "$ac_cv_path_GREP"; then 4129 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4130 fi 4131else 4132 ac_cv_path_GREP=$GREP 4133fi 4134 4135fi 4136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4137$as_echo "$ac_cv_path_GREP" >&6; } 4138 GREP="$ac_cv_path_GREP" 4139 4140 4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4142$as_echo_n "checking for egrep... " >&6; } 4143if test "${ac_cv_path_EGREP+set}" = set; then : 4144 $as_echo_n "(cached) " >&6 4145else 4146 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4147 then ac_cv_path_EGREP="$GREP -E" 4148 else 4149 if test -z "$EGREP"; then 4150 ac_path_EGREP_found=false 4151 # Loop through the user's path and test for each of PROGNAME-LIST 4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4153for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4154do 4155 IFS=$as_save_IFS 4156 test -z "$as_dir" && as_dir=. 4157 for ac_prog in egrep; do 4158 for ac_exec_ext in '' $ac_executable_extensions; do 4159 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4160 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4161# Check for GNU ac_path_EGREP and select it if it is found. 4162 # Check for GNU $ac_path_EGREP 4163case `"$ac_path_EGREP" --version 2>&1` in 4164*GNU*) 4165 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4166*) 4167 ac_count=0 4168 $as_echo_n 0123456789 >"conftest.in" 4169 while : 4170 do 4171 cat "conftest.in" "conftest.in" >"conftest.tmp" 4172 mv "conftest.tmp" "conftest.in" 4173 cp "conftest.in" "conftest.nl" 4174 $as_echo 'EGREP' >> "conftest.nl" 4175 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4176 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4177 as_fn_arith $ac_count + 1 && ac_count=$as_val 4178 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4179 # Best one so far, save it but keep looking for a better one 4180 ac_cv_path_EGREP="$ac_path_EGREP" 4181 ac_path_EGREP_max=$ac_count 4182 fi 4183 # 10*(2^10) chars as input seems more than enough 4184 test $ac_count -gt 10 && break 4185 done 4186 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4187esac 4188 4189 $ac_path_EGREP_found && break 3 4190 done 4191 done 4192 done 4193IFS=$as_save_IFS 4194 if test -z "$ac_cv_path_EGREP"; then 4195 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4196 fi 4197else 4198 ac_cv_path_EGREP=$EGREP 4199fi 4200 4201 fi 4202fi 4203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4204$as_echo "$ac_cv_path_EGREP" >&6; } 4205 EGREP="$ac_cv_path_EGREP" 4206 4207 4208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4209$as_echo_n "checking for fgrep... " >&6; } 4210if test "${ac_cv_path_FGREP+set}" = set; then : 4211 $as_echo_n "(cached) " >&6 4212else 4213 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4214 then ac_cv_path_FGREP="$GREP -F" 4215 else 4216 if test -z "$FGREP"; then 4217 ac_path_FGREP_found=false 4218 # Loop through the user's path and test for each of PROGNAME-LIST 4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4220for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4221do 4222 IFS=$as_save_IFS 4223 test -z "$as_dir" && as_dir=. 4224 for ac_prog in fgrep; do 4225 for ac_exec_ext in '' $ac_executable_extensions; do 4226 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4227 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4228# Check for GNU ac_path_FGREP and select it if it is found. 4229 # Check for GNU $ac_path_FGREP 4230case `"$ac_path_FGREP" --version 2>&1` in 4231*GNU*) 4232 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4233*) 4234 ac_count=0 4235 $as_echo_n 0123456789 >"conftest.in" 4236 while : 4237 do 4238 cat "conftest.in" "conftest.in" >"conftest.tmp" 4239 mv "conftest.tmp" "conftest.in" 4240 cp "conftest.in" "conftest.nl" 4241 $as_echo 'FGREP' >> "conftest.nl" 4242 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4243 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4244 as_fn_arith $ac_count + 1 && ac_count=$as_val 4245 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4246 # Best one so far, save it but keep looking for a better one 4247 ac_cv_path_FGREP="$ac_path_FGREP" 4248 ac_path_FGREP_max=$ac_count 4249 fi 4250 # 10*(2^10) chars as input seems more than enough 4251 test $ac_count -gt 10 && break 4252 done 4253 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4254esac 4255 4256 $ac_path_FGREP_found && break 3 4257 done 4258 done 4259 done 4260IFS=$as_save_IFS 4261 if test -z "$ac_cv_path_FGREP"; then 4262 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4263 fi 4264else 4265 ac_cv_path_FGREP=$FGREP 4266fi 4267 4268 fi 4269fi 4270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4271$as_echo "$ac_cv_path_FGREP" >&6; } 4272 FGREP="$ac_cv_path_FGREP" 4273 4274 4275test -z "$GREP" && GREP=grep 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295# Check whether --with-gnu-ld was given. 4296if test "${with_gnu_ld+set}" = set; then : 4297 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4298else 4299 with_gnu_ld=no 4300fi 4301 4302ac_prog=ld 4303if test "$GCC" = yes; then 4304 # Check if gcc -print-prog-name=ld gives a path. 4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4306$as_echo_n "checking for ld used by $CC... " >&6; } 4307 case $host in 4308 *-*-mingw*) 4309 # gcc leaves a trailing carriage return which upsets mingw 4310 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4311 *) 4312 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4313 esac 4314 case $ac_prog in 4315 # Accept absolute paths. 4316 [\\/]* | ?:[\\/]*) 4317 re_direlt='/[^/][^/]*/\.\./' 4318 # Canonicalize the pathname of ld 4319 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4320 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4321 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4322 done 4323 test -z "$LD" && LD="$ac_prog" 4324 ;; 4325 "") 4326 # If it fails, then pretend we aren't using GCC. 4327 ac_prog=ld 4328 ;; 4329 *) 4330 # If it is relative, then search for the first ld in PATH. 4331 with_gnu_ld=unknown 4332 ;; 4333 esac 4334elif test "$with_gnu_ld" = yes; then 4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4336$as_echo_n "checking for GNU ld... " >&6; } 4337else 4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4339$as_echo_n "checking for non-GNU ld... " >&6; } 4340fi 4341if test "${lt_cv_path_LD+set}" = set; then : 4342 $as_echo_n "(cached) " >&6 4343else 4344 if test -z "$LD"; then 4345 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4346 for ac_dir in $PATH; do 4347 IFS="$lt_save_ifs" 4348 test -z "$ac_dir" && ac_dir=. 4349 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4350 lt_cv_path_LD="$ac_dir/$ac_prog" 4351 # Check to see if the program is GNU ld. I'd rather use --version, 4352 # but apparently some variants of GNU ld only accept -v. 4353 # Break only if it was the GNU/non-GNU ld that we prefer. 4354 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4355 *GNU* | *'with BFD'*) 4356 test "$with_gnu_ld" != no && break 4357 ;; 4358 *) 4359 test "$with_gnu_ld" != yes && break 4360 ;; 4361 esac 4362 fi 4363 done 4364 IFS="$lt_save_ifs" 4365else 4366 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4367fi 4368fi 4369 4370LD="$lt_cv_path_LD" 4371if test -n "$LD"; then 4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4373$as_echo "$LD" >&6; } 4374else 4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4376$as_echo "no" >&6; } 4377fi 4378test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4380$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4381if test "${lt_cv_prog_gnu_ld+set}" = set; then : 4382 $as_echo_n "(cached) " >&6 4383else 4384 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4385case `$LD -v 2>&1 </dev/null` in 4386*GNU* | *'with BFD'*) 4387 lt_cv_prog_gnu_ld=yes 4388 ;; 4389*) 4390 lt_cv_prog_gnu_ld=no 4391 ;; 4392esac 4393fi 4394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4395$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4396with_gnu_ld=$lt_cv_prog_gnu_ld 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4407$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4408if test "${lt_cv_path_NM+set}" = set; then : 4409 $as_echo_n "(cached) " >&6 4410else 4411 if test -n "$NM"; then 4412 # Let the user override the test. 4413 lt_cv_path_NM="$NM" 4414else 4415 lt_nm_to_check="${ac_tool_prefix}nm" 4416 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4417 lt_nm_to_check="$lt_nm_to_check nm" 4418 fi 4419 for lt_tmp_nm in $lt_nm_to_check; do 4420 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4421 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4422 IFS="$lt_save_ifs" 4423 test -z "$ac_dir" && ac_dir=. 4424 tmp_nm="$ac_dir/$lt_tmp_nm" 4425 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4426 # Check to see if the nm accepts a BSD-compat flag. 4427 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4428 # nm: unknown option "B" ignored 4429 # Tru64's nm complains that /dev/null is an invalid object file 4430 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4431 */dev/null* | *'Invalid file or object type'*) 4432 lt_cv_path_NM="$tmp_nm -B" 4433 break 4434 ;; 4435 *) 4436 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4437 */dev/null*) 4438 lt_cv_path_NM="$tmp_nm -p" 4439 break 4440 ;; 4441 *) 4442 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4443 continue # so that we can try to find one that supports BSD flags 4444 ;; 4445 esac 4446 ;; 4447 esac 4448 fi 4449 done 4450 IFS="$lt_save_ifs" 4451 done 4452 : ${lt_cv_path_NM=no} 4453fi 4454fi 4455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4456$as_echo "$lt_cv_path_NM" >&6; } 4457if test "$lt_cv_path_NM" != "no"; then 4458 NM="$lt_cv_path_NM" 4459else 4460 # Didn't find any BSD compatible name lister, look for dumpbin. 4461 if test -n "$DUMPBIN"; then : 4462 # Let the user override the test. 4463 else 4464 if test -n "$ac_tool_prefix"; then 4465 for ac_prog in dumpbin "link -dump" 4466 do 4467 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4468set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4470$as_echo_n "checking for $ac_word... " >&6; } 4471if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 4472 $as_echo_n "(cached) " >&6 4473else 4474 if test -n "$DUMPBIN"; then 4475 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4476else 4477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4478for as_dir in $PATH 4479do 4480 IFS=$as_save_IFS 4481 test -z "$as_dir" && as_dir=. 4482 for ac_exec_ext in '' $ac_executable_extensions; do 4483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4484 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4486 break 2 4487 fi 4488done 4489 done 4490IFS=$as_save_IFS 4491 4492fi 4493fi 4494DUMPBIN=$ac_cv_prog_DUMPBIN 4495if test -n "$DUMPBIN"; then 4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4497$as_echo "$DUMPBIN" >&6; } 4498else 4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4500$as_echo "no" >&6; } 4501fi 4502 4503 4504 test -n "$DUMPBIN" && break 4505 done 4506fi 4507if test -z "$DUMPBIN"; then 4508 ac_ct_DUMPBIN=$DUMPBIN 4509 for ac_prog in dumpbin "link -dump" 4510do 4511 # Extract the first word of "$ac_prog", so it can be a program name with args. 4512set dummy $ac_prog; ac_word=$2 4513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4514$as_echo_n "checking for $ac_word... " >&6; } 4515if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 4516 $as_echo_n "(cached) " >&6 4517else 4518 if test -n "$ac_ct_DUMPBIN"; then 4519 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4520else 4521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4522for as_dir in $PATH 4523do 4524 IFS=$as_save_IFS 4525 test -z "$as_dir" && as_dir=. 4526 for ac_exec_ext in '' $ac_executable_extensions; do 4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4528 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4530 break 2 4531 fi 4532done 4533 done 4534IFS=$as_save_IFS 4535 4536fi 4537fi 4538ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4539if test -n "$ac_ct_DUMPBIN"; then 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4541$as_echo "$ac_ct_DUMPBIN" >&6; } 4542else 4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4544$as_echo "no" >&6; } 4545fi 4546 4547 4548 test -n "$ac_ct_DUMPBIN" && break 4549done 4550 4551 if test "x$ac_ct_DUMPBIN" = x; then 4552 DUMPBIN=":" 4553 else 4554 case $cross_compiling:$ac_tool_warned in 4555yes:) 4556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4558ac_tool_warned=yes ;; 4559esac 4560 DUMPBIN=$ac_ct_DUMPBIN 4561 fi 4562fi 4563 4564 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4565 *COFF*) 4566 DUMPBIN="$DUMPBIN -symbols" 4567 ;; 4568 *) 4569 DUMPBIN=: 4570 ;; 4571 esac 4572 fi 4573 4574 if test "$DUMPBIN" != ":"; then 4575 NM="$DUMPBIN" 4576 fi 4577fi 4578test -z "$NM" && NM=nm 4579 4580 4581 4582 4583 4584 4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4586$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4587if test "${lt_cv_nm_interface+set}" = set; then : 4588 $as_echo_n "(cached) " >&6 4589else 4590 lt_cv_nm_interface="BSD nm" 4591 echo "int some_variable = 0;" > conftest.$ac_ext 4592 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4593 (eval "$ac_compile" 2>conftest.err) 4594 cat conftest.err >&5 4595 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4596 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4597 cat conftest.err >&5 4598 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4599 cat conftest.out >&5 4600 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4601 lt_cv_nm_interface="MS dumpbin" 4602 fi 4603 rm -f conftest* 4604fi 4605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4606$as_echo "$lt_cv_nm_interface" >&6; } 4607 4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4609$as_echo_n "checking whether ln -s works... " >&6; } 4610LN_S=$as_ln_s 4611if test "$LN_S" = "ln -s"; then 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4613$as_echo "yes" >&6; } 4614else 4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4616$as_echo "no, using $LN_S" >&6; } 4617fi 4618 4619# find the maximum length of command line arguments 4620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4621$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4622if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 4623 $as_echo_n "(cached) " >&6 4624else 4625 i=0 4626 teststring="ABCD" 4627 4628 case $build_os in 4629 msdosdjgpp*) 4630 # On DJGPP, this test can blow up pretty badly due to problems in libc 4631 # (any single argument exceeding 2000 bytes causes a buffer overrun 4632 # during glob expansion). Even if it were fixed, the result of this 4633 # check would be larger than it should be. 4634 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4635 ;; 4636 4637 gnu*) 4638 # Under GNU Hurd, this test is not required because there is 4639 # no limit to the length of command line arguments. 4640 # Libtool will interpret -1 as no limit whatsoever 4641 lt_cv_sys_max_cmd_len=-1; 4642 ;; 4643 4644 cygwin* | mingw* | cegcc*) 4645 # On Win9x/ME, this test blows up -- it succeeds, but takes 4646 # about 5 minutes as the teststring grows exponentially. 4647 # Worse, since 9x/ME are not pre-emptively multitasking, 4648 # you end up with a "frozen" computer, even though with patience 4649 # the test eventually succeeds (with a max line length of 256k). 4650 # Instead, let's just punt: use the minimum linelength reported by 4651 # all of the supported platforms: 8192 (on NT/2K/XP). 4652 lt_cv_sys_max_cmd_len=8192; 4653 ;; 4654 4655 mint*) 4656 # On MiNT this can take a long time and run out of memory. 4657 lt_cv_sys_max_cmd_len=8192; 4658 ;; 4659 4660 amigaos*) 4661 # On AmigaOS with pdksh, this test takes hours, literally. 4662 # So we just punt and use a minimum line length of 8192. 4663 lt_cv_sys_max_cmd_len=8192; 4664 ;; 4665 4666 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4667 # This has been around since 386BSD, at least. Likely further. 4668 if test -x /sbin/sysctl; then 4669 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4670 elif test -x /usr/sbin/sysctl; then 4671 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4672 else 4673 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4674 fi 4675 # And add a safety zone 4676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4677 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4678 ;; 4679 4680 interix*) 4681 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4682 lt_cv_sys_max_cmd_len=196608 4683 ;; 4684 4685 osf*) 4686 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4687 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4688 # nice to cause kernel panics so lets avoid the loop below. 4689 # First set a reasonable default. 4690 lt_cv_sys_max_cmd_len=16384 4691 # 4692 if test -x /sbin/sysconfig; then 4693 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4694 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4695 esac 4696 fi 4697 ;; 4698 sco3.2v5*) 4699 lt_cv_sys_max_cmd_len=102400 4700 ;; 4701 sysv5* | sco5v6* | sysv4.2uw2*) 4702 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4703 if test -n "$kargmax"; then 4704 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4705 else 4706 lt_cv_sys_max_cmd_len=32768 4707 fi 4708 ;; 4709 *) 4710 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4711 if test -n "$lt_cv_sys_max_cmd_len"; then 4712 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4713 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4714 else 4715 # Make teststring a little bigger before we do anything with it. 4716 # a 1K string should be a reasonable start. 4717 for i in 1 2 3 4 5 6 7 8 ; do 4718 teststring=$teststring$teststring 4719 done 4720 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4721 # If test is not a shell built-in, we'll probably end up computing a 4722 # maximum length that is only half of the actual maximum length, but 4723 # we can't tell. 4724 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 4725 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4726 test $i != 17 # 1/2 MB should be enough 4727 do 4728 i=`expr $i + 1` 4729 teststring=$teststring$teststring 4730 done 4731 # Only check the string length outside the loop. 4732 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4733 teststring= 4734 # Add a significant safety factor because C++ compilers can tack on 4735 # massive amounts of additional arguments before passing them to the 4736 # linker. It appears as though 1/2 is a usable value. 4737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4738 fi 4739 ;; 4740 esac 4741 4742fi 4743 4744if test -n $lt_cv_sys_max_cmd_len ; then 4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4746$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4747else 4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4749$as_echo "none" >&6; } 4750fi 4751max_cmd_len=$lt_cv_sys_max_cmd_len 4752 4753 4754 4755 4756 4757 4758: ${CP="cp -f"} 4759: ${MV="mv -f"} 4760: ${RM="rm -f"} 4761 4762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4763$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4764# Try some XSI features 4765xsi_shell=no 4766( _lt_dummy="a/b/c" 4767 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4768 = c,a/b,, \ 4769 && eval 'test $(( 1 + 1 )) -eq 2 \ 4770 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4771 && xsi_shell=yes 4772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4773$as_echo "$xsi_shell" >&6; } 4774 4775 4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4777$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4778lt_shell_append=no 4779( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4780 >/dev/null 2>&1 \ 4781 && lt_shell_append=yes 4782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4783$as_echo "$lt_shell_append" >&6; } 4784 4785 4786if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4787 lt_unset=unset 4788else 4789 lt_unset=false 4790fi 4791 4792 4793 4794 4795 4796# test EBCDIC or ASCII 4797case `echo X|tr X '\101'` in 4798 A) # ASCII based system 4799 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4800 lt_SP2NL='tr \040 \012' 4801 lt_NL2SP='tr \015\012 \040\040' 4802 ;; 4803 *) # EBCDIC based system 4804 lt_SP2NL='tr \100 \n' 4805 lt_NL2SP='tr \r\n \100\100' 4806 ;; 4807esac 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4818$as_echo_n "checking for $LD option to reload object files... " >&6; } 4819if test "${lt_cv_ld_reload_flag+set}" = set; then : 4820 $as_echo_n "(cached) " >&6 4821else 4822 lt_cv_ld_reload_flag='-r' 4823fi 4824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4825$as_echo "$lt_cv_ld_reload_flag" >&6; } 4826reload_flag=$lt_cv_ld_reload_flag 4827case $reload_flag in 4828"" | " "*) ;; 4829*) reload_flag=" $reload_flag" ;; 4830esac 4831reload_cmds='$LD$reload_flag -o $output$reload_objs' 4832case $host_os in 4833 darwin*) 4834 if test "$GCC" = yes; then 4835 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4836 else 4837 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4838 fi 4839 ;; 4840esac 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850if test -n "$ac_tool_prefix"; then 4851 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4852set dummy ${ac_tool_prefix}objdump; ac_word=$2 4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4854$as_echo_n "checking for $ac_word... " >&6; } 4855if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 4856 $as_echo_n "(cached) " >&6 4857else 4858 if test -n "$OBJDUMP"; then 4859 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4860else 4861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4862for as_dir in $PATH 4863do 4864 IFS=$as_save_IFS 4865 test -z "$as_dir" && as_dir=. 4866 for ac_exec_ext in '' $ac_executable_extensions; do 4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4868 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4870 break 2 4871 fi 4872done 4873 done 4874IFS=$as_save_IFS 4875 4876fi 4877fi 4878OBJDUMP=$ac_cv_prog_OBJDUMP 4879if test -n "$OBJDUMP"; then 4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4881$as_echo "$OBJDUMP" >&6; } 4882else 4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4884$as_echo "no" >&6; } 4885fi 4886 4887 4888fi 4889if test -z "$ac_cv_prog_OBJDUMP"; then 4890 ac_ct_OBJDUMP=$OBJDUMP 4891 # Extract the first word of "objdump", so it can be a program name with args. 4892set dummy objdump; ac_word=$2 4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4894$as_echo_n "checking for $ac_word... " >&6; } 4895if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 4896 $as_echo_n "(cached) " >&6 4897else 4898 if test -n "$ac_ct_OBJDUMP"; then 4899 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4900else 4901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4902for as_dir in $PATH 4903do 4904 IFS=$as_save_IFS 4905 test -z "$as_dir" && as_dir=. 4906 for ac_exec_ext in '' $ac_executable_extensions; do 4907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4908 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4910 break 2 4911 fi 4912done 4913 done 4914IFS=$as_save_IFS 4915 4916fi 4917fi 4918ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4919if test -n "$ac_ct_OBJDUMP"; then 4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4921$as_echo "$ac_ct_OBJDUMP" >&6; } 4922else 4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4924$as_echo "no" >&6; } 4925fi 4926 4927 if test "x$ac_ct_OBJDUMP" = x; then 4928 OBJDUMP="false" 4929 else 4930 case $cross_compiling:$ac_tool_warned in 4931yes:) 4932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4934ac_tool_warned=yes ;; 4935esac 4936 OBJDUMP=$ac_ct_OBJDUMP 4937 fi 4938else 4939 OBJDUMP="$ac_cv_prog_OBJDUMP" 4940fi 4941 4942test -z "$OBJDUMP" && OBJDUMP=objdump 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4953$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4954if test "${lt_cv_deplibs_check_method+set}" = set; then : 4955 $as_echo_n "(cached) " >&6 4956else 4957 lt_cv_file_magic_cmd='$MAGIC_CMD' 4958lt_cv_file_magic_test_file= 4959lt_cv_deplibs_check_method='unknown' 4960# Need to set the preceding variable on all platforms that support 4961# interlibrary dependencies. 4962# 'none' -- dependencies not supported. 4963# `unknown' -- same as none, but documents that we really don't know. 4964# 'pass_all' -- all dependencies passed with no checks. 4965# 'test_compile' -- check by making test program. 4966# 'file_magic [[regex]]' -- check by looking for files in library path 4967# which responds to the $file_magic_cmd with a given extended regex. 4968# If you have `file' or equivalent on your system and you're not sure 4969# whether `pass_all' will *always* work, you probably want this one. 4970 4971case $host_os in 4972aix[4-9]*) 4973 lt_cv_deplibs_check_method=pass_all 4974 ;; 4975 4976beos*) 4977 lt_cv_deplibs_check_method=pass_all 4978 ;; 4979 4980bsdi[45]*) 4981 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4982 lt_cv_file_magic_cmd='/usr/bin/file -L' 4983 lt_cv_file_magic_test_file=/shlib/libc.so 4984 ;; 4985 4986cygwin*) 4987 # func_win32_libid is a shell function defined in ltmain.sh 4988 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4989 lt_cv_file_magic_cmd='func_win32_libid' 4990 ;; 4991 4992mingw* | pw32*) 4993 # Base MSYS/MinGW do not provide the 'file' command needed by 4994 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4995 # unless we find 'file', for example because we are cross-compiling. 4996 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 4997 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 4998 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4999 lt_cv_file_magic_cmd='func_win32_libid' 5000 else 5001 # Keep this pattern in sync with the one in func_win32_libid. 5002 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5003 lt_cv_file_magic_cmd='$OBJDUMP -f' 5004 fi 5005 ;; 5006 5007cegcc*) 5008 # use the weaker test based on 'objdump'. See mingw*. 5009 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5010 lt_cv_file_magic_cmd='$OBJDUMP -f' 5011 ;; 5012 5013darwin* | rhapsody*) 5014 lt_cv_deplibs_check_method=pass_all 5015 ;; 5016 5017freebsd* | dragonfly*) 5018 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5019 case $host_cpu in 5020 i*86 ) 5021 # Not sure whether the presence of OpenBSD here was a mistake. 5022 # Let's accept both of them until this is cleared up. 5023 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5024 lt_cv_file_magic_cmd=/usr/bin/file 5025 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5026 ;; 5027 esac 5028 else 5029 lt_cv_deplibs_check_method=pass_all 5030 fi 5031 ;; 5032 5033gnu*) 5034 lt_cv_deplibs_check_method=pass_all 5035 ;; 5036 5037haiku*) 5038 lt_cv_deplibs_check_method=pass_all 5039 ;; 5040 5041hpux10.20* | hpux11*) 5042 lt_cv_file_magic_cmd=/usr/bin/file 5043 case $host_cpu in 5044 ia64*) 5045 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5046 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5047 ;; 5048 hppa*64*) 5049 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]' 5050 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5051 ;; 5052 *) 5053 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5054 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5055 ;; 5056 esac 5057 ;; 5058 5059interix[3-9]*) 5060 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5061 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5062 ;; 5063 5064irix5* | irix6* | nonstopux*) 5065 case $LD in 5066 *-32|*"-32 ") libmagic=32-bit;; 5067 *-n32|*"-n32 ") libmagic=N32;; 5068 *-64|*"-64 ") libmagic=64-bit;; 5069 *) libmagic=never-match;; 5070 esac 5071 lt_cv_deplibs_check_method=pass_all 5072 ;; 5073 5074# This must be Linux ELF. 5075linux* | k*bsd*-gnu | kopensolaris*-gnu) 5076 lt_cv_deplibs_check_method=pass_all 5077 ;; 5078 5079netbsd*) 5080 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5082 else 5083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5084 fi 5085 ;; 5086 5087newos6*) 5088 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5089 lt_cv_file_magic_cmd=/usr/bin/file 5090 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5091 ;; 5092 5093*nto* | *qnx*) 5094 lt_cv_deplibs_check_method=pass_all 5095 ;; 5096 5097openbsd*) 5098 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5100 else 5101 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5102 fi 5103 ;; 5104 5105osf3* | osf4* | osf5*) 5106 lt_cv_deplibs_check_method=pass_all 5107 ;; 5108 5109rdos*) 5110 lt_cv_deplibs_check_method=pass_all 5111 ;; 5112 5113solaris*) 5114 lt_cv_deplibs_check_method=pass_all 5115 ;; 5116 5117sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5118 lt_cv_deplibs_check_method=pass_all 5119 ;; 5120 5121sysv4 | sysv4.3*) 5122 case $host_vendor in 5123 motorola) 5124 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]' 5125 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5126 ;; 5127 ncr) 5128 lt_cv_deplibs_check_method=pass_all 5129 ;; 5130 sequent) 5131 lt_cv_file_magic_cmd='/bin/file' 5132 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5133 ;; 5134 sni) 5135 lt_cv_file_magic_cmd='/bin/file' 5136 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5137 lt_cv_file_magic_test_file=/lib/libc.so 5138 ;; 5139 siemens) 5140 lt_cv_deplibs_check_method=pass_all 5141 ;; 5142 pc) 5143 lt_cv_deplibs_check_method=pass_all 5144 ;; 5145 esac 5146 ;; 5147 5148tpf*) 5149 lt_cv_deplibs_check_method=pass_all 5150 ;; 5151esac 5152 5153fi 5154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5155$as_echo "$lt_cv_deplibs_check_method" >&6; } 5156file_magic_cmd=$lt_cv_file_magic_cmd 5157deplibs_check_method=$lt_cv_deplibs_check_method 5158test -z "$deplibs_check_method" && deplibs_check_method=unknown 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171if test -n "$ac_tool_prefix"; then 5172 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5173set dummy ${ac_tool_prefix}ar; ac_word=$2 5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5175$as_echo_n "checking for $ac_word... " >&6; } 5176if test "${ac_cv_prog_AR+set}" = set; then : 5177 $as_echo_n "(cached) " >&6 5178else 5179 if test -n "$AR"; then 5180 ac_cv_prog_AR="$AR" # Let the user override the test. 5181else 5182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5183for as_dir in $PATH 5184do 5185 IFS=$as_save_IFS 5186 test -z "$as_dir" && as_dir=. 5187 for ac_exec_ext in '' $ac_executable_extensions; do 5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5189 ac_cv_prog_AR="${ac_tool_prefix}ar" 5190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5191 break 2 5192 fi 5193done 5194 done 5195IFS=$as_save_IFS 5196 5197fi 5198fi 5199AR=$ac_cv_prog_AR 5200if test -n "$AR"; then 5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5202$as_echo "$AR" >&6; } 5203else 5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5205$as_echo "no" >&6; } 5206fi 5207 5208 5209fi 5210if test -z "$ac_cv_prog_AR"; then 5211 ac_ct_AR=$AR 5212 # Extract the first word of "ar", so it can be a program name with args. 5213set dummy ar; ac_word=$2 5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5215$as_echo_n "checking for $ac_word... " >&6; } 5216if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5217 $as_echo_n "(cached) " >&6 5218else 5219 if test -n "$ac_ct_AR"; then 5220 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5221else 5222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5223for as_dir in $PATH 5224do 5225 IFS=$as_save_IFS 5226 test -z "$as_dir" && as_dir=. 5227 for ac_exec_ext in '' $ac_executable_extensions; do 5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5229 ac_cv_prog_ac_ct_AR="ar" 5230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5231 break 2 5232 fi 5233done 5234 done 5235IFS=$as_save_IFS 5236 5237fi 5238fi 5239ac_ct_AR=$ac_cv_prog_ac_ct_AR 5240if test -n "$ac_ct_AR"; then 5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5242$as_echo "$ac_ct_AR" >&6; } 5243else 5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5245$as_echo "no" >&6; } 5246fi 5247 5248 if test "x$ac_ct_AR" = x; then 5249 AR="false" 5250 else 5251 case $cross_compiling:$ac_tool_warned in 5252yes:) 5253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5255ac_tool_warned=yes ;; 5256esac 5257 AR=$ac_ct_AR 5258 fi 5259else 5260 AR="$ac_cv_prog_AR" 5261fi 5262 5263test -z "$AR" && AR=ar 5264test -z "$AR_FLAGS" && AR_FLAGS=cru 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276if test -n "$ac_tool_prefix"; then 5277 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5278set dummy ${ac_tool_prefix}strip; ac_word=$2 5279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5280$as_echo_n "checking for $ac_word... " >&6; } 5281if test "${ac_cv_prog_STRIP+set}" = set; then : 5282 $as_echo_n "(cached) " >&6 5283else 5284 if test -n "$STRIP"; then 5285 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5286else 5287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5288for as_dir in $PATH 5289do 5290 IFS=$as_save_IFS 5291 test -z "$as_dir" && as_dir=. 5292 for ac_exec_ext in '' $ac_executable_extensions; do 5293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5294 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5296 break 2 5297 fi 5298done 5299 done 5300IFS=$as_save_IFS 5301 5302fi 5303fi 5304STRIP=$ac_cv_prog_STRIP 5305if test -n "$STRIP"; then 5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5307$as_echo "$STRIP" >&6; } 5308else 5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5310$as_echo "no" >&6; } 5311fi 5312 5313 5314fi 5315if test -z "$ac_cv_prog_STRIP"; then 5316 ac_ct_STRIP=$STRIP 5317 # Extract the first word of "strip", so it can be a program name with args. 5318set dummy strip; ac_word=$2 5319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5320$as_echo_n "checking for $ac_word... " >&6; } 5321if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 5322 $as_echo_n "(cached) " >&6 5323else 5324 if test -n "$ac_ct_STRIP"; then 5325 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5326else 5327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5328for as_dir in $PATH 5329do 5330 IFS=$as_save_IFS 5331 test -z "$as_dir" && as_dir=. 5332 for ac_exec_ext in '' $ac_executable_extensions; do 5333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5334 ac_cv_prog_ac_ct_STRIP="strip" 5335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5336 break 2 5337 fi 5338done 5339 done 5340IFS=$as_save_IFS 5341 5342fi 5343fi 5344ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5345if test -n "$ac_ct_STRIP"; then 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5347$as_echo "$ac_ct_STRIP" >&6; } 5348else 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5350$as_echo "no" >&6; } 5351fi 5352 5353 if test "x$ac_ct_STRIP" = x; then 5354 STRIP=":" 5355 else 5356 case $cross_compiling:$ac_tool_warned in 5357yes:) 5358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5360ac_tool_warned=yes ;; 5361esac 5362 STRIP=$ac_ct_STRIP 5363 fi 5364else 5365 STRIP="$ac_cv_prog_STRIP" 5366fi 5367 5368test -z "$STRIP" && STRIP=: 5369 5370 5371 5372 5373 5374 5375if test -n "$ac_tool_prefix"; then 5376 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5377set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5379$as_echo_n "checking for $ac_word... " >&6; } 5380if test "${ac_cv_prog_RANLIB+set}" = set; then : 5381 $as_echo_n "(cached) " >&6 5382else 5383 if test -n "$RANLIB"; then 5384 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5385else 5386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5387for as_dir in $PATH 5388do 5389 IFS=$as_save_IFS 5390 test -z "$as_dir" && as_dir=. 5391 for ac_exec_ext in '' $ac_executable_extensions; do 5392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5393 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5395 break 2 5396 fi 5397done 5398 done 5399IFS=$as_save_IFS 5400 5401fi 5402fi 5403RANLIB=$ac_cv_prog_RANLIB 5404if test -n "$RANLIB"; then 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5406$as_echo "$RANLIB" >&6; } 5407else 5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5409$as_echo "no" >&6; } 5410fi 5411 5412 5413fi 5414if test -z "$ac_cv_prog_RANLIB"; then 5415 ac_ct_RANLIB=$RANLIB 5416 # Extract the first word of "ranlib", so it can be a program name with args. 5417set dummy ranlib; ac_word=$2 5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5419$as_echo_n "checking for $ac_word... " >&6; } 5420if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5421 $as_echo_n "(cached) " >&6 5422else 5423 if test -n "$ac_ct_RANLIB"; then 5424 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5425else 5426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5427for as_dir in $PATH 5428do 5429 IFS=$as_save_IFS 5430 test -z "$as_dir" && as_dir=. 5431 for ac_exec_ext in '' $ac_executable_extensions; do 5432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5433 ac_cv_prog_ac_ct_RANLIB="ranlib" 5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5435 break 2 5436 fi 5437done 5438 done 5439IFS=$as_save_IFS 5440 5441fi 5442fi 5443ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5444if test -n "$ac_ct_RANLIB"; then 5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5446$as_echo "$ac_ct_RANLIB" >&6; } 5447else 5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5449$as_echo "no" >&6; } 5450fi 5451 5452 if test "x$ac_ct_RANLIB" = x; then 5453 RANLIB=":" 5454 else 5455 case $cross_compiling:$ac_tool_warned in 5456yes:) 5457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5459ac_tool_warned=yes ;; 5460esac 5461 RANLIB=$ac_ct_RANLIB 5462 fi 5463else 5464 RANLIB="$ac_cv_prog_RANLIB" 5465fi 5466 5467test -z "$RANLIB" && RANLIB=: 5468 5469 5470 5471 5472 5473 5474# Determine commands to create old-style static archives. 5475old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5476old_postinstall_cmds='chmod 644 $oldlib' 5477old_postuninstall_cmds= 5478 5479if test -n "$RANLIB"; then 5480 case $host_os in 5481 openbsd*) 5482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5483 ;; 5484 *) 5485 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5486 ;; 5487 esac 5488 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5489fi 5490 5491case $host_os in 5492 darwin*) 5493 lock_old_archive_extraction=yes ;; 5494 *) 5495 lock_old_archive_extraction=no ;; 5496esac 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536# If no C compiler was specified, use CC. 5537LTCC=${LTCC-"$CC"} 5538 5539# If no C compiler flags were specified, use CFLAGS. 5540LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5541 5542# Allow CC to be a program name with arguments. 5543compiler=$CC 5544 5545 5546# Check for command to grab the raw symbol name followed by C symbol from nm. 5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5548$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5549if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 5550 $as_echo_n "(cached) " >&6 5551else 5552 5553# These are sane defaults that work on at least a few old systems. 5554# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5555 5556# Character class describing NM global symbol codes. 5557symcode='[BCDEGRST]' 5558 5559# Regexp to match symbols that can be accessed directly from C. 5560sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5561 5562# Define system-specific variables. 5563case $host_os in 5564aix*) 5565 symcode='[BCDT]' 5566 ;; 5567cygwin* | mingw* | pw32* | cegcc*) 5568 symcode='[ABCDGISTW]' 5569 ;; 5570hpux*) 5571 if test "$host_cpu" = ia64; then 5572 symcode='[ABCDEGRST]' 5573 fi 5574 ;; 5575irix* | nonstopux*) 5576 symcode='[BCDEGRST]' 5577 ;; 5578osf*) 5579 symcode='[BCDEGQRST]' 5580 ;; 5581solaris*) 5582 symcode='[BDRT]' 5583 ;; 5584sco3.2v5*) 5585 symcode='[DT]' 5586 ;; 5587sysv4.2uw2*) 5588 symcode='[DT]' 5589 ;; 5590sysv5* | sco5v6* | unixware* | OpenUNIX*) 5591 symcode='[ABDT]' 5592 ;; 5593sysv4) 5594 symcode='[DFNSTU]' 5595 ;; 5596esac 5597 5598# If we're using GNU nm, then use its standard symbol codes. 5599case `$NM -V 2>&1` in 5600*GNU* | *'with BFD'*) 5601 symcode='[ABCDGIRSTW]' ;; 5602esac 5603 5604# Transform an extracted symbol line into a proper C declaration. 5605# Some systems (esp. on ia64) link data and code symbols differently, 5606# so use this general approach. 5607lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5608 5609# Transform an extracted symbol line into symbol name and symbol address 5610lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5611lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 5612 5613# Handle CRLF in mingw tool chain 5614opt_cr= 5615case $build_os in 5616mingw*) 5617 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5618 ;; 5619esac 5620 5621# Try without a prefix underscore, then with it. 5622for ac_symprfx in "" "_"; do 5623 5624 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5625 symxfrm="\\1 $ac_symprfx\\2 \\2" 5626 5627 # Write the raw and C identifiers. 5628 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5629 # Fake it for dumpbin and say T for any non-static function 5630 # and D for any global variable. 5631 # Also find C++ and __fastcall symbols from MSVC++, 5632 # which start with @ or ?. 5633 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5634" {last_section=section; section=\$ 3};"\ 5635" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5636" \$ 0!~/External *\|/{next};"\ 5637" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5638" {if(hide[section]) next};"\ 5639" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5640" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5641" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5642" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5643" ' prfx=^$ac_symprfx" 5644 else 5645 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5646 fi 5647 5648 # Check to see that the pipe works correctly. 5649 pipe_works=no 5650 5651 rm -f conftest* 5652 cat > conftest.$ac_ext <<_LT_EOF 5653#ifdef __cplusplus 5654extern "C" { 5655#endif 5656char nm_test_var; 5657void nm_test_func(void); 5658void nm_test_func(void){} 5659#ifdef __cplusplus 5660} 5661#endif 5662int main(){nm_test_var='a';nm_test_func();return(0);} 5663_LT_EOF 5664 5665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5666 (eval $ac_compile) 2>&5 5667 ac_status=$? 5668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5669 test $ac_status = 0; }; then 5670 # Now try to grab the symbols. 5671 nlist=conftest.nm 5672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5673 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5674 ac_status=$? 5675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5676 test $ac_status = 0; } && test -s "$nlist"; then 5677 # Try sorting and uniquifying the output. 5678 if sort "$nlist" | uniq > "$nlist"T; then 5679 mv -f "$nlist"T "$nlist" 5680 else 5681 rm -f "$nlist"T 5682 fi 5683 5684 # Make sure that we snagged all the symbols we need. 5685 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5686 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5687 cat <<_LT_EOF > conftest.$ac_ext 5688#ifdef __cplusplus 5689extern "C" { 5690#endif 5691 5692_LT_EOF 5693 # Now generate the symbol file. 5694 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5695 5696 cat <<_LT_EOF >> conftest.$ac_ext 5697 5698/* The mapping between symbol names and symbols. */ 5699const struct { 5700 const char *name; 5701 void *address; 5702} 5703lt__PROGRAM__LTX_preloaded_symbols[] = 5704{ 5705 { "@PROGRAM@", (void *) 0 }, 5706_LT_EOF 5707 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5708 cat <<\_LT_EOF >> conftest.$ac_ext 5709 {0, (void *) 0} 5710}; 5711 5712/* This works around a problem in FreeBSD linker */ 5713#ifdef FREEBSD_WORKAROUND 5714static const void *lt_preloaded_setup() { 5715 return lt__PROGRAM__LTX_preloaded_symbols; 5716} 5717#endif 5718 5719#ifdef __cplusplus 5720} 5721#endif 5722_LT_EOF 5723 # Now try linking the two files. 5724 mv conftest.$ac_objext conftstm.$ac_objext 5725 lt_save_LIBS="$LIBS" 5726 lt_save_CFLAGS="$CFLAGS" 5727 LIBS="conftstm.$ac_objext" 5728 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5730 (eval $ac_link) 2>&5 5731 ac_status=$? 5732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5733 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5734 pipe_works=yes 5735 fi 5736 LIBS="$lt_save_LIBS" 5737 CFLAGS="$lt_save_CFLAGS" 5738 else 5739 echo "cannot find nm_test_func in $nlist" >&5 5740 fi 5741 else 5742 echo "cannot find nm_test_var in $nlist" >&5 5743 fi 5744 else 5745 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5746 fi 5747 else 5748 echo "$progname: failed program was:" >&5 5749 cat conftest.$ac_ext >&5 5750 fi 5751 rm -rf conftest* conftst* 5752 5753 # Do not use the global_symbol_pipe unless it works. 5754 if test "$pipe_works" = yes; then 5755 break 5756 else 5757 lt_cv_sys_global_symbol_pipe= 5758 fi 5759done 5760 5761fi 5762 5763if test -z "$lt_cv_sys_global_symbol_pipe"; then 5764 lt_cv_sys_global_symbol_to_cdecl= 5765fi 5766if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5768$as_echo "failed" >&6; } 5769else 5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5771$as_echo "ok" >&6; } 5772fi 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796# Check whether --enable-libtool-lock was given. 5797if test "${enable_libtool_lock+set}" = set; then : 5798 enableval=$enable_libtool_lock; 5799fi 5800 5801test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5802 5803# Some flags need to be propagated to the compiler or linker for good 5804# libtool support. 5805case $host in 5806ia64-*-hpux*) 5807 # Find out which ABI we are using. 5808 echo 'int i;' > conftest.$ac_ext 5809 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5810 (eval $ac_compile) 2>&5 5811 ac_status=$? 5812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5813 test $ac_status = 0; }; then 5814 case `/usr/bin/file conftest.$ac_objext` in 5815 *ELF-32*) 5816 HPUX_IA64_MODE="32" 5817 ;; 5818 *ELF-64*) 5819 HPUX_IA64_MODE="64" 5820 ;; 5821 esac 5822 fi 5823 rm -rf conftest* 5824 ;; 5825*-*-irix6*) 5826 # Find out which ABI we are using. 5827 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 5828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5829 (eval $ac_compile) 2>&5 5830 ac_status=$? 5831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5832 test $ac_status = 0; }; then 5833 if test "$lt_cv_prog_gnu_ld" = yes; then 5834 case `/usr/bin/file conftest.$ac_objext` in 5835 *32-bit*) 5836 LD="${LD-ld} -melf32bsmip" 5837 ;; 5838 *N32*) 5839 LD="${LD-ld} -melf32bmipn32" 5840 ;; 5841 *64-bit*) 5842 LD="${LD-ld} -melf64bmip" 5843 ;; 5844 esac 5845 else 5846 case `/usr/bin/file conftest.$ac_objext` in 5847 *32-bit*) 5848 LD="${LD-ld} -32" 5849 ;; 5850 *N32*) 5851 LD="${LD-ld} -n32" 5852 ;; 5853 *64-bit*) 5854 LD="${LD-ld} -64" 5855 ;; 5856 esac 5857 fi 5858 fi 5859 rm -rf conftest* 5860 ;; 5861 5862x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5863s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5864 # Find out which ABI we are using. 5865 echo 'int i;' > conftest.$ac_ext 5866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5867 (eval $ac_compile) 2>&5 5868 ac_status=$? 5869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5870 test $ac_status = 0; }; then 5871 case `/usr/bin/file conftest.o` in 5872 *32-bit*) 5873 case $host in 5874 x86_64-*kfreebsd*-gnu) 5875 LD="${LD-ld} -m elf_i386_fbsd" 5876 ;; 5877 x86_64-*linux*) 5878 LD="${LD-ld} -m elf_i386" 5879 ;; 5880 ppc64-*linux*|powerpc64-*linux*) 5881 LD="${LD-ld} -m elf32ppclinux" 5882 ;; 5883 s390x-*linux*) 5884 LD="${LD-ld} -m elf_s390" 5885 ;; 5886 sparc64-*linux*) 5887 LD="${LD-ld} -m elf32_sparc" 5888 ;; 5889 esac 5890 ;; 5891 *64-bit*) 5892 case $host in 5893 x86_64-*kfreebsd*-gnu) 5894 LD="${LD-ld} -m elf_x86_64_fbsd" 5895 ;; 5896 x86_64-*linux*) 5897 LD="${LD-ld} -m elf_x86_64" 5898 ;; 5899 ppc*-*linux*|powerpc*-*linux*) 5900 LD="${LD-ld} -m elf64ppc" 5901 ;; 5902 s390*-*linux*|s390*-*tpf*) 5903 LD="${LD-ld} -m elf64_s390" 5904 ;; 5905 sparc*-*linux*) 5906 LD="${LD-ld} -m elf64_sparc" 5907 ;; 5908 esac 5909 ;; 5910 esac 5911 fi 5912 rm -rf conftest* 5913 ;; 5914 5915*-*-sco3.2v5*) 5916 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5917 SAVE_CFLAGS="$CFLAGS" 5918 CFLAGS="$CFLAGS -belf" 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 5920$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 5921if test "${lt_cv_cc_needs_belf+set}" = set; then : 5922 $as_echo_n "(cached) " >&6 5923else 5924 ac_ext=c 5925ac_cpp='$CPP $CPPFLAGS' 5926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5928ac_compiler_gnu=$ac_cv_c_compiler_gnu 5929 5930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5931/* end confdefs.h. */ 5932 5933int 5934main () 5935{ 5936 5937 ; 5938 return 0; 5939} 5940_ACEOF 5941if ac_fn_c_try_link "$LINENO"; then : 5942 lt_cv_cc_needs_belf=yes 5943else 5944 lt_cv_cc_needs_belf=no 5945fi 5946rm -f core conftest.err conftest.$ac_objext \ 5947 conftest$ac_exeext conftest.$ac_ext 5948 ac_ext=c 5949ac_cpp='$CPP $CPPFLAGS' 5950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5952ac_compiler_gnu=$ac_cv_c_compiler_gnu 5953 5954fi 5955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 5956$as_echo "$lt_cv_cc_needs_belf" >&6; } 5957 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5958 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5959 CFLAGS="$SAVE_CFLAGS" 5960 fi 5961 ;; 5962sparc*-*solaris*) 5963 # Find out which ABI we are using. 5964 echo 'int i;' > conftest.$ac_ext 5965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5966 (eval $ac_compile) 2>&5 5967 ac_status=$? 5968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5969 test $ac_status = 0; }; then 5970 case `/usr/bin/file conftest.o` in 5971 *64-bit*) 5972 case $lt_cv_prog_gnu_ld in 5973 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5974 *) 5975 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 5976 LD="${LD-ld} -64" 5977 fi 5978 ;; 5979 esac 5980 ;; 5981 esac 5982 fi 5983 rm -rf conftest* 5984 ;; 5985esac 5986 5987need_locks="$enable_libtool_lock" 5988 5989 5990 case $host_os in 5991 rhapsody* | darwin*) 5992 if test -n "$ac_tool_prefix"; then 5993 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 5994set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 5995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5996$as_echo_n "checking for $ac_word... " >&6; } 5997if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 5998 $as_echo_n "(cached) " >&6 5999else 6000 if test -n "$DSYMUTIL"; then 6001 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6002else 6003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6004for as_dir in $PATH 6005do 6006 IFS=$as_save_IFS 6007 test -z "$as_dir" && as_dir=. 6008 for ac_exec_ext in '' $ac_executable_extensions; do 6009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6010 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6012 break 2 6013 fi 6014done 6015 done 6016IFS=$as_save_IFS 6017 6018fi 6019fi 6020DSYMUTIL=$ac_cv_prog_DSYMUTIL 6021if test -n "$DSYMUTIL"; then 6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6023$as_echo "$DSYMUTIL" >&6; } 6024else 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6026$as_echo "no" >&6; } 6027fi 6028 6029 6030fi 6031if test -z "$ac_cv_prog_DSYMUTIL"; then 6032 ac_ct_DSYMUTIL=$DSYMUTIL 6033 # Extract the first word of "dsymutil", so it can be a program name with args. 6034set dummy dsymutil; ac_word=$2 6035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6036$as_echo_n "checking for $ac_word... " >&6; } 6037if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 6038 $as_echo_n "(cached) " >&6 6039else 6040 if test -n "$ac_ct_DSYMUTIL"; then 6041 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6042else 6043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6044for as_dir in $PATH 6045do 6046 IFS=$as_save_IFS 6047 test -z "$as_dir" && as_dir=. 6048 for ac_exec_ext in '' $ac_executable_extensions; do 6049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6050 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6052 break 2 6053 fi 6054done 6055 done 6056IFS=$as_save_IFS 6057 6058fi 6059fi 6060ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6061if test -n "$ac_ct_DSYMUTIL"; then 6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6063$as_echo "$ac_ct_DSYMUTIL" >&6; } 6064else 6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6066$as_echo "no" >&6; } 6067fi 6068 6069 if test "x$ac_ct_DSYMUTIL" = x; then 6070 DSYMUTIL=":" 6071 else 6072 case $cross_compiling:$ac_tool_warned in 6073yes:) 6074{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6075$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6076ac_tool_warned=yes ;; 6077esac 6078 DSYMUTIL=$ac_ct_DSYMUTIL 6079 fi 6080else 6081 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6082fi 6083 6084 if test -n "$ac_tool_prefix"; then 6085 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6086set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6088$as_echo_n "checking for $ac_word... " >&6; } 6089if test "${ac_cv_prog_NMEDIT+set}" = set; then : 6090 $as_echo_n "(cached) " >&6 6091else 6092 if test -n "$NMEDIT"; then 6093 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6094else 6095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6096for as_dir in $PATH 6097do 6098 IFS=$as_save_IFS 6099 test -z "$as_dir" && as_dir=. 6100 for ac_exec_ext in '' $ac_executable_extensions; do 6101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6102 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6104 break 2 6105 fi 6106done 6107 done 6108IFS=$as_save_IFS 6109 6110fi 6111fi 6112NMEDIT=$ac_cv_prog_NMEDIT 6113if test -n "$NMEDIT"; then 6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6115$as_echo "$NMEDIT" >&6; } 6116else 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6118$as_echo "no" >&6; } 6119fi 6120 6121 6122fi 6123if test -z "$ac_cv_prog_NMEDIT"; then 6124 ac_ct_NMEDIT=$NMEDIT 6125 # Extract the first word of "nmedit", so it can be a program name with args. 6126set dummy nmedit; ac_word=$2 6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6128$as_echo_n "checking for $ac_word... " >&6; } 6129if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 6130 $as_echo_n "(cached) " >&6 6131else 6132 if test -n "$ac_ct_NMEDIT"; then 6133 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6134else 6135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6136for as_dir in $PATH 6137do 6138 IFS=$as_save_IFS 6139 test -z "$as_dir" && as_dir=. 6140 for ac_exec_ext in '' $ac_executable_extensions; do 6141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6142 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6144 break 2 6145 fi 6146done 6147 done 6148IFS=$as_save_IFS 6149 6150fi 6151fi 6152ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6153if test -n "$ac_ct_NMEDIT"; then 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6155$as_echo "$ac_ct_NMEDIT" >&6; } 6156else 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6158$as_echo "no" >&6; } 6159fi 6160 6161 if test "x$ac_ct_NMEDIT" = x; then 6162 NMEDIT=":" 6163 else 6164 case $cross_compiling:$ac_tool_warned in 6165yes:) 6166{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6167$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6168ac_tool_warned=yes ;; 6169esac 6170 NMEDIT=$ac_ct_NMEDIT 6171 fi 6172else 6173 NMEDIT="$ac_cv_prog_NMEDIT" 6174fi 6175 6176 if test -n "$ac_tool_prefix"; then 6177 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6178set dummy ${ac_tool_prefix}lipo; ac_word=$2 6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6180$as_echo_n "checking for $ac_word... " >&6; } 6181if test "${ac_cv_prog_LIPO+set}" = set; then : 6182 $as_echo_n "(cached) " >&6 6183else 6184 if test -n "$LIPO"; then 6185 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6186else 6187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6188for as_dir in $PATH 6189do 6190 IFS=$as_save_IFS 6191 test -z "$as_dir" && as_dir=. 6192 for ac_exec_ext in '' $ac_executable_extensions; do 6193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6194 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6196 break 2 6197 fi 6198done 6199 done 6200IFS=$as_save_IFS 6201 6202fi 6203fi 6204LIPO=$ac_cv_prog_LIPO 6205if test -n "$LIPO"; then 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6207$as_echo "$LIPO" >&6; } 6208else 6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6210$as_echo "no" >&6; } 6211fi 6212 6213 6214fi 6215if test -z "$ac_cv_prog_LIPO"; then 6216 ac_ct_LIPO=$LIPO 6217 # Extract the first word of "lipo", so it can be a program name with args. 6218set dummy lipo; ac_word=$2 6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6220$as_echo_n "checking for $ac_word... " >&6; } 6221if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 6222 $as_echo_n "(cached) " >&6 6223else 6224 if test -n "$ac_ct_LIPO"; then 6225 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6226else 6227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6228for as_dir in $PATH 6229do 6230 IFS=$as_save_IFS 6231 test -z "$as_dir" && as_dir=. 6232 for ac_exec_ext in '' $ac_executable_extensions; do 6233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6234 ac_cv_prog_ac_ct_LIPO="lipo" 6235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6236 break 2 6237 fi 6238done 6239 done 6240IFS=$as_save_IFS 6241 6242fi 6243fi 6244ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6245if test -n "$ac_ct_LIPO"; then 6246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6247$as_echo "$ac_ct_LIPO" >&6; } 6248else 6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6250$as_echo "no" >&6; } 6251fi 6252 6253 if test "x$ac_ct_LIPO" = x; then 6254 LIPO=":" 6255 else 6256 case $cross_compiling:$ac_tool_warned in 6257yes:) 6258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6260ac_tool_warned=yes ;; 6261esac 6262 LIPO=$ac_ct_LIPO 6263 fi 6264else 6265 LIPO="$ac_cv_prog_LIPO" 6266fi 6267 6268 if test -n "$ac_tool_prefix"; then 6269 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6270set dummy ${ac_tool_prefix}otool; ac_word=$2 6271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6272$as_echo_n "checking for $ac_word... " >&6; } 6273if test "${ac_cv_prog_OTOOL+set}" = set; then : 6274 $as_echo_n "(cached) " >&6 6275else 6276 if test -n "$OTOOL"; then 6277 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6278else 6279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6280for as_dir in $PATH 6281do 6282 IFS=$as_save_IFS 6283 test -z "$as_dir" && as_dir=. 6284 for ac_exec_ext in '' $ac_executable_extensions; do 6285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6286 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6288 break 2 6289 fi 6290done 6291 done 6292IFS=$as_save_IFS 6293 6294fi 6295fi 6296OTOOL=$ac_cv_prog_OTOOL 6297if test -n "$OTOOL"; then 6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6299$as_echo "$OTOOL" >&6; } 6300else 6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6302$as_echo "no" >&6; } 6303fi 6304 6305 6306fi 6307if test -z "$ac_cv_prog_OTOOL"; then 6308 ac_ct_OTOOL=$OTOOL 6309 # Extract the first word of "otool", so it can be a program name with args. 6310set dummy otool; ac_word=$2 6311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6312$as_echo_n "checking for $ac_word... " >&6; } 6313if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 6314 $as_echo_n "(cached) " >&6 6315else 6316 if test -n "$ac_ct_OTOOL"; then 6317 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6318else 6319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6320for as_dir in $PATH 6321do 6322 IFS=$as_save_IFS 6323 test -z "$as_dir" && as_dir=. 6324 for ac_exec_ext in '' $ac_executable_extensions; do 6325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6326 ac_cv_prog_ac_ct_OTOOL="otool" 6327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6328 break 2 6329 fi 6330done 6331 done 6332IFS=$as_save_IFS 6333 6334fi 6335fi 6336ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6337if test -n "$ac_ct_OTOOL"; then 6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6339$as_echo "$ac_ct_OTOOL" >&6; } 6340else 6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6342$as_echo "no" >&6; } 6343fi 6344 6345 if test "x$ac_ct_OTOOL" = x; then 6346 OTOOL=":" 6347 else 6348 case $cross_compiling:$ac_tool_warned in 6349yes:) 6350{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6351$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6352ac_tool_warned=yes ;; 6353esac 6354 OTOOL=$ac_ct_OTOOL 6355 fi 6356else 6357 OTOOL="$ac_cv_prog_OTOOL" 6358fi 6359 6360 if test -n "$ac_tool_prefix"; then 6361 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6362set dummy ${ac_tool_prefix}otool64; ac_word=$2 6363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6364$as_echo_n "checking for $ac_word... " >&6; } 6365if test "${ac_cv_prog_OTOOL64+set}" = set; then : 6366 $as_echo_n "(cached) " >&6 6367else 6368 if test -n "$OTOOL64"; then 6369 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6370else 6371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6372for as_dir in $PATH 6373do 6374 IFS=$as_save_IFS 6375 test -z "$as_dir" && as_dir=. 6376 for ac_exec_ext in '' $ac_executable_extensions; do 6377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6378 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6380 break 2 6381 fi 6382done 6383 done 6384IFS=$as_save_IFS 6385 6386fi 6387fi 6388OTOOL64=$ac_cv_prog_OTOOL64 6389if test -n "$OTOOL64"; then 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6391$as_echo "$OTOOL64" >&6; } 6392else 6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6394$as_echo "no" >&6; } 6395fi 6396 6397 6398fi 6399if test -z "$ac_cv_prog_OTOOL64"; then 6400 ac_ct_OTOOL64=$OTOOL64 6401 # Extract the first word of "otool64", so it can be a program name with args. 6402set dummy otool64; ac_word=$2 6403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6404$as_echo_n "checking for $ac_word... " >&6; } 6405if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 6406 $as_echo_n "(cached) " >&6 6407else 6408 if test -n "$ac_ct_OTOOL64"; then 6409 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6410else 6411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6412for as_dir in $PATH 6413do 6414 IFS=$as_save_IFS 6415 test -z "$as_dir" && as_dir=. 6416 for ac_exec_ext in '' $ac_executable_extensions; do 6417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6418 ac_cv_prog_ac_ct_OTOOL64="otool64" 6419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6420 break 2 6421 fi 6422done 6423 done 6424IFS=$as_save_IFS 6425 6426fi 6427fi 6428ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6429if test -n "$ac_ct_OTOOL64"; then 6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6431$as_echo "$ac_ct_OTOOL64" >&6; } 6432else 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6434$as_echo "no" >&6; } 6435fi 6436 6437 if test "x$ac_ct_OTOOL64" = x; then 6438 OTOOL64=":" 6439 else 6440 case $cross_compiling:$ac_tool_warned in 6441yes:) 6442{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6443$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6444ac_tool_warned=yes ;; 6445esac 6446 OTOOL64=$ac_ct_OTOOL64 6447 fi 6448else 6449 OTOOL64="$ac_cv_prog_OTOOL64" 6450fi 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6479$as_echo_n "checking for -single_module linker flag... " >&6; } 6480if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 6481 $as_echo_n "(cached) " >&6 6482else 6483 lt_cv_apple_cc_single_mod=no 6484 if test -z "${LT_MULTI_MODULE}"; then 6485 # By default we will add the -single_module flag. You can override 6486 # by either setting the environment variable LT_MULTI_MODULE 6487 # non-empty at configure time, or by adding -multi_module to the 6488 # link flags. 6489 rm -rf libconftest.dylib* 6490 echo "int foo(void){return 1;}" > conftest.c 6491 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6492-dynamiclib -Wl,-single_module conftest.c" >&5 6493 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6494 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6495 _lt_result=$? 6496 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6497 lt_cv_apple_cc_single_mod=yes 6498 else 6499 cat conftest.err >&5 6500 fi 6501 rm -rf libconftest.dylib* 6502 rm -f conftest.* 6503 fi 6504fi 6505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6506$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6508$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6509if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 6510 $as_echo_n "(cached) " >&6 6511else 6512 lt_cv_ld_exported_symbols_list=no 6513 save_LDFLAGS=$LDFLAGS 6514 echo "_main" > conftest.sym 6515 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6517/* end confdefs.h. */ 6518 6519int 6520main () 6521{ 6522 6523 ; 6524 return 0; 6525} 6526_ACEOF 6527if ac_fn_c_try_link "$LINENO"; then : 6528 lt_cv_ld_exported_symbols_list=yes 6529else 6530 lt_cv_ld_exported_symbols_list=no 6531fi 6532rm -f core conftest.err conftest.$ac_objext \ 6533 conftest$ac_exeext conftest.$ac_ext 6534 LDFLAGS="$save_LDFLAGS" 6535 6536fi 6537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6538$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6540$as_echo_n "checking for -force_load linker flag... " >&6; } 6541if test "${lt_cv_ld_force_load+set}" = set; then : 6542 $as_echo_n "(cached) " >&6 6543else 6544 lt_cv_ld_force_load=no 6545 cat > conftest.c << _LT_EOF 6546int forced_loaded() { return 2;} 6547_LT_EOF 6548 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6549 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6550 echo "$AR cru libconftest.a conftest.o" >&5 6551 $AR cru libconftest.a conftest.o 2>&5 6552 echo "$RANLIB libconftest.a" >&5 6553 $RANLIB libconftest.a 2>&5 6554 cat > conftest.c << _LT_EOF 6555int main() { return 0;} 6556_LT_EOF 6557 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6558 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6559 _lt_result=$? 6560 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 6561 lt_cv_ld_force_load=yes 6562 else 6563 cat conftest.err >&5 6564 fi 6565 rm -f conftest.err libconftest.a conftest conftest.c 6566 rm -rf conftest.dSYM 6567 6568fi 6569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6570$as_echo "$lt_cv_ld_force_load" >&6; } 6571 case $host_os in 6572 rhapsody* | darwin1.[012]) 6573 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6574 darwin1.*) 6575 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6576 darwin*) # darwin 5.x on 6577 # if running on 10.5 or later, the deployment target defaults 6578 # to the OS version, if on x86, and 10.4, the deployment 6579 # target defaults to 10.4. Don't you love it? 6580 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6581 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6582 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6583 10.[012]*) 6584 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6585 10.*) 6586 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6587 esac 6588 ;; 6589 esac 6590 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6591 _lt_dar_single_mod='$single_module' 6592 fi 6593 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6594 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6595 else 6596 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6597 fi 6598 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 6599 _lt_dsymutil='~$DSYMUTIL $lib || :' 6600 else 6601 _lt_dsymutil= 6602 fi 6603 ;; 6604 esac 6605 6606ac_ext=c 6607ac_cpp='$CPP $CPPFLAGS' 6608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6610ac_compiler_gnu=$ac_cv_c_compiler_gnu 6611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6612$as_echo_n "checking how to run the C preprocessor... " >&6; } 6613# On Suns, sometimes $CPP names a directory. 6614if test -n "$CPP" && test -d "$CPP"; then 6615 CPP= 6616fi 6617if test -z "$CPP"; then 6618 if test "${ac_cv_prog_CPP+set}" = set; then : 6619 $as_echo_n "(cached) " >&6 6620else 6621 # Double quotes because CPP needs to be expanded 6622 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6623 do 6624 ac_preproc_ok=false 6625for ac_c_preproc_warn_flag in '' yes 6626do 6627 # Use a header file that comes with gcc, so configuring glibc 6628 # with a fresh cross-compiler works. 6629 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6630 # <limits.h> exists even on freestanding compilers. 6631 # On the NeXT, cc -E runs the code through the compiler's parser, 6632 # not just through cpp. "Syntax error" is here to catch this case. 6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6634/* end confdefs.h. */ 6635#ifdef __STDC__ 6636# include <limits.h> 6637#else 6638# include <assert.h> 6639#endif 6640 Syntax error 6641_ACEOF 6642if ac_fn_c_try_cpp "$LINENO"; then : 6643 6644else 6645 # Broken: fails on valid input. 6646continue 6647fi 6648rm -f conftest.err conftest.$ac_ext 6649 6650 # OK, works on sane cases. Now check whether nonexistent headers 6651 # can be detected and how. 6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6653/* end confdefs.h. */ 6654#include <ac_nonexistent.h> 6655_ACEOF 6656if ac_fn_c_try_cpp "$LINENO"; then : 6657 # Broken: success on invalid input. 6658continue 6659else 6660 # Passes both tests. 6661ac_preproc_ok=: 6662break 6663fi 6664rm -f conftest.err conftest.$ac_ext 6665 6666done 6667# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6668rm -f conftest.err conftest.$ac_ext 6669if $ac_preproc_ok; then : 6670 break 6671fi 6672 6673 done 6674 ac_cv_prog_CPP=$CPP 6675 6676fi 6677 CPP=$ac_cv_prog_CPP 6678else 6679 ac_cv_prog_CPP=$CPP 6680fi 6681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6682$as_echo "$CPP" >&6; } 6683ac_preproc_ok=false 6684for ac_c_preproc_warn_flag in '' yes 6685do 6686 # Use a header file that comes with gcc, so configuring glibc 6687 # with a fresh cross-compiler works. 6688 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6689 # <limits.h> exists even on freestanding compilers. 6690 # On the NeXT, cc -E runs the code through the compiler's parser, 6691 # not just through cpp. "Syntax error" is here to catch this case. 6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6693/* end confdefs.h. */ 6694#ifdef __STDC__ 6695# include <limits.h> 6696#else 6697# include <assert.h> 6698#endif 6699 Syntax error 6700_ACEOF 6701if ac_fn_c_try_cpp "$LINENO"; then : 6702 6703else 6704 # Broken: fails on valid input. 6705continue 6706fi 6707rm -f conftest.err conftest.$ac_ext 6708 6709 # OK, works on sane cases. Now check whether nonexistent headers 6710 # can be detected and how. 6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6712/* end confdefs.h. */ 6713#include <ac_nonexistent.h> 6714_ACEOF 6715if ac_fn_c_try_cpp "$LINENO"; then : 6716 # Broken: success on invalid input. 6717continue 6718else 6719 # Passes both tests. 6720ac_preproc_ok=: 6721break 6722fi 6723rm -f conftest.err conftest.$ac_ext 6724 6725done 6726# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6727rm -f conftest.err conftest.$ac_ext 6728if $ac_preproc_ok; then : 6729 6730else 6731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6733as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6734See \`config.log' for more details" "$LINENO" 5; } 6735fi 6736 6737ac_ext=c 6738ac_cpp='$CPP $CPPFLAGS' 6739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6741ac_compiler_gnu=$ac_cv_c_compiler_gnu 6742 6743 6744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6745$as_echo_n "checking for ANSI C header files... " >&6; } 6746if test "${ac_cv_header_stdc+set}" = set; then : 6747 $as_echo_n "(cached) " >&6 6748else 6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6750/* end confdefs.h. */ 6751#include <stdlib.h> 6752#include <stdarg.h> 6753#include <string.h> 6754#include <float.h> 6755 6756int 6757main () 6758{ 6759 6760 ; 6761 return 0; 6762} 6763_ACEOF 6764if ac_fn_c_try_compile "$LINENO"; then : 6765 ac_cv_header_stdc=yes 6766else 6767 ac_cv_header_stdc=no 6768fi 6769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6770 6771if test $ac_cv_header_stdc = yes; then 6772 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6774/* end confdefs.h. */ 6775#include <string.h> 6776 6777_ACEOF 6778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6779 $EGREP "memchr" >/dev/null 2>&1; then : 6780 6781else 6782 ac_cv_header_stdc=no 6783fi 6784rm -f conftest* 6785 6786fi 6787 6788if test $ac_cv_header_stdc = yes; then 6789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6791/* end confdefs.h. */ 6792#include <stdlib.h> 6793 6794_ACEOF 6795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6796 $EGREP "free" >/dev/null 2>&1; then : 6797 6798else 6799 ac_cv_header_stdc=no 6800fi 6801rm -f conftest* 6802 6803fi 6804 6805if test $ac_cv_header_stdc = yes; then 6806 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6807 if test "$cross_compiling" = yes; then : 6808 : 6809else 6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6811/* end confdefs.h. */ 6812#include <ctype.h> 6813#include <stdlib.h> 6814#if ((' ' & 0x0FF) == 0x020) 6815# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6816# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6817#else 6818# define ISLOWER(c) \ 6819 (('a' <= (c) && (c) <= 'i') \ 6820 || ('j' <= (c) && (c) <= 'r') \ 6821 || ('s' <= (c) && (c) <= 'z')) 6822# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6823#endif 6824 6825#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6826int 6827main () 6828{ 6829 int i; 6830 for (i = 0; i < 256; i++) 6831 if (XOR (islower (i), ISLOWER (i)) 6832 || toupper (i) != TOUPPER (i)) 6833 return 2; 6834 return 0; 6835} 6836_ACEOF 6837if ac_fn_c_try_run "$LINENO"; then : 6838 6839else 6840 ac_cv_header_stdc=no 6841fi 6842rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6843 conftest.$ac_objext conftest.beam conftest.$ac_ext 6844fi 6845 6846fi 6847fi 6848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6849$as_echo "$ac_cv_header_stdc" >&6; } 6850if test $ac_cv_header_stdc = yes; then 6851 6852$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6853 6854fi 6855 6856# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6857for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6858 inttypes.h stdint.h unistd.h 6859do : 6860 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6861ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6862" 6863if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6864 cat >>confdefs.h <<_ACEOF 6865#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6866_ACEOF 6867 6868fi 6869 6870done 6871 6872 6873for ac_header in dlfcn.h 6874do : 6875 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 6876" 6877if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 6878 cat >>confdefs.h <<_ACEOF 6879#define HAVE_DLFCN_H 1 6880_ACEOF 6881 6882fi 6883 6884done 6885 6886 6887 6888 6889 6890# Set options 6891 6892 6893 6894 enable_dlopen=no 6895 6896 6897 enable_win32_dll=no 6898 6899 6900 # Check whether --enable-shared was given. 6901if test "${enable_shared+set}" = set; then : 6902 enableval=$enable_shared; p=${PACKAGE-default} 6903 case $enableval in 6904 yes) enable_shared=yes ;; 6905 no) enable_shared=no ;; 6906 *) 6907 enable_shared=no 6908 # Look at the argument we got. We use all the common list separators. 6909 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6910 for pkg in $enableval; do 6911 IFS="$lt_save_ifs" 6912 if test "X$pkg" = "X$p"; then 6913 enable_shared=yes 6914 fi 6915 done 6916 IFS="$lt_save_ifs" 6917 ;; 6918 esac 6919else 6920 enable_shared=yes 6921fi 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 # Check whether --enable-static was given. 6932if test "${enable_static+set}" = set; then : 6933 enableval=$enable_static; p=${PACKAGE-default} 6934 case $enableval in 6935 yes) enable_static=yes ;; 6936 no) enable_static=no ;; 6937 *) 6938 enable_static=no 6939 # Look at the argument we got. We use all the common list separators. 6940 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6941 for pkg in $enableval; do 6942 IFS="$lt_save_ifs" 6943 if test "X$pkg" = "X$p"; then 6944 enable_static=yes 6945 fi 6946 done 6947 IFS="$lt_save_ifs" 6948 ;; 6949 esac 6950else 6951 enable_static=yes 6952fi 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963# Check whether --with-pic was given. 6964if test "${with_pic+set}" = set; then : 6965 withval=$with_pic; pic_mode="$withval" 6966else 6967 pic_mode=default 6968fi 6969 6970 6971test -z "$pic_mode" && pic_mode=default 6972 6973 6974 6975 6976 6977 6978 6979 # Check whether --enable-fast-install was given. 6980if test "${enable_fast_install+set}" = set; then : 6981 enableval=$enable_fast_install; p=${PACKAGE-default} 6982 case $enableval in 6983 yes) enable_fast_install=yes ;; 6984 no) enable_fast_install=no ;; 6985 *) 6986 enable_fast_install=no 6987 # Look at the argument we got. We use all the common list separators. 6988 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 6989 for pkg in $enableval; do 6990 IFS="$lt_save_ifs" 6991 if test "X$pkg" = "X$p"; then 6992 enable_fast_install=yes 6993 fi 6994 done 6995 IFS="$lt_save_ifs" 6996 ;; 6997 esac 6998else 6999 enable_fast_install=yes 7000fi 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012# This can be used to rebuild libtool when needed 7013LIBTOOL_DEPS="$ltmain" 7014 7015# Always use our own libtool. 7016LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043test -z "$LN_S" && LN_S="ln -s" 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058if test -n "${ZSH_VERSION+set}" ; then 7059 setopt NO_GLOB_SUBST 7060fi 7061 7062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7063$as_echo_n "checking for objdir... " >&6; } 7064if test "${lt_cv_objdir+set}" = set; then : 7065 $as_echo_n "(cached) " >&6 7066else 7067 rm -f .libs 2>/dev/null 7068mkdir .libs 2>/dev/null 7069if test -d .libs; then 7070 lt_cv_objdir=.libs 7071else 7072 # MS-DOS does not allow filenames that begin with a dot. 7073 lt_cv_objdir=_libs 7074fi 7075rmdir .libs 2>/dev/null 7076fi 7077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7078$as_echo "$lt_cv_objdir" >&6; } 7079objdir=$lt_cv_objdir 7080 7081 7082 7083 7084 7085cat >>confdefs.h <<_ACEOF 7086#define LT_OBJDIR "$lt_cv_objdir/" 7087_ACEOF 7088 7089 7090 7091 7092case $host_os in 7093aix3*) 7094 # AIX sometimes has problems with the GCC collect2 program. For some 7095 # reason, if we set the COLLECT_NAMES environment variable, the problems 7096 # vanish in a puff of smoke. 7097 if test "X${COLLECT_NAMES+set}" != Xset; then 7098 COLLECT_NAMES= 7099 export COLLECT_NAMES 7100 fi 7101 ;; 7102esac 7103 7104# Global variables: 7105ofile=libtool 7106can_build_shared=yes 7107 7108# All known linkers require a `.a' archive for static linking (except MSVC, 7109# which needs '.lib'). 7110libext=a 7111 7112with_gnu_ld="$lt_cv_prog_gnu_ld" 7113 7114old_CC="$CC" 7115old_CFLAGS="$CFLAGS" 7116 7117# Set sane defaults for various variables 7118test -z "$CC" && CC=cc 7119test -z "$LTCC" && LTCC=$CC 7120test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7121test -z "$LD" && LD=ld 7122test -z "$ac_objext" && ac_objext=o 7123 7124for cc_temp in $compiler""; do 7125 case $cc_temp in 7126 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7127 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7128 \-*) ;; 7129 *) break;; 7130 esac 7131done 7132cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7133 7134 7135# Only perform the check for file, if the check method requires it 7136test -z "$MAGIC_CMD" && MAGIC_CMD=file 7137case $deplibs_check_method in 7138file_magic*) 7139 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7141$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7142if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7143 $as_echo_n "(cached) " >&6 7144else 7145 case $MAGIC_CMD in 7146[\\/*] | ?:[\\/]*) 7147 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7148 ;; 7149*) 7150 lt_save_MAGIC_CMD="$MAGIC_CMD" 7151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7152 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7153 for ac_dir in $ac_dummy; do 7154 IFS="$lt_save_ifs" 7155 test -z "$ac_dir" && ac_dir=. 7156 if test -f $ac_dir/${ac_tool_prefix}file; then 7157 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7158 if test -n "$file_magic_test_file"; then 7159 case $deplibs_check_method in 7160 "file_magic "*) 7161 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7163 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7164 $EGREP "$file_magic_regex" > /dev/null; then 7165 : 7166 else 7167 cat <<_LT_EOF 1>&2 7168 7169*** Warning: the command libtool uses to detect shared libraries, 7170*** $file_magic_cmd, produces output that libtool cannot recognize. 7171*** The result is that libtool may fail to recognize shared libraries 7172*** as such. This will affect the creation of libtool libraries that 7173*** depend on shared libraries, but programs linked with such libtool 7174*** libraries will work regardless of this problem. Nevertheless, you 7175*** may want to report the problem to your system manager and/or to 7176*** bug-libtool@gnu.org 7177 7178_LT_EOF 7179 fi ;; 7180 esac 7181 fi 7182 break 7183 fi 7184 done 7185 IFS="$lt_save_ifs" 7186 MAGIC_CMD="$lt_save_MAGIC_CMD" 7187 ;; 7188esac 7189fi 7190 7191MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7192if test -n "$MAGIC_CMD"; then 7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7194$as_echo "$MAGIC_CMD" >&6; } 7195else 7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7197$as_echo "no" >&6; } 7198fi 7199 7200 7201 7202 7203 7204if test -z "$lt_cv_path_MAGIC_CMD"; then 7205 if test -n "$ac_tool_prefix"; then 7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7207$as_echo_n "checking for file... " >&6; } 7208if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 7209 $as_echo_n "(cached) " >&6 7210else 7211 case $MAGIC_CMD in 7212[\\/*] | ?:[\\/]*) 7213 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7214 ;; 7215*) 7216 lt_save_MAGIC_CMD="$MAGIC_CMD" 7217 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7218 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7219 for ac_dir in $ac_dummy; do 7220 IFS="$lt_save_ifs" 7221 test -z "$ac_dir" && ac_dir=. 7222 if test -f $ac_dir/file; then 7223 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7224 if test -n "$file_magic_test_file"; then 7225 case $deplibs_check_method in 7226 "file_magic "*) 7227 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7228 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7229 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7230 $EGREP "$file_magic_regex" > /dev/null; then 7231 : 7232 else 7233 cat <<_LT_EOF 1>&2 7234 7235*** Warning: the command libtool uses to detect shared libraries, 7236*** $file_magic_cmd, produces output that libtool cannot recognize. 7237*** The result is that libtool may fail to recognize shared libraries 7238*** as such. This will affect the creation of libtool libraries that 7239*** depend on shared libraries, but programs linked with such libtool 7240*** libraries will work regardless of this problem. Nevertheless, you 7241*** may want to report the problem to your system manager and/or to 7242*** bug-libtool@gnu.org 7243 7244_LT_EOF 7245 fi ;; 7246 esac 7247 fi 7248 break 7249 fi 7250 done 7251 IFS="$lt_save_ifs" 7252 MAGIC_CMD="$lt_save_MAGIC_CMD" 7253 ;; 7254esac 7255fi 7256 7257MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7258if test -n "$MAGIC_CMD"; then 7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7260$as_echo "$MAGIC_CMD" >&6; } 7261else 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7263$as_echo "no" >&6; } 7264fi 7265 7266 7267 else 7268 MAGIC_CMD=: 7269 fi 7270fi 7271 7272 fi 7273 ;; 7274esac 7275 7276# Use C for the default configuration in the libtool script 7277 7278lt_save_CC="$CC" 7279ac_ext=c 7280ac_cpp='$CPP $CPPFLAGS' 7281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7283ac_compiler_gnu=$ac_cv_c_compiler_gnu 7284 7285 7286# Source file extension for C test sources. 7287ac_ext=c 7288 7289# Object file extension for compiled C test sources. 7290objext=o 7291objext=$objext 7292 7293# Code to be used in simple compile tests 7294lt_simple_compile_test_code="int some_variable = 0;" 7295 7296# Code to be used in simple link tests 7297lt_simple_link_test_code='int main(){return(0);}' 7298 7299 7300 7301 7302 7303 7304 7305# If no C compiler was specified, use CC. 7306LTCC=${LTCC-"$CC"} 7307 7308# If no C compiler flags were specified, use CFLAGS. 7309LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7310 7311# Allow CC to be a program name with arguments. 7312compiler=$CC 7313 7314# Save the default compiler, since it gets overwritten when the other 7315# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7316compiler_DEFAULT=$CC 7317 7318# save warnings/boilerplate of simple test code 7319ac_outfile=conftest.$ac_objext 7320echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7321eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7322_lt_compiler_boilerplate=`cat conftest.err` 7323$RM conftest* 7324 7325ac_outfile=conftest.$ac_objext 7326echo "$lt_simple_link_test_code" >conftest.$ac_ext 7327eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7328_lt_linker_boilerplate=`cat conftest.err` 7329$RM -r conftest* 7330 7331 7332if test -n "$compiler"; then 7333 7334lt_prog_compiler_no_builtin_flag= 7335 7336if test "$GCC" = yes; then 7337 case $cc_basename in 7338 nvcc*) 7339 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7340 *) 7341 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7342 esac 7343 7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7345$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7346if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 7347 $as_echo_n "(cached) " >&6 7348else 7349 lt_cv_prog_compiler_rtti_exceptions=no 7350 ac_outfile=conftest.$ac_objext 7351 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7352 lt_compiler_flag="-fno-rtti -fno-exceptions" 7353 # Insert the option either (1) after the last *FLAGS variable, or 7354 # (2) before a word containing "conftest.", or (3) at the end. 7355 # Note that $ac_compile itself does not contain backslashes and begins 7356 # with a dollar sign (not a hyphen), so the echo should work correctly. 7357 # The option is referenced via a variable to avoid confusing sed. 7358 lt_compile=`echo "$ac_compile" | $SED \ 7359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7361 -e 's:$: $lt_compiler_flag:'` 7362 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7363 (eval "$lt_compile" 2>conftest.err) 7364 ac_status=$? 7365 cat conftest.err >&5 7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7367 if (exit $ac_status) && test -s "$ac_outfile"; then 7368 # The compiler can only warn and ignore the option if not recognized 7369 # So say no if there are warnings other than the usual output. 7370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7371 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7372 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7373 lt_cv_prog_compiler_rtti_exceptions=yes 7374 fi 7375 fi 7376 $RM conftest* 7377 7378fi 7379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7380$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7381 7382if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7383 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7384else 7385 : 7386fi 7387 7388fi 7389 7390 7391 7392 7393 7394 7395 lt_prog_compiler_wl= 7396lt_prog_compiler_pic= 7397lt_prog_compiler_static= 7398 7399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 7400$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 7401 7402 if test "$GCC" = yes; then 7403 lt_prog_compiler_wl='-Wl,' 7404 lt_prog_compiler_static='-static' 7405 7406 case $host_os in 7407 aix*) 7408 # All AIX code is PIC. 7409 if test "$host_cpu" = ia64; then 7410 # AIX 5 now supports IA64 processor 7411 lt_prog_compiler_static='-Bstatic' 7412 fi 7413 ;; 7414 7415 amigaos*) 7416 case $host_cpu in 7417 powerpc) 7418 # see comment about AmigaOS4 .so support 7419 lt_prog_compiler_pic='-fPIC' 7420 ;; 7421 m68k) 7422 # FIXME: we need at least 68020 code to build shared libraries, but 7423 # adding the `-m68020' flag to GCC prevents building anything better, 7424 # like `-m68040'. 7425 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7426 ;; 7427 esac 7428 ;; 7429 7430 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7431 # PIC is the default for these OSes. 7432 ;; 7433 7434 mingw* | cygwin* | pw32* | os2* | cegcc*) 7435 # This hack is so that the source file can tell whether it is being 7436 # built for inclusion in a dll (and should export symbols for example). 7437 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7438 # (--disable-auto-import) libraries 7439 lt_prog_compiler_pic='-DDLL_EXPORT' 7440 ;; 7441 7442 darwin* | rhapsody*) 7443 # PIC is the default on this platform 7444 # Common symbols not allowed in MH_DYLIB files 7445 lt_prog_compiler_pic='-fno-common' 7446 ;; 7447 7448 haiku*) 7449 # PIC is the default for Haiku. 7450 # The "-static" flag exists, but is broken. 7451 lt_prog_compiler_static= 7452 ;; 7453 7454 hpux*) 7455 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7456 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7457 # sets the default TLS model and affects inlining. 7458 case $host_cpu in 7459 hppa*64*) 7460 # +Z the default 7461 ;; 7462 *) 7463 lt_prog_compiler_pic='-fPIC' 7464 ;; 7465 esac 7466 ;; 7467 7468 interix[3-9]*) 7469 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7470 # Instead, we relocate shared libraries at runtime. 7471 ;; 7472 7473 msdosdjgpp*) 7474 # Just because we use GCC doesn't mean we suddenly get shared libraries 7475 # on systems that don't support them. 7476 lt_prog_compiler_can_build_shared=no 7477 enable_shared=no 7478 ;; 7479 7480 *nto* | *qnx*) 7481 # QNX uses GNU C++, but need to define -shared option too, otherwise 7482 # it will coredump. 7483 lt_prog_compiler_pic='-fPIC -shared' 7484 ;; 7485 7486 sysv4*MP*) 7487 if test -d /usr/nec; then 7488 lt_prog_compiler_pic=-Kconform_pic 7489 fi 7490 ;; 7491 7492 *) 7493 lt_prog_compiler_pic='-fPIC' 7494 ;; 7495 esac 7496 7497 case $cc_basename in 7498 nvcc*) # Cuda Compiler Driver 2.2 7499 lt_prog_compiler_wl='-Xlinker ' 7500 lt_prog_compiler_pic='-Xcompiler -fPIC' 7501 ;; 7502 esac 7503 else 7504 # PORTME Check for flag to pass linker flags through the system compiler. 7505 case $host_os in 7506 aix*) 7507 lt_prog_compiler_wl='-Wl,' 7508 if test "$host_cpu" = ia64; then 7509 # AIX 5 now supports IA64 processor 7510 lt_prog_compiler_static='-Bstatic' 7511 else 7512 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7513 fi 7514 ;; 7515 7516 mingw* | cygwin* | pw32* | os2* | cegcc*) 7517 # This hack is so that the source file can tell whether it is being 7518 # built for inclusion in a dll (and should export symbols for example). 7519 lt_prog_compiler_pic='-DDLL_EXPORT' 7520 ;; 7521 7522 hpux9* | hpux10* | hpux11*) 7523 lt_prog_compiler_wl='-Wl,' 7524 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7525 # not for PA HP-UX. 7526 case $host_cpu in 7527 hppa*64*|ia64*) 7528 # +Z the default 7529 ;; 7530 *) 7531 lt_prog_compiler_pic='+Z' 7532 ;; 7533 esac 7534 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7535 lt_prog_compiler_static='${wl}-a ${wl}archive' 7536 ;; 7537 7538 irix5* | irix6* | nonstopux*) 7539 lt_prog_compiler_wl='-Wl,' 7540 # PIC (with -KPIC) is the default. 7541 lt_prog_compiler_static='-non_shared' 7542 ;; 7543 7544 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7545 case $cc_basename in 7546 # old Intel for x86_64 which still supported -KPIC. 7547 ecc*) 7548 lt_prog_compiler_wl='-Wl,' 7549 lt_prog_compiler_pic='-KPIC' 7550 lt_prog_compiler_static='-static' 7551 ;; 7552 # icc used to be incompatible with GCC. 7553 # ICC 10 doesn't accept -KPIC any more. 7554 icc* | ifort*) 7555 lt_prog_compiler_wl='-Wl,' 7556 lt_prog_compiler_pic='-fPIC' 7557 lt_prog_compiler_static='-static' 7558 ;; 7559 # Lahey Fortran 8.1. 7560 lf95*) 7561 lt_prog_compiler_wl='-Wl,' 7562 lt_prog_compiler_pic='--shared' 7563 lt_prog_compiler_static='--static' 7564 ;; 7565 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 7566 # Portland Group compilers (*not* the Pentium gcc compiler, 7567 # which looks to be a dead project) 7568 lt_prog_compiler_wl='-Wl,' 7569 lt_prog_compiler_pic='-fpic' 7570 lt_prog_compiler_static='-Bstatic' 7571 ;; 7572 ccc*) 7573 lt_prog_compiler_wl='-Wl,' 7574 # All Alpha code is PIC. 7575 lt_prog_compiler_static='-non_shared' 7576 ;; 7577 xl* | bgxl* | bgf* | mpixl*) 7578 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 7579 lt_prog_compiler_wl='-Wl,' 7580 lt_prog_compiler_pic='-qpic' 7581 lt_prog_compiler_static='-qstaticlink' 7582 ;; 7583 *) 7584 case `$CC -V 2>&1 | sed 5q` in 7585 *Sun\ F* | *Sun*Fortran*) 7586 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7587 lt_prog_compiler_pic='-KPIC' 7588 lt_prog_compiler_static='-Bstatic' 7589 lt_prog_compiler_wl='' 7590 ;; 7591 *Sun\ C*) 7592 # Sun C 5.9 7593 lt_prog_compiler_pic='-KPIC' 7594 lt_prog_compiler_static='-Bstatic' 7595 lt_prog_compiler_wl='-Wl,' 7596 ;; 7597 esac 7598 ;; 7599 esac 7600 ;; 7601 7602 newsos6) 7603 lt_prog_compiler_pic='-KPIC' 7604 lt_prog_compiler_static='-Bstatic' 7605 ;; 7606 7607 *nto* | *qnx*) 7608 # QNX uses GNU C++, but need to define -shared option too, otherwise 7609 # it will coredump. 7610 lt_prog_compiler_pic='-fPIC -shared' 7611 ;; 7612 7613 osf3* | osf4* | osf5*) 7614 lt_prog_compiler_wl='-Wl,' 7615 # All OSF/1 code is PIC. 7616 lt_prog_compiler_static='-non_shared' 7617 ;; 7618 7619 rdos*) 7620 lt_prog_compiler_static='-non_shared' 7621 ;; 7622 7623 solaris*) 7624 lt_prog_compiler_pic='-KPIC' 7625 lt_prog_compiler_static='-Bstatic' 7626 case $cc_basename in 7627 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 7628 lt_prog_compiler_wl='-Qoption ld ';; 7629 *) 7630 lt_prog_compiler_wl='-Wl,';; 7631 esac 7632 ;; 7633 7634 sunos4*) 7635 lt_prog_compiler_wl='-Qoption ld ' 7636 lt_prog_compiler_pic='-PIC' 7637 lt_prog_compiler_static='-Bstatic' 7638 ;; 7639 7640 sysv4 | sysv4.2uw2* | sysv4.3*) 7641 lt_prog_compiler_wl='-Wl,' 7642 lt_prog_compiler_pic='-KPIC' 7643 lt_prog_compiler_static='-Bstatic' 7644 ;; 7645 7646 sysv4*MP*) 7647 if test -d /usr/nec ;then 7648 lt_prog_compiler_pic='-Kconform_pic' 7649 lt_prog_compiler_static='-Bstatic' 7650 fi 7651 ;; 7652 7653 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 7654 lt_prog_compiler_wl='-Wl,' 7655 lt_prog_compiler_pic='-KPIC' 7656 lt_prog_compiler_static='-Bstatic' 7657 ;; 7658 7659 unicos*) 7660 lt_prog_compiler_wl='-Wl,' 7661 lt_prog_compiler_can_build_shared=no 7662 ;; 7663 7664 uts4*) 7665 lt_prog_compiler_pic='-pic' 7666 lt_prog_compiler_static='-Bstatic' 7667 ;; 7668 7669 *) 7670 lt_prog_compiler_can_build_shared=no 7671 ;; 7672 esac 7673 fi 7674 7675case $host_os in 7676 # For platforms which do not support PIC, -DPIC is meaningless: 7677 *djgpp*) 7678 lt_prog_compiler_pic= 7679 ;; 7680 *) 7681 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 7682 ;; 7683esac 7684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 7685$as_echo "$lt_prog_compiler_pic" >&6; } 7686 7687 7688 7689 7690 7691 7692# 7693# Check to make sure the PIC flag actually works. 7694# 7695if test -n "$lt_prog_compiler_pic"; then 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 7697$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 7698if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 7699 $as_echo_n "(cached) " >&6 7700else 7701 lt_cv_prog_compiler_pic_works=no 7702 ac_outfile=conftest.$ac_objext 7703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7704 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 7705 # Insert the option either (1) after the last *FLAGS variable, or 7706 # (2) before a word containing "conftest.", or (3) at the end. 7707 # Note that $ac_compile itself does not contain backslashes and begins 7708 # with a dollar sign (not a hyphen), so the echo should work correctly. 7709 # The option is referenced via a variable to avoid confusing sed. 7710 lt_compile=`echo "$ac_compile" | $SED \ 7711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7713 -e 's:$: $lt_compiler_flag:'` 7714 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7715 (eval "$lt_compile" 2>conftest.err) 7716 ac_status=$? 7717 cat conftest.err >&5 7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7719 if (exit $ac_status) && test -s "$ac_outfile"; then 7720 # The compiler can only warn and ignore the option if not recognized 7721 # So say no if there are warnings other than the usual output. 7722 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7724 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7725 lt_cv_prog_compiler_pic_works=yes 7726 fi 7727 fi 7728 $RM conftest* 7729 7730fi 7731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 7732$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 7733 7734if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 7735 case $lt_prog_compiler_pic in 7736 "" | " "*) ;; 7737 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 7738 esac 7739else 7740 lt_prog_compiler_pic= 7741 lt_prog_compiler_can_build_shared=no 7742fi 7743 7744fi 7745 7746 7747 7748 7749 7750 7751# 7752# Check to make sure the static flag actually works. 7753# 7754wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 7755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 7756$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 7757if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 7758 $as_echo_n "(cached) " >&6 7759else 7760 lt_cv_prog_compiler_static_works=no 7761 save_LDFLAGS="$LDFLAGS" 7762 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 7763 echo "$lt_simple_link_test_code" > conftest.$ac_ext 7764 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7765 # The linker can only warn and ignore the option if not recognized 7766 # So say no if there are warnings 7767 if test -s conftest.err; then 7768 # Append any errors to the config.log. 7769 cat conftest.err 1>&5 7770 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 7771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7772 if diff conftest.exp conftest.er2 >/dev/null; then 7773 lt_cv_prog_compiler_static_works=yes 7774 fi 7775 else 7776 lt_cv_prog_compiler_static_works=yes 7777 fi 7778 fi 7779 $RM -r conftest* 7780 LDFLAGS="$save_LDFLAGS" 7781 7782fi 7783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 7784$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 7785 7786if test x"$lt_cv_prog_compiler_static_works" = xyes; then 7787 : 7788else 7789 lt_prog_compiler_static= 7790fi 7791 7792 7793 7794 7795 7796 7797 7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7799$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7800if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7801 $as_echo_n "(cached) " >&6 7802else 7803 lt_cv_prog_compiler_c_o=no 7804 $RM -r conftest 2>/dev/null 7805 mkdir conftest 7806 cd conftest 7807 mkdir out 7808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7809 7810 lt_compiler_flag="-o out/conftest2.$ac_objext" 7811 # Insert the option either (1) after the last *FLAGS variable, or 7812 # (2) before a word containing "conftest.", or (3) at the end. 7813 # Note that $ac_compile itself does not contain backslashes and begins 7814 # with a dollar sign (not a hyphen), so the echo should work correctly. 7815 lt_compile=`echo "$ac_compile" | $SED \ 7816 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7817 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7818 -e 's:$: $lt_compiler_flag:'` 7819 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7820 (eval "$lt_compile" 2>out/conftest.err) 7821 ac_status=$? 7822 cat out/conftest.err >&5 7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7824 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7825 then 7826 # The compiler can only warn and ignore the option if not recognized 7827 # So say no if there are warnings 7828 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 7829 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7830 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7831 lt_cv_prog_compiler_c_o=yes 7832 fi 7833 fi 7834 chmod u+w . 2>&5 7835 $RM conftest* 7836 # SGI C++ compiler will create directory out/ii_files/ for 7837 # template instantiation 7838 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7839 $RM out/* && rmdir out 7840 cd .. 7841 $RM -r conftest 7842 $RM conftest* 7843 7844fi 7845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7846$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7847 7848 7849 7850 7851 7852 7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 7854$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 7855if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 7856 $as_echo_n "(cached) " >&6 7857else 7858 lt_cv_prog_compiler_c_o=no 7859 $RM -r conftest 2>/dev/null 7860 mkdir conftest 7861 cd conftest 7862 mkdir out 7863 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7864 7865 lt_compiler_flag="-o out/conftest2.$ac_objext" 7866 # Insert the option either (1) after the last *FLAGS variable, or 7867 # (2) before a word containing "conftest.", or (3) at the end. 7868 # Note that $ac_compile itself does not contain backslashes and begins 7869 # with a dollar sign (not a hyphen), so the echo should work correctly. 7870 lt_compile=`echo "$ac_compile" | $SED \ 7871 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7872 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7873 -e 's:$: $lt_compiler_flag:'` 7874 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7875 (eval "$lt_compile" 2>out/conftest.err) 7876 ac_status=$? 7877 cat out/conftest.err >&5 7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7879 if (exit $ac_status) && test -s out/conftest2.$ac_objext 7880 then 7881 # The compiler can only warn and ignore the option if not recognized 7882 # So say no if there are warnings 7883 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 7884 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 7885 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 7886 lt_cv_prog_compiler_c_o=yes 7887 fi 7888 fi 7889 chmod u+w . 2>&5 7890 $RM conftest* 7891 # SGI C++ compiler will create directory out/ii_files/ for 7892 # template instantiation 7893 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 7894 $RM out/* && rmdir out 7895 cd .. 7896 $RM -r conftest 7897 $RM conftest* 7898 7899fi 7900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 7901$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 7902 7903 7904 7905 7906hard_links="nottested" 7907if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 7908 # do not overwrite the value of need_locks provided by the user 7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 7910$as_echo_n "checking if we can lock with hard links... " >&6; } 7911 hard_links=yes 7912 $RM conftest* 7913 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7914 touch conftest.a 7915 ln conftest.a conftest.b 2>&5 || hard_links=no 7916 ln conftest.a conftest.b 2>/dev/null && hard_links=no 7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 7918$as_echo "$hard_links" >&6; } 7919 if test "$hard_links" = no; then 7920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 7921$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 7922 need_locks=warn 7923 fi 7924else 7925 need_locks=no 7926fi 7927 7928 7929 7930 7931 7932 7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 7934$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 7935 7936 runpath_var= 7937 allow_undefined_flag= 7938 always_export_symbols=no 7939 archive_cmds= 7940 archive_expsym_cmds= 7941 compiler_needs_object=no 7942 enable_shared_with_static_runtimes=no 7943 export_dynamic_flag_spec= 7944 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 7945 hardcode_automatic=no 7946 hardcode_direct=no 7947 hardcode_direct_absolute=no 7948 hardcode_libdir_flag_spec= 7949 hardcode_libdir_flag_spec_ld= 7950 hardcode_libdir_separator= 7951 hardcode_minus_L=no 7952 hardcode_shlibpath_var=unsupported 7953 inherit_rpath=no 7954 link_all_deplibs=unknown 7955 module_cmds= 7956 module_expsym_cmds= 7957 old_archive_from_new_cmds= 7958 old_archive_from_expsyms_cmds= 7959 thread_safe_flag_spec= 7960 whole_archive_flag_spec= 7961 # include_expsyms should be a list of space-separated symbols to be *always* 7962 # included in the symbol list 7963 include_expsyms= 7964 # exclude_expsyms can be an extended regexp of symbols to exclude 7965 # it will be wrapped by ` (' and `)$', so one must not match beginning or 7966 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 7967 # as well as any symbol that contains `d'. 7968 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 7969 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 7970 # platforms (ab)use it in PIC code, but their linkers get confused if 7971 # the symbol is explicitly referenced. Since portable code cannot 7972 # rely on this symbol name, it's probably fine to never include it in 7973 # preloaded symbol tables. 7974 # Exclude shared library initialization/finalization symbols. 7975 extract_expsyms_cmds= 7976 7977 case $host_os in 7978 cygwin* | mingw* | pw32* | cegcc*) 7979 # FIXME: the MSVC++ port hasn't been tested in a loooong time 7980 # When not using gcc, we currently assume that we are using 7981 # Microsoft Visual C++. 7982 if test "$GCC" != yes; then 7983 with_gnu_ld=no 7984 fi 7985 ;; 7986 interix*) 7987 # we just hope/assume this is gcc and not c89 (= MSVC++) 7988 with_gnu_ld=yes 7989 ;; 7990 openbsd*) 7991 with_gnu_ld=no 7992 ;; 7993 esac 7994 7995 ld_shlibs=yes 7996 7997 # On some targets, GNU ld is compatible enough with the native linker 7998 # that we're better off using the native interface for both. 7999 lt_use_gnu_ld_interface=no 8000 if test "$with_gnu_ld" = yes; then 8001 case $host_os in 8002 aix*) 8003 # The AIX port of GNU ld has always aspired to compatibility 8004 # with the native linker. However, as the warning in the GNU ld 8005 # block says, versions before 2.19.5* couldn't really create working 8006 # shared libraries, regardless of the interface used. 8007 case `$LD -v 2>&1` in 8008 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8009 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8010 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8011 *) 8012 lt_use_gnu_ld_interface=yes 8013 ;; 8014 esac 8015 ;; 8016 *) 8017 lt_use_gnu_ld_interface=yes 8018 ;; 8019 esac 8020 fi 8021 8022 if test "$lt_use_gnu_ld_interface" = yes; then 8023 # If archive_cmds runs LD, not CC, wlarc should be empty 8024 wlarc='${wl}' 8025 8026 # Set some defaults for GNU ld with shared library support. These 8027 # are reset later if shared libraries are not supported. Putting them 8028 # here allows them to be overridden if necessary. 8029 runpath_var=LD_RUN_PATH 8030 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8031 export_dynamic_flag_spec='${wl}--export-dynamic' 8032 # ancient GNU ld didn't support --whole-archive et. al. 8033 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8034 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8035 else 8036 whole_archive_flag_spec= 8037 fi 8038 supports_anon_versioning=no 8039 case `$LD -v 2>&1` in 8040 *GNU\ gold*) supports_anon_versioning=yes ;; 8041 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8042 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8043 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8044 *\ 2.11.*) ;; # other 2.11 versions 8045 *) supports_anon_versioning=yes ;; 8046 esac 8047 8048 # See if GNU ld supports shared libraries. 8049 case $host_os in 8050 aix[3-9]*) 8051 # On AIX/PPC, the GNU linker is very broken 8052 if test "$host_cpu" != ia64; then 8053 ld_shlibs=no 8054 cat <<_LT_EOF 1>&2 8055 8056*** Warning: the GNU linker, at least up to release 2.19, is reported 8057*** to be unable to reliably create shared libraries on AIX. 8058*** Therefore, libtool is disabling shared libraries support. If you 8059*** really care for shared libraries, you may want to install binutils 8060*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8061*** You will then need to restart the configuration process. 8062 8063_LT_EOF 8064 fi 8065 ;; 8066 8067 amigaos*) 8068 case $host_cpu in 8069 powerpc) 8070 # see comment about AmigaOS4 .so support 8071 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8072 archive_expsym_cmds='' 8073 ;; 8074 m68k) 8075 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)' 8076 hardcode_libdir_flag_spec='-L$libdir' 8077 hardcode_minus_L=yes 8078 ;; 8079 esac 8080 ;; 8081 8082 beos*) 8083 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8084 allow_undefined_flag=unsupported 8085 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8086 # support --undefined. This deserves some investigation. FIXME 8087 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8088 else 8089 ld_shlibs=no 8090 fi 8091 ;; 8092 8093 cygwin* | mingw* | pw32* | cegcc*) 8094 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8095 # as there is no search path for DLLs. 8096 hardcode_libdir_flag_spec='-L$libdir' 8097 export_dynamic_flag_spec='${wl}--export-all-symbols' 8098 allow_undefined_flag=unsupported 8099 always_export_symbols=no 8100 enable_shared_with_static_runtimes=yes 8101 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8102 8103 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8105 # If the export-symbols file already is a .def file (1st line 8106 # is EXPORTS), use it as is; otherwise, prepend... 8107 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8108 cp $export_symbols $output_objdir/$soname.def; 8109 else 8110 echo EXPORTS > $output_objdir/$soname.def; 8111 cat $export_symbols >> $output_objdir/$soname.def; 8112 fi~ 8113 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8114 else 8115 ld_shlibs=no 8116 fi 8117 ;; 8118 8119 haiku*) 8120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8121 link_all_deplibs=yes 8122 ;; 8123 8124 interix[3-9]*) 8125 hardcode_direct=no 8126 hardcode_shlibpath_var=no 8127 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8128 export_dynamic_flag_spec='${wl}-E' 8129 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8130 # Instead, shared libraries are loaded at an image base (0x10000000 by 8131 # default) and relocated if they conflict, which is a slow very memory 8132 # consuming and fragmenting process. To avoid this, we pick a random, 8133 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8134 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8135 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8136 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' 8137 ;; 8138 8139 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8140 tmp_diet=no 8141 if test "$host_os" = linux-dietlibc; then 8142 case $cc_basename in 8143 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8144 esac 8145 fi 8146 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8147 && test "$tmp_diet" = no 8148 then 8149 tmp_addflag= 8150 tmp_sharedflag='-shared' 8151 case $cc_basename,$host_cpu in 8152 pgcc*) # Portland Group C compiler 8153 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' 8154 tmp_addflag=' $pic_flag' 8155 ;; 8156 pgf77* | pgf90* | pgf95* | pgfortran*) 8157 # Portland Group f77 and f90 compilers 8158 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' 8159 tmp_addflag=' $pic_flag -Mnomain' ;; 8160 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8161 tmp_addflag=' -i_dynamic' ;; 8162 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8163 tmp_addflag=' -i_dynamic -nofor_main' ;; 8164 ifc* | ifort*) # Intel Fortran compiler 8165 tmp_addflag=' -nofor_main' ;; 8166 lf95*) # Lahey Fortran 8.1 8167 whole_archive_flag_spec= 8168 tmp_sharedflag='--shared' ;; 8169 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8170 tmp_sharedflag='-qmkshrobj' 8171 tmp_addflag= ;; 8172 nvcc*) # Cuda Compiler Driver 2.2 8173 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' 8174 compiler_needs_object=yes 8175 ;; 8176 esac 8177 case `$CC -V 2>&1 | sed 5q` in 8178 *Sun\ C*) # Sun C 5.9 8179 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' 8180 compiler_needs_object=yes 8181 tmp_sharedflag='-G' ;; 8182 *Sun\ F*) # Sun Fortran 8.3 8183 tmp_sharedflag='-G' ;; 8184 esac 8185 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8186 8187 if test "x$supports_anon_versioning" = xyes; then 8188 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8189 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8190 echo "local: *; };" >> $output_objdir/$libname.ver~ 8191 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8192 fi 8193 8194 case $cc_basename in 8195 xlf* | bgf* | bgxlf* | mpixlf*) 8196 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8197 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8198 hardcode_libdir_flag_spec= 8199 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8200 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8201 if test "x$supports_anon_versioning" = xyes; then 8202 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8203 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8204 echo "local: *; };" >> $output_objdir/$libname.ver~ 8205 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8206 fi 8207 ;; 8208 esac 8209 else 8210 ld_shlibs=no 8211 fi 8212 ;; 8213 8214 netbsd*) 8215 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8216 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8217 wlarc= 8218 else 8219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8220 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8221 fi 8222 ;; 8223 8224 solaris*) 8225 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8226 ld_shlibs=no 8227 cat <<_LT_EOF 1>&2 8228 8229*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8230*** create shared libraries on Solaris systems. Therefore, libtool 8231*** is disabling shared libraries support. We urge you to upgrade GNU 8232*** binutils to release 2.9.1 or newer. Another option is to modify 8233*** your PATH or compiler configuration so that the native linker is 8234*** used, and then restart. 8235 8236_LT_EOF 8237 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8239 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8240 else 8241 ld_shlibs=no 8242 fi 8243 ;; 8244 8245 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8246 case `$LD -v 2>&1` in 8247 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8248 ld_shlibs=no 8249 cat <<_LT_EOF 1>&2 8250 8251*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8252*** reliably create shared libraries on SCO systems. Therefore, libtool 8253*** is disabling shared libraries support. We urge you to upgrade GNU 8254*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8255*** your PATH or compiler configuration so that the native linker is 8256*** used, and then restart. 8257 8258_LT_EOF 8259 ;; 8260 *) 8261 # For security reasons, it is highly recommended that you always 8262 # use absolute paths for naming shared libraries, and exclude the 8263 # DT_RUNPATH tag from executables and libraries. But doing so 8264 # requires that you compile everything twice, which is a pain. 8265 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8266 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8267 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8268 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8269 else 8270 ld_shlibs=no 8271 fi 8272 ;; 8273 esac 8274 ;; 8275 8276 sunos4*) 8277 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8278 wlarc= 8279 hardcode_direct=yes 8280 hardcode_shlibpath_var=no 8281 ;; 8282 8283 *) 8284 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8285 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8286 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8287 else 8288 ld_shlibs=no 8289 fi 8290 ;; 8291 esac 8292 8293 if test "$ld_shlibs" = no; then 8294 runpath_var= 8295 hardcode_libdir_flag_spec= 8296 export_dynamic_flag_spec= 8297 whole_archive_flag_spec= 8298 fi 8299 else 8300 # PORTME fill in a description of your system's linker (not GNU ld) 8301 case $host_os in 8302 aix3*) 8303 allow_undefined_flag=unsupported 8304 always_export_symbols=yes 8305 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' 8306 # Note: this linker hardcodes the directories in LIBPATH if there 8307 # are no directories specified by -L. 8308 hardcode_minus_L=yes 8309 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8310 # Neither direct hardcoding nor static linking is supported with a 8311 # broken collect2. 8312 hardcode_direct=unsupported 8313 fi 8314 ;; 8315 8316 aix[4-9]*) 8317 if test "$host_cpu" = ia64; then 8318 # On IA64, the linker does run time linking by default, so we don't 8319 # have to do anything special. 8320 aix_use_runtimelinking=no 8321 exp_sym_flag='-Bexport' 8322 no_entry_flag="" 8323 else 8324 # If we're using GNU nm, then we don't want the "-C" option. 8325 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8326 # Also, AIX nm treats weak defined symbols like other global 8327 # defined symbols, whereas GNU nm marks them as "W". 8328 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8329 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8330 else 8331 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 8332 fi 8333 aix_use_runtimelinking=no 8334 8335 # Test if we are trying to use run time linking or normal 8336 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8337 # need to do runtime linking. 8338 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8339 for ld_flag in $LDFLAGS; do 8340 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8341 aix_use_runtimelinking=yes 8342 break 8343 fi 8344 done 8345 ;; 8346 esac 8347 8348 exp_sym_flag='-bexport' 8349 no_entry_flag='-bnoentry' 8350 fi 8351 8352 # When large executables or shared objects are built, AIX ld can 8353 # have problems creating the table of contents. If linking a library 8354 # or program results in "error TOC overflow" add -mminimal-toc to 8355 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8356 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8357 8358 archive_cmds='' 8359 hardcode_direct=yes 8360 hardcode_direct_absolute=yes 8361 hardcode_libdir_separator=':' 8362 link_all_deplibs=yes 8363 file_list_spec='${wl}-f,' 8364 8365 if test "$GCC" = yes; then 8366 case $host_os in aix4.[012]|aix4.[012].*) 8367 # We only want to do this on AIX 4.2 and lower, the check 8368 # below for broken collect2 doesn't work under 4.3+ 8369 collect2name=`${CC} -print-prog-name=collect2` 8370 if test -f "$collect2name" && 8371 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8372 then 8373 # We have reworked collect2 8374 : 8375 else 8376 # We have old collect2 8377 hardcode_direct=unsupported 8378 # It fails to find uninstalled libraries when the uninstalled 8379 # path is not listed in the libpath. Setting hardcode_minus_L 8380 # to unsupported forces relinking 8381 hardcode_minus_L=yes 8382 hardcode_libdir_flag_spec='-L$libdir' 8383 hardcode_libdir_separator= 8384 fi 8385 ;; 8386 esac 8387 shared_flag='-shared' 8388 if test "$aix_use_runtimelinking" = yes; then 8389 shared_flag="$shared_flag "'${wl}-G' 8390 fi 8391 else 8392 # not using gcc 8393 if test "$host_cpu" = ia64; then 8394 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8395 # chokes on -Wl,-G. The following line is correct: 8396 shared_flag='-G' 8397 else 8398 if test "$aix_use_runtimelinking" = yes; then 8399 shared_flag='${wl}-G' 8400 else 8401 shared_flag='${wl}-bM:SRE' 8402 fi 8403 fi 8404 fi 8405 8406 export_dynamic_flag_spec='${wl}-bexpall' 8407 # It seems that -bexpall does not export symbols beginning with 8408 # underscore (_), so it is better to generate a list of symbols to export. 8409 always_export_symbols=yes 8410 if test "$aix_use_runtimelinking" = yes; then 8411 # Warning - without using the other runtime loading flags (-brtl), 8412 # -berok will link without error, but may produce a broken library. 8413 allow_undefined_flag='-berok' 8414 # Determine the default libpath from the value encoded in an 8415 # empty executable. 8416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8417/* end confdefs.h. */ 8418 8419int 8420main () 8421{ 8422 8423 ; 8424 return 0; 8425} 8426_ACEOF 8427if ac_fn_c_try_link "$LINENO"; then : 8428 8429lt_aix_libpath_sed=' 8430 /Import File Strings/,/^$/ { 8431 /^0/ { 8432 s/^0 *\(.*\)$/\1/ 8433 p 8434 } 8435 }' 8436aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8437# Check for a 64-bit object if we didn't find anything. 8438if test -z "$aix_libpath"; then 8439 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8440fi 8441fi 8442rm -f core conftest.err conftest.$ac_objext \ 8443 conftest$ac_exeext conftest.$ac_ext 8444if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8445 8446 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8447 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 8448 else 8449 if test "$host_cpu" = ia64; then 8450 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8451 allow_undefined_flag="-z nodefs" 8452 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" 8453 else 8454 # Determine the default libpath from the value encoded in an 8455 # empty executable. 8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8457/* end confdefs.h. */ 8458 8459int 8460main () 8461{ 8462 8463 ; 8464 return 0; 8465} 8466_ACEOF 8467if ac_fn_c_try_link "$LINENO"; then : 8468 8469lt_aix_libpath_sed=' 8470 /Import File Strings/,/^$/ { 8471 /^0/ { 8472 s/^0 *\(.*\)$/\1/ 8473 p 8474 } 8475 }' 8476aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8477# Check for a 64-bit object if we didn't find anything. 8478if test -z "$aix_libpath"; then 8479 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8480fi 8481fi 8482rm -f core conftest.err conftest.$ac_objext \ 8483 conftest$ac_exeext conftest.$ac_ext 8484if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 8485 8486 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8487 # Warning - without using the other run time loading flags, 8488 # -berok will link without error, but may produce a broken library. 8489 no_undefined_flag=' ${wl}-bernotok' 8490 allow_undefined_flag=' ${wl}-berok' 8491 if test "$with_gnu_ld" = yes; then 8492 # We only use this code for GNU lds that support --whole-archive. 8493 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8494 else 8495 # Exported symbols can be pulled into shared objects from archives 8496 whole_archive_flag_spec='$convenience' 8497 fi 8498 archive_cmds_need_lc=yes 8499 # This is similar to how AIX traditionally builds its shared libraries. 8500 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 8501 fi 8502 fi 8503 ;; 8504 8505 amigaos*) 8506 case $host_cpu in 8507 powerpc) 8508 # see comment about AmigaOS4 .so support 8509 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8510 archive_expsym_cmds='' 8511 ;; 8512 m68k) 8513 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)' 8514 hardcode_libdir_flag_spec='-L$libdir' 8515 hardcode_minus_L=yes 8516 ;; 8517 esac 8518 ;; 8519 8520 bsdi[45]*) 8521 export_dynamic_flag_spec=-rdynamic 8522 ;; 8523 8524 cygwin* | mingw* | pw32* | cegcc*) 8525 # When not using gcc, we currently assume that we are using 8526 # Microsoft Visual C++. 8527 # hardcode_libdir_flag_spec is actually meaningless, as there is 8528 # no search path for DLLs. 8529 hardcode_libdir_flag_spec=' ' 8530 allow_undefined_flag=unsupported 8531 # Tell ltmain to make .lib files, not .a files. 8532 libext=lib 8533 # Tell ltmain to make .dll files, not .so files. 8534 shrext_cmds=".dll" 8535 # FIXME: Setting linknames here is a bad hack. 8536 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 8537 # The linker will automatically build a .lib file if we build a DLL. 8538 old_archive_from_new_cmds='true' 8539 # FIXME: Should let the user specify the lib program. 8540 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8541 fix_srcfile_path='`cygpath -w "$srcfile"`' 8542 enable_shared_with_static_runtimes=yes 8543 ;; 8544 8545 darwin* | rhapsody*) 8546 8547 8548 archive_cmds_need_lc=no 8549 hardcode_direct=no 8550 hardcode_automatic=yes 8551 hardcode_shlibpath_var=unsupported 8552 if test "$lt_cv_ld_force_load" = "yes"; then 8553 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\"`' 8554 else 8555 whole_archive_flag_spec='' 8556 fi 8557 link_all_deplibs=yes 8558 allow_undefined_flag="$_lt_dar_allow_undefined" 8559 case $cc_basename in 8560 ifort*) _lt_dar_can_shared=yes ;; 8561 *) _lt_dar_can_shared=$GCC ;; 8562 esac 8563 if test "$_lt_dar_can_shared" = "yes"; then 8564 output_verbose_link_cmd=func_echo_all 8565 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 8566 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 8567 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}" 8568 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}" 8569 8570 else 8571 ld_shlibs=no 8572 fi 8573 8574 ;; 8575 8576 dgux*) 8577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8578 hardcode_libdir_flag_spec='-L$libdir' 8579 hardcode_shlibpath_var=no 8580 ;; 8581 8582 freebsd1*) 8583 ld_shlibs=no 8584 ;; 8585 8586 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 8587 # support. Future versions do this automatically, but an explicit c++rt0.o 8588 # does not break anything, and helps significantly (at the cost of a little 8589 # extra space). 8590 freebsd2.2*) 8591 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 8592 hardcode_libdir_flag_spec='-R$libdir' 8593 hardcode_direct=yes 8594 hardcode_shlibpath_var=no 8595 ;; 8596 8597 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 8598 freebsd2*) 8599 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8600 hardcode_direct=yes 8601 hardcode_minus_L=yes 8602 hardcode_shlibpath_var=no 8603 ;; 8604 8605 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 8606 freebsd* | dragonfly*) 8607 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 8608 hardcode_libdir_flag_spec='-R$libdir' 8609 hardcode_direct=yes 8610 hardcode_shlibpath_var=no 8611 ;; 8612 8613 hpux9*) 8614 if test "$GCC" = yes; then 8615 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8616 else 8617 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 8618 fi 8619 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8620 hardcode_libdir_separator=: 8621 hardcode_direct=yes 8622 8623 # hardcode_minus_L: Not really in the search PATH, 8624 # but as the default location of the library. 8625 hardcode_minus_L=yes 8626 export_dynamic_flag_spec='${wl}-E' 8627 ;; 8628 8629 hpux10*) 8630 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8631 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8632 else 8633 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8634 fi 8635 if test "$with_gnu_ld" = no; then 8636 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8637 hardcode_libdir_flag_spec_ld='+b $libdir' 8638 hardcode_libdir_separator=: 8639 hardcode_direct=yes 8640 hardcode_direct_absolute=yes 8641 export_dynamic_flag_spec='${wl}-E' 8642 # hardcode_minus_L: Not really in the search PATH, 8643 # but as the default location of the library. 8644 hardcode_minus_L=yes 8645 fi 8646 ;; 8647 8648 hpux11*) 8649 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 8650 case $host_cpu in 8651 hppa*64*) 8652 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8653 ;; 8654 ia64*) 8655 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8656 ;; 8657 *) 8658 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8659 ;; 8660 esac 8661 else 8662 case $host_cpu in 8663 hppa*64*) 8664 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8665 ;; 8666 ia64*) 8667 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 8668 ;; 8669 *) 8670 8671 # Older versions of the 11.00 compiler do not understand -b yet 8672 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 8674$as_echo_n "checking if $CC understands -b... " >&6; } 8675if test "${lt_cv_prog_compiler__b+set}" = set; then : 8676 $as_echo_n "(cached) " >&6 8677else 8678 lt_cv_prog_compiler__b=no 8679 save_LDFLAGS="$LDFLAGS" 8680 LDFLAGS="$LDFLAGS -b" 8681 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8682 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8683 # The linker can only warn and ignore the option if not recognized 8684 # So say no if there are warnings 8685 if test -s conftest.err; then 8686 # Append any errors to the config.log. 8687 cat conftest.err 1>&5 8688 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8690 if diff conftest.exp conftest.er2 >/dev/null; then 8691 lt_cv_prog_compiler__b=yes 8692 fi 8693 else 8694 lt_cv_prog_compiler__b=yes 8695 fi 8696 fi 8697 $RM -r conftest* 8698 LDFLAGS="$save_LDFLAGS" 8699 8700fi 8701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 8702$as_echo "$lt_cv_prog_compiler__b" >&6; } 8703 8704if test x"$lt_cv_prog_compiler__b" = xyes; then 8705 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 8706else 8707 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 8708fi 8709 8710 ;; 8711 esac 8712 fi 8713 if test "$with_gnu_ld" = no; then 8714 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 8715 hardcode_libdir_separator=: 8716 8717 case $host_cpu in 8718 hppa*64*|ia64*) 8719 hardcode_direct=no 8720 hardcode_shlibpath_var=no 8721 ;; 8722 *) 8723 hardcode_direct=yes 8724 hardcode_direct_absolute=yes 8725 export_dynamic_flag_spec='${wl}-E' 8726 8727 # hardcode_minus_L: Not really in the search PATH, 8728 # but as the default location of the library. 8729 hardcode_minus_L=yes 8730 ;; 8731 esac 8732 fi 8733 ;; 8734 8735 irix5* | irix6* | nonstopux*) 8736 if test "$GCC" = yes; then 8737 archive_cmds='$CC -shared $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' 8738 # Try to use the -exported_symbol ld option, if it does not 8739 # work, assume that -exports_file does not work either and 8740 # implicitly export all symbols. 8741 save_LDFLAGS="$LDFLAGS" 8742 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8744/* end confdefs.h. */ 8745int foo(void) {} 8746_ACEOF 8747if ac_fn_c_try_link "$LINENO"; then : 8748 archive_expsym_cmds='$CC -shared $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' 8749 8750fi 8751rm -f core conftest.err conftest.$ac_objext \ 8752 conftest$ac_exeext conftest.$ac_ext 8753 LDFLAGS="$save_LDFLAGS" 8754 else 8755 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' 8756 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' 8757 fi 8758 archive_cmds_need_lc='no' 8759 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8760 hardcode_libdir_separator=: 8761 inherit_rpath=yes 8762 link_all_deplibs=yes 8763 ;; 8764 8765 netbsd*) 8766 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 8768 else 8769 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 8770 fi 8771 hardcode_libdir_flag_spec='-R$libdir' 8772 hardcode_direct=yes 8773 hardcode_shlibpath_var=no 8774 ;; 8775 8776 newsos6) 8777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8778 hardcode_direct=yes 8779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8780 hardcode_libdir_separator=: 8781 hardcode_shlibpath_var=no 8782 ;; 8783 8784 *nto* | *qnx*) 8785 ;; 8786 8787 openbsd*) 8788 if test -f /usr/libexec/ld.so; then 8789 hardcode_direct=yes 8790 hardcode_shlibpath_var=no 8791 hardcode_direct_absolute=yes 8792 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8793 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8794 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 8795 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8796 export_dynamic_flag_spec='${wl}-E' 8797 else 8798 case $host_os in 8799 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 8800 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8801 hardcode_libdir_flag_spec='-R$libdir' 8802 ;; 8803 *) 8804 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 8805 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8806 ;; 8807 esac 8808 fi 8809 else 8810 ld_shlibs=no 8811 fi 8812 ;; 8813 8814 os2*) 8815 hardcode_libdir_flag_spec='-L$libdir' 8816 hardcode_minus_L=yes 8817 allow_undefined_flag=unsupported 8818 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 8819 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 8820 ;; 8821 8822 osf3*) 8823 if test "$GCC" = yes; then 8824 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8825 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' 8826 else 8827 allow_undefined_flag=' -expect_unresolved \*' 8828 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' 8829 fi 8830 archive_cmds_need_lc='no' 8831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8832 hardcode_libdir_separator=: 8833 ;; 8834 8835 osf4* | osf5*) # as osf3* with the addition of -msym flag 8836 if test "$GCC" = yes; then 8837 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 8838 archive_cmds='$CC -shared${allow_undefined_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' 8839 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8840 else 8841 allow_undefined_flag=' -expect_unresolved \*' 8842 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' 8843 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~ 8844 $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' 8845 8846 # Both c and cxx compiler support -rpath directly 8847 hardcode_libdir_flag_spec='-rpath $libdir' 8848 fi 8849 archive_cmds_need_lc='no' 8850 hardcode_libdir_separator=: 8851 ;; 8852 8853 solaris*) 8854 no_undefined_flag=' -z defs' 8855 if test "$GCC" = yes; then 8856 wlarc='${wl}' 8857 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 8858 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8859 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8860 else 8861 case `$CC -V 2>&1` in 8862 *"Compilers 5.0"*) 8863 wlarc='' 8864 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 8865 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8866 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 8867 ;; 8868 *) 8869 wlarc='${wl}' 8870 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 8871 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 8872 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 8873 ;; 8874 esac 8875 fi 8876 hardcode_libdir_flag_spec='-R$libdir' 8877 hardcode_shlibpath_var=no 8878 case $host_os in 8879 solaris2.[0-5] | solaris2.[0-5].*) ;; 8880 *) 8881 # The compiler driver will combine and reorder linker options, 8882 # but understands `-z linker_flag'. GCC discards it without `$wl', 8883 # but is careful enough not to reorder. 8884 # Supported since Solaris 2.6 (maybe 2.5.1?) 8885 if test "$GCC" = yes; then 8886 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 8887 else 8888 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 8889 fi 8890 ;; 8891 esac 8892 link_all_deplibs=yes 8893 ;; 8894 8895 sunos4*) 8896 if test "x$host_vendor" = xsequent; then 8897 # Use $CC to link under sequent, because it throws in some extra .o 8898 # files that make .init and .fini sections work. 8899 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 8900 else 8901 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 8902 fi 8903 hardcode_libdir_flag_spec='-L$libdir' 8904 hardcode_direct=yes 8905 hardcode_minus_L=yes 8906 hardcode_shlibpath_var=no 8907 ;; 8908 8909 sysv4) 8910 case $host_vendor in 8911 sni) 8912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8913 hardcode_direct=yes # is this really true??? 8914 ;; 8915 siemens) 8916 ## LD is ld it makes a PLAMLIB 8917 ## CC just makes a GrossModule. 8918 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 8919 reload_cmds='$CC -r -o $output$reload_objs' 8920 hardcode_direct=no 8921 ;; 8922 motorola) 8923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8924 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 8925 ;; 8926 esac 8927 runpath_var='LD_RUN_PATH' 8928 hardcode_shlibpath_var=no 8929 ;; 8930 8931 sysv4.3*) 8932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8933 hardcode_shlibpath_var=no 8934 export_dynamic_flag_spec='-Bexport' 8935 ;; 8936 8937 sysv4*MP*) 8938 if test -d /usr/nec; then 8939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8940 hardcode_shlibpath_var=no 8941 runpath_var=LD_RUN_PATH 8942 hardcode_runpath_var=yes 8943 ld_shlibs=yes 8944 fi 8945 ;; 8946 8947 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 8948 no_undefined_flag='${wl}-z,text' 8949 archive_cmds_need_lc=no 8950 hardcode_shlibpath_var=no 8951 runpath_var='LD_RUN_PATH' 8952 8953 if test "$GCC" = yes; then 8954 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8955 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8956 else 8957 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8958 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8959 fi 8960 ;; 8961 8962 sysv5* | sco3.2v5* | sco5v6*) 8963 # Note: We can NOT use -z defs as we might desire, because we do not 8964 # link with -lc, and that would cause any symbols used from libc to 8965 # always be unresolved, which means just about no library would 8966 # ever link correctly. If we're not using GNU ld we use -z text 8967 # though, which does catch some bad symbols but isn't as heavy-handed 8968 # as -z defs. 8969 no_undefined_flag='${wl}-z,text' 8970 allow_undefined_flag='${wl}-z,nodefs' 8971 archive_cmds_need_lc=no 8972 hardcode_shlibpath_var=no 8973 hardcode_libdir_flag_spec='${wl}-R,$libdir' 8974 hardcode_libdir_separator=':' 8975 link_all_deplibs=yes 8976 export_dynamic_flag_spec='${wl}-Bexport' 8977 runpath_var='LD_RUN_PATH' 8978 8979 if test "$GCC" = yes; then 8980 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8981 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8982 else 8983 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8984 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 8985 fi 8986 ;; 8987 8988 uts4*) 8989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 8990 hardcode_libdir_flag_spec='-L$libdir' 8991 hardcode_shlibpath_var=no 8992 ;; 8993 8994 *) 8995 ld_shlibs=no 8996 ;; 8997 esac 8998 8999 if test x$host_vendor = xsni; then 9000 case $host in 9001 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9002 export_dynamic_flag_spec='${wl}-Blargedynsym' 9003 ;; 9004 esac 9005 fi 9006 fi 9007 9008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9009$as_echo "$ld_shlibs" >&6; } 9010test "$ld_shlibs" = no && can_build_shared=no 9011 9012with_gnu_ld=$with_gnu_ld 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028# 9029# Do we need to explicitly link libc? 9030# 9031case "x$archive_cmds_need_lc" in 9032x|xyes) 9033 # Assume -lc should be added 9034 archive_cmds_need_lc=yes 9035 9036 if test "$enable_shared" = yes && test "$GCC" = yes; then 9037 case $archive_cmds in 9038 *'~'*) 9039 # FIXME: we may have to deal with multi-command sequences. 9040 ;; 9041 '$CC '*) 9042 # Test whether the compiler implicitly links with -lc since on some 9043 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9044 # to ld, don't add -lc before -lgcc. 9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9046$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9047if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 9048 $as_echo_n "(cached) " >&6 9049else 9050 $RM conftest* 9051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9052 9053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9054 (eval $ac_compile) 2>&5 9055 ac_status=$? 9056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9057 test $ac_status = 0; } 2>conftest.err; then 9058 soname=conftest 9059 lib=conftest 9060 libobjs=conftest.$ac_objext 9061 deplibs= 9062 wl=$lt_prog_compiler_wl 9063 pic_flag=$lt_prog_compiler_pic 9064 compiler_flags=-v 9065 linker_flags=-v 9066 verstring= 9067 output_objdir=. 9068 libname=conftest 9069 lt_save_allow_undefined_flag=$allow_undefined_flag 9070 allow_undefined_flag= 9071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9072 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9073 ac_status=$? 9074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9075 test $ac_status = 0; } 9076 then 9077 lt_cv_archive_cmds_need_lc=no 9078 else 9079 lt_cv_archive_cmds_need_lc=yes 9080 fi 9081 allow_undefined_flag=$lt_save_allow_undefined_flag 9082 else 9083 cat conftest.err 1>&5 9084 fi 9085 $RM conftest* 9086 9087fi 9088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9089$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9090 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9091 ;; 9092 esac 9093 fi 9094 ;; 9095esac 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 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 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9254$as_echo_n "checking dynamic linker characteristics... " >&6; } 9255 9256if test "$GCC" = yes; then 9257 case $host_os in 9258 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9259 *) lt_awk_arg="/^libraries:/" ;; 9260 esac 9261 case $host_os in 9262 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9263 *) lt_sed_strip_eq="s,=/,/,g" ;; 9264 esac 9265 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9266 case $lt_search_path_spec in 9267 *\;*) 9268 # if the path contains ";" then we assume it to be the separator 9269 # otherwise default to the standard path separator (i.e. ":") - it is 9270 # assumed that no part of a normal pathname contains ";" but that should 9271 # okay in the real world where ";" in dirpaths is itself problematic. 9272 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9273 ;; 9274 *) 9275 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9276 ;; 9277 esac 9278 # Ok, now we have the path, separated by spaces, we can step through it 9279 # and add multilib dir if necessary. 9280 lt_tmp_lt_search_path_spec= 9281 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9282 for lt_sys_path in $lt_search_path_spec; do 9283 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9284 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9285 else 9286 test -d "$lt_sys_path" && \ 9287 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9288 fi 9289 done 9290 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9291BEGIN {RS=" "; FS="/|\n";} { 9292 lt_foo=""; 9293 lt_count=0; 9294 for (lt_i = NF; lt_i > 0; lt_i--) { 9295 if ($lt_i != "" && $lt_i != ".") { 9296 if ($lt_i == "..") { 9297 lt_count++; 9298 } else { 9299 if (lt_count == 0) { 9300 lt_foo="/" $lt_i lt_foo; 9301 } else { 9302 lt_count--; 9303 } 9304 } 9305 } 9306 } 9307 if (lt_foo != "") { lt_freq[lt_foo]++; } 9308 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9309}'` 9310 # AWK program above erroneously prepends '/' to C:/dos/paths 9311 # for these hosts. 9312 case $host_os in 9313 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9314 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9315 esac 9316 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9317else 9318 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9319fi 9320library_names_spec= 9321libname_spec='lib$name' 9322soname_spec= 9323shrext_cmds=".so" 9324postinstall_cmds= 9325postuninstall_cmds= 9326finish_cmds= 9327finish_eval= 9328shlibpath_var= 9329shlibpath_overrides_runpath=unknown 9330version_type=none 9331dynamic_linker="$host_os ld.so" 9332sys_lib_dlsearch_path_spec="/lib /usr/lib" 9333need_lib_prefix=unknown 9334hardcode_into_libs=no 9335 9336# when you set need_version to no, make sure it does not cause -set_version 9337# flags to be left without arguments 9338need_version=unknown 9339 9340case $host_os in 9341aix3*) 9342 version_type=linux 9343 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9344 shlibpath_var=LIBPATH 9345 9346 # AIX 3 has no versioning support, so we append a major version to the name. 9347 soname_spec='${libname}${release}${shared_ext}$major' 9348 ;; 9349 9350aix[4-9]*) 9351 version_type=linux 9352 need_lib_prefix=no 9353 need_version=no 9354 hardcode_into_libs=yes 9355 if test "$host_cpu" = ia64; then 9356 # AIX 5 supports IA64 9357 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9358 shlibpath_var=LD_LIBRARY_PATH 9359 else 9360 # With GCC up to 2.95.x, collect2 would create an import file 9361 # for dependence libraries. The import file would start with 9362 # the line `#! .'. This would cause the generated library to 9363 # depend on `.', always an invalid library. This was fixed in 9364 # development snapshots of GCC prior to 3.0. 9365 case $host_os in 9366 aix4 | aix4.[01] | aix4.[01].*) 9367 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9368 echo ' yes ' 9369 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9370 : 9371 else 9372 can_build_shared=no 9373 fi 9374 ;; 9375 esac 9376 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9377 # soname into executable. Probably we can add versioning support to 9378 # collect2, so additional links can be useful in future. 9379 if test "$aix_use_runtimelinking" = yes; then 9380 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9381 # instead of lib<name>.a to let people know that these are not 9382 # typical AIX shared libraries. 9383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9384 else 9385 # We preserve .a as extension for shared libraries through AIX4.2 9386 # and later when we are not doing run time linking. 9387 library_names_spec='${libname}${release}.a $libname.a' 9388 soname_spec='${libname}${release}${shared_ext}$major' 9389 fi 9390 shlibpath_var=LIBPATH 9391 fi 9392 ;; 9393 9394amigaos*) 9395 case $host_cpu in 9396 powerpc) 9397 # Since July 2007 AmigaOS4 officially supports .so libraries. 9398 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9400 ;; 9401 m68k) 9402 library_names_spec='$libname.ixlibrary $libname.a' 9403 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9404 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 9405 ;; 9406 esac 9407 ;; 9408 9409beos*) 9410 library_names_spec='${libname}${shared_ext}' 9411 dynamic_linker="$host_os ld.so" 9412 shlibpath_var=LIBRARY_PATH 9413 ;; 9414 9415bsdi[45]*) 9416 version_type=linux 9417 need_version=no 9418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9419 soname_spec='${libname}${release}${shared_ext}$major' 9420 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9421 shlibpath_var=LD_LIBRARY_PATH 9422 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9423 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9424 # the default ld.so.conf also contains /usr/contrib/lib and 9425 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9426 # libtool to hard-code these into programs 9427 ;; 9428 9429cygwin* | mingw* | pw32* | cegcc*) 9430 version_type=windows 9431 shrext_cmds=".dll" 9432 need_version=no 9433 need_lib_prefix=no 9434 9435 case $GCC,$host_os in 9436 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 9437 library_names_spec='$libname.dll.a' 9438 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9439 postinstall_cmds='base_file=`basename \${file}`~ 9440 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9441 dldir=$destdir/`dirname \$dlpath`~ 9442 test -d \$dldir || mkdir -p \$dldir~ 9443 $install_prog $dir/$dlname \$dldir/$dlname~ 9444 chmod a+x \$dldir/$dlname~ 9445 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9446 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9447 fi' 9448 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9449 dlpath=$dir/\$dldll~ 9450 $RM \$dlpath' 9451 shlibpath_overrides_runpath=yes 9452 9453 case $host_os in 9454 cygwin*) 9455 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9456 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9457 9458 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 9459 ;; 9460 mingw* | cegcc*) 9461 # MinGW DLLs use traditional 'lib' prefix 9462 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9463 ;; 9464 pw32*) 9465 # pw32 DLLs use 'pw' prefix rather than 'lib' 9466 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9467 ;; 9468 esac 9469 ;; 9470 9471 *) 9472 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9473 ;; 9474 esac 9475 dynamic_linker='Win32 ld.exe' 9476 # FIXME: first we should search . and the directory the executable is in 9477 shlibpath_var=PATH 9478 ;; 9479 9480darwin* | rhapsody*) 9481 dynamic_linker="$host_os dyld" 9482 version_type=darwin 9483 need_lib_prefix=no 9484 need_version=no 9485 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 9486 soname_spec='${libname}${release}${major}$shared_ext' 9487 shlibpath_overrides_runpath=yes 9488 shlibpath_var=DYLD_LIBRARY_PATH 9489 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 9490 9491 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 9492 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 9493 ;; 9494 9495dgux*) 9496 version_type=linux 9497 need_lib_prefix=no 9498 need_version=no 9499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 9500 soname_spec='${libname}${release}${shared_ext}$major' 9501 shlibpath_var=LD_LIBRARY_PATH 9502 ;; 9503 9504freebsd1*) 9505 dynamic_linker=no 9506 ;; 9507 9508freebsd* | dragonfly*) 9509 # DragonFly does not have aout. When/if they implement a new 9510 # versioning mechanism, adjust this. 9511 if test -x /usr/bin/objformat; then 9512 objformat=`/usr/bin/objformat` 9513 else 9514 case $host_os in 9515 freebsd[123]*) objformat=aout ;; 9516 *) objformat=elf ;; 9517 esac 9518 fi 9519 version_type=freebsd-$objformat 9520 case $version_type in 9521 freebsd-elf*) 9522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9523 need_version=no 9524 need_lib_prefix=no 9525 ;; 9526 freebsd-*) 9527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 9528 need_version=yes 9529 ;; 9530 esac 9531 shlibpath_var=LD_LIBRARY_PATH 9532 case $host_os in 9533 freebsd2*) 9534 shlibpath_overrides_runpath=yes 9535 ;; 9536 freebsd3.[01]* | freebsdelf3.[01]*) 9537 shlibpath_overrides_runpath=yes 9538 hardcode_into_libs=yes 9539 ;; 9540 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 9541 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 9542 shlibpath_overrides_runpath=no 9543 hardcode_into_libs=yes 9544 ;; 9545 *) # from 4.6 on, and DragonFly 9546 shlibpath_overrides_runpath=yes 9547 hardcode_into_libs=yes 9548 ;; 9549 esac 9550 ;; 9551 9552gnu*) 9553 version_type=linux 9554 need_lib_prefix=no 9555 need_version=no 9556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9557 soname_spec='${libname}${release}${shared_ext}$major' 9558 shlibpath_var=LD_LIBRARY_PATH 9559 hardcode_into_libs=yes 9560 ;; 9561 9562haiku*) 9563 version_type=linux 9564 need_lib_prefix=no 9565 need_version=no 9566 dynamic_linker="$host_os runtime_loader" 9567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 9568 soname_spec='${libname}${release}${shared_ext}$major' 9569 shlibpath_var=LIBRARY_PATH 9570 shlibpath_overrides_runpath=yes 9571 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 9572 hardcode_into_libs=yes 9573 ;; 9574 9575hpux9* | hpux10* | hpux11*) 9576 # Give a soname corresponding to the major version so that dld.sl refuses to 9577 # link against other versions. 9578 version_type=sunos 9579 need_lib_prefix=no 9580 need_version=no 9581 case $host_cpu in 9582 ia64*) 9583 shrext_cmds='.so' 9584 hardcode_into_libs=yes 9585 dynamic_linker="$host_os dld.so" 9586 shlibpath_var=LD_LIBRARY_PATH 9587 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9589 soname_spec='${libname}${release}${shared_ext}$major' 9590 if test "X$HPUX_IA64_MODE" = X32; then 9591 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 9592 else 9593 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 9594 fi 9595 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9596 ;; 9597 hppa*64*) 9598 shrext_cmds='.sl' 9599 hardcode_into_libs=yes 9600 dynamic_linker="$host_os dld.sl" 9601 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 9602 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 9603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9604 soname_spec='${libname}${release}${shared_ext}$major' 9605 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 9606 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 9607 ;; 9608 *) 9609 shrext_cmds='.sl' 9610 dynamic_linker="$host_os dld.sl" 9611 shlibpath_var=SHLIB_PATH 9612 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 9613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9614 soname_spec='${libname}${release}${shared_ext}$major' 9615 ;; 9616 esac 9617 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 9618 postinstall_cmds='chmod 555 $lib' 9619 # or fails outright, so override atomically: 9620 install_override_mode=555 9621 ;; 9622 9623interix[3-9]*) 9624 version_type=linux 9625 need_lib_prefix=no 9626 need_version=no 9627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9628 soname_spec='${libname}${release}${shared_ext}$major' 9629 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 9630 shlibpath_var=LD_LIBRARY_PATH 9631 shlibpath_overrides_runpath=no 9632 hardcode_into_libs=yes 9633 ;; 9634 9635irix5* | irix6* | nonstopux*) 9636 case $host_os in 9637 nonstopux*) version_type=nonstopux ;; 9638 *) 9639 if test "$lt_cv_prog_gnu_ld" = yes; then 9640 version_type=linux 9641 else 9642 version_type=irix 9643 fi ;; 9644 esac 9645 need_lib_prefix=no 9646 need_version=no 9647 soname_spec='${libname}${release}${shared_ext}$major' 9648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 9649 case $host_os in 9650 irix5* | nonstopux*) 9651 libsuff= shlibsuff= 9652 ;; 9653 *) 9654 case $LD in # libtool.m4 will add one of these switches to LD 9655 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 9656 libsuff= shlibsuff= libmagic=32-bit;; 9657 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 9658 libsuff=32 shlibsuff=N32 libmagic=N32;; 9659 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 9660 libsuff=64 shlibsuff=64 libmagic=64-bit;; 9661 *) libsuff= shlibsuff= libmagic=never-match;; 9662 esac 9663 ;; 9664 esac 9665 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 9666 shlibpath_overrides_runpath=no 9667 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 9668 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 9669 hardcode_into_libs=yes 9670 ;; 9671 9672# No shared lib support for Linux oldld, aout, or coff. 9673linux*oldld* | linux*aout* | linux*coff*) 9674 dynamic_linker=no 9675 ;; 9676 9677# This must be Linux ELF. 9678linux* | k*bsd*-gnu | kopensolaris*-gnu) 9679 version_type=linux 9680 need_lib_prefix=no 9681 need_version=no 9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9683 soname_spec='${libname}${release}${shared_ext}$major' 9684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 9685 shlibpath_var=LD_LIBRARY_PATH 9686 shlibpath_overrides_runpath=no 9687 9688 # Some binutils ld are patched to set DT_RUNPATH 9689 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 9690 $as_echo_n "(cached) " >&6 9691else 9692 lt_cv_shlibpath_overrides_runpath=no 9693 save_LDFLAGS=$LDFLAGS 9694 save_libdir=$libdir 9695 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 9696 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9698/* end confdefs.h. */ 9699 9700int 9701main () 9702{ 9703 9704 ; 9705 return 0; 9706} 9707_ACEOF 9708if ac_fn_c_try_link "$LINENO"; then : 9709 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 9710 lt_cv_shlibpath_overrides_runpath=yes 9711fi 9712fi 9713rm -f core conftest.err conftest.$ac_objext \ 9714 conftest$ac_exeext conftest.$ac_ext 9715 LDFLAGS=$save_LDFLAGS 9716 libdir=$save_libdir 9717 9718fi 9719 9720 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 9721 9722 # This implies no fast_install, which is unacceptable. 9723 # Some rework will be needed to allow for fast_install 9724 # before this can be enabled. 9725 hardcode_into_libs=yes 9726 9727 # Add ABI-specific directories to the system library path. 9728 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 9729 9730 # Append ld.so.conf contents to the search path 9731 if test -f /etc/ld.so.conf; then 9732 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' ' '` 9733 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 9734 9735 fi 9736 9737 # We used to test for /lib/ld.so.1 and disable shared libraries on 9738 # powerpc, because MkLinux only supported shared libraries with the 9739 # GNU dynamic linker. Since this was broken with cross compilers, 9740 # most powerpc-linux boxes support dynamic linking these days and 9741 # people can always --disable-shared, the test was removed, and we 9742 # assume the GNU/Linux dynamic linker is in use. 9743 dynamic_linker='GNU/Linux ld.so' 9744 ;; 9745 9746netbsd*) 9747 version_type=sunos 9748 need_lib_prefix=no 9749 need_version=no 9750 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9753 dynamic_linker='NetBSD (a.out) ld.so' 9754 else 9755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 9756 soname_spec='${libname}${release}${shared_ext}$major' 9757 dynamic_linker='NetBSD ld.elf_so' 9758 fi 9759 shlibpath_var=LD_LIBRARY_PATH 9760 shlibpath_overrides_runpath=yes 9761 hardcode_into_libs=yes 9762 ;; 9763 9764newsos6) 9765 version_type=linux 9766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9767 shlibpath_var=LD_LIBRARY_PATH 9768 shlibpath_overrides_runpath=yes 9769 ;; 9770 9771*nto* | *qnx*) 9772 version_type=qnx 9773 need_lib_prefix=no 9774 need_version=no 9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9776 soname_spec='${libname}${release}${shared_ext}$major' 9777 shlibpath_var=LD_LIBRARY_PATH 9778 shlibpath_overrides_runpath=no 9779 hardcode_into_libs=yes 9780 dynamic_linker='ldqnx.so' 9781 ;; 9782 9783openbsd*) 9784 version_type=sunos 9785 sys_lib_dlsearch_path_spec="/usr/lib" 9786 need_lib_prefix=no 9787 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 9788 case $host_os in 9789 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 9790 *) need_version=no ;; 9791 esac 9792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9793 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 9794 shlibpath_var=LD_LIBRARY_PATH 9795 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9796 case $host_os in 9797 openbsd2.[89] | openbsd2.[89].*) 9798 shlibpath_overrides_runpath=no 9799 ;; 9800 *) 9801 shlibpath_overrides_runpath=yes 9802 ;; 9803 esac 9804 else 9805 shlibpath_overrides_runpath=yes 9806 fi 9807 ;; 9808 9809os2*) 9810 libname_spec='$name' 9811 shrext_cmds=".dll" 9812 need_lib_prefix=no 9813 library_names_spec='$libname${shared_ext} $libname.a' 9814 dynamic_linker='OS/2 ld.exe' 9815 shlibpath_var=LIBPATH 9816 ;; 9817 9818osf3* | osf4* | osf5*) 9819 version_type=osf 9820 need_lib_prefix=no 9821 need_version=no 9822 soname_spec='${libname}${release}${shared_ext}$major' 9823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9824 shlibpath_var=LD_LIBRARY_PATH 9825 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 9826 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 9827 ;; 9828 9829rdos*) 9830 dynamic_linker=no 9831 ;; 9832 9833solaris*) 9834 version_type=linux 9835 need_lib_prefix=no 9836 need_version=no 9837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9838 soname_spec='${libname}${release}${shared_ext}$major' 9839 shlibpath_var=LD_LIBRARY_PATH 9840 shlibpath_overrides_runpath=yes 9841 hardcode_into_libs=yes 9842 # ldd complains unless libraries are executable 9843 postinstall_cmds='chmod +x $lib' 9844 ;; 9845 9846sunos4*) 9847 version_type=sunos 9848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 9849 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 9850 shlibpath_var=LD_LIBRARY_PATH 9851 shlibpath_overrides_runpath=yes 9852 if test "$with_gnu_ld" = yes; then 9853 need_lib_prefix=no 9854 fi 9855 need_version=yes 9856 ;; 9857 9858sysv4 | sysv4.3*) 9859 version_type=linux 9860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9861 soname_spec='${libname}${release}${shared_ext}$major' 9862 shlibpath_var=LD_LIBRARY_PATH 9863 case $host_vendor in 9864 sni) 9865 shlibpath_overrides_runpath=no 9866 need_lib_prefix=no 9867 runpath_var=LD_RUN_PATH 9868 ;; 9869 siemens) 9870 need_lib_prefix=no 9871 ;; 9872 motorola) 9873 need_lib_prefix=no 9874 need_version=no 9875 shlibpath_overrides_runpath=no 9876 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 9877 ;; 9878 esac 9879 ;; 9880 9881sysv4*MP*) 9882 if test -d /usr/nec ;then 9883 version_type=linux 9884 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 9885 soname_spec='$libname${shared_ext}.$major' 9886 shlibpath_var=LD_LIBRARY_PATH 9887 fi 9888 ;; 9889 9890sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 9891 version_type=freebsd-elf 9892 need_lib_prefix=no 9893 need_version=no 9894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 9895 soname_spec='${libname}${release}${shared_ext}$major' 9896 shlibpath_var=LD_LIBRARY_PATH 9897 shlibpath_overrides_runpath=yes 9898 hardcode_into_libs=yes 9899 if test "$with_gnu_ld" = yes; then 9900 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 9901 else 9902 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 9903 case $host_os in 9904 sco3.2v5*) 9905 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 9906 ;; 9907 esac 9908 fi 9909 sys_lib_dlsearch_path_spec='/usr/lib' 9910 ;; 9911 9912tpf*) 9913 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 9914 version_type=linux 9915 need_lib_prefix=no 9916 need_version=no 9917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9918 shlibpath_var=LD_LIBRARY_PATH 9919 shlibpath_overrides_runpath=no 9920 hardcode_into_libs=yes 9921 ;; 9922 9923uts4*) 9924 version_type=linux 9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9926 soname_spec='${libname}${release}${shared_ext}$major' 9927 shlibpath_var=LD_LIBRARY_PATH 9928 ;; 9929 9930*) 9931 dynamic_linker=no 9932 ;; 9933esac 9934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 9935$as_echo "$dynamic_linker" >&6; } 9936test "$dynamic_linker" = no && can_build_shared=no 9937 9938variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 9939if test "$GCC" = yes; then 9940 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 9941fi 9942 9943if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 9944 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 9945fi 9946if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 9947 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 9948fi 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10042$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10043hardcode_action= 10044if test -n "$hardcode_libdir_flag_spec" || 10045 test -n "$runpath_var" || 10046 test "X$hardcode_automatic" = "Xyes" ; then 10047 10048 # We can hardcode non-existent directories. 10049 if test "$hardcode_direct" != no && 10050 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10051 # have to relink, otherwise we might link with an installed library 10052 # when we should be linking with a yet-to-be-installed one 10053 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10054 test "$hardcode_minus_L" != no; then 10055 # Linking always hardcodes the temporary library directory. 10056 hardcode_action=relink 10057 else 10058 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10059 hardcode_action=immediate 10060 fi 10061else 10062 # We cannot hardcode anything, or else we can only hardcode existing 10063 # directories. 10064 hardcode_action=unsupported 10065fi 10066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10067$as_echo "$hardcode_action" >&6; } 10068 10069if test "$hardcode_action" = relink || 10070 test "$inherit_rpath" = yes; then 10071 # Fast installation is not supported 10072 enable_fast_install=no 10073elif test "$shlibpath_overrides_runpath" = yes || 10074 test "$enable_shared" = no; then 10075 # Fast installation is not necessary 10076 enable_fast_install=needless 10077fi 10078 10079 10080 10081 10082 10083 10084 if test "x$enable_dlopen" != xyes; then 10085 enable_dlopen=unknown 10086 enable_dlopen_self=unknown 10087 enable_dlopen_self_static=unknown 10088else 10089 lt_cv_dlopen=no 10090 lt_cv_dlopen_libs= 10091 10092 case $host_os in 10093 beos*) 10094 lt_cv_dlopen="load_add_on" 10095 lt_cv_dlopen_libs= 10096 lt_cv_dlopen_self=yes 10097 ;; 10098 10099 mingw* | pw32* | cegcc*) 10100 lt_cv_dlopen="LoadLibrary" 10101 lt_cv_dlopen_libs= 10102 ;; 10103 10104 cygwin*) 10105 lt_cv_dlopen="dlopen" 10106 lt_cv_dlopen_libs= 10107 ;; 10108 10109 darwin*) 10110 # if libdl is installed we need to link against it 10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10112$as_echo_n "checking for dlopen in -ldl... " >&6; } 10113if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10114 $as_echo_n "(cached) " >&6 10115else 10116 ac_check_lib_save_LIBS=$LIBS 10117LIBS="-ldl $LIBS" 10118cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10119/* end confdefs.h. */ 10120 10121/* Override any GCC internal prototype to avoid an error. 10122 Use char because int might match the return type of a GCC 10123 builtin and then its argument prototype would still apply. */ 10124#ifdef __cplusplus 10125extern "C" 10126#endif 10127char dlopen (); 10128int 10129main () 10130{ 10131return dlopen (); 10132 ; 10133 return 0; 10134} 10135_ACEOF 10136if ac_fn_c_try_link "$LINENO"; then : 10137 ac_cv_lib_dl_dlopen=yes 10138else 10139 ac_cv_lib_dl_dlopen=no 10140fi 10141rm -f core conftest.err conftest.$ac_objext \ 10142 conftest$ac_exeext conftest.$ac_ext 10143LIBS=$ac_check_lib_save_LIBS 10144fi 10145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10146$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10147if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10148 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10149else 10150 10151 lt_cv_dlopen="dyld" 10152 lt_cv_dlopen_libs= 10153 lt_cv_dlopen_self=yes 10154 10155fi 10156 10157 ;; 10158 10159 *) 10160 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10161if test "x$ac_cv_func_shl_load" = x""yes; then : 10162 lt_cv_dlopen="shl_load" 10163else 10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10165$as_echo_n "checking for shl_load in -ldld... " >&6; } 10166if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 10167 $as_echo_n "(cached) " >&6 10168else 10169 ac_check_lib_save_LIBS=$LIBS 10170LIBS="-ldld $LIBS" 10171cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10172/* end confdefs.h. */ 10173 10174/* Override any GCC internal prototype to avoid an error. 10175 Use char because int might match the return type of a GCC 10176 builtin and then its argument prototype would still apply. */ 10177#ifdef __cplusplus 10178extern "C" 10179#endif 10180char shl_load (); 10181int 10182main () 10183{ 10184return shl_load (); 10185 ; 10186 return 0; 10187} 10188_ACEOF 10189if ac_fn_c_try_link "$LINENO"; then : 10190 ac_cv_lib_dld_shl_load=yes 10191else 10192 ac_cv_lib_dld_shl_load=no 10193fi 10194rm -f core conftest.err conftest.$ac_objext \ 10195 conftest$ac_exeext conftest.$ac_ext 10196LIBS=$ac_check_lib_save_LIBS 10197fi 10198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10199$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10200if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 10201 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10202else 10203 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10204if test "x$ac_cv_func_dlopen" = x""yes; then : 10205 lt_cv_dlopen="dlopen" 10206else 10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10208$as_echo_n "checking for dlopen in -ldl... " >&6; } 10209if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10210 $as_echo_n "(cached) " >&6 10211else 10212 ac_check_lib_save_LIBS=$LIBS 10213LIBS="-ldl $LIBS" 10214cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10215/* end confdefs.h. */ 10216 10217/* Override any GCC internal prototype to avoid an error. 10218 Use char because int might match the return type of a GCC 10219 builtin and then its argument prototype would still apply. */ 10220#ifdef __cplusplus 10221extern "C" 10222#endif 10223char dlopen (); 10224int 10225main () 10226{ 10227return dlopen (); 10228 ; 10229 return 0; 10230} 10231_ACEOF 10232if ac_fn_c_try_link "$LINENO"; then : 10233 ac_cv_lib_dl_dlopen=yes 10234else 10235 ac_cv_lib_dl_dlopen=no 10236fi 10237rm -f core conftest.err conftest.$ac_objext \ 10238 conftest$ac_exeext conftest.$ac_ext 10239LIBS=$ac_check_lib_save_LIBS 10240fi 10241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10242$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10243if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 10244 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10245else 10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10247$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10248if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 10249 $as_echo_n "(cached) " >&6 10250else 10251 ac_check_lib_save_LIBS=$LIBS 10252LIBS="-lsvld $LIBS" 10253cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10254/* end confdefs.h. */ 10255 10256/* Override any GCC internal prototype to avoid an error. 10257 Use char because int might match the return type of a GCC 10258 builtin and then its argument prototype would still apply. */ 10259#ifdef __cplusplus 10260extern "C" 10261#endif 10262char dlopen (); 10263int 10264main () 10265{ 10266return dlopen (); 10267 ; 10268 return 0; 10269} 10270_ACEOF 10271if ac_fn_c_try_link "$LINENO"; then : 10272 ac_cv_lib_svld_dlopen=yes 10273else 10274 ac_cv_lib_svld_dlopen=no 10275fi 10276rm -f core conftest.err conftest.$ac_objext \ 10277 conftest$ac_exeext conftest.$ac_ext 10278LIBS=$ac_check_lib_save_LIBS 10279fi 10280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10281$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10282if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 10283 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10284else 10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10286$as_echo_n "checking for dld_link in -ldld... " >&6; } 10287if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 10288 $as_echo_n "(cached) " >&6 10289else 10290 ac_check_lib_save_LIBS=$LIBS 10291LIBS="-ldld $LIBS" 10292cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10293/* end confdefs.h. */ 10294 10295/* Override any GCC internal prototype to avoid an error. 10296 Use char because int might match the return type of a GCC 10297 builtin and then its argument prototype would still apply. */ 10298#ifdef __cplusplus 10299extern "C" 10300#endif 10301char dld_link (); 10302int 10303main () 10304{ 10305return dld_link (); 10306 ; 10307 return 0; 10308} 10309_ACEOF 10310if ac_fn_c_try_link "$LINENO"; then : 10311 ac_cv_lib_dld_dld_link=yes 10312else 10313 ac_cv_lib_dld_dld_link=no 10314fi 10315rm -f core conftest.err conftest.$ac_objext \ 10316 conftest$ac_exeext conftest.$ac_ext 10317LIBS=$ac_check_lib_save_LIBS 10318fi 10319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10320$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10321if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 10322 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10323fi 10324 10325 10326fi 10327 10328 10329fi 10330 10331 10332fi 10333 10334 10335fi 10336 10337 10338fi 10339 10340 ;; 10341 esac 10342 10343 if test "x$lt_cv_dlopen" != xno; then 10344 enable_dlopen=yes 10345 else 10346 enable_dlopen=no 10347 fi 10348 10349 case $lt_cv_dlopen in 10350 dlopen) 10351 save_CPPFLAGS="$CPPFLAGS" 10352 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10353 10354 save_LDFLAGS="$LDFLAGS" 10355 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10356 10357 save_LIBS="$LIBS" 10358 LIBS="$lt_cv_dlopen_libs $LIBS" 10359 10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10361$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10362if test "${lt_cv_dlopen_self+set}" = set; then : 10363 $as_echo_n "(cached) " >&6 10364else 10365 if test "$cross_compiling" = yes; then : 10366 lt_cv_dlopen_self=cross 10367else 10368 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10369 lt_status=$lt_dlunknown 10370 cat > conftest.$ac_ext <<_LT_EOF 10371#line $LINENO "configure" 10372#include "confdefs.h" 10373 10374#if HAVE_DLFCN_H 10375#include <dlfcn.h> 10376#endif 10377 10378#include <stdio.h> 10379 10380#ifdef RTLD_GLOBAL 10381# define LT_DLGLOBAL RTLD_GLOBAL 10382#else 10383# ifdef DL_GLOBAL 10384# define LT_DLGLOBAL DL_GLOBAL 10385# else 10386# define LT_DLGLOBAL 0 10387# endif 10388#endif 10389 10390/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10391 find out it does not work in some platform. */ 10392#ifndef LT_DLLAZY_OR_NOW 10393# ifdef RTLD_LAZY 10394# define LT_DLLAZY_OR_NOW RTLD_LAZY 10395# else 10396# ifdef DL_LAZY 10397# define LT_DLLAZY_OR_NOW DL_LAZY 10398# else 10399# ifdef RTLD_NOW 10400# define LT_DLLAZY_OR_NOW RTLD_NOW 10401# else 10402# ifdef DL_NOW 10403# define LT_DLLAZY_OR_NOW DL_NOW 10404# else 10405# define LT_DLLAZY_OR_NOW 0 10406# endif 10407# endif 10408# endif 10409# endif 10410#endif 10411 10412/* When -fvisbility=hidden is used, assume the code has been annotated 10413 correspondingly for the symbols needed. */ 10414#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10415void fnord () __attribute__((visibility("default"))); 10416#endif 10417 10418void fnord () { int i=42; } 10419int main () 10420{ 10421 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10422 int status = $lt_dlunknown; 10423 10424 if (self) 10425 { 10426 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10427 else 10428 { 10429 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10430 else puts (dlerror ()); 10431 } 10432 /* dlclose (self); */ 10433 } 10434 else 10435 puts (dlerror ()); 10436 10437 return status; 10438} 10439_LT_EOF 10440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10441 (eval $ac_link) 2>&5 10442 ac_status=$? 10443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10444 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10445 (./conftest; exit; ) >&5 2>/dev/null 10446 lt_status=$? 10447 case x$lt_status in 10448 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10449 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10450 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10451 esac 10452 else : 10453 # compilation failed 10454 lt_cv_dlopen_self=no 10455 fi 10456fi 10457rm -fr conftest* 10458 10459 10460fi 10461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10462$as_echo "$lt_cv_dlopen_self" >&6; } 10463 10464 if test "x$lt_cv_dlopen_self" = xyes; then 10465 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10467$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10468if test "${lt_cv_dlopen_self_static+set}" = set; then : 10469 $as_echo_n "(cached) " >&6 10470else 10471 if test "$cross_compiling" = yes; then : 10472 lt_cv_dlopen_self_static=cross 10473else 10474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10475 lt_status=$lt_dlunknown 10476 cat > conftest.$ac_ext <<_LT_EOF 10477#line $LINENO "configure" 10478#include "confdefs.h" 10479 10480#if HAVE_DLFCN_H 10481#include <dlfcn.h> 10482#endif 10483 10484#include <stdio.h> 10485 10486#ifdef RTLD_GLOBAL 10487# define LT_DLGLOBAL RTLD_GLOBAL 10488#else 10489# ifdef DL_GLOBAL 10490# define LT_DLGLOBAL DL_GLOBAL 10491# else 10492# define LT_DLGLOBAL 0 10493# endif 10494#endif 10495 10496/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10497 find out it does not work in some platform. */ 10498#ifndef LT_DLLAZY_OR_NOW 10499# ifdef RTLD_LAZY 10500# define LT_DLLAZY_OR_NOW RTLD_LAZY 10501# else 10502# ifdef DL_LAZY 10503# define LT_DLLAZY_OR_NOW DL_LAZY 10504# else 10505# ifdef RTLD_NOW 10506# define LT_DLLAZY_OR_NOW RTLD_NOW 10507# else 10508# ifdef DL_NOW 10509# define LT_DLLAZY_OR_NOW DL_NOW 10510# else 10511# define LT_DLLAZY_OR_NOW 0 10512# endif 10513# endif 10514# endif 10515# endif 10516#endif 10517 10518/* When -fvisbility=hidden is used, assume the code has been annotated 10519 correspondingly for the symbols needed. */ 10520#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10521void fnord () __attribute__((visibility("default"))); 10522#endif 10523 10524void fnord () { int i=42; } 10525int main () 10526{ 10527 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10528 int status = $lt_dlunknown; 10529 10530 if (self) 10531 { 10532 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10533 else 10534 { 10535 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10536 else puts (dlerror ()); 10537 } 10538 /* dlclose (self); */ 10539 } 10540 else 10541 puts (dlerror ()); 10542 10543 return status; 10544} 10545_LT_EOF 10546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10547 (eval $ac_link) 2>&5 10548 ac_status=$? 10549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10550 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10551 (./conftest; exit; ) >&5 2>/dev/null 10552 lt_status=$? 10553 case x$lt_status in 10554 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 10555 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 10556 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 10557 esac 10558 else : 10559 # compilation failed 10560 lt_cv_dlopen_self_static=no 10561 fi 10562fi 10563rm -fr conftest* 10564 10565 10566fi 10567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 10568$as_echo "$lt_cv_dlopen_self_static" >&6; } 10569 fi 10570 10571 CPPFLAGS="$save_CPPFLAGS" 10572 LDFLAGS="$save_LDFLAGS" 10573 LIBS="$save_LIBS" 10574 ;; 10575 esac 10576 10577 case $lt_cv_dlopen_self in 10578 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10579 *) enable_dlopen_self=unknown ;; 10580 esac 10581 10582 case $lt_cv_dlopen_self_static in 10583 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10584 *) enable_dlopen_self_static=unknown ;; 10585 esac 10586fi 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604striplib= 10605old_striplib= 10606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 10607$as_echo_n "checking whether stripping libraries is possible... " >&6; } 10608if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 10609 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10610 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10612$as_echo "yes" >&6; } 10613else 10614# FIXME - insert some real tests, host_os isn't really good enough 10615 case $host_os in 10616 darwin*) 10617 if test -n "$STRIP" ; then 10618 striplib="$STRIP -x" 10619 old_striplib="$STRIP -S" 10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10621$as_echo "yes" >&6; } 10622 else 10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10624$as_echo "no" >&6; } 10625 fi 10626 ;; 10627 *) 10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10629$as_echo "no" >&6; } 10630 ;; 10631 esac 10632fi 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 # Report which library types will actually be built 10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 10647$as_echo_n "checking if libtool supports shared libraries... " >&6; } 10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 10649$as_echo "$can_build_shared" >&6; } 10650 10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 10652$as_echo_n "checking whether to build shared libraries... " >&6; } 10653 test "$can_build_shared" = "no" && enable_shared=no 10654 10655 # On AIX, shared libraries and static libraries use the same namespace, and 10656 # are all built from PIC. 10657 case $host_os in 10658 aix3*) 10659 test "$enable_shared" = yes && enable_static=no 10660 if test -n "$RANLIB"; then 10661 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10662 postinstall_cmds='$RANLIB $lib' 10663 fi 10664 ;; 10665 10666 aix[4-9]*) 10667 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10668 test "$enable_shared" = yes && enable_static=no 10669 fi 10670 ;; 10671 esac 10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 10673$as_echo "$enable_shared" >&6; } 10674 10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 10676$as_echo_n "checking whether to build static libraries... " >&6; } 10677 # Make sure either enable_shared or enable_static is yes. 10678 test "$enable_shared" = yes || enable_static=yes 10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 10680$as_echo "$enable_static" >&6; } 10681 10682 10683 10684 10685fi 10686ac_ext=c 10687ac_cpp='$CPP $CPPFLAGS' 10688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10690ac_compiler_gnu=$ac_cv_c_compiler_gnu 10691 10692CC="$lt_save_CC" 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 ac_config_commands="$ac_config_commands libtool" 10707 10708 10709 10710 10711# Only expand once: 10712 10713 10714 10715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 10716$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 10717set x ${MAKE-make} 10718ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 10719if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 10720 $as_echo_n "(cached) " >&6 10721else 10722 cat >conftest.make <<\_ACEOF 10723SHELL = /bin/sh 10724all: 10725 @echo '@@@%%%=$(MAKE)=@@@%%%' 10726_ACEOF 10727# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 10728case `${MAKE-make} -f conftest.make 2>/dev/null` in 10729 *@@@%%%=?*=@@@%%%*) 10730 eval ac_cv_prog_make_${ac_make}_set=yes;; 10731 *) 10732 eval ac_cv_prog_make_${ac_make}_set=no;; 10733esac 10734rm -f conftest.make 10735fi 10736if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10738$as_echo "yes" >&6; } 10739 SET_MAKE= 10740else 10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10742$as_echo "no" >&6; } 10743 SET_MAKE="MAKE=${MAKE-make}" 10744fi 10745 10746ac_ext=cpp 10747ac_cpp='$CXXCPP $CPPFLAGS' 10748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10751if test -z "$CXX"; then 10752 if test -n "$CCC"; then 10753 CXX=$CCC 10754 else 10755 if test -n "$ac_tool_prefix"; then 10756 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 10757 do 10758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10759set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10761$as_echo_n "checking for $ac_word... " >&6; } 10762if test "${ac_cv_prog_CXX+set}" = set; then : 10763 $as_echo_n "(cached) " >&6 10764else 10765 if test -n "$CXX"; then 10766 ac_cv_prog_CXX="$CXX" # Let the user override the test. 10767else 10768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10769for as_dir in $PATH 10770do 10771 IFS=$as_save_IFS 10772 test -z "$as_dir" && as_dir=. 10773 for ac_exec_ext in '' $ac_executable_extensions; do 10774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10775 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 10776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10777 break 2 10778 fi 10779done 10780 done 10781IFS=$as_save_IFS 10782 10783fi 10784fi 10785CXX=$ac_cv_prog_CXX 10786if test -n "$CXX"; then 10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 10788$as_echo "$CXX" >&6; } 10789else 10790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10791$as_echo "no" >&6; } 10792fi 10793 10794 10795 test -n "$CXX" && break 10796 done 10797fi 10798if test -z "$CXX"; then 10799 ac_ct_CXX=$CXX 10800 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 10801do 10802 # Extract the first word of "$ac_prog", so it can be a program name with args. 10803set dummy $ac_prog; ac_word=$2 10804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10805$as_echo_n "checking for $ac_word... " >&6; } 10806if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 10807 $as_echo_n "(cached) " >&6 10808else 10809 if test -n "$ac_ct_CXX"; then 10810 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 10811else 10812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10813for as_dir in $PATH 10814do 10815 IFS=$as_save_IFS 10816 test -z "$as_dir" && as_dir=. 10817 for ac_exec_ext in '' $ac_executable_extensions; do 10818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10819 ac_cv_prog_ac_ct_CXX="$ac_prog" 10820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10821 break 2 10822 fi 10823done 10824 done 10825IFS=$as_save_IFS 10826 10827fi 10828fi 10829ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 10830if test -n "$ac_ct_CXX"; then 10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 10832$as_echo "$ac_ct_CXX" >&6; } 10833else 10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10835$as_echo "no" >&6; } 10836fi 10837 10838 10839 test -n "$ac_ct_CXX" && break 10840done 10841 10842 if test "x$ac_ct_CXX" = x; then 10843 CXX="g++" 10844 else 10845 case $cross_compiling:$ac_tool_warned in 10846yes:) 10847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10849ac_tool_warned=yes ;; 10850esac 10851 CXX=$ac_ct_CXX 10852 fi 10853fi 10854 10855 fi 10856fi 10857# Provide some information about the compiler. 10858$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 10859set X $ac_compile 10860ac_compiler=$2 10861for ac_option in --version -v -V -qversion; do 10862 { { ac_try="$ac_compiler $ac_option >&5" 10863case "(($ac_try" in 10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10865 *) ac_try_echo=$ac_try;; 10866esac 10867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 10868$as_echo "$ac_try_echo"; } >&5 10869 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 10870 ac_status=$? 10871 if test -s conftest.err; then 10872 sed '10a\ 10873... rest of stderr output deleted ... 10874 10q' conftest.err >conftest.er1 10875 cat conftest.er1 >&5 10876 fi 10877 rm -f conftest.er1 conftest.err 10878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10879 test $ac_status = 0; } 10880done 10881 10882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 10883$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 10884if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 10885 $as_echo_n "(cached) " >&6 10886else 10887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10888/* end confdefs.h. */ 10889 10890int 10891main () 10892{ 10893#ifndef __GNUC__ 10894 choke me 10895#endif 10896 10897 ; 10898 return 0; 10899} 10900_ACEOF 10901if ac_fn_cxx_try_compile "$LINENO"; then : 10902 ac_compiler_gnu=yes 10903else 10904 ac_compiler_gnu=no 10905fi 10906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10907ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 10908 10909fi 10910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 10911$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 10912if test $ac_compiler_gnu = yes; then 10913 GXX=yes 10914else 10915 GXX= 10916fi 10917ac_test_CXXFLAGS=${CXXFLAGS+set} 10918ac_save_CXXFLAGS=$CXXFLAGS 10919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 10920$as_echo_n "checking whether $CXX accepts -g... " >&6; } 10921if test "${ac_cv_prog_cxx_g+set}" = set; then : 10922 $as_echo_n "(cached) " >&6 10923else 10924 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 10925 ac_cxx_werror_flag=yes 10926 ac_cv_prog_cxx_g=no 10927 CXXFLAGS="-g" 10928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10929/* end confdefs.h. */ 10930 10931int 10932main () 10933{ 10934 10935 ; 10936 return 0; 10937} 10938_ACEOF 10939if ac_fn_cxx_try_compile "$LINENO"; then : 10940 ac_cv_prog_cxx_g=yes 10941else 10942 CXXFLAGS="" 10943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10944/* end confdefs.h. */ 10945 10946int 10947main () 10948{ 10949 10950 ; 10951 return 0; 10952} 10953_ACEOF 10954if ac_fn_cxx_try_compile "$LINENO"; then : 10955 10956else 10957 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 10958 CXXFLAGS="-g" 10959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10960/* end confdefs.h. */ 10961 10962int 10963main () 10964{ 10965 10966 ; 10967 return 0; 10968} 10969_ACEOF 10970if ac_fn_cxx_try_compile "$LINENO"; then : 10971 ac_cv_prog_cxx_g=yes 10972fi 10973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10974fi 10975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10976fi 10977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10978 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 10979fi 10980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 10981$as_echo "$ac_cv_prog_cxx_g" >&6; } 10982if test "$ac_test_CXXFLAGS" = set; then 10983 CXXFLAGS=$ac_save_CXXFLAGS 10984elif test $ac_cv_prog_cxx_g = yes; then 10985 if test "$GXX" = yes; then 10986 CXXFLAGS="-g -O2" 10987 else 10988 CXXFLAGS="-g" 10989 fi 10990else 10991 if test "$GXX" = yes; then 10992 CXXFLAGS="-O2" 10993 else 10994 CXXFLAGS= 10995 fi 10996fi 10997ac_ext=c 10998ac_cpp='$CPP $CPPFLAGS' 10999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11001ac_compiler_gnu=$ac_cv_c_compiler_gnu 11002 11003depcc="$CXX" am_compiler_list= 11004 11005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 11006$as_echo_n "checking dependency style of $depcc... " >&6; } 11007if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 11008 $as_echo_n "(cached) " >&6 11009else 11010 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 11011 # We make a subdir and do the tests there. Otherwise we can end up 11012 # making bogus files that we don't know about and never remove. For 11013 # instance it was reported that on HP-UX the gcc test will end up 11014 # making a dummy file named `D' -- because `-MD' means `put the output 11015 # in D'. 11016 mkdir conftest.dir 11017 # Copy depcomp to subdir because otherwise we won't find it if we're 11018 # using a relative directory. 11019 cp "$am_depcomp" conftest.dir 11020 cd conftest.dir 11021 # We will build objects and dependencies in a subdirectory because 11022 # it helps to detect inapplicable dependency modes. For instance 11023 # both Tru64's cc and ICC support -MD to output dependencies as a 11024 # side effect of compilation, but ICC will put the dependencies in 11025 # the current directory while Tru64 will put them in the object 11026 # directory. 11027 mkdir sub 11028 11029 am_cv_CXX_dependencies_compiler_type=none 11030 if test "$am_compiler_list" = ""; then 11031 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 11032 fi 11033 am__universal=false 11034 case " $depcc " in #( 11035 *\ -arch\ *\ -arch\ *) am__universal=true ;; 11036 esac 11037 11038 for depmode in $am_compiler_list; do 11039 # Setup a source with many dependencies, because some compilers 11040 # like to wrap large dependency lists on column 80 (with \), and 11041 # we should not choose a depcomp mode which is confused by this. 11042 # 11043 # We need to recreate these files for each test, as the compiler may 11044 # overwrite some of them when testing with obscure command lines. 11045 # This happens at least with the AIX C compiler. 11046 : > sub/conftest.c 11047 for i in 1 2 3 4 5 6; do 11048 echo '#include "conftst'$i'.h"' >> sub/conftest.c 11049 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 11050 # Solaris 8's {/usr,}/bin/sh. 11051 touch sub/conftst$i.h 11052 done 11053 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 11054 11055 # We check with `-c' and `-o' for the sake of the "dashmstdout" 11056 # mode. It turns out that the SunPro C++ compiler does not properly 11057 # handle `-M -o', and we need to detect this. Also, some Intel 11058 # versions had trouble with output in subdirs 11059 am__obj=sub/conftest.${OBJEXT-o} 11060 am__minus_obj="-o $am__obj" 11061 case $depmode in 11062 gcc) 11063 # This depmode causes a compiler race in universal mode. 11064 test "$am__universal" = false || continue 11065 ;; 11066 nosideeffect) 11067 # after this tag, mechanisms are not by side-effect, so they'll 11068 # only be used when explicitly requested 11069 if test "x$enable_dependency_tracking" = xyes; then 11070 continue 11071 else 11072 break 11073 fi 11074 ;; 11075 msvisualcpp | msvcmsys) 11076 # This compiler won't grok `-c -o', but also, the minuso test has 11077 # not run yet. These depmodes are late enough in the game, and 11078 # so weak that their functioning should not be impacted. 11079 am__obj=conftest.${OBJEXT-o} 11080 am__minus_obj= 11081 ;; 11082 none) break ;; 11083 esac 11084 if depmode=$depmode \ 11085 source=sub/conftest.c object=$am__obj \ 11086 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 11087 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 11088 >/dev/null 2>conftest.err && 11089 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 11090 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 11091 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 11092 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 11093 # icc doesn't choke on unknown options, it will just issue warnings 11094 # or remarks (even with -Werror). So we grep stderr for any message 11095 # that says an option was ignored or not supported. 11096 # When given -MP, icc 7.0 and 7.1 complain thusly: 11097 # icc: Command line warning: ignoring option '-M'; no argument required 11098 # The diagnosis changed in icc 8.0: 11099 # icc: Command line remark: option '-MP' not supported 11100 if (grep 'ignoring option' conftest.err || 11101 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 11102 am_cv_CXX_dependencies_compiler_type=$depmode 11103 break 11104 fi 11105 fi 11106 done 11107 11108 cd .. 11109 rm -rf conftest.dir 11110else 11111 am_cv_CXX_dependencies_compiler_type=none 11112fi 11113 11114fi 11115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 11116$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 11117CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 11118 11119 if 11120 test "x$enable_dependency_tracking" != xno \ 11121 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 11122 am__fastdepCXX_TRUE= 11123 am__fastdepCXX_FALSE='#' 11124else 11125 am__fastdepCXX_TRUE='#' 11126 am__fastdepCXX_FALSE= 11127fi 11128 11129 11130 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11131 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11132 (test "X$CXX" != "Xg++"))) ; then 11133 ac_ext=cpp 11134ac_cpp='$CXXCPP $CPPFLAGS' 11135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 11139$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 11140if test -z "$CXXCPP"; then 11141 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 11142 $as_echo_n "(cached) " >&6 11143else 11144 # Double quotes because CXXCPP needs to be expanded 11145 for CXXCPP in "$CXX -E" "/lib/cpp" 11146 do 11147 ac_preproc_ok=false 11148for ac_cxx_preproc_warn_flag in '' yes 11149do 11150 # Use a header file that comes with gcc, so configuring glibc 11151 # with a fresh cross-compiler works. 11152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11153 # <limits.h> exists even on freestanding compilers. 11154 # On the NeXT, cc -E runs the code through the compiler's parser, 11155 # not just through cpp. "Syntax error" is here to catch this case. 11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11157/* end confdefs.h. */ 11158#ifdef __STDC__ 11159# include <limits.h> 11160#else 11161# include <assert.h> 11162#endif 11163 Syntax error 11164_ACEOF 11165if ac_fn_cxx_try_cpp "$LINENO"; then : 11166 11167else 11168 # Broken: fails on valid input. 11169continue 11170fi 11171rm -f conftest.err conftest.$ac_ext 11172 11173 # OK, works on sane cases. Now check whether nonexistent headers 11174 # can be detected and how. 11175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11176/* end confdefs.h. */ 11177#include <ac_nonexistent.h> 11178_ACEOF 11179if ac_fn_cxx_try_cpp "$LINENO"; then : 11180 # Broken: success on invalid input. 11181continue 11182else 11183 # Passes both tests. 11184ac_preproc_ok=: 11185break 11186fi 11187rm -f conftest.err conftest.$ac_ext 11188 11189done 11190# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11191rm -f conftest.err conftest.$ac_ext 11192if $ac_preproc_ok; then : 11193 break 11194fi 11195 11196 done 11197 ac_cv_prog_CXXCPP=$CXXCPP 11198 11199fi 11200 CXXCPP=$ac_cv_prog_CXXCPP 11201else 11202 ac_cv_prog_CXXCPP=$CXXCPP 11203fi 11204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 11205$as_echo "$CXXCPP" >&6; } 11206ac_preproc_ok=false 11207for ac_cxx_preproc_warn_flag in '' yes 11208do 11209 # Use a header file that comes with gcc, so configuring glibc 11210 # with a fresh cross-compiler works. 11211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11212 # <limits.h> exists even on freestanding compilers. 11213 # On the NeXT, cc -E runs the code through the compiler's parser, 11214 # not just through cpp. "Syntax error" is here to catch this case. 11215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11216/* end confdefs.h. */ 11217#ifdef __STDC__ 11218# include <limits.h> 11219#else 11220# include <assert.h> 11221#endif 11222 Syntax error 11223_ACEOF 11224if ac_fn_cxx_try_cpp "$LINENO"; then : 11225 11226else 11227 # Broken: fails on valid input. 11228continue 11229fi 11230rm -f conftest.err conftest.$ac_ext 11231 11232 # OK, works on sane cases. Now check whether nonexistent headers 11233 # can be detected and how. 11234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11235/* end confdefs.h. */ 11236#include <ac_nonexistent.h> 11237_ACEOF 11238if ac_fn_cxx_try_cpp "$LINENO"; then : 11239 # Broken: success on invalid input. 11240continue 11241else 11242 # Passes both tests. 11243ac_preproc_ok=: 11244break 11245fi 11246rm -f conftest.err conftest.$ac_ext 11247 11248done 11249# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11250rm -f conftest.err conftest.$ac_ext 11251if $ac_preproc_ok; then : 11252 11253else 11254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11256as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 11257See \`config.log' for more details" "$LINENO" 5; } 11258fi 11259 11260ac_ext=c 11261ac_cpp='$CPP $CPPFLAGS' 11262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11264ac_compiler_gnu=$ac_cv_c_compiler_gnu 11265 11266else 11267 _lt_caught_CXX_error=yes 11268fi 11269 11270ac_ext=cpp 11271ac_cpp='$CXXCPP $CPPFLAGS' 11272ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11273ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11274ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11275 11276archive_cmds_need_lc_CXX=no 11277allow_undefined_flag_CXX= 11278always_export_symbols_CXX=no 11279archive_expsym_cmds_CXX= 11280compiler_needs_object_CXX=no 11281export_dynamic_flag_spec_CXX= 11282hardcode_direct_CXX=no 11283hardcode_direct_absolute_CXX=no 11284hardcode_libdir_flag_spec_CXX= 11285hardcode_libdir_flag_spec_ld_CXX= 11286hardcode_libdir_separator_CXX= 11287hardcode_minus_L_CXX=no 11288hardcode_shlibpath_var_CXX=unsupported 11289hardcode_automatic_CXX=no 11290inherit_rpath_CXX=no 11291module_cmds_CXX= 11292module_expsym_cmds_CXX= 11293link_all_deplibs_CXX=unknown 11294old_archive_cmds_CXX=$old_archive_cmds 11295reload_flag_CXX=$reload_flag 11296reload_cmds_CXX=$reload_cmds 11297no_undefined_flag_CXX= 11298whole_archive_flag_spec_CXX= 11299enable_shared_with_static_runtimes_CXX=no 11300 11301# Source file extension for C++ test sources. 11302ac_ext=cpp 11303 11304# Object file extension for compiled C++ test sources. 11305objext=o 11306objext_CXX=$objext 11307 11308# No sense in running all these tests if we already determined that 11309# the CXX compiler isn't working. Some variables (like enable_shared) 11310# are currently assumed to apply to all compilers on this platform, 11311# and will be corrupted by setting them based on a non-working compiler. 11312if test "$_lt_caught_CXX_error" != yes; then 11313 # Code to be used in simple compile tests 11314 lt_simple_compile_test_code="int some_variable = 0;" 11315 11316 # Code to be used in simple link tests 11317 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 11318 11319 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 11320 11321 11322 11323 11324 11325 11326# If no C compiler was specified, use CC. 11327LTCC=${LTCC-"$CC"} 11328 11329# If no C compiler flags were specified, use CFLAGS. 11330LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 11331 11332# Allow CC to be a program name with arguments. 11333compiler=$CC 11334 11335 11336 # save warnings/boilerplate of simple test code 11337 ac_outfile=conftest.$ac_objext 11338echo "$lt_simple_compile_test_code" >conftest.$ac_ext 11339eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11340_lt_compiler_boilerplate=`cat conftest.err` 11341$RM conftest* 11342 11343 ac_outfile=conftest.$ac_objext 11344echo "$lt_simple_link_test_code" >conftest.$ac_ext 11345eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 11346_lt_linker_boilerplate=`cat conftest.err` 11347$RM -r conftest* 11348 11349 11350 # Allow CC to be a program name with arguments. 11351 lt_save_CC=$CC 11352 lt_save_LD=$LD 11353 lt_save_GCC=$GCC 11354 GCC=$GXX 11355 lt_save_with_gnu_ld=$with_gnu_ld 11356 lt_save_path_LD=$lt_cv_path_LD 11357 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 11358 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 11359 else 11360 $as_unset lt_cv_prog_gnu_ld 11361 fi 11362 if test -n "${lt_cv_path_LDCXX+set}"; then 11363 lt_cv_path_LD=$lt_cv_path_LDCXX 11364 else 11365 $as_unset lt_cv_path_LD 11366 fi 11367 test -z "${LDCXX+set}" || LD=$LDCXX 11368 CC=${CXX-"c++"} 11369 compiler=$CC 11370 compiler_CXX=$CC 11371 for cc_temp in $compiler""; do 11372 case $cc_temp in 11373 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 11374 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 11375 \-*) ;; 11376 *) break;; 11377 esac 11378done 11379cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 11380 11381 11382 if test -n "$compiler"; then 11383 # We don't want -fno-exception when compiling C++ code, so set the 11384 # no_builtin_flag separately 11385 if test "$GXX" = yes; then 11386 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 11387 else 11388 lt_prog_compiler_no_builtin_flag_CXX= 11389 fi 11390 11391 if test "$GXX" = yes; then 11392 # Set up default GNU C++ configuration 11393 11394 11395 11396# Check whether --with-gnu-ld was given. 11397if test "${with_gnu_ld+set}" = set; then : 11398 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11399else 11400 with_gnu_ld=no 11401fi 11402 11403ac_prog=ld 11404if test "$GCC" = yes; then 11405 # Check if gcc -print-prog-name=ld gives a path. 11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11407$as_echo_n "checking for ld used by $CC... " >&6; } 11408 case $host in 11409 *-*-mingw*) 11410 # gcc leaves a trailing carriage return which upsets mingw 11411 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11412 *) 11413 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11414 esac 11415 case $ac_prog in 11416 # Accept absolute paths. 11417 [\\/]* | ?:[\\/]*) 11418 re_direlt='/[^/][^/]*/\.\./' 11419 # Canonicalize the pathname of ld 11420 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11421 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11422 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11423 done 11424 test -z "$LD" && LD="$ac_prog" 11425 ;; 11426 "") 11427 # If it fails, then pretend we aren't using GCC. 11428 ac_prog=ld 11429 ;; 11430 *) 11431 # If it is relative, then search for the first ld in PATH. 11432 with_gnu_ld=unknown 11433 ;; 11434 esac 11435elif test "$with_gnu_ld" = yes; then 11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11437$as_echo_n "checking for GNU ld... " >&6; } 11438else 11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11440$as_echo_n "checking for non-GNU ld... " >&6; } 11441fi 11442if test "${lt_cv_path_LD+set}" = set; then : 11443 $as_echo_n "(cached) " >&6 11444else 11445 if test -z "$LD"; then 11446 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11447 for ac_dir in $PATH; do 11448 IFS="$lt_save_ifs" 11449 test -z "$ac_dir" && ac_dir=. 11450 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11451 lt_cv_path_LD="$ac_dir/$ac_prog" 11452 # Check to see if the program is GNU ld. I'd rather use --version, 11453 # but apparently some variants of GNU ld only accept -v. 11454 # Break only if it was the GNU/non-GNU ld that we prefer. 11455 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11456 *GNU* | *'with BFD'*) 11457 test "$with_gnu_ld" != no && break 11458 ;; 11459 *) 11460 test "$with_gnu_ld" != yes && break 11461 ;; 11462 esac 11463 fi 11464 done 11465 IFS="$lt_save_ifs" 11466else 11467 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11468fi 11469fi 11470 11471LD="$lt_cv_path_LD" 11472if test -n "$LD"; then 11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11474$as_echo "$LD" >&6; } 11475else 11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11477$as_echo "no" >&6; } 11478fi 11479test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11481$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11482if test "${lt_cv_prog_gnu_ld+set}" = set; then : 11483 $as_echo_n "(cached) " >&6 11484else 11485 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11486case `$LD -v 2>&1 </dev/null` in 11487*GNU* | *'with BFD'*) 11488 lt_cv_prog_gnu_ld=yes 11489 ;; 11490*) 11491 lt_cv_prog_gnu_ld=no 11492 ;; 11493esac 11494fi 11495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11496$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11497with_gnu_ld=$lt_cv_prog_gnu_ld 11498 11499 11500 11501 11502 11503 11504 11505 # Check if GNU C++ uses GNU ld as the underlying linker, since the 11506 # archiving commands below assume that GNU ld is being used. 11507 if test "$with_gnu_ld" = yes; then 11508 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 11509 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11510 11511 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 11512 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 11513 11514 # If archive_cmds runs LD, not CC, wlarc should be empty 11515 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 11516 # investigate it a little bit more. (MM) 11517 wlarc='${wl}' 11518 11519 # ancient GNU ld didn't support --whole-archive et. al. 11520 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 11521 $GREP 'no-whole-archive' > /dev/null; then 11522 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11523 else 11524 whole_archive_flag_spec_CXX= 11525 fi 11526 else 11527 with_gnu_ld=no 11528 wlarc= 11529 11530 # A generic and very simple default shared library creation 11531 # command for GNU C++ for the case where it uses the native 11532 # linker, instead of GNU ld. If possible, this setting should 11533 # overridden to take advantage of the native linker features on 11534 # the platform it is being used on. 11535 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 11536 fi 11537 11538 # Commands to make compiler produce verbose output that lists 11539 # what "hidden" libraries, object files and flags are used when 11540 # linking a shared library. 11541 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 11542 11543 else 11544 GXX=no 11545 with_gnu_ld=no 11546 wlarc= 11547 fi 11548 11549 # PORTME: fill in a description of your system's C++ link characteristics 11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11551$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 11552 ld_shlibs_CXX=yes 11553 case $host_os in 11554 aix3*) 11555 # FIXME: insert proper C++ library support 11556 ld_shlibs_CXX=no 11557 ;; 11558 aix[4-9]*) 11559 if test "$host_cpu" = ia64; then 11560 # On IA64, the linker does run time linking by default, so we don't 11561 # have to do anything special. 11562 aix_use_runtimelinking=no 11563 exp_sym_flag='-Bexport' 11564 no_entry_flag="" 11565 else 11566 aix_use_runtimelinking=no 11567 11568 # Test if we are trying to use run time linking or normal 11569 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11570 # need to do runtime linking. 11571 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11572 for ld_flag in $LDFLAGS; do 11573 case $ld_flag in 11574 *-brtl*) 11575 aix_use_runtimelinking=yes 11576 break 11577 ;; 11578 esac 11579 done 11580 ;; 11581 esac 11582 11583 exp_sym_flag='-bexport' 11584 no_entry_flag='-bnoentry' 11585 fi 11586 11587 # When large executables or shared objects are built, AIX ld can 11588 # have problems creating the table of contents. If linking a library 11589 # or program results in "error TOC overflow" add -mminimal-toc to 11590 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11591 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11592 11593 archive_cmds_CXX='' 11594 hardcode_direct_CXX=yes 11595 hardcode_direct_absolute_CXX=yes 11596 hardcode_libdir_separator_CXX=':' 11597 link_all_deplibs_CXX=yes 11598 file_list_spec_CXX='${wl}-f,' 11599 11600 if test "$GXX" = yes; then 11601 case $host_os in aix4.[012]|aix4.[012].*) 11602 # We only want to do this on AIX 4.2 and lower, the check 11603 # below for broken collect2 doesn't work under 4.3+ 11604 collect2name=`${CC} -print-prog-name=collect2` 11605 if test -f "$collect2name" && 11606 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11607 then 11608 # We have reworked collect2 11609 : 11610 else 11611 # We have old collect2 11612 hardcode_direct_CXX=unsupported 11613 # It fails to find uninstalled libraries when the uninstalled 11614 # path is not listed in the libpath. Setting hardcode_minus_L 11615 # to unsupported forces relinking 11616 hardcode_minus_L_CXX=yes 11617 hardcode_libdir_flag_spec_CXX='-L$libdir' 11618 hardcode_libdir_separator_CXX= 11619 fi 11620 esac 11621 shared_flag='-shared' 11622 if test "$aix_use_runtimelinking" = yes; then 11623 shared_flag="$shared_flag "'${wl}-G' 11624 fi 11625 else 11626 # not using gcc 11627 if test "$host_cpu" = ia64; then 11628 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11629 # chokes on -Wl,-G. The following line is correct: 11630 shared_flag='-G' 11631 else 11632 if test "$aix_use_runtimelinking" = yes; then 11633 shared_flag='${wl}-G' 11634 else 11635 shared_flag='${wl}-bM:SRE' 11636 fi 11637 fi 11638 fi 11639 11640 export_dynamic_flag_spec_CXX='${wl}-bexpall' 11641 # It seems that -bexpall does not export symbols beginning with 11642 # underscore (_), so it is better to generate a list of symbols to 11643 # export. 11644 always_export_symbols_CXX=yes 11645 if test "$aix_use_runtimelinking" = yes; then 11646 # Warning - without using the other runtime loading flags (-brtl), 11647 # -berok will link without error, but may produce a broken library. 11648 allow_undefined_flag_CXX='-berok' 11649 # Determine the default libpath from the value encoded in an empty 11650 # executable. 11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11652/* end confdefs.h. */ 11653 11654int 11655main () 11656{ 11657 11658 ; 11659 return 0; 11660} 11661_ACEOF 11662if ac_fn_cxx_try_link "$LINENO"; then : 11663 11664lt_aix_libpath_sed=' 11665 /Import File Strings/,/^$/ { 11666 /^0/ { 11667 s/^0 *\(.*\)$/\1/ 11668 p 11669 } 11670 }' 11671aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11672# Check for a 64-bit object if we didn't find anything. 11673if test -z "$aix_libpath"; then 11674 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11675fi 11676fi 11677rm -f core conftest.err conftest.$ac_objext \ 11678 conftest$ac_exeext conftest.$ac_ext 11679if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11680 11681 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11682 11683 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11684 else 11685 if test "$host_cpu" = ia64; then 11686 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 11687 allow_undefined_flag_CXX="-z nodefs" 11688 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" 11689 else 11690 # Determine the default libpath from the value encoded in an 11691 # empty executable. 11692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11693/* end confdefs.h. */ 11694 11695int 11696main () 11697{ 11698 11699 ; 11700 return 0; 11701} 11702_ACEOF 11703if ac_fn_cxx_try_link "$LINENO"; then : 11704 11705lt_aix_libpath_sed=' 11706 /Import File Strings/,/^$/ { 11707 /^0/ { 11708 s/^0 *\(.*\)$/\1/ 11709 p 11710 } 11711 }' 11712aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11713# Check for a 64-bit object if we didn't find anything. 11714if test -z "$aix_libpath"; then 11715 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11716fi 11717fi 11718rm -f core conftest.err conftest.$ac_objext \ 11719 conftest$ac_exeext conftest.$ac_ext 11720if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11721 11722 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 11723 # Warning - without using the other run time loading flags, 11724 # -berok will link without error, but may produce a broken library. 11725 no_undefined_flag_CXX=' ${wl}-bernotok' 11726 allow_undefined_flag_CXX=' ${wl}-berok' 11727 if test "$with_gnu_ld" = yes; then 11728 # We only use this code for GNU lds that support --whole-archive. 11729 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11730 else 11731 # Exported symbols can be pulled into shared objects from archives 11732 whole_archive_flag_spec_CXX='$convenience' 11733 fi 11734 archive_cmds_need_lc_CXX=yes 11735 # This is similar to how AIX traditionally builds its shared 11736 # libraries. 11737 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11738 fi 11739 fi 11740 ;; 11741 11742 beos*) 11743 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11744 allow_undefined_flag_CXX=unsupported 11745 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11746 # support --undefined. This deserves some investigation. FIXME 11747 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11748 else 11749 ld_shlibs_CXX=no 11750 fi 11751 ;; 11752 11753 chorus*) 11754 case $cc_basename in 11755 *) 11756 # FIXME: insert proper C++ library support 11757 ld_shlibs_CXX=no 11758 ;; 11759 esac 11760 ;; 11761 11762 cygwin* | mingw* | pw32* | cegcc*) 11763 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 11764 # as there is no search path for DLLs. 11765 hardcode_libdir_flag_spec_CXX='-L$libdir' 11766 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 11767 allow_undefined_flag_CXX=unsupported 11768 always_export_symbols_CXX=no 11769 enable_shared_with_static_runtimes_CXX=yes 11770 11771 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11772 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' 11773 # If the export-symbols file already is a .def file (1st line 11774 # is EXPORTS), use it as is; otherwise, prepend... 11775 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11776 cp $export_symbols $output_objdir/$soname.def; 11777 else 11778 echo EXPORTS > $output_objdir/$soname.def; 11779 cat $export_symbols >> $output_objdir/$soname.def; 11780 fi~ 11781 $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' 11782 else 11783 ld_shlibs_CXX=no 11784 fi 11785 ;; 11786 darwin* | rhapsody*) 11787 11788 11789 archive_cmds_need_lc_CXX=no 11790 hardcode_direct_CXX=no 11791 hardcode_automatic_CXX=yes 11792 hardcode_shlibpath_var_CXX=unsupported 11793 if test "$lt_cv_ld_force_load" = "yes"; then 11794 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\"`' 11795 else 11796 whole_archive_flag_spec_CXX='' 11797 fi 11798 link_all_deplibs_CXX=yes 11799 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 11800 case $cc_basename in 11801 ifort*) _lt_dar_can_shared=yes ;; 11802 *) _lt_dar_can_shared=$GCC ;; 11803 esac 11804 if test "$_lt_dar_can_shared" = "yes"; then 11805 output_verbose_link_cmd=func_echo_all 11806 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}" 11807 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11808 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}" 11809 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}" 11810 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11811 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}" 11812 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}" 11813 fi 11814 11815 else 11816 ld_shlibs_CXX=no 11817 fi 11818 11819 ;; 11820 11821 dgux*) 11822 case $cc_basename in 11823 ec++*) 11824 # FIXME: insert proper C++ library support 11825 ld_shlibs_CXX=no 11826 ;; 11827 ghcx*) 11828 # Green Hills C++ Compiler 11829 # FIXME: insert proper C++ library support 11830 ld_shlibs_CXX=no 11831 ;; 11832 *) 11833 # FIXME: insert proper C++ library support 11834 ld_shlibs_CXX=no 11835 ;; 11836 esac 11837 ;; 11838 11839 freebsd[12]*) 11840 # C++ shared libraries reported to be fairly broken before 11841 # switch to ELF 11842 ld_shlibs_CXX=no 11843 ;; 11844 11845 freebsd-elf*) 11846 archive_cmds_need_lc_CXX=no 11847 ;; 11848 11849 freebsd* | dragonfly*) 11850 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 11851 # conventions 11852 ld_shlibs_CXX=yes 11853 ;; 11854 11855 gnu*) 11856 ;; 11857 11858 haiku*) 11859 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11860 link_all_deplibs_CXX=yes 11861 ;; 11862 11863 hpux9*) 11864 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11865 hardcode_libdir_separator_CXX=: 11866 export_dynamic_flag_spec_CXX='${wl}-E' 11867 hardcode_direct_CXX=yes 11868 hardcode_minus_L_CXX=yes # Not in the search PATH, 11869 # but as the default 11870 # location of the library. 11871 11872 case $cc_basename in 11873 CC*) 11874 # FIXME: insert proper C++ library support 11875 ld_shlibs_CXX=no 11876 ;; 11877 aCC*) 11878 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11879 # Commands to make compiler produce verbose output that lists 11880 # what "hidden" libraries, object files and flags are used when 11881 # linking a shared library. 11882 # 11883 # There doesn't appear to be a way to prevent this compiler from 11884 # explicitly linking system object files so we need to strip them 11885 # from the output so that they don't get included in the library 11886 # dependencies. 11887 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"' 11888 ;; 11889 *) 11890 if test "$GXX" = yes; then 11891 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 11892 else 11893 # FIXME: insert proper C++ library support 11894 ld_shlibs_CXX=no 11895 fi 11896 ;; 11897 esac 11898 ;; 11899 11900 hpux10*|hpux11*) 11901 if test $with_gnu_ld = no; then 11902 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 11903 hardcode_libdir_separator_CXX=: 11904 11905 case $host_cpu in 11906 hppa*64*|ia64*) 11907 ;; 11908 *) 11909 export_dynamic_flag_spec_CXX='${wl}-E' 11910 ;; 11911 esac 11912 fi 11913 case $host_cpu in 11914 hppa*64*|ia64*) 11915 hardcode_direct_CXX=no 11916 hardcode_shlibpath_var_CXX=no 11917 ;; 11918 *) 11919 hardcode_direct_CXX=yes 11920 hardcode_direct_absolute_CXX=yes 11921 hardcode_minus_L_CXX=yes # Not in the search PATH, 11922 # but as the default 11923 # location of the library. 11924 ;; 11925 esac 11926 11927 case $cc_basename in 11928 CC*) 11929 # FIXME: insert proper C++ library support 11930 ld_shlibs_CXX=no 11931 ;; 11932 aCC*) 11933 case $host_cpu in 11934 hppa*64*) 11935 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11936 ;; 11937 ia64*) 11938 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11939 ;; 11940 *) 11941 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11942 ;; 11943 esac 11944 # Commands to make compiler produce verbose output that lists 11945 # what "hidden" libraries, object files and flags are used when 11946 # linking a shared library. 11947 # 11948 # There doesn't appear to be a way to prevent this compiler from 11949 # explicitly linking system object files so we need to strip them 11950 # from the output so that they don't get included in the library 11951 # dependencies. 11952 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"' 11953 ;; 11954 *) 11955 if test "$GXX" = yes; then 11956 if test $with_gnu_ld = no; then 11957 case $host_cpu in 11958 hppa*64*) 11959 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11960 ;; 11961 ia64*) 11962 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11963 ;; 11964 *) 11965 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 11966 ;; 11967 esac 11968 fi 11969 else 11970 # FIXME: insert proper C++ library support 11971 ld_shlibs_CXX=no 11972 fi 11973 ;; 11974 esac 11975 ;; 11976 11977 interix[3-9]*) 11978 hardcode_direct_CXX=no 11979 hardcode_shlibpath_var_CXX=no 11980 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 11981 export_dynamic_flag_spec_CXX='${wl}-E' 11982 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11983 # Instead, shared libraries are loaded at an image base (0x10000000 by 11984 # default) and relocated if they conflict, which is a slow very memory 11985 # consuming and fragmenting process. To avoid this, we pick a random, 11986 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11987 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11988 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' 11989 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' 11990 ;; 11991 irix5* | irix6*) 11992 case $cc_basename in 11993 CC*) 11994 # SGI C++ 11995 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' 11996 11997 # Archives containing C++ object files must be created using 11998 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 11999 # necessary to make sure instantiated templates are included 12000 # in the archive. 12001 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12002 ;; 12003 *) 12004 if test "$GXX" = yes; then 12005 if test "$with_gnu_ld" = no; then 12006 archive_cmds_CXX='$CC -shared -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' 12007 else 12008 archive_cmds_CXX='$CC -shared -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' 12009 fi 12010 fi 12011 link_all_deplibs_CXX=yes 12012 ;; 12013 esac 12014 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12015 hardcode_libdir_separator_CXX=: 12016 inherit_rpath_CXX=yes 12017 ;; 12018 12019 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12020 case $cc_basename in 12021 KCC*) 12022 # Kuck and Associates, Inc. (KAI) C++ Compiler 12023 12024 # KCC will only create a shared library if the output file 12025 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12026 # to its proper name (with version) after linking. 12027 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' 12028 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' 12029 # Commands to make compiler produce verbose output that lists 12030 # what "hidden" libraries, object files and flags are used when 12031 # linking a shared library. 12032 # 12033 # There doesn't appear to be a way to prevent this compiler from 12034 # explicitly linking system object files so we need to strip them 12035 # from the output so that they don't get included in the library 12036 # dependencies. 12037 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"' 12038 12039 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12040 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12041 12042 # Archives containing C++ object files must be created using 12043 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12044 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12045 ;; 12046 icpc* | ecpc* ) 12047 # Intel C++ 12048 with_gnu_ld=yes 12049 # version 8.0 and above of icpc choke on multiply defined symbols 12050 # if we add $predep_objects and $postdep_objects, however 7.1 and 12051 # earlier do not add the objects themselves. 12052 case `$CC -V 2>&1` in 12053 *"Version 7."*) 12054 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12055 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' 12056 ;; 12057 *) # Version 8.0 or newer 12058 tmp_idyn= 12059 case $host_cpu in 12060 ia64*) tmp_idyn=' -i_dynamic';; 12061 esac 12062 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12063 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' 12064 ;; 12065 esac 12066 archive_cmds_need_lc_CXX=no 12067 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12068 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12069 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12070 ;; 12071 pgCC* | pgcpp*) 12072 # Portland Group C++ compiler 12073 case `$CC -V` in 12074 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 12075 prelink_cmds_CXX='tpldir=Template.dir~ 12076 rm -rf $tpldir~ 12077 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 12078 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 12079 old_archive_cmds_CXX='tpldir=Template.dir~ 12080 rm -rf $tpldir~ 12081 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 12082 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 12083 $RANLIB $oldlib' 12084 archive_cmds_CXX='tpldir=Template.dir~ 12085 rm -rf $tpldir~ 12086 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12087 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12088 archive_expsym_cmds_CXX='tpldir=Template.dir~ 12089 rm -rf $tpldir~ 12090 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12091 $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' 12092 ;; 12093 *) # Version 6 and above use weak symbols 12094 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12095 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' 12096 ;; 12097 esac 12098 12099 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12100 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12101 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' 12102 ;; 12103 cxx*) 12104 # Compaq C++ 12105 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12106 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' 12107 12108 runpath_var=LD_RUN_PATH 12109 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12110 hardcode_libdir_separator_CXX=: 12111 12112 # Commands to make compiler produce verbose output that lists 12113 # what "hidden" libraries, object files and flags are used when 12114 # linking a shared library. 12115 # 12116 # There doesn't appear to be a way to prevent this compiler from 12117 # explicitly linking system object files so we need to strip them 12118 # from the output so that they don't get included in the library 12119 # dependencies. 12120 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' 12121 ;; 12122 xl* | mpixl* | bgxl*) 12123 # IBM XL 8.0 on PPC, with GNU ld 12124 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12125 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12126 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12127 if test "x$supports_anon_versioning" = xyes; then 12128 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 12129 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12130 echo "local: *; };" >> $output_objdir/$libname.ver~ 12131 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12132 fi 12133 ;; 12134 *) 12135 case `$CC -V 2>&1 | sed 5q` in 12136 *Sun\ C*) 12137 # Sun C++ 5.9 12138 no_undefined_flag_CXX=' -zdefs' 12139 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12140 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' 12141 hardcode_libdir_flag_spec_CXX='-R$libdir' 12142 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' 12143 compiler_needs_object_CXX=yes 12144 12145 # Not sure whether something based on 12146 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12147 # would be better. 12148 output_verbose_link_cmd='func_echo_all' 12149 12150 # Archives containing C++ object files must be created using 12151 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12152 # necessary to make sure instantiated templates are included 12153 # in the archive. 12154 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12155 ;; 12156 esac 12157 ;; 12158 esac 12159 ;; 12160 12161 lynxos*) 12162 # FIXME: insert proper C++ library support 12163 ld_shlibs_CXX=no 12164 ;; 12165 12166 m88k*) 12167 # FIXME: insert proper C++ library support 12168 ld_shlibs_CXX=no 12169 ;; 12170 12171 mvs*) 12172 case $cc_basename in 12173 cxx*) 12174 # FIXME: insert proper C++ library support 12175 ld_shlibs_CXX=no 12176 ;; 12177 *) 12178 # FIXME: insert proper C++ library support 12179 ld_shlibs_CXX=no 12180 ;; 12181 esac 12182 ;; 12183 12184 netbsd*) 12185 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12186 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 12187 wlarc= 12188 hardcode_libdir_flag_spec_CXX='-R$libdir' 12189 hardcode_direct_CXX=yes 12190 hardcode_shlibpath_var_CXX=no 12191 fi 12192 # Workaround some broken pre-1.5 toolchains 12193 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 12194 ;; 12195 12196 *nto* | *qnx*) 12197 ld_shlibs_CXX=yes 12198 ;; 12199 12200 openbsd2*) 12201 # C++ shared libraries are fairly broken 12202 ld_shlibs_CXX=no 12203 ;; 12204 12205 openbsd*) 12206 if test -f /usr/libexec/ld.so; then 12207 hardcode_direct_CXX=yes 12208 hardcode_shlibpath_var_CXX=no 12209 hardcode_direct_absolute_CXX=yes 12210 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12211 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12212 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12213 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 12214 export_dynamic_flag_spec_CXX='${wl}-E' 12215 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12216 fi 12217 output_verbose_link_cmd=func_echo_all 12218 else 12219 ld_shlibs_CXX=no 12220 fi 12221 ;; 12222 12223 osf3* | osf4* | osf5*) 12224 case $cc_basename in 12225 KCC*) 12226 # Kuck and Associates, Inc. (KAI) C++ Compiler 12227 12228 # KCC will only create a shared library if the output file 12229 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12230 # to its proper name (with version) after linking. 12231 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' 12232 12233 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12234 hardcode_libdir_separator_CXX=: 12235 12236 # Archives containing C++ object files must be created using 12237 # the KAI C++ compiler. 12238 case $host in 12239 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 12240 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 12241 esac 12242 ;; 12243 RCC*) 12244 # Rational C++ 2.4.1 12245 # FIXME: insert proper C++ library support 12246 ld_shlibs_CXX=no 12247 ;; 12248 cxx*) 12249 case $host in 12250 osf3*) 12251 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12252 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' 12253 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12254 ;; 12255 *) 12256 allow_undefined_flag_CXX=' -expect_unresolved \*' 12257 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' 12258 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 12259 echo "-hidden">> $lib.exp~ 12260 $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~ 12261 $RM $lib.exp' 12262 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12263 ;; 12264 esac 12265 12266 hardcode_libdir_separator_CXX=: 12267 12268 # Commands to make compiler produce verbose output that lists 12269 # what "hidden" libraries, object files and flags are used when 12270 # linking a shared library. 12271 # 12272 # There doesn't appear to be a way to prevent this compiler from 12273 # explicitly linking system object files so we need to strip them 12274 # from the output so that they don't get included in the library 12275 # dependencies. 12276 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"' 12277 ;; 12278 *) 12279 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12280 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 12281 case $host in 12282 osf3*) 12283 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' 12284 ;; 12285 *) 12286 archive_cmds_CXX='$CC -shared -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' 12287 ;; 12288 esac 12289 12290 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12291 hardcode_libdir_separator_CXX=: 12292 12293 # Commands to make compiler produce verbose output that lists 12294 # what "hidden" libraries, object files and flags are used when 12295 # linking a shared library. 12296 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12297 12298 else 12299 # FIXME: insert proper C++ library support 12300 ld_shlibs_CXX=no 12301 fi 12302 ;; 12303 esac 12304 ;; 12305 12306 psos*) 12307 # FIXME: insert proper C++ library support 12308 ld_shlibs_CXX=no 12309 ;; 12310 12311 sunos4*) 12312 case $cc_basename in 12313 CC*) 12314 # Sun C++ 4.x 12315 # FIXME: insert proper C++ library support 12316 ld_shlibs_CXX=no 12317 ;; 12318 lcc*) 12319 # Lucid 12320 # FIXME: insert proper C++ library support 12321 ld_shlibs_CXX=no 12322 ;; 12323 *) 12324 # FIXME: insert proper C++ library support 12325 ld_shlibs_CXX=no 12326 ;; 12327 esac 12328 ;; 12329 12330 solaris*) 12331 case $cc_basename in 12332 CC* | sunCC*) 12333 # Sun C++ 4.2, 5.x and Centerline C++ 12334 archive_cmds_need_lc_CXX=yes 12335 no_undefined_flag_CXX=' -zdefs' 12336 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12337 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12338 $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' 12339 12340 hardcode_libdir_flag_spec_CXX='-R$libdir' 12341 hardcode_shlibpath_var_CXX=no 12342 case $host_os in 12343 solaris2.[0-5] | solaris2.[0-5].*) ;; 12344 *) 12345 # The compiler driver will combine and reorder linker options, 12346 # but understands `-z linker_flag'. 12347 # Supported since Solaris 2.6 (maybe 2.5.1?) 12348 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 12349 ;; 12350 esac 12351 link_all_deplibs_CXX=yes 12352 12353 output_verbose_link_cmd='func_echo_all' 12354 12355 # Archives containing C++ object files must be created using 12356 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12357 # necessary to make sure instantiated templates are included 12358 # in the archive. 12359 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12360 ;; 12361 gcx*) 12362 # Green Hills C++ Compiler 12363 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12364 12365 # The C++ compiler must be used to create the archive. 12366 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 12367 ;; 12368 *) 12369 # GNU C++ compiler with Solaris linker 12370 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 12371 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 12372 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 12373 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12374 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12375 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12376 12377 # Commands to make compiler produce verbose output that lists 12378 # what "hidden" libraries, object files and flags are used when 12379 # linking a shared library. 12380 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12381 else 12382 # g++ 2.7 appears to require `-G' NOT `-shared' on this 12383 # platform. 12384 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 12385 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12386 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 12387 12388 # Commands to make compiler produce verbose output that lists 12389 # what "hidden" libraries, object files and flags are used when 12390 # linking a shared library. 12391 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12392 fi 12393 12394 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 12395 case $host_os in 12396 solaris2.[0-5] | solaris2.[0-5].*) ;; 12397 *) 12398 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12399 ;; 12400 esac 12401 fi 12402 ;; 12403 esac 12404 ;; 12405 12406 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12407 no_undefined_flag_CXX='${wl}-z,text' 12408 archive_cmds_need_lc_CXX=no 12409 hardcode_shlibpath_var_CXX=no 12410 runpath_var='LD_RUN_PATH' 12411 12412 case $cc_basename in 12413 CC*) 12414 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12415 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12416 ;; 12417 *) 12418 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12419 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12420 ;; 12421 esac 12422 ;; 12423 12424 sysv5* | sco3.2v5* | sco5v6*) 12425 # Note: We can NOT use -z defs as we might desire, because we do not 12426 # link with -lc, and that would cause any symbols used from libc to 12427 # always be unresolved, which means just about no library would 12428 # ever link correctly. If we're not using GNU ld we use -z text 12429 # though, which does catch some bad symbols but isn't as heavy-handed 12430 # as -z defs. 12431 no_undefined_flag_CXX='${wl}-z,text' 12432 allow_undefined_flag_CXX='${wl}-z,nodefs' 12433 archive_cmds_need_lc_CXX=no 12434 hardcode_shlibpath_var_CXX=no 12435 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 12436 hardcode_libdir_separator_CXX=':' 12437 link_all_deplibs_CXX=yes 12438 export_dynamic_flag_spec_CXX='${wl}-Bexport' 12439 runpath_var='LD_RUN_PATH' 12440 12441 case $cc_basename in 12442 CC*) 12443 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12444 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12445 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 12446 '"$old_archive_cmds_CXX" 12447 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 12448 '"$reload_cmds_CXX" 12449 ;; 12450 *) 12451 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12452 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12453 ;; 12454 esac 12455 ;; 12456 12457 tandem*) 12458 case $cc_basename in 12459 NCC*) 12460 # NonStop-UX NCC 3.20 12461 # FIXME: insert proper C++ library support 12462 ld_shlibs_CXX=no 12463 ;; 12464 *) 12465 # FIXME: insert proper C++ library support 12466 ld_shlibs_CXX=no 12467 ;; 12468 esac 12469 ;; 12470 12471 vxworks*) 12472 # FIXME: insert proper C++ library support 12473 ld_shlibs_CXX=no 12474 ;; 12475 12476 *) 12477 # FIXME: insert proper C++ library support 12478 ld_shlibs_CXX=no 12479 ;; 12480 esac 12481 12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 12483$as_echo "$ld_shlibs_CXX" >&6; } 12484 test "$ld_shlibs_CXX" = no && can_build_shared=no 12485 12486 GCC_CXX="$GXX" 12487 LD_CXX="$LD" 12488 12489 ## CAVEAT EMPTOR: 12490 ## There is no encapsulation within the following macros, do not change 12491 ## the running order or otherwise move them around unless you know exactly 12492 ## what you are doing... 12493 # Dependencies to place before and after the object being linked: 12494predep_objects_CXX= 12495postdep_objects_CXX= 12496predeps_CXX= 12497postdeps_CXX= 12498compiler_lib_search_path_CXX= 12499 12500cat > conftest.$ac_ext <<_LT_EOF 12501class Foo 12502{ 12503public: 12504 Foo (void) { a = 0; } 12505private: 12506 int a; 12507}; 12508_LT_EOF 12509 12510if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12511 (eval $ac_compile) 2>&5 12512 ac_status=$? 12513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12514 test $ac_status = 0; }; then 12515 # Parse the compiler output and extract the necessary 12516 # objects, libraries and library flags. 12517 12518 # Sentinel used to keep track of whether or not we are before 12519 # the conftest object file. 12520 pre_test_object_deps_done=no 12521 12522 for p in `eval "$output_verbose_link_cmd"`; do 12523 case $p in 12524 12525 -L* | -R* | -l*) 12526 # Some compilers place space between "-{L,R}" and the path. 12527 # Remove the space. 12528 if test $p = "-L" || 12529 test $p = "-R"; then 12530 prev=$p 12531 continue 12532 else 12533 prev= 12534 fi 12535 12536 if test "$pre_test_object_deps_done" = no; then 12537 case $p in 12538 -L* | -R*) 12539 # Internal compiler library paths should come after those 12540 # provided the user. The postdeps already come after the 12541 # user supplied libs so there is no need to process them. 12542 if test -z "$compiler_lib_search_path_CXX"; then 12543 compiler_lib_search_path_CXX="${prev}${p}" 12544 else 12545 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 12546 fi 12547 ;; 12548 # The "-l" case would never come before the object being 12549 # linked, so don't bother handling this case. 12550 esac 12551 else 12552 if test -z "$postdeps_CXX"; then 12553 postdeps_CXX="${prev}${p}" 12554 else 12555 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 12556 fi 12557 fi 12558 ;; 12559 12560 *.$objext) 12561 # This assumes that the test object file only shows up 12562 # once in the compiler output. 12563 if test "$p" = "conftest.$objext"; then 12564 pre_test_object_deps_done=yes 12565 continue 12566 fi 12567 12568 if test "$pre_test_object_deps_done" = no; then 12569 if test -z "$predep_objects_CXX"; then 12570 predep_objects_CXX="$p" 12571 else 12572 predep_objects_CXX="$predep_objects_CXX $p" 12573 fi 12574 else 12575 if test -z "$postdep_objects_CXX"; then 12576 postdep_objects_CXX="$p" 12577 else 12578 postdep_objects_CXX="$postdep_objects_CXX $p" 12579 fi 12580 fi 12581 ;; 12582 12583 *) ;; # Ignore the rest. 12584 12585 esac 12586 done 12587 12588 # Clean up. 12589 rm -f a.out a.exe 12590else 12591 echo "libtool.m4: error: problem compiling CXX test program" 12592fi 12593 12594$RM -f confest.$objext 12595 12596# PORTME: override above test on systems where it is broken 12597case $host_os in 12598interix[3-9]*) 12599 # Interix 3.5 installs completely hosed .la files for C++, so rather than 12600 # hack all around it, let's just trust "g++" to DTRT. 12601 predep_objects_CXX= 12602 postdep_objects_CXX= 12603 postdeps_CXX= 12604 ;; 12605 12606linux*) 12607 case `$CC -V 2>&1 | sed 5q` in 12608 *Sun\ C*) 12609 # Sun C++ 5.9 12610 12611 # The more standards-conforming stlport4 library is 12612 # incompatible with the Cstd library. Avoid specifying 12613 # it if it's in CXXFLAGS. Ignore libCrun as 12614 # -library=stlport4 depends on it. 12615 case " $CXX $CXXFLAGS " in 12616 *" -library=stlport4 "*) 12617 solaris_use_stlport4=yes 12618 ;; 12619 esac 12620 12621 if test "$solaris_use_stlport4" != yes; then 12622 postdeps_CXX='-library=Cstd -library=Crun' 12623 fi 12624 ;; 12625 esac 12626 ;; 12627 12628solaris*) 12629 case $cc_basename in 12630 CC* | sunCC*) 12631 # The more standards-conforming stlport4 library is 12632 # incompatible with the Cstd library. Avoid specifying 12633 # it if it's in CXXFLAGS. Ignore libCrun as 12634 # -library=stlport4 depends on it. 12635 case " $CXX $CXXFLAGS " in 12636 *" -library=stlport4 "*) 12637 solaris_use_stlport4=yes 12638 ;; 12639 esac 12640 12641 # Adding this requires a known-good setup of shared libraries for 12642 # Sun compiler versions before 5.6, else PIC objects from an old 12643 # archive will be linked into the output, leading to subtle bugs. 12644 if test "$solaris_use_stlport4" != yes; then 12645 postdeps_CXX='-library=Cstd -library=Crun' 12646 fi 12647 ;; 12648 esac 12649 ;; 12650esac 12651 12652 12653case " $postdeps_CXX " in 12654*" -lc "*) archive_cmds_need_lc_CXX=no ;; 12655esac 12656 compiler_lib_search_dirs_CXX= 12657if test -n "${compiler_lib_search_path_CXX}"; then 12658 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 12659fi 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 lt_prog_compiler_wl_CXX= 12692lt_prog_compiler_pic_CXX= 12693lt_prog_compiler_static_CXX= 12694 12695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 12696$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 12697 12698 # C++ specific cases for pic, static, wl, etc. 12699 if test "$GXX" = yes; then 12700 lt_prog_compiler_wl_CXX='-Wl,' 12701 lt_prog_compiler_static_CXX='-static' 12702 12703 case $host_os in 12704 aix*) 12705 # All AIX code is PIC. 12706 if test "$host_cpu" = ia64; then 12707 # AIX 5 now supports IA64 processor 12708 lt_prog_compiler_static_CXX='-Bstatic' 12709 fi 12710 ;; 12711 12712 amigaos*) 12713 case $host_cpu in 12714 powerpc) 12715 # see comment about AmigaOS4 .so support 12716 lt_prog_compiler_pic_CXX='-fPIC' 12717 ;; 12718 m68k) 12719 # FIXME: we need at least 68020 code to build shared libraries, but 12720 # adding the `-m68020' flag to GCC prevents building anything better, 12721 # like `-m68040'. 12722 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 12723 ;; 12724 esac 12725 ;; 12726 12727 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12728 # PIC is the default for these OSes. 12729 ;; 12730 mingw* | cygwin* | os2* | pw32* | cegcc*) 12731 # This hack is so that the source file can tell whether it is being 12732 # built for inclusion in a dll (and should export symbols for example). 12733 # Although the cygwin gcc ignores -fPIC, still need this for old-style 12734 # (--disable-auto-import) libraries 12735 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 12736 ;; 12737 darwin* | rhapsody*) 12738 # PIC is the default on this platform 12739 # Common symbols not allowed in MH_DYLIB files 12740 lt_prog_compiler_pic_CXX='-fno-common' 12741 ;; 12742 *djgpp*) 12743 # DJGPP does not support shared libraries at all 12744 lt_prog_compiler_pic_CXX= 12745 ;; 12746 haiku*) 12747 # PIC is the default for Haiku. 12748 # The "-static" flag exists, but is broken. 12749 lt_prog_compiler_static_CXX= 12750 ;; 12751 interix[3-9]*) 12752 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 12753 # Instead, we relocate shared libraries at runtime. 12754 ;; 12755 sysv4*MP*) 12756 if test -d /usr/nec; then 12757 lt_prog_compiler_pic_CXX=-Kconform_pic 12758 fi 12759 ;; 12760 hpux*) 12761 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 12762 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 12763 # sets the default TLS model and affects inlining. 12764 case $host_cpu in 12765 hppa*64*) 12766 ;; 12767 *) 12768 lt_prog_compiler_pic_CXX='-fPIC' 12769 ;; 12770 esac 12771 ;; 12772 *qnx* | *nto*) 12773 # QNX uses GNU C++, but need to define -shared option too, otherwise 12774 # it will coredump. 12775 lt_prog_compiler_pic_CXX='-fPIC -shared' 12776 ;; 12777 *) 12778 lt_prog_compiler_pic_CXX='-fPIC' 12779 ;; 12780 esac 12781 else 12782 case $host_os in 12783 aix[4-9]*) 12784 # All AIX code is PIC. 12785 if test "$host_cpu" = ia64; then 12786 # AIX 5 now supports IA64 processor 12787 lt_prog_compiler_static_CXX='-Bstatic' 12788 else 12789 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 12790 fi 12791 ;; 12792 chorus*) 12793 case $cc_basename in 12794 cxch68*) 12795 # Green Hills C++ Compiler 12796 # _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" 12797 ;; 12798 esac 12799 ;; 12800 dgux*) 12801 case $cc_basename in 12802 ec++*) 12803 lt_prog_compiler_pic_CXX='-KPIC' 12804 ;; 12805 ghcx*) 12806 # Green Hills C++ Compiler 12807 lt_prog_compiler_pic_CXX='-pic' 12808 ;; 12809 *) 12810 ;; 12811 esac 12812 ;; 12813 freebsd* | dragonfly*) 12814 # FreeBSD uses GNU C++ 12815 ;; 12816 hpux9* | hpux10* | hpux11*) 12817 case $cc_basename in 12818 CC*) 12819 lt_prog_compiler_wl_CXX='-Wl,' 12820 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12821 if test "$host_cpu" != ia64; then 12822 lt_prog_compiler_pic_CXX='+Z' 12823 fi 12824 ;; 12825 aCC*) 12826 lt_prog_compiler_wl_CXX='-Wl,' 12827 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 12828 case $host_cpu in 12829 hppa*64*|ia64*) 12830 # +Z the default 12831 ;; 12832 *) 12833 lt_prog_compiler_pic_CXX='+Z' 12834 ;; 12835 esac 12836 ;; 12837 *) 12838 ;; 12839 esac 12840 ;; 12841 interix*) 12842 # This is c89, which is MS Visual C++ (no shared libs) 12843 # Anyone wants to do a port? 12844 ;; 12845 irix5* | irix6* | nonstopux*) 12846 case $cc_basename in 12847 CC*) 12848 lt_prog_compiler_wl_CXX='-Wl,' 12849 lt_prog_compiler_static_CXX='-non_shared' 12850 # CC pic flag -KPIC is the default. 12851 ;; 12852 *) 12853 ;; 12854 esac 12855 ;; 12856 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12857 case $cc_basename in 12858 KCC*) 12859 # KAI C++ Compiler 12860 lt_prog_compiler_wl_CXX='--backend -Wl,' 12861 lt_prog_compiler_pic_CXX='-fPIC' 12862 ;; 12863 ecpc* ) 12864 # old Intel C++ for x86_64 which still supported -KPIC. 12865 lt_prog_compiler_wl_CXX='-Wl,' 12866 lt_prog_compiler_pic_CXX='-KPIC' 12867 lt_prog_compiler_static_CXX='-static' 12868 ;; 12869 icpc* ) 12870 # Intel C++, used to be incompatible with GCC. 12871 # ICC 10 doesn't accept -KPIC any more. 12872 lt_prog_compiler_wl_CXX='-Wl,' 12873 lt_prog_compiler_pic_CXX='-fPIC' 12874 lt_prog_compiler_static_CXX='-static' 12875 ;; 12876 pgCC* | pgcpp*) 12877 # Portland Group C++ compiler 12878 lt_prog_compiler_wl_CXX='-Wl,' 12879 lt_prog_compiler_pic_CXX='-fpic' 12880 lt_prog_compiler_static_CXX='-Bstatic' 12881 ;; 12882 cxx*) 12883 # Compaq C++ 12884 # Make sure the PIC flag is empty. It appears that all Alpha 12885 # Linux and Compaq Tru64 Unix objects are PIC. 12886 lt_prog_compiler_pic_CXX= 12887 lt_prog_compiler_static_CXX='-non_shared' 12888 ;; 12889 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 12890 # IBM XL 8.0, 9.0 on PPC and BlueGene 12891 lt_prog_compiler_wl_CXX='-Wl,' 12892 lt_prog_compiler_pic_CXX='-qpic' 12893 lt_prog_compiler_static_CXX='-qstaticlink' 12894 ;; 12895 *) 12896 case `$CC -V 2>&1 | sed 5q` in 12897 *Sun\ C*) 12898 # Sun C++ 5.9 12899 lt_prog_compiler_pic_CXX='-KPIC' 12900 lt_prog_compiler_static_CXX='-Bstatic' 12901 lt_prog_compiler_wl_CXX='-Qoption ld ' 12902 ;; 12903 esac 12904 ;; 12905 esac 12906 ;; 12907 lynxos*) 12908 ;; 12909 m88k*) 12910 ;; 12911 mvs*) 12912 case $cc_basename in 12913 cxx*) 12914 lt_prog_compiler_pic_CXX='-W c,exportall' 12915 ;; 12916 *) 12917 ;; 12918 esac 12919 ;; 12920 netbsd*) 12921 ;; 12922 *qnx* | *nto*) 12923 # QNX uses GNU C++, but need to define -shared option too, otherwise 12924 # it will coredump. 12925 lt_prog_compiler_pic_CXX='-fPIC -shared' 12926 ;; 12927 osf3* | osf4* | osf5*) 12928 case $cc_basename in 12929 KCC*) 12930 lt_prog_compiler_wl_CXX='--backend -Wl,' 12931 ;; 12932 RCC*) 12933 # Rational C++ 2.4.1 12934 lt_prog_compiler_pic_CXX='-pic' 12935 ;; 12936 cxx*) 12937 # Digital/Compaq C++ 12938 lt_prog_compiler_wl_CXX='-Wl,' 12939 # Make sure the PIC flag is empty. It appears that all Alpha 12940 # Linux and Compaq Tru64 Unix objects are PIC. 12941 lt_prog_compiler_pic_CXX= 12942 lt_prog_compiler_static_CXX='-non_shared' 12943 ;; 12944 *) 12945 ;; 12946 esac 12947 ;; 12948 psos*) 12949 ;; 12950 solaris*) 12951 case $cc_basename in 12952 CC* | sunCC*) 12953 # Sun C++ 4.2, 5.x and Centerline C++ 12954 lt_prog_compiler_pic_CXX='-KPIC' 12955 lt_prog_compiler_static_CXX='-Bstatic' 12956 lt_prog_compiler_wl_CXX='-Qoption ld ' 12957 ;; 12958 gcx*) 12959 # Green Hills C++ Compiler 12960 lt_prog_compiler_pic_CXX='-PIC' 12961 ;; 12962 *) 12963 ;; 12964 esac 12965 ;; 12966 sunos4*) 12967 case $cc_basename in 12968 CC*) 12969 # Sun C++ 4.x 12970 lt_prog_compiler_pic_CXX='-pic' 12971 lt_prog_compiler_static_CXX='-Bstatic' 12972 ;; 12973 lcc*) 12974 # Lucid 12975 lt_prog_compiler_pic_CXX='-pic' 12976 ;; 12977 *) 12978 ;; 12979 esac 12980 ;; 12981 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 12982 case $cc_basename in 12983 CC*) 12984 lt_prog_compiler_wl_CXX='-Wl,' 12985 lt_prog_compiler_pic_CXX='-KPIC' 12986 lt_prog_compiler_static_CXX='-Bstatic' 12987 ;; 12988 esac 12989 ;; 12990 tandem*) 12991 case $cc_basename in 12992 NCC*) 12993 # NonStop-UX NCC 3.20 12994 lt_prog_compiler_pic_CXX='-KPIC' 12995 ;; 12996 *) 12997 ;; 12998 esac 12999 ;; 13000 vxworks*) 13001 ;; 13002 *) 13003 lt_prog_compiler_can_build_shared_CXX=no 13004 ;; 13005 esac 13006 fi 13007 13008case $host_os in 13009 # For platforms which do not support PIC, -DPIC is meaningless: 13010 *djgpp*) 13011 lt_prog_compiler_pic_CXX= 13012 ;; 13013 *) 13014 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13015 ;; 13016esac 13017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 13018$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 13019 13020 13021 13022# 13023# Check to make sure the PIC flag actually works. 13024# 13025if test -n "$lt_prog_compiler_pic_CXX"; then 13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13027$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 13028if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : 13029 $as_echo_n "(cached) " >&6 13030else 13031 lt_cv_prog_compiler_pic_works_CXX=no 13032 ac_outfile=conftest.$ac_objext 13033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13034 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13035 # Insert the option either (1) after the last *FLAGS variable, or 13036 # (2) before a word containing "conftest.", or (3) at the end. 13037 # Note that $ac_compile itself does not contain backslashes and begins 13038 # with a dollar sign (not a hyphen), so the echo should work correctly. 13039 # The option is referenced via a variable to avoid confusing sed. 13040 lt_compile=`echo "$ac_compile" | $SED \ 13041 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13043 -e 's:$: $lt_compiler_flag:'` 13044 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13045 (eval "$lt_compile" 2>conftest.err) 13046 ac_status=$? 13047 cat conftest.err >&5 13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13049 if (exit $ac_status) && test -s "$ac_outfile"; then 13050 # The compiler can only warn and ignore the option if not recognized 13051 # So say no if there are warnings other than the usual output. 13052 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13053 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13054 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13055 lt_cv_prog_compiler_pic_works_CXX=yes 13056 fi 13057 fi 13058 $RM conftest* 13059 13060fi 13061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13062$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13063 13064if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13065 case $lt_prog_compiler_pic_CXX in 13066 "" | " "*) ;; 13067 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13068 esac 13069else 13070 lt_prog_compiler_pic_CXX= 13071 lt_prog_compiler_can_build_shared_CXX=no 13072fi 13073 13074fi 13075 13076 13077 13078# 13079# Check to make sure the static flag actually works. 13080# 13081wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13083$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13084if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : 13085 $as_echo_n "(cached) " >&6 13086else 13087 lt_cv_prog_compiler_static_works_CXX=no 13088 save_LDFLAGS="$LDFLAGS" 13089 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13090 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13091 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13092 # The linker can only warn and ignore the option if not recognized 13093 # So say no if there are warnings 13094 if test -s conftest.err; then 13095 # Append any errors to the config.log. 13096 cat conftest.err 1>&5 13097 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13098 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13099 if diff conftest.exp conftest.er2 >/dev/null; then 13100 lt_cv_prog_compiler_static_works_CXX=yes 13101 fi 13102 else 13103 lt_cv_prog_compiler_static_works_CXX=yes 13104 fi 13105 fi 13106 $RM -r conftest* 13107 LDFLAGS="$save_LDFLAGS" 13108 13109fi 13110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13111$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13112 13113if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13114 : 13115else 13116 lt_prog_compiler_static_CXX= 13117fi 13118 13119 13120 13121 13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13123$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13124if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 13125 $as_echo_n "(cached) " >&6 13126else 13127 lt_cv_prog_compiler_c_o_CXX=no 13128 $RM -r conftest 2>/dev/null 13129 mkdir conftest 13130 cd conftest 13131 mkdir out 13132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13133 13134 lt_compiler_flag="-o out/conftest2.$ac_objext" 13135 # Insert the option either (1) after the last *FLAGS variable, or 13136 # (2) before a word containing "conftest.", or (3) at the end. 13137 # Note that $ac_compile itself does not contain backslashes and begins 13138 # with a dollar sign (not a hyphen), so the echo should work correctly. 13139 lt_compile=`echo "$ac_compile" | $SED \ 13140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13142 -e 's:$: $lt_compiler_flag:'` 13143 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13144 (eval "$lt_compile" 2>out/conftest.err) 13145 ac_status=$? 13146 cat out/conftest.err >&5 13147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13148 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13149 then 13150 # The compiler can only warn and ignore the option if not recognized 13151 # So say no if there are warnings 13152 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13153 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13154 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13155 lt_cv_prog_compiler_c_o_CXX=yes 13156 fi 13157 fi 13158 chmod u+w . 2>&5 13159 $RM conftest* 13160 # SGI C++ compiler will create directory out/ii_files/ for 13161 # template instantiation 13162 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13163 $RM out/* && rmdir out 13164 cd .. 13165 $RM -r conftest 13166 $RM conftest* 13167 13168fi 13169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13170$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13171 13172 13173 13174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13175$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13176if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 13177 $as_echo_n "(cached) " >&6 13178else 13179 lt_cv_prog_compiler_c_o_CXX=no 13180 $RM -r conftest 2>/dev/null 13181 mkdir conftest 13182 cd conftest 13183 mkdir out 13184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13185 13186 lt_compiler_flag="-o out/conftest2.$ac_objext" 13187 # Insert the option either (1) after the last *FLAGS variable, or 13188 # (2) before a word containing "conftest.", or (3) at the end. 13189 # Note that $ac_compile itself does not contain backslashes and begins 13190 # with a dollar sign (not a hyphen), so the echo should work correctly. 13191 lt_compile=`echo "$ac_compile" | $SED \ 13192 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13193 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13194 -e 's:$: $lt_compiler_flag:'` 13195 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13196 (eval "$lt_compile" 2>out/conftest.err) 13197 ac_status=$? 13198 cat out/conftest.err >&5 13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13200 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13201 then 13202 # The compiler can only warn and ignore the option if not recognized 13203 # So say no if there are warnings 13204 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13205 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13206 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13207 lt_cv_prog_compiler_c_o_CXX=yes 13208 fi 13209 fi 13210 chmod u+w . 2>&5 13211 $RM conftest* 13212 # SGI C++ compiler will create directory out/ii_files/ for 13213 # template instantiation 13214 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 13215 $RM out/* && rmdir out 13216 cd .. 13217 $RM -r conftest 13218 $RM conftest* 13219 13220fi 13221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 13222$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 13223 13224 13225 13226 13227hard_links="nottested" 13228if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 13229 # do not overwrite the value of need_locks provided by the user 13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 13231$as_echo_n "checking if we can lock with hard links... " >&6; } 13232 hard_links=yes 13233 $RM conftest* 13234 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13235 touch conftest.a 13236 ln conftest.a conftest.b 2>&5 || hard_links=no 13237 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 13239$as_echo "$hard_links" >&6; } 13240 if test "$hard_links" = no; then 13241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 13242$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 13243 need_locks=warn 13244 fi 13245else 13246 need_locks=no 13247fi 13248 13249 13250 13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13252$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13253 13254 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13255 case $host_os in 13256 aix[4-9]*) 13257 # If we're using GNU nm, then we don't want the "-C" option. 13258 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13259 # Also, AIX nm treats weak defined symbols like other global defined 13260 # symbols, whereas GNU nm marks them as "W". 13261 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 13262 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 13263 else 13264 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 13265 fi 13266 ;; 13267 pw32*) 13268 export_symbols_cmds_CXX="$ltdll_cmds" 13269 ;; 13270 cygwin* | mingw* | cegcc*) 13271 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 13272 ;; 13273 *) 13274 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13275 ;; 13276 esac 13277 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 13278 13279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13280$as_echo "$ld_shlibs_CXX" >&6; } 13281test "$ld_shlibs_CXX" = no && can_build_shared=no 13282 13283with_gnu_ld_CXX=$with_gnu_ld 13284 13285 13286 13287 13288 13289 13290# 13291# Do we need to explicitly link libc? 13292# 13293case "x$archive_cmds_need_lc_CXX" in 13294x|xyes) 13295 # Assume -lc should be added 13296 archive_cmds_need_lc_CXX=yes 13297 13298 if test "$enable_shared" = yes && test "$GCC" = yes; then 13299 case $archive_cmds_CXX in 13300 *'~'*) 13301 # FIXME: we may have to deal with multi-command sequences. 13302 ;; 13303 '$CC '*) 13304 # Test whether the compiler implicitly links with -lc since on some 13305 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13306 # to ld, don't add -lc before -lgcc. 13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 13308$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 13309if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then : 13310 $as_echo_n "(cached) " >&6 13311else 13312 $RM conftest* 13313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13314 13315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13316 (eval $ac_compile) 2>&5 13317 ac_status=$? 13318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13319 test $ac_status = 0; } 2>conftest.err; then 13320 soname=conftest 13321 lib=conftest 13322 libobjs=conftest.$ac_objext 13323 deplibs= 13324 wl=$lt_prog_compiler_wl_CXX 13325 pic_flag=$lt_prog_compiler_pic_CXX 13326 compiler_flags=-v 13327 linker_flags=-v 13328 verstring= 13329 output_objdir=. 13330 libname=conftest 13331 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 13332 allow_undefined_flag_CXX= 13333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 13334 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 13335 ac_status=$? 13336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13337 test $ac_status = 0; } 13338 then 13339 lt_cv_archive_cmds_need_lc_CXX=no 13340 else 13341 lt_cv_archive_cmds_need_lc_CXX=yes 13342 fi 13343 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 13344 else 13345 cat conftest.err 1>&5 13346 fi 13347 $RM conftest* 13348 13349fi 13350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 13351$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 13352 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 13353 ;; 13354 esac 13355 fi 13356 ;; 13357esac 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 13423$as_echo_n "checking dynamic linker characteristics... " >&6; } 13424 13425library_names_spec= 13426libname_spec='lib$name' 13427soname_spec= 13428shrext_cmds=".so" 13429postinstall_cmds= 13430postuninstall_cmds= 13431finish_cmds= 13432finish_eval= 13433shlibpath_var= 13434shlibpath_overrides_runpath=unknown 13435version_type=none 13436dynamic_linker="$host_os ld.so" 13437sys_lib_dlsearch_path_spec="/lib /usr/lib" 13438need_lib_prefix=unknown 13439hardcode_into_libs=no 13440 13441# when you set need_version to no, make sure it does not cause -set_version 13442# flags to be left without arguments 13443need_version=unknown 13444 13445case $host_os in 13446aix3*) 13447 version_type=linux 13448 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13449 shlibpath_var=LIBPATH 13450 13451 # AIX 3 has no versioning support, so we append a major version to the name. 13452 soname_spec='${libname}${release}${shared_ext}$major' 13453 ;; 13454 13455aix[4-9]*) 13456 version_type=linux 13457 need_lib_prefix=no 13458 need_version=no 13459 hardcode_into_libs=yes 13460 if test "$host_cpu" = ia64; then 13461 # AIX 5 supports IA64 13462 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13463 shlibpath_var=LD_LIBRARY_PATH 13464 else 13465 # With GCC up to 2.95.x, collect2 would create an import file 13466 # for dependence libraries. The import file would start with 13467 # the line `#! .'. This would cause the generated library to 13468 # depend on `.', always an invalid library. This was fixed in 13469 # development snapshots of GCC prior to 3.0. 13470 case $host_os in 13471 aix4 | aix4.[01] | aix4.[01].*) 13472 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13473 echo ' yes ' 13474 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 13475 : 13476 else 13477 can_build_shared=no 13478 fi 13479 ;; 13480 esac 13481 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13482 # soname into executable. Probably we can add versioning support to 13483 # collect2, so additional links can be useful in future. 13484 if test "$aix_use_runtimelinking" = yes; then 13485 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13486 # instead of lib<name>.a to let people know that these are not 13487 # typical AIX shared libraries. 13488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13489 else 13490 # We preserve .a as extension for shared libraries through AIX4.2 13491 # and later when we are not doing run time linking. 13492 library_names_spec='${libname}${release}.a $libname.a' 13493 soname_spec='${libname}${release}${shared_ext}$major' 13494 fi 13495 shlibpath_var=LIBPATH 13496 fi 13497 ;; 13498 13499amigaos*) 13500 case $host_cpu in 13501 powerpc) 13502 # Since July 2007 AmigaOS4 officially supports .so libraries. 13503 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 13504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13505 ;; 13506 m68k) 13507 library_names_spec='$libname.ixlibrary $libname.a' 13508 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13509 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 13510 ;; 13511 esac 13512 ;; 13513 13514beos*) 13515 library_names_spec='${libname}${shared_ext}' 13516 dynamic_linker="$host_os ld.so" 13517 shlibpath_var=LIBRARY_PATH 13518 ;; 13519 13520bsdi[45]*) 13521 version_type=linux 13522 need_version=no 13523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13524 soname_spec='${libname}${release}${shared_ext}$major' 13525 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13526 shlibpath_var=LD_LIBRARY_PATH 13527 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13528 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13529 # the default ld.so.conf also contains /usr/contrib/lib and 13530 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13531 # libtool to hard-code these into programs 13532 ;; 13533 13534cygwin* | mingw* | pw32* | cegcc*) 13535 version_type=windows 13536 shrext_cmds=".dll" 13537 need_version=no 13538 need_lib_prefix=no 13539 13540 case $GCC,$host_os in 13541 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 13542 library_names_spec='$libname.dll.a' 13543 # DLL is installed to $(libdir)/../bin by postinstall_cmds 13544 postinstall_cmds='base_file=`basename \${file}`~ 13545 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 13546 dldir=$destdir/`dirname \$dlpath`~ 13547 test -d \$dldir || mkdir -p \$dldir~ 13548 $install_prog $dir/$dlname \$dldir/$dlname~ 13549 chmod a+x \$dldir/$dlname~ 13550 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 13551 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 13552 fi' 13553 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13554 dlpath=$dir/\$dldll~ 13555 $RM \$dlpath' 13556 shlibpath_overrides_runpath=yes 13557 13558 case $host_os in 13559 cygwin*) 13560 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13561 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13562 13563 ;; 13564 mingw* | cegcc*) 13565 # MinGW DLLs use traditional 'lib' prefix 13566 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13567 ;; 13568 pw32*) 13569 # pw32 DLLs use 'pw' prefix rather than 'lib' 13570 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 13571 ;; 13572 esac 13573 ;; 13574 13575 *) 13576 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 13577 ;; 13578 esac 13579 dynamic_linker='Win32 ld.exe' 13580 # FIXME: first we should search . and the directory the executable is in 13581 shlibpath_var=PATH 13582 ;; 13583 13584darwin* | rhapsody*) 13585 dynamic_linker="$host_os dyld" 13586 version_type=darwin 13587 need_lib_prefix=no 13588 need_version=no 13589 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13590 soname_spec='${libname}${release}${major}$shared_ext' 13591 shlibpath_overrides_runpath=yes 13592 shlibpath_var=DYLD_LIBRARY_PATH 13593 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13594 13595 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13596 ;; 13597 13598dgux*) 13599 version_type=linux 13600 need_lib_prefix=no 13601 need_version=no 13602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13603 soname_spec='${libname}${release}${shared_ext}$major' 13604 shlibpath_var=LD_LIBRARY_PATH 13605 ;; 13606 13607freebsd1*) 13608 dynamic_linker=no 13609 ;; 13610 13611freebsd* | dragonfly*) 13612 # DragonFly does not have aout. When/if they implement a new 13613 # versioning mechanism, adjust this. 13614 if test -x /usr/bin/objformat; then 13615 objformat=`/usr/bin/objformat` 13616 else 13617 case $host_os in 13618 freebsd[123]*) objformat=aout ;; 13619 *) objformat=elf ;; 13620 esac 13621 fi 13622 version_type=freebsd-$objformat 13623 case $version_type in 13624 freebsd-elf*) 13625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13626 need_version=no 13627 need_lib_prefix=no 13628 ;; 13629 freebsd-*) 13630 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 13631 need_version=yes 13632 ;; 13633 esac 13634 shlibpath_var=LD_LIBRARY_PATH 13635 case $host_os in 13636 freebsd2*) 13637 shlibpath_overrides_runpath=yes 13638 ;; 13639 freebsd3.[01]* | freebsdelf3.[01]*) 13640 shlibpath_overrides_runpath=yes 13641 hardcode_into_libs=yes 13642 ;; 13643 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 13644 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 13645 shlibpath_overrides_runpath=no 13646 hardcode_into_libs=yes 13647 ;; 13648 *) # from 4.6 on, and DragonFly 13649 shlibpath_overrides_runpath=yes 13650 hardcode_into_libs=yes 13651 ;; 13652 esac 13653 ;; 13654 13655gnu*) 13656 version_type=linux 13657 need_lib_prefix=no 13658 need_version=no 13659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13660 soname_spec='${libname}${release}${shared_ext}$major' 13661 shlibpath_var=LD_LIBRARY_PATH 13662 hardcode_into_libs=yes 13663 ;; 13664 13665haiku*) 13666 version_type=linux 13667 need_lib_prefix=no 13668 need_version=no 13669 dynamic_linker="$host_os runtime_loader" 13670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 13671 soname_spec='${libname}${release}${shared_ext}$major' 13672 shlibpath_var=LIBRARY_PATH 13673 shlibpath_overrides_runpath=yes 13674 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 13675 hardcode_into_libs=yes 13676 ;; 13677 13678hpux9* | hpux10* | hpux11*) 13679 # Give a soname corresponding to the major version so that dld.sl refuses to 13680 # link against other versions. 13681 version_type=sunos 13682 need_lib_prefix=no 13683 need_version=no 13684 case $host_cpu in 13685 ia64*) 13686 shrext_cmds='.so' 13687 hardcode_into_libs=yes 13688 dynamic_linker="$host_os dld.so" 13689 shlibpath_var=LD_LIBRARY_PATH 13690 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13692 soname_spec='${libname}${release}${shared_ext}$major' 13693 if test "X$HPUX_IA64_MODE" = X32; then 13694 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 13695 else 13696 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 13697 fi 13698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13699 ;; 13700 hppa*64*) 13701 shrext_cmds='.sl' 13702 hardcode_into_libs=yes 13703 dynamic_linker="$host_os dld.sl" 13704 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 13705 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 13706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13707 soname_spec='${libname}${release}${shared_ext}$major' 13708 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 13709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 13710 ;; 13711 *) 13712 shrext_cmds='.sl' 13713 dynamic_linker="$host_os dld.sl" 13714 shlibpath_var=SHLIB_PATH 13715 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 13716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13717 soname_spec='${libname}${release}${shared_ext}$major' 13718 ;; 13719 esac 13720 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 13721 postinstall_cmds='chmod 555 $lib' 13722 # or fails outright, so override atomically: 13723 install_override_mode=555 13724 ;; 13725 13726interix[3-9]*) 13727 version_type=linux 13728 need_lib_prefix=no 13729 need_version=no 13730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13731 soname_spec='${libname}${release}${shared_ext}$major' 13732 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 13733 shlibpath_var=LD_LIBRARY_PATH 13734 shlibpath_overrides_runpath=no 13735 hardcode_into_libs=yes 13736 ;; 13737 13738irix5* | irix6* | nonstopux*) 13739 case $host_os in 13740 nonstopux*) version_type=nonstopux ;; 13741 *) 13742 if test "$lt_cv_prog_gnu_ld" = yes; then 13743 version_type=linux 13744 else 13745 version_type=irix 13746 fi ;; 13747 esac 13748 need_lib_prefix=no 13749 need_version=no 13750 soname_spec='${libname}${release}${shared_ext}$major' 13751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 13752 case $host_os in 13753 irix5* | nonstopux*) 13754 libsuff= shlibsuff= 13755 ;; 13756 *) 13757 case $LD in # libtool.m4 will add one of these switches to LD 13758 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 13759 libsuff= shlibsuff= libmagic=32-bit;; 13760 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 13761 libsuff=32 shlibsuff=N32 libmagic=N32;; 13762 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 13763 libsuff=64 shlibsuff=64 libmagic=64-bit;; 13764 *) libsuff= shlibsuff= libmagic=never-match;; 13765 esac 13766 ;; 13767 esac 13768 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 13769 shlibpath_overrides_runpath=no 13770 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 13771 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 13772 hardcode_into_libs=yes 13773 ;; 13774 13775# No shared lib support for Linux oldld, aout, or coff. 13776linux*oldld* | linux*aout* | linux*coff*) 13777 dynamic_linker=no 13778 ;; 13779 13780# This must be Linux ELF. 13781linux* | k*bsd*-gnu | kopensolaris*-gnu) 13782 version_type=linux 13783 need_lib_prefix=no 13784 need_version=no 13785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13786 soname_spec='${libname}${release}${shared_ext}$major' 13787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 13788 shlibpath_var=LD_LIBRARY_PATH 13789 shlibpath_overrides_runpath=no 13790 13791 # Some binutils ld are patched to set DT_RUNPATH 13792 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 13793 $as_echo_n "(cached) " >&6 13794else 13795 lt_cv_shlibpath_overrides_runpath=no 13796 save_LDFLAGS=$LDFLAGS 13797 save_libdir=$libdir 13798 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 13799 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 13800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13801/* end confdefs.h. */ 13802 13803int 13804main () 13805{ 13806 13807 ; 13808 return 0; 13809} 13810_ACEOF 13811if ac_fn_cxx_try_link "$LINENO"; then : 13812 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 13813 lt_cv_shlibpath_overrides_runpath=yes 13814fi 13815fi 13816rm -f core conftest.err conftest.$ac_objext \ 13817 conftest$ac_exeext conftest.$ac_ext 13818 LDFLAGS=$save_LDFLAGS 13819 libdir=$save_libdir 13820 13821fi 13822 13823 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 13824 13825 # This implies no fast_install, which is unacceptable. 13826 # Some rework will be needed to allow for fast_install 13827 # before this can be enabled. 13828 hardcode_into_libs=yes 13829 13830 # Add ABI-specific directories to the system library path. 13831 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 13832 13833 # Append ld.so.conf contents to the search path 13834 if test -f /etc/ld.so.conf; then 13835 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' ' '` 13836 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 13837 13838 fi 13839 13840 # We used to test for /lib/ld.so.1 and disable shared libraries on 13841 # powerpc, because MkLinux only supported shared libraries with the 13842 # GNU dynamic linker. Since this was broken with cross compilers, 13843 # most powerpc-linux boxes support dynamic linking these days and 13844 # people can always --disable-shared, the test was removed, and we 13845 # assume the GNU/Linux dynamic linker is in use. 13846 dynamic_linker='GNU/Linux ld.so' 13847 ;; 13848 13849netbsd*) 13850 version_type=sunos 13851 need_lib_prefix=no 13852 need_version=no 13853 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13856 dynamic_linker='NetBSD (a.out) ld.so' 13857 else 13858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 13859 soname_spec='${libname}${release}${shared_ext}$major' 13860 dynamic_linker='NetBSD ld.elf_so' 13861 fi 13862 shlibpath_var=LD_LIBRARY_PATH 13863 shlibpath_overrides_runpath=yes 13864 hardcode_into_libs=yes 13865 ;; 13866 13867newsos6) 13868 version_type=linux 13869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13870 shlibpath_var=LD_LIBRARY_PATH 13871 shlibpath_overrides_runpath=yes 13872 ;; 13873 13874*nto* | *qnx*) 13875 version_type=qnx 13876 need_lib_prefix=no 13877 need_version=no 13878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13879 soname_spec='${libname}${release}${shared_ext}$major' 13880 shlibpath_var=LD_LIBRARY_PATH 13881 shlibpath_overrides_runpath=no 13882 hardcode_into_libs=yes 13883 dynamic_linker='ldqnx.so' 13884 ;; 13885 13886openbsd*) 13887 version_type=sunos 13888 sys_lib_dlsearch_path_spec="/usr/lib" 13889 need_lib_prefix=no 13890 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 13891 case $host_os in 13892 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 13893 *) need_version=no ;; 13894 esac 13895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 13897 shlibpath_var=LD_LIBRARY_PATH 13898 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13899 case $host_os in 13900 openbsd2.[89] | openbsd2.[89].*) 13901 shlibpath_overrides_runpath=no 13902 ;; 13903 *) 13904 shlibpath_overrides_runpath=yes 13905 ;; 13906 esac 13907 else 13908 shlibpath_overrides_runpath=yes 13909 fi 13910 ;; 13911 13912os2*) 13913 libname_spec='$name' 13914 shrext_cmds=".dll" 13915 need_lib_prefix=no 13916 library_names_spec='$libname${shared_ext} $libname.a' 13917 dynamic_linker='OS/2 ld.exe' 13918 shlibpath_var=LIBPATH 13919 ;; 13920 13921osf3* | osf4* | osf5*) 13922 version_type=osf 13923 need_lib_prefix=no 13924 need_version=no 13925 soname_spec='${libname}${release}${shared_ext}$major' 13926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13927 shlibpath_var=LD_LIBRARY_PATH 13928 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 13929 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 13930 ;; 13931 13932rdos*) 13933 dynamic_linker=no 13934 ;; 13935 13936solaris*) 13937 version_type=linux 13938 need_lib_prefix=no 13939 need_version=no 13940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13941 soname_spec='${libname}${release}${shared_ext}$major' 13942 shlibpath_var=LD_LIBRARY_PATH 13943 shlibpath_overrides_runpath=yes 13944 hardcode_into_libs=yes 13945 # ldd complains unless libraries are executable 13946 postinstall_cmds='chmod +x $lib' 13947 ;; 13948 13949sunos4*) 13950 version_type=sunos 13951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13952 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13953 shlibpath_var=LD_LIBRARY_PATH 13954 shlibpath_overrides_runpath=yes 13955 if test "$with_gnu_ld" = yes; then 13956 need_lib_prefix=no 13957 fi 13958 need_version=yes 13959 ;; 13960 13961sysv4 | sysv4.3*) 13962 version_type=linux 13963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13964 soname_spec='${libname}${release}${shared_ext}$major' 13965 shlibpath_var=LD_LIBRARY_PATH 13966 case $host_vendor in 13967 sni) 13968 shlibpath_overrides_runpath=no 13969 need_lib_prefix=no 13970 runpath_var=LD_RUN_PATH 13971 ;; 13972 siemens) 13973 need_lib_prefix=no 13974 ;; 13975 motorola) 13976 need_lib_prefix=no 13977 need_version=no 13978 shlibpath_overrides_runpath=no 13979 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13980 ;; 13981 esac 13982 ;; 13983 13984sysv4*MP*) 13985 if test -d /usr/nec ;then 13986 version_type=linux 13987 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13988 soname_spec='$libname${shared_ext}.$major' 13989 shlibpath_var=LD_LIBRARY_PATH 13990 fi 13991 ;; 13992 13993sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13994 version_type=freebsd-elf 13995 need_lib_prefix=no 13996 need_version=no 13997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13998 soname_spec='${libname}${release}${shared_ext}$major' 13999 shlibpath_var=LD_LIBRARY_PATH 14000 shlibpath_overrides_runpath=yes 14001 hardcode_into_libs=yes 14002 if test "$with_gnu_ld" = yes; then 14003 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14004 else 14005 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14006 case $host_os in 14007 sco3.2v5*) 14008 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14009 ;; 14010 esac 14011 fi 14012 sys_lib_dlsearch_path_spec='/usr/lib' 14013 ;; 14014 14015tpf*) 14016 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14017 version_type=linux 14018 need_lib_prefix=no 14019 need_version=no 14020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14021 shlibpath_var=LD_LIBRARY_PATH 14022 shlibpath_overrides_runpath=no 14023 hardcode_into_libs=yes 14024 ;; 14025 14026uts4*) 14027 version_type=linux 14028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14029 soname_spec='${libname}${release}${shared_ext}$major' 14030 shlibpath_var=LD_LIBRARY_PATH 14031 ;; 14032 14033*) 14034 dynamic_linker=no 14035 ;; 14036esac 14037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14038$as_echo "$dynamic_linker" >&6; } 14039test "$dynamic_linker" = no && can_build_shared=no 14040 14041variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14042if test "$GCC" = yes; then 14043 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14044fi 14045 14046if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14047 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14048fi 14049if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14050 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14051fi 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14091$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14092hardcode_action_CXX= 14093if test -n "$hardcode_libdir_flag_spec_CXX" || 14094 test -n "$runpath_var_CXX" || 14095 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14096 14097 # We can hardcode non-existent directories. 14098 if test "$hardcode_direct_CXX" != no && 14099 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14100 # have to relink, otherwise we might link with an installed library 14101 # when we should be linking with a yet-to-be-installed one 14102 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14103 test "$hardcode_minus_L_CXX" != no; then 14104 # Linking always hardcodes the temporary library directory. 14105 hardcode_action_CXX=relink 14106 else 14107 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14108 hardcode_action_CXX=immediate 14109 fi 14110else 14111 # We cannot hardcode anything, or else we can only hardcode existing 14112 # directories. 14113 hardcode_action_CXX=unsupported 14114fi 14115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 14116$as_echo "$hardcode_action_CXX" >&6; } 14117 14118if test "$hardcode_action_CXX" = relink || 14119 test "$inherit_rpath_CXX" = yes; then 14120 # Fast installation is not supported 14121 enable_fast_install=no 14122elif test "$shlibpath_overrides_runpath" = yes || 14123 test "$enable_shared" = no; then 14124 # Fast installation is not necessary 14125 enable_fast_install=needless 14126fi 14127 14128 14129 14130 14131 14132 14133 14134 fi # test -n "$compiler" 14135 14136 CC=$lt_save_CC 14137 LDCXX=$LD 14138 LD=$lt_save_LD 14139 GCC=$lt_save_GCC 14140 with_gnu_ld=$lt_save_with_gnu_ld 14141 lt_cv_path_LDCXX=$lt_cv_path_LD 14142 lt_cv_path_LD=$lt_save_path_LD 14143 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14144 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14145fi # test "$_lt_caught_CXX_error" != yes 14146 14147ac_ext=c 14148ac_cpp='$CPP $CPPFLAGS' 14149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14151ac_compiler_gnu=$ac_cv_c_compiler_gnu 14152 14153 14154 14155 14156 for ac_prog in perl5 perl 14157do 14158 # Extract the first word of "$ac_prog", so it can be a program name with args. 14159set dummy $ac_prog; ac_word=$2 14160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14161$as_echo_n "checking for $ac_word... " >&6; } 14162if test "${ac_cv_path_SYSCONFTOOL_PERL+set}" = set; then : 14163 $as_echo_n "(cached) " >&6 14164else 14165 case $SYSCONFTOOL_PERL in 14166 [\\/]* | ?:[\\/]*) 14167 ac_cv_path_SYSCONFTOOL_PERL="$SYSCONFTOOL_PERL" # Let the user override the test with a path. 14168 ;; 14169 *) 14170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14171for as_dir in $PATH 14172do 14173 IFS=$as_save_IFS 14174 test -z "$as_dir" && as_dir=. 14175 for ac_exec_ext in '' $ac_executable_extensions; do 14176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14177 ac_cv_path_SYSCONFTOOL_PERL="$as_dir/$ac_word$ac_exec_ext" 14178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14179 break 2 14180 fi 14181done 14182 done 14183IFS=$as_save_IFS 14184 14185 ;; 14186esac 14187fi 14188SYSCONFTOOL_PERL=$ac_cv_path_SYSCONFTOOL_PERL 14189if test -n "$SYSCONFTOOL_PERL"; then 14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFTOOL_PERL" >&5 14191$as_echo "$SYSCONFTOOL_PERL" >&6; } 14192else 14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14194$as_echo "no" >&6; } 14195fi 14196 14197 14198 test -n "$SYSCONFTOOL_PERL" && break 14199done 14200test -n "$SYSCONFTOOL_PERL" || SYSCONFTOOL_PERL="perl" 14201 14202 14203 if test "$SYSCONFTOOL_PERL" = "perl" 14204 then 14205 as_fn_error $? "perl not found - please install perl" "$LINENO" 5 14206 fi 14207 14208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconftool..." >&5 14209$as_echo_n "checking for sysconftool...... " >&6; } 14210 SYSCONFTOOL="" 14211 for sysconf_dir in $ac_aux_dir . .. ../.. 14212 do 14213 if test -f $srcdir/$sysconf_dir/sysconftool 14214 then 14215 SYSCONFTOOL=$srcdir/$sysconf_dir/sysconftool 14216 break 14217 fi 14218 done 14219 14220 if test "$SYSCONFTOOL" = "" 14221 then 14222 as_fn_error $? "sysconftool missing - not in the package" "$LINENO" 5 14223 fi 14224 14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFTOOL" >&5 14226$as_echo "$SYSCONFTOOL" >&6; } 14227 SYSCONFTOOL="$SYSCONFTOOL_PERL $SYSCONFTOOL" 14228 14229 14230 14231for ac_prog in env 14232do 14233 # Extract the first word of "$ac_prog", so it can be a program name with args. 14234set dummy $ac_prog; ac_word=$2 14235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14236$as_echo_n "checking for $ac_word... " >&6; } 14237if test "${ac_cv_path_SETENV+set}" = set; then : 14238 $as_echo_n "(cached) " >&6 14239else 14240 case $SETENV in 14241 [\\/]* | ?:[\\/]*) 14242 ac_cv_path_SETENV="$SETENV" # Let the user override the test with a path. 14243 ;; 14244 *) 14245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14246for as_dir in $PATH 14247do 14248 IFS=$as_save_IFS 14249 test -z "$as_dir" && as_dir=. 14250 for ac_exec_ext in '' $ac_executable_extensions; do 14251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14252 ac_cv_path_SETENV="$as_dir/$ac_word$ac_exec_ext" 14253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14254 break 2 14255 fi 14256done 14257 done 14258IFS=$as_save_IFS 14259 14260 ;; 14261esac 14262fi 14263SETENV=$ac_cv_path_SETENV 14264if test -n "$SETENV"; then 14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETENV" >&5 14266$as_echo "$SETENV" >&6; } 14267else 14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14269$as_echo "no" >&6; } 14270fi 14271 14272 14273 test -n "$SETENV" && break 14274done 14275 14276 14277# Check whether --enable-root-check was given. 14278if test "${enable_root_check+set}" = set; then : 14279 enableval=$enable_root_check; rootcheck="$enableval" 14280else 14281 rootcheck="yes" 14282fi 14283 14284 14285if test "$rootcheck" = "yes" 14286then 14287if test -w /etc 14288then 14289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Do not compile Courier as root. Compile" >&5 14290$as_echo "$as_me: WARNING: === Do not compile Courier as root. Compile" >&2;} 14291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Courier as a non-root user then su to" >&5 14292$as_echo "$as_me: WARNING: === Courier as a non-root user then su to" >&2;} 14293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === root before running make install. You must now" >&5 14294$as_echo "$as_me: WARNING: === root before running make install. You must now" >&2;} 14295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === remove this entire directory and then extract the" >&5 14296$as_echo "$as_me: WARNING: === remove this entire directory and then extract the" >&2;} 14297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === source code from the tarball as a non-root user" >&5 14298$as_echo "$as_me: WARNING: === source code from the tarball as a non-root user" >&2;} 14299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === and rerun the configure script. If you have read" >&5 14300$as_echo "$as_me: WARNING: === and rerun the configure script. If you have read" >&2;} 14301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === the INSTALL file you should have known this. So" >&5 14302$as_echo "$as_me: WARNING: === the INSTALL file you should have known this. So" >&2;} 14303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you better read INSTALL again" >&5 14304$as_echo "$as_me: WARNING: === you better read INSTALL again" >&2;} 14305 as_fn_error $? "aborted." "$LINENO" 5 14306fi 14307fi 14308 14309ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default" 14310if test "x$ac_cv_header_pcre_h" = x""yes; then : 14311 : 14312else 14313 14314 14315 ac_fn_c_check_header_mongrel "$LINENO" "pcre/pcre.h" "ac_cv_header_pcre_pcre_h" "$ac_includes_default" 14316if test "x$ac_cv_header_pcre_pcre_h" = x""yes; then : 14317 : 14318else 14319 14320 as_fn_error $? "pcre.h not found - install PCRE from www.pcre.org" "$LINENO" 5 14321 14322fi 14323 14324 14325 14326 14327fi 14328 14329 14330 14331if test x$prefix = xNONE 14332then 14333 prefix="/usr/lib/courier" 14334 ac_configure_args="$ac_configure_args --prefix=$prefix" 14335fi 14336 14337if test x$exec_prefix = xNONE 14338then 14339 exec_prefix="$prefix" 14340fi 14341 14342eval "libexecdir=$libexecdir" 14343eval "sysconfdir=$sysconfdir" 14344eval "localstatedir=$localstatedir" 14345eval "datadir=$datadir" 14346 14347 14348# Check whether --with-certsdir was given. 14349if test "${with_certsdir+set}" = set; then : 14350 withval=$with_certsdir; certsdir="$withval" 14351else 14352 certsdir=$datadir 14353fi 14354 14355 14356 14357# Check whether --with-makedatprog was given. 14358if test "${with_makedatprog+set}" = set; then : 14359 withval=$with_makedatprog; 14360else 14361 ac_configure_args="$ac_configure_args --with-makedatprog=${libexecdir}/courier/makedatprog" 14362fi 14363 14364 14365 14366# Check whether --with-piddir was given. 14367if test "${with_piddir+set}" = set; then : 14368 withval=$with_piddir; 14369else 14370 ac_configure_args="$ac_configure_args --with-piddir=${localstatedir}/tmp" 14371fi 14372 14373 14374 14375# Check whether --with-package was given. 14376if test "${with_package+set}" = set; then : 14377 withval=$with_package; package="$withval" 14378else 14379 14380 package="$PACKAGE" 14381 ac_configure_args="$ac_configure_args --with-package=$PACKAGE --with-version=$VERSION" 14382 14383fi 14384 14385 14386echo $version >version.txt 14387 14388for ac_prog in courierauthconfig 14389do 14390 # Extract the first word of "$ac_prog", so it can be a program name with args. 14391set dummy $ac_prog; ac_word=$2 14392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14393$as_echo_n "checking for $ac_word... " >&6; } 14394if test "${ac_cv_path_COURIERAUTHCONFIG+set}" = set; then : 14395 $as_echo_n "(cached) " >&6 14396else 14397 case $COURIERAUTHCONFIG in 14398 [\\/]* | ?:[\\/]*) 14399 ac_cv_path_COURIERAUTHCONFIG="$COURIERAUTHCONFIG" # Let the user override the test with a path. 14400 ;; 14401 *) 14402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14403for as_dir in $PATH 14404do 14405 IFS=$as_save_IFS 14406 test -z "$as_dir" && as_dir=. 14407 for ac_exec_ext in '' $ac_executable_extensions; do 14408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14409 ac_cv_path_COURIERAUTHCONFIG="$as_dir/$ac_word$ac_exec_ext" 14410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14411 break 2 14412 fi 14413done 14414 done 14415IFS=$as_save_IFS 14416 14417 ;; 14418esac 14419fi 14420COURIERAUTHCONFIG=$ac_cv_path_COURIERAUTHCONFIG 14421if test -n "$COURIERAUTHCONFIG"; then 14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COURIERAUTHCONFIG" >&5 14423$as_echo "$COURIERAUTHCONFIG" >&6; } 14424else 14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14426$as_echo "no" >&6; } 14427fi 14428 14429 14430 test -n "$COURIERAUTHCONFIG" && break 14431done 14432 14433 14434if test "$COURIERAUTHCONFIG" = "" 14435then 14436 hash='#' 14437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Courier authentication library not found." >&5 14438$as_echo "$as_me: WARNING: === Courier authentication library not found." >&2;} 14439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You need to download and install" >&5 14440$as_echo "$as_me: WARNING: === You need to download and install" >&2;} 14441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === http://www.courier-mta.org/download.php${hash}authlib first." >&5 14442$as_echo "$as_me: WARNING: === http://www.courier-mta.org/download.php${hash}authlib first." >&2;} 14443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === If courier-authlib is installed in a non-default" >&5 14444$as_echo "$as_me: WARNING: === If courier-authlib is installed in a non-default" >&2;} 14445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === directory, set the COURIERAUTHCONFIG environment" >&5 14446$as_echo "$as_me: WARNING: === directory, set the COURIERAUTHCONFIG environment" >&2;} 14447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === variable to the full path to the courierauthconfig" >&5 14448$as_echo "$as_me: WARNING: === variable to the full path to the courierauthconfig" >&2;} 14449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === binary and rerun this configure script." >&5 14450$as_echo "$as_me: WARNING: === binary and rerun this configure script." >&2;} 14451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: " >&5 14452$as_echo "$as_me: WARNING: " >&2;} 14453 as_fn_error $? "courierauthconfig not found" "$LINENO" 5 14454fi 14455 14456$COURIERAUTHCONFIG --configfiles | sed 's/^/auth/' >configtmp 14457. ./configtmp 14458 14459# Check whether --with-courierlogger was given. 14460if test "${with_courierlogger+set}" = set; then : 14461 withval=$with_courierlogger; : 14462else 14463 14464 ac_configure_args="$ac_configure_args --with-courierlogger=$authsbindir/courierlogger" 14465fi 14466 14467 14468if test `$COURIERAUTHCONFIG --version=0.62.4.20091218` = "no" 14469then 14470 as_fn_error $? "Courier authentication library version 0.63 is required." "$LINENO" 5 14471fi 14472 14473 14474needs_withdb=0 14475 14476 14477# Check whether --with-db was given. 14478if test "${with_db+set}" = set; then : 14479 withval=$with_db; db="$withval" 14480else 14481 db=""; needs_withdb=1 14482fi 14483 14484 14485case "$db" in 14486gdbm) 14487 ;; 14488db) 14489 ;; 14490"") 14491 ;; 14492*) 14493 as_fn_error $? "Invalid --with-db option." "$LINENO" 5 14494 ;; 14495esac 14496 14497saveLIBS="$LIBS" 14498 14499if test "$db" != "db" 14500then 14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 14502$as_echo_n "checking for gdbm_open in -lgdbm... " >&6; } 14503if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then : 14504 $as_echo_n "(cached) " >&6 14505else 14506 ac_check_lib_save_LIBS=$LIBS 14507LIBS="-lgdbm $LIBS" 14508cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14509/* end confdefs.h. */ 14510 14511/* Override any GCC internal prototype to avoid an error. 14512 Use char because int might match the return type of a GCC 14513 builtin and then its argument prototype would still apply. */ 14514#ifdef __cplusplus 14515extern "C" 14516#endif 14517char gdbm_open (); 14518int 14519main () 14520{ 14521return gdbm_open (); 14522 ; 14523 return 0; 14524} 14525_ACEOF 14526if ac_fn_c_try_link "$LINENO"; then : 14527 ac_cv_lib_gdbm_gdbm_open=yes 14528else 14529 ac_cv_lib_gdbm_gdbm_open=no 14530fi 14531rm -f core conftest.err conftest.$ac_objext \ 14532 conftest$ac_exeext conftest.$ac_ext 14533LIBS=$ac_check_lib_save_LIBS 14534fi 14535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 14536$as_echo "$ac_cv_lib_gdbm_gdbm_open" >&6; } 14537if test "x$ac_cv_lib_gdbm_gdbm_open" = x""yes; then : 14538 LIBGDBM=-lgdbm ; LIBS="-lgdbm $LIBS" 14539fi 14540 14541 ac_fn_c_check_func "$LINENO" "gdbm_open" "ac_cv_func_gdbm_open" 14542if test "x$ac_cv_func_gdbm_open" = x""yes; then : 14543 HAVE_GDBM=y 14544fi 14545 14546fi 14547 14548LIBS="$saveLIBS" 14549 14550if test "$db" != "gdbm" 14551then 14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbopen in -ldb" >&5 14553$as_echo_n "checking for dbopen in -ldb... " >&6; } 14554if test "${ac_cv_lib_db_dbopen+set}" = set; then : 14555 $as_echo_n "(cached) " >&6 14556else 14557 ac_check_lib_save_LIBS=$LIBS 14558LIBS="-ldb $LIBS" 14559cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14560/* end confdefs.h. */ 14561 14562/* Override any GCC internal prototype to avoid an error. 14563 Use char because int might match the return type of a GCC 14564 builtin and then its argument prototype would still apply. */ 14565#ifdef __cplusplus 14566extern "C" 14567#endif 14568char dbopen (); 14569int 14570main () 14571{ 14572return dbopen (); 14573 ; 14574 return 0; 14575} 14576_ACEOF 14577if ac_fn_c_try_link "$LINENO"; then : 14578 ac_cv_lib_db_dbopen=yes 14579else 14580 ac_cv_lib_db_dbopen=no 14581fi 14582rm -f core conftest.err conftest.$ac_objext \ 14583 conftest$ac_exeext conftest.$ac_ext 14584LIBS=$ac_check_lib_save_LIBS 14585fi 14586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_dbopen" >&5 14587$as_echo "$ac_cv_lib_db_dbopen" >&6; } 14588if test "x$ac_cv_lib_db_dbopen" = x""yes; then : 14589 LIBDB=-ldb ; LIBS="-ldb $LIBS" 14590else 14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_open in -ldb" >&5 14592$as_echo_n "checking for db_open in -ldb... " >&6; } 14593if test "${ac_cv_lib_db_db_open+set}" = set; then : 14594 $as_echo_n "(cached) " >&6 14595else 14596 ac_check_lib_save_LIBS=$LIBS 14597LIBS="-ldb $LIBS" 14598cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14599/* end confdefs.h. */ 14600 14601/* Override any GCC internal prototype to avoid an error. 14602 Use char because int might match the return type of a GCC 14603 builtin and then its argument prototype would still apply. */ 14604#ifdef __cplusplus 14605extern "C" 14606#endif 14607char db_open (); 14608int 14609main () 14610{ 14611return db_open (); 14612 ; 14613 return 0; 14614} 14615_ACEOF 14616if ac_fn_c_try_link "$LINENO"; then : 14617 ac_cv_lib_db_db_open=yes 14618else 14619 ac_cv_lib_db_db_open=no 14620fi 14621rm -f core conftest.err conftest.$ac_objext \ 14622 conftest$ac_exeext conftest.$ac_ext 14623LIBS=$ac_check_lib_save_LIBS 14624fi 14625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_open" >&5 14626$as_echo "$ac_cv_lib_db_db_open" >&6; } 14627if test "x$ac_cv_lib_db_db_open" = x""yes; then : 14628 LIBDB=-ldb ; LIBS="-ldb $LIBS" 14629else 14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for db_env_create in -ldb" >&5 14631$as_echo_n "checking for db_env_create in -ldb... " >&6; } 14632if test "${ac_cv_lib_db_db_env_create+set}" = set; then : 14633 $as_echo_n "(cached) " >&6 14634else 14635 ac_check_lib_save_LIBS=$LIBS 14636LIBS="-ldb $LIBS" 14637cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14638/* end confdefs.h. */ 14639 14640/* Override any GCC internal prototype to avoid an error. 14641 Use char because int might match the return type of a GCC 14642 builtin and then its argument prototype would still apply. */ 14643#ifdef __cplusplus 14644extern "C" 14645#endif 14646char db_env_create (); 14647int 14648main () 14649{ 14650return db_env_create (); 14651 ; 14652 return 0; 14653} 14654_ACEOF 14655if ac_fn_c_try_link "$LINENO"; then : 14656 ac_cv_lib_db_db_env_create=yes 14657else 14658 ac_cv_lib_db_db_env_create=no 14659fi 14660rm -f core conftest.err conftest.$ac_objext \ 14661 conftest$ac_exeext conftest.$ac_ext 14662LIBS=$ac_check_lib_save_LIBS 14663fi 14664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_db_env_create" >&5 14665$as_echo "$ac_cv_lib_db_db_env_create" >&6; } 14666if test "x$ac_cv_lib_db_db_env_create" = x""yes; then : 14667 LIBDB=-ldb; LIBS="-ldb $LIBS" 14668fi 14669 14670 14671fi 14672 14673fi 14674 14675 14676 ac_fn_c_check_func "$LINENO" "dbopen" "ac_cv_func_dbopen" 14677if test "x$ac_cv_func_dbopen" = x""yes; then : 14678 HAVE_BDB=1 14679fi 14680 14681 ac_fn_c_check_func "$LINENO" "db_open" "ac_cv_func_db_open" 14682if test "x$ac_cv_func_db_open" = x""yes; then : 14683 HAVE_BDB=1 14684fi 14685 14686 ac_fn_c_check_func "$LINENO" "db_env_create" "ac_cv_func_db_env_create" 14687if test "x$ac_cv_func_db_env_create" = x""yes; then : 14688 HAVE_BDB=1 14689fi 14690 14691fi 14692 14693LIBS="$saveLIBS" 14694 14695if test "$HAVE_GDBM$HAVE_BDB" = "" 14696then 14697 as_fn_error $? "Cannot find either the gdbm or the db library." "$LINENO" 5 14698fi 14699 14700USE_GDBM=0 14701USE_DB=0 14702 14703if test "$HAVE_GDBM" = "y" 14704then 14705 USE_GDBM=1 14706 DBSUBDIR=gdbmobj 14707 if test "$needs_withdb" = 1 14708 then 14709 ac_configure_args="$ac_configure_args --with-db=gdbm" 14710 fi 14711 dblibrary=gdbmobj/libgdbmobj.la 14712else 14713 USE_DB=1 14714 DBSUBDIR=bdbobj 14715 if test "$needs_withdb" = 1 14716 then 14717 ac_configure_args="$ac_configure_args --with-db=db" 14718 fi 14719 dblibrary=bdbobj/libbdbobj.la 14720fi 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732LB='[' 14733RB=']' 14734 14735 14736 14737 14738# Check whether --with-mailuser was given. 14739if test "${with_mailuser+set}" = set; then : 14740 withval=$with_mailuser; mailuser="$withval" 14741else 14742 mailuser="$authmailuser" 14743 ac_configure_args="$ac_configure_args --with-mailuser=$mailuser" 14744 14745fi 14746 14747 14748 14749# Check whether --with-mailgroup was given. 14750if test "${with_mailgroup+set}" = set; then : 14751 withval=$with_mailgroup; mailgroup="$withval" 14752else 14753 mailgroup="$authmailgroup" 14754 ac_configure_args="$ac_configure_args --with-mailgroup=$mailgroup" 14755 14756fi 14757 14758 14759 14760# Check whether --with-mailuid was given. 14761if test "${with_mailuid+set}" = set; then : 14762 withval=$with_mailuid; mailuid="$withval" 14763else 14764 mailuid="$authmailuid" 14765 ac_configure_args="$ac_configure_args --with-mailuid=$mailuid" 14766 14767fi 14768 14769 14770 14771# Check whether --with-mailgid was given. 14772if test "${with_mailgid+set}" = set; then : 14773 withval=$with_mailgid; mailgid="$withval" 14774else 14775 mailgid="$authmailgid" 14776 ac_configure_args="$ac_configure_args --with-mailgid=$mailgid" 14777 14778fi 14779 14780 14781 14782 14783 14784 14785rm -f configtmp 14786 14787 14788# Check whether --enable-trusted-groups was given. 14789if test "${enable_trusted_groups+set}" = set; then : 14790 enableval=$enable_trusted_groups; 14791else 14792 ac_configure_args="$ac_configure_args --enable-trusted-groups='$mailgroup'" 14793fi 14794 14795 14796 14797# Check whether --with-formdata was given. 14798if test "${with_formdata+set}" = set; then : 14799 withval=$with_formdata; 14800else 14801 ac_configure_args="$ac_configure_args --with-formdata" 14802fi 14803 14804 14805# 14806# Unicode mess 14807# 14808 14809# Check whether --enable-utf7-folder-encoding was given. 14810if test "${enable_utf7_folder_encoding+set}" = set; then : 14811 enableval=$enable_utf7_folder_encoding; utf7folder="$enableval" 14812 if test "$utf7folder" != "yes" 14813 then 14814 as_fn_error $? "This option is no longer supported" "$LINENO" 5 14815 fi 14816 14817else 14818 14819 ac_configure_args="$ac_configure_args --enable-utf7-folder-encoding" 14820 utf7folder="yes" 14821 14822 14823fi 14824 14825 14826for ac_prog in gpg gpg2 14827do 14828 # Extract the first word of "$ac_prog", so it can be a program name with args. 14829set dummy $ac_prog; ac_word=$2 14830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14831$as_echo_n "checking for $ac_word... " >&6; } 14832if test "${ac_cv_path_GPG+set}" = set; then : 14833 $as_echo_n "(cached) " >&6 14834else 14835 case $GPG in 14836 [\\/]* | ?:[\\/]*) 14837 ac_cv_path_GPG="$GPG" # Let the user override the test with a path. 14838 ;; 14839 *) 14840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14841for as_dir in $LPATH 14842do 14843 IFS=$as_save_IFS 14844 test -z "$as_dir" && as_dir=. 14845 for ac_exec_ext in '' $ac_executable_extensions; do 14846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14847 ac_cv_path_GPG="$as_dir/$ac_word$ac_exec_ext" 14848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14849 break 2 14850 fi 14851done 14852 done 14853IFS=$as_save_IFS 14854 14855 ;; 14856esac 14857fi 14858GPG=$ac_cv_path_GPG 14859if test -n "$GPG"; then 14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPG" >&5 14861$as_echo "$GPG" >&6; } 14862else 14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14864$as_echo "no" >&6; } 14865fi 14866 14867 14868 test -n "$GPG" && break 14869done 14870test -n "$GPG" || GPG="/usr/bin/gpg" 14871 14872 14873# Check whether --enable-unicode was given. 14874if test "${enable_unicode+set}" = set; then : 14875 enableval=$enable_unicode; 14876 unicode="$enableval" 14877 14878 if test "$unicode" != "yes" 14879 then 14880 as_fn_error $? "This option is no longer supported" "$LINENO" 5 14881 fi 14882 14883else 14884 14885 ac_configure_args="$ac_configure_args --enable-unicode" 14886 unicode="yes" 14887 14888 14889fi 14890 14891 14892# 14893# Stick webadmin stuff here 14894 14895 14896# Check whether --with-webadmindir was given. 14897if test "${with_webadmindir+set}" = set; then : 14898 withval=$with_webadmindir; 14899else 14900 ac_configure_args="$ac_configure_args --with-webadmindir=$datadir/courierwebadmin" 14901fi 14902 14903 14904# 14905# autoconf bug 14906# 14907 14908ac_given_INSTALL="$INSTALL" 14909 14910# 14911# Get rid of internal arguments, save real arguments into configure.args 14912 14913real_configure_args="" 14914 14915for arg in $ac_configure_args 14916do 14917 case $arg in 14918 --with-courierlogger*) 14919 continue 14920 ;; 14921 --with-makedatprog*) 14922 continue 14923 ;; 14924 --with-webadmindir*) 14925 continue 14926 ;; 14927 --with-piddir*) 14928 continue 14929 ;; 14930 --with-package*) 14931 continue 14932 ;; 14933 --with-version*) 14934 continue 14935 ;; 14936 --enable-trusted-groups*) 14937 continue 14938 ;; 14939 --with-formdata*) 14940 continue 14941 ;; 14942 --with-mailuser*) 14943 ;; 14944 --with-mailgroup*) 14945 ;; 14946 --with-mailuid*) 14947 ;; 14948 --with-mailgid*) 14949 ;; 14950 *) 14951 real_configure_args="$real_configure_args $arg" 14952 ;; 14953 esac 14954done 14955 14956 14957# Check whether --with-repository was given. 14958if test "${with_repository+set}" = set; then : 14959 withval=$with_repository; REPOSITORY="$withval" 14960fi 14961 14962 14963 14964echo $real_configure_args >configure.args 14965 14966 14967subdirs="$subdirs afx gdbmobj bdbobj cgi http11 numlib soxwrap md5 sha1 libhmac random128 unicode rfc822 rfc1035 rfc2045 liblock maildir waitlib threadlib makedat tcpd rootcerts imap maildrop ldapaddressbook gpglib pcp webmail webadmin courier" 14968 14969 14970ac_config_files="$ac_config_files Makefile courier.spec courier.lpspec dbobj.h dbobj.config courier.sysvinit" 14971 14972cat >confcache <<\_ACEOF 14973# This file is a shell script that caches the results of configure 14974# tests run on this system so they can be shared between configure 14975# scripts and configure runs, see configure's option --config-cache. 14976# It is not useful on other systems. If it contains results you don't 14977# want to keep, you may remove or edit it. 14978# 14979# config.status only pays attention to the cache file if you give it 14980# the --recheck option to rerun configure. 14981# 14982# `ac_cv_env_foo' variables (set or unset) will be overridden when 14983# loading this file, other *unset* `ac_cv_foo' will be assigned the 14984# following values. 14985 14986_ACEOF 14987 14988# The following way of writing the cache mishandles newlines in values, 14989# but we know of no workaround that is simple, portable, and efficient. 14990# So, we kill variables containing newlines. 14991# Ultrix sh set writes to stderr and can't be redirected directly, 14992# and sets the high bit in the cache file unless we assign to the vars. 14993( 14994 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14995 eval ac_val=\$$ac_var 14996 case $ac_val in #( 14997 *${as_nl}*) 14998 case $ac_var in #( 14999 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15000$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15001 esac 15002 case $ac_var in #( 15003 _ | IFS | as_nl) ;; #( 15004 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15005 *) { eval $ac_var=; unset $ac_var;} ;; 15006 esac ;; 15007 esac 15008 done 15009 15010 (set) 2>&1 | 15011 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15012 *${as_nl}ac_space=\ *) 15013 # `set' does not quote correctly, so add quotes: double-quote 15014 # substitution turns \\\\ into \\, and sed turns \\ into \. 15015 sed -n \ 15016 "s/'/'\\\\''/g; 15017 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15018 ;; #( 15019 *) 15020 # `set' quotes correctly as required by POSIX, so do not add quotes. 15021 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15022 ;; 15023 esac | 15024 sort 15025) | 15026 sed ' 15027 /^ac_cv_env_/b end 15028 t clear 15029 :clear 15030 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15031 t end 15032 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15033 :end' >>confcache 15034if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15035 if test -w "$cache_file"; then 15036 test "x$cache_file" != "x/dev/null" && 15037 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15038$as_echo "$as_me: updating cache $cache_file" >&6;} 15039 cat confcache >$cache_file 15040 else 15041 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15042$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15043 fi 15044fi 15045rm -f confcache 15046 15047test "x$prefix" = xNONE && prefix=$ac_default_prefix 15048# Let make expand exec_prefix. 15049test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15050 15051# Transform confdefs.h into DEFS. 15052# Protect against shell expansion while executing Makefile rules. 15053# Protect against Makefile macro expansion. 15054# 15055# If the first sed substitution is executed (which looks for macros that 15056# take arguments), then branch to the quote section. Otherwise, 15057# look for a macro that doesn't take arguments. 15058ac_script=' 15059:mline 15060/\\$/{ 15061 N 15062 s,\\\n,, 15063 b mline 15064} 15065t clear 15066:clear 15067s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 15068t quote 15069s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 15070t quote 15071b any 15072:quote 15073s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 15074s/\[/\\&/g 15075s/\]/\\&/g 15076s/\$/$$/g 15077H 15078:any 15079${ 15080 g 15081 s/^\n// 15082 s/\n/ /g 15083 p 15084} 15085' 15086DEFS=`sed -n "$ac_script" confdefs.h` 15087 15088 15089ac_libobjs= 15090ac_ltlibobjs= 15091U= 15092for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15093 # 1. Remove the extension, and $U if already installed. 15094 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15095 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15096 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15097 # will be set to the directory where LIBOBJS objects are built. 15098 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15099 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15100done 15101LIBOBJS=$ac_libobjs 15102 15103LTLIBOBJS=$ac_ltlibobjs 15104 15105 15106 if test -n "$EXEEXT"; then 15107 am__EXEEXT_TRUE= 15108 am__EXEEXT_FALSE='#' 15109else 15110 am__EXEEXT_TRUE='#' 15111 am__EXEEXT_FALSE= 15112fi 15113 15114if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 15115 as_fn_error $? "conditional \"AMDEP\" was never defined. 15116Usually this means the macro was only invoked conditionally." "$LINENO" 5 15117fi 15118if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 15119 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 15120Usually this means the macro was only invoked conditionally." "$LINENO" 5 15121fi 15122if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 15123 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 15124Usually this means the macro was only invoked conditionally." "$LINENO" 5 15125fi 15126 15127: ${CONFIG_STATUS=./config.status} 15128ac_write_fail=0 15129ac_clean_files_save=$ac_clean_files 15130ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15131{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15132$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15133as_write_fail=0 15134cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15135#! $SHELL 15136# Generated by $as_me. 15137# Run this file to recreate the current configuration. 15138# Compiler output produced by configure, useful for debugging 15139# configure, is in config.log if it exists. 15140 15141debug=false 15142ac_cs_recheck=false 15143ac_cs_silent=false 15144 15145SHELL=\${CONFIG_SHELL-$SHELL} 15146export SHELL 15147_ASEOF 15148cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15149## -------------------- ## 15150## M4sh Initialization. ## 15151## -------------------- ## 15152 15153# Be more Bourne compatible 15154DUALCASE=1; export DUALCASE # for MKS sh 15155if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15156 emulate sh 15157 NULLCMD=: 15158 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15159 # is contrary to our usage. Disable this feature. 15160 alias -g '${1+"$@"}'='"$@"' 15161 setopt NO_GLOB_SUBST 15162else 15163 case `(set -o) 2>/dev/null` in #( 15164 *posix*) : 15165 set -o posix ;; #( 15166 *) : 15167 ;; 15168esac 15169fi 15170 15171 15172as_nl=' 15173' 15174export as_nl 15175# Printing a long string crashes Solaris 7 /usr/bin/printf. 15176as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15177as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15178as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15179# Prefer a ksh shell builtin over an external printf program on Solaris, 15180# but without wasting forks for bash or zsh. 15181if test -z "$BASH_VERSION$ZSH_VERSION" \ 15182 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15183 as_echo='print -r --' 15184 as_echo_n='print -rn --' 15185elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15186 as_echo='printf %s\n' 15187 as_echo_n='printf %s' 15188else 15189 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15190 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15191 as_echo_n='/usr/ucb/echo -n' 15192 else 15193 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15194 as_echo_n_body='eval 15195 arg=$1; 15196 case $arg in #( 15197 *"$as_nl"*) 15198 expr "X$arg" : "X\\(.*\\)$as_nl"; 15199 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15200 esac; 15201 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15202 ' 15203 export as_echo_n_body 15204 as_echo_n='sh -c $as_echo_n_body as_echo' 15205 fi 15206 export as_echo_body 15207 as_echo='sh -c $as_echo_body as_echo' 15208fi 15209 15210# The user is always right. 15211if test "${PATH_SEPARATOR+set}" != set; then 15212 PATH_SEPARATOR=: 15213 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15214 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15215 PATH_SEPARATOR=';' 15216 } 15217fi 15218 15219 15220# IFS 15221# We need space, tab and new line, in precisely that order. Quoting is 15222# there to prevent editors from complaining about space-tab. 15223# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15224# splitting by setting IFS to empty value.) 15225IFS=" "" $as_nl" 15226 15227# Find who we are. Look in the path if we contain no directory separator. 15228case $0 in #(( 15229 *[\\/]* ) as_myself=$0 ;; 15230 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15231for as_dir in $PATH 15232do 15233 IFS=$as_save_IFS 15234 test -z "$as_dir" && as_dir=. 15235 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15236 done 15237IFS=$as_save_IFS 15238 15239 ;; 15240esac 15241# We did not find ourselves, most probably we were run as `sh COMMAND' 15242# in which case we are not to be found in the path. 15243if test "x$as_myself" = x; then 15244 as_myself=$0 15245fi 15246if test ! -f "$as_myself"; then 15247 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15248 exit 1 15249fi 15250 15251# Unset variables that we do not need and which cause bugs (e.g. in 15252# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15253# suppresses any "Segmentation fault" message there. '((' could 15254# trigger a bug in pdksh 5.2.14. 15255for as_var in BASH_ENV ENV MAIL MAILPATH 15256do eval test x\${$as_var+set} = xset \ 15257 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15258done 15259PS1='$ ' 15260PS2='> ' 15261PS4='+ ' 15262 15263# NLS nuisances. 15264LC_ALL=C 15265export LC_ALL 15266LANGUAGE=C 15267export LANGUAGE 15268 15269# CDPATH. 15270(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15271 15272 15273# as_fn_error STATUS ERROR [LINENO LOG_FD] 15274# ---------------------------------------- 15275# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15276# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15277# script with STATUS, using 1 if that was 0. 15278as_fn_error () 15279{ 15280 as_status=$1; test $as_status -eq 0 && as_status=1 15281 if test "$4"; then 15282 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15283 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15284 fi 15285 $as_echo "$as_me: error: $2" >&2 15286 as_fn_exit $as_status 15287} # as_fn_error 15288 15289 15290# as_fn_set_status STATUS 15291# ----------------------- 15292# Set $? to STATUS, without forking. 15293as_fn_set_status () 15294{ 15295 return $1 15296} # as_fn_set_status 15297 15298# as_fn_exit STATUS 15299# ----------------- 15300# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15301as_fn_exit () 15302{ 15303 set +e 15304 as_fn_set_status $1 15305 exit $1 15306} # as_fn_exit 15307 15308# as_fn_unset VAR 15309# --------------- 15310# Portably unset VAR. 15311as_fn_unset () 15312{ 15313 { eval $1=; unset $1;} 15314} 15315as_unset=as_fn_unset 15316# as_fn_append VAR VALUE 15317# ---------------------- 15318# Append the text in VALUE to the end of the definition contained in VAR. Take 15319# advantage of any shell optimizations that allow amortized linear growth over 15320# repeated appends, instead of the typical quadratic growth present in naive 15321# implementations. 15322if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15323 eval 'as_fn_append () 15324 { 15325 eval $1+=\$2 15326 }' 15327else 15328 as_fn_append () 15329 { 15330 eval $1=\$$1\$2 15331 } 15332fi # as_fn_append 15333 15334# as_fn_arith ARG... 15335# ------------------ 15336# Perform arithmetic evaluation on the ARGs, and store the result in the 15337# global $as_val. Take advantage of shells that can avoid forks. The arguments 15338# must be portable across $(()) and expr. 15339if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15340 eval 'as_fn_arith () 15341 { 15342 as_val=$(( $* )) 15343 }' 15344else 15345 as_fn_arith () 15346 { 15347 as_val=`expr "$@" || test $? -eq 1` 15348 } 15349fi # as_fn_arith 15350 15351 15352if expr a : '\(a\)' >/dev/null 2>&1 && 15353 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15354 as_expr=expr 15355else 15356 as_expr=false 15357fi 15358 15359if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15360 as_basename=basename 15361else 15362 as_basename=false 15363fi 15364 15365if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15366 as_dirname=dirname 15367else 15368 as_dirname=false 15369fi 15370 15371as_me=`$as_basename -- "$0" || 15372$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15373 X"$0" : 'X\(//\)$' \| \ 15374 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15375$as_echo X/"$0" | 15376 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15377 s//\1/ 15378 q 15379 } 15380 /^X\/\(\/\/\)$/{ 15381 s//\1/ 15382 q 15383 } 15384 /^X\/\(\/\).*/{ 15385 s//\1/ 15386 q 15387 } 15388 s/.*/./; q'` 15389 15390# Avoid depending upon Character Ranges. 15391as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15392as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15393as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15394as_cr_digits='0123456789' 15395as_cr_alnum=$as_cr_Letters$as_cr_digits 15396 15397ECHO_C= ECHO_N= ECHO_T= 15398case `echo -n x` in #((((( 15399-n*) 15400 case `echo 'xy\c'` in 15401 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15402 xy) ECHO_C='\c';; 15403 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15404 ECHO_T=' ';; 15405 esac;; 15406*) 15407 ECHO_N='-n';; 15408esac 15409 15410rm -f conf$$ conf$$.exe conf$$.file 15411if test -d conf$$.dir; then 15412 rm -f conf$$.dir/conf$$.file 15413else 15414 rm -f conf$$.dir 15415 mkdir conf$$.dir 2>/dev/null 15416fi 15417if (echo >conf$$.file) 2>/dev/null; then 15418 if ln -s conf$$.file conf$$ 2>/dev/null; then 15419 as_ln_s='ln -s' 15420 # ... but there are two gotchas: 15421 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15422 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15423 # In both cases, we have to default to `cp -p'. 15424 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15425 as_ln_s='cp -p' 15426 elif ln conf$$.file conf$$ 2>/dev/null; then 15427 as_ln_s=ln 15428 else 15429 as_ln_s='cp -p' 15430 fi 15431else 15432 as_ln_s='cp -p' 15433fi 15434rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15435rmdir conf$$.dir 2>/dev/null 15436 15437 15438# as_fn_mkdir_p 15439# ------------- 15440# Create "$as_dir" as a directory, including parents if necessary. 15441as_fn_mkdir_p () 15442{ 15443 15444 case $as_dir in #( 15445 -*) as_dir=./$as_dir;; 15446 esac 15447 test -d "$as_dir" || eval $as_mkdir_p || { 15448 as_dirs= 15449 while :; do 15450 case $as_dir in #( 15451 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15452 *) as_qdir=$as_dir;; 15453 esac 15454 as_dirs="'$as_qdir' $as_dirs" 15455 as_dir=`$as_dirname -- "$as_dir" || 15456$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15457 X"$as_dir" : 'X\(//\)[^/]' \| \ 15458 X"$as_dir" : 'X\(//\)$' \| \ 15459 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15460$as_echo X"$as_dir" | 15461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15462 s//\1/ 15463 q 15464 } 15465 /^X\(\/\/\)[^/].*/{ 15466 s//\1/ 15467 q 15468 } 15469 /^X\(\/\/\)$/{ 15470 s//\1/ 15471 q 15472 } 15473 /^X\(\/\).*/{ 15474 s//\1/ 15475 q 15476 } 15477 s/.*/./; q'` 15478 test -d "$as_dir" && break 15479 done 15480 test -z "$as_dirs" || eval "mkdir $as_dirs" 15481 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15482 15483 15484} # as_fn_mkdir_p 15485if mkdir -p . 2>/dev/null; then 15486 as_mkdir_p='mkdir -p "$as_dir"' 15487else 15488 test -d ./-p && rmdir ./-p 15489 as_mkdir_p=false 15490fi 15491 15492if test -x / >/dev/null 2>&1; then 15493 as_test_x='test -x' 15494else 15495 if ls -dL / >/dev/null 2>&1; then 15496 as_ls_L_option=L 15497 else 15498 as_ls_L_option= 15499 fi 15500 as_test_x=' 15501 eval sh -c '\'' 15502 if test -d "$1"; then 15503 test -d "$1/."; 15504 else 15505 case $1 in #( 15506 -*)set "./$1";; 15507 esac; 15508 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 15509 ???[sx]*):;;*)false;;esac;fi 15510 '\'' sh 15511 ' 15512fi 15513as_executable_p=$as_test_x 15514 15515# Sed expression to map a string onto a valid CPP name. 15516as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15517 15518# Sed expression to map a string onto a valid variable name. 15519as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15520 15521 15522exec 6>&1 15523## ----------------------------------- ## 15524## Main body of $CONFIG_STATUS script. ## 15525## ----------------------------------- ## 15526_ASEOF 15527test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15528 15529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15530# Save the log message, to keep $0 and so on meaningful, and to 15531# report actual input values of CONFIG_FILES etc. instead of their 15532# values after options handling. 15533ac_log=" 15534This file was extended by courier $as_me 0.65.3, which was 15535generated by GNU Autoconf 2.66. Invocation command line was 15536 15537 CONFIG_FILES = $CONFIG_FILES 15538 CONFIG_HEADERS = $CONFIG_HEADERS 15539 CONFIG_LINKS = $CONFIG_LINKS 15540 CONFIG_COMMANDS = $CONFIG_COMMANDS 15541 $ $0 $@ 15542 15543on `(hostname || uname -n) 2>/dev/null | sed 1q` 15544" 15545 15546_ACEOF 15547 15548case $ac_config_files in *" 15549"*) set x $ac_config_files; shift; ac_config_files=$*;; 15550esac 15551 15552 15553 15554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15555# Files that config.status was made for. 15556config_files="$ac_config_files" 15557config_commands="$ac_config_commands" 15558 15559_ACEOF 15560 15561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15562ac_cs_usage="\ 15563\`$as_me' instantiates files and other configuration actions 15564from templates according to the current configuration. Unless the files 15565and actions are specified as TAGs, all are instantiated by default. 15566 15567Usage: $0 [OPTION]... [TAG]... 15568 15569 -h, --help print this help, then exit 15570 -V, --version print version number and configuration settings, then exit 15571 --config print configuration, then exit 15572 -q, --quiet, --silent 15573 do not print progress messages 15574 -d, --debug don't remove temporary files 15575 --recheck update $as_me by reconfiguring in the same conditions 15576 --file=FILE[:TEMPLATE] 15577 instantiate the configuration file FILE 15578 15579Configuration files: 15580$config_files 15581 15582Configuration commands: 15583$config_commands 15584 15585Report bugs to <courier-users@lists.sourceforge.net>." 15586 15587_ACEOF 15588cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15589ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15590ac_cs_version="\\ 15591courier config.status 0.65.3 15592configured by $0, generated by GNU Autoconf 2.66, 15593 with options \\"\$ac_cs_config\\" 15594 15595Copyright (C) 2010 Free Software Foundation, Inc. 15596This config.status script is free software; the Free Software Foundation 15597gives unlimited permission to copy, distribute and modify it." 15598 15599ac_pwd='$ac_pwd' 15600srcdir='$srcdir' 15601INSTALL='$INSTALL' 15602MKDIR_P='$MKDIR_P' 15603AWK='$AWK' 15604test -n "\$AWK" || AWK=awk 15605_ACEOF 15606 15607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15608# The default lists apply if the user does not specify any file. 15609ac_need_defaults=: 15610while test $# != 0 15611do 15612 case $1 in 15613 --*=*) 15614 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15615 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15616 ac_shift=: 15617 ;; 15618 *) 15619 ac_option=$1 15620 ac_optarg=$2 15621 ac_shift=shift 15622 ;; 15623 esac 15624 15625 case $ac_option in 15626 # Handling of the options. 15627 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15628 ac_cs_recheck=: ;; 15629 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15630 $as_echo "$ac_cs_version"; exit ;; 15631 --config | --confi | --conf | --con | --co | --c ) 15632 $as_echo "$ac_cs_config"; exit ;; 15633 --debug | --debu | --deb | --de | --d | -d ) 15634 debug=: ;; 15635 --file | --fil | --fi | --f ) 15636 $ac_shift 15637 case $ac_optarg in 15638 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15639 esac 15640 as_fn_append CONFIG_FILES " '$ac_optarg'" 15641 ac_need_defaults=false;; 15642 --he | --h | --help | --hel | -h ) 15643 $as_echo "$ac_cs_usage"; exit ;; 15644 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15645 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15646 ac_cs_silent=: ;; 15647 15648 # This is an error. 15649 -*) as_fn_error $? "unrecognized option: \`$1' 15650Try \`$0 --help' for more information." ;; 15651 15652 *) as_fn_append ac_config_targets " $1" 15653 ac_need_defaults=false ;; 15654 15655 esac 15656 shift 15657done 15658 15659ac_configure_extra_args= 15660 15661if $ac_cs_silent; then 15662 exec 6>/dev/null 15663 ac_configure_extra_args="$ac_configure_extra_args --silent" 15664fi 15665 15666_ACEOF 15667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15668if \$ac_cs_recheck; then 15669 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15670 shift 15671 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15672 CONFIG_SHELL='$SHELL' 15673 export CONFIG_SHELL 15674 exec "\$@" 15675fi 15676 15677_ACEOF 15678cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15679exec 5>>config.log 15680{ 15681 echo 15682 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15683## Running $as_me. ## 15684_ASBOX 15685 $as_echo "$ac_log" 15686} >&5 15687 15688_ACEOF 15689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15690# 15691# INIT-COMMANDS 15692# 15693AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 15694 15695 15696# The HP-UX ksh and POSIX shell print the target directory to stdout 15697# if CDPATH is set. 15698(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15699 15700sed_quote_subst='$sed_quote_subst' 15701double_quote_subst='$double_quote_subst' 15702delay_variable_subst='$delay_variable_subst' 15703macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 15704macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 15705enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 15706enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 15707pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 15708enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 15709SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 15710ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 15711host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 15712host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 15713host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 15714build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 15715build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 15716build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 15717SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 15718Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 15719GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 15720EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 15721FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 15722LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 15723NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 15724LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 15725max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 15726ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 15727exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 15728lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 15729lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 15730lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 15731reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 15732reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 15733OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 15734deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 15735file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 15736AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 15737AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 15738STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 15739RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 15740old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15741old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15742old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 15743lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 15744CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 15745CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 15746compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 15747GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 15748lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 15749lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 15750lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 15751lt_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"`' 15752objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 15753MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 15754lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 15755lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 15756lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 15757lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 15758lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 15759need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 15760DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 15761NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 15762LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 15763OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 15764OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 15765libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 15766shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 15767extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15768archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 15769enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 15770export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 15771whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 15772compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 15773old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 15774old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 15775archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 15776archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15777module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 15778module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 15779with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 15780allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 15781no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 15782hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 15783hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 15784hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 15785hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 15786hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 15787hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 15788hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 15789hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 15790inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 15791link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 15792fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 15793always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 15794export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 15795exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 15796include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 15797prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 15798file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 15799variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 15800need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 15801need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 15802version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 15803runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 15804shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 15805shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 15806libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 15807library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 15808soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 15809install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 15810postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 15811postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 15812finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 15813finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 15814hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 15815sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 15816sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 15817hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 15818enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 15819enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 15820enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 15821old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 15822striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 15823compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 15824predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 15825postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 15826predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 15827postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 15828compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 15829LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 15830reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 15831reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15832old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15833compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 15834GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 15835lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 15836lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 15837lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 15838lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 15839lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 15840archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 15841enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 15842export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15843whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15844compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 15845old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15846old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15847archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15848archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15849module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15850module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15851with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 15852allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 15853no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 15854hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 15855hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 15856hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 15857hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 15858hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 15859hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 15860hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 15861hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 15862inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 15863link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 15864fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' 15865always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 15866export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15867exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 15868include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 15869prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 15870file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 15871hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 15872compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 15873predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 15874postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 15875predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 15876postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 15877compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 15878 15879LTCC='$LTCC' 15880LTCFLAGS='$LTCFLAGS' 15881compiler='$compiler_DEFAULT' 15882 15883# A function that is used when there is no print builtin or printf. 15884func_fallback_echo () 15885{ 15886 eval 'cat <<_LTECHO_EOF 15887\$1 15888_LTECHO_EOF' 15889} 15890 15891# Quote evaled strings. 15892for var in SHELL \ 15893ECHO \ 15894SED \ 15895GREP \ 15896EGREP \ 15897FGREP \ 15898LD \ 15899NM \ 15900LN_S \ 15901lt_SP2NL \ 15902lt_NL2SP \ 15903reload_flag \ 15904OBJDUMP \ 15905deplibs_check_method \ 15906file_magic_cmd \ 15907AR \ 15908AR_FLAGS \ 15909STRIP \ 15910RANLIB \ 15911CC \ 15912CFLAGS \ 15913compiler \ 15914lt_cv_sys_global_symbol_pipe \ 15915lt_cv_sys_global_symbol_to_cdecl \ 15916lt_cv_sys_global_symbol_to_c_name_address \ 15917lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 15918lt_prog_compiler_no_builtin_flag \ 15919lt_prog_compiler_wl \ 15920lt_prog_compiler_pic \ 15921lt_prog_compiler_static \ 15922lt_cv_prog_compiler_c_o \ 15923need_locks \ 15924DSYMUTIL \ 15925NMEDIT \ 15926LIPO \ 15927OTOOL \ 15928OTOOL64 \ 15929shrext_cmds \ 15930export_dynamic_flag_spec \ 15931whole_archive_flag_spec \ 15932compiler_needs_object \ 15933with_gnu_ld \ 15934allow_undefined_flag \ 15935no_undefined_flag \ 15936hardcode_libdir_flag_spec \ 15937hardcode_libdir_flag_spec_ld \ 15938hardcode_libdir_separator \ 15939fix_srcfile_path \ 15940exclude_expsyms \ 15941include_expsyms \ 15942file_list_spec \ 15943variables_saved_for_relink \ 15944libname_spec \ 15945library_names_spec \ 15946soname_spec \ 15947install_override_mode \ 15948finish_eval \ 15949old_striplib \ 15950striplib \ 15951compiler_lib_search_dirs \ 15952predep_objects \ 15953postdep_objects \ 15954predeps \ 15955postdeps \ 15956compiler_lib_search_path \ 15957LD_CXX \ 15958reload_flag_CXX \ 15959compiler_CXX \ 15960lt_prog_compiler_no_builtin_flag_CXX \ 15961lt_prog_compiler_wl_CXX \ 15962lt_prog_compiler_pic_CXX \ 15963lt_prog_compiler_static_CXX \ 15964lt_cv_prog_compiler_c_o_CXX \ 15965export_dynamic_flag_spec_CXX \ 15966whole_archive_flag_spec_CXX \ 15967compiler_needs_object_CXX \ 15968with_gnu_ld_CXX \ 15969allow_undefined_flag_CXX \ 15970no_undefined_flag_CXX \ 15971hardcode_libdir_flag_spec_CXX \ 15972hardcode_libdir_flag_spec_ld_CXX \ 15973hardcode_libdir_separator_CXX \ 15974fix_srcfile_path_CXX \ 15975exclude_expsyms_CXX \ 15976include_expsyms_CXX \ 15977file_list_spec_CXX \ 15978compiler_lib_search_dirs_CXX \ 15979predep_objects_CXX \ 15980postdep_objects_CXX \ 15981predeps_CXX \ 15982postdeps_CXX \ 15983compiler_lib_search_path_CXX; do 15984 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 15985 *[\\\\\\\`\\"\\\$]*) 15986 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 15987 ;; 15988 *) 15989 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 15990 ;; 15991 esac 15992done 15993 15994# Double-quote double-evaled strings. 15995for var in reload_cmds \ 15996old_postinstall_cmds \ 15997old_postuninstall_cmds \ 15998old_archive_cmds \ 15999extract_expsyms_cmds \ 16000old_archive_from_new_cmds \ 16001old_archive_from_expsyms_cmds \ 16002archive_cmds \ 16003archive_expsym_cmds \ 16004module_cmds \ 16005module_expsym_cmds \ 16006export_symbols_cmds \ 16007prelink_cmds \ 16008postinstall_cmds \ 16009postuninstall_cmds \ 16010finish_cmds \ 16011sys_lib_search_path_spec \ 16012sys_lib_dlsearch_path_spec \ 16013reload_cmds_CXX \ 16014old_archive_cmds_CXX \ 16015old_archive_from_new_cmds_CXX \ 16016old_archive_from_expsyms_cmds_CXX \ 16017archive_cmds_CXX \ 16018archive_expsym_cmds_CXX \ 16019module_cmds_CXX \ 16020module_expsym_cmds_CXX \ 16021export_symbols_cmds_CXX \ 16022prelink_cmds_CXX; do 16023 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 16024 *[\\\\\\\`\\"\\\$]*) 16025 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 16026 ;; 16027 *) 16028 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 16029 ;; 16030 esac 16031done 16032 16033ac_aux_dir='$ac_aux_dir' 16034xsi_shell='$xsi_shell' 16035lt_shell_append='$lt_shell_append' 16036 16037# See if we are running on zsh, and set the options which allow our 16038# commands through without removal of \ escapes INIT. 16039if test -n "\${ZSH_VERSION+set}" ; then 16040 setopt NO_GLOB_SUBST 16041fi 16042 16043 16044 PACKAGE='$PACKAGE' 16045 VERSION='$VERSION' 16046 TIMESTAMP='$TIMESTAMP' 16047 RM='$RM' 16048 ofile='$ofile' 16049 16050 16051 16052 16053 16054 16055_ACEOF 16056 16057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16058 16059# Handling of arguments. 16060for ac_config_target in $ac_config_targets 16061do 16062 case $ac_config_target in 16063 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 16064 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 16065 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 16066 "courier.spec") CONFIG_FILES="$CONFIG_FILES courier.spec" ;; 16067 "courier.lpspec") CONFIG_FILES="$CONFIG_FILES courier.lpspec" ;; 16068 "dbobj.h") CONFIG_FILES="$CONFIG_FILES dbobj.h" ;; 16069 "dbobj.config") CONFIG_FILES="$CONFIG_FILES dbobj.config" ;; 16070 "courier.sysvinit") CONFIG_FILES="$CONFIG_FILES courier.sysvinit" ;; 16071 16072 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16073 esac 16074done 16075 16076 16077# If the user did not use the arguments to specify the items to instantiate, 16078# then the envvar interface is used. Set only those that are not. 16079# We use the long form for the default assignment because of an extremely 16080# bizarre bug on SunOS 4.1.3. 16081if $ac_need_defaults; then 16082 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16083 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 16084fi 16085 16086# Have a temporary directory for convenience. Make it in the build tree 16087# simply because there is no reason against having it here, and in addition, 16088# creating and moving files from /tmp can sometimes cause problems. 16089# Hook for its removal unless debugging. 16090# Note that there is a small window in which the directory will not be cleaned: 16091# after its creation but before its name has been assigned to `$tmp'. 16092$debug || 16093{ 16094 tmp= 16095 trap 'exit_status=$? 16096 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 16097' 0 16098 trap 'as_fn_exit 1' 1 2 13 15 16099} 16100# Create a (secure) tmp directory for tmp files. 16101 16102{ 16103 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16104 test -n "$tmp" && test -d "$tmp" 16105} || 16106{ 16107 tmp=./conf$$-$RANDOM 16108 (umask 077 && mkdir "$tmp") 16109} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16110 16111# Set up the scripts for CONFIG_FILES section. 16112# No need to generate them if there are no CONFIG_FILES. 16113# This happens for instance with `./config.status config.h'. 16114if test -n "$CONFIG_FILES"; then 16115 16116 16117ac_cr=`echo X | tr X '\015'` 16118# On cygwin, bash can eat \r inside `` if the user requested igncr. 16119# But we know of no other shell where ac_cr would be empty at this 16120# point, so we can use a bashism as a fallback. 16121if test "x$ac_cr" = x; then 16122 eval ac_cr=\$\'\\r\' 16123fi 16124ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16125if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16126 ac_cs_awk_cr='\\r' 16127else 16128 ac_cs_awk_cr=$ac_cr 16129fi 16130 16131echo 'BEGIN {' >"$tmp/subs1.awk" && 16132_ACEOF 16133 16134 16135{ 16136 echo "cat >conf$$subs.awk <<_ACEOF" && 16137 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16138 echo "_ACEOF" 16139} >conf$$subs.sh || 16140 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16141ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16142ac_delim='%!_!# ' 16143for ac_last_try in false false false false false :; do 16144 . ./conf$$subs.sh || 16145 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16146 16147 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16148 if test $ac_delim_n = $ac_delim_num; then 16149 break 16150 elif $ac_last_try; then 16151 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16152 else 16153 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16154 fi 16155done 16156rm -f conf$$subs.sh 16157 16158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16159cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 16160_ACEOF 16161sed -n ' 16162h 16163s/^/S["/; s/!.*/"]=/ 16164p 16165g 16166s/^[^!]*!// 16167:repl 16168t repl 16169s/'"$ac_delim"'$// 16170t delim 16171:nl 16172h 16173s/\(.\{148\}\)..*/\1/ 16174t more1 16175s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16176p 16177n 16178b repl 16179:more1 16180s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16181p 16182g 16183s/.\{148\}// 16184t nl 16185:delim 16186h 16187s/\(.\{148\}\)..*/\1/ 16188t more2 16189s/["\\]/\\&/g; s/^/"/; s/$/"/ 16190p 16191b 16192:more2 16193s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16194p 16195g 16196s/.\{148\}// 16197t delim 16198' <conf$$subs.awk | sed ' 16199/^[^""]/{ 16200 N 16201 s/\n// 16202} 16203' >>$CONFIG_STATUS || ac_write_fail=1 16204rm -f conf$$subs.awk 16205cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16206_ACAWK 16207cat >>"\$tmp/subs1.awk" <<_ACAWK && 16208 for (key in S) S_is_set[key] = 1 16209 FS = "" 16210 16211} 16212{ 16213 line = $ 0 16214 nfields = split(line, field, "@") 16215 substed = 0 16216 len = length(field[1]) 16217 for (i = 2; i < nfields; i++) { 16218 key = field[i] 16219 keylen = length(key) 16220 if (S_is_set[key]) { 16221 value = S[key] 16222 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16223 len += length(value) + length(field[++i]) 16224 substed = 1 16225 } else 16226 len += 1 + keylen 16227 } 16228 16229 print line 16230} 16231 16232_ACAWK 16233_ACEOF 16234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16235if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16236 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16237else 16238 cat 16239fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 16240 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16241_ACEOF 16242 16243# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16244# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16245# trailing colons and then remove the whole line if VPATH becomes empty 16246# (actually we leave an empty line to preserve line numbers). 16247if test "x$srcdir" = x.; then 16248 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16249h 16250s/// 16251s/^/:/ 16252s/[ ]*$/:/ 16253s/:\$(srcdir):/:/g 16254s/:\${srcdir}:/:/g 16255s/:@srcdir@:/:/g 16256s/^:*// 16257s/:*$// 16258x 16259s/\(=[ ]*\).*/\1/ 16260G 16261s/\n// 16262s/^[^=]*=[ ]*$// 16263}' 16264fi 16265 16266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16267fi # test -n "$CONFIG_FILES" 16268 16269 16270eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 16271shift 16272for ac_tag 16273do 16274 case $ac_tag in 16275 :[FHLC]) ac_mode=$ac_tag; continue;; 16276 esac 16277 case $ac_mode$ac_tag in 16278 :[FHL]*:*);; 16279 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16280 :[FH]-) ac_tag=-:-;; 16281 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16282 esac 16283 ac_save_IFS=$IFS 16284 IFS=: 16285 set x $ac_tag 16286 IFS=$ac_save_IFS 16287 shift 16288 ac_file=$1 16289 shift 16290 16291 case $ac_mode in 16292 :L) ac_source=$1;; 16293 :[FH]) 16294 ac_file_inputs= 16295 for ac_f 16296 do 16297 case $ac_f in 16298 -) ac_f="$tmp/stdin";; 16299 *) # Look for the file first in the build tree, then in the source tree 16300 # (if the path is not absolute). The absolute path cannot be DOS-style, 16301 # because $ac_f cannot contain `:'. 16302 test -f "$ac_f" || 16303 case $ac_f in 16304 [\\/$]*) false;; 16305 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16306 esac || 16307 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16308 esac 16309 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16310 as_fn_append ac_file_inputs " '$ac_f'" 16311 done 16312 16313 # Let's still pretend it is `configure' which instantiates (i.e., don't 16314 # use $as_me), people would be surprised to read: 16315 # /* config.h. Generated by config.status. */ 16316 configure_input='Generated from '` 16317 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16318 `' by configure.' 16319 if test x"$ac_file" != x-; then 16320 configure_input="$ac_file. $configure_input" 16321 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16322$as_echo "$as_me: creating $ac_file" >&6;} 16323 fi 16324 # Neutralize special characters interpreted by sed in replacement strings. 16325 case $configure_input in #( 16326 *\&* | *\|* | *\\* ) 16327 ac_sed_conf_input=`$as_echo "$configure_input" | 16328 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16329 *) ac_sed_conf_input=$configure_input;; 16330 esac 16331 16332 case $ac_tag in 16333 *:-:* | *:-) cat >"$tmp/stdin" \ 16334 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16335 esac 16336 ;; 16337 esac 16338 16339 ac_dir=`$as_dirname -- "$ac_file" || 16340$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16341 X"$ac_file" : 'X\(//\)[^/]' \| \ 16342 X"$ac_file" : 'X\(//\)$' \| \ 16343 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16344$as_echo X"$ac_file" | 16345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16346 s//\1/ 16347 q 16348 } 16349 /^X\(\/\/\)[^/].*/{ 16350 s//\1/ 16351 q 16352 } 16353 /^X\(\/\/\)$/{ 16354 s//\1/ 16355 q 16356 } 16357 /^X\(\/\).*/{ 16358 s//\1/ 16359 q 16360 } 16361 s/.*/./; q'` 16362 as_dir="$ac_dir"; as_fn_mkdir_p 16363 ac_builddir=. 16364 16365case "$ac_dir" in 16366.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16367*) 16368 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16369 # A ".." for each directory in $ac_dir_suffix. 16370 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16371 case $ac_top_builddir_sub in 16372 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16373 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16374 esac ;; 16375esac 16376ac_abs_top_builddir=$ac_pwd 16377ac_abs_builddir=$ac_pwd$ac_dir_suffix 16378# for backward compatibility: 16379ac_top_builddir=$ac_top_build_prefix 16380 16381case $srcdir in 16382 .) # We are building in place. 16383 ac_srcdir=. 16384 ac_top_srcdir=$ac_top_builddir_sub 16385 ac_abs_top_srcdir=$ac_pwd ;; 16386 [\\/]* | ?:[\\/]* ) # Absolute name. 16387 ac_srcdir=$srcdir$ac_dir_suffix; 16388 ac_top_srcdir=$srcdir 16389 ac_abs_top_srcdir=$srcdir ;; 16390 *) # Relative name. 16391 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16392 ac_top_srcdir=$ac_top_build_prefix$srcdir 16393 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16394esac 16395ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16396 16397 16398 case $ac_mode in 16399 :F) 16400 # 16401 # CONFIG_FILE 16402 # 16403 16404 case $INSTALL in 16405 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16406 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16407 esac 16408 ac_MKDIR_P=$MKDIR_P 16409 case $MKDIR_P in 16410 [\\/$]* | ?:[\\/]* ) ;; 16411 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16412 esac 16413_ACEOF 16414 16415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16416# If the template does not know about datarootdir, expand it. 16417# FIXME: This hack should be removed a few years after 2.60. 16418ac_datarootdir_hack=; ac_datarootdir_seen= 16419ac_sed_dataroot=' 16420/datarootdir/ { 16421 p 16422 q 16423} 16424/@datadir@/p 16425/@docdir@/p 16426/@infodir@/p 16427/@localedir@/p 16428/@mandir@/p' 16429case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16430*datarootdir*) ac_datarootdir_seen=yes;; 16431*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16433$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16434_ACEOF 16435cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16436 ac_datarootdir_hack=' 16437 s&@datadir@&$datadir&g 16438 s&@docdir@&$docdir&g 16439 s&@infodir@&$infodir&g 16440 s&@localedir@&$localedir&g 16441 s&@mandir@&$mandir&g 16442 s&\\\${datarootdir}&$datarootdir&g' ;; 16443esac 16444_ACEOF 16445 16446# Neutralize VPATH when `$srcdir' = `.'. 16447# Shell code in configure.ac might set extrasub. 16448# FIXME: do we really want to maintain this feature? 16449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16450ac_sed_extra="$ac_vpsub 16451$extrasub 16452_ACEOF 16453cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16454:t 16455/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16456s|@configure_input@|$ac_sed_conf_input|;t t 16457s&@top_builddir@&$ac_top_builddir_sub&;t t 16458s&@top_build_prefix@&$ac_top_build_prefix&;t t 16459s&@srcdir@&$ac_srcdir&;t t 16460s&@abs_srcdir@&$ac_abs_srcdir&;t t 16461s&@top_srcdir@&$ac_top_srcdir&;t t 16462s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16463s&@builddir@&$ac_builddir&;t t 16464s&@abs_builddir@&$ac_abs_builddir&;t t 16465s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16466s&@INSTALL@&$ac_INSTALL&;t t 16467s&@MKDIR_P@&$ac_MKDIR_P&;t t 16468$ac_datarootdir_hack 16469" 16470eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 16471 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16472 16473test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16474 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 16475 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 16476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16477which seems to be undefined. Please make sure it is defined" >&5 16478$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16479which seems to be undefined. Please make sure it is defined" >&2;} 16480 16481 rm -f "$tmp/stdin" 16482 case $ac_file in 16483 -) cat "$tmp/out" && rm -f "$tmp/out";; 16484 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 16485 esac \ 16486 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16487 ;; 16488 16489 16490 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 16491$as_echo "$as_me: executing $ac_file commands" >&6;} 16492 ;; 16493 esac 16494 16495 16496 case $ac_file$ac_mode in 16497 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 16498 # Autoconf 2.62 quotes --file arguments for eval, but not when files 16499 # are listed without --file. Let's play safe and only enable the eval 16500 # if we detect the quoting. 16501 case $CONFIG_FILES in 16502 *\'*) eval set x "$CONFIG_FILES" ;; 16503 *) set x $CONFIG_FILES ;; 16504 esac 16505 shift 16506 for mf 16507 do 16508 # Strip MF so we end up with the name of the file. 16509 mf=`echo "$mf" | sed -e 's/:.*$//'` 16510 # Check whether this is an Automake generated Makefile or not. 16511 # We used to match only the files named `Makefile.in', but 16512 # some people rename them; so instead we look at the file content. 16513 # Grep'ing the first line is not enough: some people post-process 16514 # each Makefile.in and add a new line on top of each file to say so. 16515 # Grep'ing the whole file is not good either: AIX grep has a line 16516 # limit of 2048, but all sed's we know have understand at least 4000. 16517 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 16518 dirpart=`$as_dirname -- "$mf" || 16519$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16520 X"$mf" : 'X\(//\)[^/]' \| \ 16521 X"$mf" : 'X\(//\)$' \| \ 16522 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 16523$as_echo X"$mf" | 16524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16525 s//\1/ 16526 q 16527 } 16528 /^X\(\/\/\)[^/].*/{ 16529 s//\1/ 16530 q 16531 } 16532 /^X\(\/\/\)$/{ 16533 s//\1/ 16534 q 16535 } 16536 /^X\(\/\).*/{ 16537 s//\1/ 16538 q 16539 } 16540 s/.*/./; q'` 16541 else 16542 continue 16543 fi 16544 # Extract the definition of DEPDIR, am__include, and am__quote 16545 # from the Makefile without running `make'. 16546 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 16547 test -z "$DEPDIR" && continue 16548 am__include=`sed -n 's/^am__include = //p' < "$mf"` 16549 test -z "am__include" && continue 16550 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 16551 # When using ansi2knr, U may be empty or an underscore; expand it 16552 U=`sed -n 's/^U = //p' < "$mf"` 16553 # Find all dependency output files, they are included files with 16554 # $(DEPDIR) in their names. We invoke sed twice because it is the 16555 # simplest approach to changing $(DEPDIR) to its actual value in the 16556 # expansion. 16557 for file in `sed -n " 16558 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 16559 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 16560 # Make sure the directory exists. 16561 test -f "$dirpart/$file" && continue 16562 fdir=`$as_dirname -- "$file" || 16563$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16564 X"$file" : 'X\(//\)[^/]' \| \ 16565 X"$file" : 'X\(//\)$' \| \ 16566 X"$file" : 'X\(/\)' \| . 2>/dev/null || 16567$as_echo X"$file" | 16568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16569 s//\1/ 16570 q 16571 } 16572 /^X\(\/\/\)[^/].*/{ 16573 s//\1/ 16574 q 16575 } 16576 /^X\(\/\/\)$/{ 16577 s//\1/ 16578 q 16579 } 16580 /^X\(\/\).*/{ 16581 s//\1/ 16582 q 16583 } 16584 s/.*/./; q'` 16585 as_dir=$dirpart/$fdir; as_fn_mkdir_p 16586 # echo "creating $dirpart/$file" 16587 echo '# dummy' > "$dirpart/$file" 16588 done 16589 done 16590} 16591 ;; 16592 "libtool":C) 16593 16594 # See if we are running on zsh, and set the options which allow our 16595 # commands through without removal of \ escapes. 16596 if test -n "${ZSH_VERSION+set}" ; then 16597 setopt NO_GLOB_SUBST 16598 fi 16599 16600 cfgfile="${ofile}T" 16601 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 16602 $RM "$cfgfile" 16603 16604 cat <<_LT_EOF >> "$cfgfile" 16605#! $SHELL 16606 16607# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 16608# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 16609# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 16610# NOTE: Changes made to this file will be lost: look at ltmain.sh. 16611# 16612# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 16613# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 16614# Inc. 16615# Written by Gordon Matzigkeit, 1996 16616# 16617# This file is part of GNU Libtool. 16618# 16619# GNU Libtool is free software; you can redistribute it and/or 16620# modify it under the terms of the GNU General Public License as 16621# published by the Free Software Foundation; either version 2 of 16622# the License, or (at your option) any later version. 16623# 16624# As a special exception to the GNU General Public License, 16625# if you distribute this file as part of a program or library that 16626# is built using GNU Libtool, you may include this file under the 16627# same distribution terms that you use for the rest of that program. 16628# 16629# GNU Libtool is distributed in the hope that it will be useful, 16630# but WITHOUT ANY WARRANTY; without even the implied warranty of 16631# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16632# GNU General Public License for more details. 16633# 16634# You should have received a copy of the GNU General Public License 16635# along with GNU Libtool; see the file COPYING. If not, a copy 16636# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 16637# obtained by writing to the Free Software Foundation, Inc., 16638# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16639 16640 16641# The names of the tagged configurations supported by this script. 16642available_tags="CXX " 16643 16644# ### BEGIN LIBTOOL CONFIG 16645 16646# Which release of libtool.m4 was used? 16647macro_version=$macro_version 16648macro_revision=$macro_revision 16649 16650# Whether or not to build shared libraries. 16651build_libtool_libs=$enable_shared 16652 16653# Whether or not to build static libraries. 16654build_old_libs=$enable_static 16655 16656# What type of objects to build. 16657pic_mode=$pic_mode 16658 16659# Whether or not to optimize for fast installation. 16660fast_install=$enable_fast_install 16661 16662# Shell to use when invoking shell scripts. 16663SHELL=$lt_SHELL 16664 16665# An echo program that protects backslashes. 16666ECHO=$lt_ECHO 16667 16668# The host system. 16669host_alias=$host_alias 16670host=$host 16671host_os=$host_os 16672 16673# The build system. 16674build_alias=$build_alias 16675build=$build 16676build_os=$build_os 16677 16678# A sed program that does not truncate output. 16679SED=$lt_SED 16680 16681# Sed that helps us avoid accidentally triggering echo(1) options like -n. 16682Xsed="\$SED -e 1s/^X//" 16683 16684# A grep program that handles long lines. 16685GREP=$lt_GREP 16686 16687# An ERE matcher. 16688EGREP=$lt_EGREP 16689 16690# A literal string matcher. 16691FGREP=$lt_FGREP 16692 16693# A BSD- or MS-compatible name lister. 16694NM=$lt_NM 16695 16696# Whether we need soft or hard links. 16697LN_S=$lt_LN_S 16698 16699# What is the maximum length of a command? 16700max_cmd_len=$max_cmd_len 16701 16702# Object file suffix (normally "o"). 16703objext=$ac_objext 16704 16705# Executable file suffix (normally ""). 16706exeext=$exeext 16707 16708# whether the shell understands "unset". 16709lt_unset=$lt_unset 16710 16711# turn spaces into newlines. 16712SP2NL=$lt_lt_SP2NL 16713 16714# turn newlines into spaces. 16715NL2SP=$lt_lt_NL2SP 16716 16717# An object symbol dumper. 16718OBJDUMP=$lt_OBJDUMP 16719 16720# Method to check whether dependent libraries are shared objects. 16721deplibs_check_method=$lt_deplibs_check_method 16722 16723# Command to use when deplibs_check_method == "file_magic". 16724file_magic_cmd=$lt_file_magic_cmd 16725 16726# The archiver. 16727AR=$lt_AR 16728AR_FLAGS=$lt_AR_FLAGS 16729 16730# A symbol stripping program. 16731STRIP=$lt_STRIP 16732 16733# Commands used to install an old-style archive. 16734RANLIB=$lt_RANLIB 16735old_postinstall_cmds=$lt_old_postinstall_cmds 16736old_postuninstall_cmds=$lt_old_postuninstall_cmds 16737 16738# Whether to use a lock for old archive extraction. 16739lock_old_archive_extraction=$lock_old_archive_extraction 16740 16741# A C compiler. 16742LTCC=$lt_CC 16743 16744# LTCC compiler flags. 16745LTCFLAGS=$lt_CFLAGS 16746 16747# Take the output of nm and produce a listing of raw symbols and C names. 16748global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 16749 16750# Transform the output of nm in a proper C declaration. 16751global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 16752 16753# Transform the output of nm in a C name address pair. 16754global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 16755 16756# Transform the output of nm in a C name address pair when lib prefix is needed. 16757global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 16758 16759# The name of the directory that contains temporary libtool files. 16760objdir=$objdir 16761 16762# Used to examine libraries when file_magic_cmd begins with "file". 16763MAGIC_CMD=$MAGIC_CMD 16764 16765# Must we lock files when doing compilation? 16766need_locks=$lt_need_locks 16767 16768# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 16769DSYMUTIL=$lt_DSYMUTIL 16770 16771# Tool to change global to local symbols on Mac OS X. 16772NMEDIT=$lt_NMEDIT 16773 16774# Tool to manipulate fat objects and archives on Mac OS X. 16775LIPO=$lt_LIPO 16776 16777# ldd/readelf like tool for Mach-O binaries on Mac OS X. 16778OTOOL=$lt_OTOOL 16779 16780# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 16781OTOOL64=$lt_OTOOL64 16782 16783# Old archive suffix (normally "a"). 16784libext=$libext 16785 16786# Shared library suffix (normally ".so"). 16787shrext_cmds=$lt_shrext_cmds 16788 16789# The commands to extract the exported symbol list from a shared archive. 16790extract_expsyms_cmds=$lt_extract_expsyms_cmds 16791 16792# Variables whose values should be saved in libtool wrapper scripts and 16793# restored at link time. 16794variables_saved_for_relink=$lt_variables_saved_for_relink 16795 16796# Do we need the "lib" prefix for modules? 16797need_lib_prefix=$need_lib_prefix 16798 16799# Do we need a version for libraries? 16800need_version=$need_version 16801 16802# Library versioning type. 16803version_type=$version_type 16804 16805# Shared library runtime path variable. 16806runpath_var=$runpath_var 16807 16808# Shared library path variable. 16809shlibpath_var=$shlibpath_var 16810 16811# Is shlibpath searched before the hard-coded library search path? 16812shlibpath_overrides_runpath=$shlibpath_overrides_runpath 16813 16814# Format of library name prefix. 16815libname_spec=$lt_libname_spec 16816 16817# List of archive names. First name is the real one, the rest are links. 16818# The last name is the one that the linker finds with -lNAME 16819library_names_spec=$lt_library_names_spec 16820 16821# The coded name of the library, if different from the real name. 16822soname_spec=$lt_soname_spec 16823 16824# Permission mode override for installation of shared libraries. 16825install_override_mode=$lt_install_override_mode 16826 16827# Command to use after installation of a shared archive. 16828postinstall_cmds=$lt_postinstall_cmds 16829 16830# Command to use after uninstallation of a shared archive. 16831postuninstall_cmds=$lt_postuninstall_cmds 16832 16833# Commands used to finish a libtool library installation in a directory. 16834finish_cmds=$lt_finish_cmds 16835 16836# As "finish_cmds", except a single script fragment to be evaled but 16837# not shown. 16838finish_eval=$lt_finish_eval 16839 16840# Whether we should hardcode library paths into libraries. 16841hardcode_into_libs=$hardcode_into_libs 16842 16843# Compile-time system search path for libraries. 16844sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16845 16846# Run-time system search path for libraries. 16847sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16848 16849# Whether dlopen is supported. 16850dlopen_support=$enable_dlopen 16851 16852# Whether dlopen of programs is supported. 16853dlopen_self=$enable_dlopen_self 16854 16855# Whether dlopen of statically linked programs is supported. 16856dlopen_self_static=$enable_dlopen_self_static 16857 16858# Commands to strip libraries. 16859old_striplib=$lt_old_striplib 16860striplib=$lt_striplib 16861 16862 16863# The linker used to build libraries. 16864LD=$lt_LD 16865 16866# How to create reloadable object files. 16867reload_flag=$lt_reload_flag 16868reload_cmds=$lt_reload_cmds 16869 16870# Commands used to build an old-style archive. 16871old_archive_cmds=$lt_old_archive_cmds 16872 16873# A language specific compiler. 16874CC=$lt_compiler 16875 16876# Is the compiler the GNU compiler? 16877with_gcc=$GCC 16878 16879# Compiler flag to turn off builtin functions. 16880no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 16881 16882# How to pass a linker flag through the compiler. 16883wl=$lt_lt_prog_compiler_wl 16884 16885# Additional compiler flags for building library objects. 16886pic_flag=$lt_lt_prog_compiler_pic 16887 16888# Compiler flag to prevent dynamic linking. 16889link_static_flag=$lt_lt_prog_compiler_static 16890 16891# Does compiler simultaneously support -c and -o options? 16892compiler_c_o=$lt_lt_cv_prog_compiler_c_o 16893 16894# Whether or not to add -lc for building shared libraries. 16895build_libtool_need_lc=$archive_cmds_need_lc 16896 16897# Whether or not to disallow shared libs when runtime libs are static. 16898allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 16899 16900# Compiler flag to allow reflexive dlopens. 16901export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 16902 16903# Compiler flag to generate shared objects directly from archives. 16904whole_archive_flag_spec=$lt_whole_archive_flag_spec 16905 16906# Whether the compiler copes with passing no objects directly. 16907compiler_needs_object=$lt_compiler_needs_object 16908 16909# Create an old-style archive from a shared archive. 16910old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 16911 16912# Create a temporary old-style archive to link instead of a shared archive. 16913old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 16914 16915# Commands used to build a shared archive. 16916archive_cmds=$lt_archive_cmds 16917archive_expsym_cmds=$lt_archive_expsym_cmds 16918 16919# Commands used to build a loadable module if different from building 16920# a shared archive. 16921module_cmds=$lt_module_cmds 16922module_expsym_cmds=$lt_module_expsym_cmds 16923 16924# Whether we are building with GNU ld or not. 16925with_gnu_ld=$lt_with_gnu_ld 16926 16927# Flag that allows shared libraries with undefined symbols to be built. 16928allow_undefined_flag=$lt_allow_undefined_flag 16929 16930# Flag that enforces no undefined symbols. 16931no_undefined_flag=$lt_no_undefined_flag 16932 16933# Flag to hardcode \$libdir into a binary during linking. 16934# This must work even if \$libdir does not exist 16935hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 16936 16937# If ld is used when linking, flag to hardcode \$libdir into a binary 16938# during linking. This must work even if \$libdir does not exist. 16939hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 16940 16941# Whether we need a single "-rpath" flag with a separated argument. 16942hardcode_libdir_separator=$lt_hardcode_libdir_separator 16943 16944# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16945# DIR into the resulting binary. 16946hardcode_direct=$hardcode_direct 16947 16948# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 16949# DIR into the resulting binary and the resulting library dependency is 16950# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 16951# library is relocated. 16952hardcode_direct_absolute=$hardcode_direct_absolute 16953 16954# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 16955# into the resulting binary. 16956hardcode_minus_L=$hardcode_minus_L 16957 16958# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 16959# into the resulting binary. 16960hardcode_shlibpath_var=$hardcode_shlibpath_var 16961 16962# Set to "yes" if building a shared library automatically hardcodes DIR 16963# into the library and all subsequent libraries and executables linked 16964# against it. 16965hardcode_automatic=$hardcode_automatic 16966 16967# Set to yes if linker adds runtime paths of dependent libraries 16968# to runtime path list. 16969inherit_rpath=$inherit_rpath 16970 16971# Whether libtool must link a program against all its dependency libraries. 16972link_all_deplibs=$link_all_deplibs 16973 16974# Fix the shell variable \$srcfile for the compiler. 16975fix_srcfile_path=$lt_fix_srcfile_path 16976 16977# Set to "yes" if exported symbols are required. 16978always_export_symbols=$always_export_symbols 16979 16980# The commands to list exported symbols. 16981export_symbols_cmds=$lt_export_symbols_cmds 16982 16983# Symbols that should not be listed in the preloaded symbols. 16984exclude_expsyms=$lt_exclude_expsyms 16985 16986# Symbols that must always be exported. 16987include_expsyms=$lt_include_expsyms 16988 16989# Commands necessary for linking programs (against libraries) with templates. 16990prelink_cmds=$lt_prelink_cmds 16991 16992# Specify filename containing input files. 16993file_list_spec=$lt_file_list_spec 16994 16995# How to hardcode a shared library path into an executable. 16996hardcode_action=$hardcode_action 16997 16998# The directories searched by this compiler when creating a shared library. 16999compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 17000 17001# Dependencies to place before and after the objects being linked to 17002# create a shared library. 17003predep_objects=$lt_predep_objects 17004postdep_objects=$lt_postdep_objects 17005predeps=$lt_predeps 17006postdeps=$lt_postdeps 17007 17008# The library search path used internally by the compiler when linking 17009# a shared library. 17010compiler_lib_search_path=$lt_compiler_lib_search_path 17011 17012# ### END LIBTOOL CONFIG 17013 17014_LT_EOF 17015 17016 case $host_os in 17017 aix3*) 17018 cat <<\_LT_EOF >> "$cfgfile" 17019# AIX sometimes has problems with the GCC collect2 program. For some 17020# reason, if we set the COLLECT_NAMES environment variable, the problems 17021# vanish in a puff of smoke. 17022if test "X${COLLECT_NAMES+set}" != Xset; then 17023 COLLECT_NAMES= 17024 export COLLECT_NAMES 17025fi 17026_LT_EOF 17027 ;; 17028 esac 17029 17030 17031ltmain="$ac_aux_dir/ltmain.sh" 17032 17033 17034 # We use sed instead of cat because bash on DJGPP gets confused if 17035 # if finds mixed CR/LF and LF-only lines. Since sed operates in 17036 # text mode, it properly converts lines to CR/LF. This bash problem 17037 # is reportedly fixed, but why not run on old versions too? 17038 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 17039 || (rm -f "$cfgfile"; exit 1) 17040 17041 case $xsi_shell in 17042 yes) 17043 cat << \_LT_EOF >> "$cfgfile" 17044 17045# func_dirname file append nondir_replacement 17046# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17047# otherwise set result to NONDIR_REPLACEMENT. 17048func_dirname () 17049{ 17050 case ${1} in 17051 */*) func_dirname_result="${1%/*}${2}" ;; 17052 * ) func_dirname_result="${3}" ;; 17053 esac 17054} 17055 17056# func_basename file 17057func_basename () 17058{ 17059 func_basename_result="${1##*/}" 17060} 17061 17062# func_dirname_and_basename file append nondir_replacement 17063# perform func_basename and func_dirname in a single function 17064# call: 17065# dirname: Compute the dirname of FILE. If nonempty, 17066# add APPEND to the result, otherwise set result 17067# to NONDIR_REPLACEMENT. 17068# value returned in "$func_dirname_result" 17069# basename: Compute filename of FILE. 17070# value retuned in "$func_basename_result" 17071# Implementation must be kept synchronized with func_dirname 17072# and func_basename. For efficiency, we do not delegate to 17073# those functions but instead duplicate the functionality here. 17074func_dirname_and_basename () 17075{ 17076 case ${1} in 17077 */*) func_dirname_result="${1%/*}${2}" ;; 17078 * ) func_dirname_result="${3}" ;; 17079 esac 17080 func_basename_result="${1##*/}" 17081} 17082 17083# func_stripname prefix suffix name 17084# strip PREFIX and SUFFIX off of NAME. 17085# PREFIX and SUFFIX must not contain globbing or regex special 17086# characters, hashes, percent signs, but SUFFIX may contain a leading 17087# dot (in which case that matches only a dot). 17088func_stripname () 17089{ 17090 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 17091 # positional parameters, so assign one to ordinary parameter first. 17092 func_stripname_result=${3} 17093 func_stripname_result=${func_stripname_result#"${1}"} 17094 func_stripname_result=${func_stripname_result%"${2}"} 17095} 17096 17097# func_opt_split 17098func_opt_split () 17099{ 17100 func_opt_split_opt=${1%%=*} 17101 func_opt_split_arg=${1#*=} 17102} 17103 17104# func_lo2o object 17105func_lo2o () 17106{ 17107 case ${1} in 17108 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 17109 *) func_lo2o_result=${1} ;; 17110 esac 17111} 17112 17113# func_xform libobj-or-source 17114func_xform () 17115{ 17116 func_xform_result=${1%.*}.lo 17117} 17118 17119# func_arith arithmetic-term... 17120func_arith () 17121{ 17122 func_arith_result=$(( $* )) 17123} 17124 17125# func_len string 17126# STRING may not start with a hyphen. 17127func_len () 17128{ 17129 func_len_result=${#1} 17130} 17131 17132_LT_EOF 17133 ;; 17134 *) # Bourne compatible functions. 17135 cat << \_LT_EOF >> "$cfgfile" 17136 17137# func_dirname file append nondir_replacement 17138# Compute the dirname of FILE. If nonempty, add APPEND to the result, 17139# otherwise set result to NONDIR_REPLACEMENT. 17140func_dirname () 17141{ 17142 # Extract subdirectory from the argument. 17143 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 17144 if test "X$func_dirname_result" = "X${1}"; then 17145 func_dirname_result="${3}" 17146 else 17147 func_dirname_result="$func_dirname_result${2}" 17148 fi 17149} 17150 17151# func_basename file 17152func_basename () 17153{ 17154 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 17155} 17156 17157 17158# func_stripname prefix suffix name 17159# strip PREFIX and SUFFIX off of NAME. 17160# PREFIX and SUFFIX must not contain globbing or regex special 17161# characters, hashes, percent signs, but SUFFIX may contain a leading 17162# dot (in which case that matches only a dot). 17163# func_strip_suffix prefix name 17164func_stripname () 17165{ 17166 case ${2} in 17167 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 17168 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 17169 esac 17170} 17171 17172# sed scripts: 17173my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 17174my_sed_long_arg='1s/^-[^=]*=//' 17175 17176# func_opt_split 17177func_opt_split () 17178{ 17179 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 17180 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 17181} 17182 17183# func_lo2o object 17184func_lo2o () 17185{ 17186 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 17187} 17188 17189# func_xform libobj-or-source 17190func_xform () 17191{ 17192 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 17193} 17194 17195# func_arith arithmetic-term... 17196func_arith () 17197{ 17198 func_arith_result=`expr "$@"` 17199} 17200 17201# func_len string 17202# STRING may not start with a hyphen. 17203func_len () 17204{ 17205 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 17206} 17207 17208_LT_EOF 17209esac 17210 17211case $lt_shell_append in 17212 yes) 17213 cat << \_LT_EOF >> "$cfgfile" 17214 17215# func_append var value 17216# Append VALUE to the end of shell variable VAR. 17217func_append () 17218{ 17219 eval "$1+=\$2" 17220} 17221_LT_EOF 17222 ;; 17223 *) 17224 cat << \_LT_EOF >> "$cfgfile" 17225 17226# func_append var value 17227# Append VALUE to the end of shell variable VAR. 17228func_append () 17229{ 17230 eval "$1=\$$1\$2" 17231} 17232 17233_LT_EOF 17234 ;; 17235 esac 17236 17237 17238 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 17239 || (rm -f "$cfgfile"; exit 1) 17240 17241 mv -f "$cfgfile" "$ofile" || 17242 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 17243 chmod +x "$ofile" 17244 17245 17246 cat <<_LT_EOF >> "$ofile" 17247 17248# ### BEGIN LIBTOOL TAG CONFIG: CXX 17249 17250# The linker used to build libraries. 17251LD=$lt_LD_CXX 17252 17253# How to create reloadable object files. 17254reload_flag=$lt_reload_flag_CXX 17255reload_cmds=$lt_reload_cmds_CXX 17256 17257# Commands used to build an old-style archive. 17258old_archive_cmds=$lt_old_archive_cmds_CXX 17259 17260# A language specific compiler. 17261CC=$lt_compiler_CXX 17262 17263# Is the compiler the GNU compiler? 17264with_gcc=$GCC_CXX 17265 17266# Compiler flag to turn off builtin functions. 17267no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 17268 17269# How to pass a linker flag through the compiler. 17270wl=$lt_lt_prog_compiler_wl_CXX 17271 17272# Additional compiler flags for building library objects. 17273pic_flag=$lt_lt_prog_compiler_pic_CXX 17274 17275# Compiler flag to prevent dynamic linking. 17276link_static_flag=$lt_lt_prog_compiler_static_CXX 17277 17278# Does compiler simultaneously support -c and -o options? 17279compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 17280 17281# Whether or not to add -lc for building shared libraries. 17282build_libtool_need_lc=$archive_cmds_need_lc_CXX 17283 17284# Whether or not to disallow shared libs when runtime libs are static. 17285allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 17286 17287# Compiler flag to allow reflexive dlopens. 17288export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 17289 17290# Compiler flag to generate shared objects directly from archives. 17291whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 17292 17293# Whether the compiler copes with passing no objects directly. 17294compiler_needs_object=$lt_compiler_needs_object_CXX 17295 17296# Create an old-style archive from a shared archive. 17297old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 17298 17299# Create a temporary old-style archive to link instead of a shared archive. 17300old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 17301 17302# Commands used to build a shared archive. 17303archive_cmds=$lt_archive_cmds_CXX 17304archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 17305 17306# Commands used to build a loadable module if different from building 17307# a shared archive. 17308module_cmds=$lt_module_cmds_CXX 17309module_expsym_cmds=$lt_module_expsym_cmds_CXX 17310 17311# Whether we are building with GNU ld or not. 17312with_gnu_ld=$lt_with_gnu_ld_CXX 17313 17314# Flag that allows shared libraries with undefined symbols to be built. 17315allow_undefined_flag=$lt_allow_undefined_flag_CXX 17316 17317# Flag that enforces no undefined symbols. 17318no_undefined_flag=$lt_no_undefined_flag_CXX 17319 17320# Flag to hardcode \$libdir into a binary during linking. 17321# This must work even if \$libdir does not exist 17322hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 17323 17324# If ld is used when linking, flag to hardcode \$libdir into a binary 17325# during linking. This must work even if \$libdir does not exist. 17326hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 17327 17328# Whether we need a single "-rpath" flag with a separated argument. 17329hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 17330 17331# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17332# DIR into the resulting binary. 17333hardcode_direct=$hardcode_direct_CXX 17334 17335# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 17336# DIR into the resulting binary and the resulting library dependency is 17337# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 17338# library is relocated. 17339hardcode_direct_absolute=$hardcode_direct_absolute_CXX 17340 17341# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 17342# into the resulting binary. 17343hardcode_minus_L=$hardcode_minus_L_CXX 17344 17345# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 17346# into the resulting binary. 17347hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 17348 17349# Set to "yes" if building a shared library automatically hardcodes DIR 17350# into the library and all subsequent libraries and executables linked 17351# against it. 17352hardcode_automatic=$hardcode_automatic_CXX 17353 17354# Set to yes if linker adds runtime paths of dependent libraries 17355# to runtime path list. 17356inherit_rpath=$inherit_rpath_CXX 17357 17358# Whether libtool must link a program against all its dependency libraries. 17359link_all_deplibs=$link_all_deplibs_CXX 17360 17361# Fix the shell variable \$srcfile for the compiler. 17362fix_srcfile_path=$lt_fix_srcfile_path_CXX 17363 17364# Set to "yes" if exported symbols are required. 17365always_export_symbols=$always_export_symbols_CXX 17366 17367# The commands to list exported symbols. 17368export_symbols_cmds=$lt_export_symbols_cmds_CXX 17369 17370# Symbols that should not be listed in the preloaded symbols. 17371exclude_expsyms=$lt_exclude_expsyms_CXX 17372 17373# Symbols that must always be exported. 17374include_expsyms=$lt_include_expsyms_CXX 17375 17376# Commands necessary for linking programs (against libraries) with templates. 17377prelink_cmds=$lt_prelink_cmds_CXX 17378 17379# Specify filename containing input files. 17380file_list_spec=$lt_file_list_spec_CXX 17381 17382# How to hardcode a shared library path into an executable. 17383hardcode_action=$hardcode_action_CXX 17384 17385# The directories searched by this compiler when creating a shared library. 17386compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 17387 17388# Dependencies to place before and after the objects being linked to 17389# create a shared library. 17390predep_objects=$lt_predep_objects_CXX 17391postdep_objects=$lt_postdep_objects_CXX 17392predeps=$lt_predeps_CXX 17393postdeps=$lt_postdeps_CXX 17394 17395# The library search path used internally by the compiler when linking 17396# a shared library. 17397compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 17398 17399# ### END LIBTOOL TAG CONFIG: CXX 17400_LT_EOF 17401 17402 ;; 17403 17404 esac 17405done # for ac_tag 17406 17407 17408as_fn_exit 0 17409_ACEOF 17410ac_clean_files=$ac_clean_files_save 17411 17412test $ac_write_fail = 0 || 17413 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 17414 17415 17416# configure is writing to config.log, and then calls config.status. 17417# config.status does its own redirection, appending to config.log. 17418# Unfortunately, on DOS this fails, as config.log is still kept open 17419# by configure, so config.status won't be able to write to it; its 17420# output is simply discarded. So we exec the FD to /dev/null, 17421# effectively closing config.log, so it can be properly (re)opened and 17422# appended to by config.status. When coming back to configure, we 17423# need to make the FD available again. 17424if test "$no_create" != yes; then 17425 ac_cs_success=: 17426 ac_config_status_args= 17427 test "$silent" = yes && 17428 ac_config_status_args="$ac_config_status_args --quiet" 17429 exec 5>/dev/null 17430 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17431 exec 5>>config.log 17432 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17433 # would make configure fail if this is the last instruction. 17434 $ac_cs_success || as_fn_exit 1 17435fi 17436 17437# 17438# CONFIG_SUBDIRS section. 17439# 17440if test "$no_recursion" != yes; then 17441 17442 # Remove --cache-file, --srcdir, and --disable-option-checking arguments 17443 # so they do not pile up. 17444 ac_sub_configure_args= 17445 ac_prev= 17446 eval "set x $ac_configure_args" 17447 shift 17448 for ac_arg 17449 do 17450 if test -n "$ac_prev"; then 17451 ac_prev= 17452 continue 17453 fi 17454 case $ac_arg in 17455 -cache-file | --cache-file | --cache-fil | --cache-fi \ 17456 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 17457 ac_prev=cache_file ;; 17458 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 17459 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ 17460 | --c=*) 17461 ;; 17462 --config-cache | -C) 17463 ;; 17464 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 17465 ac_prev=srcdir ;; 17466 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 17467 ;; 17468 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 17469 ac_prev=prefix ;; 17470 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 17471 ;; 17472 --disable-option-checking) 17473 ;; 17474 *) 17475 case $ac_arg in 17476 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 17477 esac 17478 as_fn_append ac_sub_configure_args " '$ac_arg'" ;; 17479 esac 17480 done 17481 17482 # Always prepend --prefix to ensure using the same prefix 17483 # in subdir configurations. 17484 ac_arg="--prefix=$prefix" 17485 case $ac_arg in 17486 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 17487 esac 17488 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 17489 17490 # Pass --silent 17491 if test "$silent" = yes; then 17492 ac_sub_configure_args="--silent $ac_sub_configure_args" 17493 fi 17494 17495 # Always prepend --disable-option-checking to silence warnings, since 17496 # different subdirs can have different --enable and --with options. 17497 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" 17498 17499 ac_popdir=`pwd` 17500 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue 17501 17502 # Do not complain, so a configure script can configure whichever 17503 # parts of a large source tree are present. 17504 test -d "$srcdir/$ac_dir" || continue 17505 17506 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 17507 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 17508 $as_echo "$ac_msg" >&6 17509 as_dir="$ac_dir"; as_fn_mkdir_p 17510 ac_builddir=. 17511 17512case "$ac_dir" in 17513.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 17514*) 17515 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 17516 # A ".." for each directory in $ac_dir_suffix. 17517 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 17518 case $ac_top_builddir_sub in 17519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 17520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 17521 esac ;; 17522esac 17523ac_abs_top_builddir=$ac_pwd 17524ac_abs_builddir=$ac_pwd$ac_dir_suffix 17525# for backward compatibility: 17526ac_top_builddir=$ac_top_build_prefix 17527 17528case $srcdir in 17529 .) # We are building in place. 17530 ac_srcdir=. 17531 ac_top_srcdir=$ac_top_builddir_sub 17532 ac_abs_top_srcdir=$ac_pwd ;; 17533 [\\/]* | ?:[\\/]* ) # Absolute name. 17534 ac_srcdir=$srcdir$ac_dir_suffix; 17535 ac_top_srcdir=$srcdir 17536 ac_abs_top_srcdir=$srcdir ;; 17537 *) # Relative name. 17538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 17539 ac_top_srcdir=$ac_top_build_prefix$srcdir 17540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 17541esac 17542ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 17543 17544 17545 cd "$ac_dir" 17546 17547 # Check for guested configure; otherwise get Cygnus style configure. 17548 if test -f "$ac_srcdir/configure.gnu"; then 17549 ac_sub_configure=$ac_srcdir/configure.gnu 17550 elif test -f "$ac_srcdir/configure"; then 17551 ac_sub_configure=$ac_srcdir/configure 17552 elif test -f "$ac_srcdir/configure.in"; then 17553 # This should be Cygnus configure. 17554 ac_sub_configure=$ac_aux_dir/configure 17555 else 17556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 17557$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} 17558 ac_sub_configure= 17559 fi 17560 17561 # The recursion is here. 17562 if test -n "$ac_sub_configure"; then 17563 # Make the cache file name correct relative to the subdirectory. 17564 case $cache_file in 17565 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 17566 *) # Relative name. 17567 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 17568 esac 17569 17570 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 17571$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 17572 # The eval makes quoting arguments work. 17573 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 17574 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 17575 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 17576 fi 17577 17578 cd "$ac_popdir" 17579 done 17580fi 17581if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 17582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 17583$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 17584fi 17585 17586