1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.66 for maildrop 2.5.2. 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 176test \$(( 1 + 1 )) = 2 || exit 1 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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='maildrop' 564PACKAGE_TARNAME='maildrop' 565PACKAGE_VERSION='2.5.2' 566PACKAGE_STRING='maildrop 2.5.2' 567PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' 568PACKAGE_URL='' 569 570ac_unique_file="alarm.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 607ac_subst_vars='am__EXEEXT_FALSE 608am__EXEEXT_TRUE 609LTLIBOBJS 610LIBOBJS 611HAVE_LIBIDN_FALSE 612HAVE_LIBIDN_TRUE 613HAVE_SGML_FALSE 614HAVE_SGML_TRUE 615USE_DB 616USE_GDBM 617WITHETCDIR 618withetcdir 619KEEP_FROMLINE 620RESTRICT_TRUSTED 621CRLF_TERM 622GLOBAL_TIMEOUT 623SMALLMSG 624TEMPDIR 625LOCKREFRESH_DEF 626LOCKTIMEOUT_DEF 627LOCKSLEEP_DEF 628LOCKEXT_DEF 629USE_DOTLOCK 630USE_FLOCK 631MAILDROPGID 632MAILDROPUID 633QMAIL 634dblibrary 635AUTHLDADD 636AUTHINCLUDE 637COURIERAUTHCONFIG 638PERL 639CXXCPP 640OTOOL64 641OTOOL 642LIPO 643NMEDIT 644DSYMUTIL 645RANLIB 646AR 647OBJDUMP 648NM 649ac_ct_DUMPBIN 650DUMPBIN 651LD 652FGREP 653SED 654host_os 655host_vendor 656host_cpu 657host 658build_os 659build_vendor 660build_cpu 661build 662LIBTOOL 663am__fastdepCXX_FALSE 664am__fastdepCXX_TRUE 665CXXDEPMODE 666ac_ct_CXX 667CXXFLAGS 668CXX 669LN_S 670EGREP 671GREP 672CPP 673am__fastdepCC_FALSE 674am__fastdepCC_TRUE 675CCDEPMODE 676AMDEPBACKSLASH 677AMDEP_FALSE 678AMDEP_TRUE 679am__quote 680am__include 681DEPDIR 682OBJEXT 683EXEEXT 684ac_ct_CC 685CPPFLAGS 686LDFLAGS 687CFLAGS 688CC 689am__untar 690am__tar 691AMTAR 692am__leading_dot 693SET_MAKE 694AWK 695mkdir_p 696MKDIR_P 697INSTALL_STRIP_PROGRAM 698STRIP 699install_sh 700MAKEINFO 701AUTOHEADER 702AUTOMAKE 703AUTOCONF 704ACLOCAL 705VERSION 706PACKAGE 707CYGPATH_W 708am__isrc 709INSTALL_DATA 710INSTALL_SCRIPT 711INSTALL_PROGRAM 712target_alias 713host_alias 714build_alias 715LIBS 716ECHO_T 717ECHO_N 718ECHO_C 719DEFS 720mandir 721localedir 722libdir 723psdir 724pdfdir 725dvidir 726htmldir 727infodir 728docdir 729oldincludedir 730includedir 731localstatedir 732sharedstatedir 733sysconfdir 734datadir 735datarootdir 736libexecdir 737sbindir 738bindir 739program_transform_name 740prefix 741exec_prefix 742PACKAGE_URL 743PACKAGE_BUGREPORT 744PACKAGE_STRING 745PACKAGE_VERSION 746PACKAGE_TARNAME 747PACKAGE_NAME 748PATH_SEPARATOR 749SHELL' 750ac_subst_files='' 751ac_user_opts=' 752enable_option_checking 753enable_dependency_tracking 754enable_shared 755enable_static 756with_pic 757enable_fast_install 758with_gnu_ld 759enable_libtool_lock 760enable_DEBUG 761with_package 762with_version 763enable_authlib 764enable_sendmail 765with_default_maildrop 766enable_trusted_users 767enable_trusted_groups 768enable_maildrop_uid 769enable_maildrop_gid 770enable_use_flock 771enable_use_dotlock 772enable_lockext_def 773enable_locksleep_def 774enable_locktimeout_def 775enable_lockrefresh_def 776enable_tempdir 777enable_smallmsg 778enable_global_timeout 779enable_crlf_term 780enable_restrict_trusted 781enable_keep_fromline 782enable_syslog 783with_dirsync 784with_etcdir 785enable_authlib_tempreject 786with_db 787' 788 ac_precious_vars='build_alias 789host_alias 790target_alias 791CC 792CFLAGS 793LDFLAGS 794LIBS 795CPPFLAGS 796CPP 797CXX 798CXXFLAGS 799CCC 800CXXCPP' 801 802 803# Initialize some variables set by options. 804ac_init_help= 805ac_init_version=false 806ac_unrecognized_opts= 807ac_unrecognized_sep= 808# The variables have the same names as the options, with 809# dashes changed to underlines. 810cache_file=/dev/null 811exec_prefix=NONE 812no_create= 813no_recursion= 814prefix=NONE 815program_prefix=NONE 816program_suffix=NONE 817program_transform_name=s,x,x, 818silent= 819site= 820srcdir= 821verbose= 822x_includes=NONE 823x_libraries=NONE 824 825# Installation directory options. 826# These are left unexpanded so users can "make install exec_prefix=/foo" 827# and all the variables that are supposed to be based on exec_prefix 828# by default will actually change. 829# Use braces instead of parens because sh, perl, etc. also accept them. 830# (The list follows the same order as the GNU Coding Standards.) 831bindir='${exec_prefix}/bin' 832sbindir='${exec_prefix}/sbin' 833libexecdir='${exec_prefix}/libexec' 834datarootdir='${prefix}/share' 835datadir='${datarootdir}' 836sysconfdir='${prefix}/etc' 837sharedstatedir='${prefix}/com' 838localstatedir='${prefix}/var' 839includedir='${prefix}/include' 840oldincludedir='/usr/include' 841docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 842infodir='${datarootdir}/info' 843htmldir='${docdir}' 844dvidir='${docdir}' 845pdfdir='${docdir}' 846psdir='${docdir}' 847libdir='${exec_prefix}/lib' 848localedir='${datarootdir}/locale' 849mandir='${datarootdir}/man' 850 851ac_prev= 852ac_dashdash= 853for ac_option 854do 855 # If the previous option needs an argument, assign it. 856 if test -n "$ac_prev"; then 857 eval $ac_prev=\$ac_option 858 ac_prev= 859 continue 860 fi 861 862 case $ac_option in 863 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 864 *) ac_optarg=yes ;; 865 esac 866 867 # Accept the important Cygnus configure options, so we can diagnose typos. 868 869 case $ac_dashdash$ac_option in 870 --) 871 ac_dashdash=yes ;; 872 873 -bindir | --bindir | --bindi | --bind | --bin | --bi) 874 ac_prev=bindir ;; 875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 876 bindir=$ac_optarg ;; 877 878 -build | --build | --buil | --bui | --bu) 879 ac_prev=build_alias ;; 880 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 881 build_alias=$ac_optarg ;; 882 883 -cache-file | --cache-file | --cache-fil | --cache-fi \ 884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 885 ac_prev=cache_file ;; 886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 888 cache_file=$ac_optarg ;; 889 890 --config-cache | -C) 891 cache_file=config.cache ;; 892 893 -datadir | --datadir | --datadi | --datad) 894 ac_prev=datadir ;; 895 -datadir=* | --datadir=* | --datadi=* | --datad=*) 896 datadir=$ac_optarg ;; 897 898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 899 | --dataroo | --dataro | --datar) 900 ac_prev=datarootdir ;; 901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 903 datarootdir=$ac_optarg ;; 904 905 -disable-* | --disable-*) 906 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 907 # Reject names that are not valid shell variable names. 908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 909 as_fn_error $? "invalid feature name: $ac_useropt" 910 ac_useropt_orig=$ac_useropt 911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 912 case $ac_user_opts in 913 *" 914"enable_$ac_useropt" 915"*) ;; 916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 917 ac_unrecognized_sep=', ';; 918 esac 919 eval enable_$ac_useropt=no ;; 920 921 -docdir | --docdir | --docdi | --doc | --do) 922 ac_prev=docdir ;; 923 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 924 docdir=$ac_optarg ;; 925 926 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 927 ac_prev=dvidir ;; 928 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 929 dvidir=$ac_optarg ;; 930 931 -enable-* | --enable-*) 932 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 933 # Reject names that are not valid shell variable names. 934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 935 as_fn_error $? "invalid feature name: $ac_useropt" 936 ac_useropt_orig=$ac_useropt 937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 938 case $ac_user_opts in 939 *" 940"enable_$ac_useropt" 941"*) ;; 942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 943 ac_unrecognized_sep=', ';; 944 esac 945 eval enable_$ac_useropt=\$ac_optarg ;; 946 947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 949 | --exec | --exe | --ex) 950 ac_prev=exec_prefix ;; 951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 953 | --exec=* | --exe=* | --ex=*) 954 exec_prefix=$ac_optarg ;; 955 956 -gas | --gas | --ga | --g) 957 # Obsolete; use --with-gas. 958 with_gas=yes ;; 959 960 -help | --help | --hel | --he | -h) 961 ac_init_help=long ;; 962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 963 ac_init_help=recursive ;; 964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 965 ac_init_help=short ;; 966 967 -host | --host | --hos | --ho) 968 ac_prev=host_alias ;; 969 -host=* | --host=* | --hos=* | --ho=*) 970 host_alias=$ac_optarg ;; 971 972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 973 ac_prev=htmldir ;; 974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 975 | --ht=*) 976 htmldir=$ac_optarg ;; 977 978 -includedir | --includedir | --includedi | --included | --include \ 979 | --includ | --inclu | --incl | --inc) 980 ac_prev=includedir ;; 981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 982 | --includ=* | --inclu=* | --incl=* | --inc=*) 983 includedir=$ac_optarg ;; 984 985 -infodir | --infodir | --infodi | --infod | --info | --inf) 986 ac_prev=infodir ;; 987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 988 infodir=$ac_optarg ;; 989 990 -libdir | --libdir | --libdi | --libd) 991 ac_prev=libdir ;; 992 -libdir=* | --libdir=* | --libdi=* | --libd=*) 993 libdir=$ac_optarg ;; 994 995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 996 | --libexe | --libex | --libe) 997 ac_prev=libexecdir ;; 998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 999 | --libexe=* | --libex=* | --libe=*) 1000 libexecdir=$ac_optarg ;; 1001 1002 -localedir | --localedir | --localedi | --localed | --locale) 1003 ac_prev=localedir ;; 1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1005 localedir=$ac_optarg ;; 1006 1007 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1008 | --localstate | --localstat | --localsta | --localst | --locals) 1009 ac_prev=localstatedir ;; 1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1012 localstatedir=$ac_optarg ;; 1013 1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1015 ac_prev=mandir ;; 1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1017 mandir=$ac_optarg ;; 1018 1019 -nfp | --nfp | --nf) 1020 # Obsolete; use --without-fp. 1021 with_fp=no ;; 1022 1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1024 | --no-cr | --no-c | -n) 1025 no_create=yes ;; 1026 1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1029 no_recursion=yes ;; 1030 1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1033 | --oldin | --oldi | --old | --ol | --o) 1034 ac_prev=oldincludedir ;; 1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1038 oldincludedir=$ac_optarg ;; 1039 1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1041 ac_prev=prefix ;; 1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1043 prefix=$ac_optarg ;; 1044 1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1046 | --program-pre | --program-pr | --program-p) 1047 ac_prev=program_prefix ;; 1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1050 program_prefix=$ac_optarg ;; 1051 1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1053 | --program-suf | --program-su | --program-s) 1054 ac_prev=program_suffix ;; 1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1057 program_suffix=$ac_optarg ;; 1058 1059 -program-transform-name | --program-transform-name \ 1060 | --program-transform-nam | --program-transform-na \ 1061 | --program-transform-n | --program-transform- \ 1062 | --program-transform | --program-transfor \ 1063 | --program-transfo | --program-transf \ 1064 | --program-trans | --program-tran \ 1065 | --progr-tra | --program-tr | --program-t) 1066 ac_prev=program_transform_name ;; 1067 -program-transform-name=* | --program-transform-name=* \ 1068 | --program-transform-nam=* | --program-transform-na=* \ 1069 | --program-transform-n=* | --program-transform-=* \ 1070 | --program-transform=* | --program-transfor=* \ 1071 | --program-transfo=* | --program-transf=* \ 1072 | --program-trans=* | --program-tran=* \ 1073 | --progr-tra=* | --program-tr=* | --program-t=*) 1074 program_transform_name=$ac_optarg ;; 1075 1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1077 ac_prev=pdfdir ;; 1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1079 pdfdir=$ac_optarg ;; 1080 1081 -psdir | --psdir | --psdi | --psd | --ps) 1082 ac_prev=psdir ;; 1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1084 psdir=$ac_optarg ;; 1085 1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1087 | -silent | --silent | --silen | --sile | --sil) 1088 silent=yes ;; 1089 1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1091 ac_prev=sbindir ;; 1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1093 | --sbi=* | --sb=*) 1094 sbindir=$ac_optarg ;; 1095 1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1098 | --sharedst | --shareds | --shared | --share | --shar \ 1099 | --sha | --sh) 1100 ac_prev=sharedstatedir ;; 1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1104 | --sha=* | --sh=*) 1105 sharedstatedir=$ac_optarg ;; 1106 1107 -site | --site | --sit) 1108 ac_prev=site ;; 1109 -site=* | --site=* | --sit=*) 1110 site=$ac_optarg ;; 1111 1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1113 ac_prev=srcdir ;; 1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1115 srcdir=$ac_optarg ;; 1116 1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1118 | --syscon | --sysco | --sysc | --sys | --sy) 1119 ac_prev=sysconfdir ;; 1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1122 sysconfdir=$ac_optarg ;; 1123 1124 -target | --target | --targe | --targ | --tar | --ta | --t) 1125 ac_prev=target_alias ;; 1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1127 target_alias=$ac_optarg ;; 1128 1129 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1130 verbose=yes ;; 1131 1132 -version | --version | --versio | --versi | --vers | -V) 1133 ac_init_version=: ;; 1134 1135 -with-* | --with-*) 1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1137 # Reject names that are not valid shell variable names. 1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1139 as_fn_error $? "invalid package name: $ac_useropt" 1140 ac_useropt_orig=$ac_useropt 1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1142 case $ac_user_opts in 1143 *" 1144"with_$ac_useropt" 1145"*) ;; 1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1147 ac_unrecognized_sep=', ';; 1148 esac 1149 eval with_$ac_useropt=\$ac_optarg ;; 1150 1151 -without-* | --without-*) 1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1153 # Reject names that are not valid shell variable names. 1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1155 as_fn_error $? "invalid package name: $ac_useropt" 1156 ac_useropt_orig=$ac_useropt 1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1158 case $ac_user_opts in 1159 *" 1160"with_$ac_useropt" 1161"*) ;; 1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1163 ac_unrecognized_sep=', ';; 1164 esac 1165 eval with_$ac_useropt=no ;; 1166 1167 --x) 1168 # Obsolete; use --with-x. 1169 with_x=yes ;; 1170 1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1172 | --x-incl | --x-inc | --x-in | --x-i) 1173 ac_prev=x_includes ;; 1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1176 x_includes=$ac_optarg ;; 1177 1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1180 ac_prev=x_libraries ;; 1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1183 x_libraries=$ac_optarg ;; 1184 1185 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1186Try \`$0 --help' for more information" 1187 ;; 1188 1189 *=*) 1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1191 # Reject names that are not valid shell variable names. 1192 case $ac_envvar in #( 1193 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1195 esac 1196 eval $ac_envvar=\$ac_optarg 1197 export $ac_envvar ;; 1198 1199 *) 1200 # FIXME: should be removed in autoconf 3.0. 1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1204 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1205 ;; 1206 1207 esac 1208done 1209 1210if test -n "$ac_prev"; then 1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1212 as_fn_error $? "missing argument to $ac_option" 1213fi 1214 1215if test -n "$ac_unrecognized_opts"; then 1216 case $enable_option_checking in 1217 no) ;; 1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1220 esac 1221fi 1222 1223# Check all directory arguments for consistency. 1224for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1225 datadir sysconfdir sharedstatedir localstatedir includedir \ 1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1227 libdir localedir mandir 1228do 1229 eval ac_val=\$$ac_var 1230 # Remove trailing slashes. 1231 case $ac_val in 1232 */ ) 1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1234 eval $ac_var=\$ac_val;; 1235 esac 1236 # Be sure to have absolute directory names. 1237 case $ac_val in 1238 [\\/$]* | ?:[\\/]* ) continue;; 1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1240 esac 1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1242done 1243 1244# There might be people who depend on the old broken behavior: `$host' 1245# used to hold the argument of --host etc. 1246# FIXME: To remove some day. 1247build=$build_alias 1248host=$host_alias 1249target=$target_alias 1250 1251# FIXME: To remove some day. 1252if test "x$host_alias" != x; then 1253 if test "x$build_alias" = x; then 1254 cross_compiling=maybe 1255 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1256 If a cross compiler is detected then cross compile mode will be used" >&2 1257 elif test "x$build_alias" != "x$host_alias"; then 1258 cross_compiling=yes 1259 fi 1260fi 1261 1262ac_tool_prefix= 1263test -n "$host_alias" && ac_tool_prefix=$host_alias- 1264 1265test "$silent" = yes && exec 6>/dev/null 1266 1267 1268ac_pwd=`pwd` && test -n "$ac_pwd" && 1269ac_ls_di=`ls -di .` && 1270ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1271 as_fn_error $? "working directory cannot be determined" 1272test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1273 as_fn_error $? "pwd does not report name of working directory" 1274 1275 1276# Find the source files, if location was not specified. 1277if test -z "$srcdir"; then 1278 ac_srcdir_defaulted=yes 1279 # Try the directory containing this script, then the parent directory. 1280 ac_confdir=`$as_dirname -- "$as_myself" || 1281$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1282 X"$as_myself" : 'X\(//\)[^/]' \| \ 1283 X"$as_myself" : 'X\(//\)$' \| \ 1284 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1285$as_echo X"$as_myself" | 1286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1287 s//\1/ 1288 q 1289 } 1290 /^X\(\/\/\)[^/].*/{ 1291 s//\1/ 1292 q 1293 } 1294 /^X\(\/\/\)$/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\).*/{ 1299 s//\1/ 1300 q 1301 } 1302 s/.*/./; q'` 1303 srcdir=$ac_confdir 1304 if test ! -r "$srcdir/$ac_unique_file"; then 1305 srcdir=.. 1306 fi 1307else 1308 ac_srcdir_defaulted=no 1309fi 1310if test ! -r "$srcdir/$ac_unique_file"; then 1311 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1312 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1313fi 1314ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1315ac_abs_confdir=`( 1316 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1317 pwd)` 1318# When building in place, set srcdir=. 1319if test "$ac_abs_confdir" = "$ac_pwd"; then 1320 srcdir=. 1321fi 1322# Remove unnecessary trailing slashes from srcdir. 1323# Double slashes in file names in object file debugging info 1324# mess up M-x gdb in Emacs. 1325case $srcdir in 1326*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1327esac 1328for ac_var in $ac_precious_vars; do 1329 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1330 eval ac_env_${ac_var}_value=\$${ac_var} 1331 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1332 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1333done 1334 1335# 1336# Report the --help message. 1337# 1338if test "$ac_init_help" = "long"; then 1339 # Omit some internal or obsolete options to make the list less imposing. 1340 # This message is too long to be a string in the A/UX 3.1 sh. 1341 cat <<_ACEOF 1342\`configure' configures maildrop 2.5.2 to adapt to many kinds of systems. 1343 1344Usage: $0 [OPTION]... [VAR=VALUE]... 1345 1346To assign environment variables (e.g., CC, CFLAGS...), specify them as 1347VAR=VALUE. See below for descriptions of some of the useful variables. 1348 1349Defaults for the options are specified in brackets. 1350 1351Configuration: 1352 -h, --help display this help and exit 1353 --help=short display options specific to this package 1354 --help=recursive display the short help of all the included packages 1355 -V, --version display version information and exit 1356 -q, --quiet, --silent do not print \`checking ...' messages 1357 --cache-file=FILE cache test results in FILE [disabled] 1358 -C, --config-cache alias for \`--cache-file=config.cache' 1359 -n, --no-create do not create output files 1360 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1361 1362Installation directories: 1363 --prefix=PREFIX install architecture-independent files in PREFIX 1364 [$ac_default_prefix] 1365 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1366 [PREFIX] 1367 1368By default, \`make install' will install all the files in 1369\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1370an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1371for instance \`--prefix=\$HOME'. 1372 1373For better control, use the options below. 1374 1375Fine tuning of the installation directories: 1376 --bindir=DIR user executables [EPREFIX/bin] 1377 --sbindir=DIR system admin executables [EPREFIX/sbin] 1378 --libexecdir=DIR program executables [EPREFIX/libexec] 1379 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1380 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1381 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1382 --libdir=DIR object code libraries [EPREFIX/lib] 1383 --includedir=DIR C header files [PREFIX/include] 1384 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1385 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1386 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1387 --infodir=DIR info documentation [DATAROOTDIR/info] 1388 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1389 --mandir=DIR man documentation [DATAROOTDIR/man] 1390 --docdir=DIR documentation root [DATAROOTDIR/doc/maildrop] 1391 --htmldir=DIR html documentation [DOCDIR] 1392 --dvidir=DIR dvi documentation [DOCDIR] 1393 --pdfdir=DIR pdf documentation [DOCDIR] 1394 --psdir=DIR ps documentation [DOCDIR] 1395_ACEOF 1396 1397 cat <<\_ACEOF 1398 1399Program names: 1400 --program-prefix=PREFIX prepend PREFIX to installed program names 1401 --program-suffix=SUFFIX append SUFFIX to installed program names 1402 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1403 1404System types: 1405 --build=BUILD configure for building on BUILD [guessed] 1406 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1407_ACEOF 1408fi 1409 1410if test -n "$ac_init_help"; then 1411 case $ac_init_help in 1412 short | recursive ) echo "Configuration of maildrop 2.5.2:";; 1413 esac 1414 cat <<\_ACEOF 1415 1416Optional Features: 1417 --disable-option-checking ignore unrecognized --enable/--with options 1418 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1419 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1420 --disable-dependency-tracking speeds up one-time build 1421 --enable-dependency-tracking do not reject slow dependency extractors 1422 --enable-shared[=PKGS] build shared libraries [default=yes] 1423 --enable-static[=PKGS] build static libraries [default=yes] 1424 --enable-fast-install[=PKGS] 1425 optimize for fast installation [default=yes] 1426 --disable-libtool-lock avoid locking (might break parallel builds) 1427 --enable-DEBUG leave debug info in executables 1428 1429 --enable-sendmail=prog set sendmail location 1430 --enable-trusted-users='...' specify users allowed to use the -d option 1431 --enable-trusted-groups='...' specify groups allowed to use the -d option 1432 --enable-maildrop-uid=root UID of maildrop 1433 --enable-maildrop-gid=mail GID of maildrop 1434 --enable-use-flock=(1|0) enable flock()/lockf() locking 1435 --enable-use-dotlock=(1|0) enable dotlock locking 1436 --enable-lockext-def=.lock set extension for dotlock files 1437 --enable-locksleep-def=5 set sleep interval dotlock files (seconds) 1438 --enable-locktimeout-def=60 set timeout for dotlock files (seconds) 1439 --enable-lockrefresh-def=15 set timeout for dotlock files (seconds) 1440 --enable-tempdir=.tmp directory for temp files (in user's home dir) 1441 --disable-tempdir disable temp files in home directory (use 1442 the tmpfile function) 1443 --enable-smallmsg=8192 size of buffer for small messages 1444 --enable-global-timeout=300 global watchdog timer (seconds) 1445 --enable-crlf-term=0 enable <CR><LF> line termination 1446 --enable-restrict-trusted=1 restrict -d for trusted users only 1447 --enable-keep-fromline=(1|0) preserve the original From_ line in messages 1448 --enable-syslog=1 log fatal errors to syslog 1449 --enable-authlib-tempreject=(1|0) authlib errors are temprejects 1450 1451Optional Packages: 1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1454 --with-pic try to use only PIC/non-PIC objects [default=use 1455 both] 1456 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1457 1458 --with-default-maildrop=file specify DEFAULT mailbox location 1459 --with-dirsync Manually sync queue file directory 1460 --with-etcdir=dir Instead of /etc, use this. 1461 1462Some influential environment variables: 1463 CC C compiler command 1464 CFLAGS C compiler flags 1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1466 nonstandard directory <lib dir> 1467 LIBS libraries to pass to the linker, e.g. -l<library> 1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1469 you have headers in a nonstandard directory <include dir> 1470 CPP C preprocessor 1471 CXX C++ compiler command 1472 CXXFLAGS C++ compiler flags 1473 CXXCPP C++ preprocessor 1474 1475Use these variables to override the choices made by `configure' or to help 1476it to find libraries and programs with nonstandard names/locations. 1477 1478Report bugs to <courier-users@lists.sourceforge.net>. 1479_ACEOF 1480ac_status=$? 1481fi 1482 1483if test "$ac_init_help" = "recursive"; then 1484 # If there are subdirs, report their specific --help. 1485 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1486 test -d "$ac_dir" || 1487 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1488 continue 1489 ac_builddir=. 1490 1491case "$ac_dir" in 1492.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1493*) 1494 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1495 # A ".." for each directory in $ac_dir_suffix. 1496 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1497 case $ac_top_builddir_sub in 1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1500 esac ;; 1501esac 1502ac_abs_top_builddir=$ac_pwd 1503ac_abs_builddir=$ac_pwd$ac_dir_suffix 1504# for backward compatibility: 1505ac_top_builddir=$ac_top_build_prefix 1506 1507case $srcdir in 1508 .) # We are building in place. 1509 ac_srcdir=. 1510 ac_top_srcdir=$ac_top_builddir_sub 1511 ac_abs_top_srcdir=$ac_pwd ;; 1512 [\\/]* | ?:[\\/]* ) # Absolute name. 1513 ac_srcdir=$srcdir$ac_dir_suffix; 1514 ac_top_srcdir=$srcdir 1515 ac_abs_top_srcdir=$srcdir ;; 1516 *) # Relative name. 1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1518 ac_top_srcdir=$ac_top_build_prefix$srcdir 1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1520esac 1521ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1522 1523 cd "$ac_dir" || { ac_status=$?; continue; } 1524 # Check for guested configure. 1525 if test -f "$ac_srcdir/configure.gnu"; then 1526 echo && 1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1528 elif test -f "$ac_srcdir/configure"; then 1529 echo && 1530 $SHELL "$ac_srcdir/configure" --help=recursive 1531 else 1532 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1533 fi || ac_status=$? 1534 cd "$ac_pwd" || { ac_status=$?; break; } 1535 done 1536fi 1537 1538test -n "$ac_init_help" && exit $ac_status 1539if $ac_init_version; then 1540 cat <<\_ACEOF 1541maildrop configure 2.5.2 1542generated by GNU Autoconf 2.66 1543 1544Copyright (C) 2010 Free Software Foundation, Inc. 1545This configure script is free software; the Free Software Foundation 1546gives unlimited permission to copy, distribute and modify it. 1547_ACEOF 1548 exit 1549fi 1550 1551## ------------------------ ## 1552## Autoconf initialization. ## 1553## ------------------------ ## 1554 1555# ac_fn_c_try_compile LINENO 1556# -------------------------- 1557# Try to compile conftest.$ac_ext, and return whether this succeeded. 1558ac_fn_c_try_compile () 1559{ 1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1561 rm -f conftest.$ac_objext 1562 if { { ac_try="$ac_compile" 1563case "(($ac_try" in 1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1565 *) ac_try_echo=$ac_try;; 1566esac 1567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1568$as_echo "$ac_try_echo"; } >&5 1569 (eval "$ac_compile") 2>conftest.err 1570 ac_status=$? 1571 if test -s conftest.err; then 1572 grep -v '^ *+' conftest.err >conftest.er1 1573 cat conftest.er1 >&5 1574 mv -f conftest.er1 conftest.err 1575 fi 1576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1577 test $ac_status = 0; } && { 1578 test -z "$ac_c_werror_flag" || 1579 test ! -s conftest.err 1580 } && test -s conftest.$ac_objext; then : 1581 ac_retval=0 1582else 1583 $as_echo "$as_me: failed program was:" >&5 1584sed 's/^/| /' conftest.$ac_ext >&5 1585 1586 ac_retval=1 1587fi 1588 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1589 as_fn_set_status $ac_retval 1590 1591} # ac_fn_c_try_compile 1592 1593# ac_fn_c_try_cpp LINENO 1594# ---------------------- 1595# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1596ac_fn_c_try_cpp () 1597{ 1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1599 if { { ac_try="$ac_cpp conftest.$ac_ext" 1600case "(($ac_try" in 1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1602 *) ac_try_echo=$ac_try;; 1603esac 1604eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1605$as_echo "$ac_try_echo"; } >&5 1606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1607 ac_status=$? 1608 if test -s conftest.err; then 1609 grep -v '^ *+' conftest.err >conftest.er1 1610 cat conftest.er1 >&5 1611 mv -f conftest.er1 conftest.err 1612 fi 1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1614 test $ac_status = 0; } >/dev/null && { 1615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1616 test ! -s conftest.err 1617 }; then : 1618 ac_retval=0 1619else 1620 $as_echo "$as_me: failed program was:" >&5 1621sed 's/^/| /' conftest.$ac_ext >&5 1622 1623 ac_retval=1 1624fi 1625 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1626 as_fn_set_status $ac_retval 1627 1628} # ac_fn_c_try_cpp 1629 1630# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1631# ------------------------------------------------------- 1632# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1633# the include files in INCLUDES and setting the cache variable VAR 1634# accordingly. 1635ac_fn_c_check_header_mongrel () 1636{ 1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1638 if eval "test \"\${$3+set}\"" = set; then : 1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1640$as_echo_n "checking for $2... " >&6; } 1641if eval "test \"\${$3+set}\"" = set; then : 1642 $as_echo_n "(cached) " >&6 1643fi 1644eval ac_res=\$$3 1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1646$as_echo "$ac_res" >&6; } 1647else 1648 # Is the header compilable? 1649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1650$as_echo_n "checking $2 usability... " >&6; } 1651cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1652/* end confdefs.h. */ 1653$4 1654#include <$2> 1655_ACEOF 1656if ac_fn_c_try_compile "$LINENO"; then : 1657 ac_header_compiler=yes 1658else 1659 ac_header_compiler=no 1660fi 1661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1663$as_echo "$ac_header_compiler" >&6; } 1664 1665# Is the header present? 1666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1667$as_echo_n "checking $2 presence... " >&6; } 1668cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1669/* end confdefs.h. */ 1670#include <$2> 1671_ACEOF 1672if ac_fn_c_try_cpp "$LINENO"; then : 1673 ac_header_preproc=yes 1674else 1675 ac_header_preproc=no 1676fi 1677rm -f conftest.err conftest.$ac_ext 1678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1679$as_echo "$ac_header_preproc" >&6; } 1680 1681# So? What about this header? 1682case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1683 yes:no: ) 1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1685$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1687$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1688 ;; 1689 no:yes:* ) 1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1691$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1693$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1695$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1697$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1699$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1700( $as_echo "## -------------------------------------------------- ## 1701## Report this to courier-users@lists.sourceforge.net ## 1702## -------------------------------------------------- ##" 1703 ) | sed "s/^/$as_me: WARNING: /" >&2 1704 ;; 1705esac 1706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1707$as_echo_n "checking for $2... " >&6; } 1708if eval "test \"\${$3+set}\"" = set; then : 1709 $as_echo_n "(cached) " >&6 1710else 1711 eval "$3=\$ac_header_compiler" 1712fi 1713eval ac_res=\$$3 1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1715$as_echo "$ac_res" >&6; } 1716fi 1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1718 1719} # ac_fn_c_check_header_mongrel 1720 1721# ac_fn_c_try_run LINENO 1722# ---------------------- 1723# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1724# that executables *can* be run. 1725ac_fn_c_try_run () 1726{ 1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1728 if { { ac_try="$ac_link" 1729case "(($ac_try" in 1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1731 *) ac_try_echo=$ac_try;; 1732esac 1733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1734$as_echo "$ac_try_echo"; } >&5 1735 (eval "$ac_link") 2>&5 1736 ac_status=$? 1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1738 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1739 { { case "(($ac_try" in 1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1741 *) ac_try_echo=$ac_try;; 1742esac 1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1744$as_echo "$ac_try_echo"; } >&5 1745 (eval "$ac_try") 2>&5 1746 ac_status=$? 1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1748 test $ac_status = 0; }; }; then : 1749 ac_retval=0 1750else 1751 $as_echo "$as_me: program exited with status $ac_status" >&5 1752 $as_echo "$as_me: failed program was:" >&5 1753sed 's/^/| /' conftest.$ac_ext >&5 1754 1755 ac_retval=$ac_status 1756fi 1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1759 as_fn_set_status $ac_retval 1760 1761} # ac_fn_c_try_run 1762 1763# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1764# ------------------------------------------------------- 1765# Tests whether HEADER exists and can be compiled using the include files in 1766# INCLUDES, setting the cache variable VAR accordingly. 1767ac_fn_c_check_header_compile () 1768{ 1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1771$as_echo_n "checking for $2... " >&6; } 1772if eval "test \"\${$3+set}\"" = set; then : 1773 $as_echo_n "(cached) " >&6 1774else 1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1776/* end confdefs.h. */ 1777$4 1778#include <$2> 1779_ACEOF 1780if ac_fn_c_try_compile "$LINENO"; then : 1781 eval "$3=yes" 1782else 1783 eval "$3=no" 1784fi 1785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1786fi 1787eval ac_res=\$$3 1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1789$as_echo "$ac_res" >&6; } 1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1791 1792} # ac_fn_c_check_header_compile 1793 1794# ac_fn_cxx_try_compile LINENO 1795# ---------------------------- 1796# Try to compile conftest.$ac_ext, and return whether this succeeded. 1797ac_fn_cxx_try_compile () 1798{ 1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1800 rm -f conftest.$ac_objext 1801 if { { ac_try="$ac_compile" 1802case "(($ac_try" in 1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1804 *) ac_try_echo=$ac_try;; 1805esac 1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1807$as_echo "$ac_try_echo"; } >&5 1808 (eval "$ac_compile") 2>conftest.err 1809 ac_status=$? 1810 if test -s conftest.err; then 1811 grep -v '^ *+' conftest.err >conftest.er1 1812 cat conftest.er1 >&5 1813 mv -f conftest.er1 conftest.err 1814 fi 1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1816 test $ac_status = 0; } && { 1817 test -z "$ac_cxx_werror_flag" || 1818 test ! -s conftest.err 1819 } && test -s conftest.$ac_objext; then : 1820 ac_retval=0 1821else 1822 $as_echo "$as_me: failed program was:" >&5 1823sed 's/^/| /' conftest.$ac_ext >&5 1824 1825 ac_retval=1 1826fi 1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1828 as_fn_set_status $ac_retval 1829 1830} # ac_fn_cxx_try_compile 1831 1832# ac_fn_c_try_link LINENO 1833# ----------------------- 1834# Try to link conftest.$ac_ext, and return whether this succeeded. 1835ac_fn_c_try_link () 1836{ 1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1838 rm -f conftest.$ac_objext conftest$ac_exeext 1839 if { { ac_try="$ac_link" 1840case "(($ac_try" in 1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1842 *) ac_try_echo=$ac_try;; 1843esac 1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1845$as_echo "$ac_try_echo"; } >&5 1846 (eval "$ac_link") 2>conftest.err 1847 ac_status=$? 1848 if test -s conftest.err; then 1849 grep -v '^ *+' conftest.err >conftest.er1 1850 cat conftest.er1 >&5 1851 mv -f conftest.er1 conftest.err 1852 fi 1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1854 test $ac_status = 0; } && { 1855 test -z "$ac_c_werror_flag" || 1856 test ! -s conftest.err 1857 } && test -s conftest$ac_exeext && { 1858 test "$cross_compiling" = yes || 1859 $as_test_x conftest$ac_exeext 1860 }; then : 1861 ac_retval=0 1862else 1863 $as_echo "$as_me: failed program was:" >&5 1864sed 's/^/| /' conftest.$ac_ext >&5 1865 1866 ac_retval=1 1867fi 1868 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1869 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1870 # interfere with the next link command; also delete a directory that is 1871 # left behind by Apple's compiler. We do this before executing the actions. 1872 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1874 as_fn_set_status $ac_retval 1875 1876} # ac_fn_c_try_link 1877 1878# ac_fn_c_check_func LINENO FUNC VAR 1879# ---------------------------------- 1880# Tests whether FUNC exists, setting the cache variable VAR accordingly 1881ac_fn_c_check_func () 1882{ 1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1885$as_echo_n "checking for $2... " >&6; } 1886if eval "test \"\${$3+set}\"" = set; then : 1887 $as_echo_n "(cached) " >&6 1888else 1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1890/* end confdefs.h. */ 1891/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1892 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1893#define $2 innocuous_$2 1894 1895/* System header to define __stub macros and hopefully few prototypes, 1896 which can conflict with char $2 (); below. 1897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1898 <limits.h> exists even on freestanding compilers. */ 1899 1900#ifdef __STDC__ 1901# include <limits.h> 1902#else 1903# include <assert.h> 1904#endif 1905 1906#undef $2 1907 1908/* Override any GCC internal prototype to avoid an error. 1909 Use char because int might match the return type of a GCC 1910 builtin and then its argument prototype would still apply. */ 1911#ifdef __cplusplus 1912extern "C" 1913#endif 1914char $2 (); 1915/* The GNU C library defines this for functions which it implements 1916 to always fail with ENOSYS. Some functions are actually named 1917 something starting with __ and the normal name is an alias. */ 1918#if defined __stub_$2 || defined __stub___$2 1919choke me 1920#endif 1921 1922int 1923main () 1924{ 1925return $2 (); 1926 ; 1927 return 0; 1928} 1929_ACEOF 1930if ac_fn_c_try_link "$LINENO"; then : 1931 eval "$3=yes" 1932else 1933 eval "$3=no" 1934fi 1935rm -f core conftest.err conftest.$ac_objext \ 1936 conftest$ac_exeext conftest.$ac_ext 1937fi 1938eval ac_res=\$$3 1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1940$as_echo "$ac_res" >&6; } 1941 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1942 1943} # ac_fn_c_check_func 1944 1945# ac_fn_cxx_try_cpp LINENO 1946# ------------------------ 1947# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1948ac_fn_cxx_try_cpp () 1949{ 1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1951 if { { ac_try="$ac_cpp conftest.$ac_ext" 1952case "(($ac_try" in 1953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1954 *) ac_try_echo=$ac_try;; 1955esac 1956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1957$as_echo "$ac_try_echo"; } >&5 1958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1959 ac_status=$? 1960 if test -s conftest.err; then 1961 grep -v '^ *+' conftest.err >conftest.er1 1962 cat conftest.er1 >&5 1963 mv -f conftest.er1 conftest.err 1964 fi 1965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1966 test $ac_status = 0; } >/dev/null && { 1967 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1968 test ! -s conftest.err 1969 }; then : 1970 ac_retval=0 1971else 1972 $as_echo "$as_me: failed program was:" >&5 1973sed 's/^/| /' conftest.$ac_ext >&5 1974 1975 ac_retval=1 1976fi 1977 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1978 as_fn_set_status $ac_retval 1979 1980} # ac_fn_cxx_try_cpp 1981 1982# ac_fn_cxx_try_link LINENO 1983# ------------------------- 1984# Try to link conftest.$ac_ext, and return whether this succeeded. 1985ac_fn_cxx_try_link () 1986{ 1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1988 rm -f conftest.$ac_objext conftest$ac_exeext 1989 if { { ac_try="$ac_link" 1990case "(($ac_try" in 1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1992 *) ac_try_echo=$ac_try;; 1993esac 1994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1995$as_echo "$ac_try_echo"; } >&5 1996 (eval "$ac_link") 2>conftest.err 1997 ac_status=$? 1998 if test -s conftest.err; then 1999 grep -v '^ *+' conftest.err >conftest.er1 2000 cat conftest.er1 >&5 2001 mv -f conftest.er1 conftest.err 2002 fi 2003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2004 test $ac_status = 0; } && { 2005 test -z "$ac_cxx_werror_flag" || 2006 test ! -s conftest.err 2007 } && test -s conftest$ac_exeext && { 2008 test "$cross_compiling" = yes || 2009 $as_test_x conftest$ac_exeext 2010 }; then : 2011 ac_retval=0 2012else 2013 $as_echo "$as_me: failed program was:" >&5 2014sed 's/^/| /' conftest.$ac_ext >&5 2015 2016 ac_retval=1 2017fi 2018 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2019 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2020 # interfere with the next link command; also delete a directory that is 2021 # left behind by Apple's compiler. We do this before executing the actions. 2022 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2023 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2024 as_fn_set_status $ac_retval 2025 2026} # ac_fn_cxx_try_link 2027 2028# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2029# ------------------------------------------- 2030# Tests whether TYPE exists after having included INCLUDES, setting cache 2031# variable VAR accordingly. 2032ac_fn_c_check_type () 2033{ 2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2036$as_echo_n "checking for $2... " >&6; } 2037if eval "test \"\${$3+set}\"" = set; then : 2038 $as_echo_n "(cached) " >&6 2039else 2040 eval "$3=no" 2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2042/* end confdefs.h. */ 2043$4 2044int 2045main () 2046{ 2047if (sizeof ($2)) 2048 return 0; 2049 ; 2050 return 0; 2051} 2052_ACEOF 2053if ac_fn_c_try_compile "$LINENO"; then : 2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2055/* end confdefs.h. */ 2056$4 2057int 2058main () 2059{ 2060if (sizeof (($2))) 2061 return 0; 2062 ; 2063 return 0; 2064} 2065_ACEOF 2066if ac_fn_c_try_compile "$LINENO"; then : 2067 2068else 2069 eval "$3=yes" 2070fi 2071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2072fi 2073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2074fi 2075eval ac_res=\$$3 2076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2077$as_echo "$ac_res" >&6; } 2078 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2079 2080} # ac_fn_c_check_type 2081cat >config.log <<_ACEOF 2082This file contains any messages produced by compilers while 2083running configure, to aid debugging if configure makes a mistake. 2084 2085It was created by maildrop $as_me 2.5.2, which was 2086generated by GNU Autoconf 2.66. Invocation command line was 2087 2088 $ $0 $@ 2089 2090_ACEOF 2091exec 5>>config.log 2092{ 2093cat <<_ASUNAME 2094## --------- ## 2095## Platform. ## 2096## --------- ## 2097 2098hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2099uname -m = `(uname -m) 2>/dev/null || echo unknown` 2100uname -r = `(uname -r) 2>/dev/null || echo unknown` 2101uname -s = `(uname -s) 2>/dev/null || echo unknown` 2102uname -v = `(uname -v) 2>/dev/null || echo unknown` 2103 2104/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2105/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2106 2107/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2108/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2109/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2110/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2111/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2112/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2113/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2114 2115_ASUNAME 2116 2117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2118for as_dir in $PATH 2119do 2120 IFS=$as_save_IFS 2121 test -z "$as_dir" && as_dir=. 2122 $as_echo "PATH: $as_dir" 2123 done 2124IFS=$as_save_IFS 2125 2126} >&5 2127 2128cat >&5 <<_ACEOF 2129 2130 2131## ----------- ## 2132## Core tests. ## 2133## ----------- ## 2134 2135_ACEOF 2136 2137 2138# Keep a trace of the command line. 2139# Strip out --no-create and --no-recursion so they do not pile up. 2140# Strip out --silent because we don't want to record it for future runs. 2141# Also quote any args containing shell meta-characters. 2142# Make two passes to allow for proper duplicate-argument suppression. 2143ac_configure_args= 2144ac_configure_args0= 2145ac_configure_args1= 2146ac_must_keep_next=false 2147for ac_pass in 1 2 2148do 2149 for ac_arg 2150 do 2151 case $ac_arg in 2152 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2154 | -silent | --silent | --silen | --sile | --sil) 2155 continue ;; 2156 *\'*) 2157 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2158 esac 2159 case $ac_pass in 2160 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2161 2) 2162 as_fn_append ac_configure_args1 " '$ac_arg'" 2163 if test $ac_must_keep_next = true; then 2164 ac_must_keep_next=false # Got value, back to normal. 2165 else 2166 case $ac_arg in 2167 *=* | --config-cache | -C | -disable-* | --disable-* \ 2168 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2169 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2170 | -with-* | --with-* | -without-* | --without-* | --x) 2171 case "$ac_configure_args0 " in 2172 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2173 esac 2174 ;; 2175 -* ) ac_must_keep_next=true ;; 2176 esac 2177 fi 2178 as_fn_append ac_configure_args " '$ac_arg'" 2179 ;; 2180 esac 2181 done 2182done 2183{ ac_configure_args0=; unset ac_configure_args0;} 2184{ ac_configure_args1=; unset ac_configure_args1;} 2185 2186# When interrupted or exit'd, cleanup temporary files, and complete 2187# config.log. We remove comments because anyway the quotes in there 2188# would cause problems or look ugly. 2189# WARNING: Use '\'' to represent an apostrophe within the trap. 2190# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2191trap 'exit_status=$? 2192 # Save into config.log some information that might help in debugging. 2193 { 2194 echo 2195 2196 $as_echo "## ---------------- ## 2197## Cache variables. ## 2198## ---------------- ##" 2199 echo 2200 # The following way of writing the cache mishandles newlines in values, 2201( 2202 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2203 eval ac_val=\$$ac_var 2204 case $ac_val in #( 2205 *${as_nl}*) 2206 case $ac_var in #( 2207 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2208$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2209 esac 2210 case $ac_var in #( 2211 _ | IFS | as_nl) ;; #( 2212 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2213 *) { eval $ac_var=; unset $ac_var;} ;; 2214 esac ;; 2215 esac 2216 done 2217 (set) 2>&1 | 2218 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2219 *${as_nl}ac_space=\ *) 2220 sed -n \ 2221 "s/'\''/'\''\\\\'\'''\''/g; 2222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2223 ;; #( 2224 *) 2225 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2226 ;; 2227 esac | 2228 sort 2229) 2230 echo 2231 2232 $as_echo "## ----------------- ## 2233## Output variables. ## 2234## ----------------- ##" 2235 echo 2236 for ac_var in $ac_subst_vars 2237 do 2238 eval ac_val=\$$ac_var 2239 case $ac_val in 2240 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2241 esac 2242 $as_echo "$ac_var='\''$ac_val'\''" 2243 done | sort 2244 echo 2245 2246 if test -n "$ac_subst_files"; then 2247 $as_echo "## ------------------- ## 2248## File substitutions. ## 2249## ------------------- ##" 2250 echo 2251 for ac_var in $ac_subst_files 2252 do 2253 eval ac_val=\$$ac_var 2254 case $ac_val in 2255 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2256 esac 2257 $as_echo "$ac_var='\''$ac_val'\''" 2258 done | sort 2259 echo 2260 fi 2261 2262 if test -s confdefs.h; then 2263 $as_echo "## ----------- ## 2264## confdefs.h. ## 2265## ----------- ##" 2266 echo 2267 cat confdefs.h 2268 echo 2269 fi 2270 test "$ac_signal" != 0 && 2271 $as_echo "$as_me: caught signal $ac_signal" 2272 $as_echo "$as_me: exit $exit_status" 2273 } >&5 2274 rm -f core *.core core.conftest.* && 2275 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2276 exit $exit_status 2277' 0 2278for ac_signal in 1 2 13 15; do 2279 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2280done 2281ac_signal=0 2282 2283# confdefs.h avoids OS command line length limits that DEFS can exceed. 2284rm -f -r conftest* confdefs.h 2285 2286$as_echo "/* confdefs.h */" > confdefs.h 2287 2288# Predefined preprocessor variables. 2289 2290cat >>confdefs.h <<_ACEOF 2291#define PACKAGE_NAME "$PACKAGE_NAME" 2292_ACEOF 2293 2294cat >>confdefs.h <<_ACEOF 2295#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2296_ACEOF 2297 2298cat >>confdefs.h <<_ACEOF 2299#define PACKAGE_VERSION "$PACKAGE_VERSION" 2300_ACEOF 2301 2302cat >>confdefs.h <<_ACEOF 2303#define PACKAGE_STRING "$PACKAGE_STRING" 2304_ACEOF 2305 2306cat >>confdefs.h <<_ACEOF 2307#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2308_ACEOF 2309 2310cat >>confdefs.h <<_ACEOF 2311#define PACKAGE_URL "$PACKAGE_URL" 2312_ACEOF 2313 2314 2315# Let the site file select an alternate cache file if it wants to. 2316# Prefer an explicitly selected file to automatically selected ones. 2317ac_site_file1=NONE 2318ac_site_file2=NONE 2319if test -n "$CONFIG_SITE"; then 2320 # We do not want a PATH search for config.site. 2321 case $CONFIG_SITE in #(( 2322 -*) ac_site_file1=./$CONFIG_SITE;; 2323 */*) ac_site_file1=$CONFIG_SITE;; 2324 *) ac_site_file1=./$CONFIG_SITE;; 2325 esac 2326elif test "x$prefix" != xNONE; then 2327 ac_site_file1=$prefix/share/config.site 2328 ac_site_file2=$prefix/etc/config.site 2329else 2330 ac_site_file1=$ac_default_prefix/share/config.site 2331 ac_site_file2=$ac_default_prefix/etc/config.site 2332fi 2333for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2334do 2335 test "x$ac_site_file" = xNONE && continue 2336 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2337 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2338$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2339 sed 's/^/| /' "$ac_site_file" >&5 2340 . "$ac_site_file" \ 2341 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2343as_fn_error $? "failed to load site script $ac_site_file 2344See \`config.log' for more details" "$LINENO" 5; } 2345 fi 2346done 2347 2348if test -r "$cache_file"; then 2349 # Some versions of bash will fail to source /dev/null (special files 2350 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2351 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2352 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2353$as_echo "$as_me: loading cache $cache_file" >&6;} 2354 case $cache_file in 2355 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2356 *) . "./$cache_file";; 2357 esac 2358 fi 2359else 2360 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2361$as_echo "$as_me: creating cache $cache_file" >&6;} 2362 >$cache_file 2363fi 2364 2365# Check that the precious variables saved in the cache have kept the same 2366# value. 2367ac_cache_corrupted=false 2368for ac_var in $ac_precious_vars; do 2369 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2370 eval ac_new_set=\$ac_env_${ac_var}_set 2371 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2372 eval ac_new_val=\$ac_env_${ac_var}_value 2373 case $ac_old_set,$ac_new_set in 2374 set,) 2375 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2376$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2377 ac_cache_corrupted=: ;; 2378 ,set) 2379 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2380$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2381 ac_cache_corrupted=: ;; 2382 ,);; 2383 *) 2384 if test "x$ac_old_val" != "x$ac_new_val"; then 2385 # differences in whitespace do not lead to failure. 2386 ac_old_val_w=`echo x $ac_old_val` 2387 ac_new_val_w=`echo x $ac_new_val` 2388 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2390$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2391 ac_cache_corrupted=: 2392 else 2393 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2394$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2395 eval $ac_var=\$ac_old_val 2396 fi 2397 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2398$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2399 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2400$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2401 fi;; 2402 esac 2403 # Pass precious variables to config.status. 2404 if test "$ac_new_set" = set; then 2405 case $ac_new_val in 2406 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2407 *) ac_arg=$ac_var=$ac_new_val ;; 2408 esac 2409 case " $ac_configure_args " in 2410 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2411 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2412 esac 2413 fi 2414done 2415if $ac_cache_corrupted; then 2416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2418 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2419$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2420 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2421fi 2422## -------------------- ## 2423## Main body of script. ## 2424## -------------------- ## 2425 2426ac_ext=c 2427ac_cpp='$CPP $CPPFLAGS' 2428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2430ac_compiler_gnu=$ac_cv_c_compiler_gnu 2431 2432 2433 2434>confdefs.h # Kill PACKAGE_ macros 2435 2436 2437LPATH="$PATH:/usr/local/bin" 2438am__api_version='1.11' 2439 2440ac_aux_dir= 2441for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2442 if test -f "$ac_dir/install-sh"; then 2443 ac_aux_dir=$ac_dir 2444 ac_install_sh="$ac_aux_dir/install-sh -c" 2445 break 2446 elif test -f "$ac_dir/install.sh"; then 2447 ac_aux_dir=$ac_dir 2448 ac_install_sh="$ac_aux_dir/install.sh -c" 2449 break 2450 elif test -f "$ac_dir/shtool"; then 2451 ac_aux_dir=$ac_dir 2452 ac_install_sh="$ac_aux_dir/shtool install -c" 2453 break 2454 fi 2455done 2456if test -z "$ac_aux_dir"; then 2457 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2458fi 2459 2460# These three variables are undocumented and unsupported, 2461# and are intended to be withdrawn in a future Autoconf release. 2462# They can cause serious problems if a builder's source tree is in a directory 2463# whose full name contains unusual characters. 2464ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2465ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2466ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2467 2468 2469# Find a good install program. We prefer a C program (faster), 2470# so one script is as good as another. But avoid the broken or 2471# incompatible versions: 2472# SysV /etc/install, /usr/sbin/install 2473# SunOS /usr/etc/install 2474# IRIX /sbin/install 2475# AIX /bin/install 2476# AmigaOS /C/install, which installs bootblocks on floppy discs 2477# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2478# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2479# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2480# OS/2's system install, which has a completely different semantic 2481# ./install, which can be erroneously created by make from ./install.sh. 2482# Reject install programs that cannot install multiple files. 2483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2484$as_echo_n "checking for a BSD-compatible install... " >&6; } 2485if test -z "$INSTALL"; then 2486if test "${ac_cv_path_install+set}" = set; then : 2487 $as_echo_n "(cached) " >&6 2488else 2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2490for as_dir in $PATH 2491do 2492 IFS=$as_save_IFS 2493 test -z "$as_dir" && as_dir=. 2494 # Account for people who put trailing slashes in PATH elements. 2495case $as_dir/ in #(( 2496 ./ | .// | /[cC]/* | \ 2497 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2498 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2499 /usr/ucb/* ) ;; 2500 *) 2501 # OSF1 and SCO ODT 3.0 have their own names for install. 2502 # Don't use installbsd from OSF since it installs stuff as root 2503 # by default. 2504 for ac_prog in ginstall scoinst install; do 2505 for ac_exec_ext in '' $ac_executable_extensions; do 2506 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2507 if test $ac_prog = install && 2508 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2509 # AIX install. It has an incompatible calling convention. 2510 : 2511 elif test $ac_prog = install && 2512 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2513 # program-specific install script used by HP pwplus--don't use. 2514 : 2515 else 2516 rm -rf conftest.one conftest.two conftest.dir 2517 echo one > conftest.one 2518 echo two > conftest.two 2519 mkdir conftest.dir 2520 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2521 test -s conftest.one && test -s conftest.two && 2522 test -s conftest.dir/conftest.one && 2523 test -s conftest.dir/conftest.two 2524 then 2525 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2526 break 3 2527 fi 2528 fi 2529 fi 2530 done 2531 done 2532 ;; 2533esac 2534 2535 done 2536IFS=$as_save_IFS 2537 2538rm -rf conftest.one conftest.two conftest.dir 2539 2540fi 2541 if test "${ac_cv_path_install+set}" = set; then 2542 INSTALL=$ac_cv_path_install 2543 else 2544 # As a last resort, use the slow shell script. Don't cache a 2545 # value for INSTALL within a source directory, because that will 2546 # break other packages using the cache if that directory is 2547 # removed, or if the value is a relative name. 2548 INSTALL=$ac_install_sh 2549 fi 2550fi 2551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2552$as_echo "$INSTALL" >&6; } 2553 2554# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2555# It thinks the first close brace ends the variable substitution. 2556test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2557 2558test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2559 2560test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2561 2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2563$as_echo_n "checking whether build environment is sane... " >&6; } 2564# Just in case 2565sleep 1 2566echo timestamp > conftest.file 2567# Reject unsafe characters in $srcdir or the absolute working directory 2568# name. Accept space and tab only in the latter. 2569am_lf=' 2570' 2571case `pwd` in 2572 *[\\\"\#\$\&\'\`$am_lf]*) 2573 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2574esac 2575case $srcdir in 2576 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2577 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2578esac 2579 2580# Do `set' in a subshell so we don't clobber the current shell's 2581# arguments. Must try -L first in case configure is actually a 2582# symlink; some systems play weird games with the mod time of symlinks 2583# (eg FreeBSD returns the mod time of the symlink's containing 2584# directory). 2585if ( 2586 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2587 if test "$*" = "X"; then 2588 # -L didn't work. 2589 set X `ls -t "$srcdir/configure" conftest.file` 2590 fi 2591 rm -f conftest.file 2592 if test "$*" != "X $srcdir/configure conftest.file" \ 2593 && test "$*" != "X conftest.file $srcdir/configure"; then 2594 2595 # If neither matched, then we have a broken ls. This can happen 2596 # if, for instance, CONFIG_SHELL is bash and it inherits a 2597 # broken ls alias from the environment. This has actually 2598 # happened. Such a system could not be considered "sane". 2599 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2600alias in your environment" "$LINENO" 5 2601 fi 2602 2603 test "$2" = conftest.file 2604 ) 2605then 2606 # Ok. 2607 : 2608else 2609 as_fn_error $? "newly created file is older than distributed files! 2610Check your system clock" "$LINENO" 5 2611fi 2612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2613$as_echo "yes" >&6; } 2614test "$program_prefix" != NONE && 2615 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2616# Use a double $ so make ignores it. 2617test "$program_suffix" != NONE && 2618 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2619# Double any \ or $. 2620# By default was `s,x,x', remove it if useless. 2621ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2622program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2623 2624# expand $ac_aux_dir to an absolute path 2625am_aux_dir=`cd $ac_aux_dir && pwd` 2626 2627if test x"${MISSING+set}" != xset; then 2628 case $am_aux_dir in 2629 *\ * | *\ *) 2630 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2631 *) 2632 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2633 esac 2634fi 2635# Use eval to expand $SHELL 2636if eval "$MISSING --run true"; then 2637 am_missing_run="$MISSING --run " 2638else 2639 am_missing_run= 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2641$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2642fi 2643 2644if test x"${install_sh}" != xset; then 2645 case $am_aux_dir in 2646 *\ * | *\ *) 2647 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2648 *) 2649 install_sh="\${SHELL} $am_aux_dir/install-sh" 2650 esac 2651fi 2652 2653# Installed binaries are usually stripped using `strip' when the user 2654# run `make install-strip'. However `strip' might not be the right 2655# tool to use in cross-compilation environments, therefore Automake 2656# will honor the `STRIP' environment variable to overrule this program. 2657if test "$cross_compiling" != no; then 2658 if test -n "$ac_tool_prefix"; then 2659 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2660set dummy ${ac_tool_prefix}strip; ac_word=$2 2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2662$as_echo_n "checking for $ac_word... " >&6; } 2663if test "${ac_cv_prog_STRIP+set}" = set; then : 2664 $as_echo_n "(cached) " >&6 2665else 2666 if test -n "$STRIP"; then 2667 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2668else 2669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2670for as_dir in $PATH 2671do 2672 IFS=$as_save_IFS 2673 test -z "$as_dir" && as_dir=. 2674 for ac_exec_ext in '' $ac_executable_extensions; do 2675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2676 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2678 break 2 2679 fi 2680done 2681 done 2682IFS=$as_save_IFS 2683 2684fi 2685fi 2686STRIP=$ac_cv_prog_STRIP 2687if test -n "$STRIP"; then 2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2689$as_echo "$STRIP" >&6; } 2690else 2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2692$as_echo "no" >&6; } 2693fi 2694 2695 2696fi 2697if test -z "$ac_cv_prog_STRIP"; then 2698 ac_ct_STRIP=$STRIP 2699 # Extract the first word of "strip", so it can be a program name with args. 2700set dummy strip; ac_word=$2 2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2702$as_echo_n "checking for $ac_word... " >&6; } 2703if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2704 $as_echo_n "(cached) " >&6 2705else 2706 if test -n "$ac_ct_STRIP"; then 2707 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2708else 2709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2710for as_dir in $PATH 2711do 2712 IFS=$as_save_IFS 2713 test -z "$as_dir" && as_dir=. 2714 for ac_exec_ext in '' $ac_executable_extensions; do 2715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2716 ac_cv_prog_ac_ct_STRIP="strip" 2717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2718 break 2 2719 fi 2720done 2721 done 2722IFS=$as_save_IFS 2723 2724fi 2725fi 2726ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2727if test -n "$ac_ct_STRIP"; then 2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2729$as_echo "$ac_ct_STRIP" >&6; } 2730else 2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2732$as_echo "no" >&6; } 2733fi 2734 2735 if test "x$ac_ct_STRIP" = x; then 2736 STRIP=":" 2737 else 2738 case $cross_compiling:$ac_tool_warned in 2739yes:) 2740{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2741$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2742ac_tool_warned=yes ;; 2743esac 2744 STRIP=$ac_ct_STRIP 2745 fi 2746else 2747 STRIP="$ac_cv_prog_STRIP" 2748fi 2749 2750fi 2751INSTALL_STRIP_PROGRAM="install -s -m 555 -s" 2752 2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2754$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2755if test -z "$MKDIR_P"; then 2756 if test "${ac_cv_path_mkdir+set}" = set; then : 2757 $as_echo_n "(cached) " >&6 2758else 2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2760for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2761do 2762 IFS=$as_save_IFS 2763 test -z "$as_dir" && as_dir=. 2764 for ac_prog in mkdir gmkdir; do 2765 for ac_exec_ext in '' $ac_executable_extensions; do 2766 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2767 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2768 'mkdir (GNU coreutils) '* | \ 2769 'mkdir (coreutils) '* | \ 2770 'mkdir (fileutils) '4.1*) 2771 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2772 break 3;; 2773 esac 2774 done 2775 done 2776 done 2777IFS=$as_save_IFS 2778 2779fi 2780 2781 test -d ./--version && rmdir ./--version 2782 if test "${ac_cv_path_mkdir+set}" = set; then 2783 MKDIR_P="$ac_cv_path_mkdir -p" 2784 else 2785 # As a last resort, use the slow shell script. Don't cache a 2786 # value for MKDIR_P within a source directory, because that will 2787 # break other packages using the cache if that directory is 2788 # removed, or if the value is a relative name. 2789 MKDIR_P="$ac_install_sh -d" 2790 fi 2791fi 2792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2793$as_echo "$MKDIR_P" >&6; } 2794 2795mkdir_p="$MKDIR_P" 2796case $mkdir_p in 2797 [\\/$]* | ?:[\\/]*) ;; 2798 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2799esac 2800 2801for ac_prog in gawk mawk nawk awk 2802do 2803 # Extract the first word of "$ac_prog", so it can be a program name with args. 2804set dummy $ac_prog; ac_word=$2 2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2806$as_echo_n "checking for $ac_word... " >&6; } 2807if test "${ac_cv_prog_AWK+set}" = set; then : 2808 $as_echo_n "(cached) " >&6 2809else 2810 if test -n "$AWK"; then 2811 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2812else 2813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2814for as_dir in $PATH 2815do 2816 IFS=$as_save_IFS 2817 test -z "$as_dir" && as_dir=. 2818 for ac_exec_ext in '' $ac_executable_extensions; do 2819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2820 ac_cv_prog_AWK="$ac_prog" 2821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2822 break 2 2823 fi 2824done 2825 done 2826IFS=$as_save_IFS 2827 2828fi 2829fi 2830AWK=$ac_cv_prog_AWK 2831if test -n "$AWK"; then 2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2833$as_echo "$AWK" >&6; } 2834else 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2836$as_echo "no" >&6; } 2837fi 2838 2839 2840 test -n "$AWK" && break 2841done 2842 2843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2844$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2845set x ${MAKE-make} 2846ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2847if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 2848 $as_echo_n "(cached) " >&6 2849else 2850 cat >conftest.make <<\_ACEOF 2851SHELL = /bin/sh 2852all: 2853 @echo '@@@%%%=$(MAKE)=@@@%%%' 2854_ACEOF 2855# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2856case `${MAKE-make} -f conftest.make 2>/dev/null` in 2857 *@@@%%%=?*=@@@%%%*) 2858 eval ac_cv_prog_make_${ac_make}_set=yes;; 2859 *) 2860 eval ac_cv_prog_make_${ac_make}_set=no;; 2861esac 2862rm -f conftest.make 2863fi 2864if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2866$as_echo "yes" >&6; } 2867 SET_MAKE= 2868else 2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2870$as_echo "no" >&6; } 2871 SET_MAKE="MAKE=${MAKE-make}" 2872fi 2873 2874rm -rf .tst 2>/dev/null 2875mkdir .tst 2>/dev/null 2876if test -d .tst; then 2877 am__leading_dot=. 2878else 2879 am__leading_dot=_ 2880fi 2881rmdir .tst 2>/dev/null 2882 2883if test "`cd $srcdir && pwd`" != "`pwd`"; then 2884 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2885 # is not polluted with repeated "-I." 2886 am__isrc=' -I$(srcdir)' 2887 # test to see if srcdir already configured 2888 if test -f $srcdir/config.status; then 2889 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2890 fi 2891fi 2892 2893# test whether we have cygpath 2894if test -z "$CYGPATH_W"; then 2895 if (cygpath --version) >/dev/null 2>/dev/null; then 2896 CYGPATH_W='cygpath -w' 2897 else 2898 CYGPATH_W=echo 2899 fi 2900fi 2901 2902 2903# Define the identity of the package. 2904 PACKAGE='maildrop' 2905 VERSION='2.5.2' 2906 2907 2908# Some tools Automake needs. 2909 2910ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2911 2912 2913AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2914 2915 2916AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2917 2918 2919AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2920 2921 2922MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2923 2924# We need awk for the "check" target. The system "awk" is bad on 2925# some platforms. 2926# Always define AMTAR for backward compatibility. 2927 2928AMTAR=${AMTAR-"${am_missing_run}tar"} 2929 2930am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2931 2932 2933 2934 2935 2936 2937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2938$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2939set x ${MAKE-make} 2940ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2941if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 2942 $as_echo_n "(cached) " >&6 2943else 2944 cat >conftest.make <<\_ACEOF 2945SHELL = /bin/sh 2946all: 2947 @echo '@@@%%%=$(MAKE)=@@@%%%' 2948_ACEOF 2949# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2950case `${MAKE-make} -f conftest.make 2>/dev/null` in 2951 *@@@%%%=?*=@@@%%%*) 2952 eval ac_cv_prog_make_${ac_make}_set=yes;; 2953 *) 2954 eval ac_cv_prog_make_${ac_make}_set=no;; 2955esac 2956rm -f conftest.make 2957fi 2958if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2960$as_echo "yes" >&6; } 2961 SET_MAKE= 2962else 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2964$as_echo "no" >&6; } 2965 SET_MAKE="MAKE=${MAKE-make}" 2966fi 2967 2968ac_config_headers="$ac_config_headers config.h" 2969 2970 2971DEPDIR="${am__leading_dot}deps" 2972 2973ac_config_commands="$ac_config_commands depfiles" 2974 2975 2976am_make=${MAKE-make} 2977cat > confinc << 'END' 2978am__doit: 2979 @echo this is the am__doit target 2980.PHONY: am__doit 2981END 2982# If we don't find an include directive, just comment out the code. 2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2984$as_echo_n "checking for style of include used by $am_make... " >&6; } 2985am__include="#" 2986am__quote= 2987_am_result=none 2988# First try GNU make style include. 2989echo "include confinc" > confmf 2990# Ignore all kinds of additional output from `make'. 2991case `$am_make -s -f confmf 2> /dev/null` in #( 2992*the\ am__doit\ target*) 2993 am__include=include 2994 am__quote= 2995 _am_result=GNU 2996 ;; 2997esac 2998# Now try BSD make style include. 2999if test "$am__include" = "#"; then 3000 echo '.include "confinc"' > confmf 3001 case `$am_make -s -f confmf 2> /dev/null` in #( 3002 *the\ am__doit\ target*) 3003 am__include=.include 3004 am__quote="\"" 3005 _am_result=BSD 3006 ;; 3007 esac 3008fi 3009 3010 3011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3012$as_echo "$_am_result" >&6; } 3013rm -f confinc confmf 3014 3015# Check whether --enable-dependency-tracking was given. 3016if test "${enable_dependency_tracking+set}" = set; then : 3017 enableval=$enable_dependency_tracking; 3018fi 3019 3020if test "x$enable_dependency_tracking" != xno; then 3021 am_depcomp="$ac_aux_dir/depcomp" 3022 AMDEPBACKSLASH='\' 3023fi 3024 if test "x$enable_dependency_tracking" != xno; then 3025 AMDEP_TRUE= 3026 AMDEP_FALSE='#' 3027else 3028 AMDEP_TRUE='#' 3029 AMDEP_FALSE= 3030fi 3031 3032 3033ac_ext=c 3034ac_cpp='$CPP $CPPFLAGS' 3035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3037ac_compiler_gnu=$ac_cv_c_compiler_gnu 3038if test -n "$ac_tool_prefix"; then 3039 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3040set dummy ${ac_tool_prefix}gcc; ac_word=$2 3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3042$as_echo_n "checking for $ac_word... " >&6; } 3043if test "${ac_cv_prog_CC+set}" = set; then : 3044 $as_echo_n "(cached) " >&6 3045else 3046 if test -n "$CC"; then 3047 ac_cv_prog_CC="$CC" # Let the user override the test. 3048else 3049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3050for as_dir in $PATH 3051do 3052 IFS=$as_save_IFS 3053 test -z "$as_dir" && as_dir=. 3054 for ac_exec_ext in '' $ac_executable_extensions; do 3055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3056 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3058 break 2 3059 fi 3060done 3061 done 3062IFS=$as_save_IFS 3063 3064fi 3065fi 3066CC=$ac_cv_prog_CC 3067if test -n "$CC"; then 3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3069$as_echo "$CC" >&6; } 3070else 3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3072$as_echo "no" >&6; } 3073fi 3074 3075 3076fi 3077if test -z "$ac_cv_prog_CC"; then 3078 ac_ct_CC=$CC 3079 # Extract the first word of "gcc", so it can be a program name with args. 3080set dummy gcc; ac_word=$2 3081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3082$as_echo_n "checking for $ac_word... " >&6; } 3083if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3084 $as_echo_n "(cached) " >&6 3085else 3086 if test -n "$ac_ct_CC"; then 3087 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3088else 3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3090for as_dir in $PATH 3091do 3092 IFS=$as_save_IFS 3093 test -z "$as_dir" && as_dir=. 3094 for ac_exec_ext in '' $ac_executable_extensions; do 3095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3096 ac_cv_prog_ac_ct_CC="gcc" 3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3098 break 2 3099 fi 3100done 3101 done 3102IFS=$as_save_IFS 3103 3104fi 3105fi 3106ac_ct_CC=$ac_cv_prog_ac_ct_CC 3107if test -n "$ac_ct_CC"; then 3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3109$as_echo "$ac_ct_CC" >&6; } 3110else 3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3112$as_echo "no" >&6; } 3113fi 3114 3115 if test "x$ac_ct_CC" = x; then 3116 CC="" 3117 else 3118 case $cross_compiling:$ac_tool_warned in 3119yes:) 3120{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3122ac_tool_warned=yes ;; 3123esac 3124 CC=$ac_ct_CC 3125 fi 3126else 3127 CC="$ac_cv_prog_CC" 3128fi 3129 3130if test -z "$CC"; then 3131 if test -n "$ac_tool_prefix"; then 3132 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3133set dummy ${ac_tool_prefix}cc; ac_word=$2 3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3135$as_echo_n "checking for $ac_word... " >&6; } 3136if test "${ac_cv_prog_CC+set}" = set; then : 3137 $as_echo_n "(cached) " >&6 3138else 3139 if test -n "$CC"; then 3140 ac_cv_prog_CC="$CC" # Let the user override the test. 3141else 3142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3143for as_dir in $PATH 3144do 3145 IFS=$as_save_IFS 3146 test -z "$as_dir" && as_dir=. 3147 for ac_exec_ext in '' $ac_executable_extensions; do 3148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3149 ac_cv_prog_CC="${ac_tool_prefix}cc" 3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3151 break 2 3152 fi 3153done 3154 done 3155IFS=$as_save_IFS 3156 3157fi 3158fi 3159CC=$ac_cv_prog_CC 3160if test -n "$CC"; then 3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3162$as_echo "$CC" >&6; } 3163else 3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3165$as_echo "no" >&6; } 3166fi 3167 3168 3169 fi 3170fi 3171if test -z "$CC"; then 3172 # Extract the first word of "cc", so it can be a program name with args. 3173set dummy cc; ac_word=$2 3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3175$as_echo_n "checking for $ac_word... " >&6; } 3176if test "${ac_cv_prog_CC+set}" = set; then : 3177 $as_echo_n "(cached) " >&6 3178else 3179 if test -n "$CC"; then 3180 ac_cv_prog_CC="$CC" # Let the user override the test. 3181else 3182 ac_prog_rejected=no 3183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3184for as_dir in $PATH 3185do 3186 IFS=$as_save_IFS 3187 test -z "$as_dir" && as_dir=. 3188 for ac_exec_ext in '' $ac_executable_extensions; do 3189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3190 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3191 ac_prog_rejected=yes 3192 continue 3193 fi 3194 ac_cv_prog_CC="cc" 3195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3196 break 2 3197 fi 3198done 3199 done 3200IFS=$as_save_IFS 3201 3202if test $ac_prog_rejected = yes; then 3203 # We found a bogon in the path, so make sure we never use it. 3204 set dummy $ac_cv_prog_CC 3205 shift 3206 if test $# != 0; then 3207 # We chose a different compiler from the bogus one. 3208 # However, it has the same basename, so the bogon will be chosen 3209 # first if we set CC to just the basename; use the full file name. 3210 shift 3211 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3212 fi 3213fi 3214fi 3215fi 3216CC=$ac_cv_prog_CC 3217if test -n "$CC"; then 3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3219$as_echo "$CC" >&6; } 3220else 3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3222$as_echo "no" >&6; } 3223fi 3224 3225 3226fi 3227if test -z "$CC"; then 3228 if test -n "$ac_tool_prefix"; then 3229 for ac_prog in cl.exe 3230 do 3231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3232set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3234$as_echo_n "checking for $ac_word... " >&6; } 3235if test "${ac_cv_prog_CC+set}" = set; then : 3236 $as_echo_n "(cached) " >&6 3237else 3238 if test -n "$CC"; then 3239 ac_cv_prog_CC="$CC" # Let the user override the test. 3240else 3241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3242for as_dir in $PATH 3243do 3244 IFS=$as_save_IFS 3245 test -z "$as_dir" && as_dir=. 3246 for ac_exec_ext in '' $ac_executable_extensions; do 3247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3248 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3250 break 2 3251 fi 3252done 3253 done 3254IFS=$as_save_IFS 3255 3256fi 3257fi 3258CC=$ac_cv_prog_CC 3259if test -n "$CC"; then 3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3261$as_echo "$CC" >&6; } 3262else 3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3264$as_echo "no" >&6; } 3265fi 3266 3267 3268 test -n "$CC" && break 3269 done 3270fi 3271if test -z "$CC"; then 3272 ac_ct_CC=$CC 3273 for ac_prog in cl.exe 3274do 3275 # Extract the first word of "$ac_prog", so it can be a program name with args. 3276set dummy $ac_prog; ac_word=$2 3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3278$as_echo_n "checking for $ac_word... " >&6; } 3279if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3280 $as_echo_n "(cached) " >&6 3281else 3282 if test -n "$ac_ct_CC"; then 3283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3284else 3285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3286for as_dir in $PATH 3287do 3288 IFS=$as_save_IFS 3289 test -z "$as_dir" && as_dir=. 3290 for ac_exec_ext in '' $ac_executable_extensions; do 3291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3292 ac_cv_prog_ac_ct_CC="$ac_prog" 3293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3294 break 2 3295 fi 3296done 3297 done 3298IFS=$as_save_IFS 3299 3300fi 3301fi 3302ac_ct_CC=$ac_cv_prog_ac_ct_CC 3303if test -n "$ac_ct_CC"; then 3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3305$as_echo "$ac_ct_CC" >&6; } 3306else 3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3308$as_echo "no" >&6; } 3309fi 3310 3311 3312 test -n "$ac_ct_CC" && break 3313done 3314 3315 if test "x$ac_ct_CC" = x; then 3316 CC="" 3317 else 3318 case $cross_compiling:$ac_tool_warned in 3319yes:) 3320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3322ac_tool_warned=yes ;; 3323esac 3324 CC=$ac_ct_CC 3325 fi 3326fi 3327 3328fi 3329 3330 3331test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3333as_fn_error $? "no acceptable C compiler found in \$PATH 3334See \`config.log' for more details" "$LINENO" 5; } 3335 3336# Provide some information about the compiler. 3337$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3338set X $ac_compile 3339ac_compiler=$2 3340for ac_option in --version -v -V -qversion; do 3341 { { ac_try="$ac_compiler $ac_option >&5" 3342case "(($ac_try" in 3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3344 *) ac_try_echo=$ac_try;; 3345esac 3346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3347$as_echo "$ac_try_echo"; } >&5 3348 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3349 ac_status=$? 3350 if test -s conftest.err; then 3351 sed '10a\ 3352... rest of stderr output deleted ... 3353 10q' conftest.err >conftest.er1 3354 cat conftest.er1 >&5 3355 fi 3356 rm -f conftest.er1 conftest.err 3357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3358 test $ac_status = 0; } 3359done 3360 3361cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3362/* end confdefs.h. */ 3363 3364int 3365main () 3366{ 3367 3368 ; 3369 return 0; 3370} 3371_ACEOF 3372ac_clean_files_save=$ac_clean_files 3373ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3374# Try to create an executable without -o first, disregard a.out. 3375# It will help us diagnose broken compilers, and finding out an intuition 3376# of exeext. 3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3378$as_echo_n "checking whether the C compiler works... " >&6; } 3379ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3380 3381# The possible output files: 3382ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3383 3384ac_rmfiles= 3385for ac_file in $ac_files 3386do 3387 case $ac_file in 3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3389 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3390 esac 3391done 3392rm -f $ac_rmfiles 3393 3394if { { ac_try="$ac_link_default" 3395case "(($ac_try" in 3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3397 *) ac_try_echo=$ac_try;; 3398esac 3399eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3400$as_echo "$ac_try_echo"; } >&5 3401 (eval "$ac_link_default") 2>&5 3402 ac_status=$? 3403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3404 test $ac_status = 0; }; then : 3405 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3406# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3407# in a Makefile. We should not override ac_cv_exeext if it was cached, 3408# so that the user can short-circuit this test for compilers unknown to 3409# Autoconf. 3410for ac_file in $ac_files '' 3411do 3412 test -f "$ac_file" || continue 3413 case $ac_file in 3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3415 ;; 3416 [ab].out ) 3417 # We found the default executable, but exeext='' is most 3418 # certainly right. 3419 break;; 3420 *.* ) 3421 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3422 then :; else 3423 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3424 fi 3425 # We set ac_cv_exeext here because the later test for it is not 3426 # safe: cross compilers may not add the suffix if given an `-o' 3427 # argument, so we may need to know it at that point already. 3428 # Even if this section looks crufty: it has the advantage of 3429 # actually working. 3430 break;; 3431 * ) 3432 break;; 3433 esac 3434done 3435test "$ac_cv_exeext" = no && ac_cv_exeext= 3436 3437else 3438 ac_file='' 3439fi 3440if test -z "$ac_file"; then : 3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3442$as_echo "no" >&6; } 3443$as_echo "$as_me: failed program was:" >&5 3444sed 's/^/| /' conftest.$ac_ext >&5 3445 3446{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3448as_fn_error 77 "C compiler cannot create executables 3449See \`config.log' for more details" "$LINENO" 5; } 3450else 3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3452$as_echo "yes" >&6; } 3453fi 3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3455$as_echo_n "checking for C compiler default output file name... " >&6; } 3456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3457$as_echo "$ac_file" >&6; } 3458ac_exeext=$ac_cv_exeext 3459 3460rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3461ac_clean_files=$ac_clean_files_save 3462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3463$as_echo_n "checking for suffix of executables... " >&6; } 3464if { { ac_try="$ac_link" 3465case "(($ac_try" in 3466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3467 *) ac_try_echo=$ac_try;; 3468esac 3469eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3470$as_echo "$ac_try_echo"; } >&5 3471 (eval "$ac_link") 2>&5 3472 ac_status=$? 3473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3474 test $ac_status = 0; }; then : 3475 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3476# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3477# work properly (i.e., refer to `conftest.exe'), while it won't with 3478# `rm'. 3479for ac_file in conftest.exe conftest conftest.*; do 3480 test -f "$ac_file" || continue 3481 case $ac_file in 3482 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3483 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3484 break;; 3485 * ) break;; 3486 esac 3487done 3488else 3489 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3490$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3491as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3492See \`config.log' for more details" "$LINENO" 5; } 3493fi 3494rm -f conftest conftest$ac_cv_exeext 3495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3496$as_echo "$ac_cv_exeext" >&6; } 3497 3498rm -f conftest.$ac_ext 3499EXEEXT=$ac_cv_exeext 3500ac_exeext=$EXEEXT 3501cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3502/* end confdefs.h. */ 3503#include <stdio.h> 3504int 3505main () 3506{ 3507FILE *f = fopen ("conftest.out", "w"); 3508 return ferror (f) || fclose (f) != 0; 3509 3510 ; 3511 return 0; 3512} 3513_ACEOF 3514ac_clean_files="$ac_clean_files conftest.out" 3515# Check that the compiler produces executables we can run. If not, either 3516# the compiler is broken, or we cross compile. 3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3518$as_echo_n "checking whether we are cross compiling... " >&6; } 3519if test "$cross_compiling" != yes; then 3520 { { ac_try="$ac_link" 3521case "(($ac_try" in 3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3523 *) ac_try_echo=$ac_try;; 3524esac 3525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3526$as_echo "$ac_try_echo"; } >&5 3527 (eval "$ac_link") 2>&5 3528 ac_status=$? 3529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3530 test $ac_status = 0; } 3531 if { ac_try='./conftest$ac_cv_exeext' 3532 { { case "(($ac_try" in 3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3534 *) ac_try_echo=$ac_try;; 3535esac 3536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3537$as_echo "$ac_try_echo"; } >&5 3538 (eval "$ac_try") 2>&5 3539 ac_status=$? 3540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3541 test $ac_status = 0; }; }; then 3542 cross_compiling=no 3543 else 3544 if test "$cross_compiling" = maybe; then 3545 cross_compiling=yes 3546 else 3547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3548$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3549as_fn_error $? "cannot run C compiled programs. 3550If you meant to cross compile, use \`--host'. 3551See \`config.log' for more details" "$LINENO" 5; } 3552 fi 3553 fi 3554fi 3555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3556$as_echo "$cross_compiling" >&6; } 3557 3558rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3559ac_clean_files=$ac_clean_files_save 3560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3561$as_echo_n "checking for suffix of object files... " >&6; } 3562if test "${ac_cv_objext+set}" = set; then : 3563 $as_echo_n "(cached) " >&6 3564else 3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3566/* end confdefs.h. */ 3567 3568int 3569main () 3570{ 3571 3572 ; 3573 return 0; 3574} 3575_ACEOF 3576rm -f conftest.o conftest.obj 3577if { { ac_try="$ac_compile" 3578case "(($ac_try" in 3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3580 *) ac_try_echo=$ac_try;; 3581esac 3582eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3583$as_echo "$ac_try_echo"; } >&5 3584 (eval "$ac_compile") 2>&5 3585 ac_status=$? 3586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3587 test $ac_status = 0; }; then : 3588 for ac_file in conftest.o conftest.obj conftest.*; do 3589 test -f "$ac_file" || continue; 3590 case $ac_file in 3591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3592 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3593 break;; 3594 esac 3595done 3596else 3597 $as_echo "$as_me: failed program was:" >&5 3598sed 's/^/| /' conftest.$ac_ext >&5 3599 3600{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3602as_fn_error $? "cannot compute suffix of object files: cannot compile 3603See \`config.log' for more details" "$LINENO" 5; } 3604fi 3605rm -f conftest.$ac_cv_objext conftest.$ac_ext 3606fi 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3608$as_echo "$ac_cv_objext" >&6; } 3609OBJEXT=$ac_cv_objext 3610ac_objext=$OBJEXT 3611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3612$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3613if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3614 $as_echo_n "(cached) " >&6 3615else 3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3617/* end confdefs.h. */ 3618 3619int 3620main () 3621{ 3622#ifndef __GNUC__ 3623 choke me 3624#endif 3625 3626 ; 3627 return 0; 3628} 3629_ACEOF 3630if ac_fn_c_try_compile "$LINENO"; then : 3631 ac_compiler_gnu=yes 3632else 3633 ac_compiler_gnu=no 3634fi 3635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3636ac_cv_c_compiler_gnu=$ac_compiler_gnu 3637 3638fi 3639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3640$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3641if test $ac_compiler_gnu = yes; then 3642 GCC=yes 3643else 3644 GCC= 3645fi 3646ac_test_CFLAGS=${CFLAGS+set} 3647ac_save_CFLAGS=$CFLAGS 3648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3649$as_echo_n "checking whether $CC accepts -g... " >&6; } 3650if test "${ac_cv_prog_cc_g+set}" = set; then : 3651 $as_echo_n "(cached) " >&6 3652else 3653 ac_save_c_werror_flag=$ac_c_werror_flag 3654 ac_c_werror_flag=yes 3655 ac_cv_prog_cc_g=no 3656 CFLAGS="-g" 3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3658/* end confdefs.h. */ 3659 3660int 3661main () 3662{ 3663 3664 ; 3665 return 0; 3666} 3667_ACEOF 3668if ac_fn_c_try_compile "$LINENO"; then : 3669 ac_cv_prog_cc_g=yes 3670else 3671 CFLAGS="" 3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3673/* end confdefs.h. */ 3674 3675int 3676main () 3677{ 3678 3679 ; 3680 return 0; 3681} 3682_ACEOF 3683if ac_fn_c_try_compile "$LINENO"; then : 3684 3685else 3686 ac_c_werror_flag=$ac_save_c_werror_flag 3687 CFLAGS="-g" 3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3689/* end confdefs.h. */ 3690 3691int 3692main () 3693{ 3694 3695 ; 3696 return 0; 3697} 3698_ACEOF 3699if ac_fn_c_try_compile "$LINENO"; then : 3700 ac_cv_prog_cc_g=yes 3701fi 3702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3703fi 3704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3705fi 3706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3707 ac_c_werror_flag=$ac_save_c_werror_flag 3708fi 3709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3710$as_echo "$ac_cv_prog_cc_g" >&6; } 3711if test "$ac_test_CFLAGS" = set; then 3712 CFLAGS=$ac_save_CFLAGS 3713elif test $ac_cv_prog_cc_g = yes; then 3714 if test "$GCC" = yes; then 3715 CFLAGS="-g -O2" 3716 else 3717 CFLAGS="-g" 3718 fi 3719else 3720 if test "$GCC" = yes; then 3721 CFLAGS="-O2" 3722 else 3723 CFLAGS= 3724 fi 3725fi 3726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3727$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3728if test "${ac_cv_prog_cc_c89+set}" = set; then : 3729 $as_echo_n "(cached) " >&6 3730else 3731 ac_cv_prog_cc_c89=no 3732ac_save_CC=$CC 3733cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3734/* end confdefs.h. */ 3735#include <stdarg.h> 3736#include <stdio.h> 3737#include <sys/types.h> 3738#include <sys/stat.h> 3739/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3740struct buf { int x; }; 3741FILE * (*rcsopen) (struct buf *, struct stat *, int); 3742static char *e (p, i) 3743 char **p; 3744 int i; 3745{ 3746 return p[i]; 3747} 3748static char *f (char * (*g) (char **, int), char **p, ...) 3749{ 3750 char *s; 3751 va_list v; 3752 va_start (v,p); 3753 s = g (p, va_arg (v,int)); 3754 va_end (v); 3755 return s; 3756} 3757 3758/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3759 function prototypes and stuff, but not '\xHH' hex character constants. 3760 These don't provoke an error unfortunately, instead are silently treated 3761 as 'x'. The following induces an error, until -std is added to get 3762 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3763 array size at least. It's necessary to write '\x00'==0 to get something 3764 that's true only with -std. */ 3765int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3766 3767/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3768 inside strings and character constants. */ 3769#define FOO(x) 'x' 3770int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3771 3772int test (int i, double x); 3773struct s1 {int (*f) (int a);}; 3774struct s2 {int (*f) (double a);}; 3775int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3776int argc; 3777char **argv; 3778int 3779main () 3780{ 3781return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3782 ; 3783 return 0; 3784} 3785_ACEOF 3786for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3787 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3788do 3789 CC="$ac_save_CC $ac_arg" 3790 if ac_fn_c_try_compile "$LINENO"; then : 3791 ac_cv_prog_cc_c89=$ac_arg 3792fi 3793rm -f core conftest.err conftest.$ac_objext 3794 test "x$ac_cv_prog_cc_c89" != "xno" && break 3795done 3796rm -f conftest.$ac_ext 3797CC=$ac_save_CC 3798 3799fi 3800# AC_CACHE_VAL 3801case "x$ac_cv_prog_cc_c89" in 3802 x) 3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3804$as_echo "none needed" >&6; } ;; 3805 xno) 3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3807$as_echo "unsupported" >&6; } ;; 3808 *) 3809 CC="$CC $ac_cv_prog_cc_c89" 3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3811$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3812esac 3813if test "x$ac_cv_prog_cc_c89" != xno; then : 3814 3815fi 3816 3817ac_ext=c 3818ac_cpp='$CPP $CPPFLAGS' 3819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3821ac_compiler_gnu=$ac_cv_c_compiler_gnu 3822 3823depcc="$CC" am_compiler_list= 3824 3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3826$as_echo_n "checking dependency style of $depcc... " >&6; } 3827if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3828 $as_echo_n "(cached) " >&6 3829else 3830 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3831 # We make a subdir and do the tests there. Otherwise we can end up 3832 # making bogus files that we don't know about and never remove. For 3833 # instance it was reported that on HP-UX the gcc test will end up 3834 # making a dummy file named `D' -- because `-MD' means `put the output 3835 # in D'. 3836 mkdir conftest.dir 3837 # Copy depcomp to subdir because otherwise we won't find it if we're 3838 # using a relative directory. 3839 cp "$am_depcomp" conftest.dir 3840 cd conftest.dir 3841 # We will build objects and dependencies in a subdirectory because 3842 # it helps to detect inapplicable dependency modes. For instance 3843 # both Tru64's cc and ICC support -MD to output dependencies as a 3844 # side effect of compilation, but ICC will put the dependencies in 3845 # the current directory while Tru64 will put them in the object 3846 # directory. 3847 mkdir sub 3848 3849 am_cv_CC_dependencies_compiler_type=none 3850 if test "$am_compiler_list" = ""; then 3851 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3852 fi 3853 am__universal=false 3854 case " $depcc " in #( 3855 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3856 esac 3857 3858 for depmode in $am_compiler_list; do 3859 # Setup a source with many dependencies, because some compilers 3860 # like to wrap large dependency lists on column 80 (with \), and 3861 # we should not choose a depcomp mode which is confused by this. 3862 # 3863 # We need to recreate these files for each test, as the compiler may 3864 # overwrite some of them when testing with obscure command lines. 3865 # This happens at least with the AIX C compiler. 3866 : > sub/conftest.c 3867 for i in 1 2 3 4 5 6; do 3868 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3869 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3870 # Solaris 8's {/usr,}/bin/sh. 3871 touch sub/conftst$i.h 3872 done 3873 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3874 3875 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3876 # mode. It turns out that the SunPro C++ compiler does not properly 3877 # handle `-M -o', and we need to detect this. Also, some Intel 3878 # versions had trouble with output in subdirs 3879 am__obj=sub/conftest.${OBJEXT-o} 3880 am__minus_obj="-o $am__obj" 3881 case $depmode in 3882 gcc) 3883 # This depmode causes a compiler race in universal mode. 3884 test "$am__universal" = false || continue 3885 ;; 3886 nosideeffect) 3887 # after this tag, mechanisms are not by side-effect, so they'll 3888 # only be used when explicitly requested 3889 if test "x$enable_dependency_tracking" = xyes; then 3890 continue 3891 else 3892 break 3893 fi 3894 ;; 3895 msvisualcpp | msvcmsys) 3896 # This compiler won't grok `-c -o', but also, the minuso test has 3897 # not run yet. These depmodes are late enough in the game, and 3898 # so weak that their functioning should not be impacted. 3899 am__obj=conftest.${OBJEXT-o} 3900 am__minus_obj= 3901 ;; 3902 none) break ;; 3903 esac 3904 if depmode=$depmode \ 3905 source=sub/conftest.c object=$am__obj \ 3906 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3907 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3908 >/dev/null 2>conftest.err && 3909 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3910 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3911 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3912 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3913 # icc doesn't choke on unknown options, it will just issue warnings 3914 # or remarks (even with -Werror). So we grep stderr for any message 3915 # that says an option was ignored or not supported. 3916 # When given -MP, icc 7.0 and 7.1 complain thusly: 3917 # icc: Command line warning: ignoring option '-M'; no argument required 3918 # The diagnosis changed in icc 8.0: 3919 # icc: Command line remark: option '-MP' not supported 3920 if (grep 'ignoring option' conftest.err || 3921 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3922 am_cv_CC_dependencies_compiler_type=$depmode 3923 break 3924 fi 3925 fi 3926 done 3927 3928 cd .. 3929 rm -rf conftest.dir 3930else 3931 am_cv_CC_dependencies_compiler_type=none 3932fi 3933 3934fi 3935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3936$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3937CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3938 3939 if 3940 test "x$enable_dependency_tracking" != xno \ 3941 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3942 am__fastdepCC_TRUE= 3943 am__fastdepCC_FALSE='#' 3944else 3945 am__fastdepCC_TRUE='#' 3946 am__fastdepCC_FALSE= 3947fi 3948 3949 3950 3951ac_ext=c 3952ac_cpp='$CPP $CPPFLAGS' 3953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3955ac_compiler_gnu=$ac_cv_c_compiler_gnu 3956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3957$as_echo_n "checking how to run the C preprocessor... " >&6; } 3958# On Suns, sometimes $CPP names a directory. 3959if test -n "$CPP" && test -d "$CPP"; then 3960 CPP= 3961fi 3962if test -z "$CPP"; then 3963 if test "${ac_cv_prog_CPP+set}" = set; then : 3964 $as_echo_n "(cached) " >&6 3965else 3966 # Double quotes because CPP needs to be expanded 3967 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3968 do 3969 ac_preproc_ok=false 3970for ac_c_preproc_warn_flag in '' yes 3971do 3972 # Use a header file that comes with gcc, so configuring glibc 3973 # with a fresh cross-compiler works. 3974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3975 # <limits.h> exists even on freestanding compilers. 3976 # On the NeXT, cc -E runs the code through the compiler's parser, 3977 # not just through cpp. "Syntax error" is here to catch this case. 3978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3979/* end confdefs.h. */ 3980#ifdef __STDC__ 3981# include <limits.h> 3982#else 3983# include <assert.h> 3984#endif 3985 Syntax error 3986_ACEOF 3987if ac_fn_c_try_cpp "$LINENO"; then : 3988 3989else 3990 # Broken: fails on valid input. 3991continue 3992fi 3993rm -f conftest.err conftest.$ac_ext 3994 3995 # OK, works on sane cases. Now check whether nonexistent headers 3996 # can be detected and how. 3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3998/* end confdefs.h. */ 3999#include <ac_nonexistent.h> 4000_ACEOF 4001if ac_fn_c_try_cpp "$LINENO"; then : 4002 # Broken: success on invalid input. 4003continue 4004else 4005 # Passes both tests. 4006ac_preproc_ok=: 4007break 4008fi 4009rm -f conftest.err conftest.$ac_ext 4010 4011done 4012# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4013rm -f conftest.err conftest.$ac_ext 4014if $ac_preproc_ok; then : 4015 break 4016fi 4017 4018 done 4019 ac_cv_prog_CPP=$CPP 4020 4021fi 4022 CPP=$ac_cv_prog_CPP 4023else 4024 ac_cv_prog_CPP=$CPP 4025fi 4026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4027$as_echo "$CPP" >&6; } 4028ac_preproc_ok=false 4029for ac_c_preproc_warn_flag in '' yes 4030do 4031 # Use a header file that comes with gcc, so configuring glibc 4032 # with a fresh cross-compiler works. 4033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4034 # <limits.h> exists even on freestanding compilers. 4035 # On the NeXT, cc -E runs the code through the compiler's parser, 4036 # not just through cpp. "Syntax error" is here to catch this case. 4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4038/* end confdefs.h. */ 4039#ifdef __STDC__ 4040# include <limits.h> 4041#else 4042# include <assert.h> 4043#endif 4044 Syntax error 4045_ACEOF 4046if ac_fn_c_try_cpp "$LINENO"; then : 4047 4048else 4049 # Broken: fails on valid input. 4050continue 4051fi 4052rm -f conftest.err conftest.$ac_ext 4053 4054 # OK, works on sane cases. Now check whether nonexistent headers 4055 # can be detected and how. 4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4057/* end confdefs.h. */ 4058#include <ac_nonexistent.h> 4059_ACEOF 4060if ac_fn_c_try_cpp "$LINENO"; then : 4061 # Broken: success on invalid input. 4062continue 4063else 4064 # Passes both tests. 4065ac_preproc_ok=: 4066break 4067fi 4068rm -f conftest.err conftest.$ac_ext 4069 4070done 4071# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4072rm -f conftest.err conftest.$ac_ext 4073if $ac_preproc_ok; then : 4074 4075else 4076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4078as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4079See \`config.log' for more details" "$LINENO" 5; } 4080fi 4081 4082ac_ext=c 4083ac_cpp='$CPP $CPPFLAGS' 4084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4086ac_compiler_gnu=$ac_cv_c_compiler_gnu 4087 4088 4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4090$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4091if test "${ac_cv_path_GREP+set}" = set; then : 4092 $as_echo_n "(cached) " >&6 4093else 4094 if test -z "$GREP"; then 4095 ac_path_GREP_found=false 4096 # Loop through the user's path and test for each of PROGNAME-LIST 4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4098for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4099do 4100 IFS=$as_save_IFS 4101 test -z "$as_dir" && as_dir=. 4102 for ac_prog in grep ggrep; do 4103 for ac_exec_ext in '' $ac_executable_extensions; do 4104 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4105 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4106# Check for GNU ac_path_GREP and select it if it is found. 4107 # Check for GNU $ac_path_GREP 4108case `"$ac_path_GREP" --version 2>&1` in 4109*GNU*) 4110 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4111*) 4112 ac_count=0 4113 $as_echo_n 0123456789 >"conftest.in" 4114 while : 4115 do 4116 cat "conftest.in" "conftest.in" >"conftest.tmp" 4117 mv "conftest.tmp" "conftest.in" 4118 cp "conftest.in" "conftest.nl" 4119 $as_echo 'GREP' >> "conftest.nl" 4120 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4122 as_fn_arith $ac_count + 1 && ac_count=$as_val 4123 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4124 # Best one so far, save it but keep looking for a better one 4125 ac_cv_path_GREP="$ac_path_GREP" 4126 ac_path_GREP_max=$ac_count 4127 fi 4128 # 10*(2^10) chars as input seems more than enough 4129 test $ac_count -gt 10 && break 4130 done 4131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4132esac 4133 4134 $ac_path_GREP_found && break 3 4135 done 4136 done 4137 done 4138IFS=$as_save_IFS 4139 if test -z "$ac_cv_path_GREP"; then 4140 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4141 fi 4142else 4143 ac_cv_path_GREP=$GREP 4144fi 4145 4146fi 4147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4148$as_echo "$ac_cv_path_GREP" >&6; } 4149 GREP="$ac_cv_path_GREP" 4150 4151 4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4153$as_echo_n "checking for egrep... " >&6; } 4154if test "${ac_cv_path_EGREP+set}" = set; then : 4155 $as_echo_n "(cached) " >&6 4156else 4157 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4158 then ac_cv_path_EGREP="$GREP -E" 4159 else 4160 if test -z "$EGREP"; then 4161 ac_path_EGREP_found=false 4162 # Loop through the user's path and test for each of PROGNAME-LIST 4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4164for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4165do 4166 IFS=$as_save_IFS 4167 test -z "$as_dir" && as_dir=. 4168 for ac_prog in egrep; do 4169 for ac_exec_ext in '' $ac_executable_extensions; do 4170 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4171 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4172# Check for GNU ac_path_EGREP and select it if it is found. 4173 # Check for GNU $ac_path_EGREP 4174case `"$ac_path_EGREP" --version 2>&1` in 4175*GNU*) 4176 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4177*) 4178 ac_count=0 4179 $as_echo_n 0123456789 >"conftest.in" 4180 while : 4181 do 4182 cat "conftest.in" "conftest.in" >"conftest.tmp" 4183 mv "conftest.tmp" "conftest.in" 4184 cp "conftest.in" "conftest.nl" 4185 $as_echo 'EGREP' >> "conftest.nl" 4186 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4188 as_fn_arith $ac_count + 1 && ac_count=$as_val 4189 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4190 # Best one so far, save it but keep looking for a better one 4191 ac_cv_path_EGREP="$ac_path_EGREP" 4192 ac_path_EGREP_max=$ac_count 4193 fi 4194 # 10*(2^10) chars as input seems more than enough 4195 test $ac_count -gt 10 && break 4196 done 4197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4198esac 4199 4200 $ac_path_EGREP_found && break 3 4201 done 4202 done 4203 done 4204IFS=$as_save_IFS 4205 if test -z "$ac_cv_path_EGREP"; then 4206 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4207 fi 4208else 4209 ac_cv_path_EGREP=$EGREP 4210fi 4211 4212 fi 4213fi 4214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4215$as_echo "$ac_cv_path_EGREP" >&6; } 4216 EGREP="$ac_cv_path_EGREP" 4217 4218 4219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4220$as_echo_n "checking for ANSI C header files... " >&6; } 4221if test "${ac_cv_header_stdc+set}" = set; then : 4222 $as_echo_n "(cached) " >&6 4223else 4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4225/* end confdefs.h. */ 4226#include <stdlib.h> 4227#include <stdarg.h> 4228#include <string.h> 4229#include <float.h> 4230 4231int 4232main () 4233{ 4234 4235 ; 4236 return 0; 4237} 4238_ACEOF 4239if ac_fn_c_try_compile "$LINENO"; then : 4240 ac_cv_header_stdc=yes 4241else 4242 ac_cv_header_stdc=no 4243fi 4244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4245 4246if test $ac_cv_header_stdc = yes; then 4247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4249/* end confdefs.h. */ 4250#include <string.h> 4251 4252_ACEOF 4253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4254 $EGREP "memchr" >/dev/null 2>&1; then : 4255 4256else 4257 ac_cv_header_stdc=no 4258fi 4259rm -f conftest* 4260 4261fi 4262 4263if test $ac_cv_header_stdc = yes; then 4264 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4266/* end confdefs.h. */ 4267#include <stdlib.h> 4268 4269_ACEOF 4270if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4271 $EGREP "free" >/dev/null 2>&1; then : 4272 4273else 4274 ac_cv_header_stdc=no 4275fi 4276rm -f conftest* 4277 4278fi 4279 4280if test $ac_cv_header_stdc = yes; then 4281 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4282 if test "$cross_compiling" = yes; then : 4283 : 4284else 4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4286/* end confdefs.h. */ 4287#include <ctype.h> 4288#include <stdlib.h> 4289#if ((' ' & 0x0FF) == 0x020) 4290# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4291# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4292#else 4293# define ISLOWER(c) \ 4294 (('a' <= (c) && (c) <= 'i') \ 4295 || ('j' <= (c) && (c) <= 'r') \ 4296 || ('s' <= (c) && (c) <= 'z')) 4297# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4298#endif 4299 4300#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4301int 4302main () 4303{ 4304 int i; 4305 for (i = 0; i < 256; i++) 4306 if (XOR (islower (i), ISLOWER (i)) 4307 || toupper (i) != TOUPPER (i)) 4308 return 2; 4309 return 0; 4310} 4311_ACEOF 4312if ac_fn_c_try_run "$LINENO"; then : 4313 4314else 4315 ac_cv_header_stdc=no 4316fi 4317rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4318 conftest.$ac_objext conftest.beam conftest.$ac_ext 4319fi 4320 4321fi 4322fi 4323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4324$as_echo "$ac_cv_header_stdc" >&6; } 4325if test $ac_cv_header_stdc = yes; then 4326 4327$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4328 4329fi 4330 4331# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4332for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4333 inttypes.h stdint.h unistd.h 4334do : 4335 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4336ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4337" 4338if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4339 cat >>confdefs.h <<_ACEOF 4340#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4341_ACEOF 4342 4343fi 4344 4345done 4346 4347 4348 4349 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4350if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4351 MINIX=yes 4352else 4353 MINIX= 4354fi 4355 4356 4357 if test "$MINIX" = yes; then 4358 4359$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4360 4361 4362$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4363 4364 4365$as_echo "#define _MINIX 1" >>confdefs.h 4366 4367 fi 4368 4369 4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4371$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4372if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4373 $as_echo_n "(cached) " >&6 4374else 4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4376/* end confdefs.h. */ 4377 4378# define __EXTENSIONS__ 1 4379 $ac_includes_default 4380int 4381main () 4382{ 4383 4384 ; 4385 return 0; 4386} 4387_ACEOF 4388if ac_fn_c_try_compile "$LINENO"; then : 4389 ac_cv_safe_to_define___extensions__=yes 4390else 4391 ac_cv_safe_to_define___extensions__=no 4392fi 4393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4394fi 4395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4396$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4397 test $ac_cv_safe_to_define___extensions__ = yes && 4398 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4399 4400 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4401 4402 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4403 4404 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4405 4406 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4407 4408 4409ac_ext=c 4410ac_cpp='$CPP $CPPFLAGS' 4411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4413ac_compiler_gnu=$ac_cv_c_compiler_gnu 4414if test -n "$ac_tool_prefix"; then 4415 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4416set dummy ${ac_tool_prefix}gcc; ac_word=$2 4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4418$as_echo_n "checking for $ac_word... " >&6; } 4419if test "${ac_cv_prog_CC+set}" = set; then : 4420 $as_echo_n "(cached) " >&6 4421else 4422 if test -n "$CC"; then 4423 ac_cv_prog_CC="$CC" # Let the user override the test. 4424else 4425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4426for as_dir in $PATH 4427do 4428 IFS=$as_save_IFS 4429 test -z "$as_dir" && as_dir=. 4430 for ac_exec_ext in '' $ac_executable_extensions; do 4431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4432 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4434 break 2 4435 fi 4436done 4437 done 4438IFS=$as_save_IFS 4439 4440fi 4441fi 4442CC=$ac_cv_prog_CC 4443if test -n "$CC"; then 4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4445$as_echo "$CC" >&6; } 4446else 4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4448$as_echo "no" >&6; } 4449fi 4450 4451 4452fi 4453if test -z "$ac_cv_prog_CC"; then 4454 ac_ct_CC=$CC 4455 # Extract the first word of "gcc", so it can be a program name with args. 4456set dummy gcc; ac_word=$2 4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4458$as_echo_n "checking for $ac_word... " >&6; } 4459if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4460 $as_echo_n "(cached) " >&6 4461else 4462 if test -n "$ac_ct_CC"; then 4463 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4464else 4465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4466for as_dir in $PATH 4467do 4468 IFS=$as_save_IFS 4469 test -z "$as_dir" && as_dir=. 4470 for ac_exec_ext in '' $ac_executable_extensions; do 4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4472 ac_cv_prog_ac_ct_CC="gcc" 4473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4474 break 2 4475 fi 4476done 4477 done 4478IFS=$as_save_IFS 4479 4480fi 4481fi 4482ac_ct_CC=$ac_cv_prog_ac_ct_CC 4483if test -n "$ac_ct_CC"; then 4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4485$as_echo "$ac_ct_CC" >&6; } 4486else 4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4488$as_echo "no" >&6; } 4489fi 4490 4491 if test "x$ac_ct_CC" = x; then 4492 CC="" 4493 else 4494 case $cross_compiling:$ac_tool_warned in 4495yes:) 4496{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4498ac_tool_warned=yes ;; 4499esac 4500 CC=$ac_ct_CC 4501 fi 4502else 4503 CC="$ac_cv_prog_CC" 4504fi 4505 4506if test -z "$CC"; then 4507 if test -n "$ac_tool_prefix"; then 4508 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4509set dummy ${ac_tool_prefix}cc; ac_word=$2 4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4511$as_echo_n "checking for $ac_word... " >&6; } 4512if test "${ac_cv_prog_CC+set}" = set; then : 4513 $as_echo_n "(cached) " >&6 4514else 4515 if test -n "$CC"; then 4516 ac_cv_prog_CC="$CC" # Let the user override the test. 4517else 4518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4519for as_dir in $PATH 4520do 4521 IFS=$as_save_IFS 4522 test -z "$as_dir" && as_dir=. 4523 for ac_exec_ext in '' $ac_executable_extensions; do 4524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4525 ac_cv_prog_CC="${ac_tool_prefix}cc" 4526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4527 break 2 4528 fi 4529done 4530 done 4531IFS=$as_save_IFS 4532 4533fi 4534fi 4535CC=$ac_cv_prog_CC 4536if test -n "$CC"; then 4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4538$as_echo "$CC" >&6; } 4539else 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4541$as_echo "no" >&6; } 4542fi 4543 4544 4545 fi 4546fi 4547if test -z "$CC"; then 4548 # Extract the first word of "cc", so it can be a program name with args. 4549set dummy cc; ac_word=$2 4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4551$as_echo_n "checking for $ac_word... " >&6; } 4552if test "${ac_cv_prog_CC+set}" = set; then : 4553 $as_echo_n "(cached) " >&6 4554else 4555 if test -n "$CC"; then 4556 ac_cv_prog_CC="$CC" # Let the user override the test. 4557else 4558 ac_prog_rejected=no 4559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4560for as_dir in $PATH 4561do 4562 IFS=$as_save_IFS 4563 test -z "$as_dir" && as_dir=. 4564 for ac_exec_ext in '' $ac_executable_extensions; do 4565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4566 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4567 ac_prog_rejected=yes 4568 continue 4569 fi 4570 ac_cv_prog_CC="cc" 4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4572 break 2 4573 fi 4574done 4575 done 4576IFS=$as_save_IFS 4577 4578if test $ac_prog_rejected = yes; then 4579 # We found a bogon in the path, so make sure we never use it. 4580 set dummy $ac_cv_prog_CC 4581 shift 4582 if test $# != 0; then 4583 # We chose a different compiler from the bogus one. 4584 # However, it has the same basename, so the bogon will be chosen 4585 # first if we set CC to just the basename; use the full file name. 4586 shift 4587 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4588 fi 4589fi 4590fi 4591fi 4592CC=$ac_cv_prog_CC 4593if test -n "$CC"; then 4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4595$as_echo "$CC" >&6; } 4596else 4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4598$as_echo "no" >&6; } 4599fi 4600 4601 4602fi 4603if test -z "$CC"; then 4604 if test -n "$ac_tool_prefix"; then 4605 for ac_prog in cl.exe 4606 do 4607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4608set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4610$as_echo_n "checking for $ac_word... " >&6; } 4611if test "${ac_cv_prog_CC+set}" = set; then : 4612 $as_echo_n "(cached) " >&6 4613else 4614 if test -n "$CC"; then 4615 ac_cv_prog_CC="$CC" # Let the user override the test. 4616else 4617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4618for as_dir in $PATH 4619do 4620 IFS=$as_save_IFS 4621 test -z "$as_dir" && as_dir=. 4622 for ac_exec_ext in '' $ac_executable_extensions; do 4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4624 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4626 break 2 4627 fi 4628done 4629 done 4630IFS=$as_save_IFS 4631 4632fi 4633fi 4634CC=$ac_cv_prog_CC 4635if test -n "$CC"; then 4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4637$as_echo "$CC" >&6; } 4638else 4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4640$as_echo "no" >&6; } 4641fi 4642 4643 4644 test -n "$CC" && break 4645 done 4646fi 4647if test -z "$CC"; then 4648 ac_ct_CC=$CC 4649 for ac_prog in cl.exe 4650do 4651 # Extract the first word of "$ac_prog", so it can be a program name with args. 4652set dummy $ac_prog; ac_word=$2 4653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4654$as_echo_n "checking for $ac_word... " >&6; } 4655if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4656 $as_echo_n "(cached) " >&6 4657else 4658 if test -n "$ac_ct_CC"; then 4659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4660else 4661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4662for as_dir in $PATH 4663do 4664 IFS=$as_save_IFS 4665 test -z "$as_dir" && as_dir=. 4666 for ac_exec_ext in '' $ac_executable_extensions; do 4667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4668 ac_cv_prog_ac_ct_CC="$ac_prog" 4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4670 break 2 4671 fi 4672done 4673 done 4674IFS=$as_save_IFS 4675 4676fi 4677fi 4678ac_ct_CC=$ac_cv_prog_ac_ct_CC 4679if test -n "$ac_ct_CC"; then 4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4681$as_echo "$ac_ct_CC" >&6; } 4682else 4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4684$as_echo "no" >&6; } 4685fi 4686 4687 4688 test -n "$ac_ct_CC" && break 4689done 4690 4691 if test "x$ac_ct_CC" = x; then 4692 CC="" 4693 else 4694 case $cross_compiling:$ac_tool_warned in 4695yes:) 4696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4698ac_tool_warned=yes ;; 4699esac 4700 CC=$ac_ct_CC 4701 fi 4702fi 4703 4704fi 4705 4706 4707test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4709as_fn_error $? "no acceptable C compiler found in \$PATH 4710See \`config.log' for more details" "$LINENO" 5; } 4711 4712# Provide some information about the compiler. 4713$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4714set X $ac_compile 4715ac_compiler=$2 4716for ac_option in --version -v -V -qversion; do 4717 { { ac_try="$ac_compiler $ac_option >&5" 4718case "(($ac_try" in 4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4720 *) ac_try_echo=$ac_try;; 4721esac 4722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4723$as_echo "$ac_try_echo"; } >&5 4724 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4725 ac_status=$? 4726 if test -s conftest.err; then 4727 sed '10a\ 4728... rest of stderr output deleted ... 4729 10q' conftest.err >conftest.er1 4730 cat conftest.er1 >&5 4731 fi 4732 rm -f conftest.er1 conftest.err 4733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4734 test $ac_status = 0; } 4735done 4736 4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4738$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4739if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4740 $as_echo_n "(cached) " >&6 4741else 4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4743/* end confdefs.h. */ 4744 4745int 4746main () 4747{ 4748#ifndef __GNUC__ 4749 choke me 4750#endif 4751 4752 ; 4753 return 0; 4754} 4755_ACEOF 4756if ac_fn_c_try_compile "$LINENO"; then : 4757 ac_compiler_gnu=yes 4758else 4759 ac_compiler_gnu=no 4760fi 4761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4762ac_cv_c_compiler_gnu=$ac_compiler_gnu 4763 4764fi 4765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4766$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4767if test $ac_compiler_gnu = yes; then 4768 GCC=yes 4769else 4770 GCC= 4771fi 4772ac_test_CFLAGS=${CFLAGS+set} 4773ac_save_CFLAGS=$CFLAGS 4774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4775$as_echo_n "checking whether $CC accepts -g... " >&6; } 4776if test "${ac_cv_prog_cc_g+set}" = set; then : 4777 $as_echo_n "(cached) " >&6 4778else 4779 ac_save_c_werror_flag=$ac_c_werror_flag 4780 ac_c_werror_flag=yes 4781 ac_cv_prog_cc_g=no 4782 CFLAGS="-g" 4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4784/* end confdefs.h. */ 4785 4786int 4787main () 4788{ 4789 4790 ; 4791 return 0; 4792} 4793_ACEOF 4794if ac_fn_c_try_compile "$LINENO"; then : 4795 ac_cv_prog_cc_g=yes 4796else 4797 CFLAGS="" 4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4799/* end confdefs.h. */ 4800 4801int 4802main () 4803{ 4804 4805 ; 4806 return 0; 4807} 4808_ACEOF 4809if ac_fn_c_try_compile "$LINENO"; then : 4810 4811else 4812 ac_c_werror_flag=$ac_save_c_werror_flag 4813 CFLAGS="-g" 4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4815/* end confdefs.h. */ 4816 4817int 4818main () 4819{ 4820 4821 ; 4822 return 0; 4823} 4824_ACEOF 4825if ac_fn_c_try_compile "$LINENO"; then : 4826 ac_cv_prog_cc_g=yes 4827fi 4828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4829fi 4830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4831fi 4832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4833 ac_c_werror_flag=$ac_save_c_werror_flag 4834fi 4835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4836$as_echo "$ac_cv_prog_cc_g" >&6; } 4837if test "$ac_test_CFLAGS" = set; then 4838 CFLAGS=$ac_save_CFLAGS 4839elif test $ac_cv_prog_cc_g = yes; then 4840 if test "$GCC" = yes; then 4841 CFLAGS="-g -O2" 4842 else 4843 CFLAGS="-g" 4844 fi 4845else 4846 if test "$GCC" = yes; then 4847 CFLAGS="-O2" 4848 else 4849 CFLAGS= 4850 fi 4851fi 4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4853$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4854if test "${ac_cv_prog_cc_c89+set}" = set; then : 4855 $as_echo_n "(cached) " >&6 4856else 4857 ac_cv_prog_cc_c89=no 4858ac_save_CC=$CC 4859cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4860/* end confdefs.h. */ 4861#include <stdarg.h> 4862#include <stdio.h> 4863#include <sys/types.h> 4864#include <sys/stat.h> 4865/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4866struct buf { int x; }; 4867FILE * (*rcsopen) (struct buf *, struct stat *, int); 4868static char *e (p, i) 4869 char **p; 4870 int i; 4871{ 4872 return p[i]; 4873} 4874static char *f (char * (*g) (char **, int), char **p, ...) 4875{ 4876 char *s; 4877 va_list v; 4878 va_start (v,p); 4879 s = g (p, va_arg (v,int)); 4880 va_end (v); 4881 return s; 4882} 4883 4884/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4885 function prototypes and stuff, but not '\xHH' hex character constants. 4886 These don't provoke an error unfortunately, instead are silently treated 4887 as 'x'. The following induces an error, until -std is added to get 4888 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4889 array size at least. It's necessary to write '\x00'==0 to get something 4890 that's true only with -std. */ 4891int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4892 4893/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4894 inside strings and character constants. */ 4895#define FOO(x) 'x' 4896int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4897 4898int test (int i, double x); 4899struct s1 {int (*f) (int a);}; 4900struct s2 {int (*f) (double a);}; 4901int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4902int argc; 4903char **argv; 4904int 4905main () 4906{ 4907return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4908 ; 4909 return 0; 4910} 4911_ACEOF 4912for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4913 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4914do 4915 CC="$ac_save_CC $ac_arg" 4916 if ac_fn_c_try_compile "$LINENO"; then : 4917 ac_cv_prog_cc_c89=$ac_arg 4918fi 4919rm -f core conftest.err conftest.$ac_objext 4920 test "x$ac_cv_prog_cc_c89" != "xno" && break 4921done 4922rm -f conftest.$ac_ext 4923CC=$ac_save_CC 4924 4925fi 4926# AC_CACHE_VAL 4927case "x$ac_cv_prog_cc_c89" in 4928 x) 4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4930$as_echo "none needed" >&6; } ;; 4931 xno) 4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4933$as_echo "unsupported" >&6; } ;; 4934 *) 4935 CC="$CC $ac_cv_prog_cc_c89" 4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4937$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4938esac 4939if test "x$ac_cv_prog_cc_c89" != xno; then : 4940 4941fi 4942 4943ac_ext=c 4944ac_cpp='$CPP $CPPFLAGS' 4945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4947ac_compiler_gnu=$ac_cv_c_compiler_gnu 4948 4949depcc="$CC" am_compiler_list= 4950 4951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4952$as_echo_n "checking dependency style of $depcc... " >&6; } 4953if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4954 $as_echo_n "(cached) " >&6 4955else 4956 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4957 # We make a subdir and do the tests there. Otherwise we can end up 4958 # making bogus files that we don't know about and never remove. For 4959 # instance it was reported that on HP-UX the gcc test will end up 4960 # making a dummy file named `D' -- because `-MD' means `put the output 4961 # in D'. 4962 mkdir conftest.dir 4963 # Copy depcomp to subdir because otherwise we won't find it if we're 4964 # using a relative directory. 4965 cp "$am_depcomp" conftest.dir 4966 cd conftest.dir 4967 # We will build objects and dependencies in a subdirectory because 4968 # it helps to detect inapplicable dependency modes. For instance 4969 # both Tru64's cc and ICC support -MD to output dependencies as a 4970 # side effect of compilation, but ICC will put the dependencies in 4971 # the current directory while Tru64 will put them in the object 4972 # directory. 4973 mkdir sub 4974 4975 am_cv_CC_dependencies_compiler_type=none 4976 if test "$am_compiler_list" = ""; then 4977 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4978 fi 4979 am__universal=false 4980 case " $depcc " in #( 4981 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4982 esac 4983 4984 for depmode in $am_compiler_list; do 4985 # Setup a source with many dependencies, because some compilers 4986 # like to wrap large dependency lists on column 80 (with \), and 4987 # we should not choose a depcomp mode which is confused by this. 4988 # 4989 # We need to recreate these files for each test, as the compiler may 4990 # overwrite some of them when testing with obscure command lines. 4991 # This happens at least with the AIX C compiler. 4992 : > sub/conftest.c 4993 for i in 1 2 3 4 5 6; do 4994 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4995 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 4996 # Solaris 8's {/usr,}/bin/sh. 4997 touch sub/conftst$i.h 4998 done 4999 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5000 5001 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5002 # mode. It turns out that the SunPro C++ compiler does not properly 5003 # handle `-M -o', and we need to detect this. Also, some Intel 5004 # versions had trouble with output in subdirs 5005 am__obj=sub/conftest.${OBJEXT-o} 5006 am__minus_obj="-o $am__obj" 5007 case $depmode in 5008 gcc) 5009 # This depmode causes a compiler race in universal mode. 5010 test "$am__universal" = false || continue 5011 ;; 5012 nosideeffect) 5013 # after this tag, mechanisms are not by side-effect, so they'll 5014 # only be used when explicitly requested 5015 if test "x$enable_dependency_tracking" = xyes; then 5016 continue 5017 else 5018 break 5019 fi 5020 ;; 5021 msvisualcpp | msvcmsys) 5022 # This compiler won't grok `-c -o', but also, the minuso test has 5023 # not run yet. These depmodes are late enough in the game, and 5024 # so weak that their functioning should not be impacted. 5025 am__obj=conftest.${OBJEXT-o} 5026 am__minus_obj= 5027 ;; 5028 none) break ;; 5029 esac 5030 if depmode=$depmode \ 5031 source=sub/conftest.c object=$am__obj \ 5032 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5033 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5034 >/dev/null 2>conftest.err && 5035 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5036 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5037 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5038 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5039 # icc doesn't choke on unknown options, it will just issue warnings 5040 # or remarks (even with -Werror). So we grep stderr for any message 5041 # that says an option was ignored or not supported. 5042 # When given -MP, icc 7.0 and 7.1 complain thusly: 5043 # icc: Command line warning: ignoring option '-M'; no argument required 5044 # The diagnosis changed in icc 8.0: 5045 # icc: Command line remark: option '-MP' not supported 5046 if (grep 'ignoring option' conftest.err || 5047 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5048 am_cv_CC_dependencies_compiler_type=$depmode 5049 break 5050 fi 5051 fi 5052 done 5053 5054 cd .. 5055 rm -rf conftest.dir 5056else 5057 am_cv_CC_dependencies_compiler_type=none 5058fi 5059 5060fi 5061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5062$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5063CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5064 5065 if 5066 test "x$enable_dependency_tracking" != xno \ 5067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5068 am__fastdepCC_TRUE= 5069 am__fastdepCC_FALSE='#' 5070else 5071 am__fastdepCC_TRUE='#' 5072 am__fastdepCC_FALSE= 5073fi 5074 5075 5076for ac_prog in gawk mawk nawk awk 5077do 5078 # Extract the first word of "$ac_prog", so it can be a program name with args. 5079set dummy $ac_prog; ac_word=$2 5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5081$as_echo_n "checking for $ac_word... " >&6; } 5082if test "${ac_cv_prog_AWK+set}" = set; then : 5083 $as_echo_n "(cached) " >&6 5084else 5085 if test -n "$AWK"; then 5086 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5087else 5088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5089for as_dir in $PATH 5090do 5091 IFS=$as_save_IFS 5092 test -z "$as_dir" && as_dir=. 5093 for ac_exec_ext in '' $ac_executable_extensions; do 5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5095 ac_cv_prog_AWK="$ac_prog" 5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5097 break 2 5098 fi 5099done 5100 done 5101IFS=$as_save_IFS 5102 5103fi 5104fi 5105AWK=$ac_cv_prog_AWK 5106if test -n "$AWK"; then 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5108$as_echo "$AWK" >&6; } 5109else 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5111$as_echo "no" >&6; } 5112fi 5113 5114 5115 test -n "$AWK" && break 5116done 5117 5118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5119$as_echo_n "checking whether ln -s works... " >&6; } 5120LN_S=$as_ln_s 5121if test "$LN_S" = "ln -s"; then 5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5123$as_echo "yes" >&6; } 5124else 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5126$as_echo "no, using $LN_S" >&6; } 5127fi 5128 5129ac_ext=cpp 5130ac_cpp='$CXXCPP $CPPFLAGS' 5131ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5132ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5133ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5134if test -z "$CXX"; then 5135 if test -n "$CCC"; then 5136 CXX=$CCC 5137 else 5138 if test -n "$ac_tool_prefix"; then 5139 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5140 do 5141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5142set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5144$as_echo_n "checking for $ac_word... " >&6; } 5145if test "${ac_cv_prog_CXX+set}" = set; then : 5146 $as_echo_n "(cached) " >&6 5147else 5148 if test -n "$CXX"; then 5149 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5150else 5151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5152for as_dir in $PATH 5153do 5154 IFS=$as_save_IFS 5155 test -z "$as_dir" && as_dir=. 5156 for ac_exec_ext in '' $ac_executable_extensions; do 5157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5158 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5160 break 2 5161 fi 5162done 5163 done 5164IFS=$as_save_IFS 5165 5166fi 5167fi 5168CXX=$ac_cv_prog_CXX 5169if test -n "$CXX"; then 5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5171$as_echo "$CXX" >&6; } 5172else 5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5174$as_echo "no" >&6; } 5175fi 5176 5177 5178 test -n "$CXX" && break 5179 done 5180fi 5181if test -z "$CXX"; then 5182 ac_ct_CXX=$CXX 5183 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 5184do 5185 # Extract the first word of "$ac_prog", so it can be a program name with args. 5186set dummy $ac_prog; ac_word=$2 5187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5188$as_echo_n "checking for $ac_word... " >&6; } 5189if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 5190 $as_echo_n "(cached) " >&6 5191else 5192 if test -n "$ac_ct_CXX"; then 5193 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5194else 5195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5196for as_dir in $PATH 5197do 5198 IFS=$as_save_IFS 5199 test -z "$as_dir" && as_dir=. 5200 for ac_exec_ext in '' $ac_executable_extensions; do 5201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5202 ac_cv_prog_ac_ct_CXX="$ac_prog" 5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5204 break 2 5205 fi 5206done 5207 done 5208IFS=$as_save_IFS 5209 5210fi 5211fi 5212ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5213if test -n "$ac_ct_CXX"; then 5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5215$as_echo "$ac_ct_CXX" >&6; } 5216else 5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5218$as_echo "no" >&6; } 5219fi 5220 5221 5222 test -n "$ac_ct_CXX" && break 5223done 5224 5225 if test "x$ac_ct_CXX" = x; then 5226 CXX="g++" 5227 else 5228 case $cross_compiling:$ac_tool_warned in 5229yes:) 5230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5232ac_tool_warned=yes ;; 5233esac 5234 CXX=$ac_ct_CXX 5235 fi 5236fi 5237 5238 fi 5239fi 5240# Provide some information about the compiler. 5241$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 5242set X $ac_compile 5243ac_compiler=$2 5244for ac_option in --version -v -V -qversion; do 5245 { { ac_try="$ac_compiler $ac_option >&5" 5246case "(($ac_try" in 5247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5248 *) ac_try_echo=$ac_try;; 5249esac 5250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5251$as_echo "$ac_try_echo"; } >&5 5252 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5253 ac_status=$? 5254 if test -s conftest.err; then 5255 sed '10a\ 5256... rest of stderr output deleted ... 5257 10q' conftest.err >conftest.er1 5258 cat conftest.er1 >&5 5259 fi 5260 rm -f conftest.er1 conftest.err 5261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5262 test $ac_status = 0; } 5263done 5264 5265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 5266$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 5267if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 5268 $as_echo_n "(cached) " >&6 5269else 5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5271/* end confdefs.h. */ 5272 5273int 5274main () 5275{ 5276#ifndef __GNUC__ 5277 choke me 5278#endif 5279 5280 ; 5281 return 0; 5282} 5283_ACEOF 5284if ac_fn_cxx_try_compile "$LINENO"; then : 5285 ac_compiler_gnu=yes 5286else 5287 ac_compiler_gnu=no 5288fi 5289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5290ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 5291 5292fi 5293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 5294$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 5295if test $ac_compiler_gnu = yes; then 5296 GXX=yes 5297else 5298 GXX= 5299fi 5300ac_test_CXXFLAGS=${CXXFLAGS+set} 5301ac_save_CXXFLAGS=$CXXFLAGS 5302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 5303$as_echo_n "checking whether $CXX accepts -g... " >&6; } 5304if test "${ac_cv_prog_cxx_g+set}" = set; then : 5305 $as_echo_n "(cached) " >&6 5306else 5307 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 5308 ac_cxx_werror_flag=yes 5309 ac_cv_prog_cxx_g=no 5310 CXXFLAGS="-g" 5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5312/* end confdefs.h. */ 5313 5314int 5315main () 5316{ 5317 5318 ; 5319 return 0; 5320} 5321_ACEOF 5322if ac_fn_cxx_try_compile "$LINENO"; then : 5323 ac_cv_prog_cxx_g=yes 5324else 5325 CXXFLAGS="" 5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5327/* end confdefs.h. */ 5328 5329int 5330main () 5331{ 5332 5333 ; 5334 return 0; 5335} 5336_ACEOF 5337if ac_fn_cxx_try_compile "$LINENO"; then : 5338 5339else 5340 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5341 CXXFLAGS="-g" 5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5343/* end confdefs.h. */ 5344 5345int 5346main () 5347{ 5348 5349 ; 5350 return 0; 5351} 5352_ACEOF 5353if ac_fn_cxx_try_compile "$LINENO"; then : 5354 ac_cv_prog_cxx_g=yes 5355fi 5356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5357fi 5358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5359fi 5360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5361 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 5362fi 5363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 5364$as_echo "$ac_cv_prog_cxx_g" >&6; } 5365if test "$ac_test_CXXFLAGS" = set; then 5366 CXXFLAGS=$ac_save_CXXFLAGS 5367elif test $ac_cv_prog_cxx_g = yes; then 5368 if test "$GXX" = yes; then 5369 CXXFLAGS="-g -O2" 5370 else 5371 CXXFLAGS="-g" 5372 fi 5373else 5374 if test "$GXX" = yes; then 5375 CXXFLAGS="-O2" 5376 else 5377 CXXFLAGS= 5378 fi 5379fi 5380ac_ext=c 5381ac_cpp='$CPP $CPPFLAGS' 5382ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5383ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5384ac_compiler_gnu=$ac_cv_c_compiler_gnu 5385 5386depcc="$CXX" am_compiler_list= 5387 5388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5389$as_echo_n "checking dependency style of $depcc... " >&6; } 5390if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : 5391 $as_echo_n "(cached) " >&6 5392else 5393 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5394 # We make a subdir and do the tests there. Otherwise we can end up 5395 # making bogus files that we don't know about and never remove. For 5396 # instance it was reported that on HP-UX the gcc test will end up 5397 # making a dummy file named `D' -- because `-MD' means `put the output 5398 # in D'. 5399 mkdir conftest.dir 5400 # Copy depcomp to subdir because otherwise we won't find it if we're 5401 # using a relative directory. 5402 cp "$am_depcomp" conftest.dir 5403 cd conftest.dir 5404 # We will build objects and dependencies in a subdirectory because 5405 # it helps to detect inapplicable dependency modes. For instance 5406 # both Tru64's cc and ICC support -MD to output dependencies as a 5407 # side effect of compilation, but ICC will put the dependencies in 5408 # the current directory while Tru64 will put them in the object 5409 # directory. 5410 mkdir sub 5411 5412 am_cv_CXX_dependencies_compiler_type=none 5413 if test "$am_compiler_list" = ""; then 5414 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5415 fi 5416 am__universal=false 5417 case " $depcc " in #( 5418 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5419 esac 5420 5421 for depmode in $am_compiler_list; do 5422 # Setup a source with many dependencies, because some compilers 5423 # like to wrap large dependency lists on column 80 (with \), and 5424 # we should not choose a depcomp mode which is confused by this. 5425 # 5426 # We need to recreate these files for each test, as the compiler may 5427 # overwrite some of them when testing with obscure command lines. 5428 # This happens at least with the AIX C compiler. 5429 : > sub/conftest.c 5430 for i in 1 2 3 4 5 6; do 5431 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5432 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5433 # Solaris 8's {/usr,}/bin/sh. 5434 touch sub/conftst$i.h 5435 done 5436 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5437 5438 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5439 # mode. It turns out that the SunPro C++ compiler does not properly 5440 # handle `-M -o', and we need to detect this. Also, some Intel 5441 # versions had trouble with output in subdirs 5442 am__obj=sub/conftest.${OBJEXT-o} 5443 am__minus_obj="-o $am__obj" 5444 case $depmode in 5445 gcc) 5446 # This depmode causes a compiler race in universal mode. 5447 test "$am__universal" = false || continue 5448 ;; 5449 nosideeffect) 5450 # after this tag, mechanisms are not by side-effect, so they'll 5451 # only be used when explicitly requested 5452 if test "x$enable_dependency_tracking" = xyes; then 5453 continue 5454 else 5455 break 5456 fi 5457 ;; 5458 msvisualcpp | msvcmsys) 5459 # This compiler won't grok `-c -o', but also, the minuso test has 5460 # not run yet. These depmodes are late enough in the game, and 5461 # so weak that their functioning should not be impacted. 5462 am__obj=conftest.${OBJEXT-o} 5463 am__minus_obj= 5464 ;; 5465 none) break ;; 5466 esac 5467 if depmode=$depmode \ 5468 source=sub/conftest.c object=$am__obj \ 5469 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5470 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5471 >/dev/null 2>conftest.err && 5472 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5473 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5474 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5475 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5476 # icc doesn't choke on unknown options, it will just issue warnings 5477 # or remarks (even with -Werror). So we grep stderr for any message 5478 # that says an option was ignored or not supported. 5479 # When given -MP, icc 7.0 and 7.1 complain thusly: 5480 # icc: Command line warning: ignoring option '-M'; no argument required 5481 # The diagnosis changed in icc 8.0: 5482 # icc: Command line remark: option '-MP' not supported 5483 if (grep 'ignoring option' conftest.err || 5484 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5485 am_cv_CXX_dependencies_compiler_type=$depmode 5486 break 5487 fi 5488 fi 5489 done 5490 5491 cd .. 5492 rm -rf conftest.dir 5493else 5494 am_cv_CXX_dependencies_compiler_type=none 5495fi 5496 5497fi 5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 5499$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 5500CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 5501 5502 if 5503 test "x$enable_dependency_tracking" != xno \ 5504 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 5505 am__fastdepCXX_TRUE= 5506 am__fastdepCXX_FALSE='#' 5507else 5508 am__fastdepCXX_TRUE='#' 5509 am__fastdepCXX_FALSE= 5510fi 5511 5512 5513case `pwd` in 5514 *\ * | *\ *) 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5516$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5517esac 5518 5519 5520 5521macro_version='2.2.10' 5522macro_revision='1.3175' 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536ltmain="$ac_aux_dir/ltmain.sh" 5537 5538# Make sure we can run config.sub. 5539$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5540 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5541 5542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5543$as_echo_n "checking build system type... " >&6; } 5544if test "${ac_cv_build+set}" = set; then : 5545 $as_echo_n "(cached) " >&6 5546else 5547 ac_build_alias=$build_alias 5548test "x$ac_build_alias" = x && 5549 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5550test "x$ac_build_alias" = x && 5551 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5552ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5553 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5554 5555fi 5556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5557$as_echo "$ac_cv_build" >&6; } 5558case $ac_cv_build in 5559*-*-*) ;; 5560*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5561esac 5562build=$ac_cv_build 5563ac_save_IFS=$IFS; IFS='-' 5564set x $ac_cv_build 5565shift 5566build_cpu=$1 5567build_vendor=$2 5568shift; shift 5569# Remember, the first character of IFS is used to create $*, 5570# except with old shells: 5571build_os=$* 5572IFS=$ac_save_IFS 5573case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5574 5575 5576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5577$as_echo_n "checking host system type... " >&6; } 5578if test "${ac_cv_host+set}" = set; then : 5579 $as_echo_n "(cached) " >&6 5580else 5581 if test "x$host_alias" = x; then 5582 ac_cv_host=$ac_cv_build 5583else 5584 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5585 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5586fi 5587 5588fi 5589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5590$as_echo "$ac_cv_host" >&6; } 5591case $ac_cv_host in 5592*-*-*) ;; 5593*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5594esac 5595host=$ac_cv_host 5596ac_save_IFS=$IFS; IFS='-' 5597set x $ac_cv_host 5598shift 5599host_cpu=$1 5600host_vendor=$2 5601shift; shift 5602# Remember, the first character of IFS is used to create $*, 5603# except with old shells: 5604host_os=$* 5605IFS=$ac_save_IFS 5606case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5607 5608 5609# Backslashify metacharacters that are still active within 5610# double-quoted strings. 5611sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5612 5613# Same as above, but do not quote variable references. 5614double_quote_subst='s/\(["`\\]\)/\\\1/g' 5615 5616# Sed substitution to delay expansion of an escaped shell variable in a 5617# double_quote_subst'ed string. 5618delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5619 5620# Sed substitution to delay expansion of an escaped single quote. 5621delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5622 5623# Sed substitution to avoid accidental globbing in evaled expressions 5624no_glob_subst='s/\*/\\\*/g' 5625 5626ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5627ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5628ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5629 5630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5631$as_echo_n "checking how to print strings... " >&6; } 5632# Test print first, because it will be a builtin if present. 5633if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 5634 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5635 ECHO='print -r --' 5636elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5637 ECHO='printf %s\n' 5638else 5639 # Use this function as a fallback that always works. 5640 func_fallback_echo () 5641 { 5642 eval 'cat <<_LTECHO_EOF 5643$1 5644_LTECHO_EOF' 5645 } 5646 ECHO='func_fallback_echo' 5647fi 5648 5649# func_echo_all arg... 5650# Invoke $ECHO with all args, space-separated. 5651func_echo_all () 5652{ 5653 $ECHO "" 5654} 5655 5656case "$ECHO" in 5657 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5658$as_echo "printf" >&6; } ;; 5659 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5660$as_echo "print -r" >&6; } ;; 5661 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5662$as_echo "cat" >&6; } ;; 5663esac 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5679$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5680if test "${ac_cv_path_SED+set}" = set; then : 5681 $as_echo_n "(cached) " >&6 5682else 5683 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5684 for ac_i in 1 2 3 4 5 6 7; do 5685 ac_script="$ac_script$as_nl$ac_script" 5686 done 5687 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5688 { ac_script=; unset ac_script;} 5689 if test -z "$SED"; then 5690 ac_path_SED_found=false 5691 # Loop through the user's path and test for each of PROGNAME-LIST 5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5693for as_dir in $PATH 5694do 5695 IFS=$as_save_IFS 5696 test -z "$as_dir" && as_dir=. 5697 for ac_prog in sed gsed; do 5698 for ac_exec_ext in '' $ac_executable_extensions; do 5699 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5700 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5701# Check for GNU ac_path_SED and select it if it is found. 5702 # Check for GNU $ac_path_SED 5703case `"$ac_path_SED" --version 2>&1` in 5704*GNU*) 5705 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5706*) 5707 ac_count=0 5708 $as_echo_n 0123456789 >"conftest.in" 5709 while : 5710 do 5711 cat "conftest.in" "conftest.in" >"conftest.tmp" 5712 mv "conftest.tmp" "conftest.in" 5713 cp "conftest.in" "conftest.nl" 5714 $as_echo '' >> "conftest.nl" 5715 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5716 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5717 as_fn_arith $ac_count + 1 && ac_count=$as_val 5718 if test $ac_count -gt ${ac_path_SED_max-0}; then 5719 # Best one so far, save it but keep looking for a better one 5720 ac_cv_path_SED="$ac_path_SED" 5721 ac_path_SED_max=$ac_count 5722 fi 5723 # 10*(2^10) chars as input seems more than enough 5724 test $ac_count -gt 10 && break 5725 done 5726 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5727esac 5728 5729 $ac_path_SED_found && break 3 5730 done 5731 done 5732 done 5733IFS=$as_save_IFS 5734 if test -z "$ac_cv_path_SED"; then 5735 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5736 fi 5737else 5738 ac_cv_path_SED=$SED 5739fi 5740 5741fi 5742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5743$as_echo "$ac_cv_path_SED" >&6; } 5744 SED="$ac_cv_path_SED" 5745 rm -f conftest.sed 5746 5747test -z "$SED" && SED=sed 5748Xsed="$SED -e 1s/^X//" 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5761$as_echo_n "checking for fgrep... " >&6; } 5762if test "${ac_cv_path_FGREP+set}" = set; then : 5763 $as_echo_n "(cached) " >&6 5764else 5765 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5766 then ac_cv_path_FGREP="$GREP -F" 5767 else 5768 if test -z "$FGREP"; then 5769 ac_path_FGREP_found=false 5770 # Loop through the user's path and test for each of PROGNAME-LIST 5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5772for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5773do 5774 IFS=$as_save_IFS 5775 test -z "$as_dir" && as_dir=. 5776 for ac_prog in fgrep; do 5777 for ac_exec_ext in '' $ac_executable_extensions; do 5778 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5779 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5780# Check for GNU ac_path_FGREP and select it if it is found. 5781 # Check for GNU $ac_path_FGREP 5782case `"$ac_path_FGREP" --version 2>&1` in 5783*GNU*) 5784 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5785*) 5786 ac_count=0 5787 $as_echo_n 0123456789 >"conftest.in" 5788 while : 5789 do 5790 cat "conftest.in" "conftest.in" >"conftest.tmp" 5791 mv "conftest.tmp" "conftest.in" 5792 cp "conftest.in" "conftest.nl" 5793 $as_echo 'FGREP' >> "conftest.nl" 5794 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5795 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5796 as_fn_arith $ac_count + 1 && ac_count=$as_val 5797 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5798 # Best one so far, save it but keep looking for a better one 5799 ac_cv_path_FGREP="$ac_path_FGREP" 5800 ac_path_FGREP_max=$ac_count 5801 fi 5802 # 10*(2^10) chars as input seems more than enough 5803 test $ac_count -gt 10 && break 5804 done 5805 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5806esac 5807 5808 $ac_path_FGREP_found && break 3 5809 done 5810 done 5811 done 5812IFS=$as_save_IFS 5813 if test -z "$ac_cv_path_FGREP"; then 5814 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5815 fi 5816else 5817 ac_cv_path_FGREP=$FGREP 5818fi 5819 5820 fi 5821fi 5822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5823$as_echo "$ac_cv_path_FGREP" >&6; } 5824 FGREP="$ac_cv_path_FGREP" 5825 5826 5827test -z "$GREP" && GREP=grep 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847# Check whether --with-gnu-ld was given. 5848if test "${with_gnu_ld+set}" = set; then : 5849 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5850else 5851 with_gnu_ld=no 5852fi 5853 5854ac_prog=ld 5855if test "$GCC" = yes; then 5856 # Check if gcc -print-prog-name=ld gives a path. 5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5858$as_echo_n "checking for ld used by $CC... " >&6; } 5859 case $host in 5860 *-*-mingw*) 5861 # gcc leaves a trailing carriage return which upsets mingw 5862 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5863 *) 5864 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5865 esac 5866 case $ac_prog in 5867 # Accept absolute paths. 5868 [\\/]* | ?:[\\/]*) 5869 re_direlt='/[^/][^/]*/\.\./' 5870 # Canonicalize the pathname of ld 5871 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5872 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5873 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5874 done 5875 test -z "$LD" && LD="$ac_prog" 5876 ;; 5877 "") 5878 # If it fails, then pretend we aren't using GCC. 5879 ac_prog=ld 5880 ;; 5881 *) 5882 # If it is relative, then search for the first ld in PATH. 5883 with_gnu_ld=unknown 5884 ;; 5885 esac 5886elif test "$with_gnu_ld" = yes; then 5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5888$as_echo_n "checking for GNU ld... " >&6; } 5889else 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5891$as_echo_n "checking for non-GNU ld... " >&6; } 5892fi 5893if test "${lt_cv_path_LD+set}" = set; then : 5894 $as_echo_n "(cached) " >&6 5895else 5896 if test -z "$LD"; then 5897 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5898 for ac_dir in $PATH; do 5899 IFS="$lt_save_ifs" 5900 test -z "$ac_dir" && ac_dir=. 5901 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5902 lt_cv_path_LD="$ac_dir/$ac_prog" 5903 # Check to see if the program is GNU ld. I'd rather use --version, 5904 # but apparently some variants of GNU ld only accept -v. 5905 # Break only if it was the GNU/non-GNU ld that we prefer. 5906 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5907 *GNU* | *'with BFD'*) 5908 test "$with_gnu_ld" != no && break 5909 ;; 5910 *) 5911 test "$with_gnu_ld" != yes && break 5912 ;; 5913 esac 5914 fi 5915 done 5916 IFS="$lt_save_ifs" 5917else 5918 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5919fi 5920fi 5921 5922LD="$lt_cv_path_LD" 5923if test -n "$LD"; then 5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5925$as_echo "$LD" >&6; } 5926else 5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5928$as_echo "no" >&6; } 5929fi 5930test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5932$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5933if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5934 $as_echo_n "(cached) " >&6 5935else 5936 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5937case `$LD -v 2>&1 </dev/null` in 5938*GNU* | *'with BFD'*) 5939 lt_cv_prog_gnu_ld=yes 5940 ;; 5941*) 5942 lt_cv_prog_gnu_ld=no 5943 ;; 5944esac 5945fi 5946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5947$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5948with_gnu_ld=$lt_cv_prog_gnu_ld 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5959$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5960if test "${lt_cv_path_NM+set}" = set; then : 5961 $as_echo_n "(cached) " >&6 5962else 5963 if test -n "$NM"; then 5964 # Let the user override the test. 5965 lt_cv_path_NM="$NM" 5966else 5967 lt_nm_to_check="${ac_tool_prefix}nm" 5968 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5969 lt_nm_to_check="$lt_nm_to_check nm" 5970 fi 5971 for lt_tmp_nm in $lt_nm_to_check; do 5972 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5973 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5974 IFS="$lt_save_ifs" 5975 test -z "$ac_dir" && ac_dir=. 5976 tmp_nm="$ac_dir/$lt_tmp_nm" 5977 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5978 # Check to see if the nm accepts a BSD-compat flag. 5979 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5980 # nm: unknown option "B" ignored 5981 # Tru64's nm complains that /dev/null is an invalid object file 5982 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5983 */dev/null* | *'Invalid file or object type'*) 5984 lt_cv_path_NM="$tmp_nm -B" 5985 break 5986 ;; 5987 *) 5988 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5989 */dev/null*) 5990 lt_cv_path_NM="$tmp_nm -p" 5991 break 5992 ;; 5993 *) 5994 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5995 continue # so that we can try to find one that supports BSD flags 5996 ;; 5997 esac 5998 ;; 5999 esac 6000 fi 6001 done 6002 IFS="$lt_save_ifs" 6003 done 6004 : ${lt_cv_path_NM=no} 6005fi 6006fi 6007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6008$as_echo "$lt_cv_path_NM" >&6; } 6009if test "$lt_cv_path_NM" != "no"; then 6010 NM="$lt_cv_path_NM" 6011else 6012 # Didn't find any BSD compatible name lister, look for dumpbin. 6013 if test -n "$DUMPBIN"; then : 6014 # Let the user override the test. 6015 else 6016 if test -n "$ac_tool_prefix"; then 6017 for ac_prog in dumpbin "link -dump" 6018 do 6019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6020set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6022$as_echo_n "checking for $ac_word... " >&6; } 6023if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 6024 $as_echo_n "(cached) " >&6 6025else 6026 if test -n "$DUMPBIN"; then 6027 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6028else 6029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6030for as_dir in $PATH 6031do 6032 IFS=$as_save_IFS 6033 test -z "$as_dir" && as_dir=. 6034 for ac_exec_ext in '' $ac_executable_extensions; do 6035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6036 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6038 break 2 6039 fi 6040done 6041 done 6042IFS=$as_save_IFS 6043 6044fi 6045fi 6046DUMPBIN=$ac_cv_prog_DUMPBIN 6047if test -n "$DUMPBIN"; then 6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6049$as_echo "$DUMPBIN" >&6; } 6050else 6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6052$as_echo "no" >&6; } 6053fi 6054 6055 6056 test -n "$DUMPBIN" && break 6057 done 6058fi 6059if test -z "$DUMPBIN"; then 6060 ac_ct_DUMPBIN=$DUMPBIN 6061 for ac_prog in dumpbin "link -dump" 6062do 6063 # Extract the first word of "$ac_prog", so it can be a program name with args. 6064set dummy $ac_prog; ac_word=$2 6065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6066$as_echo_n "checking for $ac_word... " >&6; } 6067if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 6068 $as_echo_n "(cached) " >&6 6069else 6070 if test -n "$ac_ct_DUMPBIN"; then 6071 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6072else 6073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6074for as_dir in $PATH 6075do 6076 IFS=$as_save_IFS 6077 test -z "$as_dir" && as_dir=. 6078 for ac_exec_ext in '' $ac_executable_extensions; do 6079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6080 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6082 break 2 6083 fi 6084done 6085 done 6086IFS=$as_save_IFS 6087 6088fi 6089fi 6090ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6091if test -n "$ac_ct_DUMPBIN"; then 6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6093$as_echo "$ac_ct_DUMPBIN" >&6; } 6094else 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6096$as_echo "no" >&6; } 6097fi 6098 6099 6100 test -n "$ac_ct_DUMPBIN" && break 6101done 6102 6103 if test "x$ac_ct_DUMPBIN" = x; then 6104 DUMPBIN=":" 6105 else 6106 case $cross_compiling:$ac_tool_warned in 6107yes:) 6108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6110ac_tool_warned=yes ;; 6111esac 6112 DUMPBIN=$ac_ct_DUMPBIN 6113 fi 6114fi 6115 6116 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 6117 *COFF*) 6118 DUMPBIN="$DUMPBIN -symbols" 6119 ;; 6120 *) 6121 DUMPBIN=: 6122 ;; 6123 esac 6124 fi 6125 6126 if test "$DUMPBIN" != ":"; then 6127 NM="$DUMPBIN" 6128 fi 6129fi 6130test -z "$NM" && NM=nm 6131 6132 6133 6134 6135 6136 6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6138$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6139if test "${lt_cv_nm_interface+set}" = set; then : 6140 $as_echo_n "(cached) " >&6 6141else 6142 lt_cv_nm_interface="BSD nm" 6143 echo "int some_variable = 0;" > conftest.$ac_ext 6144 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6145 (eval "$ac_compile" 2>conftest.err) 6146 cat conftest.err >&5 6147 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6148 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6149 cat conftest.err >&5 6150 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6151 cat conftest.out >&5 6152 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6153 lt_cv_nm_interface="MS dumpbin" 6154 fi 6155 rm -f conftest* 6156fi 6157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6158$as_echo "$lt_cv_nm_interface" >&6; } 6159 6160# find the maximum length of command line arguments 6161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6162$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6163if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 6164 $as_echo_n "(cached) " >&6 6165else 6166 i=0 6167 teststring="ABCD" 6168 6169 case $build_os in 6170 msdosdjgpp*) 6171 # On DJGPP, this test can blow up pretty badly due to problems in libc 6172 # (any single argument exceeding 2000 bytes causes a buffer overrun 6173 # during glob expansion). Even if it were fixed, the result of this 6174 # check would be larger than it should be. 6175 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6176 ;; 6177 6178 gnu*) 6179 # Under GNU Hurd, this test is not required because there is 6180 # no limit to the length of command line arguments. 6181 # Libtool will interpret -1 as no limit whatsoever 6182 lt_cv_sys_max_cmd_len=-1; 6183 ;; 6184 6185 cygwin* | mingw* | cegcc*) 6186 # On Win9x/ME, this test blows up -- it succeeds, but takes 6187 # about 5 minutes as the teststring grows exponentially. 6188 # Worse, since 9x/ME are not pre-emptively multitasking, 6189 # you end up with a "frozen" computer, even though with patience 6190 # the test eventually succeeds (with a max line length of 256k). 6191 # Instead, let's just punt: use the minimum linelength reported by 6192 # all of the supported platforms: 8192 (on NT/2K/XP). 6193 lt_cv_sys_max_cmd_len=8192; 6194 ;; 6195 6196 mint*) 6197 # On MiNT this can take a long time and run out of memory. 6198 lt_cv_sys_max_cmd_len=8192; 6199 ;; 6200 6201 amigaos*) 6202 # On AmigaOS with pdksh, this test takes hours, literally. 6203 # So we just punt and use a minimum line length of 8192. 6204 lt_cv_sys_max_cmd_len=8192; 6205 ;; 6206 6207 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6208 # This has been around since 386BSD, at least. Likely further. 6209 if test -x /sbin/sysctl; then 6210 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6211 elif test -x /usr/sbin/sysctl; then 6212 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6213 else 6214 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6215 fi 6216 # And add a safety zone 6217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6218 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6219 ;; 6220 6221 interix*) 6222 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6223 lt_cv_sys_max_cmd_len=196608 6224 ;; 6225 6226 osf*) 6227 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6228 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6229 # nice to cause kernel panics so lets avoid the loop below. 6230 # First set a reasonable default. 6231 lt_cv_sys_max_cmd_len=16384 6232 # 6233 if test -x /sbin/sysconfig; then 6234 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6235 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6236 esac 6237 fi 6238 ;; 6239 sco3.2v5*) 6240 lt_cv_sys_max_cmd_len=102400 6241 ;; 6242 sysv5* | sco5v6* | sysv4.2uw2*) 6243 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6244 if test -n "$kargmax"; then 6245 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6246 else 6247 lt_cv_sys_max_cmd_len=32768 6248 fi 6249 ;; 6250 *) 6251 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6252 if test -n "$lt_cv_sys_max_cmd_len"; then 6253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6255 else 6256 # Make teststring a little bigger before we do anything with it. 6257 # a 1K string should be a reasonable start. 6258 for i in 1 2 3 4 5 6 7 8 ; do 6259 teststring=$teststring$teststring 6260 done 6261 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6262 # If test is not a shell built-in, we'll probably end up computing a 6263 # maximum length that is only half of the actual maximum length, but 6264 # we can't tell. 6265 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 6266 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6267 test $i != 17 # 1/2 MB should be enough 6268 do 6269 i=`expr $i + 1` 6270 teststring=$teststring$teststring 6271 done 6272 # Only check the string length outside the loop. 6273 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6274 teststring= 6275 # Add a significant safety factor because C++ compilers can tack on 6276 # massive amounts of additional arguments before passing them to the 6277 # linker. It appears as though 1/2 is a usable value. 6278 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6279 fi 6280 ;; 6281 esac 6282 6283fi 6284 6285if test -n $lt_cv_sys_max_cmd_len ; then 6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6287$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6288else 6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6290$as_echo "none" >&6; } 6291fi 6292max_cmd_len=$lt_cv_sys_max_cmd_len 6293 6294 6295 6296 6297 6298 6299: ${CP="cp -f"} 6300: ${MV="mv -f"} 6301: ${RM="rm -f"} 6302 6303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6304$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6305# Try some XSI features 6306xsi_shell=no 6307( _lt_dummy="a/b/c" 6308 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6309 = c,a/b,, \ 6310 && eval 'test $(( 1 + 1 )) -eq 2 \ 6311 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6312 && xsi_shell=yes 6313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6314$as_echo "$xsi_shell" >&6; } 6315 6316 6317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6318$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6319lt_shell_append=no 6320( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6321 >/dev/null 2>&1 \ 6322 && lt_shell_append=yes 6323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6324$as_echo "$lt_shell_append" >&6; } 6325 6326 6327if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6328 lt_unset=unset 6329else 6330 lt_unset=false 6331fi 6332 6333 6334 6335 6336 6337# test EBCDIC or ASCII 6338case `echo X|tr X '\101'` in 6339 A) # ASCII based system 6340 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6341 lt_SP2NL='tr \040 \012' 6342 lt_NL2SP='tr \015\012 \040\040' 6343 ;; 6344 *) # EBCDIC based system 6345 lt_SP2NL='tr \100 \n' 6346 lt_NL2SP='tr \r\n \100\100' 6347 ;; 6348esac 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6359$as_echo_n "checking for $LD option to reload object files... " >&6; } 6360if test "${lt_cv_ld_reload_flag+set}" = set; then : 6361 $as_echo_n "(cached) " >&6 6362else 6363 lt_cv_ld_reload_flag='-r' 6364fi 6365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6366$as_echo "$lt_cv_ld_reload_flag" >&6; } 6367reload_flag=$lt_cv_ld_reload_flag 6368case $reload_flag in 6369"" | " "*) ;; 6370*) reload_flag=" $reload_flag" ;; 6371esac 6372reload_cmds='$LD$reload_flag -o $output$reload_objs' 6373case $host_os in 6374 darwin*) 6375 if test "$GCC" = yes; then 6376 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6377 else 6378 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6379 fi 6380 ;; 6381esac 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391if test -n "$ac_tool_prefix"; then 6392 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6393set dummy ${ac_tool_prefix}objdump; ac_word=$2 6394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6395$as_echo_n "checking for $ac_word... " >&6; } 6396if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 6397 $as_echo_n "(cached) " >&6 6398else 6399 if test -n "$OBJDUMP"; then 6400 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6401else 6402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6403for as_dir in $PATH 6404do 6405 IFS=$as_save_IFS 6406 test -z "$as_dir" && as_dir=. 6407 for ac_exec_ext in '' $ac_executable_extensions; do 6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6409 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6411 break 2 6412 fi 6413done 6414 done 6415IFS=$as_save_IFS 6416 6417fi 6418fi 6419OBJDUMP=$ac_cv_prog_OBJDUMP 6420if test -n "$OBJDUMP"; then 6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6422$as_echo "$OBJDUMP" >&6; } 6423else 6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6425$as_echo "no" >&6; } 6426fi 6427 6428 6429fi 6430if test -z "$ac_cv_prog_OBJDUMP"; then 6431 ac_ct_OBJDUMP=$OBJDUMP 6432 # Extract the first word of "objdump", so it can be a program name with args. 6433set dummy objdump; ac_word=$2 6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6435$as_echo_n "checking for $ac_word... " >&6; } 6436if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 6437 $as_echo_n "(cached) " >&6 6438else 6439 if test -n "$ac_ct_OBJDUMP"; then 6440 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6441else 6442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6443for as_dir in $PATH 6444do 6445 IFS=$as_save_IFS 6446 test -z "$as_dir" && as_dir=. 6447 for ac_exec_ext in '' $ac_executable_extensions; do 6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6449 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6451 break 2 6452 fi 6453done 6454 done 6455IFS=$as_save_IFS 6456 6457fi 6458fi 6459ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6460if test -n "$ac_ct_OBJDUMP"; then 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6462$as_echo "$ac_ct_OBJDUMP" >&6; } 6463else 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6465$as_echo "no" >&6; } 6466fi 6467 6468 if test "x$ac_ct_OBJDUMP" = x; then 6469 OBJDUMP="false" 6470 else 6471 case $cross_compiling:$ac_tool_warned in 6472yes:) 6473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6475ac_tool_warned=yes ;; 6476esac 6477 OBJDUMP=$ac_ct_OBJDUMP 6478 fi 6479else 6480 OBJDUMP="$ac_cv_prog_OBJDUMP" 6481fi 6482 6483test -z "$OBJDUMP" && OBJDUMP=objdump 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6494$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6495if test "${lt_cv_deplibs_check_method+set}" = set; then : 6496 $as_echo_n "(cached) " >&6 6497else 6498 lt_cv_file_magic_cmd='$MAGIC_CMD' 6499lt_cv_file_magic_test_file= 6500lt_cv_deplibs_check_method='unknown' 6501# Need to set the preceding variable on all platforms that support 6502# interlibrary dependencies. 6503# 'none' -- dependencies not supported. 6504# `unknown' -- same as none, but documents that we really don't know. 6505# 'pass_all' -- all dependencies passed with no checks. 6506# 'test_compile' -- check by making test program. 6507# 'file_magic [[regex]]' -- check by looking for files in library path 6508# which responds to the $file_magic_cmd with a given extended regex. 6509# If you have `file' or equivalent on your system and you're not sure 6510# whether `pass_all' will *always* work, you probably want this one. 6511 6512case $host_os in 6513aix[4-9]*) 6514 lt_cv_deplibs_check_method=pass_all 6515 ;; 6516 6517beos*) 6518 lt_cv_deplibs_check_method=pass_all 6519 ;; 6520 6521bsdi[45]*) 6522 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6523 lt_cv_file_magic_cmd='/usr/bin/file -L' 6524 lt_cv_file_magic_test_file=/shlib/libc.so 6525 ;; 6526 6527cygwin*) 6528 # func_win32_libid is a shell function defined in ltmain.sh 6529 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6530 lt_cv_file_magic_cmd='func_win32_libid' 6531 ;; 6532 6533mingw* | pw32*) 6534 # Base MSYS/MinGW do not provide the 'file' command needed by 6535 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6536 # unless we find 'file', for example because we are cross-compiling. 6537 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6538 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6539 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6540 lt_cv_file_magic_cmd='func_win32_libid' 6541 else 6542 # Keep this pattern in sync with the one in func_win32_libid. 6543 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6544 lt_cv_file_magic_cmd='$OBJDUMP -f' 6545 fi 6546 ;; 6547 6548cegcc*) 6549 # use the weaker test based on 'objdump'. See mingw*. 6550 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6551 lt_cv_file_magic_cmd='$OBJDUMP -f' 6552 ;; 6553 6554darwin* | rhapsody*) 6555 lt_cv_deplibs_check_method=pass_all 6556 ;; 6557 6558freebsd* | dragonfly*) 6559 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6560 case $host_cpu in 6561 i*86 ) 6562 # Not sure whether the presence of OpenBSD here was a mistake. 6563 # Let's accept both of them until this is cleared up. 6564 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6565 lt_cv_file_magic_cmd=/usr/bin/file 6566 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6567 ;; 6568 esac 6569 else 6570 lt_cv_deplibs_check_method=pass_all 6571 fi 6572 ;; 6573 6574gnu*) 6575 lt_cv_deplibs_check_method=pass_all 6576 ;; 6577 6578haiku*) 6579 lt_cv_deplibs_check_method=pass_all 6580 ;; 6581 6582hpux10.20* | hpux11*) 6583 lt_cv_file_magic_cmd=/usr/bin/file 6584 case $host_cpu in 6585 ia64*) 6586 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6587 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6588 ;; 6589 hppa*64*) 6590 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]' 6591 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6592 ;; 6593 *) 6594 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6595 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6596 ;; 6597 esac 6598 ;; 6599 6600interix[3-9]*) 6601 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6603 ;; 6604 6605irix5* | irix6* | nonstopux*) 6606 case $LD in 6607 *-32|*"-32 ") libmagic=32-bit;; 6608 *-n32|*"-n32 ") libmagic=N32;; 6609 *-64|*"-64 ") libmagic=64-bit;; 6610 *) libmagic=never-match;; 6611 esac 6612 lt_cv_deplibs_check_method=pass_all 6613 ;; 6614 6615# This must be Linux ELF. 6616linux* | k*bsd*-gnu | kopensolaris*-gnu) 6617 lt_cv_deplibs_check_method=pass_all 6618 ;; 6619 6620netbsd*) 6621 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6622 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6623 else 6624 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6625 fi 6626 ;; 6627 6628newos6*) 6629 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6630 lt_cv_file_magic_cmd=/usr/bin/file 6631 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6632 ;; 6633 6634*nto* | *qnx*) 6635 lt_cv_deplibs_check_method=pass_all 6636 ;; 6637 6638openbsd*) 6639 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6641 else 6642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6643 fi 6644 ;; 6645 6646osf3* | osf4* | osf5*) 6647 lt_cv_deplibs_check_method=pass_all 6648 ;; 6649 6650rdos*) 6651 lt_cv_deplibs_check_method=pass_all 6652 ;; 6653 6654solaris*) 6655 lt_cv_deplibs_check_method=pass_all 6656 ;; 6657 6658sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6659 lt_cv_deplibs_check_method=pass_all 6660 ;; 6661 6662sysv4 | sysv4.3*) 6663 case $host_vendor in 6664 motorola) 6665 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]' 6666 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6667 ;; 6668 ncr) 6669 lt_cv_deplibs_check_method=pass_all 6670 ;; 6671 sequent) 6672 lt_cv_file_magic_cmd='/bin/file' 6673 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6674 ;; 6675 sni) 6676 lt_cv_file_magic_cmd='/bin/file' 6677 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6678 lt_cv_file_magic_test_file=/lib/libc.so 6679 ;; 6680 siemens) 6681 lt_cv_deplibs_check_method=pass_all 6682 ;; 6683 pc) 6684 lt_cv_deplibs_check_method=pass_all 6685 ;; 6686 esac 6687 ;; 6688 6689tpf*) 6690 lt_cv_deplibs_check_method=pass_all 6691 ;; 6692esac 6693 6694fi 6695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6696$as_echo "$lt_cv_deplibs_check_method" >&6; } 6697file_magic_cmd=$lt_cv_file_magic_cmd 6698deplibs_check_method=$lt_cv_deplibs_check_method 6699test -z "$deplibs_check_method" && deplibs_check_method=unknown 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712if test -n "$ac_tool_prefix"; then 6713 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6714set dummy ${ac_tool_prefix}ar; ac_word=$2 6715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6716$as_echo_n "checking for $ac_word... " >&6; } 6717if test "${ac_cv_prog_AR+set}" = set; then : 6718 $as_echo_n "(cached) " >&6 6719else 6720 if test -n "$AR"; then 6721 ac_cv_prog_AR="$AR" # Let the user override the test. 6722else 6723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6724for as_dir in $PATH 6725do 6726 IFS=$as_save_IFS 6727 test -z "$as_dir" && as_dir=. 6728 for ac_exec_ext in '' $ac_executable_extensions; do 6729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6730 ac_cv_prog_AR="${ac_tool_prefix}ar" 6731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6732 break 2 6733 fi 6734done 6735 done 6736IFS=$as_save_IFS 6737 6738fi 6739fi 6740AR=$ac_cv_prog_AR 6741if test -n "$AR"; then 6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6743$as_echo "$AR" >&6; } 6744else 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6746$as_echo "no" >&6; } 6747fi 6748 6749 6750fi 6751if test -z "$ac_cv_prog_AR"; then 6752 ac_ct_AR=$AR 6753 # Extract the first word of "ar", so it can be a program name with args. 6754set dummy ar; ac_word=$2 6755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6756$as_echo_n "checking for $ac_word... " >&6; } 6757if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6758 $as_echo_n "(cached) " >&6 6759else 6760 if test -n "$ac_ct_AR"; then 6761 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6762else 6763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6764for as_dir in $PATH 6765do 6766 IFS=$as_save_IFS 6767 test -z "$as_dir" && as_dir=. 6768 for ac_exec_ext in '' $ac_executable_extensions; do 6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6770 ac_cv_prog_ac_ct_AR="ar" 6771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6772 break 2 6773 fi 6774done 6775 done 6776IFS=$as_save_IFS 6777 6778fi 6779fi 6780ac_ct_AR=$ac_cv_prog_ac_ct_AR 6781if test -n "$ac_ct_AR"; then 6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6783$as_echo "$ac_ct_AR" >&6; } 6784else 6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6786$as_echo "no" >&6; } 6787fi 6788 6789 if test "x$ac_ct_AR" = x; then 6790 AR="false" 6791 else 6792 case $cross_compiling:$ac_tool_warned in 6793yes:) 6794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6796ac_tool_warned=yes ;; 6797esac 6798 AR=$ac_ct_AR 6799 fi 6800else 6801 AR="$ac_cv_prog_AR" 6802fi 6803 6804test -z "$AR" && AR=ar 6805test -z "$AR_FLAGS" && AR_FLAGS=cru 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817if test -n "$ac_tool_prefix"; then 6818 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6819set dummy ${ac_tool_prefix}strip; ac_word=$2 6820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6821$as_echo_n "checking for $ac_word... " >&6; } 6822if test "${ac_cv_prog_STRIP+set}" = set; then : 6823 $as_echo_n "(cached) " >&6 6824else 6825 if test -n "$STRIP"; then 6826 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6827else 6828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6829for as_dir in $PATH 6830do 6831 IFS=$as_save_IFS 6832 test -z "$as_dir" && as_dir=. 6833 for ac_exec_ext in '' $ac_executable_extensions; do 6834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6835 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6837 break 2 6838 fi 6839done 6840 done 6841IFS=$as_save_IFS 6842 6843fi 6844fi 6845STRIP=$ac_cv_prog_STRIP 6846if test -n "$STRIP"; then 6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6848$as_echo "$STRIP" >&6; } 6849else 6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6851$as_echo "no" >&6; } 6852fi 6853 6854 6855fi 6856if test -z "$ac_cv_prog_STRIP"; then 6857 ac_ct_STRIP=$STRIP 6858 # Extract the first word of "strip", so it can be a program name with args. 6859set dummy strip; ac_word=$2 6860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6861$as_echo_n "checking for $ac_word... " >&6; } 6862if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6863 $as_echo_n "(cached) " >&6 6864else 6865 if test -n "$ac_ct_STRIP"; then 6866 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6867else 6868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6869for as_dir in $PATH 6870do 6871 IFS=$as_save_IFS 6872 test -z "$as_dir" && as_dir=. 6873 for ac_exec_ext in '' $ac_executable_extensions; do 6874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6875 ac_cv_prog_ac_ct_STRIP="strip" 6876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6877 break 2 6878 fi 6879done 6880 done 6881IFS=$as_save_IFS 6882 6883fi 6884fi 6885ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6886if test -n "$ac_ct_STRIP"; then 6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6888$as_echo "$ac_ct_STRIP" >&6; } 6889else 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6891$as_echo "no" >&6; } 6892fi 6893 6894 if test "x$ac_ct_STRIP" = x; then 6895 STRIP=":" 6896 else 6897 case $cross_compiling:$ac_tool_warned in 6898yes:) 6899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6901ac_tool_warned=yes ;; 6902esac 6903 STRIP=$ac_ct_STRIP 6904 fi 6905else 6906 STRIP="$ac_cv_prog_STRIP" 6907fi 6908 6909test -z "$STRIP" && STRIP=: 6910 6911 6912 6913 6914 6915 6916if test -n "$ac_tool_prefix"; then 6917 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6918set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6920$as_echo_n "checking for $ac_word... " >&6; } 6921if test "${ac_cv_prog_RANLIB+set}" = set; then : 6922 $as_echo_n "(cached) " >&6 6923else 6924 if test -n "$RANLIB"; then 6925 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6926else 6927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6928for as_dir in $PATH 6929do 6930 IFS=$as_save_IFS 6931 test -z "$as_dir" && as_dir=. 6932 for ac_exec_ext in '' $ac_executable_extensions; do 6933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6934 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6936 break 2 6937 fi 6938done 6939 done 6940IFS=$as_save_IFS 6941 6942fi 6943fi 6944RANLIB=$ac_cv_prog_RANLIB 6945if test -n "$RANLIB"; then 6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6947$as_echo "$RANLIB" >&6; } 6948else 6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6950$as_echo "no" >&6; } 6951fi 6952 6953 6954fi 6955if test -z "$ac_cv_prog_RANLIB"; then 6956 ac_ct_RANLIB=$RANLIB 6957 # Extract the first word of "ranlib", so it can be a program name with args. 6958set dummy ranlib; ac_word=$2 6959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6960$as_echo_n "checking for $ac_word... " >&6; } 6961if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6962 $as_echo_n "(cached) " >&6 6963else 6964 if test -n "$ac_ct_RANLIB"; then 6965 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6966else 6967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6968for as_dir in $PATH 6969do 6970 IFS=$as_save_IFS 6971 test -z "$as_dir" && as_dir=. 6972 for ac_exec_ext in '' $ac_executable_extensions; do 6973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6974 ac_cv_prog_ac_ct_RANLIB="ranlib" 6975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6976 break 2 6977 fi 6978done 6979 done 6980IFS=$as_save_IFS 6981 6982fi 6983fi 6984ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6985if test -n "$ac_ct_RANLIB"; then 6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6987$as_echo "$ac_ct_RANLIB" >&6; } 6988else 6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6990$as_echo "no" >&6; } 6991fi 6992 6993 if test "x$ac_ct_RANLIB" = x; then 6994 RANLIB=":" 6995 else 6996 case $cross_compiling:$ac_tool_warned in 6997yes:) 6998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7000ac_tool_warned=yes ;; 7001esac 7002 RANLIB=$ac_ct_RANLIB 7003 fi 7004else 7005 RANLIB="$ac_cv_prog_RANLIB" 7006fi 7007 7008test -z "$RANLIB" && RANLIB=: 7009 7010 7011 7012 7013 7014 7015# Determine commands to create old-style static archives. 7016old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7017old_postinstall_cmds='chmod 644 $oldlib' 7018old_postuninstall_cmds= 7019 7020if test -n "$RANLIB"; then 7021 case $host_os in 7022 openbsd*) 7023 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7024 ;; 7025 *) 7026 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7027 ;; 7028 esac 7029 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7030fi 7031 7032case $host_os in 7033 darwin*) 7034 lock_old_archive_extraction=yes ;; 7035 *) 7036 lock_old_archive_extraction=no ;; 7037esac 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077# If no C compiler was specified, use CC. 7078LTCC=${LTCC-"$CC"} 7079 7080# If no C compiler flags were specified, use CFLAGS. 7081LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7082 7083# Allow CC to be a program name with arguments. 7084compiler=$CC 7085 7086 7087# Check for command to grab the raw symbol name followed by C symbol from nm. 7088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7089$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7090if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 7091 $as_echo_n "(cached) " >&6 7092else 7093 7094# These are sane defaults that work on at least a few old systems. 7095# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7096 7097# Character class describing NM global symbol codes. 7098symcode='[BCDEGRST]' 7099 7100# Regexp to match symbols that can be accessed directly from C. 7101sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7102 7103# Define system-specific variables. 7104case $host_os in 7105aix*) 7106 symcode='[BCDT]' 7107 ;; 7108cygwin* | mingw* | pw32* | cegcc*) 7109 symcode='[ABCDGISTW]' 7110 ;; 7111hpux*) 7112 if test "$host_cpu" = ia64; then 7113 symcode='[ABCDEGRST]' 7114 fi 7115 ;; 7116irix* | nonstopux*) 7117 symcode='[BCDEGRST]' 7118 ;; 7119osf*) 7120 symcode='[BCDEGQRST]' 7121 ;; 7122solaris*) 7123 symcode='[BDRT]' 7124 ;; 7125sco3.2v5*) 7126 symcode='[DT]' 7127 ;; 7128sysv4.2uw2*) 7129 symcode='[DT]' 7130 ;; 7131sysv5* | sco5v6* | unixware* | OpenUNIX*) 7132 symcode='[ABDT]' 7133 ;; 7134sysv4) 7135 symcode='[DFNSTU]' 7136 ;; 7137esac 7138 7139# If we're using GNU nm, then use its standard symbol codes. 7140case `$NM -V 2>&1` in 7141*GNU* | *'with BFD'*) 7142 symcode='[ABCDGIRSTW]' ;; 7143esac 7144 7145# Transform an extracted symbol line into a proper C declaration. 7146# Some systems (esp. on ia64) link data and code symbols differently, 7147# so use this general approach. 7148lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7149 7150# Transform an extracted symbol line into symbol name and symbol address 7151lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7152lt_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'" 7153 7154# Handle CRLF in mingw tool chain 7155opt_cr= 7156case $build_os in 7157mingw*) 7158 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7159 ;; 7160esac 7161 7162# Try without a prefix underscore, then with it. 7163for ac_symprfx in "" "_"; do 7164 7165 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7166 symxfrm="\\1 $ac_symprfx\\2 \\2" 7167 7168 # Write the raw and C identifiers. 7169 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7170 # Fake it for dumpbin and say T for any non-static function 7171 # and D for any global variable. 7172 # Also find C++ and __fastcall symbols from MSVC++, 7173 # which start with @ or ?. 7174 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7175" {last_section=section; section=\$ 3};"\ 7176" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7177" \$ 0!~/External *\|/{next};"\ 7178" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7179" {if(hide[section]) next};"\ 7180" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7181" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7182" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7183" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7184" ' prfx=^$ac_symprfx" 7185 else 7186 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7187 fi 7188 7189 # Check to see that the pipe works correctly. 7190 pipe_works=no 7191 7192 rm -f conftest* 7193 cat > conftest.$ac_ext <<_LT_EOF 7194#ifdef __cplusplus 7195extern "C" { 7196#endif 7197char nm_test_var; 7198void nm_test_func(void); 7199void nm_test_func(void){} 7200#ifdef __cplusplus 7201} 7202#endif 7203int main(){nm_test_var='a';nm_test_func();return(0);} 7204_LT_EOF 7205 7206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7207 (eval $ac_compile) 2>&5 7208 ac_status=$? 7209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7210 test $ac_status = 0; }; then 7211 # Now try to grab the symbols. 7212 nlist=conftest.nm 7213 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7214 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7215 ac_status=$? 7216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7217 test $ac_status = 0; } && test -s "$nlist"; then 7218 # Try sorting and uniquifying the output. 7219 if sort "$nlist" | uniq > "$nlist"T; then 7220 mv -f "$nlist"T "$nlist" 7221 else 7222 rm -f "$nlist"T 7223 fi 7224 7225 # Make sure that we snagged all the symbols we need. 7226 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7227 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7228 cat <<_LT_EOF > conftest.$ac_ext 7229#ifdef __cplusplus 7230extern "C" { 7231#endif 7232 7233_LT_EOF 7234 # Now generate the symbol file. 7235 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7236 7237 cat <<_LT_EOF >> conftest.$ac_ext 7238 7239/* The mapping between symbol names and symbols. */ 7240const struct { 7241 const char *name; 7242 void *address; 7243} 7244lt__PROGRAM__LTX_preloaded_symbols[] = 7245{ 7246 { "@PROGRAM@", (void *) 0 }, 7247_LT_EOF 7248 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7249 cat <<\_LT_EOF >> conftest.$ac_ext 7250 {0, (void *) 0} 7251}; 7252 7253/* This works around a problem in FreeBSD linker */ 7254#ifdef FREEBSD_WORKAROUND 7255static const void *lt_preloaded_setup() { 7256 return lt__PROGRAM__LTX_preloaded_symbols; 7257} 7258#endif 7259 7260#ifdef __cplusplus 7261} 7262#endif 7263_LT_EOF 7264 # Now try linking the two files. 7265 mv conftest.$ac_objext conftstm.$ac_objext 7266 lt_save_LIBS="$LIBS" 7267 lt_save_CFLAGS="$CFLAGS" 7268 LIBS="conftstm.$ac_objext" 7269 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7271 (eval $ac_link) 2>&5 7272 ac_status=$? 7273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7274 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7275 pipe_works=yes 7276 fi 7277 LIBS="$lt_save_LIBS" 7278 CFLAGS="$lt_save_CFLAGS" 7279 else 7280 echo "cannot find nm_test_func in $nlist" >&5 7281 fi 7282 else 7283 echo "cannot find nm_test_var in $nlist" >&5 7284 fi 7285 else 7286 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7287 fi 7288 else 7289 echo "$progname: failed program was:" >&5 7290 cat conftest.$ac_ext >&5 7291 fi 7292 rm -rf conftest* conftst* 7293 7294 # Do not use the global_symbol_pipe unless it works. 7295 if test "$pipe_works" = yes; then 7296 break 7297 else 7298 lt_cv_sys_global_symbol_pipe= 7299 fi 7300done 7301 7302fi 7303 7304if test -z "$lt_cv_sys_global_symbol_pipe"; then 7305 lt_cv_sys_global_symbol_to_cdecl= 7306fi 7307if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7309$as_echo "failed" >&6; } 7310else 7311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7312$as_echo "ok" >&6; } 7313fi 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336# Check whether --enable-libtool-lock was given. 7337if test "${enable_libtool_lock+set}" = set; then : 7338 enableval=$enable_libtool_lock; 7339fi 7340 7341test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7342 7343# Some flags need to be propagated to the compiler or linker for good 7344# libtool support. 7345case $host in 7346ia64-*-hpux*) 7347 # Find out which ABI we are using. 7348 echo 'int i;' > conftest.$ac_ext 7349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7350 (eval $ac_compile) 2>&5 7351 ac_status=$? 7352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7353 test $ac_status = 0; }; then 7354 case `/usr/bin/file conftest.$ac_objext` in 7355 *ELF-32*) 7356 HPUX_IA64_MODE="32" 7357 ;; 7358 *ELF-64*) 7359 HPUX_IA64_MODE="64" 7360 ;; 7361 esac 7362 fi 7363 rm -rf conftest* 7364 ;; 7365*-*-irix6*) 7366 # Find out which ABI we are using. 7367 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7368 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7369 (eval $ac_compile) 2>&5 7370 ac_status=$? 7371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7372 test $ac_status = 0; }; then 7373 if test "$lt_cv_prog_gnu_ld" = yes; then 7374 case `/usr/bin/file conftest.$ac_objext` in 7375 *32-bit*) 7376 LD="${LD-ld} -melf32bsmip" 7377 ;; 7378 *N32*) 7379 LD="${LD-ld} -melf32bmipn32" 7380 ;; 7381 *64-bit*) 7382 LD="${LD-ld} -melf64bmip" 7383 ;; 7384 esac 7385 else 7386 case `/usr/bin/file conftest.$ac_objext` in 7387 *32-bit*) 7388 LD="${LD-ld} -32" 7389 ;; 7390 *N32*) 7391 LD="${LD-ld} -n32" 7392 ;; 7393 *64-bit*) 7394 LD="${LD-ld} -64" 7395 ;; 7396 esac 7397 fi 7398 fi 7399 rm -rf conftest* 7400 ;; 7401 7402x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7403s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7404 # Find out which ABI we are using. 7405 echo 'int i;' > conftest.$ac_ext 7406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7407 (eval $ac_compile) 2>&5 7408 ac_status=$? 7409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7410 test $ac_status = 0; }; then 7411 case `/usr/bin/file conftest.o` in 7412 *32-bit*) 7413 case $host in 7414 x86_64-*kfreebsd*-gnu) 7415 LD="${LD-ld} -m elf_i386_fbsd" 7416 ;; 7417 x86_64-*linux*) 7418 LD="${LD-ld} -m elf_i386" 7419 ;; 7420 ppc64-*linux*|powerpc64-*linux*) 7421 LD="${LD-ld} -m elf32ppclinux" 7422 ;; 7423 s390x-*linux*) 7424 LD="${LD-ld} -m elf_s390" 7425 ;; 7426 sparc64-*linux*) 7427 LD="${LD-ld} -m elf32_sparc" 7428 ;; 7429 esac 7430 ;; 7431 *64-bit*) 7432 case $host in 7433 x86_64-*kfreebsd*-gnu) 7434 LD="${LD-ld} -m elf_x86_64_fbsd" 7435 ;; 7436 x86_64-*linux*) 7437 LD="${LD-ld} -m elf_x86_64" 7438 ;; 7439 ppc*-*linux*|powerpc*-*linux*) 7440 LD="${LD-ld} -m elf64ppc" 7441 ;; 7442 s390*-*linux*|s390*-*tpf*) 7443 LD="${LD-ld} -m elf64_s390" 7444 ;; 7445 sparc*-*linux*) 7446 LD="${LD-ld} -m elf64_sparc" 7447 ;; 7448 esac 7449 ;; 7450 esac 7451 fi 7452 rm -rf conftest* 7453 ;; 7454 7455*-*-sco3.2v5*) 7456 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7457 SAVE_CFLAGS="$CFLAGS" 7458 CFLAGS="$CFLAGS -belf" 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7460$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7461if test "${lt_cv_cc_needs_belf+set}" = set; then : 7462 $as_echo_n "(cached) " >&6 7463else 7464 ac_ext=c 7465ac_cpp='$CPP $CPPFLAGS' 7466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7468ac_compiler_gnu=$ac_cv_c_compiler_gnu 7469 7470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7471/* end confdefs.h. */ 7472 7473int 7474main () 7475{ 7476 7477 ; 7478 return 0; 7479} 7480_ACEOF 7481if ac_fn_c_try_link "$LINENO"; then : 7482 lt_cv_cc_needs_belf=yes 7483else 7484 lt_cv_cc_needs_belf=no 7485fi 7486rm -f core conftest.err conftest.$ac_objext \ 7487 conftest$ac_exeext conftest.$ac_ext 7488 ac_ext=c 7489ac_cpp='$CPP $CPPFLAGS' 7490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7492ac_compiler_gnu=$ac_cv_c_compiler_gnu 7493 7494fi 7495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7496$as_echo "$lt_cv_cc_needs_belf" >&6; } 7497 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7498 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7499 CFLAGS="$SAVE_CFLAGS" 7500 fi 7501 ;; 7502sparc*-*solaris*) 7503 # Find out which ABI we are using. 7504 echo 'int i;' > conftest.$ac_ext 7505 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7506 (eval $ac_compile) 2>&5 7507 ac_status=$? 7508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7509 test $ac_status = 0; }; then 7510 case `/usr/bin/file conftest.o` in 7511 *64-bit*) 7512 case $lt_cv_prog_gnu_ld in 7513 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7514 *) 7515 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7516 LD="${LD-ld} -64" 7517 fi 7518 ;; 7519 esac 7520 ;; 7521 esac 7522 fi 7523 rm -rf conftest* 7524 ;; 7525esac 7526 7527need_locks="$enable_libtool_lock" 7528 7529 7530 case $host_os in 7531 rhapsody* | darwin*) 7532 if test -n "$ac_tool_prefix"; then 7533 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7534set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7536$as_echo_n "checking for $ac_word... " >&6; } 7537if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 7538 $as_echo_n "(cached) " >&6 7539else 7540 if test -n "$DSYMUTIL"; then 7541 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7542else 7543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7544for as_dir in $PATH 7545do 7546 IFS=$as_save_IFS 7547 test -z "$as_dir" && as_dir=. 7548 for ac_exec_ext in '' $ac_executable_extensions; do 7549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7550 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7552 break 2 7553 fi 7554done 7555 done 7556IFS=$as_save_IFS 7557 7558fi 7559fi 7560DSYMUTIL=$ac_cv_prog_DSYMUTIL 7561if test -n "$DSYMUTIL"; then 7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7563$as_echo "$DSYMUTIL" >&6; } 7564else 7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7566$as_echo "no" >&6; } 7567fi 7568 7569 7570fi 7571if test -z "$ac_cv_prog_DSYMUTIL"; then 7572 ac_ct_DSYMUTIL=$DSYMUTIL 7573 # Extract the first word of "dsymutil", so it can be a program name with args. 7574set dummy dsymutil; ac_word=$2 7575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7576$as_echo_n "checking for $ac_word... " >&6; } 7577if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 7578 $as_echo_n "(cached) " >&6 7579else 7580 if test -n "$ac_ct_DSYMUTIL"; then 7581 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7582else 7583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7584for as_dir in $PATH 7585do 7586 IFS=$as_save_IFS 7587 test -z "$as_dir" && as_dir=. 7588 for ac_exec_ext in '' $ac_executable_extensions; do 7589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7590 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7592 break 2 7593 fi 7594done 7595 done 7596IFS=$as_save_IFS 7597 7598fi 7599fi 7600ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7601if test -n "$ac_ct_DSYMUTIL"; then 7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7603$as_echo "$ac_ct_DSYMUTIL" >&6; } 7604else 7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7606$as_echo "no" >&6; } 7607fi 7608 7609 if test "x$ac_ct_DSYMUTIL" = x; then 7610 DSYMUTIL=":" 7611 else 7612 case $cross_compiling:$ac_tool_warned in 7613yes:) 7614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7616ac_tool_warned=yes ;; 7617esac 7618 DSYMUTIL=$ac_ct_DSYMUTIL 7619 fi 7620else 7621 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7622fi 7623 7624 if test -n "$ac_tool_prefix"; then 7625 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7626set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7628$as_echo_n "checking for $ac_word... " >&6; } 7629if test "${ac_cv_prog_NMEDIT+set}" = set; then : 7630 $as_echo_n "(cached) " >&6 7631else 7632 if test -n "$NMEDIT"; then 7633 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7634else 7635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7636for as_dir in $PATH 7637do 7638 IFS=$as_save_IFS 7639 test -z "$as_dir" && as_dir=. 7640 for ac_exec_ext in '' $ac_executable_extensions; do 7641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7642 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7644 break 2 7645 fi 7646done 7647 done 7648IFS=$as_save_IFS 7649 7650fi 7651fi 7652NMEDIT=$ac_cv_prog_NMEDIT 7653if test -n "$NMEDIT"; then 7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7655$as_echo "$NMEDIT" >&6; } 7656else 7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7658$as_echo "no" >&6; } 7659fi 7660 7661 7662fi 7663if test -z "$ac_cv_prog_NMEDIT"; then 7664 ac_ct_NMEDIT=$NMEDIT 7665 # Extract the first word of "nmedit", so it can be a program name with args. 7666set dummy nmedit; ac_word=$2 7667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7668$as_echo_n "checking for $ac_word... " >&6; } 7669if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 7670 $as_echo_n "(cached) " >&6 7671else 7672 if test -n "$ac_ct_NMEDIT"; then 7673 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7674else 7675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7676for as_dir in $PATH 7677do 7678 IFS=$as_save_IFS 7679 test -z "$as_dir" && as_dir=. 7680 for ac_exec_ext in '' $ac_executable_extensions; do 7681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7682 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7684 break 2 7685 fi 7686done 7687 done 7688IFS=$as_save_IFS 7689 7690fi 7691fi 7692ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7693if test -n "$ac_ct_NMEDIT"; then 7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7695$as_echo "$ac_ct_NMEDIT" >&6; } 7696else 7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7698$as_echo "no" >&6; } 7699fi 7700 7701 if test "x$ac_ct_NMEDIT" = x; then 7702 NMEDIT=":" 7703 else 7704 case $cross_compiling:$ac_tool_warned in 7705yes:) 7706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7708ac_tool_warned=yes ;; 7709esac 7710 NMEDIT=$ac_ct_NMEDIT 7711 fi 7712else 7713 NMEDIT="$ac_cv_prog_NMEDIT" 7714fi 7715 7716 if test -n "$ac_tool_prefix"; then 7717 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7718set dummy ${ac_tool_prefix}lipo; ac_word=$2 7719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7720$as_echo_n "checking for $ac_word... " >&6; } 7721if test "${ac_cv_prog_LIPO+set}" = set; then : 7722 $as_echo_n "(cached) " >&6 7723else 7724 if test -n "$LIPO"; then 7725 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7726else 7727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7728for as_dir in $PATH 7729do 7730 IFS=$as_save_IFS 7731 test -z "$as_dir" && as_dir=. 7732 for ac_exec_ext in '' $ac_executable_extensions; do 7733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7734 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7736 break 2 7737 fi 7738done 7739 done 7740IFS=$as_save_IFS 7741 7742fi 7743fi 7744LIPO=$ac_cv_prog_LIPO 7745if test -n "$LIPO"; then 7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7747$as_echo "$LIPO" >&6; } 7748else 7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7750$as_echo "no" >&6; } 7751fi 7752 7753 7754fi 7755if test -z "$ac_cv_prog_LIPO"; then 7756 ac_ct_LIPO=$LIPO 7757 # Extract the first word of "lipo", so it can be a program name with args. 7758set dummy lipo; ac_word=$2 7759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7760$as_echo_n "checking for $ac_word... " >&6; } 7761if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 7762 $as_echo_n "(cached) " >&6 7763else 7764 if test -n "$ac_ct_LIPO"; then 7765 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7766else 7767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7768for as_dir in $PATH 7769do 7770 IFS=$as_save_IFS 7771 test -z "$as_dir" && as_dir=. 7772 for ac_exec_ext in '' $ac_executable_extensions; do 7773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7774 ac_cv_prog_ac_ct_LIPO="lipo" 7775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7776 break 2 7777 fi 7778done 7779 done 7780IFS=$as_save_IFS 7781 7782fi 7783fi 7784ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7785if test -n "$ac_ct_LIPO"; then 7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7787$as_echo "$ac_ct_LIPO" >&6; } 7788else 7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7790$as_echo "no" >&6; } 7791fi 7792 7793 if test "x$ac_ct_LIPO" = x; then 7794 LIPO=":" 7795 else 7796 case $cross_compiling:$ac_tool_warned in 7797yes:) 7798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7800ac_tool_warned=yes ;; 7801esac 7802 LIPO=$ac_ct_LIPO 7803 fi 7804else 7805 LIPO="$ac_cv_prog_LIPO" 7806fi 7807 7808 if test -n "$ac_tool_prefix"; then 7809 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7810set dummy ${ac_tool_prefix}otool; ac_word=$2 7811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7812$as_echo_n "checking for $ac_word... " >&6; } 7813if test "${ac_cv_prog_OTOOL+set}" = set; then : 7814 $as_echo_n "(cached) " >&6 7815else 7816 if test -n "$OTOOL"; then 7817 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7818else 7819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7820for as_dir in $PATH 7821do 7822 IFS=$as_save_IFS 7823 test -z "$as_dir" && as_dir=. 7824 for ac_exec_ext in '' $ac_executable_extensions; do 7825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7826 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7828 break 2 7829 fi 7830done 7831 done 7832IFS=$as_save_IFS 7833 7834fi 7835fi 7836OTOOL=$ac_cv_prog_OTOOL 7837if test -n "$OTOOL"; then 7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7839$as_echo "$OTOOL" >&6; } 7840else 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7842$as_echo "no" >&6; } 7843fi 7844 7845 7846fi 7847if test -z "$ac_cv_prog_OTOOL"; then 7848 ac_ct_OTOOL=$OTOOL 7849 # Extract the first word of "otool", so it can be a program name with args. 7850set dummy otool; ac_word=$2 7851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7852$as_echo_n "checking for $ac_word... " >&6; } 7853if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7854 $as_echo_n "(cached) " >&6 7855else 7856 if test -n "$ac_ct_OTOOL"; then 7857 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7858else 7859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7860for as_dir in $PATH 7861do 7862 IFS=$as_save_IFS 7863 test -z "$as_dir" && as_dir=. 7864 for ac_exec_ext in '' $ac_executable_extensions; do 7865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7866 ac_cv_prog_ac_ct_OTOOL="otool" 7867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7868 break 2 7869 fi 7870done 7871 done 7872IFS=$as_save_IFS 7873 7874fi 7875fi 7876ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7877if test -n "$ac_ct_OTOOL"; then 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7879$as_echo "$ac_ct_OTOOL" >&6; } 7880else 7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7882$as_echo "no" >&6; } 7883fi 7884 7885 if test "x$ac_ct_OTOOL" = x; then 7886 OTOOL=":" 7887 else 7888 case $cross_compiling:$ac_tool_warned in 7889yes:) 7890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7892ac_tool_warned=yes ;; 7893esac 7894 OTOOL=$ac_ct_OTOOL 7895 fi 7896else 7897 OTOOL="$ac_cv_prog_OTOOL" 7898fi 7899 7900 if test -n "$ac_tool_prefix"; then 7901 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7902set dummy ${ac_tool_prefix}otool64; ac_word=$2 7903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7904$as_echo_n "checking for $ac_word... " >&6; } 7905if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7906 $as_echo_n "(cached) " >&6 7907else 7908 if test -n "$OTOOL64"; then 7909 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7910else 7911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7912for as_dir in $PATH 7913do 7914 IFS=$as_save_IFS 7915 test -z "$as_dir" && as_dir=. 7916 for ac_exec_ext in '' $ac_executable_extensions; do 7917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7918 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7920 break 2 7921 fi 7922done 7923 done 7924IFS=$as_save_IFS 7925 7926fi 7927fi 7928OTOOL64=$ac_cv_prog_OTOOL64 7929if test -n "$OTOOL64"; then 7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7931$as_echo "$OTOOL64" >&6; } 7932else 7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7934$as_echo "no" >&6; } 7935fi 7936 7937 7938fi 7939if test -z "$ac_cv_prog_OTOOL64"; then 7940 ac_ct_OTOOL64=$OTOOL64 7941 # Extract the first word of "otool64", so it can be a program name with args. 7942set dummy otool64; ac_word=$2 7943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7944$as_echo_n "checking for $ac_word... " >&6; } 7945if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7946 $as_echo_n "(cached) " >&6 7947else 7948 if test -n "$ac_ct_OTOOL64"; then 7949 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7950else 7951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7952for as_dir in $PATH 7953do 7954 IFS=$as_save_IFS 7955 test -z "$as_dir" && as_dir=. 7956 for ac_exec_ext in '' $ac_executable_extensions; do 7957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7958 ac_cv_prog_ac_ct_OTOOL64="otool64" 7959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7960 break 2 7961 fi 7962done 7963 done 7964IFS=$as_save_IFS 7965 7966fi 7967fi 7968ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7969if test -n "$ac_ct_OTOOL64"; then 7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7971$as_echo "$ac_ct_OTOOL64" >&6; } 7972else 7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7974$as_echo "no" >&6; } 7975fi 7976 7977 if test "x$ac_ct_OTOOL64" = x; then 7978 OTOOL64=":" 7979 else 7980 case $cross_compiling:$ac_tool_warned in 7981yes:) 7982{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7983$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7984ac_tool_warned=yes ;; 7985esac 7986 OTOOL64=$ac_ct_OTOOL64 7987 fi 7988else 7989 OTOOL64="$ac_cv_prog_OTOOL64" 7990fi 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8019$as_echo_n "checking for -single_module linker flag... " >&6; } 8020if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 8021 $as_echo_n "(cached) " >&6 8022else 8023 lt_cv_apple_cc_single_mod=no 8024 if test -z "${LT_MULTI_MODULE}"; then 8025 # By default we will add the -single_module flag. You can override 8026 # by either setting the environment variable LT_MULTI_MODULE 8027 # non-empty at configure time, or by adding -multi_module to the 8028 # link flags. 8029 rm -rf libconftest.dylib* 8030 echo "int foo(void){return 1;}" > conftest.c 8031 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8032-dynamiclib -Wl,-single_module conftest.c" >&5 8033 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8034 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8035 _lt_result=$? 8036 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 8037 lt_cv_apple_cc_single_mod=yes 8038 else 8039 cat conftest.err >&5 8040 fi 8041 rm -rf libconftest.dylib* 8042 rm -f conftest.* 8043 fi 8044fi 8045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8046$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8048$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8049if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 8050 $as_echo_n "(cached) " >&6 8051else 8052 lt_cv_ld_exported_symbols_list=no 8053 save_LDFLAGS=$LDFLAGS 8054 echo "_main" > conftest.sym 8055 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8057/* end confdefs.h. */ 8058 8059int 8060main () 8061{ 8062 8063 ; 8064 return 0; 8065} 8066_ACEOF 8067if ac_fn_c_try_link "$LINENO"; then : 8068 lt_cv_ld_exported_symbols_list=yes 8069else 8070 lt_cv_ld_exported_symbols_list=no 8071fi 8072rm -f core conftest.err conftest.$ac_objext \ 8073 conftest$ac_exeext conftest.$ac_ext 8074 LDFLAGS="$save_LDFLAGS" 8075 8076fi 8077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8078$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8080$as_echo_n "checking for -force_load linker flag... " >&6; } 8081if test "${lt_cv_ld_force_load+set}" = set; then : 8082 $as_echo_n "(cached) " >&6 8083else 8084 lt_cv_ld_force_load=no 8085 cat > conftest.c << _LT_EOF 8086int forced_loaded() { return 2;} 8087_LT_EOF 8088 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8089 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8090 echo "$AR cru libconftest.a conftest.o" >&5 8091 $AR cru libconftest.a conftest.o 2>&5 8092 echo "$RANLIB libconftest.a" >&5 8093 $RANLIB libconftest.a 2>&5 8094 cat > conftest.c << _LT_EOF 8095int main() { return 0;} 8096_LT_EOF 8097 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8098 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8099 _lt_result=$? 8100 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 8101 lt_cv_ld_force_load=yes 8102 else 8103 cat conftest.err >&5 8104 fi 8105 rm -f conftest.err libconftest.a conftest conftest.c 8106 rm -rf conftest.dSYM 8107 8108fi 8109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8110$as_echo "$lt_cv_ld_force_load" >&6; } 8111 case $host_os in 8112 rhapsody* | darwin1.[012]) 8113 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8114 darwin1.*) 8115 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8116 darwin*) # darwin 5.x on 8117 # if running on 10.5 or later, the deployment target defaults 8118 # to the OS version, if on x86, and 10.4, the deployment 8119 # target defaults to 10.4. Don't you love it? 8120 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8121 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8122 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8123 10.[012]*) 8124 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8125 10.*) 8126 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8127 esac 8128 ;; 8129 esac 8130 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8131 _lt_dar_single_mod='$single_module' 8132 fi 8133 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8134 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8135 else 8136 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8137 fi 8138 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8139 _lt_dsymutil='~$DSYMUTIL $lib || :' 8140 else 8141 _lt_dsymutil= 8142 fi 8143 ;; 8144 esac 8145 8146for ac_header in dlfcn.h 8147do : 8148 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8149" 8150if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 8151 cat >>confdefs.h <<_ACEOF 8152#define HAVE_DLFCN_H 1 8153_ACEOF 8154 8155fi 8156 8157done 8158 8159 8160 8161 8162 8163 8164# Set options 8165 8166 8167 8168 enable_dlopen=no 8169 8170 8171 enable_win32_dll=no 8172 8173 8174 # Check whether --enable-shared was given. 8175if test "${enable_shared+set}" = set; then : 8176 enableval=$enable_shared; p=${PACKAGE-default} 8177 case $enableval in 8178 yes) enable_shared=yes ;; 8179 no) enable_shared=no ;; 8180 *) 8181 enable_shared=no 8182 # Look at the argument we got. We use all the common list separators. 8183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8184 for pkg in $enableval; do 8185 IFS="$lt_save_ifs" 8186 if test "X$pkg" = "X$p"; then 8187 enable_shared=yes 8188 fi 8189 done 8190 IFS="$lt_save_ifs" 8191 ;; 8192 esac 8193else 8194 enable_shared=yes 8195fi 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 # Check whether --enable-static was given. 8206if test "${enable_static+set}" = set; then : 8207 enableval=$enable_static; p=${PACKAGE-default} 8208 case $enableval in 8209 yes) enable_static=yes ;; 8210 no) enable_static=no ;; 8211 *) 8212 enable_static=no 8213 # Look at the argument we got. We use all the common list separators. 8214 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8215 for pkg in $enableval; do 8216 IFS="$lt_save_ifs" 8217 if test "X$pkg" = "X$p"; then 8218 enable_static=yes 8219 fi 8220 done 8221 IFS="$lt_save_ifs" 8222 ;; 8223 esac 8224else 8225 enable_static=yes 8226fi 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237# Check whether --with-pic was given. 8238if test "${with_pic+set}" = set; then : 8239 withval=$with_pic; pic_mode="$withval" 8240else 8241 pic_mode=default 8242fi 8243 8244 8245test -z "$pic_mode" && pic_mode=default 8246 8247 8248 8249 8250 8251 8252 8253 # Check whether --enable-fast-install was given. 8254if test "${enable_fast_install+set}" = set; then : 8255 enableval=$enable_fast_install; p=${PACKAGE-default} 8256 case $enableval in 8257 yes) enable_fast_install=yes ;; 8258 no) enable_fast_install=no ;; 8259 *) 8260 enable_fast_install=no 8261 # Look at the argument we got. We use all the common list separators. 8262 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8263 for pkg in $enableval; do 8264 IFS="$lt_save_ifs" 8265 if test "X$pkg" = "X$p"; then 8266 enable_fast_install=yes 8267 fi 8268 done 8269 IFS="$lt_save_ifs" 8270 ;; 8271 esac 8272else 8273 enable_fast_install=yes 8274fi 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286# This can be used to rebuild libtool when needed 8287LIBTOOL_DEPS="$ltmain" 8288 8289# Always use our own libtool. 8290LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317test -z "$LN_S" && LN_S="ln -s" 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332if test -n "${ZSH_VERSION+set}" ; then 8333 setopt NO_GLOB_SUBST 8334fi 8335 8336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8337$as_echo_n "checking for objdir... " >&6; } 8338if test "${lt_cv_objdir+set}" = set; then : 8339 $as_echo_n "(cached) " >&6 8340else 8341 rm -f .libs 2>/dev/null 8342mkdir .libs 2>/dev/null 8343if test -d .libs; then 8344 lt_cv_objdir=.libs 8345else 8346 # MS-DOS does not allow filenames that begin with a dot. 8347 lt_cv_objdir=_libs 8348fi 8349rmdir .libs 2>/dev/null 8350fi 8351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8352$as_echo "$lt_cv_objdir" >&6; } 8353objdir=$lt_cv_objdir 8354 8355 8356 8357 8358 8359cat >>confdefs.h <<_ACEOF 8360#define LT_OBJDIR "$lt_cv_objdir/" 8361_ACEOF 8362 8363 8364 8365 8366case $host_os in 8367aix3*) 8368 # AIX sometimes has problems with the GCC collect2 program. For some 8369 # reason, if we set the COLLECT_NAMES environment variable, the problems 8370 # vanish in a puff of smoke. 8371 if test "X${COLLECT_NAMES+set}" != Xset; then 8372 COLLECT_NAMES= 8373 export COLLECT_NAMES 8374 fi 8375 ;; 8376esac 8377 8378# Global variables: 8379ofile=libtool 8380can_build_shared=yes 8381 8382# All known linkers require a `.a' archive for static linking (except MSVC, 8383# which needs '.lib'). 8384libext=a 8385 8386with_gnu_ld="$lt_cv_prog_gnu_ld" 8387 8388old_CC="$CC" 8389old_CFLAGS="$CFLAGS" 8390 8391# Set sane defaults for various variables 8392test -z "$CC" && CC=cc 8393test -z "$LTCC" && LTCC=$CC 8394test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8395test -z "$LD" && LD=ld 8396test -z "$ac_objext" && ac_objext=o 8397 8398for cc_temp in $compiler""; do 8399 case $cc_temp in 8400 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8401 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8402 \-*) ;; 8403 *) break;; 8404 esac 8405done 8406cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8407 8408 8409# Only perform the check for file, if the check method requires it 8410test -z "$MAGIC_CMD" && MAGIC_CMD=file 8411case $deplibs_check_method in 8412file_magic*) 8413 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8415$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8416if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8417 $as_echo_n "(cached) " >&6 8418else 8419 case $MAGIC_CMD in 8420[\\/*] | ?:[\\/]*) 8421 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8422 ;; 8423*) 8424 lt_save_MAGIC_CMD="$MAGIC_CMD" 8425 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8426 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8427 for ac_dir in $ac_dummy; do 8428 IFS="$lt_save_ifs" 8429 test -z "$ac_dir" && ac_dir=. 8430 if test -f $ac_dir/${ac_tool_prefix}file; then 8431 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8432 if test -n "$file_magic_test_file"; then 8433 case $deplibs_check_method in 8434 "file_magic "*) 8435 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8436 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8437 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8438 $EGREP "$file_magic_regex" > /dev/null; then 8439 : 8440 else 8441 cat <<_LT_EOF 1>&2 8442 8443*** Warning: the command libtool uses to detect shared libraries, 8444*** $file_magic_cmd, produces output that libtool cannot recognize. 8445*** The result is that libtool may fail to recognize shared libraries 8446*** as such. This will affect the creation of libtool libraries that 8447*** depend on shared libraries, but programs linked with such libtool 8448*** libraries will work regardless of this problem. Nevertheless, you 8449*** may want to report the problem to your system manager and/or to 8450*** bug-libtool@gnu.org 8451 8452_LT_EOF 8453 fi ;; 8454 esac 8455 fi 8456 break 8457 fi 8458 done 8459 IFS="$lt_save_ifs" 8460 MAGIC_CMD="$lt_save_MAGIC_CMD" 8461 ;; 8462esac 8463fi 8464 8465MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8466if test -n "$MAGIC_CMD"; then 8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8468$as_echo "$MAGIC_CMD" >&6; } 8469else 8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8471$as_echo "no" >&6; } 8472fi 8473 8474 8475 8476 8477 8478if test -z "$lt_cv_path_MAGIC_CMD"; then 8479 if test -n "$ac_tool_prefix"; then 8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8481$as_echo_n "checking for file... " >&6; } 8482if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8483 $as_echo_n "(cached) " >&6 8484else 8485 case $MAGIC_CMD in 8486[\\/*] | ?:[\\/]*) 8487 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8488 ;; 8489*) 8490 lt_save_MAGIC_CMD="$MAGIC_CMD" 8491 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8492 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8493 for ac_dir in $ac_dummy; do 8494 IFS="$lt_save_ifs" 8495 test -z "$ac_dir" && ac_dir=. 8496 if test -f $ac_dir/file; then 8497 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8498 if test -n "$file_magic_test_file"; then 8499 case $deplibs_check_method in 8500 "file_magic "*) 8501 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8502 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8503 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8504 $EGREP "$file_magic_regex" > /dev/null; then 8505 : 8506 else 8507 cat <<_LT_EOF 1>&2 8508 8509*** Warning: the command libtool uses to detect shared libraries, 8510*** $file_magic_cmd, produces output that libtool cannot recognize. 8511*** The result is that libtool may fail to recognize shared libraries 8512*** as such. This will affect the creation of libtool libraries that 8513*** depend on shared libraries, but programs linked with such libtool 8514*** libraries will work regardless of this problem. Nevertheless, you 8515*** may want to report the problem to your system manager and/or to 8516*** bug-libtool@gnu.org 8517 8518_LT_EOF 8519 fi ;; 8520 esac 8521 fi 8522 break 8523 fi 8524 done 8525 IFS="$lt_save_ifs" 8526 MAGIC_CMD="$lt_save_MAGIC_CMD" 8527 ;; 8528esac 8529fi 8530 8531MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8532if test -n "$MAGIC_CMD"; then 8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8534$as_echo "$MAGIC_CMD" >&6; } 8535else 8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8537$as_echo "no" >&6; } 8538fi 8539 8540 8541 else 8542 MAGIC_CMD=: 8543 fi 8544fi 8545 8546 fi 8547 ;; 8548esac 8549 8550# Use C for the default configuration in the libtool script 8551 8552lt_save_CC="$CC" 8553ac_ext=c 8554ac_cpp='$CPP $CPPFLAGS' 8555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8557ac_compiler_gnu=$ac_cv_c_compiler_gnu 8558 8559 8560# Source file extension for C test sources. 8561ac_ext=c 8562 8563# Object file extension for compiled C test sources. 8564objext=o 8565objext=$objext 8566 8567# Code to be used in simple compile tests 8568lt_simple_compile_test_code="int some_variable = 0;" 8569 8570# Code to be used in simple link tests 8571lt_simple_link_test_code='int main(){return(0);}' 8572 8573 8574 8575 8576 8577 8578 8579# If no C compiler was specified, use CC. 8580LTCC=${LTCC-"$CC"} 8581 8582# If no C compiler flags were specified, use CFLAGS. 8583LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8584 8585# Allow CC to be a program name with arguments. 8586compiler=$CC 8587 8588# Save the default compiler, since it gets overwritten when the other 8589# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8590compiler_DEFAULT=$CC 8591 8592# save warnings/boilerplate of simple test code 8593ac_outfile=conftest.$ac_objext 8594echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8595eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8596_lt_compiler_boilerplate=`cat conftest.err` 8597$RM conftest* 8598 8599ac_outfile=conftest.$ac_objext 8600echo "$lt_simple_link_test_code" >conftest.$ac_ext 8601eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8602_lt_linker_boilerplate=`cat conftest.err` 8603$RM -r conftest* 8604 8605 8606if test -n "$compiler"; then 8607 8608lt_prog_compiler_no_builtin_flag= 8609 8610if test "$GCC" = yes; then 8611 case $cc_basename in 8612 nvcc*) 8613 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8614 *) 8615 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8616 esac 8617 8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8619$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8620if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8621 $as_echo_n "(cached) " >&6 8622else 8623 lt_cv_prog_compiler_rtti_exceptions=no 8624 ac_outfile=conftest.$ac_objext 8625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8626 lt_compiler_flag="-fno-rtti -fno-exceptions" 8627 # Insert the option either (1) after the last *FLAGS variable, or 8628 # (2) before a word containing "conftest.", or (3) at the end. 8629 # Note that $ac_compile itself does not contain backslashes and begins 8630 # with a dollar sign (not a hyphen), so the echo should work correctly. 8631 # The option is referenced via a variable to avoid confusing sed. 8632 lt_compile=`echo "$ac_compile" | $SED \ 8633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8635 -e 's:$: $lt_compiler_flag:'` 8636 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8637 (eval "$lt_compile" 2>conftest.err) 8638 ac_status=$? 8639 cat conftest.err >&5 8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8641 if (exit $ac_status) && test -s "$ac_outfile"; then 8642 # The compiler can only warn and ignore the option if not recognized 8643 # So say no if there are warnings other than the usual output. 8644 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8646 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8647 lt_cv_prog_compiler_rtti_exceptions=yes 8648 fi 8649 fi 8650 $RM conftest* 8651 8652fi 8653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8654$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8655 8656if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8657 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8658else 8659 : 8660fi 8661 8662fi 8663 8664 8665 8666 8667 8668 8669 lt_prog_compiler_wl= 8670lt_prog_compiler_pic= 8671lt_prog_compiler_static= 8672 8673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8674$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8675 8676 if test "$GCC" = yes; then 8677 lt_prog_compiler_wl='-Wl,' 8678 lt_prog_compiler_static='-static' 8679 8680 case $host_os in 8681 aix*) 8682 # All AIX code is PIC. 8683 if test "$host_cpu" = ia64; then 8684 # AIX 5 now supports IA64 processor 8685 lt_prog_compiler_static='-Bstatic' 8686 fi 8687 ;; 8688 8689 amigaos*) 8690 case $host_cpu in 8691 powerpc) 8692 # see comment about AmigaOS4 .so support 8693 lt_prog_compiler_pic='-fPIC' 8694 ;; 8695 m68k) 8696 # FIXME: we need at least 68020 code to build shared libraries, but 8697 # adding the `-m68020' flag to GCC prevents building anything better, 8698 # like `-m68040'. 8699 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8700 ;; 8701 esac 8702 ;; 8703 8704 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8705 # PIC is the default for these OSes. 8706 ;; 8707 8708 mingw* | cygwin* | pw32* | os2* | cegcc*) 8709 # This hack is so that the source file can tell whether it is being 8710 # built for inclusion in a dll (and should export symbols for example). 8711 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8712 # (--disable-auto-import) libraries 8713 lt_prog_compiler_pic='-DDLL_EXPORT' 8714 ;; 8715 8716 darwin* | rhapsody*) 8717 # PIC is the default on this platform 8718 # Common symbols not allowed in MH_DYLIB files 8719 lt_prog_compiler_pic='-fno-common' 8720 ;; 8721 8722 haiku*) 8723 # PIC is the default for Haiku. 8724 # The "-static" flag exists, but is broken. 8725 lt_prog_compiler_static= 8726 ;; 8727 8728 hpux*) 8729 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8730 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8731 # sets the default TLS model and affects inlining. 8732 case $host_cpu in 8733 hppa*64*) 8734 # +Z the default 8735 ;; 8736 *) 8737 lt_prog_compiler_pic='-fPIC' 8738 ;; 8739 esac 8740 ;; 8741 8742 interix[3-9]*) 8743 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8744 # Instead, we relocate shared libraries at runtime. 8745 ;; 8746 8747 msdosdjgpp*) 8748 # Just because we use GCC doesn't mean we suddenly get shared libraries 8749 # on systems that don't support them. 8750 lt_prog_compiler_can_build_shared=no 8751 enable_shared=no 8752 ;; 8753 8754 *nto* | *qnx*) 8755 # QNX uses GNU C++, but need to define -shared option too, otherwise 8756 # it will coredump. 8757 lt_prog_compiler_pic='-fPIC -shared' 8758 ;; 8759 8760 sysv4*MP*) 8761 if test -d /usr/nec; then 8762 lt_prog_compiler_pic=-Kconform_pic 8763 fi 8764 ;; 8765 8766 *) 8767 lt_prog_compiler_pic='-fPIC' 8768 ;; 8769 esac 8770 8771 case $cc_basename in 8772 nvcc*) # Cuda Compiler Driver 2.2 8773 lt_prog_compiler_wl='-Xlinker ' 8774 lt_prog_compiler_pic='-Xcompiler -fPIC' 8775 ;; 8776 esac 8777 else 8778 # PORTME Check for flag to pass linker flags through the system compiler. 8779 case $host_os in 8780 aix*) 8781 lt_prog_compiler_wl='-Wl,' 8782 if test "$host_cpu" = ia64; then 8783 # AIX 5 now supports IA64 processor 8784 lt_prog_compiler_static='-Bstatic' 8785 else 8786 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8787 fi 8788 ;; 8789 8790 mingw* | cygwin* | pw32* | os2* | cegcc*) 8791 # This hack is so that the source file can tell whether it is being 8792 # built for inclusion in a dll (and should export symbols for example). 8793 lt_prog_compiler_pic='-DDLL_EXPORT' 8794 ;; 8795 8796 hpux9* | hpux10* | hpux11*) 8797 lt_prog_compiler_wl='-Wl,' 8798 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8799 # not for PA HP-UX. 8800 case $host_cpu in 8801 hppa*64*|ia64*) 8802 # +Z the default 8803 ;; 8804 *) 8805 lt_prog_compiler_pic='+Z' 8806 ;; 8807 esac 8808 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8809 lt_prog_compiler_static='${wl}-a ${wl}archive' 8810 ;; 8811 8812 irix5* | irix6* | nonstopux*) 8813 lt_prog_compiler_wl='-Wl,' 8814 # PIC (with -KPIC) is the default. 8815 lt_prog_compiler_static='-non_shared' 8816 ;; 8817 8818 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8819 case $cc_basename in 8820 # old Intel for x86_64 which still supported -KPIC. 8821 ecc*) 8822 lt_prog_compiler_wl='-Wl,' 8823 lt_prog_compiler_pic='-KPIC' 8824 lt_prog_compiler_static='-static' 8825 ;; 8826 # icc used to be incompatible with GCC. 8827 # ICC 10 doesn't accept -KPIC any more. 8828 icc* | ifort*) 8829 lt_prog_compiler_wl='-Wl,' 8830 lt_prog_compiler_pic='-fPIC' 8831 lt_prog_compiler_static='-static' 8832 ;; 8833 # Lahey Fortran 8.1. 8834 lf95*) 8835 lt_prog_compiler_wl='-Wl,' 8836 lt_prog_compiler_pic='--shared' 8837 lt_prog_compiler_static='--static' 8838 ;; 8839 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8840 # Portland Group compilers (*not* the Pentium gcc compiler, 8841 # which looks to be a dead project) 8842 lt_prog_compiler_wl='-Wl,' 8843 lt_prog_compiler_pic='-fpic' 8844 lt_prog_compiler_static='-Bstatic' 8845 ;; 8846 ccc*) 8847 lt_prog_compiler_wl='-Wl,' 8848 # All Alpha code is PIC. 8849 lt_prog_compiler_static='-non_shared' 8850 ;; 8851 xl* | bgxl* | bgf* | mpixl*) 8852 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8853 lt_prog_compiler_wl='-Wl,' 8854 lt_prog_compiler_pic='-qpic' 8855 lt_prog_compiler_static='-qstaticlink' 8856 ;; 8857 *) 8858 case `$CC -V 2>&1 | sed 5q` in 8859 *Sun\ F* | *Sun*Fortran*) 8860 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8861 lt_prog_compiler_pic='-KPIC' 8862 lt_prog_compiler_static='-Bstatic' 8863 lt_prog_compiler_wl='' 8864 ;; 8865 *Sun\ C*) 8866 # Sun C 5.9 8867 lt_prog_compiler_pic='-KPIC' 8868 lt_prog_compiler_static='-Bstatic' 8869 lt_prog_compiler_wl='-Wl,' 8870 ;; 8871 esac 8872 ;; 8873 esac 8874 ;; 8875 8876 newsos6) 8877 lt_prog_compiler_pic='-KPIC' 8878 lt_prog_compiler_static='-Bstatic' 8879 ;; 8880 8881 *nto* | *qnx*) 8882 # QNX uses GNU C++, but need to define -shared option too, otherwise 8883 # it will coredump. 8884 lt_prog_compiler_pic='-fPIC -shared' 8885 ;; 8886 8887 osf3* | osf4* | osf5*) 8888 lt_prog_compiler_wl='-Wl,' 8889 # All OSF/1 code is PIC. 8890 lt_prog_compiler_static='-non_shared' 8891 ;; 8892 8893 rdos*) 8894 lt_prog_compiler_static='-non_shared' 8895 ;; 8896 8897 solaris*) 8898 lt_prog_compiler_pic='-KPIC' 8899 lt_prog_compiler_static='-Bstatic' 8900 case $cc_basename in 8901 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8902 lt_prog_compiler_wl='-Qoption ld ';; 8903 *) 8904 lt_prog_compiler_wl='-Wl,';; 8905 esac 8906 ;; 8907 8908 sunos4*) 8909 lt_prog_compiler_wl='-Qoption ld ' 8910 lt_prog_compiler_pic='-PIC' 8911 lt_prog_compiler_static='-Bstatic' 8912 ;; 8913 8914 sysv4 | sysv4.2uw2* | sysv4.3*) 8915 lt_prog_compiler_wl='-Wl,' 8916 lt_prog_compiler_pic='-KPIC' 8917 lt_prog_compiler_static='-Bstatic' 8918 ;; 8919 8920 sysv4*MP*) 8921 if test -d /usr/nec ;then 8922 lt_prog_compiler_pic='-Kconform_pic' 8923 lt_prog_compiler_static='-Bstatic' 8924 fi 8925 ;; 8926 8927 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8928 lt_prog_compiler_wl='-Wl,' 8929 lt_prog_compiler_pic='-KPIC' 8930 lt_prog_compiler_static='-Bstatic' 8931 ;; 8932 8933 unicos*) 8934 lt_prog_compiler_wl='-Wl,' 8935 lt_prog_compiler_can_build_shared=no 8936 ;; 8937 8938 uts4*) 8939 lt_prog_compiler_pic='-pic' 8940 lt_prog_compiler_static='-Bstatic' 8941 ;; 8942 8943 *) 8944 lt_prog_compiler_can_build_shared=no 8945 ;; 8946 esac 8947 fi 8948 8949case $host_os in 8950 # For platforms which do not support PIC, -DPIC is meaningless: 8951 *djgpp*) 8952 lt_prog_compiler_pic= 8953 ;; 8954 *) 8955 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8956 ;; 8957esac 8958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8959$as_echo "$lt_prog_compiler_pic" >&6; } 8960 8961 8962 8963 8964 8965 8966# 8967# Check to make sure the PIC flag actually works. 8968# 8969if test -n "$lt_prog_compiler_pic"; then 8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8971$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8972if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8973 $as_echo_n "(cached) " >&6 8974else 8975 lt_cv_prog_compiler_pic_works=no 8976 ac_outfile=conftest.$ac_objext 8977 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8978 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8979 # Insert the option either (1) after the last *FLAGS variable, or 8980 # (2) before a word containing "conftest.", or (3) at the end. 8981 # Note that $ac_compile itself does not contain backslashes and begins 8982 # with a dollar sign (not a hyphen), so the echo should work correctly. 8983 # The option is referenced via a variable to avoid confusing sed. 8984 lt_compile=`echo "$ac_compile" | $SED \ 8985 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8986 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8987 -e 's:$: $lt_compiler_flag:'` 8988 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8989 (eval "$lt_compile" 2>conftest.err) 8990 ac_status=$? 8991 cat conftest.err >&5 8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8993 if (exit $ac_status) && test -s "$ac_outfile"; then 8994 # The compiler can only warn and ignore the option if not recognized 8995 # So say no if there are warnings other than the usual output. 8996 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8997 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8998 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8999 lt_cv_prog_compiler_pic_works=yes 9000 fi 9001 fi 9002 $RM conftest* 9003 9004fi 9005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9006$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9007 9008if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9009 case $lt_prog_compiler_pic in 9010 "" | " "*) ;; 9011 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9012 esac 9013else 9014 lt_prog_compiler_pic= 9015 lt_prog_compiler_can_build_shared=no 9016fi 9017 9018fi 9019 9020 9021 9022 9023 9024 9025# 9026# Check to make sure the static flag actually works. 9027# 9028wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9030$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9031if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 9032 $as_echo_n "(cached) " >&6 9033else 9034 lt_cv_prog_compiler_static_works=no 9035 save_LDFLAGS="$LDFLAGS" 9036 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9037 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9038 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9039 # The linker can only warn and ignore the option if not recognized 9040 # So say no if there are warnings 9041 if test -s conftest.err; then 9042 # Append any errors to the config.log. 9043 cat conftest.err 1>&5 9044 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9045 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9046 if diff conftest.exp conftest.er2 >/dev/null; then 9047 lt_cv_prog_compiler_static_works=yes 9048 fi 9049 else 9050 lt_cv_prog_compiler_static_works=yes 9051 fi 9052 fi 9053 $RM -r conftest* 9054 LDFLAGS="$save_LDFLAGS" 9055 9056fi 9057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9058$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9059 9060if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9061 : 9062else 9063 lt_prog_compiler_static= 9064fi 9065 9066 9067 9068 9069 9070 9071 9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9073$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9074if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9075 $as_echo_n "(cached) " >&6 9076else 9077 lt_cv_prog_compiler_c_o=no 9078 $RM -r conftest 2>/dev/null 9079 mkdir conftest 9080 cd conftest 9081 mkdir out 9082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9083 9084 lt_compiler_flag="-o out/conftest2.$ac_objext" 9085 # Insert the option either (1) after the last *FLAGS variable, or 9086 # (2) before a word containing "conftest.", or (3) at the end. 9087 # Note that $ac_compile itself does not contain backslashes and begins 9088 # with a dollar sign (not a hyphen), so the echo should work correctly. 9089 lt_compile=`echo "$ac_compile" | $SED \ 9090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9092 -e 's:$: $lt_compiler_flag:'` 9093 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9094 (eval "$lt_compile" 2>out/conftest.err) 9095 ac_status=$? 9096 cat out/conftest.err >&5 9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9098 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9099 then 9100 # The compiler can only warn and ignore the option if not recognized 9101 # So say no if there are warnings 9102 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9103 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9104 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9105 lt_cv_prog_compiler_c_o=yes 9106 fi 9107 fi 9108 chmod u+w . 2>&5 9109 $RM conftest* 9110 # SGI C++ compiler will create directory out/ii_files/ for 9111 # template instantiation 9112 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9113 $RM out/* && rmdir out 9114 cd .. 9115 $RM -r conftest 9116 $RM conftest* 9117 9118fi 9119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9120$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9121 9122 9123 9124 9125 9126 9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9128$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9129if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 9130 $as_echo_n "(cached) " >&6 9131else 9132 lt_cv_prog_compiler_c_o=no 9133 $RM -r conftest 2>/dev/null 9134 mkdir conftest 9135 cd conftest 9136 mkdir out 9137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9138 9139 lt_compiler_flag="-o out/conftest2.$ac_objext" 9140 # Insert the option either (1) after the last *FLAGS variable, or 9141 # (2) before a word containing "conftest.", or (3) at the end. 9142 # Note that $ac_compile itself does not contain backslashes and begins 9143 # with a dollar sign (not a hyphen), so the echo should work correctly. 9144 lt_compile=`echo "$ac_compile" | $SED \ 9145 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9146 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9147 -e 's:$: $lt_compiler_flag:'` 9148 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9149 (eval "$lt_compile" 2>out/conftest.err) 9150 ac_status=$? 9151 cat out/conftest.err >&5 9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9153 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9154 then 9155 # The compiler can only warn and ignore the option if not recognized 9156 # So say no if there are warnings 9157 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9158 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9159 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9160 lt_cv_prog_compiler_c_o=yes 9161 fi 9162 fi 9163 chmod u+w . 2>&5 9164 $RM conftest* 9165 # SGI C++ compiler will create directory out/ii_files/ for 9166 # template instantiation 9167 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9168 $RM out/* && rmdir out 9169 cd .. 9170 $RM -r conftest 9171 $RM conftest* 9172 9173fi 9174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9175$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9176 9177 9178 9179 9180hard_links="nottested" 9181if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9182 # do not overwrite the value of need_locks provided by the user 9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9184$as_echo_n "checking if we can lock with hard links... " >&6; } 9185 hard_links=yes 9186 $RM conftest* 9187 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9188 touch conftest.a 9189 ln conftest.a conftest.b 2>&5 || hard_links=no 9190 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9192$as_echo "$hard_links" >&6; } 9193 if test "$hard_links" = no; then 9194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9195$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9196 need_locks=warn 9197 fi 9198else 9199 need_locks=no 9200fi 9201 9202 9203 9204 9205 9206 9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9208$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9209 9210 runpath_var= 9211 allow_undefined_flag= 9212 always_export_symbols=no 9213 archive_cmds= 9214 archive_expsym_cmds= 9215 compiler_needs_object=no 9216 enable_shared_with_static_runtimes=no 9217 export_dynamic_flag_spec= 9218 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9219 hardcode_automatic=no 9220 hardcode_direct=no 9221 hardcode_direct_absolute=no 9222 hardcode_libdir_flag_spec= 9223 hardcode_libdir_flag_spec_ld= 9224 hardcode_libdir_separator= 9225 hardcode_minus_L=no 9226 hardcode_shlibpath_var=unsupported 9227 inherit_rpath=no 9228 link_all_deplibs=unknown 9229 module_cmds= 9230 module_expsym_cmds= 9231 old_archive_from_new_cmds= 9232 old_archive_from_expsyms_cmds= 9233 thread_safe_flag_spec= 9234 whole_archive_flag_spec= 9235 # include_expsyms should be a list of space-separated symbols to be *always* 9236 # included in the symbol list 9237 include_expsyms= 9238 # exclude_expsyms can be an extended regexp of symbols to exclude 9239 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9240 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9241 # as well as any symbol that contains `d'. 9242 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9243 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9244 # platforms (ab)use it in PIC code, but their linkers get confused if 9245 # the symbol is explicitly referenced. Since portable code cannot 9246 # rely on this symbol name, it's probably fine to never include it in 9247 # preloaded symbol tables. 9248 # Exclude shared library initialization/finalization symbols. 9249 extract_expsyms_cmds= 9250 9251 case $host_os in 9252 cygwin* | mingw* | pw32* | cegcc*) 9253 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9254 # When not using gcc, we currently assume that we are using 9255 # Microsoft Visual C++. 9256 if test "$GCC" != yes; then 9257 with_gnu_ld=no 9258 fi 9259 ;; 9260 interix*) 9261 # we just hope/assume this is gcc and not c89 (= MSVC++) 9262 with_gnu_ld=yes 9263 ;; 9264 openbsd*) 9265 with_gnu_ld=no 9266 ;; 9267 esac 9268 9269 ld_shlibs=yes 9270 9271 # On some targets, GNU ld is compatible enough with the native linker 9272 # that we're better off using the native interface for both. 9273 lt_use_gnu_ld_interface=no 9274 if test "$with_gnu_ld" = yes; then 9275 case $host_os in 9276 aix*) 9277 # The AIX port of GNU ld has always aspired to compatibility 9278 # with the native linker. However, as the warning in the GNU ld 9279 # block says, versions before 2.19.5* couldn't really create working 9280 # shared libraries, regardless of the interface used. 9281 case `$LD -v 2>&1` in 9282 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9283 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9284 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9285 *) 9286 lt_use_gnu_ld_interface=yes 9287 ;; 9288 esac 9289 ;; 9290 *) 9291 lt_use_gnu_ld_interface=yes 9292 ;; 9293 esac 9294 fi 9295 9296 if test "$lt_use_gnu_ld_interface" = yes; then 9297 # If archive_cmds runs LD, not CC, wlarc should be empty 9298 wlarc='${wl}' 9299 9300 # Set some defaults for GNU ld with shared library support. These 9301 # are reset later if shared libraries are not supported. Putting them 9302 # here allows them to be overridden if necessary. 9303 runpath_var=LD_RUN_PATH 9304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9305 export_dynamic_flag_spec='${wl}--export-dynamic' 9306 # ancient GNU ld didn't support --whole-archive et. al. 9307 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9308 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9309 else 9310 whole_archive_flag_spec= 9311 fi 9312 supports_anon_versioning=no 9313 case `$LD -v 2>&1` in 9314 *GNU\ gold*) supports_anon_versioning=yes ;; 9315 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9316 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9317 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9318 *\ 2.11.*) ;; # other 2.11 versions 9319 *) supports_anon_versioning=yes ;; 9320 esac 9321 9322 # See if GNU ld supports shared libraries. 9323 case $host_os in 9324 aix[3-9]*) 9325 # On AIX/PPC, the GNU linker is very broken 9326 if test "$host_cpu" != ia64; then 9327 ld_shlibs=no 9328 cat <<_LT_EOF 1>&2 9329 9330*** Warning: the GNU linker, at least up to release 2.19, is reported 9331*** to be unable to reliably create shared libraries on AIX. 9332*** Therefore, libtool is disabling shared libraries support. If you 9333*** really care for shared libraries, you may want to install binutils 9334*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9335*** You will then need to restart the configuration process. 9336 9337_LT_EOF 9338 fi 9339 ;; 9340 9341 amigaos*) 9342 case $host_cpu in 9343 powerpc) 9344 # see comment about AmigaOS4 .so support 9345 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9346 archive_expsym_cmds='' 9347 ;; 9348 m68k) 9349 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)' 9350 hardcode_libdir_flag_spec='-L$libdir' 9351 hardcode_minus_L=yes 9352 ;; 9353 esac 9354 ;; 9355 9356 beos*) 9357 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9358 allow_undefined_flag=unsupported 9359 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9360 # support --undefined. This deserves some investigation. FIXME 9361 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9362 else 9363 ld_shlibs=no 9364 fi 9365 ;; 9366 9367 cygwin* | mingw* | pw32* | cegcc*) 9368 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9369 # as there is no search path for DLLs. 9370 hardcode_libdir_flag_spec='-L$libdir' 9371 export_dynamic_flag_spec='${wl}--export-all-symbols' 9372 allow_undefined_flag=unsupported 9373 always_export_symbols=no 9374 enable_shared_with_static_runtimes=yes 9375 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9376 9377 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9379 # If the export-symbols file already is a .def file (1st line 9380 # is EXPORTS), use it as is; otherwise, prepend... 9381 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9382 cp $export_symbols $output_objdir/$soname.def; 9383 else 9384 echo EXPORTS > $output_objdir/$soname.def; 9385 cat $export_symbols >> $output_objdir/$soname.def; 9386 fi~ 9387 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9388 else 9389 ld_shlibs=no 9390 fi 9391 ;; 9392 9393 haiku*) 9394 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9395 link_all_deplibs=yes 9396 ;; 9397 9398 interix[3-9]*) 9399 hardcode_direct=no 9400 hardcode_shlibpath_var=no 9401 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9402 export_dynamic_flag_spec='${wl}-E' 9403 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9404 # Instead, shared libraries are loaded at an image base (0x10000000 by 9405 # default) and relocated if they conflict, which is a slow very memory 9406 # consuming and fragmenting process. To avoid this, we pick a random, 9407 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9408 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9409 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9410 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' 9411 ;; 9412 9413 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9414 tmp_diet=no 9415 if test "$host_os" = linux-dietlibc; then 9416 case $cc_basename in 9417 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9418 esac 9419 fi 9420 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9421 && test "$tmp_diet" = no 9422 then 9423 tmp_addflag= 9424 tmp_sharedflag='-shared' 9425 case $cc_basename,$host_cpu in 9426 pgcc*) # Portland Group C compiler 9427 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' 9428 tmp_addflag=' $pic_flag' 9429 ;; 9430 pgf77* | pgf90* | pgf95* | pgfortran*) 9431 # Portland Group f77 and f90 compilers 9432 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' 9433 tmp_addflag=' $pic_flag -Mnomain' ;; 9434 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9435 tmp_addflag=' -i_dynamic' ;; 9436 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9437 tmp_addflag=' -i_dynamic -nofor_main' ;; 9438 ifc* | ifort*) # Intel Fortran compiler 9439 tmp_addflag=' -nofor_main' ;; 9440 lf95*) # Lahey Fortran 8.1 9441 whole_archive_flag_spec= 9442 tmp_sharedflag='--shared' ;; 9443 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9444 tmp_sharedflag='-qmkshrobj' 9445 tmp_addflag= ;; 9446 nvcc*) # Cuda Compiler Driver 2.2 9447 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' 9448 compiler_needs_object=yes 9449 ;; 9450 esac 9451 case `$CC -V 2>&1 | sed 5q` in 9452 *Sun\ C*) # Sun C 5.9 9453 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' 9454 compiler_needs_object=yes 9455 tmp_sharedflag='-G' ;; 9456 *Sun\ F*) # Sun Fortran 8.3 9457 tmp_sharedflag='-G' ;; 9458 esac 9459 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9460 9461 if test "x$supports_anon_versioning" = xyes; then 9462 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9463 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9464 echo "local: *; };" >> $output_objdir/$libname.ver~ 9465 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9466 fi 9467 9468 case $cc_basename in 9469 xlf* | bgf* | bgxlf* | mpixlf*) 9470 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9471 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9472 hardcode_libdir_flag_spec= 9473 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9474 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9475 if test "x$supports_anon_versioning" = xyes; then 9476 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9477 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9478 echo "local: *; };" >> $output_objdir/$libname.ver~ 9479 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9480 fi 9481 ;; 9482 esac 9483 else 9484 ld_shlibs=no 9485 fi 9486 ;; 9487 9488 netbsd*) 9489 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9490 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9491 wlarc= 9492 else 9493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9494 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9495 fi 9496 ;; 9497 9498 solaris*) 9499 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9500 ld_shlibs=no 9501 cat <<_LT_EOF 1>&2 9502 9503*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9504*** create shared libraries on Solaris systems. Therefore, libtool 9505*** is disabling shared libraries support. We urge you to upgrade GNU 9506*** binutils to release 2.9.1 or newer. Another option is to modify 9507*** your PATH or compiler configuration so that the native linker is 9508*** used, and then restart. 9509 9510_LT_EOF 9511 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9513 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9514 else 9515 ld_shlibs=no 9516 fi 9517 ;; 9518 9519 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9520 case `$LD -v 2>&1` in 9521 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9522 ld_shlibs=no 9523 cat <<_LT_EOF 1>&2 9524 9525*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9526*** reliably create shared libraries on SCO systems. Therefore, libtool 9527*** is disabling shared libraries support. We urge you to upgrade GNU 9528*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9529*** your PATH or compiler configuration so that the native linker is 9530*** used, and then restart. 9531 9532_LT_EOF 9533 ;; 9534 *) 9535 # For security reasons, it is highly recommended that you always 9536 # use absolute paths for naming shared libraries, and exclude the 9537 # DT_RUNPATH tag from executables and libraries. But doing so 9538 # requires that you compile everything twice, which is a pain. 9539 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9541 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9542 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9543 else 9544 ld_shlibs=no 9545 fi 9546 ;; 9547 esac 9548 ;; 9549 9550 sunos4*) 9551 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9552 wlarc= 9553 hardcode_direct=yes 9554 hardcode_shlibpath_var=no 9555 ;; 9556 9557 *) 9558 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9559 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9560 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9561 else 9562 ld_shlibs=no 9563 fi 9564 ;; 9565 esac 9566 9567 if test "$ld_shlibs" = no; then 9568 runpath_var= 9569 hardcode_libdir_flag_spec= 9570 export_dynamic_flag_spec= 9571 whole_archive_flag_spec= 9572 fi 9573 else 9574 # PORTME fill in a description of your system's linker (not GNU ld) 9575 case $host_os in 9576 aix3*) 9577 allow_undefined_flag=unsupported 9578 always_export_symbols=yes 9579 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' 9580 # Note: this linker hardcodes the directories in LIBPATH if there 9581 # are no directories specified by -L. 9582 hardcode_minus_L=yes 9583 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9584 # Neither direct hardcoding nor static linking is supported with a 9585 # broken collect2. 9586 hardcode_direct=unsupported 9587 fi 9588 ;; 9589 9590 aix[4-9]*) 9591 if test "$host_cpu" = ia64; then 9592 # On IA64, the linker does run time linking by default, so we don't 9593 # have to do anything special. 9594 aix_use_runtimelinking=no 9595 exp_sym_flag='-Bexport' 9596 no_entry_flag="" 9597 else 9598 # If we're using GNU nm, then we don't want the "-C" option. 9599 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9600 # Also, AIX nm treats weak defined symbols like other global 9601 # defined symbols, whereas GNU nm marks them as "W". 9602 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9603 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' 9604 else 9605 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' 9606 fi 9607 aix_use_runtimelinking=no 9608 9609 # Test if we are trying to use run time linking or normal 9610 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9611 # need to do runtime linking. 9612 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9613 for ld_flag in $LDFLAGS; do 9614 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9615 aix_use_runtimelinking=yes 9616 break 9617 fi 9618 done 9619 ;; 9620 esac 9621 9622 exp_sym_flag='-bexport' 9623 no_entry_flag='-bnoentry' 9624 fi 9625 9626 # When large executables or shared objects are built, AIX ld can 9627 # have problems creating the table of contents. If linking a library 9628 # or program results in "error TOC overflow" add -mminimal-toc to 9629 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9630 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9631 9632 archive_cmds='' 9633 hardcode_direct=yes 9634 hardcode_direct_absolute=yes 9635 hardcode_libdir_separator=':' 9636 link_all_deplibs=yes 9637 file_list_spec='${wl}-f,' 9638 9639 if test "$GCC" = yes; then 9640 case $host_os in aix4.[012]|aix4.[012].*) 9641 # We only want to do this on AIX 4.2 and lower, the check 9642 # below for broken collect2 doesn't work under 4.3+ 9643 collect2name=`${CC} -print-prog-name=collect2` 9644 if test -f "$collect2name" && 9645 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9646 then 9647 # We have reworked collect2 9648 : 9649 else 9650 # We have old collect2 9651 hardcode_direct=unsupported 9652 # It fails to find uninstalled libraries when the uninstalled 9653 # path is not listed in the libpath. Setting hardcode_minus_L 9654 # to unsupported forces relinking 9655 hardcode_minus_L=yes 9656 hardcode_libdir_flag_spec='-L$libdir' 9657 hardcode_libdir_separator= 9658 fi 9659 ;; 9660 esac 9661 shared_flag='-shared' 9662 if test "$aix_use_runtimelinking" = yes; then 9663 shared_flag="$shared_flag "'${wl}-G' 9664 fi 9665 else 9666 # not using gcc 9667 if test "$host_cpu" = ia64; then 9668 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9669 # chokes on -Wl,-G. The following line is correct: 9670 shared_flag='-G' 9671 else 9672 if test "$aix_use_runtimelinking" = yes; then 9673 shared_flag='${wl}-G' 9674 else 9675 shared_flag='${wl}-bM:SRE' 9676 fi 9677 fi 9678 fi 9679 9680 export_dynamic_flag_spec='${wl}-bexpall' 9681 # It seems that -bexpall does not export symbols beginning with 9682 # underscore (_), so it is better to generate a list of symbols to export. 9683 always_export_symbols=yes 9684 if test "$aix_use_runtimelinking" = yes; then 9685 # Warning - without using the other runtime loading flags (-brtl), 9686 # -berok will link without error, but may produce a broken library. 9687 allow_undefined_flag='-berok' 9688 # Determine the default libpath from the value encoded in an 9689 # empty executable. 9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9691/* end confdefs.h. */ 9692 9693int 9694main () 9695{ 9696 9697 ; 9698 return 0; 9699} 9700_ACEOF 9701if ac_fn_c_try_link "$LINENO"; then : 9702 9703lt_aix_libpath_sed=' 9704 /Import File Strings/,/^$/ { 9705 /^0/ { 9706 s/^0 *\(.*\)$/\1/ 9707 p 9708 } 9709 }' 9710aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9711# Check for a 64-bit object if we didn't find anything. 9712if test -z "$aix_libpath"; then 9713 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9714fi 9715fi 9716rm -f core conftest.err conftest.$ac_objext \ 9717 conftest$ac_exeext conftest.$ac_ext 9718if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9719 9720 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9721 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" 9722 else 9723 if test "$host_cpu" = ia64; then 9724 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9725 allow_undefined_flag="-z nodefs" 9726 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" 9727 else 9728 # Determine the default libpath from the value encoded in an 9729 # empty executable. 9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9731/* end confdefs.h. */ 9732 9733int 9734main () 9735{ 9736 9737 ; 9738 return 0; 9739} 9740_ACEOF 9741if ac_fn_c_try_link "$LINENO"; then : 9742 9743lt_aix_libpath_sed=' 9744 /Import File Strings/,/^$/ { 9745 /^0/ { 9746 s/^0 *\(.*\)$/\1/ 9747 p 9748 } 9749 }' 9750aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9751# Check for a 64-bit object if we didn't find anything. 9752if test -z "$aix_libpath"; then 9753 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9754fi 9755fi 9756rm -f core conftest.err conftest.$ac_objext \ 9757 conftest$ac_exeext conftest.$ac_ext 9758if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9759 9760 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9761 # Warning - without using the other run time loading flags, 9762 # -berok will link without error, but may produce a broken library. 9763 no_undefined_flag=' ${wl}-bernotok' 9764 allow_undefined_flag=' ${wl}-berok' 9765 if test "$with_gnu_ld" = yes; then 9766 # We only use this code for GNU lds that support --whole-archive. 9767 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9768 else 9769 # Exported symbols can be pulled into shared objects from archives 9770 whole_archive_flag_spec='$convenience' 9771 fi 9772 archive_cmds_need_lc=yes 9773 # This is similar to how AIX traditionally builds its shared libraries. 9774 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' 9775 fi 9776 fi 9777 ;; 9778 9779 amigaos*) 9780 case $host_cpu in 9781 powerpc) 9782 # see comment about AmigaOS4 .so support 9783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9784 archive_expsym_cmds='' 9785 ;; 9786 m68k) 9787 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)' 9788 hardcode_libdir_flag_spec='-L$libdir' 9789 hardcode_minus_L=yes 9790 ;; 9791 esac 9792 ;; 9793 9794 bsdi[45]*) 9795 export_dynamic_flag_spec=-rdynamic 9796 ;; 9797 9798 cygwin* | mingw* | pw32* | cegcc*) 9799 # When not using gcc, we currently assume that we are using 9800 # Microsoft Visual C++. 9801 # hardcode_libdir_flag_spec is actually meaningless, as there is 9802 # no search path for DLLs. 9803 hardcode_libdir_flag_spec=' ' 9804 allow_undefined_flag=unsupported 9805 # Tell ltmain to make .lib files, not .a files. 9806 libext=lib 9807 # Tell ltmain to make .dll files, not .so files. 9808 shrext_cmds=".dll" 9809 # FIXME: Setting linknames here is a bad hack. 9810 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9811 # The linker will automatically build a .lib file if we build a DLL. 9812 old_archive_from_new_cmds='true' 9813 # FIXME: Should let the user specify the lib program. 9814 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9815 fix_srcfile_path='`cygpath -w "$srcfile"`' 9816 enable_shared_with_static_runtimes=yes 9817 ;; 9818 9819 darwin* | rhapsody*) 9820 9821 9822 archive_cmds_need_lc=no 9823 hardcode_direct=no 9824 hardcode_automatic=yes 9825 hardcode_shlibpath_var=unsupported 9826 if test "$lt_cv_ld_force_load" = "yes"; then 9827 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\"`' 9828 else 9829 whole_archive_flag_spec='' 9830 fi 9831 link_all_deplibs=yes 9832 allow_undefined_flag="$_lt_dar_allow_undefined" 9833 case $cc_basename in 9834 ifort*) _lt_dar_can_shared=yes ;; 9835 *) _lt_dar_can_shared=$GCC ;; 9836 esac 9837 if test "$_lt_dar_can_shared" = "yes"; then 9838 output_verbose_link_cmd=func_echo_all 9839 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9840 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9841 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}" 9842 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}" 9843 9844 else 9845 ld_shlibs=no 9846 fi 9847 9848 ;; 9849 9850 dgux*) 9851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9852 hardcode_libdir_flag_spec='-L$libdir' 9853 hardcode_shlibpath_var=no 9854 ;; 9855 9856 freebsd1*) 9857 ld_shlibs=no 9858 ;; 9859 9860 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9861 # support. Future versions do this automatically, but an explicit c++rt0.o 9862 # does not break anything, and helps significantly (at the cost of a little 9863 # extra space). 9864 freebsd2.2*) 9865 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9866 hardcode_libdir_flag_spec='-R$libdir' 9867 hardcode_direct=yes 9868 hardcode_shlibpath_var=no 9869 ;; 9870 9871 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9872 freebsd2*) 9873 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9874 hardcode_direct=yes 9875 hardcode_minus_L=yes 9876 hardcode_shlibpath_var=no 9877 ;; 9878 9879 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9880 freebsd* | dragonfly*) 9881 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9882 hardcode_libdir_flag_spec='-R$libdir' 9883 hardcode_direct=yes 9884 hardcode_shlibpath_var=no 9885 ;; 9886 9887 hpux9*) 9888 if test "$GCC" = yes; then 9889 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' 9890 else 9891 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' 9892 fi 9893 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9894 hardcode_libdir_separator=: 9895 hardcode_direct=yes 9896 9897 # hardcode_minus_L: Not really in the search PATH, 9898 # but as the default location of the library. 9899 hardcode_minus_L=yes 9900 export_dynamic_flag_spec='${wl}-E' 9901 ;; 9902 9903 hpux10*) 9904 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9905 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9906 else 9907 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9908 fi 9909 if test "$with_gnu_ld" = no; then 9910 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9911 hardcode_libdir_flag_spec_ld='+b $libdir' 9912 hardcode_libdir_separator=: 9913 hardcode_direct=yes 9914 hardcode_direct_absolute=yes 9915 export_dynamic_flag_spec='${wl}-E' 9916 # hardcode_minus_L: Not really in the search PATH, 9917 # but as the default location of the library. 9918 hardcode_minus_L=yes 9919 fi 9920 ;; 9921 9922 hpux11*) 9923 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9924 case $host_cpu in 9925 hppa*64*) 9926 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9927 ;; 9928 ia64*) 9929 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9930 ;; 9931 *) 9932 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9933 ;; 9934 esac 9935 else 9936 case $host_cpu in 9937 hppa*64*) 9938 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9939 ;; 9940 ia64*) 9941 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9942 ;; 9943 *) 9944 9945 # Older versions of the 11.00 compiler do not understand -b yet 9946 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9948$as_echo_n "checking if $CC understands -b... " >&6; } 9949if test "${lt_cv_prog_compiler__b+set}" = set; then : 9950 $as_echo_n "(cached) " >&6 9951else 9952 lt_cv_prog_compiler__b=no 9953 save_LDFLAGS="$LDFLAGS" 9954 LDFLAGS="$LDFLAGS -b" 9955 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9956 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9957 # The linker can only warn and ignore the option if not recognized 9958 # So say no if there are warnings 9959 if test -s conftest.err; then 9960 # Append any errors to the config.log. 9961 cat conftest.err 1>&5 9962 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9963 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9964 if diff conftest.exp conftest.er2 >/dev/null; then 9965 lt_cv_prog_compiler__b=yes 9966 fi 9967 else 9968 lt_cv_prog_compiler__b=yes 9969 fi 9970 fi 9971 $RM -r conftest* 9972 LDFLAGS="$save_LDFLAGS" 9973 9974fi 9975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9976$as_echo "$lt_cv_prog_compiler__b" >&6; } 9977 9978if test x"$lt_cv_prog_compiler__b" = xyes; then 9979 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9980else 9981 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9982fi 9983 9984 ;; 9985 esac 9986 fi 9987 if test "$with_gnu_ld" = no; then 9988 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9989 hardcode_libdir_separator=: 9990 9991 case $host_cpu in 9992 hppa*64*|ia64*) 9993 hardcode_direct=no 9994 hardcode_shlibpath_var=no 9995 ;; 9996 *) 9997 hardcode_direct=yes 9998 hardcode_direct_absolute=yes 9999 export_dynamic_flag_spec='${wl}-E' 10000 10001 # hardcode_minus_L: Not really in the search PATH, 10002 # but as the default location of the library. 10003 hardcode_minus_L=yes 10004 ;; 10005 esac 10006 fi 10007 ;; 10008 10009 irix5* | irix6* | nonstopux*) 10010 if test "$GCC" = yes; then 10011 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' 10012 # Try to use the -exported_symbol ld option, if it does not 10013 # work, assume that -exports_file does not work either and 10014 # implicitly export all symbols. 10015 save_LDFLAGS="$LDFLAGS" 10016 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10018/* end confdefs.h. */ 10019int foo(void) {} 10020_ACEOF 10021if ac_fn_c_try_link "$LINENO"; then : 10022 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' 10023 10024fi 10025rm -f core conftest.err conftest.$ac_objext \ 10026 conftest$ac_exeext conftest.$ac_ext 10027 LDFLAGS="$save_LDFLAGS" 10028 else 10029 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' 10030 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' 10031 fi 10032 archive_cmds_need_lc='no' 10033 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10034 hardcode_libdir_separator=: 10035 inherit_rpath=yes 10036 link_all_deplibs=yes 10037 ;; 10038 10039 netbsd*) 10040 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10041 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10042 else 10043 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10044 fi 10045 hardcode_libdir_flag_spec='-R$libdir' 10046 hardcode_direct=yes 10047 hardcode_shlibpath_var=no 10048 ;; 10049 10050 newsos6) 10051 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10052 hardcode_direct=yes 10053 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10054 hardcode_libdir_separator=: 10055 hardcode_shlibpath_var=no 10056 ;; 10057 10058 *nto* | *qnx*) 10059 ;; 10060 10061 openbsd*) 10062 if test -f /usr/libexec/ld.so; then 10063 hardcode_direct=yes 10064 hardcode_shlibpath_var=no 10065 hardcode_direct_absolute=yes 10066 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10067 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10068 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10069 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10070 export_dynamic_flag_spec='${wl}-E' 10071 else 10072 case $host_os in 10073 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10074 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10075 hardcode_libdir_flag_spec='-R$libdir' 10076 ;; 10077 *) 10078 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10079 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10080 ;; 10081 esac 10082 fi 10083 else 10084 ld_shlibs=no 10085 fi 10086 ;; 10087 10088 os2*) 10089 hardcode_libdir_flag_spec='-L$libdir' 10090 hardcode_minus_L=yes 10091 allow_undefined_flag=unsupported 10092 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' 10093 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10094 ;; 10095 10096 osf3*) 10097 if test "$GCC" = yes; then 10098 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10099 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' 10100 else 10101 allow_undefined_flag=' -expect_unresolved \*' 10102 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' 10103 fi 10104 archive_cmds_need_lc='no' 10105 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10106 hardcode_libdir_separator=: 10107 ;; 10108 10109 osf4* | osf5*) # as osf3* with the addition of -msym flag 10110 if test "$GCC" = yes; then 10111 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10112 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' 10113 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10114 else 10115 allow_undefined_flag=' -expect_unresolved \*' 10116 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' 10117 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~ 10118 $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' 10119 10120 # Both c and cxx compiler support -rpath directly 10121 hardcode_libdir_flag_spec='-rpath $libdir' 10122 fi 10123 archive_cmds_need_lc='no' 10124 hardcode_libdir_separator=: 10125 ;; 10126 10127 solaris*) 10128 no_undefined_flag=' -z defs' 10129 if test "$GCC" = yes; then 10130 wlarc='${wl}' 10131 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10132 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10133 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10134 else 10135 case `$CC -V 2>&1` in 10136 *"Compilers 5.0"*) 10137 wlarc='' 10138 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10139 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10140 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10141 ;; 10142 *) 10143 wlarc='${wl}' 10144 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10145 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10146 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10147 ;; 10148 esac 10149 fi 10150 hardcode_libdir_flag_spec='-R$libdir' 10151 hardcode_shlibpath_var=no 10152 case $host_os in 10153 solaris2.[0-5] | solaris2.[0-5].*) ;; 10154 *) 10155 # The compiler driver will combine and reorder linker options, 10156 # but understands `-z linker_flag'. GCC discards it without `$wl', 10157 # but is careful enough not to reorder. 10158 # Supported since Solaris 2.6 (maybe 2.5.1?) 10159 if test "$GCC" = yes; then 10160 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10161 else 10162 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10163 fi 10164 ;; 10165 esac 10166 link_all_deplibs=yes 10167 ;; 10168 10169 sunos4*) 10170 if test "x$host_vendor" = xsequent; then 10171 # Use $CC to link under sequent, because it throws in some extra .o 10172 # files that make .init and .fini sections work. 10173 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10174 else 10175 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10176 fi 10177 hardcode_libdir_flag_spec='-L$libdir' 10178 hardcode_direct=yes 10179 hardcode_minus_L=yes 10180 hardcode_shlibpath_var=no 10181 ;; 10182 10183 sysv4) 10184 case $host_vendor in 10185 sni) 10186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10187 hardcode_direct=yes # is this really true??? 10188 ;; 10189 siemens) 10190 ## LD is ld it makes a PLAMLIB 10191 ## CC just makes a GrossModule. 10192 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10193 reload_cmds='$CC -r -o $output$reload_objs' 10194 hardcode_direct=no 10195 ;; 10196 motorola) 10197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10198 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10199 ;; 10200 esac 10201 runpath_var='LD_RUN_PATH' 10202 hardcode_shlibpath_var=no 10203 ;; 10204 10205 sysv4.3*) 10206 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10207 hardcode_shlibpath_var=no 10208 export_dynamic_flag_spec='-Bexport' 10209 ;; 10210 10211 sysv4*MP*) 10212 if test -d /usr/nec; then 10213 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10214 hardcode_shlibpath_var=no 10215 runpath_var=LD_RUN_PATH 10216 hardcode_runpath_var=yes 10217 ld_shlibs=yes 10218 fi 10219 ;; 10220 10221 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10222 no_undefined_flag='${wl}-z,text' 10223 archive_cmds_need_lc=no 10224 hardcode_shlibpath_var=no 10225 runpath_var='LD_RUN_PATH' 10226 10227 if test "$GCC" = yes; then 10228 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10229 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10230 else 10231 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10232 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10233 fi 10234 ;; 10235 10236 sysv5* | sco3.2v5* | sco5v6*) 10237 # Note: We can NOT use -z defs as we might desire, because we do not 10238 # link with -lc, and that would cause any symbols used from libc to 10239 # always be unresolved, which means just about no library would 10240 # ever link correctly. If we're not using GNU ld we use -z text 10241 # though, which does catch some bad symbols but isn't as heavy-handed 10242 # as -z defs. 10243 no_undefined_flag='${wl}-z,text' 10244 allow_undefined_flag='${wl}-z,nodefs' 10245 archive_cmds_need_lc=no 10246 hardcode_shlibpath_var=no 10247 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10248 hardcode_libdir_separator=':' 10249 link_all_deplibs=yes 10250 export_dynamic_flag_spec='${wl}-Bexport' 10251 runpath_var='LD_RUN_PATH' 10252 10253 if test "$GCC" = yes; then 10254 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10255 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10256 else 10257 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10258 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10259 fi 10260 ;; 10261 10262 uts4*) 10263 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10264 hardcode_libdir_flag_spec='-L$libdir' 10265 hardcode_shlibpath_var=no 10266 ;; 10267 10268 *) 10269 ld_shlibs=no 10270 ;; 10271 esac 10272 10273 if test x$host_vendor = xsni; then 10274 case $host in 10275 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10276 export_dynamic_flag_spec='${wl}-Blargedynsym' 10277 ;; 10278 esac 10279 fi 10280 fi 10281 10282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10283$as_echo "$ld_shlibs" >&6; } 10284test "$ld_shlibs" = no && can_build_shared=no 10285 10286with_gnu_ld=$with_gnu_ld 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302# 10303# Do we need to explicitly link libc? 10304# 10305case "x$archive_cmds_need_lc" in 10306x|xyes) 10307 # Assume -lc should be added 10308 archive_cmds_need_lc=yes 10309 10310 if test "$enable_shared" = yes && test "$GCC" = yes; then 10311 case $archive_cmds in 10312 *'~'*) 10313 # FIXME: we may have to deal with multi-command sequences. 10314 ;; 10315 '$CC '*) 10316 # Test whether the compiler implicitly links with -lc since on some 10317 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10318 # to ld, don't add -lc before -lgcc. 10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10320$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10321if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 10322 $as_echo_n "(cached) " >&6 10323else 10324 $RM conftest* 10325 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10326 10327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10328 (eval $ac_compile) 2>&5 10329 ac_status=$? 10330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10331 test $ac_status = 0; } 2>conftest.err; then 10332 soname=conftest 10333 lib=conftest 10334 libobjs=conftest.$ac_objext 10335 deplibs= 10336 wl=$lt_prog_compiler_wl 10337 pic_flag=$lt_prog_compiler_pic 10338 compiler_flags=-v 10339 linker_flags=-v 10340 verstring= 10341 output_objdir=. 10342 libname=conftest 10343 lt_save_allow_undefined_flag=$allow_undefined_flag 10344 allow_undefined_flag= 10345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10346 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10347 ac_status=$? 10348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10349 test $ac_status = 0; } 10350 then 10351 lt_cv_archive_cmds_need_lc=no 10352 else 10353 lt_cv_archive_cmds_need_lc=yes 10354 fi 10355 allow_undefined_flag=$lt_save_allow_undefined_flag 10356 else 10357 cat conftest.err 1>&5 10358 fi 10359 $RM conftest* 10360 10361fi 10362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10363$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10364 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10365 ;; 10366 esac 10367 fi 10368 ;; 10369esac 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10528$as_echo_n "checking dynamic linker characteristics... " >&6; } 10529 10530if test "$GCC" = yes; then 10531 case $host_os in 10532 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10533 *) lt_awk_arg="/^libraries:/" ;; 10534 esac 10535 case $host_os in 10536 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10537 *) lt_sed_strip_eq="s,=/,/,g" ;; 10538 esac 10539 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10540 case $lt_search_path_spec in 10541 *\;*) 10542 # if the path contains ";" then we assume it to be the separator 10543 # otherwise default to the standard path separator (i.e. ":") - it is 10544 # assumed that no part of a normal pathname contains ";" but that should 10545 # okay in the real world where ";" in dirpaths is itself problematic. 10546 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10547 ;; 10548 *) 10549 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10550 ;; 10551 esac 10552 # Ok, now we have the path, separated by spaces, we can step through it 10553 # and add multilib dir if necessary. 10554 lt_tmp_lt_search_path_spec= 10555 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10556 for lt_sys_path in $lt_search_path_spec; do 10557 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10558 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10559 else 10560 test -d "$lt_sys_path" && \ 10561 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10562 fi 10563 done 10564 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10565BEGIN {RS=" "; FS="/|\n";} { 10566 lt_foo=""; 10567 lt_count=0; 10568 for (lt_i = NF; lt_i > 0; lt_i--) { 10569 if ($lt_i != "" && $lt_i != ".") { 10570 if ($lt_i == "..") { 10571 lt_count++; 10572 } else { 10573 if (lt_count == 0) { 10574 lt_foo="/" $lt_i lt_foo; 10575 } else { 10576 lt_count--; 10577 } 10578 } 10579 } 10580 } 10581 if (lt_foo != "") { lt_freq[lt_foo]++; } 10582 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10583}'` 10584 # AWK program above erroneously prepends '/' to C:/dos/paths 10585 # for these hosts. 10586 case $host_os in 10587 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10588 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10589 esac 10590 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10591else 10592 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10593fi 10594library_names_spec= 10595libname_spec='lib$name' 10596soname_spec= 10597shrext_cmds=".so" 10598postinstall_cmds= 10599postuninstall_cmds= 10600finish_cmds= 10601finish_eval= 10602shlibpath_var= 10603shlibpath_overrides_runpath=unknown 10604version_type=none 10605dynamic_linker="$host_os ld.so" 10606sys_lib_dlsearch_path_spec="/lib /usr/lib" 10607need_lib_prefix=unknown 10608hardcode_into_libs=no 10609 10610# when you set need_version to no, make sure it does not cause -set_version 10611# flags to be left without arguments 10612need_version=unknown 10613 10614case $host_os in 10615aix3*) 10616 version_type=linux 10617 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10618 shlibpath_var=LIBPATH 10619 10620 # AIX 3 has no versioning support, so we append a major version to the name. 10621 soname_spec='${libname}${release}${shared_ext}$major' 10622 ;; 10623 10624aix[4-9]*) 10625 version_type=linux 10626 need_lib_prefix=no 10627 need_version=no 10628 hardcode_into_libs=yes 10629 if test "$host_cpu" = ia64; then 10630 # AIX 5 supports IA64 10631 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10632 shlibpath_var=LD_LIBRARY_PATH 10633 else 10634 # With GCC up to 2.95.x, collect2 would create an import file 10635 # for dependence libraries. The import file would start with 10636 # the line `#! .'. This would cause the generated library to 10637 # depend on `.', always an invalid library. This was fixed in 10638 # development snapshots of GCC prior to 3.0. 10639 case $host_os in 10640 aix4 | aix4.[01] | aix4.[01].*) 10641 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10642 echo ' yes ' 10643 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10644 : 10645 else 10646 can_build_shared=no 10647 fi 10648 ;; 10649 esac 10650 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10651 # soname into executable. Probably we can add versioning support to 10652 # collect2, so additional links can be useful in future. 10653 if test "$aix_use_runtimelinking" = yes; then 10654 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10655 # instead of lib<name>.a to let people know that these are not 10656 # typical AIX shared libraries. 10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10658 else 10659 # We preserve .a as extension for shared libraries through AIX4.2 10660 # and later when we are not doing run time linking. 10661 library_names_spec='${libname}${release}.a $libname.a' 10662 soname_spec='${libname}${release}${shared_ext}$major' 10663 fi 10664 shlibpath_var=LIBPATH 10665 fi 10666 ;; 10667 10668amigaos*) 10669 case $host_cpu in 10670 powerpc) 10671 # Since July 2007 AmigaOS4 officially supports .so libraries. 10672 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10674 ;; 10675 m68k) 10676 library_names_spec='$libname.ixlibrary $libname.a' 10677 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10678 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' 10679 ;; 10680 esac 10681 ;; 10682 10683beos*) 10684 library_names_spec='${libname}${shared_ext}' 10685 dynamic_linker="$host_os ld.so" 10686 shlibpath_var=LIBRARY_PATH 10687 ;; 10688 10689bsdi[45]*) 10690 version_type=linux 10691 need_version=no 10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10693 soname_spec='${libname}${release}${shared_ext}$major' 10694 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10695 shlibpath_var=LD_LIBRARY_PATH 10696 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10697 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10698 # the default ld.so.conf also contains /usr/contrib/lib and 10699 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10700 # libtool to hard-code these into programs 10701 ;; 10702 10703cygwin* | mingw* | pw32* | cegcc*) 10704 version_type=windows 10705 shrext_cmds=".dll" 10706 need_version=no 10707 need_lib_prefix=no 10708 10709 case $GCC,$host_os in 10710 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10711 library_names_spec='$libname.dll.a' 10712 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10713 postinstall_cmds='base_file=`basename \${file}`~ 10714 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10715 dldir=$destdir/`dirname \$dlpath`~ 10716 test -d \$dldir || mkdir -p \$dldir~ 10717 $install_prog $dir/$dlname \$dldir/$dlname~ 10718 chmod a+x \$dldir/$dlname~ 10719 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10720 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10721 fi' 10722 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10723 dlpath=$dir/\$dldll~ 10724 $RM \$dlpath' 10725 shlibpath_overrides_runpath=yes 10726 10727 case $host_os in 10728 cygwin*) 10729 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10730 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10731 10732 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10733 ;; 10734 mingw* | cegcc*) 10735 # MinGW DLLs use traditional 'lib' prefix 10736 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10737 ;; 10738 pw32*) 10739 # pw32 DLLs use 'pw' prefix rather than 'lib' 10740 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10741 ;; 10742 esac 10743 ;; 10744 10745 *) 10746 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10747 ;; 10748 esac 10749 dynamic_linker='Win32 ld.exe' 10750 # FIXME: first we should search . and the directory the executable is in 10751 shlibpath_var=PATH 10752 ;; 10753 10754darwin* | rhapsody*) 10755 dynamic_linker="$host_os dyld" 10756 version_type=darwin 10757 need_lib_prefix=no 10758 need_version=no 10759 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10760 soname_spec='${libname}${release}${major}$shared_ext' 10761 shlibpath_overrides_runpath=yes 10762 shlibpath_var=DYLD_LIBRARY_PATH 10763 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10764 10765 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10766 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10767 ;; 10768 10769dgux*) 10770 version_type=linux 10771 need_lib_prefix=no 10772 need_version=no 10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10774 soname_spec='${libname}${release}${shared_ext}$major' 10775 shlibpath_var=LD_LIBRARY_PATH 10776 ;; 10777 10778freebsd1*) 10779 dynamic_linker=no 10780 ;; 10781 10782freebsd* | dragonfly*) 10783 # DragonFly does not have aout. When/if they implement a new 10784 # versioning mechanism, adjust this. 10785 if test -x /usr/bin/objformat; then 10786 objformat=`/usr/bin/objformat` 10787 else 10788 case $host_os in 10789 freebsd[123]*) objformat=aout ;; 10790 *) objformat=elf ;; 10791 esac 10792 fi 10793 version_type=freebsd-$objformat 10794 case $version_type in 10795 freebsd-elf*) 10796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10797 need_version=no 10798 need_lib_prefix=no 10799 ;; 10800 freebsd-*) 10801 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10802 need_version=yes 10803 ;; 10804 esac 10805 shlibpath_var=LD_LIBRARY_PATH 10806 case $host_os in 10807 freebsd2*) 10808 shlibpath_overrides_runpath=yes 10809 ;; 10810 freebsd3.[01]* | freebsdelf3.[01]*) 10811 shlibpath_overrides_runpath=yes 10812 hardcode_into_libs=yes 10813 ;; 10814 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10815 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10816 shlibpath_overrides_runpath=no 10817 hardcode_into_libs=yes 10818 ;; 10819 *) # from 4.6 on, and DragonFly 10820 shlibpath_overrides_runpath=yes 10821 hardcode_into_libs=yes 10822 ;; 10823 esac 10824 ;; 10825 10826gnu*) 10827 version_type=linux 10828 need_lib_prefix=no 10829 need_version=no 10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10831 soname_spec='${libname}${release}${shared_ext}$major' 10832 shlibpath_var=LD_LIBRARY_PATH 10833 hardcode_into_libs=yes 10834 ;; 10835 10836haiku*) 10837 version_type=linux 10838 need_lib_prefix=no 10839 need_version=no 10840 dynamic_linker="$host_os runtime_loader" 10841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10842 soname_spec='${libname}${release}${shared_ext}$major' 10843 shlibpath_var=LIBRARY_PATH 10844 shlibpath_overrides_runpath=yes 10845 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10846 hardcode_into_libs=yes 10847 ;; 10848 10849hpux9* | hpux10* | hpux11*) 10850 # Give a soname corresponding to the major version so that dld.sl refuses to 10851 # link against other versions. 10852 version_type=sunos 10853 need_lib_prefix=no 10854 need_version=no 10855 case $host_cpu in 10856 ia64*) 10857 shrext_cmds='.so' 10858 hardcode_into_libs=yes 10859 dynamic_linker="$host_os dld.so" 10860 shlibpath_var=LD_LIBRARY_PATH 10861 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10863 soname_spec='${libname}${release}${shared_ext}$major' 10864 if test "X$HPUX_IA64_MODE" = X32; then 10865 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10866 else 10867 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10868 fi 10869 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10870 ;; 10871 hppa*64*) 10872 shrext_cmds='.sl' 10873 hardcode_into_libs=yes 10874 dynamic_linker="$host_os dld.sl" 10875 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10876 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10878 soname_spec='${libname}${release}${shared_ext}$major' 10879 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10880 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10881 ;; 10882 *) 10883 shrext_cmds='.sl' 10884 dynamic_linker="$host_os dld.sl" 10885 shlibpath_var=SHLIB_PATH 10886 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10888 soname_spec='${libname}${release}${shared_ext}$major' 10889 ;; 10890 esac 10891 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10892 postinstall_cmds='chmod 555 $lib' 10893 # or fails outright, so override atomically: 10894 install_override_mode=555 10895 ;; 10896 10897interix[3-9]*) 10898 version_type=linux 10899 need_lib_prefix=no 10900 need_version=no 10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10902 soname_spec='${libname}${release}${shared_ext}$major' 10903 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10904 shlibpath_var=LD_LIBRARY_PATH 10905 shlibpath_overrides_runpath=no 10906 hardcode_into_libs=yes 10907 ;; 10908 10909irix5* | irix6* | nonstopux*) 10910 case $host_os in 10911 nonstopux*) version_type=nonstopux ;; 10912 *) 10913 if test "$lt_cv_prog_gnu_ld" = yes; then 10914 version_type=linux 10915 else 10916 version_type=irix 10917 fi ;; 10918 esac 10919 need_lib_prefix=no 10920 need_version=no 10921 soname_spec='${libname}${release}${shared_ext}$major' 10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10923 case $host_os in 10924 irix5* | nonstopux*) 10925 libsuff= shlibsuff= 10926 ;; 10927 *) 10928 case $LD in # libtool.m4 will add one of these switches to LD 10929 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10930 libsuff= shlibsuff= libmagic=32-bit;; 10931 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10932 libsuff=32 shlibsuff=N32 libmagic=N32;; 10933 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10934 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10935 *) libsuff= shlibsuff= libmagic=never-match;; 10936 esac 10937 ;; 10938 esac 10939 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10940 shlibpath_overrides_runpath=no 10941 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10942 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10943 hardcode_into_libs=yes 10944 ;; 10945 10946# No shared lib support for Linux oldld, aout, or coff. 10947linux*oldld* | linux*aout* | linux*coff*) 10948 dynamic_linker=no 10949 ;; 10950 10951# This must be Linux ELF. 10952linux* | k*bsd*-gnu | kopensolaris*-gnu) 10953 version_type=linux 10954 need_lib_prefix=no 10955 need_version=no 10956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10957 soname_spec='${libname}${release}${shared_ext}$major' 10958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10959 shlibpath_var=LD_LIBRARY_PATH 10960 shlibpath_overrides_runpath=no 10961 10962 # Some binutils ld are patched to set DT_RUNPATH 10963 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 10964 $as_echo_n "(cached) " >&6 10965else 10966 lt_cv_shlibpath_overrides_runpath=no 10967 save_LDFLAGS=$LDFLAGS 10968 save_libdir=$libdir 10969 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10970 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10972/* end confdefs.h. */ 10973 10974int 10975main () 10976{ 10977 10978 ; 10979 return 0; 10980} 10981_ACEOF 10982if ac_fn_c_try_link "$LINENO"; then : 10983 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10984 lt_cv_shlibpath_overrides_runpath=yes 10985fi 10986fi 10987rm -f core conftest.err conftest.$ac_objext \ 10988 conftest$ac_exeext conftest.$ac_ext 10989 LDFLAGS=$save_LDFLAGS 10990 libdir=$save_libdir 10991 10992fi 10993 10994 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10995 10996 # This implies no fast_install, which is unacceptable. 10997 # Some rework will be needed to allow for fast_install 10998 # before this can be enabled. 10999 hardcode_into_libs=yes 11000 11001 # Add ABI-specific directories to the system library path. 11002 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 11003 11004 # Append ld.so.conf contents to the search path 11005 if test -f /etc/ld.so.conf; then 11006 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' ' '` 11007 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 11008 11009 fi 11010 11011 # We used to test for /lib/ld.so.1 and disable shared libraries on 11012 # powerpc, because MkLinux only supported shared libraries with the 11013 # GNU dynamic linker. Since this was broken with cross compilers, 11014 # most powerpc-linux boxes support dynamic linking these days and 11015 # people can always --disable-shared, the test was removed, and we 11016 # assume the GNU/Linux dynamic linker is in use. 11017 dynamic_linker='GNU/Linux ld.so' 11018 ;; 11019 11020netbsd*) 11021 version_type=sunos 11022 need_lib_prefix=no 11023 need_version=no 11024 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11026 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11027 dynamic_linker='NetBSD (a.out) ld.so' 11028 else 11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11030 soname_spec='${libname}${release}${shared_ext}$major' 11031 dynamic_linker='NetBSD ld.elf_so' 11032 fi 11033 shlibpath_var=LD_LIBRARY_PATH 11034 shlibpath_overrides_runpath=yes 11035 hardcode_into_libs=yes 11036 ;; 11037 11038newsos6) 11039 version_type=linux 11040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11041 shlibpath_var=LD_LIBRARY_PATH 11042 shlibpath_overrides_runpath=yes 11043 ;; 11044 11045*nto* | *qnx*) 11046 version_type=qnx 11047 need_lib_prefix=no 11048 need_version=no 11049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11050 soname_spec='${libname}${release}${shared_ext}$major' 11051 shlibpath_var=LD_LIBRARY_PATH 11052 shlibpath_overrides_runpath=no 11053 hardcode_into_libs=yes 11054 dynamic_linker='ldqnx.so' 11055 ;; 11056 11057openbsd*) 11058 version_type=sunos 11059 sys_lib_dlsearch_path_spec="/usr/lib" 11060 need_lib_prefix=no 11061 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11062 case $host_os in 11063 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11064 *) need_version=no ;; 11065 esac 11066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11067 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11068 shlibpath_var=LD_LIBRARY_PATH 11069 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11070 case $host_os in 11071 openbsd2.[89] | openbsd2.[89].*) 11072 shlibpath_overrides_runpath=no 11073 ;; 11074 *) 11075 shlibpath_overrides_runpath=yes 11076 ;; 11077 esac 11078 else 11079 shlibpath_overrides_runpath=yes 11080 fi 11081 ;; 11082 11083os2*) 11084 libname_spec='$name' 11085 shrext_cmds=".dll" 11086 need_lib_prefix=no 11087 library_names_spec='$libname${shared_ext} $libname.a' 11088 dynamic_linker='OS/2 ld.exe' 11089 shlibpath_var=LIBPATH 11090 ;; 11091 11092osf3* | osf4* | osf5*) 11093 version_type=osf 11094 need_lib_prefix=no 11095 need_version=no 11096 soname_spec='${libname}${release}${shared_ext}$major' 11097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11098 shlibpath_var=LD_LIBRARY_PATH 11099 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11100 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11101 ;; 11102 11103rdos*) 11104 dynamic_linker=no 11105 ;; 11106 11107solaris*) 11108 version_type=linux 11109 need_lib_prefix=no 11110 need_version=no 11111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11112 soname_spec='${libname}${release}${shared_ext}$major' 11113 shlibpath_var=LD_LIBRARY_PATH 11114 shlibpath_overrides_runpath=yes 11115 hardcode_into_libs=yes 11116 # ldd complains unless libraries are executable 11117 postinstall_cmds='chmod +x $lib' 11118 ;; 11119 11120sunos4*) 11121 version_type=sunos 11122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11123 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11124 shlibpath_var=LD_LIBRARY_PATH 11125 shlibpath_overrides_runpath=yes 11126 if test "$with_gnu_ld" = yes; then 11127 need_lib_prefix=no 11128 fi 11129 need_version=yes 11130 ;; 11131 11132sysv4 | sysv4.3*) 11133 version_type=linux 11134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11135 soname_spec='${libname}${release}${shared_ext}$major' 11136 shlibpath_var=LD_LIBRARY_PATH 11137 case $host_vendor in 11138 sni) 11139 shlibpath_overrides_runpath=no 11140 need_lib_prefix=no 11141 runpath_var=LD_RUN_PATH 11142 ;; 11143 siemens) 11144 need_lib_prefix=no 11145 ;; 11146 motorola) 11147 need_lib_prefix=no 11148 need_version=no 11149 shlibpath_overrides_runpath=no 11150 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11151 ;; 11152 esac 11153 ;; 11154 11155sysv4*MP*) 11156 if test -d /usr/nec ;then 11157 version_type=linux 11158 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11159 soname_spec='$libname${shared_ext}.$major' 11160 shlibpath_var=LD_LIBRARY_PATH 11161 fi 11162 ;; 11163 11164sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11165 version_type=freebsd-elf 11166 need_lib_prefix=no 11167 need_version=no 11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11169 soname_spec='${libname}${release}${shared_ext}$major' 11170 shlibpath_var=LD_LIBRARY_PATH 11171 shlibpath_overrides_runpath=yes 11172 hardcode_into_libs=yes 11173 if test "$with_gnu_ld" = yes; then 11174 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11175 else 11176 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11177 case $host_os in 11178 sco3.2v5*) 11179 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11180 ;; 11181 esac 11182 fi 11183 sys_lib_dlsearch_path_spec='/usr/lib' 11184 ;; 11185 11186tpf*) 11187 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11188 version_type=linux 11189 need_lib_prefix=no 11190 need_version=no 11191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11192 shlibpath_var=LD_LIBRARY_PATH 11193 shlibpath_overrides_runpath=no 11194 hardcode_into_libs=yes 11195 ;; 11196 11197uts4*) 11198 version_type=linux 11199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11200 soname_spec='${libname}${release}${shared_ext}$major' 11201 shlibpath_var=LD_LIBRARY_PATH 11202 ;; 11203 11204*) 11205 dynamic_linker=no 11206 ;; 11207esac 11208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11209$as_echo "$dynamic_linker" >&6; } 11210test "$dynamic_linker" = no && can_build_shared=no 11211 11212variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11213if test "$GCC" = yes; then 11214 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11215fi 11216 11217if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11218 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11219fi 11220if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11221 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11222fi 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11316$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11317hardcode_action= 11318if test -n "$hardcode_libdir_flag_spec" || 11319 test -n "$runpath_var" || 11320 test "X$hardcode_automatic" = "Xyes" ; then 11321 11322 # We can hardcode non-existent directories. 11323 if test "$hardcode_direct" != no && 11324 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11325 # have to relink, otherwise we might link with an installed library 11326 # when we should be linking with a yet-to-be-installed one 11327 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11328 test "$hardcode_minus_L" != no; then 11329 # Linking always hardcodes the temporary library directory. 11330 hardcode_action=relink 11331 else 11332 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11333 hardcode_action=immediate 11334 fi 11335else 11336 # We cannot hardcode anything, or else we can only hardcode existing 11337 # directories. 11338 hardcode_action=unsupported 11339fi 11340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11341$as_echo "$hardcode_action" >&6; } 11342 11343if test "$hardcode_action" = relink || 11344 test "$inherit_rpath" = yes; then 11345 # Fast installation is not supported 11346 enable_fast_install=no 11347elif test "$shlibpath_overrides_runpath" = yes || 11348 test "$enable_shared" = no; then 11349 # Fast installation is not necessary 11350 enable_fast_install=needless 11351fi 11352 11353 11354 11355 11356 11357 11358 if test "x$enable_dlopen" != xyes; then 11359 enable_dlopen=unknown 11360 enable_dlopen_self=unknown 11361 enable_dlopen_self_static=unknown 11362else 11363 lt_cv_dlopen=no 11364 lt_cv_dlopen_libs= 11365 11366 case $host_os in 11367 beos*) 11368 lt_cv_dlopen="load_add_on" 11369 lt_cv_dlopen_libs= 11370 lt_cv_dlopen_self=yes 11371 ;; 11372 11373 mingw* | pw32* | cegcc*) 11374 lt_cv_dlopen="LoadLibrary" 11375 lt_cv_dlopen_libs= 11376 ;; 11377 11378 cygwin*) 11379 lt_cv_dlopen="dlopen" 11380 lt_cv_dlopen_libs= 11381 ;; 11382 11383 darwin*) 11384 # if libdl is installed we need to link against it 11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11386$as_echo_n "checking for dlopen in -ldl... " >&6; } 11387if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11388 $as_echo_n "(cached) " >&6 11389else 11390 ac_check_lib_save_LIBS=$LIBS 11391LIBS="-ldl $LIBS" 11392cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11393/* end confdefs.h. */ 11394 11395/* Override any GCC internal prototype to avoid an error. 11396 Use char because int might match the return type of a GCC 11397 builtin and then its argument prototype would still apply. */ 11398#ifdef __cplusplus 11399extern "C" 11400#endif 11401char dlopen (); 11402int 11403main () 11404{ 11405return dlopen (); 11406 ; 11407 return 0; 11408} 11409_ACEOF 11410if ac_fn_c_try_link "$LINENO"; then : 11411 ac_cv_lib_dl_dlopen=yes 11412else 11413 ac_cv_lib_dl_dlopen=no 11414fi 11415rm -f core conftest.err conftest.$ac_objext \ 11416 conftest$ac_exeext conftest.$ac_ext 11417LIBS=$ac_check_lib_save_LIBS 11418fi 11419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11420$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11421if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11422 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11423else 11424 11425 lt_cv_dlopen="dyld" 11426 lt_cv_dlopen_libs= 11427 lt_cv_dlopen_self=yes 11428 11429fi 11430 11431 ;; 11432 11433 *) 11434 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11435if test "x$ac_cv_func_shl_load" = x""yes; then : 11436 lt_cv_dlopen="shl_load" 11437else 11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11439$as_echo_n "checking for shl_load in -ldld... " >&6; } 11440if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 11441 $as_echo_n "(cached) " >&6 11442else 11443 ac_check_lib_save_LIBS=$LIBS 11444LIBS="-ldld $LIBS" 11445cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11446/* end confdefs.h. */ 11447 11448/* Override any GCC internal prototype to avoid an error. 11449 Use char because int might match the return type of a GCC 11450 builtin and then its argument prototype would still apply. */ 11451#ifdef __cplusplus 11452extern "C" 11453#endif 11454char shl_load (); 11455int 11456main () 11457{ 11458return shl_load (); 11459 ; 11460 return 0; 11461} 11462_ACEOF 11463if ac_fn_c_try_link "$LINENO"; then : 11464 ac_cv_lib_dld_shl_load=yes 11465else 11466 ac_cv_lib_dld_shl_load=no 11467fi 11468rm -f core conftest.err conftest.$ac_objext \ 11469 conftest$ac_exeext conftest.$ac_ext 11470LIBS=$ac_check_lib_save_LIBS 11471fi 11472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11473$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11474if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 11475 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11476else 11477 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11478if test "x$ac_cv_func_dlopen" = x""yes; then : 11479 lt_cv_dlopen="dlopen" 11480else 11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11482$as_echo_n "checking for dlopen in -ldl... " >&6; } 11483if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11484 $as_echo_n "(cached) " >&6 11485else 11486 ac_check_lib_save_LIBS=$LIBS 11487LIBS="-ldl $LIBS" 11488cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11489/* end confdefs.h. */ 11490 11491/* Override any GCC internal prototype to avoid an error. 11492 Use char because int might match the return type of a GCC 11493 builtin and then its argument prototype would still apply. */ 11494#ifdef __cplusplus 11495extern "C" 11496#endif 11497char dlopen (); 11498int 11499main () 11500{ 11501return dlopen (); 11502 ; 11503 return 0; 11504} 11505_ACEOF 11506if ac_fn_c_try_link "$LINENO"; then : 11507 ac_cv_lib_dl_dlopen=yes 11508else 11509 ac_cv_lib_dl_dlopen=no 11510fi 11511rm -f core conftest.err conftest.$ac_objext \ 11512 conftest$ac_exeext conftest.$ac_ext 11513LIBS=$ac_check_lib_save_LIBS 11514fi 11515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11516$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11517if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11518 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11519else 11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11521$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11522if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 11523 $as_echo_n "(cached) " >&6 11524else 11525 ac_check_lib_save_LIBS=$LIBS 11526LIBS="-lsvld $LIBS" 11527cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11528/* end confdefs.h. */ 11529 11530/* Override any GCC internal prototype to avoid an error. 11531 Use char because int might match the return type of a GCC 11532 builtin and then its argument prototype would still apply. */ 11533#ifdef __cplusplus 11534extern "C" 11535#endif 11536char dlopen (); 11537int 11538main () 11539{ 11540return dlopen (); 11541 ; 11542 return 0; 11543} 11544_ACEOF 11545if ac_fn_c_try_link "$LINENO"; then : 11546 ac_cv_lib_svld_dlopen=yes 11547else 11548 ac_cv_lib_svld_dlopen=no 11549fi 11550rm -f core conftest.err conftest.$ac_objext \ 11551 conftest$ac_exeext conftest.$ac_ext 11552LIBS=$ac_check_lib_save_LIBS 11553fi 11554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11555$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11556if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11557 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11558else 11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11560$as_echo_n "checking for dld_link in -ldld... " >&6; } 11561if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11562 $as_echo_n "(cached) " >&6 11563else 11564 ac_check_lib_save_LIBS=$LIBS 11565LIBS="-ldld $LIBS" 11566cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11567/* end confdefs.h. */ 11568 11569/* Override any GCC internal prototype to avoid an error. 11570 Use char because int might match the return type of a GCC 11571 builtin and then its argument prototype would still apply. */ 11572#ifdef __cplusplus 11573extern "C" 11574#endif 11575char dld_link (); 11576int 11577main () 11578{ 11579return dld_link (); 11580 ; 11581 return 0; 11582} 11583_ACEOF 11584if ac_fn_c_try_link "$LINENO"; then : 11585 ac_cv_lib_dld_dld_link=yes 11586else 11587 ac_cv_lib_dld_dld_link=no 11588fi 11589rm -f core conftest.err conftest.$ac_objext \ 11590 conftest$ac_exeext conftest.$ac_ext 11591LIBS=$ac_check_lib_save_LIBS 11592fi 11593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11594$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11595if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11596 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11597fi 11598 11599 11600fi 11601 11602 11603fi 11604 11605 11606fi 11607 11608 11609fi 11610 11611 11612fi 11613 11614 ;; 11615 esac 11616 11617 if test "x$lt_cv_dlopen" != xno; then 11618 enable_dlopen=yes 11619 else 11620 enable_dlopen=no 11621 fi 11622 11623 case $lt_cv_dlopen in 11624 dlopen) 11625 save_CPPFLAGS="$CPPFLAGS" 11626 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11627 11628 save_LDFLAGS="$LDFLAGS" 11629 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11630 11631 save_LIBS="$LIBS" 11632 LIBS="$lt_cv_dlopen_libs $LIBS" 11633 11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11635$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11636if test "${lt_cv_dlopen_self+set}" = set; then : 11637 $as_echo_n "(cached) " >&6 11638else 11639 if test "$cross_compiling" = yes; then : 11640 lt_cv_dlopen_self=cross 11641else 11642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11643 lt_status=$lt_dlunknown 11644 cat > conftest.$ac_ext <<_LT_EOF 11645#line $LINENO "configure" 11646#include "confdefs.h" 11647 11648#if HAVE_DLFCN_H 11649#include <dlfcn.h> 11650#endif 11651 11652#include <stdio.h> 11653 11654#ifdef RTLD_GLOBAL 11655# define LT_DLGLOBAL RTLD_GLOBAL 11656#else 11657# ifdef DL_GLOBAL 11658# define LT_DLGLOBAL DL_GLOBAL 11659# else 11660# define LT_DLGLOBAL 0 11661# endif 11662#endif 11663 11664/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11665 find out it does not work in some platform. */ 11666#ifndef LT_DLLAZY_OR_NOW 11667# ifdef RTLD_LAZY 11668# define LT_DLLAZY_OR_NOW RTLD_LAZY 11669# else 11670# ifdef DL_LAZY 11671# define LT_DLLAZY_OR_NOW DL_LAZY 11672# else 11673# ifdef RTLD_NOW 11674# define LT_DLLAZY_OR_NOW RTLD_NOW 11675# else 11676# ifdef DL_NOW 11677# define LT_DLLAZY_OR_NOW DL_NOW 11678# else 11679# define LT_DLLAZY_OR_NOW 0 11680# endif 11681# endif 11682# endif 11683# endif 11684#endif 11685 11686/* When -fvisbility=hidden is used, assume the code has been annotated 11687 correspondingly for the symbols needed. */ 11688#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11689void fnord () __attribute__((visibility("default"))); 11690#endif 11691 11692void fnord () { int i=42; } 11693int main () 11694{ 11695 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11696 int status = $lt_dlunknown; 11697 11698 if (self) 11699 { 11700 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11701 else 11702 { 11703 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11704 else puts (dlerror ()); 11705 } 11706 /* dlclose (self); */ 11707 } 11708 else 11709 puts (dlerror ()); 11710 11711 return status; 11712} 11713_LT_EOF 11714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11715 (eval $ac_link) 2>&5 11716 ac_status=$? 11717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11718 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11719 (./conftest; exit; ) >&5 2>/dev/null 11720 lt_status=$? 11721 case x$lt_status in 11722 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11723 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11724 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11725 esac 11726 else : 11727 # compilation failed 11728 lt_cv_dlopen_self=no 11729 fi 11730fi 11731rm -fr conftest* 11732 11733 11734fi 11735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11736$as_echo "$lt_cv_dlopen_self" >&6; } 11737 11738 if test "x$lt_cv_dlopen_self" = xyes; then 11739 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11741$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11742if test "${lt_cv_dlopen_self_static+set}" = set; then : 11743 $as_echo_n "(cached) " >&6 11744else 11745 if test "$cross_compiling" = yes; then : 11746 lt_cv_dlopen_self_static=cross 11747else 11748 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11749 lt_status=$lt_dlunknown 11750 cat > conftest.$ac_ext <<_LT_EOF 11751#line $LINENO "configure" 11752#include "confdefs.h" 11753 11754#if HAVE_DLFCN_H 11755#include <dlfcn.h> 11756#endif 11757 11758#include <stdio.h> 11759 11760#ifdef RTLD_GLOBAL 11761# define LT_DLGLOBAL RTLD_GLOBAL 11762#else 11763# ifdef DL_GLOBAL 11764# define LT_DLGLOBAL DL_GLOBAL 11765# else 11766# define LT_DLGLOBAL 0 11767# endif 11768#endif 11769 11770/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11771 find out it does not work in some platform. */ 11772#ifndef LT_DLLAZY_OR_NOW 11773# ifdef RTLD_LAZY 11774# define LT_DLLAZY_OR_NOW RTLD_LAZY 11775# else 11776# ifdef DL_LAZY 11777# define LT_DLLAZY_OR_NOW DL_LAZY 11778# else 11779# ifdef RTLD_NOW 11780# define LT_DLLAZY_OR_NOW RTLD_NOW 11781# else 11782# ifdef DL_NOW 11783# define LT_DLLAZY_OR_NOW DL_NOW 11784# else 11785# define LT_DLLAZY_OR_NOW 0 11786# endif 11787# endif 11788# endif 11789# endif 11790#endif 11791 11792/* When -fvisbility=hidden is used, assume the code has been annotated 11793 correspondingly for the symbols needed. */ 11794#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11795void fnord () __attribute__((visibility("default"))); 11796#endif 11797 11798void fnord () { int i=42; } 11799int main () 11800{ 11801 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11802 int status = $lt_dlunknown; 11803 11804 if (self) 11805 { 11806 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11807 else 11808 { 11809 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11810 else puts (dlerror ()); 11811 } 11812 /* dlclose (self); */ 11813 } 11814 else 11815 puts (dlerror ()); 11816 11817 return status; 11818} 11819_LT_EOF 11820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11821 (eval $ac_link) 2>&5 11822 ac_status=$? 11823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11824 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11825 (./conftest; exit; ) >&5 2>/dev/null 11826 lt_status=$? 11827 case x$lt_status in 11828 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11829 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11830 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11831 esac 11832 else : 11833 # compilation failed 11834 lt_cv_dlopen_self_static=no 11835 fi 11836fi 11837rm -fr conftest* 11838 11839 11840fi 11841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11842$as_echo "$lt_cv_dlopen_self_static" >&6; } 11843 fi 11844 11845 CPPFLAGS="$save_CPPFLAGS" 11846 LDFLAGS="$save_LDFLAGS" 11847 LIBS="$save_LIBS" 11848 ;; 11849 esac 11850 11851 case $lt_cv_dlopen_self in 11852 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11853 *) enable_dlopen_self=unknown ;; 11854 esac 11855 11856 case $lt_cv_dlopen_self_static in 11857 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11858 *) enable_dlopen_self_static=unknown ;; 11859 esac 11860fi 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878striplib= 11879old_striplib= 11880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11881$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11882if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11883 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11884 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11886$as_echo "yes" >&6; } 11887else 11888# FIXME - insert some real tests, host_os isn't really good enough 11889 case $host_os in 11890 darwin*) 11891 if test -n "$STRIP" ; then 11892 striplib="$STRIP -x" 11893 old_striplib="$STRIP -S" 11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11895$as_echo "yes" >&6; } 11896 else 11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11898$as_echo "no" >&6; } 11899 fi 11900 ;; 11901 *) 11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11903$as_echo "no" >&6; } 11904 ;; 11905 esac 11906fi 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 # Report which library types will actually be built 11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11921$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11923$as_echo "$can_build_shared" >&6; } 11924 11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11926$as_echo_n "checking whether to build shared libraries... " >&6; } 11927 test "$can_build_shared" = "no" && enable_shared=no 11928 11929 # On AIX, shared libraries and static libraries use the same namespace, and 11930 # are all built from PIC. 11931 case $host_os in 11932 aix3*) 11933 test "$enable_shared" = yes && enable_static=no 11934 if test -n "$RANLIB"; then 11935 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11936 postinstall_cmds='$RANLIB $lib' 11937 fi 11938 ;; 11939 11940 aix[4-9]*) 11941 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11942 test "$enable_shared" = yes && enable_static=no 11943 fi 11944 ;; 11945 esac 11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11947$as_echo "$enable_shared" >&6; } 11948 11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11950$as_echo_n "checking whether to build static libraries... " >&6; } 11951 # Make sure either enable_shared or enable_static is yes. 11952 test "$enable_shared" = yes || enable_static=yes 11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11954$as_echo "$enable_static" >&6; } 11955 11956 11957 11958 11959fi 11960ac_ext=c 11961ac_cpp='$CPP $CPPFLAGS' 11962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11964ac_compiler_gnu=$ac_cv_c_compiler_gnu 11965 11966CC="$lt_save_CC" 11967 11968 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 11969 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 11970 (test "X$CXX" != "Xg++"))) ; then 11971 ac_ext=cpp 11972ac_cpp='$CXXCPP $CPPFLAGS' 11973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 11977$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 11978if test -z "$CXXCPP"; then 11979 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 11980 $as_echo_n "(cached) " >&6 11981else 11982 # Double quotes because CXXCPP needs to be expanded 11983 for CXXCPP in "$CXX -E" "/lib/cpp" 11984 do 11985 ac_preproc_ok=false 11986for ac_cxx_preproc_warn_flag in '' yes 11987do 11988 # Use a header file that comes with gcc, so configuring glibc 11989 # with a fresh cross-compiler works. 11990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11991 # <limits.h> exists even on freestanding compilers. 11992 # On the NeXT, cc -E runs the code through the compiler's parser, 11993 # not just through cpp. "Syntax error" is here to catch this case. 11994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11995/* end confdefs.h. */ 11996#ifdef __STDC__ 11997# include <limits.h> 11998#else 11999# include <assert.h> 12000#endif 12001 Syntax error 12002_ACEOF 12003if ac_fn_cxx_try_cpp "$LINENO"; then : 12004 12005else 12006 # Broken: fails on valid input. 12007continue 12008fi 12009rm -f conftest.err conftest.$ac_ext 12010 12011 # OK, works on sane cases. Now check whether nonexistent headers 12012 # can be detected and how. 12013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12014/* end confdefs.h. */ 12015#include <ac_nonexistent.h> 12016_ACEOF 12017if ac_fn_cxx_try_cpp "$LINENO"; then : 12018 # Broken: success on invalid input. 12019continue 12020else 12021 # Passes both tests. 12022ac_preproc_ok=: 12023break 12024fi 12025rm -f conftest.err conftest.$ac_ext 12026 12027done 12028# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12029rm -f conftest.err conftest.$ac_ext 12030if $ac_preproc_ok; then : 12031 break 12032fi 12033 12034 done 12035 ac_cv_prog_CXXCPP=$CXXCPP 12036 12037fi 12038 CXXCPP=$ac_cv_prog_CXXCPP 12039else 12040 ac_cv_prog_CXXCPP=$CXXCPP 12041fi 12042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 12043$as_echo "$CXXCPP" >&6; } 12044ac_preproc_ok=false 12045for ac_cxx_preproc_warn_flag in '' yes 12046do 12047 # Use a header file that comes with gcc, so configuring glibc 12048 # with a fresh cross-compiler works. 12049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12050 # <limits.h> exists even on freestanding compilers. 12051 # On the NeXT, cc -E runs the code through the compiler's parser, 12052 # not just through cpp. "Syntax error" is here to catch this case. 12053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12054/* end confdefs.h. */ 12055#ifdef __STDC__ 12056# include <limits.h> 12057#else 12058# include <assert.h> 12059#endif 12060 Syntax error 12061_ACEOF 12062if ac_fn_cxx_try_cpp "$LINENO"; then : 12063 12064else 12065 # Broken: fails on valid input. 12066continue 12067fi 12068rm -f conftest.err conftest.$ac_ext 12069 12070 # OK, works on sane cases. Now check whether nonexistent headers 12071 # can be detected and how. 12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12073/* end confdefs.h. */ 12074#include <ac_nonexistent.h> 12075_ACEOF 12076if ac_fn_cxx_try_cpp "$LINENO"; then : 12077 # Broken: success on invalid input. 12078continue 12079else 12080 # Passes both tests. 12081ac_preproc_ok=: 12082break 12083fi 12084rm -f conftest.err conftest.$ac_ext 12085 12086done 12087# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 12088rm -f conftest.err conftest.$ac_ext 12089if $ac_preproc_ok; then : 12090 12091else 12092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12094as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 12095See \`config.log' for more details" "$LINENO" 5; } 12096fi 12097 12098ac_ext=c 12099ac_cpp='$CPP $CPPFLAGS' 12100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12102ac_compiler_gnu=$ac_cv_c_compiler_gnu 12103 12104else 12105 _lt_caught_CXX_error=yes 12106fi 12107 12108ac_ext=cpp 12109ac_cpp='$CXXCPP $CPPFLAGS' 12110ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12111ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12112ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 12113 12114archive_cmds_need_lc_CXX=no 12115allow_undefined_flag_CXX= 12116always_export_symbols_CXX=no 12117archive_expsym_cmds_CXX= 12118compiler_needs_object_CXX=no 12119export_dynamic_flag_spec_CXX= 12120hardcode_direct_CXX=no 12121hardcode_direct_absolute_CXX=no 12122hardcode_libdir_flag_spec_CXX= 12123hardcode_libdir_flag_spec_ld_CXX= 12124hardcode_libdir_separator_CXX= 12125hardcode_minus_L_CXX=no 12126hardcode_shlibpath_var_CXX=unsupported 12127hardcode_automatic_CXX=no 12128inherit_rpath_CXX=no 12129module_cmds_CXX= 12130module_expsym_cmds_CXX= 12131link_all_deplibs_CXX=unknown 12132old_archive_cmds_CXX=$old_archive_cmds 12133reload_flag_CXX=$reload_flag 12134reload_cmds_CXX=$reload_cmds 12135no_undefined_flag_CXX= 12136whole_archive_flag_spec_CXX= 12137enable_shared_with_static_runtimes_CXX=no 12138 12139# Source file extension for C++ test sources. 12140ac_ext=cpp 12141 12142# Object file extension for compiled C++ test sources. 12143objext=o 12144objext_CXX=$objext 12145 12146# No sense in running all these tests if we already determined that 12147# the CXX compiler isn't working. Some variables (like enable_shared) 12148# are currently assumed to apply to all compilers on this platform, 12149# and will be corrupted by setting them based on a non-working compiler. 12150if test "$_lt_caught_CXX_error" != yes; then 12151 # Code to be used in simple compile tests 12152 lt_simple_compile_test_code="int some_variable = 0;" 12153 12154 # Code to be used in simple link tests 12155 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 12156 12157 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 12158 12159 12160 12161 12162 12163 12164# If no C compiler was specified, use CC. 12165LTCC=${LTCC-"$CC"} 12166 12167# If no C compiler flags were specified, use CFLAGS. 12168LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12169 12170# Allow CC to be a program name with arguments. 12171compiler=$CC 12172 12173 12174 # save warnings/boilerplate of simple test code 12175 ac_outfile=conftest.$ac_objext 12176echo "$lt_simple_compile_test_code" >conftest.$ac_ext 12177eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12178_lt_compiler_boilerplate=`cat conftest.err` 12179$RM conftest* 12180 12181 ac_outfile=conftest.$ac_objext 12182echo "$lt_simple_link_test_code" >conftest.$ac_ext 12183eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 12184_lt_linker_boilerplate=`cat conftest.err` 12185$RM -r conftest* 12186 12187 12188 # Allow CC to be a program name with arguments. 12189 lt_save_CC=$CC 12190 lt_save_LD=$LD 12191 lt_save_GCC=$GCC 12192 GCC=$GXX 12193 lt_save_with_gnu_ld=$with_gnu_ld 12194 lt_save_path_LD=$lt_cv_path_LD 12195 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 12196 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 12197 else 12198 $as_unset lt_cv_prog_gnu_ld 12199 fi 12200 if test -n "${lt_cv_path_LDCXX+set}"; then 12201 lt_cv_path_LD=$lt_cv_path_LDCXX 12202 else 12203 $as_unset lt_cv_path_LD 12204 fi 12205 test -z "${LDCXX+set}" || LD=$LDCXX 12206 CC=${CXX-"c++"} 12207 compiler=$CC 12208 compiler_CXX=$CC 12209 for cc_temp in $compiler""; do 12210 case $cc_temp in 12211 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 12212 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 12213 \-*) ;; 12214 *) break;; 12215 esac 12216done 12217cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 12218 12219 12220 if test -n "$compiler"; then 12221 # We don't want -fno-exception when compiling C++ code, so set the 12222 # no_builtin_flag separately 12223 if test "$GXX" = yes; then 12224 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 12225 else 12226 lt_prog_compiler_no_builtin_flag_CXX= 12227 fi 12228 12229 if test "$GXX" = yes; then 12230 # Set up default GNU C++ configuration 12231 12232 12233 12234# Check whether --with-gnu-ld was given. 12235if test "${with_gnu_ld+set}" = set; then : 12236 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12237else 12238 with_gnu_ld=no 12239fi 12240 12241ac_prog=ld 12242if test "$GCC" = yes; then 12243 # Check if gcc -print-prog-name=ld gives a path. 12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12245$as_echo_n "checking for ld used by $CC... " >&6; } 12246 case $host in 12247 *-*-mingw*) 12248 # gcc leaves a trailing carriage return which upsets mingw 12249 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12250 *) 12251 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12252 esac 12253 case $ac_prog in 12254 # Accept absolute paths. 12255 [\\/]* | ?:[\\/]*) 12256 re_direlt='/[^/][^/]*/\.\./' 12257 # Canonicalize the pathname of ld 12258 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12259 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12260 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12261 done 12262 test -z "$LD" && LD="$ac_prog" 12263 ;; 12264 "") 12265 # If it fails, then pretend we aren't using GCC. 12266 ac_prog=ld 12267 ;; 12268 *) 12269 # If it is relative, then search for the first ld in PATH. 12270 with_gnu_ld=unknown 12271 ;; 12272 esac 12273elif test "$with_gnu_ld" = yes; then 12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12275$as_echo_n "checking for GNU ld... " >&6; } 12276else 12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12278$as_echo_n "checking for non-GNU ld... " >&6; } 12279fi 12280if test "${lt_cv_path_LD+set}" = set; then : 12281 $as_echo_n "(cached) " >&6 12282else 12283 if test -z "$LD"; then 12284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12285 for ac_dir in $PATH; do 12286 IFS="$lt_save_ifs" 12287 test -z "$ac_dir" && ac_dir=. 12288 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12289 lt_cv_path_LD="$ac_dir/$ac_prog" 12290 # Check to see if the program is GNU ld. I'd rather use --version, 12291 # but apparently some variants of GNU ld only accept -v. 12292 # Break only if it was the GNU/non-GNU ld that we prefer. 12293 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12294 *GNU* | *'with BFD'*) 12295 test "$with_gnu_ld" != no && break 12296 ;; 12297 *) 12298 test "$with_gnu_ld" != yes && break 12299 ;; 12300 esac 12301 fi 12302 done 12303 IFS="$lt_save_ifs" 12304else 12305 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12306fi 12307fi 12308 12309LD="$lt_cv_path_LD" 12310if test -n "$LD"; then 12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12312$as_echo "$LD" >&6; } 12313else 12314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12315$as_echo "no" >&6; } 12316fi 12317test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12319$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12320if test "${lt_cv_prog_gnu_ld+set}" = set; then : 12321 $as_echo_n "(cached) " >&6 12322else 12323 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12324case `$LD -v 2>&1 </dev/null` in 12325*GNU* | *'with BFD'*) 12326 lt_cv_prog_gnu_ld=yes 12327 ;; 12328*) 12329 lt_cv_prog_gnu_ld=no 12330 ;; 12331esac 12332fi 12333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12334$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12335with_gnu_ld=$lt_cv_prog_gnu_ld 12336 12337 12338 12339 12340 12341 12342 12343 # Check if GNU C++ uses GNU ld as the underlying linker, since the 12344 # archiving commands below assume that GNU ld is being used. 12345 if test "$with_gnu_ld" = yes; then 12346 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12347 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' 12348 12349 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12350 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12351 12352 # If archive_cmds runs LD, not CC, wlarc should be empty 12353 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 12354 # investigate it a little bit more. (MM) 12355 wlarc='${wl}' 12356 12357 # ancient GNU ld didn't support --whole-archive et. al. 12358 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 12359 $GREP 'no-whole-archive' > /dev/null; then 12360 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 12361 else 12362 whole_archive_flag_spec_CXX= 12363 fi 12364 else 12365 with_gnu_ld=no 12366 wlarc= 12367 12368 # A generic and very simple default shared library creation 12369 # command for GNU C++ for the case where it uses the native 12370 # linker, instead of GNU ld. If possible, this setting should 12371 # overridden to take advantage of the native linker features on 12372 # the platform it is being used on. 12373 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 12374 fi 12375 12376 # Commands to make compiler produce verbose output that lists 12377 # what "hidden" libraries, object files and flags are used when 12378 # linking a shared library. 12379 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 12380 12381 else 12382 GXX=no 12383 with_gnu_ld=no 12384 wlarc= 12385 fi 12386 12387 # PORTME: fill in a description of your system's C++ link characteristics 12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12389$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 12390 ld_shlibs_CXX=yes 12391 case $host_os in 12392 aix3*) 12393 # FIXME: insert proper C++ library support 12394 ld_shlibs_CXX=no 12395 ;; 12396 aix[4-9]*) 12397 if test "$host_cpu" = ia64; then 12398 # On IA64, the linker does run time linking by default, so we don't 12399 # have to do anything special. 12400 aix_use_runtimelinking=no 12401 exp_sym_flag='-Bexport' 12402 no_entry_flag="" 12403 else 12404 aix_use_runtimelinking=no 12405 12406 # Test if we are trying to use run time linking or normal 12407 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 12408 # need to do runtime linking. 12409 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 12410 for ld_flag in $LDFLAGS; do 12411 case $ld_flag in 12412 *-brtl*) 12413 aix_use_runtimelinking=yes 12414 break 12415 ;; 12416 esac 12417 done 12418 ;; 12419 esac 12420 12421 exp_sym_flag='-bexport' 12422 no_entry_flag='-bnoentry' 12423 fi 12424 12425 # When large executables or shared objects are built, AIX ld can 12426 # have problems creating the table of contents. If linking a library 12427 # or program results in "error TOC overflow" add -mminimal-toc to 12428 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 12429 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 12430 12431 archive_cmds_CXX='' 12432 hardcode_direct_CXX=yes 12433 hardcode_direct_absolute_CXX=yes 12434 hardcode_libdir_separator_CXX=':' 12435 link_all_deplibs_CXX=yes 12436 file_list_spec_CXX='${wl}-f,' 12437 12438 if test "$GXX" = yes; then 12439 case $host_os in aix4.[012]|aix4.[012].*) 12440 # We only want to do this on AIX 4.2 and lower, the check 12441 # below for broken collect2 doesn't work under 4.3+ 12442 collect2name=`${CC} -print-prog-name=collect2` 12443 if test -f "$collect2name" && 12444 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 12445 then 12446 # We have reworked collect2 12447 : 12448 else 12449 # We have old collect2 12450 hardcode_direct_CXX=unsupported 12451 # It fails to find uninstalled libraries when the uninstalled 12452 # path is not listed in the libpath. Setting hardcode_minus_L 12453 # to unsupported forces relinking 12454 hardcode_minus_L_CXX=yes 12455 hardcode_libdir_flag_spec_CXX='-L$libdir' 12456 hardcode_libdir_separator_CXX= 12457 fi 12458 esac 12459 shared_flag='-shared' 12460 if test "$aix_use_runtimelinking" = yes; then 12461 shared_flag="$shared_flag "'${wl}-G' 12462 fi 12463 else 12464 # not using gcc 12465 if test "$host_cpu" = ia64; then 12466 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 12467 # chokes on -Wl,-G. The following line is correct: 12468 shared_flag='-G' 12469 else 12470 if test "$aix_use_runtimelinking" = yes; then 12471 shared_flag='${wl}-G' 12472 else 12473 shared_flag='${wl}-bM:SRE' 12474 fi 12475 fi 12476 fi 12477 12478 export_dynamic_flag_spec_CXX='${wl}-bexpall' 12479 # It seems that -bexpall does not export symbols beginning with 12480 # underscore (_), so it is better to generate a list of symbols to 12481 # export. 12482 always_export_symbols_CXX=yes 12483 if test "$aix_use_runtimelinking" = yes; then 12484 # Warning - without using the other runtime loading flags (-brtl), 12485 # -berok will link without error, but may produce a broken library. 12486 allow_undefined_flag_CXX='-berok' 12487 # Determine the default libpath from the value encoded in an empty 12488 # executable. 12489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12490/* end confdefs.h. */ 12491 12492int 12493main () 12494{ 12495 12496 ; 12497 return 0; 12498} 12499_ACEOF 12500if ac_fn_cxx_try_link "$LINENO"; then : 12501 12502lt_aix_libpath_sed=' 12503 /Import File Strings/,/^$/ { 12504 /^0/ { 12505 s/^0 *\(.*\)$/\1/ 12506 p 12507 } 12508 }' 12509aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12510# Check for a 64-bit object if we didn't find anything. 12511if test -z "$aix_libpath"; then 12512 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12513fi 12514fi 12515rm -f core conftest.err conftest.$ac_objext \ 12516 conftest$ac_exeext conftest.$ac_ext 12517if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12518 12519 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12520 12521 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" 12522 else 12523 if test "$host_cpu" = ia64; then 12524 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 12525 allow_undefined_flag_CXX="-z nodefs" 12526 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" 12527 else 12528 # Determine the default libpath from the value encoded in an 12529 # empty executable. 12530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12531/* end confdefs.h. */ 12532 12533int 12534main () 12535{ 12536 12537 ; 12538 return 0; 12539} 12540_ACEOF 12541if ac_fn_cxx_try_link "$LINENO"; then : 12542 12543lt_aix_libpath_sed=' 12544 /Import File Strings/,/^$/ { 12545 /^0/ { 12546 s/^0 *\(.*\)$/\1/ 12547 p 12548 } 12549 }' 12550aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12551# Check for a 64-bit object if we didn't find anything. 12552if test -z "$aix_libpath"; then 12553 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 12554fi 12555fi 12556rm -f core conftest.err conftest.$ac_objext \ 12557 conftest$ac_exeext conftest.$ac_ext 12558if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 12559 12560 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 12561 # Warning - without using the other run time loading flags, 12562 # -berok will link without error, but may produce a broken library. 12563 no_undefined_flag_CXX=' ${wl}-bernotok' 12564 allow_undefined_flag_CXX=' ${wl}-berok' 12565 if test "$with_gnu_ld" = yes; then 12566 # We only use this code for GNU lds that support --whole-archive. 12567 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12568 else 12569 # Exported symbols can be pulled into shared objects from archives 12570 whole_archive_flag_spec_CXX='$convenience' 12571 fi 12572 archive_cmds_need_lc_CXX=yes 12573 # This is similar to how AIX traditionally builds its shared 12574 # libraries. 12575 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' 12576 fi 12577 fi 12578 ;; 12579 12580 beos*) 12581 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 12582 allow_undefined_flag_CXX=unsupported 12583 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 12584 # support --undefined. This deserves some investigation. FIXME 12585 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12586 else 12587 ld_shlibs_CXX=no 12588 fi 12589 ;; 12590 12591 chorus*) 12592 case $cc_basename in 12593 *) 12594 # FIXME: insert proper C++ library support 12595 ld_shlibs_CXX=no 12596 ;; 12597 esac 12598 ;; 12599 12600 cygwin* | mingw* | pw32* | cegcc*) 12601 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 12602 # as there is no search path for DLLs. 12603 hardcode_libdir_flag_spec_CXX='-L$libdir' 12604 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 12605 allow_undefined_flag_CXX=unsupported 12606 always_export_symbols_CXX=no 12607 enable_shared_with_static_runtimes_CXX=yes 12608 12609 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 12610 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' 12611 # If the export-symbols file already is a .def file (1st line 12612 # is EXPORTS), use it as is; otherwise, prepend... 12613 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 12614 cp $export_symbols $output_objdir/$soname.def; 12615 else 12616 echo EXPORTS > $output_objdir/$soname.def; 12617 cat $export_symbols >> $output_objdir/$soname.def; 12618 fi~ 12619 $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' 12620 else 12621 ld_shlibs_CXX=no 12622 fi 12623 ;; 12624 darwin* | rhapsody*) 12625 12626 12627 archive_cmds_need_lc_CXX=no 12628 hardcode_direct_CXX=no 12629 hardcode_automatic_CXX=yes 12630 hardcode_shlibpath_var_CXX=unsupported 12631 if test "$lt_cv_ld_force_load" = "yes"; then 12632 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\"`' 12633 else 12634 whole_archive_flag_spec_CXX='' 12635 fi 12636 link_all_deplibs_CXX=yes 12637 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 12638 case $cc_basename in 12639 ifort*) _lt_dar_can_shared=yes ;; 12640 *) _lt_dar_can_shared=$GCC ;; 12641 esac 12642 if test "$_lt_dar_can_shared" = "yes"; then 12643 output_verbose_link_cmd=func_echo_all 12644 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}" 12645 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 12646 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}" 12647 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}" 12648 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 12649 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}" 12650 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}" 12651 fi 12652 12653 else 12654 ld_shlibs_CXX=no 12655 fi 12656 12657 ;; 12658 12659 dgux*) 12660 case $cc_basename in 12661 ec++*) 12662 # FIXME: insert proper C++ library support 12663 ld_shlibs_CXX=no 12664 ;; 12665 ghcx*) 12666 # Green Hills C++ Compiler 12667 # FIXME: insert proper C++ library support 12668 ld_shlibs_CXX=no 12669 ;; 12670 *) 12671 # FIXME: insert proper C++ library support 12672 ld_shlibs_CXX=no 12673 ;; 12674 esac 12675 ;; 12676 12677 freebsd[12]*) 12678 # C++ shared libraries reported to be fairly broken before 12679 # switch to ELF 12680 ld_shlibs_CXX=no 12681 ;; 12682 12683 freebsd-elf*) 12684 archive_cmds_need_lc_CXX=no 12685 ;; 12686 12687 freebsd* | dragonfly*) 12688 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 12689 # conventions 12690 ld_shlibs_CXX=yes 12691 ;; 12692 12693 gnu*) 12694 ;; 12695 12696 haiku*) 12697 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12698 link_all_deplibs_CXX=yes 12699 ;; 12700 12701 hpux9*) 12702 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12703 hardcode_libdir_separator_CXX=: 12704 export_dynamic_flag_spec_CXX='${wl}-E' 12705 hardcode_direct_CXX=yes 12706 hardcode_minus_L_CXX=yes # Not in the search PATH, 12707 # but as the default 12708 # location of the library. 12709 12710 case $cc_basename in 12711 CC*) 12712 # FIXME: insert proper C++ library support 12713 ld_shlibs_CXX=no 12714 ;; 12715 aCC*) 12716 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' 12717 # Commands to make compiler produce verbose output that lists 12718 # what "hidden" libraries, object files and flags are used when 12719 # linking a shared library. 12720 # 12721 # There doesn't appear to be a way to prevent this compiler from 12722 # explicitly linking system object files so we need to strip them 12723 # from the output so that they don't get included in the library 12724 # dependencies. 12725 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"' 12726 ;; 12727 *) 12728 if test "$GXX" = yes; then 12729 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' 12730 else 12731 # FIXME: insert proper C++ library support 12732 ld_shlibs_CXX=no 12733 fi 12734 ;; 12735 esac 12736 ;; 12737 12738 hpux10*|hpux11*) 12739 if test $with_gnu_ld = no; then 12740 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 12741 hardcode_libdir_separator_CXX=: 12742 12743 case $host_cpu in 12744 hppa*64*|ia64*) 12745 ;; 12746 *) 12747 export_dynamic_flag_spec_CXX='${wl}-E' 12748 ;; 12749 esac 12750 fi 12751 case $host_cpu in 12752 hppa*64*|ia64*) 12753 hardcode_direct_CXX=no 12754 hardcode_shlibpath_var_CXX=no 12755 ;; 12756 *) 12757 hardcode_direct_CXX=yes 12758 hardcode_direct_absolute_CXX=yes 12759 hardcode_minus_L_CXX=yes # Not in the search PATH, 12760 # but as the default 12761 # location of the library. 12762 ;; 12763 esac 12764 12765 case $cc_basename in 12766 CC*) 12767 # FIXME: insert proper C++ library support 12768 ld_shlibs_CXX=no 12769 ;; 12770 aCC*) 12771 case $host_cpu in 12772 hppa*64*) 12773 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12774 ;; 12775 ia64*) 12776 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12777 ;; 12778 *) 12779 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12780 ;; 12781 esac 12782 # Commands to make compiler produce verbose output that lists 12783 # what "hidden" libraries, object files and flags are used when 12784 # linking a shared library. 12785 # 12786 # There doesn't appear to be a way to prevent this compiler from 12787 # explicitly linking system object files so we need to strip them 12788 # from the output so that they don't get included in the library 12789 # dependencies. 12790 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"' 12791 ;; 12792 *) 12793 if test "$GXX" = yes; then 12794 if test $with_gnu_ld = no; then 12795 case $host_cpu in 12796 hppa*64*) 12797 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12798 ;; 12799 ia64*) 12800 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12801 ;; 12802 *) 12803 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' 12804 ;; 12805 esac 12806 fi 12807 else 12808 # FIXME: insert proper C++ library support 12809 ld_shlibs_CXX=no 12810 fi 12811 ;; 12812 esac 12813 ;; 12814 12815 interix[3-9]*) 12816 hardcode_direct_CXX=no 12817 hardcode_shlibpath_var_CXX=no 12818 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12819 export_dynamic_flag_spec_CXX='${wl}-E' 12820 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 12821 # Instead, shared libraries are loaded at an image base (0x10000000 by 12822 # default) and relocated if they conflict, which is a slow very memory 12823 # consuming and fragmenting process. To avoid this, we pick a random, 12824 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 12825 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 12826 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' 12827 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' 12828 ;; 12829 irix5* | irix6*) 12830 case $cc_basename in 12831 CC*) 12832 # SGI C++ 12833 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' 12834 12835 # Archives containing C++ object files must be created using 12836 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 12837 # necessary to make sure instantiated templates are included 12838 # in the archive. 12839 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 12840 ;; 12841 *) 12842 if test "$GXX" = yes; then 12843 if test "$with_gnu_ld" = no; then 12844 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' 12845 else 12846 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' 12847 fi 12848 fi 12849 link_all_deplibs_CXX=yes 12850 ;; 12851 esac 12852 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12853 hardcode_libdir_separator_CXX=: 12854 inherit_rpath_CXX=yes 12855 ;; 12856 12857 linux* | k*bsd*-gnu | kopensolaris*-gnu) 12858 case $cc_basename in 12859 KCC*) 12860 # Kuck and Associates, Inc. (KAI) C++ Compiler 12861 12862 # KCC will only create a shared library if the output file 12863 # ends with ".so" (or ".sl" for HP-UX), so rename the library 12864 # to its proper name (with version) after linking. 12865 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' 12866 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' 12867 # Commands to make compiler produce verbose output that lists 12868 # what "hidden" libraries, object files and flags are used when 12869 # linking a shared library. 12870 # 12871 # There doesn't appear to be a way to prevent this compiler from 12872 # explicitly linking system object files so we need to strip them 12873 # from the output so that they don't get included in the library 12874 # dependencies. 12875 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"' 12876 12877 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12878 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12879 12880 # Archives containing C++ object files must be created using 12881 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 12882 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 12883 ;; 12884 icpc* | ecpc* ) 12885 # Intel C++ 12886 with_gnu_ld=yes 12887 # version 8.0 and above of icpc choke on multiply defined symbols 12888 # if we add $predep_objects and $postdep_objects, however 7.1 and 12889 # earlier do not add the objects themselves. 12890 case `$CC -V 2>&1` in 12891 *"Version 7."*) 12892 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12893 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' 12894 ;; 12895 *) # Version 8.0 or newer 12896 tmp_idyn= 12897 case $host_cpu in 12898 ia64*) tmp_idyn=' -i_dynamic';; 12899 esac 12900 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12901 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' 12902 ;; 12903 esac 12904 archive_cmds_need_lc_CXX=no 12905 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 12906 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12907 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 12908 ;; 12909 pgCC* | pgcpp*) 12910 # Portland Group C++ compiler 12911 case `$CC -V` in 12912 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 12913 prelink_cmds_CXX='tpldir=Template.dir~ 12914 rm -rf $tpldir~ 12915 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 12916 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 12917 old_archive_cmds_CXX='tpldir=Template.dir~ 12918 rm -rf $tpldir~ 12919 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 12920 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 12921 $RANLIB $oldlib' 12922 archive_cmds_CXX='tpldir=Template.dir~ 12923 rm -rf $tpldir~ 12924 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12925 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12926 archive_expsym_cmds_CXX='tpldir=Template.dir~ 12927 rm -rf $tpldir~ 12928 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 12929 $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' 12930 ;; 12931 *) # Version 6 and above use weak symbols 12932 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 12933 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' 12934 ;; 12935 esac 12936 12937 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 12938 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12939 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' 12940 ;; 12941 cxx*) 12942 # Compaq C++ 12943 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 12944 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' 12945 12946 runpath_var=LD_RUN_PATH 12947 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 12948 hardcode_libdir_separator_CXX=: 12949 12950 # Commands to make compiler produce verbose output that lists 12951 # what "hidden" libraries, object files and flags are used when 12952 # linking a shared library. 12953 # 12954 # There doesn't appear to be a way to prevent this compiler from 12955 # explicitly linking system object files so we need to strip them 12956 # from the output so that they don't get included in the library 12957 # dependencies. 12958 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' 12959 ;; 12960 xl* | mpixl* | bgxl*) 12961 # IBM XL 8.0 on PPC, with GNU ld 12962 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 12963 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 12964 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 12965 if test "x$supports_anon_versioning" = xyes; then 12966 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 12967 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 12968 echo "local: *; };" >> $output_objdir/$libname.ver~ 12969 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 12970 fi 12971 ;; 12972 *) 12973 case `$CC -V 2>&1 | sed 5q` in 12974 *Sun\ C*) 12975 # Sun C++ 5.9 12976 no_undefined_flag_CXX=' -zdefs' 12977 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 12978 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' 12979 hardcode_libdir_flag_spec_CXX='-R$libdir' 12980 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' 12981 compiler_needs_object_CXX=yes 12982 12983 # Not sure whether something based on 12984 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 12985 # would be better. 12986 output_verbose_link_cmd='func_echo_all' 12987 12988 # Archives containing C++ object files must be created using 12989 # "CC -xar", where "CC" is the Sun C++ compiler. This is 12990 # necessary to make sure instantiated templates are included 12991 # in the archive. 12992 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 12993 ;; 12994 esac 12995 ;; 12996 esac 12997 ;; 12998 12999 lynxos*) 13000 # FIXME: insert proper C++ library support 13001 ld_shlibs_CXX=no 13002 ;; 13003 13004 m88k*) 13005 # FIXME: insert proper C++ library support 13006 ld_shlibs_CXX=no 13007 ;; 13008 13009 mvs*) 13010 case $cc_basename in 13011 cxx*) 13012 # FIXME: insert proper C++ library support 13013 ld_shlibs_CXX=no 13014 ;; 13015 *) 13016 # FIXME: insert proper C++ library support 13017 ld_shlibs_CXX=no 13018 ;; 13019 esac 13020 ;; 13021 13022 netbsd*) 13023 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 13024 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 13025 wlarc= 13026 hardcode_libdir_flag_spec_CXX='-R$libdir' 13027 hardcode_direct_CXX=yes 13028 hardcode_shlibpath_var_CXX=no 13029 fi 13030 # Workaround some broken pre-1.5 toolchains 13031 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 13032 ;; 13033 13034 *nto* | *qnx*) 13035 ld_shlibs_CXX=yes 13036 ;; 13037 13038 openbsd2*) 13039 # C++ shared libraries are fairly broken 13040 ld_shlibs_CXX=no 13041 ;; 13042 13043 openbsd*) 13044 if test -f /usr/libexec/ld.so; then 13045 hardcode_direct_CXX=yes 13046 hardcode_shlibpath_var_CXX=no 13047 hardcode_direct_absolute_CXX=yes 13048 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13049 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13050 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13051 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 13052 export_dynamic_flag_spec_CXX='${wl}-E' 13053 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13054 fi 13055 output_verbose_link_cmd=func_echo_all 13056 else 13057 ld_shlibs_CXX=no 13058 fi 13059 ;; 13060 13061 osf3* | osf4* | osf5*) 13062 case $cc_basename in 13063 KCC*) 13064 # Kuck and Associates, Inc. (KAI) C++ Compiler 13065 13066 # KCC will only create a shared library if the output file 13067 # ends with ".so" (or ".sl" for HP-UX), so rename the library 13068 # to its proper name (with version) after linking. 13069 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' 13070 13071 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 13072 hardcode_libdir_separator_CXX=: 13073 13074 # Archives containing C++ object files must be created using 13075 # the KAI C++ compiler. 13076 case $host in 13077 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 13078 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 13079 esac 13080 ;; 13081 RCC*) 13082 # Rational C++ 2.4.1 13083 # FIXME: insert proper C++ library support 13084 ld_shlibs_CXX=no 13085 ;; 13086 cxx*) 13087 case $host in 13088 osf3*) 13089 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13090 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' 13091 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13092 ;; 13093 *) 13094 allow_undefined_flag_CXX=' -expect_unresolved \*' 13095 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' 13096 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 13097 echo "-hidden">> $lib.exp~ 13098 $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~ 13099 $RM $lib.exp' 13100 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 13101 ;; 13102 esac 13103 13104 hardcode_libdir_separator_CXX=: 13105 13106 # Commands to make compiler produce verbose output that lists 13107 # what "hidden" libraries, object files and flags are used when 13108 # linking a shared library. 13109 # 13110 # There doesn't appear to be a way to prevent this compiler from 13111 # explicitly linking system object files so we need to strip them 13112 # from the output so that they don't get included in the library 13113 # dependencies. 13114 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"' 13115 ;; 13116 *) 13117 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13118 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 13119 case $host in 13120 osf3*) 13121 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' 13122 ;; 13123 *) 13124 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' 13125 ;; 13126 esac 13127 13128 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 13129 hardcode_libdir_separator_CXX=: 13130 13131 # Commands to make compiler produce verbose output that lists 13132 # what "hidden" libraries, object files and flags are used when 13133 # linking a shared library. 13134 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13135 13136 else 13137 # FIXME: insert proper C++ library support 13138 ld_shlibs_CXX=no 13139 fi 13140 ;; 13141 esac 13142 ;; 13143 13144 psos*) 13145 # FIXME: insert proper C++ library support 13146 ld_shlibs_CXX=no 13147 ;; 13148 13149 sunos4*) 13150 case $cc_basename in 13151 CC*) 13152 # Sun C++ 4.x 13153 # FIXME: insert proper C++ library support 13154 ld_shlibs_CXX=no 13155 ;; 13156 lcc*) 13157 # Lucid 13158 # FIXME: insert proper C++ library support 13159 ld_shlibs_CXX=no 13160 ;; 13161 *) 13162 # FIXME: insert proper C++ library support 13163 ld_shlibs_CXX=no 13164 ;; 13165 esac 13166 ;; 13167 13168 solaris*) 13169 case $cc_basename in 13170 CC* | sunCC*) 13171 # Sun C++ 4.2, 5.x and Centerline C++ 13172 archive_cmds_need_lc_CXX=yes 13173 no_undefined_flag_CXX=' -zdefs' 13174 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 13175 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13176 $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' 13177 13178 hardcode_libdir_flag_spec_CXX='-R$libdir' 13179 hardcode_shlibpath_var_CXX=no 13180 case $host_os in 13181 solaris2.[0-5] | solaris2.[0-5].*) ;; 13182 *) 13183 # The compiler driver will combine and reorder linker options, 13184 # but understands `-z linker_flag'. 13185 # Supported since Solaris 2.6 (maybe 2.5.1?) 13186 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 13187 ;; 13188 esac 13189 link_all_deplibs_CXX=yes 13190 13191 output_verbose_link_cmd='func_echo_all' 13192 13193 # Archives containing C++ object files must be created using 13194 # "CC -xar", where "CC" is the Sun C++ compiler. This is 13195 # necessary to make sure instantiated templates are included 13196 # in the archive. 13197 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 13198 ;; 13199 gcx*) 13200 # Green Hills C++ Compiler 13201 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13202 13203 # The C++ compiler must be used to create the archive. 13204 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 13205 ;; 13206 *) 13207 # GNU C++ compiler with Solaris linker 13208 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 13209 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 13210 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 13211 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13212 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13213 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13214 13215 # Commands to make compiler produce verbose output that lists 13216 # what "hidden" libraries, object files and flags are used when 13217 # linking a shared library. 13218 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13219 else 13220 # g++ 2.7 appears to require `-G' NOT `-shared' on this 13221 # platform. 13222 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 13223 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 13224 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 13225 13226 # Commands to make compiler produce verbose output that lists 13227 # what "hidden" libraries, object files and flags are used when 13228 # linking a shared library. 13229 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13230 fi 13231 13232 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 13233 case $host_os in 13234 solaris2.[0-5] | solaris2.[0-5].*) ;; 13235 *) 13236 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 13237 ;; 13238 esac 13239 fi 13240 ;; 13241 esac 13242 ;; 13243 13244 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 13245 no_undefined_flag_CXX='${wl}-z,text' 13246 archive_cmds_need_lc_CXX=no 13247 hardcode_shlibpath_var_CXX=no 13248 runpath_var='LD_RUN_PATH' 13249 13250 case $cc_basename in 13251 CC*) 13252 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13253 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13254 ;; 13255 *) 13256 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13257 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13258 ;; 13259 esac 13260 ;; 13261 13262 sysv5* | sco3.2v5* | sco5v6*) 13263 # Note: We can NOT use -z defs as we might desire, because we do not 13264 # link with -lc, and that would cause any symbols used from libc to 13265 # always be unresolved, which means just about no library would 13266 # ever link correctly. If we're not using GNU ld we use -z text 13267 # though, which does catch some bad symbols but isn't as heavy-handed 13268 # as -z defs. 13269 no_undefined_flag_CXX='${wl}-z,text' 13270 allow_undefined_flag_CXX='${wl}-z,nodefs' 13271 archive_cmds_need_lc_CXX=no 13272 hardcode_shlibpath_var_CXX=no 13273 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 13274 hardcode_libdir_separator_CXX=':' 13275 link_all_deplibs_CXX=yes 13276 export_dynamic_flag_spec_CXX='${wl}-Bexport' 13277 runpath_var='LD_RUN_PATH' 13278 13279 case $cc_basename in 13280 CC*) 13281 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13282 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13283 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 13284 '"$old_archive_cmds_CXX" 13285 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 13286 '"$reload_cmds_CXX" 13287 ;; 13288 *) 13289 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13290 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 13291 ;; 13292 esac 13293 ;; 13294 13295 tandem*) 13296 case $cc_basename in 13297 NCC*) 13298 # NonStop-UX NCC 3.20 13299 # FIXME: insert proper C++ library support 13300 ld_shlibs_CXX=no 13301 ;; 13302 *) 13303 # FIXME: insert proper C++ library support 13304 ld_shlibs_CXX=no 13305 ;; 13306 esac 13307 ;; 13308 13309 vxworks*) 13310 # FIXME: insert proper C++ library support 13311 ld_shlibs_CXX=no 13312 ;; 13313 13314 *) 13315 # FIXME: insert proper C++ library support 13316 ld_shlibs_CXX=no 13317 ;; 13318 esac 13319 13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 13321$as_echo "$ld_shlibs_CXX" >&6; } 13322 test "$ld_shlibs_CXX" = no && can_build_shared=no 13323 13324 GCC_CXX="$GXX" 13325 LD_CXX="$LD" 13326 13327 ## CAVEAT EMPTOR: 13328 ## There is no encapsulation within the following macros, do not change 13329 ## the running order or otherwise move them around unless you know exactly 13330 ## what you are doing... 13331 # Dependencies to place before and after the object being linked: 13332predep_objects_CXX= 13333postdep_objects_CXX= 13334predeps_CXX= 13335postdeps_CXX= 13336compiler_lib_search_path_CXX= 13337 13338cat > conftest.$ac_ext <<_LT_EOF 13339class Foo 13340{ 13341public: 13342 Foo (void) { a = 0; } 13343private: 13344 int a; 13345}; 13346_LT_EOF 13347 13348if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13349 (eval $ac_compile) 2>&5 13350 ac_status=$? 13351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13352 test $ac_status = 0; }; then 13353 # Parse the compiler output and extract the necessary 13354 # objects, libraries and library flags. 13355 13356 # Sentinel used to keep track of whether or not we are before 13357 # the conftest object file. 13358 pre_test_object_deps_done=no 13359 13360 for p in `eval "$output_verbose_link_cmd"`; do 13361 case $p in 13362 13363 -L* | -R* | -l*) 13364 # Some compilers place space between "-{L,R}" and the path. 13365 # Remove the space. 13366 if test $p = "-L" || 13367 test $p = "-R"; then 13368 prev=$p 13369 continue 13370 else 13371 prev= 13372 fi 13373 13374 if test "$pre_test_object_deps_done" = no; then 13375 case $p in 13376 -L* | -R*) 13377 # Internal compiler library paths should come after those 13378 # provided the user. The postdeps already come after the 13379 # user supplied libs so there is no need to process them. 13380 if test -z "$compiler_lib_search_path_CXX"; then 13381 compiler_lib_search_path_CXX="${prev}${p}" 13382 else 13383 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 13384 fi 13385 ;; 13386 # The "-l" case would never come before the object being 13387 # linked, so don't bother handling this case. 13388 esac 13389 else 13390 if test -z "$postdeps_CXX"; then 13391 postdeps_CXX="${prev}${p}" 13392 else 13393 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 13394 fi 13395 fi 13396 ;; 13397 13398 *.$objext) 13399 # This assumes that the test object file only shows up 13400 # once in the compiler output. 13401 if test "$p" = "conftest.$objext"; then 13402 pre_test_object_deps_done=yes 13403 continue 13404 fi 13405 13406 if test "$pre_test_object_deps_done" = no; then 13407 if test -z "$predep_objects_CXX"; then 13408 predep_objects_CXX="$p" 13409 else 13410 predep_objects_CXX="$predep_objects_CXX $p" 13411 fi 13412 else 13413 if test -z "$postdep_objects_CXX"; then 13414 postdep_objects_CXX="$p" 13415 else 13416 postdep_objects_CXX="$postdep_objects_CXX $p" 13417 fi 13418 fi 13419 ;; 13420 13421 *) ;; # Ignore the rest. 13422 13423 esac 13424 done 13425 13426 # Clean up. 13427 rm -f a.out a.exe 13428else 13429 echo "libtool.m4: error: problem compiling CXX test program" 13430fi 13431 13432$RM -f confest.$objext 13433 13434# PORTME: override above test on systems where it is broken 13435case $host_os in 13436interix[3-9]*) 13437 # Interix 3.5 installs completely hosed .la files for C++, so rather than 13438 # hack all around it, let's just trust "g++" to DTRT. 13439 predep_objects_CXX= 13440 postdep_objects_CXX= 13441 postdeps_CXX= 13442 ;; 13443 13444linux*) 13445 case `$CC -V 2>&1 | sed 5q` in 13446 *Sun\ C*) 13447 # Sun C++ 5.9 13448 13449 # The more standards-conforming stlport4 library is 13450 # incompatible with the Cstd library. Avoid specifying 13451 # it if it's in CXXFLAGS. Ignore libCrun as 13452 # -library=stlport4 depends on it. 13453 case " $CXX $CXXFLAGS " in 13454 *" -library=stlport4 "*) 13455 solaris_use_stlport4=yes 13456 ;; 13457 esac 13458 13459 if test "$solaris_use_stlport4" != yes; then 13460 postdeps_CXX='-library=Cstd -library=Crun' 13461 fi 13462 ;; 13463 esac 13464 ;; 13465 13466solaris*) 13467 case $cc_basename in 13468 CC* | sunCC*) 13469 # The more standards-conforming stlport4 library is 13470 # incompatible with the Cstd library. Avoid specifying 13471 # it if it's in CXXFLAGS. Ignore libCrun as 13472 # -library=stlport4 depends on it. 13473 case " $CXX $CXXFLAGS " in 13474 *" -library=stlport4 "*) 13475 solaris_use_stlport4=yes 13476 ;; 13477 esac 13478 13479 # Adding this requires a known-good setup of shared libraries for 13480 # Sun compiler versions before 5.6, else PIC objects from an old 13481 # archive will be linked into the output, leading to subtle bugs. 13482 if test "$solaris_use_stlport4" != yes; then 13483 postdeps_CXX='-library=Cstd -library=Crun' 13484 fi 13485 ;; 13486 esac 13487 ;; 13488esac 13489 13490 13491case " $postdeps_CXX " in 13492*" -lc "*) archive_cmds_need_lc_CXX=no ;; 13493esac 13494 compiler_lib_search_dirs_CXX= 13495if test -n "${compiler_lib_search_path_CXX}"; then 13496 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 13497fi 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 lt_prog_compiler_wl_CXX= 13530lt_prog_compiler_pic_CXX= 13531lt_prog_compiler_static_CXX= 13532 13533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 13534$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 13535 13536 # C++ specific cases for pic, static, wl, etc. 13537 if test "$GXX" = yes; then 13538 lt_prog_compiler_wl_CXX='-Wl,' 13539 lt_prog_compiler_static_CXX='-static' 13540 13541 case $host_os in 13542 aix*) 13543 # All AIX code is PIC. 13544 if test "$host_cpu" = ia64; then 13545 # AIX 5 now supports IA64 processor 13546 lt_prog_compiler_static_CXX='-Bstatic' 13547 fi 13548 ;; 13549 13550 amigaos*) 13551 case $host_cpu in 13552 powerpc) 13553 # see comment about AmigaOS4 .so support 13554 lt_prog_compiler_pic_CXX='-fPIC' 13555 ;; 13556 m68k) 13557 # FIXME: we need at least 68020 code to build shared libraries, but 13558 # adding the `-m68020' flag to GCC prevents building anything better, 13559 # like `-m68040'. 13560 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 13561 ;; 13562 esac 13563 ;; 13564 13565 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13566 # PIC is the default for these OSes. 13567 ;; 13568 mingw* | cygwin* | os2* | pw32* | cegcc*) 13569 # This hack is so that the source file can tell whether it is being 13570 # built for inclusion in a dll (and should export symbols for example). 13571 # Although the cygwin gcc ignores -fPIC, still need this for old-style 13572 # (--disable-auto-import) libraries 13573 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 13574 ;; 13575 darwin* | rhapsody*) 13576 # PIC is the default on this platform 13577 # Common symbols not allowed in MH_DYLIB files 13578 lt_prog_compiler_pic_CXX='-fno-common' 13579 ;; 13580 *djgpp*) 13581 # DJGPP does not support shared libraries at all 13582 lt_prog_compiler_pic_CXX= 13583 ;; 13584 haiku*) 13585 # PIC is the default for Haiku. 13586 # The "-static" flag exists, but is broken. 13587 lt_prog_compiler_static_CXX= 13588 ;; 13589 interix[3-9]*) 13590 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 13591 # Instead, we relocate shared libraries at runtime. 13592 ;; 13593 sysv4*MP*) 13594 if test -d /usr/nec; then 13595 lt_prog_compiler_pic_CXX=-Kconform_pic 13596 fi 13597 ;; 13598 hpux*) 13599 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 13600 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 13601 # sets the default TLS model and affects inlining. 13602 case $host_cpu in 13603 hppa*64*) 13604 ;; 13605 *) 13606 lt_prog_compiler_pic_CXX='-fPIC' 13607 ;; 13608 esac 13609 ;; 13610 *qnx* | *nto*) 13611 # QNX uses GNU C++, but need to define -shared option too, otherwise 13612 # it will coredump. 13613 lt_prog_compiler_pic_CXX='-fPIC -shared' 13614 ;; 13615 *) 13616 lt_prog_compiler_pic_CXX='-fPIC' 13617 ;; 13618 esac 13619 else 13620 case $host_os in 13621 aix[4-9]*) 13622 # All AIX code is PIC. 13623 if test "$host_cpu" = ia64; then 13624 # AIX 5 now supports IA64 processor 13625 lt_prog_compiler_static_CXX='-Bstatic' 13626 else 13627 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 13628 fi 13629 ;; 13630 chorus*) 13631 case $cc_basename in 13632 cxch68*) 13633 # Green Hills C++ Compiler 13634 # _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" 13635 ;; 13636 esac 13637 ;; 13638 dgux*) 13639 case $cc_basename in 13640 ec++*) 13641 lt_prog_compiler_pic_CXX='-KPIC' 13642 ;; 13643 ghcx*) 13644 # Green Hills C++ Compiler 13645 lt_prog_compiler_pic_CXX='-pic' 13646 ;; 13647 *) 13648 ;; 13649 esac 13650 ;; 13651 freebsd* | dragonfly*) 13652 # FreeBSD uses GNU C++ 13653 ;; 13654 hpux9* | hpux10* | hpux11*) 13655 case $cc_basename in 13656 CC*) 13657 lt_prog_compiler_wl_CXX='-Wl,' 13658 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13659 if test "$host_cpu" != ia64; then 13660 lt_prog_compiler_pic_CXX='+Z' 13661 fi 13662 ;; 13663 aCC*) 13664 lt_prog_compiler_wl_CXX='-Wl,' 13665 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 13666 case $host_cpu in 13667 hppa*64*|ia64*) 13668 # +Z the default 13669 ;; 13670 *) 13671 lt_prog_compiler_pic_CXX='+Z' 13672 ;; 13673 esac 13674 ;; 13675 *) 13676 ;; 13677 esac 13678 ;; 13679 interix*) 13680 # This is c89, which is MS Visual C++ (no shared libs) 13681 # Anyone wants to do a port? 13682 ;; 13683 irix5* | irix6* | nonstopux*) 13684 case $cc_basename in 13685 CC*) 13686 lt_prog_compiler_wl_CXX='-Wl,' 13687 lt_prog_compiler_static_CXX='-non_shared' 13688 # CC pic flag -KPIC is the default. 13689 ;; 13690 *) 13691 ;; 13692 esac 13693 ;; 13694 linux* | k*bsd*-gnu | kopensolaris*-gnu) 13695 case $cc_basename in 13696 KCC*) 13697 # KAI C++ Compiler 13698 lt_prog_compiler_wl_CXX='--backend -Wl,' 13699 lt_prog_compiler_pic_CXX='-fPIC' 13700 ;; 13701 ecpc* ) 13702 # old Intel C++ for x86_64 which still supported -KPIC. 13703 lt_prog_compiler_wl_CXX='-Wl,' 13704 lt_prog_compiler_pic_CXX='-KPIC' 13705 lt_prog_compiler_static_CXX='-static' 13706 ;; 13707 icpc* ) 13708 # Intel C++, used to be incompatible with GCC. 13709 # ICC 10 doesn't accept -KPIC any more. 13710 lt_prog_compiler_wl_CXX='-Wl,' 13711 lt_prog_compiler_pic_CXX='-fPIC' 13712 lt_prog_compiler_static_CXX='-static' 13713 ;; 13714 pgCC* | pgcpp*) 13715 # Portland Group C++ compiler 13716 lt_prog_compiler_wl_CXX='-Wl,' 13717 lt_prog_compiler_pic_CXX='-fpic' 13718 lt_prog_compiler_static_CXX='-Bstatic' 13719 ;; 13720 cxx*) 13721 # Compaq C++ 13722 # Make sure the PIC flag is empty. It appears that all Alpha 13723 # Linux and Compaq Tru64 Unix objects are PIC. 13724 lt_prog_compiler_pic_CXX= 13725 lt_prog_compiler_static_CXX='-non_shared' 13726 ;; 13727 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 13728 # IBM XL 8.0, 9.0 on PPC and BlueGene 13729 lt_prog_compiler_wl_CXX='-Wl,' 13730 lt_prog_compiler_pic_CXX='-qpic' 13731 lt_prog_compiler_static_CXX='-qstaticlink' 13732 ;; 13733 *) 13734 case `$CC -V 2>&1 | sed 5q` in 13735 *Sun\ C*) 13736 # Sun C++ 5.9 13737 lt_prog_compiler_pic_CXX='-KPIC' 13738 lt_prog_compiler_static_CXX='-Bstatic' 13739 lt_prog_compiler_wl_CXX='-Qoption ld ' 13740 ;; 13741 esac 13742 ;; 13743 esac 13744 ;; 13745 lynxos*) 13746 ;; 13747 m88k*) 13748 ;; 13749 mvs*) 13750 case $cc_basename in 13751 cxx*) 13752 lt_prog_compiler_pic_CXX='-W c,exportall' 13753 ;; 13754 *) 13755 ;; 13756 esac 13757 ;; 13758 netbsd*) 13759 ;; 13760 *qnx* | *nto*) 13761 # QNX uses GNU C++, but need to define -shared option too, otherwise 13762 # it will coredump. 13763 lt_prog_compiler_pic_CXX='-fPIC -shared' 13764 ;; 13765 osf3* | osf4* | osf5*) 13766 case $cc_basename in 13767 KCC*) 13768 lt_prog_compiler_wl_CXX='--backend -Wl,' 13769 ;; 13770 RCC*) 13771 # Rational C++ 2.4.1 13772 lt_prog_compiler_pic_CXX='-pic' 13773 ;; 13774 cxx*) 13775 # Digital/Compaq C++ 13776 lt_prog_compiler_wl_CXX='-Wl,' 13777 # Make sure the PIC flag is empty. It appears that all Alpha 13778 # Linux and Compaq Tru64 Unix objects are PIC. 13779 lt_prog_compiler_pic_CXX= 13780 lt_prog_compiler_static_CXX='-non_shared' 13781 ;; 13782 *) 13783 ;; 13784 esac 13785 ;; 13786 psos*) 13787 ;; 13788 solaris*) 13789 case $cc_basename in 13790 CC* | sunCC*) 13791 # Sun C++ 4.2, 5.x and Centerline C++ 13792 lt_prog_compiler_pic_CXX='-KPIC' 13793 lt_prog_compiler_static_CXX='-Bstatic' 13794 lt_prog_compiler_wl_CXX='-Qoption ld ' 13795 ;; 13796 gcx*) 13797 # Green Hills C++ Compiler 13798 lt_prog_compiler_pic_CXX='-PIC' 13799 ;; 13800 *) 13801 ;; 13802 esac 13803 ;; 13804 sunos4*) 13805 case $cc_basename in 13806 CC*) 13807 # Sun C++ 4.x 13808 lt_prog_compiler_pic_CXX='-pic' 13809 lt_prog_compiler_static_CXX='-Bstatic' 13810 ;; 13811 lcc*) 13812 # Lucid 13813 lt_prog_compiler_pic_CXX='-pic' 13814 ;; 13815 *) 13816 ;; 13817 esac 13818 ;; 13819 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 13820 case $cc_basename in 13821 CC*) 13822 lt_prog_compiler_wl_CXX='-Wl,' 13823 lt_prog_compiler_pic_CXX='-KPIC' 13824 lt_prog_compiler_static_CXX='-Bstatic' 13825 ;; 13826 esac 13827 ;; 13828 tandem*) 13829 case $cc_basename in 13830 NCC*) 13831 # NonStop-UX NCC 3.20 13832 lt_prog_compiler_pic_CXX='-KPIC' 13833 ;; 13834 *) 13835 ;; 13836 esac 13837 ;; 13838 vxworks*) 13839 ;; 13840 *) 13841 lt_prog_compiler_can_build_shared_CXX=no 13842 ;; 13843 esac 13844 fi 13845 13846case $host_os in 13847 # For platforms which do not support PIC, -DPIC is meaningless: 13848 *djgpp*) 13849 lt_prog_compiler_pic_CXX= 13850 ;; 13851 *) 13852 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 13853 ;; 13854esac 13855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 13856$as_echo "$lt_prog_compiler_pic_CXX" >&6; } 13857 13858 13859 13860# 13861# Check to make sure the PIC flag actually works. 13862# 13863if test -n "$lt_prog_compiler_pic_CXX"; then 13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 13865$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 13866if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : 13867 $as_echo_n "(cached) " >&6 13868else 13869 lt_cv_prog_compiler_pic_works_CXX=no 13870 ac_outfile=conftest.$ac_objext 13871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13872 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 13873 # Insert the option either (1) after the last *FLAGS variable, or 13874 # (2) before a word containing "conftest.", or (3) at the end. 13875 # Note that $ac_compile itself does not contain backslashes and begins 13876 # with a dollar sign (not a hyphen), so the echo should work correctly. 13877 # The option is referenced via a variable to avoid confusing sed. 13878 lt_compile=`echo "$ac_compile" | $SED \ 13879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13881 -e 's:$: $lt_compiler_flag:'` 13882 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13883 (eval "$lt_compile" 2>conftest.err) 13884 ac_status=$? 13885 cat conftest.err >&5 13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13887 if (exit $ac_status) && test -s "$ac_outfile"; then 13888 # The compiler can only warn and ignore the option if not recognized 13889 # So say no if there are warnings other than the usual output. 13890 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 13891 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13892 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 13893 lt_cv_prog_compiler_pic_works_CXX=yes 13894 fi 13895 fi 13896 $RM conftest* 13897 13898fi 13899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 13900$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 13901 13902if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 13903 case $lt_prog_compiler_pic_CXX in 13904 "" | " "*) ;; 13905 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 13906 esac 13907else 13908 lt_prog_compiler_pic_CXX= 13909 lt_prog_compiler_can_build_shared_CXX=no 13910fi 13911 13912fi 13913 13914 13915 13916# 13917# Check to make sure the static flag actually works. 13918# 13919wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 13920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 13921$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 13922if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : 13923 $as_echo_n "(cached) " >&6 13924else 13925 lt_cv_prog_compiler_static_works_CXX=no 13926 save_LDFLAGS="$LDFLAGS" 13927 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 13928 echo "$lt_simple_link_test_code" > conftest.$ac_ext 13929 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 13930 # The linker can only warn and ignore the option if not recognized 13931 # So say no if there are warnings 13932 if test -s conftest.err; then 13933 # Append any errors to the config.log. 13934 cat conftest.err 1>&5 13935 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 13936 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 13937 if diff conftest.exp conftest.er2 >/dev/null; then 13938 lt_cv_prog_compiler_static_works_CXX=yes 13939 fi 13940 else 13941 lt_cv_prog_compiler_static_works_CXX=yes 13942 fi 13943 fi 13944 $RM -r conftest* 13945 LDFLAGS="$save_LDFLAGS" 13946 13947fi 13948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 13949$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 13950 13951if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 13952 : 13953else 13954 lt_prog_compiler_static_CXX= 13955fi 13956 13957 13958 13959 13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 13961$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 13962if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 13963 $as_echo_n "(cached) " >&6 13964else 13965 lt_cv_prog_compiler_c_o_CXX=no 13966 $RM -r conftest 2>/dev/null 13967 mkdir conftest 13968 cd conftest 13969 mkdir out 13970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 13971 13972 lt_compiler_flag="-o out/conftest2.$ac_objext" 13973 # Insert the option either (1) after the last *FLAGS variable, or 13974 # (2) before a word containing "conftest.", or (3) at the end. 13975 # Note that $ac_compile itself does not contain backslashes and begins 13976 # with a dollar sign (not a hyphen), so the echo should work correctly. 13977 lt_compile=`echo "$ac_compile" | $SED \ 13978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13980 -e 's:$: $lt_compiler_flag:'` 13981 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 13982 (eval "$lt_compile" 2>out/conftest.err) 13983 ac_status=$? 13984 cat out/conftest.err >&5 13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13986 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13987 then 13988 # The compiler can only warn and ignore the option if not recognized 13989 # So say no if there are warnings 13990 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 13991 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 13992 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13993 lt_cv_prog_compiler_c_o_CXX=yes 13994 fi 13995 fi 13996 chmod u+w . 2>&5 13997 $RM conftest* 13998 # SGI C++ compiler will create directory out/ii_files/ for 13999 # template instantiation 14000 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14001 $RM out/* && rmdir out 14002 cd .. 14003 $RM -r conftest 14004 $RM conftest* 14005 14006fi 14007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14008$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14009 14010 14011 14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14013$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14014if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 14015 $as_echo_n "(cached) " >&6 14016else 14017 lt_cv_prog_compiler_c_o_CXX=no 14018 $RM -r conftest 2>/dev/null 14019 mkdir conftest 14020 cd conftest 14021 mkdir out 14022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14023 14024 lt_compiler_flag="-o out/conftest2.$ac_objext" 14025 # Insert the option either (1) after the last *FLAGS variable, or 14026 # (2) before a word containing "conftest.", or (3) at the end. 14027 # Note that $ac_compile itself does not contain backslashes and begins 14028 # with a dollar sign (not a hyphen), so the echo should work correctly. 14029 lt_compile=`echo "$ac_compile" | $SED \ 14030 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14031 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14032 -e 's:$: $lt_compiler_flag:'` 14033 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14034 (eval "$lt_compile" 2>out/conftest.err) 14035 ac_status=$? 14036 cat out/conftest.err >&5 14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14038 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14039 then 14040 # The compiler can only warn and ignore the option if not recognized 14041 # So say no if there are warnings 14042 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14043 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14044 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14045 lt_cv_prog_compiler_c_o_CXX=yes 14046 fi 14047 fi 14048 chmod u+w . 2>&5 14049 $RM conftest* 14050 # SGI C++ compiler will create directory out/ii_files/ for 14051 # template instantiation 14052 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14053 $RM out/* && rmdir out 14054 cd .. 14055 $RM -r conftest 14056 $RM conftest* 14057 14058fi 14059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 14060$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 14061 14062 14063 14064 14065hard_links="nottested" 14066if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 14067 # do not overwrite the value of need_locks provided by the user 14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14069$as_echo_n "checking if we can lock with hard links... " >&6; } 14070 hard_links=yes 14071 $RM conftest* 14072 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14073 touch conftest.a 14074 ln conftest.a conftest.b 2>&5 || hard_links=no 14075 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14077$as_echo "$hard_links" >&6; } 14078 if test "$hard_links" = no; then 14079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14080$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14081 need_locks=warn 14082 fi 14083else 14084 need_locks=no 14085fi 14086 14087 14088 14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14090$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14091 14092 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14093 case $host_os in 14094 aix[4-9]*) 14095 # If we're using GNU nm, then we don't want the "-C" option. 14096 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14097 # Also, AIX nm treats weak defined symbols like other global defined 14098 # symbols, whereas GNU nm marks them as "W". 14099 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 14100 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' 14101 else 14102 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' 14103 fi 14104 ;; 14105 pw32*) 14106 export_symbols_cmds_CXX="$ltdll_cmds" 14107 ;; 14108 cygwin* | mingw* | cegcc*) 14109 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' 14110 ;; 14111 *) 14112 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14113 ;; 14114 esac 14115 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14116 14117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 14118$as_echo "$ld_shlibs_CXX" >&6; } 14119test "$ld_shlibs_CXX" = no && can_build_shared=no 14120 14121with_gnu_ld_CXX=$with_gnu_ld 14122 14123 14124 14125 14126 14127 14128# 14129# Do we need to explicitly link libc? 14130# 14131case "x$archive_cmds_need_lc_CXX" in 14132x|xyes) 14133 # Assume -lc should be added 14134 archive_cmds_need_lc_CXX=yes 14135 14136 if test "$enable_shared" = yes && test "$GCC" = yes; then 14137 case $archive_cmds_CXX in 14138 *'~'*) 14139 # FIXME: we may have to deal with multi-command sequences. 14140 ;; 14141 '$CC '*) 14142 # Test whether the compiler implicitly links with -lc since on some 14143 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14144 # to ld, don't add -lc before -lgcc. 14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 14146$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 14147if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then : 14148 $as_echo_n "(cached) " >&6 14149else 14150 $RM conftest* 14151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14152 14153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 14154 (eval $ac_compile) 2>&5 14155 ac_status=$? 14156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14157 test $ac_status = 0; } 2>conftest.err; then 14158 soname=conftest 14159 lib=conftest 14160 libobjs=conftest.$ac_objext 14161 deplibs= 14162 wl=$lt_prog_compiler_wl_CXX 14163 pic_flag=$lt_prog_compiler_pic_CXX 14164 compiler_flags=-v 14165 linker_flags=-v 14166 verstring= 14167 output_objdir=. 14168 libname=conftest 14169 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 14170 allow_undefined_flag_CXX= 14171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 14172 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 14173 ac_status=$? 14174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14175 test $ac_status = 0; } 14176 then 14177 lt_cv_archive_cmds_need_lc_CXX=no 14178 else 14179 lt_cv_archive_cmds_need_lc_CXX=yes 14180 fi 14181 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 14182 else 14183 cat conftest.err 1>&5 14184 fi 14185 $RM conftest* 14186 14187fi 14188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 14189$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 14190 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 14191 ;; 14192 esac 14193 fi 14194 ;; 14195esac 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 14261$as_echo_n "checking dynamic linker characteristics... " >&6; } 14262 14263library_names_spec= 14264libname_spec='lib$name' 14265soname_spec= 14266shrext_cmds=".so" 14267postinstall_cmds= 14268postuninstall_cmds= 14269finish_cmds= 14270finish_eval= 14271shlibpath_var= 14272shlibpath_overrides_runpath=unknown 14273version_type=none 14274dynamic_linker="$host_os ld.so" 14275sys_lib_dlsearch_path_spec="/lib /usr/lib" 14276need_lib_prefix=unknown 14277hardcode_into_libs=no 14278 14279# when you set need_version to no, make sure it does not cause -set_version 14280# flags to be left without arguments 14281need_version=unknown 14282 14283case $host_os in 14284aix3*) 14285 version_type=linux 14286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14287 shlibpath_var=LIBPATH 14288 14289 # AIX 3 has no versioning support, so we append a major version to the name. 14290 soname_spec='${libname}${release}${shared_ext}$major' 14291 ;; 14292 14293aix[4-9]*) 14294 version_type=linux 14295 need_lib_prefix=no 14296 need_version=no 14297 hardcode_into_libs=yes 14298 if test "$host_cpu" = ia64; then 14299 # AIX 5 supports IA64 14300 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 14301 shlibpath_var=LD_LIBRARY_PATH 14302 else 14303 # With GCC up to 2.95.x, collect2 would create an import file 14304 # for dependence libraries. The import file would start with 14305 # the line `#! .'. This would cause the generated library to 14306 # depend on `.', always an invalid library. This was fixed in 14307 # development snapshots of GCC prior to 3.0. 14308 case $host_os in 14309 aix4 | aix4.[01] | aix4.[01].*) 14310 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14311 echo ' yes ' 14312 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 14313 : 14314 else 14315 can_build_shared=no 14316 fi 14317 ;; 14318 esac 14319 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14320 # soname into executable. Probably we can add versioning support to 14321 # collect2, so additional links can be useful in future. 14322 if test "$aix_use_runtimelinking" = yes; then 14323 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14324 # instead of lib<name>.a to let people know that these are not 14325 # typical AIX shared libraries. 14326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14327 else 14328 # We preserve .a as extension for shared libraries through AIX4.2 14329 # and later when we are not doing run time linking. 14330 library_names_spec='${libname}${release}.a $libname.a' 14331 soname_spec='${libname}${release}${shared_ext}$major' 14332 fi 14333 shlibpath_var=LIBPATH 14334 fi 14335 ;; 14336 14337amigaos*) 14338 case $host_cpu in 14339 powerpc) 14340 # Since July 2007 AmigaOS4 officially supports .so libraries. 14341 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 14342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14343 ;; 14344 m68k) 14345 library_names_spec='$libname.ixlibrary $libname.a' 14346 # Create ${libname}_ixlibrary.a entries in /sys/libs. 14347 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' 14348 ;; 14349 esac 14350 ;; 14351 14352beos*) 14353 library_names_spec='${libname}${shared_ext}' 14354 dynamic_linker="$host_os ld.so" 14355 shlibpath_var=LIBRARY_PATH 14356 ;; 14357 14358bsdi[45]*) 14359 version_type=linux 14360 need_version=no 14361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14362 soname_spec='${libname}${release}${shared_ext}$major' 14363 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14364 shlibpath_var=LD_LIBRARY_PATH 14365 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14366 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14367 # the default ld.so.conf also contains /usr/contrib/lib and 14368 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14369 # libtool to hard-code these into programs 14370 ;; 14371 14372cygwin* | mingw* | pw32* | cegcc*) 14373 version_type=windows 14374 shrext_cmds=".dll" 14375 need_version=no 14376 need_lib_prefix=no 14377 14378 case $GCC,$host_os in 14379 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 14380 library_names_spec='$libname.dll.a' 14381 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14382 postinstall_cmds='base_file=`basename \${file}`~ 14383 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 14384 dldir=$destdir/`dirname \$dlpath`~ 14385 test -d \$dldir || mkdir -p \$dldir~ 14386 $install_prog $dir/$dlname \$dldir/$dlname~ 14387 chmod a+x \$dldir/$dlname~ 14388 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 14389 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 14390 fi' 14391 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14392 dlpath=$dir/\$dldll~ 14393 $RM \$dlpath' 14394 shlibpath_overrides_runpath=yes 14395 14396 case $host_os in 14397 cygwin*) 14398 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14399 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14400 14401 ;; 14402 mingw* | cegcc*) 14403 # MinGW DLLs use traditional 'lib' prefix 14404 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14405 ;; 14406 pw32*) 14407 # pw32 DLLs use 'pw' prefix rather than 'lib' 14408 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14409 ;; 14410 esac 14411 ;; 14412 14413 *) 14414 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14415 ;; 14416 esac 14417 dynamic_linker='Win32 ld.exe' 14418 # FIXME: first we should search . and the directory the executable is in 14419 shlibpath_var=PATH 14420 ;; 14421 14422darwin* | rhapsody*) 14423 dynamic_linker="$host_os dyld" 14424 version_type=darwin 14425 need_lib_prefix=no 14426 need_version=no 14427 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14428 soname_spec='${libname}${release}${major}$shared_ext' 14429 shlibpath_overrides_runpath=yes 14430 shlibpath_var=DYLD_LIBRARY_PATH 14431 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 14432 14433 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14434 ;; 14435 14436dgux*) 14437 version_type=linux 14438 need_lib_prefix=no 14439 need_version=no 14440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14441 soname_spec='${libname}${release}${shared_ext}$major' 14442 shlibpath_var=LD_LIBRARY_PATH 14443 ;; 14444 14445freebsd1*) 14446 dynamic_linker=no 14447 ;; 14448 14449freebsd* | dragonfly*) 14450 # DragonFly does not have aout. When/if they implement a new 14451 # versioning mechanism, adjust this. 14452 if test -x /usr/bin/objformat; then 14453 objformat=`/usr/bin/objformat` 14454 else 14455 case $host_os in 14456 freebsd[123]*) objformat=aout ;; 14457 *) objformat=elf ;; 14458 esac 14459 fi 14460 version_type=freebsd-$objformat 14461 case $version_type in 14462 freebsd-elf*) 14463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14464 need_version=no 14465 need_lib_prefix=no 14466 ;; 14467 freebsd-*) 14468 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14469 need_version=yes 14470 ;; 14471 esac 14472 shlibpath_var=LD_LIBRARY_PATH 14473 case $host_os in 14474 freebsd2*) 14475 shlibpath_overrides_runpath=yes 14476 ;; 14477 freebsd3.[01]* | freebsdelf3.[01]*) 14478 shlibpath_overrides_runpath=yes 14479 hardcode_into_libs=yes 14480 ;; 14481 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 14482 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 14483 shlibpath_overrides_runpath=no 14484 hardcode_into_libs=yes 14485 ;; 14486 *) # from 4.6 on, and DragonFly 14487 shlibpath_overrides_runpath=yes 14488 hardcode_into_libs=yes 14489 ;; 14490 esac 14491 ;; 14492 14493gnu*) 14494 version_type=linux 14495 need_lib_prefix=no 14496 need_version=no 14497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14498 soname_spec='${libname}${release}${shared_ext}$major' 14499 shlibpath_var=LD_LIBRARY_PATH 14500 hardcode_into_libs=yes 14501 ;; 14502 14503haiku*) 14504 version_type=linux 14505 need_lib_prefix=no 14506 need_version=no 14507 dynamic_linker="$host_os runtime_loader" 14508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14509 soname_spec='${libname}${release}${shared_ext}$major' 14510 shlibpath_var=LIBRARY_PATH 14511 shlibpath_overrides_runpath=yes 14512 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 14513 hardcode_into_libs=yes 14514 ;; 14515 14516hpux9* | hpux10* | hpux11*) 14517 # Give a soname corresponding to the major version so that dld.sl refuses to 14518 # link against other versions. 14519 version_type=sunos 14520 need_lib_prefix=no 14521 need_version=no 14522 case $host_cpu in 14523 ia64*) 14524 shrext_cmds='.so' 14525 hardcode_into_libs=yes 14526 dynamic_linker="$host_os dld.so" 14527 shlibpath_var=LD_LIBRARY_PATH 14528 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14530 soname_spec='${libname}${release}${shared_ext}$major' 14531 if test "X$HPUX_IA64_MODE" = X32; then 14532 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14533 else 14534 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14535 fi 14536 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14537 ;; 14538 hppa*64*) 14539 shrext_cmds='.sl' 14540 hardcode_into_libs=yes 14541 dynamic_linker="$host_os dld.sl" 14542 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14543 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14545 soname_spec='${libname}${release}${shared_ext}$major' 14546 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14547 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14548 ;; 14549 *) 14550 shrext_cmds='.sl' 14551 dynamic_linker="$host_os dld.sl" 14552 shlibpath_var=SHLIB_PATH 14553 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14555 soname_spec='${libname}${release}${shared_ext}$major' 14556 ;; 14557 esac 14558 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 14559 postinstall_cmds='chmod 555 $lib' 14560 # or fails outright, so override atomically: 14561 install_override_mode=555 14562 ;; 14563 14564interix[3-9]*) 14565 version_type=linux 14566 need_lib_prefix=no 14567 need_version=no 14568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14569 soname_spec='${libname}${release}${shared_ext}$major' 14570 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 14571 shlibpath_var=LD_LIBRARY_PATH 14572 shlibpath_overrides_runpath=no 14573 hardcode_into_libs=yes 14574 ;; 14575 14576irix5* | irix6* | nonstopux*) 14577 case $host_os in 14578 nonstopux*) version_type=nonstopux ;; 14579 *) 14580 if test "$lt_cv_prog_gnu_ld" = yes; then 14581 version_type=linux 14582 else 14583 version_type=irix 14584 fi ;; 14585 esac 14586 need_lib_prefix=no 14587 need_version=no 14588 soname_spec='${libname}${release}${shared_ext}$major' 14589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14590 case $host_os in 14591 irix5* | nonstopux*) 14592 libsuff= shlibsuff= 14593 ;; 14594 *) 14595 case $LD in # libtool.m4 will add one of these switches to LD 14596 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14597 libsuff= shlibsuff= libmagic=32-bit;; 14598 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14599 libsuff=32 shlibsuff=N32 libmagic=N32;; 14600 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14601 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14602 *) libsuff= shlibsuff= libmagic=never-match;; 14603 esac 14604 ;; 14605 esac 14606 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14607 shlibpath_overrides_runpath=no 14608 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14609 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14610 hardcode_into_libs=yes 14611 ;; 14612 14613# No shared lib support for Linux oldld, aout, or coff. 14614linux*oldld* | linux*aout* | linux*coff*) 14615 dynamic_linker=no 14616 ;; 14617 14618# This must be Linux ELF. 14619linux* | k*bsd*-gnu | kopensolaris*-gnu) 14620 version_type=linux 14621 need_lib_prefix=no 14622 need_version=no 14623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14624 soname_spec='${libname}${release}${shared_ext}$major' 14625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14626 shlibpath_var=LD_LIBRARY_PATH 14627 shlibpath_overrides_runpath=no 14628 14629 # Some binutils ld are patched to set DT_RUNPATH 14630 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 14631 $as_echo_n "(cached) " >&6 14632else 14633 lt_cv_shlibpath_overrides_runpath=no 14634 save_LDFLAGS=$LDFLAGS 14635 save_libdir=$libdir 14636 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 14637 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 14638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14639/* end confdefs.h. */ 14640 14641int 14642main () 14643{ 14644 14645 ; 14646 return 0; 14647} 14648_ACEOF 14649if ac_fn_cxx_try_link "$LINENO"; then : 14650 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 14651 lt_cv_shlibpath_overrides_runpath=yes 14652fi 14653fi 14654rm -f core conftest.err conftest.$ac_objext \ 14655 conftest$ac_exeext conftest.$ac_ext 14656 LDFLAGS=$save_LDFLAGS 14657 libdir=$save_libdir 14658 14659fi 14660 14661 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 14662 14663 # This implies no fast_install, which is unacceptable. 14664 # Some rework will be needed to allow for fast_install 14665 # before this can be enabled. 14666 hardcode_into_libs=yes 14667 14668 # Add ABI-specific directories to the system library path. 14669 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 14670 14671 # Append ld.so.conf contents to the search path 14672 if test -f /etc/ld.so.conf; then 14673 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' ' '` 14674 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 14675 14676 fi 14677 14678 # We used to test for /lib/ld.so.1 and disable shared libraries on 14679 # powerpc, because MkLinux only supported shared libraries with the 14680 # GNU dynamic linker. Since this was broken with cross compilers, 14681 # most powerpc-linux boxes support dynamic linking these days and 14682 # people can always --disable-shared, the test was removed, and we 14683 # assume the GNU/Linux dynamic linker is in use. 14684 dynamic_linker='GNU/Linux ld.so' 14685 ;; 14686 14687netbsd*) 14688 version_type=sunos 14689 need_lib_prefix=no 14690 need_version=no 14691 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14693 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14694 dynamic_linker='NetBSD (a.out) ld.so' 14695 else 14696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14697 soname_spec='${libname}${release}${shared_ext}$major' 14698 dynamic_linker='NetBSD ld.elf_so' 14699 fi 14700 shlibpath_var=LD_LIBRARY_PATH 14701 shlibpath_overrides_runpath=yes 14702 hardcode_into_libs=yes 14703 ;; 14704 14705newsos6) 14706 version_type=linux 14707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14708 shlibpath_var=LD_LIBRARY_PATH 14709 shlibpath_overrides_runpath=yes 14710 ;; 14711 14712*nto* | *qnx*) 14713 version_type=qnx 14714 need_lib_prefix=no 14715 need_version=no 14716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14717 soname_spec='${libname}${release}${shared_ext}$major' 14718 shlibpath_var=LD_LIBRARY_PATH 14719 shlibpath_overrides_runpath=no 14720 hardcode_into_libs=yes 14721 dynamic_linker='ldqnx.so' 14722 ;; 14723 14724openbsd*) 14725 version_type=sunos 14726 sys_lib_dlsearch_path_spec="/usr/lib" 14727 need_lib_prefix=no 14728 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 14729 case $host_os in 14730 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 14731 *) need_version=no ;; 14732 esac 14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14735 shlibpath_var=LD_LIBRARY_PATH 14736 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14737 case $host_os in 14738 openbsd2.[89] | openbsd2.[89].*) 14739 shlibpath_overrides_runpath=no 14740 ;; 14741 *) 14742 shlibpath_overrides_runpath=yes 14743 ;; 14744 esac 14745 else 14746 shlibpath_overrides_runpath=yes 14747 fi 14748 ;; 14749 14750os2*) 14751 libname_spec='$name' 14752 shrext_cmds=".dll" 14753 need_lib_prefix=no 14754 library_names_spec='$libname${shared_ext} $libname.a' 14755 dynamic_linker='OS/2 ld.exe' 14756 shlibpath_var=LIBPATH 14757 ;; 14758 14759osf3* | osf4* | osf5*) 14760 version_type=osf 14761 need_lib_prefix=no 14762 need_version=no 14763 soname_spec='${libname}${release}${shared_ext}$major' 14764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14765 shlibpath_var=LD_LIBRARY_PATH 14766 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14767 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14768 ;; 14769 14770rdos*) 14771 dynamic_linker=no 14772 ;; 14773 14774solaris*) 14775 version_type=linux 14776 need_lib_prefix=no 14777 need_version=no 14778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14779 soname_spec='${libname}${release}${shared_ext}$major' 14780 shlibpath_var=LD_LIBRARY_PATH 14781 shlibpath_overrides_runpath=yes 14782 hardcode_into_libs=yes 14783 # ldd complains unless libraries are executable 14784 postinstall_cmds='chmod +x $lib' 14785 ;; 14786 14787sunos4*) 14788 version_type=sunos 14789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14790 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14791 shlibpath_var=LD_LIBRARY_PATH 14792 shlibpath_overrides_runpath=yes 14793 if test "$with_gnu_ld" = yes; then 14794 need_lib_prefix=no 14795 fi 14796 need_version=yes 14797 ;; 14798 14799sysv4 | sysv4.3*) 14800 version_type=linux 14801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14802 soname_spec='${libname}${release}${shared_ext}$major' 14803 shlibpath_var=LD_LIBRARY_PATH 14804 case $host_vendor in 14805 sni) 14806 shlibpath_overrides_runpath=no 14807 need_lib_prefix=no 14808 runpath_var=LD_RUN_PATH 14809 ;; 14810 siemens) 14811 need_lib_prefix=no 14812 ;; 14813 motorola) 14814 need_lib_prefix=no 14815 need_version=no 14816 shlibpath_overrides_runpath=no 14817 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14818 ;; 14819 esac 14820 ;; 14821 14822sysv4*MP*) 14823 if test -d /usr/nec ;then 14824 version_type=linux 14825 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14826 soname_spec='$libname${shared_ext}.$major' 14827 shlibpath_var=LD_LIBRARY_PATH 14828 fi 14829 ;; 14830 14831sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 14832 version_type=freebsd-elf 14833 need_lib_prefix=no 14834 need_version=no 14835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14836 soname_spec='${libname}${release}${shared_ext}$major' 14837 shlibpath_var=LD_LIBRARY_PATH 14838 shlibpath_overrides_runpath=yes 14839 hardcode_into_libs=yes 14840 if test "$with_gnu_ld" = yes; then 14841 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 14842 else 14843 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 14844 case $host_os in 14845 sco3.2v5*) 14846 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 14847 ;; 14848 esac 14849 fi 14850 sys_lib_dlsearch_path_spec='/usr/lib' 14851 ;; 14852 14853tpf*) 14854 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 14855 version_type=linux 14856 need_lib_prefix=no 14857 need_version=no 14858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14859 shlibpath_var=LD_LIBRARY_PATH 14860 shlibpath_overrides_runpath=no 14861 hardcode_into_libs=yes 14862 ;; 14863 14864uts4*) 14865 version_type=linux 14866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14867 soname_spec='${libname}${release}${shared_ext}$major' 14868 shlibpath_var=LD_LIBRARY_PATH 14869 ;; 14870 14871*) 14872 dynamic_linker=no 14873 ;; 14874esac 14875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 14876$as_echo "$dynamic_linker" >&6; } 14877test "$dynamic_linker" = no && can_build_shared=no 14878 14879variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14880if test "$GCC" = yes; then 14881 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14882fi 14883 14884if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 14885 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 14886fi 14887if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 14888 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 14889fi 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 14929$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 14930hardcode_action_CXX= 14931if test -n "$hardcode_libdir_flag_spec_CXX" || 14932 test -n "$runpath_var_CXX" || 14933 test "X$hardcode_automatic_CXX" = "Xyes" ; then 14934 14935 # We can hardcode non-existent directories. 14936 if test "$hardcode_direct_CXX" != no && 14937 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14938 # have to relink, otherwise we might link with an installed library 14939 # when we should be linking with a yet-to-be-installed one 14940 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 14941 test "$hardcode_minus_L_CXX" != no; then 14942 # Linking always hardcodes the temporary library directory. 14943 hardcode_action_CXX=relink 14944 else 14945 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14946 hardcode_action_CXX=immediate 14947 fi 14948else 14949 # We cannot hardcode anything, or else we can only hardcode existing 14950 # directories. 14951 hardcode_action_CXX=unsupported 14952fi 14953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 14954$as_echo "$hardcode_action_CXX" >&6; } 14955 14956if test "$hardcode_action_CXX" = relink || 14957 test "$inherit_rpath_CXX" = yes; then 14958 # Fast installation is not supported 14959 enable_fast_install=no 14960elif test "$shlibpath_overrides_runpath" = yes || 14961 test "$enable_shared" = no; then 14962 # Fast installation is not necessary 14963 enable_fast_install=needless 14964fi 14965 14966 14967 14968 14969 14970 14971 14972 fi # test -n "$compiler" 14973 14974 CC=$lt_save_CC 14975 LDCXX=$LD 14976 LD=$lt_save_LD 14977 GCC=$lt_save_GCC 14978 with_gnu_ld=$lt_save_with_gnu_ld 14979 lt_cv_path_LDCXX=$lt_cv_path_LD 14980 lt_cv_path_LD=$lt_save_path_LD 14981 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 14982 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 14983fi # test "$_lt_caught_CXX_error" != yes 14984 14985ac_ext=c 14986ac_cpp='$CPP $CPPFLAGS' 14987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14989ac_compiler_gnu=$ac_cv_c_compiler_gnu 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 ac_config_commands="$ac_config_commands libtool" 15004 15005 15006 15007 15008# Only expand once: 15009 15010 15011 15012for ac_prog in perl5 perl 15013do 15014 # Extract the first word of "$ac_prog", so it can be a program name with args. 15015set dummy $ac_prog; ac_word=$2 15016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15017$as_echo_n "checking for $ac_word... " >&6; } 15018if test "${ac_cv_path_PERL+set}" = set; then : 15019 $as_echo_n "(cached) " >&6 15020else 15021 case $PERL in 15022 [\\/]* | ?:[\\/]*) 15023 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 15024 ;; 15025 *) 15026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15027for as_dir in $LPATH 15028do 15029 IFS=$as_save_IFS 15030 test -z "$as_dir" && as_dir=. 15031 for ac_exec_ext in '' $ac_executable_extensions; do 15032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15033 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 15034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15035 break 2 15036 fi 15037done 15038 done 15039IFS=$as_save_IFS 15040 15041 ;; 15042esac 15043fi 15044PERL=$ac_cv_path_PERL 15045if test -n "$PERL"; then 15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 15047$as_echo "$PERL" >&6; } 15048else 15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15050$as_echo "no" >&6; } 15051fi 15052 15053 15054 test -n "$PERL" && break 15055done 15056test -n "$PERL" || PERL="perl" 15057 15058 15059# Check whether --enable-DEBUG was given. 15060if test "${enable_DEBUG+set}" = set; then : 15061 enableval=$enable_DEBUG; STRIP=true 15062fi 15063 15064 15065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fhandle-exceptions flag to g++" >&5 15066$as_echo_n "checking for -fhandle-exceptions flag to g++... " >&6; } 15067if test "${maildrop_cv_handle_exceptions+set}" = set; then : 15068 $as_echo_n "(cached) " >&6 15069else 15070 maildrop_cv_handle_exceptions=no 15071 15072if test "$GXX" = yes ; then 15073 15074ac_ext=cpp 15075ac_cpp='$CXXCPP $CPPFLAGS' 15076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15079 15080 15081cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15082/* end confdefs.h. */ 15083 15084 15085int 15086main () 15087{ 15088 15089throw; 15090 15091 ; 15092 return 0; 15093} 15094_ACEOF 15095if ac_fn_cxx_try_compile "$LINENO"; then : 15096 15097else 15098 maildrop_cv_handle_exceptions=yes 15099 15100fi 15101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15102 15103ac_ext=c 15104ac_cpp='$CPP $CPPFLAGS' 15105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15107ac_compiler_gnu=$ac_cv_c_compiler_gnu 15108 15109fi 15110 15111 15112fi 15113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maildrop_cv_handle_exceptions" >&5 15114$as_echo "$maildrop_cv_handle_exceptions" >&6; } 15115 15116if test "$maildrop_cv_handle_exceptions" = yes ; then 15117 CXXFLAGS="$CXXFLAGS -fhandle-exceptions" 15118 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-O2//'` 15119fi 15120 15121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ability to handle both const and non-const exceptions" >&5 15122$as_echo_n "checking ability to handle both const and non-const exceptions... " >&6; } 15123if test "${maildrop_cv_const_exceptions+set}" = set; then : 15124 $as_echo_n "(cached) " >&6 15125else 15126 ac_ext=cpp 15127ac_cpp='$CXXCPP $CPPFLAGS' 15128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15131 15132 15133cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15134/* end confdefs.h. */ 15135 15136 15137extern void foo(); 15138extern void bar(const char *); 15139 15140 15141int 15142main () 15143{ 15144 15145 15146 try 15147 { 15148 foo(); 15149 } 15150 catch (const char *p) 15151 { 15152 bar(p); 15153 } 15154 catch (char *p) 15155 { 15156 bar(p); 15157 } 15158 catch (...) 15159 { 15160 bar(0); 15161 } 15162 15163 15164 15165 ; 15166 return 0; 15167} 15168_ACEOF 15169if ac_fn_cxx_try_compile "$LINENO"; then : 15170 maildrop_cv_const_exceptions="yes" 15171else 15172 maildrop_cv_const_exceptions="no" 15173fi 15174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15175 15176fi 15177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maildrop_cv_const_exceptions" >&5 15178$as_echo "$maildrop_cv_const_exceptions" >&6; } 15179 15180if test "$maildrop_cv_const_exceptions" = "yes" 15181then 15182 15183cat >>confdefs.h <<_ACEOF 15184#define NEED_NONCONST_EXCEPTIONS 1 15185_ACEOF 15186 15187fi 15188 15189ac_ext=c 15190ac_cpp='$CPP $CPPFLAGS' 15191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15193ac_compiler_gnu=$ac_cv_c_compiler_gnu 15194 15195 15196 15197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5 15198$as_echo_n "checking for getpwnam in -lsun... " >&6; } 15199if test "${ac_cv_lib_sun_getpwnam+set}" = set; then : 15200 $as_echo_n "(cached) " >&6 15201else 15202 ac_check_lib_save_LIBS=$LIBS 15203LIBS="-lsun $LIBS" 15204cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15205/* end confdefs.h. */ 15206 15207/* Override any GCC internal prototype to avoid an error. 15208 Use char because int might match the return type of a GCC 15209 builtin and then its argument prototype would still apply. */ 15210#ifdef __cplusplus 15211extern "C" 15212#endif 15213char getpwnam (); 15214int 15215main () 15216{ 15217return getpwnam (); 15218 ; 15219 return 0; 15220} 15221_ACEOF 15222if ac_fn_c_try_link "$LINENO"; then : 15223 ac_cv_lib_sun_getpwnam=yes 15224else 15225 ac_cv_lib_sun_getpwnam=no 15226fi 15227rm -f core conftest.err conftest.$ac_objext \ 15228 conftest$ac_exeext conftest.$ac_ext 15229LIBS=$ac_check_lib_save_LIBS 15230fi 15231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5 15232$as_echo "$ac_cv_lib_sun_getpwnam" >&6; } 15233if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then : 15234 cat >>confdefs.h <<_ACEOF 15235#define HAVE_LIBSUN 1 15236_ACEOF 15237 15238 LIBS="-lsun $LIBS" 15239 15240fi 15241 15242 15243 15244# Check whether --with-package was given. 15245if test "${with_package+set}" = set; then : 15246 withval=$with_package; package="$withval" 15247else 15248 15249 package="$PACKAGE" 15250 ac_configure_args="$ac_configure_args --with-package=$PACKAGE" 15251 15252fi 15253 15254 15255 15256# Check whether --with-version was given. 15257if test "${with_version+set}" = set; then : 15258 withval=$with_version; version="$withval" 15259else 15260 15261 version="$VERSION" 15262 ac_configure_args="$ac_configure_args --with-version=$VERSION" 15263 15264fi 15265 15266 15267for ac_prog in courierauthconfig 15268do 15269 # Extract the first word of "$ac_prog", so it can be a program name with args. 15270set dummy $ac_prog; ac_word=$2 15271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15272$as_echo_n "checking for $ac_word... " >&6; } 15273if test "${ac_cv_path_COURIERAUTHCONFIG+set}" = set; then : 15274 $as_echo_n "(cached) " >&6 15275else 15276 case $COURIERAUTHCONFIG in 15277 [\\/]* | ?:[\\/]*) 15278 ac_cv_path_COURIERAUTHCONFIG="$COURIERAUTHCONFIG" # Let the user override the test with a path. 15279 ;; 15280 *) 15281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15282for as_dir in $PATH 15283do 15284 IFS=$as_save_IFS 15285 test -z "$as_dir" && as_dir=. 15286 for ac_exec_ext in '' $ac_executable_extensions; do 15287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15288 ac_cv_path_COURIERAUTHCONFIG="$as_dir/$ac_word$ac_exec_ext" 15289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15290 break 2 15291 fi 15292done 15293 done 15294IFS=$as_save_IFS 15295 15296 ;; 15297esac 15298fi 15299COURIERAUTHCONFIG=$ac_cv_path_COURIERAUTHCONFIG 15300if test -n "$COURIERAUTHCONFIG"; then 15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COURIERAUTHCONFIG" >&5 15302$as_echo "$COURIERAUTHCONFIG" >&6; } 15303else 15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15305$as_echo "no" >&6; } 15306fi 15307 15308 15309 test -n "$COURIERAUTHCONFIG" && break 15310done 15311 15312 15313# When we're a part of the Courier build, we let Courier do the authlib stuff 15314 15315if test -d ${srcdir}/../courier 15316then 15317 COURIERAUTHCONFIG="" 15318fi 15319 15320# Check whether --enable-authlib was given. 15321if test "${enable_authlib+set}" = set; then : 15322 enableval=$enable_authlib; 15323if test "$enableval" = "no" 15324then 15325 COURIERAUTHCONFIG="" 15326fi 15327 15328fi 15329 15330 15331AUTHINCLUDE="" 15332AUTHLDADD="" 15333AUTHLIB=0 15334 15335if test "$COURIERAUTHCONFIG" != "" 15336then 15337 AUTHINCLUDE=`$COURIERAUTHCONFIG --cppflags` 15338 AUTHLDADD="`$COURIERAUTHCONFIG --ldflags` -lcourierauth" 15339 AUTHLIB=1 15340fi 15341 15342 15343 15344 15345cat >>confdefs.h <<_ACEOF 15346#define AUTHLIB $AUTHLIB 15347_ACEOF 15348 15349 15350 15351. ../dbobj.config 15352 15353if test "$dblibrary" != "" 15354then 15355 dblibrary="../$dblibrary" 15356fi 15357 15358 15359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 15360$as_echo_n "checking for ANSI C header files... " >&6; } 15361if test "${ac_cv_header_stdc+set}" = set; then : 15362 $as_echo_n "(cached) " >&6 15363else 15364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15365/* end confdefs.h. */ 15366#include <stdlib.h> 15367#include <stdarg.h> 15368#include <string.h> 15369#include <float.h> 15370 15371int 15372main () 15373{ 15374 15375 ; 15376 return 0; 15377} 15378_ACEOF 15379if ac_fn_c_try_compile "$LINENO"; then : 15380 ac_cv_header_stdc=yes 15381else 15382 ac_cv_header_stdc=no 15383fi 15384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15385 15386if test $ac_cv_header_stdc = yes; then 15387 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 15388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15389/* end confdefs.h. */ 15390#include <string.h> 15391 15392_ACEOF 15393if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15394 $EGREP "memchr" >/dev/null 2>&1; then : 15395 15396else 15397 ac_cv_header_stdc=no 15398fi 15399rm -f conftest* 15400 15401fi 15402 15403if test $ac_cv_header_stdc = yes; then 15404 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 15405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15406/* end confdefs.h. */ 15407#include <stdlib.h> 15408 15409_ACEOF 15410if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15411 $EGREP "free" >/dev/null 2>&1; then : 15412 15413else 15414 ac_cv_header_stdc=no 15415fi 15416rm -f conftest* 15417 15418fi 15419 15420if test $ac_cv_header_stdc = yes; then 15421 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 15422 if test "$cross_compiling" = yes; then : 15423 : 15424else 15425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15426/* end confdefs.h. */ 15427#include <ctype.h> 15428#include <stdlib.h> 15429#if ((' ' & 0x0FF) == 0x020) 15430# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 15431# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 15432#else 15433# define ISLOWER(c) \ 15434 (('a' <= (c) && (c) <= 'i') \ 15435 || ('j' <= (c) && (c) <= 'r') \ 15436 || ('s' <= (c) && (c) <= 'z')) 15437# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 15438#endif 15439 15440#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 15441int 15442main () 15443{ 15444 int i; 15445 for (i = 0; i < 256; i++) 15446 if (XOR (islower (i), ISLOWER (i)) 15447 || toupper (i) != TOUPPER (i)) 15448 return 2; 15449 return 0; 15450} 15451_ACEOF 15452if ac_fn_c_try_run "$LINENO"; then : 15453 15454else 15455 ac_cv_header_stdc=no 15456fi 15457rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15458 conftest.$ac_objext conftest.beam conftest.$ac_ext 15459fi 15460 15461fi 15462fi 15463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 15464$as_echo "$ac_cv_header_stdc" >&6; } 15465if test $ac_cv_header_stdc = yes; then 15466 15467$as_echo "#define STDC_HEADERS 1" >>confdefs.h 15468 15469fi 15470 15471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 15472$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 15473if test "${ac_cv_header_sys_wait_h+set}" = set; then : 15474 $as_echo_n "(cached) " >&6 15475else 15476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15477/* end confdefs.h. */ 15478#include <sys/types.h> 15479#include <sys/wait.h> 15480#ifndef WEXITSTATUS 15481# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 15482#endif 15483#ifndef WIFEXITED 15484# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 15485#endif 15486 15487int 15488main () 15489{ 15490 int s; 15491 wait (&s); 15492 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 15493 ; 15494 return 0; 15495} 15496_ACEOF 15497if ac_fn_c_try_compile "$LINENO"; then : 15498 ac_cv_header_sys_wait_h=yes 15499else 15500 ac_cv_header_sys_wait_h=no 15501fi 15502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15503fi 15504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 15505$as_echo "$ac_cv_header_sys_wait_h" >&6; } 15506if test $ac_cv_header_sys_wait_h = yes; then 15507 15508$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 15509 15510fi 15511 15512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 15513$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 15514if test "${ac_cv_header_time+set}" = set; then : 15515 $as_echo_n "(cached) " >&6 15516else 15517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15518/* end confdefs.h. */ 15519#include <sys/types.h> 15520#include <sys/time.h> 15521#include <time.h> 15522 15523int 15524main () 15525{ 15526if ((struct tm *) 0) 15527return 0; 15528 ; 15529 return 0; 15530} 15531_ACEOF 15532if ac_fn_c_try_compile "$LINENO"; then : 15533 ac_cv_header_time=yes 15534else 15535 ac_cv_header_time=no 15536fi 15537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15538fi 15539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 15540$as_echo "$ac_cv_header_time" >&6; } 15541if test $ac_cv_header_time = yes; then 15542 15543$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 15544 15545fi 15546 15547ac_header_dirent=no 15548for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 15549 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 15550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 15551$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 15552if eval "test \"\${$as_ac_Header+set}\"" = set; then : 15553 $as_echo_n "(cached) " >&6 15554else 15555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15556/* end confdefs.h. */ 15557#include <sys/types.h> 15558#include <$ac_hdr> 15559 15560int 15561main () 15562{ 15563if ((DIR *) 0) 15564return 0; 15565 ; 15566 return 0; 15567} 15568_ACEOF 15569if ac_fn_c_try_compile "$LINENO"; then : 15570 eval "$as_ac_Header=yes" 15571else 15572 eval "$as_ac_Header=no" 15573fi 15574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15575fi 15576eval ac_res=\$$as_ac_Header 15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 15578$as_echo "$ac_res" >&6; } 15579if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15580 cat >>confdefs.h <<_ACEOF 15581#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 15582_ACEOF 15583 15584ac_header_dirent=$ac_hdr; break 15585fi 15586 15587done 15588# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 15589if test $ac_header_dirent = dirent.h; then 15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 15591$as_echo_n "checking for library containing opendir... " >&6; } 15592if test "${ac_cv_search_opendir+set}" = set; then : 15593 $as_echo_n "(cached) " >&6 15594else 15595 ac_func_search_save_LIBS=$LIBS 15596cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15597/* end confdefs.h. */ 15598 15599/* Override any GCC internal prototype to avoid an error. 15600 Use char because int might match the return type of a GCC 15601 builtin and then its argument prototype would still apply. */ 15602#ifdef __cplusplus 15603extern "C" 15604#endif 15605char opendir (); 15606int 15607main () 15608{ 15609return opendir (); 15610 ; 15611 return 0; 15612} 15613_ACEOF 15614for ac_lib in '' dir; do 15615 if test -z "$ac_lib"; then 15616 ac_res="none required" 15617 else 15618 ac_res=-l$ac_lib 15619 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15620 fi 15621 if ac_fn_c_try_link "$LINENO"; then : 15622 ac_cv_search_opendir=$ac_res 15623fi 15624rm -f core conftest.err conftest.$ac_objext \ 15625 conftest$ac_exeext 15626 if test "${ac_cv_search_opendir+set}" = set; then : 15627 break 15628fi 15629done 15630if test "${ac_cv_search_opendir+set}" = set; then : 15631 15632else 15633 ac_cv_search_opendir=no 15634fi 15635rm conftest.$ac_ext 15636LIBS=$ac_func_search_save_LIBS 15637fi 15638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 15639$as_echo "$ac_cv_search_opendir" >&6; } 15640ac_res=$ac_cv_search_opendir 15641if test "$ac_res" != no; then : 15642 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15643 15644fi 15645 15646else 15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 15648$as_echo_n "checking for library containing opendir... " >&6; } 15649if test "${ac_cv_search_opendir+set}" = set; then : 15650 $as_echo_n "(cached) " >&6 15651else 15652 ac_func_search_save_LIBS=$LIBS 15653cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15654/* end confdefs.h. */ 15655 15656/* Override any GCC internal prototype to avoid an error. 15657 Use char because int might match the return type of a GCC 15658 builtin and then its argument prototype would still apply. */ 15659#ifdef __cplusplus 15660extern "C" 15661#endif 15662char opendir (); 15663int 15664main () 15665{ 15666return opendir (); 15667 ; 15668 return 0; 15669} 15670_ACEOF 15671for ac_lib in '' x; do 15672 if test -z "$ac_lib"; then 15673 ac_res="none required" 15674 else 15675 ac_res=-l$ac_lib 15676 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15677 fi 15678 if ac_fn_c_try_link "$LINENO"; then : 15679 ac_cv_search_opendir=$ac_res 15680fi 15681rm -f core conftest.err conftest.$ac_objext \ 15682 conftest$ac_exeext 15683 if test "${ac_cv_search_opendir+set}" = set; then : 15684 break 15685fi 15686done 15687if test "${ac_cv_search_opendir+set}" = set; then : 15688 15689else 15690 ac_cv_search_opendir=no 15691fi 15692rm conftest.$ac_ext 15693LIBS=$ac_func_search_save_LIBS 15694fi 15695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 15696$as_echo "$ac_cv_search_opendir" >&6; } 15697ac_res=$ac_cv_search_opendir 15698if test "$ac_res" != no; then : 15699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15700 15701fi 15702 15703fi 15704 15705for ac_header in fcntl.h memory.h sys/file.h sys/time.h sys/stat.h unistd.h strings.h locale.h pcre.h pcre/pcre.h 15706do : 15707 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15708ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15709if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15710 cat >>confdefs.h <<_ACEOF 15711#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15712_ACEOF 15713 15714fi 15715 15716done 15717 15718 15719ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 15720if test "x$ac_cv_type_mode_t" = x""yes; then : 15721 15722else 15723 15724cat >>confdefs.h <<_ACEOF 15725#define mode_t int 15726_ACEOF 15727 15728fi 15729 15730ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 15731if test "x$ac_cv_type_off_t" = x""yes; then : 15732 15733else 15734 15735cat >>confdefs.h <<_ACEOF 15736#define off_t long int 15737_ACEOF 15738 15739fi 15740 15741ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 15742if test "x$ac_cv_type_size_t" = x""yes; then : 15743 15744else 15745 15746cat >>confdefs.h <<_ACEOF 15747#define size_t unsigned int 15748_ACEOF 15749 15750fi 15751 15752ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 15753if test "x$ac_cv_type_pid_t" = x""yes; then : 15754 15755else 15756 15757cat >>confdefs.h <<_ACEOF 15758#define pid_t int 15759_ACEOF 15760 15761fi 15762 15763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 15764$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 15765if test "${ac_cv_type_uid_t+set}" = set; then : 15766 $as_echo_n "(cached) " >&6 15767else 15768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15769/* end confdefs.h. */ 15770#include <sys/types.h> 15771 15772_ACEOF 15773if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15774 $EGREP "uid_t" >/dev/null 2>&1; then : 15775 ac_cv_type_uid_t=yes 15776else 15777 ac_cv_type_uid_t=no 15778fi 15779rm -f conftest* 15780 15781fi 15782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 15783$as_echo "$ac_cv_type_uid_t" >&6; } 15784if test $ac_cv_type_uid_t = no; then 15785 15786$as_echo "#define uid_t int" >>confdefs.h 15787 15788 15789$as_echo "#define gid_t int" >>confdefs.h 15790 15791fi 15792 15793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 15794$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 15795if test "${ac_cv_struct_tm+set}" = set; then : 15796 $as_echo_n "(cached) " >&6 15797else 15798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15799/* end confdefs.h. */ 15800#include <sys/types.h> 15801#include <time.h> 15802 15803int 15804main () 15805{ 15806struct tm tm; 15807 int *p = &tm.tm_sec; 15808 return !p; 15809 ; 15810 return 0; 15811} 15812_ACEOF 15813if ac_fn_c_try_compile "$LINENO"; then : 15814 ac_cv_struct_tm=time.h 15815else 15816 ac_cv_struct_tm=sys/time.h 15817fi 15818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15819fi 15820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 15821$as_echo "$ac_cv_struct_tm" >&6; } 15822if test $ac_cv_struct_tm = sys/time.h; then 15823 15824$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 15825 15826fi 15827 15828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5 15829$as_echo_n "checking type of array argument to getgroups... " >&6; } 15830if test "${ac_cv_type_getgroups+set}" = set; then : 15831 $as_echo_n "(cached) " >&6 15832else 15833 if test "$cross_compiling" = yes; then : 15834 ac_cv_type_getgroups=cross 15835else 15836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15837/* end confdefs.h. */ 15838/* Thanks to Mike Rendell for this test. */ 15839$ac_includes_default 15840#define NGID 256 15841#undef MAX 15842#define MAX(x, y) ((x) > (y) ? (x) : (y)) 15843 15844int 15845main () 15846{ 15847 gid_t gidset[NGID]; 15848 int i, n; 15849 union { gid_t gval; long int lval; } val; 15850 15851 val.lval = -1; 15852 for (i = 0; i < NGID; i++) 15853 gidset[i] = val.gval; 15854 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, 15855 gidset); 15856 /* Exit non-zero if getgroups seems to require an array of ints. This 15857 happens when gid_t is short int but getgroups modifies an array 15858 of ints. */ 15859 return n > 0 && gidset[n] != val.gval; 15860} 15861_ACEOF 15862if ac_fn_c_try_run "$LINENO"; then : 15863 ac_cv_type_getgroups=gid_t 15864else 15865 ac_cv_type_getgroups=int 15866fi 15867rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15868 conftest.$ac_objext conftest.beam conftest.$ac_ext 15869fi 15870 15871if test $ac_cv_type_getgroups = cross; then 15872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15873/* end confdefs.h. */ 15874#include <unistd.h> 15875 15876_ACEOF 15877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15878 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then : 15879 ac_cv_type_getgroups=gid_t 15880else 15881 ac_cv_type_getgroups=int 15882fi 15883rm -f conftest* 15884 15885fi 15886fi 15887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5 15888$as_echo "$ac_cv_type_getgroups" >&6; } 15889 15890cat >>confdefs.h <<_ACEOF 15891#define GETGROUPS_T $ac_cv_type_getgroups 15892_ACEOF 15893 15894 15895 15896if test "$cross_compiling" = yes; then : 15897 15898 MAXLONGSIZE=60 15899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cross compiling, setting MAXLONGSIZE to $MAXLONGSIZ 15900E" >&5 15901$as_echo "$as_me: WARNING: Cross compiling, setting MAXLONGSIZE to $MAXLONGSIZ 15902E" >&2;} 15903 15904 15905else 15906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15907/* end confdefs.h. */ 15908 15909 15910#include <stdio.h> 15911#include <stdlib.h> 15912#include <limits.h> 15913 15914int main() 15915{ 15916FILE *fp=fopen("conftestval", "w"); 15917 15918 if (!fp) exit(1); 15919 fprintf(fp, "-%lu\n", ULONG_MAX); 15920 fclose(fp); 15921 return (0); 15922} 15923 15924 15925_ACEOF 15926if ac_fn_c_try_run "$LINENO"; then : 15927 MAXLONGSIZE=`wc -c conftestval | awk ' { print $1 } ' ` 15928else 15929 15930 as_fn_error $? "Unable to run test program." "$LINENO" 5 15931 15932fi 15933rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15934 conftest.$ac_objext conftest.beam conftest.$ac_ext 15935fi 15936 15937 15938 15939cat >>confdefs.h <<_ACEOF 15940#define MAXLONGSIZE $MAXLONGSIZE 15941_ACEOF 15942 15943 15944 15945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 15946$as_echo_n "checking whether closedir returns void... " >&6; } 15947if test "${ac_cv_func_closedir_void+set}" = set; then : 15948 $as_echo_n "(cached) " >&6 15949else 15950 if test "$cross_compiling" = yes; then : 15951 ac_cv_func_closedir_void=yes 15952else 15953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15954/* end confdefs.h. */ 15955$ac_includes_default 15956#include <$ac_header_dirent> 15957#ifndef __cplusplus 15958int closedir (); 15959#endif 15960 15961int 15962main () 15963{ 15964return closedir (opendir (".")) != 0; 15965 ; 15966 return 0; 15967} 15968_ACEOF 15969if ac_fn_c_try_run "$LINENO"; then : 15970 ac_cv_func_closedir_void=no 15971else 15972 ac_cv_func_closedir_void=yes 15973fi 15974rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15975 conftest.$ac_objext conftest.beam conftest.$ac_ext 15976fi 15977 15978fi 15979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 15980$as_echo "$ac_cv_func_closedir_void" >&6; } 15981if test $ac_cv_func_closedir_void = yes; then 15982 15983$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h 15984 15985fi 15986 15987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 15988$as_echo_n "checking return type of signal handlers... " >&6; } 15989if test "${ac_cv_type_signal+set}" = set; then : 15990 $as_echo_n "(cached) " >&6 15991else 15992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15993/* end confdefs.h. */ 15994#include <sys/types.h> 15995#include <signal.h> 15996 15997int 15998main () 15999{ 16000return *(signal (0, 0)) (0) == 1; 16001 ; 16002 return 0; 16003} 16004_ACEOF 16005if ac_fn_c_try_compile "$LINENO"; then : 16006 ac_cv_type_signal=int 16007else 16008 ac_cv_type_signal=void 16009fi 16010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16011fi 16012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 16013$as_echo "$ac_cv_type_signal" >&6; } 16014 16015cat >>confdefs.h <<_ACEOF 16016#define RETSIGTYPE $ac_cv_type_signal 16017_ACEOF 16018 16019 16020for ac_func in setgroups setlocale 16021do : 16022 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16023ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16024if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16025 cat >>confdefs.h <<_ACEOF 16026#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16027_ACEOF 16028 16029fi 16030done 16031 16032 16033ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" 16034if test "x$ac_cv_func_getpgrp" = x""yes; then : 16035 HAS_GETPGRP=1 16036else 16037 HAS_GETPGRP=0 16038fi 16039 16040 16041cat >>confdefs.h <<_ACEOF 16042#define HAS_GETPGRP $HAS_GETPGRP 16043_ACEOF 16044 16045 16046ac_fn_c_check_func "$LINENO" "getpgid" "ac_cv_func_getpgid" 16047if test "x$ac_cv_func_getpgid" = x""yes; then : 16048 HAS_GETPGID=1 16049else 16050 HAS_GETPGID=0 16051fi 16052 16053 16054cat >>confdefs.h <<_ACEOF 16055#define HAS_GETPGID $HAS_GETPGID 16056_ACEOF 16057 16058 16059if test $HAS_GETPGRP 16060then 16061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 16062$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } 16063if test "${ac_cv_func_getpgrp_void+set}" = set; then : 16064 $as_echo_n "(cached) " >&6 16065else 16066 # Use it with a single arg. 16067cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16068/* end confdefs.h. */ 16069$ac_includes_default 16070int 16071main () 16072{ 16073getpgrp (0); 16074 ; 16075 return 0; 16076} 16077_ACEOF 16078if ac_fn_c_try_compile "$LINENO"; then : 16079 ac_cv_func_getpgrp_void=no 16080else 16081 ac_cv_func_getpgrp_void=yes 16082fi 16083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16084 16085fi 16086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 16087$as_echo "$ac_cv_func_getpgrp_void" >&6; } 16088if test $ac_cv_func_getpgrp_void = yes; then 16089 16090$as_echo "#define GETPGRP_VOID 1" >>confdefs.h 16091 16092fi 16093 16094fi 16095 16096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking setpgrp()" >&5 16097$as_echo_n "checking setpgrp()... " >&6; } 16098if test "${maildrop_cv_HAS_SETPGRP+set}" = set; then : 16099 $as_echo_n "(cached) " >&6 16100else 16101 if test $HAS_GETPGRP -o $HAS_GETPGID 16102then 16103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16104/* end confdefs.h. */ 16105 16106#include <stdio.h> 16107#if HAVE_UNISTD_H 16108#include <unistd.h> 16109#endif 16110 16111int 16112main () 16113{ 16114 16115 (void)setpgrp(); 16116 16117 ; 16118 return 0; 16119} 16120_ACEOF 16121if ac_fn_c_try_link "$LINENO"; then : 16122 maildrop_cv_HAS_SETPGRP=1 16123else 16124 maildrop_cv_HAS_SETPGRP=0 16125fi 16126rm -f core conftest.err conftest.$ac_objext \ 16127 conftest$ac_exeext conftest.$ac_ext 16128 16129else 16130 maildrop_cv_HAS_SETPGRP=0 16131fi 16132 16133 16134fi 16135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maildrop_cv_HAS_SETPGRP" >&5 16136$as_echo "$maildrop_cv_HAS_SETPGRP" >&6; } 16137 16138cat >>confdefs.h <<_ACEOF 16139#define HAS_SETPGRP $maildrop_cv_HAS_SETPGRP 16140_ACEOF 16141 16142 16143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking setpgid()" >&5 16144$as_echo_n "checking setpgid()... " >&6; } 16145if test "${maildrop_cv_HAS_SETPGID+set}" = set; then : 16146 $as_echo_n "(cached) " >&6 16147else 16148 if test $HAS_GETPGRP -o $HAS_GETPGID 16149then 16150 16151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16152/* end confdefs.h. */ 16153 16154#include <stdio.h> 16155#if HAVE_UNISTD_H 16156#include <unistd.h> 16157#endif 16158 16159int 16160main () 16161{ 16162 16163 (void)setpgid(0,0); 16164 16165 ; 16166 return 0; 16167} 16168_ACEOF 16169if ac_fn_c_try_link "$LINENO"; then : 16170 maildrop_cv_HAS_SETPGID=1 16171else 16172 maildrop_cv_HAS_SETPGID=0 16173fi 16174rm -f core conftest.err conftest.$ac_objext \ 16175 conftest$ac_exeext conftest.$ac_ext 16176else 16177 maildrop_cv_HAS_SETPGID=0 16178fi 16179 16180fi 16181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maildrop_cv_HAS_SETPGID" >&5 16182$as_echo "$maildrop_cv_HAS_SETPGID" >&6; } 16183 16184cat >>confdefs.h <<_ACEOF 16185#define HAS_SETPGID $maildrop_cv_HAS_SETPGID 16186_ACEOF 16187 16188 16189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for missing gethostname prototype" >&5 16190$as_echo_n "checking for missing gethostname prototype... " >&6; } 16191if test "${maildir_cv_SYS_GETHOSTNAME+set}" = set; then : 16192 $as_echo_n "(cached) " >&6 16193else 16194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16195/* end confdefs.h. */ 16196 16197#if HAVE_UNISTD_H 16198#include <unistd.h> 16199#endif 16200 16201extern "C" int gethostname(int,int); 16202 16203int 16204main () 16205{ 16206 16207 16208 ; 16209 return 0; 16210} 16211_ACEOF 16212if ac_fn_c_try_compile "$LINENO"; then : 16213 maildir_cv_SYS_GETHOSTNAME=yes 16214else 16215 maildir_cv_SYS_GETHOSTNAME=no 16216 16217fi 16218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16219 16220 16221fi 16222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maildir_cv_SYS_GETHOSTNAME" >&5 16223$as_echo "$maildir_cv_SYS_GETHOSTNAME" >&6; } 16224 16225if test $maildir_cv_SYS_GETHOSTNAME = "no" 16226then 16227 16228cat >>confdefs.h <<_ACEOF 16229#define HAS_GETHOSTNAME 1 16230_ACEOF 16231 16232fi 16233 16234 16235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default PATH for commands" >&5 16236$as_echo_n "checking default PATH for commands... " >&6; } 16237if test "${maildrop_cv_SYS_DEFAULT_PATH+set}" = set; then : 16238 $as_echo_n "(cached) " >&6 16239else 16240 maildrop_cv_SYS_DEFAULT_PATH="/bin:/usr/bin" 16241if test -d /usr/local/bin 16242then 16243 maildrop_cv_SYS_DEFAULT_PATH="$maildrop_cv_SYS_DEFAULT_PATH":/usr/local/bin 16244fi 16245 16246fi 16247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maildrop_cv_SYS_DEFAULT_PATH" >&5 16248$as_echo "$maildrop_cv_SYS_DEFAULT_PATH" >&6; } 16249 16250 16251cat >>confdefs.h <<_ACEOF 16252#define DEFAULT_PATH "$maildrop_cv_SYS_DEFAULT_PATH" 16253_ACEOF 16254 16255 16256if test -x /var/qmail/bin/qmail-inject 16257then 16258 QMAIL="/var/qmail/bin/qmail-inject" 16259else 16260 # Extract the first word of "qmail-inject", so it can be a program name with args. 16261set dummy qmail-inject; ac_word=$2 16262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16263$as_echo_n "checking for $ac_word... " >&6; } 16264if test "${ac_cv_prog_QMAIL+set}" = set; then : 16265 $as_echo_n "(cached) " >&6 16266else 16267 if test -n "$QMAIL"; then 16268 ac_cv_prog_QMAIL="$QMAIL" # Let the user override the test. 16269else 16270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16271for as_dir in $PATH 16272do 16273 IFS=$as_save_IFS 16274 test -z "$as_dir" && as_dir=. 16275 for ac_exec_ext in '' $ac_executable_extensions; do 16276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16277 ac_cv_prog_QMAIL="qmail-inject" 16278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16279 break 2 16280 fi 16281done 16282 done 16283IFS=$as_save_IFS 16284 16285fi 16286fi 16287QMAIL=$ac_cv_prog_QMAIL 16288if test -n "$QMAIL"; then 16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAIL" >&5 16290$as_echo "$QMAIL" >&6; } 16291else 16292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16293$as_echo "no" >&6; } 16294fi 16295 16296 16297fi 16298 16299 16300test "x$prefix" = xNONE && prefix=$ac_default_prefix 16301test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16302 16303if test -d $srcdir/../courier 16304then 16305# 16306# This version of maildrop is integrated into Courier mail server 16307 16308 16309cat >>confdefs.h <<_ACEOF 16310#define HAVE_COURIER 1 16311_ACEOF 16312 16313fi 16314 16315# Check whether --enable-sendmail was given. 16316if test "${enable_sendmail+set}" = set; then : 16317 enableval=$enable_sendmail; MTA="$enableval -oi" 16318else 16319 MTA="" 16320# 16321# When maildrop is configured as part of courier, MTA is fixed to use Courier. 16322# 16323 if test -d $srcdir/../courier 16324 then 16325 eval "prefix=$prefix" 16326 eval "exec_prefix=$exec_prefix" 16327 eval "bindir=$bindir" 16328 MTA=$bindir/sendmail 16329 fi 16330 16331 16332fi 16333 16334 16335test "x$prefix" = xNONE && prefix=$ac_default_prefix 16336test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16337 16338 16339eval "prefix=$prefix" 16340eval "exec_prefix=$exec_prefix" 16341eval "sysconfdir=$sysconfdir" 16342 16343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking mail transport agent" >&5 16344$as_echo_n "checking mail transport agent... " >&6; } 16345if test "${maildrop_cv_SYS_MTA+set}" = set; then : 16346 $as_echo_n "(cached) " >&6 16347else 16348 if test "$MTA" != "" 16349then 16350 maildrop_cv_SYS_MTA="$MTA" 16351else 16352 maildrop_cv_SYS_MTA="/bin/sendmail -oi" 16353 16354 for f in /var/qmail/bin/sendmail /usr/bin/sendmail /usr/sbin/sendmail /lib/sendmail /usr/lib/sendmail /etc/sendmail /sbin/sendmail 16355 do 16356 if test -x $f 16357 then 16358 maildrop_cv_SYS_MTA="$f -oi" 16359 break 16360 fi 16361 done 16362fi 16363 16364 16365fi 16366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maildrop_cv_SYS_MTA" >&5 16367$as_echo "$maildrop_cv_SYS_MTA" >&6; } 16368 16369if test "$MTA" != "" 16370then 16371 maildrop_cv_SYS_MTA="$MTA" 16372fi 16373 16374 16375cat >>confdefs.h <<_ACEOF 16376#define SENDMAIL_DEF "$maildrop_cv_SYS_MTA" 16377_ACEOF 16378 16379 16380 16381test_spooldir() { 16382spooldir="$1" 16383WHOAMI=`whoami` 16384 16385if test "$WHOAMI" = "" 16386then 16387 as_fn_error $? "Unable to run whoami" "$LINENO" 5 16388 exit 1 16389fi 16390 16391a=`echo $WHOAMI"..." | cut -c1` 16392b=`echo $WHOAMI"..." | cut -c1-2` 16393c=`echo $WHOAMI"..." | cut -c1-3` 16394 16395DIRA=$spooldir/$a 16396DIRB=$spooldir/$a/$b 16397DIRC=$spooldir/$a/$b/$c 16398 16399DIR="" 16400TDIR="" 16401 16402if test -d $spooldir 16403then 16404 DIR=$spooldir 16405 TDIR="$spooldir" 16406fi 16407if test -d $DIRA 16408then 16409 DIR=$spooldir'/=' 16410 TDIR="$DIRA" 16411fi 16412 16413if test -d $DIRB 16414then 16415 DIR=$spooldir'/=/==' 16416 TDIR="$DIRB" 16417fi 16418 16419if test -d $DIRC 16420then 16421 DIR=$spooldir'/=/==/===' 16422 TDIR="$DIRC" 16423fi 16424 16425if test "`ls -ld $TDIR/. | cut -c10`" = "t" 16426then 16427 MBOX_RESET_GID=1 16428else 16429 MBOX_RESET_GID=0 16430fi 16431 16432SPOOLDIR="$DIR" 16433} 16434 16435 16436get_spooldir() { 16437 16438if test -d $srcdir/../courier 16439then 16440 MBOX_RESET_GID=1 16441 SPOOLDIR="./Maildir" 16442 return 0 16443fi 16444 16445for f in /var/mail /usr/spool/mail /var/spool/mail /usr/mail 16446do 16447 test_spooldir "$f" 16448 if test "$SPOOLDIR" != "" 16449 then 16450 return 0 16451 fi 16452done 16453 16454# Not found, possibly qmail $HOME/Mailbox 16455 16456if test "$QMAIL" != "" 16457then 16458 SPOOLDIR="./Mailbox" 16459else 16460 as_fn_error $? "Cannot determine default mailbox" "$LINENO" 5 16461fi 16462} 16463 16464check_spooldir() { 16465 if test "$CHECKED_SPOOLDIR" != 1 16466 then 16467 get_spooldir 16468 MBOX_DIR="$SPOOLDIR" 16469 CHECKED_SPOOLDIR=1 16470 fi 16471} 16472 16473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking location of system mailboxes" >&5 16474$as_echo_n "checking location of system mailboxes... " >&6; } 16475if test "${maildrop_cv_SYS_INSTALL_MBOXDIR+set}" = set; then : 16476 $as_echo_n "(cached) " >&6 16477else 16478 check_spooldir 16479maildrop_cv_SYS_INSTALL_MBOXDIR="$MBOX_DIR" 16480 16481fi 16482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maildrop_cv_SYS_INSTALL_MBOXDIR" >&5 16483$as_echo "$maildrop_cv_SYS_INSTALL_MBOXDIR" >&6; } 16484 16485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether maildrop should reset its group ID" >&5 16486$as_echo_n "checking whether maildrop should reset its group ID... " >&6; } 16487if test "${maildrop_cv_SYS_INSTALL_RESET_GID+set}" = set; then : 16488 $as_echo_n "(cached) " >&6 16489else 16490 check_spooldir 16491maildrop_cv_SYS_INSTALL_RESET_GID="$MBOX_RESET_GID" 16492 16493fi 16494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maildrop_cv_SYS_INSTALL_RESET_GID" >&5 16495$as_echo "$maildrop_cv_SYS_INSTALL_RESET_GID" >&6; } 16496 16497# Check whether --with-default-maildrop was given. 16498if test "${with_default_maildrop+set}" = set; then : 16499 withval=$with_default_maildrop; maildrop_cv_SYS_INSTALL_MBOXDIR="$withval" 16500else 16501 # Courier defaults to ./Maildir 16502 16503 if test -d $srcdir/../courier 16504 then 16505 maildrop_cv_SYS_INSTALL_MBOXDIR=./Maildir 16506 fi 16507 16508fi 16509 16510 16511 16512cat >>confdefs.h <<_ACEOF 16513#define DEFAULT_DEF "${maildrop_cv_SYS_INSTALL_MBOXDIR}" 16514_ACEOF 16515 16516 16517cat >>confdefs.h <<_ACEOF 16518#define RESET_GID ${maildrop_cv_SYS_INSTALL_RESET_GID} 16519_ACEOF 16520 16521 16522 16523# Check whether --enable-trusted-users was given. 16524if test "${enable_trusted_users+set}" = set; then : 16525 enableval=$enable_trusted_users; TRUSTED_USERS=$enableval 16526else 16527 TRUSTED_USERS="" 16528fi 16529 16530 16531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking privileged users" >&5 16532$as_echo_n "checking privileged users... " >&6; } 16533if test "${maildrop_cv_SYS_INSTALL_PRIVUSERS+set}" = set; then : 16534 $as_echo_n "(cached) " >&6 16535else 16536 if test "$TRUSTED_USERS" = "" 16537then 16538 maildrop_cv_SYS_INSTALL_PRIVUSERS="root" 16539 for USERID in mail daemon postmaster qmaild mmdf 16540 do 16541 if test "`eval echo ~$USERID`" != ~$USERID 16542 then 16543 maildrop_cv_SYS_INSTALL_PRIVUSERS="$maildrop_cv_SYS_INSTALL_PRIVUSERS $USERID" 16544 fi 16545 done 16546else 16547 maildrop_cv_SYS_INSTALL_PRIVUSERS="$TRUSTED_USERS" 16548fi 16549 16550 16551fi 16552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $maildrop_cv_SYS_INSTALL_PRIVUSERS" >&5 16553$as_echo "$maildrop_cv_SYS_INSTALL_PRIVUSERS" >&6; } 16554 16555cat >>confdefs.h <<_ACEOF 16556#define TRUSTED_USERS "${maildrop_cv_SYS_INSTALL_PRIVUSERS}" 16557_ACEOF 16558 16559 16560# Check whether --enable-trusted-groups was given. 16561if test "${enable_trusted_groups+set}" = set; then : 16562 enableval=$enable_trusted_groups; TRUSTED_GROUPS=$enableval 16563else 16564 TRUSTED_GROUPS="" 16565fi 16566 16567 16568cat >>confdefs.h <<_ACEOF 16569#define TRUSTED_GROUPS "$TRUSTED_GROUPS" 16570_ACEOF 16571 16572 16573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UID of maildrop" >&5 16574$as_echo_n "checking for UID of maildrop... " >&6; } 16575# Check whether --enable-maildrop-uid was given. 16576if test "${enable_maildrop_uid+set}" = set; then : 16577 enableval=$enable_maildrop_uid; MAILDROPUID=$enableval 16578else 16579 MAILDROPUID=root 16580fi 16581 16582 16583cat >>confdefs.h <<_ACEOF 16584#define MAILDROPUID "$MAILDROPUID" 16585_ACEOF 16586 16587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAILDROPUID" >&5 16588$as_echo "$MAILDROPUID" >&6; } 16589 16590 16591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GID of maildrop" >&5 16592$as_echo_n "checking for GID of maildrop... " >&6; } 16593# Check whether --enable-maildrop-gid was given. 16594if test "${enable_maildrop_gid+set}" = set; then : 16595 enableval=$enable_maildrop_gid; MAILDROPGID=$enableval 16596else 16597 MAILDROPGID=mail 16598fi 16599 16600 16601cat >>confdefs.h <<_ACEOF 16602#define MAILDROPGID "$MAILDROPGID" 16603_ACEOF 16604 16605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAILDROPGID" >&5 16606$as_echo "$MAILDROPGID" >&6; } 16607 16608 16609echo "uid=$MAILDROPUID" >uidgid 16610echo "gid=$MAILDROPGID" >>uidgid 16611 16612 16613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for USE_FLOCK" >&5 16614$as_echo_n "checking for USE_FLOCK... " >&6; } 16615# Check whether --enable-use-flock was given. 16616if test "${enable_use_flock+set}" = set; then : 16617 enableval=$enable_use_flock; USE_FLOCK=$enableval 16618else 16619 USE_FLOCK=1 16620fi 16621 16622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_FLOCK" >&5 16623$as_echo "$USE_FLOCK" >&6; } 16624 16625 16626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for USE_DOTLOCK" >&5 16627$as_echo_n "checking for USE_DOTLOCK... " >&6; } 16628# Check whether --enable-use-dotlock was given. 16629if test "${enable_use_dotlock+set}" = set; then : 16630 enableval=$enable_use_dotlock; USE_DOTLOCK=$enableval 16631else 16632 16633 16634# 16635# If we are using FLOCK, and mailbox directory has no sticky bit, don't 16636# use dotlocks. 16637# 16638 16639USE_DOTLOCK=1 16640 16641if test $USE_FLOCK != 0 16642then 16643 if test $maildrop_cv_SYS_INSTALL_RESET_GID = 0 16644 then 16645 USE_DOTLOCK=0 16646 fi 16647fi 16648 16649 16650fi 16651 16652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_DOTLOCK" >&5 16653$as_echo "$USE_DOTLOCK" >&6; } 16654 16655 16656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOCKEXT_DEF" >&5 16657$as_echo_n "checking for LOCKEXT_DEF... " >&6; } 16658# Check whether --enable-lockext-def was given. 16659if test "${enable_lockext_def+set}" = set; then : 16660 enableval=$enable_lockext_def; LOCKEXT_DEF=$enableval 16661else 16662 LOCKEXT_DEF=".lock" 16663fi 16664 16665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCKEXT_DEF" >&5 16666$as_echo "$LOCKEXT_DEF" >&6; } 16667 16668 16669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOCKSLEEP_DEF" >&5 16670$as_echo_n "checking for LOCKSLEEP_DEF... " >&6; } 16671# Check whether --enable-locksleep-def was given. 16672if test "${enable_locksleep_def+set}" = set; then : 16673 enableval=$enable_locksleep_def; LOCKSLEEP_DEF=$enableval 16674else 16675 LOCKSLEEP_DEF="5" 16676fi 16677 16678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCKSLEEP_DEF" >&5 16679$as_echo "$LOCKSLEEP_DEF" >&6; } 16680 16681 16682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOCKTIMEOUT_DEF" >&5 16683$as_echo_n "checking for LOCKTIMEOUT_DEF... " >&6; } 16684# Check whether --enable-locktimeout-def was given. 16685if test "${enable_locktimeout_def+set}" = set; then : 16686 enableval=$enable_locktimeout_def; LOCKTIMEOUT_DEF=$enableval 16687else 16688 LOCKTIMEOUT_DEF="60" 16689fi 16690 16691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCKTIMEOUT_DEF" >&5 16692$as_echo "$LOCKTIMEOUT_DEF" >&6; } 16693 16694 16695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LOCKREFRESH_DEF" >&5 16696$as_echo_n "checking for LOCKREFRESH_DEF... " >&6; } 16697# Check whether --enable-lockrefresh-def was given. 16698if test "${enable_lockrefresh_def+set}" = set; then : 16699 enableval=$enable_lockrefresh_def; LOCKREFRESH_DEF=$enableval 16700else 16701 LOCKREFRESH_DEF="15" 16702fi 16703 16704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCKREFRESH_DEF" >&5 16705$as_echo "$LOCKREFRESH_DEF" >&6; } 16706 16707 16708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEMPDIR" >&5 16709$as_echo_n "checking for TEMPDIR... " >&6; } 16710# Check whether --enable-tempdir was given. 16711if test "${enable_tempdir+set}" = set; then : 16712 enableval=$enable_tempdir; TEMPDIR=$enableval 16713else 16714 TEMPDIR="no" 16715fi 16716 16717 16718if test "$TEMPDIR" = "no" 16719then 16720 TEMPDIR='use tmpfile()' 16721 16722cat >>confdefs.h <<_ACEOF 16723#define SHARED_TEMPDIR 1 16724_ACEOF 16725 16726fi 16727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEMPDIR" >&5 16728$as_echo "$TEMPDIR" >&6; } 16729 16730 16731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SMALLMSG" >&5 16732$as_echo_n "checking for SMALLMSG... " >&6; } 16733# Check whether --enable-smallmsg was given. 16734if test "${enable_smallmsg+set}" = set; then : 16735 enableval=$enable_smallmsg; SMALLMSG=$enableval 16736else 16737 SMALLMSG=8192 16738fi 16739 16740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SMALLMSG" >&5 16741$as_echo "$SMALLMSG" >&6; } 16742 16743 16744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOBAL_TIMEOUT" >&5 16745$as_echo_n "checking for GLOBAL_TIMEOUT... " >&6; } 16746# Check whether --enable-global-timeout was given. 16747if test "${enable_global_timeout+set}" = set; then : 16748 enableval=$enable_global_timeout; GLOBAL_TIMEOUT=$enableval 16749else 16750 GLOBAL_TIMEOUT=300 16751fi 16752 16753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLOBAL_TIMEOUT" >&5 16754$as_echo "$GLOBAL_TIMEOUT" >&6; } 16755 16756 16757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRLF_TERM" >&5 16758$as_echo_n "checking for CRLF_TERM... " >&6; } 16759# Check whether --enable-crlf-term was given. 16760if test "${enable_crlf_term+set}" = set; then : 16761 enableval=$enable_crlf_term; CRLF_TERM=$enableval 16762else 16763 CRLF_TERM=0 16764fi 16765 16766case "$CRLF_TERM" in 167671*|y*|Y*) 16768 CRLF_TERM=1 16769 ;; 16770*) 16771 CRLF_TERM=0 16772 ;; 16773esac 16774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CRLF_TERM" >&5 16775$as_echo "$CRLF_TERM" >&6; } 16776 16777 16778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RESTRICT_TRUSTED" >&5 16779$as_echo_n "checking for RESTRICT_TRUSTED... " >&6; } 16780# Check whether --enable-restrict-trusted was given. 16781if test "${enable_restrict_trusted+set}" = set; then : 16782 enableval=$enable_restrict_trusted; RESTRICT_TRUSTED=$enableval 16783else 16784 RESTRICT_TRUSTED=1 16785fi 16786 16787case "$RESTRICT_TRUSTED" in 167881*|y*|Y*) 16789 RESTRICT_TRUSTED=1 16790 ;; 16791*) 16792 RESTRICT_TRUSTED=0 16793 ;; 16794esac 16795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RESTRICT_TRUSTED" >&5 16796$as_echo "$RESTRICT_TRUSTED" >&6; } 16797 16798 16799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for KEEP_FROMLINE" >&5 16800$as_echo_n "checking for KEEP_FROMLINE... " >&6; } 16801# Check whether --enable-keep-fromline was given. 16802if test "${enable_keep_fromline+set}" = set; then : 16803 enableval=$enable_keep_fromline; KEEP_FROMLINE=$enableval 16804else 16805 KEEP_FROMLINE=$RESTRICT_TRUSTED 16806fi 16807 16808case "$KEEP_FROMLINE" in 168091*|y*|Y*) 16810 KEEP_FROMLINE=1 16811 ;; 16812*) 16813 KEEP_FROMLINE=0 16814 ;; 16815esac 16816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $KEEP_FROMLINE" >&5 16817$as_echo "$KEEP_FROMLINE" >&6; } 16818 16819 16820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog support" >&5 16821$as_echo_n "checking for syslog support... " >&6; } 16822# Check whether --enable-syslog was given. 16823if test "${enable_syslog+set}" = set; then : 16824 enableval=$enable_syslog; SYSLOG_LOGGING="$enableval" 16825else 16826 SYSLOG_LOGGING=0 16827fi 16828 16829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSLOG_LOGGING" >&5 16830$as_echo "$SYSLOG_LOGGING" >&6; } 16831 16832cat >>confdefs.h <<_ACEOF 16833#define SYSLOG_LOGGING $SYSLOG_LOGGING 16834_ACEOF 16835 16836 16837 16838# Check whether --with-dirsync was given. 16839if test "${with_dirsync+set}" = set; then : 16840 withval=$with_dirsync; dirsync="$withval" 16841else 16842 dirsync="N" 16843fi 16844 16845 16846case "$dirsync" in 16847y*|Y*|1*) 16848 16849cat >>confdefs.h <<_ACEOF 16850#define EXPLICITDIRSYNC 1 16851_ACEOF 16852 16853 ;; 16854esac 16855 16856 16857 16858 16859 16860CFLAGS="$CFLAGS -I$srcdir/../rfc822 -I$srcdir/../rfc2045 -I.. -I$srcdir/.." 16861CXXFLAGS="$CXXFLAGS -I$srcdir/../rfc822 -I$srcdir/../rfc2045 -I.. -I$srcdir/.." 16862 16863 16864# Check whether --with-etcdir was given. 16865if test "${with_etcdir+set}" = set; then : 16866 withval=$with_etcdir; withetcdir=$withval 16867else 16868 withetcdir="/etc" 16869 16870 if test -d $srcdir/../courier 16871 then 16872 eval "sysconfdir=$sysconfdir" 16873 withetcdir=$sysconfdir 16874 fi 16875 16876 16877fi 16878 16879 16880 16881WITHETCDIR="$withetcdir" 16882 16883 16884 16885cat >>confdefs.h <<_ACEOF 16886#define ETCDIR "$withetcdir" 16887_ACEOF 16888 16889 16890if test "$GXX" = yes ; then 16891 CXXFLAGS="$CXXFLAGS -Wall" 16892 CFLAGS="$CFLAGS -Wall" 16893fi 16894 16895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to treat authlib errors as tempreject" >&5 16896$as_echo_n "checking whether to treat authlib errors as tempreject... " >&6; } 16897# Check whether --enable-authlib-tempreject was given. 16898if test "${enable_authlib_tempreject+set}" = set; then : 16899 enableval=$enable_authlib_tempreject; AUTHLIB_TEMPREJECT="$enableval" 16900else 16901 AUTHLIB_TEMPREJECT=1 16902fi 16903 16904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTHLIB_TEMPREJECT" >&5 16905$as_echo "$AUTHLIB_TEMPREJECT" >&6; } 16906 16907cat >>confdefs.h <<_ACEOF 16908#define AUTHLIB_TEMPREJECT $AUTHLIB_TEMPREJECT 16909_ACEOF 16910 16911 16912 16913# Check whether --with-db was given. 16914if test "${with_db+set}" = set; then : 16915 withval=$with_db; db="$withval" 16916else 16917 db="" 16918fi 16919 16920 16921USE_GDBM=0 16922USE_DB=0; 16923 16924case "$db" in 16925 db) 16926 USE_DB=1 16927 ;; 16928 gdbm) 16929 USE_GDBM=1 16930 ;; 16931esac 16932 16933 16934 16935 16936 if test -d ${srcdir}/../docbook; then 16937 HAVE_SGML_TRUE= 16938 HAVE_SGML_FALSE='#' 16939else 16940 HAVE_SGML_TRUE='#' 16941 HAVE_SGML_FALSE= 16942fi 16943 16944 16945. ../rfc822/rfc822.config 16946 16947 if test "$libidn" = "yes"; then 16948 HAVE_LIBIDN_TRUE= 16949 HAVE_LIBIDN_FALSE='#' 16950else 16951 HAVE_LIBIDN_TRUE='#' 16952 HAVE_LIBIDN_FALSE= 16953fi 16954 16955 16956ac_config_files="$ac_config_files xconfig.h Makefile README.html testsuite" 16957 16958cat >confcache <<\_ACEOF 16959# This file is a shell script that caches the results of configure 16960# tests run on this system so they can be shared between configure 16961# scripts and configure runs, see configure's option --config-cache. 16962# It is not useful on other systems. If it contains results you don't 16963# want to keep, you may remove or edit it. 16964# 16965# config.status only pays attention to the cache file if you give it 16966# the --recheck option to rerun configure. 16967# 16968# `ac_cv_env_foo' variables (set or unset) will be overridden when 16969# loading this file, other *unset* `ac_cv_foo' will be assigned the 16970# following values. 16971 16972_ACEOF 16973 16974# The following way of writing the cache mishandles newlines in values, 16975# but we know of no workaround that is simple, portable, and efficient. 16976# So, we kill variables containing newlines. 16977# Ultrix sh set writes to stderr and can't be redirected directly, 16978# and sets the high bit in the cache file unless we assign to the vars. 16979( 16980 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 16981 eval ac_val=\$$ac_var 16982 case $ac_val in #( 16983 *${as_nl}*) 16984 case $ac_var in #( 16985 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 16986$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 16987 esac 16988 case $ac_var in #( 16989 _ | IFS | as_nl) ;; #( 16990 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 16991 *) { eval $ac_var=; unset $ac_var;} ;; 16992 esac ;; 16993 esac 16994 done 16995 16996 (set) 2>&1 | 16997 case $as_nl`(ac_space=' '; set) 2>&1` in #( 16998 *${as_nl}ac_space=\ *) 16999 # `set' does not quote correctly, so add quotes: double-quote 17000 # substitution turns \\\\ into \\, and sed turns \\ into \. 17001 sed -n \ 17002 "s/'/'\\\\''/g; 17003 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17004 ;; #( 17005 *) 17006 # `set' quotes correctly as required by POSIX, so do not add quotes. 17007 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17008 ;; 17009 esac | 17010 sort 17011) | 17012 sed ' 17013 /^ac_cv_env_/b end 17014 t clear 17015 :clear 17016 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17017 t end 17018 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17019 :end' >>confcache 17020if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17021 if test -w "$cache_file"; then 17022 test "x$cache_file" != "x/dev/null" && 17023 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17024$as_echo "$as_me: updating cache $cache_file" >&6;} 17025 cat confcache >$cache_file 17026 else 17027 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17028$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17029 fi 17030fi 17031rm -f confcache 17032 17033test "x$prefix" = xNONE && prefix=$ac_default_prefix 17034# Let make expand exec_prefix. 17035test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17036 17037DEFS=-DHAVE_CONFIG_H 17038 17039ac_libobjs= 17040ac_ltlibobjs= 17041U= 17042for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17043 # 1. Remove the extension, and $U if already installed. 17044 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17045 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17046 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17047 # will be set to the directory where LIBOBJS objects are built. 17048 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17049 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17050done 17051LIBOBJS=$ac_libobjs 17052 17053LTLIBOBJS=$ac_ltlibobjs 17054 17055 17056 if test -n "$EXEEXT"; then 17057 am__EXEEXT_TRUE= 17058 am__EXEEXT_FALSE='#' 17059else 17060 am__EXEEXT_TRUE='#' 17061 am__EXEEXT_FALSE= 17062fi 17063 17064if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 17065 as_fn_error $? "conditional \"AMDEP\" was never defined. 17066Usually this means the macro was only invoked conditionally." "$LINENO" 5 17067fi 17068if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17069 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17070Usually this means the macro was only invoked conditionally." "$LINENO" 5 17071fi 17072if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 17073 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 17074Usually this means the macro was only invoked conditionally." "$LINENO" 5 17075fi 17076if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 17077 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 17078Usually this means the macro was only invoked conditionally." "$LINENO" 5 17079fi 17080if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then 17081 as_fn_error $? "conditional \"HAVE_SGML\" was never defined. 17082Usually this means the macro was only invoked conditionally." "$LINENO" 5 17083fi 17084if test -z "${HAVE_LIBIDN_TRUE}" && test -z "${HAVE_LIBIDN_FALSE}"; then 17085 as_fn_error $? "conditional \"HAVE_LIBIDN\" was never defined. 17086Usually this means the macro was only invoked conditionally." "$LINENO" 5 17087fi 17088 17089: ${CONFIG_STATUS=./config.status} 17090ac_write_fail=0 17091ac_clean_files_save=$ac_clean_files 17092ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17093{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17094$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17095as_write_fail=0 17096cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17097#! $SHELL 17098# Generated by $as_me. 17099# Run this file to recreate the current configuration. 17100# Compiler output produced by configure, useful for debugging 17101# configure, is in config.log if it exists. 17102 17103debug=false 17104ac_cs_recheck=false 17105ac_cs_silent=false 17106 17107SHELL=\${CONFIG_SHELL-$SHELL} 17108export SHELL 17109_ASEOF 17110cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17111## -------------------- ## 17112## M4sh Initialization. ## 17113## -------------------- ## 17114 17115# Be more Bourne compatible 17116DUALCASE=1; export DUALCASE # for MKS sh 17117if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17118 emulate sh 17119 NULLCMD=: 17120 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17121 # is contrary to our usage. Disable this feature. 17122 alias -g '${1+"$@"}'='"$@"' 17123 setopt NO_GLOB_SUBST 17124else 17125 case `(set -o) 2>/dev/null` in #( 17126 *posix*) : 17127 set -o posix ;; #( 17128 *) : 17129 ;; 17130esac 17131fi 17132 17133 17134as_nl=' 17135' 17136export as_nl 17137# Printing a long string crashes Solaris 7 /usr/bin/printf. 17138as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17139as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17140as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17141# Prefer a ksh shell builtin over an external printf program on Solaris, 17142# but without wasting forks for bash or zsh. 17143if test -z "$BASH_VERSION$ZSH_VERSION" \ 17144 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17145 as_echo='print -r --' 17146 as_echo_n='print -rn --' 17147elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17148 as_echo='printf %s\n' 17149 as_echo_n='printf %s' 17150else 17151 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17152 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17153 as_echo_n='/usr/ucb/echo -n' 17154 else 17155 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17156 as_echo_n_body='eval 17157 arg=$1; 17158 case $arg in #( 17159 *"$as_nl"*) 17160 expr "X$arg" : "X\\(.*\\)$as_nl"; 17161 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17162 esac; 17163 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17164 ' 17165 export as_echo_n_body 17166 as_echo_n='sh -c $as_echo_n_body as_echo' 17167 fi 17168 export as_echo_body 17169 as_echo='sh -c $as_echo_body as_echo' 17170fi 17171 17172# The user is always right. 17173if test "${PATH_SEPARATOR+set}" != set; then 17174 PATH_SEPARATOR=: 17175 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17176 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17177 PATH_SEPARATOR=';' 17178 } 17179fi 17180 17181 17182# IFS 17183# We need space, tab and new line, in precisely that order. Quoting is 17184# there to prevent editors from complaining about space-tab. 17185# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17186# splitting by setting IFS to empty value.) 17187IFS=" "" $as_nl" 17188 17189# Find who we are. Look in the path if we contain no directory separator. 17190case $0 in #(( 17191 *[\\/]* ) as_myself=$0 ;; 17192 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17193for as_dir in $PATH 17194do 17195 IFS=$as_save_IFS 17196 test -z "$as_dir" && as_dir=. 17197 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17198 done 17199IFS=$as_save_IFS 17200 17201 ;; 17202esac 17203# We did not find ourselves, most probably we were run as `sh COMMAND' 17204# in which case we are not to be found in the path. 17205if test "x$as_myself" = x; then 17206 as_myself=$0 17207fi 17208if test ! -f "$as_myself"; then 17209 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17210 exit 1 17211fi 17212 17213# Unset variables that we do not need and which cause bugs (e.g. in 17214# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17215# suppresses any "Segmentation fault" message there. '((' could 17216# trigger a bug in pdksh 5.2.14. 17217for as_var in BASH_ENV ENV MAIL MAILPATH 17218do eval test x\${$as_var+set} = xset \ 17219 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17220done 17221PS1='$ ' 17222PS2='> ' 17223PS4='+ ' 17224 17225# NLS nuisances. 17226LC_ALL=C 17227export LC_ALL 17228LANGUAGE=C 17229export LANGUAGE 17230 17231# CDPATH. 17232(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17233 17234 17235# as_fn_error STATUS ERROR [LINENO LOG_FD] 17236# ---------------------------------------- 17237# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17238# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17239# script with STATUS, using 1 if that was 0. 17240as_fn_error () 17241{ 17242 as_status=$1; test $as_status -eq 0 && as_status=1 17243 if test "$4"; then 17244 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17245 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17246 fi 17247 $as_echo "$as_me: error: $2" >&2 17248 as_fn_exit $as_status 17249} # as_fn_error 17250 17251 17252# as_fn_set_status STATUS 17253# ----------------------- 17254# Set $? to STATUS, without forking. 17255as_fn_set_status () 17256{ 17257 return $1 17258} # as_fn_set_status 17259 17260# as_fn_exit STATUS 17261# ----------------- 17262# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17263as_fn_exit () 17264{ 17265 set +e 17266 as_fn_set_status $1 17267 exit $1 17268} # as_fn_exit 17269 17270# as_fn_unset VAR 17271# --------------- 17272# Portably unset VAR. 17273as_fn_unset () 17274{ 17275 { eval $1=; unset $1;} 17276} 17277as_unset=as_fn_unset 17278# as_fn_append VAR VALUE 17279# ---------------------- 17280# Append the text in VALUE to the end of the definition contained in VAR. Take 17281# advantage of any shell optimizations that allow amortized linear growth over 17282# repeated appends, instead of the typical quadratic growth present in naive 17283# implementations. 17284if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17285 eval 'as_fn_append () 17286 { 17287 eval $1+=\$2 17288 }' 17289else 17290 as_fn_append () 17291 { 17292 eval $1=\$$1\$2 17293 } 17294fi # as_fn_append 17295 17296# as_fn_arith ARG... 17297# ------------------ 17298# Perform arithmetic evaluation on the ARGs, and store the result in the 17299# global $as_val. Take advantage of shells that can avoid forks. The arguments 17300# must be portable across $(()) and expr. 17301if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17302 eval 'as_fn_arith () 17303 { 17304 as_val=$(( $* )) 17305 }' 17306else 17307 as_fn_arith () 17308 { 17309 as_val=`expr "$@" || test $? -eq 1` 17310 } 17311fi # as_fn_arith 17312 17313 17314if expr a : '\(a\)' >/dev/null 2>&1 && 17315 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17316 as_expr=expr 17317else 17318 as_expr=false 17319fi 17320 17321if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17322 as_basename=basename 17323else 17324 as_basename=false 17325fi 17326 17327if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17328 as_dirname=dirname 17329else 17330 as_dirname=false 17331fi 17332 17333as_me=`$as_basename -- "$0" || 17334$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17335 X"$0" : 'X\(//\)$' \| \ 17336 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17337$as_echo X/"$0" | 17338 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17339 s//\1/ 17340 q 17341 } 17342 /^X\/\(\/\/\)$/{ 17343 s//\1/ 17344 q 17345 } 17346 /^X\/\(\/\).*/{ 17347 s//\1/ 17348 q 17349 } 17350 s/.*/./; q'` 17351 17352# Avoid depending upon Character Ranges. 17353as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17354as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17355as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17356as_cr_digits='0123456789' 17357as_cr_alnum=$as_cr_Letters$as_cr_digits 17358 17359ECHO_C= ECHO_N= ECHO_T= 17360case `echo -n x` in #((((( 17361-n*) 17362 case `echo 'xy\c'` in 17363 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17364 xy) ECHO_C='\c';; 17365 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17366 ECHO_T=' ';; 17367 esac;; 17368*) 17369 ECHO_N='-n';; 17370esac 17371 17372rm -f conf$$ conf$$.exe conf$$.file 17373if test -d conf$$.dir; then 17374 rm -f conf$$.dir/conf$$.file 17375else 17376 rm -f conf$$.dir 17377 mkdir conf$$.dir 2>/dev/null 17378fi 17379if (echo >conf$$.file) 2>/dev/null; then 17380 if ln -s conf$$.file conf$$ 2>/dev/null; then 17381 as_ln_s='ln -s' 17382 # ... but there are two gotchas: 17383 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17384 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17385 # In both cases, we have to default to `cp -p'. 17386 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17387 as_ln_s='cp -p' 17388 elif ln conf$$.file conf$$ 2>/dev/null; then 17389 as_ln_s=ln 17390 else 17391 as_ln_s='cp -p' 17392 fi 17393else 17394 as_ln_s='cp -p' 17395fi 17396rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17397rmdir conf$$.dir 2>/dev/null 17398 17399 17400# as_fn_mkdir_p 17401# ------------- 17402# Create "$as_dir" as a directory, including parents if necessary. 17403as_fn_mkdir_p () 17404{ 17405 17406 case $as_dir in #( 17407 -*) as_dir=./$as_dir;; 17408 esac 17409 test -d "$as_dir" || eval $as_mkdir_p || { 17410 as_dirs= 17411 while :; do 17412 case $as_dir in #( 17413 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17414 *) as_qdir=$as_dir;; 17415 esac 17416 as_dirs="'$as_qdir' $as_dirs" 17417 as_dir=`$as_dirname -- "$as_dir" || 17418$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17419 X"$as_dir" : 'X\(//\)[^/]' \| \ 17420 X"$as_dir" : 'X\(//\)$' \| \ 17421 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17422$as_echo X"$as_dir" | 17423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17424 s//\1/ 17425 q 17426 } 17427 /^X\(\/\/\)[^/].*/{ 17428 s//\1/ 17429 q 17430 } 17431 /^X\(\/\/\)$/{ 17432 s//\1/ 17433 q 17434 } 17435 /^X\(\/\).*/{ 17436 s//\1/ 17437 q 17438 } 17439 s/.*/./; q'` 17440 test -d "$as_dir" && break 17441 done 17442 test -z "$as_dirs" || eval "mkdir $as_dirs" 17443 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17444 17445 17446} # as_fn_mkdir_p 17447if mkdir -p . 2>/dev/null; then 17448 as_mkdir_p='mkdir -p "$as_dir"' 17449else 17450 test -d ./-p && rmdir ./-p 17451 as_mkdir_p=false 17452fi 17453 17454if test -x / >/dev/null 2>&1; then 17455 as_test_x='test -x' 17456else 17457 if ls -dL / >/dev/null 2>&1; then 17458 as_ls_L_option=L 17459 else 17460 as_ls_L_option= 17461 fi 17462 as_test_x=' 17463 eval sh -c '\'' 17464 if test -d "$1"; then 17465 test -d "$1/."; 17466 else 17467 case $1 in #( 17468 -*)set "./$1";; 17469 esac; 17470 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 17471 ???[sx]*):;;*)false;;esac;fi 17472 '\'' sh 17473 ' 17474fi 17475as_executable_p=$as_test_x 17476 17477# Sed expression to map a string onto a valid CPP name. 17478as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17479 17480# Sed expression to map a string onto a valid variable name. 17481as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17482 17483 17484exec 6>&1 17485## ----------------------------------- ## 17486## Main body of $CONFIG_STATUS script. ## 17487## ----------------------------------- ## 17488_ASEOF 17489test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17490 17491cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17492# Save the log message, to keep $0 and so on meaningful, and to 17493# report actual input values of CONFIG_FILES etc. instead of their 17494# values after options handling. 17495ac_log=" 17496This file was extended by maildrop $as_me 2.5.2, which was 17497generated by GNU Autoconf 2.66. Invocation command line was 17498 17499 CONFIG_FILES = $CONFIG_FILES 17500 CONFIG_HEADERS = $CONFIG_HEADERS 17501 CONFIG_LINKS = $CONFIG_LINKS 17502 CONFIG_COMMANDS = $CONFIG_COMMANDS 17503 $ $0 $@ 17504 17505on `(hostname || uname -n) 2>/dev/null | sed 1q` 17506" 17507 17508_ACEOF 17509 17510case $ac_config_files in *" 17511"*) set x $ac_config_files; shift; ac_config_files=$*;; 17512esac 17513 17514case $ac_config_headers in *" 17515"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17516esac 17517 17518 17519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17520# Files that config.status was made for. 17521config_files="$ac_config_files" 17522config_headers="$ac_config_headers" 17523config_commands="$ac_config_commands" 17524 17525_ACEOF 17526 17527cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17528ac_cs_usage="\ 17529\`$as_me' instantiates files and other configuration actions 17530from templates according to the current configuration. Unless the files 17531and actions are specified as TAGs, all are instantiated by default. 17532 17533Usage: $0 [OPTION]... [TAG]... 17534 17535 -h, --help print this help, then exit 17536 -V, --version print version number and configuration settings, then exit 17537 --config print configuration, then exit 17538 -q, --quiet, --silent 17539 do not print progress messages 17540 -d, --debug don't remove temporary files 17541 --recheck update $as_me by reconfiguring in the same conditions 17542 --file=FILE[:TEMPLATE] 17543 instantiate the configuration file FILE 17544 --header=FILE[:TEMPLATE] 17545 instantiate the configuration header FILE 17546 17547Configuration files: 17548$config_files 17549 17550Configuration headers: 17551$config_headers 17552 17553Configuration commands: 17554$config_commands 17555 17556Report bugs to <courier-users@lists.sourceforge.net>." 17557 17558_ACEOF 17559cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17560ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17561ac_cs_version="\\ 17562maildrop config.status 2.5.2 17563configured by $0, generated by GNU Autoconf 2.66, 17564 with options \\"\$ac_cs_config\\" 17565 17566Copyright (C) 2010 Free Software Foundation, Inc. 17567This config.status script is free software; the Free Software Foundation 17568gives unlimited permission to copy, distribute and modify it." 17569 17570ac_pwd='$ac_pwd' 17571srcdir='$srcdir' 17572INSTALL='$INSTALL' 17573MKDIR_P='$MKDIR_P' 17574AWK='$AWK' 17575test -n "\$AWK" || AWK=awk 17576_ACEOF 17577 17578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17579# The default lists apply if the user does not specify any file. 17580ac_need_defaults=: 17581while test $# != 0 17582do 17583 case $1 in 17584 --*=*) 17585 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17586 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17587 ac_shift=: 17588 ;; 17589 *) 17590 ac_option=$1 17591 ac_optarg=$2 17592 ac_shift=shift 17593 ;; 17594 esac 17595 17596 case $ac_option in 17597 # Handling of the options. 17598 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17599 ac_cs_recheck=: ;; 17600 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17601 $as_echo "$ac_cs_version"; exit ;; 17602 --config | --confi | --conf | --con | --co | --c ) 17603 $as_echo "$ac_cs_config"; exit ;; 17604 --debug | --debu | --deb | --de | --d | -d ) 17605 debug=: ;; 17606 --file | --fil | --fi | --f ) 17607 $ac_shift 17608 case $ac_optarg in 17609 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17610 esac 17611 as_fn_append CONFIG_FILES " '$ac_optarg'" 17612 ac_need_defaults=false;; 17613 --header | --heade | --head | --hea ) 17614 $ac_shift 17615 case $ac_optarg in 17616 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17617 esac 17618 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17619 ac_need_defaults=false;; 17620 --he | --h) 17621 # Conflict between --help and --header 17622 as_fn_error $? "ambiguous option: \`$1' 17623Try \`$0 --help' for more information.";; 17624 --help | --hel | -h ) 17625 $as_echo "$ac_cs_usage"; exit ;; 17626 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17627 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17628 ac_cs_silent=: ;; 17629 17630 # This is an error. 17631 -*) as_fn_error $? "unrecognized option: \`$1' 17632Try \`$0 --help' for more information." ;; 17633 17634 *) as_fn_append ac_config_targets " $1" 17635 ac_need_defaults=false ;; 17636 17637 esac 17638 shift 17639done 17640 17641ac_configure_extra_args= 17642 17643if $ac_cs_silent; then 17644 exec 6>/dev/null 17645 ac_configure_extra_args="$ac_configure_extra_args --silent" 17646fi 17647 17648_ACEOF 17649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17650if \$ac_cs_recheck; then 17651 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 17652 shift 17653 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 17654 CONFIG_SHELL='$SHELL' 17655 export CONFIG_SHELL 17656 exec "\$@" 17657fi 17658 17659_ACEOF 17660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17661exec 5>>config.log 17662{ 17663 echo 17664 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 17665## Running $as_me. ## 17666_ASBOX 17667 $as_echo "$ac_log" 17668} >&5 17669 17670_ACEOF 17671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17672# 17673# INIT-COMMANDS 17674# 17675AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17676 17677 17678# The HP-UX ksh and POSIX shell print the target directory to stdout 17679# if CDPATH is set. 17680(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17681 17682sed_quote_subst='$sed_quote_subst' 17683double_quote_subst='$double_quote_subst' 17684delay_variable_subst='$delay_variable_subst' 17685macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 17686macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 17687enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 17688enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 17689pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 17690enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 17691SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 17692ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 17693host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 17694host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 17695host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 17696build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 17697build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 17698build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 17699SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 17700Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 17701GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 17702EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 17703FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 17704LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 17705NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 17706LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 17707max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 17708ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 17709exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 17710lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 17711lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 17712lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 17713reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 17714reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 17715OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 17716deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 17717file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 17718AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 17719AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 17720STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 17721RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 17722old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17723old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17724old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 17725lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 17726CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 17727CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 17728compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 17729GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 17730lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 17731lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 17732lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 17733lt_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"`' 17734objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 17735MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 17736lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 17737lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 17738lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 17739lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 17740lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 17741need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 17742DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 17743NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 17744LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 17745OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 17746OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 17747libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 17748shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 17749extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17750archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 17751enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 17752export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 17753whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 17754compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 17755old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 17756old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 17757archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 17758archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17759module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 17760module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 17761with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 17762allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 17763no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 17764hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 17765hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 17766hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 17767hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 17768hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 17769hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 17770hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 17771hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 17772inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 17773link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 17774fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 17775always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 17776export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 17777exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 17778include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 17779prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 17780file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 17781variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 17782need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 17783need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 17784version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 17785runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 17786shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 17787shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 17788libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 17789library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 17790soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 17791install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 17792postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 17793postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 17794finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 17795finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 17796hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 17797sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 17798sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 17799hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 17800enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 17801enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 17802enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 17803old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 17804striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 17805compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 17806predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 17807postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 17808predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 17809postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 17810compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 17811LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 17812reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 17813reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17814old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17815compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 17816GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 17817lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 17818lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 17819lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 17820lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 17821lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 17822archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 17823enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 17824export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17825whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17826compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 17827old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17828old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17829archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17830archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17831module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17832module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17833with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 17834allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17835no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 17836hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 17837hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`' 17838hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 17839hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 17840hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 17841hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 17842hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 17843hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 17844inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 17845link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 17846fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`' 17847always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 17848export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17849exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17850include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 17851prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 17852file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 17853hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 17854compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 17855predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17856postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 17857predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 17858postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 17859compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 17860 17861LTCC='$LTCC' 17862LTCFLAGS='$LTCFLAGS' 17863compiler='$compiler_DEFAULT' 17864 17865# A function that is used when there is no print builtin or printf. 17866func_fallback_echo () 17867{ 17868 eval 'cat <<_LTECHO_EOF 17869\$1 17870_LTECHO_EOF' 17871} 17872 17873# Quote evaled strings. 17874for var in SHELL \ 17875ECHO \ 17876SED \ 17877GREP \ 17878EGREP \ 17879FGREP \ 17880LD \ 17881NM \ 17882LN_S \ 17883lt_SP2NL \ 17884lt_NL2SP \ 17885reload_flag \ 17886OBJDUMP \ 17887deplibs_check_method \ 17888file_magic_cmd \ 17889AR \ 17890AR_FLAGS \ 17891STRIP \ 17892RANLIB \ 17893CC \ 17894CFLAGS \ 17895compiler \ 17896lt_cv_sys_global_symbol_pipe \ 17897lt_cv_sys_global_symbol_to_cdecl \ 17898lt_cv_sys_global_symbol_to_c_name_address \ 17899lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 17900lt_prog_compiler_no_builtin_flag \ 17901lt_prog_compiler_wl \ 17902lt_prog_compiler_pic \ 17903lt_prog_compiler_static \ 17904lt_cv_prog_compiler_c_o \ 17905need_locks \ 17906DSYMUTIL \ 17907NMEDIT \ 17908LIPO \ 17909OTOOL \ 17910OTOOL64 \ 17911shrext_cmds \ 17912export_dynamic_flag_spec \ 17913whole_archive_flag_spec \ 17914compiler_needs_object \ 17915with_gnu_ld \ 17916allow_undefined_flag \ 17917no_undefined_flag \ 17918hardcode_libdir_flag_spec \ 17919hardcode_libdir_flag_spec_ld \ 17920hardcode_libdir_separator \ 17921fix_srcfile_path \ 17922exclude_expsyms \ 17923include_expsyms \ 17924file_list_spec \ 17925variables_saved_for_relink \ 17926libname_spec \ 17927library_names_spec \ 17928soname_spec \ 17929install_override_mode \ 17930finish_eval \ 17931old_striplib \ 17932striplib \ 17933compiler_lib_search_dirs \ 17934predep_objects \ 17935postdep_objects \ 17936predeps \ 17937postdeps \ 17938compiler_lib_search_path \ 17939LD_CXX \ 17940reload_flag_CXX \ 17941compiler_CXX \ 17942lt_prog_compiler_no_builtin_flag_CXX \ 17943lt_prog_compiler_wl_CXX \ 17944lt_prog_compiler_pic_CXX \ 17945lt_prog_compiler_static_CXX \ 17946lt_cv_prog_compiler_c_o_CXX \ 17947export_dynamic_flag_spec_CXX \ 17948whole_archive_flag_spec_CXX \ 17949compiler_needs_object_CXX \ 17950with_gnu_ld_CXX \ 17951allow_undefined_flag_CXX \ 17952no_undefined_flag_CXX \ 17953hardcode_libdir_flag_spec_CXX \ 17954hardcode_libdir_flag_spec_ld_CXX \ 17955hardcode_libdir_separator_CXX \ 17956fix_srcfile_path_CXX \ 17957exclude_expsyms_CXX \ 17958include_expsyms_CXX \ 17959file_list_spec_CXX \ 17960compiler_lib_search_dirs_CXX \ 17961predep_objects_CXX \ 17962postdep_objects_CXX \ 17963predeps_CXX \ 17964postdeps_CXX \ 17965compiler_lib_search_path_CXX; do 17966 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 17967 *[\\\\\\\`\\"\\\$]*) 17968 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 17969 ;; 17970 *) 17971 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 17972 ;; 17973 esac 17974done 17975 17976# Double-quote double-evaled strings. 17977for var in reload_cmds \ 17978old_postinstall_cmds \ 17979old_postuninstall_cmds \ 17980old_archive_cmds \ 17981extract_expsyms_cmds \ 17982old_archive_from_new_cmds \ 17983old_archive_from_expsyms_cmds \ 17984archive_cmds \ 17985archive_expsym_cmds \ 17986module_cmds \ 17987module_expsym_cmds \ 17988export_symbols_cmds \ 17989prelink_cmds \ 17990postinstall_cmds \ 17991postuninstall_cmds \ 17992finish_cmds \ 17993sys_lib_search_path_spec \ 17994sys_lib_dlsearch_path_spec \ 17995reload_cmds_CXX \ 17996old_archive_cmds_CXX \ 17997old_archive_from_new_cmds_CXX \ 17998old_archive_from_expsyms_cmds_CXX \ 17999archive_cmds_CXX \ 18000archive_expsym_cmds_CXX \ 18001module_cmds_CXX \ 18002module_expsym_cmds_CXX \ 18003export_symbols_cmds_CXX \ 18004prelink_cmds_CXX; do 18005 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18006 *[\\\\\\\`\\"\\\$]*) 18007 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18008 ;; 18009 *) 18010 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18011 ;; 18012 esac 18013done 18014 18015ac_aux_dir='$ac_aux_dir' 18016xsi_shell='$xsi_shell' 18017lt_shell_append='$lt_shell_append' 18018 18019# See if we are running on zsh, and set the options which allow our 18020# commands through without removal of \ escapes INIT. 18021if test -n "\${ZSH_VERSION+set}" ; then 18022 setopt NO_GLOB_SUBST 18023fi 18024 18025 18026 PACKAGE='$PACKAGE' 18027 VERSION='$VERSION' 18028 TIMESTAMP='$TIMESTAMP' 18029 RM='$RM' 18030 ofile='$ofile' 18031 18032 18033 18034 18035 18036 18037_ACEOF 18038 18039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18040 18041# Handling of arguments. 18042for ac_config_target in $ac_config_targets 18043do 18044 case $ac_config_target in 18045 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18046 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18047 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18048 "xconfig.h") CONFIG_FILES="$CONFIG_FILES xconfig.h" ;; 18049 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18050 "README.html") CONFIG_FILES="$CONFIG_FILES README.html" ;; 18051 "testsuite") CONFIG_FILES="$CONFIG_FILES testsuite" ;; 18052 18053 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18054 esac 18055done 18056 18057 18058# If the user did not use the arguments to specify the items to instantiate, 18059# then the envvar interface is used. Set only those that are not. 18060# We use the long form for the default assignment because of an extremely 18061# bizarre bug on SunOS 4.1.3. 18062if $ac_need_defaults; then 18063 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18064 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18065 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18066fi 18067 18068# Have a temporary directory for convenience. Make it in the build tree 18069# simply because there is no reason against having it here, and in addition, 18070# creating and moving files from /tmp can sometimes cause problems. 18071# Hook for its removal unless debugging. 18072# Note that there is a small window in which the directory will not be cleaned: 18073# after its creation but before its name has been assigned to `$tmp'. 18074$debug || 18075{ 18076 tmp= 18077 trap 'exit_status=$? 18078 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 18079' 0 18080 trap 'as_fn_exit 1' 1 2 13 15 18081} 18082# Create a (secure) tmp directory for tmp files. 18083 18084{ 18085 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18086 test -n "$tmp" && test -d "$tmp" 18087} || 18088{ 18089 tmp=./conf$$-$RANDOM 18090 (umask 077 && mkdir "$tmp") 18091} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18092 18093# Set up the scripts for CONFIG_FILES section. 18094# No need to generate them if there are no CONFIG_FILES. 18095# This happens for instance with `./config.status config.h'. 18096if test -n "$CONFIG_FILES"; then 18097 18098 18099ac_cr=`echo X | tr X '\015'` 18100# On cygwin, bash can eat \r inside `` if the user requested igncr. 18101# But we know of no other shell where ac_cr would be empty at this 18102# point, so we can use a bashism as a fallback. 18103if test "x$ac_cr" = x; then 18104 eval ac_cr=\$\'\\r\' 18105fi 18106ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18107if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18108 ac_cs_awk_cr='\\r' 18109else 18110 ac_cs_awk_cr=$ac_cr 18111fi 18112 18113echo 'BEGIN {' >"$tmp/subs1.awk" && 18114_ACEOF 18115 18116 18117{ 18118 echo "cat >conf$$subs.awk <<_ACEOF" && 18119 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18120 echo "_ACEOF" 18121} >conf$$subs.sh || 18122 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18123ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18124ac_delim='%!_!# ' 18125for ac_last_try in false false false false false :; do 18126 . ./conf$$subs.sh || 18127 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18128 18129 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18130 if test $ac_delim_n = $ac_delim_num; then 18131 break 18132 elif $ac_last_try; then 18133 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18134 else 18135 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18136 fi 18137done 18138rm -f conf$$subs.sh 18139 18140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18141cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 18142_ACEOF 18143sed -n ' 18144h 18145s/^/S["/; s/!.*/"]=/ 18146p 18147g 18148s/^[^!]*!// 18149:repl 18150t repl 18151s/'"$ac_delim"'$// 18152t delim 18153:nl 18154h 18155s/\(.\{148\}\)..*/\1/ 18156t more1 18157s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18158p 18159n 18160b repl 18161:more1 18162s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18163p 18164g 18165s/.\{148\}// 18166t nl 18167:delim 18168h 18169s/\(.\{148\}\)..*/\1/ 18170t more2 18171s/["\\]/\\&/g; s/^/"/; s/$/"/ 18172p 18173b 18174:more2 18175s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18176p 18177g 18178s/.\{148\}// 18179t delim 18180' <conf$$subs.awk | sed ' 18181/^[^""]/{ 18182 N 18183 s/\n// 18184} 18185' >>$CONFIG_STATUS || ac_write_fail=1 18186rm -f conf$$subs.awk 18187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18188_ACAWK 18189cat >>"\$tmp/subs1.awk" <<_ACAWK && 18190 for (key in S) S_is_set[key] = 1 18191 FS = "" 18192 18193} 18194{ 18195 line = $ 0 18196 nfields = split(line, field, "@") 18197 substed = 0 18198 len = length(field[1]) 18199 for (i = 2; i < nfields; i++) { 18200 key = field[i] 18201 keylen = length(key) 18202 if (S_is_set[key]) { 18203 value = S[key] 18204 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18205 len += length(value) + length(field[++i]) 18206 substed = 1 18207 } else 18208 len += 1 + keylen 18209 } 18210 18211 print line 18212} 18213 18214_ACAWK 18215_ACEOF 18216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18217if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18218 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18219else 18220 cat 18221fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 18222 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18223_ACEOF 18224 18225# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18226# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18227# trailing colons and then remove the whole line if VPATH becomes empty 18228# (actually we leave an empty line to preserve line numbers). 18229if test "x$srcdir" = x.; then 18230 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18231h 18232s/// 18233s/^/:/ 18234s/[ ]*$/:/ 18235s/:\$(srcdir):/:/g 18236s/:\${srcdir}:/:/g 18237s/:@srcdir@:/:/g 18238s/^:*// 18239s/:*$// 18240x 18241s/\(=[ ]*\).*/\1/ 18242G 18243s/\n// 18244s/^[^=]*=[ ]*$// 18245}' 18246fi 18247 18248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18249fi # test -n "$CONFIG_FILES" 18250 18251# Set up the scripts for CONFIG_HEADERS section. 18252# No need to generate them if there are no CONFIG_HEADERS. 18253# This happens for instance with `./config.status Makefile'. 18254if test -n "$CONFIG_HEADERS"; then 18255cat >"$tmp/defines.awk" <<\_ACAWK || 18256BEGIN { 18257_ACEOF 18258 18259# Transform confdefs.h into an awk script `defines.awk', embedded as 18260# here-document in config.status, that substitutes the proper values into 18261# config.h.in to produce config.h. 18262 18263# Create a delimiter string that does not exist in confdefs.h, to ease 18264# handling of long lines. 18265ac_delim='%!_!# ' 18266for ac_last_try in false false :; do 18267 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 18268 if test -z "$ac_t"; then 18269 break 18270 elif $ac_last_try; then 18271 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18272 else 18273 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18274 fi 18275done 18276 18277# For the awk script, D is an array of macro values keyed by name, 18278# likewise P contains macro parameters if any. Preserve backslash 18279# newline sequences. 18280 18281ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18282sed -n ' 18283s/.\{148\}/&'"$ac_delim"'/g 18284t rset 18285:rset 18286s/^[ ]*#[ ]*define[ ][ ]*/ / 18287t def 18288d 18289:def 18290s/\\$// 18291t bsnl 18292s/["\\]/\\&/g 18293s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18294D["\1"]=" \3"/p 18295s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18296d 18297:bsnl 18298s/["\\]/\\&/g 18299s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18300D["\1"]=" \3\\\\\\n"\\/p 18301t cont 18302s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18303t cont 18304d 18305:cont 18306n 18307s/.\{148\}/&'"$ac_delim"'/g 18308t clear 18309:clear 18310s/\\$// 18311t bsnlc 18312s/["\\]/\\&/g; s/^/"/; s/$/"/p 18313d 18314:bsnlc 18315s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18316b cont 18317' <confdefs.h | sed ' 18318s/'"$ac_delim"'/"\\\ 18319"/g' >>$CONFIG_STATUS || ac_write_fail=1 18320 18321cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18322 for (key in D) D_is_set[key] = 1 18323 FS = "" 18324} 18325/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18326 line = \$ 0 18327 split(line, arg, " ") 18328 if (arg[1] == "#") { 18329 defundef = arg[2] 18330 mac1 = arg[3] 18331 } else { 18332 defundef = substr(arg[1], 2) 18333 mac1 = arg[2] 18334 } 18335 split(mac1, mac2, "(") #) 18336 macro = mac2[1] 18337 prefix = substr(line, 1, index(line, defundef) - 1) 18338 if (D_is_set[macro]) { 18339 # Preserve the white space surrounding the "#". 18340 print prefix "define", macro P[macro] D[macro] 18341 next 18342 } else { 18343 # Replace #undef with comments. This is necessary, for example, 18344 # in the case of _POSIX_SOURCE, which is predefined and required 18345 # on some systems where configure will not decide to define it. 18346 if (defundef == "undef") { 18347 print "/*", prefix defundef, macro, "*/" 18348 next 18349 } 18350 } 18351} 18352{ print } 18353_ACAWK 18354_ACEOF 18355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18356 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18357fi # test -n "$CONFIG_HEADERS" 18358 18359 18360eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18361shift 18362for ac_tag 18363do 18364 case $ac_tag in 18365 :[FHLC]) ac_mode=$ac_tag; continue;; 18366 esac 18367 case $ac_mode$ac_tag in 18368 :[FHL]*:*);; 18369 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18370 :[FH]-) ac_tag=-:-;; 18371 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18372 esac 18373 ac_save_IFS=$IFS 18374 IFS=: 18375 set x $ac_tag 18376 IFS=$ac_save_IFS 18377 shift 18378 ac_file=$1 18379 shift 18380 18381 case $ac_mode in 18382 :L) ac_source=$1;; 18383 :[FH]) 18384 ac_file_inputs= 18385 for ac_f 18386 do 18387 case $ac_f in 18388 -) ac_f="$tmp/stdin";; 18389 *) # Look for the file first in the build tree, then in the source tree 18390 # (if the path is not absolute). The absolute path cannot be DOS-style, 18391 # because $ac_f cannot contain `:'. 18392 test -f "$ac_f" || 18393 case $ac_f in 18394 [\\/$]*) false;; 18395 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18396 esac || 18397 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18398 esac 18399 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18400 as_fn_append ac_file_inputs " '$ac_f'" 18401 done 18402 18403 # Let's still pretend it is `configure' which instantiates (i.e., don't 18404 # use $as_me), people would be surprised to read: 18405 # /* config.h. Generated by config.status. */ 18406 configure_input='Generated from '` 18407 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18408 `' by configure.' 18409 if test x"$ac_file" != x-; then 18410 configure_input="$ac_file. $configure_input" 18411 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18412$as_echo "$as_me: creating $ac_file" >&6;} 18413 fi 18414 # Neutralize special characters interpreted by sed in replacement strings. 18415 case $configure_input in #( 18416 *\&* | *\|* | *\\* ) 18417 ac_sed_conf_input=`$as_echo "$configure_input" | 18418 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18419 *) ac_sed_conf_input=$configure_input;; 18420 esac 18421 18422 case $ac_tag in 18423 *:-:* | *:-) cat >"$tmp/stdin" \ 18424 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18425 esac 18426 ;; 18427 esac 18428 18429 ac_dir=`$as_dirname -- "$ac_file" || 18430$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18431 X"$ac_file" : 'X\(//\)[^/]' \| \ 18432 X"$ac_file" : 'X\(//\)$' \| \ 18433 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18434$as_echo X"$ac_file" | 18435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18436 s//\1/ 18437 q 18438 } 18439 /^X\(\/\/\)[^/].*/{ 18440 s//\1/ 18441 q 18442 } 18443 /^X\(\/\/\)$/{ 18444 s//\1/ 18445 q 18446 } 18447 /^X\(\/\).*/{ 18448 s//\1/ 18449 q 18450 } 18451 s/.*/./; q'` 18452 as_dir="$ac_dir"; as_fn_mkdir_p 18453 ac_builddir=. 18454 18455case "$ac_dir" in 18456.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18457*) 18458 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18459 # A ".." for each directory in $ac_dir_suffix. 18460 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18461 case $ac_top_builddir_sub in 18462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18464 esac ;; 18465esac 18466ac_abs_top_builddir=$ac_pwd 18467ac_abs_builddir=$ac_pwd$ac_dir_suffix 18468# for backward compatibility: 18469ac_top_builddir=$ac_top_build_prefix 18470 18471case $srcdir in 18472 .) # We are building in place. 18473 ac_srcdir=. 18474 ac_top_srcdir=$ac_top_builddir_sub 18475 ac_abs_top_srcdir=$ac_pwd ;; 18476 [\\/]* | ?:[\\/]* ) # Absolute name. 18477 ac_srcdir=$srcdir$ac_dir_suffix; 18478 ac_top_srcdir=$srcdir 18479 ac_abs_top_srcdir=$srcdir ;; 18480 *) # Relative name. 18481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18482 ac_top_srcdir=$ac_top_build_prefix$srcdir 18483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18484esac 18485ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18486 18487 18488 case $ac_mode in 18489 :F) 18490 # 18491 # CONFIG_FILE 18492 # 18493 18494 case $INSTALL in 18495 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18496 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18497 esac 18498 ac_MKDIR_P=$MKDIR_P 18499 case $MKDIR_P in 18500 [\\/$]* | ?:[\\/]* ) ;; 18501 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18502 esac 18503_ACEOF 18504 18505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18506# If the template does not know about datarootdir, expand it. 18507# FIXME: This hack should be removed a few years after 2.60. 18508ac_datarootdir_hack=; ac_datarootdir_seen= 18509ac_sed_dataroot=' 18510/datarootdir/ { 18511 p 18512 q 18513} 18514/@datadir@/p 18515/@docdir@/p 18516/@infodir@/p 18517/@localedir@/p 18518/@mandir@/p' 18519case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18520*datarootdir*) ac_datarootdir_seen=yes;; 18521*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18523$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18524_ACEOF 18525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18526 ac_datarootdir_hack=' 18527 s&@datadir@&$datadir&g 18528 s&@docdir@&$docdir&g 18529 s&@infodir@&$infodir&g 18530 s&@localedir@&$localedir&g 18531 s&@mandir@&$mandir&g 18532 s&\\\${datarootdir}&$datarootdir&g' ;; 18533esac 18534_ACEOF 18535 18536# Neutralize VPATH when `$srcdir' = `.'. 18537# Shell code in configure.ac might set extrasub. 18538# FIXME: do we really want to maintain this feature? 18539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18540ac_sed_extra="$ac_vpsub 18541$extrasub 18542_ACEOF 18543cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18544:t 18545/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18546s|@configure_input@|$ac_sed_conf_input|;t t 18547s&@top_builddir@&$ac_top_builddir_sub&;t t 18548s&@top_build_prefix@&$ac_top_build_prefix&;t t 18549s&@srcdir@&$ac_srcdir&;t t 18550s&@abs_srcdir@&$ac_abs_srcdir&;t t 18551s&@top_srcdir@&$ac_top_srcdir&;t t 18552s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18553s&@builddir@&$ac_builddir&;t t 18554s&@abs_builddir@&$ac_abs_builddir&;t t 18555s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18556s&@INSTALL@&$ac_INSTALL&;t t 18557s&@MKDIR_P@&$ac_MKDIR_P&;t t 18558$ac_datarootdir_hack 18559" 18560eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 18561 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18562 18563test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18564 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 18565 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 18566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18567which seems to be undefined. Please make sure it is defined" >&5 18568$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18569which seems to be undefined. Please make sure it is defined" >&2;} 18570 18571 rm -f "$tmp/stdin" 18572 case $ac_file in 18573 -) cat "$tmp/out" && rm -f "$tmp/out";; 18574 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 18575 esac \ 18576 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18577 ;; 18578 :H) 18579 # 18580 # CONFIG_HEADER 18581 # 18582 if test x"$ac_file" != x-; then 18583 { 18584 $as_echo "/* $configure_input */" \ 18585 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 18586 } >"$tmp/config.h" \ 18587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18588 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 18589 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18590$as_echo "$as_me: $ac_file is unchanged" >&6;} 18591 else 18592 rm -f "$ac_file" 18593 mv "$tmp/config.h" "$ac_file" \ 18594 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18595 fi 18596 else 18597 $as_echo "/* $configure_input */" \ 18598 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 18599 || as_fn_error $? "could not create -" "$LINENO" 5 18600 fi 18601# Compute "$ac_file"'s index in $config_headers. 18602_am_arg="$ac_file" 18603_am_stamp_count=1 18604for _am_header in $config_headers :; do 18605 case $_am_header in 18606 $_am_arg | $_am_arg:* ) 18607 break ;; 18608 * ) 18609 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18610 esac 18611done 18612echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18613$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18614 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18615 X"$_am_arg" : 'X\(//\)$' \| \ 18616 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18617$as_echo X"$_am_arg" | 18618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18619 s//\1/ 18620 q 18621 } 18622 /^X\(\/\/\)[^/].*/{ 18623 s//\1/ 18624 q 18625 } 18626 /^X\(\/\/\)$/{ 18627 s//\1/ 18628 q 18629 } 18630 /^X\(\/\).*/{ 18631 s//\1/ 18632 q 18633 } 18634 s/.*/./; q'`/stamp-h$_am_stamp_count 18635 ;; 18636 18637 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 18638$as_echo "$as_me: executing $ac_file commands" >&6;} 18639 ;; 18640 esac 18641 18642 18643 case $ac_file$ac_mode in 18644 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 18645 # Autoconf 2.62 quotes --file arguments for eval, but not when files 18646 # are listed without --file. Let's play safe and only enable the eval 18647 # if we detect the quoting. 18648 case $CONFIG_FILES in 18649 *\'*) eval set x "$CONFIG_FILES" ;; 18650 *) set x $CONFIG_FILES ;; 18651 esac 18652 shift 18653 for mf 18654 do 18655 # Strip MF so we end up with the name of the file. 18656 mf=`echo "$mf" | sed -e 's/:.*$//'` 18657 # Check whether this is an Automake generated Makefile or not. 18658 # We used to match only the files named `Makefile.in', but 18659 # some people rename them; so instead we look at the file content. 18660 # Grep'ing the first line is not enough: some people post-process 18661 # each Makefile.in and add a new line on top of each file to say so. 18662 # Grep'ing the whole file is not good either: AIX grep has a line 18663 # limit of 2048, but all sed's we know have understand at least 4000. 18664 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 18665 dirpart=`$as_dirname -- "$mf" || 18666$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18667 X"$mf" : 'X\(//\)[^/]' \| \ 18668 X"$mf" : 'X\(//\)$' \| \ 18669 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 18670$as_echo X"$mf" | 18671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18672 s//\1/ 18673 q 18674 } 18675 /^X\(\/\/\)[^/].*/{ 18676 s//\1/ 18677 q 18678 } 18679 /^X\(\/\/\)$/{ 18680 s//\1/ 18681 q 18682 } 18683 /^X\(\/\).*/{ 18684 s//\1/ 18685 q 18686 } 18687 s/.*/./; q'` 18688 else 18689 continue 18690 fi 18691 # Extract the definition of DEPDIR, am__include, and am__quote 18692 # from the Makefile without running `make'. 18693 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 18694 test -z "$DEPDIR" && continue 18695 am__include=`sed -n 's/^am__include = //p' < "$mf"` 18696 test -z "am__include" && continue 18697 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 18698 # When using ansi2knr, U may be empty or an underscore; expand it 18699 U=`sed -n 's/^U = //p' < "$mf"` 18700 # Find all dependency output files, they are included files with 18701 # $(DEPDIR) in their names. We invoke sed twice because it is the 18702 # simplest approach to changing $(DEPDIR) to its actual value in the 18703 # expansion. 18704 for file in `sed -n " 18705 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 18706 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 18707 # Make sure the directory exists. 18708 test -f "$dirpart/$file" && continue 18709 fdir=`$as_dirname -- "$file" || 18710$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18711 X"$file" : 'X\(//\)[^/]' \| \ 18712 X"$file" : 'X\(//\)$' \| \ 18713 X"$file" : 'X\(/\)' \| . 2>/dev/null || 18714$as_echo X"$file" | 18715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18716 s//\1/ 18717 q 18718 } 18719 /^X\(\/\/\)[^/].*/{ 18720 s//\1/ 18721 q 18722 } 18723 /^X\(\/\/\)$/{ 18724 s//\1/ 18725 q 18726 } 18727 /^X\(\/\).*/{ 18728 s//\1/ 18729 q 18730 } 18731 s/.*/./; q'` 18732 as_dir=$dirpart/$fdir; as_fn_mkdir_p 18733 # echo "creating $dirpart/$file" 18734 echo '# dummy' > "$dirpart/$file" 18735 done 18736 done 18737} 18738 ;; 18739 "libtool":C) 18740 18741 # See if we are running on zsh, and set the options which allow our 18742 # commands through without removal of \ escapes. 18743 if test -n "${ZSH_VERSION+set}" ; then 18744 setopt NO_GLOB_SUBST 18745 fi 18746 18747 cfgfile="${ofile}T" 18748 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 18749 $RM "$cfgfile" 18750 18751 cat <<_LT_EOF >> "$cfgfile" 18752#! $SHELL 18753 18754# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 18755# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 18756# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18757# NOTE: Changes made to this file will be lost: look at ltmain.sh. 18758# 18759# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 18760# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 18761# Inc. 18762# Written by Gordon Matzigkeit, 1996 18763# 18764# This file is part of GNU Libtool. 18765# 18766# GNU Libtool is free software; you can redistribute it and/or 18767# modify it under the terms of the GNU General Public License as 18768# published by the Free Software Foundation; either version 2 of 18769# the License, or (at your option) any later version. 18770# 18771# As a special exception to the GNU General Public License, 18772# if you distribute this file as part of a program or library that 18773# is built using GNU Libtool, you may include this file under the 18774# same distribution terms that you use for the rest of that program. 18775# 18776# GNU Libtool is distributed in the hope that it will be useful, 18777# but WITHOUT ANY WARRANTY; without even the implied warranty of 18778# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18779# GNU General Public License for more details. 18780# 18781# You should have received a copy of the GNU General Public License 18782# along with GNU Libtool; see the file COPYING. If not, a copy 18783# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 18784# obtained by writing to the Free Software Foundation, Inc., 18785# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18786 18787 18788# The names of the tagged configurations supported by this script. 18789available_tags="CXX " 18790 18791# ### BEGIN LIBTOOL CONFIG 18792 18793# Which release of libtool.m4 was used? 18794macro_version=$macro_version 18795macro_revision=$macro_revision 18796 18797# Whether or not to build shared libraries. 18798build_libtool_libs=$enable_shared 18799 18800# Whether or not to build static libraries. 18801build_old_libs=$enable_static 18802 18803# What type of objects to build. 18804pic_mode=$pic_mode 18805 18806# Whether or not to optimize for fast installation. 18807fast_install=$enable_fast_install 18808 18809# Shell to use when invoking shell scripts. 18810SHELL=$lt_SHELL 18811 18812# An echo program that protects backslashes. 18813ECHO=$lt_ECHO 18814 18815# The host system. 18816host_alias=$host_alias 18817host=$host 18818host_os=$host_os 18819 18820# The build system. 18821build_alias=$build_alias 18822build=$build 18823build_os=$build_os 18824 18825# A sed program that does not truncate output. 18826SED=$lt_SED 18827 18828# Sed that helps us avoid accidentally triggering echo(1) options like -n. 18829Xsed="\$SED -e 1s/^X//" 18830 18831# A grep program that handles long lines. 18832GREP=$lt_GREP 18833 18834# An ERE matcher. 18835EGREP=$lt_EGREP 18836 18837# A literal string matcher. 18838FGREP=$lt_FGREP 18839 18840# A BSD- or MS-compatible name lister. 18841NM=$lt_NM 18842 18843# Whether we need soft or hard links. 18844LN_S=$lt_LN_S 18845 18846# What is the maximum length of a command? 18847max_cmd_len=$max_cmd_len 18848 18849# Object file suffix (normally "o"). 18850objext=$ac_objext 18851 18852# Executable file suffix (normally ""). 18853exeext=$exeext 18854 18855# whether the shell understands "unset". 18856lt_unset=$lt_unset 18857 18858# turn spaces into newlines. 18859SP2NL=$lt_lt_SP2NL 18860 18861# turn newlines into spaces. 18862NL2SP=$lt_lt_NL2SP 18863 18864# An object symbol dumper. 18865OBJDUMP=$lt_OBJDUMP 18866 18867# Method to check whether dependent libraries are shared objects. 18868deplibs_check_method=$lt_deplibs_check_method 18869 18870# Command to use when deplibs_check_method == "file_magic". 18871file_magic_cmd=$lt_file_magic_cmd 18872 18873# The archiver. 18874AR=$lt_AR 18875AR_FLAGS=$lt_AR_FLAGS 18876 18877# A symbol stripping program. 18878STRIP=$lt_STRIP 18879 18880# Commands used to install an old-style archive. 18881RANLIB=$lt_RANLIB 18882old_postinstall_cmds=$lt_old_postinstall_cmds 18883old_postuninstall_cmds=$lt_old_postuninstall_cmds 18884 18885# Whether to use a lock for old archive extraction. 18886lock_old_archive_extraction=$lock_old_archive_extraction 18887 18888# A C compiler. 18889LTCC=$lt_CC 18890 18891# LTCC compiler flags. 18892LTCFLAGS=$lt_CFLAGS 18893 18894# Take the output of nm and produce a listing of raw symbols and C names. 18895global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18896 18897# Transform the output of nm in a proper C declaration. 18898global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18899 18900# Transform the output of nm in a C name address pair. 18901global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18902 18903# Transform the output of nm in a C name address pair when lib prefix is needed. 18904global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 18905 18906# The name of the directory that contains temporary libtool files. 18907objdir=$objdir 18908 18909# Used to examine libraries when file_magic_cmd begins with "file". 18910MAGIC_CMD=$MAGIC_CMD 18911 18912# Must we lock files when doing compilation? 18913need_locks=$lt_need_locks 18914 18915# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 18916DSYMUTIL=$lt_DSYMUTIL 18917 18918# Tool to change global to local symbols on Mac OS X. 18919NMEDIT=$lt_NMEDIT 18920 18921# Tool to manipulate fat objects and archives on Mac OS X. 18922LIPO=$lt_LIPO 18923 18924# ldd/readelf like tool for Mach-O binaries on Mac OS X. 18925OTOOL=$lt_OTOOL 18926 18927# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 18928OTOOL64=$lt_OTOOL64 18929 18930# Old archive suffix (normally "a"). 18931libext=$libext 18932 18933# Shared library suffix (normally ".so"). 18934shrext_cmds=$lt_shrext_cmds 18935 18936# The commands to extract the exported symbol list from a shared archive. 18937extract_expsyms_cmds=$lt_extract_expsyms_cmds 18938 18939# Variables whose values should be saved in libtool wrapper scripts and 18940# restored at link time. 18941variables_saved_for_relink=$lt_variables_saved_for_relink 18942 18943# Do we need the "lib" prefix for modules? 18944need_lib_prefix=$need_lib_prefix 18945 18946# Do we need a version for libraries? 18947need_version=$need_version 18948 18949# Library versioning type. 18950version_type=$version_type 18951 18952# Shared library runtime path variable. 18953runpath_var=$runpath_var 18954 18955# Shared library path variable. 18956shlibpath_var=$shlibpath_var 18957 18958# Is shlibpath searched before the hard-coded library search path? 18959shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18960 18961# Format of library name prefix. 18962libname_spec=$lt_libname_spec 18963 18964# List of archive names. First name is the real one, the rest are links. 18965# The last name is the one that the linker finds with -lNAME 18966library_names_spec=$lt_library_names_spec 18967 18968# The coded name of the library, if different from the real name. 18969soname_spec=$lt_soname_spec 18970 18971# Permission mode override for installation of shared libraries. 18972install_override_mode=$lt_install_override_mode 18973 18974# Command to use after installation of a shared archive. 18975postinstall_cmds=$lt_postinstall_cmds 18976 18977# Command to use after uninstallation of a shared archive. 18978postuninstall_cmds=$lt_postuninstall_cmds 18979 18980# Commands used to finish a libtool library installation in a directory. 18981finish_cmds=$lt_finish_cmds 18982 18983# As "finish_cmds", except a single script fragment to be evaled but 18984# not shown. 18985finish_eval=$lt_finish_eval 18986 18987# Whether we should hardcode library paths into libraries. 18988hardcode_into_libs=$hardcode_into_libs 18989 18990# Compile-time system search path for libraries. 18991sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18992 18993# Run-time system search path for libraries. 18994sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18995 18996# Whether dlopen is supported. 18997dlopen_support=$enable_dlopen 18998 18999# Whether dlopen of programs is supported. 19000dlopen_self=$enable_dlopen_self 19001 19002# Whether dlopen of statically linked programs is supported. 19003dlopen_self_static=$enable_dlopen_self_static 19004 19005# Commands to strip libraries. 19006old_striplib=$lt_old_striplib 19007striplib=$lt_striplib 19008 19009 19010# The linker used to build libraries. 19011LD=$lt_LD 19012 19013# How to create reloadable object files. 19014reload_flag=$lt_reload_flag 19015reload_cmds=$lt_reload_cmds 19016 19017# Commands used to build an old-style archive. 19018old_archive_cmds=$lt_old_archive_cmds 19019 19020# A language specific compiler. 19021CC=$lt_compiler 19022 19023# Is the compiler the GNU compiler? 19024with_gcc=$GCC 19025 19026# Compiler flag to turn off builtin functions. 19027no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19028 19029# How to pass a linker flag through the compiler. 19030wl=$lt_lt_prog_compiler_wl 19031 19032# Additional compiler flags for building library objects. 19033pic_flag=$lt_lt_prog_compiler_pic 19034 19035# Compiler flag to prevent dynamic linking. 19036link_static_flag=$lt_lt_prog_compiler_static 19037 19038# Does compiler simultaneously support -c and -o options? 19039compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19040 19041# Whether or not to add -lc for building shared libraries. 19042build_libtool_need_lc=$archive_cmds_need_lc 19043 19044# Whether or not to disallow shared libs when runtime libs are static. 19045allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19046 19047# Compiler flag to allow reflexive dlopens. 19048export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19049 19050# Compiler flag to generate shared objects directly from archives. 19051whole_archive_flag_spec=$lt_whole_archive_flag_spec 19052 19053# Whether the compiler copes with passing no objects directly. 19054compiler_needs_object=$lt_compiler_needs_object 19055 19056# Create an old-style archive from a shared archive. 19057old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19058 19059# Create a temporary old-style archive to link instead of a shared archive. 19060old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19061 19062# Commands used to build a shared archive. 19063archive_cmds=$lt_archive_cmds 19064archive_expsym_cmds=$lt_archive_expsym_cmds 19065 19066# Commands used to build a loadable module if different from building 19067# a shared archive. 19068module_cmds=$lt_module_cmds 19069module_expsym_cmds=$lt_module_expsym_cmds 19070 19071# Whether we are building with GNU ld or not. 19072with_gnu_ld=$lt_with_gnu_ld 19073 19074# Flag that allows shared libraries with undefined symbols to be built. 19075allow_undefined_flag=$lt_allow_undefined_flag 19076 19077# Flag that enforces no undefined symbols. 19078no_undefined_flag=$lt_no_undefined_flag 19079 19080# Flag to hardcode \$libdir into a binary during linking. 19081# This must work even if \$libdir does not exist 19082hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19083 19084# If ld is used when linking, flag to hardcode \$libdir into a binary 19085# during linking. This must work even if \$libdir does not exist. 19086hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 19087 19088# Whether we need a single "-rpath" flag with a separated argument. 19089hardcode_libdir_separator=$lt_hardcode_libdir_separator 19090 19091# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19092# DIR into the resulting binary. 19093hardcode_direct=$hardcode_direct 19094 19095# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19096# DIR into the resulting binary and the resulting library dependency is 19097# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19098# library is relocated. 19099hardcode_direct_absolute=$hardcode_direct_absolute 19100 19101# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19102# into the resulting binary. 19103hardcode_minus_L=$hardcode_minus_L 19104 19105# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19106# into the resulting binary. 19107hardcode_shlibpath_var=$hardcode_shlibpath_var 19108 19109# Set to "yes" if building a shared library automatically hardcodes DIR 19110# into the library and all subsequent libraries and executables linked 19111# against it. 19112hardcode_automatic=$hardcode_automatic 19113 19114# Set to yes if linker adds runtime paths of dependent libraries 19115# to runtime path list. 19116inherit_rpath=$inherit_rpath 19117 19118# Whether libtool must link a program against all its dependency libraries. 19119link_all_deplibs=$link_all_deplibs 19120 19121# Fix the shell variable \$srcfile for the compiler. 19122fix_srcfile_path=$lt_fix_srcfile_path 19123 19124# Set to "yes" if exported symbols are required. 19125always_export_symbols=$always_export_symbols 19126 19127# The commands to list exported symbols. 19128export_symbols_cmds=$lt_export_symbols_cmds 19129 19130# Symbols that should not be listed in the preloaded symbols. 19131exclude_expsyms=$lt_exclude_expsyms 19132 19133# Symbols that must always be exported. 19134include_expsyms=$lt_include_expsyms 19135 19136# Commands necessary for linking programs (against libraries) with templates. 19137prelink_cmds=$lt_prelink_cmds 19138 19139# Specify filename containing input files. 19140file_list_spec=$lt_file_list_spec 19141 19142# How to hardcode a shared library path into an executable. 19143hardcode_action=$hardcode_action 19144 19145# The directories searched by this compiler when creating a shared library. 19146compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 19147 19148# Dependencies to place before and after the objects being linked to 19149# create a shared library. 19150predep_objects=$lt_predep_objects 19151postdep_objects=$lt_postdep_objects 19152predeps=$lt_predeps 19153postdeps=$lt_postdeps 19154 19155# The library search path used internally by the compiler when linking 19156# a shared library. 19157compiler_lib_search_path=$lt_compiler_lib_search_path 19158 19159# ### END LIBTOOL CONFIG 19160 19161_LT_EOF 19162 19163 case $host_os in 19164 aix3*) 19165 cat <<\_LT_EOF >> "$cfgfile" 19166# AIX sometimes has problems with the GCC collect2 program. For some 19167# reason, if we set the COLLECT_NAMES environment variable, the problems 19168# vanish in a puff of smoke. 19169if test "X${COLLECT_NAMES+set}" != Xset; then 19170 COLLECT_NAMES= 19171 export COLLECT_NAMES 19172fi 19173_LT_EOF 19174 ;; 19175 esac 19176 19177 19178ltmain="$ac_aux_dir/ltmain.sh" 19179 19180 19181 # We use sed instead of cat because bash on DJGPP gets confused if 19182 # if finds mixed CR/LF and LF-only lines. Since sed operates in 19183 # text mode, it properly converts lines to CR/LF. This bash problem 19184 # is reportedly fixed, but why not run on old versions too? 19185 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 19186 || (rm -f "$cfgfile"; exit 1) 19187 19188 case $xsi_shell in 19189 yes) 19190 cat << \_LT_EOF >> "$cfgfile" 19191 19192# func_dirname file append nondir_replacement 19193# Compute the dirname of FILE. If nonempty, add APPEND to the result, 19194# otherwise set result to NONDIR_REPLACEMENT. 19195func_dirname () 19196{ 19197 case ${1} in 19198 */*) func_dirname_result="${1%/*}${2}" ;; 19199 * ) func_dirname_result="${3}" ;; 19200 esac 19201} 19202 19203# func_basename file 19204func_basename () 19205{ 19206 func_basename_result="${1##*/}" 19207} 19208 19209# func_dirname_and_basename file append nondir_replacement 19210# perform func_basename and func_dirname in a single function 19211# call: 19212# dirname: Compute the dirname of FILE. If nonempty, 19213# add APPEND to the result, otherwise set result 19214# to NONDIR_REPLACEMENT. 19215# value returned in "$func_dirname_result" 19216# basename: Compute filename of FILE. 19217# value retuned in "$func_basename_result" 19218# Implementation must be kept synchronized with func_dirname 19219# and func_basename. For efficiency, we do not delegate to 19220# those functions but instead duplicate the functionality here. 19221func_dirname_and_basename () 19222{ 19223 case ${1} in 19224 */*) func_dirname_result="${1%/*}${2}" ;; 19225 * ) func_dirname_result="${3}" ;; 19226 esac 19227 func_basename_result="${1##*/}" 19228} 19229 19230# func_stripname prefix suffix name 19231# strip PREFIX and SUFFIX off of NAME. 19232# PREFIX and SUFFIX must not contain globbing or regex special 19233# characters, hashes, percent signs, but SUFFIX may contain a leading 19234# dot (in which case that matches only a dot). 19235func_stripname () 19236{ 19237 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 19238 # positional parameters, so assign one to ordinary parameter first. 19239 func_stripname_result=${3} 19240 func_stripname_result=${func_stripname_result#"${1}"} 19241 func_stripname_result=${func_stripname_result%"${2}"} 19242} 19243 19244# func_opt_split 19245func_opt_split () 19246{ 19247 func_opt_split_opt=${1%%=*} 19248 func_opt_split_arg=${1#*=} 19249} 19250 19251# func_lo2o object 19252func_lo2o () 19253{ 19254 case ${1} in 19255 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 19256 *) func_lo2o_result=${1} ;; 19257 esac 19258} 19259 19260# func_xform libobj-or-source 19261func_xform () 19262{ 19263 func_xform_result=${1%.*}.lo 19264} 19265 19266# func_arith arithmetic-term... 19267func_arith () 19268{ 19269 func_arith_result=$(( $* )) 19270} 19271 19272# func_len string 19273# STRING may not start with a hyphen. 19274func_len () 19275{ 19276 func_len_result=${#1} 19277} 19278 19279_LT_EOF 19280 ;; 19281 *) # Bourne compatible functions. 19282 cat << \_LT_EOF >> "$cfgfile" 19283 19284# func_dirname file append nondir_replacement 19285# Compute the dirname of FILE. If nonempty, add APPEND to the result, 19286# otherwise set result to NONDIR_REPLACEMENT. 19287func_dirname () 19288{ 19289 # Extract subdirectory from the argument. 19290 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 19291 if test "X$func_dirname_result" = "X${1}"; then 19292 func_dirname_result="${3}" 19293 else 19294 func_dirname_result="$func_dirname_result${2}" 19295 fi 19296} 19297 19298# func_basename file 19299func_basename () 19300{ 19301 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 19302} 19303 19304 19305# func_stripname prefix suffix name 19306# strip PREFIX and SUFFIX off of NAME. 19307# PREFIX and SUFFIX must not contain globbing or regex special 19308# characters, hashes, percent signs, but SUFFIX may contain a leading 19309# dot (in which case that matches only a dot). 19310# func_strip_suffix prefix name 19311func_stripname () 19312{ 19313 case ${2} in 19314 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 19315 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 19316 esac 19317} 19318 19319# sed scripts: 19320my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 19321my_sed_long_arg='1s/^-[^=]*=//' 19322 19323# func_opt_split 19324func_opt_split () 19325{ 19326 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 19327 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 19328} 19329 19330# func_lo2o object 19331func_lo2o () 19332{ 19333 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 19334} 19335 19336# func_xform libobj-or-source 19337func_xform () 19338{ 19339 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 19340} 19341 19342# func_arith arithmetic-term... 19343func_arith () 19344{ 19345 func_arith_result=`expr "$@"` 19346} 19347 19348# func_len string 19349# STRING may not start with a hyphen. 19350func_len () 19351{ 19352 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 19353} 19354 19355_LT_EOF 19356esac 19357 19358case $lt_shell_append in 19359 yes) 19360 cat << \_LT_EOF >> "$cfgfile" 19361 19362# func_append var value 19363# Append VALUE to the end of shell variable VAR. 19364func_append () 19365{ 19366 eval "$1+=\$2" 19367} 19368_LT_EOF 19369 ;; 19370 *) 19371 cat << \_LT_EOF >> "$cfgfile" 19372 19373# func_append var value 19374# Append VALUE to the end of shell variable VAR. 19375func_append () 19376{ 19377 eval "$1=\$$1\$2" 19378} 19379 19380_LT_EOF 19381 ;; 19382 esac 19383 19384 19385 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 19386 || (rm -f "$cfgfile"; exit 1) 19387 19388 mv -f "$cfgfile" "$ofile" || 19389 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 19390 chmod +x "$ofile" 19391 19392 19393 cat <<_LT_EOF >> "$ofile" 19394 19395# ### BEGIN LIBTOOL TAG CONFIG: CXX 19396 19397# The linker used to build libraries. 19398LD=$lt_LD_CXX 19399 19400# How to create reloadable object files. 19401reload_flag=$lt_reload_flag_CXX 19402reload_cmds=$lt_reload_cmds_CXX 19403 19404# Commands used to build an old-style archive. 19405old_archive_cmds=$lt_old_archive_cmds_CXX 19406 19407# A language specific compiler. 19408CC=$lt_compiler_CXX 19409 19410# Is the compiler the GNU compiler? 19411with_gcc=$GCC_CXX 19412 19413# Compiler flag to turn off builtin functions. 19414no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 19415 19416# How to pass a linker flag through the compiler. 19417wl=$lt_lt_prog_compiler_wl_CXX 19418 19419# Additional compiler flags for building library objects. 19420pic_flag=$lt_lt_prog_compiler_pic_CXX 19421 19422# Compiler flag to prevent dynamic linking. 19423link_static_flag=$lt_lt_prog_compiler_static_CXX 19424 19425# Does compiler simultaneously support -c and -o options? 19426compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 19427 19428# Whether or not to add -lc for building shared libraries. 19429build_libtool_need_lc=$archive_cmds_need_lc_CXX 19430 19431# Whether or not to disallow shared libs when runtime libs are static. 19432allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 19433 19434# Compiler flag to allow reflexive dlopens. 19435export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 19436 19437# Compiler flag to generate shared objects directly from archives. 19438whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 19439 19440# Whether the compiler copes with passing no objects directly. 19441compiler_needs_object=$lt_compiler_needs_object_CXX 19442 19443# Create an old-style archive from a shared archive. 19444old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 19445 19446# Create a temporary old-style archive to link instead of a shared archive. 19447old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 19448 19449# Commands used to build a shared archive. 19450archive_cmds=$lt_archive_cmds_CXX 19451archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 19452 19453# Commands used to build a loadable module if different from building 19454# a shared archive. 19455module_cmds=$lt_module_cmds_CXX 19456module_expsym_cmds=$lt_module_expsym_cmds_CXX 19457 19458# Whether we are building with GNU ld or not. 19459with_gnu_ld=$lt_with_gnu_ld_CXX 19460 19461# Flag that allows shared libraries with undefined symbols to be built. 19462allow_undefined_flag=$lt_allow_undefined_flag_CXX 19463 19464# Flag that enforces no undefined symbols. 19465no_undefined_flag=$lt_no_undefined_flag_CXX 19466 19467# Flag to hardcode \$libdir into a binary during linking. 19468# This must work even if \$libdir does not exist 19469hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 19470 19471# If ld is used when linking, flag to hardcode \$libdir into a binary 19472# during linking. This must work even if \$libdir does not exist. 19473hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 19474 19475# Whether we need a single "-rpath" flag with a separated argument. 19476hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 19477 19478# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19479# DIR into the resulting binary. 19480hardcode_direct=$hardcode_direct_CXX 19481 19482# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19483# DIR into the resulting binary and the resulting library dependency is 19484# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19485# library is relocated. 19486hardcode_direct_absolute=$hardcode_direct_absolute_CXX 19487 19488# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19489# into the resulting binary. 19490hardcode_minus_L=$hardcode_minus_L_CXX 19491 19492# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 19493# into the resulting binary. 19494hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 19495 19496# Set to "yes" if building a shared library automatically hardcodes DIR 19497# into the library and all subsequent libraries and executables linked 19498# against it. 19499hardcode_automatic=$hardcode_automatic_CXX 19500 19501# Set to yes if linker adds runtime paths of dependent libraries 19502# to runtime path list. 19503inherit_rpath=$inherit_rpath_CXX 19504 19505# Whether libtool must link a program against all its dependency libraries. 19506link_all_deplibs=$link_all_deplibs_CXX 19507 19508# Fix the shell variable \$srcfile for the compiler. 19509fix_srcfile_path=$lt_fix_srcfile_path_CXX 19510 19511# Set to "yes" if exported symbols are required. 19512always_export_symbols=$always_export_symbols_CXX 19513 19514# The commands to list exported symbols. 19515export_symbols_cmds=$lt_export_symbols_cmds_CXX 19516 19517# Symbols that should not be listed in the preloaded symbols. 19518exclude_expsyms=$lt_exclude_expsyms_CXX 19519 19520# Symbols that must always be exported. 19521include_expsyms=$lt_include_expsyms_CXX 19522 19523# Commands necessary for linking programs (against libraries) with templates. 19524prelink_cmds=$lt_prelink_cmds_CXX 19525 19526# Specify filename containing input files. 19527file_list_spec=$lt_file_list_spec_CXX 19528 19529# How to hardcode a shared library path into an executable. 19530hardcode_action=$hardcode_action_CXX 19531 19532# The directories searched by this compiler when creating a shared library. 19533compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 19534 19535# Dependencies to place before and after the objects being linked to 19536# create a shared library. 19537predep_objects=$lt_predep_objects_CXX 19538postdep_objects=$lt_postdep_objects_CXX 19539predeps=$lt_predeps_CXX 19540postdeps=$lt_postdeps_CXX 19541 19542# The library search path used internally by the compiler when linking 19543# a shared library. 19544compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 19545 19546# ### END LIBTOOL TAG CONFIG: CXX 19547_LT_EOF 19548 19549 ;; 19550 19551 esac 19552done # for ac_tag 19553 19554 19555as_fn_exit 0 19556_ACEOF 19557ac_clean_files=$ac_clean_files_save 19558 19559test $ac_write_fail = 0 || 19560 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19561 19562 19563# configure is writing to config.log, and then calls config.status. 19564# config.status does its own redirection, appending to config.log. 19565# Unfortunately, on DOS this fails, as config.log is still kept open 19566# by configure, so config.status won't be able to write to it; its 19567# output is simply discarded. So we exec the FD to /dev/null, 19568# effectively closing config.log, so it can be properly (re)opened and 19569# appended to by config.status. When coming back to configure, we 19570# need to make the FD available again. 19571if test "$no_create" != yes; then 19572 ac_cs_success=: 19573 ac_config_status_args= 19574 test "$silent" = yes && 19575 ac_config_status_args="$ac_config_status_args --quiet" 19576 exec 5>/dev/null 19577 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19578 exec 5>>config.log 19579 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19580 # would make configure fail if this is the last instruction. 19581 $ac_cs_success || as_fn_exit 1 19582fi 19583if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19585$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19586fi 19587 19588